@wangeditor-next/list-module 1.1.53 → 1.1.54

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.
@@ -94,6 +94,7 @@ export declare const DomEditor: {
94
94
  toSlatePoint<T extends boolean>(editor: IDomEditor, domPoint: DOMPoint, options: {
95
95
  exactMatch: T;
96
96
  suppressThrow: T;
97
+ searchDirection?: "forward" | "backward";
97
98
  }): T extends true ? Point | null : Point;
98
99
  hasRange(editor: IDomEditor, range: Range): boolean;
99
100
  getNodeType(node: Node): string;
@@ -11,6 +11,7 @@ import { DOMElement } from '../utils/dom';
11
11
  export type ElementWithId = Element & {
12
12
  id: string;
13
13
  };
14
+ type MoveOptions = Parameters<Editor['move']>[0];
14
15
  export type getMenuConfigReturnType<K> = K extends keyof IMenuConfig ? IMenuConfig[K] : ISingleMenuConfig;
15
16
  /**
16
17
  * 扩展 slate Editor 接口
@@ -53,7 +54,8 @@ export interface IDomEditor extends Editor {
53
54
  getEditableContainer: () => DOMElement;
54
55
  select: (at: Location) => void;
55
56
  deselect: () => void;
56
- move: (distance: number, reverse?: boolean) => void;
57
+ move(options?: MoveOptions): void;
58
+ move(distance: number, reverse?: boolean): void;
57
59
  moveReverse: (distance: number) => void;
58
60
  restoreSelection: () => void;
59
61
  getTableSelection?: () => NodeEntryWithContext[][] | null;
@@ -68,3 +70,4 @@ export interface IDomEditor extends Editor {
68
70
  undo?: () => void;
69
71
  redo?: () => void;
70
72
  }
73
+ export {};
@@ -2,7 +2,7 @@
2
2
  * @description render text node
3
3
  * @author wangfupeng
4
4
  */
5
- import { Text as SlateText, Ancestor } from 'slate';
5
+ import { Ancestor, Text as SlateText } from 'slate';
6
6
  import { VNode } from 'snabbdom';
7
7
  import { IDomEditor } from '../../editor/interface';
8
8
  declare function renderText(textNode: SlateText, parent: Ancestor, editor: IDomEditor): VNode;
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import { Dom7Array, DOMElement } from '../utils/dom';
6
6
  declare class TextArea {
7
+ private selectionChangeRoot;
7
8
  readonly id: number;
8
9
  $box: Dom7Array;
9
10
  $textAreaContainer: Dom7Array;
@@ -20,7 +21,9 @@ declare class TextArea {
20
21
  private latestEditorSelection;
21
22
  constructor(boxSelector: string | DOMElement);
22
23
  private get editorInstance();
24
+ private bindSelectionChange;
23
25
  private onDOMSelectionChange;
26
+ flushDOMSelectionChange(): void;
24
27
  /**
25
28
  * 绑定事件,如 beforeinput onblur onfocus keydown click copy/paste drag/drop 等
26
29
  */
@@ -2,8 +2,8 @@
2
2
  * @description textarea helper fns
3
3
  * @author wangfupeng
4
4
  */
5
- import { DOMRange, DOMNode } from '../utils/dom';
6
5
  import { IDomEditor } from '../editor/interface';
6
+ import { DOMNode, DOMRange } from '../utils/dom';
7
7
  /**
8
8
  * Check if two DOM range objects are equal.
9
9
  */
@@ -12,14 +12,18 @@ export declare const isRangeEqual: (a: DOMRange, b: DOMRange) => boolean;
12
12
  * Check if the target is editable and in the editor.
13
13
  */
14
14
  export declare function hasEditableTarget(editor: IDomEditor, target: EventTarget | null): target is DOMNode;
15
+ /**
16
+ * Check if the target is in the editor.
17
+ */
18
+ export declare function hasTarget(editor: IDomEditor, target: EventTarget | null): target is DOMNode;
15
19
  /**
16
20
  * Check if the target is inside void and in an non-readonly editor.
17
21
  */
18
22
  export declare function isTargetInsideNonReadonlyVoid(editor: IDomEditor, target: EventTarget | null): boolean;
19
23
  /**
20
- * Check if the target is in the editor.
24
+ * Check if the target can participate in editor selection.
21
25
  */
22
- export declare function hasTarget(editor: IDomEditor, target: EventTarget | null): target is DOMNode;
26
+ export declare function hasSelectableTarget(editor: IDomEditor, target: EventTarget | null): boolean;
23
27
  /**
24
28
  * Check if a DOM event is overrode by a handler.
25
29
  */
@@ -56,3 +56,5 @@ export declare const CHANGING_NODE_PATH: WeakMap<Editor, Path>;
56
56
  export declare const EDITOR_TO_SELECTION: WeakMap<Editor, Range>;
57
57
  export declare const EDITOR_TO_EMITTER: WeakMap<Editor, Emitter>;
58
58
  export declare const EDITOR_TO_CAN_PASTE: WeakMap<Editor, boolean>;
59
+ export declare const EDITOR_TO_PENDING_COMPOSITION_END: WeakMap<Editor, boolean>;
60
+ export declare const EDITOR_TO_PENDING_SELECTION: WeakMap<Editor, Range | null>;
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(r,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@wangeditor-next/core"),require("slate"),require("dom7"),require("snabbdom")):"function"==typeof define&&define.amd?define(["@wangeditor-next/core","slate","dom7","snabbdom"],t):(r="undefined"!=typeof globalThis?globalThis:r||self).WangEditorListModule=t(r.core,r.slate,r.$,r.snabbdom)}(this,function(r,t,n,e){"use strict";r.i18nAddResources("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),r.i18nAddResources("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var o,i,u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},f={};function a(){if(i)return o;i=1;var r=function(r){return r&&r.Math===Math&&r};return o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof u&&u)||r("object"==typeof o&&o)||function(){return this}()||Function("return this")()}var c,l,s,v,d,p,y,h,g={};function b(){return l?c:(l=1,c=function(r){try{return!!r()}catch(r){return!0}})}function m(){if(v)return s;v=1;var r=b();return s=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function w(){if(p)return d;p=1;var r=b();return d=!r(function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")})}function x(){if(h)return y;h=1;var r=w(),t=Function.prototype.call;return y=r?t.bind(t):function(){return t.apply(t,arguments)},y}var O,S,E,j,T,A,P,I,R,k,L,N,M,z,D,_,C,F,B,H,$,G,V,W,U,q,K,Y,X,J,Q,Z,rr,tr,nr,er,or,ir,ur,fr,ar,cr={};function lr(){return E?S:(E=1,S=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}})}function sr(){if(T)return j;T=1;var r=w(),t=Function.prototype,n=t.call,e=r&&t.bind.bind(n,n);return j=r?e:function(r){return function(){return n.apply(r,arguments)}},j}function vr(){if(P)return A;P=1;var r=sr(),t=r({}.toString),n=r("".slice);return A=function(r){return n(t(r),8,-1)}}function dr(){if(R)return I;R=1;var r=sr(),t=b(),n=vr(),e=Object,o=r("".split);return I=t(function(){return!e("z").propertyIsEnumerable(0)})?function(r){return"String"===n(r)?o(r,""):e(r)}:e}function pr(){return L?k:(L=1,k=function(r){return null==r})}function yr(){if(M)return N;M=1;var r=pr(),t=TypeError;return N=function(n){if(r(n))throw new t("Can't call method on "+n);return n}}function hr(){if(D)return z;D=1;var r=dr(),t=yr();return z=function(n){return r(t(n))}}function gr(){if(C)return _;C=1;var r="object"==typeof document&&document.all;return _=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(r){return"function"==typeof r}}function br(){if(B)return F;B=1;var r=gr();return F=function(t){return"object"==typeof t?null!==t:r(t)}}function mr(){if($)return H;$=1;var r=a(),t=gr();return H=function(n,e){return arguments.length<2?(o=r[n],t(o)?o:void 0):r[n]&&r[n][e];var o},H}function wr(){if(V)return G;V=1;var r=sr();return G=r({}.isPrototypeOf)}function xr(){if(K)return q;K=1;var r,t,n=a(),e=function(){if(U)return W;U=1;var r=a().navigator,t=r&&r.userAgent;return W=t?String(t):""}(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,f=u&&u.v8;return f&&(t=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!t&&e&&(!(r=e.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=e.match(/Chrome\/(\d+)/))&&(t=+r[1]),q=t}function Or(){if(X)return Y;X=1;var r=xr(),t=b(),n=a().String;return Y=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})}function Sr(){if(Q)return J;Q=1;var r=Or();return J=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Er(){if(rr)return Z;rr=1;var r=mr(),t=gr(),n=wr(),e=Sr(),o=Object;return Z=e?function(r){return"symbol"==typeof r}:function(e){var i=r("Symbol");return t(i)&&n(i.prototype,o(e))}}function jr(){if(nr)return tr;nr=1;var r=String;return tr=function(t){try{return r(t)}catch(r){return"Object"}}}function Tr(){if(or)return er;or=1;var r=gr(),t=jr(),n=TypeError;return er=function(e){if(r(e))return e;throw new n(t(e)+" is not a function")}}function Ar(){if(ur)return ir;ur=1;var r=Tr(),t=pr();return ir=function(n,e){var o=n[e];return t(o)?void 0:r(o)}}function Pr(){if(ar)return fr;ar=1;var r=x(),t=gr(),n=br(),e=TypeError;return fr=function(o,i){var u,f;if("string"===i&&t(u=o.toString)&&!n(f=r(u,o)))return f;if(t(u=o.valueOf)&&!n(f=r(u,o)))return f;if("string"!==i&&t(u=o.toString)&&!n(f=r(u,o)))return f;throw new e("Can't convert object to primitive value")}}var Ir,Rr,kr,Lr,Nr,Mr,zr,Dr,_r,Cr,Fr,Br,Hr,$r,Gr,Vr,Wr,Ur,qr,Kr,Yr,Xr,Jr,Qr,Zr={exports:{}};function rt(){return Rr?Ir:(Rr=1,Ir=!1)}function tt(){if(Lr)return kr;Lr=1;var r=a(),t=Object.defineProperty;return kr=function(n,e){try{t(r,n,{value:e,configurable:!0,writable:!0})}catch(t){r[n]=e}return e}}function nt(){if(Nr)return Zr.exports;Nr=1;var r=rt(),t=a(),n=tt(),e="__core-js_shared__",o=Zr.exports=t[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.48.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Zr.exports}function et(){if(zr)return Mr;zr=1;var r=nt();return Mr=function(t,n){return r[t]||(r[t]=n||{})}}function ot(){if(_r)return Dr;_r=1;var r=yr(),t=Object;return Dr=function(n){return t(r(n))}}function it(){if(Fr)return Cr;Fr=1;var r=sr(),t=ot(),n=r({}.hasOwnProperty);return Cr=Object.hasOwn||function(r,e){return n(t(r),e)}}function ut(){if(Hr)return Br;Hr=1;var r=sr(),t=0,n=Math.random(),e=r(1.1.toString);return Br=function(r){return"Symbol("+(void 0===r?"":r)+")_"+e(++t+n,36)}}function ft(){if(Gr)return $r;Gr=1;var r=a(),t=et(),n=it(),e=ut(),o=Or(),i=Sr(),u=r.Symbol,f=t("wks"),c=i?u.for||u:u&&u.withoutSetter||e;return $r=function(r){return n(f,r)||(f[r]=o&&n(u,r)?u[r]:c("Symbol."+r)),f[r]}}function at(){if(Wr)return Vr;Wr=1;var r=x(),t=br(),n=Er(),e=Ar(),o=Pr(),i=ft(),u=TypeError,f=i("toPrimitive");return Vr=function(i,a){if(!t(i)||n(i))return i;var c,l=e(i,f);if(l){if(void 0===a&&(a="default"),c=r(l,i,a),!t(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),o(i,a)}}function ct(){if(qr)return Ur;qr=1;var r=at(),t=Er();return Ur=function(n){var e=r(n,"string");return t(e)?e:e+""}}function lt(){if(Yr)return Kr;Yr=1;var r=a(),t=br(),n=r.document,e=t(n)&&t(n.createElement);return Kr=function(r){return e?n.createElement(r):{}}}function st(){if(Jr)return Xr;Jr=1;var r=m(),t=b(),n=lt();return Xr=!r&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function vt(){if(Qr)return g;Qr=1;var r=m(),t=x(),n=function(){if(O)return cr;O=1;var r={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!r.call({1:2},1);return cr.f=n?function(r){var n=t(this,r);return!!n&&n.enumerable}:r,cr}(),e=lr(),o=hr(),i=ct(),u=it(),f=st(),a=Object.getOwnPropertyDescriptor;return g.f=r?a:function(r,c){if(r=o(r),c=i(c),f)try{return a(r,c)}catch(r){}if(u(r,c))return e(!t(n.f,r,c),r[c])},g}var dt,pt,yt,ht,gt,bt,mt,wt={};function xt(){if(pt)return dt;pt=1;var r=m(),t=b();return dt=r&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Ot(){if(ht)return yt;ht=1;var r=br(),t=String,n=TypeError;return yt=function(e){if(r(e))return e;throw new n(t(e)+" is not an object")}}function St(){if(gt)return wt;gt=1;var r=m(),t=st(),n=xt(),e=Ot(),o=ct(),i=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,a="enumerable",c="configurable",l="writable";return wt.f=r?n?function(r,t,n){if(e(r),t=o(t),e(n),"function"==typeof r&&"prototype"===t&&"value"in n&&l in n&&!n[l]){var i=f(r,t);i&&i[l]&&(r[t]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:a in n?n[a]:i[a],writable:!1})}return u(r,t,n)}:u:function(r,n,f){if(e(r),n=o(n),e(f),t)try{return u(r,n,f)}catch(r){}if("get"in f||"set"in f)throw new i("Accessors not supported");return"value"in f&&(r[n]=f.value),r},wt}function Et(){if(mt)return bt;mt=1;var r=m(),t=St(),n=lr();return bt=r?function(r,e,o){return t.f(r,e,n(1,o))}:function(r,t,n){return r[t]=n,r}}var jt,Tt,At,Pt,It,Rt,kt,Lt,Nt,Mt,zt,Dt,_t,Ct,Ft,Bt={exports:{}};function Ht(){if(Tt)return jt;Tt=1;var r=m(),t=it(),n=Function.prototype,e=r&&Object.getOwnPropertyDescriptor,o=t(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!r||r&&e(n,"name").configurable);return jt={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function $t(){if(Pt)return At;Pt=1;var r=sr(),t=gr(),n=nt(),e=r(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(r){return e(r)}),At=n.inspectSource}function Gt(){if(Rt)return It;Rt=1;var r=a(),t=gr(),n=r.WeakMap;return It=t(n)&&/native code/.test(String(n))}function Vt(){if(Lt)return kt;Lt=1;var r=et(),t=ut(),n=r("keys");return kt=function(r){return n[r]||(n[r]=t(r))}}function Wt(){return Mt?Nt:(Mt=1,Nt={})}function Ut(){if(Dt)return zt;Dt=1;var r,t,n,e=Gt(),o=a(),i=br(),u=Et(),f=it(),c=nt(),l=Vt(),s=Wt(),v="Object already initialized",d=o.TypeError,p=o.WeakMap;if(e||c.state){var y=c.state||(c.state=new p);y.get=y.get,y.has=y.has,y.set=y.set,r=function(r,t){if(y.has(r))throw new d(v);return t.facade=r,y.set(r,t),t},t=function(r){return y.get(r)||{}},n=function(r){return y.has(r)}}else{var h=l("state");s[h]=!0,r=function(r,t){if(f(r,h))throw new d(v);return t.facade=r,u(r,h,t),t},t=function(r){return f(r,h)?r[h]:{}},n=function(r){return f(r,h)}}return zt={set:r,get:t,has:n,enforce:function(e){return n(e)?t(e):r(e,{})},getterFor:function(r){return function(n){var e;if(!i(n)||(e=t(n)).type!==r)throw new d("Incompatible receiver, "+r+" required");return e}}}}function qt(){if(_t)return Bt.exports;_t=1;var r=sr(),t=b(),n=gr(),e=it(),o=m(),i=Ht().CONFIGURABLE,u=$t(),f=Ut(),a=f.enforce,c=f.get,l=String,s=Object.defineProperty,v=r("".slice),d=r("".replace),p=r([].join),y=o&&!t(function(){return 8!==s(function(){},"length",{value:8}).length}),h=String(String).split("String"),g=Bt.exports=function(r,t,n){"Symbol("===v(l(t),0,7)&&(t="["+d(l(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!e(r,"name")||i&&r.name!==t)&&(o?s(r,"name",{value:t,configurable:!0}):r.name=t),y&&n&&e(n,"arity")&&r.length!==n.arity&&s(r,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?o&&s(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(r){}var u=a(r);return e(u,"source")||(u.source=p(h,"string"==typeof t?t:"")),r};return Function.prototype.toString=g(function(){return n(this)&&c(this).source||u(this)},"toString"),Bt.exports}function Kt(){if(Ft)return Ct;Ft=1;var r=gr(),t=St(),n=qt(),e=tt();return Ct=function(o,i,u,f){f||(f={});var a=f.enumerable,c=void 0!==f.name?f.name:i;if(r(u)&&n(u,c,f),f.global)a?o[i]=u:e(i,u);else{try{f.unsafe?o[i]&&(a=!0):delete o[i]}catch(r){}a?o[i]=u:t.f(o,i,{value:u,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return o}}var Yt,Xt,Jt,Qt,Zt,rn,tn,nn,en,on,un,fn,an,cn,ln,sn,vn,dn={};function pn(){if(Qt)return Jt;Qt=1;var r=function(){if(Xt)return Yt;Xt=1;var r=Math.ceil,t=Math.floor;return Yt=Math.trunc||function(n){var e=+n;return(e>0?t:r)(e)}}();return Jt=function(t){var n=+t;return n!=n||0===n?0:r(n)}}function yn(){if(rn)return Zt;rn=1;var r=pn(),t=Math.max,n=Math.min;return Zt=function(e,o){var i=r(e);return i<0?t(i+o,0):n(i,o)}}function hn(){if(nn)return tn;nn=1;var r=pn(),t=Math.min;return tn=function(n){var e=r(n);return e>0?t(e,9007199254740991):0}}function gn(){if(on)return en;on=1;var r=hn();return en=function(t){return r(t.length)}}function bn(){if(fn)return un;fn=1;var r=hr(),t=yn(),n=gn(),e=function(e){return function(o,i,u){var f=r(o),a=n(f);if(0===a)return!e&&-1;var c,l=t(u,a);if(e&&i!=i){for(;a>l;)if((c=f[l++])!=c)return!0}else for(;a>l;l++)if((e||l in f)&&f[l]===i)return e||l||0;return!e&&-1}};return un={includes:e(!0),indexOf:e(!1)}}function mn(){if(cn)return an;cn=1;var r=sr(),t=it(),n=hr(),e=bn().indexOf,o=Wt(),i=r([].push);return an=function(r,u){var f,a=n(r),c=0,l=[];for(f in a)!t(o,f)&&t(a,f)&&i(l,f);for(;u.length>c;)t(a,f=u[c++])&&(~e(l,f)||i(l,f));return l}}function wn(){return sn?ln:(sn=1,ln=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function xn(){if(vn)return dn;vn=1;var r=mn(),t=wn().concat("length","prototype");return dn.f=Object.getOwnPropertyNames||function(n){return r(n,t)},dn}var On,Sn,En,jn,Tn,An,Pn,In,Rn,kn,Ln,Nn,Mn,zn,Dn,_n,Cn,Fn,Bn,Hn,$n,Gn,Vn,Wn,Un,qn,Kn,Yn,Xn,Jn,Qn={};function Zn(){if(En)return Sn;En=1;var r=mr(),t=sr(),n=xn(),e=(On||(On=1,Qn.f=Object.getOwnPropertySymbols),Qn),o=Ot(),i=t([].concat);return Sn=r("Reflect","ownKeys")||function(r){var t=n.f(o(r)),u=e.f;return u?i(t,u(r)):t}}function re(){if(Tn)return jn;Tn=1;var r=it(),t=Zn(),n=vt(),e=St();return jn=function(o,i,u){for(var f=t(i),a=e.f,c=n.f,l=0;l<f.length;l++){var s=f[l];r(o,s)||u&&r(u,s)||a(o,s,c(i,s))}}}function te(){if(Pn)return An;Pn=1;var r=b(),t=gr(),n=/#|\.prototype\./,e=function(n,e){var a=i[o(n)];return a===f||a!==u&&(t(e)?r(e):!!e)},o=e.normalize=function(r){return String(r).replace(n,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",f=e.POLYFILL="P";return An=e}function ne(){if(Rn)return In;Rn=1;var r=a(),t=vt().f,n=Et(),e=Kt(),o=tt(),i=re(),u=te();return In=function(f,a){var c,l,s,v,d,p=f.target,y=f.global,h=f.stat;if(c=y?r:h?r[p]||o(p,{}):r[p]&&r[p].prototype)for(l in a){if(v=a[l],s=f.dontCallGetSet?(d=t(c,l))&&d.value:c[l],!u(y?l:p+(h?".":"#")+l,f.forced)&&void 0!==s){if(typeof v==typeof s)continue;i(v,s)}(f.sham||s&&s.sham)&&n(v,"sham",!0),e(c,l,v,f)}}}function ee(){if(Ln)return kn;Ln=1;var r=vr();return kn=Array.isArray||function(t){return"Array"===r(t)}}function oe(){if(Mn)return Nn;Mn=1;var r=TypeError;return Nn=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}}function ie(){if(Dn)return zn;Dn=1;var r=m(),t=St(),n=lr();return zn=function(e,o,i){r?t.f(e,o,n(0,i)):e[o]=i}}function ue(){if(Bn)return Fn;Bn=1;var r={};return r[ft()("toStringTag")]="z",Fn="[object z]"===String(r)}function fe(){if($n)return Hn;$n=1;var r=ue(),t=gr(),n=vr(),e=ft()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Hn=r?n:function(r){var u,f,a;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(f=function(r,t){try{return r[t]}catch(r){}}(u=o(r),e))?f:i?n(u):"Object"===(a=n(u))&&t(u.callee)?"Arguments":a}}function ae(){if(Vn)return Gn;Vn=1;var r=sr(),t=b(),n=gr(),e=fe(),o=mr(),i=$t(),u=function(){},f=o("Reflect","construct"),a=/^\s*(?:class|function)\b/,c=r(a.exec),l=!a.test(u),s=function(r){if(!n(r))return!1;try{return f(u,[],r),!0}catch(r){return!1}},v=function(r){if(!n(r))return!1;switch(e(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(a,i(r))}catch(r){return!0}};return v.sham=!0,Gn=!f||t(function(){var r;return s(s.call)||!s(Object)||!s(function(){r=!0})||r})?v:s}function ce(){if(Un)return Wn;Un=1;var r=ee(),t=ae(),n=br(),e=ft()("species"),o=Array;return Wn=function(i){var u;return r(i)&&(u=i.constructor,(t(u)&&(u===o||r(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?o:u}}function le(){if(Kn)return qn;Kn=1;var r=ce();return qn=function(t,n){return new(r(t))(0===n?0:n)}}function se(){if(Xn)return Yn;Xn=1;var r=b(),t=ft(),n=xr(),e=t("species");return Yn=function(t){return n>=51||!r(function(){var r=[];return(r.constructor={})[e]=function(){return{foo:1}},1!==r[t](Boolean).foo})}}!function(){if(Jn)return f;Jn=1;var r=ne(),t=b(),n=ee(),e=br(),o=ot(),i=gn(),u=oe(),a=ie(),c=function(){if(Cn)return _n;Cn=1;var r=m(),t=ee(),n=TypeError,e=Object.getOwnPropertyDescriptor,o=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(r){return r instanceof TypeError}}();return _n=o?function(r,o){if(t(r)&&!e(r,"length").writable)throw new n("Cannot set read only .length");return r.length=o}:function(r,t){return r.length=t}}(),l=le(),s=se(),v=ft(),d=xr(),p=v("isConcatSpreadable"),y=d>=51||!t(function(){var r=[];return r[p]=!1,r.concat()[0]!==r}),h=function(r){if(!e(r))return!1;var t=r[p];return void 0!==t?!!t:n(r)};r({target:"Array",proto:!0,arity:1,forced:!y||!s("concat")},{concat:function(r){var t,n,e,f,s,v=o(this),d=l(v,0),p=0;for(t=-1,e=arguments.length;t<e;t++)if(h(s=-1===t?v:arguments[t]))for(f=i(s),u(p+f),n=0;n<f;n++,p++)n in s&&a(d,p,s[n]);else u(p+1),a(d,p++,s);return c(d,p),d}})}();var ve=function(r,t){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},ve(r,t)};function de(r,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=r}ve(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function pe(r){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&r[t],e=0;if(n)return n.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ye(r,t){var n="function"==typeof Symbol&&r[Symbol.iterator];if(!n)return r;var e,o,i=n.call(r),u=[];try{for(;(void 0===t||t-- >0)&&!(e=i.next()).done;)u.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function he(r,t,n){if(n||2===arguments.length)for(var e,o=0,i=t.length;o<i;o++)!e&&o in t||(e||(e=Array.prototype.slice.call(t,0,o)),e[o]=t[o]);return r.concat(e||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var ge,be,me,we,xe,Oe,Se,Ee,je,Te,Ae,Pe,Ie,Re,ke,Le,Ne,Me,ze,De,_e,Ce,Fe,Be,He,$e,Ge,Ve,We,Ue,qe,Ke,Ye,Xe,Je,Qe={};function Ze(){if(be)return ge;be=1;var r=mn(),t=wn();return ge=Object.keys||function(n){return r(n,t)}}function ro(){if(xe)return we;xe=1;var r=mr();return we=r("document","documentElement")}function to(){if(Se)return Oe;Se=1;var r,t=Ot(),n=function(){if(me)return Qe;me=1;var r=m(),t=xt(),n=St(),e=Ot(),o=hr(),i=Ze();return Qe.f=r&&!t?Object.defineProperties:function(r,t){e(r);for(var u,f=o(t),a=i(t),c=a.length,l=0;c>l;)n.f(r,u=a[l++],f[u]);return r},Qe}(),e=wn(),o=Wt(),i=ro(),u=lt(),f=Vt(),a="prototype",c="script",l=f("IE_PROTO"),s=function(){},v=function(r){return"<"+c+">"+r+"</"+c+">"},d=function(r){r.write(v("")),r.close();var t=r.parentWindow.Object;return r=null,t},p=function(){try{r=new ActiveXObject("htmlfile")}catch(r){}var t,n,o;p="undefined"!=typeof document?document.domain&&r?d(r):(n=u("iframe"),o="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(o),(t=n.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):d(r);for(var f=e.length;f--;)delete p[a][e[f]];return p()};return o[l]=!0,Oe=Object.create||function(r,e){var o;return null!==r?(s[a]=t(r),o=new s,s[a]=null,o[l]=r):o=p(),void 0===e?o:n.f(o,e)}}function no(){if(je)return Ee;je=1;var r=ft(),t=to(),n=St().f,e=r("unscopables"),o=Array.prototype;return void 0===o[e]&&n(o,e,{configurable:!0,value:t(null)}),Ee=function(r){o[e][r]=!0}}function eo(){return Ae?Te:(Ae=1,Te={})}function oo(){if(ke)return Re;ke=1;var r=it(),t=gr(),n=ot(),e=Vt(),o=function(){if(Ie)return Pe;Ie=1;var r=b();return Pe=!r(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})}(),i=e("IE_PROTO"),u=Object,f=u.prototype;return Re=o?u.getPrototypeOf:function(e){var o=n(e);if(r(o,i))return o[i];var a=o.constructor;return t(a)&&o instanceof a?a.prototype:o instanceof u?f:null}}function io(){if(Ne)return Le;Ne=1;var r,t,n,e=b(),o=gr(),i=br(),u=to(),f=oo(),a=Kt(),c=ft(),l=rt(),s=c("iterator"),v=!1;return[].keys&&("next"in(n=[].keys())?(t=f(f(n)))!==Object.prototype&&(r=t):v=!0),!i(r)||e(function(){var t={};return r[s].call(t)!==t})?r={}:l&&(r=u(r)),o(r[s])||a(r,s,function(){return this}),Le={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}}function uo(){if(ze)return Me;ze=1;var r=St().f,t=it(),n=ft()("toStringTag");return Me=function(e,o,i){e&&!i&&(e=e.prototype),e&&!t(e,n)&&r(e,n,{configurable:!0,value:o})}}function fo(){if(He)return Be;He=1;var r=br();return Be=function(t){return r(t)||null===t}}function ao(){if(Ge)return $e;Ge=1;var r=fo(),t=String,n=TypeError;return $e=function(e){if(r(e))return e;throw new n("Can't set "+t(e)+" as a prototype")}}function co(){if(We)return Ve;We=1;var r=function(){if(Fe)return Ce;Fe=1;var r=sr(),t=Tr();return Ce=function(n,e,o){try{return r(t(Object.getOwnPropertyDescriptor(n,e)[o]))}catch(r){}}}(),t=br(),n=yr(),e=ao();return Ve=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,u={};try{(o=r(Object.prototype,"__proto__","set"))(u,[]),i=u instanceof Array}catch(r){}return function(r,u){return n(r),e(u),t(r)?(i?o(r,u):r.__proto__=u,r):r}}():void 0)}function lo(){if(qe)return Ue;qe=1;var r=ne(),t=x(),n=rt(),e=Ht(),o=gr(),i=function(){if(_e)return De;_e=1;var r=io().IteratorPrototype,t=to(),n=lr(),e=uo(),o=eo(),i=function(){return this};return De=function(u,f,a,c){var l=f+" Iterator";return u.prototype=t(r,{next:n(+!c,a)}),e(u,l,!1,!0),o[l]=i,u}}(),u=oo(),f=co(),a=uo(),c=Et(),l=Kt(),s=ft(),v=eo(),d=io(),p=e.PROPER,y=e.CONFIGURABLE,h=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,b=s("iterator"),m="keys",w="values",O="entries",S=function(){return this};return Ue=function(e,s,d,x,E,j,T){i(d,s,x);var A,P,I,R=function(r){if(r===E&&z)return z;if(!g&&r&&r in N)return N[r];switch(r){case m:case w:case O:return function(){return new d(this,r)}}return function(){return new d(this)}},k=s+" Iterator",L=!1,N=e.prototype,M=N[b]||N["@@iterator"]||E&&N[E],z=!g&&M||R(E),D="Array"===s&&N.entries||M;if(D&&(A=u(D.call(new e)))!==Object.prototype&&A.next&&(n||u(A)===h||(f?f(A,h):o(A[b])||l(A,b,S)),a(A,k,!0,!0),n&&(v[k]=S)),p&&E===w&&M&&M.name!==w&&(!n&&y?c(N,"name",w):(L=!0,z=function(){return t(M,this)})),E)if(P={values:R(w),keys:j?z:R(m),entries:R(O)},T)for(I in P)(g||L||!(I in N))&&l(N,I,P[I]);else r({target:s,proto:!0,forced:g||L},P);return n&&!T||N[b]===z||l(N,b,z,{name:E}),v[s]=z,P}}function so(){return Ye?Ke:(Ye=1,Ke=function(r,t){return{value:r,done:t}})}function vo(){if(Je)return Xe;Je=1;var r=hr(),t=no(),n=eo(),e=Ut(),o=St().f,i=lo(),u=so(),f=rt(),a=m(),c="Array Iterator",l=e.set,s=e.getterFor(c);Xe=i(Array,"Array",function(t,n){l(this,{type:c,target:r(t),index:0,kind:n})},function(){var r=s(this),t=r.target,n=r.index++;if(!t||n>=t.length)return r.target=null,u(void 0,!0);switch(r.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)},"values");var v=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!f&&a&&"values"!==v.name)try{o(v,"name",{value:"values"})}catch(r){}return Xe}vo();var po,yo,ho,go={};!function(){if(ho)return go;ho=1;var r=ue(),t=Kt(),n=function(){if(yo)return po;yo=1;var r=ue(),t=fe();return po=r?{}.toString:function(){return"[object "+t(this)+"]"}}();r||t(Object.prototype,"toString",n,{unsafe:!0})}();var bo,mo,wo,xo,Oo,So={};function Eo(){if(mo)return bo;mo=1;var r=fe(),t=String;return bo=function(n){if("Symbol"===r(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}function jo(){if(xo)return wo;xo=1;var r=sr(),t=pn(),n=Eo(),e=yr(),o=r("".charAt),i=r("".charCodeAt),u=r("".slice),f=function(r){return function(f,a){var c,l,s=n(e(f)),v=t(a),d=s.length;return v<0||v>=d?r?"":void 0:(c=i(s,v))<55296||c>56319||v+1===d||(l=i(s,v+1))<56320||l>57343?r?o(s,v):c:r?u(s,v,v+2):l-56320+(c-55296<<10)+65536}};return wo={codeAt:f(!1),charAt:f(!0)}}!function(){if(Oo)return So;Oo=1;var r=jo().charAt,t=Eo(),n=Ut(),e=lo(),o=so(),i="String Iterator",u=n.set,f=n.getterFor(i);e(String,"String",function(r){u(this,{type:i,string:t(r),index:0})},function(){var t,n=f(this),e=n.string,i=n.index;return i>=e.length?o(void 0,!0):(t=r(e,i),n.index+=t.length,o(t,!1))})}();var To,Ao,Po,Io,Ro={};function ko(){if(Ao)return To;Ao=1;var r=b();return To=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})}function Lo(){if(Io)return Po;Io=1;var r=Kt();return Po=function(t,n,e){for(var o in n)r(t,o,n[o],e);return t}}var No,Mo,zo,Do,_o,Co,Fo,Bo,Ho,$o,Go,Vo,Wo,Uo,qo,Ko,Yo,Xo,Jo,Qo,Zo,ri,ti,ni,ei,oi,ii,ui,fi,ai,ci,li,si,vi,di,pi,yi={exports:{}},hi={};function gi(){if(Mo)return No;Mo=1;var r=sr();return No=r([].slice)}function bi(){if(zo)return hi;zo=1;var r=vr(),t=hr(),n=xn().f,e=gi(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return hi.f=function(i){return o&&"Window"===r(i)?function(r){try{return n(r)}catch(r){return e(o)}}(i):n(t(i))},hi}function mi(){if(Fo)return Co;Fo=1;var r=b(),t=br(),n=vr(),e=function(){if(_o)return Do;_o=1;var r=b();return Do=r(function(){if("function"==typeof ArrayBuffer){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}})}(),o=Object.isExtensible,i=r(function(){});return Co=i||e?function(r){return!!t(r)&&((!e||"ArrayBuffer"!==n(r))&&(!o||o(r)))}:o}function wi(){if(Bo)return yi.exports;Bo=1;var r=ne(),t=sr(),n=Wt(),e=br(),o=it(),i=St().f,u=xn(),f=bi(),a=mi(),c=ut(),l=ko(),s=!1,v=c("meta"),d=0,p=function(r){i(r,v,{value:{objectID:"O"+d++,weakData:{}}})},y=yi.exports={enable:function(){y.enable=function(){},s=!0;var n=u.f,e=t([].splice),o={};o[v]=1,n(o).length&&(u.f=function(r){for(var t=n(r),o=0,i=t.length;o<i;o++)if(t[o]===v){e(t,o,1);break}return t},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(r,t){if(!e(r))return"symbol"==typeof r?r:("string"==typeof r?"S":"P")+r;if(!o(r,v)){if(!a(r))return"F";if(!t)return"E";p(r)}return r[v].objectID},getWeakData:function(r,t){if(!o(r,v)){if(!a(r))return!0;if(!t)return!1;p(r)}return r[v].weakData},onFreeze:function(r){return l&&s&&a(r)&&!o(r,v)&&p(r),r}};return n[v]=!0,yi.exports}function xi(){if(Vo)return Go;Vo=1;var r=function(){if($o)return Ho;$o=1;var r=vr(),t=sr();return Ho=function(n){if("Function"===r(n))return t(n)}}(),t=Tr(),n=w(),e=r(r.bind);return Go=function(r,o){return t(r),void 0===o?r:n?e(r,o):function(){return r.apply(o,arguments)}},Go}function Oi(){if(Uo)return Wo;Uo=1;var r=ft(),t=eo(),n=r("iterator"),e=Array.prototype;return Wo=function(r){return void 0!==r&&(t.Array===r||e[n]===r)}}function Si(){if(Ko)return qo;Ko=1;var r=fe(),t=Ar(),n=pr(),e=eo(),o=ft()("iterator");return qo=function(i){if(!n(i))return t(i,o)||t(i,"@@iterator")||e[r(i)]}}function Ei(){if(Xo)return Yo;Xo=1;var r=x(),t=Tr(),n=Ot(),e=jr(),o=Si(),i=TypeError;return Yo=function(u,f){var a=arguments.length<2?o(u):f;if(t(a))return n(r(a,u));throw new i(e(u)+" is not iterable")},Yo}function ji(){if(Qo)return Jo;Qo=1;var r=x(),t=Ot(),n=Ar();return Jo=function(e,o,i){var u,f;t(e);try{if(!(u=n(e,"return"))){if("throw"===o)throw i;return i}u=r(u,e)}catch(r){f=!0,u=r}if("throw"===o)throw i;if(f)throw u;return t(u),i}}function Ti(){if(ri)return Zo;ri=1;var r=xi(),t=x(),n=Ot(),e=jr(),o=Oi(),i=gn(),u=wr(),f=Ei(),a=Si(),c=ji(),l=TypeError,s=function(r,t){this.stopped=r,this.result=t},v=s.prototype;return Zo=function(d,p,y){var h,g,b,m,w,x,O,S=y&&y.that,E=!(!y||!y.AS_ENTRIES),j=!(!y||!y.IS_RECORD),T=!(!y||!y.IS_ITERATOR),A=!(!y||!y.INTERRUPTED),P=r(p,S),I=function(r){return h&&c(h,"normal"),new s(!0,r)},R=function(r){return E?(n(r),A?P(r[0],r[1],I):P(r[0],r[1])):A?P(r,I):P(r)};if(j)h=d.iterator;else if(T)h=d;else{if(!(g=a(d)))throw new l(e(d)+" is not iterable");if(o(g)){for(b=0,m=i(d);m>b;b++)if((w=R(d[b]))&&u(v,w))return w;return new s(!1)}h=f(d,g)}for(x=j?d.next:h.next;!(O=t(x,h)).done;){try{w=R(O.value)}catch(r){c(h,"throw",r)}if("object"==typeof w&&w&&u(v,w))return w}return new s(!1)}}function Ai(){if(ni)return ti;ni=1;var r=wr(),t=TypeError;return ti=function(n,e){if(r(e,n))return n;throw new t("Incorrect invocation")}}function Pi(){if(oi)return ei;oi=1;var r=ft()("iterator"),t=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){t=!0}};e[r]=function(){return this},Array.from(e,function(){throw 2})}catch(r){}return ei=function(n,e){try{if(!e&&!t)return!1}catch(r){return!1}var o=!1;try{var i={};i[r]=function(){return{next:function(){return{done:o=!0}}}},n(i)}catch(r){}return o}}function Ii(){if(ui)return ii;ui=1;var r=gr(),t=br(),n=co();return ii=function(e,o,i){var u,f;return n&&r(u=o.constructor)&&u!==i&&t(f=u.prototype)&&f!==i.prototype&&n(e,f),e}}function Ri(){if(ai)return fi;ai=1;var r=ne(),t=a(),n=sr(),e=te(),o=Kt(),i=wi(),u=Ti(),f=Ai(),c=gr(),l=pr(),s=br(),v=b(),d=Pi(),p=uo(),y=Ii();return fi=function(a,h,g){var b=-1!==a.indexOf("Map"),m=-1!==a.indexOf("Weak"),w=b?"set":"add",x=t[a],O=x&&x.prototype,S=x,E={},j=function(r){var t=n(O[r]);o(O,r,"add"===r?function(r){return t(this,0===r?0:r),this}:"delete"===r?function(r){return!(m&&!s(r))&&t(this,0===r?0:r)}:"get"===r?function(r){return m&&!s(r)?void 0:t(this,0===r?0:r)}:"has"===r?function(r){return!(m&&!s(r))&&t(this,0===r?0:r)}:function(r,n){return t(this,0===r?0:r,n),this})};if(e(a,!c(x)||!(m||O.forEach&&!v(function(){(new x).entries().next()}))))S=g.getConstructor(h,a,b,w),i.enable();else if(e(a,!0)){var T=new S,A=T[w](m?{}:-0,1)!==T,P=v(function(){T.has(1)}),I=d(function(r){new x(r)}),R=!m&&v(function(){for(var r=new x,t=5;t--;)r[w](t,t);return!r.has(-0)});I||((S=h(function(r,t){f(r,O);var n=y(new x,r,S);return l(t)||u(t,n[w],{that:n,AS_ENTRIES:b}),n})).prototype=O,O.constructor=S),(P||R)&&(j("delete"),j("has"),b&&j("get")),(R||A)&&j(w),m&&O.clear&&delete O.clear}return E[a]=S,r({global:!0,constructor:!0,forced:S!==x},E),p(S,a),m||g.setStrong(S,a,b),S}}function ki(){if(li)return ci;li=1;var r=xi(),t=dr(),n=ot(),e=gn(),o=le(),i=ie(),u=function(u){var f=1===u,a=2===u,c=3===u,l=4===u,s=6===u,v=7===u,d=5===u||s;return function(p,y,h){for(var g,b,m=n(p),w=t(m),x=e(w),O=r(y,h),S=0,E=0,j=f?o(p,x):a||v?o(p,0):void 0;x>S;S++)if((d||S in w)&&(b=O(g=w[S],S,m),u))if(f)i(j,S,b);else if(b)switch(u){case 3:return!0;case 5:return g;case 6:return S;case 2:i(j,E++,g)}else switch(u){case 4:return!1;case 7:i(j,E++,g)}return s?-1:c||l?l:j}};return ci={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}function Li(){if(vi)return si;vi=1;var r=sr(),t=Lo(),n=wi().getWeakData,e=Ai(),o=Ot(),i=pr(),u=br(),f=Ti(),a=ki(),c=it(),l=Ut(),s=l.set,v=l.getterFor,d=a.find,p=a.findIndex,y=r([].splice),h=0,g=function(r){return r.frozen||(r.frozen=new b)},b=function(){this.entries=[]},m=function(r,t){return d(r.entries,function(r){return r[0]===t})};return b.prototype={get:function(r){var t=m(this,r);if(t)return t[1]},has:function(r){return!!m(this,r)},set:function(r,t){var n=m(this,r);n?n[1]=t:this.entries.push([r,t])},delete:function(r){var t=p(this.entries,function(t){return t[0]===r});return~t&&y(this.entries,t,1),!!~t}},si={getConstructor:function(r,a,l,d){var p=r(function(r,t){e(r,y),s(r,{type:a,id:h++,frozen:null}),i(t)||f(t,r[d],{that:r,AS_ENTRIES:l})}),y=p.prototype,b=v(a),m=function(r,t,e){var i=b(r),u=n(o(t),!0);return!0===u?g(i).set(t,e):u[i.id]=e,r};return t(y,{delete:function(r){var t=b(this);if(!u(r))return!1;var e=n(r);return!0===e?g(t).delete(r):e&&c(e,t.id)&&delete e[t.id]},has:function(r){var t=b(this);if(!u(r))return!1;var e=n(r);return!0===e?g(t).has(r):e&&c(e,t.id)}}),t(y,l?{get:function(r){var t=b(this);if(u(r)){var e=n(r);if(!0===e)return g(t).get(r);if(e)return e[t.id]}},set:function(r,t){return m(this,r,t)}}:{add:function(r){return m(this,r,!0)}}),p}}}pi||(pi=1,function(){if(di)return Ro;di=1;var r,t=ko(),n=a(),e=sr(),o=Lo(),i=wi(),u=Ri(),f=Li(),c=br(),l=Ut().enforce,s=b(),v=Gt(),d=Object,p=Array.isArray,y=d.isExtensible,h=d.isFrozen,g=d.isSealed,m=d.freeze,w=d.seal,x=!n.ActiveXObject&&"ActiveXObject"in n,O=function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},S=u("WeakMap",O,f),E=S.prototype,j=e(E.set);if(v)if(x){r=f.getConstructor(O,"WeakMap",!0),i.enable();var T=e(E.delete),A=e(E.has),P=e(E.get);o(E,{delete:function(t){if(c(t)&&!y(t)){var n=l(this);return n.frozen||(n.frozen=new r),T(this,t)||n.frozen.delete(t)}return T(this,t)},has:function(t){if(c(t)&&!y(t)){var n=l(this);return n.frozen||(n.frozen=new r),A(this,t)||n.frozen.has(t)}return A(this,t)},get:function(t){if(c(t)&&!y(t)){var n=l(this);return n.frozen||(n.frozen=new r),A(this,t)?P(this,t):n.frozen.get(t)}return P(this,t)},set:function(t,n){if(c(t)&&!y(t)){var e=l(this);e.frozen||(e.frozen=new r),A(this,t)?j(this,t,n):e.frozen.set(t,n)}else j(this,t,n);return this}})}else t&&s(function(){var r=m([]);return j(new S,r,1),!h(r)})&&o(E,{set:function(r,t){var n;return p(r)&&(h(r)?n=m:g(r)&&(n=w)),j(this,r,t),n&&n(r),this}})}());var Ni,Mi,zi,Di,_i,Ci={};!function(){if(_i)return Ci;_i=1;var r=a(),t=Mi?Ni:(Mi=1,Ni={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}),n=function(){if(Di)return zi;Di=1;var r=lt()("span").classList,t=r&&r.constructor&&r.constructor.prototype;return zi=t===Object.prototype?void 0:t}(),e=vo(),o=Et(),i=uo(),u=ft()("iterator"),f=e.values,c=function(r,n){if(r){if(r[u]!==f)try{o(r,u,f)}catch(t){r[u]=f}if(i(r,n,!0),t[n])for(var a in e)if(r[a]!==e[a])try{o(r,a,e[a])}catch(t){r[a]=e[a]}}};for(var l in t)c(r[l]&&r[l].prototype,l);c(n,"DOMTokenList")}();var Fi=new WeakMap;function Bi(r){var n,e=r.children||[],o=e.length;if(0===o)return"";for(var i=0;i<o&&!n;i+=1){var u=e[i];t.Text.isText(u)&&(n=u)}return null==n?"":n.color||""}function Hi(n,e,o){for(var i=e.type,u=function(r,t){var n={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&t.indexOf(e)<0&&(n[e]=r[e]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(r);o<e.length;o++)t.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(r,e[o])&&(n[e[o]]=r[e[o]])}return n}(e,["type"]),f=void 0!==o?o:u.level||0,a=r.DomEditor.findPath(n,e);;){if(0===a.length||0===a[a.length-1])return null;a=t.Path.previous(a);var c=t.Editor.node(n,a);if(!c)return null;var l=ye(c,1)[0],s=l.level,v=void 0===s?0:s;if(r.DomEditor.getNodeType(l)!==i)return null;if(v===f)return l}}function $i(r,t,n){var e=Hi(r,t,n);return!!e&&e.ordered===t.ordered}var Gi=[];var Vi,Wi={type:"list-item",elemToHtml:function(n,e){var o="",i="",u=n.ordered,f=void 0!==u&&u?"ol":"ul",a=function(n){var e=Fi.get(n);if(null==e)return 0;var o=n,i=o.type,u=o.ordered,f=void 0!==u&&u,a=o.level,c=void 0===a?0:a,l=r.DomEditor.findPath(e,n);if(0===l[0])return c+1;var s=t.Path.previous(l),v=t.Editor.node(e,s);if(!v)return 0;var d=ye(v,1)[0];if(r.DomEditor.getNodeType(d)!==i)return c+1;var p=d,y=p.ordered,h=void 0!==y&&y,g=p.level,b=void 0===g?0:g;return b<c?c-b:b>c?$i(e,n)?0:1:b===c?h===f?0:1:0}(n);if(a>0)for(var c=0;c<a;c+=1)o+="<".concat(f,">"),Gi.push(f);var l=function(n){var e=Fi.get(n);if(null==e)return 0;var o=n,i=o.type,u=o.ordered,f=void 0!==u&&u,a=o.level,c=void 0===a?0:a,l=r.DomEditor.findPath(e,n);if(l[0]===e.children.length-1)return c+1;var s=t.Path.next(l),v=t.Editor.node(e,s);if(!v)return 0;var d=ye(v,1)[0];if(r.DomEditor.getNodeType(d)!==i)return c+1;var p=d,y=p.ordered,h=void 0!==y&&y,g=p.level,b=void 0===g?0:g;return b<c?$i(e,d)?c-b:c-b+1:b>c?0:b===c?h===f?0:1:0}(n);if(l>0)for(c=0;c<l;c+=1){var s=Gi.pop();i+="</".concat(s,">")}var v=Bi(n),d=v?' style="color:'.concat(v,'"'):"";return{html:"<li".concat(d,">").concat(e,"</li>"),prefix:o,suffix:i}}},Ui={};!function(){if(Vi)return Ui;Vi=1;var r=ne(),t=bn().includes,n=b(),e=no();r({target:"Array",proto:!0,forced:n(function(){return!Array(1).includes()})},{includes:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}}),e("includes")}();var qi,Ki,Yi,Xi,Ji,Qi,Zi,ru,tu,nu,eu,ou={};function iu(){if(Ki)return qi;Ki=1;var r=Ot();return qi=function(){var t=r(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}function uu(){if(nu)return tu;nu=1;var r,t,n=x(),e=sr(),o=Eo(),i=iu(),u=function(){if(Xi)return Yi;Xi=1;var r=b(),t=a().RegExp,n=r(function(){var r=t("a","y");return r.lastIndex=2,null!==r.exec("abcd")}),e=n||r(function(){return!t("a","y").sticky}),o=n||r(function(){var r=t("^r","gy");return r.lastIndex=2,null!==r.exec("str")});return Yi={BROKEN_CARET:o,MISSED_STICKY:e,UNSUPPORTED_Y:n}}(),f=et(),c=to(),l=Ut().get,s=function(){if(Qi)return Ji;Qi=1;var r=b(),t=a().RegExp;return Ji=r(function(){var r=t(".","s");return!(r.dotAll&&r.test("\n")&&"s"===r.flags)})}(),v=function(){if(ru)return Zi;ru=1;var r=b(),t=a().RegExp;return Zi=r(function(){var r=t("(?<a>b)","g");return"b"!==r.exec("b").groups.a||"bc"!=="b".replace(r,"$<a>c")})}(),d=f("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,y=p,h=e("".charAt),g=e("".indexOf),m=e("".replace),w=e("".slice),O=(t=/b*/g,n(p,r=/a/,"a"),n(p,t,"a"),0!==r.lastIndex||0!==t.lastIndex),S=u.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];return(O||E||S||s||v)&&(y=function(r){var t,e,u,f,a,s,v,b=this,x=l(b),j=o(r),T=x.raw;if(T)return T.lastIndex=b.lastIndex,t=n(y,T,j),b.lastIndex=T.lastIndex,t;var A=x.groups,P=S&&b.sticky,I=n(i,b),R=b.source,k=0,L=j;if(P&&(I=m(I,"y",""),-1===g(I,"g")&&(I+="g"),L=w(j,b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&"\n"!==h(j,b.lastIndex-1))&&(R="(?: "+R+")",L=" "+L,k++),e=new RegExp("^(?:"+R+")",I)),E&&(e=new RegExp("^"+R+"$(?!\\s)",I)),O&&(u=b.lastIndex),f=n(p,P?e:b,L),P?f?(f.input=w(f.input,k),f[0]=w(f[0],k),f.index=b.lastIndex,b.lastIndex+=f[0].length):b.lastIndex=0:O&&f&&(b.lastIndex=b.global?f.index+f[0].length:u),E&&f&&f.length>1&&n(d,f[0],e,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(f[a]=void 0)}),f&&A)for(f.groups=s=c(null),a=0;a<A.length;a++)s[(v=A[a])[0]]=f[v[1]];return f}),tu=y}function fu(){if(eu)return ou;eu=1;var r=ne(),t=uu();return r({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),ou}fu();var au,cu=function(){function n(){this.type="list-item",this.tag="button"}return n.prototype.getListNode=function(t){var n=this.type;return r.DomEditor.getSelectedNodeByType(t,n)},n.prototype.getValue=function(r){return""},n.prototype.isActive=function(r){var t=this.getListNode(r);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},n.prototype.isDisabled=function(n){return null==n.selection||!!r.DomEditor.getSelectedElems(n).some(function(r){if(t.Editor.isVoid(n,r)&&t.Editor.isBlock(n,r))return!0;var e=r.type;return!!["pre","code","table"].includes(e)})},n.prototype.exec=function(r,n){this.isActive(r)?t.Transforms.setNodes(r,{type:"paragraph",ordered:void 0,level:void 0}):t.Transforms.setNodes(r,{type:"list-item",ordered:this.ordered,indent:void 0})},n}(),lu=function(t){function n(){var n=t.apply(this,he([],ye(arguments),!1))||this;return n.ordered=!1,n.title=r.t("listModule.unOrderedList"),n.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>',n}return de(n,t),n}(cu),su=function(t){function n(){var n=t.apply(this,he([],ye(arguments),!1))||this;return n.ordered=!0,n.title=r.t("listModule.orderedList"),n.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>',n}return de(n,t),n}(cu),vu={key:"bulletedList",factory:function(){return new lu}},du={key:"numberedList",factory:function(){return new su}},pu={};!function(){if(au)return pu;au=1;var r=ne(),t=ki().filter;r({target:"Array",proto:!0,forced:!se()("filter")},{filter:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})}();var yu,hu,gu,bu={};!function(){if(gu)return bu;gu=1;var r=ne(),t=function(){if(hu)return yu;hu=1;var r=ee(),t=gn(),n=oe(),e=xi(),o=ie(),i=function(u,f,a,c,l,s,v,d){for(var p,y,h=l,g=0,b=!!v&&e(v,d);g<c;)g in a&&(p=b?b(a[g],g,f):a[g],s>0&&r(p)?(y=t(p),h=i(u,f,p,y,h,s-1)-1):(n(h+1),o(u,h,p)),h++),g++;return h};return yu=i}(),n=ot(),e=gn(),o=pn(),i=le();r({target:"Array",proto:!0},{flat:function(){var r=arguments.length?arguments[0]:void 0,u=n(this),f=e(u),a=i(u,0);return t(a,u,u,f,0,void 0===r?1:o(r)),a}})}();var mu;mu||(mu=1,no()("flat"));var wu,xu,Ou,Su,Eu,ju,Tu,Au,Pu,Iu,Ru,ku,Lu,Nu,Mu,zu={};function Du(){if(ju)return Eu;ju=1;var r=jo().charAt;return Eu=function(t,n,e){return n+(e?r(t,n).length:1)}}function _u(){if(Au)return Tu;Au=1;var r=sr(),t=ot(),n=Math.floor,e=r("".charAt),o=r("".replace),i=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;return Tu=function(r,a,c,l,s,v){var d=c+r.length,p=l.length,y=f;return void 0!==s&&(s=t(s),y=u),o(v,y,function(t,o){var u;switch(e(o,0)){case"$":return"$";case"&":return r;case"`":return i(a,0,c);case"'":return i(a,d);case"<":u=s[i(o,1,-1)];break;default:var f=+o;if(0===f)return t;if(f>p){var v=n(f/10);return 0===v?t:v<=p?void 0===l[v-1]?e(o,1):l[v-1]+e(o,1):t}u=l[f-1]}return void 0===u?"":u})}}function Cu(){if(ku)return Ru;ku=1;var r=x(),t=it(),n=wr(),e=function(){if(Iu)return Pu;Iu=1;var r=a(),t=b(),n=r.RegExp,e=!t(function(){var r=!0;try{n(".","d")}catch(t){r=!1}var t={},e="",o=r?"dgimsy":"gimsy",i=function(r,n){Object.defineProperty(t,r,{get:function(){return e+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var f in r&&(u.hasIndices="d"),u)i(f,u[f]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(t)!==o||e!==o});return Pu={correct:e}}(),o=iu(),i=RegExp.prototype;return Ru=e.correct?function(r){return r.flags}:function(u){return e.correct||!n(i,u)||t(u,"flags")?u.flags:r(o,u)}}!function(){if(Mu)return zu;Mu=1;var r=function(){if(xu)return wu;xu=1;var r=w(),t=Function.prototype,n=t.apply,e=t.call;return wu="object"==typeof Reflect&&Reflect.apply||(r?e.bind(n):function(){return e.apply(n,arguments)}),wu}(),t=x(),n=sr(),e=function(){if(Su)return Ou;Su=1,fu();var r=x(),t=Kt(),n=uu(),e=b(),o=ft(),i=Et(),u=o("species"),f=RegExp.prototype;return Ou=function(a,c,l,s){var v=o(a),d=!e(function(){var r={};return r[v]=function(){return 7},7!==""[a](r)}),p=d&&!e(function(){var r=!1,t=/a/;if("split"===a){var n={};n[u]=function(){return t},(t={constructor:n,flags:""})[v]=/./[v]}return t.exec=function(){return r=!0,null},t[v](""),!r});if(!d||!p||l){var y=/./[v],h=c(v,""[a],function(t,e,o,i,u){var a=e.exec;return a===n||a===f.exec?d&&!u?{done:!0,value:r(y,e,o,i)}:{done:!0,value:r(t,o,e,i)}:{done:!1}});t(String.prototype,a,h[0]),t(f,v,h[1])}s&&i(f[v],"sham",!0)}}(),o=b(),i=Ot(),u=gr(),f=br(),a=pn(),c=hn(),l=Eo(),s=yr(),v=Du(),d=Ar(),p=_u(),y=Cu(),h=function(){if(Nu)return Lu;Nu=1;var r=x(),t=Ot(),n=gr(),e=vr(),o=uu(),i=TypeError;return Lu=function(u,f){var a=u.exec;if(n(a)){var c=r(a,u,f);return null!==c&&t(c),c}if("RegExp"===e(u))return r(o,u,f);throw new i("RegExp#exec called on incompatible receiver")}}(),g=ft()("replace"),m=Math.max,O=Math.min,S=n([].concat),E=n([].push),j=n("".indexOf),T=n("".slice),A=function(r){return void 0===r?r:String(r)},P="$0"==="a".replace(/./,"$0"),I=!!/./[g]&&""===/./[g]("a","$0");e("replace",function(n,e,o){var b=I?"$":"$0";return[function(r,n){var o=s(this),i=f(r)?d(r,g):void 0;return i?t(i,r,o,n):t(e,l(o),r,n)},function(t,n){var f=i(this),s=l(t);if("string"==typeof n&&-1===j(n,b)&&-1===j(n,"$<")){var d=o(e,f,s,n);if(d.done)return d.value}var g=u(n);g||(n=l(n));var w,x=l(y(f)),P=-1!==j(x,"g");P&&(w=-1!==j(x,"u"),f.lastIndex=0);for(var I,R=[];null!==(I=h(f,s))&&(E(R,I),P);){""===l(I[0])&&(f.lastIndex=v(s,c(f.lastIndex),w))}for(var k="",L=0,N=0;N<R.length;N++){for(var M,z=l((I=R[N])[0]),D=m(O(a(I.index),s.length),0),_=[],C=1;C<I.length;C++)E(_,A(I[C]));var F=I.groups;if(g){var B=S([z],_,D,s);void 0!==F&&E(B,F),M=l(r(n,void 0,B))}else M=p(z,s,D,_,F,n);D>=L&&(k+=T(s,L,D)+M,L=D+z.length)}return k+T(s,L)}]},!!o(function(){var r=/./;return r.exec=function(){var r=[];return r.groups={a:"7"},r},"7"!=="".replace(r,"$<a>")})||!P||I)}();var Fu,Bu,Hu={};function $u(r){return r.length?r[0].tagName.toLowerCase():""}function Gu(n){return t.Editor.nodes(n,{at:n.selection||void 0,match:function(t){return 1===r.DomEditor.findPath(n,t).length}})}return Bu||(Bu=1,function(){if(Fu)return Hu;Fu=1;var r=ne(),t=a();r({global:!0,forced:t.globalThis!==t},{globalThis:t})}()),n.append&&(n.fn.append=n.append),n.attr&&(n.fn.attr=n.attr),n.parent&&(n.fn.parent=n.parent),{renderElems:[{type:"list-item",renderElem:function(n,o,i){Fi.set(n,i);var u=n,f=u.level,a=void 0===f?0:f,c=u.ordered,l=void 0!==c&&c,s={margin:"5px 0 5px ".concat(20*a,"px"),display:"flex",alignItems:"flex-start"},v="";if(l){var d=function(n,e){var o=e,i=o.type,u=o.level,f=void 0===u?0:u,a=o.ordered,c=void 0!==a&&a,l=1,s=e,v=r.DomEditor.findPath(n,s);if(0===v[0])return 1;for(;v[0]>0;){var d=t.Path.previous(v),p=t.Editor.node(n,d);if(null==p)break;var y=p[0],h=y.level,g=void 0===h?0:h,b=y.type,m=y.ordered;if(b!==i)break;if(g<f)break;if(g===f){if(m!==c)break;l+=1}s=y,v=d}return l}(i,n);v="".concat(d,".")}else v=function(r){void 0===r&&(r=0);var t="";switch(r){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(a);var p=Bi(n);return e.jsx("div",{style:s},e.jsx("span",{contentEditable:!1,style:{marginRight:"0.5em",color:p},"data-w-e-reserve":!0},v),e.jsx("span",{style:{flex:"1",wordBreak:"break-word"}},o))}}],editorPlugin:function(n){var e=n.deleteBackward,o=n.handleTab,i=n.normalizeNode,u=n.insertBreak,f=n;return f.insertBreak=function(){var e=ye(t.Editor.nodes(n,{match:function(t){return r.DomEditor.checkNodeType(t,"list-item")},universal:!0}),1)[0];return e?""!==e[0].children[0].text?u():void t.Transforms.setNodes(f,{type:"paragraph",ordered:void 0,level:void 0}):u()},f.deleteBackward=function(o){var i=f.selection;if(null!=i)if(t.Range.isExpanded(i))e(o);else{var u=r.DomEditor.getSelectedNodeByType(f,"list-item");if(null!=u)if(0!==i.focus.offset)e(o);else{var a=u,c=a.level,l=void 0===c?0:c,s=a.ordered,v=void 0!==s&&s;if(l>0){var d=Hi(n,u,l-1);d&&d.ordered!==v?t.Transforms.setNodes(f,{level:l-1,ordered:!v}):t.Transforms.setNodes(f,{level:l-1})}else t.Transforms.setNodes(f,{type:"paragraph",ordered:void 0,level:void 0})}else e(o)}else e(o)},f.handleTab=function(){var n,e,i,u,a=f.selection;if(null!=a){if(t.Range.isCollapsed(a)){var c=r.DomEditor.getSelectedNodeByType(f,"list-item");if(null==c)return void o();if(0===a.focus.offset){var l=c.level,s=void 0===l?0:l;return void t.Transforms.setNodes(f,{level:s+1})}}if(t.Range.isExpanded(a)){var v=0,d=!1;try{for(var p=pe(Gu(f)),y=p.next();!y.done;y=p.next()){var h=ye(y.value,1)[0];"list-item"===r.DomEditor.getNodeType(h)?v+=1:d=!0}}catch(r){n={error:r}}finally{try{y&&!y.done&&(e=p.return)&&e.call(p)}finally{if(n)throw n.error}}if(d||v<=1)return void o();try{for(var g=pe(Gu(f)),b=g.next();!b.done;b=g.next()){var m=ye(b.value,2),w=(h=m[0],m[1]),x=h.level;s=void 0===x?0:x;t.Transforms.setNodes(f,{level:s+1},{at:w})}}catch(r){i={error:r}}finally{try{b&&!b.done&&(u=g.return)&&u.call(g)}finally{if(i)throw i.error}}}else o()}else o()},f.normalizeNode=function(n){var e=ye(n,2),o=e[0],u=e[1],a=r.DomEditor.getNodeType(o);return"bulleted-list"!==a&&"numbered-list"!==a||t.Transforms.unwrapNodes(f,{at:u}),i([o,u])},f},menus:[vu,du],elemsToHtml:[Wi],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(r,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(r,e,o){var i=n(r);0===(e=e.filter(function(r){return!!t.Text.isText(r)||!!o.isInline(r)})).length&&(e=[{text:i.text().replace(/\s+/gm," ")}]);var u=function(r){return"ol"===$u(r.parent())}(i),f=function(r){for(var t=0,n=r.parent(),e=$u(n);"ul"===e||"ol"===e;)e=$u(n=n.parent()),t+=1;return t-1}(i);return{type:"list-item",ordered:u,level:f,children:e}}}]}});
1
+ !function(r,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@wangeditor-next/core"),require("slate"),require("dom7"),require("snabbdom")):"function"==typeof define&&define.amd?define(["@wangeditor-next/core","slate","dom7","snabbdom"],t):(r="undefined"!=typeof globalThis?globalThis:r||self).WangEditorListModule=t(r.core,r.slate,r.$,r.snabbdom)}(this,function(r,t,n,e){"use strict";r.i18nAddResources("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),r.i18nAddResources("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var u,f,c={};function a(){if(f)return u;f=1;var r=function(r){return r&&r.Math===Math&&r};return u=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof o&&o)||r("object"==typeof u&&u)||function(){return this}()||Function("return this")()}var l,s,v,p,d,y,h,g,b={};function m(){return s?l:(s=1,l=function(r){try{return!!r()}catch(r){return!0}})}function w(){if(p)return v;p=1;var r=m();return v=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function O(){if(y)return d;y=1;var r=m();return d=!r(function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")})}function S(){if(g)return h;g=1;var r=O(),t=Function.prototype.call;return h=r?t.bind(t):function(){return t.apply(t,arguments)},h}var x,E,j,T,P,A,I,R,k,L,M,N,C,_,z,D,F,B,H,$,G,V,W,U,q,Y,K,X,J,Q,Z,rr,tr,nr,er,or,ir,ur,fr,cr,ar,lr={};function sr(){return j?E:(j=1,E=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}})}function vr(){if(P)return T;P=1;var r=O(),t=Function.prototype,n=t.call,e=r&&t.bind.bind(n,n);return T=r?e:function(r){return function(){return n.apply(r,arguments)}},T}function pr(){if(I)return A;I=1;var r=vr(),t=r({}.toString),n=r("".slice);return A=function(r){return n(t(r),8,-1)}}function dr(){if(k)return R;k=1;var r=vr(),t=m(),n=pr(),e=Object,o=r("".split);return R=t(function(){return!e("z").propertyIsEnumerable(0)})?function(r){return"String"===n(r)?o(r,""):e(r)}:e}function yr(){return M?L:(M=1,L=function(r){return null==r})}function hr(){if(C)return N;C=1;var r=yr(),t=TypeError;return N=function(n){if(r(n))throw new t("Can't call method on "+n);return n}}function gr(){if(z)return _;z=1;var r=dr(),t=hr();return _=function(n){return r(t(n))}}function br(){if(F)return D;F=1;var r="object"==typeof document&&document.all;return D=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(r){return"function"==typeof r}}function mr(){if(H)return B;H=1;var r=br();return B=function(t){return"object"==typeof t?null!==t:r(t)}}function wr(){if(G)return $;G=1;var r=a(),t=br();return $=function(n,e){return arguments.length<2?(o=r[n],t(o)?o:void 0):r[n]&&r[n][e];var o},$}function Or(){if(W)return V;W=1;var r=vr();return V=r({}.isPrototypeOf)}function Sr(){if(K)return Y;K=1;var r,t,n=a(),e=function(){if(q)return U;q=1;var r=a().navigator,t=r&&r.userAgent;return U=t?String(t):""}(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,f=u&&u.v8;return f&&(t=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!t&&e&&(!(r=e.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=e.match(/Chrome\/(\d+)/))&&(t=+r[1]),Y=t}function xr(){if(J)return X;J=1;var r=Sr(),t=m(),n=a().String;return X=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})}function Er(){if(Z)return Q;Z=1;var r=xr();return Q=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function jr(){if(tr)return rr;tr=1;var r=wr(),t=br(),n=Or(),e=Er(),o=Object;return rr=e?function(r){return"symbol"==typeof r}:function(e){var i=r("Symbol");return t(i)&&n(i.prototype,o(e))}}function Tr(){if(er)return nr;er=1;var r=String;return nr=function(t){try{return r(t)}catch(r){return"Object"}}}function Pr(){if(ir)return or;ir=1;var r=br(),t=Tr(),n=TypeError;return or=function(e){if(r(e))return e;throw new n(t(e)+" is not a function")}}function Ar(){if(fr)return ur;fr=1;var r=Pr(),t=yr();return ur=function(n,e){var o=n[e];return t(o)?void 0:r(o)}}var Ir,Rr,kr,Lr,Mr,Nr,Cr,_r,zr,Dr,Fr,Br,Hr,$r,Gr,Vr,Wr,Ur,qr,Yr,Kr,Xr,Jr,Qr,Zr={exports:{}};function rt(){return Rr?Ir:(Rr=1,Ir=!1)}function tt(){if(Lr)return kr;Lr=1;var r=a(),t=Object.defineProperty;return kr=function(n,e){try{t(r,n,{value:e,configurable:!0,writable:!0})}catch(t){r[n]=e}return e}}function nt(){if(Mr)return Zr.exports;Mr=1;var r=rt(),t=a(),n=tt(),e="__core-js_shared__",o=Zr.exports=t[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Zr.exports}function et(){if(Cr)return Nr;Cr=1;var r=nt();return Nr=function(t,n){return r[t]||(r[t]=n||{})}}function ot(){if(zr)return _r;zr=1;var r=hr(),t=Object;return _r=function(n){return t(r(n))}}function it(){if(Fr)return Dr;Fr=1;var r=vr(),t=ot(),n=r({}.hasOwnProperty);return Dr=Object.hasOwn||function(r,e){return n(t(r),e)}}function ut(){if(Hr)return Br;Hr=1;var r=vr(),t=0,n=Math.random(),e=r(1.1.toString);return Br=function(r){return"Symbol("+(void 0===r?"":r)+")_"+e(++t+n,36)}}function ft(){if(Gr)return $r;Gr=1;var r=a(),t=et(),n=it(),e=ut(),o=xr(),i=Er(),u=r.Symbol,f=t("wks"),c=i?u.for||u:u&&u.withoutSetter||e;return $r=function(r){return n(f,r)||(f[r]=o&&n(u,r)?u[r]:c("Symbol."+r)),f[r]}}function ct(){if(Wr)return Vr;Wr=1;var r=S(),t=mr(),n=jr(),e=Ar(),o=function(){if(ar)return cr;ar=1;var r=S(),t=br(),n=mr(),e=TypeError;return cr=function(o,i){var u,f;if("string"===i&&t(u=o.toString)&&!n(f=r(u,o)))return f;if(t(u=o.valueOf)&&!n(f=r(u,o)))return f;if("string"!==i&&t(u=o.toString)&&!n(f=r(u,o)))return f;throw new e("Can't convert object to primitive value")}}(),i=ft(),u=TypeError,f=i("toPrimitive");return Vr=function(i,c){if(!t(i)||n(i))return i;var a,l=e(i,f);if(l){if(void 0===c&&(c="default"),a=r(l,i,c),!t(a)||n(a))return a;throw new u("Can't convert object to primitive value")}return void 0===c&&(c="number"),o(i,c)}}function at(){if(qr)return Ur;qr=1;var r=ct(),t=jr();return Ur=function(n){var e=r(n,"string");return t(e)?e:e+""}}function lt(){if(Kr)return Yr;Kr=1;var r=a(),t=mr(),n=r.document,e=t(n)&&t(n.createElement);return Yr=function(r){return e?n.createElement(r):{}}}function st(){if(Jr)return Xr;Jr=1;var r=w(),t=m(),n=lt();return Xr=!r&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function vt(){if(Qr)return b;Qr=1;var r=w(),t=S(),n=function(){if(x)return lr;x=1;var r={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!r.call({1:2},1);return lr.f=n?function(r){var n=t(this,r);return!!n&&n.enumerable}:r,lr}(),e=sr(),o=gr(),i=at(),u=it(),f=st(),c=Object.getOwnPropertyDescriptor;return b.f=r?c:function(r,a){if(r=o(r),a=i(a),f)try{return c(r,a)}catch(r){}if(u(r,a))return e(!t(n.f,r,a),r[a])},b}var pt,dt,yt,ht,gt,bt,mt,wt={};function Ot(){if(dt)return pt;dt=1;var r=w(),t=m();return pt=r&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function St(){if(ht)return yt;ht=1;var r=mr(),t=String,n=TypeError;return yt=function(e){if(r(e))return e;throw new n(t(e)+" is not an object")}}function xt(){if(gt)return wt;gt=1;var r=w(),t=st(),n=Ot(),e=St(),o=at(),i=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c="enumerable",a="configurable",l="writable";return wt.f=r?n?function(r,t,n){if(e(r),t=o(t),e(n),"function"==typeof r&&"prototype"===t&&"value"in n&&l in n&&!n[l]){var i=f(r,t);i&&i[l]&&(r[t]=n.value,n={configurable:a in n?n[a]:i[a],enumerable:c in n?n[c]:i[c],writable:!1})}return u(r,t,n)}:u:function(r,n,f){if(e(r),n=o(n),e(f),t)try{return u(r,n,f)}catch(r){}if("get"in f||"set"in f)throw new i("Accessors not supported");return"value"in f&&(r[n]=f.value),r},wt}function Et(){if(mt)return bt;mt=1;var r=w(),t=xt(),n=sr();return bt=r?function(r,e,o){return t.f(r,e,n(1,o))}:function(r,t,n){return r[t]=n,r}}var jt,Tt,Pt,At,It,Rt,kt,Lt,Mt,Nt,Ct,_t,zt,Dt,Ft,Bt={exports:{}};function Ht(){if(Tt)return jt;Tt=1;var r=w(),t=it(),n=Function.prototype,e=r&&Object.getOwnPropertyDescriptor,o=t(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!r||r&&e(n,"name").configurable);return jt={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function $t(){if(At)return Pt;At=1;var r=vr(),t=br(),n=nt(),e=r(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(r){return e(r)}),Pt=n.inspectSource}function Gt(){if(Rt)return It;Rt=1;var r=a(),t=br(),n=r.WeakMap;return It=t(n)&&/native code/.test(String(n))}function Vt(){if(Lt)return kt;Lt=1;var r=et(),t=ut(),n=r("keys");return kt=function(r){return n[r]||(n[r]=t(r))}}function Wt(){return Nt?Mt:(Nt=1,Mt={})}function Ut(){if(_t)return Ct;_t=1;var r,t,n,e=Gt(),o=a(),i=mr(),u=Et(),f=it(),c=nt(),l=Vt(),s=Wt(),v="Object already initialized",p=o.TypeError,d=o.WeakMap;if(e||c.state){var y=c.state||(c.state=new d);y.get=y.get,y.has=y.has,y.set=y.set,r=function(r,t){if(y.has(r))throw new p(v);return t.facade=r,y.set(r,t),t},t=function(r){return y.get(r)||{}},n=function(r){return y.has(r)}}else{var h=l("state");s[h]=!0,r=function(r,t){if(f(r,h))throw new p(v);return t.facade=r,u(r,h,t),t},t=function(r){return f(r,h)?r[h]:{}},n=function(r){return f(r,h)}}return Ct={set:r,get:t,has:n,enforce:function(e){return n(e)?t(e):r(e,{})},getterFor:function(r){return function(n){var e;if(!i(n)||(e=t(n)).type!==r)throw new p("Incompatible receiver, "+r+" required");return e}}}}function qt(){if(zt)return Bt.exports;zt=1;var r=vr(),t=m(),n=br(),e=it(),o=w(),i=Ht().CONFIGURABLE,u=$t(),f=Ut(),c=f.enforce,a=f.get,l=String,s=Object.defineProperty,v=r("".slice),p=r("".replace),d=r([].join),y=o&&!t(function(){return 8!==s(function(){},"length",{value:8}).length}),h=String(String).split("String"),g=Bt.exports=function(r,t,n){"Symbol("===v(l(t),0,7)&&(t="["+p(l(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!e(r,"name")||i&&r.name!==t)&&(o?s(r,"name",{value:t,configurable:!0}):r.name=t),y&&n&&e(n,"arity")&&r.length!==n.arity&&s(r,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?o&&s(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(r){}var u=c(r);return e(u,"source")||(u.source=d(h,"string"==typeof t?t:"")),r};return Function.prototype.toString=g(function(){return n(this)&&a(this).source||u(this)},"toString"),Bt.exports}function Yt(){if(Ft)return Dt;Ft=1;var r=br(),t=xt(),n=qt(),e=tt();return Dt=function(o,i,u,f){f||(f={});var c=f.enumerable,a=void 0!==f.name?f.name:i;if(r(u)&&n(u,a,f),f.global)c?o[i]=u:e(i,u);else{try{f.unsafe?o[i]&&(c=!0):delete o[i]}catch(r){}c?o[i]=u:t.f(o,i,{value:u,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return o}}var Kt,Xt,Jt,Qt,Zt,rn,tn,nn,en,on,un,fn,cn,an,ln,sn,vn,pn={};function dn(){if(Qt)return Jt;Qt=1;var r=function(){if(Xt)return Kt;Xt=1;var r=Math.ceil,t=Math.floor;return Kt=Math.trunc||function(n){var e=+n;return(e>0?t:r)(e)}}();return Jt=function(t){var n=+t;return n!=n||0===n?0:r(n)}}function yn(){if(nn)return tn;nn=1;var r=dn(),t=Math.min;return tn=function(n){var e=r(n);return e>0?t(e,9007199254740991):0}}function hn(){if(on)return en;on=1;var r=yn();return en=function(t){return r(t.length)}}function gn(){if(fn)return un;fn=1;var r=gr(),t=function(){if(rn)return Zt;rn=1;var r=dn(),t=Math.max,n=Math.min;return Zt=function(e,o){var i=r(e);return i<0?t(i+o,0):n(i,o)}}(),n=hn(),e=function(e){return function(o,i,u){var f=r(o),c=n(f);if(0===c)return!e&&-1;var a,l=t(u,c);if(e&&i!=i){for(;c>l;)if((a=f[l++])!=a)return!0}else for(;c>l;l++)if((e||l in f)&&f[l]===i)return e||l||0;return!e&&-1}};return un={includes:e(!0),indexOf:e(!1)}}function bn(){if(an)return cn;an=1;var r=vr(),t=it(),n=gr(),e=gn().indexOf,o=Wt(),i=r([].push);return cn=function(r,u){var f,c=n(r),a=0,l=[];for(f in c)!t(o,f)&&t(c,f)&&i(l,f);for(;u.length>a;)t(c,f=u[a++])&&(~e(l,f)||i(l,f));return l}}function mn(){return sn?ln:(sn=1,ln=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function wn(){if(vn)return pn;vn=1;var r=bn(),t=mn().concat("length","prototype");return pn.f=Object.getOwnPropertyNames||function(n){return r(n,t)},pn}var On,Sn,xn,En,jn,Tn,Pn,An,In,Rn,kn,Ln,Mn,Nn,Cn,_n,zn,Dn,Fn,Bn,Hn,$n,Gn,Vn,Wn,Un,qn,Yn,Kn,Xn,Jn={};function Qn(){if(xn)return Sn;xn=1;var r=wr(),t=vr(),n=wn(),e=(On||(On=1,Jn.f=Object.getOwnPropertySymbols),Jn),o=St(),i=t([].concat);return Sn=r("Reflect","ownKeys")||function(r){var t=n.f(o(r)),u=e.f;return u?i(t,u(r)):t}}function Zn(){if(jn)return En;jn=1;var r=it(),t=Qn(),n=vt(),e=xt();return En=function(o,i,u){for(var f=t(i),c=e.f,a=n.f,l=0;l<f.length;l++){var s=f[l];r(o,s)||u&&r(u,s)||c(o,s,a(i,s))}}}function re(){if(Pn)return Tn;Pn=1;var r=m(),t=br(),n=/#|\.prototype\./,e=function(n,e){var c=i[o(n)];return c===f||c!==u&&(t(e)?r(e):!!e)},o=e.normalize=function(r){return String(r).replace(n,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",f=e.POLYFILL="P";return Tn=e}function te(){if(In)return An;In=1;var r=a(),t=vt().f,n=Et(),e=Yt(),o=tt(),i=Zn(),u=re();return An=function(f,c){var a,l,s,v,p,d=f.target,y=f.global,h=f.stat;if(a=y?r:h?r[d]||o(d,{}):r[d]&&r[d].prototype)for(l in c){if(v=c[l],s=f.dontCallGetSet?(p=t(a,l))&&p.value:a[l],!u(y?l:d+(h?".":"#")+l,f.forced)&&void 0!==s){if(typeof v==typeof s)continue;i(v,s)}(f.sham||s&&s.sham)&&n(v,"sham",!0),e(a,l,v,f)}}}function ne(){if(kn)return Rn;kn=1;var r=pr();return Rn=Array.isArray||function(t){return"Array"===r(t)}}function ee(){if(Mn)return Ln;Mn=1;var r=TypeError;return Ln=function(t){if(t>9007199254740991)throw new r("Maximum allowed index exceeded");return t}}function oe(){if(Cn)return Nn;Cn=1;var r=w(),t=xt(),n=sr();return Nn=function(e,o,i){r?t.f(e,o,n(0,i)):e[o]=i}}function ie(){if(Fn)return Dn;Fn=1;var r={};return r[ft()("toStringTag")]="z",Dn="[object z]"===String(r)}function ue(){if(Hn)return Bn;Hn=1;var r=ie(),t=br(),n=pr(),e=ft()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Bn=r?n:function(r){var u,f,c;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(f=function(r,t){try{return r[t]}catch(r){}}(u=o(r),e))?f:i?n(u):"Object"===(c=n(u))&&t(u.callee)?"Arguments":c}}function fe(){if(Gn)return $n;Gn=1;var r=vr(),t=m(),n=br(),e=ue(),o=wr(),i=$t(),u=function(){},f=o("Reflect","construct"),c=/^\s*(?:class|function)\b/,a=r(c.exec),l=!c.test(u),s=function(r){if(!n(r))return!1;try{return f(u,[],r),!0}catch(r){return!1}},v=function(r){if(!n(r))return!1;switch(e(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!a(c,i(r))}catch(r){return!0}};return v.sham=!0,$n=!f||t(function(){var r;return s(s.call)||!s(Object)||!s(function(){r=!0})||r})?v:s}function ce(){if(Wn)return Vn;Wn=1;var r=ne(),t=fe(),n=mr(),e=ft()("species"),o=Array;return Vn=function(i){var u;return r(i)&&(u=i.constructor,(t(u)&&(u===o||r(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?o:u}}function ae(){if(qn)return Un;qn=1;var r=ce();return Un=function(t,n){return new(r(t))(0===n?0:n)}}function le(){if(Kn)return Yn;Kn=1;var r=m(),t=ft(),n=Sr(),e=t("species");return Yn=function(t){return n>=51||!r(function(){var r=[];return(r.constructor={})[e]=function(){return{foo:1}},1!==r[t](Boolean).foo})}}!function(){if(Xn)return c;Xn=1;var r=te(),t=m(),n=ne(),e=mr(),o=ot(),i=hn(),u=ee(),f=oe(),a=function(){if(zn)return _n;zn=1;var r=w(),t=ne(),n=TypeError,e=Object.getOwnPropertyDescriptor,o=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(r){return r instanceof TypeError}}();return _n=o?function(r,o){if(t(r)&&!e(r,"length").writable)throw new n("Cannot set read only .length");return r.length=o}:function(r,t){return r.length=t}}(),l=ae(),s=le(),v=ft(),p=Sr(),d=v("isConcatSpreadable"),y=p>=51||!t(function(){var r=[];return r[d]=!1,r.concat()[0]!==r}),h=function(r){if(!e(r))return!1;var t=r[d];return void 0!==t?!!t:n(r)};r({target:"Array",proto:!0,arity:1,forced:!y||!s("concat")},{concat:function(r){var t,n,e,c,s,v=o(this),p=l(v,0),d=0;for(t=-1,e=arguments.length;t<e;t++)if(h(s=-1===t?v:arguments[t]))for(c=i(s),u(d+c),n=0;n<c;n++,d++)n in s&&f(p,d,s[n]);else u(d+1),f(p,d++,s);return a(p,d),p}})}();var se=function(r,t){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},se(r,t)};function ve(r,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=r}se(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function pe(r){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&r[t],e=0;if(n)return n.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function de(r,t){var n="function"==typeof Symbol&&r[Symbol.iterator];if(!n)return r;var e,o,i=n.call(r),u=[];try{for(;(void 0===t||t-- >0)&&!(e=i.next()).done;)u.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function ye(r,t,n){if(n||2===arguments.length)for(var e,o=0,i=t.length;o<i;o++)!e&&o in t||(e||(e=Array.prototype.slice.call(t,0,o)),e[o]=t[o]);return r.concat(e||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var he,ge,be,me,we,Oe,Se,xe,Ee,je,Te,Pe,Ae,Ie,Re,ke,Le,Me,Ne,Ce,_e,ze,De,Fe,Be,He,$e,Ge,Ve,We,Ue,qe,Ye,Ke,Xe,Je={};function Qe(){if(ge)return he;ge=1;var r=bn(),t=mn();return he=Object.keys||function(n){return r(n,t)}}function Ze(){if(we)return me;we=1;var r=wr();return me=r("document","documentElement")}function ro(){if(Se)return Oe;Se=1;var r,t=St(),n=function(){if(be)return Je;be=1;var r=w(),t=Ot(),n=xt(),e=St(),o=gr(),i=Qe();return Je.f=r&&!t?Object.defineProperties:function(r,t){e(r);for(var u,f=o(t),c=i(t),a=c.length,l=0;a>l;)n.f(r,u=c[l++],f[u]);return r},Je}(),e=mn(),o=Wt(),i=Ze(),u=lt(),f=Vt(),c="prototype",a="script",l=f("IE_PROTO"),s=function(){},v=function(r){return"<"+a+">"+r+"</"+a+">"},p=function(r){r.write(v("")),r.close();var t=r.parentWindow.Object;return r=null,t},d=function(){try{r=new ActiveXObject("htmlfile")}catch(r){}var t,n,o;d="undefined"!=typeof document?document.domain&&r?p(r):(n=u("iframe"),o="java"+a+":",n.style.display="none",i.appendChild(n),n.src=String(o),(t=n.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):p(r);for(var f=e.length;f--;)delete d[c][e[f]];return d()};return o[l]=!0,Oe=Object.create||function(r,e){var o;return null!==r?(s[c]=t(r),o=new s,s[c]=null,o[l]=r):o=d(),void 0===e?o:n.f(o,e)}}function to(){if(Ee)return xe;Ee=1;var r=ft(),t=ro(),n=xt().f,e=r("unscopables"),o=Array.prototype;return void 0===o[e]&&n(o,e,{configurable:!0,value:t(null)}),xe=function(r){o[e][r]=!0}}function no(){return Te?je:(Te=1,je={})}function eo(){if(Re)return Ie;Re=1;var r=it(),t=br(),n=ot(),e=Vt(),o=function(){if(Ae)return Pe;Ae=1;var r=m();return Pe=!r(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})}(),i=e("IE_PROTO"),u=Object,f=u.prototype;return Ie=o?u.getPrototypeOf:function(e){var o=n(e);if(r(o,i))return o[i];var c=o.constructor;return t(c)&&o instanceof c?c.prototype:o instanceof u?f:null}}function oo(){if(Le)return ke;Le=1;var r,t,n,e=m(),o=br(),i=mr(),u=ro(),f=eo(),c=Yt(),a=ft(),l=rt(),s=a("iterator"),v=!1;return[].keys&&("next"in(n=[].keys())?(t=f(f(n)))!==Object.prototype&&(r=t):v=!0),!i(r)||e(function(){var t={};return r[s].call(t)!==t})?r={}:l&&(r=u(r)),o(r[s])||c(r,s,function(){return this}),ke={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}}function io(){if(Ne)return Me;Ne=1;var r=xt().f,t=it(),n=ft()("toStringTag");return Me=function(e,o,i){e&&!i&&(e=e.prototype),e&&!t(e,n)&&r(e,n,{configurable:!0,value:o})}}function uo(){if(Be)return Fe;Be=1;var r=mr();return Fe=function(t){return r(t)||null===t}}function fo(){if($e)return He;$e=1;var r=uo(),t=String,n=TypeError;return He=function(e){if(r(e))return e;throw new n("Can't set "+t(e)+" as a prototype")}}function co(){if(Ve)return Ge;Ve=1;var r=function(){if(De)return ze;De=1;var r=vr(),t=Pr();return ze=function(n,e,o){try{return r(t(Object.getOwnPropertyDescriptor(n,e)[o]))}catch(r){}}}(),t=mr(),n=hr(),e=fo();return Ge=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,u={};try{(o=r(Object.prototype,"__proto__","set"))(u,[]),i=u instanceof Array}catch(r){}return function(r,u){return n(r),e(u),t(r)?(i?o(r,u):r.__proto__=u,r):r}}():void 0)}function ao(){if(Ue)return We;Ue=1;var r=te(),t=S(),n=rt(),e=Ht(),o=br(),i=function(){if(_e)return Ce;_e=1;var r=oo().IteratorPrototype,t=ro(),n=sr(),e=io(),o=no(),i=function(){return this};return Ce=function(u,f,c,a){var l=f+" Iterator";return u.prototype=t(r,{next:n(+!a,c)}),e(u,l,!1,!0),o[l]=i,u}}(),u=eo(),f=co(),c=io(),a=Et(),l=Yt(),s=ft(),v=no(),p=oo(),d=e.PROPER,y=e.CONFIGURABLE,h=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,b=s("iterator"),m="keys",w="values",O="entries",x=function(){return this};return We=function(e,s,p,S,E,j,T){i(p,s,S);var P,A,I,R=function(r){if(r===E&&C)return C;if(!g&&r&&r in M)return M[r];switch(r){case m:case w:case O:return function(){return new p(this,r)}}return function(){return new p(this)}},k=s+" Iterator",L=!1,M=e.prototype,N=M[b]||M["@@iterator"]||E&&M[E],C=!g&&N||R(E),_="Array"===s&&M.entries||N;if(_&&(P=u(_.call(new e)))!==Object.prototype&&P.next&&(n||u(P)===h||(f?f(P,h):o(P[b])||l(P,b,x)),c(P,k,!0,!0),n&&(v[k]=x)),d&&E===w&&N&&N.name!==w&&(!n&&y?a(M,"name",w):(L=!0,C=function(){return t(N,this)})),E)if(A={values:R(w),keys:j?C:R(m),entries:R(O)},T)for(I in A)(g||L||!(I in M))&&l(M,I,A[I]);else r({target:s,proto:!0,forced:g||L},A);return n&&!T||M[b]===C||l(M,b,C,{name:E}),v[s]=C,A}}function lo(){return Ye?qe:(Ye=1,qe=function(r,t){return{value:r,done:t}})}function so(){if(Xe)return Ke;Xe=1;var r=gr(),t=to(),n=no(),e=Ut(),o=xt().f,i=ao(),u=lo(),f=rt(),c=w(),a="Array Iterator",l=e.set,s=e.getterFor(a);Ke=i(Array,"Array",function(t,n){l(this,{type:a,target:r(t),index:0,kind:n})},function(){var r=s(this),t=r.target,n=r.index++;if(!t||n>=t.length)return r.target=null,u(void 0,!0);switch(r.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)},"values");var v=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!f&&c&&"values"!==v.name)try{o(v,"name",{value:"values"})}catch(r){}return Ke}so();var vo,po,yo,ho={};!function(){if(yo)return ho;yo=1;var r=ie(),t=Yt(),n=function(){if(po)return vo;po=1;var r=ie(),t=ue();return vo=r?{}.toString:function(){return"[object "+t(this)+"]"}}();r||t(Object.prototype,"toString",n,{unsafe:!0})}();var go,bo,mo,wo,Oo,So={};function xo(){if(bo)return go;bo=1;var r=ue(),t=String;return go=function(n){if("Symbol"===r(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}function Eo(){if(wo)return mo;wo=1;var r=vr(),t=dn(),n=xo(),e=hr(),o=r("".charAt),i=r("".charCodeAt),u=r("".slice),f=function(r){return function(f,c){var a,l,s=n(e(f)),v=t(c),p=s.length;return v<0||v>=p?r?"":void 0:(a=i(s,v))<55296||a>56319||v+1===p||(l=i(s,v+1))<56320||l>57343?r?o(s,v):a:r?u(s,v,v+2):l-56320+(a-55296<<10)+65536}};return mo={codeAt:f(!1),charAt:f(!0)}}!function(){if(Oo)return So;Oo=1;var r=Eo().charAt,t=xo(),n=Ut(),e=ao(),o=lo(),i="String Iterator",u=n.set,f=n.getterFor(i);e(String,"String",function(r){u(this,{type:i,string:t(r),index:0})},function(){var t,n=f(this),e=n.string,i=n.index;return i>=e.length?o(void 0,!0):(t=r(e,i),n.index+=t.length,o(t,!1))})}();var jo,To,Po,Ao,Io={};function Ro(){if(To)return jo;To=1;var r=m();return jo=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})}function ko(){if(Ao)return Po;Ao=1;var r=Yt();return Po=function(t,n,e){for(var o in n)r(t,o,n[o],e);return t}}var Lo,Mo,No,Co,_o,zo,Do,Fo,Bo,Ho,$o,Go,Vo,Wo,Uo,qo,Yo,Ko,Xo,Jo,Qo,Zo,ri,ti,ni,ei,oi,ii,ui,fi,ci,ai,li,si,vi,pi,di={exports:{}},yi={};function hi(){if(Mo)return Lo;Mo=1;var r=vr();return Lo=r([].slice)}function gi(){if(No)return yi;No=1;var r=pr(),t=gr(),n=wn().f,e=hi(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return yi.f=function(i){return o&&"Window"===r(i)?function(r){try{return n(r)}catch(r){return e(o)}}(i):n(t(i))},yi}function bi(){if(Do)return zo;Do=1;var r=m(),t=mr(),n=pr(),e=function(){if(_o)return Co;_o=1;var r=m();return Co=r(function(){if("function"==typeof ArrayBuffer){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}})}(),o=Object.isExtensible,i=r(function(){});return zo=i||e?function(r){return!!t(r)&&((!e||"ArrayBuffer"!==n(r))&&(!o||o(r)))}:o}function mi(){if(Fo)return di.exports;Fo=1;var r=te(),t=vr(),n=Wt(),e=mr(),o=it(),i=xt().f,u=wn(),f=gi(),c=bi(),a=ut(),l=Ro(),s=!1,v=a("meta"),p=0,d=function(r){i(r,v,{value:{objectID:"O"+p++,weakData:{}}})},y=di.exports={enable:function(){y.enable=function(){},s=!0;var n=u.f,e=t([].splice),o={};o[v]=1,n(o).length&&(u.f=function(r){for(var t=n(r),o=0,i=t.length;o<i;o++)if(t[o]===v){e(t,o,1);break}return t},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(r,t){if(!e(r))return"symbol"==typeof r?r:("string"==typeof r?"S":"P")+r;if(!o(r,v)){if(!c(r))return"F";if(!t)return"E";d(r)}return r[v].objectID},getWeakData:function(r,t){if(!o(r,v)){if(!c(r))return!0;if(!t)return!1;d(r)}return r[v].weakData},onFreeze:function(r){return l&&s&&c(r)&&!o(r,v)&&d(r),r}};return n[v]=!0,di.exports}function wi(){if(Go)return $o;Go=1;var r=function(){if(Ho)return Bo;Ho=1;var r=pr(),t=vr();return Bo=function(n){if("Function"===r(n))return t(n)}}(),t=Pr(),n=O(),e=r(r.bind);return $o=function(r,o){return t(r),void 0===o?r:n?e(r,o):function(){return r.apply(o,arguments)}},$o}function Oi(){if(Wo)return Vo;Wo=1;var r=ft(),t=no(),n=r("iterator"),e=Array.prototype;return Vo=function(r){return void 0!==r&&(t.Array===r||e[n]===r)}}function Si(){if(qo)return Uo;qo=1;var r=ue(),t=Ar(),n=yr(),e=no(),o=ft()("iterator");return Uo=function(i){if(!n(i))return t(i,o)||t(i,"@@iterator")||e[r(i)]}}function xi(){if(Ko)return Yo;Ko=1;var r=S(),t=Pr(),n=St(),e=Tr(),o=Si(),i=TypeError;return Yo=function(u,f){var c=arguments.length<2?o(u):f;if(t(c))return n(r(c,u));throw new i(e(u)+" is not iterable")},Yo}function Ei(){if(Jo)return Xo;Jo=1;var r=S(),t=St(),n=Ar();return Xo=function(e,o,i){var u,f;t(e);try{if(!(u=n(e,"return"))){if("throw"===o)throw i;return i}u=r(u,e)}catch(r){f=!0,u=r}if("throw"===o)throw i;if(f)throw u;return t(u),i}}function ji(){if(Zo)return Qo;Zo=1;var r=wi(),t=S(),n=St(),e=Tr(),o=Oi(),i=hn(),u=Or(),f=xi(),c=Si(),a=Ei(),l=TypeError,s=function(r,t){this.stopped=r,this.result=t},v=s.prototype;return Qo=function(p,d,y){var h,g,b,m,w,O,S,x=y&&y.that,E=!(!y||!y.AS_ENTRIES),j=!(!y||!y.IS_RECORD),T=!(!y||!y.IS_ITERATOR),P=!(!y||!y.INTERRUPTED),A=r(d,x),I=function(r){var t=h;return h=void 0,t&&a(t,"normal"),new s(!0,r)},R=function(r){return E?(n(r),P?A(r[0],r[1],I):A(r[0],r[1])):P?A(r,I):A(r)};if(j)h=p.iterator;else if(T)h=p;else{if(!(g=c(p)))throw new l(e(p)+" is not iterable");if(o(g)){for(b=0,m=i(p);m>b;b++)if((w=R(p[b]))&&u(v,w))return w;return new s(!1)}h=f(p,g)}for(O=j?p.next:h.next;!(S=t(O,h)).done;){var k=S.value;try{w=R(k)}catch(r){if(!h)throw r;a(h,"throw",r)}if("object"==typeof w&&w&&u(v,w))return w}return new s(!1)}}function Ti(){if(ti)return ri;ti=1;var r=Or(),t=TypeError;return ri=function(n,e){if(r(e,n))return n;throw new t("Incorrect invocation")}}function Pi(){if(ei)return ni;ei=1;var r=ft()("iterator"),t=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){t=!0}};e[r]=function(){return this},Array.from(e,function(){throw 2})}catch(r){}return ni=function(n,e){try{if(!e&&!t)return!1}catch(r){return!1}var o=!1;try{var i={};i[r]=function(){return{next:function(){return{done:o=!0}}}},n(i)}catch(r){}return o}}function Ai(){if(ii)return oi;ii=1;var r=br(),t=mr(),n=co();return oi=function(e,o,i){var u,f;return n&&r(u=o.constructor)&&u!==i&&t(f=u.prototype)&&f!==i.prototype&&n(e,f),e}}function Ii(){if(fi)return ui;fi=1;var r=te(),t=a(),n=vr(),e=re(),o=Yt(),i=mi(),u=ji(),f=Ti(),c=br(),l=yr(),s=mr(),v=m(),p=Pi(),d=io(),y=Ai();return ui=function(a,h,g){var b=-1!==a.indexOf("Map"),m=-1!==a.indexOf("Weak"),w=b?"set":"add",O=t[a],S=O&&O.prototype,x=O,E={},j=function(r){var t=n(S[r]);o(S,r,"add"===r?function(r){return t(this,0===r?0:r),this}:"delete"===r?function(r){return!(m&&!s(r))&&t(this,0===r?0:r)}:"get"===r?function(r){return m&&!s(r)?void 0:t(this,0===r?0:r)}:"has"===r?function(r){return!(m&&!s(r))&&t(this,0===r?0:r)}:function(r,n){return t(this,0===r?0:r,n),this})};if(e(a,!c(O)||!(m||S.forEach&&!v(function(){(new O).entries().next()}))))x=g.getConstructor(h,a,b,w),i.enable();else if(e(a,!0)){var T=new x,P=T[w](m?{}:-0,1)!==T,A=v(function(){T.has(1)}),I=p(function(r){new O(r)}),R=!m&&v(function(){for(var r=new O,t=5;t--;)r[w](t,t);return!r.has(-0)});I||((x=h(function(r,t){f(r,S);var n=y(new O,r,x);return l(t)||u(t,n[w],{that:n,AS_ENTRIES:b}),n})).prototype=S,S.constructor=x),(A||R)&&(j("delete"),j("has"),b&&j("get")),(R||P)&&j(w),m&&S.clear&&delete S.clear}return E[a]=x,r({global:!0,constructor:!0,forced:x!==O},E),d(x,a),m||g.setStrong(x,a,b),x}}function Ri(){if(ai)return ci;ai=1;var r=wi(),t=dr(),n=ot(),e=hn(),o=ae(),i=oe(),u=function(u){var f=1===u,c=2===u,a=3===u,l=4===u,s=6===u,v=7===u,p=5===u||s;return function(d,y,h){for(var g,b,m=n(d),w=t(m),O=e(w),S=r(y,h),x=0,E=0,j=f?o(d,O):c||v?o(d,0):void 0;O>x;x++)if((p||x in w)&&(b=S(g=w[x],x,m),u))if(f)i(j,x,b);else if(b)switch(u){case 3:return!0;case 5:return g;case 6:return x;case 2:i(j,E++,g)}else switch(u){case 4:return!1;case 7:i(j,E++,g)}return s?-1:a||l?l:j}};return ci={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}function ki(){if(si)return li;si=1;var r=vr(),t=ko(),n=mi().getWeakData,e=Ti(),o=St(),i=yr(),u=mr(),f=ji(),c=Ri(),a=it(),l=Ut(),s=l.set,v=l.getterFor,p=c.find,d=c.findIndex,y=r([].splice),h=0,g=function(r){return r.frozen||(r.frozen=new b)},b=function(){this.entries=[]},m=function(r,t){return p(r.entries,function(r){return r[0]===t})};return b.prototype={get:function(r){var t=m(this,r);if(t)return t[1]},has:function(r){return!!m(this,r)},set:function(r,t){var n=m(this,r);n?n[1]=t:this.entries.push([r,t])},delete:function(r){var t=d(this.entries,function(t){return t[0]===r});return~t&&y(this.entries,t,1),!!~t}},li={getConstructor:function(r,c,l,p){var d=r(function(r,t){e(r,y),s(r,{type:c,id:h++,frozen:null}),i(t)||f(t,r[p],{that:r,AS_ENTRIES:l})}),y=d.prototype,b=v(c),m=function(r,t,e){var i=b(r),u=n(o(t),!0);return!0===u?g(i).set(t,e):u[i.id]=e,r};return t(y,{delete:function(r){var t=b(this);if(!u(r))return!1;var e=n(r);return!0===e?g(t).delete(r):e&&a(e,t.id)&&delete e[t.id]},has:function(r){var t=b(this);if(!u(r))return!1;var e=n(r);return!0===e?g(t).has(r):e&&a(e,t.id)}}),t(y,l?{get:function(r){var t=b(this);if(u(r)){var e=n(r);if(!0===e)return g(t).get(r);if(e)return e[t.id]}},set:function(r,t){return m(this,r,t)}}:{add:function(r){return m(this,r,!0)}}),d}}}pi||(pi=1,function(){if(vi)return Io;vi=1;var r,t=Ro(),n=a(),e=vr(),o=ko(),i=mi(),u=Ii(),f=ki(),c=mr(),l=Ut().enforce,s=m(),v=Gt(),p=Object,d=Array.isArray,y=p.isExtensible,h=p.isFrozen,g=p.isSealed,b=p.freeze,w=p.seal,O=!n.ActiveXObject&&"ActiveXObject"in n,S=function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},x=u("WeakMap",S,f),E=x.prototype,j=e(E.set);if(v)if(O){r=f.getConstructor(S,"WeakMap",!0),i.enable();var T=e(E.delete),P=e(E.has),A=e(E.get);o(E,{delete:function(t){if(c(t)&&!y(t)){var n=l(this);return n.frozen||(n.frozen=new r),T(this,t)||n.frozen.delete(t)}return T(this,t)},has:function(t){if(c(t)&&!y(t)){var n=l(this);return n.frozen||(n.frozen=new r),P(this,t)||n.frozen.has(t)}return P(this,t)},get:function(t){if(c(t)&&!y(t)){var n=l(this);return n.frozen||(n.frozen=new r),P(this,t)?A(this,t):n.frozen.get(t)}return A(this,t)},set:function(t,n){if(c(t)&&!y(t)){var e=l(this);e.frozen||(e.frozen=new r),P(this,t)?j(this,t,n):e.frozen.set(t,n)}else j(this,t,n);return this}})}else t&&s(function(){var r=b([]);return j(new x,r,1),!h(r)})&&o(E,{set:function(r,t){var n;return d(r)&&(h(r)?n=b:g(r)&&(n=w)),j(this,r,t),n&&n(r),this}})}());var Li,Mi,Ni,Ci,_i,zi={};!function(){if(_i)return zi;_i=1;var r=a(),t=Mi?Li:(Mi=1,Li={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}),n=function(){if(Ci)return Ni;Ci=1;var r=lt()("span").classList,t=r&&r.constructor&&r.constructor.prototype;return Ni=t===Object.prototype?void 0:t}(),e=so(),o=Et(),i=io(),u=ft()("iterator"),f=e.values,c=function(r,n){if(r){if(r[u]!==f)try{o(r,u,f)}catch(t){r[u]=f}if(i(r,n,!0),t[n])for(var c in e)if(r[c]!==e[c])try{o(r,c,e[c])}catch(t){r[c]=e[c]}}};for(var l in t)c(r[l]&&r[l].prototype,l);c(n,"DOMTokenList")}();var Di=new WeakMap;function Fi(r){var n,e=r.children||[],o=e.length;if(0===o)return"";for(var i=0;i<o&&!n;i+=1){var u=e[i];t.Text.isText(u)&&(n=u)}return null==n?"":n.color||""}function Bi(n,e,o){for(var i=e.type,u=function(r,t){var n={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&t.indexOf(e)<0&&(n[e]=r[e]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(r);o<e.length;o++)t.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(r,e[o])&&(n[e[o]]=r[e[o]])}return n}(e,["type"]),f=void 0!==o?o:u.level||0,c=r.DomEditor.findPath(n,e);;){if(0===c.length||0===c[c.length-1])return null;c=t.Path.previous(c);var a=t.Editor.node(n,c);if(!a)return null;var l=de(a,1)[0],s=l.level,v=void 0===s?0:s;if(r.DomEditor.getNodeType(l)!==i)return null;if(v===f)return l}}function Hi(r,t,n){var e=Bi(r,t,n);return!!e&&e.ordered===t.ordered}var $i=[];var Gi,Vi,Wi,Ui,qi,Yi,Ki,Xi,Ji={type:"list-item",elemToHtml:function(n,e){var o="",i="",u=n.ordered,f=void 0!==u&&u?"ol":"ul",c=function(n){var e=Di.get(n);if(null==e)return 0;var o=n,i=o.type,u=o.ordered,f=void 0!==u&&u,c=o.level,a=void 0===c?0:c,l=r.DomEditor.findPath(e,n);if(0===l[0])return a+1;var s=t.Path.previous(l),v=t.Editor.node(e,s);if(!v)return 0;var p=de(v,1)[0];if(r.DomEditor.getNodeType(p)!==i)return a+1;var d=p,y=d.ordered,h=void 0!==y&&y,g=d.level,b=void 0===g?0:g;return b<a?a-b:b>a?Hi(e,n)?0:1:b===a?h===f?0:1:0}(n);if(c>0)for(var a=0;a<c;a+=1)o+="<".concat(f,">"),$i.push(f);var l=function(n){var e=Di.get(n);if(null==e)return 0;var o=n,i=o.type,u=o.ordered,f=void 0!==u&&u,c=o.level,a=void 0===c?0:c,l=r.DomEditor.findPath(e,n);if(l[0]===e.children.length-1)return a+1;var s=t.Path.next(l),v=t.Editor.node(e,s);if(!v)return 0;var p=de(v,1)[0];if(r.DomEditor.getNodeType(p)!==i)return a+1;var d=p,y=d.ordered,h=void 0!==y&&y,g=d.level,b=void 0===g?0:g;return b<a?Hi(e,p)?a-b:a-b+1:b>a?0:b===a?h===f?0:1:0}(n);if(l>0)for(a=0;a<l;a+=1){var s=$i.pop();i+="</".concat(s,">")}var v=Fi(n),p=v?' style="color:'.concat(v,'"'):"";return{html:"<li".concat(p,">").concat(e,"</li>"),prefix:o,suffix:i}}};function Qi(){return Vi?Gi:(Vi=1,Gi=function(r){try{return!!r()}catch(r){return!0}})}function Zi(){return Ui?Wi:(Ui=1,Wi=!Qi()(function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")}))}function ru(){if(Yi)return qi;Yi=1;var r=Zi(),t=Function.prototype,n=t.call,e=r&&t.bind.bind(n,n);return qi=r?e:function(r){return function(){return n.apply(r,arguments)}},qi}function tu(){return Xi?Ki:(Xi=1,Ki=ru()({}.isPrototypeOf))}var nu,eu,ou,iu,uu,fu,cu,au,lu,su,vu={};function pu(){if(eu)return nu;eu=1;var r=function(r){return r&&r.Math===Math&&r};return nu=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof o&&o)||r("object"==typeof nu&&nu)||function(){return this}()||Function("return this")()}function du(){if(iu)return ou;iu=1;var r=Zi(),t=Function.prototype,n=t.apply,e=t.call;return ou="object"==typeof Reflect&&Reflect.apply||(r?e.bind(n):function(){return e.apply(n,arguments)}),ou}function yu(){if(fu)return uu;fu=1;var r=ru(),t=r({}.toString),n=r("".slice);return uu=function(r){return n(t(r),8,-1)}}function hu(){if(au)return cu;au=1;var r=yu(),t=ru();return cu=function(n){if("Function"===r(n))return t(n)}}function gu(){if(su)return lu;su=1;var r="object"==typeof document&&document.all;return lu=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(r){return"function"==typeof r}}var bu,mu,wu,Ou,Su={};function xu(){return mu?bu:(mu=1,bu=!Qi()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function Eu(){if(Ou)return wu;Ou=1;var r=Zi(),t=Function.prototype.call;return wu=r?t.bind(t):function(){return t.apply(t,arguments)},wu}var ju,Tu,Pu,Au,Iu,Ru,ku,Lu,Mu,Nu,Cu,_u,zu,Du,Fu,Bu,Hu,$u,Gu,Vu,Wu,Uu,qu,Yu,Ku,Xu,Ju,Qu,Zu,rf,tf,nf,ef,of,uf,ff={};function cf(){if(ju)return ff;ju=1;var r={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!r.call({1:2},1);return ff.f=n?function(r){var n=t(this,r);return!!n&&n.enumerable}:r,ff}function af(){return Pu?Tu:(Pu=1,Tu=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}})}function lf(){if(Iu)return Au;Iu=1;var r=ru(),t=Qi(),n=yu(),e=Object,o=r("".split);return Au=t(function(){return!e("z").propertyIsEnumerable(0)})?function(r){return"String"===n(r)?o(r,""):e(r)}:e}function sf(){return ku?Ru:(ku=1,Ru=function(r){return null==r})}function vf(){if(Mu)return Lu;Mu=1;var r=sf(),t=TypeError;return Lu=function(n){if(r(n))throw new t("Can't call method on "+n);return n}}function pf(){if(Cu)return Nu;Cu=1;var r=lf(),t=vf();return Nu=function(n){return r(t(n))}}function df(){if(zu)return _u;zu=1;var r=gu();return _u=function(t){return"object"==typeof t?null!==t:r(t)}}function yf(){return Fu?Du:(Fu=1,Du={})}function hf(){if(Hu)return Bu;Hu=1;var r=yf(),t=pu(),n=gu(),e=function(r){return n(r)?r:void 0};return Bu=function(n,o){return arguments.length<2?e(r[n])||e(t[n]):r[n]&&r[n][o]||t[n]&&t[n][o]},Bu}function gf(){if(Gu)return $u;Gu=1;var r=pu().navigator,t=r&&r.userAgent;return $u=t?String(t):""}function bf(){if(Wu)return Vu;Wu=1;var r,t,n=pu(),e=gf(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,f=u&&u.v8;return f&&(t=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!t&&e&&(!(r=e.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=e.match(/Chrome\/(\d+)/))&&(t=+r[1]),Vu=t}function mf(){if(qu)return Uu;qu=1;var r=bf(),t=Qi(),n=pu().String;return Uu=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})}function wf(){return Ku?Yu:(Ku=1,Yu=mf()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Of(){if(Ju)return Xu;Ju=1;var r=hf(),t=gu(),n=tu(),e=Object;return Xu=wf()?function(r){return"symbol"==typeof r}:function(o){var i=r("Symbol");return t(i)&&n(i.prototype,e(o))}}function Sf(){if(Zu)return Qu;Zu=1;var r=String;return Qu=function(t){try{return r(t)}catch(r){return"Object"}}}function xf(){if(tf)return rf;tf=1;var r=gu(),t=Sf(),n=TypeError;return rf=function(e){if(r(e))return e;throw new n(t(e)+" is not a function")}}function Ef(){if(ef)return nf;ef=1;var r=xf(),t=sf();return nf=function(n,e){var o=n[e];return t(o)?void 0:r(o)}}function jf(){if(uf)return of;uf=1;var r=Eu(),t=gu(),n=df(),e=TypeError;return of=function(o,i){var u,f;if("string"===i&&t(u=o.toString)&&!n(f=r(u,o)))return f;if(t(u=o.valueOf)&&!n(f=r(u,o)))return f;if("string"!==i&&t(u=o.toString)&&!n(f=r(u,o)))return f;throw new e("Can't convert object to primitive value")}}var Tf,Pf,Af,If,Rf,kf,Lf,Mf,Nf,Cf,_f,zf,Df,Ff,Bf,Hf,$f,Gf,Vf,Wf,Uf,qf,Yf,Kf,Xf,Jf,Qf,Zf,rc={exports:{}};function tc(){return Pf?Tf:(Pf=1,Tf=!0)}function nc(){if(If)return Af;If=1;var r=pu(),t=Object.defineProperty;return Af=function(n,e){try{t(r,n,{value:e,configurable:!0,writable:!0})}catch(t){r[n]=e}return e}}function ec(){if(Rf)return rc.exports;Rf=1;var r=tc(),t=pu(),n=nc(),e="__core-js_shared__",o=rc.exports=t[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),rc.exports}function oc(){if(Lf)return kf;Lf=1;var r=ec();return kf=function(t,n){return r[t]||(r[t]=n||{})}}function ic(){if(Nf)return Mf;Nf=1;var r=vf(),t=Object;return Mf=function(n){return t(r(n))}}function uc(){if(_f)return Cf;_f=1;var r=ru(),t=ic(),n=r({}.hasOwnProperty);return Cf=Object.hasOwn||function(r,e){return n(t(r),e)}}function fc(){if(Df)return zf;Df=1;var r=ru(),t=0,n=Math.random(),e=r(1.1.toString);return zf=function(r){return"Symbol("+(void 0===r?"":r)+")_"+e(++t+n,36)}}function cc(){if(Bf)return Ff;Bf=1;var r=pu(),t=oc(),n=uc(),e=fc(),o=mf(),i=wf(),u=r.Symbol,f=t("wks"),c=i?u.for||u:u&&u.withoutSetter||e;return Ff=function(r){return n(f,r)||(f[r]=o&&n(u,r)?u[r]:c("Symbol."+r)),f[r]}}function ac(){if($f)return Hf;$f=1;var r=Eu(),t=df(),n=Of(),e=Ef(),o=jf(),i=TypeError,u=cc()("toPrimitive");return Hf=function(f,c){if(!t(f)||n(f))return f;var a,l=e(f,u);if(l){if(void 0===c&&(c="default"),a=r(l,f,c),!t(a)||n(a))return a;throw new i("Can't convert object to primitive value")}return void 0===c&&(c="number"),o(f,c)}}function lc(){if(Vf)return Gf;Vf=1;var r=ac(),t=Of();return Gf=function(n){var e=r(n,"string");return t(e)?e:e+""}}function sc(){if(Uf)return Wf;Uf=1;var r=pu(),t=df(),n=r.document,e=t(n)&&t(n.createElement);return Wf=function(r){return e?n.createElement(r):{}}}function vc(){if(Yf)return qf;Yf=1;var r=xu(),t=Qi(),n=sc();return qf=!r&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function pc(){if(Kf)return Su;Kf=1;var r=xu(),t=Eu(),n=cf(),e=af(),o=pf(),i=lc(),u=uc(),f=vc(),c=Object.getOwnPropertyDescriptor;return Su.f=r?c:function(r,a){if(r=o(r),a=i(a),f)try{return c(r,a)}catch(r){}if(u(r,a))return e(!t(n.f,r,a),r[a])},Su}function dc(){if(Jf)return Xf;Jf=1;var r=Qi(),t=gu(),n=/#|\.prototype\./,e=function(n,e){var c=i[o(n)];return c===f||c!==u&&(t(e)?r(e):!!e)},o=e.normalize=function(r){return String(r).replace(n,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",f=e.POLYFILL="P";return Xf=e}function yc(){if(Zf)return Qf;Zf=1;var r=hu(),t=xf(),n=Zi(),e=r(r.bind);return Qf=function(r,o){return t(r),void 0===o?r:n?e(r,o):function(){return r.apply(o,arguments)}},Qf}var hc,gc,bc,mc,wc,Oc,Sc,xc,Ec,jc,Tc,Pc,Ac,Ic,Rc,kc,Lc,Mc,Nc,Cc,_c,zc,Dc,Fc,Bc,Hc,$c,Gc,Vc={};function Wc(){return gc?hc:(gc=1,hc=xu()&&Qi()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function Uc(){if(mc)return bc;mc=1;var r=df(),t=String,n=TypeError;return bc=function(e){if(r(e))return e;throw new n(t(e)+" is not an object")}}function qc(){if(wc)return Vc;wc=1;var r=xu(),t=vc(),n=Wc(),e=Uc(),o=lc(),i=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c="enumerable",a="configurable",l="writable";return Vc.f=r?n?function(r,t,n){if(e(r),t=o(t),e(n),"function"==typeof r&&"prototype"===t&&"value"in n&&l in n&&!n[l]){var i=f(r,t);i&&i[l]&&(r[t]=n.value,n={configurable:a in n?n[a]:i[a],enumerable:c in n?n[c]:i[c],writable:!1})}return u(r,t,n)}:u:function(r,n,f){if(e(r),n=o(n),e(f),t)try{return u(r,n,f)}catch(r){}if("get"in f||"set"in f)throw new i("Accessors not supported");return"value"in f&&(r[n]=f.value),r},Vc}function Yc(){if(Sc)return Oc;Sc=1;var r=xu(),t=qc(),n=af();return Oc=r?function(r,e,o){return t.f(r,e,n(1,o))}:function(r,t,n){return r[t]=n,r}}function Kc(){if(Ec)return xc;Ec=1;var r=pu(),t=du(),n=hu(),e=gu(),o=pc().f,i=dc(),u=yf(),f=yc(),c=Yc(),a=uc(),l=function(r){var n=function(e,o,i){if(this instanceof n){switch(arguments.length){case 0:return new r;case 1:return new r(e);case 2:return new r(e,o)}return new r(e,o,i)}return t(r,this,arguments)};return n.prototype=r.prototype,n};return xc=function(t,s){var v,p,d,y,h,g,b,m,w,O=t.target,S=t.global,x=t.stat,E=t.proto,j=S?r:x?r[O]:r[O]&&r[O].prototype,T=S?u:u[O]||c(u,O,{})[O],P=T.prototype;for(y in s)p=!(v=i(S?y:O+(x?".":"#")+y,t.forced))&&j&&a(j,y),g=T[y],p&&(b=t.dontCallGetSet?(w=o(j,y))&&w.value:j[y]),h=p&&b?b:s[y],(v||E||typeof g!=typeof h)&&(m=t.bind&&p?f(h,r):t.wrap&&p?l(h):E&&e(h)?n(h):h,(t.sham||h&&h.sham||g&&g.sham)&&c(m,"sham",!0),c(T,y,m),E&&(a(u,d=O+"Prototype")||c(u,d,{}),c(u[d],y,h),t.real&&P&&(v||!P[y])&&c(P,y,h)))}}function Xc(){if(Tc)return jc;Tc=1;var r=Math.ceil,t=Math.floor;return jc=Math.trunc||function(n){var e=+n;return(e>0?t:r)(e)}}function Jc(){if(Ac)return Pc;Ac=1;var r=Xc();return Pc=function(t){var n=+t;return n!=n||0===n?0:r(n)}}function Qc(){if(Rc)return Ic;Rc=1;var r=Jc(),t=Math.max,n=Math.min;return Ic=function(e,o){var i=r(e);return i<0?t(i+o,0):n(i,o)}}function Zc(){if(Lc)return kc;Lc=1;var r=Jc(),t=Math.min;return kc=function(n){var e=r(n);return e>0?t(e,9007199254740991):0}}function ra(){if(Nc)return Mc;Nc=1;var r=Zc();return Mc=function(t){return r(t.length)}}function ta(){if(_c)return Cc;_c=1;var r=pf(),t=Qc(),n=ra(),e=function(e){return function(o,i,u){var f=r(o),c=n(f);if(0===c)return!e&&-1;var a,l=t(u,c);if(e&&i!=i){for(;c>l;)if((a=f[l++])!=a)return!0}else for(;c>l;l++)if((e||l in f)&&f[l]===i)return e||l||0;return!e&&-1}};return Cc={includes:e(!0),indexOf:e(!1)}}function na(){return Dc?zc:(Dc=1,zc=function(){})}function ea(){if(Hc)return Bc;Hc=1;var r=pu(),t=yf();return Bc=function(n,e){var o=t[n+"Prototype"],i=o&&o[e];if(i)return i;var u=r[n],f=u&&u.prototype;return f&&f[e]}}function oa(){return Gc?$c:(Gc=1,function(){if(Fc)return vu;Fc=1;var r=Kc(),t=ta().includes,n=Qi(),e=na(),o=n(function(){return!Array(1).includes()}),i=n(function(){return[,1].includes(void 0,1)});r({target:"Array",proto:!0,forced:o||i},{includes:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}}),e("includes")}(),$c=ea()("Array","includes"))}var ia,ua,fa,ca,aa,la,sa,va,pa,da,ya,ha,ga,ba,ma,wa,Oa,Sa,xa,Ea,ja,Ta={};function Pa(){if(ua)return ia;ua=1;var r=df(),t=yu(),n=cc()("match");return ia=function(e){var o;return r(e)&&(void 0!==(o=e[n])?!!o:"RegExp"===t(e))}}function Aa(){if(ca)return fa;ca=1;var r=Pa(),t=TypeError;return fa=function(n){if(r(n))throw new t("The method doesn't accept regular expressions");return n}}function Ia(){if(la)return aa;la=1;var r={};return r[cc()("toStringTag")]="z",aa="[object z]"===String(r)}function Ra(){if(va)return sa;va=1;var r=Ia(),t=gu(),n=yu(),e=cc()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return sa=r?n:function(r){var u,f,c;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(f=function(r,t){try{return r[t]}catch(r){}}(u=o(r),e))?f:i?n(u):"Object"===(c=n(u))&&t(u.callee)?"Arguments":c}}function ka(){if(da)return pa;da=1;var r=Ra(),t=String;return pa=function(n){if("Symbol"===r(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}function La(){if(ha)return ya;ha=1;var r=cc()("match");return ya=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,"/./"[t](n)}catch(r){}}return!1}}function Ma(){return ma?ba:(ma=1,function(){if(ga)return Ta;ga=1;var r=Kc(),t=ru(),n=Aa(),e=vf(),o=ka(),i=La(),u=t("".indexOf);r({target:"String",proto:!0,forced:!i("includes")},{includes:function(r){return!!~u(o(e(this)),o(n(r)),arguments.length>1?arguments[1]:void 0)}})}(),ba=ea()("String","includes"))}function Na(){if(Oa)return wa;Oa=1;var r=tu(),t=oa(),n=Ma(),e=Array.prototype,o=String.prototype;return wa=function(i){var u=i.includes;return i===e||r(e,i)&&u===e.includes?t:"string"==typeof i||i===o||r(o,i)&&u===o.includes?n:u}}function Ca(){return xa?Sa:(xa=1,Sa=Na())}var _a,za,Da,Fa,Ba,Ha,$a,Ga,Va,Wa,Ua,qa=i(ja?Ea:(ja=1,Ea=Ca())),Ya={};function Ka(){if(za)return _a;za=1;var r=St();return _a=function(){var t=r(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}function Xa(){if(Wa)return Va;Wa=1;var r,t,n=S(),e=vr(),o=xo(),i=Ka(),u=function(){if(Fa)return Da;Fa=1;var r=m(),t=a().RegExp,n=r(function(){var r=t("a","y");return r.lastIndex=2,null!==r.exec("abcd")}),e=n||r(function(){return!t("a","y").sticky}),o=n||r(function(){var r=t("^r","gy");return r.lastIndex=2,null!==r.exec("str")});return Da={BROKEN_CARET:o,MISSED_STICKY:e,UNSUPPORTED_Y:n}}(),f=et(),c=ro(),l=Ut().get,s=function(){if(Ha)return Ba;Ha=1;var r=m(),t=a().RegExp;return Ba=r(function(){var r=t(".","s");return!(r.dotAll&&r.test("\n")&&"s"===r.flags)})}(),v=function(){if(Ga)return $a;Ga=1;var r=m(),t=a().RegExp;return $a=r(function(){var r=t("(?<a>b)","g");return"b"!==r.exec("b").groups.a||"bc"!=="b".replace(r,"$<a>c")})}(),p=f("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,y=d,h=e("".charAt),g=e("".indexOf),b=e("".replace),w=e("".slice),O=(t=/b*/g,n(d,r=/a/,"a"),n(d,t,"a"),0!==r.lastIndex||0!==t.lastIndex),x=u.BROKEN_CARET,E=void 0!==/()??/.exec("")[1],j=function(r,t){for(var n=r.groups=c(null),e=0;e<t.length;e++){var o=t[e];n[o[0]]=r[o[1]]}};return(O||E||x||s||v)&&(y=function(r){var t,e,u,f=this,c=l(f),a=o(r),s=c.raw;if(s)return s.lastIndex=f.lastIndex,t=n(y,s,a),f.lastIndex=s.lastIndex,t&&c.groups&&j(t,c.groups),t;var v=c.groups,m=x&&f.sticky,S=n(i,f),T=f.source,P=0,A=a;if(m){S=b(S,"y",""),-1===g(S,"g")&&(S+="g"),A=w(a,f.lastIndex);var I=f.lastIndex>0&&h(a,f.lastIndex-1);f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==I&&"\r"!==I&&"\u2028"!==I&&"\u2029"!==I)&&(T="(?: (?:"+T+"))",A=" "+A,P++),e=new RegExp("^(?:"+T+")",S)}E&&(e=new RegExp("^"+T+"$(?!\\s)",S)),O&&(u=f.lastIndex);var R=n(d,m?e:f,A);return m?R?(R.input=a,R[0]=w(R[0],P),R.index=f.lastIndex,f.lastIndex+=R[0].length):f.lastIndex=0:O&&R&&(f.lastIndex=f.global?R.index+R[0].length:u),E&&R&&R.length>1&&n(p,R[0],e,function(){for(var r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(R[r]=void 0)}),R&&v&&j(R,v),R}),Va=y}function Ja(){if(Ua)return Ya;Ua=1;var r=te(),t=Xa();return r({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),Ya}Ja();var Qa,Za=function(){function n(){this.type="list-item",this.tag="button"}return n.prototype.getListNode=function(t){var n=this.type;return r.DomEditor.getSelectedNodeByType(t,n)},n.prototype.getValue=function(r){return""},n.prototype.isActive=function(r){var t=this.getListNode(r);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},n.prototype.isDisabled=function(n){return null==n.selection||!!r.DomEditor.getSelectedElems(n).some(function(r){var e;if(t.Editor.isVoid(n,r)&&t.Editor.isBlock(n,r))return!0;var o=r.type;return!!qa(e=["pre","code","table"]).call(e,o)})},n.prototype.exec=function(r,n){this.isActive(r)?t.Transforms.setNodes(r,{type:"paragraph",ordered:void 0,level:void 0}):t.Transforms.setNodes(r,{type:"list-item",ordered:this.ordered,indent:void 0})},n}(),rl=function(t){function n(){var n=t.apply(this,ye([],de(arguments),!1))||this;return n.ordered=!1,n.title=r.t("listModule.unOrderedList"),n.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>',n}return ve(n,t),n}(Za),tl=function(t){function n(){var n=t.apply(this,ye([],de(arguments),!1))||this;return n.ordered=!0,n.title=r.t("listModule.orderedList"),n.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>',n}return ve(n,t),n}(Za),nl={key:"bulletedList",factory:function(){return new rl}},el={key:"numberedList",factory:function(){return new tl}},ol={};!function(){if(Qa)return ol;Qa=1;var r=te(),t=Ri().filter;r({target:"Array",proto:!0,forced:!le()("filter")},{filter:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})}();var il,ul,fl,cl={};!function(){if(fl)return cl;fl=1;var r=te(),t=function(){if(ul)return il;ul=1;var r=ne(),t=hn(),n=ee(),e=wi(),o=oe(),i=function(u,f,c,a,l,s,v,p){for(var d,y,h=l,g=0,b=!!v&&e(v,p);g<a;)g in c&&(d=b?b(c[g],g,f):c[g],s>0&&r(d)?(y=t(d),h=i(u,f,d,y,h,s-1)-1):(n(h+1),o(u,h,d)),h++),g++;return h};return il=i}(),n=ot(),e=hn(),o=dn(),i=ae();r({target:"Array",proto:!0},{flat:function(){var r=arguments.length?arguments[0]:void 0,u=n(this),f=e(u),c=void 0===r?1:o(r),a=i(u,0);return t(a,u,u,f,0,c),a}})}();var al;al||(al=1,to()("flat"));var ll,sl,vl,pl,dl,yl,hl,gl,bl,ml,wl,Ol,Sl,xl,El,jl={};function Tl(){if(yl)return dl;yl=1;var r=Eo().charAt;return dl=function(t,n,e){return n+(e&&r(t,n).length||1)}}function Pl(){if(gl)return hl;gl=1;var r=vr(),t=ot(),n=Math.floor,e=r("".charAt),o=r("".replace),i=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;return hl=function(r,c,a,l,s,v){var p=a+r.length,d=l.length,y=f;return void 0!==s&&(s=t(s),y=u),o(v,y,function(t,o){var u;switch(e(o,0)){case"$":return"$";case"&":return r;case"`":return i(c,0,a);case"'":return i(c,p);case"<":u=s[i(o,1,-1)];break;default:var f=+o;if(0===f)return t;if(f>d){var v=n(f/10);return 0===v?t:v<=d?void 0===l[v-1]?e(o,1):l[v-1]+e(o,1):t}u=l[f-1]}return void 0===u?"":u})}}function Al(){if(Ol)return wl;Ol=1;var r=S(),t=it(),n=Or(),e=function(){if(ml)return bl;ml=1;var r=a(),t=m(),n=r.RegExp,e=!t(function(){var r=!0;try{n(".","d")}catch(t){r=!1}var t={},e="",o=r?"dgimsy":"gimsy",i=function(r,n){Object.defineProperty(t,r,{get:function(){return e+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var f in r&&(u.hasIndices="d"),u)i(f,u[f]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(t)!==o||e!==o});return bl={correct:e}}(),o=Ka(),i=RegExp.prototype;return wl=e.correct?function(r){return r.flags}:function(u){return e.correct||!n(i,u)||t(u,"flags")?u.flags:r(o,u)}}!function(){if(El)return jl;El=1;var r=function(){if(sl)return ll;sl=1;var r=O(),t=Function.prototype,n=t.apply,e=t.call;return ll="object"==typeof Reflect&&Reflect.apply||(r?e.bind(n):function(){return e.apply(n,arguments)}),ll}(),t=S(),n=vr(),e=function(){if(pl)return vl;pl=1,Ja();var r=S(),t=Yt(),n=Xa(),e=m(),o=ft(),i=Et(),u=o("species"),f=RegExp.prototype;return vl=function(c,a,l,s){var v=o(c),p=!e(function(){var r={};return r[v]=function(){return 7},7!==""[c](r)}),d=p&&!e(function(){var r=!1,t=/a/;if("split"===c){var n={};n[u]=function(){return t},(t={constructor:n,flags:""})[v]=/./[v]}return t.exec=function(){return r=!0,null},t[v](""),!r});if(!p||!d||l){var y=/./[v],h=a(v,""[c],function(t,e,o,i,u){var c=e.exec;return c===n||c===f.exec?p&&!u?{done:!0,value:r(y,e,o,i)}:{done:!0,value:r(t,o,e,i)}:{done:!1}});t(String.prototype,c,h[0]),t(f,v,h[1])}s&&i(f[v],"sham",!0)}}(),o=m(),i=St(),u=br(),f=mr(),c=dn(),a=yn(),l=xo(),s=hr(),v=Tl(),p=Ar(),d=Pl(),y=Al(),h=function(){if(xl)return Sl;xl=1;var r=S(),t=St(),n=br(),e=pr(),o=Xa(),i=TypeError;return Sl=function(u,f){var c=u.exec;if(n(c)){var a=r(c,u,f);return null!==a&&t(a),a}if("RegExp"===e(u))return r(o,u,f);throw new i("RegExp#exec called on incompatible receiver")}}(),g=ft()("replace"),b=Math.max,w=Math.min,x=n([].concat),E=n([].push),j=n("".indexOf),T=n("".slice),P=function(r){return void 0===r?r:String(r)},A="$0"==="a".replace(/./,"$0"),I=!!/./[g]&&""===/./[g]("a","$0");e("replace",function(n,e,o){var m=I?"$":"$0";return[function(r,n){var o=s(this),i=f(r)?p(r,g):void 0;return i?t(i,r,o,n):t(e,l(o),r,n)},function(t,n){var f=i(this),s=l(t),p=u(n);p||(n=l(n));var g=l(y(f));if("string"==typeof n&&!~j(n,m)&&!~j(n,"$<")&&!~j(g,"y")){var O=o(e,f,s,n);if(O.done)return O.value}var S,A=!!~j(g,"g");A&&(S=!!~j(g,"u")||!!~j(g,"v"),f.lastIndex=0);for(var I,R=[];null!==(I=h(f,s))&&(E(R,I),A);){""===l(I[0])&&(f.lastIndex=v(s,a(f.lastIndex),S))}for(var k="",L=0,M=0;M<R.length;M++){for(var N,C=l((I=R[M])[0]),_=b(w(c(I.index),s.length),0),z=[],D=1;D<I.length;D++)E(z,P(I[D]));var F=I.groups;if(p){var B=x([C],z,_,s);void 0!==F&&E(B,F),N=l(r(n,void 0,B))}else N=d(C,s,_,z,F,n);_>=L&&(k+=T(s,L,_)+N,L=_+C.length)}return k+T(s,L)}]},!!o(function(){var r=/./;return r.exec=function(){var r=[];return r.groups={a:"7"},r},"7"!=="".replace(r,"$<a>")})||!A||I)}();var Il,Rl,kl={};function Ll(r){return r.length?r[0].tagName.toLowerCase():""}function Ml(n){return t.Editor.nodes(n,{at:n.selection||void 0,match:function(t){return 1===r.DomEditor.findPath(n,t).length}})}Rl||(Rl=1,function(){if(Il)return kl;Il=1;var r=te(),t=a();r({global:!0,forced:t.globalThis!==t},{globalThis:t})}()),n.append&&(n.fn.append=n.append),n.attr&&(n.fn.attr=n.attr),n.parent&&(n.fn.parent=n.parent);var Nl={renderElems:[{type:"list-item",renderElem:function(n,o,i){Di.set(n,i);var u=n,f=u.level,c=void 0===f?0:f,a=u.ordered,l=void 0!==a&&a,s={margin:"5px 0 5px ".concat(20*c,"px"),display:"flex",alignItems:"flex-start"},v="";if(l){var p=function(n,e){var o=e,i=o.type,u=o.level,f=void 0===u?0:u,c=o.ordered,a=void 0!==c&&c,l=1,s=e,v=r.DomEditor.findPath(n,s);if(0===v[0])return 1;for(;v[0]>0;){var p=t.Path.previous(v),d=t.Editor.node(n,p);if(null==d)break;var y=d[0],h=y.level,g=void 0===h?0:h,b=y.type,m=y.ordered;if(b!==i)break;if(g<f)break;if(g===f){if(m!==a)break;l+=1}s=y,v=p}return l}(i,n);v="".concat(p,".")}else v=function(r){void 0===r&&(r=0);var t="";switch(r){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(c);var d=Fi(n);return e.jsx("div",{style:s},e.jsx("span",{contentEditable:!1,style:{marginRight:"0.5em",color:d},"data-w-e-reserve":!0},v),e.jsx("span",{style:{flex:"1",wordBreak:"break-word"}},o))}}],editorPlugin:function(n){var e=n.deleteBackward,o=n.handleTab,i=n.normalizeNode,u=n.insertBreak,f=n;return f.insertBreak=function(){var e=de(t.Editor.nodes(n,{match:function(t){return r.DomEditor.checkNodeType(t,"list-item")},universal:!0}),1)[0];return e?""!==e[0].children[0].text?u():void t.Transforms.setNodes(f,{type:"paragraph",ordered:void 0,level:void 0}):u()},f.deleteBackward=function(o){var i=f.selection;if(null!=i)if(t.Range.isExpanded(i))e(o);else{var u=r.DomEditor.getSelectedNodeByType(f,"list-item");if(null!=u)if(0!==i.focus.offset)e(o);else{var c=u,a=c.level,l=void 0===a?0:a,s=c.ordered,v=void 0!==s&&s;if(l>0){var p=Bi(n,u,l-1);p&&p.ordered!==v?t.Transforms.setNodes(f,{level:l-1,ordered:!v}):t.Transforms.setNodes(f,{level:l-1})}else t.Transforms.setNodes(f,{type:"paragraph",ordered:void 0,level:void 0})}else e(o)}else e(o)},f.handleTab=function(){var n,e,i,u,c=f.selection;if(null!=c){if(t.Range.isCollapsed(c)){var a=r.DomEditor.getSelectedNodeByType(f,"list-item");if(null==a)return void o();if(0===c.focus.offset){var l=a.level,s=void 0===l?0:l;return void t.Transforms.setNodes(f,{level:s+1})}}if(t.Range.isExpanded(c)){var v=0,p=!1;try{for(var d=pe(Ml(f)),y=d.next();!y.done;y=d.next()){var h=de(y.value,1)[0];"list-item"===r.DomEditor.getNodeType(h)?v+=1:p=!0}}catch(r){n={error:r}}finally{try{y&&!y.done&&(e=d.return)&&e.call(d)}finally{if(n)throw n.error}}if(p||v<=1)return void o();try{for(var g=pe(Ml(f)),b=g.next();!b.done;b=g.next()){var m=de(b.value,2),w=(h=m[0],m[1]),O=h.level;s=void 0===O?0:O;t.Transforms.setNodes(f,{level:s+1},{at:w})}}catch(r){i={error:r}}finally{try{b&&!b.done&&(u=g.return)&&u.call(g)}finally{if(i)throw i.error}}}else o()}else o()},f.normalizeNode=function(n){var e=de(n,2),o=e[0],u=e[1],c=r.DomEditor.getNodeType(o);return"bulleted-list"!==c&&"numbered-list"!==c||t.Transforms.unwrapNodes(f,{at:u}),i([o,u])},f},menus:[nl,el],elemsToHtml:[Ji],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(r,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(r,e,o){var i=n(r);0===(e=e.filter(function(r){return!!t.Text.isText(r)||!!o.isInline(r)})).length&&(e=[{text:i.text().replace(/\s+/gm," ")}]);var u=function(r){return"ol"===Ll(r.parent())}(i),f=function(r){for(var t=0,n=r.parent(),e=Ll(n);"ul"===e||"ol"===e;)e=Ll(n=n.parent()),t+=1;return t-1}(i);return{type:"list-item",ordered:u,level:f,children:e}}}]};return Nl});
2
2
  //# sourceMappingURL=index.js.map