@wangeditor-next/plugin-formula 1.0.20 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import t from"katex";import{i18nAddResources as n,t as r,DomEditor as e,SlateRange as o,genModalTextareaElems as i,genModalButtonElems as u,SlateTransforms as c}from"@wangeditor-next/editor";import{h as f}from"snabbdom";var a=function(t,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])},a(t,n)};function l(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var e,o,i=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(e=i.next()).done;)u.push(e.value)}catch(t){o={error:t}}finally{try{e&&!e.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}"function"==typeof SuppressedError&&SuppressedError;var s,p,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},v={};function h(){if(p)return s;p=1;var t=function(t){return t&&t.Math===Math&&t};return s=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof d&&d)||t("object"==typeof s&&s)||function(){return this}()||Function("return this")()}var y,m,g,b,w,O,E,x,S={};function j(){return m?y:(m=1,y=function(t){try{return!!t()}catch(t){return!0}})}function T(){if(b)return g;b=1;var t=j();return g=!t((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function L(){if(O)return w;O=1;var t=j();return w=!t((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function P(){if(x)return E;x=1;var t=L(),n=Function.prototype.call;return E=t?n.bind(n):function(){return n.apply(n,arguments)},E}var I,A,M,_,C,R,N,k,F,D,H,z,$,B,V,W,U,q,K,G,X,Y,Q,J,Z,tt,nt,rt,et,ot,it,ut,ct,ft,at,lt,st,pt,dt,vt,ht,yt={};function mt(){return M?A:(M=1,A=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}})}function gt(){if(C)return _;C=1;var t=L(),n=Function.prototype,r=n.call,e=t&&n.bind.bind(r,r);return _=t?e:function(t){return function(){return r.apply(t,arguments)}},_}function bt(){if(N)return R;N=1;var t=gt(),n=t({}.toString),r=t("".slice);return R=function(t){return r(n(t),8,-1)}}function wt(){if(F)return k;F=1;var t=gt(),n=j(),r=bt(),e=Object,o=t("".split);return k=n((function(){return!e("z").propertyIsEnumerable(0)}))?function(t){return"String"===r(t)?o(t,""):e(t)}:e}function Ot(){return H?D:(H=1,D=function(t){return null==t})}function Et(){if($)return z;$=1;var t=Ot(),n=TypeError;return z=function(r){if(t(r))throw new n("Can't call method on "+r);return r}}function xt(){if(V)return B;V=1;var t=wt(),n=Et();return B=function(r){return t(n(r))}}function St(){if(U)return W;U=1;var t="object"==typeof document&&document.all;return W=void 0===t&&void 0!==t?function(n){return"function"==typeof n||n===t}:function(t){return"function"==typeof t}}function jt(){if(K)return q;K=1;var t=St();return q=function(n){return"object"==typeof n?null!==n:t(n)}}function Tt(){if(X)return G;X=1;var t=h(),n=St();return G=function(r,e){return arguments.length<2?(o=t[r],n(o)?o:void 0):t[r]&&t[r][e];var o},G}function Lt(){if(nt)return tt;nt=1;var t,n,r=h(),e=function(){if(Z)return J;Z=1;var t=h().navigator,n=t&&t.userAgent;return J=n?String(n):""}(),o=r.process,i=r.Deno,u=o&&o.versions||i&&i.version,c=u&&u.v8;return c&&(n=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!n&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(n=+t[1]),tt=n}function Pt(){if(et)return rt;et=1;var t=Lt(),n=j(),r=h().String;return rt=!!Object.getOwnPropertySymbols&&!n((function(){var n=Symbol("symbol detection");return!r(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&t&&t<41}))}function It(){if(it)return ot;it=1;var t=Pt();return ot=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function At(){if(ct)return ut;ct=1;var t=Tt(),n=St(),r=function(){if(Q)return Y;Q=1;var t=gt();return Y=t({}.isPrototypeOf)}(),e=It(),o=Object;return ut=e?function(t){return"symbol"==typeof t}:function(e){var i=t("Symbol");return n(i)&&r(i.prototype,o(e))}}function Mt(){if(at)return ft;at=1;var t=String;return ft=function(n){try{return t(n)}catch(t){return"Object"}}}function _t(){if(st)return lt;st=1;var t=St(),n=Mt(),r=TypeError;return lt=function(e){if(t(e))return e;throw new r(n(e)+" is not a function")}}function Ct(){if(dt)return pt;dt=1;var t=_t(),n=Ot();return pt=function(r,e){var o=r[e];return n(o)?void 0:t(o)}}function Rt(){if(ht)return vt;ht=1;var t=P(),n=St(),r=jt(),e=TypeError;return vt=function(o,i){var u,c;if("string"===i&&n(u=o.toString)&&!r(c=t(u,o)))return c;if(n(u=o.valueOf)&&!r(c=t(u,o)))return c;if("string"!==i&&n(u=o.toString)&&!r(c=t(u,o)))return c;throw new e("Can't convert object to primitive value")},vt}var Nt,kt,Ft,Dt,Ht,zt,$t,Bt,Vt,Wt,Ut,qt,Kt,Gt,Xt,Yt,Qt,Jt,Zt,tn,nn,rn,en,on,un={exports:{}};function cn(){if(Dt)return Ft;Dt=1;var t=h(),n=Object.defineProperty;return Ft=function(r,e){try{n(t,r,{value:e,configurable:!0,writable:!0})}catch(n){t[r]=e}return e}}function fn(){if(Ht)return un.exports;Ht=1;var t=kt?Nt:(kt=1,Nt=!1),n=h(),r=cn(),e="__core-js_shared__",o=un.exports=n[e]||r(e,{});return(o.versions||(o.versions=[])).push({version:"3.38.1",mode:t?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"}),un.exports}function an(){if($t)return zt;$t=1;var t=fn();return zt=function(n,r){return t[n]||(t[n]=r||{})}}function ln(){if(Vt)return Bt;Vt=1;var t=Et(),n=Object;return Bt=function(r){return n(t(r))}}function sn(){if(Ut)return Wt;Ut=1;var t=gt(),n=ln(),r=t({}.hasOwnProperty);return Wt=Object.hasOwn||function(t,e){return r(n(t),e)}}function pn(){if(Kt)return qt;Kt=1;var t=gt(),n=0,r=Math.random(),e=t(1..toString);return qt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++n+r,36)}}function dn(){if(Xt)return Gt;Xt=1;var t=h(),n=an(),r=sn(),e=pn(),o=Pt(),i=It(),u=t.Symbol,c=n("wks"),f=i?u.for||u:u&&u.withoutSetter||e;return Gt=function(t){return r(c,t)||(c[t]=o&&r(u,t)?u[t]:f("Symbol."+t)),c[t]}}function vn(){if(Qt)return Yt;Qt=1;var t=P(),n=jt(),r=At(),e=Ct(),o=Rt(),i=dn(),u=TypeError,c=i("toPrimitive");return Yt=function(i,f){if(!n(i)||r(i))return i;var a,l=e(i,c);if(l){if(void 0===f&&(f="default"),a=t(l,i,f),!n(a)||r(a))return a;throw new u("Can't convert object to primitive value")}return void 0===f&&(f="number"),o(i,f)}}function hn(){if(Zt)return Jt;Zt=1;var t=vn(),n=At();return Jt=function(r){var e=t(r,"string");return n(e)?e:e+""}}function yn(){if(nn)return tn;nn=1;var t=h(),n=jt(),r=t.document,e=n(r)&&n(r.createElement);return tn=function(t){return e?r.createElement(t):{}}}function mn(){if(en)return rn;en=1;var t=T(),n=j(),r=yn();return rn=!t&&!n((function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))}function gn(){if(on)return S;on=1;var t=T(),n=P(),r=function(){if(I)return yt;I=1;var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!t.call({1:2},1);return yt.f=r?function(t){var r=n(this,t);return!!r&&r.enumerable}:t,yt}(),e=mt(),o=xt(),i=hn(),u=sn(),c=mn(),f=Object.getOwnPropertyDescriptor;return S.f=t?f:function(t,a){if(t=o(t),a=i(a),c)try{return f(t,a)}catch(t){}if(u(t,a))return e(!n(r.f,t,a),t[a])},S}var bn,wn,On,En,xn,Sn,jn,Tn={};function Ln(){if(wn)return bn;wn=1;var t=T(),n=j();return bn=t&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}function Pn(){if(En)return On;En=1;var t=jt(),n=String,r=TypeError;return On=function(e){if(t(e))return e;throw new r(n(e)+" is not an object")}}function In(){if(xn)return Tn;xn=1;var t=T(),n=mn(),r=Ln(),e=Pn(),o=hn(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",a="configurable",l="writable";return Tn.f=t?r?function(t,n,r){if(e(t),n=o(n),e(r),"function"==typeof t&&"prototype"===n&&"value"in r&&l in r&&!r[l]){var i=c(t,n);i&&i[l]&&(t[n]=r.value,r={configurable:a in r?r[a]:i[a],enumerable:f in r?r[f]:i[f],writable:!1})}return u(t,n,r)}:u:function(t,r,c){if(e(t),r=o(r),e(c),n)try{return u(t,r,c)}catch(t){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(t[r]=c.value),t},Tn}function An(){if(jn)return Sn;jn=1;var t=T(),n=In(),r=mt();return Sn=t?function(t,e,o){return n.f(t,e,r(1,o))}:function(t,n,r){return t[n]=r,t}}var Mn,_n,Cn,Rn,Nn,kn,Fn,Dn,Hn,zn,$n,Bn,Vn,Wn,Un,qn={exports:{}};function Kn(){if(_n)return Mn;_n=1;var t=T(),n=sn(),r=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,o=n(r,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&e(r,"name").configurable);return Mn={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function Gn(){if(Rn)return Cn;Rn=1;var t=gt(),n=St(),r=fn(),e=t(Function.toString);return n(r.inspectSource)||(r.inspectSource=function(t){return e(t)}),Cn=r.inspectSource}function Xn(){if(Dn)return Fn;Dn=1;var t=an(),n=pn(),r=t("keys");return Fn=function(t){return r[t]||(r[t]=n(t))}}function Yn(){return zn?Hn:(zn=1,Hn={})}function Qn(){if(Bn)return $n;Bn=1;var t,n,r,e=function(){if(kn)return Nn;kn=1;var t=h(),n=St(),r=t.WeakMap;return Nn=n(r)&&/native code/.test(String(r))}(),o=h(),i=jt(),u=An(),c=sn(),f=fn(),a=Xn(),l=Yn(),s="Object already initialized",p=o.TypeError,d=o.WeakMap;if(e||f.state){var v=f.state||(f.state=new d);v.get=v.get,v.has=v.has,v.set=v.set,t=function(t,n){if(v.has(t))throw new p(s);return n.facade=t,v.set(t,n),n},n=function(t){return v.get(t)||{}},r=function(t){return v.has(t)}}else{var y=a("state");l[y]=!0,t=function(t,n){if(c(t,y))throw new p(s);return n.facade=t,u(t,y,n),n},n=function(t){return c(t,y)?t[y]:{}},r=function(t){return c(t,y)}}return $n={set:t,get:n,has:r,enforce:function(e){return r(e)?n(e):t(e,{})},getterFor:function(t){return function(r){var e;if(!i(r)||(e=n(r)).type!==t)throw new p("Incompatible receiver, "+t+" required");return e}}}}function Jn(){if(Vn)return qn.exports;Vn=1;var t=gt(),n=j(),r=St(),e=sn(),o=T(),i=Kn().CONFIGURABLE,u=Gn(),c=Qn(),f=c.enforce,a=c.get,l=String,s=Object.defineProperty,p=t("".slice),d=t("".replace),v=t([].join),h=o&&!n((function(){return 8!==s((function(){}),"length",{value:8}).length})),y=String(String).split("String"),m=qn.exports=function(t,n,r){"Symbol("===p(l(n),0,7)&&(n="["+d(l(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!e(t,"name")||i&&t.name!==n)&&(o?s(t,"name",{value:n,configurable:!0}):t.name=n),h&&r&&e(r,"arity")&&t.length!==r.arity&&s(t,"length",{value:r.arity});try{r&&e(r,"constructor")&&r.constructor?o&&s(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=f(t);return e(u,"source")||(u.source=v(y,"string"==typeof n?n:"")),t};return Function.prototype.toString=m((function(){return r(this)&&a(this).source||u(this)}),"toString"),qn.exports}function Zn(){if(Un)return Wn;Un=1;var t=St(),n=In(),r=Jn(),e=cn();return Wn=function(o,i,u,c){c||(c={});var f=c.enumerable,a=void 0!==c.name?c.name:i;if(t(u)&&r(u,a,c),c.global)f?o[i]=u:e(i,u);else{try{c.unsafe?o[i]&&(f=!0):delete o[i]}catch(t){}f?o[i]=u:n.f(o,i,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return o}}var tr,nr,rr,er,or,ir,ur,cr,fr,ar,lr,sr,pr,dr,vr,hr,yr,mr={};function gr(){if(er)return rr;er=1;var t=function(){if(nr)return tr;nr=1;var t=Math.ceil,n=Math.floor;return tr=Math.trunc||function(r){var e=+r;return(e>0?n:t)(e)}}();return rr=function(n){var r=+n;return r!=r||0===r?0:t(r)}}function br(){if(ir)return or;ir=1;var t=gr(),n=Math.max,r=Math.min;return or=function(e,o){var i=t(e);return i<0?n(i+o,0):r(i,o)}}function wr(){if(cr)return ur;cr=1;var t=gr(),n=Math.min;return ur=function(r){var e=t(r);return e>0?n(e,9007199254740991):0}}function Or(){if(ar)return fr;ar=1;var t=wr();return fr=function(n){return t(n.length)}}function Er(){if(dr)return pr;dr=1;var t=gt(),n=sn(),r=xt(),e=function(){if(sr)return lr;sr=1;var t=xt(),n=br(),r=Or(),e=function(e){return function(o,i,u){var c=t(o),f=r(c);if(0===f)return!e&&-1;var a,l=n(u,f);if(e&&i!=i){for(;f>l;)if((a=c[l++])!=a)return!0}else for(;f>l;l++)if((e||l in c)&&c[l]===i)return e||l||0;return!e&&-1}};return lr={includes:e(!0),indexOf:e(!1)}}().indexOf,o=Yn(),i=t([].push);return pr=function(t,u){var c,f=r(t),a=0,l=[];for(c in f)!n(o,c)&&n(f,c)&&i(l,c);for(;u.length>a;)n(f,c=u[a++])&&(~e(l,c)||i(l,c));return l}}function xr(){return hr?vr:(hr=1,vr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Sr,jr,Tr,Lr,Pr,Ir,Ar,Mr,_r,Cr,Rr,Nr,kr,Fr,Dr={};function Hr(){if(Tr)return jr;Tr=1;var t=Tt(),n=gt(),r=function(){if(yr)return mr;yr=1;var t=Er(),n=xr().concat("length","prototype");return mr.f=Object.getOwnPropertyNames||function(r){return t(r,n)},mr}(),e=(Sr||(Sr=1,Dr.f=Object.getOwnPropertySymbols),Dr),o=Pn(),i=n([].concat);return jr=t("Reflect","ownKeys")||function(t){var n=r.f(o(t)),u=e.f;return u?i(n,u(t)):n}}function zr(){if(Pr)return Lr;Pr=1;var t=sn(),n=Hr(),r=gn(),e=In();return Lr=function(o,i,u){for(var c=n(i),f=e.f,a=r.f,l=0;l<c.length;l++){var s=c[l];t(o,s)||u&&t(u,s)||f(o,s,a(i,s))}}}function $r(){if(_r)return Mr;_r=1;var t=h(),n=gn().f,r=An(),e=Zn(),o=cn(),i=zr(),u=function(){if(Ar)return Ir;Ar=1;var t=j(),n=St(),r=/#|\.prototype\./,e=function(r,e){var f=i[o(r)];return f===c||f!==u&&(n(e)?t(e):!!e)},o=e.normalize=function(t){return String(t).replace(r,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",c=e.POLYFILL="P";return Ir=e}();return Mr=function(c,f){var a,l,s,p,d,v=c.target,h=c.global,y=c.stat;if(a=h?t:y?t[v]||o(v,{}):t[v]&&t[v].prototype)for(l in f){if(p=f[l],s=c.dontCallGetSet?(d=n(a,l))&&d.value:a[l],!u(h?l:v+(y?".":"#")+l,c.forced)&&void 0!==s){if(typeof p==typeof s)continue;i(p,s)}(c.sham||s&&s.sham)&&r(p,"sham",!0),e(a,l,p,c)}}}function Br(){if(Rr)return Cr;Rr=1;var t=j();return Cr=!t((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))}!function(){if(Fr)return v;Fr=1;var t=$r(),n=j(),r=ln(),e=function(){if(kr)return Nr;kr=1;var t=sn(),n=St(),r=ln(),e=Xn(),o=Br(),i=e("IE_PROTO"),u=Object,c=u.prototype;return Nr=o?u.getPrototypeOf:function(e){var o=r(e);if(t(o,i))return o[i];var f=o.constructor;return n(f)&&o instanceof f?f.prototype:o instanceof u?c:null}}(),o=Br();t({target:"Object",stat:!0,forced:n((function(){e(1)})),sham:!o},{getPrototypeOf:function(t){return e(r(t))}})}();var Vr,Wr,Ur,qr,Kr,Gr,Xr,Yr={};function Qr(){if(Wr)return Vr;Wr=1;var t={};return t[dn()("toStringTag")]="z",Vr="[object z]"===String(t)}function Jr(){if(qr)return Ur;qr=1;var t=Qr(),n=St(),r=bt(),e=dn()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return Ur=t?r:function(t){var u,c,f;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(c=function(t,n){try{return t[n]}catch(t){}}(u=o(t),e))?c:i?r(u):"Object"===(f=r(u))&&n(u.callee)?"Arguments":f}}!function(){if(Xr)return Yr;Xr=1;var t=Qr(),n=Zn(),r=function(){if(Gr)return Kr;Gr=1;var t=Qr(),n=Jr();return Kr=t?{}.toString:function(){return"[object "+n(this)+"]"}}();t||n(Object.prototype,"toString",r,{unsafe:!0})}();var Zr,te,ne,re,ee,oe,ie,ue,ce,fe,ae={};function le(){if(re)return ne;re=1;var t=gt();return ne=t([].slice)}function se(){if(oe)return ee;oe=1;var t=gt(),n=_t(),r=jt(),e=sn(),o=le(),i=L(),u=Function,c=t([].concat),f=t([].join),a={};return ee=i?u.bind:function(t){var i=n(this),l=i.prototype,s=o(arguments,1),p=function(){var n=c(s,o(arguments));return this instanceof p?function(t,n,r){if(!e(a,n)){for(var o=[],i=0;i<n;i++)o[i]="a["+i+"]";a[n]=u("C,a","return new C("+f(o,",")+")")}return a[n](t,r)}(i,n.length,n):i.apply(t,n)};return r(l)&&(p.prototype=l),p},ee}function pe(){if(ue)return ie;ue=1;var t=gt(),n=j(),r=St(),e=Jr(),o=Tt(),i=Gn(),u=function(){},c=o("Reflect","construct"),f=/^\s*(?:class|function)\b/,a=t(f.exec),l=!f.test(u),s=function(t){if(!r(t))return!1;try{return c(u,[],t),!0}catch(t){return!1}},p=function(t){if(!r(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!a(f,i(t))}catch(t){return!0}};return p.sham=!0,ie=!c||n((function(){var t;return s(s.call)||!s(Object)||!s((function(){t=!0}))||t}))?p:s}function de(){if(fe)return ce;fe=1;var t=pe(),n=Mt(),r=TypeError;return ce=function(e){if(t(e))return e;throw new r(n(e)+" is not a constructor")}}var ve,he,ye,me,ge,be,we,Oe,Ee={};function xe(){if(he)return ve;he=1;var t=Er(),n=xr();return ve=Object.keys||function(r){return t(r,n)}}function Se(){if(we)return be;we=1;var t,n=Pn(),r=function(){if(ye)return Ee;ye=1;var t=T(),n=Ln(),r=In(),e=Pn(),o=xt(),i=xe();return Ee.f=t&&!n?Object.defineProperties:function(t,n){e(t);for(var u,c=o(n),f=i(n),a=f.length,l=0;a>l;)r.f(t,u=f[l++],c[u]);return t},Ee}(),e=xr(),o=Yn(),i=function(){if(ge)return me;ge=1;var t=Tt();return me=t("document","documentElement")}(),u=yn(),c=Xn(),f="prototype",a="script",l=c("IE_PROTO"),s=function(){},p=function(t){return"<"+a+">"+t+"</"+a+">"},d=function(t){t.write(p("")),t.close();var n=t.parentWindow.Object;return t=null,n},v=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var n,r,o;v="undefined"!=typeof document?document.domain&&t?d(t):(r=u("iframe"),o="java"+a+":",r.style.display="none",i.appendChild(r),r.src=String(o),(n=r.contentWindow.document).open(),n.write(p("document.F=Object")),n.close(),n.F):d(t);for(var c=e.length;c--;)delete v[f][e[c]];return v()};return o[l]=!0,be=Object.create||function(t,e){var o;return null!==t?(s[f]=n(t),o=new s,s[f]=null,o[l]=t):o=v(),void 0===e?o:r.f(o,e)}}!function(){if(Oe)return ae;Oe=1;var t=$r(),n=Tt(),r=function(){if(te)return Zr;te=1;var t=L(),n=Function.prototype,r=n.apply,e=n.call;return Zr="object"==typeof Reflect&&Reflect.apply||(t?e.bind(r):function(){return e.apply(r,arguments)}),Zr}(),e=se(),o=de(),i=Pn(),u=jt(),c=Se(),f=j(),a=n("Reflect","construct"),l=Object.prototype,s=[].push,p=f((function(){function t(){}return!(a((function(){}),[],t)instanceof t)})),d=!f((function(){a((function(){}))})),v=p||d;t({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,n){o(t),i(n);var f=arguments.length<3?t:o(arguments[2]);if(d&&!p)return a(t,n,f);if(t===f){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var v=[null];return r(s,v,n),new(r(e,t,v))}var h=f.prototype,y=c(u(h)?h:l),m=r(t,y,n);return u(m)?m:y}})}(),function(){if(void 0!==window.Reflect&&void 0!==window.customElements&&!window.customElements.polyfillWrapFlushCallback&&!window.__POWERED_BY_QIANKUN__){var t=Object.getPrototypeOf(window).HTMLElement,n=function(){return Reflect.construct(t,[],this.constructor)};window.HTMLElement=n,HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}();var je=function(n){function r(){var t=n.call(this)||this,r=t.attachShadow({mode:"open"}),e=r.ownerDocument.createElement("span");return e.style.display="inline-block",r.appendChild(e),t.span=e,t}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}a(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(r,n),Object.defineProperty(r,"observedAttributes",{get:function(){return["data-value"]},enumerable:!1,configurable:!0}),r.prototype.attributeChangedCallback=function(t,n,r){if("data-value"===t){if(n===r)return;this.render(r||"")}},r.prototype.render=function(n){t.render(n,this.span,{throwOnError:!1,output:"mathml"})},r}(HTMLElement);window.customElements.get("w-e-formula-card")||window.customElements.define("w-e-formula-card",je),n("en",{formula:{formula:"Formula",placeholder:"Use LateX syntax",insert:"Insert formula",edit:"Edit formula",ok:"OK"}}),n("zh-CN",{formula:{formula:"公式",placeholder:"使用 LateX 语法",insert:"插入公式",edit:"编辑公式",ok:"确定"}});var Te,Le,Pe,Ie,Ae,Me,_e,Ce,Re,Ne,ke,Fe,De,He,ze,$e={type:"formula",elemToHtml:function(t,n){var r=t.value;return'<span data-w-e-type="formula" data-w-e-is-void data-w-e-is-inline data-value="'.concat(void 0===r?"":r,'"></span>')}},Be={};function Ve(){if(Ie)return Pe;Ie=1;var t=function(){if(Le)return Te;Le=1;var t=bt(),n=gt();return Te=function(r){if("Function"===t(r))return n(r)}}(),n=_t(),r=L(),e=t(t.bind);return Pe=function(t,o){return n(t),void 0===o?t:r?e(t,o):function(){return t.apply(o,arguments)}},Pe}function We(){if(Me)return Ae;Me=1;var t=bt();return Ae=Array.isArray||function(n){return"Array"===t(n)}}function Ue(){if(Ce)return _e;Ce=1;var t=We(),n=pe(),r=jt(),e=dn()("species"),o=Array;return _e=function(i){var u;return t(i)&&(u=i.constructor,(n(u)&&(u===o||t(u.prototype))||r(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?o:u}}function qe(){if(Ne)return Re;Ne=1;var t=Ue();return Re=function(n,r){return new(t(n))(0===r?0:r)}}function Ke(){if(He)return De;He=1;var t=dn(),n=Se(),r=In().f,e=t("unscopables"),o=Array.prototype;return void 0===o[e]&&r(o,e,{configurable:!0,value:n(null)}),De=function(t){o[e][t]=!0}}!function(){if(ze)return Be;ze=1;var t=$r(),n=function(){if(Fe)return ke;Fe=1;var t=Ve(),n=gt(),r=wt(),e=ln(),o=Or(),i=qe(),u=n([].push),c=function(n){var c=1===n,f=2===n,a=3===n,l=4===n,s=6===n,p=7===n,d=5===n||s;return function(v,h,y,m){for(var g,b,w=e(v),O=r(w),E=o(O),x=t(h,y),S=0,j=m||i,T=c?j(v,E):f||p?j(v,0):void 0;E>S;S++)if((d||S in O)&&(b=x(g=O[S],S,w),n))if(c)T[S]=b;else if(b)switch(n){case 3:return!0;case 5:return g;case 6:return S;case 2:u(T,g)}else switch(n){case 4:return!1;case 7:u(T,g)}return s?-1:a||l?l:T}};return ke={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}}().find,r=Ke(),e="find",o=!0;e in[]&&Array(1)[e]((function(){o=!1})),t({target:"Array",proto:!0,forced:o},{find:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),r(e)}();var Ge,Xe,Ye,Qe,Je,Ze,to,no,ro,eo,oo,io,uo,co={};function fo(){if(Xe)return Ge;Xe=1;var t=Jr(),n=String;return Ge=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return n(r)}}function ao(){if(Qe)return Ye;Qe=1;var t=Pn();return Ye=function(){var n=t(this),r="";return n.hasIndices&&(r+="d"),n.global&&(r+="g"),n.ignoreCase&&(r+="i"),n.multiline&&(r+="m"),n.dotAll&&(r+="s"),n.unicode&&(r+="u"),n.unicodeSets&&(r+="v"),n.sticky&&(r+="y"),r}}function lo(){if(io)return oo;io=1;var t,n,r=P(),e=gt(),o=fo(),i=ao(),u=function(){if(Ze)return Je;Ze=1;var t=j(),n=h().RegExp,r=t((function(){var t=n("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),e=r||t((function(){return!n("a","y").sticky})),o=r||t((function(){var t=n("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));return Je={BROKEN_CARET:o,MISSED_STICKY:e,UNSUPPORTED_Y:r}}(),c=an(),f=Se(),a=Qn().get,l=function(){if(no)return to;no=1;var t=j(),n=h().RegExp;return to=t((function(){var t=n(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))}(),s=function(){if(eo)return ro;eo=1;var t=j(),n=h().RegExp;return ro=t((function(){var t=n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))}(),p=c("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,v=d,y=e("".charAt),m=e("".indexOf),g=e("".replace),b=e("".slice),w=(n=/b*/g,r(d,t=/a/,"a"),r(d,n,"a"),0!==t.lastIndex||0!==n.lastIndex),O=u.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];return(w||E||O||l||s)&&(v=function(t){var n,e,u,c,l,s,h,x=this,S=a(x),j=o(t),T=S.raw;if(T)return T.lastIndex=x.lastIndex,n=r(v,T,j),x.lastIndex=T.lastIndex,n;var L=S.groups,P=O&&x.sticky,I=r(i,x),A=x.source,M=0,_=j;if(P&&(I=g(I,"y",""),-1===m(I,"g")&&(I+="g"),_=b(j,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&"\n"!==y(j,x.lastIndex-1))&&(A="(?: "+A+")",_=" "+_,M++),e=new RegExp("^(?:"+A+")",I)),E&&(e=new RegExp("^"+A+"$(?!\\s)",I)),w&&(u=x.lastIndex),c=r(d,P?e:x,_),P?c?(c.input=b(c.input,M),c[0]=b(c[0],M),c.index=x.lastIndex,x.lastIndex+=c[0].length):x.lastIndex=0:w&&c&&(x.lastIndex=x.global?c.index+c[0].length:u),E&&c&&c.length>1&&r(p,c[0],e,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(c[l]=void 0)})),c&&L)for(c.groups=s=f(null),l=0;l<L.length;l++)s[(h=L[l])[0]]=c[h[1]];return c}),oo=v}!function(){if(uo)return co;uo=1;var t=$r(),n=lo();t({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})}();var so,po,vo,ho,yo,mo,go,bo={};function wo(){return po?so:(po=1,so="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(go)return bo;go=1;var t=$r(),n=function(){if(ho)return vo;ho=1;var t=gt(),n=Et(),r=fo(),e=wo(),o=t("".replace),i=RegExp("^["+e+"]+"),u=RegExp("(^|[^"+e+"])["+e+"]+$"),c=function(t){return function(e){var c=r(n(e));return 1&t&&(c=o(c,i,"")),2&t&&(c=o(c,u,"$1")),c}};return vo={start:c(1),end:c(2),trim:c(3)}}().trim,r=function(){if(mo)return yo;mo=1;var t=Kn().PROPER,n=j(),r=wo();return yo=function(e){return n((function(){return!!r[e]()||"​…᠎"!=="​…᠎"[e]()||t&&r[e].name!==e}))}}();t({target:"String",proto:!0,forced:r("trim")},{trim:function(){return n(this)}})}();var Oo,Eo,xo={};function So(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function jo(t={},n={}){Object.keys(n).forEach((r=>{void 0===t[r]?t[r]=n[r]:So(n[r])&&So(t[r])&&Object.keys(n[r]).length>0&&jo(t[r],n[r])}))}Eo||(Eo=1,function(){if(Oo)return xo;Oo=1;var t=$r(),n=h();t({global:!0,forced:n.globalThis!==n},{globalThis:n})}());const To={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Lo(){const t="undefined"!=typeof document?document:{};return jo(t,To),t}const Po={document:To,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:t=>"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function Io(){const t="undefined"!=typeof window?window:{};return jo(t,Po),t}class Ao extends Array{constructor(t){"number"==typeof t?super(t):(super(...t||[]),function(t){const n=t.__proto__;Object.defineProperty(t,"__proto__",{get:()=>n,set(t){n.__proto__=t}})}(this))}}function Mo(t,n){const r=Io(),e=Lo();let o=[];if(!n&&t instanceof Ao)return t;if(!t)return new Ao(o);if("string"==typeof t){const r=t.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){let t="div";0===r.indexOf("<li")&&(t="ul"),0===r.indexOf("<tr")&&(t="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(t="tr"),0===r.indexOf("<tbody")&&(t="table"),0===r.indexOf("<option")&&(t="select");const n=e.createElement(t);n.innerHTML=r;for(let t=0;t<n.childNodes.length;t+=1)o.push(n.childNodes[t])}else o=function(t,n){if("string"!=typeof t)return[t];const r=[],e=n.querySelectorAll(t);for(let t=0;t<e.length;t+=1)r.push(e[t]);return r}(t.trim(),n||e)}else if(t.nodeType||t===r||t===e)o.push(t);else if(Array.isArray(t)){if(t instanceof Ao)return t;o=t}return new Ao(function(t){const n=[];for(let r=0;r<t.length;r+=1)-1===n.indexOf(t[r])&&n.push(t[r]);return n}(o))}function _o(t){if(void 0===t){const t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){const n=[];for(let r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(let n=0;n<this.length;n+=1){const r=this[n];if(Array.isArray(t)&&r.multiple&&"select"===r.nodeName.toLowerCase())for(let n=0;n<r.options.length;n+=1)r.options[n].selected=t.indexOf(r.options[n].value)>=0;else r.value=t}return this}function Co(...t){let[n,r,e,o]=t;function i(t){const n=t.target;if(!n)return;const o=t.target.dom7EventData||[];if(o.indexOf(t)<0&&o.unshift(t),Mo(n).is(r))e.apply(n,o);else{const t=Mo(n).parents();for(let n=0;n<t.length;n+=1)Mo(t[n]).is(r)&&e.apply(t[n],o)}}function u(t){const n=t&&t.target&&t.target.dom7EventData||[];n.indexOf(t)<0&&n.unshift(t),e.apply(this,n)}"function"==typeof t[1]&&([n,e,o]=t,r=void 0),o||(o=!1);const c=n.split(" ");let f;for(let t=0;t<this.length;t+=1){const n=this[t];if(r)for(f=0;f<c.length;f+=1){const t=c[f];n.dom7LiveListeners||(n.dom7LiveListeners={}),n.dom7LiveListeners[t]||(n.dom7LiveListeners[t]=[]),n.dom7LiveListeners[t].push({listener:e,proxyListener:i}),n.addEventListener(t,i,o)}else for(f=0;f<c.length;f+=1){const t=c[f];n.dom7Listeners||(n.dom7Listeners={}),n.dom7Listeners[t]||(n.dom7Listeners[t]=[]),n.dom7Listeners[t].push({listener:e,proxyListener:u}),n.addEventListener(t,u,o)}}return this}function Ro(t){if(void 0===t)return this[0]?this[0].innerHTML:null;for(let n=0;n<this.length;n+=1)this[n].innerHTML=t;return this}function No(t){const n=Io(),r=Lo(),e=this[0];let o,i;if(!e||void 0===t)return!1;if("string"==typeof t){if(e.matches)return e.matches(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);for(o=Mo(t),i=0;i<o.length;i+=1)if(o[i]===e)return!0;return!1}if(t===r)return e===r;if(t===n)return e===n;if(t.nodeType||t instanceof Ao){for(o=t.nodeType?[t]:t,i=0;i<o.length;i+=1)if(o[i]===e)return!0;return!1}return!1}function ko(...t){let n;const r=Lo();for(let e=0;e<t.length;e+=1){n=t[e];for(let t=0;t<this.length;t+=1)if("string"==typeof n){const e=r.createElement("div");for(e.innerHTML=n;e.firstChild;)this[t].appendChild(e.firstChild)}else if(n instanceof Ao)for(let r=0;r<n.length;r+=1)this[t].appendChild(n[r]);else this[t].appendChild(n)}return this}function Fo(t){const n=[];for(let r=0;r<this.length;r+=1){let e=this[r].parentNode;for(;e;)t?Mo(e).is(t)&&n.push(e):n.push(e),e=e.parentNode}return Mo(n)}function Do(t){const n=[];for(let r=0;r<this.length;r+=1){const e=this[r].querySelectorAll(t);for(let t=0;t<e.length;t+=1)n.push(e[t])}return Mo(n)}Mo.fn=Ao.prototype;const Ho="resize scroll".split(" ");const zo=($o="focus",function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)Ho.indexOf($o)<0&&($o in this[t]?this[t][$o]():Mo(this[t]).trigger($o));return this}return this.on($o,...t)});var $o;ko&&(Mo.fn.append=ko),Ro&&(Mo.fn.html=Ro),_o&&(Mo.fn.val=_o),Co&&(Mo.fn.on=Co),zo&&(Mo.fn.focus=zo),No&&(Mo.fn.is=No),Fo&&(Mo.fn.parents=Fo),Do&&(Mo.fn.find=Do);var Bo,Vo,Wo,Uo,qo,Ko,Go,Xo={};function Yo(){if(Vo)return Bo;Vo=1;var t=TypeError;return Bo=function(n){if(n>9007199254740991)throw t("Maximum allowed index exceeded");return n}}function Qo(){if(Uo)return Wo;Uo=1;var t=T(),n=In(),r=mt();return Wo=function(e,o,i){t?n.f(e,o,r(0,i)):e[o]=i}}function Jo(){if(Ko)return qo;Ko=1;var t=j(),n=dn(),r=Lt(),e=n("species");return qo=function(n){return r>=51||!t((function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[n](Boolean).foo}))}}!function(){if(Go)return Xo;Go=1;var t=$r(),n=j(),r=We(),e=jt(),o=ln(),i=Or(),u=Yo(),c=Qo(),f=qe(),a=Jo(),l=dn(),s=Lt(),p=l("isConcatSpreadable"),d=s>=51||!n((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),v=function(t){if(!e(t))return!1;var n=t[p];return void 0!==n?!!n:r(t)};t({target:"Array",proto:!0,arity:1,forced:!d||!a("concat")},{concat:function(t){var n,r,e,a,l,s=o(this),p=f(s,0),d=0;for(n=-1,e=arguments.length;n<e;n++)if(v(l=-1===n?s:arguments[n]))for(a=i(l),u(d+a),r=0;r<a;r++,d++)r in l&&c(p,d,l[r]);else u(d+1),c(p,d++,l);return p.length=d,p}})}();let Zo=(t=21)=>{let n="",r=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)n+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[t]];return n};function ti(t){return"".concat(t,"-").concat(Zo())}function ni(){return ti("w-e-insert-formula")}var ri=function(){function t(){this.title=r("formula.edit"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textareaId=ni(),this.buttonId=ni()}return t.prototype.getSelectedElem=function(t){var n=e.getSelectedNodeByType(t,"formula");return null==n?null:n},t.prototype.getValue=function(t){var n=this.getSelectedElem(t);return n&&n.value||""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,n){},t.prototype.isDisabled=function(t){var n=t.selection;return null==n||(!!o.isExpanded(n)||null==this.getSelectedElem(t))},t.prototype.getModalPositionNode=function(t){return this.getSelectedElem(t)},t.prototype.getModalContentElem=function(t){var n=this,e=this.textareaId,o=this.buttonId,c=l(i(r("formula.formula"),e,r("formula.placeholder")),2),f=c[0],a=Mo(c[1]),s=l(u(o,r("formula.ok")),1)[0];if(null==this.$content){var p=Mo("<div></div>");p.on("click","#".concat(o),(function(r){r.preventDefault();var o=p.find("#".concat(e)).val().trim();n.updateFormula(t,o),t.hidePanelOrModal()})),this.$content=p}var d=this.$content;d.html(""),d.append(f),d.append(s);var v=this.getValue(t);return a.val(v),setTimeout((function(){a.focus()})),d[0]},t.prototype.updateFormula=function(t,n){if(n&&(t.restoreSelection(),!this.isDisabled(t))){var r=this.getSelectedElem(t);if(null!=r){var o=e.findPath(t,r),i={value:n};c.setNodes(t,i,{at:o})}}},t}();function ei(){return ti("w-e-insert-formula")}var oi=function(){function t(){this.title=r("formula.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M941.6 734.72L985.984 640H1024l-64 384H0v-74.24l331.552-391.2L0 227.008V0h980L1024 256h-34.368l-18.72-38.88C935.584 143.744 909.024 128 832 128H169.984l353.056 353.056L225.632 832H768c116 0 146.656-41.568 173.6-97.28z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textareaId=ei(),this.buttonId=ei()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,n){},t.prototype.isDisabled=function(t){var n=t.selection;if(null==n)return!0;if(o.isExpanded(n))return!0;var r=e.getSelectedElems(t);return!!r.some((function(n){return t.isVoid(n)}))||!!r.some((function(t){return"pre"===e.getNodeType(t)}))},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var n=this,e=this.textareaId,o=this.buttonId,c=l(i(r("formula.formula"),e,r("formula.placeholder")),2),f=c[0],a=Mo(c[1]),s=l(u(o,r("formula.ok")),1)[0];if(null==this.$content){var p=Mo("<div></div>");p.on("click","#".concat(o),(function(r){r.preventDefault();var o=p.find("#".concat(e)).val().trim();n.insertFormula(t,o),t.hidePanelOrModal()})),this.$content=p}var d=this.$content;return d.html(""),d.append(f),d.append(s),a.val(""),setTimeout((function(){a.focus()})),d[0]},t.prototype.insertFormula=function(t,n){if(n&&(t.restoreSelection(),!this.isDisabled(t))){var r={type:"formula",value:n,children:[{text:""}]};t.insertNode(r)}},t}();var ii={editorPlugin:function(t){var n=t.isInline,r=t.isVoid,o=t;return o.isInline=function(t){return"formula"===e.getNodeType(t)||n(t)},o.isVoid=function(t){return"formula"===e.getNodeType(t)||r(t)},o},renderElems:[{type:"formula",renderElem:function(t,n,r){var o=e.isNodeSelected(r,t),i=t.value,u=f("w-e-formula-card",{dataset:{value:void 0===i?"":i}},null);return f("div",{className:"w-e-textarea-formula-container",props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:o?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"3px 3px"}},[u])}}],elemsToHtml:[$e],parseElemsHtml:[{selector:'span[data-w-e-type="formula"]',parseElemHtml:function(t,n,r){return{type:"formula",value:t.getAttribute("data-value")||"",children:[{text:""}]}}}],menus:[{key:"insertFormula",factory:function(){return new oi}},{key:"editFormula",factory:function(){return new ri}}]};export{ii as default};
1
+ import t from"katex";import{i18nAddResources as n,t as r,DomEditor as e,SlateRange as o,genModalTextareaElems as i,genModalButtonElems as u,SlateTransforms as c}from"@wangeditor-next/editor";import{h as f}from"snabbdom";var a=function(t,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])},a(t,n)};function l(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var e,o,i=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(e=i.next()).done;)u.push(e.value)}catch(t){o={error:t}}finally{try{e&&!e.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}"function"==typeof SuppressedError&&SuppressedError;var s,p,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},v={};function h(){if(p)return s;p=1;var t=function(t){return t&&t.Math===Math&&t};return s=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof d&&d)||t("object"==typeof s&&s)||function(){return this}()||Function("return this")()}var y,m,g,b,w,O,E,x,S={};function j(){return m?y:(m=1,y=function(t){try{return!!t()}catch(t){return!0}})}function T(){if(b)return g;b=1;var t=j();return g=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function L(){if(O)return w;O=1;var t=j();return w=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function P(){if(x)return E;x=1;var t=L(),n=Function.prototype.call;return E=t?n.bind(n):function(){return n.apply(n,arguments)},E}var I,A,M,_,C,R,N,k,F,D,H,z,$,B,V,W,U,q,K,G,X,Y,Q,J,Z,tt,nt,rt,et,ot,it,ut,ct,ft,at,lt,st,pt,dt,vt,ht,yt={};function mt(){return M?A:(M=1,A=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}})}function gt(){if(C)return _;C=1;var t=L(),n=Function.prototype,r=n.call,e=t&&n.bind.bind(r,r);return _=t?e:function(t){return function(){return r.apply(t,arguments)}},_}function bt(){if(N)return R;N=1;var t=gt(),n=t({}.toString),r=t("".slice);return R=function(t){return r(n(t),8,-1)}}function wt(){if(F)return k;F=1;var t=gt(),n=j(),r=bt(),e=Object,o=t("".split);return k=n(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?o(t,""):e(t)}:e}function Ot(){return H?D:(H=1,D=function(t){return null==t})}function Et(){if($)return z;$=1;var t=Ot(),n=TypeError;return z=function(r){if(t(r))throw new n("Can't call method on "+r);return r}}function xt(){if(V)return B;V=1;var t=wt(),n=Et();return B=function(r){return t(n(r))}}function St(){if(U)return W;U=1;var t="object"==typeof document&&document.all;return W=void 0===t&&void 0!==t?function(n){return"function"==typeof n||n===t}:function(t){return"function"==typeof t}}function jt(){if(K)return q;K=1;var t=St();return q=function(n){return"object"==typeof n?null!==n:t(n)}}function Tt(){if(X)return G;X=1;var t=h(),n=St();return G=function(r,e){return arguments.length<2?(o=t[r],n(o)?o:void 0):t[r]&&t[r][e];var o},G}function Lt(){if(nt)return tt;nt=1;var t,n,r=h(),e=function(){if(Z)return J;Z=1;var t=h().navigator,n=t&&t.userAgent;return J=n?String(n):""}(),o=r.process,i=r.Deno,u=o&&o.versions||i&&i.version,c=u&&u.v8;return c&&(n=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!n&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(n=+t[1]),tt=n}function Pt(){if(et)return rt;et=1;var t=Lt(),n=j(),r=h().String;return rt=!!Object.getOwnPropertySymbols&&!n(function(){var n=Symbol("symbol detection");return!r(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function It(){if(it)return ot;it=1;var t=Pt();return ot=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function At(){if(ct)return ut;ct=1;var t=Tt(),n=St(),r=function(){if(Q)return Y;Q=1;var t=gt();return Y=t({}.isPrototypeOf)}(),e=It(),o=Object;return ut=e?function(t){return"symbol"==typeof t}:function(e){var i=t("Symbol");return n(i)&&r(i.prototype,o(e))}}function Mt(){if(at)return ft;at=1;var t=String;return ft=function(n){try{return t(n)}catch(t){return"Object"}}}function _t(){if(st)return lt;st=1;var t=St(),n=Mt(),r=TypeError;return lt=function(e){if(t(e))return e;throw new r(n(e)+" is not a function")}}function Ct(){if(dt)return pt;dt=1;var t=_t(),n=Ot();return pt=function(r,e){var o=r[e];return n(o)?void 0:t(o)}}function Rt(){if(ht)return vt;ht=1;var t=P(),n=St(),r=jt(),e=TypeError;return vt=function(o,i){var u,c;if("string"===i&&n(u=o.toString)&&!r(c=t(u,o)))return c;if(n(u=o.valueOf)&&!r(c=t(u,o)))return c;if("string"!==i&&n(u=o.toString)&&!r(c=t(u,o)))return c;throw new e("Can't convert object to primitive value")},vt}var Nt,kt,Ft,Dt,Ht,zt,$t,Bt,Vt,Wt,Ut,qt,Kt,Gt,Xt,Yt,Qt,Jt,Zt,tn,nn,rn,en,on,un={exports:{}};function cn(){if(Dt)return Ft;Dt=1;var t=h(),n=Object.defineProperty;return Ft=function(r,e){try{n(t,r,{value:e,configurable:!0,writable:!0})}catch(n){t[r]=e}return e}}function fn(){if(Ht)return un.exports;Ht=1;var t=kt?Nt:(kt=1,Nt=!1),n=h(),r=cn(),e="__core-js_shared__",o=un.exports=n[e]||r(e,{});return(o.versions||(o.versions=[])).push({version:"3.43.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"}),un.exports}function an(){if($t)return zt;$t=1;var t=fn();return zt=function(n,r){return t[n]||(t[n]=r||{})}}function ln(){if(Vt)return Bt;Vt=1;var t=Et(),n=Object;return Bt=function(r){return n(t(r))}}function sn(){if(Ut)return Wt;Ut=1;var t=gt(),n=ln(),r=t({}.hasOwnProperty);return Wt=Object.hasOwn||function(t,e){return r(n(t),e)}}function pn(){if(Kt)return qt;Kt=1;var t=gt(),n=0,r=Math.random(),e=t(1.1.toString);return qt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++n+r,36)}}function dn(){if(Xt)return Gt;Xt=1;var t=h(),n=an(),r=sn(),e=pn(),o=Pt(),i=It(),u=t.Symbol,c=n("wks"),f=i?u.for||u:u&&u.withoutSetter||e;return Gt=function(t){return r(c,t)||(c[t]=o&&r(u,t)?u[t]:f("Symbol."+t)),c[t]}}function vn(){if(Qt)return Yt;Qt=1;var t=P(),n=jt(),r=At(),e=Ct(),o=Rt(),i=dn(),u=TypeError,c=i("toPrimitive");return Yt=function(i,f){if(!n(i)||r(i))return i;var a,l=e(i,c);if(l){if(void 0===f&&(f="default"),a=t(l,i,f),!n(a)||r(a))return a;throw new u("Can't convert object to primitive value")}return void 0===f&&(f="number"),o(i,f)}}function hn(){if(Zt)return Jt;Zt=1;var t=vn(),n=At();return Jt=function(r){var e=t(r,"string");return n(e)?e:e+""}}function yn(){if(nn)return tn;nn=1;var t=h(),n=jt(),r=t.document,e=n(r)&&n(r.createElement);return tn=function(t){return e?r.createElement(t):{}}}function mn(){if(en)return rn;en=1;var t=T(),n=j(),r=yn();return rn=!t&&!n(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function gn(){if(on)return S;on=1;var t=T(),n=P(),r=function(){if(I)return yt;I=1;var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!t.call({1:2},1);return yt.f=r?function(t){var r=n(this,t);return!!r&&r.enumerable}:t,yt}(),e=mt(),o=xt(),i=hn(),u=sn(),c=mn(),f=Object.getOwnPropertyDescriptor;return S.f=t?f:function(t,a){if(t=o(t),a=i(a),c)try{return f(t,a)}catch(t){}if(u(t,a))return e(!n(r.f,t,a),t[a])},S}var bn,wn,On,En,xn,Sn,jn,Tn={};function Ln(){if(wn)return bn;wn=1;var t=T(),n=j();return bn=t&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Pn(){if(En)return On;En=1;var t=jt(),n=String,r=TypeError;return On=function(e){if(t(e))return e;throw new r(n(e)+" is not an object")}}function In(){if(xn)return Tn;xn=1;var t=T(),n=mn(),r=Ln(),e=Pn(),o=hn(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",a="configurable",l="writable";return Tn.f=t?r?function(t,n,r){if(e(t),n=o(n),e(r),"function"==typeof t&&"prototype"===n&&"value"in r&&l in r&&!r[l]){var i=c(t,n);i&&i[l]&&(t[n]=r.value,r={configurable:a in r?r[a]:i[a],enumerable:f in r?r[f]:i[f],writable:!1})}return u(t,n,r)}:u:function(t,r,c){if(e(t),r=o(r),e(c),n)try{return u(t,r,c)}catch(t){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(t[r]=c.value),t},Tn}function An(){if(jn)return Sn;jn=1;var t=T(),n=In(),r=mt();return Sn=t?function(t,e,o){return n.f(t,e,r(1,o))}:function(t,n,r){return t[n]=r,t}}var Mn,_n,Cn,Rn,Nn,kn,Fn,Dn,Hn,zn,$n,Bn,Vn,Wn,Un,qn={exports:{}};function Kn(){if(_n)return Mn;_n=1;var t=T(),n=sn(),r=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,o=n(r,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&e(r,"name").configurable);return Mn={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function Gn(){if(Rn)return Cn;Rn=1;var t=gt(),n=St(),r=fn(),e=t(Function.toString);return n(r.inspectSource)||(r.inspectSource=function(t){return e(t)}),Cn=r.inspectSource}function Xn(){if(Dn)return Fn;Dn=1;var t=an(),n=pn(),r=t("keys");return Fn=function(t){return r[t]||(r[t]=n(t))}}function Yn(){return zn?Hn:(zn=1,Hn={})}function Qn(){if(Bn)return $n;Bn=1;var t,n,r,e=function(){if(kn)return Nn;kn=1;var t=h(),n=St(),r=t.WeakMap;return Nn=n(r)&&/native code/.test(String(r))}(),o=h(),i=jt(),u=An(),c=sn(),f=fn(),a=Xn(),l=Yn(),s="Object already initialized",p=o.TypeError,d=o.WeakMap;if(e||f.state){var v=f.state||(f.state=new d);v.get=v.get,v.has=v.has,v.set=v.set,t=function(t,n){if(v.has(t))throw new p(s);return n.facade=t,v.set(t,n),n},n=function(t){return v.get(t)||{}},r=function(t){return v.has(t)}}else{var y=a("state");l[y]=!0,t=function(t,n){if(c(t,y))throw new p(s);return n.facade=t,u(t,y,n),n},n=function(t){return c(t,y)?t[y]:{}},r=function(t){return c(t,y)}}return $n={set:t,get:n,has:r,enforce:function(e){return r(e)?n(e):t(e,{})},getterFor:function(t){return function(r){var e;if(!i(r)||(e=n(r)).type!==t)throw new p("Incompatible receiver, "+t+" required");return e}}}}function Jn(){if(Vn)return qn.exports;Vn=1;var t=gt(),n=j(),r=St(),e=sn(),o=T(),i=Kn().CONFIGURABLE,u=Gn(),c=Qn(),f=c.enforce,a=c.get,l=String,s=Object.defineProperty,p=t("".slice),d=t("".replace),v=t([].join),h=o&&!n(function(){return 8!==s(function(){},"length",{value:8}).length}),y=String(String).split("String"),m=qn.exports=function(t,n,r){"Symbol("===p(l(n),0,7)&&(n="["+d(l(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!e(t,"name")||i&&t.name!==n)&&(o?s(t,"name",{value:n,configurable:!0}):t.name=n),h&&r&&e(r,"arity")&&t.length!==r.arity&&s(t,"length",{value:r.arity});try{r&&e(r,"constructor")&&r.constructor?o&&s(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=f(t);return e(u,"source")||(u.source=v(y,"string"==typeof n?n:"")),t};return Function.prototype.toString=m(function(){return r(this)&&a(this).source||u(this)},"toString"),qn.exports}function Zn(){if(Un)return Wn;Un=1;var t=St(),n=In(),r=Jn(),e=cn();return Wn=function(o,i,u,c){c||(c={});var f=c.enumerable,a=void 0!==c.name?c.name:i;if(t(u)&&r(u,a,c),c.global)f?o[i]=u:e(i,u);else{try{c.unsafe?o[i]&&(f=!0):delete o[i]}catch(t){}f?o[i]=u:n.f(o,i,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return o}}var tr,nr,rr,er,or,ir,ur,cr,fr,ar,lr,sr,pr,dr,vr,hr,yr,mr={};function gr(){if(er)return rr;er=1;var t=function(){if(nr)return tr;nr=1;var t=Math.ceil,n=Math.floor;return tr=Math.trunc||function(r){var e=+r;return(e>0?n:t)(e)}}();return rr=function(n){var r=+n;return r!=r||0===r?0:t(r)}}function br(){if(ir)return or;ir=1;var t=gr(),n=Math.max,r=Math.min;return or=function(e,o){var i=t(e);return i<0?n(i+o,0):r(i,o)}}function wr(){if(cr)return ur;cr=1;var t=gr(),n=Math.min;return ur=function(r){var e=t(r);return e>0?n(e,9007199254740991):0}}function Or(){if(ar)return fr;ar=1;var t=wr();return fr=function(n){return t(n.length)}}function Er(){if(dr)return pr;dr=1;var t=gt(),n=sn(),r=xt(),e=function(){if(sr)return lr;sr=1;var t=xt(),n=br(),r=Or(),e=function(e){return function(o,i,u){var c=t(o),f=r(c);if(0===f)return!e&&-1;var a,l=n(u,f);if(e&&i!=i){for(;f>l;)if((a=c[l++])!=a)return!0}else for(;f>l;l++)if((e||l in c)&&c[l]===i)return e||l||0;return!e&&-1}};return lr={includes:e(!0),indexOf:e(!1)}}().indexOf,o=Yn(),i=t([].push);return pr=function(t,u){var c,f=r(t),a=0,l=[];for(c in f)!n(o,c)&&n(f,c)&&i(l,c);for(;u.length>a;)n(f,c=u[a++])&&(~e(l,c)||i(l,c));return l}}function xr(){return hr?vr:(hr=1,vr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Sr,jr,Tr,Lr,Pr,Ir,Ar,Mr,_r,Cr,Rr,Nr,kr,Fr,Dr={};function Hr(){if(Tr)return jr;Tr=1;var t=Tt(),n=gt(),r=function(){if(yr)return mr;yr=1;var t=Er(),n=xr().concat("length","prototype");return mr.f=Object.getOwnPropertyNames||function(r){return t(r,n)},mr}(),e=(Sr||(Sr=1,Dr.f=Object.getOwnPropertySymbols),Dr),o=Pn(),i=n([].concat);return jr=t("Reflect","ownKeys")||function(t){var n=r.f(o(t)),u=e.f;return u?i(n,u(t)):n}}function zr(){if(Pr)return Lr;Pr=1;var t=sn(),n=Hr(),r=gn(),e=In();return Lr=function(o,i,u){for(var c=n(i),f=e.f,a=r.f,l=0;l<c.length;l++){var s=c[l];t(o,s)||u&&t(u,s)||f(o,s,a(i,s))}}}function $r(){if(_r)return Mr;_r=1;var t=h(),n=gn().f,r=An(),e=Zn(),o=cn(),i=zr(),u=function(){if(Ar)return Ir;Ar=1;var t=j(),n=St(),r=/#|\.prototype\./,e=function(r,e){var f=i[o(r)];return f===c||f!==u&&(n(e)?t(e):!!e)},o=e.normalize=function(t){return String(t).replace(r,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",c=e.POLYFILL="P";return Ir=e}();return Mr=function(c,f){var a,l,s,p,d,v=c.target,h=c.global,y=c.stat;if(a=h?t:y?t[v]||o(v,{}):t[v]&&t[v].prototype)for(l in f){if(p=f[l],s=c.dontCallGetSet?(d=n(a,l))&&d.value:a[l],!u(h?l:v+(y?".":"#")+l,c.forced)&&void 0!==s){if(typeof p==typeof s)continue;i(p,s)}(c.sham||s&&s.sham)&&r(p,"sham",!0),e(a,l,p,c)}}}function Br(){if(Rr)return Cr;Rr=1;var t=j();return Cr=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}!function(){if(Fr)return v;Fr=1;var t=$r(),n=j(),r=ln(),e=function(){if(kr)return Nr;kr=1;var t=sn(),n=St(),r=ln(),e=Xn(),o=Br(),i=e("IE_PROTO"),u=Object,c=u.prototype;return Nr=o?u.getPrototypeOf:function(e){var o=r(e);if(t(o,i))return o[i];var f=o.constructor;return n(f)&&o instanceof f?f.prototype:o instanceof u?c:null}}(),o=Br();t({target:"Object",stat:!0,forced:n(function(){e(1)}),sham:!o},{getPrototypeOf:function(t){return e(r(t))}})}();var Vr,Wr,Ur,qr,Kr,Gr,Xr,Yr={};function Qr(){if(Wr)return Vr;Wr=1;var t={};return t[dn()("toStringTag")]="z",Vr="[object z]"===String(t)}function Jr(){if(qr)return Ur;qr=1;var t=Qr(),n=St(),r=bt(),e=dn()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return Ur=t?r:function(t){var u,c,f;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(c=function(t,n){try{return t[n]}catch(t){}}(u=o(t),e))?c:i?r(u):"Object"===(f=r(u))&&n(u.callee)?"Arguments":f}}!function(){if(Xr)return Yr;Xr=1;var t=Qr(),n=Zn(),r=function(){if(Gr)return Kr;Gr=1;var t=Qr(),n=Jr();return Kr=t?{}.toString:function(){return"[object "+n(this)+"]"}}();t||n(Object.prototype,"toString",r,{unsafe:!0})}();var Zr,te,ne,re,ee,oe,ie,ue,ce,fe,ae={};function le(){if(re)return ne;re=1;var t=gt();return ne=t([].slice)}function se(){if(oe)return ee;oe=1;var t=gt(),n=_t(),r=jt(),e=sn(),o=le(),i=L(),u=Function,c=t([].concat),f=t([].join),a={};return ee=i?u.bind:function(t){var i=n(this),l=i.prototype,s=o(arguments,1),p=function(){var n=c(s,o(arguments));return this instanceof p?function(t,n,r){if(!e(a,n)){for(var o=[],i=0;i<n;i++)o[i]="a["+i+"]";a[n]=u("C,a","return new C("+f(o,",")+")")}return a[n](t,r)}(i,n.length,n):i.apply(t,n)};return r(l)&&(p.prototype=l),p},ee}function pe(){if(ue)return ie;ue=1;var t=gt(),n=j(),r=St(),e=Jr(),o=Tt(),i=Gn(),u=function(){},c=o("Reflect","construct"),f=/^\s*(?:class|function)\b/,a=t(f.exec),l=!f.test(u),s=function(t){if(!r(t))return!1;try{return c(u,[],t),!0}catch(t){return!1}},p=function(t){if(!r(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!a(f,i(t))}catch(t){return!0}};return p.sham=!0,ie=!c||n(function(){var t;return s(s.call)||!s(Object)||!s(function(){t=!0})||t})?p:s}function de(){if(fe)return ce;fe=1;var t=pe(),n=Mt(),r=TypeError;return ce=function(e){if(t(e))return e;throw new r(n(e)+" is not a constructor")}}var ve,he,ye,me,ge,be,we,Oe,Ee={};function xe(){if(he)return ve;he=1;var t=Er(),n=xr();return ve=Object.keys||function(r){return t(r,n)}}function Se(){if(we)return be;we=1;var t,n=Pn(),r=function(){if(ye)return Ee;ye=1;var t=T(),n=Ln(),r=In(),e=Pn(),o=xt(),i=xe();return Ee.f=t&&!n?Object.defineProperties:function(t,n){e(t);for(var u,c=o(n),f=i(n),a=f.length,l=0;a>l;)r.f(t,u=f[l++],c[u]);return t},Ee}(),e=xr(),o=Yn(),i=function(){if(ge)return me;ge=1;var t=Tt();return me=t("document","documentElement")}(),u=yn(),c=Xn(),f="prototype",a="script",l=c("IE_PROTO"),s=function(){},p=function(t){return"<"+a+">"+t+"</"+a+">"},d=function(t){t.write(p("")),t.close();var n=t.parentWindow.Object;return t=null,n},v=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var n,r,o;v="undefined"!=typeof document?document.domain&&t?d(t):(r=u("iframe"),o="java"+a+":",r.style.display="none",i.appendChild(r),r.src=String(o),(n=r.contentWindow.document).open(),n.write(p("document.F=Object")),n.close(),n.F):d(t);for(var c=e.length;c--;)delete v[f][e[c]];return v()};return o[l]=!0,be=Object.create||function(t,e){var o;return null!==t?(s[f]=n(t),o=new s,s[f]=null,o[l]=t):o=v(),void 0===e?o:r.f(o,e)}}!function(){if(Oe)return ae;Oe=1;var t=$r(),n=Tt(),r=function(){if(te)return Zr;te=1;var t=L(),n=Function.prototype,r=n.apply,e=n.call;return Zr="object"==typeof Reflect&&Reflect.apply||(t?e.bind(r):function(){return e.apply(r,arguments)}),Zr}(),e=se(),o=de(),i=Pn(),u=jt(),c=Se(),f=j(),a=n("Reflect","construct"),l=Object.prototype,s=[].push,p=f(function(){function t(){}return!(a(function(){},[],t)instanceof t)}),d=!f(function(){a(function(){})}),v=p||d;t({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,n){o(t),i(n);var f=arguments.length<3?t:o(arguments[2]);if(d&&!p)return a(t,n,f);if(t===f){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var v=[null];return r(s,v,n),new(r(e,t,v))}var h=f.prototype,y=c(u(h)?h:l),m=r(t,y,n);return u(m)?m:y}})}(),function(){if(void 0!==window.Reflect&&void 0!==window.customElements&&!window.customElements.polyfillWrapFlushCallback&&!window.__POWERED_BY_QIANKUN__){var t=Object.getPrototypeOf(window).HTMLElement,n=function(){return Reflect.construct(t,[],this.constructor)};window.HTMLElement=n,HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}();var je=function(n){function r(){var t=n.call(this)||this,r=t.attachShadow({mode:"open"}),e=r.ownerDocument.createElement("span");return e.style.display="inline-block",r.appendChild(e),t.span=e,t}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}a(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(r,n),Object.defineProperty(r,"observedAttributes",{get:function(){return["data-value"]},enumerable:!1,configurable:!0}),r.prototype.attributeChangedCallback=function(t,n,r){if("data-value"===t){if(n===r)return;this.render(r||"")}},r.prototype.render=function(n){t.render(n,this.span,{throwOnError:!1,output:"mathml"})},r}(HTMLElement);window.customElements.get("w-e-formula-card")||window.customElements.define("w-e-formula-card",je),n("en",{formula:{formula:"Formula",placeholder:"Use LateX syntax",insert:"Insert formula",edit:"Edit formula",ok:"OK"}}),n("zh-CN",{formula:{formula:"公式",placeholder:"使用 LateX 语法",insert:"插入公式",edit:"编辑公式",ok:"确定"}});var Te,Le,Pe,Ie,Ae,Me,_e,Ce,Re,Ne,ke,Fe,De,He,ze,$e={type:"formula",elemToHtml:function(t,n){var r=t.value;return'<span data-w-e-type="formula" data-w-e-is-void data-w-e-is-inline data-value="'.concat(void 0===r?"":r,'"></span>')}},Be={};function Ve(){if(Ie)return Pe;Ie=1;var t=function(){if(Le)return Te;Le=1;var t=bt(),n=gt();return Te=function(r){if("Function"===t(r))return n(r)}}(),n=_t(),r=L(),e=t(t.bind);return Pe=function(t,o){return n(t),void 0===o?t:r?e(t,o):function(){return t.apply(o,arguments)}},Pe}function We(){if(Me)return Ae;Me=1;var t=bt();return Ae=Array.isArray||function(n){return"Array"===t(n)}}function Ue(){if(Ce)return _e;Ce=1;var t=We(),n=pe(),r=jt(),e=dn()("species"),o=Array;return _e=function(i){var u;return t(i)&&(u=i.constructor,(n(u)&&(u===o||t(u.prototype))||r(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?o:u}}function qe(){if(Ne)return Re;Ne=1;var t=Ue();return Re=function(n,r){return new(t(n))(0===r?0:r)}}function Ke(){if(He)return De;He=1;var t=dn(),n=Se(),r=In().f,e=t("unscopables"),o=Array.prototype;return void 0===o[e]&&r(o,e,{configurable:!0,value:n(null)}),De=function(t){o[e][t]=!0}}!function(){if(ze)return Be;ze=1;var t=$r(),n=function(){if(Fe)return ke;Fe=1;var t=Ve(),n=gt(),r=wt(),e=ln(),o=Or(),i=qe(),u=n([].push),c=function(n){var c=1===n,f=2===n,a=3===n,l=4===n,s=6===n,p=7===n,d=5===n||s;return function(v,h,y,m){for(var g,b,w=e(v),O=r(w),E=o(O),x=t(h,y),S=0,j=m||i,T=c?j(v,E):f||p?j(v,0):void 0;E>S;S++)if((d||S in O)&&(b=x(g=O[S],S,w),n))if(c)T[S]=b;else if(b)switch(n){case 3:return!0;case 5:return g;case 6:return S;case 2:u(T,g)}else switch(n){case 4:return!1;case 7:u(T,g)}return s?-1:a||l?l:T}};return ke={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}}().find,r=Ke(),e="find",o=!0;e in[]&&Array(1)[e](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{find:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),r(e)}();var Ge,Xe,Ye,Qe,Je,Ze,to,no,ro,eo,oo,io,uo,co={};function fo(){if(Xe)return Ge;Xe=1;var t=Jr(),n=String;return Ge=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return n(r)}}function ao(){if(Qe)return Ye;Qe=1;var t=Pn();return Ye=function(){var n=t(this),r="";return n.hasIndices&&(r+="d"),n.global&&(r+="g"),n.ignoreCase&&(r+="i"),n.multiline&&(r+="m"),n.dotAll&&(r+="s"),n.unicode&&(r+="u"),n.unicodeSets&&(r+="v"),n.sticky&&(r+="y"),r}}function lo(){if(io)return oo;io=1;var t,n,r=P(),e=gt(),o=fo(),i=ao(),u=function(){if(Ze)return Je;Ze=1;var t=j(),n=h().RegExp,r=t(function(){var t=n("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),e=r||t(function(){return!n("a","y").sticky}),o=r||t(function(){var t=n("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return Je={BROKEN_CARET:o,MISSED_STICKY:e,UNSUPPORTED_Y:r}}(),c=an(),f=Se(),a=Qn().get,l=function(){if(no)return to;no=1;var t=j(),n=h().RegExp;return to=t(function(){var t=n(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),s=function(){if(eo)return ro;eo=1;var t=j(),n=h().RegExp;return ro=t(function(){var t=n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),p=c("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,v=d,y=e("".charAt),m=e("".indexOf),g=e("".replace),b=e("".slice),w=(n=/b*/g,r(d,t=/a/,"a"),r(d,n,"a"),0!==t.lastIndex||0!==n.lastIndex),O=u.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];return(w||E||O||l||s)&&(v=function(t){var n,e,u,c,l,s,h,x=this,S=a(x),j=o(t),T=S.raw;if(T)return T.lastIndex=x.lastIndex,n=r(v,T,j),x.lastIndex=T.lastIndex,n;var L=S.groups,P=O&&x.sticky,I=r(i,x),A=x.source,M=0,_=j;if(P&&(I=g(I,"y",""),-1===m(I,"g")&&(I+="g"),_=b(j,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&"\n"!==y(j,x.lastIndex-1))&&(A="(?: "+A+")",_=" "+_,M++),e=new RegExp("^(?:"+A+")",I)),E&&(e=new RegExp("^"+A+"$(?!\\s)",I)),w&&(u=x.lastIndex),c=r(d,P?e:x,_),P?c?(c.input=b(c.input,M),c[0]=b(c[0],M),c.index=x.lastIndex,x.lastIndex+=c[0].length):x.lastIndex=0:w&&c&&(x.lastIndex=x.global?c.index+c[0].length:u),E&&c&&c.length>1&&r(p,c[0],e,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(c[l]=void 0)}),c&&L)for(c.groups=s=f(null),l=0;l<L.length;l++)s[(h=L[l])[0]]=c[h[1]];return c}),oo=v}!function(){if(uo)return co;uo=1;var t=$r(),n=lo();t({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})}();var so,po,vo,ho,yo,mo,go,bo={};function wo(){return po?so:(po=1,so="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(go)return bo;go=1;var t=$r(),n=function(){if(ho)return vo;ho=1;var t=gt(),n=Et(),r=fo(),e=wo(),o=t("".replace),i=RegExp("^["+e+"]+"),u=RegExp("(^|[^"+e+"])["+e+"]+$"),c=function(t){return function(e){var c=r(n(e));return 1&t&&(c=o(c,i,"")),2&t&&(c=o(c,u,"$1")),c}};return vo={start:c(1),end:c(2),trim:c(3)}}().trim,r=function(){if(mo)return yo;mo=1;var t=Kn().PROPER,n=j(),r=wo();return yo=function(e){return n(function(){return!!r[e]()||"​…᠎"!=="​…᠎"[e]()||t&&r[e].name!==e})}}();t({target:"String",proto:!0,forced:r("trim")},{trim:function(){return n(this)}})}();var Oo,Eo,xo={};function So(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function jo(t={},n={}){Object.keys(n).forEach(r=>{void 0===t[r]?t[r]=n[r]:So(n[r])&&So(t[r])&&Object.keys(n[r]).length>0&&jo(t[r],n[r])})}Eo||(Eo=1,function(){if(Oo)return xo;Oo=1;var t=$r(),n=h();t({global:!0,forced:n.globalThis!==n},{globalThis:n})}());const To={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Lo(){const t="undefined"!=typeof document?document:{};return jo(t,To),t}const Po={document:To,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:t=>"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function Io(){const t="undefined"!=typeof window?window:{};return jo(t,Po),t}class Ao extends Array{constructor(t){"number"==typeof t?super(t):(super(...t||[]),function(t){const n=t.__proto__;Object.defineProperty(t,"__proto__",{get:()=>n,set(t){n.__proto__=t}})}(this))}}function Mo(t,n){const r=Io(),e=Lo();let o=[];if(!n&&t instanceof Ao)return t;if(!t)return new Ao(o);if("string"==typeof t){const r=t.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){let t="div";0===r.indexOf("<li")&&(t="ul"),0===r.indexOf("<tr")&&(t="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(t="tr"),0===r.indexOf("<tbody")&&(t="table"),0===r.indexOf("<option")&&(t="select");const n=e.createElement(t);n.innerHTML=r;for(let t=0;t<n.childNodes.length;t+=1)o.push(n.childNodes[t])}else o=function(t,n){if("string"!=typeof t)return[t];const r=[],e=n.querySelectorAll(t);for(let t=0;t<e.length;t+=1)r.push(e[t]);return r}(t.trim(),n||e)}else if(t.nodeType||t===r||t===e)o.push(t);else if(Array.isArray(t)){if(t instanceof Ao)return t;o=t}return new Ao(function(t){const n=[];for(let r=0;r<t.length;r+=1)-1===n.indexOf(t[r])&&n.push(t[r]);return n}(o))}function _o(t){if(void 0===t){const t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){const n=[];for(let r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(let n=0;n<this.length;n+=1){const r=this[n];if(Array.isArray(t)&&r.multiple&&"select"===r.nodeName.toLowerCase())for(let n=0;n<r.options.length;n+=1)r.options[n].selected=t.indexOf(r.options[n].value)>=0;else r.value=t}return this}function Co(...t){let[n,r,e,o]=t;function i(t){const n=t.target;if(!n)return;const o=t.target.dom7EventData||[];if(o.indexOf(t)<0&&o.unshift(t),Mo(n).is(r))e.apply(n,o);else{const t=Mo(n).parents();for(let n=0;n<t.length;n+=1)Mo(t[n]).is(r)&&e.apply(t[n],o)}}function u(t){const n=t&&t.target&&t.target.dom7EventData||[];n.indexOf(t)<0&&n.unshift(t),e.apply(this,n)}"function"==typeof t[1]&&([n,e,o]=t,r=void 0),o||(o=!1);const c=n.split(" ");let f;for(let t=0;t<this.length;t+=1){const n=this[t];if(r)for(f=0;f<c.length;f+=1){const t=c[f];n.dom7LiveListeners||(n.dom7LiveListeners={}),n.dom7LiveListeners[t]||(n.dom7LiveListeners[t]=[]),n.dom7LiveListeners[t].push({listener:e,proxyListener:i}),n.addEventListener(t,i,o)}else for(f=0;f<c.length;f+=1){const t=c[f];n.dom7Listeners||(n.dom7Listeners={}),n.dom7Listeners[t]||(n.dom7Listeners[t]=[]),n.dom7Listeners[t].push({listener:e,proxyListener:u}),n.addEventListener(t,u,o)}}return this}function Ro(t){if(void 0===t)return this[0]?this[0].innerHTML:null;for(let n=0;n<this.length;n+=1)this[n].innerHTML=t;return this}function No(t){const n=Io(),r=Lo(),e=this[0];let o,i;if(!e||void 0===t)return!1;if("string"==typeof t){if(e.matches)return e.matches(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);for(o=Mo(t),i=0;i<o.length;i+=1)if(o[i]===e)return!0;return!1}if(t===r)return e===r;if(t===n)return e===n;if(t.nodeType||t instanceof Ao){for(o=t.nodeType?[t]:t,i=0;i<o.length;i+=1)if(o[i]===e)return!0;return!1}return!1}function ko(...t){let n;const r=Lo();for(let e=0;e<t.length;e+=1){n=t[e];for(let t=0;t<this.length;t+=1)if("string"==typeof n){const e=r.createElement("div");for(e.innerHTML=n;e.firstChild;)this[t].appendChild(e.firstChild)}else if(n instanceof Ao)for(let r=0;r<n.length;r+=1)this[t].appendChild(n[r]);else this[t].appendChild(n)}return this}function Fo(t){const n=[];for(let r=0;r<this.length;r+=1){let e=this[r].parentNode;for(;e;)t?Mo(e).is(t)&&n.push(e):n.push(e),e=e.parentNode}return Mo(n)}function Do(t){const n=[];for(let r=0;r<this.length;r+=1){const e=this[r].querySelectorAll(t);for(let t=0;t<e.length;t+=1)n.push(e[t])}return Mo(n)}Mo.fn=Ao.prototype;const Ho="resize scroll".split(" ");const zo=($o="focus",function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)Ho.indexOf($o)<0&&($o in this[t]?this[t][$o]():Mo(this[t]).trigger($o));return this}return this.on($o,...t)});var $o;ko&&(Mo.fn.append=ko),Ro&&(Mo.fn.html=Ro),_o&&(Mo.fn.val=_o),Co&&(Mo.fn.on=Co),zo&&(Mo.fn.focus=zo),No&&(Mo.fn.is=No),Fo&&(Mo.fn.parents=Fo),Do&&(Mo.fn.find=Do);var Bo,Vo,Wo,Uo,qo,Ko,Go,Xo={};function Yo(){if(Vo)return Bo;Vo=1;var t=TypeError;return Bo=function(n){if(n>9007199254740991)throw t("Maximum allowed index exceeded");return n}}function Qo(){if(Uo)return Wo;Uo=1;var t=T(),n=In(),r=mt();return Wo=function(e,o,i){t?n.f(e,o,r(0,i)):e[o]=i}}function Jo(){if(Ko)return qo;Ko=1;var t=j(),n=dn(),r=Lt(),e=n("species");return qo=function(n){return r>=51||!t(function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[n](Boolean).foo})}}!function(){if(Go)return Xo;Go=1;var t=$r(),n=j(),r=We(),e=jt(),o=ln(),i=Or(),u=Yo(),c=Qo(),f=qe(),a=Jo(),l=dn(),s=Lt(),p=l("isConcatSpreadable"),d=s>=51||!n(function(){var t=[];return t[p]=!1,t.concat()[0]!==t}),v=function(t){if(!e(t))return!1;var n=t[p];return void 0!==n?!!n:r(t)};t({target:"Array",proto:!0,arity:1,forced:!d||!a("concat")},{concat:function(t){var n,r,e,a,l,s=o(this),p=f(s,0),d=0;for(n=-1,e=arguments.length;n<e;n++)if(v(l=-1===n?s:arguments[n]))for(a=i(l),u(d+a),r=0;r<a;r++,d++)r in l&&c(p,d,l[r]);else u(d+1),c(p,d++,l);return p.length=d,p}})}();function Zo(t){return"".concat(t,"-").concat(((t=21)=>{let n="",r=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)n+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[t]];return n})())}function ti(){return Zo("w-e-insert-formula")}var ni=function(){function t(){this.title=r("formula.edit"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textareaId=ti(),this.buttonId=ti()}return t.prototype.getSelectedElem=function(t){var n=e.getSelectedNodeByType(t,"formula");return null==n?null:n},t.prototype.getValue=function(t){var n=this.getSelectedElem(t);return n&&n.value||""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,n){},t.prototype.isDisabled=function(t){var n=t.selection;return null==n||(!!o.isExpanded(n)||null==this.getSelectedElem(t))},t.prototype.getModalPositionNode=function(t){return this.getSelectedElem(t)},t.prototype.getModalContentElem=function(t){var n=this,e=this.textareaId,o=this.buttonId,c=l(i(r("formula.formula"),e,r("formula.placeholder")),2),f=c[0],a=Mo(c[1]),s=l(u(o,r("formula.ok")),1)[0];if(null==this.$content){var p=Mo("<div></div>");p.on("click","#".concat(o),function(r){r.preventDefault();var o=p.find("#".concat(e)).val().trim();n.updateFormula(t,o),t.hidePanelOrModal()}),this.$content=p}var d=this.$content;d.html(""),d.append(f),d.append(s);var v=this.getValue(t);return a.val(v),setTimeout(function(){a.focus()}),d[0]},t.prototype.updateFormula=function(t,n){if(n&&(t.restoreSelection(),!this.isDisabled(t))){var r=this.getSelectedElem(t);if(null!=r){var o=e.findPath(t,r),i={value:n};c.setNodes(t,i,{at:o})}}},t}();function ri(){return Zo("w-e-insert-formula")}var ei=function(){function t(){this.title=r("formula.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M941.6 734.72L985.984 640H1024l-64 384H0v-74.24l331.552-391.2L0 227.008V0h980L1024 256h-34.368l-18.72-38.88C935.584 143.744 909.024 128 832 128H169.984l353.056 353.056L225.632 832H768c116 0 146.656-41.568 173.6-97.28z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textareaId=ri(),this.buttonId=ri()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,n){},t.prototype.isDisabled=function(t){var n=t.selection;if(null==n)return!0;if(o.isExpanded(n))return!0;var r=e.getSelectedElems(t);return!!r.some(function(n){return t.isVoid(n)})||!!r.some(function(t){return"pre"===e.getNodeType(t)})},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var n=this,e=this.textareaId,o=this.buttonId,c=l(i(r("formula.formula"),e,r("formula.placeholder")),2),f=c[0],a=Mo(c[1]),s=l(u(o,r("formula.ok")),1)[0];if(null==this.$content){var p=Mo("<div></div>");p.on("click","#".concat(o),function(r){r.preventDefault();var o=p.find("#".concat(e)).val().trim();n.insertFormula(t,o),t.hidePanelOrModal()}),this.$content=p}var d=this.$content;return d.html(""),d.append(f),d.append(s),a.val(""),setTimeout(function(){a.focus()}),d[0]},t.prototype.insertFormula=function(t,n){if(n&&(t.restoreSelection(),!this.isDisabled(t))){var r={type:"formula",value:n,children:[{text:""}]};t.insertNode(r)}},t}();var oi={editorPlugin:function(t){var n=t.isInline,r=t.isVoid,o=t;return o.isInline=function(t){return"formula"===e.getNodeType(t)||n(t)},o.isVoid=function(t){return"formula"===e.getNodeType(t)||r(t)},o},renderElems:[{type:"formula",renderElem:function(t,n,r){var o=e.isNodeSelected(r,t),i=t.value,u=f("w-e-formula-card",{dataset:{value:void 0===i?"":i}},null);return f("div",{className:"w-e-textarea-formula-container",props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:o?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"3px 3px"}},[u])}}],elemsToHtml:[$e],parseElemsHtml:[{selector:'span[data-w-e-type="formula"]',parseElemHtml:function(t,n,r){return{type:"formula",value:t.getAttribute("data-value")||"",children:[{text:""}]}}}],menus:[{key:"insertFormula",factory:function(){return new ei}},{key:"editFormula",factory:function(){return new ni}}]};export{oi as default};
2
2
  //# sourceMappingURL=index.mjs.map