@wangeditor-kai/editor 5.6.55-kai.1 → 5.6.55-kai.3
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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wangEditor={})}(this,function(e){"use strict";var t,r,n,o,i,a,s,u,l,c,d,f,h,p,g,m,v,y,b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function w(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function E(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}function x(){return r?t:(r=1,t=function(e){try{return!!e()}catch(e){return!0}})}function S(){if(o)return n;o=1;var e=x();return n=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function C(){if(a)return i;a=1;var e=S(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return i=e?n:function(e){return function(){return r.apply(e,arguments)}},i}function A(){if(u)return s;u=1;var e=C(),t=e({}.toString),r=e("".slice);return s=function(e){return r(t(e),8,-1)}}function D(){if(c)return l;c=1;var e=C(),t=x(),r=A(),n=Object,o=e("".split);return l=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?o(e,""):n(e)}:n}function T(){return f?d:(f=1,d=function(e){return null==e})}function k(){if(p)return h;p=1;var e=T(),t=TypeError;return h=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function O(){if(m)return g;m=1;var e=D(),t=k();return g=function(r){return e(t(r))}}function N(){if(y)return v;y=1;var e=function(e){return e&&e.Math===Math&&e};return v=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof b&&b)||e("object"==typeof v&&v)||function(){return this}()||Function("return this")()}var B,F,M,I,P,R,L,_,z,j,H,$,U,V,q,G,W,Y,K,X,Z,J,Q,ee,te,re,ne,oe,ie,ae={exports:{}};function se(){return F?B:(F=1,B=!1)}function ue(){if(I)return M;I=1;var e=N(),t=Object.defineProperty;return M=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function le(){if(P)return ae.exports;P=1;var e=se(),t=N(),r=ue(),n="__core-js_shared__",o=ae.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.47.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"}),ae.exports}function ce(){if(L)return R;L=1;var e=le();return R=function(t,r){return e[t]||(e[t]=r||{})}}function de(){if(z)return _;z=1;var e=k(),t=Object;return _=function(r){return t(e(r))}}function fe(){if(H)return j;H=1;var e=C(),t=de(),r=e({}.hasOwnProperty);return j=Object.hasOwn||function(e,n){return r(t(e),n)}}function he(){if(U)return $;U=1;var e=C(),t=0,r=Math.random(),n=e(1.1.toString);return $=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function pe(){if(W)return G;W=1;var e,t,r=N(),n=function(){if(q)return V;q=1;var e=N().navigator,t=e&&e.userAgent;return V=t?String(t):""}(),o=r.process,i=r.Deno,a=o&&o.versions||i&&i.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),G=t}function ge(){if(K)return Y;K=1;var e=pe(),t=x(),r=N().String;return Y=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}),Y}function me(){if(Z)return X;Z=1;var e=ge();return X=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function ve(){if(Q)return J;Q=1;var e=N(),t=ce(),r=fe(),n=he(),o=ge(),i=me(),a=e.Symbol,s=t("wks"),u=i?a.for||a:a&&a.withoutSetter||n;return J=function(e){return r(s,e)||(s[e]=o&&r(a,e)?a[e]:u("Symbol."+e)),s[e]}}function ye(){if(te)return ee;te=1;var e="object"==typeof document&&document.all;return ee=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function be(){if(ne)return re;ne=1;var e=ye();return re=function(t){return"object"==typeof t?null!==t:e(t)}}function we(){if(ie)return oe;ie=1;var e=be(),t=String,r=TypeError;return oe=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}var Ee,xe,Se,Ce,Ae={};function De(){if(xe)return Ee;xe=1;var e=x();return Ee=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function Te(){if(Ce)return Se;Ce=1;var e=De(),t=x();return Se=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}var ke,Oe,Ne,Be,Fe,Me,Ie,Pe,Re,Le,_e,ze,je,He,$e,Ue,Ve,qe,Ge,We,Ye,Ke,Xe,Ze,Je,Qe,et,tt,rt,nt,ot,it,at,st,ut,lt,ct,dt,ft,ht,pt,gt,mt,vt,yt,bt,wt,Et,xt,St,Ct,At,Dt,Tt,kt,Ot,Nt,Bt,Ft,Mt,It,Pt,Rt,Lt,_t={};function zt(){if(Oe)return ke;Oe=1;var e=N(),t=be(),r=e.document,n=t(r)&&t(r.createElement);return ke=function(e){return n?r.createElement(e):{}}}function jt(){if(Be)return Ne;Be=1;var e=De(),t=x(),r=zt();return Ne=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function Ht(){if(Me)return Fe;Me=1;var e=S(),t=Function.prototype.call;return Fe=e?t.bind(t):function(){return t.apply(t,arguments)},Fe}function $t(){if(Pe)return Ie;Pe=1;var e=N(),t=ye();return Ie=function(r,n){return arguments.length<2?(o=e[r],t(o)?o:void 0):e[r]&&e[r][n];var o},Ie}function Ut(){if(Le)return Re;Le=1;var e=C();return Re=e({}.isPrototypeOf)}function Vt(){if(ze)return _e;ze=1;var e=$t(),t=ye(),r=Ut(),n=me(),o=Object;return _e=n?function(e){return"symbol"==typeof e}:function(n){var i=e("Symbol");return t(i)&&r(i.prototype,o(n))}}function qt(){if(He)return je;He=1;var e=String;return je=function(t){try{return e(t)}catch(e){return"Object"}}}function Gt(){if(Ue)return $e;Ue=1;var e=ye(),t=qt(),r=TypeError;return $e=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function Wt(){if(qe)return Ve;qe=1;var e=Gt(),t=T();return Ve=function(r,n){var o=r[n];return t(o)?void 0:e(o)},Ve}function Yt(){if(Ke)return Ye;Ke=1;var e=Ht(),t=be(),r=Vt(),n=Wt(),o=function(){if(We)return Ge;We=1;var e=Ht(),t=ye(),r=be(),n=TypeError;return Ge=function(o,i){var a,s;if("string"===i&&t(a=o.toString)&&!r(s=e(a,o)))return s;if(t(a=o.valueOf)&&!r(s=e(a,o)))return s;if("string"!==i&&t(a=o.toString)&&!r(s=e(a,o)))return s;throw new n("Can't convert object to primitive value")},Ge}(),i=ve(),a=TypeError,s=i("toPrimitive");return Ye=function(i,u){if(!t(i)||r(i))return i;var l,c=n(i,s);if(c){if(void 0===u&&(u="default"),l=e(c,i,u),!t(l)||r(l))return l;throw new a("Can't convert object to primitive value")}return void 0===u&&(u="number"),o(i,u)}}function Kt(){if(Ze)return Xe;Ze=1;var e=Yt(),t=Vt();return Xe=function(r){var n=e(r,"string");return t(n)?n:n+""}}function Xt(){if(Je)return _t;Je=1;var e=De(),t=jt(),r=Te(),n=we(),o=Kt(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return _t.f=e?r?function(e,t,r){if(n(e),t=o(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&c in r&&!r[c]){var i=s(e,t);i&&i[c]&&(e[t]=r.value,r={configurable:l in r?r[l]:i[l],enumerable:u in r?r[u]:i[u],writable:!1})}return a(e,t,r)}:a:function(e,r,s){if(n(e),r=o(r),n(s),t)try{return a(e,r,s)}catch(e){}if("get"in s||"set"in s)throw new i("Accessors not supported");return"value"in s&&(e[r]=s.value),e},_t}function Zt(){if(rt)return tt;rt=1;var e=function(){if(et)return Qe;et=1;var e=Math.ceil,t=Math.floor;return Qe=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)},Qe}();return tt=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function Jt(){if(at)return it;at=1;var e=Zt(),t=Math.min;return it=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function Qt(){if(ut)return st;ut=1;var e=Jt();return st=function(t){return e(t.length)}}function er(){if(ct)return lt;ct=1;var e=O(),t=function(){if(ot)return nt;ot=1;var e=Zt(),t=Math.max,r=Math.min;return nt=function(n,o){var i=e(n);return i<0?t(i+o,0):r(i,o)},nt}(),r=Qt(),n=function(n){return function(o,i,a){var s=e(o),u=r(s);if(0===u)return!n&&-1;var l,c=t(a,u);if(n&&i!=i){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((n||c in s)&&s[c]===i)return n||c||0;return!n&&-1}};return lt={includes:n(!0),indexOf:n(!1)}}function tr(){return ft?dt:(ft=1,dt={})}function rr(){if(pt)return ht;pt=1;var e=C(),t=fe(),r=O(),n=er().indexOf,o=tr(),i=e([].push);return ht=function(e,a){var s,u=r(e),l=0,c=[];for(s in u)!t(o,s)&&t(u,s)&&i(c,s);for(;a.length>l;)t(u,s=a[l++])&&(~n(c,s)||i(c,s));return c},ht}function nr(){return mt?gt:(mt=1,gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function or(){if(bt)return Ae;bt=1;var e=De(),t=Te(),r=Xt(),n=we(),o=O(),i=function(){if(yt)return vt;yt=1;var e=rr(),t=nr();return vt=Object.keys||function(r){return e(r,t)},vt}();return Ae.f=e&&!t?Object.defineProperties:function(e,t){n(e);for(var a,s=o(t),u=i(t),l=u.length,c=0;l>c;)r.f(e,a=u[c++],s[a]);return e},Ae}function ir(){if(St)return xt;St=1;var e=ce(),t=he(),r=e("keys");return xt=function(e){return r[e]||(r[e]=t(e))}}function ar(){if(At)return Ct;At=1;var e,t=we(),r=or(),n=nr(),o=tr(),i=function(){if(Et)return wt;Et=1;var e=$t();return wt=e("document","documentElement")}(),a=zt(),s=ir(),u="prototype",l="script",c=s("IE_PROTO"),d=function(){},f=function(e){return"<"+l+">"+e+"</"+l+">"},h=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,o;p="undefined"!=typeof document?document.domain&&e?h(e):(r=a("iframe"),o="java"+l+":",r.style.display="none",i.appendChild(r),r.src=String(o),(t=r.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):h(e);for(var s=n.length;s--;)delete p[u][n[s]];return p()};return o[c]=!0,Ct=Object.create||function(e,n){var o;return null!==e?(d[u]=t(e),o=new d,d[u]=null,o[c]=e):o=p(),void 0===n?o:r.f(o,n)},Ct}function sr(){return Ot?kt:(Ot=1,kt={})}function ur(){return Mt?Ft:(Mt=1,Ft=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function lr(){if(Pt)return It;Pt=1;var e=De(),t=Xt(),r=ur();return It=e?function(e,n,o){return t.f(e,n,r(1,o))}:function(e,t,r){return e[t]=r,e}}function cr(){if(Lt)return Rt;Lt=1;var e,t,r,n=function(){if(Bt)return Nt;Bt=1;var e=N(),t=ye(),r=e.WeakMap;return Nt=t(r)&&/native code/.test(String(r))}(),o=N(),i=be(),a=lr(),s=fe(),u=le(),l=ir(),c=tr(),d="Object already initialized",f=o.TypeError,h=o.WeakMap;if(n||u.state){var p=u.state||(u.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new f(d);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},r=function(e){return p.has(e)}}else{var g=l("state");c[g]=!0,e=function(e,t){if(s(e,g))throw new f(d);return t.facade=e,a(e,g,t),t},t=function(e){return s(e,g)?e[g]:{}},r=function(e){return s(e,g)}}return Rt={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!i(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}var dr,fr,hr={},pr={};function gr(){if(fr)return hr;fr=1;var e=De(),t=Ht(),r=function(){if(dr)return pr;dr=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return pr.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,pr}(),n=ur(),o=O(),i=Kt(),a=fe(),s=jt(),u=Object.getOwnPropertyDescriptor;return hr.f=e?u:function(e,l){if(e=o(e),l=i(l),s)try{return u(e,l)}catch(e){}if(a(e,l))return n(!t(r.f,e,l),e[l])},hr}var mr,vr,yr,br,wr,Er,xr,Sr={exports:{}};function Cr(){if(vr)return mr;vr=1;var e=De(),t=fe(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,o=t(r,"name"),i=o&&"something"===function(){}.name,a=o&&(!e||e&&n(r,"name").configurable);return mr={EXISTS:o,PROPER:i,CONFIGURABLE:a}}function Ar(){if(br)return yr;br=1;var e=C(),t=ye(),r=le(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),yr=r.inspectSource}function Dr(){if(wr)return Sr.exports;wr=1;var e=C(),t=x(),r=ye(),n=fe(),o=De(),i=Cr().CONFIGURABLE,a=Ar(),s=cr(),u=s.enforce,l=s.get,c=String,d=Object.defineProperty,f=e("".slice),h=e("".replace),p=e([].join),g=o&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),m=String(String).split("String"),v=Sr.exports=function(e,t,r){"Symbol("===f(c(t),0,7)&&(t="["+h(c(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!n(e,"name")||i&&e.name!==t)&&(o?d(e,"name",{value:t,configurable:!0}):e.name=t),g&&r&&n(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?o&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var a=u(e);return n(a,"source")||(a.source=p(m,"string"==typeof t?t:"")),e};return Function.prototype.toString=v(function(){return r(this)&&l(this).source||a(this)},"toString"),Sr.exports}function Tr(){if(xr)return Er;xr=1;var e=ye(),t=Xt(),r=Dr(),n=ue();return Er=function(o,i,a,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:i;if(e(a)&&r(a,l,s),s.global)u?o[i]=a:n(i,a);else{try{s.unsafe?o[i]&&(u=!0):delete o[i]}catch(e){}u?o[i]=a:t.f(o,i,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return o},Er}var kr,Or={};var Nr,Br,Fr,Mr,Ir,Pr,Rr,Lr,_r,zr,jr,Hr,$r,Ur,Vr,qr,Gr,Wr,Yr,Kr,Xr,Zr,Jr,Qr,en,tn,rn,nn,on,an,sn,un,ln,cn={};function dn(){if(Fr)return Br;Fr=1;var e=$t(),t=C(),r=function(){if(kr)return Or;kr=1;var e=rr(),t=nr().concat("length","prototype");return Or.f=Object.getOwnPropertyNames||function(r){return e(r,t)},Or}(),n=(Nr||(Nr=1,cn.f=Object.getOwnPropertySymbols),cn),o=we(),i=t([].concat);return Br=e("Reflect","ownKeys")||function(e){var t=r.f(o(e)),a=n.f;return a?i(t,a(e)):t},Br}function fn(){if(Ir)return Mr;Ir=1;var e=fe(),t=dn(),r=gr(),n=Xt();return Mr=function(o,i,a){for(var s=t(i),u=n.f,l=r.f,c=0;c<s.length;c++){var d=s[c];e(o,d)||a&&e(a,d)||u(o,d,l(i,d))}},Mr}function hn(){if(_r)return Lr;_r=1;var e=N(),t=gr().f,r=lr(),n=Tr(),o=ue(),i=fn(),a=function(){if(Rr)return Pr;Rr=1;var e=x(),t=ye(),r=/#|\.prototype\./,n=function(r,n){var u=i[o(r)];return u===s||u!==a&&(t(n)?e(n):!!n)},o=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},i=n.data={},a=n.NATIVE="N",s=n.POLYFILL="P";return Pr=n}();return Lr=function(s,u){var l,c,d,f,h,p=s.target,g=s.global,m=s.stat;if(l=g?e:m?e[p]||o(p,{}):e[p]&&e[p].prototype)for(c in u){if(f=u[c],d=s.dontCallGetSet?(h=t(l,c))&&h.value:l[c],!a(g?c:p+(m?".":"#")+c,s.forced)&&void 0!==d){if(typeof f==typeof d)continue;i(f,d)}(s.sham||d&&d.sham)&&r(f,"sham",!0),n(l,c,f,s)}}}function pn(){if($r)return Hr;$r=1;var e=fe(),t=ye(),r=de(),n=ir(),o=function(){if(jr)return zr;jr=1;var e=x();return zr=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),zr}(),i=n("IE_PROTO"),a=Object,s=a.prototype;return Hr=o?a.getPrototypeOf:function(n){var o=r(n);if(e(o,i))return o[i];var u=o.constructor;return t(u)&&o instanceof u?u.prototype:o instanceof a?s:null},Hr}function gn(){if(Vr)return Ur;Vr=1;var e,t,r,n=x(),o=ye(),i=be(),a=ar(),s=pn(),u=Tr(),l=ve(),c=se(),d=l("iterator"),f=!1;return[].keys&&("next"in(r=[].keys())?(t=s(s(r)))!==Object.prototype&&(e=t):f=!0),!i(e)||n(function(){var t={};return e[d].call(t)!==t})?e={}:c&&(e=a(e)),o(e[d])||u(e,d,function(){return this}),Ur={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:f}}function mn(){if(Gr)return qr;Gr=1;var e=Xt().f,t=fe(),r=ve()("toStringTag");return qr=function(n,o,i){n&&!i&&(n=n.prototype),n&&!t(n,r)&&e(n,r,{configurable:!0,value:o})}}function vn(){if(en)return Qr;en=1;var e=function(){if(Jr)return Zr;Jr=1;var e=be();return Zr=function(t){return e(t)||null===t}}(),t=String,r=TypeError;return Qr=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function yn(){if(rn)return tn;rn=1;var e=function(){if(Xr)return Kr;Xr=1;var e=C(),t=Gt();return Kr=function(r,n,o){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[o]))}catch(e){}}}(),t=be(),r=k(),n=vn();return tn=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,a={};try{(o=e(Object.prototype,"__proto__","set"))(a,[]),i=a instanceof Array}catch(e){}return function(e,a){return r(e),n(a),t(e)?(i?o(e,a):e.__proto__=a,e):e}}():void 0),tn}function bn(){if(on)return nn;on=1;var e=hn(),t=Ht(),r=se(),n=Cr(),o=ye(),i=function(){if(Yr)return Wr;Yr=1;var e=gn().IteratorPrototype,t=ar(),r=ur(),n=mn(),o=sr(),i=function(){return this};return Wr=function(a,s,u,l){var c=s+" Iterator";return a.prototype=t(e,{next:r(+!l,u)}),n(a,c,!1,!0),o[c]=i,a}}(),a=pn(),s=yn(),u=mn(),l=lr(),c=Tr(),d=ve(),f=sr(),h=gn(),p=n.PROPER,g=n.CONFIGURABLE,m=h.IteratorPrototype,v=h.BUGGY_SAFARI_ITERATORS,y=d("iterator"),b="keys",w="values",E="entries",x=function(){return this};return nn=function(n,d,h,S,C,A,D){i(h,d,S);var T,k,O,N=function(e){if(e===C&&P)return P;if(!v&&e&&e in M)return M[e];switch(e){case b:case w:case E:return function(){return new h(this,e)}}return function(){return new h(this)}},B=d+" Iterator",F=!1,M=n.prototype,I=M[y]||M["@@iterator"]||C&&M[C],P=!v&&I||N(C),R="Array"===d&&M.entries||I;if(R&&(T=a(R.call(new n)))!==Object.prototype&&T.next&&(r||a(T)===m||(s?s(T,m):o(T[y])||c(T,y,x)),u(T,B,!0,!0),r&&(f[B]=x)),p&&C===w&&I&&I.name!==w&&(!r&&g?l(M,"name",w):(F=!0,P=function(){return t(I,this)})),C)if(k={values:N(w),keys:A?P:N(b),entries:N(E)},D)for(O in k)(v||F||!(O in M))&&c(M,O,k[O]);else e({target:d,proto:!0,forced:v||F},k);return r&&!D||M[y]===P||c(M,y,P,{name:C}),f[d]=P,k}}function wn(){return sn?an:(sn=1,an=function(e,t){return{value:e,done:t}})}function En(){if(ln)return un;ln=1;var e=O(),t=function(){if(Tt)return Dt;Tt=1;var e=ve(),t=ar(),r=Xt().f,n=e("unscopables"),o=Array.prototype;return void 0===o[n]&&r(o,n,{configurable:!0,value:t(null)}),Dt=function(e){o[n][e]=!0}}(),r=sr(),n=cr(),o=Xt().f,i=bn(),a=wn(),s=se(),u=De(),l="Array Iterator",c=n.set,d=n.getterFor(l);un=i(Array,"Array",function(t,r){c(this,{type:l,target:e(t),index:0,kind:r})},function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,a(void 0,!0);switch(e.kind){case"keys":return a(r,!1);case"values":return a(t[r],!1)}return a([r,t[r]],!1)},"values");var f=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!s&&u&&"values"!==f.name)try{o(f,"name",{value:"values"})}catch(e){}return un}En();var xn,Sn,Cn,An,Dn,Tn,kn,On={};function Nn(){if(Sn)return xn;Sn=1;var e={};return e[ve()("toStringTag")]="z",xn="[object z]"===String(e)}function Bn(){if(An)return Cn;An=1;var e=Nn(),t=ye(),r=A(),n=ve()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return Cn=e?r:function(e){var a,s,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(a=o(e),n))?s:i?r(a):"Object"===(u=r(a))&&t(a.callee)?"Arguments":u},Cn}!function(){if(kn)return On;kn=1;var e=Nn(),t=Tr(),r=function(){if(Tn)return Dn;Tn=1;var e=Nn(),t=Bn();return Dn=e?{}.toString:function(){return"[object "+t(this)+"]"}}();e||t(Object.prototype,"toString",r,{unsafe:!0})}();var Fn,Mn,In,Pn,Rn,Ln,_n,zn,jn,Hn,$n,Un,Vn,qn={};function Gn(){if(Mn)return Fn;Mn=1;var e=Bn(),t=String;return Fn=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function Wn(){if(Pn)return In;Pn=1;var e=we();return In=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r}}function Yn(){if(Un)return $n;Un=1;var e,t,r=Ht(),n=C(),o=Gn(),i=Wn(),a=function(){if(Ln)return Rn;Ln=1;var e=x(),t=N().RegExp,r=e(function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),n=r||e(function(){return!t("a","y").sticky}),o=r||e(function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")});return Rn={BROKEN_CARET:o,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),s=ce(),u=ar(),l=cr().get,c=function(){if(zn)return _n;zn=1;var e=x(),t=N().RegExp;return _n=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}(),d=function(){if(Hn)return jn;Hn=1;var e=x(),t=N().RegExp;return jn=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})}(),f=s("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,p=h,g=n("".charAt),m=n("".indexOf),v=n("".replace),y=n("".slice),b=(t=/b*/g,r(h,e=/a/,"a"),r(h,t,"a"),0!==e.lastIndex||0!==t.lastIndex),w=a.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];return(b||E||w||c||d)&&(p=function(e){var t,n,a,s,c,d,x,S=this,C=l(S),A=o(e),D=C.raw;if(D)return D.lastIndex=S.lastIndex,t=r(p,D,A),S.lastIndex=D.lastIndex,t;var T=C.groups,k=w&&S.sticky,O=r(i,S),N=S.source,B=0,F=A;if(k&&(O=v(O,"y",""),-1===m(O,"g")&&(O+="g"),F=y(A,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==g(A,S.lastIndex-1))&&(N="(?: "+N+")",F=" "+F,B++),n=new RegExp("^(?:"+N+")",O)),E&&(n=new RegExp("^"+N+"$(?!\\s)",O)),b&&(a=S.lastIndex),s=r(h,k?n:S,F),k?s?(s.input=y(s.input,B),s[0]=y(s[0],B),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:b&&s&&(S.lastIndex=S.global?s.index+s[0].length:a),E&&s&&s.length>1&&r(f,s[0],n,function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(s[c]=void 0)}),s&&T)for(s.groups=d=u(null),c=0;c<T.length;c++)d[(x=T[c])[0]]=s[x[1]];return s}),$n=p}function Kn(){if(Vn)return qn;Vn=1;var e=hn(),t=Yn();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),qn}Kn();var Xn,Zn,Jn,Qn={};function eo(){if(Zn)return Xn;Zn=1;var e=C(),t=Zt(),r=Gn(),n=k(),o=e("".charAt),i=e("".charCodeAt),a=e("".slice),s=function(e){return function(s,u){var l,c,d=r(n(s)),f=t(u),h=d.length;return f<0||f>=h?e?"":void 0:(l=i(d,f))<55296||l>56319||f+1===h||(c=i(d,f+1))<56320||c>57343?e?o(d,f):l:e?a(d,f,f+2):c-56320+(l-55296<<10)+65536}};return Xn={codeAt:s(!1),charAt:s(!0)}}!function(){if(Jn)return Qn;Jn=1;var e=eo().charAt,t=Gn(),r=cr(),n=bn(),o=wn(),i="String Iterator",a=r.set,s=r.getterFor(i);n(String,"String",function(e){a(this,{type:i,string:t(e),index:0})},function(){var t,r=s(this),n=r.string,i=r.index;return i>=n.length?o(void 0,!0):(t=e(n,i),r.index+=t.length,o(t,!1))})}();var to,ro,no,oo,io,ao,so,uo,lo,co,fo,ho={};function po(){if(oo)return no;oo=1;var e=eo().charAt;return no=function(t,r,n){return r+(n?e(t,r).length:1)},no}function go(){if(uo)return so;uo=1;var e=Ht(),t=fe(),r=Ut(),n=function(){if(ao)return io;ao=1;var e=N(),t=x(),r=e.RegExp,n=!t(function(){var e=!0;try{r(".","d")}catch(t){e=!1}var t={},n="",o=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)i(s,a[s]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(t)!==o||n!==o});return io={correct:n}}(),o=Wn(),i=RegExp.prototype;return so=n.correct?function(e){return e.flags}:function(a){return n.correct||!r(i,a)||t(a,"flags")?a.flags:e(o,a)}}!function(){if(fo)return ho;fo=1;var e=Ht(),t=C(),r=function(){if(ro)return to;ro=1,Kn();var e=Ht(),t=Tr(),r=Yn(),n=x(),o=ve(),i=lr(),a=o("species"),s=RegExp.prototype;return to=function(u,l,c,d){var f=o(u),h=!n(function(){var e={};return e[f]=function(){return 7},7!==""[u](e)}),p=h&&!n(function(){var e=!1,t=/a/;if("split"===u){var r={};r[a]=function(){return t},(t={constructor:r,flags:""})[f]=/./[f]}return t.exec=function(){return e=!0,null},t[f](""),!e});if(!h||!p||c){var g=/./[f],m=l(f,""[u],function(t,n,o,i,a){var u=n.exec;return u===r||u===s.exec?h&&!a?{done:!0,value:e(g,n,o,i)}:{done:!0,value:e(t,o,n,i)}:{done:!1}});t(String.prototype,u,m[0]),t(s,f,m[1])}d&&i(s[f],"sham",!0)},to}(),n=we(),o=be(),i=Jt(),a=Gn(),s=k(),u=Wt(),l=po(),c=go(),d=function(){if(co)return lo;co=1;var e=Ht(),t=we(),r=ye(),n=A(),o=Yn(),i=TypeError;return lo=function(a,s){var u=a.exec;if(r(u)){var l=e(u,a,s);return null!==l&&t(l),l}if("RegExp"===n(a))return e(o,a,s);throw new i("RegExp#exec called on incompatible receiver")},lo}(),f=t("".indexOf);r("match",function(t,r,h){return[function(r){var n=s(this),i=o(r)?u(r,t):void 0;return i?e(i,r,n):new RegExp(r)[t](a(n))},function(e){var t=n(this),o=a(e),s=h(r,t,o);if(s.done)return s.value;var u=a(c(t));if(-1===f(u,"g"))return d(t,o);var p=-1!==f(u,"u");t.lastIndex=0;for(var g,m=[],v=0;null!==(g=d(t,o));){var y=a(g[0]);m[v]=y,""===y&&(t.lastIndex=l(o,i(t.lastIndex),p)),v++}return 0===v?null:m}]})}();var mo,vo,yo,bo,wo,Eo,xo,So,Co,Ao,Do,To,ko,Oo,No,Bo,Fo,Mo,Io,Po,Ro,Lo,_o,zo,jo,Ho,$o,Uo={},Vo={};function qo(){if(vo)return mo;vo=1;var e=be(),t=lr();return mo=function(r,n){e(n)&&"cause"in n&&t(r,"cause",n.cause)},mo}function Go(){if(So)return xo;So=1;var e=lr(),t=function(){if(bo)return yo;bo=1;var e=C(),t=Error,r=e("".replace),n=String(new t("zxcasd").stack),o=/\n\s*at [^:]*:[^\n]*/,i=o.test(n);return yo=function(e,n){if(i&&"string"==typeof e&&!t.prepareStackTrace)for(;n--;)e=r(e,o,"");return e}}(),r=function(){if(Eo)return wo;Eo=1;var e=x(),t=ur();return wo=!e(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",t(1,7)),7!==e.stack)})}(),n=Error.captureStackTrace;return xo=function(o,i,a,s){r&&(n?n(o,i):e(o,"stack",t(a,s)))},xo}function Wo(){if(To)return Do;To=1;var e=function(){if(Ao)return Co;Ao=1;var e=A(),t=C();return Co=function(r){if("Function"===e(r))return t(r)}}(),t=Gt(),r=S(),n=e(e.bind);return Do=function(e,o){return t(e),void 0===o?e:r?n(e,o):function(){return e.apply(o,arguments)}},Do}function Yo(){if(Oo)return ko;Oo=1;var e=ve(),t=sr(),r=e("iterator"),n=Array.prototype;return ko=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}function Ko(){if(Bo)return No;Bo=1;var e=Bn(),t=Wt(),r=T(),n=sr(),o=ve()("iterator");return No=function(i){if(!r(i))return t(i,o)||t(i,"@@iterator")||n[e(i)]}}function Xo(){if(Mo)return Fo;Mo=1;var e=Ht(),t=Gt(),r=we(),n=qt(),o=Ko(),i=TypeError;return Fo=function(a,s){var u=arguments.length<2?o(a):s;if(t(u))return r(e(u,a));throw new i(n(a)+" is not iterable")},Fo}function Zo(){if(Po)return Io;Po=1;var e=Ht(),t=we(),r=Wt();return Io=function(n,o,i){var a,s;t(n);try{if(!(a=r(n,"return"))){if("throw"===o)throw i;return i}a=e(a,n)}catch(e){s=!0,a=e}if("throw"===o)throw i;if(s)throw a;return t(a),i},Io}function Jo(){if(Lo)return Ro;Lo=1;var e=Wo(),t=Ht(),r=we(),n=qt(),o=Yo(),i=Qt(),a=Ut(),s=Xo(),u=Ko(),l=Zo(),c=TypeError,d=function(e,t){this.stopped=e,this.result=t},f=d.prototype;return Ro=function(h,p,g){var m,v,y,b,w,E,x,S=g&&g.that,C=!(!g||!g.AS_ENTRIES),A=!(!g||!g.IS_RECORD),D=!(!g||!g.IS_ITERATOR),T=!(!g||!g.INTERRUPTED),k=e(p,S),O=function(e){return m&&l(m,"normal"),new d(!0,e)},N=function(e){return C?(r(e),T?k(e[0],e[1],O):k(e[0],e[1])):T?k(e,O):k(e)};if(A)m=h.iterator;else if(D)m=h;else{if(!(v=u(h)))throw new c(n(h)+" is not iterable");if(o(v)){for(y=0,b=i(h);b>y;y++)if((w=N(h[y]))&&a(f,w))return w;return new d(!1)}m=s(h,v)}for(E=A?h.next:m.next;!(x=t(E,m)).done;){try{w=N(x.value)}catch(e){l(m,"throw",e)}if("object"==typeof w&&w&&a(f,w))return w}return new d(!1)},Ro}function Qo(){if(zo)return _o;zo=1;var e=Gn();return _o=function(t,r){return void 0===t?arguments.length<2?"":r:e(t)},_o}function ei(){return Ho||(Ho=1,function(){if(jo)return Vo;jo=1;var e=hn(),t=Ut(),r=pn(),n=yn(),o=fn(),i=ar(),a=lr(),s=ur(),u=qo(),l=Go(),c=Jo(),d=Qo(),f=ve()("toStringTag"),h=Error,p=[].push,g=function(e,o){var s,v=t(m,this);n?s=n(new h,v?r(this):m):(s=v?this:i(m),a(s,f,"Error")),void 0!==o&&a(s,"message",d(o)),l(s,g,s.stack,1),arguments.length>2&&u(s,arguments[2]);var y=[];return c(e,p,{that:y}),a(s,"errors",y),s};n?n(g,h):o(g,h,{name:!0});var m=g.prototype=i(h.prototype,{constructor:s(1,g),message:s(1,""),name:s(1,"AggregateError")});e({global:!0,constructor:!0,arity:2},{AggregateError:g})}()),Uo}$o||($o=1,ei());var ti,ri,ni={};ri||(ri=1,function(){if(ti)return ni;ti=1;var e=hn(),t=N();e({global:!0,forced:t.globalThis!==t},{globalThis:t})}());var oi,ii,ai,si,ui,li,ci={};function di(){return ii?oi:(ii=1,oi={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})}function fi(){if(si)return ai;si=1;var e=zt()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return ai=t===Object.prototype?void 0:t}if(function(){if(ui)return ci;ui=1;var e=N(),t=di(),r=fi(),n=En(),o=lr(),i=mn(),a=ve()("iterator"),s=n.values,u=function(e,r){if(e){if(e[a]!==s)try{o(e,a,s)}catch(t){e[a]=s}if(i(e,r,!0),t[r])for(var u in n)if(e[u]!==n[u])try{o(e,u,n[u])}catch(t){e[u]=n[u]}}};for(var l in t)u(e[l]&&e[l].prototype,l);u(r,"DOMTokenList")}(),"undefined"==typeof global){if("ActiveXObject"in window){console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser.")}hi(),pi()}else global&&(null===(li=global.navigator)||void 0===li?void 0:li.userAgent.match("QQBrowser"))&&(hi(),pi());function hi(){"undefined"==typeof globalThis&&(window.globalThis=window)}function pi(){"undefined"==typeof AggregateError&&(window.AggregateError=function(e,t){var r=new Error(t);return r.errors=e,r})}var gi,mi,vi,yi,bi,wi,Ei,xi,Si,Ci,Ai,Di,Ti,ki,Oi,Ni,Bi={};function Fi(){if(mi)return gi;mi=1;var e=function(e){return e&&e.Math===Math&&e};return gi=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof b&&b)||e("object"==typeof gi&&gi)||function(){return this}()||Function("return this")()}function Mi(){return yi?vi:(yi=1,vi=function(e){try{return!!e()}catch(e){return!0}})}function Ii(){return wi?bi:(wi=1,bi=!Mi()(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}function Pi(){if(xi)return Ei;xi=1;var e=Ii(),t=Function.prototype,r=t.apply,n=t.call;return Ei="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),Ei}function Ri(){if(Ci)return Si;Ci=1;var e=Ii(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Si=e?n:function(e){return function(){return r.apply(e,arguments)}},Si}function Li(){if(Di)return Ai;Di=1;var e=Ri(),t=e({}.toString),r=e("".slice);return Ai=function(e){return r(t(e),8,-1)}}function _i(){if(ki)return Ti;ki=1;var e=Li(),t=Ri();return Ti=function(r){if("Function"===e(r))return t(r)}}function zi(){if(Ni)return Oi;Ni=1;var e="object"==typeof document&&document.all;return Oi=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}var ji,Hi,$i,Ui,Vi={};function qi(){return Hi?ji:(Hi=1,ji=!Mi()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function Gi(){if(Ui)return $i;Ui=1;var e=Ii(),t=Function.prototype.call;return $i=e?t.bind(t):function(){return t.apply(t,arguments)},$i}var Wi,Yi,Ki,Xi,Zi,Ji,Qi,ea,ta,ra,na,oa,ia,aa,sa,ua,la,ca,da,fa,ha,pa,ga,ma,va,ya,ba,wa,Ea,xa,Sa,Ca,Aa,Da,Ta,ka,Oa,Na={};function Ba(){if(Wi)return Na;Wi=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return Na.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,Na}function Fa(){return Ki?Yi:(Ki=1,Yi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Ma(){if(Zi)return Xi;Zi=1;var e=Ri(),t=Mi(),r=Li(),n=Object,o=e("".split);return Xi=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?o(e,""):n(e)}:n}function Ia(){return Qi?Ji:(Qi=1,Ji=function(e){return null==e})}function Pa(){if(ta)return ea;ta=1;var e=Ia(),t=TypeError;return ea=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function Ra(){if(na)return ra;na=1;var e=Ma(),t=Pa();return ra=function(r){return e(t(r))}}function La(){if(ia)return oa;ia=1;var e=zi();return oa=function(t){return"object"==typeof t?null!==t:e(t)}}function _a(){return sa?aa:(sa=1,aa={})}function za(){if(la)return ua;la=1;var e=_a(),t=Fi(),r=zi(),n=function(e){return r(e)?e:void 0};return ua=function(r,o){return arguments.length<2?n(e[r])||n(t[r]):e[r]&&e[r][o]||t[r]&&t[r][o]},ua}function ja(){return da?ca:(da=1,ca=Ri()({}.isPrototypeOf))}function Ha(){if(ha)return fa;ha=1;var e=Fi().navigator,t=e&&e.userAgent;return fa=t?String(t):""}function $a(){if(ga)return pa;ga=1;var e,t,r=Fi(),n=Ha(),o=r.process,i=r.Deno,a=o&&o.versions||i&&i.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),pa=t}function Ua(){if(va)return ma;va=1;var e=$a(),t=Mi(),r=Fi().String;return ma=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}),ma}function Va(){return ba?ya:(ba=1,ya=Ua()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function qa(){if(Ea)return wa;Ea=1;var e=za(),t=zi(),r=ja(),n=Object;return wa=Va()?function(e){return"symbol"==typeof e}:function(o){var i=e("Symbol");return t(i)&&r(i.prototype,n(o))}}function Ga(){if(Sa)return xa;Sa=1;var e=String;return xa=function(t){try{return e(t)}catch(e){return"Object"}}}function Wa(){if(Aa)return Ca;Aa=1;var e=zi(),t=Ga(),r=TypeError;return Ca=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function Ya(){if(Ta)return Da;Ta=1;var e=Wa(),t=Ia();return Da=function(r,n){var o=r[n];return t(o)?void 0:e(o)},Da}function Ka(){if(Oa)return ka;Oa=1;var e=Gi(),t=zi(),r=La(),n=TypeError;return ka=function(o,i){var a,s;if("string"===i&&t(a=o.toString)&&!r(s=e(a,o)))return s;if(t(a=o.valueOf)&&!r(s=e(a,o)))return s;if("string"!==i&&t(a=o.toString)&&!r(s=e(a,o)))return s;throw new n("Can't convert object to primitive value")},ka}var Xa,Za,Ja,Qa,es,ts,rs,ns,os,is,as,ss,us,ls,cs,ds,fs,hs,ps,gs,ms,vs,ys,bs,ws,Es,xs,Ss,Cs={exports:{}};function As(){return Za?Xa:(Za=1,Xa=!0)}function Ds(){if(Qa)return Ja;Qa=1;var e=Fi(),t=Object.defineProperty;return Ja=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function Ts(){if(es)return Cs.exports;es=1;var e=As(),t=Fi(),r=Ds(),n="__core-js_shared__",o=Cs.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.47.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Cs.exports}function ks(){if(rs)return ts;rs=1;var e=Ts();return ts=function(t,r){return e[t]||(e[t]=r||{})}}function Os(){if(os)return ns;os=1;var e=Pa(),t=Object;return ns=function(r){return t(e(r))}}function Ns(){if(as)return is;as=1;var e=Ri(),t=Os(),r=e({}.hasOwnProperty);return is=Object.hasOwn||function(e,n){return r(t(e),n)}}function Bs(){if(us)return ss;us=1;var e=Ri(),t=0,r=Math.random(),n=e(1.1.toString);return ss=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function Fs(){if(cs)return ls;cs=1;var e=Fi(),t=ks(),r=Ns(),n=Bs(),o=Ua(),i=Va(),a=e.Symbol,s=t("wks"),u=i?a.for||a:a&&a.withoutSetter||n;return ls=function(e){return r(s,e)||(s[e]=o&&r(a,e)?a[e]:u("Symbol."+e)),s[e]}}function Ms(){if(fs)return ds;fs=1;var e=Gi(),t=La(),r=qa(),n=Ya(),o=Ka(),i=TypeError,a=Fs()("toPrimitive");return ds=function(s,u){if(!t(s)||r(s))return s;var l,c=n(s,a);if(c){if(void 0===u&&(u="default"),l=e(c,s,u),!t(l)||r(l))return l;throw new i("Can't convert object to primitive value")}return void 0===u&&(u="number"),o(s,u)}}function Is(){if(ps)return hs;ps=1;var e=Ms(),t=qa();return hs=function(r){var n=e(r,"string");return t(n)?n:n+""}}function Ps(){if(ms)return gs;ms=1;var e=Fi(),t=La(),r=e.document,n=t(r)&&t(r.createElement);return gs=function(e){return n?r.createElement(e):{}}}function Rs(){if(ys)return vs;ys=1;var e=qi(),t=Mi(),r=Ps();return vs=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function Ls(){if(bs)return Vi;bs=1;var e=qi(),t=Gi(),r=Ba(),n=Fa(),o=Ra(),i=Is(),a=Ns(),s=Rs(),u=Object.getOwnPropertyDescriptor;return Vi.f=e?u:function(e,l){if(e=o(e),l=i(l),s)try{return u(e,l)}catch(e){}if(a(e,l))return n(!t(r.f,e,l),e[l])},Vi}function _s(){if(Es)return ws;Es=1;var e=Mi(),t=zi(),r=/#|\.prototype\./,n=function(r,n){var u=i[o(r)];return u===s||u!==a&&(t(n)?e(n):!!n)},o=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},i=n.data={},a=n.NATIVE="N",s=n.POLYFILL="P";return ws=n}function zs(){if(Ss)return xs;Ss=1;var e=_i(),t=Wa(),r=Ii(),n=e(e.bind);return xs=function(e,o){return t(e),void 0===o?e:r?n(e,o):function(){return e.apply(o,arguments)}},xs}var js,Hs,$s,Us,Vs,qs,Gs,Ws,Ys,Ks,Xs,Zs,Js,Qs,eu,tu,ru,nu,ou,iu,au,su,uu,lu,cu,du,fu,hu,pu,gu,mu,vu,yu,bu,wu,Eu,xu,Su,Cu={};function Au(){return Hs?js:(Hs=1,js=qi()&&Mi()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function Du(){if(Us)return $s;Us=1;var e=La(),t=String,r=TypeError;return $s=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function Tu(){if(Vs)return Cu;Vs=1;var e=qi(),t=Rs(),r=Au(),n=Du(),o=Is(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return Cu.f=e?r?function(e,t,r){if(n(e),t=o(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&c in r&&!r[c]){var i=s(e,t);i&&i[c]&&(e[t]=r.value,r={configurable:l in r?r[l]:i[l],enumerable:u in r?r[u]:i[u],writable:!1})}return a(e,t,r)}:a:function(e,r,s){if(n(e),r=o(r),n(s),t)try{return a(e,r,s)}catch(e){}if("get"in s||"set"in s)throw new i("Accessors not supported");return"value"in s&&(e[r]=s.value),e},Cu}function ku(){if(Gs)return qs;Gs=1;var e=qi(),t=Tu(),r=Fa();return qs=e?function(e,n,o){return t.f(e,n,r(1,o))}:function(e,t,r){return e[t]=r,e}}function Ou(){if(Ys)return Ws;Ys=1;var e=Fi(),t=Pi(),r=_i(),n=zi(),o=Ls().f,i=_s(),a=_a(),s=zs(),u=ku(),l=Ns(),c=function(e){var r=function(n,o,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,o)}return new e(n,o,i)}return t(e,this,arguments)};return r.prototype=e.prototype,r};return Ws=function(t,d){var f,h,p,g,m,v,y,b,w,E=t.target,x=t.global,S=t.stat,C=t.proto,A=x?e:S?e[E]:e[E]&&e[E].prototype,D=x?a:a[E]||u(a,E,{})[E],T=D.prototype;for(g in d)h=!(f=i(x?g:E+(S?".":"#")+g,t.forced))&&A&&l(A,g),v=D[g],h&&(y=t.dontCallGetSet?(w=o(A,g))&&w.value:A[g]),m=h&&y?y:d[g],(f||C||typeof v!=typeof m)&&(b=t.bind&&h?s(m,e):t.wrap&&h?c(m):C&&n(m)?r(m):m,(t.sham||m&&m.sham||v&&v.sham)&&u(b,"sham",!0),u(D,g,b),C&&(l(a,p=E+"Prototype")||u(a,p,{}),u(a[p],g,m),t.real&&T&&(f||!T[g])&&u(T,g,m)))}}function Nu(){if(Xs)return Ks;Xs=1;var e=Li();return Ks=Array.isArray||function(t){return"Array"===e(t)}}function Bu(){if(Js)return Zs;Js=1;var e=Math.ceil,t=Math.floor;return Zs=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)},Zs}function Fu(){if(eu)return Qs;eu=1;var e=Bu();return Qs=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function Mu(){if(ru)return tu;ru=1;var e=Fu(),t=Math.min;return tu=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function Iu(){if(ou)return nu;ou=1;var e=Mu();return nu=function(t){return e(t.length)}}function Pu(){if(au)return iu;au=1;var e=TypeError;return iu=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}}function Ru(){if(uu)return su;uu=1;var e=qi(),t=Tu(),r=Fa();return su=function(n,o,i){e?t.f(n,o,r(0,i)):n[o]=i}}function Lu(){if(cu)return lu;cu=1;var e={};return e[Fs()("toStringTag")]="z",lu="[object z]"===String(e)}function _u(){if(fu)return du;fu=1;var e=Lu(),t=zi(),r=Li(),n=Fs()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return du=e?r:function(e){var a,s,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(a=o(e),n))?s:i?r(a):"Object"===(u=r(a))&&t(a.callee)?"Arguments":u},du}function zu(){if(pu)return hu;pu=1;var e=Ri(),t=zi(),r=Ts(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),hu=r.inspectSource}function ju(){if(mu)return gu;mu=1;var e=Ri(),t=Mi(),r=zi(),n=_u(),o=za(),i=zu(),a=function(){},s=o("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=e(u.exec),c=!u.test(a),d=function(e){if(!r(e))return!1;try{return s(a,[],e),!0}catch(e){return!1}},f=function(e){if(!r(e))return!1;switch(n(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!l(u,i(e))}catch(e){return!0}};return f.sham=!0,gu=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?f:d}function Hu(){if(yu)return vu;yu=1;var e=Nu(),t=ju(),r=La(),n=Fs()("species"),o=Array;return vu=function(i){var a;return e(i)&&(a=i.constructor,(t(a)&&(a===o||e(a.prototype))||r(a)&&null===(a=a[n]))&&(a=void 0)),void 0===a?o:a},vu}function $u(){if(wu)return bu;wu=1;var e=Hu();return bu=function(t,r){return new(e(t))(0===r?0:r)}}function Uu(){if(xu)return Eu;xu=1;var e=Mi(),t=Fs(),r=$a(),n=t("species");return Eu=function(t){return r>=51||!e(function(){var e=[];return(e.constructor={})[n]=function(){return{foo:1}},1!==e[t](Boolean).foo})},Eu}var Vu,qu,Gu={},Wu={};function Yu(){if(qu)return Vu;qu=1;var e=_u(),t=String;return Vu=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}var Ku,Xu,Zu,Ju,Qu,el,tl,rl,nl,ol,il,al,sl,ul,ll,cl,dl,fl,hl,pl={};function gl(){if(Xu)return Ku;Xu=1;var e=Fu(),t=Math.max,r=Math.min;return Ku=function(n,o){var i=e(n);return i<0?t(i+o,0):r(i,o)},Ku}function ml(){if(Ju)return Zu;Ju=1;var e=Ra(),t=gl(),r=Iu(),n=function(n){return function(o,i,a){var s=e(o),u=r(s);if(0===u)return!n&&-1;var l,c=t(a,u);if(n&&i!=i){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((n||c in s)&&s[c]===i)return n||c||0;return!n&&-1}};return Zu={includes:n(!0),indexOf:n(!1)}}function vl(){return el?Qu:(el=1,Qu={})}function yl(){if(rl)return tl;rl=1;var e=Ri(),t=Ns(),r=Ra(),n=ml().indexOf,o=vl(),i=e([].push);return tl=function(e,a){var s,u=r(e),l=0,c=[];for(s in u)!t(o,s)&&t(u,s)&&i(c,s);for(;a.length>l;)t(u,s=a[l++])&&(~n(c,s)||i(c,s));return c},tl}function bl(){return ol?nl:(ol=1,nl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function wl(){if(al)return il;al=1;var e=yl(),t=bl();return il=Object.keys||function(r){return e(r,t)},il}function El(){if(sl)return pl;sl=1;var e=qi(),t=Au(),r=Tu(),n=Du(),o=Ra(),i=wl();return pl.f=e&&!t?Object.defineProperties:function(e,t){n(e);for(var a,s=o(t),u=i(t),l=u.length,c=0;l>c;)r.f(e,a=u[c++],s[a]);return e},pl}function xl(){return ll?ul:(ll=1,ul=za()("document","documentElement"))}function Sl(){if(dl)return cl;dl=1;var e=ks(),t=Bs(),r=e("keys");return cl=function(e){return r[e]||(r[e]=t(e))}}function Cl(){if(hl)return fl;hl=1;var e,t=Du(),r=El(),n=bl(),o=vl(),i=xl(),a=Ps(),s="prototype",u="script",l=Sl()("IE_PROTO"),c=function(){},d=function(e){return"<"+u+">"+e+"</"+u+">"},f=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,o;h="undefined"!=typeof document?document.domain&&e?f(e):(r=a("iframe"),o="java"+u+":",r.style.display="none",i.appendChild(r),r.src=String(o),(t=r.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):f(e);for(var l=n.length;l--;)delete h[s][n[l]];return h()};return o[l]=!0,fl=Object.create||function(e,n){var o;return null!==e?(c[s]=t(e),o=new c,c[s]=null,o[l]=e):o=h(),void 0===n?o:r.f(o,n)},fl}var Al,Dl={};function Tl(){if(Al)return Dl;Al=1;var e=yl(),t=bl().concat("length","prototype");return Dl.f=Object.getOwnPropertyNames||function(r){return e(r,t)},Dl}var kl,Ol,Nl,Bl={};function Fl(){return Ol?kl:(Ol=1,kl=Ri()([].slice))}function Ml(){if(Nl)return Bl;Nl=1;var e=Li(),t=Ra(),r=Tl().f,n=Fl(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Bl.f=function(i){return o&&"Window"===e(i)?function(e){try{return r(e)}catch(e){return n(o)}}(i):r(t(i))},Bl}var Il,Pl,Rl,Ll,_l,zl={};function jl(){return Il||(Il=1,zl.f=Object.getOwnPropertySymbols),zl}function Hl(){if(Rl)return Pl;Rl=1;var e=ku();return Pl=function(t,r,n,o){return o&&o.enumerable?t[r]=n:e(t,r,n),t}}function $l(){if(_l)return Ll;_l=1;var e=Tu();return Ll=function(t,r,n){return e.f(t,r,n)}}var Ul,Vl,ql,Gl,Wl,Yl,Kl,Xl,Zl,Jl,Ql,ec,tc,rc,nc,oc,ic={};function ac(){if(Ul)return ic;Ul=1;var e=Fs();return ic.f=e,ic}function sc(){if(ql)return Vl;ql=1;var e=_a(),t=Ns(),r=ac(),n=Tu().f;return Vl=function(o){var i=e.Symbol||(e.Symbol={});t(i,o)||n(i,o,{value:r.f(o)})}}function uc(){if(Wl)return Gl;Wl=1;var e=Gi(),t=za(),r=Fs(),n=Hl();return Gl=function(){var o=t("Symbol"),i=o&&o.prototype,a=i&&i.valueOf,s=r("toPrimitive");i&&!i[s]&&n(i,s,function(t){return e(a,this)},{arity:1})}}function lc(){if(Kl)return Yl;Kl=1;var e=Lu(),t=_u();return Yl=e?{}.toString:function(){return"[object "+t(this)+"]"}}function cc(){if(Zl)return Xl;Zl=1;var e=Lu(),t=Tu().f,r=ku(),n=Ns(),o=lc(),i=Fs()("toStringTag");return Xl=function(a,s,u,l){var c=u?a:a&&a.prototype;c&&(n(c,i)||t(c,i,{configurable:!0,value:s}),l&&!e&&r(c,"toString",o))}}function dc(){if(Ql)return Jl;Ql=1;var e=Fi(),t=zi(),r=e.WeakMap;return Jl=t(r)&&/native code/.test(String(r))}function fc(){if(tc)return ec;tc=1;var e,t,r,n=dc(),o=Fi(),i=La(),a=ku(),s=Ns(),u=Ts(),l=Sl(),c=vl(),d="Object already initialized",f=o.TypeError,h=o.WeakMap;if(n||u.state){var p=u.state||(u.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new f(d);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},r=function(e){return p.has(e)}}else{var g=l("state");c[g]=!0,e=function(e,t){if(s(e,g))throw new f(d);return t.facade=e,a(e,g,t),t},t=function(e){return s(e,g)?e[g]:{}},r=function(e){return s(e,g)}}return ec={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!i(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}function hc(){if(nc)return rc;nc=1;var e=zs(),t=Ri(),r=Ma(),n=Os(),o=Iu(),i=$u(),a=t([].push),s=function(t){var s=1===t,u=2===t,l=3===t,c=4===t,d=6===t,f=7===t,h=5===t||d;return function(p,g,m,v){for(var y,b,w=n(p),E=r(w),x=o(E),S=e(g,m),C=0,A=v||i,D=s?A(p,x):u||f?A(p,0):void 0;x>C;C++)if((h||C in E)&&(b=S(y=E[C],C,w),t))if(s)D[C]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return C;case 2:a(D,y)}else switch(t){case 4:return!1;case 7:a(D,y)}return d?-1:l||c?c:D}};return rc={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}}var pc,gc,mc,vc={};function yc(){return gc?pc:(gc=1,pc=Ua()&&!!Symbol.for&&!!Symbol.keyFor)}var bc,wc={};var Ec,xc,Sc,Cc,Ac,Dc,Tc,kc={};function Oc(){if(xc)return Ec;xc=1;var e=La(),t=fc().get;return Ec=function(r){if(!e(r))return!1;var n=t(r);return!!n&&"RawJSON"===n.type},Ec}function Nc(){if(Cc)return Sc;Cc=1;var e=Ri(),t=Ns(),r=SyntaxError,n=parseInt,o=String.fromCharCode,i=e("".charAt),a=e("".slice),s=e(/./.exec),u={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},l=/^[\da-f]{4}$/i,c=/^[\u0000-\u001F]$/;return Sc=function(e,d){for(var f=!0,h="";d<e.length;){var p=i(e,d);if("\\"===p){var g=a(e,d,d+2);if(t(u,g))h+=u[g],d+=2;else{if("\\u"!==g)throw new r('Unknown escape sequence: "'+g+'"');var m=a(e,d+=2,d+4);if(!s(l,m))throw new r("Bad Unicode escape at: "+d);h+=o(n(m,16)),d+=4}}else{if('"'===p){f=!1,d++;break}if(s(c,p))throw new r("Bad control character in string literal at: "+d);h+=p,d++}}if(f)throw new r("Unterminated string at: "+d);return{value:h,end:d}},Sc}function Bc(){return Dc?Ac:(Dc=1,Ac=!Mi()(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e}))}var Fc,Mc,Ic={};function Pc(){return Mc||(Mc=1,function(){if(oc)return Wu;oc=1;var e=Ou(),t=Fi(),r=Gi(),n=Ri(),o=As(),i=qi(),a=Ua(),s=Mi(),u=Ns(),l=ja(),c=Du(),d=Ra(),f=Is(),h=Yu(),p=Fa(),g=Cl(),m=wl(),v=Tl(),y=Ml(),b=jl(),w=Ls(),E=Tu(),x=El(),S=Ba(),C=Hl(),A=$l(),D=ks(),T=Sl(),k=vl(),O=Bs(),N=Fs(),B=ac(),F=sc(),M=uc(),I=cc(),P=fc(),R=hc().forEach,L=T("hidden"),_="Symbol",z="prototype",j=P.set,H=P.getterFor(_),$=Object[z],U=t.Symbol,V=U&&U[z],q=t.RangeError,G=t.TypeError,W=t.QObject,Y=w.f,K=E.f,X=y.f,Z=S.f,J=n([].push),Q=D("symbols"),ee=D("op-symbols"),te=D("wks"),re=!W||!W[z]||!W[z].findChild,ne=function(e,t,r){var n=Y($,t);n&&delete $[t],K(e,t,r),n&&e!==$&&K($,t,n)},oe=i&&s(function(){return 7!==g(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a})?ne:K,ie=function(e,t){var r=Q[e]=g(V);return j(r,{type:_,tag:e,description:t}),i||(r.description=t),r},ae=function(e,t,r){e===$&&ae(ee,t,r),c(e);var n=f(t);return c(r),u(Q,n)?(r.enumerable?(u(e,L)&&e[L][n]&&(e[L][n]=!1),r=g(r,{enumerable:p(0,!1)})):(u(e,L)||K(e,L,p(1,g(null))),e[L][n]=!0),oe(e,n,r)):K(e,n,r)},se=function(e,t){c(e);var n=d(t),o=m(n).concat(de(n));return R(o,function(t){i&&!r(ue,n,t)||ae(e,t,n[t])}),e},ue=function(e){var t=f(e),n=r(Z,this,t);return!(this===$&&u(Q,t)&&!u(ee,t))&&(!(n||!u(this,t)||!u(Q,t)||u(this,L)&&this[L][t])||n)},le=function(e,t){var r=d(e),n=f(t);if(r!==$||!u(Q,n)||u(ee,n)){var o=Y(r,n);return!o||!u(Q,n)||u(r,L)&&r[L][n]||(o.enumerable=!0),o}},ce=function(e){var t=X(d(e)),r=[];return R(t,function(e){u(Q,e)||u(k,e)||J(r,e)}),r},de=function(e){var t=e===$,r=X(t?ee:d(e)),n=[];return R(r,function(e){!u(Q,e)||t&&!u($,e)||J(n,Q[e])}),n};a||(U=function(){if(l(V,this))throw new G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?h(arguments[0]):void 0,n=O(e),o=function(e){var i=void 0===this?t:this;i===$&&r(o,ee,e),u(i,L)&&u(i[L],n)&&(i[L][n]=!1);var a=p(1,e);try{oe(i,n,a)}catch(e){if(!(e instanceof q))throw e;ne(i,n,a)}};return i&&re&&oe($,n,{configurable:!0,set:o}),ie(n,e)},C(V=U[z],"toString",function(){return H(this).tag}),C(U,"withoutSetter",function(e){return ie(O(e),e)}),S.f=ue,E.f=ae,x.f=se,w.f=le,v.f=y.f=ce,b.f=de,B.f=function(e){return ie(N(e),e)},i&&(A(V,"description",{configurable:!0,get:function(){return H(this).description}}),o||C($,"propertyIsEnumerable",ue,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!a,sham:!a},{Symbol:U}),R(m(te),function(e){F(e)}),e({target:_,stat:!0,forced:!a},{useSetter:function(){re=!0},useSimple:function(){re=!1}}),e({target:"Object",stat:!0,forced:!a,sham:!i},{create:function(e,t){return void 0===t?g(e):se(g(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:le}),e({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:ce}),M(),I(U,_),k[L]=!0}(),function(){if(mc)return vc;mc=1;var e=Ou(),t=za(),r=Ns(),n=Yu(),o=ks(),i=yc(),a=o("string-to-symbol-registry"),s=o("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!i},{for:function(e){var o=n(e);if(r(a,o))return a[o];var i=t("Symbol")(o);return a[o]=i,s[i]=o,i}})}(),function(){if(bc)return wc;bc=1;var e=Ou(),t=Ns(),r=qa(),n=Ga(),o=ks(),i=yc(),a=o("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!i},{keyFor:function(e){if(!r(e))throw new TypeError(n(e)+" is not a symbol");if(t(a,e))return a[e]}})}(),function(){if(Tc)return kc;Tc=1;var e=Ou(),t=za(),r=Pi(),n=Gi(),o=Ri(),i=Mi(),a=Nu(),s=zi(),u=Oc(),l=qa(),c=Li(),d=Yu(),f=Fl(),h=Nc(),p=Bs(),g=Ua(),m=Bc(),v=String,y=t("JSON","stringify"),b=o(/./.exec),w=o("".charAt),E=o("".charCodeAt),x=o("".replace),S=o("".slice),C=o([].push),A=o(1.1.toString),D=/[\uD800-\uDFFF]/g,T=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,O=p(),N=O.length,B=!g||i(function(){var e=t("Symbol")("stringify detection");return"[null]"!==y([e])||"{}"!==y({a:e})||"{}"!==y(Object(e))}),F=i(function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")}),M=B?function(e,t){var o=f(arguments),i=P(t);if(s(i)||void 0!==e&&!l(e))return o[1]=function(e,t){if(s(i)&&(t=n(i,this,v(e),t)),!l(t))return t},r(y,null,o)}:y,I=function(e,t,r){var n=w(r,t-1),o=w(r,t+1);return b(T,e)&&!b(k,o)||b(k,e)&&!b(T,n)?"\\u"+A(E(e,0),16):e},P=function(e){if(s(e))return e;if(a(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?C(r,o):"number"!=typeof o&&"Number"!==c(o)&&"String"!==c(o)||C(r,d(o))}var i=r.length,u=!0;return function(e,t){if(u)return u=!1,t;if(a(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}};y&&e({target:"JSON",stat:!0,arity:3,forced:B||F||!m},{stringify:function(e,t,r){var o=P(t),i=[],a=M(e,function(e,t){var r=s(o)?n(o,this,v(e),t):t;return!m&&u(r)?O+(C(i,r.rawJSON)-1):r},r);if("string"!=typeof a)return a;if(F&&(a=x(a,D,I)),m)return a;for(var l="",c=a.length,d=0;d<c;d++){var f=w(a,d);if('"'===f){var p=h(a,++d).end-1,g=S(a,d,p);l+=S(g,0,N)===O?i[S(g,N)]:'"'+g+'"',d=p}else l+=f}return l}})}(),function(){if(Fc)return Ic;Fc=1;var e=Ou(),t=Ua(),r=Mi(),n=jl(),o=Os();e({target:"Object",stat:!0,forced:!t||r(function(){n.f(1)})},{getOwnPropertySymbols:function(e){var t=n.f;return t?t(o(e)):[]}})}()),Gu}var Rc,Lc={};function _c(){return Rc||(Rc=1,sc()("asyncDispose")),Lc}var zc;var jc,Hc={};function $c(){return jc||(jc=1,sc()("dispose")),Hc}var Uc;var Vc;var qc,Gc={};function Wc(){return qc||(qc=1,sc()("iterator")),Gc}var Yc;var Kc;var Xc;var Zc;var Jc;var Qc;var ed,td={};var rd,nd={};var od;var id,ad,sd,ud={};function ld(){return sd?ad:(sd=1,function(){if(Su)return Bi;Su=1;var e=Ou(),t=Mi(),r=Nu(),n=La(),o=Os(),i=Iu(),a=Pu(),s=Ru(),u=$u(),l=Uu(),c=Fs(),d=$a(),f=c("isConcatSpreadable"),h=d>=51||!t(function(){var e=[];return e[f]=!1,e.concat()[0]!==e}),p=function(e){if(!n(e))return!1;var t=e[f];return void 0!==t?!!t:r(e)};e({target:"Array",proto:!0,arity:1,forced:!h||!l("concat")},{concat:function(e){var t,r,n,l,c,d=o(this),f=u(d,0),h=0;for(t=-1,n=arguments.length;t<n;t++)if(p(c=-1===t?d:arguments[t]))for(l=i(c),a(h+l),r=0;r<l;r++,h++)r in c&&s(f,h,c[r]);else a(h+1),s(f,h++,c);return f.length=h,f}})}(),Pc(),_c(),zc||(zc=1,sc()("asyncIterator")),$c(),Uc||(Uc=1,sc()("hasInstance")),Vc||(Vc=1,sc()("isConcatSpreadable")),Wc(),Yc||(Yc=1,sc()("match")),Kc||(Kc=1,sc()("matchAll")),Xc||(Xc=1,sc()("replace")),Zc||(Zc=1,sc()("search")),Jc||(Jc=1,sc()("species")),Qc||(Qc=1,sc()("split")),function(){if(ed)return td;ed=1;var e=sc(),t=uc();e("toPrimitive"),t()}(),function(){if(rd)return nd;rd=1;var e=za(),t=sc(),r=cc();t("toStringTag"),r(e("Symbol"),"Symbol")}(),od||(od=1,sc()("unscopables")),function(){if(id)return ud;id=1;var e=Fi();cc()(e.JSON,"JSON",!0)}(),ad=_a().Symbol)}var cd,dd,fd,hd,pd,gd,md,vd,yd,bd,wd,Ed,xd,Sd,Cd,Ad,Dd,Td,kd,Od,Nd,Bd,Fd,Md,Id,Pd,Rd,Ld,_d,zd,jd,Hd,$d,Ud={};function Vd(){return dd?cd:(dd=1,cd=function(){})}function qd(){return hd?fd:(hd=1,fd={})}function Gd(){if(gd)return pd;gd=1;var e=qi(),t=Ns(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,o=t(r,"name"),i=o&&"something"===function(){}.name,a=o&&(!e||e&&n(r,"name").configurable);return pd={EXISTS:o,PROPER:i,CONFIGURABLE:a}}function Wd(){return vd||(vd=1,md=!Mi()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),md}function Yd(){if(bd)return yd;bd=1;var e=Ns(),t=zi(),r=Os(),n=Sl(),o=Wd(),i=n("IE_PROTO"),a=Object,s=a.prototype;return yd=o?a.getPrototypeOf:function(n){var o=r(n);if(e(o,i))return o[i];var u=o.constructor;return t(u)&&o instanceof u?u.prototype:o instanceof a?s:null},yd}function Kd(){if(Ed)return wd;Ed=1;var e,t,r,n=Mi(),o=zi(),i=La(),a=Cl(),s=Yd(),u=Hl(),l=Fs(),c=As(),d=l("iterator"),f=!1;return[].keys&&("next"in(r=[].keys())?(t=s(s(r)))!==Object.prototype&&(e=t):f=!0),!i(e)||n(function(){var t={};return e[d].call(t)!==t})?e={}:c&&(e=a(e)),o(e[d])||u(e,d,function(){return this}),wd={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:f}}function Xd(){if(Sd)return xd;Sd=1;var e=Kd().IteratorPrototype,t=Cl(),r=Fa(),n=cc(),o=qd(),i=function(){return this};return xd=function(a,s,u,l){var c=s+" Iterator";return a.prototype=t(e,{next:r(+!l,u)}),n(a,c,!1,!0),o[c]=i,a}}function Zd(){if(Ad)return Cd;Ad=1;var e=Ri(),t=Wa();return Cd=function(r,n,o){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[o]))}catch(e){}}}function Jd(){if(Td)return Dd;Td=1;var e=La();return Dd=function(t){return e(t)||null===t}}function Qd(){if(Od)return kd;Od=1;var e=Jd(),t=String,r=TypeError;return kd=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function ef(){if(Bd)return Nd;Bd=1;var e=Zd(),t=La(),r=Pa(),n=Qd();return Nd=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,a={};try{(o=e(Object.prototype,"__proto__","set"))(a,[]),i=a instanceof Array}catch(e){}return function(e,a){return r(e),n(a),t(e)?(i?o(e,a):e.__proto__=a,e):e}}():void 0),Nd}function tf(){if(Md)return Fd;Md=1;var e=Ou(),t=Gi(),r=As(),n=Gd(),o=zi(),i=Xd(),a=Yd(),s=ef(),u=cc(),l=ku(),c=Hl(),d=Fs(),f=qd(),h=Kd(),p=n.PROPER,g=n.CONFIGURABLE,m=h.IteratorPrototype,v=h.BUGGY_SAFARI_ITERATORS,y=d("iterator"),b="keys",w="values",E="entries",x=function(){return this};return Fd=function(n,d,h,S,C,A,D){i(h,d,S);var T,k,O,N=function(e){if(e===C&&P)return P;if(!v&&e&&e in M)return M[e];switch(e){case b:case w:case E:return function(){return new h(this,e)}}return function(){return new h(this)}},B=d+" Iterator",F=!1,M=n.prototype,I=M[y]||M["@@iterator"]||C&&M[C],P=!v&&I||N(C),R="Array"===d&&M.entries||I;if(R&&(T=a(R.call(new n)))!==Object.prototype&&T.next&&(r||a(T)===m||(s?s(T,m):o(T[y])||c(T,y,x)),u(T,B,!0,!0),r&&(f[B]=x)),p&&C===w&&I&&I.name!==w&&(!r&&g?l(M,"name",w):(F=!0,P=function(){return t(I,this)})),C)if(k={values:N(w),keys:A?P:N(b),entries:N(E)},D)for(O in k)(v||F||!(O in M))&&c(M,O,k[O]);else e({target:d,proto:!0,forced:v||F},k);return r&&!D||M[y]===P||c(M,y,P,{name:C}),f[d]=P,k}}function rf(){return Pd?Id:(Pd=1,Id=function(e,t){return{value:e,done:t}})}function nf(){if(Ld)return Rd;Ld=1;var e=Ra(),t=Vd(),r=qd(),n=fc(),o=Tu().f,i=tf(),a=rf(),s=As(),u=qi(),l="Array Iterator",c=n.set,d=n.getterFor(l);Rd=i(Array,"Array",function(t,r){c(this,{type:l,target:e(t),index:0,kind:r})},function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,a(void 0,!0);switch(e.kind){case"keys":return a(r,!1);case"values":return a(t[r],!1)}return a([r,t[r]],!1)},"values");var f=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!s&&u&&"values"!==f.name)try{o(f,"name",{value:"values"})}catch(e){}return Rd}function of(){return zd?_d:(zd=1,_d={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})}function af(){if(jd)return Ud;jd=1,nf();var e=of(),t=Fi(),r=cc(),n=qd();for(var o in e)r(t[o],o),n[o]=n.Array;return Ud}function sf(){if($d)return Hd;$d=1;var e=ld();return af(),Hd=e}var uf,lf={};var cf;var df;var ff,hf,pf;function gf(){if(pf)return hf;pf=1;var e=sf();return function(){if(uf)return lf;uf=1;var e=Fs(),t=Tu().f,r=e("metadata"),n=Function.prototype;void 0===n[r]&&t(n,r,{value:null})}(),cf||(cf=1,_c()),df||(df=1,$c()),ff||(ff=1,sc()("metadata")),hf=e}var mf,vf,yf;function bf(){if(vf)return mf;vf=1;var e=za(),t=Ri(),r=e("Symbol"),n=r.keyFor,o=t(r.prototype.valueOf);return mf=r.isRegisteredSymbol||function(e){try{return void 0!==n(o(e))}catch(e){return!1}}}var wf,Ef,xf;function Sf(){if(Ef)return wf;Ef=1;for(var e=ks(),t=za(),r=Ri(),n=qa(),o=Fs(),i=t("Symbol"),a=i.isWellKnownSymbol,s=t("Object","getOwnPropertyNames"),u=r(i.prototype.valueOf),l=e("wks"),c=0,d=s(i),f=d.length;c<f;c++)try{var h=d[c];n(i[h])&&o(h)}catch(e){}return wf=function(e){if(a&&a(e))return!0;try{for(var t=u(e),r=0,n=s(l),o=n.length;r<o;r++)if(l[n[r]]==t)return!0}catch(e){}return!1},wf}var Cf;var Af;var Df;var Tf;var kf;var Of;var Nf;var Bf,Ff,Mf,If,Pf;function Rf(){if(Mf)return Ff;Mf=1;var e=gf();return yf||(yf=1,Ou()({target:"Symbol",stat:!0},{isRegisteredSymbol:bf()})),xf||(xf=1,Ou()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Sf()})),Cf||(Cf=1,sc()("customMatcher")),Af||(Af=1,sc()("observable")),Df||(Df=1,Ou()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:bf()})),Tf||(Tf=1,Ou()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Sf()})),kf||(kf=1,sc()("matcher")),Of||(Of=1,sc()("metadataKey")),Nf||(Nf=1,sc()("patternMatch")),Bf||(Bf=1,sc()("replaceAll")),Ff=e}function Lf(){return Pf?If:(Pf=1,If=Rf())}var _f,zf,jf,Hf,$f,Uf,Vf,qf,Gf,Wf,Yf,Kf,Xf,Zf=w(Lf()),Jf={};function Qf(){if(zf)return _f;zf=1;var e=Ri(),t=Fu(),r=Yu(),n=Pa(),o=e("".charAt),i=e("".charCodeAt),a=e("".slice),s=function(e){return function(s,u){var l,c,d=r(n(s)),f=t(u),h=d.length;return f<0||f>=h?e?"":void 0:(l=i(d,f))<55296||l>56319||f+1===h||(c=i(d,f+1))<56320||c>57343?e?o(d,f):l:e?a(d,f,f+2):c-56320+(l-55296<<10)+65536}};return _f={codeAt:s(!1),charAt:s(!0)}}function eh(){return $f?Hf:($f=1,nf(),function(){if(jf)return Jf;jf=1;var e=Qf().charAt,t=Yu(),r=fc(),n=tf(),o=rf(),i="String Iterator",a=r.set,s=r.getterFor(i);n(String,"String",function(e){a(this,{type:i,string:t(e),index:0})},function(){var t,r=s(this),n=r.string,i=r.index;return i>=n.length?o(void 0,!0):(t=e(n,i),r.index+=t.length,o(t,!1))})}(),Wc(),Hf=ac().f("iterator"))}function th(){if(Vf)return Uf;Vf=1;var e=eh();return af(),Uf=e}function rh(){return Gf?qf:(Gf=1,qf=th())}function nh(){return Yf?Wf:(Yf=1,Wf=rh())}function oh(){return Xf?Kf:(Xf=1,Kf=nh())}var ih=w(oh());function ah(e){return ah="function"==typeof Zf&&"symbol"==typeof ih?function(e){return typeof e}:function(e){return e&&"function"==typeof Zf&&e.constructor===Zf&&e!==Zf.prototype?"symbol":typeof e},ah(e)}var sh,uh={};if(function(){if(sh)return uh;sh=1;var e=hn(),t=x(),r=O(),n=gr().f,o=De();e({target:"Object",stat:!0,forced:!o||t(function(){n(1)}),sham:!o},{getOwnPropertyDescriptor:function(e,t){return n(r(e),t)}})}(),"object"===("undefined"==typeof global?"undefined":ah(global))){var lh=Object.getOwnPropertyDescriptor(global,"window");global.window&&!lh.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}var ch,dh={};function fh(){if(ch)return dh;ch=1;var e={transform:function(e,t){var r=e.current,n=e.affinity;if(null!=r){var o=y.transform(r,t,{affinity:n});e.current=o,null==o&&e.unref()}}},t={transform:function(e,t){var r=e.current,n=e.affinity;if(null!=r){var o=Fe.transform(r,t,{affinity:n});e.current=o,null==o&&e.unref()}}},r={transform:function(e,t){var r=e.current,n=e.affinity;if(null!=r){var o=I.transform(r,t,{affinity:n});e.current=o,null==o&&e.unref()}}},n=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,u=new WeakMap,l=new WeakMap;function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function d(e,t){return e(t={exports:{}},t.exports),t.exports}var f=d(function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports});c(f);var h=d(function(e){e.exports=function(e){if(Array.isArray(e))return f(e)},e.exports.__esModule=!0,e.exports.default=e.exports});c(h);var p=d(function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports});c(p);var g=d(function(e){e.exports=function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports});c(g);var m=d(function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports});c(m);var v=c(d(function(e){e.exports=function(e){return h(e)||p(e)||g(e)||m()},e.exports.__esModule=!0,e.exports.default=e.exports})),y={ancestors:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.reverse,n=void 0!==r&&r,o=y.levels(e,t);return o=n?o.slice(1):o.slice(0,-1)},common:function(e,t){for(var r=[],n=0;n<e.length&&n<t.length;n++){var o=e[n];if(o!==t[n])break;r.push(o)}return r},compare:function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return 0},endsAfter:function(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],a=t[r];return y.equals(n,o)&&i>a},endsAt:function(e,t){var r=e.length,n=e.slice(0,r),o=t.slice(0,r);return y.equals(n,o)},endsBefore:function(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],a=t[r];return y.equals(n,o)&&i<a},equals:function(e,t){return e.length===t.length&&e.every(function(e,r){return e===t[r]})},hasPrevious:function(e){return e[e.length-1]>0},isAfter:function(e,t){return 1===y.compare(e,t)},isAncestor:function(e,t){return e.length<t.length&&0===y.compare(e,t)},isBefore:function(e,t){return-1===y.compare(e,t)},isChild:function(e,t){return e.length===t.length+1&&0===y.compare(e,t)},isCommon:function(e,t){return e.length<=t.length&&0===y.compare(e,t)},isDescendant:function(e,t){return e.length>t.length&&0===y.compare(e,t)},isParent:function(e,t){return e.length+1===t.length&&0===y.compare(e,t)},isPath:function(e){return Array.isArray(e)&&e.every(function(e){return"number"==typeof e})},isSibling:function(e,t){if(e.length!==t.length)return!1;var r=e.slice(0,-1),n=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&y.equals(r,n)},levels:function(e){for(var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).reverse,r=void 0!==t&&t,n=[],o=0;o<=e.length;o++)n.push(e.slice(0,o));return r&&n.reverse(),n},next:function(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath:function(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent:function(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous:function(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative:function(e,t){if(!y.isAncestor(t,e)&&!y.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var n=v(e),o=r.affinity,i=void 0===o?"forward":o;if(0===e.length)return n;switch(t.type){case"insert_node":var a=t.path;(y.equals(a,n)||y.endsBefore(a,n)||y.isAncestor(a,n))&&(n[a.length-1]+=1);break;case"remove_node":var s=t.path;if(y.equals(s,n)||y.isAncestor(s,n))return null;y.endsBefore(s,n)&&(n[s.length-1]-=1);break;case"merge_node":var u=t.path,l=t.position;y.equals(u,n)||y.endsBefore(u,n)?n[u.length-1]-=1:y.isAncestor(u,n)&&(n[u.length-1]-=1,n[u.length]+=l);break;case"split_node":var c=t.path,d=t.position;if(y.equals(c,n)){if("forward"===i)n[n.length-1]+=1;else if("backward"!==i)return null}else y.endsBefore(c,n)?n[c.length-1]+=1:y.isAncestor(c,n)&&e[c.length]>=d&&(n[c.length-1]+=1,n[c.length]-=d);break;case"move_node":var f=t.path,h=t.newPath;if(y.equals(f,h))return n;if(y.isAncestor(f,n)||y.equals(f,n)){var p=h.slice();return y.endsBefore(f,h)&&f.length<h.length&&(p[f.length-1]-=1),p.concat(n.slice(f.length))}y.isSibling(f,h)&&(y.isAncestor(h,n)||y.equals(h,n))?y.endsBefore(f,n)?n[f.length-1]-=1:n[f.length-1]+=1:y.endsBefore(h,n)||y.equals(h,n)||y.isAncestor(h,n)?(y.endsBefore(f,n)&&(n[f.length-1]-=1),n[h.length-1]+=1):y.endsBefore(f,n)&&(y.equals(h,n)&&(n[h.length-1]+=1),n[f.length-1]-=1)}return n}},b=d(function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}),w=c(b),E=d(function(e){var t=b.default;e.exports=function(e,r){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports});c(E);var x=d(function(e){var t=b.default;e.exports=function(e){var r=E(e,"string");return"symbol"===t(r)?r:String(r)},e.exports.__esModule=!0,e.exports.default=e.exports});c(x);var S=c(d(function(e){e.exports=function(e,t,r){return(t=x(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports})),C=d(function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports});c(C);var A=d(function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports});c(A);var D=d(function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports});c(D);var T=d(function(e){e.exports=function(e,t){return C(e)||A(e,t)||g(e,t)||D()},e.exports.__esModule=!0,e.exports.default=e.exports}),k=c(T),O=d(function(e){e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports});c(O);var N=d(function(e){e.exports=function(e,t){if(null==e)return{};var r,n,o=O(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},e.exports.__esModule=!0,e.exports.default=e.exports}),B=c(N),F=["anchor","focus"];function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var I={edges:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).reverse,r=void 0!==t&&t,n=e.anchor,o=e.focus;return I.isBackward(e)===r?[n,o]:[o,n]},end:function(e){var t=I.edges(e),r=k(t,2)[1];return r},equals:function(e,t){return Fe.equals(e.anchor,t.anchor)&&Fe.equals(e.focus,t.focus)},surrounds:function(e,t){var r=I.intersection(e,t);return!!r&&I.equals(r,t)},includes:function(e,t){if(ke.isRange(t)){if(I.includes(e,t.anchor)||I.includes(e,t.focus))return!0;var r=I.edges(e),n=k(r,2),o=n[0],i=n[1],a=I.edges(t),s=k(a,2),u=s[0],l=s[1];return Fe.isBefore(o,u)&&Fe.isAfter(i,l)}var c=I.edges(e),d=k(c,2),f=d[0],h=d[1],p=!1,g=!1;return ke.isPoint(t)?(p=Fe.compare(t,f)>=0,g=Fe.compare(t,h)<=0):(p=y.compare(t,f.path)>=0,g=y.compare(t,h.path)<=0),p&&g},intersection:function(e,t){e.anchor,e.focus;var r=B(e,F),n=I.edges(e),o=k(n,2),i=o[0],a=o[1],s=I.edges(t),u=k(s,2),l=u[0],c=u[1],d=Fe.isBefore(i,l)?l:i,f=Fe.isBefore(a,c)?a:c;return Fe.isBefore(f,d)?null:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({anchor:d,focus:f},r)},isBackward:function(e){var t=e.anchor,r=e.focus;return Fe.isAfter(t,r)},isCollapsed:function(e){var t=e.anchor,r=e.focus;return Fe.equals(t,r)},isExpanded:function(e){return!I.isCollapsed(e)},isForward:function(e){return!I.isBackward(e)},isRange:function(e){return W(e)&&Fe.isPoint(e.anchor)&&Fe.isPoint(e.focus)},points:function*(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start:function(e){var t=I.edges(e),r=k(t,1)[0];return r},transform:function(e,t){if(null===e)return null;var r,n,o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,i=void 0===o?"inward":o;if("inward"===i){var a=I.isCollapsed(e);I.isForward(e)?(r="forward",n=a?r:"backward"):(r="backward",n=a?r:"forward")}else"outward"===i?I.isForward(e)?(r="backward",n="forward"):(r="forward",n="backward"):(r=i,n=i);var s=Fe.transform(e.anchor,t,{affinity:r}),u=Fe.transform(e.focus,t,{affinity:n});return s&&u?{anchor:s,focus:u}:null}},P=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).deep,r=void 0!==t&&t;return!!W(e)&&("function"!=typeof e.apply&&(r?U.isNodeList(e.children):Array.isArray(e.children)))},R={isAncestor:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).deep,r=void 0!==t&&t;return W(e)&&U.isNodeList(e.children,{deep:r})},isElement:P,isElementList:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).deep,r=void 0!==t&&t;return Array.isArray(e)&&e.every(function(e){return R.isElement(e,{deep:r})})},isElementProps:function(e){return void 0!==e.children},isElementType:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return P(e)&&e[r]===t},matches:function(e,t){for(var r in t)if("children"!==r&&e[r]!==t[r])return!1;return!0}},L=["text"],_=["children"];function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function H(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return $(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var U={ancestor:function(e,t){var r=U.get(e,t);if(U.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(Ie.stringify(r)));return r},ancestors:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){var n,o=H(y.ancestors(t,r));try{for(o.s();!(n=o.n()).done;){var i=n.value,a=[U.ancestor(e,i),i];yield a}}catch(e){o.e(e)}finally{o.f()}}()},child:function(e,t){if(U.isText(e))throw new Error("Cannot get the child of a text node: ".concat(Ie.stringify(e)));var r=e.children[t];if(null==r)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(Ie.stringify(e)));return r},children:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var n=r.reverse,o=void 0!==n&&n,i=U.ancestor(e,t),a=i.children,s=o?a.length-1:0;o?s>=0:s<a.length;){var u=U.child(i,s),l=t.concat(s);yield[u,l],s=o?s-1:s+1}}()},common:function(e,t,r){var n=y.common(t,r);return[U.get(e,n),n]},descendant:function(e,t){var r=U.get(e,t);if(U.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(Ie.stringify(r)));return r},descendants:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var r,n=H(U.nodes(e,t));try{for(n.s();!(r=n.n()).done;){var o=k(r.value,2),i=o[0],a=o[1];0!==a.length&&(yield[i,a])}}catch(e){n.e(e)}finally{n.f()}}()},elements:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var r,n=H(U.nodes(e,t));try{for(n.s();!(r=n.n()).done;){var o=k(r.value,2),i=o[0],a=o[1];U.isElement(i)&&(yield[i,a])}}catch(e){n.e(e)}finally{n.f()}}()},extractProps:function(e){return U.isText(e)?(e.text,B(e,L)):(e.children,B(e,_))},first:function(e,t){for(var r=t.slice(),n=U.get(e,r);n&&!U.isText(n)&&0!==n.children.length;)n=n.children[0],r.push(0);return[n,r]},fragment:function(e,t){var r,n={children:e.children},o=I.edges(t),i=k(o,2),a=i[0],s=i[1],u=U.nodes(n,{reverse:!0,pass:function(e){var r=k(e,2)[1];return!I.includes(t,r)}}),l=H(u);try{var c=function(){var e=k(r.value,2)[1];if(!I.includes(t,e)){var o=e[e.length-1];Ye(n,y.parent(e),function(e){return Ge(e,o,1)})}y.equals(e,s.path)&&Ke(n,e,function(e){var t=e.text.slice(0,s.offset);return j(j({},e),{},{text:t})}),y.equals(e,a.path)&&Ke(n,e,function(e){var t=e.text.slice(a.offset);return j(j({},e),{},{text:t})})};for(l.s();!(r=l.n()).done;)c()}catch(e){l.e(e)}finally{l.f()}return n.children},get:function(e,t){var r=U.getIf(e,t);if(void 0===r)throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(Ie.stringify(e)));return r},getIf:function(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if(U.isText(r)||!r.children[o])return;r=r.children[o]}return r},has:function(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if(U.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isAncestor:function(e){return!U.isText(e)},isEditor:function(e){return"function"==typeof e.apply},isElement:function(e){return Array.isArray(e.children)&&"function"!=typeof e.apply},isNode:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).deep,r=void 0!==t&&t;return He.isText(e)||R.isElement(e,{deep:r})||Te.isEditor(e,{deep:r})},isNodeList:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).deep,r=void 0!==t&&t;return Array.isArray(e)&&e.every(function(e){return U.isNode(e,{deep:r})})},isText:function(e){return"string"==typeof e.text},last:function(e,t){for(var r=t.slice(),n=U.get(e,r);n&&!U.isText(n)&&0!==n.children.length;){var o=n.children.length-1;n=n.children[o],r.push(o)}return[n,r]},leaf:function(e,t){var r=U.get(e,t);if(!U.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Ie.stringify(r)));return r},levels:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){var n,o=H(y.levels(t,r));try{for(o.s();!(n=o.n()).done;){var i=n.value,a=U.get(e,i);yield[a,i]}}catch(e){o.e(e)}finally{o.f()}}()},matches:function(e,t){return U.isElement(e)&&R.isElementProps(t)&&R.matches(e,t)||U.isText(e)&&He.isTextProps(t)&&He.matches(e,t)},nodes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var r=t.pass,n=t.reverse,o=void 0!==n&&n,i=t.from,a=void 0===i?[]:i,s=t.to,u=new Set,l=[],c=e;!s||!(o?y.isBefore(l,s):y.isAfter(l,s));)if(u.has(c)||(yield[c,l]),u.has(c)||U.isText(c)||0===c.children.length||null!=r&&!1!==r([c,l])){if(0===l.length)break;if(!o){var d=y.next(l);if(U.has(e,d)){l=d,c=U.get(e,l);continue}}if(o&&0!==l[l.length-1])l=y.previous(l),c=U.get(e,l);else l=y.parent(l),c=U.get(e,l),u.add(c)}else{u.add(c);var f=o?c.children.length-1:0;y.isAncestor(l,a)&&(f=a[l.length]),l=l.concat(f),c=U.get(e,l)}}()},parent:function(e,t){var r=y.parent(t),n=U.get(e,r);if(U.isText(n))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return n},string:function(e){return U.isText(e)?e.text:e.children.map(U.string).join("")},texts:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var r,n=H(U.nodes(e,t));try{for(n.s();!(r=n.n()).done;){var o=k(r.value,2),i=o[0],a=o[1];U.isText(i)&&(yield[i,a])}}catch(e){n.e(e)}finally{n.f()}}()}};function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var G={isNodeOperation:function(e){return G.isOperation(e)&&e.type.endsWith("_node")},isOperation:function(e){if(!W(e))return!1;switch(e.type){case"insert_node":case"remove_node":return y.isPath(e.path)&&U.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&y.isPath(e.path);case"merge_node":return"number"==typeof e.position&&y.isPath(e.path)&&W(e.properties);case"move_node":return y.isPath(e.path)&&y.isPath(e.newPath);case"set_node":return y.isPath(e.path)&&W(e.properties)&&W(e.newProperties);case"set_selection":return null===e.properties&&I.isRange(e.newProperties)||null===e.newProperties&&I.isRange(e.properties)||W(e.properties)&&W(e.newProperties);case"split_node":return y.isPath(e.path)&&"number"==typeof e.position&&W(e.properties);default:return!1}},isOperationList:function(e){return Array.isArray(e)&&e.every(function(e){return G.isOperation(e)})},isSelectionOperation:function(e){return G.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation:function(e){return G.isOperation(e)&&e.type.endsWith("_text")},inverse:function(e){switch(e.type){case"insert_node":return q(q({},e),{},{type:"remove_node"});case"insert_text":return q(q({},e),{},{type:"remove_text"});case"merge_node":return q(q({},e),{},{type:"split_node",path:y.previous(e.path)});case"move_node":var t=e.newPath,r=e.path;if(y.equals(t,r))return e;if(y.isSibling(r,t))return q(q({},e),{},{path:t,newPath:r});var n=y.transform(r,e),o=y.transform(y.next(r),e);return q(q({},e),{},{path:n,newPath:o});case"remove_node":return q(q({},e),{},{type:"insert_node"});case"remove_text":return q(q({},e),{},{type:"insert_text"});case"set_node":var i=e.properties,a=e.newProperties;return q(q({},e),{},{properties:a,newProperties:i});case"set_selection":var s=e.properties,u=e.newProperties;return q(q({},e),{},null==s?{properties:u,newProperties:null}:null==u?{properties:null,newProperties:s}:{properties:u,newProperties:s});case"split_node":return q(q({},e),{},{type:"merge_node",path:y.next(e.path)})}}},W=function(e){return"object"===w(e)&&null!==e},Y=function e(t,r){for(var n in t){var o=t[n],i=r[n];if(Array.isArray(o)&&Array.isArray(i)){if(o.length!==i.length)return!1;for(var a=0;a<o.length;a++)if(o[a]!==i[a])return!1}else if(W(o)&&W(i)){if(!e(o,i))return!1}else if(o!==i)return!1}for(var s in r)if(void 0===t[s]&&void 0!==r[s])return!1;return!0},K=function(e){return e.selection?e.selection:e.children.length>0?Te.end(e,[]):[0]},X=function(e,t){var r=Te.node(e,t),n=k(r,1)[0];return function(e){return e===n}};function Z(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return J(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Q,ee=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!r,o=r?ae(e):e,i=Q.None,a=Q.None,s=0,u=null,l=Z(o);try{for(l.s();!(t=l.n()).done;){var c=t.value,d=c.codePointAt(0);if(!d)break;var f=ye(c,d),h=k(n?[a,f]:[f,i],2);if(i=h[0],a=h[1],be(i,Q.ZWJ)&&be(a,Q.ExtPict)&&!Se(n?e.substring(0,s):e.substring(0,e.length-s)))break;if(be(i,Q.RI)&&be(a,Q.RI)&&!(u=null!==u?!u:!!n||Ae(e.substring(0,e.length-s))))break;if(i!==Q.None&&a!==Q.None&&Ee(i,a))break;s+=c.length}}catch(e){l.e(e)}finally{l.f()}return s||1},te=/\s/,re=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,ne=/['\u2018\u2019]/,oe=function(e,t,r){if(r){var n=e.length-t;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,t),e.slice(t)]},ie=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(te.test(t))return!1;if(ne.test(t)){var o=ee(r,n),i=oe(r,o,n),a=k(i,2);if(e(a[0],a[1],n))return!0}return!re.test(t)},ae=function*(e){for(var t=e.length-1,r=0;r<e.length;r++){var n=e.charAt(t-r);if(ue(n.charCodeAt(0))){var o=e.charAt(t-r-1);if(se(o.charCodeAt(0))){yield o+n,r++;continue}}yield n}},se=function(e){return e>=55296&&e<=56319},ue=function(e){return e>=56320&&e<=57343};!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Q||(Q={}));var le=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,ce=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,de=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,fe=/^[\u1100-\u115F\uA960-\uA97C]$/,he=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,pe=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,ge=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,me=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,ve=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,ye=function(e,t){var r=Q.Any;return-1!==e.search(le)&&(r|=Q.Extend),8205===t&&(r|=Q.ZWJ),t>=127462&&t<=127487&&(r|=Q.RI),-1!==e.search(ce)&&(r|=Q.Prepend),-1!==e.search(de)&&(r|=Q.SpacingMark),-1!==e.search(fe)&&(r|=Q.L),-1!==e.search(he)&&(r|=Q.V),-1!==e.search(pe)&&(r|=Q.T),-1!==e.search(ge)&&(r|=Q.LV),-1!==e.search(me)&&(r|=Q.LVT),-1!==e.search(ve)&&(r|=Q.ExtPict),r};function be(e,t){return 0!==(e&t)}var we=[[Q.L,Q.L|Q.V|Q.LV|Q.LVT],[Q.LV|Q.V,Q.V|Q.T],[Q.LVT|Q.T,Q.T],[Q.Any,Q.Extend|Q.ZWJ],[Q.Any,Q.SpacingMark],[Q.Prepend,Q.Any],[Q.ZWJ,Q.ExtPict],[Q.RI,Q.RI]];function Ee(e,t){return-1===we.findIndex(function(r){return be(e,r[0])&&be(t,r[1])})}var xe=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,Se=function(e){return-1!==e.search(xe)},Ce=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Ae=function(e){var t=e.match(Ce);return null!==t&&t[0].length/2%2==1},De=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).deep,r=void 0!==t&&t;if(!W(e))return!1;var n="function"==typeof e.above&&"function"==typeof e.addMark&&"function"==typeof e.after&&"function"==typeof e.apply&&"function"==typeof e.before&&"function"==typeof e.collapse&&"function"==typeof e.delete&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.deselect&&"function"==typeof e.edges&&"function"==typeof e.elementReadOnly&&"function"==typeof e.end&&"function"==typeof e.first&&"function"==typeof e.fragment&&"function"==typeof e.getDirtyPaths&&"function"==typeof e.getFragment&&"function"==typeof e.getMarks&&"function"==typeof e.hasBlocks&&"function"==typeof e.hasInlines&&"function"==typeof e.hasPath&&"function"==typeof e.hasTexts&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertNodes&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertText&&"function"==typeof e.isBlock&&"function"==typeof e.isEdge&&"function"==typeof e.isElementReadOnly&&"function"==typeof e.isEmpty&&"function"==typeof e.isEnd&&"function"==typeof e.isInline&&"function"==typeof e.isNormalizing&&"function"==typeof e.isSelectable&&"function"==typeof e.isStart&&"function"==typeof e.isVoid&&"function"==typeof e.last&&"function"==typeof e.leaf&&"function"==typeof e.levels&&"function"==typeof e.liftNodes&&"function"==typeof e.markableVoid&&"function"==typeof e.mergeNodes&&"function"==typeof e.move&&"function"==typeof e.moveNodes&&"function"==typeof e.next&&"function"==typeof e.node&&"function"==typeof e.nodes&&"function"==typeof e.normalize&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.parent&&"function"==typeof e.path&&"function"==typeof e.pathRef&&"function"==typeof e.pathRefs&&"function"==typeof e.point&&"function"==typeof e.pointRef&&"function"==typeof e.pointRefs&&"function"==typeof e.positions&&"function"==typeof e.previous&&"function"==typeof e.range&&"function"==typeof e.rangeRef&&"function"==typeof e.rangeRefs&&"function"==typeof e.removeMark&&"function"==typeof e.removeNodes&&"function"==typeof e.select&&"function"==typeof e.setNodes&&"function"==typeof e.setNormalizing&&"function"==typeof e.setPoint&&"function"==typeof e.setSelection&&"function"==typeof e.shouldMergeNodesRemovePrevNode&&"function"==typeof e.shouldNormalize&&"function"==typeof e.splitNodes&&"function"==typeof e.start&&"function"==typeof e.string&&"function"==typeof e.unhangRange&&"function"==typeof e.unsetNodes&&"function"==typeof e.unwrapNodes&&"function"==typeof e.void&&"function"==typeof e.withoutNormalizing&&"function"==typeof e.wrapNodes&&(null===e.marks||W(e.marks))&&(null===e.selection||I.isRange(e.selection))&&(r?U.isNodeList(e.children)&&G.isOperationList(e.operations):Array.isArray(e.children)&&Array.isArray(e.operations));return n},Te={above:function(e,t){return e.above(t)},addMark:function(e,t,r){e.addMark(t,r)},after:function(e,t,r){return e.after(t,r)},before:function(e,t,r){return e.before(t,r)},deleteBackward:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).unit,r=void 0===t?"character":t;e.deleteBackward(r)},deleteForward:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).unit,r=void 0===t?"character":t;e.deleteForward(r)},deleteFragment:function(e,t){e.deleteFragment(t)},edges:function(e,t){return e.edges(t)},elementReadOnly:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.elementReadOnly(t)},end:function(e,t){return e.end(t)},first:function(e,t){return e.first(t)},fragment:function(e,t){return e.fragment(t)},hasBlocks:function(e,t){return e.hasBlocks(t)},hasInlines:function(e,t){return e.hasInlines(t)},hasPath:function(e,t){return e.hasPath(t)},hasTexts:function(e,t){return e.hasTexts(t)},insertBreak:function(e){e.insertBreak()},insertFragment:function(e,t,r){e.insertFragment(t,r)},insertNode:function(e,t){e.insertNode(t)},insertSoftBreak:function(e){e.insertSoftBreak()},insertText:function(e,t){e.insertText(t)},isBlock:function(e,t){return e.isBlock(t)},isEdge:function(e,t,r){return e.isEdge(t,r)},isEditor:De,isElementReadOnly:function(e,t){return e.isElementReadOnly(t)},isEmpty:function(e,t){return e.isEmpty(t)},isEnd:function(e,t,r){return e.isEnd(t,r)},isInline:function(e,t){return e.isInline(t)},isNormalizing:function(e){return e.isNormalizing()},isSelectable:function(e,t){return e.isSelectable(t)},isStart:function(e,t,r){return e.isStart(t,r)},isVoid:function(e,t){return e.isVoid(t)},last:function(e,t){return e.last(t)},leaf:function(e,t,r){return e.leaf(t,r)},levels:function(e,t){return e.levels(t)},marks:function(e){return e.getMarks()},next:function(e,t){return e.next(t)},node:function(e,t,r){return e.node(t,r)},nodes:function(e,t){return e.nodes(t)},normalize:function(e,t){e.normalize(t)},parent:function(e,t,r){return e.parent(t,r)},path:function(e,t,r){return e.path(t,r)},pathRef:function(e,t,r){return e.pathRef(t,r)},pathRefs:function(e){return e.pathRefs()},point:function(e,t,r){return e.point(t,r)},pointRef:function(e,t,r){return e.pointRef(t,r)},pointRefs:function(e){return e.pointRefs()},positions:function(e,t){return e.positions(t)},previous:function(e,t){return e.previous(t)},range:function(e,t,r){return e.range(t,r)},rangeRef:function(e,t,r){return e.rangeRef(t,r)},rangeRefs:function(e){return e.rangeRefs()},removeMark:function(e,t){e.removeMark(t)},setNormalizing:function(e,t){e.setNormalizing(t)},start:function(e,t){return e.start(t)},string:function(e,t,r){return e.string(t,r)},unhangRange:function(e,t,r){return e.unhangRange(t,r)},void:function(e,t){return e.void(t)},withoutNormalizing:function(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:function(e,t,r){return e.shouldMergeNodesRemovePrevNode(t,r)}},ke={isLocation:function(e){return y.isPath(e)||Fe.isPoint(e)||I.isRange(e)},isPath:function(e){return Array.isArray(e)},isPoint:function(e){return"offset"in e},isRange:function(e){return"anchor"in e},isSpan:function(e){return Array.isArray(e)&&Array.isArray(e[0])}},Oe={isSpan:function(e){return Array.isArray(e)&&2===e.length&&e.every(y.isPath)}};function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Fe={compare:function(e,t){var r=y.compare(e.path,t.path);return 0===r?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter:function(e,t){return 1===Fe.compare(e,t)},isBefore:function(e,t){return-1===Fe.compare(e,t)},equals:function(e,t){return e.offset===t.offset&&y.equals(e.path,t.path)},isPoint:function(e){return W(e)&&"number"==typeof e.offset&&y.isPath(e.path)},transform:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null===e)return null;var n=r.affinity,o=void 0===n?"forward":n,i=e.path,a=e.offset;switch(t.type){case"insert_node":case"move_node":i=y.transform(i,t,r);break;case"insert_text":y.equals(t.path,i)&&(t.offset<a||t.offset===a&&"forward"===o)&&(a+=t.text.length);break;case"merge_node":y.equals(t.path,i)&&(a+=t.position),i=y.transform(i,t,r);break;case"remove_text":y.equals(t.path,i)&&t.offset<=a&&(a-=Math.min(a-t.offset,t.text.length));break;case"remove_node":if(y.equals(t.path,i)||y.isAncestor(t.path,i))return null;i=y.transform(i,t,r);break;case"split_node":if(y.equals(t.path,i)){if(t.position===a&&null==o)return null;(t.position<a||t.position===a&&"forward"===o)&&(a-=t.position,i=y.transform(i,t,Be(Be({},r),{},{affinity:"forward"})))}else i=y.transform(i,t,r);break;default:return e}return{path:i,offset:a}}},Me=void 0,Ie={setScrubber:function(e){Me=e},stringify:function(e){return JSON.stringify(e,Me)}},Pe=["text"],Re=["anchor","focus","merge"];function Le(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return _e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _e(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ze(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ze(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var He={equals:function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).loose,n=void 0!==r&&r;function o(e){return e.text,B(e,Pe)}return Y(n?o(e):e,n?o(t):t)},isText:function(e){return W(e)&&"string"==typeof e.text},isTextList:function(e){return Array.isArray(e)&&e.every(function(e){return He.isText(e)})},isTextProps:function(e){return void 0!==e.text},matches:function(e,t){for(var r in t)if("text"!==r&&(!e.hasOwnProperty(r)||e[r]!==t[r]))return!1;return!0},decorations:function(e,t){var r,n=[{leaf:je({},e)}],o=Le(t);try{for(o.s();!(r=o.n()).done;){var i,a=r.value,s=(a.anchor,a.focus,a.merge),u=B(a,Re),l=I.edges(a),c=k(l,2),d=c[0],f=c[1],h=[],p=0,g=d.offset,m=f.offset,v=null!=s?s:Object.assign,y=Le(n);try{for(y.s();!(i=y.n()).done;){var b=i.value.leaf,w=b.text.length,E=p;if(p+=w,g<=E&&p<=m)v(b,u),h.push({leaf:b});else if(g!==m&&(g===p||m===E)||g>p||m<E||m===E&&0!==E)h.push({leaf:b});else{var x=b,S=void 0,C=void 0;if(m<p){var A=m-E;C={leaf:je(je({},x),{},{text:x.text.slice(A)})},x=je(je({},x),{},{text:x.text.slice(0,A)})}if(g>E){var D=g-E;S={leaf:je(je({},x),{},{text:x.text.slice(0,D)})},x=je(je({},x),{},{text:x.text.slice(D)})}v(x,u),S&&h.push(S),h.push({leaf:x}),C&&h.push(C)}}}catch(e){y.e(e)}finally{y.f()}n=h}}catch(e){o.e(e)}finally{o.f()}if(n.length>1){var T,O=0,N=Le(n.entries());try{for(N.s();!(T=N.n()).done;){var F=k(T.value,2),M=F[0],P=F[1],R=O,L=R+P.leaf.text.length,_={start:R,end:L};0===M&&(_.isFirst=!0),M===n.length-1&&(_.isLast=!0),P.position=_,O=L}}catch(e){N.e(e)}finally{N.f()}}return n}};function $e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Ve=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return[].concat(v(e.slice(0,t)),n,v(e.slice(t)))},qe=function(e,t,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];return[].concat(v(e.slice(0,t)),o,v(e.slice(t+r)))},Ge=qe,We=function(e,t,r){if(0===t.length)throw new Error("Cannot modify the editor");for(var n=U.get(e,t),o=t.slice(),i=r(n);o.length>1;){var a=o.pop(),s=U.get(e,o);i=Ue(Ue({},s),{},{children:qe(s.children,a,1,i)})}var u=o.pop();e.children=qe(e.children,u,1,i)},Ye=function(e,t,r){0===t.length?e.children=r(e.children):We(e,t,function(e){if(U.isText(e))throw new Error("Cannot get the element at path [".concat(t,"] because it refers to a leaf node: ").concat(Ie.stringify(e)));return Ue(Ue({},e),{},{children:r(e.children)})})},Ke=function(e,t,r){return We(e,t,function(e){if(!U.isText(e))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Ie.stringify(e)));return r(e)})};function Xe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Ze(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ze(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Je(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var et={transform:function(e,t){var r=!1;switch(t.type){case"insert_node":var n=t.path,o=t.node;Ye(e,y.parent(n),function(e){var t=n[n.length-1];if(t>e.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(n,"] because the destination is past the end of the node."));return Ve(e,t,o)}),r=!0;break;case"insert_text":var i=t.path,a=t.offset,s=t.text;if(0===s.length)break;Ke(e,i,function(e){var t=e.text.slice(0,a),r=e.text.slice(a);return Qe(Qe({},e),{},{text:t+s+r})}),r=!0;break;case"merge_node":var u=t.path,l=u[u.length-1],c=y.previous(u),d=c[c.length-1];Ye(e,y.parent(u),function(e){var t,r=e[l],n=e[d];if(U.isText(r)&&U.isText(n))t=Qe(Qe({},n),{},{text:n.text+r.text});else{if(!U.isElement(r)||!U.isElement(n))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(u,"] to nodes of different interfaces: ").concat(Ie.stringify(r)," ").concat(Ie.stringify(n)));t=Qe(Qe({},n),{},{children:n.children.concat(r.children)})}return qe(e,d,2,t)}),r=!0;break;case"move_node":var f=t.path,h=t.newPath,p=f[f.length-1];if(y.isAncestor(f,h))throw new Error("Cannot move a path [".concat(f,"] to new path [").concat(h,"] because the destination is inside itself."));var g=U.get(e,f);Ye(e,y.parent(f),function(e){return Ge(e,p,1)});var m=y.transform(f,t),v=m[m.length-1];Ye(e,y.parent(m),function(e){return Ve(e,v,g)}),r=!0;break;case"remove_node":var b=t.path,w=b[b.length-1];if(Ye(e,y.parent(b),function(e){return Ge(e,w,1)}),e.selection){var E,x=Qe({},e.selection),S=Xe(I.points(x));try{for(S.s();!(E=S.n()).done;){var C=k(E.value,2),A=C[0],D=C[1],T=Fe.transform(A,t);if(null!=x&&null!=T)x[D]=T;else{var O,N=void 0,B=void 0,F=Xe(U.texts(e));try{for(F.s();!(O=F.n()).done;){var M=k(O.value,2),P=M[0],R=M[1];if(-1!==y.compare(R,b)){B=[P,R];break}N=[P,R]}}catch(e){F.e(e)}finally{F.f()}var L=!1;N&&B&&(L=!y.isSibling(N[1],b)&&(!!y.equals(B[1],b)||y.common(N[1],b).length<y.common(B[1],b).length)),N&&!L?x[D]={path:N[1],offset:N[0].text.length}:B?x[D]={path:B[1],offset:0}:x=null}}}catch(e){S.e(e)}finally{S.f()}x&&I.equals(x,e.selection)||(e.selection=x)}break;case"remove_text":var _=t.path,z=t.offset,j=t.text;if(0===j.length)break;Ke(e,_,function(e){var t=e.text.slice(0,z),r=e.text.slice(z+j.length);return Qe(Qe({},e),{},{text:t+r})}),r=!0;break;case"set_node":var H=t.path,$=t.properties,V=t.newProperties;if(0===H.length)throw new Error("Cannot set properties on the root node!");We(e,H,function(e){var t=Qe({},e);for(var r in V){if("children"===r||"text"===r)throw new Error('Cannot set the "'.concat(r,'" property of nodes!'));var n=V[r];null==n?delete t[r]:t[r]=n}for(var o in $)V.hasOwnProperty(o)||delete t[o];return t});break;case"set_selection":var q=t.newProperties;if(null==q){e.selection=null;break}if(null==e.selection){if(!q.anchor||!q.focus)throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Ie.stringify(q)," when there is no current selection."));e.selection=Qe({},q);break}var G=Qe({},e.selection);for(var W in q){var Y=q[W];if(null==Y){if("anchor"===W||"focus"===W)throw new Error('Cannot remove the "'.concat(W,'" selection property'));delete G[W]}else G[W]=Y}e.selection=G;break;case"split_node":var K=t.path,X=t.position,Z=t.properties,J=K[K.length-1];if(0===K.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(K,"] because the root node cannot be split."));Ye(e,y.parent(K),function(e){var t,r,n=e[J];if(U.isText(n)){var o=n.text.slice(0,X),i=n.text.slice(X);t=Qe(Qe({},n),{},{text:o}),r=Qe(Qe({},Z),{},{text:i})}else{var a=n.children.slice(0,X),s=n.children.slice(X);t=Qe(Qe({},n),{},{children:a}),r=Qe(Qe({},Z),{},{children:s})}return qe(e,J,1,t,r)}),r=!0}if(r&&e.selection){var Q,ee=Qe({},e.selection),te=Xe(I.points(ee));try{for(te.s();!(Q=te.n()).done;){var re=k(Q.value,2),ne=re[0];ee[re[1]]=Fe.transform(ne,t)}}catch(e){te.e(e)}finally{te.f()}I.equals(ee,e.selection)||(e.selection=ee)}}},tt={delete:function(e,t){e.delete(t)},insertFragment:function(e,t,r){e.insertFragment(t,r)},insertText:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Te.withoutNormalizing(e,function(){var n=r.voids,o=void 0!==n&&n,i=r.at,a=void 0===i?K(e):i;if(ke.isPath(a)&&(a=Te.range(e,a)),ke.isRange(a))if(I.isCollapsed(a))a=a.anchor;else{var s=I.end(a);if(!o&&Te.void(e,{at:s}))return;var u=I.start(a),l=Te.pointRef(e,u),c=Te.pointRef(e,s);ot.delete(e,{at:a,voids:o});var d=l.unref(),f=c.unref();a=d||f,ot.setSelection(e,{anchor:a,focus:a})}if(!(!o&&Te.void(e,{at:a})||Te.elementReadOnly(e,{at:a}))){var h=a,p=h.path,g=h.offset;t.length>0&&e.apply({type:"insert_text",path:p,offset:g,text:t})}})}};function rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ot=nt(nt(nt(nt({},et),{insertNodes:function(e,t,r){e.insertNodes(t,r)},liftNodes:function(e,t){e.liftNodes(t)},mergeNodes:function(e,t){e.mergeNodes(t)},moveNodes:function(e,t){e.moveNodes(t)},removeNodes:function(e,t){e.removeNodes(t)},setNodes:function(e,t,r){e.setNodes(t,r)},splitNodes:function(e,t){e.splitNodes(t)},unsetNodes:function(e,t,r){e.unsetNodes(t,r)},unwrapNodes:function(e,t){e.unwrapNodes(t)},wrapNodes:function(e,t,r){e.wrapNodes(t,r)}}),{collapse:function(e,t){e.collapse(t)},deselect:function(e){e.deselect()},move:function(e,t){e.move(t)},select:function(e,t){e.select(t)},setPoint:function(e,t,r){e.setPoint(t,r)},setSelection:function(e,t){e.setSelection(t)}}),tt),it=new WeakMap;function at(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return st(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return st(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ut(e,t,r){var i,a,s=n.get(e)||[],u=o.get(e)||new Set,l=function(e){if(e){var t=e.join(",");a.has(t)||(a.add(t),i.push(e))}};if(r){i=[],a=new Set;var c,d=at(s);try{for(d.s();!(c=d.n()).done;){l(r(c.value))}}catch(e){d.e(e)}finally{d.f()}}else i=s,a=u;var f,h=at(t);try{for(h.s();!(f=h.n()).done;){l(f.value)}}catch(e){h.e(e)}finally{h.f()}n.set(e,i),o.set(e,a)}function lt(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return ct(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ct(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var dt=function(n,o){var a,s=lt(Te.pathRefs(n));try{for(s.s();!(a=s.n()).done;){var u=a.value;e.transform(u,o)}}catch(e){s.e(e)}finally{s.f()}var l,c=lt(Te.pointRefs(n));try{for(c.s();!(l=c.n()).done;){var d=l.value;t.transform(d,o)}}catch(e){c.e(e)}finally{c.f()}var f,h=lt(Te.rangeRefs(n));try{for(h.s();!(f=h.n()).done;){var p=f.value;r.transform(p,o)}}catch(e){h.e(e)}finally{h.f()}if(!function(e){return it.get(e)||!1}(n)){var g=y.operationCanTransformPath(o)?function(e){return y.transform(e,o)}:void 0;ut(n,n.getDirtyPaths(o),g)}ot.transform(n,o),n.operations.push(o),Te.normalize(n,{operation:o}),"set_selection"===o.type&&(n.marks=null),i.get(n)||(i.set(n,!0),Promise.resolve().then(function(){i.set(n,!1),n.onChange({operation:o}),n.operations=[]}))};function ft(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return ht(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ht(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var pt=function(e,t){switch(t.type){case"insert_text":case"remove_text":case"set_node":var r=t.path;return y.levels(r);case"insert_node":var n=t.node,o=t.path,i=y.levels(o),a=U.isText(n)?[]:Array.from(U.nodes(n),function(e){var t=k(e,2)[1];return o.concat(t)});return[].concat(v(i),v(a));case"merge_node":var s=t.path,u=y.ancestors(s),l=y.previous(s);return[].concat(v(u),[l]);case"move_node":var c=t.path,d=t.newPath;if(y.equals(c,d))return[];var f,h=[],p=[],g=ft(y.ancestors(c));try{for(g.s();!(f=g.n()).done;){var m=f.value,b=y.transform(m,t);h.push(b)}}catch(e){g.e(e)}finally{g.f()}var w,E=ft(y.ancestors(d));try{for(E.s();!(w=E.n()).done;){var x=w.value,S=y.transform(x,t);p.push(S)}}catch(e){E.e(e)}finally{E.f()}var C=p[p.length-1],A=d[d.length-1],D=C.concat(A);return[].concat(h,p,[D]);case"remove_node":var T=t.path,O=y.ancestors(T);return v(O);case"split_node":var N=t.path,B=y.levels(N),F=y.next(N);return[].concat(v(B),[F]);default:return[]}},gt=function(e){var t=e.selection;return t?U.fragment(e,t):[]},mt=function(e,t,r){var n=k(t,2),o=n[0],i=n[1];if(!U.isText(o)){"children"in o||(o.children=[]);var a=o;if(a!==e&&0===a.children.length){ot.insertNodes(e,{text:""},{at:i.concat(0),voids:!0}),a=U.get(e,i)}if(!(a===e)&&(e.isInline(a)||U.isText(a.children[0])||e.isInline(a.children[0])))for(var s=0;s<a.children.length;s++){var u=a.children[s],l=a.children[s-1];if(U.isText(u))null!=l&&U.isText(l)&&(""===u.text?(ot.removeNodes(e,{at:i.concat(s),voids:!0}),a=U.get(e,i),s--):""===l.text?(ot.removeNodes(e,{at:i.concat(s-1),voids:!0}),a=U.get(e,i),s--):He.equals(u,l,{loose:!0})&&(ot.mergeNodes(e,{at:i.concat(s),voids:!0}),a=U.get(e,i),s--));else if(e.isInline(u)){if(null==l||!U.isText(l)){ot.insertNodes(e,{text:""},{at:i.concat(s),voids:!0}),a=U.get(e,i),s++}if(s===a.children.length-1){ot.insertNodes(e,{text:""},{at:i.concat(s+1),voids:!0}),a=U.get(e,i),s++}}else ot.unwrapNodes(e,{at:i.concat(s),voids:!0}),a=U.get(e,i),s--}else for(var c=0;c<a.children.length;c++){var d=a.children[c];(U.isText(d)||e.isInline(d))&&(null!=r&&r.fallbackElement?ot.wrapNodes(e,r.fallbackElement(),{at:i.concat(c),voids:!0}):ot.removeNodes(e,{at:i.concat(c),voids:!0}),a=U.get(e,i),c--)}}},vt=function(e,t){var r=t.iteration,n=42*t.initialDirtyPathsLength;if(r>n)throw new Error("Could not completely normalize the editor after ".concat(n," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},yt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.voids,n=void 0!==r&&r,o=t.mode,i=void 0===o?"lowest":o,a=t.at,s=void 0===a?e.selection:a,u=t.match;if(s){var l=Te.path(e,s);if(!ke.isRange(s)||y.equals(s.focus.path,s.anchor.path)){if(0===l.length)return;l=y.parent(l)}var c="lowest"===i,d=Te.levels(e,{at:l,voids:n,match:u,reverse:c});return k(d,1)[0]}};function bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Et=function(e,t,r){var n=e.selection;if(n){var o=function(t,r){if(!U.isText(t))return!1;var n=Te.parent(e,r),o=k(n,2),i=o[0];return o[1],!e.isVoid(i)||e.markableVoid(i)},a=I.isExpanded(n),s=!1;if(!a){var u=Te.node(e,n),l=k(u,2),c=l[0],d=l[1];if(c&&o(c,d)){var f=Te.parent(e,d),h=k(f,1)[0];s=h&&e.markableVoid(h)}}if(a||s)ot.setNodes(e,S({},t,r),{match:o,split:!0,voids:!0});else{var p=wt(wt({},Te.marks(e)||{}),{},S({},t,r));e.marks=p,i.get(e)||e.onChange()}}};function xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function St(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ct(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return At(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return At(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Dt=function(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:Te.point(e,t,{edge:"end"}),focus:Te.end(e,[])},a=o.distance,s=void 0===a?1:a,u=0,l=Ct(Te.positions(e,St(St({},o),{},{at:i})));try{for(l.s();!(n=l.n()).done;){var c=n.value;if(u>s)break;0!==u&&(r=c),u++}}catch(e){l.e(e)}finally{l.f()}return r};function Tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function kt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ot(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Nt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nt(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Bt=function(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:Te.start(e,[]),focus:Te.point(e,t,{edge:"start"})},a=o.distance,s=void 0===a?1:a,u=0,l=Ot(Te.positions(e,kt(kt({},o),{},{at:i,reverse:!0})));try{for(l.s();!(n=l.n()).done;){var c=n.value;if(u>s)break;0!==u&&(r=c),u++}}catch(e){l.e(e)}finally{l.f()}return r},Ft=function(e,t){var r=e.selection;r&&I.isCollapsed(r)&&ot.delete(e,{unit:t,reverse:!0})},Mt=function(e,t){var r=e.selection;r&&I.isCollapsed(r)&&ot.delete(e,{unit:t})},It=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).direction,r=void 0===t?"forward":t,n=e.selection;n&&I.isExpanded(n)&&ot.delete(e,{reverse:"backward"===r})},Pt=function(e,t){return[Te.start(e,t),Te.end(e,t)]};function Rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var _t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Te.above(e,Lt(Lt({},t),{},{match:function(t){return U.isElement(t)&&Te.isElementReadOnly(e,t)}}))},zt=function(e,t){return Te.point(e,t,{edge:"end"})},jt=function(e,t){var r=Te.path(e,t,{edge:"start"});return Te.node(e,r)},Ht=function(e,t){var r=Te.range(e,t);return U.fragment(e,r)};function $t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ut(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$t(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Vt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Te.above(e,Ut(Ut({},t),{},{match:function(t){return U.isElement(t)&&Te.isVoid(e,t)}}))},qt=function(e,t){return t.children.some(function(t){return U.isElement(t)&&Te.isBlock(e,t)})},Gt=function(e,t){return t.children.some(function(t){return U.isText(t)||Te.isInline(e,t)})},Wt=function(e,t){return U.has(e,t)},Yt=function(e,t){return t.children.every(function(e){return U.isText(e)})},Kt=function(e){ot.splitNodes(e,{always:!0})},Xt=function(e,t,r){ot.insertNodes(e,t,r)},Zt=function(e){ot.splitNodes(e,{always:!0})};function Jt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var Qt=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.selection,o=e.marks;if(n){if(o){var i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({text:t},o);ot.insertNodes(e,i,{at:r.at,voids:r.voids})}else ot.insertText(e,t,r);e.marks=null}},er=function(e,t){return!e.isInline(t)},tr=function(e,t,r){return Te.isStart(e,t,r)||Te.isEnd(e,t,r)},rr=function(e,t){var r=t.children,n=k(r,1)[0];return 0===r.length||1===r.length&&U.isText(n)&&""===n.text&&!e.isVoid(t)},nr=function(e,t,r){var n=Te.end(e,r);return Fe.equals(t,n)},or=function(e){var t=a.get(e);return void 0===t||t},ir=function(e,t,r){if(0!==t.offset)return!1;var n=Te.start(e,r);return Fe.equals(t,n)},ar=function(e,t){var r=Te.path(e,t,{edge:"end"});return Te.node(e,r)},sr=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Te.path(e,t,r);return[U.leaf(e,n),n]};function ur(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return lr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lr(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var r=t.at,n=void 0===r?e.selection:r,o=t.reverse,i=void 0!==o&&o,a=t.voids,s=void 0!==a&&a,u=t.match;if(null==u&&(u=function(){return!0}),n){var l,c=[],d=Te.path(e,n),f=ur(U.levels(e,d));try{for(f.s();!(l=f.n()).done;){var h=k(l.value,2),p=h[0],g=h[1];if(u(p,g)&&(c.push([p,g]),!s&&U.isElement(p)&&Te.isVoid(e,p)))break}}catch(e){f.e(e)}finally{f.f()}i&&c.reverse(),yield*c}}()}var dr=["text"],fr=["text"],hr=function(e){var t=e.marks,r=e.selection;if(!r)return null;var n=r.anchor,o=r.focus;if(t)return t;if(I.isExpanded(r)){if(I.isBackward(r)){var i=[n,o];o=i[0],n=i[1]}if(Te.isEnd(e,n,n.path)){var a=Te.after(e,n);a&&(n=a)}var s=Te.nodes(e,{match:U.isText,at:{anchor:n,focus:o}}),u=k(s,1)[0];if(u){var l=k(u,1)[0];return l.text,B(l,dr)}return{}}var c=n.path,d=Te.leaf(e,c),f=k(d,1)[0];if(0===n.offset){var h=Te.previous(e,{at:c,match:U.isText}),p=Te.above(e,{match:function(t){return U.isElement(t)&&Te.isVoid(e,t)&&e.markableVoid(t)}});if(!p){var g=Te.above(e,{match:function(t){return U.isElement(t)&&Te.isBlock(e,t)}});if(h&&g){var m=k(h,2),v=m[0],b=m[1],w=k(g,2)[1];y.isAncestor(w,b)&&(f=v)}}}var E=f;return E.text,B(E,fr)},pr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.mode,n=void 0===r?"lowest":r,o=t.voids,i=void 0!==o&&o,a=t.match,s=t.at,u=void 0===s?e.selection:s;if(u){var l=Te.after(e,u,{voids:i});if(l){var c=Te.last(e,[]),d=k(c,2)[1],f=[l.path,d];if(ke.isPath(u)&&0===u.length)throw new Error("Cannot get the next node from the root node!");if(null==a)if(ke.isPath(u)){var h=Te.parent(e,u),p=k(h,1)[0];a=function(e){return p.children.includes(e)}}else a=function(){return!0};var g=Te.nodes(e,{at:f,match:a,mode:n,voids:i}),m=k(g,1)[0];return m}}},gr=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Te.path(e,t,r),o=U.get(e,n);return[o,n]};function mr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return vr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vr(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var r=t.at,n=void 0===r?e.selection:r,o=t.mode,i=void 0===o?"all":o,a=t.universal,s=void 0!==a&&a,u=t.reverse,l=void 0!==u&&u,c=t.voids,d=void 0!==c&&c,f=t.pass,h=t.match;if(h||(h=function(){return!0}),n){var p,g;if(ke.isSpan(n))p=n[0],g=n[1];else{var m=Te.path(e,n,{edge:"start"}),v=Te.path(e,n,{edge:"end"});p=l?v:m,g=l?m:v}var b,w,E=U.nodes(e,{reverse:l,from:p,to:g,pass:function(t){var r=k(t,2),n=r[0],o=r[1];return!(!f||!f([n,o]))||!!U.isElement(n)&&!(d||!Te.isVoid(e,n)&&!Te.isElementReadOnly(e,n))}}),x=[],S=mr(E);try{for(S.s();!(w=S.n()).done;){var C=k(w.value,2),A=C[0],D=C[1],T=b&&0===y.compare(D,b[1]);if("highest"!==i||!T)if(h(A,D))if("lowest"===i&&T)b=[A,D];else{var O="lowest"===i?b:[A,D];O&&(s?x.push(O):yield O),b=[A,D]}else if(s&&!T&&U.isText(A))return}}catch(e){S.e(e)}finally{S.f()}"lowest"===i&&b&&(s?x.push(b):yield b),s&&(yield*x)}}()}function br(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return wr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wr(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Er=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.force,i=void 0!==r&&r,a=t.operation,s=function(e){return n.get(e)||[]},u=function(e){var t=s(e).pop(),r=t.join(",");return function(e){return o.get(e)||new Set}(e).delete(r),t};if(Te.isNormalizing(e)){if(i){var l=Array.from(U.nodes(e),function(e){return k(e,2)[1]}),c=new Set(l.map(function(e){return e.join(",")}));n.set(e,l),o.set(e,c)}0!==s(e).length&&Te.withoutNormalizing(e,function(){var t,r=br(s(e));try{for(r.s();!(t=r.n()).done;){var n=t.value;if(U.has(e,n)){var o=Te.node(e,n),i=k(o,2),l=i[0];i[1];U.isElement(l)&&0===l.children.length&&e.normalizeNode(o,{operation:a})}}}catch(e){r.e(e)}finally{r.f()}for(var c=s(e),d=c.length,f=0;0!==c.length;){if(!e.shouldNormalize({dirtyPaths:c,iteration:f,initialDirtyPathsLength:d,operation:a}))return;var h=u(e);if(U.has(e,h)){var p=Te.node(e,h);e.normalizeNode(p,{operation:a})}f++,c=s(e)}})}},xr=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Te.path(e,t,r),o=y.parent(n);return Te.node(e,o)},Sr=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,n={current:t,affinity:void 0===r?"forward":r,unref:function(){var t=n.current;return Te.pathRefs(e).delete(n),n.current=null,t}};return Te.pathRefs(e).add(n),n},Cr=function(e){var t=s.get(e);return t||(t=new Set,s.set(e,t)),t},Ar=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.depth,o=r.edge;if(ke.isPath(t))if("start"===o){var i=U.first(e,t);t=k(i,2)[1]}else if("end"===o){var a=U.last(e,t);t=k(a,2)[1]}return ke.isRange(t)&&(t="start"===o?I.start(t):"end"===o?I.end(t):y.common(t.anchor.path,t.focus.path)),ke.isPoint(t)&&(t=t.path),null!=n&&(t=t.slice(0,n)),t},Dr=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,n={current:t,affinity:void 0===r?"forward":r,unref:function(){var t=n.current;return Te.pointRefs(e).delete(n),n.current=null,t}};return Te.pointRefs(e).add(n),n},Tr=function(e){var t=u.get(e);return t||(t=new Set,u.set(e,t)),t},kr=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).edge,n=void 0===r?"start":r;if(ke.isPath(t)){var o;if("end"===n){var i=U.last(e,t);o=k(i,2)[1]}else{var a=U.first(e,t);o=k(a,2)[1]}var s=U.get(e,o);if(!U.isText(s))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(t,"] because it has no ").concat(n," text node."));return{path:o,offset:"end"===n?s.text.length:0}}if(ke.isRange(t)){var u=I.edges(t),l=k(u,2),c=l[0],d=l[1];return"start"===n?c:d}return t};function Or(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Nr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nr(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Br(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var r=t.at,n=void 0===r?e.selection:r,o=t.unit,i=void 0===o?"offset":o,a=t.reverse,s=void 0!==a&&a,u=t.voids,l=void 0!==u&&u;if(n){var c,d=Te.range(e,n),f=I.edges(d),h=k(f,2),p=h[0],g=h[1],m=s?g:p,v=!1,b="",w=0,E=0,x=0,S=[],C=Or(Te.nodes(e,{at:n,reverse:s,voids:l}));try{var A=function*(){var t=k(c.value,2),r=t[0],n=t[1],o=S.some(function(e){return y.isAncestor(e,n)});function*a(e){o||(yield e)}if(U.isElement(r)){if(!e.isSelectable(r)){if(S.push(n),s)return y.hasPrevious(n)&&(yield*a(Te.end(e,y.previous(n)))),0;var u=y.next(n);return Te.hasPath(e,u)&&(yield*a(Te.start(e,u))),0}if(!l&&(e.isVoid(r)||e.isElementReadOnly(r)))return yield*a(Te.start(e,n)),0;if(e.isInline(r))return 0;if(Te.hasInlines(e,r)){var d=y.isAncestor(n,g.path)?g:Te.end(e,n),f=y.isAncestor(n,p.path)?p:Te.start(e,n);b=Te.string(e,{anchor:f,focus:d},{voids:l}),v=!0}}if(U.isText(r)){var h=y.equals(n,m.path);for(h?(E=s?m.offset:r.text.length-m.offset,x=m.offset):(E=r.text.length,x=s?E:0),(h||v||"offset"===i)&&(yield*a({path:n,offset:x}),v=!1);;){if(0===w){if(""===b)break;w=D(b,i,s),b=oe(b,w,s)[1]}if(x=s?x-w:x+w,(E-=w)<0){w=-E;break}w=0,yield*a({path:n,offset:x})}}};for(C.s();!(c=C.n()).done;)yield*A()}catch(e){C.e(e)}finally{C.f()}}function D(e,t,r){return"character"===t?ee(e,r):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0,n=!1;e.length>0;){var o=ee(e,t),i=oe(e,o,t),a=k(i,2),s=a[0],u=a[1];if(ie(s,u,t))n=!0,r+=o;else{if(n)break;r+=o}e=u}return r}(e,r):"line"===t||"block"===t?e.length:1}}()}var Fr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.mode,n=void 0===r?"lowest":r,o=t.voids,i=void 0!==o&&o,a=t.match,s=t.at,u=void 0===s?e.selection:s;if(u){var l=Te.before(e,u,{voids:i});if(l){var c=Te.first(e,[]),d=k(c,2)[1],f=[l.path,d];if(ke.isPath(u)&&0===u.length)throw new Error("Cannot get the previous node from the root node!");if(null==a)if(ke.isPath(u)){var h=Te.parent(e,u),p=k(h,1)[0];a=function(e){return p.children.includes(e)}}else a=function(){return!0};var g=Te.nodes(e,{reverse:!0,at:f,match:a,mode:n,voids:i}),m=k(g,1)[0];return m}}},Mr=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,n={current:t,affinity:void 0===r?"forward":r,unref:function(){var t=n.current;return Te.rangeRefs(e).delete(n),n.current=null,t}};return Te.rangeRefs(e).add(n),n},Ir=function(e){var t=l.get(e);return t||(t=new Set,l.set(e,t)),t},Pr=function(e,t,r){return ke.isRange(t)&&!r?t:{anchor:Te.start(e,t),focus:Te.end(e,r||t)}};function Rr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var Lr=function(e,t){var r=e.selection;if(r){var n=function(t,r){if(!U.isText(t))return!1;var n=Te.parent(e,r),o=k(n,2),i=o[0];return o[1],!e.isVoid(i)||e.markableVoid(i)},o=I.isExpanded(r),a=!1;if(!o){var s=Te.node(e,r),u=k(s,2),l=u[0],c=u[1];if(l&&n(l,c)){var d=Te.parent(e,c),f=k(d,1)[0];a=f&&e.markableVoid(f)}}if(o||a)ot.unsetNodes(e,t,{match:n,split:!0,voids:!0});else{var h=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},Te.marks(e)||{});delete h[t],e.marks=h,i.get(e)||e.onChange()}}},_r=function(e,t){a.set(e,t)},zr=function(e,t){return Te.point(e,t,{edge:"start"})};function jr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Hr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hr(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Hr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $r=function(e,t){var r,n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).voids,o=void 0!==n&&n,i=Te.range(e,t),a=I.edges(i),s=k(a,2),u=s[0],l=s[1],c="",d=jr(Te.nodes(e,{at:i,match:U.isText,voids:o}));try{for(d.s();!(r=d.n()).done;){var f=k(r.value,2),h=f[0],p=f[1],g=h.text;y.equals(p,l.path)&&(g=g.slice(0,l.offset)),y.equals(p,u.path)&&(g=g.slice(u.offset)),c+=g}}catch(e){d.e(e)}finally{d.f()}return c};function Ur(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Vr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vr(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var qr=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).voids,n=void 0!==r&&r,o=I.edges(t),i=k(o,2),a=i[0],s=i[1];if(0!==a.offset||0!==s.offset||I.isCollapsed(t)||y.hasPrevious(s.path))return t;var u,l=Te.above(e,{at:s,match:function(t){return U.isElement(t)&&Te.isBlock(e,t)},voids:n}),c=l?l[1]:[],d={anchor:Te.start(e,a),focus:s},f=!0,h=Ur(Te.nodes(e,{at:d,match:U.isText,reverse:!0,voids:n}));try{for(h.s();!(u=h.n()).done;){var p=k(u.value,2),g=p[0],m=p[1];if(f)f=!1;else if(""!==g.text||y.isBefore(m,c)){s={path:m,offset:g.text.length};break}}}catch(e){h.e(e)}finally{h.f()}return{anchor:a,focus:s}},Gr=function(e,t){var r=Te.isNormalizing(e);Te.setNormalizing(e,!1);try{t()}finally{Te.setNormalizing(e,r)}Te.normalize(e)},Wr=function(e,t,r){var n=k(t,2),o=n[0],i=n[1],a=k(r,2);return a[0],a[1],U.isElement(o)&&Te.isEmpty(e,o)||U.isText(o)&&""===o.text&&0!==i[i.length-1]};function Yr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Kr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kr(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Xr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Te.withoutNormalizing(e,function(){var r,n,o=t.reverse,i=void 0!==o&&o,a=t.unit,s=void 0===a?"character":a,u=t.distance,l=void 0===u?1:u,c=t.voids,d=void 0!==c&&c,f=t.at,h=void 0===f?e.selection:f,p=t.hanging,g=void 0!==p&&p;if(h){var m=!1;if(ke.isRange(h)&&I.isCollapsed(h)&&(m=!0,h=h.anchor),ke.isPoint(h)){var v=Te.void(e,{at:h,mode:"highest"});if(!d&&v){h=k(v,2)[1]}else{var b={unit:s,distance:l};h={anchor:h,focus:i?Te.before(e,h,b)||Te.start(e,[]):Te.after(e,h,b)||Te.end(e,[])},g=!0}}if(ke.isPath(h))ot.removeNodes(e,{at:h,voids:d});else if(!I.isCollapsed(h)){if(!g){var w=I.edges(h),E=k(w,2)[1],x=Te.end(e,[]);Fe.equals(E,x)||(h=Te.unhangRange(e,h,{voids:d}))}var S=I.edges(h),C=k(S,2),A=C[0],D=C[1],T=Te.above(e,{match:function(t){return U.isElement(t)&&Te.isBlock(e,t)},at:A,voids:d}),O=Te.above(e,{match:function(t){return U.isElement(t)&&Te.isBlock(e,t)},at:D,voids:d}),N=T&&O&&!y.equals(T[1],O[1]),B=y.equals(A.path,D.path),F=d?null:null!==(r=Te.void(e,{at:A,mode:"highest"}))&&void 0!==r?r:Te.elementReadOnly(e,{at:A,mode:"highest"}),M=d?null:null!==(n=Te.void(e,{at:D,mode:"highest"}))&&void 0!==n?n:Te.elementReadOnly(e,{at:D,mode:"highest"});if(F){var P=Te.before(e,A);P&&T&&y.isAncestor(T[1],P.path)&&(A=P)}if(M){var R=Te.after(e,D);R&&O&&y.isAncestor(O[1],R.path)&&(D=R)}var L,_,z=[],j=Yr(Te.nodes(e,{at:h,voids:d}));try{for(j.s();!(_=j.n()).done;){var H=_.value,$=k(H,2),V=$[0],q=$[1];L&&0===y.compare(q,L)||(!d&&U.isElement(V)&&(Te.isVoid(e,V)||Te.isElementReadOnly(e,V))||!y.isCommon(q,A.path)&&!y.isCommon(q,D.path))&&(z.push(H),L=q)}}catch(e){j.e(e)}finally{j.f()}var G=Array.from(z,function(t){var r=k(t,2)[1];return Te.pathRef(e,r)}),W=Te.pointRef(e,A),Y=Te.pointRef(e,D),K="";if(!B&&!F){var X=W.current,Z=Te.leaf(e,X),J=k(Z,1)[0],Q=X.path,ee=A.offset,te=J.text.slice(ee);te.length>0&&(e.apply({type:"remove_text",path:Q,offset:ee,text:te}),K=te)}if(G.reverse().map(function(e){return e.unref()}).filter(function(e){return null!==e}).forEach(function(t){return ot.removeNodes(e,{at:t,voids:d})}),!M){var re=Y.current,ne=Te.leaf(e,re),oe=k(ne,1)[0],ie=re.path,ae=B?A.offset:0,se=oe.text.slice(ae,D.offset);se.length>0&&(e.apply({type:"remove_text",path:ie,offset:ae,text:se}),K=se)}!B&&N&&Y.current&&W.current&&ot.mergeNodes(e,{at:Y.current,hanging:!0,voids:d}),m&&i&&"character"===s&&K.length>1&&K.match(/[\u0980-\u09FF\u0E00-\u0E7F\u1000-\u109F\u0900-\u097F\u1780-\u17FF\u0D00-\u0D7F\u0B00-\u0B7F\u0A00-\u0A7F\u0B80-\u0BFF\u0C00-\u0C7F]+/)&&ot.insertText(e,K.slice(0,K.length-l));var ue=W.unref(),le=Y.unref(),ce=i?ue||le:le||ue;null==t.at&&ce&&ot.select(e,ce)}}})};function Zr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Jr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jr(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Qr=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Te.withoutNormalizing(e,function(){var n=r.hanging,o=void 0!==n&&n,i=r.voids,a=void 0!==i&&i,s=r.at,u=void 0===s?K(e):s,l=r.batchDirty,c=void 0===l||l;if(t.length){if(ke.isRange(u))if(o||(u=Te.unhangRange(e,u,{voids:a})),I.isCollapsed(u))u=u.anchor;else{var d=I.edges(u),f=k(d,2)[1];if(!a&&Te.void(e,{at:f}))return;var h=Te.pointRef(e,f);ot.delete(e,{at:u}),u=h.unref()}else ke.isPath(u)&&(u=Te.start(e,u));if(a||!Te.void(e,{at:u})){var p=Te.above(e,{at:u,match:function(t){return U.isElement(t)&&Te.isInline(e,t)},mode:"highest",voids:a});if(p){var g=k(p,2)[1];if(Te.isEnd(e,u,g))u=Te.after(e,g);else if(Te.isStart(e,u,g)){u=Te.before(e,g)}}var m,v=Te.above(e,{match:function(t){return U.isElement(t)&&Te.isBlock(e,t)},at:u,voids:a}),b=k(v,2)[1],w=Te.isStart(e,u,b),E=Te.isEnd(e,u,b),x=w&&E,S=U.first({children:t},[]),C=k(S,2)[1],A=U.last({children:t},[]),D=k(A,2)[1],T=function(t){var r=k(t,2),n=r[0],o=r[1];return!(0===o.length)&&(!!x||!(!w&&y.isAncestor(o,C)&&U.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(!E&&y.isAncestor(o,D)&&U.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))},O=!0,N=[],B=[],F=[],M=Zr(U.nodes({children:t},{pass:T}));try{for(M.s();!(m=M.n()).done;){var P=m.value,R=k(P,2),L=R[0],_=R[1];O&&U.isElement(L)&&!e.isInline(L)&&!y.isAncestor(_,C)&&(O=!1),T(P)&&(U.isElement(L)&&!e.isInline(L)?(O=!1,B.push(L)):O?N.push(L):F.push(L))}}catch(e){M.e(e)}finally{M.f()}var z=Te.nodes(e,{at:u,match:function(t){return U.isText(t)||Te.isInline(e,t)},mode:"highest",voids:a}),j=k(z,1)[0],H=k(j,2)[1],$=Te.isStart(e,u,H),V=Te.isEnd(e,u,H),q=Te.pathRef(e,E&&!F.length?y.next(b):b),G=Te.pathRef(e,V?y.next(H):H),W=F.length>0;ot.splitNodes(e,{at:u,match:function(t){return W?U.isElement(t)&&Te.isBlock(e,t):U.isText(t)||Te.isInline(e,t)},mode:W?"lowest":"highest",always:W&&(!w||N.length>0)&&(!E||F.length>0),voids:a});var Y,X=Te.pathRef(e,!$||$&&V?y.next(H):H);if(ot.insertNodes(e,N,{at:X.current,match:function(t){return U.isText(t)||Te.isInline(e,t)},mode:"highest",voids:a,batchDirty:c}),x&&!N.length&&B.length&&!F.length&&ot.delete(e,{at:b,voids:a}),ot.insertNodes(e,B,{at:q.current,match:function(t){return U.isElement(t)&&Te.isBlock(e,t)},mode:"lowest",voids:a,batchDirty:c}),ot.insertNodes(e,F,{at:G.current,match:function(t){return U.isText(t)||Te.isInline(e,t)},mode:"highest",voids:a,batchDirty:c}),!r.at)if(F.length>0&&G.current?Y=y.previous(G.current):B.length>0&&q.current?Y=y.previous(q.current):X.current&&(Y=y.previous(X.current)),Y){var Z=Te.end(e,Y);ot.select(e,Z)}X.unref(),q.unref(),G.unref()}}})},en=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).edge,r=void 0===t?"anchor":t,n=e.selection;if(n)if("anchor"===r)ot.select(e,n.anchor);else if("focus"===r)ot.select(e,n.focus);else if("start"===r){var o=I.edges(n),i=k(o,1)[0];ot.select(e,i)}else if("end"===r){var a=I.edges(n),s=k(a,2)[1];ot.select(e,s)}},tn=function(e){var t=e.selection;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},rn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.selection,n=t.distance,o=void 0===n?1:n,i=t.unit,a=void 0===i?"character":i,s=t.reverse,u=void 0!==s&&s,l=t.edge,c=void 0===l?null:l;if(r){"start"===c&&(c=I.isBackward(r)?"focus":"anchor"),"end"===c&&(c=I.isBackward(r)?"anchor":"focus");var d=r.anchor,f=r.focus,h={distance:o,unit:a},p={};if(null==c||"anchor"===c){var g=u?Te.before(e,d,h):Te.after(e,d,h);g&&(p.anchor=g)}if(null==c||"focus"===c){var m=u?Te.before(e,f,h):Te.after(e,f,h);m&&(p.focus=m)}ot.setSelection(e,p)}},nn=function(e,t){var r=e.selection;if(t=Te.range(e,t),r)ot.setSelection(e,t);else{if(!ke.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(Ie.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})}};function on(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function an(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?on(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):on(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var sn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.selection,o=r.edge,i=void 0===o?"both":o;if(n){"start"===i&&(i=I.isBackward(n)?"focus":"anchor"),"end"===i&&(i=I.isBackward(n)?"anchor":"focus");var a=n.anchor,s=n.focus,u="anchor"===i?a:s;ot.setSelection(e,S({},"anchor"===i?"anchor":"focus",an(an({},u),t)))}},un=function(e,t){var r=e.selection,n={},o={};if(r){for(var i in t)("anchor"===i&&null!=t.anchor&&!Fe.equals(t.anchor,r.anchor)||"focus"===i&&null!=t.focus&&!Fe.equals(t.focus,r.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==r[i])&&(n[i]=r[i],o[i]=t[i]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:o})}};function ln(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return cn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cn(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function cn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var dn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Te.withoutNormalizing(e,function(){var n=r.hanging,o=void 0!==n&&n,i=r.voids,a=void 0!==i&&i,s=r.mode,u=void 0===s?"lowest":s,l=r.batchDirty,c=void 0===l||l,d=r.at,f=r.match,h=r.select;if(U.isNode(t)&&(t=[t]),0!==t.length){var p=k(t,1)[0];if(d||(d=K(e),!1!==h&&(h=!0)),null==h&&(h=!1),ke.isRange(d))if(o||(d=Te.unhangRange(e,d,{voids:a})),I.isCollapsed(d))d=d.anchor;else{var g=I.edges(d),m=k(g,2)[1],b=Te.pointRef(e,m);ot.delete(e,{at:d}),d=b.unref()}if(ke.isPoint(d)){null==f&&(f=U.isText(p)?function(e){return U.isText(e)}:e.isInline(p)?function(t){return U.isText(t)||Te.isInline(e,t)}:function(t){return U.isElement(t)&&Te.isBlock(e,t)});var w=Te.nodes(e,{at:d.path,match:f,mode:u,voids:a}),E=k(w,1)[0];if(!E)return;var x=k(E,2)[1],S=Te.pathRef(e,x),C=Te.isEnd(e,d,x);ot.splitNodes(e,{at:d,match:f,mode:u,voids:a});var A=S.unref();d=C?y.next(A):A}var D=y.parent(d),T=d[d.length-1];if(a||!Te.void(e,{at:D})){if(c){var O=[],N=y.levels(D);!function(e,t,r){var n=it.get(e)||!1;it.set(e,!0);try{t(),r()}finally{it.set(e,n)}}(e,function(){var r,n=ln(t);try{var o=function(){var t=r.value,n=D.concat(T);T++;var o={type:"insert_node",path:n,node:t};e.apply(o),d=y.next(d),O.push(o),U.isText(t)?N.push(n):N.push.apply(N,v(Array.from(U.nodes(t),function(e){var t=k(e,2)[1];return n.concat(t)})))};for(n.s();!(r=n.n()).done;)o()}catch(e){n.e(e)}finally{n.f()}},function(){ut(e,N,function(e){for(var t=e,r=0,n=O;r<n.length;r++){var o=n[r];if(y.operationCanTransformPath(o)&&!(t=y.transform(t,o)))return null}return t})})}else{var B,F=ln(t);try{for(F.s();!(B=F.n()).done;){var M=B.value,P=D.concat(T);T++,e.apply({type:"insert_node",path:P,node:M}),d=y.next(d)}}catch(e){F.e(e)}finally{F.f()}}if(d=y.previous(d),h){var R=Te.end(e,d);R&&ot.select(e,R)}}}})},fn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Te.withoutNormalizing(e,function(){var r=t.at,n=void 0===r?e.selection:r,o=t.mode,i=void 0===o?"lowest":o,a=t.voids,s=void 0!==a&&a,u=t.match;if(n){null==u&&(u=ke.isPath(n)?X(e,n):function(t){return U.isElement(t)&&Te.isBlock(e,t)});for(var l=Te.nodes(e,{at:n,match:u,mode:i,voids:s}),c=Array.from(l,function(t){var r=k(t,2)[1];return Te.pathRef(e,r)}),d=0,f=c;d<f.length;d++){var h=f[d].unref();if(h.length<2)throw new Error("Cannot lift node at a path [".concat(h,"] because it has a depth of less than `2`."));var p=Te.node(e,y.parent(h)),g=k(p,2),m=g[0],v=g[1],b=h[h.length-1],w=m.children.length;if(1===w){var E=y.next(v);ot.moveNodes(e,{at:h,to:E,voids:s}),ot.removeNodes(e,{at:v,voids:s})}else if(0===b)ot.moveNodes(e,{at:h,to:v,voids:s});else if(b===w-1){var x=y.next(v);ot.moveNodes(e,{at:h,to:x,voids:s})}else{var S=y.next(h),C=y.next(v);ot.splitNodes(e,{at:S,voids:s}),ot.moveNodes(e,{at:h,to:C,voids:s})}}}})},hn=["text"],pn=["children"],gn=function e(t,r){return r!==t&&(U.isText(r)||Te.isVoid(t,r)||1===r.children.length&&e(t,r.children[0]))},mn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Te.withoutNormalizing(e,function(){var r=t.match,n=t.at,o=void 0===n?e.selection:n,i=t.hanging,a=void 0!==i&&i,s=t.voids,u=void 0!==s&&s,l=t.mode,c=void 0===l?"lowest":l;if(o){if(null==r)if(ke.isPath(o)){var d=Te.parent(e,o),f=k(d,1)[0];r=function(e){return f.children.includes(e)}}else r=function(t){return U.isElement(t)&&Te.isBlock(e,t)};if(!a&&ke.isRange(o)&&(o=Te.unhangRange(e,o,{voids:u})),ke.isRange(o))if(I.isCollapsed(o))o=o.anchor;else{var h=I.edges(o),p=k(h,2)[1],g=Te.pointRef(e,p);ot.delete(e,{at:o}),o=g.unref(),null==t.at&&ot.select(e,o)}var m=Te.nodes(e,{at:o,match:r,voids:u,mode:c}),v=k(m,1)[0],b=Te.previous(e,{at:o,match:r,voids:u,mode:c});if(v&&b){var w=k(v,2),E=w[0],x=w[1],S=k(b,2),C=S[0],A=S[1];if(0!==x.length&&0!==A.length){var D,T,O=y.next(A),N=y.common(x,A),F=y.isSibling(x,A),M=Array.from(Te.levels(e,{at:x}),function(e){return k(e,1)[0]}).slice(N.length).slice(0,-1),P=Te.above(e,{at:x,mode:"highest",match:function(t){return M.includes(t)&&gn(e,t)}}),R=P&&Te.pathRef(e,P[1]);if(U.isText(E)&&U.isText(C)){E.text;var L=B(E,hn);T=C.text.length,D=L}else{if(!U.isElement(E)||!U.isElement(C))throw new Error("Cannot merge the node at path [".concat(x,"] with the previous sibling because it is not the same kind: ").concat(Ie.stringify(E)," ").concat(Ie.stringify(C)));E.children;var _=B(E,pn);T=C.children.length,D=_}F||ot.moveNodes(e,{at:x,to:O,voids:u}),R&&ot.removeNodes(e,{at:R.current,voids:u}),Te.shouldMergeNodesRemovePrevNode(e,b,v)?ot.removeNodes(e,{at:A,voids:u}):e.apply({type:"merge_node",path:O,position:T,properties:D}),R&&R.unref()}}}})},vn=function(e,t){Te.withoutNormalizing(e,function(){var r=t.to,n=t.at,o=void 0===n?e.selection:n,i=t.mode,a=void 0===i?"lowest":i,s=t.voids,u=void 0!==s&&s,l=t.match;if(o){null==l&&(l=ke.isPath(o)?X(e,o):function(t){return U.isElement(t)&&Te.isBlock(e,t)});for(var c=Te.pathRef(e,r),d=Te.nodes(e,{at:o,match:l,mode:a,voids:u}),f=Array.from(d,function(t){var r=k(t,2)[1];return Te.pathRef(e,r)}),h=0,p=f;h<p.length;h++){var g=p[h].unref(),m=c.current;0!==g.length&&e.apply({type:"move_node",path:g,newPath:m}),c.current&&y.isSibling(m,g)&&y.isAfter(m,g)&&(c.current=y.next(c.current))}c.unref()}})},yn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Te.withoutNormalizing(e,function(){var r=t.hanging,n=void 0!==r&&r,o=t.voids,i=void 0!==o&&o,a=t.mode,s=void 0===a?"lowest":a,u=t.at,l=void 0===u?e.selection:u,c=t.match;if(l){null==c&&(c=ke.isPath(l)?X(e,l):function(t){return U.isElement(t)&&Te.isBlock(e,t)}),!n&&ke.isRange(l)&&(l=Te.unhangRange(e,l,{voids:i}));for(var d=Te.nodes(e,{at:l,match:c,mode:s,voids:i}),f=Array.from(d,function(t){var r=k(t,2)[1];return Te.pathRef(e,r)}),h=0,p=f;h<p.length;h++){var g=p[h].unref();if(g){var m=Te.node(e,g),v=k(m,1)[0];e.apply({type:"remove_node",path:g,node:v})}}}})};function bn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return wn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wn(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var En=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Te.withoutNormalizing(e,function(){var n=r.match,o=r.at,i=void 0===o?e.selection:o,a=r.compare,s=r.merge,u=r.hanging,l=void 0!==u&&u,c=r.mode,d=void 0===c?"lowest":c,f=r.split,h=void 0!==f&&f,p=r.voids,g=void 0!==p&&p;if(i){if(null==n&&(n=ke.isPath(i)?X(e,i):function(t){return U.isElement(t)&&Te.isBlock(e,t)}),!l&&ke.isRange(i)&&(i=Te.unhangRange(e,i,{voids:g})),h&&ke.isRange(i)){if(I.isCollapsed(i)&&Te.leaf(e,i.anchor)[0].text.length>0)return;var m=Te.rangeRef(e,i,{affinity:"inward"}),v=I.edges(i),y=k(v,2),b=y[0],w=y[1],E="lowest"===d?"lowest":"highest",x=Te.isEnd(e,w,w.path);ot.splitNodes(e,{at:w,match:n,mode:E,voids:g,always:!x});var S=Te.isStart(e,b,b.path);ot.splitNodes(e,{at:b,match:n,mode:E,voids:g,always:!S}),i=m.unref(),null==r.at&&ot.select(e,i)}a||(a=function(e,t){return e!==t});var C,A=bn(Te.nodes(e,{at:i,match:n,mode:d,voids:g}));try{for(A.s();!(C=A.n()).done;){var D=k(C.value,2),T=D[0],O=D[1],N={},B={};if(0!==O.length){var F=!1;for(var M in t)"children"!==M&&"text"!==M&&a(t[M],T[M])&&(F=!0,T.hasOwnProperty(M)&&(N[M]=T[M]),s?null!=t[M]&&(B[M]=s(T[M],t[M])):null!=t[M]&&(B[M]=t[M]));F&&e.apply({type:"set_node",path:O,properties:N,newProperties:B})}}}catch(e){A.e(e)}finally{A.f()}}})};function xn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Sn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sn(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Cn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Te.withoutNormalizing(e,function(){var r=t.mode,n=void 0===r?"lowest":r,o=t.voids,i=void 0!==o&&o,a=t.match,s=t.at,u=void 0===s?e.selection:s,l=t.height,c=void 0===l?0:l,d=t.always,f=void 0!==d&&d;if(u&&(null==a&&(a=function(t){return U.isElement(t)&&Te.isBlock(e,t)}),!ke.isRange(u)||(u=function(e,t){if(I.isCollapsed(t))return t.anchor;var r=I.edges(t),n=k(r,2)[1],o=Te.pointRef(e,n);return ot.delete(e,{at:t}),o.unref()}(e,u),u))){if(ke.isPath(u)){var h=u,p=Te.point(e,h),g=Te.parent(e,h),m=k(g,1)[0];a=function(e){return e===m},c=p.path.length-h.length+1,u=p,f=!0}var v,b=Te.pointRef(e,u,{affinity:"backward"});try{var w=Te.nodes(e,{at:u,match:a,mode:n,voids:i}),E=k(w,1)[0];if(!E)return;var x=Te.void(e,{at:u,mode:"highest"});if(!i&&x){var S=k(x,2),C=S[0],A=S[1];if(e.isInline(C)){var D=Te.after(e,A);if(!D){var T=y.next(A);ot.insertNodes(e,{text:""},{at:T,voids:i}),D=Te.point(e,T)}u=D,f=!0}c=u.path.length-A.length+1,f=!0}v=Te.pointRef(e,u);var O,N=u.path.length-c,B=k(E,2)[1],F=u.path.slice(0,N),M=0===c?u.offset:u.path[N]+0,P=xn(Te.levels(e,{at:F,reverse:!0,voids:i}));try{for(P.s();!(O=P.n()).done;){var R=k(O.value,2),L=R[0],_=R[1],z=!1;if(_.length<B.length||0===_.length||!i&&U.isElement(L)&&Te.isVoid(e,L))break;var j=b.current,H=Te.isEnd(e,j,_);if(f||!b||!Te.isEdge(e,j,_)){z=!0;var $=U.extractProps(L);e.apply({type:"split_node",path:_,position:M,properties:$})}M=_[_.length-1]+(z||H?1:0)}}catch(e){P.e(e)}finally{P.f()}if(null==t.at){var V=v.current||Te.end(e,[]);ot.select(e,V)}}finally{var q;b.unref(),null===(q=v)||void 0===q||q.unref()}}})};function An(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Dn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dn(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Tn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var n,o={},i=An(t);try{for(i.s();!(n=i.n()).done;){o[n.value]=null}}catch(e){i.e(e)}finally{i.f()}ot.setNodes(e,o,r)};function kn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return On(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return On(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function On(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Nn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Te.withoutNormalizing(e,function(){var r=t.mode,n=void 0===r?"lowest":r,o=t.split,i=void 0!==o&&o,a=t.voids,s=void 0!==a&&a,u=t.at,l=void 0===u?e.selection:u,c=t.match;if(l){null==c&&(c=ke.isPath(l)?X(e,l):function(t){return U.isElement(t)&&Te.isBlock(e,t)}),ke.isPath(l)&&(l=Te.range(e,l));var d,f=ke.isRange(l)?Te.rangeRef(e,l):null,h=Te.nodes(e,{at:l,match:c,mode:n,voids:s}),p=Array.from(h,function(t){var r=k(t,2)[1];return Te.pathRef(e,r)}).reverse(),g=kn(p);try{var m=function(){var t=d.value.unref(),r=Te.node(e,t),n=k(r,1)[0],o=Te.range(e,t);i&&f&&(o=I.intersection(f.current,o)),ot.liftNodes(e,{at:o,match:function(e){return!U.isText(n)&&n.children.includes(e)},voids:s})};for(g.s();!(d=g.n()).done;)m()}catch(e){g.e(e)}finally{g.f()}f&&f.unref()}})};function Bn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Fn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Mn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Te.withoutNormalizing(e,function(){var n=r.mode,o=void 0===n?"lowest":n,i=r.split,a=void 0!==i&&i,s=r.voids,u=void 0!==s&&s,l=r.match,c=r.at,d=void 0===c?e.selection:c;if(d){if(null==l&&(l=ke.isPath(d)?X(e,d):e.isInline(t)?function(t){return U.isElement(t)&&Te.isInline(e,t)||U.isText(t)}:function(t){return U.isElement(t)&&Te.isBlock(e,t)}),a&&ke.isRange(d)){var f=I.edges(d),h=k(f,2),p=h[0],g=h[1],m=Te.rangeRef(e,d,{affinity:"inward"}),v=function(t){var r=Te.above(e,{at:t,match:function(t){return U.isElement(t)&&Te.isBlock(e,t)}});return r&&Te.isEdge(e,t,r[1])};ot.splitNodes(e,{at:g,match:l,voids:u,always:!v(g)}),ot.splitNodes(e,{at:p,match:l,voids:u,always:!v(p)}),d=m.unref(),null==r.at&&ot.select(e,d)}for(var b=Array.from(Te.nodes(e,{at:d,match:e.isInline(t)?function(t){return U.isElement(t)&&Te.isBlock(e,t)}:function(e){return U.isEditor(e)},mode:"lowest",voids:u})),w=function(){var r=k(x[E],2)[1],n=ke.isRange(d)?I.intersection(d,Te.range(e,r)):d;if(!n)return 0;var i=Array.from(Te.nodes(e,{at:n,match:l,mode:o,voids:u}));if(i.length>0){var a=i[0],s=i[i.length-1],c=k(a,2)[1],f=k(s,2)[1];if(0===c.length&&0===f.length)return 0;var h=y.equals(c,f)?y.parent(c):y.common(c,f),p=Te.range(e,c,f),g=Te.node(e,h),m=k(g,1)[0],v=h.length+1,b=y.next(f.slice(0,v)),w=Fn(Fn({},t),{},{children:[]});ot.insertNodes(e,w,{at:b,voids:u}),ot.moveNodes(e,{at:p,match:function(e){return!U.isText(m)&&m.children.includes(e)},to:b.concat(0),voids:u})}},E=0,x=b;E<x.length;E++)w()}})};return dh.Editor=Te,dh.Element=R,dh.Location=ke,dh.Node=U,dh.Operation=G,dh.Path=y,dh.PathRef=e,dh.Point=Fe,dh.PointRef=t,dh.Range=I,dh.RangeRef=r,dh.Scrubber=Ie,dh.Span=Oe,dh.Text=He,dh.Transforms=ot,dh.above=yt,dh.addMark=Et,dh.after=Dt,dh.apply=dt,dh.before=Bt,dh.collapse=en,dh.createEditor=function(){var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:function(){return!1},isInline:function(){return!1},isSelectable:function(){return!0},isVoid:function(){return!1},markableVoid:function(){return!1},onChange:function(){},apply:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return dt.apply(void 0,[e].concat(r))},addMark:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Et.apply(void 0,[e].concat(r))},deleteBackward:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ft.apply(void 0,[e].concat(r))},deleteForward:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Mt.apply(void 0,[e].concat(r))},deleteFragment:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return It.apply(void 0,[e].concat(r))},getFragment:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return gt.apply(void 0,[e].concat(r))},insertBreak:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Kt.apply(void 0,[e].concat(r))},insertSoftBreak:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Zt.apply(void 0,[e].concat(r))},insertFragment:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Qr.apply(void 0,[e].concat(r))},insertNode:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Xt.apply(void 0,[e].concat(r))},insertText:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Qt.apply(void 0,[e].concat(r))},normalizeNode:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return mt.apply(void 0,[e].concat(r))},removeMark:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Lr.apply(void 0,[e].concat(r))},getDirtyPaths:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return pt.apply(void 0,[e].concat(r))},shouldNormalize:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return vt.apply(void 0,[e].concat(r))},above:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return yt.apply(void 0,[e].concat(r))},after:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Dt.apply(void 0,[e].concat(r))},before:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Bt.apply(void 0,[e].concat(r))},collapse:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return en.apply(void 0,[e].concat(r))},delete:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Xr.apply(void 0,[e].concat(r))},deselect:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return tn.apply(void 0,[e].concat(r))},edges:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Pt.apply(void 0,[e].concat(r))},elementReadOnly:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _t.apply(void 0,[e].concat(r))},end:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zt.apply(void 0,[e].concat(r))},first:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return jt.apply(void 0,[e].concat(r))},fragment:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ht.apply(void 0,[e].concat(r))},getMarks:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return hr.apply(void 0,[e].concat(r))},hasBlocks:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return qt.apply(void 0,[e].concat(r))},hasInlines:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Gt.apply(void 0,[e].concat(r))},hasPath:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Wt.apply(void 0,[e].concat(r))},hasTexts:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Yt.apply(void 0,[e].concat(r))},insertNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return dn.apply(void 0,[e].concat(r))},isBlock:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return er.apply(void 0,[e].concat(r))},isEdge:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return tr.apply(void 0,[e].concat(r))},isEmpty:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return rr.apply(void 0,[e].concat(r))},isEnd:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return nr.apply(void 0,[e].concat(r))},isNormalizing:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return or.apply(void 0,[e].concat(r))},isStart:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ir.apply(void 0,[e].concat(r))},last:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ar.apply(void 0,[e].concat(r))},leaf:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return sr.apply(void 0,[e].concat(r))},levels:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return cr.apply(void 0,[e].concat(r))},liftNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return fn.apply(void 0,[e].concat(r))},mergeNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return mn.apply(void 0,[e].concat(r))},move:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return rn.apply(void 0,[e].concat(r))},moveNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return vn.apply(void 0,[e].concat(r))},next:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return pr.apply(void 0,[e].concat(r))},node:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return gr.apply(void 0,[e].concat(r))},nodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return yr.apply(void 0,[e].concat(r))},normalize:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Er.apply(void 0,[e].concat(r))},parent:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return xr.apply(void 0,[e].concat(r))},path:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ar.apply(void 0,[e].concat(r))},pathRef:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Sr.apply(void 0,[e].concat(r))},pathRefs:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Cr.apply(void 0,[e].concat(r))},point:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return kr.apply(void 0,[e].concat(r))},pointRef:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Dr.apply(void 0,[e].concat(r))},pointRefs:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Tr.apply(void 0,[e].concat(r))},positions:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Br.apply(void 0,[e].concat(r))},previous:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Fr.apply(void 0,[e].concat(r))},range:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Pr.apply(void 0,[e].concat(r))},rangeRef:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Mr.apply(void 0,[e].concat(r))},rangeRefs:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ir.apply(void 0,[e].concat(r))},removeNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return yn.apply(void 0,[e].concat(r))},select:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return nn.apply(void 0,[e].concat(r))},setNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return En.apply(void 0,[e].concat(r))},setNormalizing:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _r.apply(void 0,[e].concat(r))},setPoint:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return sn.apply(void 0,[e].concat(r))},setSelection:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return un.apply(void 0,[e].concat(r))},splitNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Cn.apply(void 0,[e].concat(r))},start:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zr.apply(void 0,[e].concat(r))},string:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return $r.apply(void 0,[e].concat(r))},unhangRange:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return qr.apply(void 0,[e].concat(r))},unsetNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Tn.apply(void 0,[e].concat(r))},unwrapNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Nn.apply(void 0,[e].concat(r))},void:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Vt.apply(void 0,[e].concat(r))},withoutNormalizing:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Gr.apply(void 0,[e].concat(r))},wrapNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Mn.apply(void 0,[e].concat(r))},shouldMergeNodesRemovePrevNode:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Wr.apply(void 0,[e].concat(r))}};return e},dh.deleteBackward=Ft,dh.deleteForward=Mt,dh.deleteFragment=It,dh.deleteText=Xr,dh.deselect=tn,dh.edges=Pt,dh.elementReadOnly=_t,dh.end=zt,dh.first=jt,dh.fragment=Ht,dh.getDirtyPaths=pt,dh.getFragment=gt,dh.getVoid=Vt,dh.hasBlocks=qt,dh.hasInlines=Gt,dh.hasPath=Wt,dh.hasTexts=Yt,dh.insertBreak=Kt,dh.insertFragment=Qr,dh.insertNode=Xt,dh.insertNodes=dn,dh.insertSoftBreak=Zt,dh.insertText=Qt,dh.isBlock=er,dh.isEdge=tr,dh.isEditor=De,dh.isEmpty=rr,dh.isEnd=nr,dh.isNormalizing=or,dh.isObject=W,dh.isStart=ir,dh.last=ar,dh.leaf=sr,dh.levels=cr,dh.liftNodes=fn,dh.marks=hr,dh.mergeNodes=mn,dh.move=rn,dh.moveNodes=vn,dh.next=pr,dh.node=gr,dh.nodes=yr,dh.normalize=Er,dh.normalizeNode=mt,dh.parent=xr,dh.path=Ar,dh.pathRef=Sr,dh.pathRefs=Cr,dh.point=kr,dh.pointRef=Dr,dh.pointRefs=Tr,dh.positions=Br,dh.previous=Fr,dh.range=Pr,dh.rangeRef=Mr,dh.rangeRefs=Ir,dh.removeMark=Lr,dh.removeNodes=yn,dh.select=nn,dh.setNodes=En,dh.setNormalizing=_r,dh.setPoint=sn,dh.setSelection=un,dh.shouldMergeNodesRemovePrevNode=Wr,dh.shouldNormalize=vt,dh.splitNodes=Cn,dh.start=zr,dh.string=$r,dh.unhangRange=qr,dh.unsetNodes=Tn,dh.unwrapNodes=Nn,dh.withoutNormalizing=Gr,dh.wrapNodes=Mn,dh}var hh,ph=fh(),gh={};function mh(){if(hh)return gh;hh=1;var e=fh(),t={isHistory:function(t){return e.isObject(t)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(0===t.redos.length||e.Operation.isOperationList(t.redos[0].operations))&&(0===t.undos.length||e.Operation.isOperationList(t.undos[0].operations))}},r=new WeakMap,n=new WeakMap,o=new WeakMap,i=new WeakMap,a={isHistoryEditor:function(r){return t.isHistory(r.history)&&e.Editor.isEditor(r)},isMerging:function(e){return o.get(e)},isSplittingOnce:function(e){return i.get(e)},setSplittingOnce:function(e,t){i.set(e,t)},isSaving:function(e){return n.get(e)},redo:function(e){e.redo()},undo:function(e){e.undo()},withMerging:function(e,t){var r=a.isMerging(e);o.set(e,!0),t(),o.set(e,r)},withNewBatch:function(e,t){var r=a.isMerging(e);o.set(e,!0),i.set(e,!0),t(),o.set(e,r),i.delete(e)},withoutMerging:function(e,t){var r=a.isMerging(e);o.set(e,!1),t(),o.set(e,r)},withoutSaving:function(e,t){var r=a.isSaving(e);n.set(e,!1);try{t()}finally{n.set(e,r)}}};function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=function(t,r){return!(!r||"insert_text"!==t.type||"insert_text"!==r.type||t.offset!==r.offset+r.text.length||!e.Path.equals(t.path,r.path))||!(!r||"remove_text"!==t.type||"remove_text"!==r.type||t.offset+t.text.length!==r.offset||!e.Path.equals(t.path,r.path))},c=function(e,t){return"set_selection"!==e.type};return gh.HISTORY=r,gh.History=t,gh.HistoryEditor=a,gh.MERGING=o,gh.SAVING=n,gh.SPLITTING_ONCE=i,gh.withHistory=function(t){var r=t,n=r.apply;return r.history={undos:[],redos:[]},r.redo=function(){var t=r.history,n=t.redos;if(n.length>0){var o=n[n.length-1];o.selectionBefore&&e.Transforms.setSelection(r,o.selectionBefore),a.withoutSaving(r,function(){e.Editor.withoutNormalizing(r,function(){var e,t=s(o.operations);try{for(t.s();!(e=t.n()).done;){var n=e.value;r.apply(n)}}catch(e){t.e(e)}finally{t.f()}})}),t.redos.pop(),r.writeHistory("undos",o)}},r.undo=function(){var t=r.history,n=t.undos;if(n.length>0){var o=n[n.length-1];a.withoutSaving(r,function(){e.Editor.withoutNormalizing(r,function(){var t,n=s(o.operations.map(e.Operation.inverse).reverse());try{for(n.s();!(t=n.n()).done;){var i=t.value;r.apply(i)}}catch(e){n.e(e)}finally{n.f()}o.selectionBefore&&e.Transforms.setSelection(r,o.selectionBefore)})}),r.writeHistory("redos",o),t.undos.pop()}},r.apply=function(e){var t=r.operations,o=r.history,i=o.undos,s=i[i.length-1],u=s&&s.operations[s.operations.length-1],d=a.isSaving(r),f=a.isMerging(r);if(null==d&&(d=c(e)),d){if(null==f&&(f=null!=s&&(!!t.includes(u)||l(e,u))),a.isSplittingOnce(r)&&(f=!1,a.setSplittingOnce(r,void 0)),s&&f)s.operations.push(e);else{var h={operations:[e],selectionBefore:r.selection};r.writeHistory("undos",h)}for(;i.length>100;)i.shift();o.redos=[]}n(e)},r.writeHistory=function(e,t){r.history[e].push(t)},r},gh}var vh=mh(),yh=function(e,t){return yh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},yh(e,t)};function bh(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}yh(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var wh=function(){return wh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wh.apply(this,arguments)};function Eh(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function xh(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function Sh(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ch(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function Ah(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function Dh(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=Sh(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,o,(t=e[r](t)).done,t.value)})}}}"function"==typeof SuppressedError&&SuppressedError;var Th,kh={exports:{}};var Oh,Nh,Bh=(Th||(Th=1,function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",s="[object Function]",u="[object GeneratorFunction]",l="[object Map]",c="[object Number]",d="[object Object]",f="[object Promise]",h="[object RegExp]",p="[object Set]",g="[object String]",m="[object Symbol]",v="[object WeakMap]",y="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",x="[object Float64Array]",S="[object Int8Array]",C="[object Int16Array]",A="[object Int32Array]",D="[object Uint8Array]",T="[object Uint8ClampedArray]",k="[object Uint16Array]",O="[object Uint32Array]",N=/\w*$/,B=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,M={};M[o]=M["[object Array]"]=M[y]=M[w]=M[i]=M[a]=M[E]=M[x]=M[S]=M[C]=M[A]=M[l]=M[c]=M[d]=M[h]=M[p]=M[g]=M[m]=M[D]=M[T]=M[k]=M[O]=!0,M["[object Error]"]=M[s]=M[v]=!1;var I="object"==typeof b&&b&&b.Object===Object&&b,P="object"==typeof self&&self&&self.Object===Object&&self,R=I||P||Function("return this")(),L=t&&!t.nodeType&&t,_=L&&e&&!e.nodeType&&e,z=_&&_.exports===L;function j(e,t){return e.set(t[0],t[1]),e}function H(e,t){return e.add(t),e}function $(e,t,r,n){for(var o=-1,i=e?e.length:0;++o<i;)r=t(r,e[o],o,e);return r}function U(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function V(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function q(e,t){return function(r){return e(t(r))}}function G(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var W=Array.prototype,Y=Function.prototype,K=Object.prototype,X=R["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=Y.toString,Q=K.hasOwnProperty,ee=K.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=z?R.Buffer:void 0,ne=R.Symbol,oe=R.Uint8Array,ie=q(Object.getPrototypeOf,Object),ae=Object.create,se=K.propertyIsEnumerable,ue=W.splice,le=Object.getOwnPropertySymbols,ce=re?re.isBuffer:void 0,de=q(Object.keys,Object),fe=Le(R,"DataView"),he=Le(R,"Map"),pe=Le(R,"Promise"),ge=Le(R,"Set"),me=Le(R,"WeakMap"),ve=Le(Object,"create"),ye=$e(fe),be=$e(he),we=$e(pe),Ee=$e(ge),xe=$e(me),Se=ne?ne.prototype:void 0,Ce=Se?Se.valueOf:void 0;function Ae(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function De(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Te(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ke(e){this.__data__=new De(e)}function Oe(e,t){var r=Ve(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&qe(e)}(e)&&Q.call(e,"callee")&&(!se.call(e,"callee")||ee.call(e)==o)}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,i=!!n;for(var a in e)!Q.call(e,a)||i&&("length"==a||je(a,n))||r.push(a);return r}function Ne(e,t,r){var n=e[t];Q.call(e,t)&&Ue(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function Be(e,t){for(var r=e.length;r--;)if(Ue(e[r][0],t))return r;return-1}function Fe(e,t,r,n,f,v,b){var B;if(n&&(B=v?n(e,f,v,b):n(e)),void 0!==B)return B;if(!Ye(e))return e;var F=Ve(e);if(F){if(B=function(e){var t=e.length,r=e.constructor(t);return t&&"string"==typeof e[0]&&Q.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!t)return function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(e,B)}else{var I=ze(e),P=I==s||I==u;if(Ge(e))return function(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}(e,t);if(I==d||I==o||P&&!v){if(U(e))return v?e:{};if(B=function(e){return"function"!=typeof e.constructor||He(e)?{}:Ye(t=ie(e))?ae(t):{};var t}(P?{}:e),!t)return function(e,t){return Pe(e,_e(e),t)}(e,function(e,t){return e&&Pe(t,Ke(t),e)}(B,e))}else{if(!M[I])return v?e:{};B=function(e,t,r,n){var o=e.constructor;switch(t){case y:return Ie(e);case i:case a:return new o(+e);case w:return function(e,t){var r=t?Ie(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,n);case E:case x:case S:case C:case A:case D:case T:case k:case O:return function(e,t){var r=t?Ie(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,n);case l:return function(e,t,r){var n=t?r(V(e),!0):V(e);return $(n,j,new e.constructor)}(e,n,r);case c:case g:return new o(e);case h:return function(e){var t=new e.constructor(e.source,N.exec(e));return t.lastIndex=e.lastIndex,t}(e);case p:return function(e,t,r){var n=t?r(G(e),!0):G(e);return $(n,H,new e.constructor)}(e,n,r);case m:return function(e){return Ce?Object(Ce.call(e)):{}}(e)}}(e,I,Fe,t)}}b||(b=new ke);var R=b.get(e);if(R)return R;if(b.set(e,B),!F)var L=r?function(e){return function(e,t,r){var n=t(e);return Ve(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,Ke,_e)}(e):Ke(e);return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););}(L||e,function(o,i){L&&(o=e[i=o]),Ne(B,i,Fe(o,t,r,n,i,e,b))}),B}function Me(e){return!(!Ye(e)||(t=e,Z&&Z in t))&&(We(e)||U(e)?te:B).test($e(e));var t}function Ie(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Pe(e,t,r,n){r||(r={});for(var o=-1,i=t.length;++o<i;){var a=t[o];Ne(r,a,e[a])}return r}function Re(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Le(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Me(r)?r:void 0}Ae.prototype.clear=function(){this.__data__=ve?ve(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.prototype.get=function(e){var t=this.__data__;if(ve){var n=t[e];return n===r?void 0:n}return Q.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:Q.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__[e]=ve&&void 0===t?r:t,this},De.prototype.clear=function(){this.__data__=[]},De.prototype.delete=function(e){var t=this.__data__,r=Be(t,e);return!(r<0||(r==t.length-1?t.pop():ue.call(t,r,1),0))},De.prototype.get=function(e){var t=this.__data__,r=Be(t,e);return r<0?void 0:t[r][1]},De.prototype.has=function(e){return Be(this.__data__,e)>-1},De.prototype.set=function(e,t){var r=this.__data__,n=Be(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Te.prototype.clear=function(){this.__data__={hash:new Ae,map:new(he||De),string:new Ae}},Te.prototype.delete=function(e){return Re(this,e).delete(e)},Te.prototype.get=function(e){return Re(this,e).get(e)},Te.prototype.has=function(e){return Re(this,e).has(e)},Te.prototype.set=function(e,t){return Re(this,e).set(e,t),this},ke.prototype.clear=function(){this.__data__=new De},ke.prototype.delete=function(e){return this.__data__.delete(e)},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var r=this.__data__;if(r instanceof De){var n=r.__data__;if(!he||n.length<199)return n.push([e,t]),this;r=this.__data__=new Te(n)}return r.set(e,t),this};var _e=le?q(le,Object):function(){return[]},ze=function(e){return ee.call(e)};function je(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||F.test(e))&&e>-1&&e%1==0&&e<t}function He(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||K)}function $e(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ue(e,t){return e===t||e!=e&&t!=t}(fe&&ze(new fe(new ArrayBuffer(1)))!=w||he&&ze(new he)!=l||pe&&ze(pe.resolve())!=f||ge&&ze(new ge)!=p||me&&ze(new me)!=v)&&(ze=function(e){var t=ee.call(e),r=t==d?e.constructor:void 0,n=r?$e(r):void 0;if(n)switch(n){case ye:return w;case be:return l;case we:return f;case Ee:return p;case xe:return v}return t});var Ve=Array.isArray;function qe(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!We(e)}var Ge=ce||function(){return!1};function We(e){var t=Ye(e)?ee.call(e):"";return t==s||t==u}function Ye(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ke(e){return qe(e)?Oe(e):function(e){if(!He(e))return de(e);var t=[];for(var r in Object(e))Q.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return Fe(e,!0,!0)}}(kh,kh.exports)),kh.exports),Fh=w(Bh);var Mh=function(){if(Nh)return Oh;Nh=1;var e=9007199254740991,t="[object Arguments]",r="[object Function]",n="[object GeneratorFunction]",o=/^(?:0|[1-9]\d*)$/;function i(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););return e}var a,s,u=Object.prototype,l=u.hasOwnProperty,c=u.toString,d=u.propertyIsEnumerable,f=(a=Object.keys,s=Object,function(e){return a(s(e))});function h(e,r){var n=b(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&w(e)}(e)&&l.call(e,"callee")&&(!d.call(e,"callee")||c.call(e)==t)}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],o=n.length,i=!!o;for(var a in e)!l.call(e,a)||i&&("length"==a||y(a,o))||n.push(a);return n}var p,g=(p=function(e,t){return e&&m(e,t,E)},function(e,t){if(null==e)return e;if(!w(e))return p(e,t);for(var r=e.length,n=-1,o=Object(e);++n<r&&!1!==t(o[n],n,o););return e}),m=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[++n];if(!1===t(o[s],s,o))break}return e};function v(e){if(r=(t=e)&&t.constructor,n="function"==typeof r&&r.prototype||u,t!==n)return f(e);var t,r,n,o=[];for(var i in Object(e))l.call(e,i)&&"constructor"!=i&&o.push(i);return o}function y(t,r){return!!(r=null==r?e:r)&&("number"==typeof t||o.test(t))&&t>-1&&t%1==0&&t<r}var b=Array.isArray;function w(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=e}(t.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?c.call(e):"";return t==r||t==n}(t)}function E(e){return w(e)?h(e):v(e)}function x(e){return e}return Oh=function(e,t){return(b(e)?i:g)(e,"function"==typeof t?t:x)}}(),Ih=w(Mh),Ph=new Set(["base","embed","math","meta","object","script","svg","template"]),Rh=new Set(["href","poster","src","xlink:href"]),Lh=["java","script:"].join("");function _h(e,t,r){var n=function(e){return Array.from(e).filter(function(e){return e>" "}).join("").toLowerCase()}(r);return!n||!n.startsWith(Lh)&&!n.startsWith("vbscript:")&&(!n.startsWith("data:")||"href"!==t&&"xlink:href"!==t&&(("img"===e||"poster"===t)&&n.startsWith("data:image/")))}function zh(e){if(void 0===e&&(e=""),!e)return"";var t=(new DOMParser).parseFromString(e,"text/html");return Array.from(t.body.querySelectorAll("*")).forEach(function(e){var t=e.tagName.toLowerCase();Ph.has(t)?e.remove():Array.from(e.attributes).forEach(function(r){var n=r.name.toLowerCase(),o=r.value||"";("srcdoc"===n||n.startsWith("on")||Rh.has(n)&&!_h(t,n,o))&&e.removeAttribute(r.name)})}),t.body.innerHTML}var jh={};var Hh="created",$h="destroyed",Uh="change",Vh="scroll",qh="fullscreen",Gh="unFullScreen",Wh="modalOrPanelShow",Yh="modalOrPanelHide",Kh={};function Xh(e,t){var r=e.key,n=e.factory,o=e.config,i=wh(wh({},o),t||{});if(null!=Kh[r])throw new Error("Duplicated key '".concat(r,"' in menu items"));Kh[r]=n,function(e,t){null!=t&&(jh[e]=t)}(r,i)}var Zh=new WeakMap,Jh=new WeakMap,Qh=new WeakMap,ep=new WeakMap,tp=new WeakMap,rp=new WeakMap,np=new WeakMap,op=new WeakMap,ip=new WeakMap,ap=new WeakMap,sp=new WeakMap,up=new WeakMap,lp=new WeakMap,cp=new WeakMap,dp=new WeakMap,fp=new WeakMap,hp=new WeakMap,pp=new WeakMap,gp=new WeakMap,mp=new WeakMap,vp=new WeakMap,yp=new WeakMap,bp=new WeakMap,wp=new WeakMap,Ep=new WeakMap,xp=new WeakMap,Sp=new WeakMap,Cp=new WeakMap,Ap=new WeakMap,Dp=function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in Kh)e.push(t);return e},t.getConfig=function(){var e=ap.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var r=t.getConfig().MENU_CONF;return(void 0===r?{}:r)[e]||{}},t.alert=function(e,r){void 0===r&&(r="info");var n=t.getConfig().customAlert;n&&n(e,r)},t},Tp=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function kp(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Op(e={},t={}){Object.keys(t).forEach(r=>{void 0===e[r]?e[r]=t[r]:kp(t[r])&&kp(e[r])&&Object.keys(t[r]).length>0&&Op(e[r],t[r])})}const Np={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 Bp(){const e="undefined"!=typeof document?document:{};return Op(e,Np),e}const Fp={document:Np,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:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Mp(){const e="undefined"!=typeof window?window:{};return Op(e,Fp),e}class Ip extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function Pp(e=[]){const t=[];return e.forEach(e=>{Array.isArray(e)?t.push(...Pp(e)):t.push(e)}),t}function Rp(e,t){return Array.prototype.filter.call(e,t)}function Lp(e){return e.toLowerCase().replace(/-(.)/g,(e,t)=>t.toUpperCase())}function _p(e,t){const r=Mp(),n=Bp();let o=[];if(!t&&e instanceof Ip)return e;if(!e)return new Ip(o);if("string"==typeof e){const r=e.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){let e="div";0===r.indexOf("<li")&&(e="ul"),0===r.indexOf("<tr")&&(e="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(e="tr"),0===r.indexOf("<tbody")&&(e="table"),0===r.indexOf("<option")&&(e="select");const t=n.createElement(e);t.innerHTML=r;for(let e=0;e<t.childNodes.length;e+=1)o.push(t.childNodes[e])}else o=function(e,t){if("string"!=typeof e)return[e];const r=[],n=t.querySelectorAll(e);for(let e=0;e<n.length;e+=1)r.push(n[e]);return r}(e.trim(),t||n)}else if(e.nodeType||e===r||e===n)o.push(e);else if(Array.isArray(e)){if(e instanceof Ip)return e;o=e}return new Ip(function(e){const t=[];for(let r=0;r<e.length;r+=1)-1===t.indexOf(e[r])&&t.push(e[r]);return t}(o))}function zp(...e){const t=Pp(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.add(...t)}),this}function jp(...e){const t=Pp(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.remove(...t)}),this}function Hp(...e){const t=Pp(e.map(e=>e.split(" ")));return Rp(this,e=>t.filter(t=>e.classList.contains(t)).length>0).length>0}function $p(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let r=0;r<this.length;r+=1)if(2===arguments.length)this[r].setAttribute(e,t);else for(const t in e)this[r][t]=e[t],this[r].setAttribute(t,e[t]);return this}function Up(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Vp(e,t){let r;if(void 0===t){if(r=this[0],!r)return;if(r.dom7ElementDataStorage&&e in r.dom7ElementDataStorage)return r.dom7ElementDataStorage[e];const t=r.getAttribute(`data-${e}`);return t||void 0}for(let n=0;n<this.length;n+=1)r=this[n],r.dom7ElementDataStorage||(r.dom7ElementDataStorage={}),r.dom7ElementDataStorage[e]=t;return this}function qp(){const e=this[0];if(!e)return;const t={};if(e.dataset)for(const r in e.dataset)t[r]=e.dataset[r];else for(let r=0;r<e.attributes.length;r+=1){const n=e.attributes[r];n.name.indexOf("data-")>=0&&(t[Lp(n.name.split("data-")[1])]=n.value)}for(const e in t)"false"===t[e]?t[e]=!1:"true"===t[e]?t[e]=!0:parseFloat(t[e])===1*t[e]&&(t[e]*=1);return t}function Gp(e){if(void 0===e){const e=this[0];if(!e)return;if(e.multiple&&"select"===e.nodeName.toLowerCase()){const t=[];for(let r=0;r<e.selectedOptions.length;r+=1)t.push(e.selectedOptions[r].value);return t}return e.value}for(let t=0;t<this.length;t+=1){const r=this[t];if(Array.isArray(e)&&r.multiple&&"select"===r.nodeName.toLowerCase())for(let t=0;t<r.options.length;t+=1)r.options[t].selected=e.indexOf(r.options[t].value)>=0;else r.value=e}return this}function Wp(...e){let[t,r,n,o]=e;function i(e){const t=e.target;if(!t)return;const o=e.target.dom7EventData||[];if(o.indexOf(e)<0&&o.unshift(e),_p(t).is(r))n.apply(t,o);else{const e=_p(t).parents();for(let t=0;t<e.length;t+=1)_p(e[t]).is(r)&&n.apply(e[t],o)}}function a(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),n.apply(this,t)}"function"==typeof e[1]&&([t,n,o]=e,r=void 0),o||(o=!1);const s=t.split(" ");let u;for(let e=0;e<this.length;e+=1){const t=this[e];if(r)for(u=0;u<s.length;u+=1){const e=s[u];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:n,proxyListener:i}),t.addEventListener(e,i,o)}else for(u=0;u<s.length;u+=1){const e=s[u];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:n,proxyListener:a}),t.addEventListener(e,a,o)}}return this}function Yp(...e){let[t,r,n,o]=e;"function"==typeof e[1]&&([t,n,o]=e,r=void 0),o||(o=!1);const i=t.split(" ");for(let e=0;e<i.length;e+=1){const t=i[e];for(let e=0;e<this.length;e+=1){const i=this[e];let a;if(!r&&i.dom7Listeners?a=i.dom7Listeners[t]:r&&i.dom7LiveListeners&&(a=i.dom7LiveListeners[t]),a&&a.length)for(let e=a.length-1;e>=0;e-=1){const r=a[e];n&&r.listener===n||n&&r.listener&&r.listener.dom7proxy&&r.listener.dom7proxy===n?(i.removeEventListener(t,r.proxyListener,o),a.splice(e,1)):n||(i.removeEventListener(t,r.proxyListener,o),a.splice(e,1))}}}return this}function Kp(){const e=Mp();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Xp(){const e=Mp();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Zp(){if(this.length>0){const e=Mp(),t=Bp(),r=this[0],n=r.getBoundingClientRect(),o=t.body,i=r.clientTop||o.clientTop||0,a=r.clientLeft||o.clientLeft||0,s=r===e?e.scrollY:r.scrollTop,u=r===e?e.scrollX:r.scrollLeft;return{top:n.top+s-i,left:n.left+u-a}}return null}function Jp(){for(let e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Qp(){const e=Mp();for(let t=0;t<this.length;t+=1){const r=this[t];"none"===r.style.display&&(r.style.display=""),"none"===e.getComputedStyle(r,null).getPropertyValue("display")&&(r.style.display="block")}return this}function eg(e,t){const r=Mp();let n;if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(const t in e)this[n].style[t]=e[t];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function tg(e){return e?(this.forEach((t,r)=>{e.apply(t,[t,r])}),this):this}function rg(e){return _p(Rp(this,e))}function ng(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function og(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this}function ig(e){const t=Mp(),r=Bp(),n=this[0];let o,i;if(!n||void 0===e)return!1;if("string"==typeof e){if(n.matches)return n.matches(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);for(o=_p(e),i=0;i<o.length;i+=1)if(o[i]===n)return!0;return!1}if(e===r)return n===r;if(e===t)return n===t;if(e.nodeType||e instanceof Ip){for(o=e.nodeType?[e]:e,i=0;i<o.length;i+=1)if(o[i]===n)return!0;return!1}return!1}function ag(...e){let t;const r=Bp();for(let n=0;n<e.length;n+=1){t=e[n];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const n=r.createElement("div");for(n.innerHTML=t;n.firstChild;)this[e].appendChild(n.firstChild)}else if(t instanceof Ip)for(let r=0;r<t.length;r+=1)this[e].appendChild(t[r]);else this[e].appendChild(t)}return this}function sg(e){const t=Bp();let r,n;for(r=0;r<this.length;r+=1)if("string"==typeof e){const o=t.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[r].insertBefore(o.childNodes[n],this[r].childNodes[0])}else if(e instanceof Ip)for(n=0;n<e.length;n+=1)this[r].insertBefore(e[n],this[r].childNodes[0]);else this[r].insertBefore(e,this[r].childNodes[0]);return this}function ug(e){const t=[];for(let r=0;r<this.length;r+=1)null!==this[r].parentNode&&(e?_p(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode));return _p(t)}function lg(e){const t=[];for(let r=0;r<this.length;r+=1){let n=this[r].parentNode;for(;n;)e?_p(n).is(e)&&t.push(n):t.push(n),n=n.parentNode}return _p(t)}function cg(e){const t=[];for(let r=0;r<this.length;r+=1){const n=this[r].querySelectorAll(e);for(let e=0;e<n.length;e+=1)t.push(n[e])}return _p(t)}function dg(e){const t=[];for(let r=0;r<this.length;r+=1){const n=this[r].children;for(let r=0;r<n.length;r+=1)e&&!_p(n[r]).is(e)||t.push(n[r])}return _p(t)}function fg(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function hg(){for(let e=0;e<this.length;e+=1){const t=this[e];if(1===t.nodeType){for(let e=0;e<t.childNodes.length;e+=1)t.childNodes[e].parentNode&&t.childNodes[e].parentNode.removeChild(t.childNodes[e]);t.textContent=""}}return this}_p.fn=Ip.prototype;const pg="resize scroll".split(" ");function gg(e){return function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)pg.indexOf(e)<0&&(e in this[t]?this[t][e]():_p(this[t]).trigger(e));return this}return this.on(e,...t)}}const mg=gg("click"),vg=gg("focus"),yg=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let bg=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t};function wg(e){Promise.resolve().then(e)}var Eg,xg=function(e){return Object.prototype.toString.call(e)},Sg=globalThis.Node;eg&&(_p.fn.css=eg),ag&&(_p.fn.append=ag),zp&&(_p.fn.addClass=zp),jp&&(_p.fn.removeClass=jp),Hp&&(_p.fn.hasClass=Hp),Wp&&(_p.fn.on=Wp),vg&&(_p.fn.focus=vg),$p&&(_p.fn.attr=$p),Up&&(_p.fn.removeAttr=Up),Jp&&(_p.fn.hide=Jp),Qp&&(_p.fn.show=Qp),Zp&&(_p.fn.offset=Zp),Kp&&(_p.fn.width=Kp),Xp&&(_p.fn.height=Xp),ug&&(_p.fn.parent=ug),lg&&(_p.fn.parents=lg),ig&&(_p.fn.is=ig),qp&&(_p.fn.dataset=qp),Gp&&(_p.fn.val=Gp),og&&(_p.fn.text=og),ng&&(_p.fn.html=ng),dg&&(_p.fn.children=dg),fg&&(_p.fn.remove=fg),cg&&(_p.fn.find=cg),tg&&(_p.fn.each=tg),hg&&(_p.fn.empty=hg),function(e){e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(Eg||(Eg={}));var Cg=/\[object HTML([A-Z][a-z]*)*Element\]/,Ag=function(e){return Cg.test(xg(e))},Dg=function(e){return null!=e&&"number"==typeof e.nodeType},Tg=function(e){return Dg(e)&&e.nodeType===Eg.COMMENT_NODE},kg=function(e){return Dg(e)&&e.nodeType===Eg.ELEMENT_NODE},Og=function(e){return"[object Selection]"===xg(e)},Ng=function(e){return Dg(e)&&e.nodeType===Eg.TEXT_NODE},Bg=function(e){var t,r,n;return null!==(t=window&&window.document.getElementById(e))&&void 0!==t?t:window&&(null===(n=null===(r=window.document.activeElement)||void 0===r?void 0:r.shadowRoot)||void 0===n?void 0:n.getElementById(e))||null},Fg=function(e,t,r){for(var n=e.childNodes,o=n[t],i=t,a=!1,s=!1;(Tg(o)||kg(o)&&0===o.childNodes.length||kg(o)&&"false"===o.getAttribute("contenteditable"))&&(!a||!s);)i>=n.length?(a=!0,i=t-1,r="backward"):i<0?(s=!0,i=t+1,r="forward"):(o=n[i],t=i,i+="forward"===r?1:-1);return[o,t]},Mg=function(e,t,r){return Ch(Fg(e,t,r),1)[0]},Ig=function(e){var t,r,n="";if(Ng(e)&&e.nodeValue)return e.nodeValue;if(kg(e)){try{for(var o=Sh(Array.from(e.childNodes)),i=o.next();!i.done;i=o.next()){var a=i.value;n+=Ig(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}var s=getComputedStyle(e).getPropertyValue("display");"block"!==s&&"list"!==s&&"table-row"!==s&&"BR"!==e.tagName||(n+="\n")}return n};function Pg(e,t){if(!Ag(e)||"true"!==e.dataset.slateVoid)for(var r=e.childNodes,n=r.length;n-=1;){var o=r[n],i=o.nodeType;Ng(o)?t(o,e):[Eg.ELEMENT_NODE,Eg.DOCUMENT_NODE,Eg.DOCUMENT_FRAGMENT_NODE].includes(i)&&Pg(o,t)}}function Rg(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==Eg.ELEMENT_NODE?"":t.tagName.toLowerCase()}var Lg=new RegExp(String.fromCharCode(160),"g");function _g(e){return e.replace(Lg," ")}var zg=["span","b","strong","i","em","s","strike","u","font","sub","sup"],jg=[];var Hg={};function $g(e,t){var r=e.length;if(r){var n=e[r-1];if(ph.Text.isText(n)){var o=Object.keys(n);if(1===o.length&&"text"===o[0])return n.text+=t,!0}}return!1}function Ug(e,t,r){return{type:"paragraph",children:t&&t.length>0?t:[{text:_p(e).text().replace(/\s+/gm," ")}]}}function Vg(e,t){var r=function(e,t){var r=[];if(null!=e.attr("data-w-e-is-void"))return r;var n=e[0].childNodes;return 1===n.length&&"BR"===n[0].nodeName?(r.push({text:""}),r):(n.forEach(function(e){if(kg(e)){if("BR"===e.nodeName)return void($g(r,"\n")||r.push({text:"\n"}));var n=Xg(_p(e),t);Array.isArray(n)?n.forEach(function(e){return r.push(e)}):r.push(n)}else if(Ng(e)){var o=e.textContent||"";if(""===o.trim()&&o.indexOf("\n")>=0)return;o&&(o=_g(o),$g(r,o)||r.push({text:o}))}}),r)}(e,t),n=function(e){for(var t in Hg)if(e[0].matches(t))return Hg[t];return Ug}(e),o=n(e[0],r,t);return Array.isArray(o)||(o=[o]),o.forEach(function(n){ph.Editor.isVoid(t,n)||(0===r.length&&(n.children=[{text:e.text().replace(/\s+/gm," ")}]),jg.forEach(function(r){n=r(e[0],n,t)}))}),o}function qg(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/[\r\n\t]+/g,"").replace(/<br>/g,"\n"));var r=e[0].textContent||"";r=function(e){return e.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(r);var n={text:r=_g(r)};return jg.forEach(function(r){n=r(e[0],n,t)}),n}function Gg(e){var t=Rg(e),r=e.attr&&e.attr("style")||"",n={};return["i","em"].includes(t)&&(n.italic=!0),["b","strong"].includes(t)&&(n.bold=!0),["u"].includes(t)&&(n.underline=!0),["s","strike","del"].includes(t)&&(n.through=!0),["code"].includes(t)&&(n.code=!0),["sub"].includes(t)&&(n.sub=!0),["sup"].includes(t)&&(n.sup=!0),/font-style\s*:\s*italic/i.test(r)&&(n.italic=!0),/vertical-align\s*:\s*sub/i.test(r)&&(n.sub=!0),/vertical-align\s*:\s*super/i.test(r)&&(n.sup=!0),n}function Wg(e){var t=e.attr&&e.attr("style")||"",r={},n=t.match(/font-size\s*:\s*([^;]+)/i);n&&(r.fontSize=n[1].trim());var o=t.match(/font-family\s*:\s*([^;]+)/i);o&&(r.fontFamily=o[1].trim().replace(/["']/g,""));var i=t.match(/line-height\s*:\s*([^;]+)/i);return i&&(r.lineHeight=i[1].trim()),r}function Yg(e,t,r){var n=wh({},e);return Object.keys(r||{}).forEach(function(e){void 0===n[e]&&(n[e]=r[e])}),t&&(t.bold&&!n.bold&&(n.bold=!0),t.italic&&!n.italic&&(n.italic=!0),t.underline&&!n.underline&&(n.underline=!0),t.through&&!n.through&&(n.through=!0),t.code&&!n.code&&(n.code=!0),!t.sub||n.sub||n.sup||(n.sub=!0),!t.sup||n.sup||n.sub||(n.sup=!0)),n}function Kg(e){var t,r,n,o,i=[];try{for(var a=Sh(e),s=a.next();!s.done;s=a.next()){var u=s.value,l=i[i.length-1];if(l&&void 0!==l.text&&void 0!==u.text){var c=Object.keys(l).filter(function(e){return"text"!==e}).sort(),d=Object.keys(u).filter(function(e){return"text"!==e}).sort();if(JSON.stringify(c)===JSON.stringify(d)){var f=!0;try{for(var h=(n=void 0,Sh(c)),p=h.next();!p.done;p=h.next()){var g=p.value;if(JSON.stringify(l[g])!==JSON.stringify(u[g])){f=!1;break}}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}if(f){l.text+=u.text;continue}}}i.push(u)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return i}function Xg(e,t,r,n){var o,i,a,s;void 0===r&&(r={}),void 0===n&&(n={});var u=e[0];if(u.nodeType===Node.TEXT_NODE)return Yg({text:O=u.nodeValue||""},r,n);var l=Rg(e);if("a"===l&&!e.attr("href")){var c=Gg(e),d=Wg(e),f=wh({},r);Object.keys(c).forEach(function(e){c[e]&&(f[e]=!0)});var h=wh(wh({},n||{}),d||{}),p=Array.from(u.childNodes),g=[];try{for(var m=Sh(p),v=m.next();!v.done;v=m.next()){if((k=v.value).nodeType!==Node.TEXT_NODE){var y=Xg(_p(k),t,f,h);Array.isArray(y)?y.forEach(function(e){return g.push(e)}):g.push(y)}else{""!==(O=k.nodeValue||"")&&g.push(Yg({text:O},f,h))}}}catch(e){o={error:e}}finally{try{v&&!v.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}if(0===g.length)return Vg(e,t);var b=Kg(g);return 1===b.length?b[0]:b}if("code"===l)return"pre"===Rg(e.parent())?Vg(e,t):qg(e,t);if(!zg.includes(l))return Vg(e,t);var w=Gg(e),E=Wg(e),x=wh({},r);Object.keys(w).forEach(function(e){w[e]&&(x[e]=!0)});var S=wh(wh({},n||{}),E||{}),C=Array.from(u.childNodes),A=[];try{for(var D=Sh(C),T=D.next();!T.done;T=D.next()){var k;if((k=T.value).nodeType!==Node.TEXT_NODE){y=Xg(_p(k),t,x,S);Array.isArray(y)?y.forEach(function(e){return A.push(e)}):A.push(y)}else{var O;""!==(O=k.nodeValue||"")&&A.push(Yg({text:O},x,S))}}}catch(e){a={error:e}}finally{try{T&&!T.done&&(s=D.return)&&s.call(D)}finally{if(a)throw a.error}}if(0===A.length)return qg(e,t);var N=Kg(A);return 1===N.length?N[0]:N}function Zg(e,t,r){var n=_p(r);return!!n.attr(t)||(n.attr(t,"true"),e.on($h,function(){n.removeAttr(t)}),!1)}function Jg(e,t){void 0===t&&(t="");var r=[],n=e.getConfig().sanitizeHtml;""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map(function(e){return"<p>".concat(e,"</p>")}).join("")),t=n?n(t):t;var o=_p("<div>".concat(t,"</div>"));return Array.from(o.children()).forEach(function(t){var n=Xg(_p(t),e);Array.isArray(n)?n.forEach(function(e){return r.push(e)}):r.push(n)}),r}function Qg(e,t){return"w-e-element-".concat(e,"-").concat(t)}var em=[];var tm,rm,nm={};function om(e,t,r){var n=r.isInline(e)?"span":"div";return"<".concat(n,">").concat(t,"</").concat(n,">")}function im(e,t){var r=e.type,n=void 0===r?"":r,o=e.children,i=void 0===o?[]:o,a=ph.Editor.isVoid(t,e),s="";a||(s=i.map(function(e){return wm(e,t)}).join(""));var u=function(e){return nm[e]||om}(n),l=u(e,s,t),c="";if(c="string"==typeof l?l:l.html||"",a||em.forEach(function(t){return c=t(e,c)}),"string"==typeof l)return c;var d=l.prefix,f=void 0===d?"":d,h=l.suffix,p=void 0===h?"":h;return f&&(c=f+c),p&&(c+=p),c}var am=function(){if(rm)return tm;rm=1;var e=9007199254740991,t="[object Arguments]",r="[object Map]",n="[object Promise]",o="[object Set]",i="[object WeakMap]",a="[object DataView]",s=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,l="\\ud800-\\udfff",c="\\u0300-\\u036f\\ufe20-\\ufe23",d="\\u20d0-\\u20f0",f="\\ufe0e\\ufe0f",h="["+l+"]",p="["+c+d+"]",g="\\ud83c[\\udffb-\\udfff]",m="[^"+l+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",w="\\u200d",E="(?:"+p+"|"+g+")"+"?",x="["+f+"]?",S=x+E+("(?:"+w+"(?:"+[m,v,y].join("|")+")"+x+E+")*"),C="(?:"+[m+p+"?",p,v,y,h].join("|")+")",A=RegExp(g+"(?="+g+")|"+C+S,"g"),D=RegExp("["+w+l+c+d+f+"]"),T="object"==typeof b&&b&&b.Object===Object&&b,k="object"==typeof self&&self&&self.Object===Object&&self,O=T||k||Function("return this")();function N(e,t){return function(e,t){for(var r=-1,n=e?e.length:0,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}(t,function(t){return e[t]})}function B(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function F(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function M(e){return function(e){return D.test(e)}(e)?function(e){return e.match(A)||[]}(e):function(e){return e.split("")}(e)}var I,P,R=Function.prototype,L=Object.prototype,_=O["__core-js_shared__"],z=function(){var e=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),j=R.toString,H=L.hasOwnProperty,$=L.toString,U=RegExp("^"+j.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=O.Symbol,q=V?V.iterator:void 0,G=L.propertyIsEnumerable,W=(I=Object.keys,P=Object,function(e){return I(P(e))}),Y=se(O,"DataView"),K=se(O,"Map"),X=se(O,"Promise"),Z=se(O,"Set"),J=se(O,"WeakMap"),Q=ce(Y),ee=ce(K),te=ce(X),re=ce(Z),ne=ce(J);function oe(e,r){var n=de(e)||function(e){return function(e){return ge(e)&&fe(e)}(e)&&H.call(e,"callee")&&(!G.call(e,"callee")||$.call(e)==t)}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],o=n.length,i=!!o;for(var a in e)!H.call(e,a)||i&&("length"==a||le(a,o))||n.push(a);return n}function ie(e){if(!pe(e)||function(e){return!!z&&z in e}(e))return!1;var t=he(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?U:s;return t.test(ce(e))}function ae(e){if(r=(t=e)&&t.constructor,n="function"==typeof r&&r.prototype||L,t!==n)return W(e);var t,r,n,o=[];for(var i in Object(e))H.call(e,i)&&"constructor"!=i&&o.push(i);return o}function se(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return ie(r)?r:void 0}var ue=function(e){return $.call(e)};function le(t,r){return!!(r=null==r?e:r)&&("number"==typeof t||u.test(t))&&t>-1&&t%1==0&&t<r}function ce(e){if(null!=e){try{return j.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(Y&&ue(new Y(new ArrayBuffer(1)))!=a||K&&ue(new K)!=r||X&&ue(X.resolve())!=n||Z&&ue(new Z)!=o||J&&ue(new J)!=i)&&(ue=function(e){var t=$.call(e),s="[object Object]"==t?e.constructor:void 0,u=s?ce(s):void 0;if(u)switch(u){case Q:return a;case ee:return r;case te:return n;case re:return o;case ne:return i}return t});var de=Array.isArray;function fe(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=e}(t.length)&&!he(t)}function he(e){var t=pe(e)?$.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function pe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ge(e){return!!e&&"object"==typeof e}function me(e){return e?N(e,function(e){return fe(e)?oe(e):ae(e)}(e)):[]}return tm=function(e){if(!e)return[];if(fe(e))return function(e){return"string"==typeof e||!de(e)&&ge(e)&&"[object String]"==$.call(e)}(e)?M(e):function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(e);if(q&&e[q])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[q]());var t=ue(e);return(t==r?B:t==o?F:me)(e)},tm}(),sm=w(am),um=0,lm=function(){this.id="".concat(um++)},cm="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),dm="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),fm="undefined"!=typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),hm="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),pm="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),gm="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),mm=!pm&&!hm&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,vm=function(e,t){return Boolean(e.compareDocumentPosition(t)&Sg.DOCUMENT_POSITION_PRECEDING)},ym=function(e,t){return Boolean(e.compareDocumentPosition(t)&Sg.DOCUMENT_POSITION_FOLLOWING)},bm={getWindow:function(e){var t=bp.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var r=yp.get(t);return r||(r=new lm,yp.set(t,r)),r},setNewKey:function(e){var t=new lm;yp.set(e,t)},findPath:function(e,t){for(var r=[],n=t;;){var o=hp.get(n);if(null==o){if(ph.Editor.isEditor(n))return r;break}var i=fp.get(n);if(null==i)break;r.unshift(i),n=o}throw new Error("Unable to find the path for Slate node: ".concat(JSON.stringify(t)))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=bm.toDOMNode(e,e),r=t.getRootNode();return"[object HTMLDocument]"!==xg(r)&&!function(e){return"[object ShadowRoot]"===xg(e)}(r)||null==Reflect.get(r,"getSelection")?t.ownerDocument:r},getParentNode:function(e,t){return hp.get(t)||null},getParentsNodes:function(e,t){for(var r=[],n=t;n!==e&&null!=n;){var o=bm.getParentNode(e,n);if(null==o)break;r.push(o),n=o}return r},getTopNode:function(e,t){var r=[bm.findPath(e,t)[0]];return ph.Node.get(e,r)},toDOMNode:function(e,t){var r;if(ph.Editor.isEditor(t))r=pp.get(e);else{var n=bm.findKey(e,t);r=mp.get(n)}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(JSON.stringify(t)));return r},hasDOMNode:function(e,t,r){void 0===r&&(r={});var n,o=r.editable,i=void 0!==o&&o,a=bm.toDOMNode(e,e);try{n=kg(t)?t:t.parentElement}catch(e){if(e instanceof Error&&!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&(n.closest("[data-slate-editor]")===a&&(!i||n.isContentEditable||n.closest('[contenteditable="false"]')===a||!!n.getAttribute("data-slate-zero-width"))||!!n.getAttribute("data-slate-string"))},toDOMRange:function(e,t){var r=t.anchor,n=t.focus,o=ph.Range.isBackward(t),i=bm.toDOMPoint(e,r),a=ph.Range.isCollapsed(t)?i:bm.toDOMPoint(e,n),s=bm.getWindow(e).document.createRange(),u=Ch(o?a:i,2),l=u[0],c=u[1],d=Ch(o?i:a,2),f=d[0],h=d[1],p=!!(kg(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(kg(f)?f:f.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,p?1:c),s.setEnd(f,g?1:h),s},toDOMPoint:function(e,t){var r,n,o,i=Ch(ph.Editor.node(e,t.path),1)[0],a=bm.toDOMNode(e,i);ph.Editor.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),u=0;try{for(var l=Sh(s),c=l.next();!c.done;c=l.next()){var d=c.value,f=d.childNodes[0];if(null!=f&&null!=f.textContent){var h=f.textContent.length,p=d.getAttribute("data-slate-length"),g=u+(null==p?h:parseInt(p,10));if(t.offset<=g){o=[f,Math.min(h,Math.max(0,t.offset-u))];break}u=g}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(JSON.stringify(t)));return o},toSlateNode:function(e,t){var r=kg(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?gp.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(r));return n},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var r=t.clientX,n=t.clientY,o=t.target;if(null==r||null==n)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i,a=bm.toSlateNode(e,t.target),s=bm.findPath(e,a);if(ph.Element.isElement(a)&&ph.Editor.isVoid(e,a)){var u=o.getBoundingClientRect(),l=e.isInline(a)?r-u.left<u.left+u.width-r:n-u.top<u.top+u.height-n,c=ph.Editor.point(e,s,{edge:l?"start":"end"}),d=l?ph.Editor.before(e,c):ph.Editor.after(e,c);if(d)return ph.Editor.range(e,d)}var f=this.getWindow(e).document;if(f.caretRangeFromPoint)i=f.caretRangeFromPoint(r,n);else{var h=f.caretPositionFromPoint(r,n);h&&((i=f.createRange()).setStart(h.offsetNode,h.offset),i.setEnd(h.offsetNode,h.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return bm.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,r){var n,o,i,a,s,u=r.exactMatch,l=r.suppressThrow;if((Og(t)?t.anchorNode:t.startContainer)&&(Og(t)?(n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=gm&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(n=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,s=t.collapsed)),null==n||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var c=bm.toSlatePoint(e,[n,o],{exactMatch:u,suppressThrow:l});if(!c)return null;var d=s?c:bm.toSlatePoint(e,[i,a],{exactMatch:u,suppressThrow:l,searchDirection:vm(n,i)||n===i&&a<o?"forward":"backward"});if(!d)return null;var f={anchor:c,focus:d};return ph.Range.isExpanded(f)&&ph.Range.isForward(f)&&kg(i)&&ph.Editor.void(e,{at:f.focus,mode:"highest"})&&(f=ph.Editor.unhangRange(e,f,{voids:!0})),f},toSlatePoint:function(e,t,r){var n,o,i,a=r.exactMatch,s=r.suppressThrow,u=Ch(a?t:function(e){var t,r=Ch(e,2),n=r[0],o=r[1];if(kg(n)&&n.childNodes.length){var i=o===n.childNodes.length,a=i?o-1:o;for(n=(t=Ch(Fg(n,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;kg(n)&&n.childNodes.length;){var s=i?n.childNodes.length-1:0;n=Mg(n,s,i?"backward":"forward")}o=i&&null!=n.textContent?n.textContent.length:0}return[n,o]}(t),2),l=u[0],c=u[1],d=l.parentNode,f=r.searchDirection,h=null,p=0;if(d){var g=bm.toDOMNode(e,e),m=d.closest('[data-slate-void="true"]'),v=m&&g.contains(m)?m:null,y=d.closest('[contenteditable="false"]'),b=y&&g.contains(y)?y:null,w=d.closest("[data-slate-leaf]"),E=null,x=bm.getWindow(e);if(w&&x.document.createRange){h=w.closest('[data-slate-node="text"]');var S=x.document.createRange();S.setStart(h,0),S.setEnd(l,c);var C=S.cloneContents();Ah(Ah([],Ch(sm(C.querySelectorAll("[data-slate-zero-width]"))),!1),Ch(sm(C.querySelectorAll("[contenteditable=false]"))),!1).forEach(function(e){e.parentNode.removeChild(e)}),p=C.textContent.length,E=h}else if(v)(w=Array.from(v.querySelectorAll("[data-slate-leaf]")).find(function(t){return bm.hasDOMNode(e,t)})||null)?(h=w.closest('[data-slate-node="text"]'),p=(E=w).textContent.length,E.querySelectorAll("[data-slate-zero-width]").forEach(function(e){p-=e.textContent.length})):p=1;else if(b){var A=function(t){return t?Array.from(t.querySelectorAll("[data-slate-leaf]")).filter(function(t){return bm.hasDOMNode(e,t)}):[]},D=b.closest('[data-slate-node="element"]');if("backward"===f||!f)for(var T=(O=Ah(Ah([],Ch(A(null==D?void 0:D.previousElementSibling)),!1),Ch(A(D)),!1)).length-1;T>=0;T-=1){var k=O[T];if(vm(b,k)){w=k,f="backward";break}}if(!(w||"forward"!==f&&f)){var O=Ah(Ah([],Ch(A(D)),!1),Ch(A(null==D?void 0:D.nextElementSibling)),!1);try{for(var N=Sh(O),B=N.next();!B.done;B=N.next()){k=B.value;if(ym(b,k)){w=k,f="forward";break}}}catch(e){n={error:e}}finally{try{B&&!B.done&&(o=N.return)&&o.call(N)}finally{if(n)throw n.error}}}w&&(h=w.closest('[data-slate-node="text"]'),E=w,"forward"===f?p=0:(p=E.textContent.length,E.querySelectorAll("[data-slate-zero-width]").forEach(function(e){p-=e.textContent.length})))}E&&p===E.textContent.length&&(d.hasAttribute("data-slate-zero-width")||dm&&(null===(i=E.textContent)||void 0===i?void 0:i.endsWith("\n")))&&(p-=1)}if(!h){if(s)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var F,M=bm.toSlateNode(e,h);try{F=bm.findPath(e,M)}catch(e){if(s)return null;throw e}return{path:F,offset:p}},hasRange:function(e,t){var r=t.anchor,n=t.focus;return ph.Editor.hasPath(e,r.path)&&ph.Editor.hasPath(e,n.path)},getNodeType:function(e){return ph.Element.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(e){return ph.Node.string(e)}).join("")},getSelectedElems:function(e){var t,r,n=[],o=ph.Editor.nodes(e,{universal:!0});try{for(var i=Sh(o),a=i.next();!a.done;a=i.next()){var s=Ch(a.value,1)[0];ph.Element.isElement(s)&&n.push(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},getSelectedNodeByType:function(e,t){var r=this,n=Ch(ph.Editor.nodes(e,{match:function(e){return r.checkNodeType(e,t)},universal:!0}),1),o=n[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=Ch(ph.Editor.nodes(e,{match:function(e){return ph.Text.isText(e)},universal:!0}),1),r=t[0];return null==r?null:r[0]},isNodeSelected:function(e,t){var r=Ch(ph.Editor.nodes(e,{match:function(e){return e===t},universal:!0}),1),n=r[0];return null!=n&&Ch(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var r=e.selection;return!!r&&(ph.Editor.isEnd(e,r.anchor,t)||ph.Editor.isEnd(e,r.focus,t))},getTextarea:function(e){var t=Zh.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return ep.get(e)||null},getHoverbar:function(e){return rp.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,r){e.normalizeNode([t,[r]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),r=t.maxLength,n=t.onMaxLength;if("number"!=typeof r||r<=0)return 1/0;var o=r-e.getText().replace(/\r|\n|(\r\n)|(\n\r)/g,"").length;return o<=0&&n&&n(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,r,n,o,i=bm.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var s=Sh(Array.from(a)),u=s.next();!u.done;u=s.next()){var l=u.value;if(!Ng(l))break;l.remove()}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}var c=ph.Editor.nodes(e,{match:function(t){return!(!ph.Element.isElement(t)||e.isInline(t))},universal:!0});try{for(var d=Sh(c),f=d.next();!f.done;f=d.next()){var h=f.value;if(null!=h){var p=h[0];Pg(bm.toDOMNode(e,p),function(e,t){var r=_p(t);r.attr("data-slate-string")||r.attr("data-slate-zero-width")||r.attr("data-w-e-reserve")||t.removeChild(e)})}}}catch(e){n={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}},isLastNode:function(e,t){var r=e.children||[];return r[r.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,r,n=ph.Editor.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=Sh(n),a=i.next();!a.done;a=i.next()){a.value&&(o+=1)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(ph.Range.isExpanded(t))return!1;var r=bm.getSelectedNodeByType(e,"paragraph");if(null===r)return!1;var n=r.children;return 1===n.length&&(""===n[0].text||void 0)},isEmptyPath:function(e,t){var r=ph.Editor.node(e,t);if(null==r)return!1;var n=Ch(r,1)[0].children;if(1===n.length&&""===n[0].text)return!0;return!1}};function wm(e,t){return ph.Element.isElement(e)?im(e,t):function(e,t){var r=e.text;if(null==r)throw new Error("Current node is not slate Text ".concat(JSON.stringify(e)));var n=r;n=function(e){return e.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(n);var o=bm.getParentsNodes(t,e).some(function(e){return"pre"===bm.getNodeType(e)});if(o||(n=n.replace(/\n\r|\r\n|\r|\n/g,"<br>")),o&&(n=n.replace(/ /g," ")),""===n){var i=bm.getParentNode(null,e);if(!i||0!==i.children.length)return n;n="<br>"}return em.forEach(function(t){return n=t(e,n)}),n}(e,t)}var Em=function(e,t){var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},xm=function(e,t,r){var n=bm.toDOMRange(e,t).getBoundingClientRect(),o=bm.toDOMRange(e,r).getBoundingClientRect();return Em(n,o)&&Em(o,n)},Sm=function(e,t){var r,n,o=[];try{for(var i=Sh(ph.Editor.levels(e,{at:t})),a=i.next();!a.done;a=i.next()){var s=Ch(a.value,2),u=s[0],l=s[1],c=bm.findKey(e,u);o.push([l,c])}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o};function Cm(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):ph.Transforms.insertNodes(e,t,{mode:"highest"})}var Am,Dm,Tm,km,Om,Nm,Bm,Fm,Mm,Im,Pm,Rm,Lm,_m,zm,jm,Hm,$m,Um,Vm,qm,Gm,Wm,Ym,Km,Xm,Zm,Jm,Qm,ev,tv,rv,nv,ov,iv,av,sv,uv,lv,cv,dv=function(e){var t=e,r=t.onChange,n=t.insertText,o=t.apply,i=t.deleteBackward,a=t.deleteFragment;return t.insertText=function(e){t.getConfig().readOnly||n(e)},t.apply=function(e){var r,n,i,a,s,u,l,c,d=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":d.push.apply(d,Ah([],Ch(Sm(t,e.path)),!1));break;case"insert_node":case"remove_node":d.push.apply(d,Ah([],Ch(Sm(t,ph.Path.parent(e.path))),!1));break;case"merge_node":var f=ph.Path.previous(e.path);d.push.apply(d,Ah([],Ch(Sm(t,f)),!1));break;case"move_node":var h=ph.Path.common(ph.Path.parent(e.path),ph.Path.parent(e.newPath));d.push.apply(d,Ah([],Ch(Sm(t,h)),!1));break;case"set_selection":(null===(a=null===(i=e.newProperties)||void 0===i?void 0:i.focus)||void 0===a?void 0:a.path)&&(d.push.apply(d,Ah([],Ch(Sm(t,null===(u=null===(s=e.newProperties)||void 0===s?void 0:s.focus)||void 0===u?void 0:u.path)),!1)),d.push.apply(d,Ah([],Ch(Sm(t,null===(c=null===(l=e.properties)||void 0===l?void 0:l.focus)||void 0===c?void 0:c.path)),!1)))}o(e);try{for(var p=Sh(d),g=p.next();!g.done;g=p.next()){var m=Ch(g.value,2),v=m[0],y=m[1],b=Ch(ph.Editor.node(t,v),1)[0];yp.set(b,y),"type"in b&&(cp.has(b)&&cp.delete(b),dp.has(b)&&dp.delete(b))}}catch(e){r={error:e}}finally{try{g&&!g.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}},t.deleteBackward=function(r){if("line"!==r)return i(r);if(e.selection&&ph.Range.isCollapsed(e.selection)){var n=ph.Editor.above(e,{match:function(t){return ph.Element.isElement(t)&&ph.Editor.isBlock(e,t)},at:e.selection});if(n){var o=Ch(n,2)[1],a=ph.Editor.range(e,o,e.selection.anchor),s=function(e,t){var r=ph.Editor.range(e,ph.Range.end(t)),n=Array.from(ph.Editor.positions(e,{at:t})),o=0,i=n.length,a=Math.floor(i/2);if(xm(e,ph.Editor.range(e,n[o]),r))return ph.Editor.range(e,n[o],r);if(n.length<2)return ph.Editor.range(e,n[n.length-1],r);for(;a!==n.length&&a!==o;)xm(e,ph.Editor.range(e,n[a]),r)?i=a:o=a,a=Math.floor((o+i)/2);return ph.Editor.range(e,n[i],r)}(t,a);ph.Range.isCollapsed(s)||ph.Transforms.delete(e,{at:s})}}},t.deleteFragment=function(e){var r=function(e){var t=e.selection;if(null==t||ph.Range.isCollapsed(t))return!1;var r=Ch(ph.Range.edges(t),2),n=r[0],o=r[1],i=Ch(ph.Editor.edges(e,[]),2),a=i[0],s=i[1];return ph.Point.equals(n,a)&&ph.Point.equals(o,s)}(t);a(e),r&&(!function(e){var t=[{type:"paragraph",children:[{text:""}]}];ph.Editor.withoutNormalizing(e,function(){for(var r=e.children.length-1;r>=0;r-=1)ph.Transforms.removeNodes(e,{at:[r]});ph.Transforms.insertNodes(e,t,{at:[0]})})}(t),t.children.length>0&&ph.Transforms.select(t,ph.Editor.start(t,[])))},t.onChange=function(){var e=t.selection;null!=e&&Ep.set(t,e),t.emit(Uh),r()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children,r=void 0===e?[]:e,n=t.getConfig().skipCacheTypes,o=void 0===n?["list-item"]:n;return r.map(function(e){var r=bm.getNodeType(e);if(o.includes(r))return wm(e,t);var n=dp.get(e);if(n)return n;var i=wm(e,t);return dp.set(e,i),i}).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map(function(e){return ph.Node.string(e)}).join("\n")},t.getSelectionText=function(){var r=t.selection;return null==r?"":ph.Editor.string(e,r)},t.getElemsByType=function(e,r){var n,o;void 0===r&&(r=!1);var i=[],a=ph.Editor.nodes(t,{at:[],universal:!0});try{for(var s=Sh(a),u=s.next();!u.done;u=s.next()){var l=Ch(u.value,1)[0];if(ph.Element.isElement(l))if(r?l.type.indexOf(e)>=0:l.type===e){var c=bm.findKey(t,l),d=Qg(l.type,c.id);i.push(wh(wh({},l),{id:d}))}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,r=void 0===e?[]:e;if(r.length>1)return!1;var n=r[0];if(null==n)return!0;if(!ph.Element.isElement(n)||"paragraph"!==n.type)return!1;var o=n.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];return null==a||ph.Text.isText(a)&&""===a.text},t.clear=function(){ph.Transforms.delete(t,{at:{anchor:ph.Editor.start(t,[]),focus:ph.Editor.end(t,[])}}),0!==t.children.length?function(e){var t=e.children[0];if(1===e.children.length&&ph.Element.isElement(t)&&("paragraph"!==t.type||""!==ph.Node.string(t))&&""===ph.Node.string(t)){var r=[{type:"paragraph",children:[{text:""}]}];ph.Editor.withoutNormalizing(e,function(){ph.Transforms.removeNodes(e,{at:[0]}),ph.Transforms.insertNodes(e,r,{at:[0]})})}}(t):ph.Transforms.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return bm.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,r){if(void 0===e&&(e=""),void 0===r&&(r=!1),e){var n=document.createElement("div");n.innerHTML=e;var o=Array.from(n.childNodes);if(o=o.filter(function(e){var t=e.nodeName;return!!Ng(e)||!!kg(e)&&!Tp.has(t.toLowerCase())}),0!==o.length){var i=t.selection;if(null!=i){var a=null;if(bm.isSelectedEmptyParagraph(t)&&!r)a=[i.focus.path[0]];n.setAttribute("hidden","true"),document.body.appendChild(n);var s=0;o.forEach(function(e,r){var n=e.nodeName,i=e.textContent,a=void 0===i?"":i;if(Ng(e)){if(!a||!a.trim())return;t.insertNode({text:a})}else if("BR"!==n){var u=e,l=!1;if(zg.includes(n.toLowerCase()))l=!0;else for(var c in Hg)if(u.matches(c)){l=!0;break}if(l){var d=Xg(_p(u),t);return Array.isArray(d)?(d.forEach(function(e){return Cm(t,e)}),s+=1):(Cm(t,d),s+=1),void(bm.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(u).display;if(!bm.isSelectedEmptyParagraph(t)&&f.indexOf("inline")<0){if(r>=1)(function(e){return"matches"in e&&/^[ou]l$/i.test(e.tagName)&&!e.hasAttribute("data-w-e-type")})(o[r-1])&&t.insertBreak();t.insertBreak()}t.dangerouslyInsertHtml(u.innerHTML,!0)}else t.insertText("\n")}),s&&a&&bm.isEmptyPath(t,a)&&ph.Transforms.removeNodes(t,{at:a}),n.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var r=t.isDisabled(),n=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),Ep.delete(t),t.focus(),t.clear();var i=Jg(t,null==e?"":e);if(ph.Transforms.insertFragment(t,i),n||(t.deselect(),t.blur()),r&&(t.deselect(),t.disable()),t.isFocused())try{var a=JSON.parse(o);ph.Range.isRange(a)&&bm.hasRange(t,a)?t.select(a):t.select(ph.Editor.start(t,[]))}catch(e){t.select(ph.Editor.start(t,[]))}},t},fv=1,hv=function(e){var t=e;return t.id="wangEditor-".concat(fv),fv+=1,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(bm.toDOMNode(t,t).focus({preventScroll:!0}),wp.set(t,!0),e){var r=ph.Editor.end(t,[]);ph.Transforms.select(t,r)}else{var n=Ep.get(t);n?ph.Transforms.select(t,n):ph.Transforms.select(t,ph.Editor.start(t,[]))}},t.isFocused=function(){return!!wp.get(t)},t.blur=function(){bm.toDOMNode(t,t).blur(),ph.Transforms.deselect(t),wp.set(t,!1)},t.updateView=function(){bm.getTextarea(t).changeViewState();var e=bm.getToolbar(t);e&&e.changeToolbarState();var r=bm.getHoverbar(t);r&&r.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=bm.getTextarea(t);e.destroy(),Zh.delete(t),Jh.delete(e);var r=bm.getToolbar(t);r&&(r.destroy(),ep.delete(t),Qh.delete(r));var n=bm.getHoverbar(t);n&&(n.destroy(),rp.delete(t),tp.delete(n)),t.isDestroyed=!0,t.emit($h)}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var r="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return r+="\nYou has disabled editor scroll, please do this yourself",void console.warn(r)}var n=_p("#".concat(e));if(0!==n.length){var o=n[0];if(!bm.hasDOMNode(t,o)){r="Element (found by id is '".concat(e,"') is not in editor DOM");return r+="\n 通过 id '".concat(e,"' 找到的 element 不在 editor DOM 之内"),void console.error(r,o)}var i=bm.getTextarea(t),a=i.$textAreaContainer,s=i.$scroll,u=n.offset().top,l=a.offset().top;s[0].scrollBy({top:u-l,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||bm.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=op.get(t);null!=e&&e.forEach(function(e){return e.hide()})},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return bm.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,r=bm.getToolbar(t);r&&(e=r.$box);var n=bm.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==n[0]){throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致")}n.addClass("w-e-full-screen-container");var o=n.css("z-index");n.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit(qh)}},t.unFullScreen=function(){if(t.isFullScreen){var e=bm.getTextarea(t).$box.parent();setTimeout(function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit(Gh)},200)}},t.getEditableContainer=function(){return bm.getTextarea(t).$textAreaContainer[0]},t},pv={exports:{}},gv={exports:{}};function mv(){if(Dm)return Am;Dm=1;return Am=function(e){return null!=e}}function vv(){if(Nm)return Om;Nm=1;var e=function(){if(km)return Tm;km=1;var e=mv(),t={object:!0,function:!0,undefined:!0};return Tm=function(r){return!!e(r)&&hasOwnProperty.call(t,typeof r)}}();return Om=function(t){if(!e(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(e){return!1}}}function yv(){if(Im)return Mm;Im=1;var e=function(){if(Fm)return Bm;Fm=1;var e=vv();return Bm=function(t){if("function"!=typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length)return!1;if("function"!=typeof t.call)return!1;if("function"!=typeof t.apply)return!1}catch(e){return!1}return!e(t)}}(),t=/^\s*class[\s{/}]/,r=Function.prototype.toString;return Mm=function(n){return!!e(n)&&!t.test(r.call(n))}}function bv(){if($m)return Hm;$m=1;var e=(jm?zm:(jm=1,zm=function(){}))();return Hm=function(t){return t!==e&&null!==t},Hm}function wv(){return Gm||(Gm=1,qm=(_m?Lm:(_m=1,Lm=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}))()?Object.keys:function(){if(Vm)return Um;Vm=1;var e=bv(),t=Object.keys;return Um=function(r){return t(e(r)?Object(r):r)}}()),qm}function Ev(){if(Xm)return Km;Xm=1;var e=wv(),t=function(){if(Ym)return Wm;Ym=1;var e=bv();return Wm=function(t){if(!e(t))throw new TypeError("Cannot use null or undefined");return t}}(),r=Math.max;return Km=function(n,o){var i,a,s,u=r(arguments.length,2);for(n=Object(t(n)),s=function(e){try{n[e]=o[e]}catch(e){i||(i=e)}},a=1;a<u;++a)e(o=arguments[a]).forEach(s);if(void 0!==i)throw i;return n},Km}function xv(){return Jm?Zm:(Jm=1,Zm=(Rm||(Rm=1,Pm=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}),Pm)()?Object.assign:Ev())}function Sv(){return av||(av=1,iv=function(){if(rv)return tv;rv=1;var e="razdwatrzy";return tv=function(){return"function"==typeof e.contains&&!0===e.contains("dwa")&&!1===e.contains("foo")}}()()?String.prototype.contains:function(){if(ov)return nv;ov=1;var e=String.prototype.indexOf;return nv=function(t){return e.call(this,t,arguments[1])>-1},nv}()),iv}function Cv(){if(sv)return gv.exports;sv=1;var e=mv(),t=yv(),r=xv(),n=function(){if(ev)return Qm;ev=1;var e=bv(),t=Array.prototype.forEach,r=Object.create;return Qm=function(n){var o=r(null);return t.call(arguments,function(t){e(t)&&function(e,t){var r;for(r in e)t[r]=e[r]}(Object(t),o)}),o},Qm}(),o=Sv(),i=gv.exports=function(t,i){var a,s,u,l,c;return arguments.length<2||"string"!=typeof t?(l=i,i=t,t=null):l=arguments[2],e(t)?(a=o.call(t,"c"),s=o.call(t,"e"),u=o.call(t,"w")):(a=u=!0,s=!1),c={value:i,configurable:a,enumerable:s,writable:u},l?r(n(l),c):c};return i.gs=function(i,a,s){var u,l,c,d;return"string"!=typeof i?(c=s,s=a,a=i,i=null):c=arguments[3],e(a)?t(a)?e(s)?t(s)||(c=s,s=void 0):s=void 0:(c=a,a=s=void 0):a=void 0,e(i)?(u=o.call(i,"c"),l=o.call(i,"e")):(u=!0,l=!1),d={get:a,set:s,configurable:u,enumerable:l},c?r(n(c),d):d},gv.exports}var Av=(cv||(cv=1,function(e,t){var r,n,o,i,a,s,u,l=Cv(),c=lv?uv:(lv=1,uv=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}),d=Function.prototype.apply,f=Function.prototype.call,h=Object.create,p=Object.defineProperty,g=Object.defineProperties,m=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var r;return c(t),m.call(this,"__ee__")?r=this.__ee__:(r=v.value=h(null),p(this,"__ee__",v),v.value=null),r[e]?"object"==typeof r[e]?r[e].push(t):r[e]=[r[e],t]:r[e]=t,this},n=function(e,t){var n,i;return c(t),i=this,r.call(this,e,n=function(){o.call(i,e,n),d.call(t,this,arguments)}),n.__eeOnceListener__=t,this},o=function(e,t){var r,n,o,i;if(c(t),!m.call(this,"__ee__"))return this;if(!(r=this.__ee__)[e])return this;if("object"==typeof(n=r[e]))for(i=0;o=n[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===n.length?r[e]=n[i?0:1]:n.splice(i,1));else n!==t&&n.__eeOnceListener__!==t||delete r[e];return this},i=function(e){var t,r,n,o,i;if(m.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(r=arguments.length,i=new Array(r-1),t=1;t<r;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;n=o[t];++t)d.call(n,this,i)}else switch(arguments.length){case 1:f.call(o,this);break;case 2:f.call(o,this,arguments[1]);break;case 3:f.call(o,this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),t=1;t<r;++t)i[t-1]=arguments[t];d.call(o,this,i)}},a={on:r,once:n,off:o,emit:i},s={on:l(r),once:l(n),off:l(o),emit:l(i)},u=g({},s),e.exports=t=function(e){return null==e?h(u):g(Object(e),s)},t.methods=a}(pv,pv.exports)),pv.exports),Dv=w(Av);function Tv(e){var t=xp.get(e);return null==t&&(t=Dv(),xp.set(e,t)),t}var kv=new WeakMap;function Ov(e,t){var r=kv.get(e);null==r&&(r=new Set,kv.set(e,r)),r.add(t)}var Nv=function(e){var t=e;return t.on=function(e,r){var n=Tv(t);if(n.on(e,r),"destroyed"===e&&Ov(t,r),"destroyed"!==e){var o=function(){return n.off(e,r)};n.on("destroyed",o),Ov(t,o)}},t.once=function(e,r){Tv(t).once(e,r)},t.off=function(e,r){Tv(t).off(e,r)},t.emit=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=Tv(t);if(o.emit.apply(o,Ah([e],Ch(r),!1)),"destroyed"===e){var i=function(e){return kv.get(e)||new Set}(t);i.forEach(function(e){return o.off("destroyed",e)}),function(e){kv.set(e,new Set)}(t)}},t};var Bv=function(e){var t=e;return t.setFragmentData=function(e){var r=t.selection;if(r){var n=Ch(ph.Range.edges(r),2),o=n[0],i=n[1],a=ph.Editor.void(t,{at:o.path}),s=ph.Editor.void(t,{at:i.path});if(!ph.Range.isCollapsed(r)||a){var u=bm.toDOMRange(t,r),l=u.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach(function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)}),s){var d=Ch(s,1)[0],f=u.cloneRange(),h=bm.toDOMNode(t,d);f.setEndAfter(h),l=f.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach(function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""}),Ng(c)){var p=c.ownerDocument.createElement("span");p.style.whiteSpace="pre",p.appendChild(c),l.appendChild(p),c=p}var g=t.getFragment(),m=JSON.stringify(g),v=window.btoa(encodeURIComponent(m));c.setAttribute("data-slate-fragment",v),e.setData("application/x-slate-fragment",v);var y=l.ownerDocument.createElement("div");return y.appendChild(l),y.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(y),e.setData("text/html",y.innerHTML),e.setData("text/plain",Ig(y)),l.ownerDocument.body.removeChild(y),e}}},t.insertData=function(e){var r=e.getData("application/x-slate-fragment");if(r){var n=decodeURIComponent(window.atob(r)),o=JSON.parse(n);t.insertFragment(o)}else{var i=e.getData("text/plain"),a=e.getData("text/html");if(a){var s=t.getConfig().sanitizeHtml;t.dangerouslyInsertHtml(s?s(a):a)}else if(i){if(!/[\r\n]/.test(i))return void t.insertText(i);var u=function(e){return e.replace(/\n\r|\r\n|\r/g,"\n").split("\n").map(function(e){return{type:"paragraph",children:[{text:e}]}})}(i);t.insertFragment(u)}}},t};function Fv(e){return e.replace(/\n\r|\r\n|\r|\n/g,"").length}function Mv(e,t){var r,n;if(t<=0)return"";var o=t,i="";try{for(var a=Sh(e),s=a.next();!s.done;s=a.next()){var u=s.value;if(/\r|\n/.test(u))i+=u;else{if(o<=0)break;i+=u,o-=1}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}var Iv=function(e){var t=e,r=t.insertText,n=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var n=bm.getLeftLengthOfMaxLength(t);n<=0||(n<e.length?r(e.slice(0,n)):r(e))}else r(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var r=bm.getLeftLengthOfMaxLength(t);if(!(r<=0))r<ph.Node.string(e).length||n(e)}else n(e)},t.insertFragment=function(e){if(t.getConfig().maxLength){if(e.length>0){var r=e[0];if(bm.getLeftLengthOfMaxLength(t)<ph.Node.string(r).length)return;o([r]);for(var n=1;n<e.length;n+=1)t.insertNode(e[n])}}else o(e)},t.dangerouslyInsertHtml=function(e,r){if(void 0===e&&(e=""),void 0===r&&(r=!1),e)if(t.getConfig().maxLength){var n=bm.getLeftLengthOfMaxLength(t);if(!(n<=0)){var o=function(e,t){if(t<=0)return"";var r=document.createElement("div");r.innerHTML=e;var n=function(e){e.forEach(function(e){return e.remove()})},o=function(e){for(var r=Array.from(e.childNodes),i=0;i<r.length;i+=1){var a=r[i];if(Ng(a)){var s=a.textContent||"",u=Fv(s);if(u<=t){t-=u;continue}return a.textContent=Mv(s,t),t=0,n(r.slice(i+1)),!1}if(kg(a)){if(Tp.has(a.nodeName.toLowerCase())){a.remove();continue}if(!o(a))return n(r.slice(i+1)),!1}else a.remove()}return t>0};return o(r),r.innerHTML}(e,n);o&&i(o,r)}}else i(e,r)},t};function Pv(e){var t=bm.getTextarea(e).$textAreaContainer,r=t.width(),n=t.height(),o=t.offset();return{top:o.top,left:o.left,width:r,height:n}}function Rv(e){var t={top:"0",left:"0"},r=e.selection;if(null==r)return t;var n=Pv(e);if(null==n)return t;var o=n.top,i=n.left,a=n.width,s=n.height,u=bm.toDOMRange(e,r).getClientRects(),l=u?u[0]:null;if(null==l)return t;var c={},d=l.top-o,f=l.left-i;if(f>a/2){var h=a-f;c.right="".concat(h+5,"px")}else c.left="".concat(f+5,"px");if(d>s/2){var p=s-d;c.bottom="".concat(p+5,"px")}else{var g=u[u.length-1],m=g.top-o+g.height;m<0&&(m=0),c.top="".concat(m+5,"px")}return c}function Lv(e,t,r){void 0===r&&(r="modal");var n={top:"0",left:"0"};if(null==e.selection)return n;var o=ph.Element.isElement(t)&&e.isVoid(t),i=ph.Element.isElement(t)&&e.isInline(t),a=vp.get(t);if(null==a)return n;var s=a.getBoundingClientRect(),u=s.top,l=s.left,c=s.height,d=s.width;if(o){var f=function(e){var t=[];t.push(e);for(var r=0;t.length>0;){var n=t.pop();if(null==n)break;if((r+=1)>1e4)break;var o=n.nodeName;if(n.nodeType===Eg.ELEMENT_NODE){var i=o.toLowerCase();if(yg.includes(i)||"iframe"===i||"video"===i)return n;var a=n.children||[],s=a.length;if(s)for(var u=s-1;u>=0;u-=1)t.push(a[u])}}return null}(a);if(null!=f){var h=f.getBoundingClientRect();u=h.top,c=h.height}}var p=Pv(e);if(null==p)return n;var g=p.top,m=p.left,v=p.width,y=p.height,b={},w=u-g,E=l-m;if("bar"===r)return b.left="".concat(E,"px"),w>40?b.bottom="".concat(y-w+5,"px"):b.top="".concat(w+c+5,"px"),b;if("modal"===r){if(o?i?E>(v-d)/2?b.right="".concat(v-E+5,"px"):b.left="".concat(E+d+5,"px"):b.left="20px":b.left="".concat(E,"px"),o)(x=w)<0&&(x=0),b.top="".concat(x,"px");else if(w>(y-c)/2)b.bottom="".concat(y-w+5,"px");else{var x;(x=w+c)<0&&(x=0),b.top="".concat(x+5,"px")}return b}throw new Error("type '".concat(r,"' is invalid"))}function _v(e,t){wg(function(){var r=Pv(e);if(null!=r){var n,o=r.top,i=r.left,a=r.width,s=r.height,u=t.offset(),l=u.top,c=u.left,d=t.width(),f=t.height(),h=l-o,p=c-i,g=t.attr("style");if(g.indexOf("top")>=0)if((n=h+f-s)>0){var m=t.css("top"),v=parseInt(m.toString(),10)-n;v<0&&(v=0),t.css("top","".concat(v,"px"))}if(g.indexOf("bottom")>=0&&l<0){var y=t.css("bottom"),b=parseInt(y.toString(),10)-Math.abs(l);t.css("bottom","".concat(b,"px"))}if(g.indexOf("left")>=0)if((n=p+d-a)>0){var w=t.css("left"),E=parseInt(w.toString(),10)-n;E<0&&(E=0),t.css("left","".concat(E,"px"))}if(g.indexOf("right")>=0&&c<0){var x=t.css("right"),S=parseInt(x.toString(),10)-Math.abs(c);t.css("right","".concat(S,"px"))}}})}var zv,jv,Hv=function(e){var t=e,r=t.select,n=t.deselect,o=t.move;return t.select=function(e){r(e)},t.deselect=function(){var e=t.selection,r=bm.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&bm.hasDOMNode(t,r.anchorNode)&&bm.hasDOMNode(t,r.focusNode)&&r.removeAllRanges(),e&&n()},t.move=function(e,t){void 0===t&&(t=!1),"number"==typeof e?e&&(e<0||o({distance:e,unit:"character",reverse:t})):o(e)},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=Ep.get(t);null!=e&&(t.focus(),r(e))},t.getSelectionPosition=function(){return Rv(t)},t.getNodePosition=function(e){return Lv(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var r=Ch(ph.Range.edges(e),2),n=r[0],o=r[1],i=Ch(ph.Editor.edges(t,[]),2),a=i[0],s=i[1];return!(!ph.Point.equals(n,a)||!ph.Point.equals(o,s))},t.selectAll=function(){var e=ph.Editor.start(t,[]),n=ph.Editor.end(t,[]);r({anchor:e,focus:n})},t};var $v=function(){if(jv)return zv;jv=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,n=/^0o[0-7]+$/i,o=parseInt,i="object"==typeof b&&b&&b.Object===Object&&b,a="object"==typeof self&&self&&self.Object===Object&&self,s=i||a||Function("return this")(),u=Object.prototype.toString,l=Math.max,c=Math.min,d=function(){return s.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(i){if("number"==typeof i)return i;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(i))return NaN;if(f(i)){var a="function"==typeof i.valueOf?i.valueOf():i;i=f(a)?a+"":a}if("string"!=typeof i)return 0===i?i:+i;i=i.replace(e,"");var s=r.test(i);return s||n.test(i)?o(i.slice(2),s?2:8):t.test(i)?NaN:+i}return zv=function(e,t,r){var n,o,i,a,s,u,p=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=n,i=o;return n=o=void 0,p=t,a=e.apply(i,r)}function b(e){var r=e-u;return void 0===u||r>=t||r<0||m&&e-p>=i}function w(){var e=d();if(b(e))return E(e);s=setTimeout(w,function(e){var r=t-(e-u);return m?c(r,i-(e-p)):r}(e))}function E(e){return s=void 0,v&&n?y(e):(n=o=void 0,a)}function x(){var e=d(),r=b(e);if(n=arguments,o=this,u=e,r){if(void 0===s)return function(e){return p=e,s=setTimeout(w,t),g?y(e):a}(u);if(m)return s=setTimeout(w,t),y(u)}return void 0===s&&(s=setTimeout(w,t)),a}return t=h(t)||0,f(r)&&(g=!!r.leading,i=(m="maxWait"in r)?l(h(r.maxWait)||0,t):i,v="trailing"in r?!!r.trailing:v),x.cancel=function(){void 0!==s&&clearTimeout(s),p=0,n=u=o=s=void 0},x.flush=function(){return void 0===s?a:E(d())},x},zv}(),Uv=w($v);const Vv=e=>"string"==typeof e,qv=()=>{let e,t;const r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r},Gv=e=>null==e?"":""+e,Wv=/###/g,Yv=e=>e&&e.indexOf("###")>-1?e.replace(Wv,"."):e,Kv=e=>!e||Vv(e),Xv=(e,t,r)=>{const n=Vv(t)?t.split("."):t;let o=0;for(;o<n.length-1;){if(Kv(e))return{};const t=Yv(n[o]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return Kv(e)?{}:{obj:e,k:Yv(n[o])}},Zv=(e,t,r)=>{const{obj:n,k:o}=Xv(e,t,Object);if(void 0!==n||1===t.length)return void(n[o]=r);let i=t[t.length-1],a=t.slice(0,t.length-1),s=Xv(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=Xv(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=r},Jv=(e,t)=>{const{obj:r,k:n}=Xv(e,t);if(r)return r[n]},Qv=(e,t,r)=>{for(const n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?Vv(e[n])||e[n]instanceof String||Vv(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):Qv(e[n],t[n],r):e[n]=t[n]);return e},ey=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ty={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ry=e=>Vv(e)?e.replace(/[&<>"'\/]/g,e=>ty[e]):e;const ny=[" ",",","?","!",";"],oy=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}(20),iy=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let o=e;for(let e=0;e<n.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let a=e;a<n.length;++a)if(a!==e&&(i+=r),i+=n[a],t=o[i],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<n.length-1)continue;e+=a-e+1;break}o=t}return o},ay=e=>e&&e.replace("_","-"),sy={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class uy{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||sy,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:(Vv(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new uy(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new uy(this.logger,e)}}var ly=new uy;class cy{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(e=>{let[t,n]=e;for(let e=0;e<n;e++)t(...r)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(t=>{let[n,o]=t;for(let t=0;t<o;t++)n.apply(n,[e,...r])})}}}class dy extends cy{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],r&&(Array.isArray(r)?a.push(...r):Vv(r)&&o?a.push(...r.split(o)):a.push(r)));const s=Jv(this.data,a);return!s&&!t&&!r&&e.indexOf(".")>-1&&(e=a[0],t=a[1],r=a.slice(2).join(".")),!s&&i&&Vv(r)?iy(this.data&&this.data[e]&&this.data[e][t],r,o):s}addResource(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),Zv(this.data,a,n),o.silent||this.emit("added",e,t,r,n)}addResources(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const n in r)(Vv(r[n])||Array.isArray(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=r,r=t,t=a[1]),this.addNamespaces(t);let s=Jv(this.data,a)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?Qv(s,r,o):s={...s,...r},Zv(this.data,a,s),i.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var fy={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,r,n,o))}),t}};const hy={};class py extends cy{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,r)=>{e.forEach(e=>{t[e]&&(r[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=ly.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,r)=>{t=t||"",r=r||"";const n=ny.filter(e=>t.indexOf(e)<0&&r.indexOf(e)<0);if(0===n.length)return!0;const o=oy.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(r);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,r,n));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:Vv(o)?[o]:o};const i=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(n)}return{key:e,namespaces:Vv(o)?[o]:o}}translate(e,t,r){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],u=t.lng||this.language,l=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(l){const e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${s}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${i}`}return n?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:i}const c=this.resolve(e,t);let d=c&&c.res;const f=c&&c.usedKey||i,h=c&&c.exactUsedKey||i,p=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!Vv(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(m&&d&&v&&["[object Number]","[object Function]","[object RegExp]"].indexOf(p)<0)||Vv(g)&&Array.isArray(d))if(m&&Vv(g)&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,t,r));else{let n=!1,a=!1;const l=void 0!==t.count&&!Vv(t.count),f=py.hasDefaultValue(t),h=l?this.pluralResolver.getSuffix(u,t.count,t):"",p=t.ordinal&&l?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",g=l&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${h}`]||t[`defaultValue${p}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(n=!0,d=m),this.isValidLookup(d)||(a=!0,d=i);const v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,y=f&&m!==d&&this.options.updateMissing;if(a||n||y){if(this.logger.log(y?"updateKey":"missingKey",u,s,i,y?m:d),o){const e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t<r.length;t++)e.push(r[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const n=(e,r,n)=>{const o=f&&n!==d?n:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,r,o,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,r,o,y,t),this.emit("missingKey",e,s,r,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&l?e.forEach(e=>{const r=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&r.indexOf(`${this.options.pluralSeparator}zero`)<0&&r.push(`${this.options.pluralSeparator}zero`),r.forEach(r=>{n([e],i+r,t[`defaultValue${r}`]||m)})}):n(e,i,m))}d=this.extendTranslation(d,e,t,c,r),a&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${i}`),(a||n)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${i}`:i,n?d:void 0):this.options.parseMissingKeyHandler(d))}else{if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return n?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(o){const e=Array.isArray(d),r=e?[]:{},n=e?h:f;for(const e in d)if(Object.prototype.hasOwnProperty.call(d,e)){const i=`${n}${o}${e}`;r[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),r[e]===i&&(r[e]=d[e])}d=r}}return n?(c.res=d,c.usedParams=this.getUsedParamsDetails(t),c):d}extendTranslation(e,t,r,n,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const a=Vv(e)&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let u=r.replace&&!Vv(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,r.lng||this.language||n.usedLng,r),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return o&&o[0]===n[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${t[0]}`),null):i.translate(...n,t)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,s=Vv(a)?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=fy.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let t,r,n,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Vv(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),u=s.key;r=u;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));const c=void 0!==a.count&&!Vv(a.count),d=c&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&(Vv(a.context)||"number"==typeof a.context)&&""!==a.context,h=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);l.forEach(e=>{this.isValidLookup(t)||(i=e,!hy[`${h[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(hy[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${h.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(r=>{if(this.isValidLookup(t))return;o=r;const i=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,u,r,e,a);else{let e;c&&(e=this.pluralResolver.getSuffix(r,a.count,a));const t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(i.push(u+e),a.ordinal&&0===e.indexOf(n)&&i.push(u+e.replace(n,this.options.pluralSeparator)),d&&i.push(u+t)),f){const r=`${u}${this.options.contextSeparator}${a.context}`;i.push(r),c&&(i.push(r+e),a.ordinal&&0===e.indexOf(n)&&i.push(r+e.replace(n,this.options.pluralSeparator)),d&&i.push(r+t))}}let s;for(;s=i.pop();)this.isValidLookup(t)||(n=s,t=this.getResource(r,e,s,a))}))})}),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!Vv(e.replace);let n=r?e.replace:e;if(r&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!r){n={...n};for(const e of t)delete n[e]}return n}static hasDefaultValue(e){const t="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,12)&&void 0!==e[r])return!0;return!1}}const gy=e=>e.charAt(0).toUpperCase()+e.slice(1);class my{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ly.create("languageUtils")}getScriptPartFromCode(e){if(!(e=ay(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=ay(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(Vv(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map(e=>e.toLowerCase()):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=gy(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=gy(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=gy(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const r=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(r)||(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),Vv(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return Vv(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):Vv(e)&&o(this.formatLanguageCode(e)),r.forEach(e=>{n.indexOf(e)<0&&o(this.formatLanguageCode(e))}),n}}let vy=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],yy={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const by=["v1","v2","v3"],wy=["v4"],Ey={zero:0,one:1,two:2,few:3,many:4,other:5};class xy{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=ly.create("pluralResolver"),this.options.compatibilityJSON&&!wy.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return vy.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:yy[t.fc]}})}),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const r=ay("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:n});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(r,{type:n})}catch(r){if(!e.match(/-|_/))return;const n=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(n,t)}return this.pluralRulesCache[o]=i,i}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((e,t)=>Ey[e]-Ey[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):r.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.getRule(e,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let n=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));const o=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!by.includes(this.options.compatibilityJSON)}}const Sy=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=((e,t,r)=>{const n=Jv(e,r);return void 0!==n?n:Jv(t,r)})(e,t,r);return!i&&o&&Vv(r)&&(i=iy(e,r,n),void 0===i&&(i=iy(t,r,n))),i},Cy=e=>e.replace(/\$/g,"$$$$");class Ay{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ly.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:o,prefixEscaped:i,suffix:a,suffixEscaped:s,formatSeparator:u,unescapeSuffix:l,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:h,nestingSuffixEscaped:p,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:ry,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=o?ey(o):i||"{{",this.suffix=a?ey(a):s||"}}",this.formatSeparator=u||",",this.unescapePrefix=l?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=d?ey(d):f||ey("$t("),this.nestingSuffix=h?ey(h):p||ey(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,r,n){let o,i,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=e=>{if(e.indexOf(this.formatSeparator)<0){const o=Sy(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,r,{...n,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(Sy(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,r,{...n,...t,interpolationkey:i})};this.resetRegExp();const l=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,c=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,d=[{regex:this.regexpUnescape,safeValue:e=>Cy(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Cy(this.escape(e)):Cy(e)}];return d.forEach(t=>{for(a=0;o=t.regex.exec(e);){const r=o[1].trim();if(i=u(r),void 0===i)if("function"==typeof l){const t=l(e,o,n);i=Vv(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else{if(c){i=o[0];continue}this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),i=""}else Vv(i)||this.useRawValueToEscape||(i=Gv(i));const s=t.safeValue(i);if(e=e.replace(o[0],s),c?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t){let r,n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(e,t)=>{const r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;const n=e.split(new RegExp(`${r}[ ]*{`));let i=`{${n[1]}`;e=n[0],i=this.interpolate(i,o);const a=i.match(/'/g),s=i.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];o={...i},o=o.replace&&!Vv(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){const e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),s=e,u=!0}if(n=t(a.call(this,r[1].trim(),o),o),n&&r[0]===e&&!Vv(n))return n;Vv(n)||(n=Gv(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),u&&(n=s.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:r[1].trim()}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}const Dy=e=>{const t={};return(r,n,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=n+JSON.stringify(i);let s=t[a];return s||(s=e(ay(n),o),t[a]=s),s(r)}};class Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ly.create("formatter"),this.options=e,this.formats={number:Dy((e,t)=>{const r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:Dy((e,t)=>{const r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:Dy((e,t)=>{const r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:Dy((e,t)=>{const r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:Dy((e,t)=>{const r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Dy(t)}format(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}const i=o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);"currency"===t&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...n]=e.split(":"),o=n.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();r[i]||(r[i]=o),"false"===o&&(r[i]=!1),"true"===o&&(r[i]=!0),isNaN(o)||(r[i]=parseInt(o,10))}})}return{formatName:t,formatOptions:r}})(t);if(this.formats[o]){let t=e;try{const a=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},s=a.locale||a.lng||n.locale||n.lng||r;t=this.formats[o](e,s,{...i,...n,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class ky extends cy{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=ly.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}queueLoad(e,t,r,n){const o={},i={},a={},s={};return e.forEach(e=>{let n=!0;t.forEach(t=>{const a=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,n=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))}),n||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,r){const n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),!t&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const a={};this.queue.forEach(r=>{((e,t,r)=>{const{obj:n,k:o}=Xv(e,t,Object);n[o]=n[o]||[],n[o].push(r)})(r.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{a[e]||(a[e]={});const t=r.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:o,callback:i});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&n<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,r,n+1,2*o,i)},o):i(a,s)},s=this.backend[r].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const r=s(e,t);r&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();Vv(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Vv(t)&&(t=[t]);const o=this.queueLoad(e,t,r,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=e.split("|"),n=r[0],o=r[1];this.read(n,o,"read",void 0,void 0,(r,i)=>{r&&this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`,r),!r&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${n}`,i),this.loaded(e,r,i)})}saveMissing(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=r&&""!==r){if(this.backend&&this.backend.create){const s={...i,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let o;o=5===u.length?u(e,t,r,n,s):u(e,t,r,n),o&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else u(e,t,r,n,a,s)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}const Oy=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),Vv(e[1])&&(t.defaultValue=e[1]),Vv(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Ny=e=>(Vv(e.ns)&&(e.ns=[e.ns]),Vv(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Vv(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),By=()=>{};class Fy extends cy{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var r;if(super(),this.options=Ny(e),this.services={},this.logger=ly,this.modules={external:[]},r=this,Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(e=>{"function"==typeof r[e]&&(r[e]=r[e].bind(r))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(Vv(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=Oy();this.options={...n,...this.options,...Ny(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?ly.init(o(this.modules.logger),this.options):ly.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=Ty);const r=new my(this.options);this.store=new dy(this.options.resources,this.options);const i=this.services;i.logger=ly,i.resourceStore=this.store,i.languageUtils=r,i.pluralResolver=new xy(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new Ay(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new ky(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit(t,...n)}),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new py(this.services,this.options),this.translator.on("*",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit(t,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=By),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});const i=qv(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:By;const r=Vv(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],n=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(r)n(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>n(e))}this.options.preload&&this.options.preload.forEach(e=>n(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,r){const n=qv();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=By),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&fy.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;const n=qv();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve(function(){return r.t(...arguments)}),t&&t(e,function(){return r.t(...arguments)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);const r=Vv(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||o(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,e=>{i(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),n}getFixedT(e,t,r){var n=this;const o=function(e,t){let i;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];i=n.options.overloadTranslationOptionHandler([e,t].concat(s))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||r||o.keyPrefix);const l=n.options.keySeparator||".";let c;return c=i.keyPrefix&&Array.isArray(e)?e.map(e=>`${i.keyPrefix}${l}${e}`):i.keyPrefix?`${i.keyPrefix}${l}${e}`:e,n.t(c,i)};return Vv(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const i=(e,t)=>{const r=this.services.backendConnector.state[`${e}|${t}`];return-1===r||0===r||2===r};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(r,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(r,e)||n&&!i(o,e)))}loadNamespaces(e,t){const r=qv();return this.options.ns?(Vv(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=qv();Vv(e)&&(e=[e]);const n=this.options.preload||[],o=e.filter(e=>n.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=n.concat(o),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new my(Oy());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new Fy(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:By;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},o=new Fy(n);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));return["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new dy(this.store.data,n),o.services.resourceStore=o.store),o.translator=new py(o.services,n),o.translator.on("*",function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];o.emit(e,...r)}),o.init(n,t),o.translator.options=n,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const My=Fy.createInstance();My.createInstance=Fy.createInstance,My.createInstance,My.dir,My.init,My.loadResources,My.reloadResources,My.use,My.changeLanguage,My.getFixedT,My.t,My.exists,My.setDefaultNamespace,My.hasLoadedNamespace,My.loadNamespaces,My.loadLanguages;var Iy="translation";function Py(e,t){My.addResourceBundle(e,Iy,t,!0,!0)}function Ry(e){return My.on("languageChanged",e),function(){return My.off("languageChanged",e)}}My.init({lng:"zh-CN",resources:{}});var Ly=My.t.bind(My);function _y(e){if(e.removeAttr){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&_y(t)}}function zy(){return _p('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function jy(){return _p('<div class="w-e-bar-divider"></div>')}function Hy(e,t,r,n,o){if(void 0===n&&(n=""),void 0===o&&(o=!1),t){if(n){var i=cm?"cmd":"ctrl";n=n.replace("mod",i)}if(o)n&&(e.attr("data-tooltip",n),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=n?"".concat(r,"\n").concat(n):r;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}var $y=function(){function e(e,t,r){void 0===r&&(r=!1);var n=this;this.$elem=_p('<div class="w-e-bar-item"></div>'),this.$button=_p('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '".concat(o,"', expected 'button'"));var a=t.title,s=t.hotkey,u=void 0===s?"":s,l=t.iconSvg,c=void 0===l?"":l,d=this.$button;if(c){var f=_p(c);_y(f),d.append(f)}else d.text(a);Hy(d,c,a,u,r),r&&c&&d.append(_p('<span class="title">'.concat(a,"</span>"))),i&&d.css("width","".concat(i,"px")),d.attr("data-menu-key",e),this.$elem.append(d),wg(function(){return n.init()})}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(t){t.preventDefault(),rb(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},e.prototype.exec=function(){var e=rb(this),t=this.menu,r=t.getValue(e);this.setIcon(),this.setTooltip(),t.exec(e,r)},e.prototype.setActive=function(){var e=rb(this),t=this.$button,r="active";this.menu.isActive(e)?t.addClass(r):t.removeClass(r)},e.prototype.setDisabled=function(){var e=rb(this),t=this.$button,r=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var n="disabled";r?t.addClass(n):t.removeClass(n),this.disabled=r},e.prototype.setIcon=function(){var e=rb(this),t=this.$button;if(this.menu.getIcon){var r=this.menu.getIcon(e);if(r){t.find("svg").remove();var n=_p(r);_y(n),t.append(n)}}},e.prototype.setTooltip=function(){var e=rb(this),t=this.$button;if(this.menu.getTitle){var r=this.menu.getTitle(e),n=this.menu.iconSvg;r&&n&&Hy(t,n,r)}},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),Uy=function(e){function t(t,r,n){return void 0===n&&(n=!1),e.call(this,t,r,n)||this}return bh(t,e),t.prototype.onButtonClick=function(){},t}($y),Vy=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=op.get(e);null==t&&(t=new Set,op.set(e,t)),t.add(this),ip.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var r=this.genSelfElem();r&&t.append(r)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=ip.get(this);e&&e.emit(Wh,this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=ip.get(this);e&&e.emit(Yh)}},e}(),qy=function(e){function t(t){var r=e.call(this,t)||this;return r.type="dropPanel",r.$elem=_p('<div class="w-e-drop-panel"></div>'),r}return bh(t,e),t.prototype.genSelfElem=function(){return null},t}(Vy),Gy=function(e){function t(t,r,n){void 0===n&&(n=!1);var o=e.call(this,t,r,n)||this;if(o.dropPanel=null,o.menu=r,r.showDropPanel){var i=zy();o.$button.append(i)}return o}return bh(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=rb(this);if(null==this.dropPanel){var r=new qy(t),n=e.getPanelContentElem(t);r.renderContent(n),r.appendTo(this.$elem),r.show(),this.dropPanel=r}else{var o=this.dropPanel;if(o.isShow)o.hide();else{n=e.getPanelContentElem(t);o.renderContent(n),o.show()}}var i=this.dropPanel;if(i.isShow){var a=this.$elem,s=a.offset().left,u=a.parents(".w-e-bar");s-u.offset().left>=u.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}($y),Wy=function(e){function t(t,r){void 0===r&&(r=0);var n=e.call(this,t)||this;n.type="modal",n.$elem=_p('<div class="w-e-modal"></div>'),n.width=0,r&&(n.width=r);var o=n.$elem;return o.on("click",function(e){return e.stopPropagation()}),o.on("keyup",function(e){"Escape"===e.code&&(n.hide(),t.restoreSelection())}),n}return bh(t,e),t.prototype.genSelfElem=function(){var e=this,t=_p('<span class="btn-close">'.concat('<svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg>',"</span>")),r=ip.get(this);return t.on("click",function(){e.hide(),null==r||r.restoreSelection()}),t},t.prototype.setStyle=function(e){var t=this.width,r=this.$elem;r.attr("style",""),t&&r.css("width","".concat(t,"px")),r.css(e)},t}(Vy);function Yy(e,t,r){var n=_p('<label class="babel-container"></label>');n.append("<span>".concat(e,"</span>"));var o=_p('<input type="text" id="'.concat(t,'" placeholder="').concat(r||"",'">'));return n.append(o),[n[0],o[0]]}function Ky(e,t,r){var n=_p('<label class="babel-container"></label>');n.append("<span>".concat(e,"</span>"));var o=_p('<textarea type="text" id="'.concat(t,'" placeholder="').concat(r||"",'"></textarea>'));return n.append(o),[n[0],o[0]]}function Xy(e,t){var r=_p('<div class="button-container"></div>'),n=_p('<button type="button" id="'.concat(e,'">').concat(t,"</button>"));return r.append(n),[r[0],n[0]]}var Zy=function(e){function t(t,r,n){void 0===n&&(n=!1);var o=e.call(this,t,r,n)||this;return o.$body=_p("body"),o.modal=null,o.menu=r,o}return bh(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=rb(this),t=this.menu.getModalPositionNode(e);return ph.Element.isElement(t)?Lv(e,t,"modal"):Rv(e)},t.prototype.handleModal=function(){var e=rb(this),t=this.menu;if(null==this.modal){var r=new Wy(e,t.modalWidth);this.renderAndShowModal(r,!0),this.modal=r}else{(r=this.modal).isShow?r.hide():this.renderAndShowModal(r,!1)}},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var r=rb(this),n=this.menu;if(null!=n.getModalContentElem){var o=bm.getTextarea(r),i=bm.getToolbar(r),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,s=n.getModalContentElem(r);if(e.renderContent(s),a)e.setStyle({left:"0",right:"0"});else{var u=this.getPosition();e.setStyle(u)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||_v(r,e.$elem),setTimeout(function(){r.blur()})}},t}($y);var Jy=function(e){function t(t,r){var n=e.call(this,t)||this;return n.type="selectList",n.$elem=_p('<div class="w-e-select-list"></div>'),r&&n.$elem.css("width","".concat(r,"px")),n.$elem.on("click",function(e){e.stopPropagation()}),n}return bh(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var r=_p("<ul></ul>");e.forEach(function(e){var t=e.value,n=e.text,o=e.selected,i=e.styleForRenderMenuList,a=_p('<li data-value="'.concat(t,'"></li>'));if(i&&a.css(i),o){var s=_p('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(s),a.addClass("selected")}a.append(_p('<span data-value="'.concat(t,'">').concat(n,"</span>"))),a.attr("title",n),r.append(a)}),t.append(r)},t.prototype.genSelfElem=function(){return null},t}(Vy);var Qy=function(){function e(e,t,r){void 0===r&&(r=!1);var n=this;this.$elem=_p('<div class="w-e-bar-item"></div>'),this.$button=_p('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,s=t.iconSvg,u=void 0===s?"":s,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '".concat(o,"', expected 'select'"));var d=this.$button;a&&d.css("width","".concat(a,"px")),d.attr("data-menu-key",e),Hy(d,u,i,c,r),this.$elem.append(d),this.menu=t,wg(function(){return n.init()})}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(t){t.preventDefault(),rb(e).hidePanelOrModal(),e.trigger()})},e.prototype.trigger=function(){var e=this,t=rb(this);if(!t.isDisabled()&&!this.disabled){var r=this.menu;if(null==this.selectList){this.selectList=new Jy(t,r.selectPanelWidth);var n=this.selectList,o=r.getOptions(t);n.renderList(o),n.appendTo(this.$elem),n.show(),n.$elem.on("click","li",function(t){var r=t.target;if(null!=r){t.preventDefault();var n=_p(r).attr("data-value");e.onChange(n)}})}else{if((n=this.selectList).isShow)n.hide();else{o=r.getOptions(t);n.renderList(o),n.show()}}}},e.prototype.onChange=function(e){var t=rb(this),r=this.menu;r.exec&&r.exec(t,e)},e.prototype.setSelectedValue=function(){var e=rb(this),t=this.menu,r=t.getValue(e),n=function(e,t){for(var r=e.length,n="",o=0;o<r;o++){var i=e[o];if(i.value===t){n=i.text;break}}return n}(t.getOptions(e),r.toString()),o=this.$button,i=zy();o.empty(),o.text(n),o.append(i)},e.prototype.setDisabled=function(){var e=rb(this),t=this.menu.isDisabled(e),r=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var n="disabled";t?r.addClass(n):r.removeClass(n),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),eb=function(){function e(e){this.$elem=_p('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=_p('<div class="w-e-bar-item-menus-container"></div>'),this.$button=_p('<button type="button"></button>');var t=e.key,r=e.iconSvg,n=e.title,o=this.$elem,i=this.$button;if(r){var a=_p(r);_y(a),i.append(a)}else i.text(n);i.attr("data-menu-key",t);var s=zy();i.append(s),o.append(i);var u=this.$container;o.append(u);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,r=this.$button,n=new MutationObserver(function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each(function(e){_p(e).hasClass("disabled")&&a++}),n.disconnect(),a===i?r.addClass("disabled"):r.removeClass("disabled"),e.observe(n)}});return n},e}(),tb=new WeakMap;function rb(e){var t=np.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function nb(e,t,r){void 0===r&&(r=!1);var n=tb.get(t);if(n)return n;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;n=i?new Gy(e,t,r):a?new Zy(e,t,r):new Uy(e,t,r)}if("select"===o&&(n=new Qy(e,t,r)),null==n)throw new Error("Invalid tag in menu ".concat(JSON.stringify(t)));return tb.set(t,n),n}function ob(e,t){var r=e.selection;return null!=r&&(!ph.Range.isCollapsed(r)&&(!bm.getSelectedElems(e).some(function(t){if(e.isVoid(t))return!0;var r=t.type;return!!["pre","code","table"].includes(r)})&&!!ph.Text.isText(t)))}var ib,ab,sb=function(){function e(){var e=this;this.$elem=_p('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.lngListen=function(){},this.changeHoverbarState=Uv(function(){var t=e.isShow,r=e.getSelectedNodeAndMenuKeys()||{},n=r.node,o=void 0===n?null:n,i=r.menuKeys,a=void 0===i?[]:i,s=e.getEditorInstance();if(null!=o&&e.changeItemsState(),o&&ph.Element.isElement(o)&&t){var u=e.isSamePath(o,e.prevSelectedNode);if(!ph.Editor.isBlock(s,o)&&u)return}e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o},200),wg(function(){var t=e.getEditorInstance(),r=e.$elem;r.on("mousedown",function(e){return e.preventDefault()},{passive:!1}),bm.getTextarea(t).$textAreaContainer.append(r),t.on(Uh,e.changeHoverbarState);var n=e.hideAndClean.bind(e);t.on(Vh,n),t.on(qh,n),t.on(Gh,n)}),this.lngListen=Ry(function(){e.menus={},e.hideAndClean(),e.getEditorInstance().deselect()})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,r="undefined"!=typeof window?window.innerHeight:null;r&&r>=360&&(r-e[0].getBoundingClientRect().bottom<360&&(t=!0));t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;wg(function(){e.hoverbarItems.forEach(function(e){e.changeMenuState()})})},e.prototype.registerItems=function(e){var t=this,r=this.$elem;e.forEach(function(e){if("|"!==e)t.registerSingleItem(e);else{var n=jy();r.append(n)}})},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),r=this.menus,n=r[e];if(null==n){var o=Kh[e];if(null==o)throw new Error("Not found menu item factory by key '".concat(e,"'"));if("function"!=typeof o)throw new Error("Menu item factory (key='".concat(e,"') is not a function"));n=o(),r[e]=n}var i=t.getMenuConfig(e);i&&void 0!==i.iconSvg&&(n.iconSvg=i.iconSvg);var a=nb(e,n);this.hoverbarItems.push(a),np.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),ph.Element.isElement(e)){var n=Lv(t,e,"bar");return r.css(n),void _v(t,r)}if(ph.Text.isText(e)){n=Rv(t);return r.css(n),void _v(t,r)}throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),r=null,n=[],o=function(o){var i=t[o],a=i.match,s=i.menuKeys,u=void 0===s?[]:s,l=a||function(e,t){return bm.checkNodeType(t,o)},c=Ch(ph.Editor.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1),d=c[0];if(null!=d)return r=d[0],n=u,"break"};for(var i in t){if("break"===o(i))break}return null==r||0===n.length?null:{node:r,menuKeys:n}},e.prototype.getEditorInstance=function(){var e=tp.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,r=t.text;return r&&null==r.match&&(r.match=ob),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var r=bm.findPath(null,e),n=bm.findPath(null,t);return ph.Path.equals(r,n)},e.prototype.destroy=function(){var e;this.changeHoverbarState.cancel(),this.$elem.remove(),null===(e=this.lngListen)||void 0===e||e.call(this),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function ub(){if(ab)return ib;ab=1;var e="Expected a function",t=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt,a="object"==typeof b&&b&&b.Object===Object&&b,s="object"==typeof self&&self&&self.Object===Object&&self,u=a||s||Function("return this")(),l=Object.prototype.toString,c=Math.max,d=Math.min,f=function(){return u.Date.now()};function h(t,r,n){var o,i,a,s,u,l,h=0,m=!1,v=!1,y=!0;if("function"!=typeof t)throw new TypeError(e);function b(e){var r=o,n=i;return o=i=void 0,h=e,s=t.apply(n,r)}function w(e){var t=e-l;return void 0===l||t>=r||t<0||v&&e-h>=a}function E(){var e=f();if(w(e))return x(e);u=setTimeout(E,function(e){var t=r-(e-l);return v?d(t,a-(e-h)):t}(e))}function x(e){return u=void 0,y&&o?b(e):(o=i=void 0,s)}function S(){var e=f(),t=w(e);if(o=arguments,i=this,l=e,t){if(void 0===u)return function(e){return h=e,u=setTimeout(E,r),m?b(e):s}(l);if(v)return u=setTimeout(E,r),b(l)}return void 0===u&&(u=setTimeout(E,r)),s}return r=g(r)||0,p(n)&&(m=!!n.leading,a=(v="maxWait"in n)?c(g(n.maxWait)||0,r):a,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==u&&clearTimeout(u),h=0,o=l=i=u=void 0},S.flush=function(){return void 0===u?s:x(f())},S}function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(e))return NaN;if(p(e)){var a="function"==typeof e.valueOf?e.valueOf():e;e=p(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(t,"");var s=n.test(e);return s||o.test(e)?i(e.slice(2),s?2:8):r.test(e)?NaN:+e}return ib=function(t,r,n){var o=!0,i=!0;if("function"!=typeof t)throw new TypeError(e);return p(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),h(t,r,{leading:o,maxWait:r,trailing:i})}}var lb=w(ub());function cb(e,t){return Dg(t)&&bm.hasDOMNode(e,t,{editable:!0})}function db(e,t){return Dg(t)&&bm.hasDOMNode(e,t)}function fb(e,t){return cb(e,t)||function(e,t){if(e.getConfig().readOnly)return!1;var r=db(e,t)&&bm.toSlateNode(e,t);return!!r&&ph.Element.isElement(r)&&ph.Editor.isVoid(e,r)}(e,t)}const hb=e=>"object"==typeof e&&null!=e&&1===e.nodeType,pb=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,gb=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return pb(r.overflowY,t)||pb(r.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},mb=(e,t,r,n,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=r||a>=t&&s>=r?i-e-n:a>t&&s<r||i<e&&s>r?a-t+o:0,vb=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},yb=(e,t)=>{var r,n,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:u,boundary:l,skipOverflowHiddenElements:c}=t,d="function"==typeof l?l:e=>e!==l;if(!hb(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,h=[];let p=e;for(;hb(p)&&d(p);){if(p=vb(p),p===f){h.push(p);break}null!=p&&p===document.body&&gb(p)&&!gb(document.documentElement)||null!=p&&gb(p,c)&&h.push(p)}const g=null!=(n=null==(r=window.visualViewport)?void 0:r.width)?n:innerWidth,m=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:v,scrollY:y}=window,{height:b,width:w,top:E,right:x,bottom:S,left:C}=e.getBoundingClientRect(),{top:A,right:D,bottom:T,left:k}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let O="start"===s||"nearest"===s?E-A:"end"===s?S+T:E+b/2-A+T,N="center"===u?C+w/2-k+D:"end"===u?x+D:C-k;const B=[];for(let e=0;e<h.length;e++){const t=h[e],{height:r,width:n,top:o,right:i,bottom:l,left:c}=t.getBoundingClientRect();if("if-needed"===a&&E>=0&&C>=0&&S<=m&&x<=g&&(t===f&&!gb(t)||E>=o&&S<=l&&C>=c&&x<=i))return B;const d=getComputedStyle(t),p=parseInt(d.borderLeftWidth,10),A=parseInt(d.borderTopWidth,10),D=parseInt(d.borderRightWidth,10),T=parseInt(d.borderBottomWidth,10);let k=0,F=0;const M="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-D:0,I="offsetHeight"in t?t.offsetHeight-t.clientHeight-A-T:0,P="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,R="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(f===t)k="start"===s?O:"end"===s?O-m:"nearest"===s?mb(y,y+m,m,A,T,y+O,y+O+b,b):O-m/2,F="start"===u?N:"center"===u?N-g/2:"end"===u?N-g:mb(v,v+g,g,p,D,v+N,v+N+w,w),k=Math.max(0,k+y),F=Math.max(0,F+v);else{k="start"===s?O-o-A:"end"===s?O-l+T+I:"nearest"===s?mb(o,l,r,A,T+I,O,O+b,b):O-(o+r/2)+I/2,F="start"===u?N-c-p:"center"===u?N-(c+n/2)+M/2:"end"===u?N-i+D+M:mb(c,i,n,p,D+M,N,N+w,w);const{scrollLeft:e,scrollTop:a}=t;k=0===R?0:Math.max(0,Math.min(a+k/R,t.scrollHeight-r/R+I)),F=0===P?0:Math.max(0,Math.min(e+F/P,t.scrollWidth-n/P+M)),O+=a-k,N+=e-F}B.push({el:t,top:k,left:F})}return B};function bb(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const r=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(yb(e,t));const n="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of yb(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-r.top+r.bottom,t=a-r.left+r.right;o.scroll({top:e,left:t,behavior:n})}}function wb(e){null!=e.selection&&(e.selection=null,e.onChange())}function Eb(e,t,r){void 0===r&&(r=!1);var n=t.selection,o=t.getConfig(),i=bm.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||r)&&t.isFocused()){var a="None"!==i.type;if(n||a){var s=pp.get(t),u=!1;if(s.contains(i.anchorNode)&&s.contains(i.focusNode)&&(u=!0),a&&u&&n){var l=bm.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&ph.Range.equals(l,n)){var c=!0;if(ph.Range.isCollapsed(n)){var d=i.anchorNode,f=i.anchorOffset;if(d===s){var h=s.childNodes,p=void 0;(p=h[f])&&p.matches("table")&&(c=!1),(p=h[f-1])&&p.matches("table")&&(c=!1)}}if(c)return}}if(!n||bm.hasRange(t,n)){e.isUpdatingSelection=!0;var g=n&&bm.toDOMRange(t,n);if(g){ph.Range.isBackward(n)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var m=g.startContainer.parentElement;if(!m.closest("[data-slate-spacer]")&&g.getBoundingClientRect){var v=g.getBoundingClientRect.bind(g)();0===v.top&&0===v.right&&0===v.bottom&&0===v.left&&0===v.height&&0===v.width||(m.getBoundingClientRect=g.getBoundingClientRect.bind(g));var y=document.body;bb(m,{scrollMode:"if-needed",boundary:o.scroll&&s.parentElement||y,block:"end",behavior:"smooth"}),delete m.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){g&&dm&&s.focus(),e.isUpdatingSelection=!1})}else t.selection=bm.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var xb=new WeakMap,Sb=new WeakMap;var Cb,Ab={};var Db=function(){if(Cb)return Ab;Cb=1,Object.defineProperty(Ab,"__esModule",{value:!0});for(var e="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),t={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:e?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},n={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)n["f"+o]=111+o;function i(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(e){return a(e,t)}),o=function(e){return n.some(function(t){return s(t,e)})};return null==r?o:o(r)}function a(e,o){var i=o&&o.byKey,a={},s=(e=e.replace("++","+add")).split("+"),c=s.length;for(var d in t)a[t[d]]=!1;var f=!0,h=!1,p=void 0;try{for(var g,m=s[Symbol.iterator]();!(f=(g=m.next()).done);f=!0){var v=g.value,y=v.endsWith("?")&&v.length>1;y&&(v=v.slice(0,-1));var b=l(v),w=t[b];if(v.length>1&&!w&&!r[v]&&!n[b])throw new TypeError('Unknown modifier: "'+v+'"');1!==c&&w||(i?a.key=b:a.which=u(v)),w&&(a[w]=!y||null)}}catch(e){h=!0,p=e}finally{try{!f&&m.return&&m.return()}finally{if(h)throw p}}return a}function s(e,t){for(var r in e){var n=e[r],o=void 0;if(null!=n&&((null!=(o="key"===r&&null!=t.key?t.key.toLowerCase():"which"===r?91===n&&93===t.which?91:t.which:t[r])||!1!==n)&&o!==n))return!1}return!0}function u(e){return e=l(e),n[e]||e.toUpperCase().charCodeAt(0)}function l(e){return e=e.toLowerCase(),e=r[e]||e}return Ab.default=i,Ab.isHotkey=i,Ab.isCodeHotkey=function(e,t){return i(e,t)},Ab.isKeyHotkey=function(e,t){return i(e,{byKey:!0},t)},Ab.parseHotkey=a,Ab.compareHotkey=s,Ab.toKeyCode=u,Ab.toKeyName=l,Ab}(),Tb={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},kb={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},Ob={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Nb=function(e){var t=Tb[e],r=kb[e],n=Ob[e],o=t&&Db.isKeyHotkey(t),i=r&&Db.isKeyHotkey(r),a=n&&Db.isKeyHotkey(n);return function(e){return!(!o||!o(e))||(!!(cm&&i&&i(e))||!(cm||!a||!a(e)))}},Bb={isBold:Nb("bold"),isCompose:Nb("compose"),isMoveBackward:Nb("moveBackward"),isMoveForward:Nb("moveForward"),isDeleteBackward:Nb("deleteBackward"),isDeleteForward:Nb("deleteForward"),isDeleteLineBackward:Nb("deleteLineBackward"),isDeleteLineForward:Nb("deleteLineForward"),isDeleteWordBackward:Nb("deleteWordBackward"),isDeleteWordForward:Nb("deleteWordForward"),isExtendBackward:Nb("extendBackward"),isExtendForward:Nb("extendForward"),isExtendLineBackward:Nb("extendLineBackward"),isExtendLineForward:Nb("extendLineForward"),isItalic:Nb("italic"),isMoveLineBackward:Nb("moveLineBackward"),isMoveLineForward:Nb("moveLineForward"),isMoveWordBackward:Nb("moveWordBackward"),isMoveWordForward:Nb("moveWordForward"),isRedo:Nb("redo"),isSplitBlock:Nb("splitBlock"),isTransposeCharacter:Nb("transposeCharacter"),isUndo:Nb("undo"),isTab:Nb("tab"),isSelectAll:Nb("selectAll")};function Fb(e){e.preventDefault()}var Mb={beforeinput:function(e,t,r){var n,o=e,i=r.getConfig().readOnly;if(mm&&!i&&cb(r,o.target)){null===(n=t.flushDOMSelectionChange)||void 0===n||n.call(t);var a=r.selection,s=o.inputType,u=o.dataTransfer||o.data||void 0;if("insertCompositionText"!==s&&"deleteCompositionText"!==s){if(o.preventDefault(),!s.startsWith("delete")||s.startsWith("deleteBy")){var l=Ch(o.getTargetRanges(),1)[0];if(l){var c=bm.toSlateRange(r,l,{exactMatch:!1,suppressThrow:!1});a&&ph.Range.equals(a,c)||ph.Transforms.select(r,c)}}if(a&&ph.Range.isExpanded(a)){var d=bm.getSelectedElems(r),f="table"===d[0].type,h="table-cell"!==d[d.length-1].type;if(f&&h)return;if(s.startsWith("delete")){var p=s.endsWith("Backward")?"backward":"forward";return void ph.Editor.deleteFragment(r,{direction:p})}}switch(s){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":ph.Editor.deleteFragment(r);break;case"deleteContent":case"deleteContentForward":ph.Editor.deleteForward(r);break;case"deleteContentBackward":ph.Editor.deleteBackward(r);break;case"deleteEntireSoftLine":ph.Editor.deleteBackward(r,{unit:"line"}),ph.Editor.deleteForward(r,{unit:"line"});break;case"deleteHardLineBackward":ph.Editor.deleteBackward(r,{unit:"block"});break;case"deleteSoftLineBackward":ph.Editor.deleteBackward(r,{unit:"line"});break;case"deleteHardLineForward":ph.Editor.deleteForward(r,{unit:"block"});break;case"deleteSoftLineForward":ph.Editor.deleteForward(r,{unit:"line"});break;case"deleteWordBackward":ph.Editor.deleteBackward(r,{unit:"word"});break;case"deleteWordForward":ph.Editor.deleteForward(r,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":ph.Editor.insertBreak(r);break;case"insertFromDrop":case"insertFromComposition":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromComposition"===s&&(t.isComposing=!1,Cp.set(r,!0)),"insertFromPaste"===s&&!Sp.get(r))break;"[object DataTransfer]"===xg(u)?r.insertData(u):"string"==typeof u&&ph.Editor.insertText(r,u)}}}},blur:function(e,t,r){var n=e,o=t.isUpdatingSelection,i=t.latestElement;if(!r.getConfig().readOnly&&!o&&cb(r,n.target)){var a=bm.findDocumentOrShadowRoot(r);if(i!==a.activeElement){var s=n.relatedTarget;if(!(s===bm.toDOMNode(r,r)||kg(s)&&s.hasAttribute("data-slate-spacer"))){if(null!=s&&Dg(s)&&bm.hasDOMNode(r,s)){var u=bm.toSlateNode(r,s);if(ph.Element.isElement(u)&&!r.isVoid(u))return}if(fm){var l=a.getSelection();null==l||l.removeAllRanges()}wp.delete(r)}}}},focus:function(e,t,r){var n=bm.toDOMNode(r,r),o=bm.findDocumentOrShadowRoot(r);t.latestElement=o.activeElement,dm&&e.target!==n?n.focus():wp.set(r,!0)},click:function(e,t,r){if(!r.getConfig().readOnly&&db(r,e.target)&&Dg(e.target)){var n=bm.toSlateNode(r,e.target),o=bm.findPath(r,n);if(ph.Editor.hasPath(r,o))if(ph.Node.get(r,o)===n){var i=ph.Editor.start(r,o),a=ph.Editor.end(r,o),s=ph.Editor.void(r,{at:i}),u=ph.Editor.void(r,{at:a});if(s&&u&&ph.Path.equals(s[1],u[1])){var l=ph.Editor.range(r,i);ph.Transforms.select(r,l)}}}},compositionstart:function(e,t,r){if(cb(r,e.target)){Ap.delete(r);var n=r.selection;if(n&&ph.Range.isExpanded(n)&&(ph.Editor.deleteFragment(r),Promise.resolve().then(function(){Eb(t,r,!0)})),r.selection){var o=bm.toDOMRange(r,r.selection).startContainer,i=o.textContent||"";xb.set(r,i),Sb.set(r,o)}t.isComposing=!0,function(e,t){var r;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(r=e.$placeholder)||void 0===r||r.hide(),e.showPlaceholder=!1)}(t,r)}},compositionend:function(e,t,r){var n=e;if(cb(r,n.target)){t.isComposing=!1;var o=!0===Cp.get(r);o?(Cp.delete(r),Ap.delete(r)):Ap.delete(r);var i=r.selection;if(null!=i){(gm||dm)&&bm.cleanExposedTexNodeInSelectionBlock(r);for(var a=ph.Range.isBackward(i)?i.focus:i.anchor,s=Ch(ph.Editor.node(r,[a.path[0]]),1)[0],u=0;u<a.path.length;u+=1){var l=Ch(ph.Editor.node(r,a.path.slice(0,u+1)),1)[0];if(ph.Element.isElement(l)&&((fm||dm)&&"link"===l.type||"code"===l.type)){bm.setNewKey(s);break}}var c=n.data;if(c&&!o){if(r.getConfig().maxLength){var d=bm.getLeftLengthOfMaxLength(r);if(d<c.length){var f=bm.toDOMRange(r,i);f.startContainer.nodeType===Node.TEXT_NODE&&(f.startContainer.textContent=xb.get(r)||""),d>0&&ph.Editor.insertText(r,c.slice(0,d)),t.changeViewState()}else ph.Editor.insertText(r,c)}else{var h=bm.findDocumentOrShadowRoot(r).getSelection();h&&function(e,t){if(ph.Range.isCollapsed(t)){var r=t.anchor,n=t.focus;if([2,3].includes(r.path.length)&&[2,3].includes(n.path.length)&&(0===r.offset||0===n.offset)){var o=ph.Editor.node(e,r.path),i=0===r.offset?r.path:n.path,a=[i[0],i[1]-1];if(0===i[1])return!1;var s=ph.Editor.node(e,a);if(ph.Text.isText(s[0])&&ph.Text.isText(o[0]))return!0}}}(r,i)&&(r.selection=bm.toSlateRange(r,h,{exactMatch:!1,suppressThrow:!1})),ph.Editor.insertText(r,c)}fm||setTimeout(function(){var e=r.selection;if(null!=e){var t=Sb.get(r);if(null!=t)bm.toDOMRange(r,e).startContainer!==t&&(t.textContent=xb.get(r)||"")}})}}}},compositionupdate:function(e,t,r){cb(r,e.target)&&(t.isComposing=!0)},keydown:function(e,t,r){var n=e,o=r.selection;if(!r.getConfig().readOnly&&!t.isComposing&&cb(r,n.target)){if(function(e,t){var r=ep.get(e),n=r&&r.getMenus(),o=rp.get(e),i=o&&o.getMenus(),a=wh(wh({},n),i);for(var s in a){var u=a[s],l=u.hotkey;if(l&&Db.isHotkey(l,t)&&!u.isDisabled(e)){var c=u.getValue(e);u.exec(e,c)}}}(r,n),Bb.isTab(n))return Fb(n),void r.handleTab();if(Bb.isRedo(n))return Fb(n),void("function"==typeof r.redo&&r.redo());if(Bb.isUndo(n))return Fb(n),void("function"==typeof r.undo&&r.undo());if(Bb.isMoveLineBackward(n))return Fb(n),void ph.Transforms.move(r,{unit:"line",reverse:!0});if(Bb.isMoveLineForward(n))return Fb(n),void ph.Transforms.move(r,{unit:"line"});if(Bb.isExtendLineBackward(n))return Fb(n),void ph.Transforms.move(r,{unit:"line",edge:"focus",reverse:!0});if(Bb.isExtendLineForward(n))return Fb(n),void ph.Transforms.move(r,{unit:"line",edge:"focus"});if(Bb.isMoveBackward(n))return Fb(n),void(o&&ph.Range.isCollapsed(o)?ph.Transforms.move(r,{reverse:!0}):ph.Transforms.collapse(r,{edge:"start"}));if(Bb.isMoveForward(n))return Fb(n),void(o&&ph.Range.isCollapsed(o)?ph.Transforms.move(r):ph.Transforms.collapse(r,{edge:"end"}));if(Bb.isMoveWordBackward(n))return Fb(n),o&&ph.Range.isExpanded(o)&&ph.Transforms.collapse(r,{edge:"focus"}),void ph.Transforms.move(r,{unit:"word",reverse:!0});if(Bb.isMoveWordForward(n))return Fb(n),o&&ph.Range.isExpanded(o)&&ph.Transforms.collapse(r,{edge:"focus"}),void ph.Transforms.move(r,{unit:"word"});if(Bb.isSelectAll(n))return Fb(n),void r.selectAll();if(mm){if((gm||fm)&&o&&(Bb.isDeleteBackward(n)||Bb.isDeleteForward(n))&&ph.Range.isCollapsed(o)){var i=ph.Node.parent(r,o.anchor.path);if(ph.Element.isElement(i)&&ph.Editor.isVoid(r,i)&&ph.Editor.isInline(r,i))return n.preventDefault(),void ph.Transforms.delete(r,{unit:"block"})}}else{if(Bb.isBold(n)||Bb.isItalic(n)||Bb.isTransposeCharacter(n))return void Fb(n);if(Bb.isSplitBlock(n))return Fb(n),void ph.Editor.insertBreak(r);if(Bb.isDeleteBackward(n))return Fb(n),void(o&&ph.Range.isExpanded(o)?ph.Editor.deleteFragment(r,{direction:"backward"}):ph.Editor.deleteBackward(r));if(Bb.isDeleteForward(n))return Fb(n),void(o&&ph.Range.isExpanded(o)?ph.Editor.deleteFragment(r,{direction:"forward"}):ph.Editor.deleteForward(r));if(Bb.isDeleteLineBackward(n))return Fb(n),void(o&&ph.Range.isExpanded(o)?ph.Editor.deleteFragment(r,{direction:"backward"}):ph.Editor.deleteBackward(r,{unit:"line"}));if(Bb.isDeleteLineForward(n))return Fb(n),void(o&&ph.Range.isExpanded(o)?ph.Editor.deleteFragment(r,{direction:"forward"}):ph.Editor.deleteForward(r,{unit:"line"}));if(Bb.isDeleteWordBackward(n))return Fb(n),void(o&&ph.Range.isExpanded(o)?ph.Editor.deleteFragment(r,{direction:"backward"}):ph.Editor.deleteBackward(r,{unit:"word"}));if(Bb.isDeleteWordForward(n))return Fb(n),void(o&&ph.Range.isExpanded(o)?ph.Editor.deleteFragment(r,{direction:"forward"}):ph.Editor.deleteForward(r,{unit:"word"}))}}},keypress:function(e,t,r){if(!mm&&!r.getConfig().readOnly&&cb(r,e.target)){e.preventDefault();var n=e.key;ph.Editor.insertText(r,n)}},copy:function(e,t,r){var n=e;if(cb(r,n.target)){r.getConfig().readOnly||n.preventDefault();var o=n.clipboardData;if(null!=o){r.setFragmentData(o);var i=r.getConfig().customCopy;i&&i(r,n)}}},cut:function(e,t,r){var n=e,o=r.selection;if(!r.getConfig().readOnly&&(n.preventDefault(),cb(r,n.target))){var i=n.clipboardData;if(null!=i&&(r.setFragmentData(i),o))if(ph.Range.isExpanded(o))ph.Editor.deleteFragment(r);else{var a=ph.Node.parent(r,o.anchor.path);ph.Element.isElement(a)&&ph.Editor.isVoid(r,a)&&ph.Transforms.delete(r)}}},paste:function(e,t,r){Sp.set(r,!0);var n=e;if(!r.getConfig().readOnly&&cb(r,n.target)){var o=r.getConfig().customPaste;if(o)if(!1===o(r,n))return Sp.set(r,!1),void n.preventDefault();if(fm||!mm||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(n)){n.preventDefault();var i=n.clipboardData;null!=i&&r.insertData(i)}}},dragover:function(e,t,r){if(db(r,e.target)){var n=bm.toSlateNode(r,e.target);ph.Element.isElement(n)&&ph.Editor.isVoid(r,n)&&e.preventDefault()}},dragstart:function(e,t,r){var n=e;if(db(r,n.target)&&!r.getConfig().readOnly){var o=bm.toSlateNode(r,n.target),i=bm.findPath(r,o);if(ph.Element.isElement(o)&&ph.Editor.isVoid(r,o)||ph.Editor.void(r,{at:i,voids:!0})){var a=ph.Editor.range(r,i);ph.Transforms.select(r,a)}var s=n.dataTransfer;if(null!=s)bm.getSelectedNodeByType(r,"table")||(t.isDraggingInternally=!0,r.setFragmentData(s))}},dragend:function(e,t,r){var n=e;r.getConfig().readOnly||t.isDraggingInternally&&db(r,n.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,r){var n=e,o=n.dataTransfer;if(!r.getConfig().readOnly&&db(r,n.target)&&null!=o&&!(mm&&fm&&o.files.length>0)){n.preventDefault();var i=r.selection,a=bm.findEventRange(r,n);ph.Transforms.select(r,a),t.isDraggingInternally&&(i&&ph.Transforms.delete(r,{at:i}),t.isDraggingInternally=!1),r.insertData(o),r.isFocused()||r.focus()}}};function Ib(e){if(Pb(e)){for(;e&&Pb(e);){e=Rb(e).parent}return null!=e?e:null}return e.parentNode}function Pb(e){return 11===e.nodeType}function Rb(e,t){var r,n,o;const i=e;return null!==(r=i.parent)&&void 0!==r||(i.parent=null!=t?t:null),null!==(n=i.firstChildNode)&&void 0!==n||(i.firstChildNode=e.firstChild),null!==(o=i.lastChildNode)&&void 0!==o||(i.lastChildNode=e.lastChild),i}const Lb={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,r){return document.createElementNS(e,t,r)},createTextNode:function(e){return document.createTextNode(e)},createDocumentFragment:function(){return Rb(document.createDocumentFragment())},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,r){if(Pb(e)){let t=e;for(;t&&Pb(t);){t=Rb(t).parent}e=null!=t?t:e}Pb(t)&&(t=Rb(t,e)),r&&Pb(r)&&(r=Rb(r).firstChildNode),e.insertBefore(t,r)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){Pb(t)&&(t=Rb(t,e)),e.appendChild(t)},parentNode:Ib,nextSibling:function(e){var t;if(Pb(e)){const r=Rb(e),n=Ib(r);if(n&&r.lastChildNode){const e=Array.from(n.childNodes),o=e.indexOf(r.lastChildNode);return null!==(t=e[o+1])&&void 0!==t?t:null}return null}return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType},isDocumentFragment:Pb};function _b(e,t,r,n,o){return{sel:e,data:t,children:r,text:n,elm:o,key:void 0===t?void 0:t.key}}const zb=Array.isArray;function jb(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}const Hb=_b("",{},[],void 0,void 0);function $b(e,t){var r,n;const o=e.key===t.key,i=(null===(r=e.data)||void 0===r?void 0:r.is)===(null===(n=t.data)||void 0===n?void 0:n.is),a=e.sel===t.sel,s=!(!e.sel&&e.sel===t.sel)||typeof e.text==typeof t.text;return a&&o&&i&&s}function Ub(e,t,r){var n;const o={};for(let i=t;i<=r;++i){const t=null===(n=e[i])||void 0===n?void 0:n.key;void 0!==t&&(o[t]=i)}return o}const Vb=["create","update","remove","destroy","pre","post"];function qb(e,t,r){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},o=Lb;for(const t of Vb)for(const r of e){const e=r[t];void 0!==e&&n[t].push(e)}function i(e){const t=e.id?"#"+e.id:"",r=e.getAttribute("class"),n=r?"."+r.split(" ").join("."):"";return _b(o.tagName(e).toLowerCase()+t+n,{},[],void 0,e)}function a(e){return _b(void 0,{},[],void 0,e)}function s(e,t){return function(){if(0===--t){const t=o.parentNode(e);null!==t&&o.removeChild(t,e)}}}function u(e,t){var r,i,a;let s;const l=e.data,c=null==l?void 0:l.hook;null===(r=null==c?void 0:c.init)||void 0===r||r.call(c,e);const d=e.children,f=e.sel;if("!"===f)null!==(i=e.text)&&void 0!==i||(e.text=""),e.elm=o.createComment(e.text);else if(""===f)e.elm=o.createTextNode(e.text);else if(void 0!==f){const r=f.indexOf("#"),i=f.indexOf(".",r),h=r>0?r:f.length,p=i>0?i:f.length,g=-1!==r||-1!==i?f.slice(0,Math.min(h,p)):f,m=null==l?void 0:l.ns,v=void 0===m?o.createElement(g,l):o.createElementNS(m,g,l);for(e.elm=v,h<p&&v.setAttribute("id",f.slice(h+1,p)),i>0&&v.setAttribute("class",f.slice(p+1).replace(/\./g," ")),s=0;s<n.create.length;++s)n.create[s](Hb,e);if(!jb(e.text)||zb(d)&&0!==d.length||o.appendChild(v,o.createTextNode(e.text)),zb(d))for(s=0;s<d.length;++s){const e=d[s];null!=e&&o.appendChild(v,u(e,t))}void 0!==c&&(null===(a=c.create)||void 0===a||a.call(c,Hb,e),void 0!==c.insert&&t.push(e))}else e.elm=o.createTextNode(e.text);return e.elm}function l(e,t,r,n,i,a){for(;n<=i;++n){const i=r[n];null!=i&&o.insertBefore(e,u(i,a),t)}}function c(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const r=e.children[t];null!=r&&"string"!=typeof r&&c(r)}}}function d(e,t,r,i){for(var a,u;r<=i;++r){let i;const l=t[r];if(null!=l)if(void 0!==l.sel){c(l),i=n.remove.length+1;const e=s(l.elm,i);for(let t=0;t<n.remove.length;++t)n.remove[t](l,e);const t=null===(u=null===(a=null==l?void 0:l.data)||void 0===a?void 0:a.hook)||void 0===u?void 0:u.remove;void 0!==t?t(l,e):e()}else l.children?(c(l),d(e,l.children,0,l.children.length-1)):o.removeChild(e,l.elm)}}function f(e,t,r){var i,a,s,c,h,p,g,m;const v=null===(i=t.data)||void 0===i?void 0:i.hook;null===(a=null==v?void 0:v.prepatch)||void 0===a||a.call(v,e,t);const y=t.elm=e.elm;if(e===t)return;if(void 0!==t.data||void 0!==t.text&&t.text!==e.text){null!==(s=t.data)&&void 0!==s||(t.data={}),null!==(c=e.data)&&void 0!==c||(e.data={});for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(g=null===(p=null===(h=t.data)||void 0===h?void 0:h.hook)||void 0===p?void 0:p.update)||void 0===g||g.call(p,e,t)}const b=e.children,w=t.children;void 0===t.text?void 0!==b&&void 0!==w?b!==w&&function(e,t,r,n){let i,a,s,c,h=0,p=0,g=t.length-1,m=t[0],v=t[g],y=r.length-1,b=r[0],w=r[y];for(;h<=g&&p<=y;)null==m?m=t[++h]:null==v?v=t[--g]:null==b?b=r[++p]:null==w?w=r[--y]:$b(m,b)?(f(m,b,n),m=t[++h],b=r[++p]):$b(v,w)?(f(v,w,n),v=t[--g],w=r[--y]):$b(m,w)?(f(m,w,n),o.insertBefore(e,m.elm,o.nextSibling(v.elm)),m=t[++h],w=r[--y]):$b(v,b)?(f(v,b,n),o.insertBefore(e,v.elm,m.elm),v=t[--g],b=r[++p]):(void 0===i&&(i=Ub(t,h,g)),a=i[b.key],void 0===a?(o.insertBefore(e,u(b,n),m.elm),b=r[++p]):void 0===i[w.key]?(o.insertBefore(e,u(w,n),o.nextSibling(v.elm)),w=r[--y]):(s=t[a],s.sel!==b.sel?o.insertBefore(e,u(b,n),m.elm):(f(s,b,n),t[a]=void 0,o.insertBefore(e,s.elm,m.elm)),b=r[++p]));p<=y&&(c=null==r[y+1]?null:r[y+1].elm,l(e,c,r,p,y,n)),h<=g&&d(e,t,h,g)}(y,b,w,r):void 0!==w?(void 0!==e.text&&o.setTextContent(y,""),l(y,null,w,0,w.length-1,r)):void 0!==b?d(y,b,0,b.length-1):void 0!==e.text&&o.setTextContent(y,""):e.text!==t.text&&(void 0!==b&&d(y,b,0,b.length-1),o.setTextContent(y,t.text)),null===(m=null==v?void 0:v.postpatch)||void 0===m||m.call(v,e,t)}return function(e,t){let r,s,l;const c=[];for(r=0;r<n.pre.length;++r)n.pre[r]();for(!function(e,t){return e.isElement(t)}(o,e)?function(e,t){return e.isDocumentFragment(t)}(o,e)&&(e=a(e)):e=i(e),$b(e,t)?f(e,t,c):(s=e.elm,l=o.parentNode(s),u(t,c),null!==l&&(o.insertBefore(l,t.elm,o.nextSibling(s)),d(l,[e],0,0))),r=0;r<c.length;++r)c[r].data.hook.insert(c[r]);for(r=0;r<n.post.length;++r)n.post[r]();return t}}function Gb(e,t,r){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==t)for(let e=0;e<t.length;++e){const r=t[e];if("string"==typeof r)continue;const n=r.data;void 0!==n&&Gb(n,r.children,r.sel)}}function Wb(e,t,r){let n,o,i,a={};if(void 0!==r?(null!==t&&(a=t),zb(r)?n=r:jb(r)?o=r.toString():r&&r.sel&&(n=[r])):null!=t&&(zb(t)?n=t:jb(t)?o=t.toString():t&&t.sel?n=[t]:a=t),void 0!==n)for(i=0;i<n.length;++i)jb(n[i])&&(n[i]=_b(void 0,void 0,void 0,n[i],void 0));return!e.startsWith("svg")||3!==e.length&&"."!==e[3]&&"#"!==e[3]||Gb(a,n,e),_b(e,a,n,o,void 0)}function Yb(e,t){let r;const n=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(r in o=o||{},i=i||{},i){const e=i[r];o[r]!==e&&(!0===e?n.setAttribute(r,""):!1===e?n.removeAttribute(r):120!==r.charCodeAt(0)?n.setAttribute(r,e):58===r.charCodeAt(3)?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,e):58===r.charCodeAt(5)?109===r.charCodeAt(1)?n.setAttributeNS("http://www.w3.org/2000/xmlns/",r,e):n.setAttributeNS("http://www.w3.org/1999/xlink",r,e):n.setAttribute(r,e))}for(r in o)r in i||n.removeAttribute(r)}}const Kb={create:Yb,update:Yb};function Xb(e,t){let r,n;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(n in i=i||{},a=a||{},i)i[n]&&!Object.prototype.hasOwnProperty.call(a,n)&&o.classList.remove(n);for(n in a)r=a[n],r!==i[n]&&o.classList[r?"add":"remove"](n)}}const Zb={create:Xb,update:Xb},Jb=/[A-Z]/g;function Qb(e,t){const r=t.elm;let n,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=r.dataset;for(n in o)n in i||(a?n in a&&delete a[n]:r.removeAttribute("data-"+n.replace(Jb,"-$&").toLowerCase()));for(n in i)o[n]!==i[n]&&(a?a[n]=i[n]:r.setAttribute("data-"+n.replace(Jb,"-$&").toLowerCase(),i[n]))}const ew={create:Qb,update:Qb};function tw(e,t,r){if("function"==typeof e)e.call(t,r,t);else if("object"==typeof e)for(let n=0;n<e.length;n++)tw(e[n],t,r)}function rw(e,t){const r=e.type,n=t.data.on;n&&n[r]&&tw(n[r],t,e)}function nw(e,t){const r=e.data.on,n=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let s;if(r!==i){if(r&&n)if(i)for(s in r)i[s]||o.removeEventListener(s,n,!1);else for(s in r)o.removeEventListener(s,n,!1);if(i){const n=t.listener=e.listener||function e(t){rw(t,e.vnode)};if(n.vnode=t,r)for(s in i)r[s]||a.addEventListener(s,n,!1);else for(s in i)a.addEventListener(s,n,!1)}}}const ow={create:nw,update:nw,destroy:nw};function iw(e,t){let r,n,o;const i=t.elm;let a=e.data.props,s=t.data.props;if((a||s)&&a!==s)for(r in a=a||{},s=s||{},s)n=s[r],o=a[r],o===n||"value"===r&&i[r]===n||(i[r]=n)}const aw={create:iw,update:iw},sw="function"==typeof(null===window||void 0===window?void 0:window.requestAnimationFrame)?window.requestAnimationFrame.bind(window):setTimeout;let uw=!1;function lw(e,t,r){var n;n=()=>{e[t]=r},sw(()=>{sw(n)})}function cw(e,t){let r,n;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const s="delayed"in i;for(n in i)n in a||("-"===n[0]&&"-"===n[1]?o.style.removeProperty(n):o.style[n]="");for(n in a)if(r=a[n],"delayed"===n&&a.delayed)for(const e in a.delayed)r=a.delayed[e],s&&r===i.delayed[e]||lw(o.style,e,r);else"remove"!==n&&r!==i[n]&&("-"===n[0]&&"-"===n[1]?o.style.setProperty(n,r):o.style[n]=r)}const dw={pre:function(){uw=!1},create:cw,update:cw,destroy:function(e){let t,r;const n=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(r in t)n.style[r]=t[r]},remove:function(e,t){const r=e.data.style;if(!r||!r.remove)return void t();let n;uw||(e.elm.offsetLeft,uw=!0);const o=e.elm;let i=0;const a=r.remove;let s=0;const u=[];for(n in a)u.push(n),o.style[n]=a[n];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==u.indexOf(l[i])&&s++;o.addEventListener("transitionend",e=>{e.target===o&&--s,0===s&&t()})}};function fw(e,t){for(const r of e)null!=r&&!1!==r&&""!==r&&(Array.isArray(r)?fw(r,t):"string"==typeof r||"number"==typeof r||"boolean"==typeof r?t.push(_b(void 0,void 0,void 0,String(r),void 0)):t.push(r));return t}function hw(e,t,...r){const n=fw(r,[]);return"function"==typeof e?e(t,n):1===n.length&&!n[0].sel&&n[0].text?Wb(e,t,n[0].text):Wb(e,t,n)}var pw=[];var gw,mw,vw={};function yw(e,t,r){return hw(r.isInline(e)?"span":"div",null,t)}function bw(e,t){var r,n=bm.findKey(t,e),o=t.isInline(e),i=ph.Editor.isVoid(t,e),a=Qg(e.type,n.id),s={id:a,key:n.id,"data-slate-node":"element","data-slate-inline":o},u=e.type,l=e.children,c=void 0===l?[]:l,d=function(e){return vw[e]||yw}(u);r=i?null:c.map(function(r,n){return Sw(r,n,e,t)});var f=d(e,r,t);if(i){s["data-slate-void"]=!0;var h=o?"span":"div",p=Ch(ph.Node.texts(e),1),g=Ch(p[0],1)[0],m=hw(h,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},Sw(g,0,e,t));f=hw(h,{style:{position:"relative"}},f,m),fp.set(g,0),hp.set(g,e)}return null==f.data&&(f.data={}),Object.assign(f.data,s),i||o||(f=function(e,t){var r=t;return pw.forEach(function(n){r=n(e,t)}),r}(e,f)),wg(function(){var t=Bg(a);null!=t&&(mp.set(n,t),vp.set(e,t),gp.set(t,e))}),f}function ww(e,t){return void 0===t&&(t=!1),hw("span",{"data-slate-string":!0},t?e+"\n":e)}function Ew(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),hw("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?hw("br",null):null)}function xw(e,t,r){if(null==e.text)throw new Error("Current node is not slate Text ".concat(JSON.stringify(e)));var n=bm.findKey(r,e),o=r.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i,a=bm.findPath(r,e),s=o([e,a]),u=ph.Text.decorations(e,s),l=u.map(function(n){var o,i,a,s=n.leaf,l=n.position,c=function(e,t,r,n,o){void 0===t&&(t=!1);var i=e.text,a=bm.findPath(o,r),s=ph.Path.parent(a);if(ph.Editor.isEditor(n))throw new Error("Text node ".concat(JSON.stringify(r)," parent is Editor"));return o.isVoid(n)?Ew(ph.Node.string(n).length):""!==i||n.children[n.children.length-1]!==r||o.isInline(n)||""!==ph.Editor.string(o,s)?""===i?Ew():t&&"\n"===i.slice(-1)?ww(i,!0):ww(i):Ew(0,!0)}(s,null!==(o=null==l?void 0:l.isLast)&&void 0!==o?o:1===u.length,e,t,r);return i=s,a=c,pw.forEach(function(e){a=e(i,a)}),hw("span",{"data-slate-leaf":!0},c=a)}),c=(i=n.id,"w-e-text-".concat(i)),d=hw("span",{"data-slate-node":"text",id:c,key:n.id},l);return wg(function(){var t=Bg(c);null!=t&&(mp.set(n,t),vp.set(e,t),gp.set(t,e))}),d}function Sw(e,t,r,n){return fp.set(e,t),hp.set(e,r),ph.Element.isElement(e)?bw(e,n):xw(e,r,n)}var Cw=function(){if(mw)return gw;mw=1;var e,t="[object Symbol]",r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\ud800-\\udfff",i="\\u0300-\\u036f\\ufe20-\\ufe23",a="\\u20d0-\\u20f0",s="\\u2700-\\u27bf",u="a-z\\xdf-\\xf6\\xf8-\\xff",l="A-Z\\xc0-\\xd6\\xd8-\\xde",c="\\ufe0e\\ufe0f",d="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",f="['’]",h="["+o+"]",p="["+d+"]",g="["+i+a+"]",m="\\d+",v="["+s+"]",y="["+u+"]",w="[^"+o+d+m+s+u+l+"]",E="\\ud83c[\\udffb-\\udfff]",x="[^"+o+"]",S="(?:\\ud83c[\\udde6-\\uddff]){2}",C="[\\ud800-\\udbff][\\udc00-\\udfff]",A="["+l+"]",D="\\u200d",T="(?:"+y+"|"+w+")",k="(?:"+A+"|"+w+")",O="(?:['’](?:d|ll|m|re|s|t|ve))?",N="(?:['’](?:D|LL|M|RE|S|T|VE))?",B="(?:"+g+"|"+E+")"+"?",F="["+c+"]?",M=F+B+("(?:"+D+"(?:"+[x,S,C].join("|")+")"+F+B+")*"),I="(?:"+[v,S,C].join("|")+")"+M,P="(?:"+[x+g+"?",g,S,C,h].join("|")+")",R=RegExp(f,"g"),L=RegExp(g,"g"),_=RegExp(E+"(?="+E+")|"+P+M,"g"),z=RegExp([A+"?"+y+"+"+O+"(?="+[p,A,"$"].join("|")+")",k+"+"+N+"(?="+[p,A+T,"$"].join("|")+")",A+"?"+T+"+"+O,A+"+"+N,m,I].join("|"),"g"),j=RegExp("["+D+o+i+a+c+"]"),H=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$="object"==typeof b&&b&&b.Object===Object&&b,U="object"==typeof self&&self&&self.Object===Object&&self,V=$||U||Function("return this")(),q=(e={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(t){return null==e?void 0:e[t]});function G(e){return j.test(e)}function W(e){return G(e)?function(e){return e.match(_)||[]}(e):function(e){return e.split("")}(e)}var Y=Object.prototype.toString,K=V.Symbol,X=K?K.prototype:void 0,Z=X?X.toString:void 0;function J(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&Y.call(e)==t}(e))return Z?Z.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}function Q(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}(e,t,r)}function ee(e){return null==e?"":J(e)}var te,re,ne=(te=function(e,t,r){return t=t.toLowerCase(),e+(r?oe(ee(t).toLowerCase()):t)},function(e){return function(e,t,r){for(var n=-1,o=e?e.length:0;++n<o;)r=t(r,e[n],n,e);return r}(function(e,t){return e=ee(e),void 0===t?function(e){return H.test(e)}(e)?function(e){return e.match(z)||[]}(e):function(e){return e.match(r)||[]}(e):e.match(t)||[]}(function(e){return(e=ee(e))&&e.replace(n,q).replace(L,"")}(e).replace(R,"")),te,"")}),oe=(re="toUpperCase",function(e){var t=G(e=ee(e))?W(e):void 0,r=t?t[0]:e.charAt(0),n=t?Q(t,1).join(""):e.slice(1);return r[re]()+n});return gw=ne}(),Aw=w(Cw);var Dw=["props","attrs","style","dataset","on","hook"];function Tw(e){var t=e.data,r=void 0===t?{}:t,n=e.children,o=void 0===n?[]:n;Object.keys(r).forEach(function(t){var n,o,i=r[t];if("key"!==t){if(!Dw.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=Aw(a),function(e,t){null==e.data&&(e.data={});var r=e.data;null==r.dataset&&(r.dataset={});Object.assign(r.dataset,t)}(e,((n={})[a]=i,n)),void delete r[t]}!function(e,t){null==e.data&&(e.data={});var r=e.data;null==r.props&&(r.props={});Object.assign(r.props,t)}(e,(o={},o[t]=i,o)),delete r[t]}}else e.key=i}),o.length>0&&o.forEach(function(e){"string"!=typeof e&&Tw(e)})}function kw(e,t){var r,n,o=e.$scroll,i=(r=e.id,"w-e-textarea-".concat(r)),a=t.getConfig(),s=a.readOnly,u=a.autoFocus,l=function(e,t){return void 0===t&&(t=!1),Wb("div#".concat(e),{props:{contentEditable:!t}})}(i,s),c=t.children||[];l.children=c.map(function(e,r){if(cp.has(e)){var n=cp.get(e);if(n){var o=Ch(n,2),i=o[0],a=o[1];if(a)return i!==r&&(fp.set(e,r),cp.set(e,[r,a])),a}}var s=Sw(e,r,t,t);Tw(s);var u=t.getConfig().skipCacheTypes,l=void 0===u?["list-item"]:u;return ph.Element.isElement(e)&&l.includes(e.type)||cp.set(e,[r,s]),s});var d=sp.get(e);if(null==d&&(d=!0),d){var f=function(e){return _p('<div\n id="'.concat(e,'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>'))}(i);o.append(f),e.$textArea=f,n=f[0],(p=qb([Zb,aw,dw,ew,ow,Kb]))(n,l),sp.set(e,!1),up.set(e,p)}else{var h=lp.get(e),p=up.get(e);if(null==h||null==p)return;n=h.elm,p(h,l)}if(null!=n||null!=(n=Bg(i))){var g;if((d?u:t.isFocused())&&n.focus({preventScroll:!0}),d){var m=(g=n)&&g.ownerDocument&&g.ownerDocument.defaultView||null;m&&bp.set(t,m)}pp.set(t,n),vp.set(t,n),gp.set(n,t),lp.set(e,l)}}var Ow=1,Nw=function(){function e(e){var t=this;this.selectionChangeRoot=null,this.destroyed=!1,this.id=Ow++,this.$textArea=null,this.$progressBar=_p('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=_p('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=lb(function(e){var r=kg(null==e?void 0:e.target)?e.target:null,n=null==r?void 0:r.tagName;if("INPUT"!==n&&"TEXTAREA"!==n){var o=t.getActiveEditor();null!=o&&function(e,t){var r=e.isComposing,n=e.isUpdatingSelection,o=e.isDraggingInternally,i=t.getConfig();if(!n&&!o){var a=bm.findDocumentOrShadowRoot(t),s=a.activeElement,u=bm.toDOMNode(t,t),l=a.getSelection();if(s!==u)return wp.delete(t),void wb(t);if(e.latestElement=s,wp.set(t,!0),!l)return wb(t);var c=l.anchorNode,d=l.focusNode,f=fb(t,c),h=db(t,d);if(!r)if(f&&h){var p=bm.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0});p&&ph.Transforms.select(t,p)}else i.readOnly&&wb(t)}}(t,o)}},100);var r=_p(e);if(0===r.length)throw new Error("Cannot find textarea DOM by selector '".concat(e,"'"));this.$box=r;var n=_p('<div class="w-e-text-container"></div>');n.append(this.$progressBar),n.append(this.$maxLengthInfo),r.append(n);var o=_p('<div class="w-e-scroll"></div>');n.append(o),this.$scroll=o,this.$textAreaContainer=n,wg(function(){var e=t.getActiveEditor();if(null!=e){t.bindSelectionChange(e),n.on("click",function(){return e.hidePanelOrModal()}),e.on(Uh,t.changeViewState.bind(t));var o=e.getConfig(),i=o.onChange,a=o.scroll;i&&e.on(Uh,function(){return i(e)}),a||(r.css("position","relative"),n.addClass("no-scroll")),t.onFocusAndOnBlur(),e.on(Uh,t.changeMaxLengthInfo.bind(t)),t.bindEvent()}})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=Jh.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.getActiveEditor=function(){if(this.destroyed)return null;var e=Jh.get(this);return null==e||e.isDestroyed?null:e},e.prototype.bindSelectionChange=function(e,t){var r=this;if(void 0===t&&(t=5),null==this.selectionChangeRoot&&!e.isDestroyed){try{var n=bm.findDocumentOrShadowRoot(e);n.addEventListener("selectionchange",this.onDOMSelectionChange),this.selectionChangeRoot=n}catch(n){if(t>0)return void setTimeout(function(){return r.bindSelectionChange(e,t-1)},0);window.document.addEventListener("selectionchange",this.onDOMSelectionChange),this.selectionChangeRoot=window.document}e.on($h,function(){var e;null===(e=r.selectionChangeRoot)||void 0===e||e.removeEventListener("selectionchange",r.onDOMSelectionChange),r.selectionChangeRoot=null})}},e.prototype.flushDOMSelectionChange=function(){this.onDOMSelectionChange.flush()},e.prototype.bindEvent=function(){var e=this,t=this.$textArea,r=this.$scroll,n=this.editorInstance;null!=t&&(Ih(Mb,function(r,o){t.on(o,function(t){r(t,e,n)})}),n.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",lb(function(){n.emit(Vh)},100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.getActiveEditor();if(null!=t){var r=t.getConfig(),n=r.onBlur,o=r.onFocus;this.latestEditorSelection=t.selection,t.on(Uh,function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout(function(){e.destroyed||t.isDestroyed||o&&o(t)}):null!=e.latestEditorSelection&&null==t.selection&&setTimeout(function(){e.destroyed||t.isDestroyed||n&&n(t)}),e.latestEditorSelection=t.selection})}},e.prototype.changeMaxLengthInfo=function(){var e=this.getActiveEditor();if(null!=e){var t=e.getConfig().maxLength;if(t){var r=t-bm.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML="".concat(r,"/").concat(t)}}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width","".concat(e,"%")),e>=100&&setTimeout(function(){t.hide(),t.css("width","0"),t.show()},1e3)},e.prototype.changeViewState=function(){var e=this,t=this.getActiveEditor();null!=t&&(kw(this,t),function(e,t){var r,n=t.getConfig().placeholder;if(n){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=_p('<div class="w-e-text-placeholder">'.concat(n,"</div>"));e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(r=e.$placeholder)||void 0===r||r.hide(),e.showPlaceholder=!1)}}(this,t),wg(function(){e.destroyed||t.isDestroyed||Eb(e,t)}))},e.prototype.destroy=function(){var e;this.destroyed=!0,this.onDOMSelectionChange.cancel(),null===(e=this.selectionChangeRoot)||void 0===e||e.removeEventListener("selectionchange",this.onDOMSelectionChange),this.selectionChangeRoot=null,this.$textAreaContainer.remove()},e}();function Bw(e,t,r,n){if(fp.set(e,t),hp.set(e,r),ph.Element.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach(function(t,r){return Bw(t,r,e,n)}),ph.Editor.isVoid(n,e)){var i=Ch(ph.Node.texts(e),1),a=Ch(i[0],1)[0];fp.set(a,0),hp.set(a,e)}}}function Fw(e){var t=e.selector,r=void 0===t?"":t,n=e.config,o=void 0===n?{}:n,i=e.content,a=e.html,s=e.plugins,u=void 0===s?[]:s,l=function(e){return[Bv,hv,Dp,dv,Hv,Nv,Iv,vh.withHistory].reduce(function(e,t){return t(e)},e)}(ph.createEditor());if(r&&function(e,t){return Zg(e,"data-w-e-textarea",t)}(l,r))throw new Error("Repeated create editor by selector '".concat(r,"'"));var c=function(e){void 0===e&&(e={});var t=Fh(jh),r={},n=e.MENU_CONF,o=void 0===n?{}:n;return Ih(t,function(e,t){r[t]=wh(wh({},e),o[t]||{})}),delete e.MENU_CONF,wh({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:r,hoverbarKeys:{},sanitizeHtml:zh,customAlert:function(e,t){window.alert("".concat(t,":\n").concat(e))}},e)}(o);ap.set(l,c);var d=c.hoverbarKeys,f=void 0===d?{}:d;if(u.forEach(function(e){l=e(l)}),function(e,t){var r=t.html,n=t.content;null!=r?e.children=Jg(e,r):n&&n.length&&(e.children=n),0===e.children.length&&(e.children=[{type:"paragraph",children:[{text:""}]}])}(l,{html:a,content:i}),r){var h=new Nw(r);Zh.set(l,h),Jh.set(h,l),h.changeViewState();var p=void 0;Object.keys(f).length>0&&(p=new sb,tp.set(p,l),rp.set(l,p)),l.on(Uh,function(){l.hidePanelOrModal()}),l.on(Vh,function(){l.hidePanelOrModal()})}else l.children.forEach(function(e,t){return Bw(e,t,l,l)});var g=c.onCreated,m=c.onDestroyed;return g&&l.on(Hh,function(){return g(l)}),m&&l.on($h,function(){return m(l)}),wg(function(){return l.emit(Hh)}),l}var Mw=function(){function e(e,t){var r=this;this.$toolbar=_p('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.lngListen=function(){},this.changeToolbarState=Uv(function(){r.toolbarItems.forEach(function(e){e.changeMenuState()})},200),this.config=t;var n=_p(e);if(0===n.length)throw new Error("Cannot find toolbar DOM by selector '".concat(e,"'"));this.$box=n;var o=this.$toolbar;o.on("mousedown",function(e){return e.preventDefault()},{passive:!1}),n.append(o),wg(function(){r.initToolbar(),r.lngListen=Ry(function(){return r.initToolbar()}),r.getEditorInstance().on(Uh,r.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.initToolbar=function(){this.menus={};var e=this.$toolbar;null==e||e.empty(),this.registerItems(),this.changeToolbarState()},e.prototype.registerItems=function(){var e=this,t="",r=this.$toolbar,n=this.config,o=n.toolbarKeys,i=void 0===o?[]:o,a=n.insertKeys,s=void 0===a?{index:0,keys:[]}:a,u=n.excludeKeys,l=void 0===u?[]:u,c=Fh(i),d=[];d=Array.isArray(s)?s:[s];var f=0;d.forEach(function(e){var t=e.index+f;if(e.replaceFn&&c[t]){var r=e.replaceFn(c[t]);if(!r)throw new Error("This function needs to return the menu configuration:string | IMenuGroup");c[t]=r}e.keys.length>0&&("string"==typeof e.keys&&(e.keys=[e.keys]),e.keys.forEach(function(e,r){c.splice(t+r,0,e)}),f+=e.keys.length)});var h=c.filter(function(e){var t="string"==typeof e?e:e.key;return!l.includes(t)}),p=h.length;h.forEach(function(n,o){if("|"===n){if(0===o)return;if(o+1===p)return;if("|"===t)return;var i=jy();return r.append(i),void(t=n)}if("string"==typeof n)return e.registerSingleItem(n,e),void(t=n);e.registerGroup(n),t="group"})},e.prototype.registerGroup=function(e){var t=this,r=this.$toolbar,n=function(e){return new eb(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,s=void 0===a?[]:a;i.forEach(function(e){s.includes(e)||t.registerSingleItem(e,n)}),r.append(n.$elem)},e.prototype.registerSingleItem=function(e,t){var r=this.getEditorInstance(),n=t instanceof eb,o=this.menus,i=o[e];if(null==i){var a=Kh[e];if(null==a)throw new Error("Not found menu item factory by key '".concat(e,"'"));if("function"!=typeof a)throw new Error("Menu item factory (key='".concat(e,"') is not a function"));i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '".concat(e,"'\n重复注册了菜单栏 menu '").concat(e,"'"));var s=r.getMenuConfig(e);s&&void 0!==s.iconSvg&&(i.iconSvg=s.iconSvg);var u=nb(e,i,n);(this.toolbarItems.push(u),np.set(u,r),n)?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=Qh.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){var e;this.$toolbar.remove(),null===(e=this.lngListen)||void 0===e||e.call(this),this.menus={},this.toolbarItems=[]},e}();function Iw(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var r=t.selector,n=t.config,o=void 0===n?{}:n;if(function(e,t){return Zg(e,"data-w-e-toolbar",t)}(e,r))throw new Error("Repeated create toolbar by selector '".concat(r,"'"));var i=wh({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new Mw(r,i);return Qh.set(a,e),ep.set(e,a),a}var Pw,Rw,Lw,_w,zw,jw={exports:{}},Hw={};function $w(){if(Lw)return Hw;Lw=1,Object.defineProperty(Hw,"__esModule",{value:!0}),Hw.justErrorsLogger=Hw.debugLogger=void 0;const e=function(){if(Rw)return Pw;function e(e){return e<10?`0${e}`:e.toString()}return Rw=1,Pw=function(){const t=new Date;return`${e(t.getHours())}:${e(t.getMinutes())}:${e(t.getSeconds())}`}}(),t={debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return console.error(`[Uppy] [${e()}]`,...r)}};Hw.justErrorsLogger=t;const r={debug:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return console.debug(`[Uppy] [${e()}]`,...r)},warn:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return console.warn(`[Uppy] [${e()}]`,...r)},error:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return console.error(`[Uppy] [${e()}]`,...r)}};return Hw.debugLogger=r,Hw}function Uw(){if(zw)return _w;zw=1;return _w={nanoid:(e=21)=>{let t="",r=0|e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let n="",o=0|r;for(;o--;)n+=e[Math.random()*e.length|0];return n}},_w}var Vw,qw,Gw,Ww,Yw,Kw,Xw,Zw,Jw,Qw,eE,tE,rE,nE,oE,iE,aE,sE,uE,lE,cE,dE,fE,hE,pE,gE,mE,vE,yE,bE,wE,EE={};function xE(){return qw?Vw:(qw=1,Vw=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,n));var o=r[n];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o})}function SE(){if(Ww)return Gw;function e(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}return Ww=1,e.prototype.match=function(e){var t,r,n=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(r=(e||"").split(this.separator),t=0;n&&t<i;t++)"*"!==o[t]&&(n=t<r.length&&o[t]===r[t]);n=n&&r}else n=!1;else if("function"==typeof e.splice)for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if("object"==typeof e)for(var a in n={},e)this.match(a)&&(n[a]=e[a]);return n},Gw=function(t,r,n){var o=new e(t,n||/[\/\.]/);return void 0!==r?o.match(r):o},Gw}function CE(){if(Xw)return EE;Xw=1,Object.defineProperty(EE,"__esModule",{value:!0}),EE.defaultOptions=EE.RestrictionError=EE.Restricter=void 0;const e=xE(),t=function(){if(Kw)return Yw;Kw=1;var e=SE(),t=/[\/\+\.]/;return Yw=function(r,n){function o(n){var o=e(n,r,t);return o&&o.length>=2}return n?o(n.split(";")[0]):o}}();EE.defaultOptions={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class r extends Error{constructor(){super(...arguments),this.isRestriction=!0}}EE.RestrictionError=r,"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});return EE.Restricter=class{constructor(e,t){this.i18n=t,this.getOpts=()=>{const t=e();if(null!=t.restrictions.allowedFileTypes&&!Array.isArray(t.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return t}}validate(n,o){const{maxFileSize:i,minFileSize:a,maxTotalFileSize:s,maxNumberOfFiles:u,allowedFileTypes:l}=this.getOpts().restrictions;if(u){const e=o.filter(e=>!e.isGhost);if(e.length+1>u)throw new r(`${this.i18n("youCanOnlyUploadX",{smart_count:u})}`)}if(l){if(!l.some(e=>e.includes("/")?!!n.type&&t(n.type.replace(/;.*?$/,""),e):!("."!==e[0]||!n.extension)&&n.extension.toLowerCase()===e.slice(1).toLowerCase())){const e=l.join(", ");throw new r(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}}if(s&&null!=n.size){const t=o.reduce((e,t)=>e+t.size,n.size);if(t>s)throw new r(this.i18n("exceedsSize",{size:e(s),file:n.name}))}if(i&&null!=n.size&&n.size>i)throw new r(this.i18n("exceedsSize",{size:e(i),file:n.name}));if(a&&null!=n.size&&n.size<a)throw new r(this.i18n("inferiorSize",{size:e(a)}))}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(Object.keys(e).length<t)throw new r(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new r(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:n}=this.getOpts().restrictions,o=Object.prototype.hasOwnProperty,i=[];for(const t of n)o.call(e.meta,t)&&""!==e.meta[t]||i.push(t);return{missingFields:i,error:t}}},EE}function AE(){if(Jw)return Zw;return Jw=1,Zw=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}function DE(){if(eE)return Qw;function e(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}eE=1;var t=0;function r(e){return"__private_"+t+++"_"+e}const n=AE();function o(e,t,r){const n=[];return e.forEach(e=>"string"!=typeof e?n.push(e):t[Symbol.split](e).forEach((e,t,o)=>{""!==e&&n.push(e),t<o.length-1&&n.push(r)})),n}
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wangEditor={})}(this,function(e){"use strict";var t,r,n,o,i,a,s,u,l,c,d,f,h,p,g,m,v,y,b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function w(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function E(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}function x(){return r?t:(r=1,t=function(e){try{return!!e()}catch(e){return!0}})}function S(){if(o)return n;o=1;var e=x();return n=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function C(){if(a)return i;a=1;var e=S(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return i=e?n:function(e){return function(){return r.apply(e,arguments)}},i}function A(){if(u)return s;u=1;var e=C(),t=e({}.toString),r=e("".slice);return s=function(e){return r(t(e),8,-1)}}function D(){if(c)return l;c=1;var e=C(),t=x(),r=A(),n=Object,o=e("".split);return l=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?o(e,""):n(e)}:n}function T(){return f?d:(f=1,d=function(e){return null==e})}function k(){if(p)return h;p=1;var e=T(),t=TypeError;return h=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function O(){if(m)return g;m=1;var e=D(),t=k();return g=function(r){return e(t(r))}}function N(){if(y)return v;y=1;var e=function(e){return e&&e.Math===Math&&e};return v=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof b&&b)||e("object"==typeof v&&v)||function(){return this}()||Function("return this")()}var B,F,M,I,P,R,L,_,z,j,H,$,U,V,q,G,W,Y,K,X,Z,J,Q,ee,te,re,ne,oe,ie,ae={exports:{}};function se(){return F?B:(F=1,B=!1)}function ue(){if(I)return M;I=1;var e=N(),t=Object.defineProperty;return M=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function le(){if(P)return ae.exports;P=1;var e=se(),t=N(),r=ue(),n="__core-js_shared__",o=ae.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.47.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"}),ae.exports}function ce(){if(L)return R;L=1;var e=le();return R=function(t,r){return e[t]||(e[t]=r||{})}}function de(){if(z)return _;z=1;var e=k(),t=Object;return _=function(r){return t(e(r))}}function fe(){if(H)return j;H=1;var e=C(),t=de(),r=e({}.hasOwnProperty);return j=Object.hasOwn||function(e,n){return r(t(e),n)}}function he(){if(U)return $;U=1;var e=C(),t=0,r=Math.random(),n=e(1.1.toString);return $=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function pe(){if(W)return G;W=1;var e,t,r=N(),n=function(){if(q)return V;q=1;var e=N().navigator,t=e&&e.userAgent;return V=t?String(t):""}(),o=r.process,i=r.Deno,a=o&&o.versions||i&&i.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),G=t}function ge(){if(K)return Y;K=1;var e=pe(),t=x(),r=N().String;return Y=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}),Y}function me(){if(Z)return X;Z=1;var e=ge();return X=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function ve(){if(Q)return J;Q=1;var e=N(),t=ce(),r=fe(),n=he(),o=ge(),i=me(),a=e.Symbol,s=t("wks"),u=i?a.for||a:a&&a.withoutSetter||n;return J=function(e){return r(s,e)||(s[e]=o&&r(a,e)?a[e]:u("Symbol."+e)),s[e]}}function ye(){if(te)return ee;te=1;var e="object"==typeof document&&document.all;return ee=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function be(){if(ne)return re;ne=1;var e=ye();return re=function(t){return"object"==typeof t?null!==t:e(t)}}function we(){if(ie)return oe;ie=1;var e=be(),t=String,r=TypeError;return oe=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}var Ee,xe,Se,Ce,Ae={};function De(){if(xe)return Ee;xe=1;var e=x();return Ee=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function Te(){if(Ce)return Se;Ce=1;var e=De(),t=x();return Se=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}var ke,Oe,Ne,Be,Fe,Me,Ie,Pe,Re,Le,_e,ze,je,He,$e,Ue,Ve,qe,Ge,We,Ye,Ke,Xe,Ze,Je,Qe,et,tt,rt,nt,ot,it,at,st,ut,lt,ct,dt,ft,ht,pt,gt,mt,vt,yt,bt,wt,Et,xt,St,Ct,At,Dt,Tt,kt,Ot,Nt,Bt,Ft,Mt,It,Pt,Rt,Lt,_t={};function zt(){if(Oe)return ke;Oe=1;var e=N(),t=be(),r=e.document,n=t(r)&&t(r.createElement);return ke=function(e){return n?r.createElement(e):{}}}function jt(){if(Be)return Ne;Be=1;var e=De(),t=x(),r=zt();return Ne=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function Ht(){if(Me)return Fe;Me=1;var e=S(),t=Function.prototype.call;return Fe=e?t.bind(t):function(){return t.apply(t,arguments)},Fe}function $t(){if(Pe)return Ie;Pe=1;var e=N(),t=ye();return Ie=function(r,n){return arguments.length<2?(o=e[r],t(o)?o:void 0):e[r]&&e[r][n];var o},Ie}function Ut(){if(Le)return Re;Le=1;var e=C();return Re=e({}.isPrototypeOf)}function Vt(){if(ze)return _e;ze=1;var e=$t(),t=ye(),r=Ut(),n=me(),o=Object;return _e=n?function(e){return"symbol"==typeof e}:function(n){var i=e("Symbol");return t(i)&&r(i.prototype,o(n))}}function qt(){if(He)return je;He=1;var e=String;return je=function(t){try{return e(t)}catch(e){return"Object"}}}function Gt(){if(Ue)return $e;Ue=1;var e=ye(),t=qt(),r=TypeError;return $e=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function Wt(){if(qe)return Ve;qe=1;var e=Gt(),t=T();return Ve=function(r,n){var o=r[n];return t(o)?void 0:e(o)},Ve}function Yt(){if(Ke)return Ye;Ke=1;var e=Ht(),t=be(),r=Vt(),n=Wt(),o=function(){if(We)return Ge;We=1;var e=Ht(),t=ye(),r=be(),n=TypeError;return Ge=function(o,i){var a,s;if("string"===i&&t(a=o.toString)&&!r(s=e(a,o)))return s;if(t(a=o.valueOf)&&!r(s=e(a,o)))return s;if("string"!==i&&t(a=o.toString)&&!r(s=e(a,o)))return s;throw new n("Can't convert object to primitive value")},Ge}(),i=ve(),a=TypeError,s=i("toPrimitive");return Ye=function(i,u){if(!t(i)||r(i))return i;var l,c=n(i,s);if(c){if(void 0===u&&(u="default"),l=e(c,i,u),!t(l)||r(l))return l;throw new a("Can't convert object to primitive value")}return void 0===u&&(u="number"),o(i,u)}}function Kt(){if(Ze)return Xe;Ze=1;var e=Yt(),t=Vt();return Xe=function(r){var n=e(r,"string");return t(n)?n:n+""}}function Xt(){if(Je)return _t;Je=1;var e=De(),t=jt(),r=Te(),n=we(),o=Kt(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return _t.f=e?r?function(e,t,r){if(n(e),t=o(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&c in r&&!r[c]){var i=s(e,t);i&&i[c]&&(e[t]=r.value,r={configurable:l in r?r[l]:i[l],enumerable:u in r?r[u]:i[u],writable:!1})}return a(e,t,r)}:a:function(e,r,s){if(n(e),r=o(r),n(s),t)try{return a(e,r,s)}catch(e){}if("get"in s||"set"in s)throw new i("Accessors not supported");return"value"in s&&(e[r]=s.value),e},_t}function Zt(){if(rt)return tt;rt=1;var e=function(){if(et)return Qe;et=1;var e=Math.ceil,t=Math.floor;return Qe=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)},Qe}();return tt=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function Jt(){if(at)return it;at=1;var e=Zt(),t=Math.min;return it=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function Qt(){if(ut)return st;ut=1;var e=Jt();return st=function(t){return e(t.length)}}function er(){if(ct)return lt;ct=1;var e=O(),t=function(){if(ot)return nt;ot=1;var e=Zt(),t=Math.max,r=Math.min;return nt=function(n,o){var i=e(n);return i<0?t(i+o,0):r(i,o)},nt}(),r=Qt(),n=function(n){return function(o,i,a){var s=e(o),u=r(s);if(0===u)return!n&&-1;var l,c=t(a,u);if(n&&i!=i){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((n||c in s)&&s[c]===i)return n||c||0;return!n&&-1}};return lt={includes:n(!0),indexOf:n(!1)}}function tr(){return ft?dt:(ft=1,dt={})}function rr(){if(pt)return ht;pt=1;var e=C(),t=fe(),r=O(),n=er().indexOf,o=tr(),i=e([].push);return ht=function(e,a){var s,u=r(e),l=0,c=[];for(s in u)!t(o,s)&&t(u,s)&&i(c,s);for(;a.length>l;)t(u,s=a[l++])&&(~n(c,s)||i(c,s));return c},ht}function nr(){return mt?gt:(mt=1,gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function or(){if(bt)return Ae;bt=1;var e=De(),t=Te(),r=Xt(),n=we(),o=O(),i=function(){if(yt)return vt;yt=1;var e=rr(),t=nr();return vt=Object.keys||function(r){return e(r,t)},vt}();return Ae.f=e&&!t?Object.defineProperties:function(e,t){n(e);for(var a,s=o(t),u=i(t),l=u.length,c=0;l>c;)r.f(e,a=u[c++],s[a]);return e},Ae}function ir(){if(St)return xt;St=1;var e=ce(),t=he(),r=e("keys");return xt=function(e){return r[e]||(r[e]=t(e))}}function ar(){if(At)return Ct;At=1;var e,t=we(),r=or(),n=nr(),o=tr(),i=function(){if(Et)return wt;Et=1;var e=$t();return wt=e("document","documentElement")}(),a=zt(),s=ir(),u="prototype",l="script",c=s("IE_PROTO"),d=function(){},f=function(e){return"<"+l+">"+e+"</"+l+">"},h=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,o;p="undefined"!=typeof document?document.domain&&e?h(e):(r=a("iframe"),o="java"+l+":",r.style.display="none",i.appendChild(r),r.src=String(o),(t=r.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):h(e);for(var s=n.length;s--;)delete p[u][n[s]];return p()};return o[c]=!0,Ct=Object.create||function(e,n){var o;return null!==e?(d[u]=t(e),o=new d,d[u]=null,o[c]=e):o=p(),void 0===n?o:r.f(o,n)},Ct}function sr(){return Ot?kt:(Ot=1,kt={})}function ur(){return Mt?Ft:(Mt=1,Ft=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function lr(){if(Pt)return It;Pt=1;var e=De(),t=Xt(),r=ur();return It=e?function(e,n,o){return t.f(e,n,r(1,o))}:function(e,t,r){return e[t]=r,e}}function cr(){if(Lt)return Rt;Lt=1;var e,t,r,n=function(){if(Bt)return Nt;Bt=1;var e=N(),t=ye(),r=e.WeakMap;return Nt=t(r)&&/native code/.test(String(r))}(),o=N(),i=be(),a=lr(),s=fe(),u=le(),l=ir(),c=tr(),d="Object already initialized",f=o.TypeError,h=o.WeakMap;if(n||u.state){var p=u.state||(u.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new f(d);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},r=function(e){return p.has(e)}}else{var g=l("state");c[g]=!0,e=function(e,t){if(s(e,g))throw new f(d);return t.facade=e,a(e,g,t),t},t=function(e){return s(e,g)?e[g]:{}},r=function(e){return s(e,g)}}return Rt={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!i(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}var dr,fr,hr={},pr={};function gr(){if(fr)return hr;fr=1;var e=De(),t=Ht(),r=function(){if(dr)return pr;dr=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return pr.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,pr}(),n=ur(),o=O(),i=Kt(),a=fe(),s=jt(),u=Object.getOwnPropertyDescriptor;return hr.f=e?u:function(e,l){if(e=o(e),l=i(l),s)try{return u(e,l)}catch(e){}if(a(e,l))return n(!t(r.f,e,l),e[l])},hr}var mr,vr,yr,br,wr,Er,xr,Sr={exports:{}};function Cr(){if(vr)return mr;vr=1;var e=De(),t=fe(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,o=t(r,"name"),i=o&&"something"===function(){}.name,a=o&&(!e||e&&n(r,"name").configurable);return mr={EXISTS:o,PROPER:i,CONFIGURABLE:a}}function Ar(){if(br)return yr;br=1;var e=C(),t=ye(),r=le(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),yr=r.inspectSource}function Dr(){if(wr)return Sr.exports;wr=1;var e=C(),t=x(),r=ye(),n=fe(),o=De(),i=Cr().CONFIGURABLE,a=Ar(),s=cr(),u=s.enforce,l=s.get,c=String,d=Object.defineProperty,f=e("".slice),h=e("".replace),p=e([].join),g=o&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),m=String(String).split("String"),v=Sr.exports=function(e,t,r){"Symbol("===f(c(t),0,7)&&(t="["+h(c(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!n(e,"name")||i&&e.name!==t)&&(o?d(e,"name",{value:t,configurable:!0}):e.name=t),g&&r&&n(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?o&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var a=u(e);return n(a,"source")||(a.source=p(m,"string"==typeof t?t:"")),e};return Function.prototype.toString=v(function(){return r(this)&&l(this).source||a(this)},"toString"),Sr.exports}function Tr(){if(xr)return Er;xr=1;var e=ye(),t=Xt(),r=Dr(),n=ue();return Er=function(o,i,a,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:i;if(e(a)&&r(a,l,s),s.global)u?o[i]=a:n(i,a);else{try{s.unsafe?o[i]&&(u=!0):delete o[i]}catch(e){}u?o[i]=a:t.f(o,i,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return o},Er}var kr,Or={};var Nr,Br,Fr,Mr,Ir,Pr,Rr,Lr,_r,zr,jr,Hr,$r,Ur,Vr,qr,Gr,Wr,Yr,Kr,Xr,Zr,Jr,Qr,en,tn,rn,nn,on,an,sn,un,ln,cn={};function dn(){if(Fr)return Br;Fr=1;var e=$t(),t=C(),r=function(){if(kr)return Or;kr=1;var e=rr(),t=nr().concat("length","prototype");return Or.f=Object.getOwnPropertyNames||function(r){return e(r,t)},Or}(),n=(Nr||(Nr=1,cn.f=Object.getOwnPropertySymbols),cn),o=we(),i=t([].concat);return Br=e("Reflect","ownKeys")||function(e){var t=r.f(o(e)),a=n.f;return a?i(t,a(e)):t},Br}function fn(){if(Ir)return Mr;Ir=1;var e=fe(),t=dn(),r=gr(),n=Xt();return Mr=function(o,i,a){for(var s=t(i),u=n.f,l=r.f,c=0;c<s.length;c++){var d=s[c];e(o,d)||a&&e(a,d)||u(o,d,l(i,d))}},Mr}function hn(){if(_r)return Lr;_r=1;var e=N(),t=gr().f,r=lr(),n=Tr(),o=ue(),i=fn(),a=function(){if(Rr)return Pr;Rr=1;var e=x(),t=ye(),r=/#|\.prototype\./,n=function(r,n){var u=i[o(r)];return u===s||u!==a&&(t(n)?e(n):!!n)},o=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},i=n.data={},a=n.NATIVE="N",s=n.POLYFILL="P";return Pr=n}();return Lr=function(s,u){var l,c,d,f,h,p=s.target,g=s.global,m=s.stat;if(l=g?e:m?e[p]||o(p,{}):e[p]&&e[p].prototype)for(c in u){if(f=u[c],d=s.dontCallGetSet?(h=t(l,c))&&h.value:l[c],!a(g?c:p+(m?".":"#")+c,s.forced)&&void 0!==d){if(typeof f==typeof d)continue;i(f,d)}(s.sham||d&&d.sham)&&r(f,"sham",!0),n(l,c,f,s)}}}function pn(){if($r)return Hr;$r=1;var e=fe(),t=ye(),r=de(),n=ir(),o=function(){if(jr)return zr;jr=1;var e=x();return zr=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),zr}(),i=n("IE_PROTO"),a=Object,s=a.prototype;return Hr=o?a.getPrototypeOf:function(n){var o=r(n);if(e(o,i))return o[i];var u=o.constructor;return t(u)&&o instanceof u?u.prototype:o instanceof a?s:null},Hr}function gn(){if(Vr)return Ur;Vr=1;var e,t,r,n=x(),o=ye(),i=be(),a=ar(),s=pn(),u=Tr(),l=ve(),c=se(),d=l("iterator"),f=!1;return[].keys&&("next"in(r=[].keys())?(t=s(s(r)))!==Object.prototype&&(e=t):f=!0),!i(e)||n(function(){var t={};return e[d].call(t)!==t})?e={}:c&&(e=a(e)),o(e[d])||u(e,d,function(){return this}),Ur={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:f}}function mn(){if(Gr)return qr;Gr=1;var e=Xt().f,t=fe(),r=ve()("toStringTag");return qr=function(n,o,i){n&&!i&&(n=n.prototype),n&&!t(n,r)&&e(n,r,{configurable:!0,value:o})}}function vn(){if(en)return Qr;en=1;var e=function(){if(Jr)return Zr;Jr=1;var e=be();return Zr=function(t){return e(t)||null===t}}(),t=String,r=TypeError;return Qr=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function yn(){if(rn)return tn;rn=1;var e=function(){if(Xr)return Kr;Xr=1;var e=C(),t=Gt();return Kr=function(r,n,o){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[o]))}catch(e){}}}(),t=be(),r=k(),n=vn();return tn=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,a={};try{(o=e(Object.prototype,"__proto__","set"))(a,[]),i=a instanceof Array}catch(e){}return function(e,a){return r(e),n(a),t(e)?(i?o(e,a):e.__proto__=a,e):e}}():void 0),tn}function bn(){if(on)return nn;on=1;var e=hn(),t=Ht(),r=se(),n=Cr(),o=ye(),i=function(){if(Yr)return Wr;Yr=1;var e=gn().IteratorPrototype,t=ar(),r=ur(),n=mn(),o=sr(),i=function(){return this};return Wr=function(a,s,u,l){var c=s+" Iterator";return a.prototype=t(e,{next:r(+!l,u)}),n(a,c,!1,!0),o[c]=i,a}}(),a=pn(),s=yn(),u=mn(),l=lr(),c=Tr(),d=ve(),f=sr(),h=gn(),p=n.PROPER,g=n.CONFIGURABLE,m=h.IteratorPrototype,v=h.BUGGY_SAFARI_ITERATORS,y=d("iterator"),b="keys",w="values",E="entries",x=function(){return this};return nn=function(n,d,h,S,C,A,D){i(h,d,S);var T,k,O,N=function(e){if(e===C&&P)return P;if(!v&&e&&e in M)return M[e];switch(e){case b:case w:case E:return function(){return new h(this,e)}}return function(){return new h(this)}},B=d+" Iterator",F=!1,M=n.prototype,I=M[y]||M["@@iterator"]||C&&M[C],P=!v&&I||N(C),R="Array"===d&&M.entries||I;if(R&&(T=a(R.call(new n)))!==Object.prototype&&T.next&&(r||a(T)===m||(s?s(T,m):o(T[y])||c(T,y,x)),u(T,B,!0,!0),r&&(f[B]=x)),p&&C===w&&I&&I.name!==w&&(!r&&g?l(M,"name",w):(F=!0,P=function(){return t(I,this)})),C)if(k={values:N(w),keys:A?P:N(b),entries:N(E)},D)for(O in k)(v||F||!(O in M))&&c(M,O,k[O]);else e({target:d,proto:!0,forced:v||F},k);return r&&!D||M[y]===P||c(M,y,P,{name:C}),f[d]=P,k}}function wn(){return sn?an:(sn=1,an=function(e,t){return{value:e,done:t}})}function En(){if(ln)return un;ln=1;var e=O(),t=function(){if(Tt)return Dt;Tt=1;var e=ve(),t=ar(),r=Xt().f,n=e("unscopables"),o=Array.prototype;return void 0===o[n]&&r(o,n,{configurable:!0,value:t(null)}),Dt=function(e){o[n][e]=!0}}(),r=sr(),n=cr(),o=Xt().f,i=bn(),a=wn(),s=se(),u=De(),l="Array Iterator",c=n.set,d=n.getterFor(l);un=i(Array,"Array",function(t,r){c(this,{type:l,target:e(t),index:0,kind:r})},function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,a(void 0,!0);switch(e.kind){case"keys":return a(r,!1);case"values":return a(t[r],!1)}return a([r,t[r]],!1)},"values");var f=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!s&&u&&"values"!==f.name)try{o(f,"name",{value:"values"})}catch(e){}return un}En();var xn,Sn,Cn,An,Dn,Tn,kn,On={};function Nn(){if(Sn)return xn;Sn=1;var e={};return e[ve()("toStringTag")]="z",xn="[object z]"===String(e)}function Bn(){if(An)return Cn;An=1;var e=Nn(),t=ye(),r=A(),n=ve()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return Cn=e?r:function(e){var a,s,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(a=o(e),n))?s:i?r(a):"Object"===(u=r(a))&&t(a.callee)?"Arguments":u},Cn}!function(){if(kn)return On;kn=1;var e=Nn(),t=Tr(),r=function(){if(Tn)return Dn;Tn=1;var e=Nn(),t=Bn();return Dn=e?{}.toString:function(){return"[object "+t(this)+"]"}}();e||t(Object.prototype,"toString",r,{unsafe:!0})}();var Fn,Mn,In,Pn,Rn,Ln,_n,zn,jn,Hn,$n,Un,Vn,qn={};function Gn(){if(Mn)return Fn;Mn=1;var e=Bn(),t=String;return Fn=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function Wn(){if(Pn)return In;Pn=1;var e=we();return In=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r}}function Yn(){if(Un)return $n;Un=1;var e,t,r=Ht(),n=C(),o=Gn(),i=Wn(),a=function(){if(Ln)return Rn;Ln=1;var e=x(),t=N().RegExp,r=e(function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),n=r||e(function(){return!t("a","y").sticky}),o=r||e(function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")});return Rn={BROKEN_CARET:o,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),s=ce(),u=ar(),l=cr().get,c=function(){if(zn)return _n;zn=1;var e=x(),t=N().RegExp;return _n=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}(),d=function(){if(Hn)return jn;Hn=1;var e=x(),t=N().RegExp;return jn=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})}(),f=s("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,p=h,g=n("".charAt),m=n("".indexOf),v=n("".replace),y=n("".slice),b=(t=/b*/g,r(h,e=/a/,"a"),r(h,t,"a"),0!==e.lastIndex||0!==t.lastIndex),w=a.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];return(b||E||w||c||d)&&(p=function(e){var t,n,a,s,c,d,x,S=this,C=l(S),A=o(e),D=C.raw;if(D)return D.lastIndex=S.lastIndex,t=r(p,D,A),S.lastIndex=D.lastIndex,t;var T=C.groups,k=w&&S.sticky,O=r(i,S),N=S.source,B=0,F=A;if(k&&(O=v(O,"y",""),-1===m(O,"g")&&(O+="g"),F=y(A,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==g(A,S.lastIndex-1))&&(N="(?: "+N+")",F=" "+F,B++),n=new RegExp("^(?:"+N+")",O)),E&&(n=new RegExp("^"+N+"$(?!\\s)",O)),b&&(a=S.lastIndex),s=r(h,k?n:S,F),k?s?(s.input=y(s.input,B),s[0]=y(s[0],B),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:b&&s&&(S.lastIndex=S.global?s.index+s[0].length:a),E&&s&&s.length>1&&r(f,s[0],n,function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(s[c]=void 0)}),s&&T)for(s.groups=d=u(null),c=0;c<T.length;c++)d[(x=T[c])[0]]=s[x[1]];return s}),$n=p}function Kn(){if(Vn)return qn;Vn=1;var e=hn(),t=Yn();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),qn}Kn();var Xn,Zn,Jn,Qn={};function eo(){if(Zn)return Xn;Zn=1;var e=C(),t=Zt(),r=Gn(),n=k(),o=e("".charAt),i=e("".charCodeAt),a=e("".slice),s=function(e){return function(s,u){var l,c,d=r(n(s)),f=t(u),h=d.length;return f<0||f>=h?e?"":void 0:(l=i(d,f))<55296||l>56319||f+1===h||(c=i(d,f+1))<56320||c>57343?e?o(d,f):l:e?a(d,f,f+2):c-56320+(l-55296<<10)+65536}};return Xn={codeAt:s(!1),charAt:s(!0)}}!function(){if(Jn)return Qn;Jn=1;var e=eo().charAt,t=Gn(),r=cr(),n=bn(),o=wn(),i="String Iterator",a=r.set,s=r.getterFor(i);n(String,"String",function(e){a(this,{type:i,string:t(e),index:0})},function(){var t,r=s(this),n=r.string,i=r.index;return i>=n.length?o(void 0,!0):(t=e(n,i),r.index+=t.length,o(t,!1))})}();var to,ro,no,oo,io,ao,so,uo,lo,co,fo,ho={};function po(){if(oo)return no;oo=1;var e=eo().charAt;return no=function(t,r,n){return r+(n?e(t,r).length:1)},no}function go(){if(uo)return so;uo=1;var e=Ht(),t=fe(),r=Ut(),n=function(){if(ao)return io;ao=1;var e=N(),t=x(),r=e.RegExp,n=!t(function(){var e=!0;try{r(".","d")}catch(t){e=!1}var t={},n="",o=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)i(s,a[s]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(t)!==o||n!==o});return io={correct:n}}(),o=Wn(),i=RegExp.prototype;return so=n.correct?function(e){return e.flags}:function(a){return n.correct||!r(i,a)||t(a,"flags")?a.flags:e(o,a)}}!function(){if(fo)return ho;fo=1;var e=Ht(),t=C(),r=function(){if(ro)return to;ro=1,Kn();var e=Ht(),t=Tr(),r=Yn(),n=x(),o=ve(),i=lr(),a=o("species"),s=RegExp.prototype;return to=function(u,l,c,d){var f=o(u),h=!n(function(){var e={};return e[f]=function(){return 7},7!==""[u](e)}),p=h&&!n(function(){var e=!1,t=/a/;if("split"===u){var r={};r[a]=function(){return t},(t={constructor:r,flags:""})[f]=/./[f]}return t.exec=function(){return e=!0,null},t[f](""),!e});if(!h||!p||c){var g=/./[f],m=l(f,""[u],function(t,n,o,i,a){var u=n.exec;return u===r||u===s.exec?h&&!a?{done:!0,value:e(g,n,o,i)}:{done:!0,value:e(t,o,n,i)}:{done:!1}});t(String.prototype,u,m[0]),t(s,f,m[1])}d&&i(s[f],"sham",!0)},to}(),n=we(),o=be(),i=Jt(),a=Gn(),s=k(),u=Wt(),l=po(),c=go(),d=function(){if(co)return lo;co=1;var e=Ht(),t=we(),r=ye(),n=A(),o=Yn(),i=TypeError;return lo=function(a,s){var u=a.exec;if(r(u)){var l=e(u,a,s);return null!==l&&t(l),l}if("RegExp"===n(a))return e(o,a,s);throw new i("RegExp#exec called on incompatible receiver")},lo}(),f=t("".indexOf);r("match",function(t,r,h){return[function(r){var n=s(this),i=o(r)?u(r,t):void 0;return i?e(i,r,n):new RegExp(r)[t](a(n))},function(e){var t=n(this),o=a(e),s=h(r,t,o);if(s.done)return s.value;var u=a(c(t));if(-1===f(u,"g"))return d(t,o);var p=-1!==f(u,"u");t.lastIndex=0;for(var g,m=[],v=0;null!==(g=d(t,o));){var y=a(g[0]);m[v]=y,""===y&&(t.lastIndex=l(o,i(t.lastIndex),p)),v++}return 0===v?null:m}]})}();var mo,vo,yo,bo,wo,Eo,xo,So,Co,Ao,Do,To,ko,Oo,No,Bo,Fo,Mo,Io,Po,Ro,Lo,_o,zo,jo,Ho,$o,Uo={},Vo={};function qo(){if(vo)return mo;vo=1;var e=be(),t=lr();return mo=function(r,n){e(n)&&"cause"in n&&t(r,"cause",n.cause)},mo}function Go(){if(So)return xo;So=1;var e=lr(),t=function(){if(bo)return yo;bo=1;var e=C(),t=Error,r=e("".replace),n=String(new t("zxcasd").stack),o=/\n\s*at [^:]*:[^\n]*/,i=o.test(n);return yo=function(e,n){if(i&&"string"==typeof e&&!t.prepareStackTrace)for(;n--;)e=r(e,o,"");return e}}(),r=function(){if(Eo)return wo;Eo=1;var e=x(),t=ur();return wo=!e(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",t(1,7)),7!==e.stack)})}(),n=Error.captureStackTrace;return xo=function(o,i,a,s){r&&(n?n(o,i):e(o,"stack",t(a,s)))},xo}function Wo(){if(To)return Do;To=1;var e=function(){if(Ao)return Co;Ao=1;var e=A(),t=C();return Co=function(r){if("Function"===e(r))return t(r)}}(),t=Gt(),r=S(),n=e(e.bind);return Do=function(e,o){return t(e),void 0===o?e:r?n(e,o):function(){return e.apply(o,arguments)}},Do}function Yo(){if(Oo)return ko;Oo=1;var e=ve(),t=sr(),r=e("iterator"),n=Array.prototype;return ko=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}function Ko(){if(Bo)return No;Bo=1;var e=Bn(),t=Wt(),r=T(),n=sr(),o=ve()("iterator");return No=function(i){if(!r(i))return t(i,o)||t(i,"@@iterator")||n[e(i)]}}function Xo(){if(Mo)return Fo;Mo=1;var e=Ht(),t=Gt(),r=we(),n=qt(),o=Ko(),i=TypeError;return Fo=function(a,s){var u=arguments.length<2?o(a):s;if(t(u))return r(e(u,a));throw new i(n(a)+" is not iterable")},Fo}function Zo(){if(Po)return Io;Po=1;var e=Ht(),t=we(),r=Wt();return Io=function(n,o,i){var a,s;t(n);try{if(!(a=r(n,"return"))){if("throw"===o)throw i;return i}a=e(a,n)}catch(e){s=!0,a=e}if("throw"===o)throw i;if(s)throw a;return t(a),i},Io}function Jo(){if(Lo)return Ro;Lo=1;var e=Wo(),t=Ht(),r=we(),n=qt(),o=Yo(),i=Qt(),a=Ut(),s=Xo(),u=Ko(),l=Zo(),c=TypeError,d=function(e,t){this.stopped=e,this.result=t},f=d.prototype;return Ro=function(h,p,g){var m,v,y,b,w,E,x,S=g&&g.that,C=!(!g||!g.AS_ENTRIES),A=!(!g||!g.IS_RECORD),D=!(!g||!g.IS_ITERATOR),T=!(!g||!g.INTERRUPTED),k=e(p,S),O=function(e){return m&&l(m,"normal"),new d(!0,e)},N=function(e){return C?(r(e),T?k(e[0],e[1],O):k(e[0],e[1])):T?k(e,O):k(e)};if(A)m=h.iterator;else if(D)m=h;else{if(!(v=u(h)))throw new c(n(h)+" is not iterable");if(o(v)){for(y=0,b=i(h);b>y;y++)if((w=N(h[y]))&&a(f,w))return w;return new d(!1)}m=s(h,v)}for(E=A?h.next:m.next;!(x=t(E,m)).done;){try{w=N(x.value)}catch(e){l(m,"throw",e)}if("object"==typeof w&&w&&a(f,w))return w}return new d(!1)},Ro}function Qo(){if(zo)return _o;zo=1;var e=Gn();return _o=function(t,r){return void 0===t?arguments.length<2?"":r:e(t)},_o}function ei(){return Ho||(Ho=1,function(){if(jo)return Vo;jo=1;var e=hn(),t=Ut(),r=pn(),n=yn(),o=fn(),i=ar(),a=lr(),s=ur(),u=qo(),l=Go(),c=Jo(),d=Qo(),f=ve()("toStringTag"),h=Error,p=[].push,g=function(e,o){var s,v=t(m,this);n?s=n(new h,v?r(this):m):(s=v?this:i(m),a(s,f,"Error")),void 0!==o&&a(s,"message",d(o)),l(s,g,s.stack,1),arguments.length>2&&u(s,arguments[2]);var y=[];return c(e,p,{that:y}),a(s,"errors",y),s};n?n(g,h):o(g,h,{name:!0});var m=g.prototype=i(h.prototype,{constructor:s(1,g),message:s(1,""),name:s(1,"AggregateError")});e({global:!0,constructor:!0,arity:2},{AggregateError:g})}()),Uo}$o||($o=1,ei());var ti,ri,ni={};ri||(ri=1,function(){if(ti)return ni;ti=1;var e=hn(),t=N();e({global:!0,forced:t.globalThis!==t},{globalThis:t})}());var oi,ii,ai,si,ui,li,ci={};function di(){return ii?oi:(ii=1,oi={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})}function fi(){if(si)return ai;si=1;var e=zt()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return ai=t===Object.prototype?void 0:t}if(function(){if(ui)return ci;ui=1;var e=N(),t=di(),r=fi(),n=En(),o=lr(),i=mn(),a=ve()("iterator"),s=n.values,u=function(e,r){if(e){if(e[a]!==s)try{o(e,a,s)}catch(t){e[a]=s}if(i(e,r,!0),t[r])for(var u in n)if(e[u]!==n[u])try{o(e,u,n[u])}catch(t){e[u]=n[u]}}};for(var l in t)u(e[l]&&e[l].prototype,l);u(r,"DOMTokenList")}(),"undefined"==typeof global){if("ActiveXObject"in window){console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser.")}hi(),pi()}else global&&(null===(li=global.navigator)||void 0===li?void 0:li.userAgent.match("QQBrowser"))&&(hi(),pi());function hi(){"undefined"==typeof globalThis&&(window.globalThis=window)}function pi(){"undefined"==typeof AggregateError&&(window.AggregateError=function(e,t){var r=new Error(t);return r.errors=e,r})}var gi,mi,vi,yi,bi,wi,Ei,xi,Si,Ci,Ai,Di,Ti,ki,Oi,Ni,Bi={};function Fi(){if(mi)return gi;mi=1;var e=function(e){return e&&e.Math===Math&&e};return gi=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof b&&b)||e("object"==typeof gi&&gi)||function(){return this}()||Function("return this")()}function Mi(){return yi?vi:(yi=1,vi=function(e){try{return!!e()}catch(e){return!0}})}function Ii(){return wi?bi:(wi=1,bi=!Mi()(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}function Pi(){if(xi)return Ei;xi=1;var e=Ii(),t=Function.prototype,r=t.apply,n=t.call;return Ei="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),Ei}function Ri(){if(Ci)return Si;Ci=1;var e=Ii(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Si=e?n:function(e){return function(){return r.apply(e,arguments)}},Si}function Li(){if(Di)return Ai;Di=1;var e=Ri(),t=e({}.toString),r=e("".slice);return Ai=function(e){return r(t(e),8,-1)}}function _i(){if(ki)return Ti;ki=1;var e=Li(),t=Ri();return Ti=function(r){if("Function"===e(r))return t(r)}}function zi(){if(Ni)return Oi;Ni=1;var e="object"==typeof document&&document.all;return Oi=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}var ji,Hi,$i,Ui,Vi={};function qi(){return Hi?ji:(Hi=1,ji=!Mi()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function Gi(){if(Ui)return $i;Ui=1;var e=Ii(),t=Function.prototype.call;return $i=e?t.bind(t):function(){return t.apply(t,arguments)},$i}var Wi,Yi,Ki,Xi,Zi,Ji,Qi,ea,ta,ra,na,oa,ia,aa,sa,ua,la,ca,da,fa,ha,pa,ga,ma,va,ya,ba,wa,Ea,xa,Sa,Ca,Aa,Da,Ta,ka,Oa,Na={};function Ba(){if(Wi)return Na;Wi=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return Na.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,Na}function Fa(){return Ki?Yi:(Ki=1,Yi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Ma(){if(Zi)return Xi;Zi=1;var e=Ri(),t=Mi(),r=Li(),n=Object,o=e("".split);return Xi=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?o(e,""):n(e)}:n}function Ia(){return Qi?Ji:(Qi=1,Ji=function(e){return null==e})}function Pa(){if(ta)return ea;ta=1;var e=Ia(),t=TypeError;return ea=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function Ra(){if(na)return ra;na=1;var e=Ma(),t=Pa();return ra=function(r){return e(t(r))}}function La(){if(ia)return oa;ia=1;var e=zi();return oa=function(t){return"object"==typeof t?null!==t:e(t)}}function _a(){return sa?aa:(sa=1,aa={})}function za(){if(la)return ua;la=1;var e=_a(),t=Fi(),r=zi(),n=function(e){return r(e)?e:void 0};return ua=function(r,o){return arguments.length<2?n(e[r])||n(t[r]):e[r]&&e[r][o]||t[r]&&t[r][o]},ua}function ja(){return da?ca:(da=1,ca=Ri()({}.isPrototypeOf))}function Ha(){if(ha)return fa;ha=1;var e=Fi().navigator,t=e&&e.userAgent;return fa=t?String(t):""}function $a(){if(ga)return pa;ga=1;var e,t,r=Fi(),n=Ha(),o=r.process,i=r.Deno,a=o&&o.versions||i&&i.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),pa=t}function Ua(){if(va)return ma;va=1;var e=$a(),t=Mi(),r=Fi().String;return ma=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}),ma}function Va(){return ba?ya:(ba=1,ya=Ua()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function qa(){if(Ea)return wa;Ea=1;var e=za(),t=zi(),r=ja(),n=Object;return wa=Va()?function(e){return"symbol"==typeof e}:function(o){var i=e("Symbol");return t(i)&&r(i.prototype,n(o))}}function Ga(){if(Sa)return xa;Sa=1;var e=String;return xa=function(t){try{return e(t)}catch(e){return"Object"}}}function Wa(){if(Aa)return Ca;Aa=1;var e=zi(),t=Ga(),r=TypeError;return Ca=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function Ya(){if(Ta)return Da;Ta=1;var e=Wa(),t=Ia();return Da=function(r,n){var o=r[n];return t(o)?void 0:e(o)},Da}function Ka(){if(Oa)return ka;Oa=1;var e=Gi(),t=zi(),r=La(),n=TypeError;return ka=function(o,i){var a,s;if("string"===i&&t(a=o.toString)&&!r(s=e(a,o)))return s;if(t(a=o.valueOf)&&!r(s=e(a,o)))return s;if("string"!==i&&t(a=o.toString)&&!r(s=e(a,o)))return s;throw new n("Can't convert object to primitive value")},ka}var Xa,Za,Ja,Qa,es,ts,rs,ns,os,is,as,ss,us,ls,cs,ds,fs,hs,ps,gs,ms,vs,ys,bs,ws,Es,xs,Ss,Cs={exports:{}};function As(){return Za?Xa:(Za=1,Xa=!0)}function Ds(){if(Qa)return Ja;Qa=1;var e=Fi(),t=Object.defineProperty;return Ja=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function Ts(){if(es)return Cs.exports;es=1;var e=As(),t=Fi(),r=Ds(),n="__core-js_shared__",o=Cs.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.47.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Cs.exports}function ks(){if(rs)return ts;rs=1;var e=Ts();return ts=function(t,r){return e[t]||(e[t]=r||{})}}function Os(){if(os)return ns;os=1;var e=Pa(),t=Object;return ns=function(r){return t(e(r))}}function Ns(){if(as)return is;as=1;var e=Ri(),t=Os(),r=e({}.hasOwnProperty);return is=Object.hasOwn||function(e,n){return r(t(e),n)}}function Bs(){if(us)return ss;us=1;var e=Ri(),t=0,r=Math.random(),n=e(1.1.toString);return ss=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function Fs(){if(cs)return ls;cs=1;var e=Fi(),t=ks(),r=Ns(),n=Bs(),o=Ua(),i=Va(),a=e.Symbol,s=t("wks"),u=i?a.for||a:a&&a.withoutSetter||n;return ls=function(e){return r(s,e)||(s[e]=o&&r(a,e)?a[e]:u("Symbol."+e)),s[e]}}function Ms(){if(fs)return ds;fs=1;var e=Gi(),t=La(),r=qa(),n=Ya(),o=Ka(),i=TypeError,a=Fs()("toPrimitive");return ds=function(s,u){if(!t(s)||r(s))return s;var l,c=n(s,a);if(c){if(void 0===u&&(u="default"),l=e(c,s,u),!t(l)||r(l))return l;throw new i("Can't convert object to primitive value")}return void 0===u&&(u="number"),o(s,u)}}function Is(){if(ps)return hs;ps=1;var e=Ms(),t=qa();return hs=function(r){var n=e(r,"string");return t(n)?n:n+""}}function Ps(){if(ms)return gs;ms=1;var e=Fi(),t=La(),r=e.document,n=t(r)&&t(r.createElement);return gs=function(e){return n?r.createElement(e):{}}}function Rs(){if(ys)return vs;ys=1;var e=qi(),t=Mi(),r=Ps();return vs=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function Ls(){if(bs)return Vi;bs=1;var e=qi(),t=Gi(),r=Ba(),n=Fa(),o=Ra(),i=Is(),a=Ns(),s=Rs(),u=Object.getOwnPropertyDescriptor;return Vi.f=e?u:function(e,l){if(e=o(e),l=i(l),s)try{return u(e,l)}catch(e){}if(a(e,l))return n(!t(r.f,e,l),e[l])},Vi}function _s(){if(Es)return ws;Es=1;var e=Mi(),t=zi(),r=/#|\.prototype\./,n=function(r,n){var u=i[o(r)];return u===s||u!==a&&(t(n)?e(n):!!n)},o=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},i=n.data={},a=n.NATIVE="N",s=n.POLYFILL="P";return ws=n}function zs(){if(Ss)return xs;Ss=1;var e=_i(),t=Wa(),r=Ii(),n=e(e.bind);return xs=function(e,o){return t(e),void 0===o?e:r?n(e,o):function(){return e.apply(o,arguments)}},xs}var js,Hs,$s,Us,Vs,qs,Gs,Ws,Ys,Ks,Xs,Zs,Js,Qs,eu,tu,ru,nu,ou,iu,au,su,uu,lu,cu,du,fu,hu,pu,gu,mu,vu,yu,bu,wu,Eu,xu,Su,Cu={};function Au(){return Hs?js:(Hs=1,js=qi()&&Mi()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function Du(){if(Us)return $s;Us=1;var e=La(),t=String,r=TypeError;return $s=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function Tu(){if(Vs)return Cu;Vs=1;var e=qi(),t=Rs(),r=Au(),n=Du(),o=Is(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return Cu.f=e?r?function(e,t,r){if(n(e),t=o(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&c in r&&!r[c]){var i=s(e,t);i&&i[c]&&(e[t]=r.value,r={configurable:l in r?r[l]:i[l],enumerable:u in r?r[u]:i[u],writable:!1})}return a(e,t,r)}:a:function(e,r,s){if(n(e),r=o(r),n(s),t)try{return a(e,r,s)}catch(e){}if("get"in s||"set"in s)throw new i("Accessors not supported");return"value"in s&&(e[r]=s.value),e},Cu}function ku(){if(Gs)return qs;Gs=1;var e=qi(),t=Tu(),r=Fa();return qs=e?function(e,n,o){return t.f(e,n,r(1,o))}:function(e,t,r){return e[t]=r,e}}function Ou(){if(Ys)return Ws;Ys=1;var e=Fi(),t=Pi(),r=_i(),n=zi(),o=Ls().f,i=_s(),a=_a(),s=zs(),u=ku(),l=Ns(),c=function(e){var r=function(n,o,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,o)}return new e(n,o,i)}return t(e,this,arguments)};return r.prototype=e.prototype,r};return Ws=function(t,d){var f,h,p,g,m,v,y,b,w,E=t.target,x=t.global,S=t.stat,C=t.proto,A=x?e:S?e[E]:e[E]&&e[E].prototype,D=x?a:a[E]||u(a,E,{})[E],T=D.prototype;for(g in d)h=!(f=i(x?g:E+(S?".":"#")+g,t.forced))&&A&&l(A,g),v=D[g],h&&(y=t.dontCallGetSet?(w=o(A,g))&&w.value:A[g]),m=h&&y?y:d[g],(f||C||typeof v!=typeof m)&&(b=t.bind&&h?s(m,e):t.wrap&&h?c(m):C&&n(m)?r(m):m,(t.sham||m&&m.sham||v&&v.sham)&&u(b,"sham",!0),u(D,g,b),C&&(l(a,p=E+"Prototype")||u(a,p,{}),u(a[p],g,m),t.real&&T&&(f||!T[g])&&u(T,g,m)))}}function Nu(){if(Xs)return Ks;Xs=1;var e=Li();return Ks=Array.isArray||function(t){return"Array"===e(t)}}function Bu(){if(Js)return Zs;Js=1;var e=Math.ceil,t=Math.floor;return Zs=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)},Zs}function Fu(){if(eu)return Qs;eu=1;var e=Bu();return Qs=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function Mu(){if(ru)return tu;ru=1;var e=Fu(),t=Math.min;return tu=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function Iu(){if(ou)return nu;ou=1;var e=Mu();return nu=function(t){return e(t.length)}}function Pu(){if(au)return iu;au=1;var e=TypeError;return iu=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}}function Ru(){if(uu)return su;uu=1;var e=qi(),t=Tu(),r=Fa();return su=function(n,o,i){e?t.f(n,o,r(0,i)):n[o]=i}}function Lu(){if(cu)return lu;cu=1;var e={};return e[Fs()("toStringTag")]="z",lu="[object z]"===String(e)}function _u(){if(fu)return du;fu=1;var e=Lu(),t=zi(),r=Li(),n=Fs()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return du=e?r:function(e){var a,s,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(a=o(e),n))?s:i?r(a):"Object"===(u=r(a))&&t(a.callee)?"Arguments":u},du}function zu(){if(pu)return hu;pu=1;var e=Ri(),t=zi(),r=Ts(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),hu=r.inspectSource}function ju(){if(mu)return gu;mu=1;var e=Ri(),t=Mi(),r=zi(),n=_u(),o=za(),i=zu(),a=function(){},s=o("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=e(u.exec),c=!u.test(a),d=function(e){if(!r(e))return!1;try{return s(a,[],e),!0}catch(e){return!1}},f=function(e){if(!r(e))return!1;switch(n(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!l(u,i(e))}catch(e){return!0}};return f.sham=!0,gu=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?f:d}function Hu(){if(yu)return vu;yu=1;var e=Nu(),t=ju(),r=La(),n=Fs()("species"),o=Array;return vu=function(i){var a;return e(i)&&(a=i.constructor,(t(a)&&(a===o||e(a.prototype))||r(a)&&null===(a=a[n]))&&(a=void 0)),void 0===a?o:a},vu}function $u(){if(wu)return bu;wu=1;var e=Hu();return bu=function(t,r){return new(e(t))(0===r?0:r)}}function Uu(){if(xu)return Eu;xu=1;var e=Mi(),t=Fs(),r=$a(),n=t("species");return Eu=function(t){return r>=51||!e(function(){var e=[];return(e.constructor={})[n]=function(){return{foo:1}},1!==e[t](Boolean).foo})},Eu}var Vu,qu,Gu={},Wu={};function Yu(){if(qu)return Vu;qu=1;var e=_u(),t=String;return Vu=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}var Ku,Xu,Zu,Ju,Qu,el,tl,rl,nl,ol,il,al,sl,ul,ll,cl,dl,fl,hl,pl={};function gl(){if(Xu)return Ku;Xu=1;var e=Fu(),t=Math.max,r=Math.min;return Ku=function(n,o){var i=e(n);return i<0?t(i+o,0):r(i,o)},Ku}function ml(){if(Ju)return Zu;Ju=1;var e=Ra(),t=gl(),r=Iu(),n=function(n){return function(o,i,a){var s=e(o),u=r(s);if(0===u)return!n&&-1;var l,c=t(a,u);if(n&&i!=i){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((n||c in s)&&s[c]===i)return n||c||0;return!n&&-1}};return Zu={includes:n(!0),indexOf:n(!1)}}function vl(){return el?Qu:(el=1,Qu={})}function yl(){if(rl)return tl;rl=1;var e=Ri(),t=Ns(),r=Ra(),n=ml().indexOf,o=vl(),i=e([].push);return tl=function(e,a){var s,u=r(e),l=0,c=[];for(s in u)!t(o,s)&&t(u,s)&&i(c,s);for(;a.length>l;)t(u,s=a[l++])&&(~n(c,s)||i(c,s));return c},tl}function bl(){return ol?nl:(ol=1,nl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function wl(){if(al)return il;al=1;var e=yl(),t=bl();return il=Object.keys||function(r){return e(r,t)},il}function El(){if(sl)return pl;sl=1;var e=qi(),t=Au(),r=Tu(),n=Du(),o=Ra(),i=wl();return pl.f=e&&!t?Object.defineProperties:function(e,t){n(e);for(var a,s=o(t),u=i(t),l=u.length,c=0;l>c;)r.f(e,a=u[c++],s[a]);return e},pl}function xl(){return ll?ul:(ll=1,ul=za()("document","documentElement"))}function Sl(){if(dl)return cl;dl=1;var e=ks(),t=Bs(),r=e("keys");return cl=function(e){return r[e]||(r[e]=t(e))}}function Cl(){if(hl)return fl;hl=1;var e,t=Du(),r=El(),n=bl(),o=vl(),i=xl(),a=Ps(),s="prototype",u="script",l=Sl()("IE_PROTO"),c=function(){},d=function(e){return"<"+u+">"+e+"</"+u+">"},f=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,o;h="undefined"!=typeof document?document.domain&&e?f(e):(r=a("iframe"),o="java"+u+":",r.style.display="none",i.appendChild(r),r.src=String(o),(t=r.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):f(e);for(var l=n.length;l--;)delete h[s][n[l]];return h()};return o[l]=!0,fl=Object.create||function(e,n){var o;return null!==e?(c[s]=t(e),o=new c,c[s]=null,o[l]=e):o=h(),void 0===n?o:r.f(o,n)},fl}var Al,Dl={};function Tl(){if(Al)return Dl;Al=1;var e=yl(),t=bl().concat("length","prototype");return Dl.f=Object.getOwnPropertyNames||function(r){return e(r,t)},Dl}var kl,Ol,Nl,Bl={};function Fl(){return Ol?kl:(Ol=1,kl=Ri()([].slice))}function Ml(){if(Nl)return Bl;Nl=1;var e=Li(),t=Ra(),r=Tl().f,n=Fl(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Bl.f=function(i){return o&&"Window"===e(i)?function(e){try{return r(e)}catch(e){return n(o)}}(i):r(t(i))},Bl}var Il,Pl,Rl,Ll,_l,zl={};function jl(){return Il||(Il=1,zl.f=Object.getOwnPropertySymbols),zl}function Hl(){if(Rl)return Pl;Rl=1;var e=ku();return Pl=function(t,r,n,o){return o&&o.enumerable?t[r]=n:e(t,r,n),t}}function $l(){if(_l)return Ll;_l=1;var e=Tu();return Ll=function(t,r,n){return e.f(t,r,n)}}var Ul,Vl,ql,Gl,Wl,Yl,Kl,Xl,Zl,Jl,Ql,ec,tc,rc,nc,oc,ic={};function ac(){if(Ul)return ic;Ul=1;var e=Fs();return ic.f=e,ic}function sc(){if(ql)return Vl;ql=1;var e=_a(),t=Ns(),r=ac(),n=Tu().f;return Vl=function(o){var i=e.Symbol||(e.Symbol={});t(i,o)||n(i,o,{value:r.f(o)})}}function uc(){if(Wl)return Gl;Wl=1;var e=Gi(),t=za(),r=Fs(),n=Hl();return Gl=function(){var o=t("Symbol"),i=o&&o.prototype,a=i&&i.valueOf,s=r("toPrimitive");i&&!i[s]&&n(i,s,function(t){return e(a,this)},{arity:1})}}function lc(){if(Kl)return Yl;Kl=1;var e=Lu(),t=_u();return Yl=e?{}.toString:function(){return"[object "+t(this)+"]"}}function cc(){if(Zl)return Xl;Zl=1;var e=Lu(),t=Tu().f,r=ku(),n=Ns(),o=lc(),i=Fs()("toStringTag");return Xl=function(a,s,u,l){var c=u?a:a&&a.prototype;c&&(n(c,i)||t(c,i,{configurable:!0,value:s}),l&&!e&&r(c,"toString",o))}}function dc(){if(Ql)return Jl;Ql=1;var e=Fi(),t=zi(),r=e.WeakMap;return Jl=t(r)&&/native code/.test(String(r))}function fc(){if(tc)return ec;tc=1;var e,t,r,n=dc(),o=Fi(),i=La(),a=ku(),s=Ns(),u=Ts(),l=Sl(),c=vl(),d="Object already initialized",f=o.TypeError,h=o.WeakMap;if(n||u.state){var p=u.state||(u.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new f(d);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},r=function(e){return p.has(e)}}else{var g=l("state");c[g]=!0,e=function(e,t){if(s(e,g))throw new f(d);return t.facade=e,a(e,g,t),t},t=function(e){return s(e,g)?e[g]:{}},r=function(e){return s(e,g)}}return ec={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!i(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}function hc(){if(nc)return rc;nc=1;var e=zs(),t=Ri(),r=Ma(),n=Os(),o=Iu(),i=$u(),a=t([].push),s=function(t){var s=1===t,u=2===t,l=3===t,c=4===t,d=6===t,f=7===t,h=5===t||d;return function(p,g,m,v){for(var y,b,w=n(p),E=r(w),x=o(E),S=e(g,m),C=0,A=v||i,D=s?A(p,x):u||f?A(p,0):void 0;x>C;C++)if((h||C in E)&&(b=S(y=E[C],C,w),t))if(s)D[C]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return C;case 2:a(D,y)}else switch(t){case 4:return!1;case 7:a(D,y)}return d?-1:l||c?c:D}};return rc={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}}var pc,gc,mc,vc={};function yc(){return gc?pc:(gc=1,pc=Ua()&&!!Symbol.for&&!!Symbol.keyFor)}var bc,wc={};var Ec,xc,Sc,Cc,Ac,Dc,Tc,kc={};function Oc(){if(xc)return Ec;xc=1;var e=La(),t=fc().get;return Ec=function(r){if(!e(r))return!1;var n=t(r);return!!n&&"RawJSON"===n.type},Ec}function Nc(){if(Cc)return Sc;Cc=1;var e=Ri(),t=Ns(),r=SyntaxError,n=parseInt,o=String.fromCharCode,i=e("".charAt),a=e("".slice),s=e(/./.exec),u={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},l=/^[\da-f]{4}$/i,c=/^[\u0000-\u001F]$/;return Sc=function(e,d){for(var f=!0,h="";d<e.length;){var p=i(e,d);if("\\"===p){var g=a(e,d,d+2);if(t(u,g))h+=u[g],d+=2;else{if("\\u"!==g)throw new r('Unknown escape sequence: "'+g+'"');var m=a(e,d+=2,d+4);if(!s(l,m))throw new r("Bad Unicode escape at: "+d);h+=o(n(m,16)),d+=4}}else{if('"'===p){f=!1,d++;break}if(s(c,p))throw new r("Bad control character in string literal at: "+d);h+=p,d++}}if(f)throw new r("Unterminated string at: "+d);return{value:h,end:d}},Sc}function Bc(){return Dc?Ac:(Dc=1,Ac=!Mi()(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e}))}var Fc,Mc,Ic={};function Pc(){return Mc||(Mc=1,function(){if(oc)return Wu;oc=1;var e=Ou(),t=Fi(),r=Gi(),n=Ri(),o=As(),i=qi(),a=Ua(),s=Mi(),u=Ns(),l=ja(),c=Du(),d=Ra(),f=Is(),h=Yu(),p=Fa(),g=Cl(),m=wl(),v=Tl(),y=Ml(),b=jl(),w=Ls(),E=Tu(),x=El(),S=Ba(),C=Hl(),A=$l(),D=ks(),T=Sl(),k=vl(),O=Bs(),N=Fs(),B=ac(),F=sc(),M=uc(),I=cc(),P=fc(),R=hc().forEach,L=T("hidden"),_="Symbol",z="prototype",j=P.set,H=P.getterFor(_),$=Object[z],U=t.Symbol,V=U&&U[z],q=t.RangeError,G=t.TypeError,W=t.QObject,Y=w.f,K=E.f,X=y.f,Z=S.f,J=n([].push),Q=D("symbols"),ee=D("op-symbols"),te=D("wks"),re=!W||!W[z]||!W[z].findChild,ne=function(e,t,r){var n=Y($,t);n&&delete $[t],K(e,t,r),n&&e!==$&&K($,t,n)},oe=i&&s(function(){return 7!==g(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a})?ne:K,ie=function(e,t){var r=Q[e]=g(V);return j(r,{type:_,tag:e,description:t}),i||(r.description=t),r},ae=function(e,t,r){e===$&&ae(ee,t,r),c(e);var n=f(t);return c(r),u(Q,n)?(r.enumerable?(u(e,L)&&e[L][n]&&(e[L][n]=!1),r=g(r,{enumerable:p(0,!1)})):(u(e,L)||K(e,L,p(1,g(null))),e[L][n]=!0),oe(e,n,r)):K(e,n,r)},se=function(e,t){c(e);var n=d(t),o=m(n).concat(de(n));return R(o,function(t){i&&!r(ue,n,t)||ae(e,t,n[t])}),e},ue=function(e){var t=f(e),n=r(Z,this,t);return!(this===$&&u(Q,t)&&!u(ee,t))&&(!(n||!u(this,t)||!u(Q,t)||u(this,L)&&this[L][t])||n)},le=function(e,t){var r=d(e),n=f(t);if(r!==$||!u(Q,n)||u(ee,n)){var o=Y(r,n);return!o||!u(Q,n)||u(r,L)&&r[L][n]||(o.enumerable=!0),o}},ce=function(e){var t=X(d(e)),r=[];return R(t,function(e){u(Q,e)||u(k,e)||J(r,e)}),r},de=function(e){var t=e===$,r=X(t?ee:d(e)),n=[];return R(r,function(e){!u(Q,e)||t&&!u($,e)||J(n,Q[e])}),n};a||(U=function(){if(l(V,this))throw new G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?h(arguments[0]):void 0,n=O(e),o=function(e){var i=void 0===this?t:this;i===$&&r(o,ee,e),u(i,L)&&u(i[L],n)&&(i[L][n]=!1);var a=p(1,e);try{oe(i,n,a)}catch(e){if(!(e instanceof q))throw e;ne(i,n,a)}};return i&&re&&oe($,n,{configurable:!0,set:o}),ie(n,e)},C(V=U[z],"toString",function(){return H(this).tag}),C(U,"withoutSetter",function(e){return ie(O(e),e)}),S.f=ue,E.f=ae,x.f=se,w.f=le,v.f=y.f=ce,b.f=de,B.f=function(e){return ie(N(e),e)},i&&(A(V,"description",{configurable:!0,get:function(){return H(this).description}}),o||C($,"propertyIsEnumerable",ue,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!a,sham:!a},{Symbol:U}),R(m(te),function(e){F(e)}),e({target:_,stat:!0,forced:!a},{useSetter:function(){re=!0},useSimple:function(){re=!1}}),e({target:"Object",stat:!0,forced:!a,sham:!i},{create:function(e,t){return void 0===t?g(e):se(g(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:le}),e({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:ce}),M(),I(U,_),k[L]=!0}(),function(){if(mc)return vc;mc=1;var e=Ou(),t=za(),r=Ns(),n=Yu(),o=ks(),i=yc(),a=o("string-to-symbol-registry"),s=o("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!i},{for:function(e){var o=n(e);if(r(a,o))return a[o];var i=t("Symbol")(o);return a[o]=i,s[i]=o,i}})}(),function(){if(bc)return wc;bc=1;var e=Ou(),t=Ns(),r=qa(),n=Ga(),o=ks(),i=yc(),a=o("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!i},{keyFor:function(e){if(!r(e))throw new TypeError(n(e)+" is not a symbol");if(t(a,e))return a[e]}})}(),function(){if(Tc)return kc;Tc=1;var e=Ou(),t=za(),r=Pi(),n=Gi(),o=Ri(),i=Mi(),a=Nu(),s=zi(),u=Oc(),l=qa(),c=Li(),d=Yu(),f=Fl(),h=Nc(),p=Bs(),g=Ua(),m=Bc(),v=String,y=t("JSON","stringify"),b=o(/./.exec),w=o("".charAt),E=o("".charCodeAt),x=o("".replace),S=o("".slice),C=o([].push),A=o(1.1.toString),D=/[\uD800-\uDFFF]/g,T=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,O=p(),N=O.length,B=!g||i(function(){var e=t("Symbol")("stringify detection");return"[null]"!==y([e])||"{}"!==y({a:e})||"{}"!==y(Object(e))}),F=i(function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")}),M=B?function(e,t){var o=f(arguments),i=P(t);if(s(i)||void 0!==e&&!l(e))return o[1]=function(e,t){if(s(i)&&(t=n(i,this,v(e),t)),!l(t))return t},r(y,null,o)}:y,I=function(e,t,r){var n=w(r,t-1),o=w(r,t+1);return b(T,e)&&!b(k,o)||b(k,e)&&!b(T,n)?"\\u"+A(E(e,0),16):e},P=function(e){if(s(e))return e;if(a(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?C(r,o):"number"!=typeof o&&"Number"!==c(o)&&"String"!==c(o)||C(r,d(o))}var i=r.length,u=!0;return function(e,t){if(u)return u=!1,t;if(a(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}};y&&e({target:"JSON",stat:!0,arity:3,forced:B||F||!m},{stringify:function(e,t,r){var o=P(t),i=[],a=M(e,function(e,t){var r=s(o)?n(o,this,v(e),t):t;return!m&&u(r)?O+(C(i,r.rawJSON)-1):r},r);if("string"!=typeof a)return a;if(F&&(a=x(a,D,I)),m)return a;for(var l="",c=a.length,d=0;d<c;d++){var f=w(a,d);if('"'===f){var p=h(a,++d).end-1,g=S(a,d,p);l+=S(g,0,N)===O?i[S(g,N)]:'"'+g+'"',d=p}else l+=f}return l}})}(),function(){if(Fc)return Ic;Fc=1;var e=Ou(),t=Ua(),r=Mi(),n=jl(),o=Os();e({target:"Object",stat:!0,forced:!t||r(function(){n.f(1)})},{getOwnPropertySymbols:function(e){var t=n.f;return t?t(o(e)):[]}})}()),Gu}var Rc,Lc={};function _c(){return Rc||(Rc=1,sc()("asyncDispose")),Lc}var zc;var jc,Hc={};function $c(){return jc||(jc=1,sc()("dispose")),Hc}var Uc;var Vc;var qc,Gc={};function Wc(){return qc||(qc=1,sc()("iterator")),Gc}var Yc;var Kc;var Xc;var Zc;var Jc;var Qc;var ed,td={};var rd,nd={};var od;var id,ad,sd,ud={};function ld(){return sd?ad:(sd=1,function(){if(Su)return Bi;Su=1;var e=Ou(),t=Mi(),r=Nu(),n=La(),o=Os(),i=Iu(),a=Pu(),s=Ru(),u=$u(),l=Uu(),c=Fs(),d=$a(),f=c("isConcatSpreadable"),h=d>=51||!t(function(){var e=[];return e[f]=!1,e.concat()[0]!==e}),p=function(e){if(!n(e))return!1;var t=e[f];return void 0!==t?!!t:r(e)};e({target:"Array",proto:!0,arity:1,forced:!h||!l("concat")},{concat:function(e){var t,r,n,l,c,d=o(this),f=u(d,0),h=0;for(t=-1,n=arguments.length;t<n;t++)if(p(c=-1===t?d:arguments[t]))for(l=i(c),a(h+l),r=0;r<l;r++,h++)r in c&&s(f,h,c[r]);else a(h+1),s(f,h++,c);return f.length=h,f}})}(),Pc(),_c(),zc||(zc=1,sc()("asyncIterator")),$c(),Uc||(Uc=1,sc()("hasInstance")),Vc||(Vc=1,sc()("isConcatSpreadable")),Wc(),Yc||(Yc=1,sc()("match")),Kc||(Kc=1,sc()("matchAll")),Xc||(Xc=1,sc()("replace")),Zc||(Zc=1,sc()("search")),Jc||(Jc=1,sc()("species")),Qc||(Qc=1,sc()("split")),function(){if(ed)return td;ed=1;var e=sc(),t=uc();e("toPrimitive"),t()}(),function(){if(rd)return nd;rd=1;var e=za(),t=sc(),r=cc();t("toStringTag"),r(e("Symbol"),"Symbol")}(),od||(od=1,sc()("unscopables")),function(){if(id)return ud;id=1;var e=Fi();cc()(e.JSON,"JSON",!0)}(),ad=_a().Symbol)}var cd,dd,fd,hd,pd,gd,md,vd,yd,bd,wd,Ed,xd,Sd,Cd,Ad,Dd,Td,kd,Od,Nd,Bd,Fd,Md,Id,Pd,Rd,Ld,_d,zd,jd,Hd,$d,Ud={};function Vd(){return dd?cd:(dd=1,cd=function(){})}function qd(){return hd?fd:(hd=1,fd={})}function Gd(){if(gd)return pd;gd=1;var e=qi(),t=Ns(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,o=t(r,"name"),i=o&&"something"===function(){}.name,a=o&&(!e||e&&n(r,"name").configurable);return pd={EXISTS:o,PROPER:i,CONFIGURABLE:a}}function Wd(){return vd||(vd=1,md=!Mi()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),md}function Yd(){if(bd)return yd;bd=1;var e=Ns(),t=zi(),r=Os(),n=Sl(),o=Wd(),i=n("IE_PROTO"),a=Object,s=a.prototype;return yd=o?a.getPrototypeOf:function(n){var o=r(n);if(e(o,i))return o[i];var u=o.constructor;return t(u)&&o instanceof u?u.prototype:o instanceof a?s:null},yd}function Kd(){if(Ed)return wd;Ed=1;var e,t,r,n=Mi(),o=zi(),i=La(),a=Cl(),s=Yd(),u=Hl(),l=Fs(),c=As(),d=l("iterator"),f=!1;return[].keys&&("next"in(r=[].keys())?(t=s(s(r)))!==Object.prototype&&(e=t):f=!0),!i(e)||n(function(){var t={};return e[d].call(t)!==t})?e={}:c&&(e=a(e)),o(e[d])||u(e,d,function(){return this}),wd={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:f}}function Xd(){if(Sd)return xd;Sd=1;var e=Kd().IteratorPrototype,t=Cl(),r=Fa(),n=cc(),o=qd(),i=function(){return this};return xd=function(a,s,u,l){var c=s+" Iterator";return a.prototype=t(e,{next:r(+!l,u)}),n(a,c,!1,!0),o[c]=i,a}}function Zd(){if(Ad)return Cd;Ad=1;var e=Ri(),t=Wa();return Cd=function(r,n,o){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[o]))}catch(e){}}}function Jd(){if(Td)return Dd;Td=1;var e=La();return Dd=function(t){return e(t)||null===t}}function Qd(){if(Od)return kd;Od=1;var e=Jd(),t=String,r=TypeError;return kd=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function ef(){if(Bd)return Nd;Bd=1;var e=Zd(),t=La(),r=Pa(),n=Qd();return Nd=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,a={};try{(o=e(Object.prototype,"__proto__","set"))(a,[]),i=a instanceof Array}catch(e){}return function(e,a){return r(e),n(a),t(e)?(i?o(e,a):e.__proto__=a,e):e}}():void 0),Nd}function tf(){if(Md)return Fd;Md=1;var e=Ou(),t=Gi(),r=As(),n=Gd(),o=zi(),i=Xd(),a=Yd(),s=ef(),u=cc(),l=ku(),c=Hl(),d=Fs(),f=qd(),h=Kd(),p=n.PROPER,g=n.CONFIGURABLE,m=h.IteratorPrototype,v=h.BUGGY_SAFARI_ITERATORS,y=d("iterator"),b="keys",w="values",E="entries",x=function(){return this};return Fd=function(n,d,h,S,C,A,D){i(h,d,S);var T,k,O,N=function(e){if(e===C&&P)return P;if(!v&&e&&e in M)return M[e];switch(e){case b:case w:case E:return function(){return new h(this,e)}}return function(){return new h(this)}},B=d+" Iterator",F=!1,M=n.prototype,I=M[y]||M["@@iterator"]||C&&M[C],P=!v&&I||N(C),R="Array"===d&&M.entries||I;if(R&&(T=a(R.call(new n)))!==Object.prototype&&T.next&&(r||a(T)===m||(s?s(T,m):o(T[y])||c(T,y,x)),u(T,B,!0,!0),r&&(f[B]=x)),p&&C===w&&I&&I.name!==w&&(!r&&g?l(M,"name",w):(F=!0,P=function(){return t(I,this)})),C)if(k={values:N(w),keys:A?P:N(b),entries:N(E)},D)for(O in k)(v||F||!(O in M))&&c(M,O,k[O]);else e({target:d,proto:!0,forced:v||F},k);return r&&!D||M[y]===P||c(M,y,P,{name:C}),f[d]=P,k}}function rf(){return Pd?Id:(Pd=1,Id=function(e,t){return{value:e,done:t}})}function nf(){if(Ld)return Rd;Ld=1;var e=Ra(),t=Vd(),r=qd(),n=fc(),o=Tu().f,i=tf(),a=rf(),s=As(),u=qi(),l="Array Iterator",c=n.set,d=n.getterFor(l);Rd=i(Array,"Array",function(t,r){c(this,{type:l,target:e(t),index:0,kind:r})},function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,a(void 0,!0);switch(e.kind){case"keys":return a(r,!1);case"values":return a(t[r],!1)}return a([r,t[r]],!1)},"values");var f=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!s&&u&&"values"!==f.name)try{o(f,"name",{value:"values"})}catch(e){}return Rd}function of(){return zd?_d:(zd=1,_d={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})}function af(){if(jd)return Ud;jd=1,nf();var e=of(),t=Fi(),r=cc(),n=qd();for(var o in e)r(t[o],o),n[o]=n.Array;return Ud}function sf(){if($d)return Hd;$d=1;var e=ld();return af(),Hd=e}var uf,lf={};var cf;var df;var ff,hf,pf;function gf(){if(pf)return hf;pf=1;var e=sf();return function(){if(uf)return lf;uf=1;var e=Fs(),t=Tu().f,r=e("metadata"),n=Function.prototype;void 0===n[r]&&t(n,r,{value:null})}(),cf||(cf=1,_c()),df||(df=1,$c()),ff||(ff=1,sc()("metadata")),hf=e}var mf,vf,yf;function bf(){if(vf)return mf;vf=1;var e=za(),t=Ri(),r=e("Symbol"),n=r.keyFor,o=t(r.prototype.valueOf);return mf=r.isRegisteredSymbol||function(e){try{return void 0!==n(o(e))}catch(e){return!1}}}var wf,Ef,xf;function Sf(){if(Ef)return wf;Ef=1;for(var e=ks(),t=za(),r=Ri(),n=qa(),o=Fs(),i=t("Symbol"),a=i.isWellKnownSymbol,s=t("Object","getOwnPropertyNames"),u=r(i.prototype.valueOf),l=e("wks"),c=0,d=s(i),f=d.length;c<f;c++)try{var h=d[c];n(i[h])&&o(h)}catch(e){}return wf=function(e){if(a&&a(e))return!0;try{for(var t=u(e),r=0,n=s(l),o=n.length;r<o;r++)if(l[n[r]]==t)return!0}catch(e){}return!1},wf}var Cf;var Af;var Df;var Tf;var kf;var Of;var Nf;var Bf,Ff,Mf,If,Pf;function Rf(){if(Mf)return Ff;Mf=1;var e=gf();return yf||(yf=1,Ou()({target:"Symbol",stat:!0},{isRegisteredSymbol:bf()})),xf||(xf=1,Ou()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Sf()})),Cf||(Cf=1,sc()("customMatcher")),Af||(Af=1,sc()("observable")),Df||(Df=1,Ou()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:bf()})),Tf||(Tf=1,Ou()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Sf()})),kf||(kf=1,sc()("matcher")),Of||(Of=1,sc()("metadataKey")),Nf||(Nf=1,sc()("patternMatch")),Bf||(Bf=1,sc()("replaceAll")),Ff=e}function Lf(){return Pf?If:(Pf=1,If=Rf())}var _f,zf,jf,Hf,$f,Uf,Vf,qf,Gf,Wf,Yf,Kf,Xf,Zf=w(Lf()),Jf={};function Qf(){if(zf)return _f;zf=1;var e=Ri(),t=Fu(),r=Yu(),n=Pa(),o=e("".charAt),i=e("".charCodeAt),a=e("".slice),s=function(e){return function(s,u){var l,c,d=r(n(s)),f=t(u),h=d.length;return f<0||f>=h?e?"":void 0:(l=i(d,f))<55296||l>56319||f+1===h||(c=i(d,f+1))<56320||c>57343?e?o(d,f):l:e?a(d,f,f+2):c-56320+(l-55296<<10)+65536}};return _f={codeAt:s(!1),charAt:s(!0)}}function eh(){return $f?Hf:($f=1,nf(),function(){if(jf)return Jf;jf=1;var e=Qf().charAt,t=Yu(),r=fc(),n=tf(),o=rf(),i="String Iterator",a=r.set,s=r.getterFor(i);n(String,"String",function(e){a(this,{type:i,string:t(e),index:0})},function(){var t,r=s(this),n=r.string,i=r.index;return i>=n.length?o(void 0,!0):(t=e(n,i),r.index+=t.length,o(t,!1))})}(),Wc(),Hf=ac().f("iterator"))}function th(){if(Vf)return Uf;Vf=1;var e=eh();return af(),Uf=e}function rh(){return Gf?qf:(Gf=1,qf=th())}function nh(){return Yf?Wf:(Yf=1,Wf=rh())}function oh(){return Xf?Kf:(Xf=1,Kf=nh())}var ih=w(oh());function ah(e){return ah="function"==typeof Zf&&"symbol"==typeof ih?function(e){return typeof e}:function(e){return e&&"function"==typeof Zf&&e.constructor===Zf&&e!==Zf.prototype?"symbol":typeof e},ah(e)}var sh,uh={};if(function(){if(sh)return uh;sh=1;var e=hn(),t=x(),r=O(),n=gr().f,o=De();e({target:"Object",stat:!0,forced:!o||t(function(){n(1)}),sham:!o},{getOwnPropertyDescriptor:function(e,t){return n(r(e),t)}})}(),"object"===("undefined"==typeof global?"undefined":ah(global))){var lh=Object.getOwnPropertyDescriptor(global,"window");global.window&&!lh.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}var ch,dh={};function fh(){if(ch)return dh;ch=1;var e={transform:function(e,t){var r=e.current,n=e.affinity;if(null!=r){var o=y.transform(r,t,{affinity:n});e.current=o,null==o&&e.unref()}}},t={transform:function(e,t){var r=e.current,n=e.affinity;if(null!=r){var o=Fe.transform(r,t,{affinity:n});e.current=o,null==o&&e.unref()}}},r={transform:function(e,t){var r=e.current,n=e.affinity;if(null!=r){var o=I.transform(r,t,{affinity:n});e.current=o,null==o&&e.unref()}}},n=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,u=new WeakMap,l=new WeakMap;function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function d(e,t){return e(t={exports:{}},t.exports),t.exports}var f=d(function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports});c(f);var h=d(function(e){e.exports=function(e){if(Array.isArray(e))return f(e)},e.exports.__esModule=!0,e.exports.default=e.exports});c(h);var p=d(function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports});c(p);var g=d(function(e){e.exports=function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports});c(g);var m=d(function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports});c(m);var v=c(d(function(e){e.exports=function(e){return h(e)||p(e)||g(e)||m()},e.exports.__esModule=!0,e.exports.default=e.exports})),y={ancestors:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.reverse,n=void 0!==r&&r,o=y.levels(e,t);return o=n?o.slice(1):o.slice(0,-1)},common:function(e,t){for(var r=[],n=0;n<e.length&&n<t.length;n++){var o=e[n];if(o!==t[n])break;r.push(o)}return r},compare:function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return 0},endsAfter:function(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],a=t[r];return y.equals(n,o)&&i>a},endsAt:function(e,t){var r=e.length,n=e.slice(0,r),o=t.slice(0,r);return y.equals(n,o)},endsBefore:function(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],a=t[r];return y.equals(n,o)&&i<a},equals:function(e,t){return e.length===t.length&&e.every(function(e,r){return e===t[r]})},hasPrevious:function(e){return e[e.length-1]>0},isAfter:function(e,t){return 1===y.compare(e,t)},isAncestor:function(e,t){return e.length<t.length&&0===y.compare(e,t)},isBefore:function(e,t){return-1===y.compare(e,t)},isChild:function(e,t){return e.length===t.length+1&&0===y.compare(e,t)},isCommon:function(e,t){return e.length<=t.length&&0===y.compare(e,t)},isDescendant:function(e,t){return e.length>t.length&&0===y.compare(e,t)},isParent:function(e,t){return e.length+1===t.length&&0===y.compare(e,t)},isPath:function(e){return Array.isArray(e)&&e.every(function(e){return"number"==typeof e})},isSibling:function(e,t){if(e.length!==t.length)return!1;var r=e.slice(0,-1),n=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&y.equals(r,n)},levels:function(e){for(var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).reverse,r=void 0!==t&&t,n=[],o=0;o<=e.length;o++)n.push(e.slice(0,o));return r&&n.reverse(),n},next:function(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath:function(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent:function(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous:function(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative:function(e,t){if(!y.isAncestor(t,e)&&!y.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var n=v(e),o=r.affinity,i=void 0===o?"forward":o;if(0===e.length)return n;switch(t.type){case"insert_node":var a=t.path;(y.equals(a,n)||y.endsBefore(a,n)||y.isAncestor(a,n))&&(n[a.length-1]+=1);break;case"remove_node":var s=t.path;if(y.equals(s,n)||y.isAncestor(s,n))return null;y.endsBefore(s,n)&&(n[s.length-1]-=1);break;case"merge_node":var u=t.path,l=t.position;y.equals(u,n)||y.endsBefore(u,n)?n[u.length-1]-=1:y.isAncestor(u,n)&&(n[u.length-1]-=1,n[u.length]+=l);break;case"split_node":var c=t.path,d=t.position;if(y.equals(c,n)){if("forward"===i)n[n.length-1]+=1;else if("backward"!==i)return null}else y.endsBefore(c,n)?n[c.length-1]+=1:y.isAncestor(c,n)&&e[c.length]>=d&&(n[c.length-1]+=1,n[c.length]-=d);break;case"move_node":var f=t.path,h=t.newPath;if(y.equals(f,h))return n;if(y.isAncestor(f,n)||y.equals(f,n)){var p=h.slice();return y.endsBefore(f,h)&&f.length<h.length&&(p[f.length-1]-=1),p.concat(n.slice(f.length))}y.isSibling(f,h)&&(y.isAncestor(h,n)||y.equals(h,n))?y.endsBefore(f,n)?n[f.length-1]-=1:n[f.length-1]+=1:y.endsBefore(h,n)||y.equals(h,n)||y.isAncestor(h,n)?(y.endsBefore(f,n)&&(n[f.length-1]-=1),n[h.length-1]+=1):y.endsBefore(f,n)&&(y.equals(h,n)&&(n[h.length-1]+=1),n[f.length-1]-=1)}return n}},b=d(function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}),w=c(b),E=d(function(e){var t=b.default;e.exports=function(e,r){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports});c(E);var x=d(function(e){var t=b.default;e.exports=function(e){var r=E(e,"string");return"symbol"===t(r)?r:String(r)},e.exports.__esModule=!0,e.exports.default=e.exports});c(x);var S=c(d(function(e){e.exports=function(e,t,r){return(t=x(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports})),C=d(function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports});c(C);var A=d(function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports});c(A);var D=d(function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports});c(D);var T=d(function(e){e.exports=function(e,t){return C(e)||A(e,t)||g(e,t)||D()},e.exports.__esModule=!0,e.exports.default=e.exports}),k=c(T),O=d(function(e){e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports});c(O);var N=d(function(e){e.exports=function(e,t){if(null==e)return{};var r,n,o=O(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},e.exports.__esModule=!0,e.exports.default=e.exports}),B=c(N),F=["anchor","focus"];function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var I={edges:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).reverse,r=void 0!==t&&t,n=e.anchor,o=e.focus;return I.isBackward(e)===r?[n,o]:[o,n]},end:function(e){var t=I.edges(e),r=k(t,2)[1];return r},equals:function(e,t){return Fe.equals(e.anchor,t.anchor)&&Fe.equals(e.focus,t.focus)},surrounds:function(e,t){var r=I.intersection(e,t);return!!r&&I.equals(r,t)},includes:function(e,t){if(ke.isRange(t)){if(I.includes(e,t.anchor)||I.includes(e,t.focus))return!0;var r=I.edges(e),n=k(r,2),o=n[0],i=n[1],a=I.edges(t),s=k(a,2),u=s[0],l=s[1];return Fe.isBefore(o,u)&&Fe.isAfter(i,l)}var c=I.edges(e),d=k(c,2),f=d[0],h=d[1],p=!1,g=!1;return ke.isPoint(t)?(p=Fe.compare(t,f)>=0,g=Fe.compare(t,h)<=0):(p=y.compare(t,f.path)>=0,g=y.compare(t,h.path)<=0),p&&g},intersection:function(e,t){e.anchor,e.focus;var r=B(e,F),n=I.edges(e),o=k(n,2),i=o[0],a=o[1],s=I.edges(t),u=k(s,2),l=u[0],c=u[1],d=Fe.isBefore(i,l)?l:i,f=Fe.isBefore(a,c)?a:c;return Fe.isBefore(f,d)?null:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({anchor:d,focus:f},r)},isBackward:function(e){var t=e.anchor,r=e.focus;return Fe.isAfter(t,r)},isCollapsed:function(e){var t=e.anchor,r=e.focus;return Fe.equals(t,r)},isExpanded:function(e){return!I.isCollapsed(e)},isForward:function(e){return!I.isBackward(e)},isRange:function(e){return W(e)&&Fe.isPoint(e.anchor)&&Fe.isPoint(e.focus)},points:function*(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start:function(e){var t=I.edges(e),r=k(t,1)[0];return r},transform:function(e,t){if(null===e)return null;var r,n,o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,i=void 0===o?"inward":o;if("inward"===i){var a=I.isCollapsed(e);I.isForward(e)?(r="forward",n=a?r:"backward"):(r="backward",n=a?r:"forward")}else"outward"===i?I.isForward(e)?(r="backward",n="forward"):(r="forward",n="backward"):(r=i,n=i);var s=Fe.transform(e.anchor,t,{affinity:r}),u=Fe.transform(e.focus,t,{affinity:n});return s&&u?{anchor:s,focus:u}:null}},P=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).deep,r=void 0!==t&&t;return!!W(e)&&("function"!=typeof e.apply&&(r?U.isNodeList(e.children):Array.isArray(e.children)))},R={isAncestor:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).deep,r=void 0!==t&&t;return W(e)&&U.isNodeList(e.children,{deep:r})},isElement:P,isElementList:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).deep,r=void 0!==t&&t;return Array.isArray(e)&&e.every(function(e){return R.isElement(e,{deep:r})})},isElementProps:function(e){return void 0!==e.children},isElementType:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return P(e)&&e[r]===t},matches:function(e,t){for(var r in t)if("children"!==r&&e[r]!==t[r])return!1;return!0}},L=["text"],_=["children"];function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function H(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return $(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var U={ancestor:function(e,t){var r=U.get(e,t);if(U.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(Ie.stringify(r)));return r},ancestors:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){var n,o=H(y.ancestors(t,r));try{for(o.s();!(n=o.n()).done;){var i=n.value,a=[U.ancestor(e,i),i];yield a}}catch(e){o.e(e)}finally{o.f()}}()},child:function(e,t){if(U.isText(e))throw new Error("Cannot get the child of a text node: ".concat(Ie.stringify(e)));var r=e.children[t];if(null==r)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(Ie.stringify(e)));return r},children:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var n=r.reverse,o=void 0!==n&&n,i=U.ancestor(e,t),a=i.children,s=o?a.length-1:0;o?s>=0:s<a.length;){var u=U.child(i,s),l=t.concat(s);yield[u,l],s=o?s-1:s+1}}()},common:function(e,t,r){var n=y.common(t,r);return[U.get(e,n),n]},descendant:function(e,t){var r=U.get(e,t);if(U.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(Ie.stringify(r)));return r},descendants:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var r,n=H(U.nodes(e,t));try{for(n.s();!(r=n.n()).done;){var o=k(r.value,2),i=o[0],a=o[1];0!==a.length&&(yield[i,a])}}catch(e){n.e(e)}finally{n.f()}}()},elements:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var r,n=H(U.nodes(e,t));try{for(n.s();!(r=n.n()).done;){var o=k(r.value,2),i=o[0],a=o[1];U.isElement(i)&&(yield[i,a])}}catch(e){n.e(e)}finally{n.f()}}()},extractProps:function(e){return U.isText(e)?(e.text,B(e,L)):(e.children,B(e,_))},first:function(e,t){for(var r=t.slice(),n=U.get(e,r);n&&!U.isText(n)&&0!==n.children.length;)n=n.children[0],r.push(0);return[n,r]},fragment:function(e,t){var r,n={children:e.children},o=I.edges(t),i=k(o,2),a=i[0],s=i[1],u=U.nodes(n,{reverse:!0,pass:function(e){var r=k(e,2)[1];return!I.includes(t,r)}}),l=H(u);try{var c=function(){var e=k(r.value,2)[1];if(!I.includes(t,e)){var o=e[e.length-1];Ye(n,y.parent(e),function(e){return Ge(e,o,1)})}y.equals(e,s.path)&&Ke(n,e,function(e){var t=e.text.slice(0,s.offset);return j(j({},e),{},{text:t})}),y.equals(e,a.path)&&Ke(n,e,function(e){var t=e.text.slice(a.offset);return j(j({},e),{},{text:t})})};for(l.s();!(r=l.n()).done;)c()}catch(e){l.e(e)}finally{l.f()}return n.children},get:function(e,t){var r=U.getIf(e,t);if(void 0===r)throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(Ie.stringify(e)));return r},getIf:function(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if(U.isText(r)||!r.children[o])return;r=r.children[o]}return r},has:function(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if(U.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isAncestor:function(e){return!U.isText(e)},isEditor:function(e){return"function"==typeof e.apply},isElement:function(e){return Array.isArray(e.children)&&"function"!=typeof e.apply},isNode:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).deep,r=void 0!==t&&t;return He.isText(e)||R.isElement(e,{deep:r})||Te.isEditor(e,{deep:r})},isNodeList:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).deep,r=void 0!==t&&t;return Array.isArray(e)&&e.every(function(e){return U.isNode(e,{deep:r})})},isText:function(e){return"string"==typeof e.text},last:function(e,t){for(var r=t.slice(),n=U.get(e,r);n&&!U.isText(n)&&0!==n.children.length;){var o=n.children.length-1;n=n.children[o],r.push(o)}return[n,r]},leaf:function(e,t){var r=U.get(e,t);if(!U.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Ie.stringify(r)));return r},levels:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){var n,o=H(y.levels(t,r));try{for(o.s();!(n=o.n()).done;){var i=n.value,a=U.get(e,i);yield[a,i]}}catch(e){o.e(e)}finally{o.f()}}()},matches:function(e,t){return U.isElement(e)&&R.isElementProps(t)&&R.matches(e,t)||U.isText(e)&&He.isTextProps(t)&&He.matches(e,t)},nodes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var r=t.pass,n=t.reverse,o=void 0!==n&&n,i=t.from,a=void 0===i?[]:i,s=t.to,u=new Set,l=[],c=e;!s||!(o?y.isBefore(l,s):y.isAfter(l,s));)if(u.has(c)||(yield[c,l]),u.has(c)||U.isText(c)||0===c.children.length||null!=r&&!1!==r([c,l])){if(0===l.length)break;if(!o){var d=y.next(l);if(U.has(e,d)){l=d,c=U.get(e,l);continue}}if(o&&0!==l[l.length-1])l=y.previous(l),c=U.get(e,l);else l=y.parent(l),c=U.get(e,l),u.add(c)}else{u.add(c);var f=o?c.children.length-1:0;y.isAncestor(l,a)&&(f=a[l.length]),l=l.concat(f),c=U.get(e,l)}}()},parent:function(e,t){var r=y.parent(t),n=U.get(e,r);if(U.isText(n))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return n},string:function(e){return U.isText(e)?e.text:e.children.map(U.string).join("")},texts:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var r,n=H(U.nodes(e,t));try{for(n.s();!(r=n.n()).done;){var o=k(r.value,2),i=o[0],a=o[1];U.isText(i)&&(yield[i,a])}}catch(e){n.e(e)}finally{n.f()}}()}};function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var G={isNodeOperation:function(e){return G.isOperation(e)&&e.type.endsWith("_node")},isOperation:function(e){if(!W(e))return!1;switch(e.type){case"insert_node":case"remove_node":return y.isPath(e.path)&&U.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&y.isPath(e.path);case"merge_node":return"number"==typeof e.position&&y.isPath(e.path)&&W(e.properties);case"move_node":return y.isPath(e.path)&&y.isPath(e.newPath);case"set_node":return y.isPath(e.path)&&W(e.properties)&&W(e.newProperties);case"set_selection":return null===e.properties&&I.isRange(e.newProperties)||null===e.newProperties&&I.isRange(e.properties)||W(e.properties)&&W(e.newProperties);case"split_node":return y.isPath(e.path)&&"number"==typeof e.position&&W(e.properties);default:return!1}},isOperationList:function(e){return Array.isArray(e)&&e.every(function(e){return G.isOperation(e)})},isSelectionOperation:function(e){return G.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation:function(e){return G.isOperation(e)&&e.type.endsWith("_text")},inverse:function(e){switch(e.type){case"insert_node":return q(q({},e),{},{type:"remove_node"});case"insert_text":return q(q({},e),{},{type:"remove_text"});case"merge_node":return q(q({},e),{},{type:"split_node",path:y.previous(e.path)});case"move_node":var t=e.newPath,r=e.path;if(y.equals(t,r))return e;if(y.isSibling(r,t))return q(q({},e),{},{path:t,newPath:r});var n=y.transform(r,e),o=y.transform(y.next(r),e);return q(q({},e),{},{path:n,newPath:o});case"remove_node":return q(q({},e),{},{type:"insert_node"});case"remove_text":return q(q({},e),{},{type:"insert_text"});case"set_node":var i=e.properties,a=e.newProperties;return q(q({},e),{},{properties:a,newProperties:i});case"set_selection":var s=e.properties,u=e.newProperties;return q(q({},e),{},null==s?{properties:u,newProperties:null}:null==u?{properties:null,newProperties:s}:{properties:u,newProperties:s});case"split_node":return q(q({},e),{},{type:"merge_node",path:y.next(e.path)})}}},W=function(e){return"object"===w(e)&&null!==e},Y=function e(t,r){for(var n in t){var o=t[n],i=r[n];if(Array.isArray(o)&&Array.isArray(i)){if(o.length!==i.length)return!1;for(var a=0;a<o.length;a++)if(o[a]!==i[a])return!1}else if(W(o)&&W(i)){if(!e(o,i))return!1}else if(o!==i)return!1}for(var s in r)if(void 0===t[s]&&void 0!==r[s])return!1;return!0},K=function(e){return e.selection?e.selection:e.children.length>0?Te.end(e,[]):[0]},X=function(e,t){var r=Te.node(e,t),n=k(r,1)[0];return function(e){return e===n}};function Z(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return J(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Q,ee=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!r,o=r?ae(e):e,i=Q.None,a=Q.None,s=0,u=null,l=Z(o);try{for(l.s();!(t=l.n()).done;){var c=t.value,d=c.codePointAt(0);if(!d)break;var f=ye(c,d),h=k(n?[a,f]:[f,i],2);if(i=h[0],a=h[1],be(i,Q.ZWJ)&&be(a,Q.ExtPict)&&!Se(n?e.substring(0,s):e.substring(0,e.length-s)))break;if(be(i,Q.RI)&&be(a,Q.RI)&&!(u=null!==u?!u:!!n||Ae(e.substring(0,e.length-s))))break;if(i!==Q.None&&a!==Q.None&&Ee(i,a))break;s+=c.length}}catch(e){l.e(e)}finally{l.f()}return s||1},te=/\s/,re=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,ne=/['\u2018\u2019]/,oe=function(e,t,r){if(r){var n=e.length-t;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,t),e.slice(t)]},ie=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(te.test(t))return!1;if(ne.test(t)){var o=ee(r,n),i=oe(r,o,n),a=k(i,2);if(e(a[0],a[1],n))return!0}return!re.test(t)},ae=function*(e){for(var t=e.length-1,r=0;r<e.length;r++){var n=e.charAt(t-r);if(ue(n.charCodeAt(0))){var o=e.charAt(t-r-1);if(se(o.charCodeAt(0))){yield o+n,r++;continue}}yield n}},se=function(e){return e>=55296&&e<=56319},ue=function(e){return e>=56320&&e<=57343};!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Q||(Q={}));var le=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,ce=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,de=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,fe=/^[\u1100-\u115F\uA960-\uA97C]$/,he=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,pe=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,ge=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,me=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,ve=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,ye=function(e,t){var r=Q.Any;return-1!==e.search(le)&&(r|=Q.Extend),8205===t&&(r|=Q.ZWJ),t>=127462&&t<=127487&&(r|=Q.RI),-1!==e.search(ce)&&(r|=Q.Prepend),-1!==e.search(de)&&(r|=Q.SpacingMark),-1!==e.search(fe)&&(r|=Q.L),-1!==e.search(he)&&(r|=Q.V),-1!==e.search(pe)&&(r|=Q.T),-1!==e.search(ge)&&(r|=Q.LV),-1!==e.search(me)&&(r|=Q.LVT),-1!==e.search(ve)&&(r|=Q.ExtPict),r};function be(e,t){return 0!==(e&t)}var we=[[Q.L,Q.L|Q.V|Q.LV|Q.LVT],[Q.LV|Q.V,Q.V|Q.T],[Q.LVT|Q.T,Q.T],[Q.Any,Q.Extend|Q.ZWJ],[Q.Any,Q.SpacingMark],[Q.Prepend,Q.Any],[Q.ZWJ,Q.ExtPict],[Q.RI,Q.RI]];function Ee(e,t){return-1===we.findIndex(function(r){return be(e,r[0])&&be(t,r[1])})}var xe=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,Se=function(e){return-1!==e.search(xe)},Ce=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Ae=function(e){var t=e.match(Ce);return null!==t&&t[0].length/2%2==1},De=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).deep,r=void 0!==t&&t;if(!W(e))return!1;var n="function"==typeof e.above&&"function"==typeof e.addMark&&"function"==typeof e.after&&"function"==typeof e.apply&&"function"==typeof e.before&&"function"==typeof e.collapse&&"function"==typeof e.delete&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.deselect&&"function"==typeof e.edges&&"function"==typeof e.elementReadOnly&&"function"==typeof e.end&&"function"==typeof e.first&&"function"==typeof e.fragment&&"function"==typeof e.getDirtyPaths&&"function"==typeof e.getFragment&&"function"==typeof e.getMarks&&"function"==typeof e.hasBlocks&&"function"==typeof e.hasInlines&&"function"==typeof e.hasPath&&"function"==typeof e.hasTexts&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertNodes&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertText&&"function"==typeof e.isBlock&&"function"==typeof e.isEdge&&"function"==typeof e.isElementReadOnly&&"function"==typeof e.isEmpty&&"function"==typeof e.isEnd&&"function"==typeof e.isInline&&"function"==typeof e.isNormalizing&&"function"==typeof e.isSelectable&&"function"==typeof e.isStart&&"function"==typeof e.isVoid&&"function"==typeof e.last&&"function"==typeof e.leaf&&"function"==typeof e.levels&&"function"==typeof e.liftNodes&&"function"==typeof e.markableVoid&&"function"==typeof e.mergeNodes&&"function"==typeof e.move&&"function"==typeof e.moveNodes&&"function"==typeof e.next&&"function"==typeof e.node&&"function"==typeof e.nodes&&"function"==typeof e.normalize&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.parent&&"function"==typeof e.path&&"function"==typeof e.pathRef&&"function"==typeof e.pathRefs&&"function"==typeof e.point&&"function"==typeof e.pointRef&&"function"==typeof e.pointRefs&&"function"==typeof e.positions&&"function"==typeof e.previous&&"function"==typeof e.range&&"function"==typeof e.rangeRef&&"function"==typeof e.rangeRefs&&"function"==typeof e.removeMark&&"function"==typeof e.removeNodes&&"function"==typeof e.select&&"function"==typeof e.setNodes&&"function"==typeof e.setNormalizing&&"function"==typeof e.setPoint&&"function"==typeof e.setSelection&&"function"==typeof e.shouldMergeNodesRemovePrevNode&&"function"==typeof e.shouldNormalize&&"function"==typeof e.splitNodes&&"function"==typeof e.start&&"function"==typeof e.string&&"function"==typeof e.unhangRange&&"function"==typeof e.unsetNodes&&"function"==typeof e.unwrapNodes&&"function"==typeof e.void&&"function"==typeof e.withoutNormalizing&&"function"==typeof e.wrapNodes&&(null===e.marks||W(e.marks))&&(null===e.selection||I.isRange(e.selection))&&(r?U.isNodeList(e.children)&&G.isOperationList(e.operations):Array.isArray(e.children)&&Array.isArray(e.operations));return n},Te={above:function(e,t){return e.above(t)},addMark:function(e,t,r){e.addMark(t,r)},after:function(e,t,r){return e.after(t,r)},before:function(e,t,r){return e.before(t,r)},deleteBackward:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).unit,r=void 0===t?"character":t;e.deleteBackward(r)},deleteForward:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).unit,r=void 0===t?"character":t;e.deleteForward(r)},deleteFragment:function(e,t){e.deleteFragment(t)},edges:function(e,t){return e.edges(t)},elementReadOnly:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.elementReadOnly(t)},end:function(e,t){return e.end(t)},first:function(e,t){return e.first(t)},fragment:function(e,t){return e.fragment(t)},hasBlocks:function(e,t){return e.hasBlocks(t)},hasInlines:function(e,t){return e.hasInlines(t)},hasPath:function(e,t){return e.hasPath(t)},hasTexts:function(e,t){return e.hasTexts(t)},insertBreak:function(e){e.insertBreak()},insertFragment:function(e,t,r){e.insertFragment(t,r)},insertNode:function(e,t){e.insertNode(t)},insertSoftBreak:function(e){e.insertSoftBreak()},insertText:function(e,t){e.insertText(t)},isBlock:function(e,t){return e.isBlock(t)},isEdge:function(e,t,r){return e.isEdge(t,r)},isEditor:De,isElementReadOnly:function(e,t){return e.isElementReadOnly(t)},isEmpty:function(e,t){return e.isEmpty(t)},isEnd:function(e,t,r){return e.isEnd(t,r)},isInline:function(e,t){return e.isInline(t)},isNormalizing:function(e){return e.isNormalizing()},isSelectable:function(e,t){return e.isSelectable(t)},isStart:function(e,t,r){return e.isStart(t,r)},isVoid:function(e,t){return e.isVoid(t)},last:function(e,t){return e.last(t)},leaf:function(e,t,r){return e.leaf(t,r)},levels:function(e,t){return e.levels(t)},marks:function(e){return e.getMarks()},next:function(e,t){return e.next(t)},node:function(e,t,r){return e.node(t,r)},nodes:function(e,t){return e.nodes(t)},normalize:function(e,t){e.normalize(t)},parent:function(e,t,r){return e.parent(t,r)},path:function(e,t,r){return e.path(t,r)},pathRef:function(e,t,r){return e.pathRef(t,r)},pathRefs:function(e){return e.pathRefs()},point:function(e,t,r){return e.point(t,r)},pointRef:function(e,t,r){return e.pointRef(t,r)},pointRefs:function(e){return e.pointRefs()},positions:function(e,t){return e.positions(t)},previous:function(e,t){return e.previous(t)},range:function(e,t,r){return e.range(t,r)},rangeRef:function(e,t,r){return e.rangeRef(t,r)},rangeRefs:function(e){return e.rangeRefs()},removeMark:function(e,t){e.removeMark(t)},setNormalizing:function(e,t){e.setNormalizing(t)},start:function(e,t){return e.start(t)},string:function(e,t,r){return e.string(t,r)},unhangRange:function(e,t,r){return e.unhangRange(t,r)},void:function(e,t){return e.void(t)},withoutNormalizing:function(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:function(e,t,r){return e.shouldMergeNodesRemovePrevNode(t,r)}},ke={isLocation:function(e){return y.isPath(e)||Fe.isPoint(e)||I.isRange(e)},isPath:function(e){return Array.isArray(e)},isPoint:function(e){return"offset"in e},isRange:function(e){return"anchor"in e},isSpan:function(e){return Array.isArray(e)&&Array.isArray(e[0])}},Oe={isSpan:function(e){return Array.isArray(e)&&2===e.length&&e.every(y.isPath)}};function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Fe={compare:function(e,t){var r=y.compare(e.path,t.path);return 0===r?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter:function(e,t){return 1===Fe.compare(e,t)},isBefore:function(e,t){return-1===Fe.compare(e,t)},equals:function(e,t){return e.offset===t.offset&&y.equals(e.path,t.path)},isPoint:function(e){return W(e)&&"number"==typeof e.offset&&y.isPath(e.path)},transform:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null===e)return null;var n=r.affinity,o=void 0===n?"forward":n,i=e.path,a=e.offset;switch(t.type){case"insert_node":case"move_node":i=y.transform(i,t,r);break;case"insert_text":y.equals(t.path,i)&&(t.offset<a||t.offset===a&&"forward"===o)&&(a+=t.text.length);break;case"merge_node":y.equals(t.path,i)&&(a+=t.position),i=y.transform(i,t,r);break;case"remove_text":y.equals(t.path,i)&&t.offset<=a&&(a-=Math.min(a-t.offset,t.text.length));break;case"remove_node":if(y.equals(t.path,i)||y.isAncestor(t.path,i))return null;i=y.transform(i,t,r);break;case"split_node":if(y.equals(t.path,i)){if(t.position===a&&null==o)return null;(t.position<a||t.position===a&&"forward"===o)&&(a-=t.position,i=y.transform(i,t,Be(Be({},r),{},{affinity:"forward"})))}else i=y.transform(i,t,r);break;default:return e}return{path:i,offset:a}}},Me=void 0,Ie={setScrubber:function(e){Me=e},stringify:function(e){return JSON.stringify(e,Me)}},Pe=["text"],Re=["anchor","focus","merge"];function Le(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return _e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _e(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ze(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ze(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var He={equals:function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).loose,n=void 0!==r&&r;function o(e){return e.text,B(e,Pe)}return Y(n?o(e):e,n?o(t):t)},isText:function(e){return W(e)&&"string"==typeof e.text},isTextList:function(e){return Array.isArray(e)&&e.every(function(e){return He.isText(e)})},isTextProps:function(e){return void 0!==e.text},matches:function(e,t){for(var r in t)if("text"!==r&&(!e.hasOwnProperty(r)||e[r]!==t[r]))return!1;return!0},decorations:function(e,t){var r,n=[{leaf:je({},e)}],o=Le(t);try{for(o.s();!(r=o.n()).done;){var i,a=r.value,s=(a.anchor,a.focus,a.merge),u=B(a,Re),l=I.edges(a),c=k(l,2),d=c[0],f=c[1],h=[],p=0,g=d.offset,m=f.offset,v=null!=s?s:Object.assign,y=Le(n);try{for(y.s();!(i=y.n()).done;){var b=i.value.leaf,w=b.text.length,E=p;if(p+=w,g<=E&&p<=m)v(b,u),h.push({leaf:b});else if(g!==m&&(g===p||m===E)||g>p||m<E||m===E&&0!==E)h.push({leaf:b});else{var x=b,S=void 0,C=void 0;if(m<p){var A=m-E;C={leaf:je(je({},x),{},{text:x.text.slice(A)})},x=je(je({},x),{},{text:x.text.slice(0,A)})}if(g>E){var D=g-E;S={leaf:je(je({},x),{},{text:x.text.slice(0,D)})},x=je(je({},x),{},{text:x.text.slice(D)})}v(x,u),S&&h.push(S),h.push({leaf:x}),C&&h.push(C)}}}catch(e){y.e(e)}finally{y.f()}n=h}}catch(e){o.e(e)}finally{o.f()}if(n.length>1){var T,O=0,N=Le(n.entries());try{for(N.s();!(T=N.n()).done;){var F=k(T.value,2),M=F[0],P=F[1],R=O,L=R+P.leaf.text.length,_={start:R,end:L};0===M&&(_.isFirst=!0),M===n.length-1&&(_.isLast=!0),P.position=_,O=L}}catch(e){N.e(e)}finally{N.f()}}return n}};function $e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Ve=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return[].concat(v(e.slice(0,t)),n,v(e.slice(t)))},qe=function(e,t,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];return[].concat(v(e.slice(0,t)),o,v(e.slice(t+r)))},Ge=qe,We=function(e,t,r){if(0===t.length)throw new Error("Cannot modify the editor");for(var n=U.get(e,t),o=t.slice(),i=r(n);o.length>1;){var a=o.pop(),s=U.get(e,o);i=Ue(Ue({},s),{},{children:qe(s.children,a,1,i)})}var u=o.pop();e.children=qe(e.children,u,1,i)},Ye=function(e,t,r){0===t.length?e.children=r(e.children):We(e,t,function(e){if(U.isText(e))throw new Error("Cannot get the element at path [".concat(t,"] because it refers to a leaf node: ").concat(Ie.stringify(e)));return Ue(Ue({},e),{},{children:r(e.children)})})},Ke=function(e,t,r){return We(e,t,function(e){if(!U.isText(e))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Ie.stringify(e)));return r(e)})};function Xe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Ze(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ze(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Je(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var et={transform:function(e,t){var r=!1;switch(t.type){case"insert_node":var n=t.path,o=t.node;Ye(e,y.parent(n),function(e){var t=n[n.length-1];if(t>e.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(n,"] because the destination is past the end of the node."));return Ve(e,t,o)}),r=!0;break;case"insert_text":var i=t.path,a=t.offset,s=t.text;if(0===s.length)break;Ke(e,i,function(e){var t=e.text.slice(0,a),r=e.text.slice(a);return Qe(Qe({},e),{},{text:t+s+r})}),r=!0;break;case"merge_node":var u=t.path,l=u[u.length-1],c=y.previous(u),d=c[c.length-1];Ye(e,y.parent(u),function(e){var t,r=e[l],n=e[d];if(U.isText(r)&&U.isText(n))t=Qe(Qe({},n),{},{text:n.text+r.text});else{if(!U.isElement(r)||!U.isElement(n))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(u,"] to nodes of different interfaces: ").concat(Ie.stringify(r)," ").concat(Ie.stringify(n)));t=Qe(Qe({},n),{},{children:n.children.concat(r.children)})}return qe(e,d,2,t)}),r=!0;break;case"move_node":var f=t.path,h=t.newPath,p=f[f.length-1];if(y.isAncestor(f,h))throw new Error("Cannot move a path [".concat(f,"] to new path [").concat(h,"] because the destination is inside itself."));var g=U.get(e,f);Ye(e,y.parent(f),function(e){return Ge(e,p,1)});var m=y.transform(f,t),v=m[m.length-1];Ye(e,y.parent(m),function(e){return Ve(e,v,g)}),r=!0;break;case"remove_node":var b=t.path,w=b[b.length-1];if(Ye(e,y.parent(b),function(e){return Ge(e,w,1)}),e.selection){var E,x=Qe({},e.selection),S=Xe(I.points(x));try{for(S.s();!(E=S.n()).done;){var C=k(E.value,2),A=C[0],D=C[1],T=Fe.transform(A,t);if(null!=x&&null!=T)x[D]=T;else{var O,N=void 0,B=void 0,F=Xe(U.texts(e));try{for(F.s();!(O=F.n()).done;){var M=k(O.value,2),P=M[0],R=M[1];if(-1!==y.compare(R,b)){B=[P,R];break}N=[P,R]}}catch(e){F.e(e)}finally{F.f()}var L=!1;N&&B&&(L=!y.isSibling(N[1],b)&&(!!y.equals(B[1],b)||y.common(N[1],b).length<y.common(B[1],b).length)),N&&!L?x[D]={path:N[1],offset:N[0].text.length}:B?x[D]={path:B[1],offset:0}:x=null}}}catch(e){S.e(e)}finally{S.f()}x&&I.equals(x,e.selection)||(e.selection=x)}break;case"remove_text":var _=t.path,z=t.offset,j=t.text;if(0===j.length)break;Ke(e,_,function(e){var t=e.text.slice(0,z),r=e.text.slice(z+j.length);return Qe(Qe({},e),{},{text:t+r})}),r=!0;break;case"set_node":var H=t.path,$=t.properties,V=t.newProperties;if(0===H.length)throw new Error("Cannot set properties on the root node!");We(e,H,function(e){var t=Qe({},e);for(var r in V){if("children"===r||"text"===r)throw new Error('Cannot set the "'.concat(r,'" property of nodes!'));var n=V[r];null==n?delete t[r]:t[r]=n}for(var o in $)V.hasOwnProperty(o)||delete t[o];return t});break;case"set_selection":var q=t.newProperties;if(null==q){e.selection=null;break}if(null==e.selection){if(!q.anchor||!q.focus)throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Ie.stringify(q)," when there is no current selection."));e.selection=Qe({},q);break}var G=Qe({},e.selection);for(var W in q){var Y=q[W];if(null==Y){if("anchor"===W||"focus"===W)throw new Error('Cannot remove the "'.concat(W,'" selection property'));delete G[W]}else G[W]=Y}e.selection=G;break;case"split_node":var K=t.path,X=t.position,Z=t.properties,J=K[K.length-1];if(0===K.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(K,"] because the root node cannot be split."));Ye(e,y.parent(K),function(e){var t,r,n=e[J];if(U.isText(n)){var o=n.text.slice(0,X),i=n.text.slice(X);t=Qe(Qe({},n),{},{text:o}),r=Qe(Qe({},Z),{},{text:i})}else{var a=n.children.slice(0,X),s=n.children.slice(X);t=Qe(Qe({},n),{},{children:a}),r=Qe(Qe({},Z),{},{children:s})}return qe(e,J,1,t,r)}),r=!0}if(r&&e.selection){var Q,ee=Qe({},e.selection),te=Xe(I.points(ee));try{for(te.s();!(Q=te.n()).done;){var re=k(Q.value,2),ne=re[0];ee[re[1]]=Fe.transform(ne,t)}}catch(e){te.e(e)}finally{te.f()}I.equals(ee,e.selection)||(e.selection=ee)}}},tt={delete:function(e,t){e.delete(t)},insertFragment:function(e,t,r){e.insertFragment(t,r)},insertText:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Te.withoutNormalizing(e,function(){var n=r.voids,o=void 0!==n&&n,i=r.at,a=void 0===i?K(e):i;if(ke.isPath(a)&&(a=Te.range(e,a)),ke.isRange(a))if(I.isCollapsed(a))a=a.anchor;else{var s=I.end(a);if(!o&&Te.void(e,{at:s}))return;var u=I.start(a),l=Te.pointRef(e,u),c=Te.pointRef(e,s);ot.delete(e,{at:a,voids:o});var d=l.unref(),f=c.unref();a=d||f,ot.setSelection(e,{anchor:a,focus:a})}if(!(!o&&Te.void(e,{at:a})||Te.elementReadOnly(e,{at:a}))){var h=a,p=h.path,g=h.offset;t.length>0&&e.apply({type:"insert_text",path:p,offset:g,text:t})}})}};function rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ot=nt(nt(nt(nt({},et),{insertNodes:function(e,t,r){e.insertNodes(t,r)},liftNodes:function(e,t){e.liftNodes(t)},mergeNodes:function(e,t){e.mergeNodes(t)},moveNodes:function(e,t){e.moveNodes(t)},removeNodes:function(e,t){e.removeNodes(t)},setNodes:function(e,t,r){e.setNodes(t,r)},splitNodes:function(e,t){e.splitNodes(t)},unsetNodes:function(e,t,r){e.unsetNodes(t,r)},unwrapNodes:function(e,t){e.unwrapNodes(t)},wrapNodes:function(e,t,r){e.wrapNodes(t,r)}}),{collapse:function(e,t){e.collapse(t)},deselect:function(e){e.deselect()},move:function(e,t){e.move(t)},select:function(e,t){e.select(t)},setPoint:function(e,t,r){e.setPoint(t,r)},setSelection:function(e,t){e.setSelection(t)}}),tt),it=new WeakMap;function at(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return st(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return st(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ut(e,t,r){var i,a,s=n.get(e)||[],u=o.get(e)||new Set,l=function(e){if(e){var t=e.join(",");a.has(t)||(a.add(t),i.push(e))}};if(r){i=[],a=new Set;var c,d=at(s);try{for(d.s();!(c=d.n()).done;){l(r(c.value))}}catch(e){d.e(e)}finally{d.f()}}else i=s,a=u;var f,h=at(t);try{for(h.s();!(f=h.n()).done;){l(f.value)}}catch(e){h.e(e)}finally{h.f()}n.set(e,i),o.set(e,a)}function lt(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return ct(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ct(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var dt=function(n,o){var a,s=lt(Te.pathRefs(n));try{for(s.s();!(a=s.n()).done;){var u=a.value;e.transform(u,o)}}catch(e){s.e(e)}finally{s.f()}var l,c=lt(Te.pointRefs(n));try{for(c.s();!(l=c.n()).done;){var d=l.value;t.transform(d,o)}}catch(e){c.e(e)}finally{c.f()}var f,h=lt(Te.rangeRefs(n));try{for(h.s();!(f=h.n()).done;){var p=f.value;r.transform(p,o)}}catch(e){h.e(e)}finally{h.f()}if(!function(e){return it.get(e)||!1}(n)){var g=y.operationCanTransformPath(o)?function(e){return y.transform(e,o)}:void 0;ut(n,n.getDirtyPaths(o),g)}ot.transform(n,o),n.operations.push(o),Te.normalize(n,{operation:o}),"set_selection"===o.type&&(n.marks=null),i.get(n)||(i.set(n,!0),Promise.resolve().then(function(){i.set(n,!1),n.onChange({operation:o}),n.operations=[]}))};function ft(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return ht(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ht(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var pt=function(e,t){switch(t.type){case"insert_text":case"remove_text":case"set_node":var r=t.path;return y.levels(r);case"insert_node":var n=t.node,o=t.path,i=y.levels(o),a=U.isText(n)?[]:Array.from(U.nodes(n),function(e){var t=k(e,2)[1];return o.concat(t)});return[].concat(v(i),v(a));case"merge_node":var s=t.path,u=y.ancestors(s),l=y.previous(s);return[].concat(v(u),[l]);case"move_node":var c=t.path,d=t.newPath;if(y.equals(c,d))return[];var f,h=[],p=[],g=ft(y.ancestors(c));try{for(g.s();!(f=g.n()).done;){var m=f.value,b=y.transform(m,t);h.push(b)}}catch(e){g.e(e)}finally{g.f()}var w,E=ft(y.ancestors(d));try{for(E.s();!(w=E.n()).done;){var x=w.value,S=y.transform(x,t);p.push(S)}}catch(e){E.e(e)}finally{E.f()}var C=p[p.length-1],A=d[d.length-1],D=C.concat(A);return[].concat(h,p,[D]);case"remove_node":var T=t.path,O=y.ancestors(T);return v(O);case"split_node":var N=t.path,B=y.levels(N),F=y.next(N);return[].concat(v(B),[F]);default:return[]}},gt=function(e){var t=e.selection;return t?U.fragment(e,t):[]},mt=function(e,t,r){var n=k(t,2),o=n[0],i=n[1];if(!U.isText(o)){"children"in o||(o.children=[]);var a=o;if(a!==e&&0===a.children.length){ot.insertNodes(e,{text:""},{at:i.concat(0),voids:!0}),a=U.get(e,i)}if(!(a===e)&&(e.isInline(a)||U.isText(a.children[0])||e.isInline(a.children[0])))for(var s=0;s<a.children.length;s++){var u=a.children[s],l=a.children[s-1];if(U.isText(u))null!=l&&U.isText(l)&&(""===u.text?(ot.removeNodes(e,{at:i.concat(s),voids:!0}),a=U.get(e,i),s--):""===l.text?(ot.removeNodes(e,{at:i.concat(s-1),voids:!0}),a=U.get(e,i),s--):He.equals(u,l,{loose:!0})&&(ot.mergeNodes(e,{at:i.concat(s),voids:!0}),a=U.get(e,i),s--));else if(e.isInline(u)){if(null==l||!U.isText(l)){ot.insertNodes(e,{text:""},{at:i.concat(s),voids:!0}),a=U.get(e,i),s++}if(s===a.children.length-1){ot.insertNodes(e,{text:""},{at:i.concat(s+1),voids:!0}),a=U.get(e,i),s++}}else ot.unwrapNodes(e,{at:i.concat(s),voids:!0}),a=U.get(e,i),s--}else for(var c=0;c<a.children.length;c++){var d=a.children[c];(U.isText(d)||e.isInline(d))&&(null!=r&&r.fallbackElement?ot.wrapNodes(e,r.fallbackElement(),{at:i.concat(c),voids:!0}):ot.removeNodes(e,{at:i.concat(c),voids:!0}),a=U.get(e,i),c--)}}},vt=function(e,t){var r=t.iteration,n=42*t.initialDirtyPathsLength;if(r>n)throw new Error("Could not completely normalize the editor after ".concat(n," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},yt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.voids,n=void 0!==r&&r,o=t.mode,i=void 0===o?"lowest":o,a=t.at,s=void 0===a?e.selection:a,u=t.match;if(s){var l=Te.path(e,s);if(!ke.isRange(s)||y.equals(s.focus.path,s.anchor.path)){if(0===l.length)return;l=y.parent(l)}var c="lowest"===i,d=Te.levels(e,{at:l,voids:n,match:u,reverse:c});return k(d,1)[0]}};function bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Et=function(e,t,r){var n=e.selection;if(n){var o=function(t,r){if(!U.isText(t))return!1;var n=Te.parent(e,r),o=k(n,2),i=o[0];return o[1],!e.isVoid(i)||e.markableVoid(i)},a=I.isExpanded(n),s=!1;if(!a){var u=Te.node(e,n),l=k(u,2),c=l[0],d=l[1];if(c&&o(c,d)){var f=Te.parent(e,d),h=k(f,1)[0];s=h&&e.markableVoid(h)}}if(a||s)ot.setNodes(e,S({},t,r),{match:o,split:!0,voids:!0});else{var p=wt(wt({},Te.marks(e)||{}),{},S({},t,r));e.marks=p,i.get(e)||e.onChange()}}};function xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function St(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ct(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return At(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return At(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Dt=function(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:Te.point(e,t,{edge:"end"}),focus:Te.end(e,[])},a=o.distance,s=void 0===a?1:a,u=0,l=Ct(Te.positions(e,St(St({},o),{},{at:i})));try{for(l.s();!(n=l.n()).done;){var c=n.value;if(u>s)break;0!==u&&(r=c),u++}}catch(e){l.e(e)}finally{l.f()}return r};function Tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function kt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ot(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Nt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nt(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Bt=function(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:Te.start(e,[]),focus:Te.point(e,t,{edge:"start"})},a=o.distance,s=void 0===a?1:a,u=0,l=Ot(Te.positions(e,kt(kt({},o),{},{at:i,reverse:!0})));try{for(l.s();!(n=l.n()).done;){var c=n.value;if(u>s)break;0!==u&&(r=c),u++}}catch(e){l.e(e)}finally{l.f()}return r},Ft=function(e,t){var r=e.selection;r&&I.isCollapsed(r)&&ot.delete(e,{unit:t,reverse:!0})},Mt=function(e,t){var r=e.selection;r&&I.isCollapsed(r)&&ot.delete(e,{unit:t})},It=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).direction,r=void 0===t?"forward":t,n=e.selection;n&&I.isExpanded(n)&&ot.delete(e,{reverse:"backward"===r})},Pt=function(e,t){return[Te.start(e,t),Te.end(e,t)]};function Rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var _t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Te.above(e,Lt(Lt({},t),{},{match:function(t){return U.isElement(t)&&Te.isElementReadOnly(e,t)}}))},zt=function(e,t){return Te.point(e,t,{edge:"end"})},jt=function(e,t){var r=Te.path(e,t,{edge:"start"});return Te.node(e,r)},Ht=function(e,t){var r=Te.range(e,t);return U.fragment(e,r)};function $t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ut(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$t(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Vt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Te.above(e,Ut(Ut({},t),{},{match:function(t){return U.isElement(t)&&Te.isVoid(e,t)}}))},qt=function(e,t){return t.children.some(function(t){return U.isElement(t)&&Te.isBlock(e,t)})},Gt=function(e,t){return t.children.some(function(t){return U.isText(t)||Te.isInline(e,t)})},Wt=function(e,t){return U.has(e,t)},Yt=function(e,t){return t.children.every(function(e){return U.isText(e)})},Kt=function(e){ot.splitNodes(e,{always:!0})},Xt=function(e,t,r){ot.insertNodes(e,t,r)},Zt=function(e){ot.splitNodes(e,{always:!0})};function Jt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var Qt=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.selection,o=e.marks;if(n){if(o){var i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({text:t},o);ot.insertNodes(e,i,{at:r.at,voids:r.voids})}else ot.insertText(e,t,r);e.marks=null}},er=function(e,t){return!e.isInline(t)},tr=function(e,t,r){return Te.isStart(e,t,r)||Te.isEnd(e,t,r)},rr=function(e,t){var r=t.children,n=k(r,1)[0];return 0===r.length||1===r.length&&U.isText(n)&&""===n.text&&!e.isVoid(t)},nr=function(e,t,r){var n=Te.end(e,r);return Fe.equals(t,n)},or=function(e){var t=a.get(e);return void 0===t||t},ir=function(e,t,r){if(0!==t.offset)return!1;var n=Te.start(e,r);return Fe.equals(t,n)},ar=function(e,t){var r=Te.path(e,t,{edge:"end"});return Te.node(e,r)},sr=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Te.path(e,t,r);return[U.leaf(e,n),n]};function ur(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return lr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lr(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var r=t.at,n=void 0===r?e.selection:r,o=t.reverse,i=void 0!==o&&o,a=t.voids,s=void 0!==a&&a,u=t.match;if(null==u&&(u=function(){return!0}),n){var l,c=[],d=Te.path(e,n),f=ur(U.levels(e,d));try{for(f.s();!(l=f.n()).done;){var h=k(l.value,2),p=h[0],g=h[1];if(u(p,g)&&(c.push([p,g]),!s&&U.isElement(p)&&Te.isVoid(e,p)))break}}catch(e){f.e(e)}finally{f.f()}i&&c.reverse(),yield*c}}()}var dr=["text"],fr=["text"],hr=function(e){var t=e.marks,r=e.selection;if(!r)return null;var n=r.anchor,o=r.focus;if(t)return t;if(I.isExpanded(r)){if(I.isBackward(r)){var i=[n,o];o=i[0],n=i[1]}if(Te.isEnd(e,n,n.path)){var a=Te.after(e,n);a&&(n=a)}var s=Te.nodes(e,{match:U.isText,at:{anchor:n,focus:o}}),u=k(s,1)[0];if(u){var l=k(u,1)[0];return l.text,B(l,dr)}return{}}var c=n.path,d=Te.leaf(e,c),f=k(d,1)[0];if(0===n.offset){var h=Te.previous(e,{at:c,match:U.isText}),p=Te.above(e,{match:function(t){return U.isElement(t)&&Te.isVoid(e,t)&&e.markableVoid(t)}});if(!p){var g=Te.above(e,{match:function(t){return U.isElement(t)&&Te.isBlock(e,t)}});if(h&&g){var m=k(h,2),v=m[0],b=m[1],w=k(g,2)[1];y.isAncestor(w,b)&&(f=v)}}}var E=f;return E.text,B(E,fr)},pr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.mode,n=void 0===r?"lowest":r,o=t.voids,i=void 0!==o&&o,a=t.match,s=t.at,u=void 0===s?e.selection:s;if(u){var l=Te.after(e,u,{voids:i});if(l){var c=Te.last(e,[]),d=k(c,2)[1],f=[l.path,d];if(ke.isPath(u)&&0===u.length)throw new Error("Cannot get the next node from the root node!");if(null==a)if(ke.isPath(u)){var h=Te.parent(e,u),p=k(h,1)[0];a=function(e){return p.children.includes(e)}}else a=function(){return!0};var g=Te.nodes(e,{at:f,match:a,mode:n,voids:i}),m=k(g,1)[0];return m}}},gr=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Te.path(e,t,r),o=U.get(e,n);return[o,n]};function mr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return vr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vr(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var r=t.at,n=void 0===r?e.selection:r,o=t.mode,i=void 0===o?"all":o,a=t.universal,s=void 0!==a&&a,u=t.reverse,l=void 0!==u&&u,c=t.voids,d=void 0!==c&&c,f=t.pass,h=t.match;if(h||(h=function(){return!0}),n){var p,g;if(ke.isSpan(n))p=n[0],g=n[1];else{var m=Te.path(e,n,{edge:"start"}),v=Te.path(e,n,{edge:"end"});p=l?v:m,g=l?m:v}var b,w,E=U.nodes(e,{reverse:l,from:p,to:g,pass:function(t){var r=k(t,2),n=r[0],o=r[1];return!(!f||!f([n,o]))||!!U.isElement(n)&&!(d||!Te.isVoid(e,n)&&!Te.isElementReadOnly(e,n))}}),x=[],S=mr(E);try{for(S.s();!(w=S.n()).done;){var C=k(w.value,2),A=C[0],D=C[1],T=b&&0===y.compare(D,b[1]);if("highest"!==i||!T)if(h(A,D))if("lowest"===i&&T)b=[A,D];else{var O="lowest"===i?b:[A,D];O&&(s?x.push(O):yield O),b=[A,D]}else if(s&&!T&&U.isText(A))return}}catch(e){S.e(e)}finally{S.f()}"lowest"===i&&b&&(s?x.push(b):yield b),s&&(yield*x)}}()}function br(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return wr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wr(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Er=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.force,i=void 0!==r&&r,a=t.operation,s=function(e){return n.get(e)||[]},u=function(e){var t=s(e).pop(),r=t.join(",");return function(e){return o.get(e)||new Set}(e).delete(r),t};if(Te.isNormalizing(e)){if(i){var l=Array.from(U.nodes(e),function(e){return k(e,2)[1]}),c=new Set(l.map(function(e){return e.join(",")}));n.set(e,l),o.set(e,c)}0!==s(e).length&&Te.withoutNormalizing(e,function(){var t,r=br(s(e));try{for(r.s();!(t=r.n()).done;){var n=t.value;if(U.has(e,n)){var o=Te.node(e,n),i=k(o,2),l=i[0];i[1];U.isElement(l)&&0===l.children.length&&e.normalizeNode(o,{operation:a})}}}catch(e){r.e(e)}finally{r.f()}for(var c=s(e),d=c.length,f=0;0!==c.length;){if(!e.shouldNormalize({dirtyPaths:c,iteration:f,initialDirtyPathsLength:d,operation:a}))return;var h=u(e);if(U.has(e,h)){var p=Te.node(e,h);e.normalizeNode(p,{operation:a})}f++,c=s(e)}})}},xr=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Te.path(e,t,r),o=y.parent(n);return Te.node(e,o)},Sr=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,n={current:t,affinity:void 0===r?"forward":r,unref:function(){var t=n.current;return Te.pathRefs(e).delete(n),n.current=null,t}};return Te.pathRefs(e).add(n),n},Cr=function(e){var t=s.get(e);return t||(t=new Set,s.set(e,t)),t},Ar=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.depth,o=r.edge;if(ke.isPath(t))if("start"===o){var i=U.first(e,t);t=k(i,2)[1]}else if("end"===o){var a=U.last(e,t);t=k(a,2)[1]}return ke.isRange(t)&&(t="start"===o?I.start(t):"end"===o?I.end(t):y.common(t.anchor.path,t.focus.path)),ke.isPoint(t)&&(t=t.path),null!=n&&(t=t.slice(0,n)),t},Dr=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,n={current:t,affinity:void 0===r?"forward":r,unref:function(){var t=n.current;return Te.pointRefs(e).delete(n),n.current=null,t}};return Te.pointRefs(e).add(n),n},Tr=function(e){var t=u.get(e);return t||(t=new Set,u.set(e,t)),t},kr=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).edge,n=void 0===r?"start":r;if(ke.isPath(t)){var o;if("end"===n){var i=U.last(e,t);o=k(i,2)[1]}else{var a=U.first(e,t);o=k(a,2)[1]}var s=U.get(e,o);if(!U.isText(s))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(t,"] because it has no ").concat(n," text node."));return{path:o,offset:"end"===n?s.text.length:0}}if(ke.isRange(t)){var u=I.edges(t),l=k(u,2),c=l[0],d=l[1];return"start"===n?c:d}return t};function Or(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Nr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nr(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Br(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var r=t.at,n=void 0===r?e.selection:r,o=t.unit,i=void 0===o?"offset":o,a=t.reverse,s=void 0!==a&&a,u=t.voids,l=void 0!==u&&u;if(n){var c,d=Te.range(e,n),f=I.edges(d),h=k(f,2),p=h[0],g=h[1],m=s?g:p,v=!1,b="",w=0,E=0,x=0,S=[],C=Or(Te.nodes(e,{at:n,reverse:s,voids:l}));try{var A=function*(){var t=k(c.value,2),r=t[0],n=t[1],o=S.some(function(e){return y.isAncestor(e,n)});function*a(e){o||(yield e)}if(U.isElement(r)){if(!e.isSelectable(r)){if(S.push(n),s)return y.hasPrevious(n)&&(yield*a(Te.end(e,y.previous(n)))),0;var u=y.next(n);return Te.hasPath(e,u)&&(yield*a(Te.start(e,u))),0}if(!l&&(e.isVoid(r)||e.isElementReadOnly(r)))return yield*a(Te.start(e,n)),0;if(e.isInline(r))return 0;if(Te.hasInlines(e,r)){var d=y.isAncestor(n,g.path)?g:Te.end(e,n),f=y.isAncestor(n,p.path)?p:Te.start(e,n);b=Te.string(e,{anchor:f,focus:d},{voids:l}),v=!0}}if(U.isText(r)){var h=y.equals(n,m.path);for(h?(E=s?m.offset:r.text.length-m.offset,x=m.offset):(E=r.text.length,x=s?E:0),(h||v||"offset"===i)&&(yield*a({path:n,offset:x}),v=!1);;){if(0===w){if(""===b)break;w=D(b,i,s),b=oe(b,w,s)[1]}if(x=s?x-w:x+w,(E-=w)<0){w=-E;break}w=0,yield*a({path:n,offset:x})}}};for(C.s();!(c=C.n()).done;)yield*A()}catch(e){C.e(e)}finally{C.f()}}function D(e,t,r){return"character"===t?ee(e,r):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0,n=!1;e.length>0;){var o=ee(e,t),i=oe(e,o,t),a=k(i,2),s=a[0],u=a[1];if(ie(s,u,t))n=!0,r+=o;else{if(n)break;r+=o}e=u}return r}(e,r):"line"===t||"block"===t?e.length:1}}()}var Fr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.mode,n=void 0===r?"lowest":r,o=t.voids,i=void 0!==o&&o,a=t.match,s=t.at,u=void 0===s?e.selection:s;if(u){var l=Te.before(e,u,{voids:i});if(l){var c=Te.first(e,[]),d=k(c,2)[1],f=[l.path,d];if(ke.isPath(u)&&0===u.length)throw new Error("Cannot get the previous node from the root node!");if(null==a)if(ke.isPath(u)){var h=Te.parent(e,u),p=k(h,1)[0];a=function(e){return p.children.includes(e)}}else a=function(){return!0};var g=Te.nodes(e,{reverse:!0,at:f,match:a,mode:n,voids:i}),m=k(g,1)[0];return m}}},Mr=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).affinity,n={current:t,affinity:void 0===r?"forward":r,unref:function(){var t=n.current;return Te.rangeRefs(e).delete(n),n.current=null,t}};return Te.rangeRefs(e).add(n),n},Ir=function(e){var t=l.get(e);return t||(t=new Set,l.set(e,t)),t},Pr=function(e,t,r){return ke.isRange(t)&&!r?t:{anchor:Te.start(e,t),focus:Te.end(e,r||t)}};function Rr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var Lr=function(e,t){var r=e.selection;if(r){var n=function(t,r){if(!U.isText(t))return!1;var n=Te.parent(e,r),o=k(n,2),i=o[0];return o[1],!e.isVoid(i)||e.markableVoid(i)},o=I.isExpanded(r),a=!1;if(!o){var s=Te.node(e,r),u=k(s,2),l=u[0],c=u[1];if(l&&n(l,c)){var d=Te.parent(e,c),f=k(d,1)[0];a=f&&e.markableVoid(f)}}if(o||a)ot.unsetNodes(e,t,{match:n,split:!0,voids:!0});else{var h=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},Te.marks(e)||{});delete h[t],e.marks=h,i.get(e)||e.onChange()}}},_r=function(e,t){a.set(e,t)},zr=function(e,t){return Te.point(e,t,{edge:"start"})};function jr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Hr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hr(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Hr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $r=function(e,t){var r,n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).voids,o=void 0!==n&&n,i=Te.range(e,t),a=I.edges(i),s=k(a,2),u=s[0],l=s[1],c="",d=jr(Te.nodes(e,{at:i,match:U.isText,voids:o}));try{for(d.s();!(r=d.n()).done;){var f=k(r.value,2),h=f[0],p=f[1],g=h.text;y.equals(p,l.path)&&(g=g.slice(0,l.offset)),y.equals(p,u.path)&&(g=g.slice(u.offset)),c+=g}}catch(e){d.e(e)}finally{d.f()}return c};function Ur(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Vr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vr(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var qr=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).voids,n=void 0!==r&&r,o=I.edges(t),i=k(o,2),a=i[0],s=i[1];if(0!==a.offset||0!==s.offset||I.isCollapsed(t)||y.hasPrevious(s.path))return t;var u,l=Te.above(e,{at:s,match:function(t){return U.isElement(t)&&Te.isBlock(e,t)},voids:n}),c=l?l[1]:[],d={anchor:Te.start(e,a),focus:s},f=!0,h=Ur(Te.nodes(e,{at:d,match:U.isText,reverse:!0,voids:n}));try{for(h.s();!(u=h.n()).done;){var p=k(u.value,2),g=p[0],m=p[1];if(f)f=!1;else if(""!==g.text||y.isBefore(m,c)){s={path:m,offset:g.text.length};break}}}catch(e){h.e(e)}finally{h.f()}return{anchor:a,focus:s}},Gr=function(e,t){var r=Te.isNormalizing(e);Te.setNormalizing(e,!1);try{t()}finally{Te.setNormalizing(e,r)}Te.normalize(e)},Wr=function(e,t,r){var n=k(t,2),o=n[0],i=n[1],a=k(r,2);return a[0],a[1],U.isElement(o)&&Te.isEmpty(e,o)||U.isText(o)&&""===o.text&&0!==i[i.length-1]};function Yr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Kr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kr(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Xr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Te.withoutNormalizing(e,function(){var r,n,o=t.reverse,i=void 0!==o&&o,a=t.unit,s=void 0===a?"character":a,u=t.distance,l=void 0===u?1:u,c=t.voids,d=void 0!==c&&c,f=t.at,h=void 0===f?e.selection:f,p=t.hanging,g=void 0!==p&&p;if(h){var m=!1;if(ke.isRange(h)&&I.isCollapsed(h)&&(m=!0,h=h.anchor),ke.isPoint(h)){var v=Te.void(e,{at:h,mode:"highest"});if(!d&&v){h=k(v,2)[1]}else{var b={unit:s,distance:l};h={anchor:h,focus:i?Te.before(e,h,b)||Te.start(e,[]):Te.after(e,h,b)||Te.end(e,[])},g=!0}}if(ke.isPath(h))ot.removeNodes(e,{at:h,voids:d});else if(!I.isCollapsed(h)){if(!g){var w=I.edges(h),E=k(w,2)[1],x=Te.end(e,[]);Fe.equals(E,x)||(h=Te.unhangRange(e,h,{voids:d}))}var S=I.edges(h),C=k(S,2),A=C[0],D=C[1],T=Te.above(e,{match:function(t){return U.isElement(t)&&Te.isBlock(e,t)},at:A,voids:d}),O=Te.above(e,{match:function(t){return U.isElement(t)&&Te.isBlock(e,t)},at:D,voids:d}),N=T&&O&&!y.equals(T[1],O[1]),B=y.equals(A.path,D.path),F=d?null:null!==(r=Te.void(e,{at:A,mode:"highest"}))&&void 0!==r?r:Te.elementReadOnly(e,{at:A,mode:"highest"}),M=d?null:null!==(n=Te.void(e,{at:D,mode:"highest"}))&&void 0!==n?n:Te.elementReadOnly(e,{at:D,mode:"highest"});if(F){var P=Te.before(e,A);P&&T&&y.isAncestor(T[1],P.path)&&(A=P)}if(M){var R=Te.after(e,D);R&&O&&y.isAncestor(O[1],R.path)&&(D=R)}var L,_,z=[],j=Yr(Te.nodes(e,{at:h,voids:d}));try{for(j.s();!(_=j.n()).done;){var H=_.value,$=k(H,2),V=$[0],q=$[1];L&&0===y.compare(q,L)||(!d&&U.isElement(V)&&(Te.isVoid(e,V)||Te.isElementReadOnly(e,V))||!y.isCommon(q,A.path)&&!y.isCommon(q,D.path))&&(z.push(H),L=q)}}catch(e){j.e(e)}finally{j.f()}var G=Array.from(z,function(t){var r=k(t,2)[1];return Te.pathRef(e,r)}),W=Te.pointRef(e,A),Y=Te.pointRef(e,D),K="";if(!B&&!F){var X=W.current,Z=Te.leaf(e,X),J=k(Z,1)[0],Q=X.path,ee=A.offset,te=J.text.slice(ee);te.length>0&&(e.apply({type:"remove_text",path:Q,offset:ee,text:te}),K=te)}if(G.reverse().map(function(e){return e.unref()}).filter(function(e){return null!==e}).forEach(function(t){return ot.removeNodes(e,{at:t,voids:d})}),!M){var re=Y.current,ne=Te.leaf(e,re),oe=k(ne,1)[0],ie=re.path,ae=B?A.offset:0,se=oe.text.slice(ae,D.offset);se.length>0&&(e.apply({type:"remove_text",path:ie,offset:ae,text:se}),K=se)}!B&&N&&Y.current&&W.current&&ot.mergeNodes(e,{at:Y.current,hanging:!0,voids:d}),m&&i&&"character"===s&&K.length>1&&K.match(/[\u0980-\u09FF\u0E00-\u0E7F\u1000-\u109F\u0900-\u097F\u1780-\u17FF\u0D00-\u0D7F\u0B00-\u0B7F\u0A00-\u0A7F\u0B80-\u0BFF\u0C00-\u0C7F]+/)&&ot.insertText(e,K.slice(0,K.length-l));var ue=W.unref(),le=Y.unref(),ce=i?ue||le:le||ue;null==t.at&&ce&&ot.select(e,ce)}}})};function Zr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Jr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jr(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Qr=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Te.withoutNormalizing(e,function(){var n=r.hanging,o=void 0!==n&&n,i=r.voids,a=void 0!==i&&i,s=r.at,u=void 0===s?K(e):s,l=r.batchDirty,c=void 0===l||l;if(t.length){if(ke.isRange(u))if(o||(u=Te.unhangRange(e,u,{voids:a})),I.isCollapsed(u))u=u.anchor;else{var d=I.edges(u),f=k(d,2)[1];if(!a&&Te.void(e,{at:f}))return;var h=Te.pointRef(e,f);ot.delete(e,{at:u}),u=h.unref()}else ke.isPath(u)&&(u=Te.start(e,u));if(a||!Te.void(e,{at:u})){var p=Te.above(e,{at:u,match:function(t){return U.isElement(t)&&Te.isInline(e,t)},mode:"highest",voids:a});if(p){var g=k(p,2)[1];if(Te.isEnd(e,u,g))u=Te.after(e,g);else if(Te.isStart(e,u,g)){u=Te.before(e,g)}}var m,v=Te.above(e,{match:function(t){return U.isElement(t)&&Te.isBlock(e,t)},at:u,voids:a}),b=k(v,2)[1],w=Te.isStart(e,u,b),E=Te.isEnd(e,u,b),x=w&&E,S=U.first({children:t},[]),C=k(S,2)[1],A=U.last({children:t},[]),D=k(A,2)[1],T=function(t){var r=k(t,2),n=r[0],o=r[1];return!(0===o.length)&&(!!x||!(!w&&y.isAncestor(o,C)&&U.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(!E&&y.isAncestor(o,D)&&U.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))},O=!0,N=[],B=[],F=[],M=Zr(U.nodes({children:t},{pass:T}));try{for(M.s();!(m=M.n()).done;){var P=m.value,R=k(P,2),L=R[0],_=R[1];O&&U.isElement(L)&&!e.isInline(L)&&!y.isAncestor(_,C)&&(O=!1),T(P)&&(U.isElement(L)&&!e.isInline(L)?(O=!1,B.push(L)):O?N.push(L):F.push(L))}}catch(e){M.e(e)}finally{M.f()}var z=Te.nodes(e,{at:u,match:function(t){return U.isText(t)||Te.isInline(e,t)},mode:"highest",voids:a}),j=k(z,1)[0],H=k(j,2)[1],$=Te.isStart(e,u,H),V=Te.isEnd(e,u,H),q=Te.pathRef(e,E&&!F.length?y.next(b):b),G=Te.pathRef(e,V?y.next(H):H),W=F.length>0;ot.splitNodes(e,{at:u,match:function(t){return W?U.isElement(t)&&Te.isBlock(e,t):U.isText(t)||Te.isInline(e,t)},mode:W?"lowest":"highest",always:W&&(!w||N.length>0)&&(!E||F.length>0),voids:a});var Y,X=Te.pathRef(e,!$||$&&V?y.next(H):H);if(ot.insertNodes(e,N,{at:X.current,match:function(t){return U.isText(t)||Te.isInline(e,t)},mode:"highest",voids:a,batchDirty:c}),x&&!N.length&&B.length&&!F.length&&ot.delete(e,{at:b,voids:a}),ot.insertNodes(e,B,{at:q.current,match:function(t){return U.isElement(t)&&Te.isBlock(e,t)},mode:"lowest",voids:a,batchDirty:c}),ot.insertNodes(e,F,{at:G.current,match:function(t){return U.isText(t)||Te.isInline(e,t)},mode:"highest",voids:a,batchDirty:c}),!r.at)if(F.length>0&&G.current?Y=y.previous(G.current):B.length>0&&q.current?Y=y.previous(q.current):X.current&&(Y=y.previous(X.current)),Y){var Z=Te.end(e,Y);ot.select(e,Z)}X.unref(),q.unref(),G.unref()}}})},en=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).edge,r=void 0===t?"anchor":t,n=e.selection;if(n)if("anchor"===r)ot.select(e,n.anchor);else if("focus"===r)ot.select(e,n.focus);else if("start"===r){var o=I.edges(n),i=k(o,1)[0];ot.select(e,i)}else if("end"===r){var a=I.edges(n),s=k(a,2)[1];ot.select(e,s)}},tn=function(e){var t=e.selection;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},rn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.selection,n=t.distance,o=void 0===n?1:n,i=t.unit,a=void 0===i?"character":i,s=t.reverse,u=void 0!==s&&s,l=t.edge,c=void 0===l?null:l;if(r){"start"===c&&(c=I.isBackward(r)?"focus":"anchor"),"end"===c&&(c=I.isBackward(r)?"anchor":"focus");var d=r.anchor,f=r.focus,h={distance:o,unit:a},p={};if(null==c||"anchor"===c){var g=u?Te.before(e,d,h):Te.after(e,d,h);g&&(p.anchor=g)}if(null==c||"focus"===c){var m=u?Te.before(e,f,h):Te.after(e,f,h);m&&(p.focus=m)}ot.setSelection(e,p)}},nn=function(e,t){var r=e.selection;if(t=Te.range(e,t),r)ot.setSelection(e,t);else{if(!ke.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(Ie.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})}};function on(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function an(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?on(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):on(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var sn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.selection,o=r.edge,i=void 0===o?"both":o;if(n){"start"===i&&(i=I.isBackward(n)?"focus":"anchor"),"end"===i&&(i=I.isBackward(n)?"anchor":"focus");var a=n.anchor,s=n.focus,u="anchor"===i?a:s;ot.setSelection(e,S({},"anchor"===i?"anchor":"focus",an(an({},u),t)))}},un=function(e,t){var r=e.selection,n={},o={};if(r){for(var i in t)("anchor"===i&&null!=t.anchor&&!Fe.equals(t.anchor,r.anchor)||"focus"===i&&null!=t.focus&&!Fe.equals(t.focus,r.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==r[i])&&(n[i]=r[i],o[i]=t[i]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:o})}};function ln(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return cn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cn(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function cn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var dn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Te.withoutNormalizing(e,function(){var n=r.hanging,o=void 0!==n&&n,i=r.voids,a=void 0!==i&&i,s=r.mode,u=void 0===s?"lowest":s,l=r.batchDirty,c=void 0===l||l,d=r.at,f=r.match,h=r.select;if(U.isNode(t)&&(t=[t]),0!==t.length){var p=k(t,1)[0];if(d||(d=K(e),!1!==h&&(h=!0)),null==h&&(h=!1),ke.isRange(d))if(o||(d=Te.unhangRange(e,d,{voids:a})),I.isCollapsed(d))d=d.anchor;else{var g=I.edges(d),m=k(g,2)[1],b=Te.pointRef(e,m);ot.delete(e,{at:d}),d=b.unref()}if(ke.isPoint(d)){null==f&&(f=U.isText(p)?function(e){return U.isText(e)}:e.isInline(p)?function(t){return U.isText(t)||Te.isInline(e,t)}:function(t){return U.isElement(t)&&Te.isBlock(e,t)});var w=Te.nodes(e,{at:d.path,match:f,mode:u,voids:a}),E=k(w,1)[0];if(!E)return;var x=k(E,2)[1],S=Te.pathRef(e,x),C=Te.isEnd(e,d,x);ot.splitNodes(e,{at:d,match:f,mode:u,voids:a});var A=S.unref();d=C?y.next(A):A}var D=y.parent(d),T=d[d.length-1];if(a||!Te.void(e,{at:D})){if(c){var O=[],N=y.levels(D);!function(e,t,r){var n=it.get(e)||!1;it.set(e,!0);try{t(),r()}finally{it.set(e,n)}}(e,function(){var r,n=ln(t);try{var o=function(){var t=r.value,n=D.concat(T);T++;var o={type:"insert_node",path:n,node:t};e.apply(o),d=y.next(d),O.push(o),U.isText(t)?N.push(n):N.push.apply(N,v(Array.from(U.nodes(t),function(e){var t=k(e,2)[1];return n.concat(t)})))};for(n.s();!(r=n.n()).done;)o()}catch(e){n.e(e)}finally{n.f()}},function(){ut(e,N,function(e){for(var t=e,r=0,n=O;r<n.length;r++){var o=n[r];if(y.operationCanTransformPath(o)&&!(t=y.transform(t,o)))return null}return t})})}else{var B,F=ln(t);try{for(F.s();!(B=F.n()).done;){var M=B.value,P=D.concat(T);T++,e.apply({type:"insert_node",path:P,node:M}),d=y.next(d)}}catch(e){F.e(e)}finally{F.f()}}if(d=y.previous(d),h){var R=Te.end(e,d);R&&ot.select(e,R)}}}})},fn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Te.withoutNormalizing(e,function(){var r=t.at,n=void 0===r?e.selection:r,o=t.mode,i=void 0===o?"lowest":o,a=t.voids,s=void 0!==a&&a,u=t.match;if(n){null==u&&(u=ke.isPath(n)?X(e,n):function(t){return U.isElement(t)&&Te.isBlock(e,t)});for(var l=Te.nodes(e,{at:n,match:u,mode:i,voids:s}),c=Array.from(l,function(t){var r=k(t,2)[1];return Te.pathRef(e,r)}),d=0,f=c;d<f.length;d++){var h=f[d].unref();if(h.length<2)throw new Error("Cannot lift node at a path [".concat(h,"] because it has a depth of less than `2`."));var p=Te.node(e,y.parent(h)),g=k(p,2),m=g[0],v=g[1],b=h[h.length-1],w=m.children.length;if(1===w){var E=y.next(v);ot.moveNodes(e,{at:h,to:E,voids:s}),ot.removeNodes(e,{at:v,voids:s})}else if(0===b)ot.moveNodes(e,{at:h,to:v,voids:s});else if(b===w-1){var x=y.next(v);ot.moveNodes(e,{at:h,to:x,voids:s})}else{var S=y.next(h),C=y.next(v);ot.splitNodes(e,{at:S,voids:s}),ot.moveNodes(e,{at:h,to:C,voids:s})}}}})},hn=["text"],pn=["children"],gn=function e(t,r){return r!==t&&(U.isText(r)||Te.isVoid(t,r)||1===r.children.length&&e(t,r.children[0]))},mn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Te.withoutNormalizing(e,function(){var r=t.match,n=t.at,o=void 0===n?e.selection:n,i=t.hanging,a=void 0!==i&&i,s=t.voids,u=void 0!==s&&s,l=t.mode,c=void 0===l?"lowest":l;if(o){if(null==r)if(ke.isPath(o)){var d=Te.parent(e,o),f=k(d,1)[0];r=function(e){return f.children.includes(e)}}else r=function(t){return U.isElement(t)&&Te.isBlock(e,t)};if(!a&&ke.isRange(o)&&(o=Te.unhangRange(e,o,{voids:u})),ke.isRange(o))if(I.isCollapsed(o))o=o.anchor;else{var h=I.edges(o),p=k(h,2)[1],g=Te.pointRef(e,p);ot.delete(e,{at:o}),o=g.unref(),null==t.at&&ot.select(e,o)}var m=Te.nodes(e,{at:o,match:r,voids:u,mode:c}),v=k(m,1)[0],b=Te.previous(e,{at:o,match:r,voids:u,mode:c});if(v&&b){var w=k(v,2),E=w[0],x=w[1],S=k(b,2),C=S[0],A=S[1];if(0!==x.length&&0!==A.length){var D,T,O=y.next(A),N=y.common(x,A),F=y.isSibling(x,A),M=Array.from(Te.levels(e,{at:x}),function(e){return k(e,1)[0]}).slice(N.length).slice(0,-1),P=Te.above(e,{at:x,mode:"highest",match:function(t){return M.includes(t)&&gn(e,t)}}),R=P&&Te.pathRef(e,P[1]);if(U.isText(E)&&U.isText(C)){E.text;var L=B(E,hn);T=C.text.length,D=L}else{if(!U.isElement(E)||!U.isElement(C))throw new Error("Cannot merge the node at path [".concat(x,"] with the previous sibling because it is not the same kind: ").concat(Ie.stringify(E)," ").concat(Ie.stringify(C)));E.children;var _=B(E,pn);T=C.children.length,D=_}F||ot.moveNodes(e,{at:x,to:O,voids:u}),R&&ot.removeNodes(e,{at:R.current,voids:u}),Te.shouldMergeNodesRemovePrevNode(e,b,v)?ot.removeNodes(e,{at:A,voids:u}):e.apply({type:"merge_node",path:O,position:T,properties:D}),R&&R.unref()}}}})},vn=function(e,t){Te.withoutNormalizing(e,function(){var r=t.to,n=t.at,o=void 0===n?e.selection:n,i=t.mode,a=void 0===i?"lowest":i,s=t.voids,u=void 0!==s&&s,l=t.match;if(o){null==l&&(l=ke.isPath(o)?X(e,o):function(t){return U.isElement(t)&&Te.isBlock(e,t)});for(var c=Te.pathRef(e,r),d=Te.nodes(e,{at:o,match:l,mode:a,voids:u}),f=Array.from(d,function(t){var r=k(t,2)[1];return Te.pathRef(e,r)}),h=0,p=f;h<p.length;h++){var g=p[h].unref(),m=c.current;0!==g.length&&e.apply({type:"move_node",path:g,newPath:m}),c.current&&y.isSibling(m,g)&&y.isAfter(m,g)&&(c.current=y.next(c.current))}c.unref()}})},yn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Te.withoutNormalizing(e,function(){var r=t.hanging,n=void 0!==r&&r,o=t.voids,i=void 0!==o&&o,a=t.mode,s=void 0===a?"lowest":a,u=t.at,l=void 0===u?e.selection:u,c=t.match;if(l){null==c&&(c=ke.isPath(l)?X(e,l):function(t){return U.isElement(t)&&Te.isBlock(e,t)}),!n&&ke.isRange(l)&&(l=Te.unhangRange(e,l,{voids:i}));for(var d=Te.nodes(e,{at:l,match:c,mode:s,voids:i}),f=Array.from(d,function(t){var r=k(t,2)[1];return Te.pathRef(e,r)}),h=0,p=f;h<p.length;h++){var g=p[h].unref();if(g){var m=Te.node(e,g),v=k(m,1)[0];e.apply({type:"remove_node",path:g,node:v})}}}})};function bn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return wn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wn(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var En=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Te.withoutNormalizing(e,function(){var n=r.match,o=r.at,i=void 0===o?e.selection:o,a=r.compare,s=r.merge,u=r.hanging,l=void 0!==u&&u,c=r.mode,d=void 0===c?"lowest":c,f=r.split,h=void 0!==f&&f,p=r.voids,g=void 0!==p&&p;if(i){if(null==n&&(n=ke.isPath(i)?X(e,i):function(t){return U.isElement(t)&&Te.isBlock(e,t)}),!l&&ke.isRange(i)&&(i=Te.unhangRange(e,i,{voids:g})),h&&ke.isRange(i)){if(I.isCollapsed(i)&&Te.leaf(e,i.anchor)[0].text.length>0)return;var m=Te.rangeRef(e,i,{affinity:"inward"}),v=I.edges(i),y=k(v,2),b=y[0],w=y[1],E="lowest"===d?"lowest":"highest",x=Te.isEnd(e,w,w.path);ot.splitNodes(e,{at:w,match:n,mode:E,voids:g,always:!x});var S=Te.isStart(e,b,b.path);ot.splitNodes(e,{at:b,match:n,mode:E,voids:g,always:!S}),i=m.unref(),null==r.at&&ot.select(e,i)}a||(a=function(e,t){return e!==t});var C,A=bn(Te.nodes(e,{at:i,match:n,mode:d,voids:g}));try{for(A.s();!(C=A.n()).done;){var D=k(C.value,2),T=D[0],O=D[1],N={},B={};if(0!==O.length){var F=!1;for(var M in t)"children"!==M&&"text"!==M&&a(t[M],T[M])&&(F=!0,T.hasOwnProperty(M)&&(N[M]=T[M]),s?null!=t[M]&&(B[M]=s(T[M],t[M])):null!=t[M]&&(B[M]=t[M]));F&&e.apply({type:"set_node",path:O,properties:N,newProperties:B})}}}catch(e){A.e(e)}finally{A.f()}}})};function xn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Sn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sn(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Cn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Te.withoutNormalizing(e,function(){var r=t.mode,n=void 0===r?"lowest":r,o=t.voids,i=void 0!==o&&o,a=t.match,s=t.at,u=void 0===s?e.selection:s,l=t.height,c=void 0===l?0:l,d=t.always,f=void 0!==d&&d;if(u&&(null==a&&(a=function(t){return U.isElement(t)&&Te.isBlock(e,t)}),!ke.isRange(u)||(u=function(e,t){if(I.isCollapsed(t))return t.anchor;var r=I.edges(t),n=k(r,2)[1],o=Te.pointRef(e,n);return ot.delete(e,{at:t}),o.unref()}(e,u),u))){if(ke.isPath(u)){var h=u,p=Te.point(e,h),g=Te.parent(e,h),m=k(g,1)[0];a=function(e){return e===m},c=p.path.length-h.length+1,u=p,f=!0}var v,b=Te.pointRef(e,u,{affinity:"backward"});try{var w=Te.nodes(e,{at:u,match:a,mode:n,voids:i}),E=k(w,1)[0];if(!E)return;var x=Te.void(e,{at:u,mode:"highest"});if(!i&&x){var S=k(x,2),C=S[0],A=S[1];if(e.isInline(C)){var D=Te.after(e,A);if(!D){var T=y.next(A);ot.insertNodes(e,{text:""},{at:T,voids:i}),D=Te.point(e,T)}u=D,f=!0}c=u.path.length-A.length+1,f=!0}v=Te.pointRef(e,u);var O,N=u.path.length-c,B=k(E,2)[1],F=u.path.slice(0,N),M=0===c?u.offset:u.path[N]+0,P=xn(Te.levels(e,{at:F,reverse:!0,voids:i}));try{for(P.s();!(O=P.n()).done;){var R=k(O.value,2),L=R[0],_=R[1],z=!1;if(_.length<B.length||0===_.length||!i&&U.isElement(L)&&Te.isVoid(e,L))break;var j=b.current,H=Te.isEnd(e,j,_);if(f||!b||!Te.isEdge(e,j,_)){z=!0;var $=U.extractProps(L);e.apply({type:"split_node",path:_,position:M,properties:$})}M=_[_.length-1]+(z||H?1:0)}}catch(e){P.e(e)}finally{P.f()}if(null==t.at){var V=v.current||Te.end(e,[]);ot.select(e,V)}}finally{var q;b.unref(),null===(q=v)||void 0===q||q.unref()}}})};function An(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Dn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dn(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Tn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var n,o={},i=An(t);try{for(i.s();!(n=i.n()).done;){o[n.value]=null}}catch(e){i.e(e)}finally{i.f()}ot.setNodes(e,o,r)};function kn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return On(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return On(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function On(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Nn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Te.withoutNormalizing(e,function(){var r=t.mode,n=void 0===r?"lowest":r,o=t.split,i=void 0!==o&&o,a=t.voids,s=void 0!==a&&a,u=t.at,l=void 0===u?e.selection:u,c=t.match;if(l){null==c&&(c=ke.isPath(l)?X(e,l):function(t){return U.isElement(t)&&Te.isBlock(e,t)}),ke.isPath(l)&&(l=Te.range(e,l));var d,f=ke.isRange(l)?Te.rangeRef(e,l):null,h=Te.nodes(e,{at:l,match:c,mode:n,voids:s}),p=Array.from(h,function(t){var r=k(t,2)[1];return Te.pathRef(e,r)}).reverse(),g=kn(p);try{var m=function(){var t=d.value.unref(),r=Te.node(e,t),n=k(r,1)[0],o=Te.range(e,t);i&&f&&(o=I.intersection(f.current,o)),ot.liftNodes(e,{at:o,match:function(e){return!U.isText(n)&&n.children.includes(e)},voids:s})};for(g.s();!(d=g.n()).done;)m()}catch(e){g.e(e)}finally{g.f()}f&&f.unref()}})};function Bn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Fn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Mn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Te.withoutNormalizing(e,function(){var n=r.mode,o=void 0===n?"lowest":n,i=r.split,a=void 0!==i&&i,s=r.voids,u=void 0!==s&&s,l=r.match,c=r.at,d=void 0===c?e.selection:c;if(d){if(null==l&&(l=ke.isPath(d)?X(e,d):e.isInline(t)?function(t){return U.isElement(t)&&Te.isInline(e,t)||U.isText(t)}:function(t){return U.isElement(t)&&Te.isBlock(e,t)}),a&&ke.isRange(d)){var f=I.edges(d),h=k(f,2),p=h[0],g=h[1],m=Te.rangeRef(e,d,{affinity:"inward"}),v=function(t){var r=Te.above(e,{at:t,match:function(t){return U.isElement(t)&&Te.isBlock(e,t)}});return r&&Te.isEdge(e,t,r[1])};ot.splitNodes(e,{at:g,match:l,voids:u,always:!v(g)}),ot.splitNodes(e,{at:p,match:l,voids:u,always:!v(p)}),d=m.unref(),null==r.at&&ot.select(e,d)}for(var b=Array.from(Te.nodes(e,{at:d,match:e.isInline(t)?function(t){return U.isElement(t)&&Te.isBlock(e,t)}:function(e){return U.isEditor(e)},mode:"lowest",voids:u})),w=function(){var r=k(x[E],2)[1],n=ke.isRange(d)?I.intersection(d,Te.range(e,r)):d;if(!n)return 0;var i=Array.from(Te.nodes(e,{at:n,match:l,mode:o,voids:u}));if(i.length>0){var a=i[0],s=i[i.length-1],c=k(a,2)[1],f=k(s,2)[1];if(0===c.length&&0===f.length)return 0;var h=y.equals(c,f)?y.parent(c):y.common(c,f),p=Te.range(e,c,f),g=Te.node(e,h),m=k(g,1)[0],v=h.length+1,b=y.next(f.slice(0,v)),w=Fn(Fn({},t),{},{children:[]});ot.insertNodes(e,w,{at:b,voids:u}),ot.moveNodes(e,{at:p,match:function(e){return!U.isText(m)&&m.children.includes(e)},to:b.concat(0),voids:u})}},E=0,x=b;E<x.length;E++)w()}})};return dh.Editor=Te,dh.Element=R,dh.Location=ke,dh.Node=U,dh.Operation=G,dh.Path=y,dh.PathRef=e,dh.Point=Fe,dh.PointRef=t,dh.Range=I,dh.RangeRef=r,dh.Scrubber=Ie,dh.Span=Oe,dh.Text=He,dh.Transforms=ot,dh.above=yt,dh.addMark=Et,dh.after=Dt,dh.apply=dt,dh.before=Bt,dh.collapse=en,dh.createEditor=function(){var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:function(){return!1},isInline:function(){return!1},isSelectable:function(){return!0},isVoid:function(){return!1},markableVoid:function(){return!1},onChange:function(){},apply:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return dt.apply(void 0,[e].concat(r))},addMark:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Et.apply(void 0,[e].concat(r))},deleteBackward:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ft.apply(void 0,[e].concat(r))},deleteForward:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Mt.apply(void 0,[e].concat(r))},deleteFragment:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return It.apply(void 0,[e].concat(r))},getFragment:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return gt.apply(void 0,[e].concat(r))},insertBreak:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Kt.apply(void 0,[e].concat(r))},insertSoftBreak:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Zt.apply(void 0,[e].concat(r))},insertFragment:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Qr.apply(void 0,[e].concat(r))},insertNode:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Xt.apply(void 0,[e].concat(r))},insertText:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Qt.apply(void 0,[e].concat(r))},normalizeNode:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return mt.apply(void 0,[e].concat(r))},removeMark:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Lr.apply(void 0,[e].concat(r))},getDirtyPaths:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return pt.apply(void 0,[e].concat(r))},shouldNormalize:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return vt.apply(void 0,[e].concat(r))},above:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return yt.apply(void 0,[e].concat(r))},after:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Dt.apply(void 0,[e].concat(r))},before:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Bt.apply(void 0,[e].concat(r))},collapse:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return en.apply(void 0,[e].concat(r))},delete:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Xr.apply(void 0,[e].concat(r))},deselect:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return tn.apply(void 0,[e].concat(r))},edges:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Pt.apply(void 0,[e].concat(r))},elementReadOnly:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _t.apply(void 0,[e].concat(r))},end:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zt.apply(void 0,[e].concat(r))},first:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return jt.apply(void 0,[e].concat(r))},fragment:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ht.apply(void 0,[e].concat(r))},getMarks:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return hr.apply(void 0,[e].concat(r))},hasBlocks:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return qt.apply(void 0,[e].concat(r))},hasInlines:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Gt.apply(void 0,[e].concat(r))},hasPath:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Wt.apply(void 0,[e].concat(r))},hasTexts:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Yt.apply(void 0,[e].concat(r))},insertNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return dn.apply(void 0,[e].concat(r))},isBlock:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return er.apply(void 0,[e].concat(r))},isEdge:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return tr.apply(void 0,[e].concat(r))},isEmpty:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return rr.apply(void 0,[e].concat(r))},isEnd:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return nr.apply(void 0,[e].concat(r))},isNormalizing:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return or.apply(void 0,[e].concat(r))},isStart:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ir.apply(void 0,[e].concat(r))},last:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ar.apply(void 0,[e].concat(r))},leaf:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return sr.apply(void 0,[e].concat(r))},levels:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return cr.apply(void 0,[e].concat(r))},liftNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return fn.apply(void 0,[e].concat(r))},mergeNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return mn.apply(void 0,[e].concat(r))},move:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return rn.apply(void 0,[e].concat(r))},moveNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return vn.apply(void 0,[e].concat(r))},next:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return pr.apply(void 0,[e].concat(r))},node:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return gr.apply(void 0,[e].concat(r))},nodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return yr.apply(void 0,[e].concat(r))},normalize:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Er.apply(void 0,[e].concat(r))},parent:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return xr.apply(void 0,[e].concat(r))},path:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ar.apply(void 0,[e].concat(r))},pathRef:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Sr.apply(void 0,[e].concat(r))},pathRefs:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Cr.apply(void 0,[e].concat(r))},point:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return kr.apply(void 0,[e].concat(r))},pointRef:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Dr.apply(void 0,[e].concat(r))},pointRefs:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Tr.apply(void 0,[e].concat(r))},positions:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Br.apply(void 0,[e].concat(r))},previous:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Fr.apply(void 0,[e].concat(r))},range:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Pr.apply(void 0,[e].concat(r))},rangeRef:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Mr.apply(void 0,[e].concat(r))},rangeRefs:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ir.apply(void 0,[e].concat(r))},removeNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return yn.apply(void 0,[e].concat(r))},select:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return nn.apply(void 0,[e].concat(r))},setNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return En.apply(void 0,[e].concat(r))},setNormalizing:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _r.apply(void 0,[e].concat(r))},setPoint:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return sn.apply(void 0,[e].concat(r))},setSelection:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return un.apply(void 0,[e].concat(r))},splitNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Cn.apply(void 0,[e].concat(r))},start:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zr.apply(void 0,[e].concat(r))},string:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return $r.apply(void 0,[e].concat(r))},unhangRange:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return qr.apply(void 0,[e].concat(r))},unsetNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Tn.apply(void 0,[e].concat(r))},unwrapNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Nn.apply(void 0,[e].concat(r))},void:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Vt.apply(void 0,[e].concat(r))},withoutNormalizing:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Gr.apply(void 0,[e].concat(r))},wrapNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Mn.apply(void 0,[e].concat(r))},shouldMergeNodesRemovePrevNode:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Wr.apply(void 0,[e].concat(r))}};return e},dh.deleteBackward=Ft,dh.deleteForward=Mt,dh.deleteFragment=It,dh.deleteText=Xr,dh.deselect=tn,dh.edges=Pt,dh.elementReadOnly=_t,dh.end=zt,dh.first=jt,dh.fragment=Ht,dh.getDirtyPaths=pt,dh.getFragment=gt,dh.getVoid=Vt,dh.hasBlocks=qt,dh.hasInlines=Gt,dh.hasPath=Wt,dh.hasTexts=Yt,dh.insertBreak=Kt,dh.insertFragment=Qr,dh.insertNode=Xt,dh.insertNodes=dn,dh.insertSoftBreak=Zt,dh.insertText=Qt,dh.isBlock=er,dh.isEdge=tr,dh.isEditor=De,dh.isEmpty=rr,dh.isEnd=nr,dh.isNormalizing=or,dh.isObject=W,dh.isStart=ir,dh.last=ar,dh.leaf=sr,dh.levels=cr,dh.liftNodes=fn,dh.marks=hr,dh.mergeNodes=mn,dh.move=rn,dh.moveNodes=vn,dh.next=pr,dh.node=gr,dh.nodes=yr,dh.normalize=Er,dh.normalizeNode=mt,dh.parent=xr,dh.path=Ar,dh.pathRef=Sr,dh.pathRefs=Cr,dh.point=kr,dh.pointRef=Dr,dh.pointRefs=Tr,dh.positions=Br,dh.previous=Fr,dh.range=Pr,dh.rangeRef=Mr,dh.rangeRefs=Ir,dh.removeMark=Lr,dh.removeNodes=yn,dh.select=nn,dh.setNodes=En,dh.setNormalizing=_r,dh.setPoint=sn,dh.setSelection=un,dh.shouldMergeNodesRemovePrevNode=Wr,dh.shouldNormalize=vt,dh.splitNodes=Cn,dh.start=zr,dh.string=$r,dh.unhangRange=qr,dh.unsetNodes=Tn,dh.unwrapNodes=Nn,dh.withoutNormalizing=Gr,dh.wrapNodes=Mn,dh}var hh,ph=fh(),gh={};function mh(){if(hh)return gh;hh=1;var e=fh(),t={isHistory:function(t){return e.isObject(t)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(0===t.redos.length||e.Operation.isOperationList(t.redos[0].operations))&&(0===t.undos.length||e.Operation.isOperationList(t.undos[0].operations))}},r=new WeakMap,n=new WeakMap,o=new WeakMap,i=new WeakMap,a={isHistoryEditor:function(r){return t.isHistory(r.history)&&e.Editor.isEditor(r)},isMerging:function(e){return o.get(e)},isSplittingOnce:function(e){return i.get(e)},setSplittingOnce:function(e,t){i.set(e,t)},isSaving:function(e){return n.get(e)},redo:function(e){e.redo()},undo:function(e){e.undo()},withMerging:function(e,t){var r=a.isMerging(e);o.set(e,!0),t(),o.set(e,r)},withNewBatch:function(e,t){var r=a.isMerging(e);o.set(e,!0),i.set(e,!0),t(),o.set(e,r),i.delete(e)},withoutMerging:function(e,t){var r=a.isMerging(e);o.set(e,!1),t(),o.set(e,r)},withoutSaving:function(e,t){var r=a.isSaving(e);n.set(e,!1);try{t()}finally{n.set(e,r)}}};function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=function(t,r){return!(!r||"insert_text"!==t.type||"insert_text"!==r.type||t.offset!==r.offset+r.text.length||!e.Path.equals(t.path,r.path))||!(!r||"remove_text"!==t.type||"remove_text"!==r.type||t.offset+t.text.length!==r.offset||!e.Path.equals(t.path,r.path))},c=function(e,t){return"set_selection"!==e.type};return gh.HISTORY=r,gh.History=t,gh.HistoryEditor=a,gh.MERGING=o,gh.SAVING=n,gh.SPLITTING_ONCE=i,gh.withHistory=function(t){var r=t,n=r.apply;return r.history={undos:[],redos:[]},r.redo=function(){var t=r.history,n=t.redos;if(n.length>0){var o=n[n.length-1];o.selectionBefore&&e.Transforms.setSelection(r,o.selectionBefore),a.withoutSaving(r,function(){e.Editor.withoutNormalizing(r,function(){var e,t=s(o.operations);try{for(t.s();!(e=t.n()).done;){var n=e.value;r.apply(n)}}catch(e){t.e(e)}finally{t.f()}})}),t.redos.pop(),r.writeHistory("undos",o)}},r.undo=function(){var t=r.history,n=t.undos;if(n.length>0){var o=n[n.length-1];a.withoutSaving(r,function(){e.Editor.withoutNormalizing(r,function(){var t,n=s(o.operations.map(e.Operation.inverse).reverse());try{for(n.s();!(t=n.n()).done;){var i=t.value;r.apply(i)}}catch(e){n.e(e)}finally{n.f()}o.selectionBefore&&e.Transforms.setSelection(r,o.selectionBefore)})}),r.writeHistory("redos",o),t.undos.pop()}},r.apply=function(e){var t=r.operations,o=r.history,i=o.undos,s=i[i.length-1],u=s&&s.operations[s.operations.length-1],d=a.isSaving(r),f=a.isMerging(r);if(null==d&&(d=c(e)),d){if(null==f&&(f=null!=s&&(!!t.includes(u)||l(e,u))),a.isSplittingOnce(r)&&(f=!1,a.setSplittingOnce(r,void 0)),s&&f)s.operations.push(e);else{var h={operations:[e],selectionBefore:r.selection};r.writeHistory("undos",h)}for(;i.length>100;)i.shift();o.redos=[]}n(e)},r.writeHistory=function(e,t){r.history[e].push(t)},r},gh}var vh=mh(),yh=function(e,t){return yh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},yh(e,t)};function bh(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}yh(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var wh=function(){return wh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wh.apply(this,arguments)};function Eh(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function xh(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function Sh(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ch(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function Ah(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function Dh(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=Sh(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,o,(t=e[r](t)).done,t.value)})}}}"function"==typeof SuppressedError&&SuppressedError;var Th,kh={exports:{}};var Oh,Nh,Bh=(Th||(Th=1,function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",s="[object Function]",u="[object GeneratorFunction]",l="[object Map]",c="[object Number]",d="[object Object]",f="[object Promise]",h="[object RegExp]",p="[object Set]",g="[object String]",m="[object Symbol]",v="[object WeakMap]",y="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",x="[object Float64Array]",S="[object Int8Array]",C="[object Int16Array]",A="[object Int32Array]",D="[object Uint8Array]",T="[object Uint8ClampedArray]",k="[object Uint16Array]",O="[object Uint32Array]",N=/\w*$/,B=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,M={};M[o]=M["[object Array]"]=M[y]=M[w]=M[i]=M[a]=M[E]=M[x]=M[S]=M[C]=M[A]=M[l]=M[c]=M[d]=M[h]=M[p]=M[g]=M[m]=M[D]=M[T]=M[k]=M[O]=!0,M["[object Error]"]=M[s]=M[v]=!1;var I="object"==typeof b&&b&&b.Object===Object&&b,P="object"==typeof self&&self&&self.Object===Object&&self,R=I||P||Function("return this")(),L=t&&!t.nodeType&&t,_=L&&e&&!e.nodeType&&e,z=_&&_.exports===L;function j(e,t){return e.set(t[0],t[1]),e}function H(e,t){return e.add(t),e}function $(e,t,r,n){for(var o=-1,i=e?e.length:0;++o<i;)r=t(r,e[o],o,e);return r}function U(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function V(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function q(e,t){return function(r){return e(t(r))}}function G(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var W=Array.prototype,Y=Function.prototype,K=Object.prototype,X=R["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=Y.toString,Q=K.hasOwnProperty,ee=K.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=z?R.Buffer:void 0,ne=R.Symbol,oe=R.Uint8Array,ie=q(Object.getPrototypeOf,Object),ae=Object.create,se=K.propertyIsEnumerable,ue=W.splice,le=Object.getOwnPropertySymbols,ce=re?re.isBuffer:void 0,de=q(Object.keys,Object),fe=Le(R,"DataView"),he=Le(R,"Map"),pe=Le(R,"Promise"),ge=Le(R,"Set"),me=Le(R,"WeakMap"),ve=Le(Object,"create"),ye=$e(fe),be=$e(he),we=$e(pe),Ee=$e(ge),xe=$e(me),Se=ne?ne.prototype:void 0,Ce=Se?Se.valueOf:void 0;function Ae(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function De(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Te(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ke(e){this.__data__=new De(e)}function Oe(e,t){var r=Ve(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&qe(e)}(e)&&Q.call(e,"callee")&&(!se.call(e,"callee")||ee.call(e)==o)}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,i=!!n;for(var a in e)!Q.call(e,a)||i&&("length"==a||je(a,n))||r.push(a);return r}function Ne(e,t,r){var n=e[t];Q.call(e,t)&&Ue(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function Be(e,t){for(var r=e.length;r--;)if(Ue(e[r][0],t))return r;return-1}function Fe(e,t,r,n,f,v,b){var B;if(n&&(B=v?n(e,f,v,b):n(e)),void 0!==B)return B;if(!Ye(e))return e;var F=Ve(e);if(F){if(B=function(e){var t=e.length,r=e.constructor(t);return t&&"string"==typeof e[0]&&Q.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!t)return function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(e,B)}else{var I=ze(e),P=I==s||I==u;if(Ge(e))return function(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}(e,t);if(I==d||I==o||P&&!v){if(U(e))return v?e:{};if(B=function(e){return"function"!=typeof e.constructor||He(e)?{}:Ye(t=ie(e))?ae(t):{};var t}(P?{}:e),!t)return function(e,t){return Pe(e,_e(e),t)}(e,function(e,t){return e&&Pe(t,Ke(t),e)}(B,e))}else{if(!M[I])return v?e:{};B=function(e,t,r,n){var o=e.constructor;switch(t){case y:return Ie(e);case i:case a:return new o(+e);case w:return function(e,t){var r=t?Ie(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,n);case E:case x:case S:case C:case A:case D:case T:case k:case O:return function(e,t){var r=t?Ie(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,n);case l:return function(e,t,r){var n=t?r(V(e),!0):V(e);return $(n,j,new e.constructor)}(e,n,r);case c:case g:return new o(e);case h:return function(e){var t=new e.constructor(e.source,N.exec(e));return t.lastIndex=e.lastIndex,t}(e);case p:return function(e,t,r){var n=t?r(G(e),!0):G(e);return $(n,H,new e.constructor)}(e,n,r);case m:return function(e){return Ce?Object(Ce.call(e)):{}}(e)}}(e,I,Fe,t)}}b||(b=new ke);var R=b.get(e);if(R)return R;if(b.set(e,B),!F)var L=r?function(e){return function(e,t,r){var n=t(e);return Ve(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,Ke,_e)}(e):Ke(e);return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););}(L||e,function(o,i){L&&(o=e[i=o]),Ne(B,i,Fe(o,t,r,n,i,e,b))}),B}function Me(e){return!(!Ye(e)||(t=e,Z&&Z in t))&&(We(e)||U(e)?te:B).test($e(e));var t}function Ie(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Pe(e,t,r,n){r||(r={});for(var o=-1,i=t.length;++o<i;){var a=t[o];Ne(r,a,e[a])}return r}function Re(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Le(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Me(r)?r:void 0}Ae.prototype.clear=function(){this.__data__=ve?ve(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.prototype.get=function(e){var t=this.__data__;if(ve){var n=t[e];return n===r?void 0:n}return Q.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:Q.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__[e]=ve&&void 0===t?r:t,this},De.prototype.clear=function(){this.__data__=[]},De.prototype.delete=function(e){var t=this.__data__,r=Be(t,e);return!(r<0||(r==t.length-1?t.pop():ue.call(t,r,1),0))},De.prototype.get=function(e){var t=this.__data__,r=Be(t,e);return r<0?void 0:t[r][1]},De.prototype.has=function(e){return Be(this.__data__,e)>-1},De.prototype.set=function(e,t){var r=this.__data__,n=Be(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Te.prototype.clear=function(){this.__data__={hash:new Ae,map:new(he||De),string:new Ae}},Te.prototype.delete=function(e){return Re(this,e).delete(e)},Te.prototype.get=function(e){return Re(this,e).get(e)},Te.prototype.has=function(e){return Re(this,e).has(e)},Te.prototype.set=function(e,t){return Re(this,e).set(e,t),this},ke.prototype.clear=function(){this.__data__=new De},ke.prototype.delete=function(e){return this.__data__.delete(e)},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var r=this.__data__;if(r instanceof De){var n=r.__data__;if(!he||n.length<199)return n.push([e,t]),this;r=this.__data__=new Te(n)}return r.set(e,t),this};var _e=le?q(le,Object):function(){return[]},ze=function(e){return ee.call(e)};function je(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||F.test(e))&&e>-1&&e%1==0&&e<t}function He(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||K)}function $e(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ue(e,t){return e===t||e!=e&&t!=t}(fe&&ze(new fe(new ArrayBuffer(1)))!=w||he&&ze(new he)!=l||pe&&ze(pe.resolve())!=f||ge&&ze(new ge)!=p||me&&ze(new me)!=v)&&(ze=function(e){var t=ee.call(e),r=t==d?e.constructor:void 0,n=r?$e(r):void 0;if(n)switch(n){case ye:return w;case be:return l;case we:return f;case Ee:return p;case xe:return v}return t});var Ve=Array.isArray;function qe(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!We(e)}var Ge=ce||function(){return!1};function We(e){var t=Ye(e)?ee.call(e):"";return t==s||t==u}function Ye(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ke(e){return qe(e)?Oe(e):function(e){if(!He(e))return de(e);var t=[];for(var r in Object(e))Q.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return Fe(e,!0,!0)}}(kh,kh.exports)),kh.exports),Fh=w(Bh);var Mh=function(){if(Nh)return Oh;Nh=1;var e=9007199254740991,t="[object Arguments]",r="[object Function]",n="[object GeneratorFunction]",o=/^(?:0|[1-9]\d*)$/;function i(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););return e}var a,s,u=Object.prototype,l=u.hasOwnProperty,c=u.toString,d=u.propertyIsEnumerable,f=(a=Object.keys,s=Object,function(e){return a(s(e))});function h(e,r){var n=b(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&w(e)}(e)&&l.call(e,"callee")&&(!d.call(e,"callee")||c.call(e)==t)}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],o=n.length,i=!!o;for(var a in e)!l.call(e,a)||i&&("length"==a||y(a,o))||n.push(a);return n}var p,g=(p=function(e,t){return e&&m(e,t,E)},function(e,t){if(null==e)return e;if(!w(e))return p(e,t);for(var r=e.length,n=-1,o=Object(e);++n<r&&!1!==t(o[n],n,o););return e}),m=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[++n];if(!1===t(o[s],s,o))break}return e};function v(e){if(r=(t=e)&&t.constructor,n="function"==typeof r&&r.prototype||u,t!==n)return f(e);var t,r,n,o=[];for(var i in Object(e))l.call(e,i)&&"constructor"!=i&&o.push(i);return o}function y(t,r){return!!(r=null==r?e:r)&&("number"==typeof t||o.test(t))&&t>-1&&t%1==0&&t<r}var b=Array.isArray;function w(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=e}(t.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?c.call(e):"";return t==r||t==n}(t)}function E(e){return w(e)?h(e):v(e)}function x(e){return e}return Oh=function(e,t){return(b(e)?i:g)(e,"function"==typeof t?t:x)}}(),Ih=w(Mh),Ph=new Set(["base","embed","math","meta","object","script","svg","template"]),Rh=new Set(["href","poster","src","xlink:href"]),Lh=["java","script:"].join("");function _h(e,t,r){var n=function(e){return Array.from(e).filter(function(e){return e>" "}).join("").toLowerCase()}(r);return!n||!n.startsWith(Lh)&&!n.startsWith("vbscript:")&&(!n.startsWith("data:")||"href"!==t&&"xlink:href"!==t&&(("img"===e||"poster"===t)&&n.startsWith("data:image/")))}function zh(e){if(void 0===e&&(e=""),!e)return"";var t=(new DOMParser).parseFromString(e,"text/html");return Array.from(t.body.querySelectorAll("*")).forEach(function(e){var t=e.tagName.toLowerCase();Ph.has(t)?e.remove():Array.from(e.attributes).forEach(function(r){var n=r.name.toLowerCase(),o=r.value||"";("srcdoc"===n||n.startsWith("on")||Rh.has(n)&&!_h(t,n,o))&&e.removeAttribute(r.name)})}),t.body.innerHTML}var jh={};var Hh="created",$h="destroyed",Uh="change",Vh="scroll",qh="fullscreen",Gh="unFullScreen",Wh="modalOrPanelShow",Yh="modalOrPanelHide",Kh={};function Xh(e,t){var r=e.key,n=e.factory,o=e.config,i=wh(wh({},o),t||{});if(null!=Kh[r])throw new Error("Duplicated key '".concat(r,"' in menu items"));Kh[r]=n,function(e,t){null!=t&&(jh[e]=t)}(r,i)}var Zh=new WeakMap,Jh=new WeakMap,Qh=new WeakMap,ep=new WeakMap,tp=new WeakMap,rp=new WeakMap,np=new WeakMap,op=new WeakMap,ip=new WeakMap,ap=new WeakMap,sp=new WeakMap,up=new WeakMap,lp=new WeakMap,cp=new WeakMap,dp=new WeakMap,fp=new WeakMap,hp=new WeakMap,pp=new WeakMap,gp=new WeakMap,mp=new WeakMap,vp=new WeakMap,yp=new WeakMap,bp=new WeakMap,wp=new WeakMap,Ep=new WeakMap,xp=new WeakMap,Sp=new WeakMap,Cp=new WeakMap,Ap=new WeakMap,Dp=function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in Kh)e.push(t);return e},t.getConfig=function(){var e=ap.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var r=t.getConfig().MENU_CONF;return(void 0===r?{}:r)[e]||{}},t.alert=function(e,r){void 0===r&&(r="info");var n=t.getConfig().customAlert;n&&n(e,r)},t},Tp=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function kp(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Op(e={},t={}){Object.keys(t).forEach(r=>{void 0===e[r]?e[r]=t[r]:kp(t[r])&&kp(e[r])&&Object.keys(t[r]).length>0&&Op(e[r],t[r])})}const Np={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 Bp(){const e="undefined"!=typeof document?document:{};return Op(e,Np),e}const Fp={document:Np,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:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Mp(){const e="undefined"!=typeof window?window:{};return Op(e,Fp),e}class Ip extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function Pp(e=[]){const t=[];return e.forEach(e=>{Array.isArray(e)?t.push(...Pp(e)):t.push(e)}),t}function Rp(e,t){return Array.prototype.filter.call(e,t)}function Lp(e){return e.toLowerCase().replace(/-(.)/g,(e,t)=>t.toUpperCase())}function _p(e,t){const r=Mp(),n=Bp();let o=[];if(!t&&e instanceof Ip)return e;if(!e)return new Ip(o);if("string"==typeof e){const r=e.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){let e="div";0===r.indexOf("<li")&&(e="ul"),0===r.indexOf("<tr")&&(e="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(e="tr"),0===r.indexOf("<tbody")&&(e="table"),0===r.indexOf("<option")&&(e="select");const t=n.createElement(e);t.innerHTML=r;for(let e=0;e<t.childNodes.length;e+=1)o.push(t.childNodes[e])}else o=function(e,t){if("string"!=typeof e)return[e];const r=[],n=t.querySelectorAll(e);for(let e=0;e<n.length;e+=1)r.push(n[e]);return r}(e.trim(),t||n)}else if(e.nodeType||e===r||e===n)o.push(e);else if(Array.isArray(e)){if(e instanceof Ip)return e;o=e}return new Ip(function(e){const t=[];for(let r=0;r<e.length;r+=1)-1===t.indexOf(e[r])&&t.push(e[r]);return t}(o))}function zp(...e){const t=Pp(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.add(...t)}),this}function jp(...e){const t=Pp(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.remove(...t)}),this}function Hp(...e){const t=Pp(e.map(e=>e.split(" ")));return Rp(this,e=>t.filter(t=>e.classList.contains(t)).length>0).length>0}function $p(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let r=0;r<this.length;r+=1)if(2===arguments.length)this[r].setAttribute(e,t);else for(const t in e)this[r][t]=e[t],this[r].setAttribute(t,e[t]);return this}function Up(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Vp(e,t){let r;if(void 0===t){if(r=this[0],!r)return;if(r.dom7ElementDataStorage&&e in r.dom7ElementDataStorage)return r.dom7ElementDataStorage[e];const t=r.getAttribute(`data-${e}`);return t||void 0}for(let n=0;n<this.length;n+=1)r=this[n],r.dom7ElementDataStorage||(r.dom7ElementDataStorage={}),r.dom7ElementDataStorage[e]=t;return this}function qp(){const e=this[0];if(!e)return;const t={};if(e.dataset)for(const r in e.dataset)t[r]=e.dataset[r];else for(let r=0;r<e.attributes.length;r+=1){const n=e.attributes[r];n.name.indexOf("data-")>=0&&(t[Lp(n.name.split("data-")[1])]=n.value)}for(const e in t)"false"===t[e]?t[e]=!1:"true"===t[e]?t[e]=!0:parseFloat(t[e])===1*t[e]&&(t[e]*=1);return t}function Gp(e){if(void 0===e){const e=this[0];if(!e)return;if(e.multiple&&"select"===e.nodeName.toLowerCase()){const t=[];for(let r=0;r<e.selectedOptions.length;r+=1)t.push(e.selectedOptions[r].value);return t}return e.value}for(let t=0;t<this.length;t+=1){const r=this[t];if(Array.isArray(e)&&r.multiple&&"select"===r.nodeName.toLowerCase())for(let t=0;t<r.options.length;t+=1)r.options[t].selected=e.indexOf(r.options[t].value)>=0;else r.value=e}return this}function Wp(...e){let[t,r,n,o]=e;function i(e){const t=e.target;if(!t)return;const o=e.target.dom7EventData||[];if(o.indexOf(e)<0&&o.unshift(e),_p(t).is(r))n.apply(t,o);else{const e=_p(t).parents();for(let t=0;t<e.length;t+=1)_p(e[t]).is(r)&&n.apply(e[t],o)}}function a(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),n.apply(this,t)}"function"==typeof e[1]&&([t,n,o]=e,r=void 0),o||(o=!1);const s=t.split(" ");let u;for(let e=0;e<this.length;e+=1){const t=this[e];if(r)for(u=0;u<s.length;u+=1){const e=s[u];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:n,proxyListener:i}),t.addEventListener(e,i,o)}else for(u=0;u<s.length;u+=1){const e=s[u];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:n,proxyListener:a}),t.addEventListener(e,a,o)}}return this}function Yp(...e){let[t,r,n,o]=e;"function"==typeof e[1]&&([t,n,o]=e,r=void 0),o||(o=!1);const i=t.split(" ");for(let e=0;e<i.length;e+=1){const t=i[e];for(let e=0;e<this.length;e+=1){const i=this[e];let a;if(!r&&i.dom7Listeners?a=i.dom7Listeners[t]:r&&i.dom7LiveListeners&&(a=i.dom7LiveListeners[t]),a&&a.length)for(let e=a.length-1;e>=0;e-=1){const r=a[e];n&&r.listener===n||n&&r.listener&&r.listener.dom7proxy&&r.listener.dom7proxy===n?(i.removeEventListener(t,r.proxyListener,o),a.splice(e,1)):n||(i.removeEventListener(t,r.proxyListener,o),a.splice(e,1))}}}return this}function Kp(){const e=Mp();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Xp(){const e=Mp();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Zp(){if(this.length>0){const e=Mp(),t=Bp(),r=this[0],n=r.getBoundingClientRect(),o=t.body,i=r.clientTop||o.clientTop||0,a=r.clientLeft||o.clientLeft||0,s=r===e?e.scrollY:r.scrollTop,u=r===e?e.scrollX:r.scrollLeft;return{top:n.top+s-i,left:n.left+u-a}}return null}function Jp(){for(let e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Qp(){const e=Mp();for(let t=0;t<this.length;t+=1){const r=this[t];"none"===r.style.display&&(r.style.display=""),"none"===e.getComputedStyle(r,null).getPropertyValue("display")&&(r.style.display="block")}return this}function eg(e,t){const r=Mp();let n;if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(const t in e)this[n].style[t]=e[t];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function tg(e){return e?(this.forEach((t,r)=>{e.apply(t,[t,r])}),this):this}function rg(e){return _p(Rp(this,e))}function ng(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function og(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this}function ig(e){const t=Mp(),r=Bp(),n=this[0];let o,i;if(!n||void 0===e)return!1;if("string"==typeof e){if(n.matches)return n.matches(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);for(o=_p(e),i=0;i<o.length;i+=1)if(o[i]===n)return!0;return!1}if(e===r)return n===r;if(e===t)return n===t;if(e.nodeType||e instanceof Ip){for(o=e.nodeType?[e]:e,i=0;i<o.length;i+=1)if(o[i]===n)return!0;return!1}return!1}function ag(...e){let t;const r=Bp();for(let n=0;n<e.length;n+=1){t=e[n];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const n=r.createElement("div");for(n.innerHTML=t;n.firstChild;)this[e].appendChild(n.firstChild)}else if(t instanceof Ip)for(let r=0;r<t.length;r+=1)this[e].appendChild(t[r]);else this[e].appendChild(t)}return this}function sg(e){const t=Bp();let r,n;for(r=0;r<this.length;r+=1)if("string"==typeof e){const o=t.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[r].insertBefore(o.childNodes[n],this[r].childNodes[0])}else if(e instanceof Ip)for(n=0;n<e.length;n+=1)this[r].insertBefore(e[n],this[r].childNodes[0]);else this[r].insertBefore(e,this[r].childNodes[0]);return this}function ug(e){const t=[];for(let r=0;r<this.length;r+=1)null!==this[r].parentNode&&(e?_p(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode));return _p(t)}function lg(e){const t=[];for(let r=0;r<this.length;r+=1){let n=this[r].parentNode;for(;n;)e?_p(n).is(e)&&t.push(n):t.push(n),n=n.parentNode}return _p(t)}function cg(e){const t=[];for(let r=0;r<this.length;r+=1){const n=this[r].querySelectorAll(e);for(let e=0;e<n.length;e+=1)t.push(n[e])}return _p(t)}function dg(e){const t=[];for(let r=0;r<this.length;r+=1){const n=this[r].children;for(let r=0;r<n.length;r+=1)e&&!_p(n[r]).is(e)||t.push(n[r])}return _p(t)}function fg(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function hg(){for(let e=0;e<this.length;e+=1){const t=this[e];if(1===t.nodeType){for(let e=0;e<t.childNodes.length;e+=1)t.childNodes[e].parentNode&&t.childNodes[e].parentNode.removeChild(t.childNodes[e]);t.textContent=""}}return this}_p.fn=Ip.prototype;const pg="resize scroll".split(" ");function gg(e){return function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)pg.indexOf(e)<0&&(e in this[t]?this[t][e]():_p(this[t]).trigger(e));return this}return this.on(e,...t)}}const mg=gg("click"),vg=gg("focus"),yg=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let bg=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t};function wg(e){Promise.resolve().then(e)}var Eg,xg=function(e){return Object.prototype.toString.call(e)},Sg=globalThis.Node;eg&&(_p.fn.css=eg),ag&&(_p.fn.append=ag),zp&&(_p.fn.addClass=zp),jp&&(_p.fn.removeClass=jp),Hp&&(_p.fn.hasClass=Hp),Wp&&(_p.fn.on=Wp),vg&&(_p.fn.focus=vg),$p&&(_p.fn.attr=$p),Up&&(_p.fn.removeAttr=Up),Jp&&(_p.fn.hide=Jp),Qp&&(_p.fn.show=Qp),Zp&&(_p.fn.offset=Zp),Kp&&(_p.fn.width=Kp),Xp&&(_p.fn.height=Xp),ug&&(_p.fn.parent=ug),lg&&(_p.fn.parents=lg),ig&&(_p.fn.is=ig),qp&&(_p.fn.dataset=qp),Gp&&(_p.fn.val=Gp),og&&(_p.fn.text=og),ng&&(_p.fn.html=ng),dg&&(_p.fn.children=dg),fg&&(_p.fn.remove=fg),cg&&(_p.fn.find=cg),tg&&(_p.fn.each=tg),hg&&(_p.fn.empty=hg),function(e){e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(Eg||(Eg={}));var Cg=/\[object HTML([A-Z][a-z]*)*Element\]/,Ag=function(e){return Cg.test(xg(e))},Dg=function(e){return null!=e&&"number"==typeof e.nodeType},Tg=function(e){return Dg(e)&&e.nodeType===Eg.COMMENT_NODE},kg=function(e){return Dg(e)&&e.nodeType===Eg.ELEMENT_NODE},Og=function(e){return"[object Selection]"===xg(e)},Ng=function(e){return Dg(e)&&e.nodeType===Eg.TEXT_NODE},Bg=function(e){var t,r,n;return null!==(t=window&&window.document.getElementById(e))&&void 0!==t?t:window&&(null===(n=null===(r=window.document.activeElement)||void 0===r?void 0:r.shadowRoot)||void 0===n?void 0:n.getElementById(e))||null},Fg=function(e,t,r){for(var n=e.childNodes,o=n[t],i=t,a=!1,s=!1;(Tg(o)||kg(o)&&0===o.childNodes.length||kg(o)&&"false"===o.getAttribute("contenteditable"))&&(!a||!s);)i>=n.length?(a=!0,i=t-1,r="backward"):i<0?(s=!0,i=t+1,r="forward"):(o=n[i],t=i,i+="forward"===r?1:-1);return[o,t]},Mg=function(e,t,r){return Ch(Fg(e,t,r),1)[0]},Ig=function(e){var t,r,n="";if(Ng(e)&&e.nodeValue)return e.nodeValue;if(kg(e)){try{for(var o=Sh(Array.from(e.childNodes)),i=o.next();!i.done;i=o.next()){var a=i.value;n+=Ig(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}var s=getComputedStyle(e).getPropertyValue("display");"block"!==s&&"list"!==s&&"table-row"!==s&&"BR"!==e.tagName||(n+="\n")}return n};function Pg(e,t){if(!Ag(e)||"true"!==e.dataset.slateVoid)for(var r=e.childNodes,n=r.length;n-=1;){var o=r[n],i=o.nodeType;Ng(o)?t(o,e):[Eg.ELEMENT_NODE,Eg.DOCUMENT_NODE,Eg.DOCUMENT_FRAGMENT_NODE].includes(i)&&Pg(o,t)}}function Rg(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==Eg.ELEMENT_NODE?"":t.tagName.toLowerCase()}var Lg=new RegExp(String.fromCharCode(160),"g");function _g(e){return e.replace(Lg," ")}var zg=["span","b","strong","i","em","s","strike","u","font","sub","sup"],jg=[];var Hg={};function $g(e,t){var r=e.length;if(r){var n=e[r-1];if(ph.Text.isText(n)){var o=Object.keys(n);if(1===o.length&&"text"===o[0])return n.text+=t,!0}}return!1}function Ug(e,t,r){return{type:"paragraph",children:t&&t.length>0?t:[{text:_p(e).text().replace(/\s+/gm," ")}]}}function Vg(e,t){var r=function(e,t){var r=[];if(null!=e.attr("data-w-e-is-void"))return r;var n=e[0].childNodes;return 1===n.length&&"BR"===n[0].nodeName?(r.push({text:""}),r):(n.forEach(function(e){if(kg(e)){if("BR"===e.nodeName)return void($g(r,"\n")||r.push({text:"\n"}));var n=Xg(_p(e),t);Array.isArray(n)?n.forEach(function(e){return r.push(e)}):r.push(n)}else if(Ng(e)){var o=e.textContent||"";if(""===o.trim()&&o.indexOf("\n")>=0)return;o&&(o=_g(o),$g(r,o)||r.push({text:o}))}}),r)}(e,t),n=function(e){for(var t in Hg)if(e[0].matches(t))return Hg[t];return Ug}(e),o=n(e[0],r,t);return Array.isArray(o)||(o=[o]),o.forEach(function(n){ph.Editor.isVoid(t,n)||(0===r.length&&(n.children=[{text:e.text().replace(/\s+/gm," ")}]),jg.forEach(function(r){n=r(e[0],n,t)}))}),o}function qg(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/[\r\n\t]+/g,"").replace(/<br>/g,"\n"));var r=e[0].textContent||"";r=function(e){return e.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(r);var n={text:r=_g(r)};return jg.forEach(function(r){n=r(e[0],n,t)}),n}function Gg(e){var t=Rg(e),r=e.attr&&e.attr("style")||"",n={};return["i","em"].includes(t)&&(n.italic=!0),["b","strong"].includes(t)&&(n.bold=!0),["u"].includes(t)&&(n.underline=!0),["s","strike","del"].includes(t)&&(n.through=!0),["code"].includes(t)&&(n.code=!0),["sub"].includes(t)&&(n.sub=!0),["sup"].includes(t)&&(n.sup=!0),/font-style\s*:\s*italic/i.test(r)&&(n.italic=!0),/vertical-align\s*:\s*sub/i.test(r)&&(n.sub=!0),/vertical-align\s*:\s*super/i.test(r)&&(n.sup=!0),n}function Wg(e){var t=e.attr&&e.attr("style")||"",r={},n=t.match(/font-size\s*:\s*([^;]+)/i);n&&(r.fontSize=n[1].trim());var o=t.match(/font-family\s*:\s*([^;]+)/i);o&&(r.fontFamily=o[1].trim().replace(/["']/g,""));var i=t.match(/line-height\s*:\s*([^;]+)/i);return i&&(r.lineHeight=i[1].trim()),r}function Yg(e,t,r){var n=wh({},e);return Object.keys(r||{}).forEach(function(e){void 0===n[e]&&(n[e]=r[e])}),t&&(t.bold&&!n.bold&&(n.bold=!0),t.italic&&!n.italic&&(n.italic=!0),t.underline&&!n.underline&&(n.underline=!0),t.through&&!n.through&&(n.through=!0),t.code&&!n.code&&(n.code=!0),!t.sub||n.sub||n.sup||(n.sub=!0),!t.sup||n.sup||n.sub||(n.sup=!0)),n}function Kg(e){var t,r,n,o,i=[];try{for(var a=Sh(e),s=a.next();!s.done;s=a.next()){var u=s.value,l=i[i.length-1];if(l&&void 0!==l.text&&void 0!==u.text){var c=Object.keys(l).filter(function(e){return"text"!==e}).sort(),d=Object.keys(u).filter(function(e){return"text"!==e}).sort();if(JSON.stringify(c)===JSON.stringify(d)){var f=!0;try{for(var h=(n=void 0,Sh(c)),p=h.next();!p.done;p=h.next()){var g=p.value;if(JSON.stringify(l[g])!==JSON.stringify(u[g])){f=!1;break}}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}if(f){l.text+=u.text;continue}}}i.push(u)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return i}function Xg(e,t,r,n){var o,i,a,s;void 0===r&&(r={}),void 0===n&&(n={});var u=e[0];if(u.nodeType===Node.TEXT_NODE)return Yg({text:O=u.nodeValue||""},r,n);var l=Rg(e);if(e.attr("data-w-e-type"))return Vg(e,t);if("a"===l&&!e.attr("href")){var c=Gg(e),d=Wg(e),f=wh({},r);Object.keys(c).forEach(function(e){c[e]&&(f[e]=!0)});var h=wh(wh({},n||{}),d||{}),p=Array.from(u.childNodes),g=[];try{for(var m=Sh(p),v=m.next();!v.done;v=m.next()){if((k=v.value).nodeType!==Node.TEXT_NODE){var y=Xg(_p(k),t,f,h);Array.isArray(y)?y.forEach(function(e){return g.push(e)}):g.push(y)}else{""!==(O=k.nodeValue||"")&&g.push(Yg({text:O},f,h))}}}catch(e){o={error:e}}finally{try{v&&!v.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}if(0===g.length)return Vg(e,t);var b=Kg(g);return 1===b.length?b[0]:b}if("code"===l)return"pre"===Rg(e.parent())?Vg(e,t):qg(e,t);if(!zg.includes(l))return Vg(e,t);var w=Gg(e),E=Wg(e),x=wh({},r);Object.keys(w).forEach(function(e){w[e]&&(x[e]=!0)});var S=wh(wh({},n||{}),E||{}),C=Array.from(u.childNodes),A=[];try{for(var D=Sh(C),T=D.next();!T.done;T=D.next()){var k;if((k=T.value).nodeType!==Node.TEXT_NODE){y=Xg(_p(k),t,x,S);Array.isArray(y)?y.forEach(function(e){return A.push(e)}):A.push(y)}else{var O;""!==(O=k.nodeValue||"")&&A.push(Yg({text:O},x,S))}}}catch(e){a={error:e}}finally{try{T&&!T.done&&(s=D.return)&&s.call(D)}finally{if(a)throw a.error}}if(0===A.length)return qg(e,t);var N=Kg(A);return 1===N.length?N[0]:N}function Zg(e,t,r){var n=_p(r);return!!n.attr(t)||(n.attr(t,"true"),e.on($h,function(){n.removeAttr(t)}),!1)}function Jg(e,t){void 0===t&&(t="");var r=[],n=e.getConfig().sanitizeHtml;""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map(function(e){return"<p>".concat(e,"</p>")}).join("")),t=n?n(t):t;var o=_p("<div>".concat(t,"</div>"));return Array.from(o.children()).forEach(function(t){var n=Xg(_p(t),e);Array.isArray(n)?n.forEach(function(e){return r.push(e)}):r.push(n)}),r}function Qg(e,t){return"w-e-element-".concat(e,"-").concat(t)}var em=[];var tm,rm,nm={};function om(e,t,r){var n=r.isInline(e)?"span":"div";return"<".concat(n,">").concat(t,"</").concat(n,">")}function im(e,t){var r=e.type,n=void 0===r?"":r,o=e.children,i=void 0===o?[]:o,a=ph.Editor.isVoid(t,e),s="";a||(s=i.map(function(e){return wm(e,t)}).join(""));var u=function(e){return nm[e]||om}(n),l=u(e,s,t),c="";if(c="string"==typeof l?l:l.html||"",a||em.forEach(function(t){return c=t(e,c)}),"string"==typeof l)return c;var d=l.prefix,f=void 0===d?"":d,h=l.suffix,p=void 0===h?"":h;return f&&(c=f+c),p&&(c+=p),c}var am=function(){if(rm)return tm;rm=1;var e=9007199254740991,t="[object Arguments]",r="[object Map]",n="[object Promise]",o="[object Set]",i="[object WeakMap]",a="[object DataView]",s=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,l="\\ud800-\\udfff",c="\\u0300-\\u036f\\ufe20-\\ufe23",d="\\u20d0-\\u20f0",f="\\ufe0e\\ufe0f",h="["+l+"]",p="["+c+d+"]",g="\\ud83c[\\udffb-\\udfff]",m="[^"+l+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",w="\\u200d",E="(?:"+p+"|"+g+")"+"?",x="["+f+"]?",S=x+E+("(?:"+w+"(?:"+[m,v,y].join("|")+")"+x+E+")*"),C="(?:"+[m+p+"?",p,v,y,h].join("|")+")",A=RegExp(g+"(?="+g+")|"+C+S,"g"),D=RegExp("["+w+l+c+d+f+"]"),T="object"==typeof b&&b&&b.Object===Object&&b,k="object"==typeof self&&self&&self.Object===Object&&self,O=T||k||Function("return this")();function N(e,t){return function(e,t){for(var r=-1,n=e?e.length:0,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}(t,function(t){return e[t]})}function B(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function F(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function M(e){return function(e){return D.test(e)}(e)?function(e){return e.match(A)||[]}(e):function(e){return e.split("")}(e)}var I,P,R=Function.prototype,L=Object.prototype,_=O["__core-js_shared__"],z=function(){var e=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),j=R.toString,H=L.hasOwnProperty,$=L.toString,U=RegExp("^"+j.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=O.Symbol,q=V?V.iterator:void 0,G=L.propertyIsEnumerable,W=(I=Object.keys,P=Object,function(e){return I(P(e))}),Y=se(O,"DataView"),K=se(O,"Map"),X=se(O,"Promise"),Z=se(O,"Set"),J=se(O,"WeakMap"),Q=ce(Y),ee=ce(K),te=ce(X),re=ce(Z),ne=ce(J);function oe(e,r){var n=de(e)||function(e){return function(e){return ge(e)&&fe(e)}(e)&&H.call(e,"callee")&&(!G.call(e,"callee")||$.call(e)==t)}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],o=n.length,i=!!o;for(var a in e)!H.call(e,a)||i&&("length"==a||le(a,o))||n.push(a);return n}function ie(e){if(!pe(e)||function(e){return!!z&&z in e}(e))return!1;var t=he(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?U:s;return t.test(ce(e))}function ae(e){if(r=(t=e)&&t.constructor,n="function"==typeof r&&r.prototype||L,t!==n)return W(e);var t,r,n,o=[];for(var i in Object(e))H.call(e,i)&&"constructor"!=i&&o.push(i);return o}function se(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return ie(r)?r:void 0}var ue=function(e){return $.call(e)};function le(t,r){return!!(r=null==r?e:r)&&("number"==typeof t||u.test(t))&&t>-1&&t%1==0&&t<r}function ce(e){if(null!=e){try{return j.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(Y&&ue(new Y(new ArrayBuffer(1)))!=a||K&&ue(new K)!=r||X&&ue(X.resolve())!=n||Z&&ue(new Z)!=o||J&&ue(new J)!=i)&&(ue=function(e){var t=$.call(e),s="[object Object]"==t?e.constructor:void 0,u=s?ce(s):void 0;if(u)switch(u){case Q:return a;case ee:return r;case te:return n;case re:return o;case ne:return i}return t});var de=Array.isArray;function fe(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=e}(t.length)&&!he(t)}function he(e){var t=pe(e)?$.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function pe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ge(e){return!!e&&"object"==typeof e}function me(e){return e?N(e,function(e){return fe(e)?oe(e):ae(e)}(e)):[]}return tm=function(e){if(!e)return[];if(fe(e))return function(e){return"string"==typeof e||!de(e)&&ge(e)&&"[object String]"==$.call(e)}(e)?M(e):function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(e);if(q&&e[q])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[q]());var t=ue(e);return(t==r?B:t==o?F:me)(e)},tm}(),sm=w(am),um=0,lm=function(){this.id="".concat(um++)},cm="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),dm="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),fm="undefined"!=typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),hm="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),pm="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),gm="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),mm=!pm&&!hm&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,vm=function(e,t){return Boolean(e.compareDocumentPosition(t)&Sg.DOCUMENT_POSITION_PRECEDING)},ym=function(e,t){return Boolean(e.compareDocumentPosition(t)&Sg.DOCUMENT_POSITION_FOLLOWING)},bm={getWindow:function(e){var t=bp.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var r=yp.get(t);return r||(r=new lm,yp.set(t,r)),r},setNewKey:function(e){var t=new lm;yp.set(e,t)},findPath:function(e,t){for(var r=[],n=t;;){var o=hp.get(n);if(null==o){if(ph.Editor.isEditor(n))return r;break}var i=fp.get(n);if(null==i)break;r.unshift(i),n=o}throw new Error("Unable to find the path for Slate node: ".concat(JSON.stringify(t)))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=bm.toDOMNode(e,e),r=t.getRootNode();return"[object HTMLDocument]"!==xg(r)&&!function(e){return"[object ShadowRoot]"===xg(e)}(r)||null==Reflect.get(r,"getSelection")?t.ownerDocument:r},getParentNode:function(e,t){return hp.get(t)||null},getParentsNodes:function(e,t){for(var r=[],n=t;n!==e&&null!=n;){var o=bm.getParentNode(e,n);if(null==o)break;r.push(o),n=o}return r},getTopNode:function(e,t){var r=[bm.findPath(e,t)[0]];return ph.Node.get(e,r)},toDOMNode:function(e,t){var r;if(ph.Editor.isEditor(t))r=pp.get(e);else{var n=bm.findKey(e,t);r=mp.get(n)}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(JSON.stringify(t)));return r},hasDOMNode:function(e,t,r){void 0===r&&(r={});var n,o=r.editable,i=void 0!==o&&o,a=bm.toDOMNode(e,e);try{n=kg(t)?t:t.parentElement}catch(e){if(e instanceof Error&&!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&(n.closest("[data-slate-editor]")===a&&(!i||n.isContentEditable||n.closest('[contenteditable="false"]')===a||!!n.getAttribute("data-slate-zero-width"))||!!n.getAttribute("data-slate-string"))},toDOMRange:function(e,t){var r=t.anchor,n=t.focus,o=ph.Range.isBackward(t),i=bm.toDOMPoint(e,r),a=ph.Range.isCollapsed(t)?i:bm.toDOMPoint(e,n),s=bm.getWindow(e).document.createRange(),u=Ch(o?a:i,2),l=u[0],c=u[1],d=Ch(o?i:a,2),f=d[0],h=d[1],p=!!(kg(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(kg(f)?f:f.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,p?1:c),s.setEnd(f,g?1:h),s},toDOMPoint:function(e,t){var r,n,o,i=Ch(ph.Editor.node(e,t.path),1)[0],a=bm.toDOMNode(e,i);ph.Editor.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),u=0;try{for(var l=Sh(s),c=l.next();!c.done;c=l.next()){var d=c.value,f=d.childNodes[0];if(null!=f&&null!=f.textContent){var h=f.textContent.length,p=d.getAttribute("data-slate-length"),g=u+(null==p?h:parseInt(p,10));if(t.offset<=g){o=[f,Math.min(h,Math.max(0,t.offset-u))];break}u=g}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(JSON.stringify(t)));return o},toSlateNode:function(e,t){var r=kg(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?gp.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(r));return n},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var r=t.clientX,n=t.clientY,o=t.target;if(null==r||null==n)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i,a=bm.toSlateNode(e,t.target),s=bm.findPath(e,a);if(ph.Element.isElement(a)&&ph.Editor.isVoid(e,a)){var u=o.getBoundingClientRect(),l=e.isInline(a)?r-u.left<u.left+u.width-r:n-u.top<u.top+u.height-n,c=ph.Editor.point(e,s,{edge:l?"start":"end"}),d=l?ph.Editor.before(e,c):ph.Editor.after(e,c);if(d)return ph.Editor.range(e,d)}var f=this.getWindow(e).document;if(f.caretRangeFromPoint)i=f.caretRangeFromPoint(r,n);else{var h=f.caretPositionFromPoint(r,n);h&&((i=f.createRange()).setStart(h.offsetNode,h.offset),i.setEnd(h.offsetNode,h.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return bm.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,r){var n,o,i,a,s,u=r.exactMatch,l=r.suppressThrow;if((Og(t)?t.anchorNode:t.startContainer)&&(Og(t)?(n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=gm&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(n=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,s=t.collapsed)),null==n||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var c=bm.toSlatePoint(e,[n,o],{exactMatch:u,suppressThrow:l});if(!c)return null;var d=s?c:bm.toSlatePoint(e,[i,a],{exactMatch:u,suppressThrow:l,searchDirection:vm(n,i)||n===i&&a<o?"forward":"backward"});if(!d)return null;var f={anchor:c,focus:d};return ph.Range.isExpanded(f)&&ph.Range.isForward(f)&&kg(i)&&ph.Editor.void(e,{at:f.focus,mode:"highest"})&&(f=ph.Editor.unhangRange(e,f,{voids:!0})),f},toSlatePoint:function(e,t,r){var n,o,i,a=r.exactMatch,s=r.suppressThrow,u=Ch(a?t:function(e){var t,r=Ch(e,2),n=r[0],o=r[1];if(kg(n)&&n.childNodes.length){var i=o===n.childNodes.length,a=i?o-1:o;for(n=(t=Ch(Fg(n,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;kg(n)&&n.childNodes.length;){var s=i?n.childNodes.length-1:0;n=Mg(n,s,i?"backward":"forward")}o=i&&null!=n.textContent?n.textContent.length:0}return[n,o]}(t),2),l=u[0],c=u[1],d=l.parentNode,f=r.searchDirection,h=null,p=0;if(d){var g=bm.toDOMNode(e,e),m=d.closest('[data-slate-void="true"]'),v=m&&g.contains(m)?m:null,y=d.closest('[contenteditable="false"]'),b=y&&g.contains(y)?y:null,w=d.closest("[data-slate-leaf]"),E=null,x=bm.getWindow(e);if(w&&x.document.createRange){h=w.closest('[data-slate-node="text"]');var S=x.document.createRange();S.setStart(h,0),S.setEnd(l,c);var C=S.cloneContents();Ah(Ah([],Ch(sm(C.querySelectorAll("[data-slate-zero-width]"))),!1),Ch(sm(C.querySelectorAll("[contenteditable=false]"))),!1).forEach(function(e){e.parentNode.removeChild(e)}),p=C.textContent.length,E=h}else if(v)(w=Array.from(v.querySelectorAll("[data-slate-leaf]")).find(function(t){return bm.hasDOMNode(e,t)})||null)?(h=w.closest('[data-slate-node="text"]'),p=(E=w).textContent.length,E.querySelectorAll("[data-slate-zero-width]").forEach(function(e){p-=e.textContent.length})):p=1;else if(b){var A=function(t){return t?Array.from(t.querySelectorAll("[data-slate-leaf]")).filter(function(t){return bm.hasDOMNode(e,t)}):[]},D=b.closest('[data-slate-node="element"]');if("backward"===f||!f)for(var T=(O=Ah(Ah([],Ch(A(null==D?void 0:D.previousElementSibling)),!1),Ch(A(D)),!1)).length-1;T>=0;T-=1){var k=O[T];if(vm(b,k)){w=k,f="backward";break}}if(!(w||"forward"!==f&&f)){var O=Ah(Ah([],Ch(A(D)),!1),Ch(A(null==D?void 0:D.nextElementSibling)),!1);try{for(var N=Sh(O),B=N.next();!B.done;B=N.next()){k=B.value;if(ym(b,k)){w=k,f="forward";break}}}catch(e){n={error:e}}finally{try{B&&!B.done&&(o=N.return)&&o.call(N)}finally{if(n)throw n.error}}}w&&(h=w.closest('[data-slate-node="text"]'),E=w,"forward"===f?p=0:(p=E.textContent.length,E.querySelectorAll("[data-slate-zero-width]").forEach(function(e){p-=e.textContent.length})))}E&&p===E.textContent.length&&(d.hasAttribute("data-slate-zero-width")||dm&&(null===(i=E.textContent)||void 0===i?void 0:i.endsWith("\n")))&&(p-=1)}if(!h){if(s)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var F,M=bm.toSlateNode(e,h);try{F=bm.findPath(e,M)}catch(e){if(s)return null;throw e}return{path:F,offset:p}},hasRange:function(e,t){var r=t.anchor,n=t.focus;return ph.Editor.hasPath(e,r.path)&&ph.Editor.hasPath(e,n.path)},getNodeType:function(e){return ph.Element.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(e){return ph.Node.string(e)}).join("")},getSelectedElems:function(e){var t,r,n=[],o=ph.Editor.nodes(e,{universal:!0});try{for(var i=Sh(o),a=i.next();!a.done;a=i.next()){var s=Ch(a.value,1)[0];ph.Element.isElement(s)&&n.push(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},getSelectedNodeByType:function(e,t){var r=this,n=Ch(ph.Editor.nodes(e,{match:function(e){return r.checkNodeType(e,t)},universal:!0}),1),o=n[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=Ch(ph.Editor.nodes(e,{match:function(e){return ph.Text.isText(e)},universal:!0}),1),r=t[0];return null==r?null:r[0]},isNodeSelected:function(e,t){var r=Ch(ph.Editor.nodes(e,{match:function(e){return e===t},universal:!0}),1),n=r[0];return null!=n&&Ch(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var r=e.selection;return!!r&&(ph.Editor.isEnd(e,r.anchor,t)||ph.Editor.isEnd(e,r.focus,t))},getTextarea:function(e){var t=Zh.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return ep.get(e)||null},getHoverbar:function(e){return rp.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,r){e.normalizeNode([t,[r]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),r=t.maxLength,n=t.onMaxLength;if("number"!=typeof r||r<=0)return 1/0;var o=r-e.getText().replace(/\r|\n|(\r\n)|(\n\r)/g,"").length;return o<=0&&n&&n(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,r,n,o,i=bm.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var s=Sh(Array.from(a)),u=s.next();!u.done;u=s.next()){var l=u.value;if(!Ng(l))break;l.remove()}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}var c=ph.Editor.nodes(e,{match:function(t){return!(!ph.Element.isElement(t)||e.isInline(t))},universal:!0});try{for(var d=Sh(c),f=d.next();!f.done;f=d.next()){var h=f.value;if(null!=h){var p=h[0];Pg(bm.toDOMNode(e,p),function(e,t){var r=_p(t);r.attr("data-slate-string")||r.attr("data-slate-zero-width")||r.attr("data-w-e-reserve")||t.removeChild(e)})}}}catch(e){n={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}},isLastNode:function(e,t){var r=e.children||[];return r[r.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,r,n=ph.Editor.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=Sh(n),a=i.next();!a.done;a=i.next()){a.value&&(o+=1)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(ph.Range.isExpanded(t))return!1;var r=bm.getSelectedNodeByType(e,"paragraph");if(null===r)return!1;var n=r.children;return 1===n.length&&(""===n[0].text||void 0)},isEmptyPath:function(e,t){var r=ph.Editor.node(e,t);if(null==r)return!1;var n=Ch(r,1)[0].children;if(1===n.length&&""===n[0].text)return!0;return!1}};function wm(e,t){return ph.Element.isElement(e)?im(e,t):function(e,t){var r=e.text;if(null==r)throw new Error("Current node is not slate Text ".concat(JSON.stringify(e)));var n=r;n=function(e){return e.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(n);var o=bm.getParentsNodes(t,e).some(function(e){return"pre"===bm.getNodeType(e)});if(o||(n=n.replace(/\n\r|\r\n|\r|\n/g,"<br>")),o&&(n=n.replace(/ /g," ")),""===n){var i=bm.getParentNode(null,e);if(!i||0!==i.children.length)return n;n="<br>"}return em.forEach(function(t){return n=t(e,n)}),n}(e,t)}var Em=function(e,t){var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},xm=function(e,t,r){var n=bm.toDOMRange(e,t).getBoundingClientRect(),o=bm.toDOMRange(e,r).getBoundingClientRect();return Em(n,o)&&Em(o,n)},Sm=function(e,t){var r,n,o=[];try{for(var i=Sh(ph.Editor.levels(e,{at:t})),a=i.next();!a.done;a=i.next()){var s=Ch(a.value,2),u=s[0],l=s[1],c=bm.findKey(e,u);o.push([l,c])}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o};function Cm(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):ph.Transforms.insertNodes(e,t,{mode:"highest"})}var Am,Dm,Tm,km,Om,Nm,Bm,Fm,Mm,Im,Pm,Rm,Lm,_m,zm,jm,Hm,$m,Um,Vm,qm,Gm,Wm,Ym,Km,Xm,Zm,Jm,Qm,ev,tv,rv,nv,ov,iv,av,sv,uv,lv,cv,dv=function(e){var t=e,r=t.onChange,n=t.insertText,o=t.apply,i=t.deleteBackward,a=t.deleteFragment;return t.insertText=function(e){t.getConfig().readOnly||n(e)},t.apply=function(e){var r,n,i,a,s,u,l,c,d=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":d.push.apply(d,Ah([],Ch(Sm(t,e.path)),!1));break;case"insert_node":case"remove_node":d.push.apply(d,Ah([],Ch(Sm(t,ph.Path.parent(e.path))),!1));break;case"merge_node":var f=ph.Path.previous(e.path);d.push.apply(d,Ah([],Ch(Sm(t,f)),!1));break;case"move_node":var h=ph.Path.common(ph.Path.parent(e.path),ph.Path.parent(e.newPath));d.push.apply(d,Ah([],Ch(Sm(t,h)),!1));break;case"set_selection":(null===(a=null===(i=e.newProperties)||void 0===i?void 0:i.focus)||void 0===a?void 0:a.path)&&(d.push.apply(d,Ah([],Ch(Sm(t,null===(u=null===(s=e.newProperties)||void 0===s?void 0:s.focus)||void 0===u?void 0:u.path)),!1)),d.push.apply(d,Ah([],Ch(Sm(t,null===(c=null===(l=e.properties)||void 0===l?void 0:l.focus)||void 0===c?void 0:c.path)),!1)))}o(e);try{for(var p=Sh(d),g=p.next();!g.done;g=p.next()){var m=Ch(g.value,2),v=m[0],y=m[1],b=Ch(ph.Editor.node(t,v),1)[0];yp.set(b,y),"type"in b&&(cp.has(b)&&cp.delete(b),dp.has(b)&&dp.delete(b))}}catch(e){r={error:e}}finally{try{g&&!g.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}},t.deleteBackward=function(r){if("line"!==r)return i(r);if(e.selection&&ph.Range.isCollapsed(e.selection)){var n=ph.Editor.above(e,{match:function(t){return ph.Element.isElement(t)&&ph.Editor.isBlock(e,t)},at:e.selection});if(n){var o=Ch(n,2)[1],a=ph.Editor.range(e,o,e.selection.anchor),s=function(e,t){var r=ph.Editor.range(e,ph.Range.end(t)),n=Array.from(ph.Editor.positions(e,{at:t})),o=0,i=n.length,a=Math.floor(i/2);if(xm(e,ph.Editor.range(e,n[o]),r))return ph.Editor.range(e,n[o],r);if(n.length<2)return ph.Editor.range(e,n[n.length-1],r);for(;a!==n.length&&a!==o;)xm(e,ph.Editor.range(e,n[a]),r)?i=a:o=a,a=Math.floor((o+i)/2);return ph.Editor.range(e,n[i],r)}(t,a);ph.Range.isCollapsed(s)||ph.Transforms.delete(e,{at:s})}}},t.deleteFragment=function(e){var r=function(e){var t=e.selection;if(null==t||ph.Range.isCollapsed(t))return!1;var r=Ch(ph.Range.edges(t),2),n=r[0],o=r[1],i=Ch(ph.Editor.edges(e,[]),2),a=i[0],s=i[1];return ph.Point.equals(n,a)&&ph.Point.equals(o,s)}(t);a(e),r&&(!function(e){var t=[{type:"paragraph",children:[{text:""}]}];ph.Editor.withoutNormalizing(e,function(){for(var r=e.children.length-1;r>=0;r-=1)ph.Transforms.removeNodes(e,{at:[r]});ph.Transforms.insertNodes(e,t,{at:[0]})})}(t),t.children.length>0&&ph.Transforms.select(t,ph.Editor.start(t,[])))},t.onChange=function(){var e=t.selection;null!=e&&Ep.set(t,e),t.emit(Uh),r()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children,r=void 0===e?[]:e,n=t.getConfig().skipCacheTypes,o=void 0===n?["list-item"]:n;return r.map(function(e){var r=bm.getNodeType(e);if(o.includes(r))return wm(e,t);var n=dp.get(e);if(n)return n;var i=wm(e,t);return dp.set(e,i),i}).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map(function(e){return ph.Node.string(e)}).join("\n")},t.getSelectionText=function(){var r=t.selection;return null==r?"":ph.Editor.string(e,r)},t.getElemsByType=function(e,r){var n,o;void 0===r&&(r=!1);var i=[],a=ph.Editor.nodes(t,{at:[],universal:!0});try{for(var s=Sh(a),u=s.next();!u.done;u=s.next()){var l=Ch(u.value,1)[0];if(ph.Element.isElement(l))if(r?l.type.indexOf(e)>=0:l.type===e){var c=bm.findKey(t,l),d=Qg(l.type,c.id);i.push(wh(wh({},l),{id:d}))}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,r=void 0===e?[]:e;if(r.length>1)return!1;var n=r[0];if(null==n)return!0;if(!ph.Element.isElement(n)||"paragraph"!==n.type)return!1;var o=n.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];return null==a||ph.Text.isText(a)&&""===a.text},t.clear=function(){ph.Transforms.delete(t,{at:{anchor:ph.Editor.start(t,[]),focus:ph.Editor.end(t,[])}}),0!==t.children.length?function(e){var t=e.children[0];if(1===e.children.length&&ph.Element.isElement(t)&&("paragraph"!==t.type||""!==ph.Node.string(t))&&""===ph.Node.string(t)){var r=[{type:"paragraph",children:[{text:""}]}];ph.Editor.withoutNormalizing(e,function(){ph.Transforms.removeNodes(e,{at:[0]}),ph.Transforms.insertNodes(e,r,{at:[0]})})}}(t):ph.Transforms.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return bm.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,r){if(void 0===e&&(e=""),void 0===r&&(r=!1),e){var n=document.createElement("div");n.innerHTML=e;var o=Array.from(n.childNodes);if(o=o.filter(function(e){var t=e.nodeName;return!!Ng(e)||!!kg(e)&&!Tp.has(t.toLowerCase())}),0!==o.length){var i=t.selection;if(null!=i){var a=null;if(bm.isSelectedEmptyParagraph(t)&&!r)a=[i.focus.path[0]];n.setAttribute("hidden","true"),document.body.appendChild(n);var s=0;o.forEach(function(e,r){var n=e.nodeName,i=e.textContent,a=void 0===i?"":i;if(Ng(e)){if(!a||!a.trim())return;t.insertNode({text:a})}else if("BR"!==n){var u=e,l=!1;if(zg.includes(n.toLowerCase()))l=!0;else for(var c in Hg)if(u.matches(c)){l=!0;break}if(l){var d=Xg(_p(u),t);return Array.isArray(d)?(d.forEach(function(e){return Cm(t,e)}),s+=1):(Cm(t,d),s+=1),void(bm.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(u).display;if(!bm.isSelectedEmptyParagraph(t)&&f.indexOf("inline")<0){if(r>=1)(function(e){return"matches"in e&&/^[ou]l$/i.test(e.tagName)&&!e.hasAttribute("data-w-e-type")})(o[r-1])&&t.insertBreak();t.insertBreak()}t.dangerouslyInsertHtml(u.innerHTML,!0)}else t.insertText("\n")}),s&&a&&bm.isEmptyPath(t,a)&&ph.Transforms.removeNodes(t,{at:a}),n.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var r=t.isDisabled(),n=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),Ep.delete(t),t.focus(),t.clear();var i=Jg(t,null==e?"":e);if(ph.Transforms.insertFragment(t,i),n||(t.deselect(),t.blur()),r&&(t.deselect(),t.disable()),t.isFocused())try{var a=JSON.parse(o);ph.Range.isRange(a)&&bm.hasRange(t,a)?t.select(a):t.select(ph.Editor.start(t,[]))}catch(e){t.select(ph.Editor.start(t,[]))}},t},fv=1,hv=function(e){var t=e;return t.id="wangEditor-".concat(fv),fv+=1,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(bm.toDOMNode(t,t).focus({preventScroll:!0}),wp.set(t,!0),e){var r=ph.Editor.end(t,[]);ph.Transforms.select(t,r)}else{var n=Ep.get(t);n?ph.Transforms.select(t,n):ph.Transforms.select(t,ph.Editor.start(t,[]))}},t.isFocused=function(){return!!wp.get(t)},t.blur=function(){bm.toDOMNode(t,t).blur(),ph.Transforms.deselect(t),wp.set(t,!1)},t.updateView=function(){bm.getTextarea(t).changeViewState();var e=bm.getToolbar(t);e&&e.changeToolbarState();var r=bm.getHoverbar(t);r&&r.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=bm.getTextarea(t);e.destroy(),Zh.delete(t),Jh.delete(e);var r=bm.getToolbar(t);r&&(r.destroy(),ep.delete(t),Qh.delete(r));var n=bm.getHoverbar(t);n&&(n.destroy(),rp.delete(t),tp.delete(n)),t.isDestroyed=!0,t.emit($h)}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var r="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return r+="\nYou has disabled editor scroll, please do this yourself",void console.warn(r)}var n=_p("#".concat(e));if(0!==n.length){var o=n[0];if(!bm.hasDOMNode(t,o)){r="Element (found by id is '".concat(e,"') is not in editor DOM");return r+="\n 通过 id '".concat(e,"' 找到的 element 不在 editor DOM 之内"),void console.error(r,o)}var i=bm.getTextarea(t),a=i.$textAreaContainer,s=i.$scroll,u=n.offset().top,l=a.offset().top;s[0].scrollBy({top:u-l,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||bm.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=op.get(t);null!=e&&e.forEach(function(e){return e.hide()})},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return bm.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,r=bm.getToolbar(t);r&&(e=r.$box);var n=bm.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==n[0]){throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致")}n.addClass("w-e-full-screen-container");var o=n.css("z-index");n.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit(qh)}},t.unFullScreen=function(){if(t.isFullScreen){var e=bm.getTextarea(t).$box.parent();setTimeout(function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit(Gh)},200)}},t.getEditableContainer=function(){return bm.getTextarea(t).$textAreaContainer[0]},t},pv={exports:{}},gv={exports:{}};function mv(){if(Dm)return Am;Dm=1;return Am=function(e){return null!=e}}function vv(){if(Nm)return Om;Nm=1;var e=function(){if(km)return Tm;km=1;var e=mv(),t={object:!0,function:!0,undefined:!0};return Tm=function(r){return!!e(r)&&hasOwnProperty.call(t,typeof r)}}();return Om=function(t){if(!e(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(e){return!1}}}function yv(){if(Im)return Mm;Im=1;var e=function(){if(Fm)return Bm;Fm=1;var e=vv();return Bm=function(t){if("function"!=typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length)return!1;if("function"!=typeof t.call)return!1;if("function"!=typeof t.apply)return!1}catch(e){return!1}return!e(t)}}(),t=/^\s*class[\s{/}]/,r=Function.prototype.toString;return Mm=function(n){return!!e(n)&&!t.test(r.call(n))}}function bv(){if($m)return Hm;$m=1;var e=(jm?zm:(jm=1,zm=function(){}))();return Hm=function(t){return t!==e&&null!==t},Hm}function wv(){return Gm||(Gm=1,qm=(_m?Lm:(_m=1,Lm=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}))()?Object.keys:function(){if(Vm)return Um;Vm=1;var e=bv(),t=Object.keys;return Um=function(r){return t(e(r)?Object(r):r)}}()),qm}function Ev(){if(Xm)return Km;Xm=1;var e=wv(),t=function(){if(Ym)return Wm;Ym=1;var e=bv();return Wm=function(t){if(!e(t))throw new TypeError("Cannot use null or undefined");return t}}(),r=Math.max;return Km=function(n,o){var i,a,s,u=r(arguments.length,2);for(n=Object(t(n)),s=function(e){try{n[e]=o[e]}catch(e){i||(i=e)}},a=1;a<u;++a)e(o=arguments[a]).forEach(s);if(void 0!==i)throw i;return n},Km}function xv(){return Jm?Zm:(Jm=1,Zm=(Rm||(Rm=1,Pm=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}),Pm)()?Object.assign:Ev())}function Sv(){return av||(av=1,iv=function(){if(rv)return tv;rv=1;var e="razdwatrzy";return tv=function(){return"function"==typeof e.contains&&!0===e.contains("dwa")&&!1===e.contains("foo")}}()()?String.prototype.contains:function(){if(ov)return nv;ov=1;var e=String.prototype.indexOf;return nv=function(t){return e.call(this,t,arguments[1])>-1},nv}()),iv}function Cv(){if(sv)return gv.exports;sv=1;var e=mv(),t=yv(),r=xv(),n=function(){if(ev)return Qm;ev=1;var e=bv(),t=Array.prototype.forEach,r=Object.create;return Qm=function(n){var o=r(null);return t.call(arguments,function(t){e(t)&&function(e,t){var r;for(r in e)t[r]=e[r]}(Object(t),o)}),o},Qm}(),o=Sv(),i=gv.exports=function(t,i){var a,s,u,l,c;return arguments.length<2||"string"!=typeof t?(l=i,i=t,t=null):l=arguments[2],e(t)?(a=o.call(t,"c"),s=o.call(t,"e"),u=o.call(t,"w")):(a=u=!0,s=!1),c={value:i,configurable:a,enumerable:s,writable:u},l?r(n(l),c):c};return i.gs=function(i,a,s){var u,l,c,d;return"string"!=typeof i?(c=s,s=a,a=i,i=null):c=arguments[3],e(a)?t(a)?e(s)?t(s)||(c=s,s=void 0):s=void 0:(c=a,a=s=void 0):a=void 0,e(i)?(u=o.call(i,"c"),l=o.call(i,"e")):(u=!0,l=!1),d={get:a,set:s,configurable:u,enumerable:l},c?r(n(c),d):d},gv.exports}var Av=(cv||(cv=1,function(e,t){var r,n,o,i,a,s,u,l=Cv(),c=lv?uv:(lv=1,uv=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}),d=Function.prototype.apply,f=Function.prototype.call,h=Object.create,p=Object.defineProperty,g=Object.defineProperties,m=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var r;return c(t),m.call(this,"__ee__")?r=this.__ee__:(r=v.value=h(null),p(this,"__ee__",v),v.value=null),r[e]?"object"==typeof r[e]?r[e].push(t):r[e]=[r[e],t]:r[e]=t,this},n=function(e,t){var n,i;return c(t),i=this,r.call(this,e,n=function(){o.call(i,e,n),d.call(t,this,arguments)}),n.__eeOnceListener__=t,this},o=function(e,t){var r,n,o,i;if(c(t),!m.call(this,"__ee__"))return this;if(!(r=this.__ee__)[e])return this;if("object"==typeof(n=r[e]))for(i=0;o=n[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===n.length?r[e]=n[i?0:1]:n.splice(i,1));else n!==t&&n.__eeOnceListener__!==t||delete r[e];return this},i=function(e){var t,r,n,o,i;if(m.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(r=arguments.length,i=new Array(r-1),t=1;t<r;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;n=o[t];++t)d.call(n,this,i)}else switch(arguments.length){case 1:f.call(o,this);break;case 2:f.call(o,this,arguments[1]);break;case 3:f.call(o,this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),t=1;t<r;++t)i[t-1]=arguments[t];d.call(o,this,i)}},a={on:r,once:n,off:o,emit:i},s={on:l(r),once:l(n),off:l(o),emit:l(i)},u=g({},s),e.exports=t=function(e){return null==e?h(u):g(Object(e),s)},t.methods=a}(pv,pv.exports)),pv.exports),Dv=w(Av);function Tv(e){var t=xp.get(e);return null==t&&(t=Dv(),xp.set(e,t)),t}var kv=new WeakMap;function Ov(e,t){var r=kv.get(e);null==r&&(r=new Set,kv.set(e,r)),r.add(t)}var Nv=function(e){var t=e;return t.on=function(e,r){var n=Tv(t);if(n.on(e,r),"destroyed"===e&&Ov(t,r),"destroyed"!==e){var o=function(){return n.off(e,r)};n.on("destroyed",o),Ov(t,o)}},t.once=function(e,r){Tv(t).once(e,r)},t.off=function(e,r){Tv(t).off(e,r)},t.emit=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=Tv(t);if(o.emit.apply(o,Ah([e],Ch(r),!1)),"destroyed"===e){var i=function(e){return kv.get(e)||new Set}(t);i.forEach(function(e){return o.off("destroyed",e)}),function(e){kv.set(e,new Set)}(t)}},t};var Bv=function(e){var t=e;return t.setFragmentData=function(e){var r=t.selection;if(r){var n=Ch(ph.Range.edges(r),2),o=n[0],i=n[1],a=ph.Editor.void(t,{at:o.path}),s=ph.Editor.void(t,{at:i.path});if(!ph.Range.isCollapsed(r)||a){var u=bm.toDOMRange(t,r),l=u.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach(function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)}),s){var d=Ch(s,1)[0],f=u.cloneRange(),h=bm.toDOMNode(t,d);f.setEndAfter(h),l=f.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach(function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""}),Ng(c)){var p=c.ownerDocument.createElement("span");p.style.whiteSpace="pre",p.appendChild(c),l.appendChild(p),c=p}var g=t.getFragment(),m=JSON.stringify(g),v=window.btoa(encodeURIComponent(m));c.setAttribute("data-slate-fragment",v),e.setData("application/x-slate-fragment",v);var y=l.ownerDocument.createElement("div");return y.appendChild(l),y.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(y),e.setData("text/html",y.innerHTML),e.setData("text/plain",Ig(y)),l.ownerDocument.body.removeChild(y),e}}},t.insertData=function(e){var r=e.getData("application/x-slate-fragment");if(r){var n=decodeURIComponent(window.atob(r)),o=JSON.parse(n);t.insertFragment(o)}else{var i=e.getData("text/plain"),a=e.getData("text/html");if(a){var s=t.getConfig().sanitizeHtml;t.dangerouslyInsertHtml(s?s(a):a)}else if(i){if(!/[\r\n]/.test(i))return void t.insertText(i);var u=function(e){return e.replace(/\n\r|\r\n|\r/g,"\n").split("\n").map(function(e){return{type:"paragraph",children:[{text:e}]}})}(i);t.insertFragment(u)}}},t};function Fv(e){return e.replace(/\n\r|\r\n|\r|\n/g,"").length}function Mv(e,t){var r,n;if(t<=0)return"";var o=t,i="";try{for(var a=Sh(e),s=a.next();!s.done;s=a.next()){var u=s.value;if(/\r|\n/.test(u))i+=u;else{if(o<=0)break;i+=u,o-=1}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}var Iv=function(e){var t=e,r=t.insertText,n=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var n=bm.getLeftLengthOfMaxLength(t);n<=0||(n<e.length?r(e.slice(0,n)):r(e))}else r(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var r=bm.getLeftLengthOfMaxLength(t);if(!(r<=0))r<ph.Node.string(e).length||n(e)}else n(e)},t.insertFragment=function(e){if(t.getConfig().maxLength){if(e.length>0){var r=e[0];if(bm.getLeftLengthOfMaxLength(t)<ph.Node.string(r).length)return;o([r]);for(var n=1;n<e.length;n+=1)t.insertNode(e[n])}}else o(e)},t.dangerouslyInsertHtml=function(e,r){if(void 0===e&&(e=""),void 0===r&&(r=!1),e)if(t.getConfig().maxLength){var n=bm.getLeftLengthOfMaxLength(t);if(!(n<=0)){var o=function(e,t){if(t<=0)return"";var r=document.createElement("div");r.innerHTML=e;var n=function(e){e.forEach(function(e){return e.remove()})},o=function(e){for(var r=Array.from(e.childNodes),i=0;i<r.length;i+=1){var a=r[i];if(Ng(a)){var s=a.textContent||"",u=Fv(s);if(u<=t){t-=u;continue}return a.textContent=Mv(s,t),t=0,n(r.slice(i+1)),!1}if(kg(a)){if(Tp.has(a.nodeName.toLowerCase())){a.remove();continue}if(!o(a))return n(r.slice(i+1)),!1}else a.remove()}return t>0};return o(r),r.innerHTML}(e,n);o&&i(o,r)}}else i(e,r)},t};function Pv(e){var t=bm.getTextarea(e).$textAreaContainer,r=t.width(),n=t.height(),o=t.offset();return{top:o.top,left:o.left,width:r,height:n}}function Rv(e){var t={top:"0",left:"0"},r=e.selection;if(null==r)return t;var n=Pv(e);if(null==n)return t;var o=n.top,i=n.left,a=n.width,s=n.height,u=bm.toDOMRange(e,r).getClientRects(),l=u?u[0]:null;if(null==l)return t;var c={},d=l.top-o,f=l.left-i;if(f>a/2){var h=a-f;c.right="".concat(h+5,"px")}else c.left="".concat(f+5,"px");if(d>s/2){var p=s-d;c.bottom="".concat(p+5,"px")}else{var g=u[u.length-1],m=g.top-o+g.height;m<0&&(m=0),c.top="".concat(m+5,"px")}return c}function Lv(e,t,r){void 0===r&&(r="modal");var n={top:"0",left:"0"};if(null==e.selection)return n;var o=ph.Element.isElement(t)&&e.isVoid(t),i=ph.Element.isElement(t)&&e.isInline(t),a=vp.get(t);if(null==a)return n;var s=a.getBoundingClientRect(),u=s.top,l=s.left,c=s.height,d=s.width;if(o){var f=function(e){var t=[];t.push(e);for(var r=0;t.length>0;){var n=t.pop();if(null==n)break;if((r+=1)>1e4)break;var o=n.nodeName;if(n.nodeType===Eg.ELEMENT_NODE){var i=o.toLowerCase();if(yg.includes(i)||"iframe"===i||"video"===i)return n;var a=n.children||[],s=a.length;if(s)for(var u=s-1;u>=0;u-=1)t.push(a[u])}}return null}(a);if(null!=f){var h=f.getBoundingClientRect();u=h.top,c=h.height}}var p=Pv(e);if(null==p)return n;var g=p.top,m=p.left,v=p.width,y=p.height,b={},w=u-g,E=l-m;if("bar"===r)return b.left="".concat(E,"px"),w>40?b.bottom="".concat(y-w+5,"px"):b.top="".concat(w+c+5,"px"),b;if("modal"===r){if(o?i?E>(v-d)/2?b.right="".concat(v-E+5,"px"):b.left="".concat(E+d+5,"px"):b.left="20px":b.left="".concat(E,"px"),o)(x=w)<0&&(x=0),b.top="".concat(x,"px");else if(w>(y-c)/2)b.bottom="".concat(y-w+5,"px");else{var x;(x=w+c)<0&&(x=0),b.top="".concat(x+5,"px")}return b}throw new Error("type '".concat(r,"' is invalid"))}function _v(e,t){wg(function(){var r=Pv(e);if(null!=r){var n,o=r.top,i=r.left,a=r.width,s=r.height,u=t.offset(),l=u.top,c=u.left,d=t.width(),f=t.height(),h=l-o,p=c-i,g=t.attr("style");if(g.indexOf("top")>=0)if((n=h+f-s)>0){var m=t.css("top"),v=parseInt(m.toString(),10)-n;v<0&&(v=0),t.css("top","".concat(v,"px"))}if(g.indexOf("bottom")>=0&&l<0){var y=t.css("bottom"),b=parseInt(y.toString(),10)-Math.abs(l);t.css("bottom","".concat(b,"px"))}if(g.indexOf("left")>=0)if((n=p+d-a)>0){var w=t.css("left"),E=parseInt(w.toString(),10)-n;E<0&&(E=0),t.css("left","".concat(E,"px"))}if(g.indexOf("right")>=0&&c<0){var x=t.css("right"),S=parseInt(x.toString(),10)-Math.abs(c);t.css("right","".concat(S,"px"))}}})}var zv,jv,Hv=function(e){var t=e,r=t.select,n=t.deselect,o=t.move;return t.select=function(e){r(e)},t.deselect=function(){var e=t.selection,r=bm.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&bm.hasDOMNode(t,r.anchorNode)&&bm.hasDOMNode(t,r.focusNode)&&r.removeAllRanges(),e&&n()},t.move=function(e,t){void 0===t&&(t=!1),"number"==typeof e?e&&(e<0||o({distance:e,unit:"character",reverse:t})):o(e)},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=Ep.get(t);null!=e&&(t.focus(),r(e))},t.getSelectionPosition=function(){return Rv(t)},t.getNodePosition=function(e){return Lv(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var r=Ch(ph.Range.edges(e),2),n=r[0],o=r[1],i=Ch(ph.Editor.edges(t,[]),2),a=i[0],s=i[1];return!(!ph.Point.equals(n,a)||!ph.Point.equals(o,s))},t.selectAll=function(){var e=ph.Editor.start(t,[]),n=ph.Editor.end(t,[]);r({anchor:e,focus:n})},t};var $v=function(){if(jv)return zv;jv=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,n=/^0o[0-7]+$/i,o=parseInt,i="object"==typeof b&&b&&b.Object===Object&&b,a="object"==typeof self&&self&&self.Object===Object&&self,s=i||a||Function("return this")(),u=Object.prototype.toString,l=Math.max,c=Math.min,d=function(){return s.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(i){if("number"==typeof i)return i;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(i))return NaN;if(f(i)){var a="function"==typeof i.valueOf?i.valueOf():i;i=f(a)?a+"":a}if("string"!=typeof i)return 0===i?i:+i;i=i.replace(e,"");var s=r.test(i);return s||n.test(i)?o(i.slice(2),s?2:8):t.test(i)?NaN:+i}return zv=function(e,t,r){var n,o,i,a,s,u,p=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=n,i=o;return n=o=void 0,p=t,a=e.apply(i,r)}function b(e){var r=e-u;return void 0===u||r>=t||r<0||m&&e-p>=i}function w(){var e=d();if(b(e))return E(e);s=setTimeout(w,function(e){var r=t-(e-u);return m?c(r,i-(e-p)):r}(e))}function E(e){return s=void 0,v&&n?y(e):(n=o=void 0,a)}function x(){var e=d(),r=b(e);if(n=arguments,o=this,u=e,r){if(void 0===s)return function(e){return p=e,s=setTimeout(w,t),g?y(e):a}(u);if(m)return s=setTimeout(w,t),y(u)}return void 0===s&&(s=setTimeout(w,t)),a}return t=h(t)||0,f(r)&&(g=!!r.leading,i=(m="maxWait"in r)?l(h(r.maxWait)||0,t):i,v="trailing"in r?!!r.trailing:v),x.cancel=function(){void 0!==s&&clearTimeout(s),p=0,n=u=o=s=void 0},x.flush=function(){return void 0===s?a:E(d())},x},zv}(),Uv=w($v);const Vv=e=>"string"==typeof e,qv=()=>{let e,t;const r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r},Gv=e=>null==e?"":""+e,Wv=/###/g,Yv=e=>e&&e.indexOf("###")>-1?e.replace(Wv,"."):e,Kv=e=>!e||Vv(e),Xv=(e,t,r)=>{const n=Vv(t)?t.split("."):t;let o=0;for(;o<n.length-1;){if(Kv(e))return{};const t=Yv(n[o]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return Kv(e)?{}:{obj:e,k:Yv(n[o])}},Zv=(e,t,r)=>{const{obj:n,k:o}=Xv(e,t,Object);if(void 0!==n||1===t.length)return void(n[o]=r);let i=t[t.length-1],a=t.slice(0,t.length-1),s=Xv(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=Xv(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=r},Jv=(e,t)=>{const{obj:r,k:n}=Xv(e,t);if(r)return r[n]},Qv=(e,t,r)=>{for(const n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?Vv(e[n])||e[n]instanceof String||Vv(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):Qv(e[n],t[n],r):e[n]=t[n]);return e},ey=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ty={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ry=e=>Vv(e)?e.replace(/[&<>"'\/]/g,e=>ty[e]):e;const ny=[" ",",","?","!",";"],oy=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}(20),iy=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let o=e;for(let e=0;e<n.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let a=e;a<n.length;++a)if(a!==e&&(i+=r),i+=n[a],t=o[i],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<n.length-1)continue;e+=a-e+1;break}o=t}return o},ay=e=>e&&e.replace("_","-"),sy={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class uy{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||sy,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:(Vv(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new uy(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new uy(this.logger,e)}}var ly=new uy;class cy{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(e=>{let[t,n]=e;for(let e=0;e<n;e++)t(...r)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(t=>{let[n,o]=t;for(let t=0;t<o;t++)n.apply(n,[e,...r])})}}}class dy extends cy{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],r&&(Array.isArray(r)?a.push(...r):Vv(r)&&o?a.push(...r.split(o)):a.push(r)));const s=Jv(this.data,a);return!s&&!t&&!r&&e.indexOf(".")>-1&&(e=a[0],t=a[1],r=a.slice(2).join(".")),!s&&i&&Vv(r)?iy(this.data&&this.data[e]&&this.data[e][t],r,o):s}addResource(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),Zv(this.data,a,n),o.silent||this.emit("added",e,t,r,n)}addResources(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const n in r)(Vv(r[n])||Array.isArray(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=r,r=t,t=a[1]),this.addNamespaces(t);let s=Jv(this.data,a)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?Qv(s,r,o):s={...s,...r},Zv(this.data,a,s),i.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var fy={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,r,n,o))}),t}};const hy={};class py extends cy{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,r)=>{e.forEach(e=>{t[e]&&(r[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=ly.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,r)=>{t=t||"",r=r||"";const n=ny.filter(e=>t.indexOf(e)<0&&r.indexOf(e)<0);if(0===n.length)return!0;const o=oy.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(r);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,r,n));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:Vv(o)?[o]:o};const i=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(n)}return{key:e,namespaces:Vv(o)?[o]:o}}translate(e,t,r){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],u=t.lng||this.language,l=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(l){const e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${s}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${i}`}return n?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:i}const c=this.resolve(e,t);let d=c&&c.res;const f=c&&c.usedKey||i,h=c&&c.exactUsedKey||i,p=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!Vv(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(m&&d&&v&&["[object Number]","[object Function]","[object RegExp]"].indexOf(p)<0)||Vv(g)&&Array.isArray(d))if(m&&Vv(g)&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,t,r));else{let n=!1,a=!1;const l=void 0!==t.count&&!Vv(t.count),f=py.hasDefaultValue(t),h=l?this.pluralResolver.getSuffix(u,t.count,t):"",p=t.ordinal&&l?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",g=l&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${h}`]||t[`defaultValue${p}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(n=!0,d=m),this.isValidLookup(d)||(a=!0,d=i);const v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,y=f&&m!==d&&this.options.updateMissing;if(a||n||y){if(this.logger.log(y?"updateKey":"missingKey",u,s,i,y?m:d),o){const e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t<r.length;t++)e.push(r[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const n=(e,r,n)=>{const o=f&&n!==d?n:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,r,o,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,r,o,y,t),this.emit("missingKey",e,s,r,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&l?e.forEach(e=>{const r=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&r.indexOf(`${this.options.pluralSeparator}zero`)<0&&r.push(`${this.options.pluralSeparator}zero`),r.forEach(r=>{n([e],i+r,t[`defaultValue${r}`]||m)})}):n(e,i,m))}d=this.extendTranslation(d,e,t,c,r),a&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${i}`),(a||n)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${i}`:i,n?d:void 0):this.options.parseMissingKeyHandler(d))}else{if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return n?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(o){const e=Array.isArray(d),r=e?[]:{},n=e?h:f;for(const e in d)if(Object.prototype.hasOwnProperty.call(d,e)){const i=`${n}${o}${e}`;r[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),r[e]===i&&(r[e]=d[e])}d=r}}return n?(c.res=d,c.usedParams=this.getUsedParamsDetails(t),c):d}extendTranslation(e,t,r,n,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const a=Vv(e)&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let u=r.replace&&!Vv(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,r.lng||this.language||n.usedLng,r),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return o&&o[0]===n[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${t[0]}`),null):i.translate(...n,t)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,s=Vv(a)?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=fy.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let t,r,n,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Vv(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),u=s.key;r=u;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));const c=void 0!==a.count&&!Vv(a.count),d=c&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&(Vv(a.context)||"number"==typeof a.context)&&""!==a.context,h=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);l.forEach(e=>{this.isValidLookup(t)||(i=e,!hy[`${h[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(hy[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${h.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(r=>{if(this.isValidLookup(t))return;o=r;const i=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,u,r,e,a);else{let e;c&&(e=this.pluralResolver.getSuffix(r,a.count,a));const t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(i.push(u+e),a.ordinal&&0===e.indexOf(n)&&i.push(u+e.replace(n,this.options.pluralSeparator)),d&&i.push(u+t)),f){const r=`${u}${this.options.contextSeparator}${a.context}`;i.push(r),c&&(i.push(r+e),a.ordinal&&0===e.indexOf(n)&&i.push(r+e.replace(n,this.options.pluralSeparator)),d&&i.push(r+t))}}let s;for(;s=i.pop();)this.isValidLookup(t)||(n=s,t=this.getResource(r,e,s,a))}))})}),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!Vv(e.replace);let n=r?e.replace:e;if(r&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!r){n={...n};for(const e of t)delete n[e]}return n}static hasDefaultValue(e){const t="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,12)&&void 0!==e[r])return!0;return!1}}const gy=e=>e.charAt(0).toUpperCase()+e.slice(1);class my{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ly.create("languageUtils")}getScriptPartFromCode(e){if(!(e=ay(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=ay(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(Vv(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map(e=>e.toLowerCase()):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=gy(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=gy(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=gy(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const r=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(r)||(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),Vv(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return Vv(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):Vv(e)&&o(this.formatLanguageCode(e)),r.forEach(e=>{n.indexOf(e)<0&&o(this.formatLanguageCode(e))}),n}}let vy=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],yy={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const by=["v1","v2","v3"],wy=["v4"],Ey={zero:0,one:1,two:2,few:3,many:4,other:5};class xy{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=ly.create("pluralResolver"),this.options.compatibilityJSON&&!wy.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return vy.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:yy[t.fc]}})}),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const r=ay("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:n});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(r,{type:n})}catch(r){if(!e.match(/-|_/))return;const n=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(n,t)}return this.pluralRulesCache[o]=i,i}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((e,t)=>Ey[e]-Ey[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):r.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.getRule(e,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let n=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));const o=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!by.includes(this.options.compatibilityJSON)}}const Sy=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=((e,t,r)=>{const n=Jv(e,r);return void 0!==n?n:Jv(t,r)})(e,t,r);return!i&&o&&Vv(r)&&(i=iy(e,r,n),void 0===i&&(i=iy(t,r,n))),i},Cy=e=>e.replace(/\$/g,"$$$$");class Ay{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ly.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:o,prefixEscaped:i,suffix:a,suffixEscaped:s,formatSeparator:u,unescapeSuffix:l,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:h,nestingSuffixEscaped:p,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:ry,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=o?ey(o):i||"{{",this.suffix=a?ey(a):s||"}}",this.formatSeparator=u||",",this.unescapePrefix=l?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=d?ey(d):f||ey("$t("),this.nestingSuffix=h?ey(h):p||ey(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,r,n){let o,i,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=e=>{if(e.indexOf(this.formatSeparator)<0){const o=Sy(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,r,{...n,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(Sy(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,r,{...n,...t,interpolationkey:i})};this.resetRegExp();const l=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,c=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,d=[{regex:this.regexpUnescape,safeValue:e=>Cy(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Cy(this.escape(e)):Cy(e)}];return d.forEach(t=>{for(a=0;o=t.regex.exec(e);){const r=o[1].trim();if(i=u(r),void 0===i)if("function"==typeof l){const t=l(e,o,n);i=Vv(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else{if(c){i=o[0];continue}this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),i=""}else Vv(i)||this.useRawValueToEscape||(i=Gv(i));const s=t.safeValue(i);if(e=e.replace(o[0],s),c?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t){let r,n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(e,t)=>{const r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;const n=e.split(new RegExp(`${r}[ ]*{`));let i=`{${n[1]}`;e=n[0],i=this.interpolate(i,o);const a=i.match(/'/g),s=i.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];o={...i},o=o.replace&&!Vv(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){const e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),s=e,u=!0}if(n=t(a.call(this,r[1].trim(),o),o),n&&r[0]===e&&!Vv(n))return n;Vv(n)||(n=Gv(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),u&&(n=s.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:r[1].trim()}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}const Dy=e=>{const t={};return(r,n,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=n+JSON.stringify(i);let s=t[a];return s||(s=e(ay(n),o),t[a]=s),s(r)}};class Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ly.create("formatter"),this.options=e,this.formats={number:Dy((e,t)=>{const r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:Dy((e,t)=>{const r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:Dy((e,t)=>{const r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:Dy((e,t)=>{const r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:Dy((e,t)=>{const r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Dy(t)}format(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}const i=o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);"currency"===t&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...n]=e.split(":"),o=n.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();r[i]||(r[i]=o),"false"===o&&(r[i]=!1),"true"===o&&(r[i]=!0),isNaN(o)||(r[i]=parseInt(o,10))}})}return{formatName:t,formatOptions:r}})(t);if(this.formats[o]){let t=e;try{const a=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},s=a.locale||a.lng||n.locale||n.lng||r;t=this.formats[o](e,s,{...i,...n,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class ky extends cy{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=ly.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}queueLoad(e,t,r,n){const o={},i={},a={},s={};return e.forEach(e=>{let n=!0;t.forEach(t=>{const a=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,n=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))}),n||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,r){const n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),!t&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const a={};this.queue.forEach(r=>{((e,t,r)=>{const{obj:n,k:o}=Xv(e,t,Object);n[o]=n[o]||[],n[o].push(r)})(r.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{a[e]||(a[e]={});const t=r.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:o,callback:i});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&n<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,r,n+1,2*o,i)},o):i(a,s)},s=this.backend[r].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const r=s(e,t);r&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();Vv(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Vv(t)&&(t=[t]);const o=this.queueLoad(e,t,r,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=e.split("|"),n=r[0],o=r[1];this.read(n,o,"read",void 0,void 0,(r,i)=>{r&&this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`,r),!r&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${n}`,i),this.loaded(e,r,i)})}saveMissing(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=r&&""!==r){if(this.backend&&this.backend.create){const s={...i,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let o;o=5===u.length?u(e,t,r,n,s):u(e,t,r,n),o&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else u(e,t,r,n,a,s)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}const Oy=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),Vv(e[1])&&(t.defaultValue=e[1]),Vv(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Ny=e=>(Vv(e.ns)&&(e.ns=[e.ns]),Vv(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Vv(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),By=()=>{};class Fy extends cy{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var r;if(super(),this.options=Ny(e),this.services={},this.logger=ly,this.modules={external:[]},r=this,Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(e=>{"function"==typeof r[e]&&(r[e]=r[e].bind(r))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(Vv(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=Oy();this.options={...n,...this.options,...Ny(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?ly.init(o(this.modules.logger),this.options):ly.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=Ty);const r=new my(this.options);this.store=new dy(this.options.resources,this.options);const i=this.services;i.logger=ly,i.resourceStore=this.store,i.languageUtils=r,i.pluralResolver=new xy(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new Ay(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new ky(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit(t,...n)}),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new py(this.services,this.options),this.translator.on("*",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit(t,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=By),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});const i=qv(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:By;const r=Vv(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],n=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(r)n(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>n(e))}this.options.preload&&this.options.preload.forEach(e=>n(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,r){const n=qv();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=By),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&fy.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;const n=qv();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve(function(){return r.t(...arguments)}),t&&t(e,function(){return r.t(...arguments)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);const r=Vv(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||o(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,e=>{i(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),n}getFixedT(e,t,r){var n=this;const o=function(e,t){let i;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];i=n.options.overloadTranslationOptionHandler([e,t].concat(s))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||r||o.keyPrefix);const l=n.options.keySeparator||".";let c;return c=i.keyPrefix&&Array.isArray(e)?e.map(e=>`${i.keyPrefix}${l}${e}`):i.keyPrefix?`${i.keyPrefix}${l}${e}`:e,n.t(c,i)};return Vv(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const i=(e,t)=>{const r=this.services.backendConnector.state[`${e}|${t}`];return-1===r||0===r||2===r};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(r,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(r,e)||n&&!i(o,e)))}loadNamespaces(e,t){const r=qv();return this.options.ns?(Vv(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=qv();Vv(e)&&(e=[e]);const n=this.options.preload||[],o=e.filter(e=>n.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=n.concat(o),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new my(Oy());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new Fy(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:By;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},o=new Fy(n);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));return["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new dy(this.store.data,n),o.services.resourceStore=o.store),o.translator=new py(o.services,n),o.translator.on("*",function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];o.emit(e,...r)}),o.init(n,t),o.translator.options=n,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const My=Fy.createInstance();My.createInstance=Fy.createInstance,My.createInstance,My.dir,My.init,My.loadResources,My.reloadResources,My.use,My.changeLanguage,My.getFixedT,My.t,My.exists,My.setDefaultNamespace,My.hasLoadedNamespace,My.loadNamespaces,My.loadLanguages;var Iy="translation";function Py(e,t){My.addResourceBundle(e,Iy,t,!0,!0)}function Ry(e){return My.on("languageChanged",e),function(){return My.off("languageChanged",e)}}My.init({lng:"zh-CN",resources:{}});var Ly=My.t.bind(My);function _y(e){if(e.removeAttr){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&_y(t)}}function zy(){return _p('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function jy(){return _p('<div class="w-e-bar-divider"></div>')}function Hy(e,t,r,n,o){if(void 0===n&&(n=""),void 0===o&&(o=!1),t){if(n){var i=cm?"cmd":"ctrl";n=n.replace("mod",i)}if(o)n&&(e.attr("data-tooltip",n),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=n?"".concat(r,"\n").concat(n):r;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}var $y=function(){function e(e,t,r){void 0===r&&(r=!1);var n=this;this.$elem=_p('<div class="w-e-bar-item"></div>'),this.$button=_p('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '".concat(o,"', expected 'button'"));var a=t.title,s=t.hotkey,u=void 0===s?"":s,l=t.iconSvg,c=void 0===l?"":l,d=this.$button;if(c){var f=_p(c);_y(f),d.append(f)}else d.text(a);Hy(d,c,a,u,r),r&&c&&d.append(_p('<span class="title">'.concat(a,"</span>"))),i&&d.css("width","".concat(i,"px")),d.attr("data-menu-key",e),this.$elem.append(d),wg(function(){return n.init()})}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(t){t.preventDefault(),rb(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},e.prototype.exec=function(){var e=rb(this),t=this.menu,r=t.getValue(e);this.setIcon(),this.setTooltip(),t.exec(e,r)},e.prototype.setActive=function(){var e=rb(this),t=this.$button,r="active";this.menu.isActive(e)?t.addClass(r):t.removeClass(r)},e.prototype.setDisabled=function(){var e=rb(this),t=this.$button,r=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var n="disabled";r?t.addClass(n):t.removeClass(n),this.disabled=r},e.prototype.setIcon=function(){var e=rb(this),t=this.$button;if(this.menu.getIcon){var r=this.menu.getIcon(e);if(r){t.find("svg").remove();var n=_p(r);_y(n),t.append(n)}}},e.prototype.setTooltip=function(){var e=rb(this),t=this.$button;if(this.menu.getTitle){var r=this.menu.getTitle(e),n=this.menu.iconSvg;r&&n&&Hy(t,n,r)}},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),Uy=function(e){function t(t,r,n){return void 0===n&&(n=!1),e.call(this,t,r,n)||this}return bh(t,e),t.prototype.onButtonClick=function(){},t}($y),Vy=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=op.get(e);null==t&&(t=new Set,op.set(e,t)),t.add(this),ip.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var r=this.genSelfElem();r&&t.append(r)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=ip.get(this);e&&e.emit(Wh,this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=ip.get(this);e&&e.emit(Yh)}},e}(),qy=function(e){function t(t){var r=e.call(this,t)||this;return r.type="dropPanel",r.$elem=_p('<div class="w-e-drop-panel"></div>'),r}return bh(t,e),t.prototype.genSelfElem=function(){return null},t}(Vy),Gy=function(e){function t(t,r,n){void 0===n&&(n=!1);var o=e.call(this,t,r,n)||this;if(o.dropPanel=null,o.menu=r,r.showDropPanel){var i=zy();o.$button.append(i)}return o}return bh(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=rb(this);if(null==this.dropPanel){var r=new qy(t),n=e.getPanelContentElem(t);r.renderContent(n),r.appendTo(this.$elem),r.show(),this.dropPanel=r}else{var o=this.dropPanel;if(o.isShow)o.hide();else{n=e.getPanelContentElem(t);o.renderContent(n),o.show()}}var i=this.dropPanel;if(i.isShow){var a=this.$elem,s=a.offset().left,u=a.parents(".w-e-bar");s-u.offset().left>=u.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}($y),Wy=function(e){function t(t,r){void 0===r&&(r=0);var n=e.call(this,t)||this;n.type="modal",n.$elem=_p('<div class="w-e-modal"></div>'),n.width=0,r&&(n.width=r);var o=n.$elem;return o.on("click",function(e){return e.stopPropagation()}),o.on("keyup",function(e){"Escape"===e.code&&(n.hide(),t.restoreSelection())}),n}return bh(t,e),t.prototype.genSelfElem=function(){var e=this,t=_p('<span class="btn-close">'.concat('<svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg>',"</span>")),r=ip.get(this);return t.on("click",function(){e.hide(),null==r||r.restoreSelection()}),t},t.prototype.setStyle=function(e){var t=this.width,r=this.$elem;r.attr("style",""),t&&r.css("width","".concat(t,"px")),r.css(e)},t}(Vy);function Yy(e,t,r){var n=_p('<label class="babel-container"></label>');n.append("<span>".concat(e,"</span>"));var o=_p('<input type="text" id="'.concat(t,'" placeholder="').concat(r||"",'">'));return n.append(o),[n[0],o[0]]}function Ky(e,t,r){var n=_p('<label class="babel-container"></label>');n.append("<span>".concat(e,"</span>"));var o=_p('<textarea type="text" id="'.concat(t,'" placeholder="').concat(r||"",'"></textarea>'));return n.append(o),[n[0],o[0]]}function Xy(e,t){var r=_p('<div class="button-container"></div>'),n=_p('<button type="button" id="'.concat(e,'">').concat(t,"</button>"));return r.append(n),[r[0],n[0]]}var Zy=function(e){function t(t,r,n){void 0===n&&(n=!1);var o=e.call(this,t,r,n)||this;return o.$body=_p("body"),o.modal=null,o.menu=r,o}return bh(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=rb(this),t=this.menu.getModalPositionNode(e);return ph.Element.isElement(t)?Lv(e,t,"modal"):Rv(e)},t.prototype.handleModal=function(){var e=rb(this),t=this.menu;if(null==this.modal){var r=new Wy(e,t.modalWidth);this.renderAndShowModal(r,!0),this.modal=r}else{(r=this.modal).isShow?r.hide():this.renderAndShowModal(r,!1)}},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var r=rb(this),n=this.menu;if(null!=n.getModalContentElem){var o=bm.getTextarea(r),i=bm.getToolbar(r),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,s=n.getModalContentElem(r);if(e.renderContent(s),a)e.setStyle({left:"0",right:"0"});else{var u=this.getPosition();e.setStyle(u)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||_v(r,e.$elem),setTimeout(function(){r.blur()})}},t}($y);var Jy=function(e){function t(t,r){var n=e.call(this,t)||this;return n.type="selectList",n.$elem=_p('<div class="w-e-select-list"></div>'),r&&n.$elem.css("width","".concat(r,"px")),n.$elem.on("click",function(e){e.stopPropagation()}),n}return bh(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var r=_p("<ul></ul>");e.forEach(function(e){var t=e.value,n=e.text,o=e.selected,i=e.styleForRenderMenuList,a=_p('<li data-value="'.concat(t,'"></li>'));if(i&&a.css(i),o){var s=_p('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(s),a.addClass("selected")}a.append(_p('<span data-value="'.concat(t,'">').concat(n,"</span>"))),a.attr("title",n),r.append(a)}),t.append(r)},t.prototype.genSelfElem=function(){return null},t}(Vy);var Qy=function(){function e(e,t,r){void 0===r&&(r=!1);var n=this;this.$elem=_p('<div class="w-e-bar-item"></div>'),this.$button=_p('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,s=t.iconSvg,u=void 0===s?"":s,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '".concat(o,"', expected 'select'"));var d=this.$button;a&&d.css("width","".concat(a,"px")),d.attr("data-menu-key",e),Hy(d,u,i,c,r),this.$elem.append(d),this.menu=t,wg(function(){return n.init()})}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(t){t.preventDefault(),rb(e).hidePanelOrModal(),e.trigger()})},e.prototype.trigger=function(){var e=this,t=rb(this);if(!t.isDisabled()&&!this.disabled){var r=this.menu;if(null==this.selectList){this.selectList=new Jy(t,r.selectPanelWidth);var n=this.selectList,o=r.getOptions(t);n.renderList(o),n.appendTo(this.$elem),n.show(),n.$elem.on("click","li",function(t){var r=t.target;if(null!=r){t.preventDefault();var n=_p(r).attr("data-value");e.onChange(n)}})}else{if((n=this.selectList).isShow)n.hide();else{o=r.getOptions(t);n.renderList(o),n.show()}}}},e.prototype.onChange=function(e){var t=rb(this),r=this.menu;r.exec&&r.exec(t,e)},e.prototype.setSelectedValue=function(){var e=rb(this),t=this.menu,r=t.getValue(e),n=function(e,t){for(var r=e.length,n="",o=0;o<r;o++){var i=e[o];if(i.value===t){n=i.text;break}}return n}(t.getOptions(e),r.toString()),o=this.$button,i=zy();o.empty(),o.text(n),o.append(i)},e.prototype.setDisabled=function(){var e=rb(this),t=this.menu.isDisabled(e),r=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var n="disabled";t?r.addClass(n):r.removeClass(n),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),eb=function(){function e(e){this.$elem=_p('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=_p('<div class="w-e-bar-item-menus-container"></div>'),this.$button=_p('<button type="button"></button>');var t=e.key,r=e.iconSvg,n=e.title,o=this.$elem,i=this.$button;if(r){var a=_p(r);_y(a),i.append(a)}else i.text(n);i.attr("data-menu-key",t);var s=zy();i.append(s),o.append(i);var u=this.$container;o.append(u);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,r=this.$button,n=new MutationObserver(function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each(function(e){_p(e).hasClass("disabled")&&a++}),n.disconnect(),a===i?r.addClass("disabled"):r.removeClass("disabled"),e.observe(n)}});return n},e}(),tb=new WeakMap;function rb(e){var t=np.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function nb(e,t,r){void 0===r&&(r=!1);var n=tb.get(t);if(n)return n;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;n=i?new Gy(e,t,r):a?new Zy(e,t,r):new Uy(e,t,r)}if("select"===o&&(n=new Qy(e,t,r)),null==n)throw new Error("Invalid tag in menu ".concat(JSON.stringify(t)));return tb.set(t,n),n}function ob(e,t){var r=e.selection;return null!=r&&(!ph.Range.isCollapsed(r)&&(!bm.getSelectedElems(e).some(function(t){if(e.isVoid(t))return!0;var r=t.type;return!!["pre","code","table"].includes(r)})&&!!ph.Text.isText(t)))}var ib,ab,sb=function(){function e(){var e=this;this.$elem=_p('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.lngListen=function(){},this.changeHoverbarState=Uv(function(){var t=e.isShow,r=e.getSelectedNodeAndMenuKeys()||{},n=r.node,o=void 0===n?null:n,i=r.menuKeys,a=void 0===i?[]:i,s=e.getEditorInstance();if(null!=o&&e.changeItemsState(),o&&ph.Element.isElement(o)&&t){var u=e.isSamePath(o,e.prevSelectedNode);if(!ph.Editor.isBlock(s,o)&&u)return}e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o},200),wg(function(){var t=e.getEditorInstance(),r=e.$elem;r.on("mousedown",function(e){return e.preventDefault()},{passive:!1}),bm.getTextarea(t).$textAreaContainer.append(r),t.on(Uh,e.changeHoverbarState);var n=e.hideAndClean.bind(e);t.on(Vh,n),t.on(qh,n),t.on(Gh,n)}),this.lngListen=Ry(function(){e.menus={},e.hideAndClean(),e.getEditorInstance().deselect()})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,r="undefined"!=typeof window?window.innerHeight:null;r&&r>=360&&(r-e[0].getBoundingClientRect().bottom<360&&(t=!0));t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;wg(function(){e.hoverbarItems.forEach(function(e){e.changeMenuState()})})},e.prototype.registerItems=function(e){var t=this,r=this.$elem;e.forEach(function(e){if("|"!==e)t.registerSingleItem(e);else{var n=jy();r.append(n)}})},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),r=this.menus,n=r[e];if(null==n){var o=Kh[e];if(null==o)throw new Error("Not found menu item factory by key '".concat(e,"'"));if("function"!=typeof o)throw new Error("Menu item factory (key='".concat(e,"') is not a function"));n=o(),r[e]=n}var i=t.getMenuConfig(e);i&&void 0!==i.iconSvg&&(n.iconSvg=i.iconSvg);var a=nb(e,n);this.hoverbarItems.push(a),np.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),ph.Element.isElement(e)){var n=Lv(t,e,"bar");return r.css(n),void _v(t,r)}if(ph.Text.isText(e)){n=Rv(t);return r.css(n),void _v(t,r)}throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),r=null,n=[],o=function(o){var i=t[o],a=i.match,s=i.menuKeys,u=void 0===s?[]:s,l=a||function(e,t){return bm.checkNodeType(t,o)},c=Ch(ph.Editor.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1),d=c[0];if(null!=d)return r=d[0],n=u,"break"};for(var i in t){if("break"===o(i))break}return null==r||0===n.length?null:{node:r,menuKeys:n}},e.prototype.getEditorInstance=function(){var e=tp.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,r=t.text;return r&&null==r.match&&(r.match=ob),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var r=bm.findPath(null,e),n=bm.findPath(null,t);return ph.Path.equals(r,n)},e.prototype.destroy=function(){var e;this.changeHoverbarState.cancel(),this.$elem.remove(),null===(e=this.lngListen)||void 0===e||e.call(this),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function ub(){if(ab)return ib;ab=1;var e="Expected a function",t=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt,a="object"==typeof b&&b&&b.Object===Object&&b,s="object"==typeof self&&self&&self.Object===Object&&self,u=a||s||Function("return this")(),l=Object.prototype.toString,c=Math.max,d=Math.min,f=function(){return u.Date.now()};function h(t,r,n){var o,i,a,s,u,l,h=0,m=!1,v=!1,y=!0;if("function"!=typeof t)throw new TypeError(e);function b(e){var r=o,n=i;return o=i=void 0,h=e,s=t.apply(n,r)}function w(e){var t=e-l;return void 0===l||t>=r||t<0||v&&e-h>=a}function E(){var e=f();if(w(e))return x(e);u=setTimeout(E,function(e){var t=r-(e-l);return v?d(t,a-(e-h)):t}(e))}function x(e){return u=void 0,y&&o?b(e):(o=i=void 0,s)}function S(){var e=f(),t=w(e);if(o=arguments,i=this,l=e,t){if(void 0===u)return function(e){return h=e,u=setTimeout(E,r),m?b(e):s}(l);if(v)return u=setTimeout(E,r),b(l)}return void 0===u&&(u=setTimeout(E,r)),s}return r=g(r)||0,p(n)&&(m=!!n.leading,a=(v="maxWait"in n)?c(g(n.maxWait)||0,r):a,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==u&&clearTimeout(u),h=0,o=l=i=u=void 0},S.flush=function(){return void 0===u?s:x(f())},S}function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(e))return NaN;if(p(e)){var a="function"==typeof e.valueOf?e.valueOf():e;e=p(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(t,"");var s=n.test(e);return s||o.test(e)?i(e.slice(2),s?2:8):r.test(e)?NaN:+e}return ib=function(t,r,n){var o=!0,i=!0;if("function"!=typeof t)throw new TypeError(e);return p(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),h(t,r,{leading:o,maxWait:r,trailing:i})}}var lb=w(ub());function cb(e,t){return Dg(t)&&bm.hasDOMNode(e,t,{editable:!0})}function db(e,t){return Dg(t)&&bm.hasDOMNode(e,t)}function fb(e,t){return cb(e,t)||function(e,t){if(e.getConfig().readOnly)return!1;var r=db(e,t)&&bm.toSlateNode(e,t);return!!r&&ph.Element.isElement(r)&&ph.Editor.isVoid(e,r)}(e,t)}const hb=e=>"object"==typeof e&&null!=e&&1===e.nodeType,pb=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,gb=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return pb(r.overflowY,t)||pb(r.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},mb=(e,t,r,n,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=r||a>=t&&s>=r?i-e-n:a>t&&s<r||i<e&&s>r?a-t+o:0,vb=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},yb=(e,t)=>{var r,n,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:u,boundary:l,skipOverflowHiddenElements:c}=t,d="function"==typeof l?l:e=>e!==l;if(!hb(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,h=[];let p=e;for(;hb(p)&&d(p);){if(p=vb(p),p===f){h.push(p);break}null!=p&&p===document.body&&gb(p)&&!gb(document.documentElement)||null!=p&&gb(p,c)&&h.push(p)}const g=null!=(n=null==(r=window.visualViewport)?void 0:r.width)?n:innerWidth,m=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:v,scrollY:y}=window,{height:b,width:w,top:E,right:x,bottom:S,left:C}=e.getBoundingClientRect(),{top:A,right:D,bottom:T,left:k}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let O="start"===s||"nearest"===s?E-A:"end"===s?S+T:E+b/2-A+T,N="center"===u?C+w/2-k+D:"end"===u?x+D:C-k;const B=[];for(let e=0;e<h.length;e++){const t=h[e],{height:r,width:n,top:o,right:i,bottom:l,left:c}=t.getBoundingClientRect();if("if-needed"===a&&E>=0&&C>=0&&S<=m&&x<=g&&(t===f&&!gb(t)||E>=o&&S<=l&&C>=c&&x<=i))return B;const d=getComputedStyle(t),p=parseInt(d.borderLeftWidth,10),A=parseInt(d.borderTopWidth,10),D=parseInt(d.borderRightWidth,10),T=parseInt(d.borderBottomWidth,10);let k=0,F=0;const M="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-D:0,I="offsetHeight"in t?t.offsetHeight-t.clientHeight-A-T:0,P="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,R="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(f===t)k="start"===s?O:"end"===s?O-m:"nearest"===s?mb(y,y+m,m,A,T,y+O,y+O+b,b):O-m/2,F="start"===u?N:"center"===u?N-g/2:"end"===u?N-g:mb(v,v+g,g,p,D,v+N,v+N+w,w),k=Math.max(0,k+y),F=Math.max(0,F+v);else{k="start"===s?O-o-A:"end"===s?O-l+T+I:"nearest"===s?mb(o,l,r,A,T+I,O,O+b,b):O-(o+r/2)+I/2,F="start"===u?N-c-p:"center"===u?N-(c+n/2)+M/2:"end"===u?N-i+D+M:mb(c,i,n,p,D+M,N,N+w,w);const{scrollLeft:e,scrollTop:a}=t;k=0===R?0:Math.max(0,Math.min(a+k/R,t.scrollHeight-r/R+I)),F=0===P?0:Math.max(0,Math.min(e+F/P,t.scrollWidth-n/P+M)),O+=a-k,N+=e-F}B.push({el:t,top:k,left:F})}return B};function bb(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const r=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(yb(e,t));const n="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of yb(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-r.top+r.bottom,t=a-r.left+r.right;o.scroll({top:e,left:t,behavior:n})}}function wb(e){null!=e.selection&&(e.selection=null,e.onChange())}function Eb(e,t,r){void 0===r&&(r=!1);var n=t.selection,o=t.getConfig(),i=bm.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||r)&&t.isFocused()){var a="None"!==i.type;if(n||a){var s=pp.get(t),u=!1;if(s.contains(i.anchorNode)&&s.contains(i.focusNode)&&(u=!0),a&&u&&n){var l=bm.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&ph.Range.equals(l,n)){var c=!0;if(ph.Range.isCollapsed(n)){var d=i.anchorNode,f=i.anchorOffset;if(d===s){var h=s.childNodes,p=void 0;(p=h[f])&&p.matches("table")&&(c=!1),(p=h[f-1])&&p.matches("table")&&(c=!1)}}if(c)return}}if(!n||bm.hasRange(t,n)){e.isUpdatingSelection=!0;var g=n&&bm.toDOMRange(t,n);if(g){ph.Range.isBackward(n)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var m=g.startContainer.parentElement;if(!m.closest("[data-slate-spacer]")&&g.getBoundingClientRect){var v=g.getBoundingClientRect.bind(g)();0===v.top&&0===v.right&&0===v.bottom&&0===v.left&&0===v.height&&0===v.width||(m.getBoundingClientRect=g.getBoundingClientRect.bind(g));var y=document.body;bb(m,{scrollMode:"if-needed",boundary:o.scroll&&s.parentElement||y,block:"end",behavior:"smooth"}),delete m.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){g&&dm&&s.focus(),e.isUpdatingSelection=!1})}else t.selection=bm.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var xb=new WeakMap,Sb=new WeakMap;var Cb,Ab={};var Db=function(){if(Cb)return Ab;Cb=1,Object.defineProperty(Ab,"__esModule",{value:!0});for(var e="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),t={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:e?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},n={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)n["f"+o]=111+o;function i(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(e){return a(e,t)}),o=function(e){return n.some(function(t){return s(t,e)})};return null==r?o:o(r)}function a(e,o){var i=o&&o.byKey,a={},s=(e=e.replace("++","+add")).split("+"),c=s.length;for(var d in t)a[t[d]]=!1;var f=!0,h=!1,p=void 0;try{for(var g,m=s[Symbol.iterator]();!(f=(g=m.next()).done);f=!0){var v=g.value,y=v.endsWith("?")&&v.length>1;y&&(v=v.slice(0,-1));var b=l(v),w=t[b];if(v.length>1&&!w&&!r[v]&&!n[b])throw new TypeError('Unknown modifier: "'+v+'"');1!==c&&w||(i?a.key=b:a.which=u(v)),w&&(a[w]=!y||null)}}catch(e){h=!0,p=e}finally{try{!f&&m.return&&m.return()}finally{if(h)throw p}}return a}function s(e,t){for(var r in e){var n=e[r],o=void 0;if(null!=n&&((null!=(o="key"===r&&null!=t.key?t.key.toLowerCase():"which"===r?91===n&&93===t.which?91:t.which:t[r])||!1!==n)&&o!==n))return!1}return!0}function u(e){return e=l(e),n[e]||e.toUpperCase().charCodeAt(0)}function l(e){return e=e.toLowerCase(),e=r[e]||e}return Ab.default=i,Ab.isHotkey=i,Ab.isCodeHotkey=function(e,t){return i(e,t)},Ab.isKeyHotkey=function(e,t){return i(e,{byKey:!0},t)},Ab.parseHotkey=a,Ab.compareHotkey=s,Ab.toKeyCode=u,Ab.toKeyName=l,Ab}(),Tb={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},kb={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},Ob={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Nb=function(e){var t=Tb[e],r=kb[e],n=Ob[e],o=t&&Db.isKeyHotkey(t),i=r&&Db.isKeyHotkey(r),a=n&&Db.isKeyHotkey(n);return function(e){return!(!o||!o(e))||(!!(cm&&i&&i(e))||!(cm||!a||!a(e)))}},Bb={isBold:Nb("bold"),isCompose:Nb("compose"),isMoveBackward:Nb("moveBackward"),isMoveForward:Nb("moveForward"),isDeleteBackward:Nb("deleteBackward"),isDeleteForward:Nb("deleteForward"),isDeleteLineBackward:Nb("deleteLineBackward"),isDeleteLineForward:Nb("deleteLineForward"),isDeleteWordBackward:Nb("deleteWordBackward"),isDeleteWordForward:Nb("deleteWordForward"),isExtendBackward:Nb("extendBackward"),isExtendForward:Nb("extendForward"),isExtendLineBackward:Nb("extendLineBackward"),isExtendLineForward:Nb("extendLineForward"),isItalic:Nb("italic"),isMoveLineBackward:Nb("moveLineBackward"),isMoveLineForward:Nb("moveLineForward"),isMoveWordBackward:Nb("moveWordBackward"),isMoveWordForward:Nb("moveWordForward"),isRedo:Nb("redo"),isSplitBlock:Nb("splitBlock"),isTransposeCharacter:Nb("transposeCharacter"),isUndo:Nb("undo"),isTab:Nb("tab"),isSelectAll:Nb("selectAll")};function Fb(e){e.preventDefault()}var Mb={beforeinput:function(e,t,r){var n,o=e,i=r.getConfig().readOnly;if(mm&&!i&&cb(r,o.target)){null===(n=t.flushDOMSelectionChange)||void 0===n||n.call(t);var a=r.selection,s=o.inputType,u=o.dataTransfer||o.data||void 0;if("insertCompositionText"!==s&&"deleteCompositionText"!==s){if(o.preventDefault(),!s.startsWith("delete")||s.startsWith("deleteBy")){var l=Ch(o.getTargetRanges(),1)[0];if(l){var c=bm.toSlateRange(r,l,{exactMatch:!1,suppressThrow:!1});a&&ph.Range.equals(a,c)||ph.Transforms.select(r,c)}}if(a&&ph.Range.isExpanded(a)){var d=bm.getSelectedElems(r),f="table"===d[0].type,h="table-cell"!==d[d.length-1].type;if(f&&h)return;if(s.startsWith("delete")){var p=s.endsWith("Backward")?"backward":"forward";return void ph.Editor.deleteFragment(r,{direction:p})}}switch(s){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":ph.Editor.deleteFragment(r);break;case"deleteContent":case"deleteContentForward":ph.Editor.deleteForward(r);break;case"deleteContentBackward":ph.Editor.deleteBackward(r);break;case"deleteEntireSoftLine":ph.Editor.deleteBackward(r,{unit:"line"}),ph.Editor.deleteForward(r,{unit:"line"});break;case"deleteHardLineBackward":ph.Editor.deleteBackward(r,{unit:"block"});break;case"deleteSoftLineBackward":ph.Editor.deleteBackward(r,{unit:"line"});break;case"deleteHardLineForward":ph.Editor.deleteForward(r,{unit:"block"});break;case"deleteSoftLineForward":ph.Editor.deleteForward(r,{unit:"line"});break;case"deleteWordBackward":ph.Editor.deleteBackward(r,{unit:"word"});break;case"deleteWordForward":ph.Editor.deleteForward(r,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":ph.Editor.insertBreak(r);break;case"insertFromDrop":case"insertFromComposition":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromComposition"===s&&(t.isComposing=!1,Cp.set(r,!0)),"insertFromPaste"===s&&!Sp.get(r))break;"[object DataTransfer]"===xg(u)?r.insertData(u):"string"==typeof u&&ph.Editor.insertText(r,u)}}}},blur:function(e,t,r){var n=e,o=t.isUpdatingSelection,i=t.latestElement;if(!r.getConfig().readOnly&&!o&&cb(r,n.target)){var a=bm.findDocumentOrShadowRoot(r);if(i!==a.activeElement){var s=n.relatedTarget;if(!(s===bm.toDOMNode(r,r)||kg(s)&&s.hasAttribute("data-slate-spacer"))){if(null!=s&&Dg(s)&&bm.hasDOMNode(r,s)){var u=bm.toSlateNode(r,s);if(ph.Element.isElement(u)&&!r.isVoid(u))return}if(fm){var l=a.getSelection();null==l||l.removeAllRanges()}wp.delete(r)}}}},focus:function(e,t,r){var n=bm.toDOMNode(r,r),o=bm.findDocumentOrShadowRoot(r);t.latestElement=o.activeElement,dm&&e.target!==n?n.focus():wp.set(r,!0)},click:function(e,t,r){if(!r.getConfig().readOnly&&db(r,e.target)&&Dg(e.target)){var n=bm.toSlateNode(r,e.target),o=bm.findPath(r,n);if(ph.Editor.hasPath(r,o))if(ph.Node.get(r,o)===n){var i=ph.Editor.start(r,o),a=ph.Editor.end(r,o),s=ph.Editor.void(r,{at:i}),u=ph.Editor.void(r,{at:a});if(s&&u&&ph.Path.equals(s[1],u[1])){var l=ph.Editor.range(r,i);ph.Transforms.select(r,l)}}}},compositionstart:function(e,t,r){if(cb(r,e.target)){Ap.delete(r);var n=r.selection;if(n&&ph.Range.isExpanded(n)&&(ph.Editor.deleteFragment(r),Promise.resolve().then(function(){Eb(t,r,!0)})),r.selection){var o=bm.toDOMRange(r,r.selection).startContainer,i=o.textContent||"";xb.set(r,i),Sb.set(r,o)}t.isComposing=!0,function(e,t){var r;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(r=e.$placeholder)||void 0===r||r.hide(),e.showPlaceholder=!1)}(t,r)}},compositionend:function(e,t,r){var n=e;if(cb(r,n.target)){t.isComposing=!1;var o=!0===Cp.get(r);o?(Cp.delete(r),Ap.delete(r)):Ap.delete(r);var i=r.selection;if(null!=i){(gm||dm)&&bm.cleanExposedTexNodeInSelectionBlock(r);for(var a=ph.Range.isBackward(i)?i.focus:i.anchor,s=Ch(ph.Editor.node(r,[a.path[0]]),1)[0],u=0;u<a.path.length;u+=1){var l=Ch(ph.Editor.node(r,a.path.slice(0,u+1)),1)[0];if(ph.Element.isElement(l)&&((fm||dm)&&"link"===l.type||"code"===l.type)){bm.setNewKey(s);break}}var c=n.data;if(c&&!o){if(r.getConfig().maxLength){var d=bm.getLeftLengthOfMaxLength(r);if(d<c.length){var f=bm.toDOMRange(r,i);f.startContainer.nodeType===Node.TEXT_NODE&&(f.startContainer.textContent=xb.get(r)||""),d>0&&ph.Editor.insertText(r,c.slice(0,d)),t.changeViewState()}else ph.Editor.insertText(r,c)}else{var h=bm.findDocumentOrShadowRoot(r).getSelection();h&&function(e,t){if(ph.Range.isCollapsed(t)){var r=t.anchor,n=t.focus;if([2,3].includes(r.path.length)&&[2,3].includes(n.path.length)&&(0===r.offset||0===n.offset)){var o=ph.Editor.node(e,r.path),i=0===r.offset?r.path:n.path,a=[i[0],i[1]-1];if(0===i[1])return!1;var s=ph.Editor.node(e,a);if(ph.Text.isText(s[0])&&ph.Text.isText(o[0]))return!0}}}(r,i)&&(r.selection=bm.toSlateRange(r,h,{exactMatch:!1,suppressThrow:!1})),ph.Editor.insertText(r,c)}fm||setTimeout(function(){var e=r.selection;if(null!=e){var t=Sb.get(r);if(null!=t)bm.toDOMRange(r,e).startContainer!==t&&(t.textContent=xb.get(r)||"")}})}}}},compositionupdate:function(e,t,r){cb(r,e.target)&&(t.isComposing=!0)},keydown:function(e,t,r){var n=e,o=r.selection;if(!r.getConfig().readOnly&&!t.isComposing&&cb(r,n.target)){if(function(e,t){var r=ep.get(e),n=r&&r.getMenus(),o=rp.get(e),i=o&&o.getMenus(),a=wh(wh({},n),i);for(var s in a){var u=a[s],l=u.hotkey;if(l&&Db.isHotkey(l,t)&&!u.isDisabled(e)){var c=u.getValue(e);u.exec(e,c)}}}(r,n),Bb.isTab(n))return Fb(n),void r.handleTab();if(Bb.isRedo(n))return Fb(n),void("function"==typeof r.redo&&r.redo());if(Bb.isUndo(n))return Fb(n),void("function"==typeof r.undo&&r.undo());if(Bb.isMoveLineBackward(n))return Fb(n),void ph.Transforms.move(r,{unit:"line",reverse:!0});if(Bb.isMoveLineForward(n))return Fb(n),void ph.Transforms.move(r,{unit:"line"});if(Bb.isExtendLineBackward(n))return Fb(n),void ph.Transforms.move(r,{unit:"line",edge:"focus",reverse:!0});if(Bb.isExtendLineForward(n))return Fb(n),void ph.Transforms.move(r,{unit:"line",edge:"focus"});if(Bb.isMoveBackward(n))return Fb(n),void(o&&ph.Range.isCollapsed(o)?ph.Transforms.move(r,{reverse:!0}):ph.Transforms.collapse(r,{edge:"start"}));if(Bb.isMoveForward(n))return Fb(n),void(o&&ph.Range.isCollapsed(o)?ph.Transforms.move(r):ph.Transforms.collapse(r,{edge:"end"}));if(Bb.isMoveWordBackward(n))return Fb(n),o&&ph.Range.isExpanded(o)&&ph.Transforms.collapse(r,{edge:"focus"}),void ph.Transforms.move(r,{unit:"word",reverse:!0});if(Bb.isMoveWordForward(n))return Fb(n),o&&ph.Range.isExpanded(o)&&ph.Transforms.collapse(r,{edge:"focus"}),void ph.Transforms.move(r,{unit:"word"});if(Bb.isSelectAll(n))return Fb(n),void r.selectAll();if(mm){if((gm||fm)&&o&&(Bb.isDeleteBackward(n)||Bb.isDeleteForward(n))&&ph.Range.isCollapsed(o)){var i=ph.Node.parent(r,o.anchor.path);if(ph.Element.isElement(i)&&ph.Editor.isVoid(r,i)&&ph.Editor.isInline(r,i))return n.preventDefault(),void ph.Transforms.delete(r,{unit:"block"})}}else{if(Bb.isBold(n)||Bb.isItalic(n)||Bb.isTransposeCharacter(n))return void Fb(n);if(Bb.isSplitBlock(n))return Fb(n),void ph.Editor.insertBreak(r);if(Bb.isDeleteBackward(n))return Fb(n),void(o&&ph.Range.isExpanded(o)?ph.Editor.deleteFragment(r,{direction:"backward"}):ph.Editor.deleteBackward(r));if(Bb.isDeleteForward(n))return Fb(n),void(o&&ph.Range.isExpanded(o)?ph.Editor.deleteFragment(r,{direction:"forward"}):ph.Editor.deleteForward(r));if(Bb.isDeleteLineBackward(n))return Fb(n),void(o&&ph.Range.isExpanded(o)?ph.Editor.deleteFragment(r,{direction:"backward"}):ph.Editor.deleteBackward(r,{unit:"line"}));if(Bb.isDeleteLineForward(n))return Fb(n),void(o&&ph.Range.isExpanded(o)?ph.Editor.deleteFragment(r,{direction:"forward"}):ph.Editor.deleteForward(r,{unit:"line"}));if(Bb.isDeleteWordBackward(n))return Fb(n),void(o&&ph.Range.isExpanded(o)?ph.Editor.deleteFragment(r,{direction:"backward"}):ph.Editor.deleteBackward(r,{unit:"word"}));if(Bb.isDeleteWordForward(n))return Fb(n),void(o&&ph.Range.isExpanded(o)?ph.Editor.deleteFragment(r,{direction:"forward"}):ph.Editor.deleteForward(r,{unit:"word"}))}}},keypress:function(e,t,r){if(!mm&&!r.getConfig().readOnly&&cb(r,e.target)){e.preventDefault();var n=e.key;ph.Editor.insertText(r,n)}},copy:function(e,t,r){var n=e;if(cb(r,n.target)){r.getConfig().readOnly||n.preventDefault();var o=n.clipboardData;if(null!=o){r.setFragmentData(o);var i=r.getConfig().customCopy;i&&i(r,n)}}},cut:function(e,t,r){var n=e,o=r.selection;if(!r.getConfig().readOnly&&(n.preventDefault(),cb(r,n.target))){var i=n.clipboardData;if(null!=i&&(r.setFragmentData(i),o))if(ph.Range.isExpanded(o))ph.Editor.deleteFragment(r);else{var a=ph.Node.parent(r,o.anchor.path);ph.Element.isElement(a)&&ph.Editor.isVoid(r,a)&&ph.Transforms.delete(r)}}},paste:function(e,t,r){Sp.set(r,!0);var n=e;if(!r.getConfig().readOnly&&cb(r,n.target)){var o=r.getConfig().customPaste;if(o)if(!1===o(r,n))return Sp.set(r,!1),void n.preventDefault();if(fm||!mm||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(n)){n.preventDefault();var i=n.clipboardData;null!=i&&r.insertData(i)}}},dragover:function(e,t,r){if(db(r,e.target)){var n=bm.toSlateNode(r,e.target);ph.Element.isElement(n)&&ph.Editor.isVoid(r,n)&&e.preventDefault()}},dragstart:function(e,t,r){var n=e;if(db(r,n.target)&&!r.getConfig().readOnly){var o=bm.toSlateNode(r,n.target),i=bm.findPath(r,o);if(ph.Element.isElement(o)&&ph.Editor.isVoid(r,o)||ph.Editor.void(r,{at:i,voids:!0})){var a=ph.Editor.range(r,i);ph.Transforms.select(r,a)}var s=n.dataTransfer;if(null!=s)bm.getSelectedNodeByType(r,"table")||(t.isDraggingInternally=!0,r.setFragmentData(s))}},dragend:function(e,t,r){var n=e;r.getConfig().readOnly||t.isDraggingInternally&&db(r,n.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,r){var n=e,o=n.dataTransfer;if(!r.getConfig().readOnly&&db(r,n.target)&&null!=o&&!(mm&&fm&&o.files.length>0)){n.preventDefault();var i=r.selection,a=bm.findEventRange(r,n);ph.Transforms.select(r,a),t.isDraggingInternally&&(i&&ph.Transforms.delete(r,{at:i}),t.isDraggingInternally=!1),r.insertData(o),r.isFocused()||r.focus()}}};function Ib(e){if(Pb(e)){for(;e&&Pb(e);){e=Rb(e).parent}return null!=e?e:null}return e.parentNode}function Pb(e){return 11===e.nodeType}function Rb(e,t){var r,n,o;const i=e;return null!==(r=i.parent)&&void 0!==r||(i.parent=null!=t?t:null),null!==(n=i.firstChildNode)&&void 0!==n||(i.firstChildNode=e.firstChild),null!==(o=i.lastChildNode)&&void 0!==o||(i.lastChildNode=e.lastChild),i}const Lb={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,r){return document.createElementNS(e,t,r)},createTextNode:function(e){return document.createTextNode(e)},createDocumentFragment:function(){return Rb(document.createDocumentFragment())},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,r){if(Pb(e)){let t=e;for(;t&&Pb(t);){t=Rb(t).parent}e=null!=t?t:e}Pb(t)&&(t=Rb(t,e)),r&&Pb(r)&&(r=Rb(r).firstChildNode),e.insertBefore(t,r)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){Pb(t)&&(t=Rb(t,e)),e.appendChild(t)},parentNode:Ib,nextSibling:function(e){var t;if(Pb(e)){const r=Rb(e),n=Ib(r);if(n&&r.lastChildNode){const e=Array.from(n.childNodes),o=e.indexOf(r.lastChildNode);return null!==(t=e[o+1])&&void 0!==t?t:null}return null}return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType},isDocumentFragment:Pb};function _b(e,t,r,n,o){return{sel:e,data:t,children:r,text:n,elm:o,key:void 0===t?void 0:t.key}}const zb=Array.isArray;function jb(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}const Hb=_b("",{},[],void 0,void 0);function $b(e,t){var r,n;const o=e.key===t.key,i=(null===(r=e.data)||void 0===r?void 0:r.is)===(null===(n=t.data)||void 0===n?void 0:n.is),a=e.sel===t.sel,s=!(!e.sel&&e.sel===t.sel)||typeof e.text==typeof t.text;return a&&o&&i&&s}function Ub(e,t,r){var n;const o={};for(let i=t;i<=r;++i){const t=null===(n=e[i])||void 0===n?void 0:n.key;void 0!==t&&(o[t]=i)}return o}const Vb=["create","update","remove","destroy","pre","post"];function qb(e,t,r){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},o=Lb;for(const t of Vb)for(const r of e){const e=r[t];void 0!==e&&n[t].push(e)}function i(e){const t=e.id?"#"+e.id:"",r=e.getAttribute("class"),n=r?"."+r.split(" ").join("."):"";return _b(o.tagName(e).toLowerCase()+t+n,{},[],void 0,e)}function a(e){return _b(void 0,{},[],void 0,e)}function s(e,t){return function(){if(0===--t){const t=o.parentNode(e);null!==t&&o.removeChild(t,e)}}}function u(e,t){var r,i,a;let s;const l=e.data,c=null==l?void 0:l.hook;null===(r=null==c?void 0:c.init)||void 0===r||r.call(c,e);const d=e.children,f=e.sel;if("!"===f)null!==(i=e.text)&&void 0!==i||(e.text=""),e.elm=o.createComment(e.text);else if(""===f)e.elm=o.createTextNode(e.text);else if(void 0!==f){const r=f.indexOf("#"),i=f.indexOf(".",r),h=r>0?r:f.length,p=i>0?i:f.length,g=-1!==r||-1!==i?f.slice(0,Math.min(h,p)):f,m=null==l?void 0:l.ns,v=void 0===m?o.createElement(g,l):o.createElementNS(m,g,l);for(e.elm=v,h<p&&v.setAttribute("id",f.slice(h+1,p)),i>0&&v.setAttribute("class",f.slice(p+1).replace(/\./g," ")),s=0;s<n.create.length;++s)n.create[s](Hb,e);if(!jb(e.text)||zb(d)&&0!==d.length||o.appendChild(v,o.createTextNode(e.text)),zb(d))for(s=0;s<d.length;++s){const e=d[s];null!=e&&o.appendChild(v,u(e,t))}void 0!==c&&(null===(a=c.create)||void 0===a||a.call(c,Hb,e),void 0!==c.insert&&t.push(e))}else e.elm=o.createTextNode(e.text);return e.elm}function l(e,t,r,n,i,a){for(;n<=i;++n){const i=r[n];null!=i&&o.insertBefore(e,u(i,a),t)}}function c(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const r=e.children[t];null!=r&&"string"!=typeof r&&c(r)}}}function d(e,t,r,i){for(var a,u;r<=i;++r){let i;const l=t[r];if(null!=l)if(void 0!==l.sel){c(l),i=n.remove.length+1;const e=s(l.elm,i);for(let t=0;t<n.remove.length;++t)n.remove[t](l,e);const t=null===(u=null===(a=null==l?void 0:l.data)||void 0===a?void 0:a.hook)||void 0===u?void 0:u.remove;void 0!==t?t(l,e):e()}else l.children?(c(l),d(e,l.children,0,l.children.length-1)):o.removeChild(e,l.elm)}}function f(e,t,r){var i,a,s,c,h,p,g,m;const v=null===(i=t.data)||void 0===i?void 0:i.hook;null===(a=null==v?void 0:v.prepatch)||void 0===a||a.call(v,e,t);const y=t.elm=e.elm;if(e===t)return;if(void 0!==t.data||void 0!==t.text&&t.text!==e.text){null!==(s=t.data)&&void 0!==s||(t.data={}),null!==(c=e.data)&&void 0!==c||(e.data={});for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(g=null===(p=null===(h=t.data)||void 0===h?void 0:h.hook)||void 0===p?void 0:p.update)||void 0===g||g.call(p,e,t)}const b=e.children,w=t.children;void 0===t.text?void 0!==b&&void 0!==w?b!==w&&function(e,t,r,n){let i,a,s,c,h=0,p=0,g=t.length-1,m=t[0],v=t[g],y=r.length-1,b=r[0],w=r[y];for(;h<=g&&p<=y;)null==m?m=t[++h]:null==v?v=t[--g]:null==b?b=r[++p]:null==w?w=r[--y]:$b(m,b)?(f(m,b,n),m=t[++h],b=r[++p]):$b(v,w)?(f(v,w,n),v=t[--g],w=r[--y]):$b(m,w)?(f(m,w,n),o.insertBefore(e,m.elm,o.nextSibling(v.elm)),m=t[++h],w=r[--y]):$b(v,b)?(f(v,b,n),o.insertBefore(e,v.elm,m.elm),v=t[--g],b=r[++p]):(void 0===i&&(i=Ub(t,h,g)),a=i[b.key],void 0===a?(o.insertBefore(e,u(b,n),m.elm),b=r[++p]):void 0===i[w.key]?(o.insertBefore(e,u(w,n),o.nextSibling(v.elm)),w=r[--y]):(s=t[a],s.sel!==b.sel?o.insertBefore(e,u(b,n),m.elm):(f(s,b,n),t[a]=void 0,o.insertBefore(e,s.elm,m.elm)),b=r[++p]));p<=y&&(c=null==r[y+1]?null:r[y+1].elm,l(e,c,r,p,y,n)),h<=g&&d(e,t,h,g)}(y,b,w,r):void 0!==w?(void 0!==e.text&&o.setTextContent(y,""),l(y,null,w,0,w.length-1,r)):void 0!==b?d(y,b,0,b.length-1):void 0!==e.text&&o.setTextContent(y,""):e.text!==t.text&&(void 0!==b&&d(y,b,0,b.length-1),o.setTextContent(y,t.text)),null===(m=null==v?void 0:v.postpatch)||void 0===m||m.call(v,e,t)}return function(e,t){let r,s,l;const c=[];for(r=0;r<n.pre.length;++r)n.pre[r]();for(!function(e,t){return e.isElement(t)}(o,e)?function(e,t){return e.isDocumentFragment(t)}(o,e)&&(e=a(e)):e=i(e),$b(e,t)?f(e,t,c):(s=e.elm,l=o.parentNode(s),u(t,c),null!==l&&(o.insertBefore(l,t.elm,o.nextSibling(s)),d(l,[e],0,0))),r=0;r<c.length;++r)c[r].data.hook.insert(c[r]);for(r=0;r<n.post.length;++r)n.post[r]();return t}}function Gb(e,t,r){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==t)for(let e=0;e<t.length;++e){const r=t[e];if("string"==typeof r)continue;const n=r.data;void 0!==n&&Gb(n,r.children,r.sel)}}function Wb(e,t,r){let n,o,i,a={};if(void 0!==r?(null!==t&&(a=t),zb(r)?n=r:jb(r)?o=r.toString():r&&r.sel&&(n=[r])):null!=t&&(zb(t)?n=t:jb(t)?o=t.toString():t&&t.sel?n=[t]:a=t),void 0!==n)for(i=0;i<n.length;++i)jb(n[i])&&(n[i]=_b(void 0,void 0,void 0,n[i],void 0));return!e.startsWith("svg")||3!==e.length&&"."!==e[3]&&"#"!==e[3]||Gb(a,n,e),_b(e,a,n,o,void 0)}function Yb(e,t){let r;const n=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(r in o=o||{},i=i||{},i){const e=i[r];o[r]!==e&&(!0===e?n.setAttribute(r,""):!1===e?n.removeAttribute(r):120!==r.charCodeAt(0)?n.setAttribute(r,e):58===r.charCodeAt(3)?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,e):58===r.charCodeAt(5)?109===r.charCodeAt(1)?n.setAttributeNS("http://www.w3.org/2000/xmlns/",r,e):n.setAttributeNS("http://www.w3.org/1999/xlink",r,e):n.setAttribute(r,e))}for(r in o)r in i||n.removeAttribute(r)}}const Kb={create:Yb,update:Yb};function Xb(e,t){let r,n;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(n in i=i||{},a=a||{},i)i[n]&&!Object.prototype.hasOwnProperty.call(a,n)&&o.classList.remove(n);for(n in a)r=a[n],r!==i[n]&&o.classList[r?"add":"remove"](n)}}const Zb={create:Xb,update:Xb},Jb=/[A-Z]/g;function Qb(e,t){const r=t.elm;let n,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=r.dataset;for(n in o)n in i||(a?n in a&&delete a[n]:r.removeAttribute("data-"+n.replace(Jb,"-$&").toLowerCase()));for(n in i)o[n]!==i[n]&&(a?a[n]=i[n]:r.setAttribute("data-"+n.replace(Jb,"-$&").toLowerCase(),i[n]))}const ew={create:Qb,update:Qb};function tw(e,t,r){if("function"==typeof e)e.call(t,r,t);else if("object"==typeof e)for(let n=0;n<e.length;n++)tw(e[n],t,r)}function rw(e,t){const r=e.type,n=t.data.on;n&&n[r]&&tw(n[r],t,e)}function nw(e,t){const r=e.data.on,n=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let s;if(r!==i){if(r&&n)if(i)for(s in r)i[s]||o.removeEventListener(s,n,!1);else for(s in r)o.removeEventListener(s,n,!1);if(i){const n=t.listener=e.listener||function e(t){rw(t,e.vnode)};if(n.vnode=t,r)for(s in i)r[s]||a.addEventListener(s,n,!1);else for(s in i)a.addEventListener(s,n,!1)}}}const ow={create:nw,update:nw,destroy:nw};function iw(e,t){let r,n,o;const i=t.elm;let a=e.data.props,s=t.data.props;if((a||s)&&a!==s)for(r in a=a||{},s=s||{},s)n=s[r],o=a[r],o===n||"value"===r&&i[r]===n||(i[r]=n)}const aw={create:iw,update:iw},sw="function"==typeof(null===window||void 0===window?void 0:window.requestAnimationFrame)?window.requestAnimationFrame.bind(window):setTimeout;let uw=!1;function lw(e,t,r){var n;n=()=>{e[t]=r},sw(()=>{sw(n)})}function cw(e,t){let r,n;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const s="delayed"in i;for(n in i)n in a||("-"===n[0]&&"-"===n[1]?o.style.removeProperty(n):o.style[n]="");for(n in a)if(r=a[n],"delayed"===n&&a.delayed)for(const e in a.delayed)r=a.delayed[e],s&&r===i.delayed[e]||lw(o.style,e,r);else"remove"!==n&&r!==i[n]&&("-"===n[0]&&"-"===n[1]?o.style.setProperty(n,r):o.style[n]=r)}const dw={pre:function(){uw=!1},create:cw,update:cw,destroy:function(e){let t,r;const n=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(r in t)n.style[r]=t[r]},remove:function(e,t){const r=e.data.style;if(!r||!r.remove)return void t();let n;uw||(e.elm.offsetLeft,uw=!0);const o=e.elm;let i=0;const a=r.remove;let s=0;const u=[];for(n in a)u.push(n),o.style[n]=a[n];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==u.indexOf(l[i])&&s++;o.addEventListener("transitionend",e=>{e.target===o&&--s,0===s&&t()})}};function fw(e,t){for(const r of e)null!=r&&!1!==r&&""!==r&&(Array.isArray(r)?fw(r,t):"string"==typeof r||"number"==typeof r||"boolean"==typeof r?t.push(_b(void 0,void 0,void 0,String(r),void 0)):t.push(r));return t}function hw(e,t,...r){const n=fw(r,[]);return"function"==typeof e?e(t,n):1===n.length&&!n[0].sel&&n[0].text?Wb(e,t,n[0].text):Wb(e,t,n)}var pw=[];var gw,mw,vw={};function yw(e,t,r){return hw(r.isInline(e)?"span":"div",null,t)}function bw(e,t){var r,n=bm.findKey(t,e),o=t.isInline(e),i=ph.Editor.isVoid(t,e),a=Qg(e.type,n.id),s={id:a,key:n.id,"data-slate-node":"element","data-slate-inline":o},u=e.type,l=e.children,c=void 0===l?[]:l,d=function(e){return vw[e]||yw}(u);r=i?null:c.map(function(r,n){return Sw(r,n,e,t)});var f=d(e,r,t);if(i){s["data-slate-void"]=!0;var h=o?"span":"div",p=Ch(ph.Node.texts(e),1),g=Ch(p[0],1)[0],m=hw(h,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},Sw(g,0,e,t));f=hw(h,{style:{position:"relative"}},f,m),fp.set(g,0),hp.set(g,e)}return null==f.data&&(f.data={}),Object.assign(f.data,s),i||o||(f=function(e,t){var r=t;return pw.forEach(function(n){r=n(e,t)}),r}(e,f)),wg(function(){var t=Bg(a);null!=t&&(mp.set(n,t),vp.set(e,t),gp.set(t,e))}),f}function ww(e,t){return void 0===t&&(t=!1),hw("span",{"data-slate-string":!0},t?e+"\n":e)}function Ew(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),hw("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?hw("br",null):null)}function xw(e,t,r){if(null==e.text)throw new Error("Current node is not slate Text ".concat(JSON.stringify(e)));var n=bm.findKey(r,e),o=r.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i,a=bm.findPath(r,e),s=o([e,a]),u=ph.Text.decorations(e,s),l=u.map(function(n){var o,i,a,s=n.leaf,l=n.position,c=function(e,t,r,n,o){void 0===t&&(t=!1);var i=e.text,a=bm.findPath(o,r),s=ph.Path.parent(a);if(ph.Editor.isEditor(n))throw new Error("Text node ".concat(JSON.stringify(r)," parent is Editor"));return o.isVoid(n)?Ew(ph.Node.string(n).length):""!==i||n.children[n.children.length-1]!==r||o.isInline(n)||""!==ph.Editor.string(o,s)?""===i?Ew():t&&"\n"===i.slice(-1)?ww(i,!0):ww(i):Ew(0,!0)}(s,null!==(o=null==l?void 0:l.isLast)&&void 0!==o?o:1===u.length,e,t,r);return i=s,a=c,pw.forEach(function(e){a=e(i,a)}),hw("span",{"data-slate-leaf":!0},c=a)}),c=(i=n.id,"w-e-text-".concat(i)),d=hw("span",{"data-slate-node":"text",id:c,key:n.id},l);return wg(function(){var t=Bg(c);null!=t&&(mp.set(n,t),vp.set(e,t),gp.set(t,e))}),d}function Sw(e,t,r,n){return fp.set(e,t),hp.set(e,r),ph.Element.isElement(e)?bw(e,n):xw(e,r,n)}var Cw=function(){if(mw)return gw;mw=1;var e,t="[object Symbol]",r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\ud800-\\udfff",i="\\u0300-\\u036f\\ufe20-\\ufe23",a="\\u20d0-\\u20f0",s="\\u2700-\\u27bf",u="a-z\\xdf-\\xf6\\xf8-\\xff",l="A-Z\\xc0-\\xd6\\xd8-\\xde",c="\\ufe0e\\ufe0f",d="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",f="['’]",h="["+o+"]",p="["+d+"]",g="["+i+a+"]",m="\\d+",v="["+s+"]",y="["+u+"]",w="[^"+o+d+m+s+u+l+"]",E="\\ud83c[\\udffb-\\udfff]",x="[^"+o+"]",S="(?:\\ud83c[\\udde6-\\uddff]){2}",C="[\\ud800-\\udbff][\\udc00-\\udfff]",A="["+l+"]",D="\\u200d",T="(?:"+y+"|"+w+")",k="(?:"+A+"|"+w+")",O="(?:['’](?:d|ll|m|re|s|t|ve))?",N="(?:['’](?:D|LL|M|RE|S|T|VE))?",B="(?:"+g+"|"+E+")"+"?",F="["+c+"]?",M=F+B+("(?:"+D+"(?:"+[x,S,C].join("|")+")"+F+B+")*"),I="(?:"+[v,S,C].join("|")+")"+M,P="(?:"+[x+g+"?",g,S,C,h].join("|")+")",R=RegExp(f,"g"),L=RegExp(g,"g"),_=RegExp(E+"(?="+E+")|"+P+M,"g"),z=RegExp([A+"?"+y+"+"+O+"(?="+[p,A,"$"].join("|")+")",k+"+"+N+"(?="+[p,A+T,"$"].join("|")+")",A+"?"+T+"+"+O,A+"+"+N,m,I].join("|"),"g"),j=RegExp("["+D+o+i+a+c+"]"),H=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$="object"==typeof b&&b&&b.Object===Object&&b,U="object"==typeof self&&self&&self.Object===Object&&self,V=$||U||Function("return this")(),q=(e={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(t){return null==e?void 0:e[t]});function G(e){return j.test(e)}function W(e){return G(e)?function(e){return e.match(_)||[]}(e):function(e){return e.split("")}(e)}var Y=Object.prototype.toString,K=V.Symbol,X=K?K.prototype:void 0,Z=X?X.toString:void 0;function J(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&Y.call(e)==t}(e))return Z?Z.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}function Q(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}(e,t,r)}function ee(e){return null==e?"":J(e)}var te,re,ne=(te=function(e,t,r){return t=t.toLowerCase(),e+(r?oe(ee(t).toLowerCase()):t)},function(e){return function(e,t,r){for(var n=-1,o=e?e.length:0;++n<o;)r=t(r,e[n],n,e);return r}(function(e,t){return e=ee(e),void 0===t?function(e){return H.test(e)}(e)?function(e){return e.match(z)||[]}(e):function(e){return e.match(r)||[]}(e):e.match(t)||[]}(function(e){return(e=ee(e))&&e.replace(n,q).replace(L,"")}(e).replace(R,"")),te,"")}),oe=(re="toUpperCase",function(e){var t=G(e=ee(e))?W(e):void 0,r=t?t[0]:e.charAt(0),n=t?Q(t,1).join(""):e.slice(1);return r[re]()+n});return gw=ne}(),Aw=w(Cw);var Dw=["props","attrs","style","dataset","on","hook"];function Tw(e){var t=e.data,r=void 0===t?{}:t,n=e.children,o=void 0===n?[]:n;Object.keys(r).forEach(function(t){var n,o,i=r[t];if("key"!==t){if(!Dw.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=Aw(a),function(e,t){null==e.data&&(e.data={});var r=e.data;null==r.dataset&&(r.dataset={});Object.assign(r.dataset,t)}(e,((n={})[a]=i,n)),void delete r[t]}!function(e,t){null==e.data&&(e.data={});var r=e.data;null==r.props&&(r.props={});Object.assign(r.props,t)}(e,(o={},o[t]=i,o)),delete r[t]}}else e.key=i}),o.length>0&&o.forEach(function(e){"string"!=typeof e&&Tw(e)})}function kw(e,t){var r,n,o=e.$scroll,i=(r=e.id,"w-e-textarea-".concat(r)),a=t.getConfig(),s=a.readOnly,u=a.autoFocus,l=function(e,t){return void 0===t&&(t=!1),Wb("div#".concat(e),{props:{contentEditable:!t}})}(i,s),c=t.children||[];l.children=c.map(function(e,r){if(cp.has(e)){var n=cp.get(e);if(n){var o=Ch(n,2),i=o[0],a=o[1];if(a)return i!==r&&(fp.set(e,r),cp.set(e,[r,a])),a}}var s=Sw(e,r,t,t);Tw(s);var u=t.getConfig().skipCacheTypes,l=void 0===u?["list-item"]:u;return ph.Element.isElement(e)&&l.includes(e.type)||cp.set(e,[r,s]),s});var d=sp.get(e);if(null==d&&(d=!0),d){var f=function(e){return _p('<div\n id="'.concat(e,'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>'))}(i);o.append(f),e.$textArea=f,n=f[0],(p=qb([Zb,aw,dw,ew,ow,Kb]))(n,l),sp.set(e,!1),up.set(e,p)}else{var h=lp.get(e),p=up.get(e);if(null==h||null==p)return;n=h.elm,p(h,l)}if(null!=n||null!=(n=Bg(i))){var g;if((d?u:t.isFocused())&&n.focus({preventScroll:!0}),d){var m=(g=n)&&g.ownerDocument&&g.ownerDocument.defaultView||null;m&&bp.set(t,m)}pp.set(t,n),vp.set(t,n),gp.set(n,t),lp.set(e,l)}}var Ow=1,Nw=function(){function e(e){var t=this;this.selectionChangeRoot=null,this.destroyed=!1,this.id=Ow++,this.$textArea=null,this.$progressBar=_p('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=_p('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=lb(function(e){var r=kg(null==e?void 0:e.target)?e.target:null,n=null==r?void 0:r.tagName;if("INPUT"!==n&&"TEXTAREA"!==n){var o=t.getActiveEditor();null!=o&&function(e,t){var r=e.isComposing,n=e.isUpdatingSelection,o=e.isDraggingInternally,i=t.getConfig();if(!n&&!o){var a=bm.findDocumentOrShadowRoot(t),s=a.activeElement,u=bm.toDOMNode(t,t),l=a.getSelection();if(s!==u)return wp.delete(t),void wb(t);if(e.latestElement=s,wp.set(t,!0),!l)return wb(t);var c=l.anchorNode,d=l.focusNode,f=fb(t,c),h=db(t,d);if(!r)if(f&&h){var p=bm.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0});p&&ph.Transforms.select(t,p)}else i.readOnly&&wb(t)}}(t,o)}},100);var r=_p(e);if(0===r.length)throw new Error("Cannot find textarea DOM by selector '".concat(e,"'"));this.$box=r;var n=_p('<div class="w-e-text-container"></div>');n.append(this.$progressBar),n.append(this.$maxLengthInfo),r.append(n);var o=_p('<div class="w-e-scroll"></div>');n.append(o),this.$scroll=o,this.$textAreaContainer=n,wg(function(){var e=t.getActiveEditor();if(null!=e){t.bindSelectionChange(e),n.on("click",function(){return e.hidePanelOrModal()}),e.on(Uh,t.changeViewState.bind(t));var o=e.getConfig(),i=o.onChange,a=o.scroll;i&&e.on(Uh,function(){return i(e)}),a||(r.css("position","relative"),n.addClass("no-scroll")),t.onFocusAndOnBlur(),e.on(Uh,t.changeMaxLengthInfo.bind(t)),t.bindEvent()}})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=Jh.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.getActiveEditor=function(){if(this.destroyed)return null;var e=Jh.get(this);return null==e||e.isDestroyed?null:e},e.prototype.bindSelectionChange=function(e,t){var r=this;if(void 0===t&&(t=5),null==this.selectionChangeRoot&&!e.isDestroyed){try{var n=bm.findDocumentOrShadowRoot(e);n.addEventListener("selectionchange",this.onDOMSelectionChange),this.selectionChangeRoot=n}catch(n){if(t>0)return void setTimeout(function(){return r.bindSelectionChange(e,t-1)},0);window.document.addEventListener("selectionchange",this.onDOMSelectionChange),this.selectionChangeRoot=window.document}e.on($h,function(){var e;null===(e=r.selectionChangeRoot)||void 0===e||e.removeEventListener("selectionchange",r.onDOMSelectionChange),r.selectionChangeRoot=null})}},e.prototype.flushDOMSelectionChange=function(){this.onDOMSelectionChange.flush()},e.prototype.bindEvent=function(){var e=this,t=this.$textArea,r=this.$scroll,n=this.editorInstance;null!=t&&(Ih(Mb,function(r,o){t.on(o,function(t){r(t,e,n)})}),n.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",lb(function(){n.emit(Vh)},100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.getActiveEditor();if(null!=t){var r=t.getConfig(),n=r.onBlur,o=r.onFocus;this.latestEditorSelection=t.selection,t.on(Uh,function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout(function(){e.destroyed||t.isDestroyed||o&&o(t)}):null!=e.latestEditorSelection&&null==t.selection&&setTimeout(function(){e.destroyed||t.isDestroyed||n&&n(t)}),e.latestEditorSelection=t.selection})}},e.prototype.changeMaxLengthInfo=function(){var e=this.getActiveEditor();if(null!=e){var t=e.getConfig().maxLength;if(t){var r=t-bm.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML="".concat(r,"/").concat(t)}}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width","".concat(e,"%")),e>=100&&setTimeout(function(){t.hide(),t.css("width","0"),t.show()},1e3)},e.prototype.changeViewState=function(){var e=this,t=this.getActiveEditor();null!=t&&(kw(this,t),function(e,t){var r,n=t.getConfig().placeholder;if(n){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=_p('<div class="w-e-text-placeholder">'.concat(n,"</div>"));e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(r=e.$placeholder)||void 0===r||r.hide(),e.showPlaceholder=!1)}}(this,t),wg(function(){e.destroyed||t.isDestroyed||Eb(e,t)}))},e.prototype.destroy=function(){var e;this.destroyed=!0,this.onDOMSelectionChange.cancel(),null===(e=this.selectionChangeRoot)||void 0===e||e.removeEventListener("selectionchange",this.onDOMSelectionChange),this.selectionChangeRoot=null,this.$textAreaContainer.remove()},e}();function Bw(e,t,r,n){if(fp.set(e,t),hp.set(e,r),ph.Element.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach(function(t,r){return Bw(t,r,e,n)}),ph.Editor.isVoid(n,e)){var i=Ch(ph.Node.texts(e),1),a=Ch(i[0],1)[0];fp.set(a,0),hp.set(a,e)}}}function Fw(e){var t=e.selector,r=void 0===t?"":t,n=e.config,o=void 0===n?{}:n,i=e.content,a=e.html,s=e.plugins,u=void 0===s?[]:s,l=function(e){return[Bv,hv,Dp,dv,Hv,Nv,Iv,vh.withHistory].reduce(function(e,t){return t(e)},e)}(ph.createEditor());if(r&&function(e,t){return Zg(e,"data-w-e-textarea",t)}(l,r))throw new Error("Repeated create editor by selector '".concat(r,"'"));var c=function(e){void 0===e&&(e={});var t=Fh(jh),r={},n=e.MENU_CONF,o=void 0===n?{}:n;return Ih(t,function(e,t){r[t]=wh(wh({},e),o[t]||{})}),delete e.MENU_CONF,wh({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:r,hoverbarKeys:{},sanitizeHtml:zh,customAlert:function(e,t){window.alert("".concat(t,":\n").concat(e))}},e)}(o);ap.set(l,c);var d=c.hoverbarKeys,f=void 0===d?{}:d;if(u.forEach(function(e){l=e(l)}),function(e,t){var r=t.html,n=t.content;null!=r?e.children=Jg(e,r):n&&n.length&&(e.children=n),0===e.children.length&&(e.children=[{type:"paragraph",children:[{text:""}]}])}(l,{html:a,content:i}),r){var h=new Nw(r);Zh.set(l,h),Jh.set(h,l),h.changeViewState();var p=void 0;Object.keys(f).length>0&&(p=new sb,tp.set(p,l),rp.set(l,p)),l.on(Uh,function(){l.hidePanelOrModal()}),l.on(Vh,function(){l.hidePanelOrModal()})}else l.children.forEach(function(e,t){return Bw(e,t,l,l)});var g=c.onCreated,m=c.onDestroyed;return g&&l.on(Hh,function(){return g(l)}),m&&l.on($h,function(){return m(l)}),wg(function(){return l.emit(Hh)}),l}var Mw=function(){function e(e,t){var r=this;this.$toolbar=_p('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.lngListen=function(){},this.changeToolbarState=Uv(function(){r.toolbarItems.forEach(function(e){e.changeMenuState()})},200),this.config=t;var n=_p(e);if(0===n.length)throw new Error("Cannot find toolbar DOM by selector '".concat(e,"'"));this.$box=n;var o=this.$toolbar;o.on("mousedown",function(e){return e.preventDefault()},{passive:!1}),n.append(o),wg(function(){r.initToolbar(),r.lngListen=Ry(function(){return r.initToolbar()}),r.getEditorInstance().on(Uh,r.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.initToolbar=function(){this.menus={};var e=this.$toolbar;null==e||e.empty(),this.registerItems(),this.changeToolbarState()},e.prototype.registerItems=function(){var e=this,t="",r=this.$toolbar,n=this.config,o=n.toolbarKeys,i=void 0===o?[]:o,a=n.insertKeys,s=void 0===a?{index:0,keys:[]}:a,u=n.excludeKeys,l=void 0===u?[]:u,c=Fh(i),d=[];d=Array.isArray(s)?s:[s];var f=0;d.forEach(function(e){var t=e.index+f;if(e.replaceFn&&c[t]){var r=e.replaceFn(c[t]);if(!r)throw new Error("This function needs to return the menu configuration:string | IMenuGroup");c[t]=r}e.keys.length>0&&("string"==typeof e.keys&&(e.keys=[e.keys]),e.keys.forEach(function(e,r){c.splice(t+r,0,e)}),f+=e.keys.length)});var h=c.filter(function(e){var t="string"==typeof e?e:e.key;return!l.includes(t)}),p=h.length;h.forEach(function(n,o){if("|"===n){if(0===o)return;if(o+1===p)return;if("|"===t)return;var i=jy();return r.append(i),void(t=n)}if("string"==typeof n)return e.registerSingleItem(n,e),void(t=n);e.registerGroup(n),t="group"})},e.prototype.registerGroup=function(e){var t=this,r=this.$toolbar,n=function(e){return new eb(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,s=void 0===a?[]:a;i.forEach(function(e){s.includes(e)||t.registerSingleItem(e,n)}),r.append(n.$elem)},e.prototype.registerSingleItem=function(e,t){var r=this.getEditorInstance(),n=t instanceof eb,o=this.menus,i=o[e];if(null==i){var a=Kh[e];if(null==a)throw new Error("Not found menu item factory by key '".concat(e,"'"));if("function"!=typeof a)throw new Error("Menu item factory (key='".concat(e,"') is not a function"));i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '".concat(e,"'\n重复注册了菜单栏 menu '").concat(e,"'"));var s=r.getMenuConfig(e);s&&void 0!==s.iconSvg&&(i.iconSvg=s.iconSvg);var u=nb(e,i,n);(this.toolbarItems.push(u),np.set(u,r),n)?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=Qh.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){var e;this.$toolbar.remove(),null===(e=this.lngListen)||void 0===e||e.call(this),this.menus={},this.toolbarItems=[]},e}();function Iw(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var r=t.selector,n=t.config,o=void 0===n?{}:n;if(function(e,t){return Zg(e,"data-w-e-toolbar",t)}(e,r))throw new Error("Repeated create toolbar by selector '".concat(r,"'"));var i=wh({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new Mw(r,i);return Qh.set(a,e),ep.set(e,a),a}var Pw,Rw,Lw,_w,zw,jw={exports:{}},Hw={};function $w(){if(Lw)return Hw;Lw=1,Object.defineProperty(Hw,"__esModule",{value:!0}),Hw.justErrorsLogger=Hw.debugLogger=void 0;const e=function(){if(Rw)return Pw;function e(e){return e<10?`0${e}`:e.toString()}return Rw=1,Pw=function(){const t=new Date;return`${e(t.getHours())}:${e(t.getMinutes())}:${e(t.getSeconds())}`}}(),t={debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return console.error(`[Uppy] [${e()}]`,...r)}};Hw.justErrorsLogger=t;const r={debug:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return console.debug(`[Uppy] [${e()}]`,...r)},warn:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return console.warn(`[Uppy] [${e()}]`,...r)},error:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return console.error(`[Uppy] [${e()}]`,...r)}};return Hw.debugLogger=r,Hw}function Uw(){if(zw)return _w;zw=1;return _w={nanoid:(e=21)=>{let t="",r=0|e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let n="",o=0|r;for(;o--;)n+=e[Math.random()*e.length|0];return n}},_w}var Vw,qw,Gw,Ww,Yw,Kw,Xw,Zw,Jw,Qw,eE,tE,rE,nE,oE,iE,aE,sE,uE,lE,cE,dE,fE,hE,pE,gE,mE,vE,yE,bE,wE,EE={};function xE(){return qw?Vw:(qw=1,Vw=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,n));var o=r[n];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o})}function SE(){if(Ww)return Gw;function e(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}return Ww=1,e.prototype.match=function(e){var t,r,n=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(r=(e||"").split(this.separator),t=0;n&&t<i;t++)"*"!==o[t]&&(n=t<r.length&&o[t]===r[t]);n=n&&r}else n=!1;else if("function"==typeof e.splice)for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if("object"==typeof e)for(var a in n={},e)this.match(a)&&(n[a]=e[a]);return n},Gw=function(t,r,n){var o=new e(t,n||/[\/\.]/);return void 0!==r?o.match(r):o},Gw}function CE(){if(Xw)return EE;Xw=1,Object.defineProperty(EE,"__esModule",{value:!0}),EE.defaultOptions=EE.RestrictionError=EE.Restricter=void 0;const e=xE(),t=function(){if(Kw)return Yw;Kw=1;var e=SE(),t=/[\/\+\.]/;return Yw=function(r,n){function o(n){var o=e(n,r,t);return o&&o.length>=2}return n?o(n.split(";")[0]):o}}();EE.defaultOptions={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class r extends Error{constructor(){super(...arguments),this.isRestriction=!0}}EE.RestrictionError=r,"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});return EE.Restricter=class{constructor(e,t){this.i18n=t,this.getOpts=()=>{const t=e();if(null!=t.restrictions.allowedFileTypes&&!Array.isArray(t.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return t}}validate(n,o){const{maxFileSize:i,minFileSize:a,maxTotalFileSize:s,maxNumberOfFiles:u,allowedFileTypes:l}=this.getOpts().restrictions;if(u){const e=o.filter(e=>!e.isGhost);if(e.length+1>u)throw new r(`${this.i18n("youCanOnlyUploadX",{smart_count:u})}`)}if(l){if(!l.some(e=>e.includes("/")?!!n.type&&t(n.type.replace(/;.*?$/,""),e):!("."!==e[0]||!n.extension)&&n.extension.toLowerCase()===e.slice(1).toLowerCase())){const e=l.join(", ");throw new r(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}}if(s&&null!=n.size){const t=o.reduce((e,t)=>e+t.size,n.size);if(t>s)throw new r(this.i18n("exceedsSize",{size:e(s),file:n.name}))}if(i&&null!=n.size&&n.size>i)throw new r(this.i18n("exceedsSize",{size:e(i),file:n.name}));if(a&&null!=n.size&&n.size<a)throw new r(this.i18n("inferiorSize",{size:e(a)}))}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(Object.keys(e).length<t)throw new r(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new r(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:n}=this.getOpts().restrictions,o=Object.prototype.hasOwnProperty,i=[];for(const t of n)o.call(e.meta,t)&&""!==e.meta[t]||i.push(t);return{missingFields:i,error:t}}},EE}function AE(){if(Jw)return Zw;return Jw=1,Zw=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}function DE(){if(eE)return Qw;function e(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}eE=1;var t=0;function r(e){return"__private_"+t+++"_"+e}const n=AE();function o(e,t,r){const n=[];return e.forEach(e=>"string"!=typeof e?n.push(e):t[Symbol.split](e).forEach((e,t,o)=>{""!==e&&n.push(e),t<o.length-1&&n.push(r)})),n}
|
|
2
2
|
/**
|
|
3
3
|
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
|
4
4
|
* and replaces it with values from options `{smart_count: 5}`
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
* @author Lea Verou <https://lea.verou.me>
|
|
18
18
|
* @namespace
|
|
19
19
|
* @public
|
|
20
|
-
*/e.exports&&(e.exports=t),void 0!==b&&(b.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,r){var n={};n["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};o["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",n="loading",o="loaded",i="pre[data-src]:not(["+r+'="'+o+'"]):not(['+r+'="'+n+'"])';t.hooks.add("before-highlightall",function(e){e.selector+=", "+i}),t.hooks.add("before-sanity-check",function(a){var s=a.element;if(s.matches(i)){a.code="",s.setAttribute(r,n);var u=s.appendChild(document.createElement("CODE"));u.textContent="Loading…";var l=s.getAttribute("data-src"),c=a.language;if("none"===c){var d=(/\.(\w+)$/.exec(l)||[,"none"])[1];c=e[d]||d}t.util.setLanguage(u,c),t.util.setLanguage(s,c);var f=t.plugins.autoloader;f&&f.loadLanguages(c),function(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4==n.readyState&&(n.status<400&&n.responseText?t(n.responseText):n.status>=400?r("✖ Error "+n.status+" while fetching file: "+n.statusText):r("✖ Error: File does not exist or is empty"))},n.send(null)}(l,function(e){s.setAttribute(r,o);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var r=Number(t[1]),n=t[2],o=t[3];return n?o?[r,Number(o)]:[r,void 0]:[r,r]}}(s.getAttribute("data-range"));if(n){var i=e.split(/\r\n?|\n/g),a=n[0],l=null==n[1]?i.length:n[1];a<0&&(a+=i.length),a=Math.max(0,Math.min(a-1,i.length)),l<0&&(l+=i.length),l=Math.max(0,Math.min(l,i.length)),e=i.slice(a,l).join("\n"),s.hasAttribute("data-start")||s.setAttribute("data-start",String(a+1))}u.textContent=e,t.highlightElement(u)},function(e){s.setAttribute(r,"failed"),u.textContent=e})}}),t.plugins.fileHighlight={highlight:function(e){for(var r,n=(e||document).querySelectorAll(i),o=0;r=n[o++];)t.highlightElement(r)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}(nT)),nT.exports),iT=w(oT);!function(e){var t=e.util.clone(e.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return n}).replace(/<SPREAD>/g,function(){return o}),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var r=[],n=0;n<t.length;n++){var o=t[n],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?r.length>0&&r[r.length-1].tagName===a(o.content[0].content[1])&&r.pop():"/>"===o.content[o.content.length-1].content||r.push({tagName:a(o.content[0].content[1]),openedBraces:0}):r.length>0&&"punctuation"===o.type&&"{"===o.content?r[r.length-1].openedBraces++:r.length>0&&r[r.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?r[r.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&r.length>0&&0===r[r.length-1].openedBraces){var u=a(o);n<t.length-1&&("string"==typeof t[n+1]||"plain-text"===t[n+1].type)&&(u+=a(t[n+1]),t.splice(n+1,1)),n>0&&("string"==typeof t[n-1]||"plain-text"===t[n-1].type)&&(u=a(t[n-1])+u,t.splice(n-1,1),n--),t[n]=new e.Token("plain-text",u,null,u)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)})}(Prism);var aT;aT||(aT=1,function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism)),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"];var sT;sT||(sT=1,function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:n,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")})}(Prism)),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean;var uT;uT||(uT=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python);var lT;lT||(lT=1,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[n,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:n.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:n.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":n,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:n.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:n.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism));var cT;cT||(cT=1,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism));var dT;dT||(dT=1,function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,r){return"(?:"+t[+r]+")"})}function r(e,r,n){return RegExp(t(e,r),"")}function n(e,t){for(var r=0;r<t;r++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function u(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=u(i),c=RegExp(u(o+" "+i+" "+a+" "+s)),d=u(i+" "+a+" "+s),f=u(o+" "+i+" "+s),h=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),p=n(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,m=t(/<<0>>(?:\s*<<1>>)?/.source,[g,h]),v=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,m]),y=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[v,y]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,p,y]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,v,y]),S={keyword:c,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,D=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[v]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,x]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,m]),lookbehind:!0,inside:S},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[v]),lookbehind:!0,inside:S},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,f,g]),inside:S}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,v]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,h]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(h),alias:"class-name",inside:S}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,m,g,x,c.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,p]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var T=A+"|"+C,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[T]),O=n(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),N=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,B=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[v,O]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[N,B]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[N]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[O]),inside:e.languages.csharp},"class-name":{pattern:RegExp(v),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var F=/:[^}\r\n]+/.source,M=n(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,F]),P=n(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[T]),2),R=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,F]);function L(t,n){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[n,F]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:L(I,M)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[R]),lookbehind:!0,greedy:!0,inside:L(R,P)}],char:{pattern:RegExp(C),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)),Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};var fT;fT||(fT=1,function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",n=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+n),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+n+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism)),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=n.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return n}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(n),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(r){t!==r&&(e.languages.markdown[t].inside.content.inside[r]=e.languages.markdown[r])})}),e.hooks.add("after-tokenize",function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var r=0,n=t.length;r<n;r++){var o=t[r];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,u]:a.alias.push(u):a.alias=[u]}}else e(o.content)}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var r="",n=0,o=t.classes.length;n<o;n++){var i=t.classes[n],l=/language-(.+)/.exec(i);if(l){r=l[1];break}}var c=e.languages[r];if(c)t.content=e.highlight(function(e){var t=e.replace(a,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){var r;if("#"===(t=t.toLowerCase())[0])return r="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),u(r);var n=s[t];return n||e}),t}(t.content),c,r);else if(r&&"none"!==r&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(r,function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[r],r))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},function(e){var t={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.groovy=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.inside.expression.inside=e.languages.groovy}(Prism),Prism.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/};var hT=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function pT(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce(function(e,t){return e+pT(t)},0)}var gT=function(e){var t,r,n,o=Ch(e,2),i=o[0],a=o[1],s=[],u=function(e){if(!ph.Text.isText(e))return null;var t=bm.getParentNode(null,e);if(t&&"code"===bm.getNodeType(t)){var r=bm.getParentNode(null,t);if(r&&"pre"===bm.getNodeType(r))return t}return null}(i);if(null==u)return s;var l=u.language,c=void 0===l?"":l;if(!c)return s;var d=function(e,t){if(!t)return[];var r=iT.languages[t];return r?iT.tokenize(e.text,r):[]}(i,c),f=0;try{for(var h=Sh(d),p=h.next();!p.done;p=h.next()){var g=p.value,m=f+pT(g);"string"!=typeof g&&s.push(((n={})[g.type]=!0,n.anchor={path:a,offset:f},n.focus={path:a,offset:m},n)),f=m}}catch(e){t={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(t)throw t.error}}return s};var mT={type:"code",elemToHtml:function(e,t){var r=e.language,n=void 0===r?"":r,o=n?'class="language-'.concat(n,'"'):"";return"<code ".concat(o,">").concat(t,"</code>")}};var vT=function(){function e(){this.title=Ly("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115,this.defaultCodeLang=""}return e.prototype.getOptions=function(e){var t=this,r=[],n=e.getMenuConfig("codeSelectLang").codeLangs,o=void 0===n?[]:n;r.push({text:"plain text",value:""}),o.forEach(function(e){var n=e.text,o=e.value;e.selected&&(t.defaultCodeLang=o),r.push({text:n,value:o})});var i=this.getValue(e);return r.forEach(function(e){e.value===i?e.selected=!0:e.selected=void 0}),r},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return this.defaultCodeLang;if(!ph.Element.isElement(t))return this.defaultCodeLang;var r=t.language.toString(),n=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===n?[]:n).some(function(e){return e.value===r})?r:this.defaultCodeLang},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var r={language:t.toString()};ph.Transforms.setNodes(e,r,{match:function(e){return bm.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=bm.getSelectedNodeByType(e,"code");if(null==t)return null;var r=bm.getParentNode(e,t);return ph.Element.isElement(r)?"pre"!==r.type?null:t:null},e}(),yT={key:"codeSelectLang",factory:function(){return new vT},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"},{text:"ABAP",value:"abap"}]}};$p&&(_p.fn.attr=$p);var bT={renderStyle:function(e,t){var r=e,n=t,o="";return hT.forEach(function(e){r[e]&&(o=e)}),o&&function(e,t){null==e.data&&(e.data={});var r=e.data;null==r.props&&(r.props={}),Object.assign(r.props,{className:t})}(n,o="token ".concat(o)),n},parseStyleHtml:function(e,t,r){var n=_p(e);if(!ph.Element.isElement(t))return t;if("code"!==bm.getNodeType(t))return t;var o=t,i=n.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[yT],elemsToHtml:[mT]};Py("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Py("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var wT=new WeakMap;function ET(e){var t,r=e.children||[],n=r.length;if(0===n)return"";for(var o=0;o<n&&!t;o+=1){var i=r[o];ph.Text.isText(i)&&(t=i)}return null==t?"":t.color||""}function xT(e,t,r){for(var n=t.type,o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(t,["type"]),i=void 0!==r?r:o.level||0,a=bm.findPath(e,t);;){if(0===a.length||0===a[a.length-1])return null;a=ph.Path.previous(a);var s=ph.Editor.node(e,a);if(!s)return null;var u=Ch(s,1)[0],l=u.level,c=void 0===l?0:l;if(bm.getNodeType(u)!==n)return null;if(c===i)return u}}function ST(e,t,r){var n=xT(e,t,r);return!!n&&n.ordered===t.ordered}var CT=[];var AT={type:"list-item",elemToHtml:function(e,t){var r="",n="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=wT.get(e);if(null==t)return 0;var r=e,n=r.type,o=r.ordered,i=void 0!==o&&o,a=r.level,s=void 0===a?0:a,u=bm.findPath(t,e);if(0===u[0])return s+1;var l=ph.Path.previous(u),c=ph.Editor.node(t,l);if(!c)return 0;var d=Ch(c,1)[0];if(bm.getNodeType(d)!==n)return s+1;var f=d,h=f.ordered,p=void 0!==h&&h,g=f.level,m=void 0===g?0:g;return m<s?s-m:m>s?ST(t,e)?0:1:m===s?p===i?0:1:0}(e);if(a>0)for(var s=0;s<a;s+=1)r+="<".concat(i,">"),CT.push(i);var u=function(e){var t=wT.get(e);if(null==t)return 0;var r=e,n=r.type,o=r.ordered,i=void 0!==o&&o,a=r.level,s=void 0===a?0:a,u=bm.findPath(t,e);if(u[0]===t.children.length-1)return s+1;var l=ph.Path.next(u),c=ph.Editor.node(t,l);if(!c)return 0;var d=Ch(c,1)[0];if(bm.getNodeType(d)!==n)return s+1;var f=d,h=f.ordered,p=void 0!==h&&h,g=f.level,m=void 0===g?0:g;return m<s?ST(t,d)?s-m:s-m+1:m>s?0:m===s?p===i?0:1:0}(e);if(u>0)for(s=0;s<u;s+=1){var l=CT.pop();n+="</".concat(l,">")}var c=ET(e),d=c?' style="color:'.concat(c,'"'):"";return{html:"<li".concat(d,">").concat(t,"</li>"),prefix:r,suffix:n}}},DT=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return bm.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var r=t.ordered;return(void 0!==r&&r)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!bm.getSelectedElems(e).some(function(t){if(ph.Editor.isVoid(e,t)&&ph.Editor.isBlock(e,t))return!0;var r=t.type;return!!["pre","code","table"].includes(r)})},e.prototype.exec=function(e,t){this.isActive(e)?ph.Transforms.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):ph.Transforms.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),TT=function(e){function t(){var t=e.apply(this,Ah([],Ch(arguments),!1))||this;return t.ordered=!1,t.title=Ly("listModule.unOrderedList"),t.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>',t}return bh(t,e),t}(DT),kT=function(e){function t(){var t=e.apply(this,Ah([],Ch(arguments),!1))||this;return t.ordered=!0,t.title=Ly("listModule.orderedList"),t.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>',t}return bh(t,e),t}(DT),OT={key:"bulletedList",factory:function(){return new TT}},NT={key:"numberedList",factory:function(){return new kT}};function BT(e){return e.length?e[0].tagName.toLowerCase():""}ag&&(_p.fn.append=ag),$p&&(_p.fn.attr=$p),ug&&(_p.fn.parent=ug);var FT={selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=_p(e);0===(t=t.filter(function(e){return!!ph.Text.isText(e)||!!r.isInline(e)})).length&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===BT(e.parent())}(n),i=function(e){for(var t=0,r=e.parent(),n=BT(r);"ul"===n||"ol"===n;)n=BT(r=r.parent()),t+=1;return t-1}(n);return{type:"list-item",ordered:o,level:i,children:t}}};var MT={selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,r){return t.flat(1/0)}};function IT(e){return ph.Editor.nodes(e,{at:e.selection||void 0,match:function(t){return 1===bm.findPath(e,t).length}})}var PT={type:"list-item",renderElem:function(e,t,r){wT.set(e,r);var n=e,o=n.level,i=void 0===o?0:o,a=n.ordered,s=void 0!==a&&a,u={margin:"5px 0 5px ".concat(20*i,"px"),display:"flex",alignItems:"flex-start"},l="";if(s){var c=function(e,t){var r=t,n=r.type,o=r.level,i=void 0===o?0:o,a=r.ordered,s=void 0!==a&&a,u=1,l=t,c=bm.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var d=ph.Path.previous(c),f=ph.Editor.node(e,d);if(null==f)break;var h=f[0],p=h.level,g=void 0===p?0:p,m=h.type,v=h.ordered;if(m!==n)break;if(g<i)break;if(g===i){if(v!==s)break;u+=1}l=h,c=d}return u}(r,e);l="".concat(c,".")}else l=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);return hw("div",{style:u},hw("span",{contentEditable:!1,style:{marginRight:"0.5em",color:ET(e)},"data-w-e-reserve":!0},l),hw("span",{style:{flex:"1",wordBreak:"break-word"}},t))}},RT={renderElems:[PT],editorPlugin:function(e){var t=e.deleteBackward,r=e.handleTab,n=e.normalizeNode,o=e.insertBreak,i=e;return i.insertBreak=function(){var t=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"list-item")},universal:!0}),1),r=t[0];return r?""!==r[0].children[0].text?o():void ph.Transforms.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0}):o()},i.deleteBackward=function(r){var n=i.selection;if(null!=n)if(ph.Range.isExpanded(n))t(r);else{var o=bm.getSelectedNodeByType(i,"list-item");if(null!=o)if(0!==n.focus.offset)t(r);else{var a=o,s=a.level,u=void 0===s?0:s,l=a.ordered,c=void 0!==l&&l;if(u>0){var d=xT(e,o,u-1);d&&d.ordered!==c?ph.Transforms.setNodes(i,{level:u-1,ordered:!c}):ph.Transforms.setNodes(i,{level:u-1})}else ph.Transforms.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0})}else t(r)}else t(r)},i.handleTab=function(){var e,t,n,o,a=i.selection;if(null!=a){if(ph.Range.isCollapsed(a)){var s=bm.getSelectedNodeByType(i,"list-item");if(null==s)return void r();if(0===a.focus.offset){var u=s.level,l=void 0===u?0:u;return void ph.Transforms.setNodes(i,{level:l+1})}}if(ph.Range.isExpanded(a)){var c=0,d=!1;try{for(var f=Sh(IT(i)),h=f.next();!h.done;h=f.next()){var p=Ch(h.value,1)[0];"list-item"===bm.getNodeType(p)?c+=1:d=!0}}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}if(d||c<=1)return void r();try{for(var g=Sh(IT(i)),m=g.next();!m.done;m=g.next()){var v=Ch(m.value,2),y=(p=v[0],v[1]),b=p.level;l=void 0===b?0:b;ph.Transforms.setNodes(i,{level:l+1},{at:y})}}catch(e){n={error:e}}finally{try{m&&!m.done&&(o=g.return)&&o.call(g)}finally{if(n)throw n.error}}}else r()}else r()},i.normalizeNode=function(e){var t=Ch(e,2),r=t[0],o=t[1],a=bm.getNodeType(r);return"bulleted-list"!==a&&"numbered-list"!==a||ph.Transforms.unwrapNodes(i,{at:o}),n([r,o])},i},menus:[OT,NT],elemsToHtml:[AT],parseElemsHtml:[MT,FT]};!function(){if(void 0!==window.Reflect&&void 0!==window.customElements&&!window.customElements.polyfillWrapFlushCallback){var e=HTMLElement,t=function(){return Reflect.construct(e,[],this.constructor)};window.HTMLElement=t,HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}}();class LT{constructor(e,t,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=r}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new LT(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class _T{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new _T(t,LT.range(this,e))}}class zT{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r,n,o="KaTeX parse error: "+e,i=t&&t.loc;if(i&&i.start<=i.end){var a=i.lexer.input;r=i.start,n=i.end,r===a.length?o+=" at end of input: ":o+=" at position "+(r+1)+": ";var s=a.slice(r,n).replace(/[^]/g,"$&̲");o+=(r>15?"…"+a.slice(r-15,r):a.slice(0,r))+s+(n+15<a.length?a.slice(n,n+15)+"…":a.slice(n))}var u=new Error(o);return u.name="ParseError",u.__proto__=zT.prototype,u.position=r,null!=r&&null!=n&&(u.length=n-r),u.rawMessage=e,u}}zT.prototype.__proto__=Error.prototype;var jT=/([A-Z])/g,HT={"&":"&",">":">","<":"<",'"':""","'":"'"},$T=/[&><"']/g;var UT=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},VT={deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace($T,e=>HT[e])},hyphenate:function(e){return e.replace(jT,"-$1").toLowerCase()},getBaseElem:UT,isCharacterBox:function(e){var t=UT(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"}},qT={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function GT(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if("string"!=typeof r)return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class WT{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},qT)if(qT.hasOwnProperty(t)){var r=qT[t];this[t]=void 0!==e[t]?r.processor?r.processor(e[t]):e[t]:GT(r)}}reportNonstrict(e,t,r){var n=this.strict;if("function"==typeof n&&(n=n(e,t,r)),n&&"ignore"!==n){if(!0===n||"error"===n)throw new zT("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,r){var n=this.strict;if("function"==typeof n)try{n=n(e,t,r)}catch(e){n="error"}return!(!n||"ignore"===n)&&(!0===n||"error"===n||("warn"===n?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),!1)))}isTrusted(e){if(e.url&&!e.protocol){var t=VT.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}var r="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(r)}}class YT{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return KT[XT[this.id]]}sub(){return KT[ZT[this.id]]}fracNum(){return KT[JT[this.id]]}fracDen(){return KT[QT[this.id]]}cramp(){return KT[ek[this.id]]}text(){return KT[tk[this.id]]}isTight(){return this.size>=2}}var KT=[new YT(0,0,!1),new YT(1,0,!0),new YT(2,1,!1),new YT(3,1,!0),new YT(4,2,!1),new YT(5,2,!0),new YT(6,3,!1),new YT(7,3,!0)],XT=[4,5,4,5,6,7,6,7],ZT=[5,5,5,5,7,7,7,7],JT=[2,3,4,5,6,7,6,7],QT=[3,3,5,5,7,7,7,7],ek=[1,1,3,3,5,5,7,7],tk=[0,1,2,3,2,3,2,3],rk={DISPLAY:KT[0],TEXT:KT[2],SCRIPT:KT[4],SCRIPTSCRIPT:KT[6]},nk=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];var ok=[];function ik(e){for(var t=0;t<ok.length;t+=2)if(e>=ok[t]&&e<=ok[t+1])return!0;return!1}nk.forEach(e=>e.blocks.forEach(e=>ok.push(...e)));var ak=80,sk={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class uk{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join("")}}var lk={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ck={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},dk={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function fk(e,t,r){if(!lk[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),o=lk[t][n];if(!o&&e[0]in dk&&(n=dk[e[0]].charCodeAt(0),o=lk[t][n]),o||"text"!==r||ik(n)&&(o=lk[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var hk={};var pk=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],gk=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],mk=function(e,t){return t.size<2?e:pk[e-1][t.size-1]};class vk{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||vk.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=gk[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new vk(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:mk(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:gk[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=mk(vk.BASESIZE,e);return this.size===t&&this.textSize===vk.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==vk.BASESIZE?["sizing","reset-size"+this.size,"size"+vk.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!hk[t=e>=5?0:e>=3?1:2]){var r=hk[t]={cssEmPerMu:ck.quad[t]/18};for(var n in ck)ck.hasOwnProperty(n)&&(r[n]=ck[n][t])}return hk[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}vk.BASESIZE=6;var yk={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},bk={ex:!0,em:!0,mu:!0},wk=function(e){return"string"!=typeof e&&(e=e.unit),e in yk||e in bk||"ex"===e},Ek=function(e,t){var r;if(e.unit in yk)r=yk[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{var n;if(n=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=n.fontMetrics().xHeight;else{if("em"!==e.unit)throw new zT("Invalid unit: '"+e.unit+"'");r=n.fontMetrics().quad}n!==t&&(r*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},xk=function(e){return+e.toFixed(4)+"em"},Sk=function(e){return e.filter(e=>e).join(" ")},Ck=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},Ak=function(e){var t=document.createElement(e);for(var r in t.className=Sk(this.classes),this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var o=0;o<this.children.length;o++)t.appendChild(this.children[o].toNode());return t},Dk=/[\s"'>/=\x00-\x1f]/,Tk=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+VT.escape(Sk(this.classes))+'"');var r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=VT.hyphenate(n)+":"+this.style[n]+";");for(var o in r&&(t+=' style="'+VT.escape(r)+'"'),this.attributes)if(this.attributes.hasOwnProperty(o)){if(Dk.test(o))throw new zT("Invalid attribute name '"+o+"'");t+=" "+o+'="'+VT.escape(this.attributes[o])+'"'}t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+e+">"};class kk{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Ck.call(this,e,r,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Ak.call(this,"span")}toMarkup(){return Tk.call(this,"span")}}class Ok{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Ck.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Ak.call(this,"a")}toMarkup(){return Tk.call(this,"a")}}class Nk{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e='<img src="'+VT.escape(this.src)+'" alt="'+VT.escape(this.alt)+'"',t="";for(var r in this.style)this.style.hasOwnProperty(r)&&(t+=VT.hyphenate(r)+":"+this.style[r]+";");return t&&(e+=' style="'+VT.escape(t)+'"'),e+="'/>"}}var Bk={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"};class Fk{constructor(e,t,r,n,o,i,a,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=r||0,this.italic=n||0,this.skew=o||0,this.width=i||0,this.classes=a||[],this.style=s||{},this.maxFontSize=0;var u=function(e){for(var t=0;t<nk.length;t++)for(var r=nk[t],n=0;n<r.blocks.length;n++){var o=r.blocks[n];if(e>=o[0]&&e<=o[1])return r.name}return null}(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Bk[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var r in this.italic>0&&((t=document.createElement("span")).style.marginRight=xk(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=Sk(this.classes)),this.style)this.style.hasOwnProperty(r)&&((t=t||document.createElement("span")).style[r]=this.style[r]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=VT.escape(Sk(this.classes)),t+='"');var r="";for(var n in this.italic>0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(n)&&(r+=VT.hyphenate(n)+":"+this.style[n]+";");r&&(e=!0,t+=' style="'+VT.escape(r)+'"');var o=VT.escape(this.text);return e?(t+=">",t+=o,t+="</span>"):o}}class Mk{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+VT.escape(this.attributes[t])+'"');e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</svg>"}}class Ik{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",sk[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+VT.escape(this.alternate)+'"/>':'<path d="'+VT.escape(sk[this.pathName])+'"/>'}}class Pk{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+VT.escape(this.attributes[t])+'"');return e+="/>"}}function Rk(e){if(e instanceof Fk)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var Lk={bin:1,close:1,inner:1,open:1,punct:1,rel:1},_k={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},zk={math:{},text:{}};function jk(e,t,r,n,o,i){zk[e][o]={font:t,group:r,replace:n},i&&n&&(zk[e][n]=zk[e][o])}var Hk="math",$k="text",Uk="main",Vk="ams",qk="accent-token",Gk="bin",Wk="close",Yk="inner",Kk="mathord",Xk="op-token",Zk="open",Jk="punct",Qk="rel",eO="spacing",tO="textord";jk(Hk,Uk,Qk,"≡","\\equiv",!0),jk(Hk,Uk,Qk,"≺","\\prec",!0),jk(Hk,Uk,Qk,"≻","\\succ",!0),jk(Hk,Uk,Qk,"∼","\\sim",!0),jk(Hk,Uk,Qk,"⊥","\\perp"),jk(Hk,Uk,Qk,"⪯","\\preceq",!0),jk(Hk,Uk,Qk,"⪰","\\succeq",!0),jk(Hk,Uk,Qk,"≃","\\simeq",!0),jk(Hk,Uk,Qk,"∣","\\mid",!0),jk(Hk,Uk,Qk,"≪","\\ll",!0),jk(Hk,Uk,Qk,"≫","\\gg",!0),jk(Hk,Uk,Qk,"≍","\\asymp",!0),jk(Hk,Uk,Qk,"∥","\\parallel"),jk(Hk,Uk,Qk,"⋈","\\bowtie",!0),jk(Hk,Uk,Qk,"⌣","\\smile",!0),jk(Hk,Uk,Qk,"⊑","\\sqsubseteq",!0),jk(Hk,Uk,Qk,"⊒","\\sqsupseteq",!0),jk(Hk,Uk,Qk,"≐","\\doteq",!0),jk(Hk,Uk,Qk,"⌢","\\frown",!0),jk(Hk,Uk,Qk,"∋","\\ni",!0),jk(Hk,Uk,Qk,"∝","\\propto",!0),jk(Hk,Uk,Qk,"⊢","\\vdash",!0),jk(Hk,Uk,Qk,"⊣","\\dashv",!0),jk(Hk,Uk,Qk,"∋","\\owns"),jk(Hk,Uk,Jk,".","\\ldotp"),jk(Hk,Uk,Jk,"⋅","\\cdotp"),jk(Hk,Uk,tO,"#","\\#"),jk($k,Uk,tO,"#","\\#"),jk(Hk,Uk,tO,"&","\\&"),jk($k,Uk,tO,"&","\\&"),jk(Hk,Uk,tO,"ℵ","\\aleph",!0),jk(Hk,Uk,tO,"∀","\\forall",!0),jk(Hk,Uk,tO,"ℏ","\\hbar",!0),jk(Hk,Uk,tO,"∃","\\exists",!0),jk(Hk,Uk,tO,"∇","\\nabla",!0),jk(Hk,Uk,tO,"♭","\\flat",!0),jk(Hk,Uk,tO,"ℓ","\\ell",!0),jk(Hk,Uk,tO,"♮","\\natural",!0),jk(Hk,Uk,tO,"♣","\\clubsuit",!0),jk(Hk,Uk,tO,"℘","\\wp",!0),jk(Hk,Uk,tO,"♯","\\sharp",!0),jk(Hk,Uk,tO,"♢","\\diamondsuit",!0),jk(Hk,Uk,tO,"ℜ","\\Re",!0),jk(Hk,Uk,tO,"♡","\\heartsuit",!0),jk(Hk,Uk,tO,"ℑ","\\Im",!0),jk(Hk,Uk,tO,"♠","\\spadesuit",!0),jk(Hk,Uk,tO,"§","\\S",!0),jk($k,Uk,tO,"§","\\S"),jk(Hk,Uk,tO,"¶","\\P",!0),jk($k,Uk,tO,"¶","\\P"),jk(Hk,Uk,tO,"†","\\dag"),jk($k,Uk,tO,"†","\\dag"),jk($k,Uk,tO,"†","\\textdagger"),jk(Hk,Uk,tO,"‡","\\ddag"),jk($k,Uk,tO,"‡","\\ddag"),jk($k,Uk,tO,"‡","\\textdaggerdbl"),jk(Hk,Uk,Wk,"⎱","\\rmoustache",!0),jk(Hk,Uk,Zk,"⎰","\\lmoustache",!0),jk(Hk,Uk,Wk,"⟯","\\rgroup",!0),jk(Hk,Uk,Zk,"⟮","\\lgroup",!0),jk(Hk,Uk,Gk,"∓","\\mp",!0),jk(Hk,Uk,Gk,"⊖","\\ominus",!0),jk(Hk,Uk,Gk,"⊎","\\uplus",!0),jk(Hk,Uk,Gk,"⊓","\\sqcap",!0),jk(Hk,Uk,Gk,"∗","\\ast"),jk(Hk,Uk,Gk,"⊔","\\sqcup",!0),jk(Hk,Uk,Gk,"◯","\\bigcirc",!0),jk(Hk,Uk,Gk,"∙","\\bullet",!0),jk(Hk,Uk,Gk,"‡","\\ddagger"),jk(Hk,Uk,Gk,"≀","\\wr",!0),jk(Hk,Uk,Gk,"⨿","\\amalg"),jk(Hk,Uk,Gk,"&","\\And"),jk(Hk,Uk,Qk,"⟵","\\longleftarrow",!0),jk(Hk,Uk,Qk,"⇐","\\Leftarrow",!0),jk(Hk,Uk,Qk,"⟸","\\Longleftarrow",!0),jk(Hk,Uk,Qk,"⟶","\\longrightarrow",!0),jk(Hk,Uk,Qk,"⇒","\\Rightarrow",!0),jk(Hk,Uk,Qk,"⟹","\\Longrightarrow",!0),jk(Hk,Uk,Qk,"↔","\\leftrightarrow",!0),jk(Hk,Uk,Qk,"⟷","\\longleftrightarrow",!0),jk(Hk,Uk,Qk,"⇔","\\Leftrightarrow",!0),jk(Hk,Uk,Qk,"⟺","\\Longleftrightarrow",!0),jk(Hk,Uk,Qk,"↦","\\mapsto",!0),jk(Hk,Uk,Qk,"⟼","\\longmapsto",!0),jk(Hk,Uk,Qk,"↗","\\nearrow",!0),jk(Hk,Uk,Qk,"↩","\\hookleftarrow",!0),jk(Hk,Uk,Qk,"↪","\\hookrightarrow",!0),jk(Hk,Uk,Qk,"↘","\\searrow",!0),jk(Hk,Uk,Qk,"↼","\\leftharpoonup",!0),jk(Hk,Uk,Qk,"⇀","\\rightharpoonup",!0),jk(Hk,Uk,Qk,"↙","\\swarrow",!0),jk(Hk,Uk,Qk,"↽","\\leftharpoondown",!0),jk(Hk,Uk,Qk,"⇁","\\rightharpoondown",!0),jk(Hk,Uk,Qk,"↖","\\nwarrow",!0),jk(Hk,Uk,Qk,"⇌","\\rightleftharpoons",!0),jk(Hk,Vk,Qk,"≮","\\nless",!0),jk(Hk,Vk,Qk,"","\\@nleqslant"),jk(Hk,Vk,Qk,"","\\@nleqq"),jk(Hk,Vk,Qk,"⪇","\\lneq",!0),jk(Hk,Vk,Qk,"≨","\\lneqq",!0),jk(Hk,Vk,Qk,"","\\@lvertneqq"),jk(Hk,Vk,Qk,"⋦","\\lnsim",!0),jk(Hk,Vk,Qk,"⪉","\\lnapprox",!0),jk(Hk,Vk,Qk,"⊀","\\nprec",!0),jk(Hk,Vk,Qk,"⋠","\\npreceq",!0),jk(Hk,Vk,Qk,"⋨","\\precnsim",!0),jk(Hk,Vk,Qk,"⪹","\\precnapprox",!0),jk(Hk,Vk,Qk,"≁","\\nsim",!0),jk(Hk,Vk,Qk,"","\\@nshortmid"),jk(Hk,Vk,Qk,"∤","\\nmid",!0),jk(Hk,Vk,Qk,"⊬","\\nvdash",!0),jk(Hk,Vk,Qk,"⊭","\\nvDash",!0),jk(Hk,Vk,Qk,"⋪","\\ntriangleleft"),jk(Hk,Vk,Qk,"⋬","\\ntrianglelefteq",!0),jk(Hk,Vk,Qk,"⊊","\\subsetneq",!0),jk(Hk,Vk,Qk,"","\\@varsubsetneq"),jk(Hk,Vk,Qk,"⫋","\\subsetneqq",!0),jk(Hk,Vk,Qk,"","\\@varsubsetneqq"),jk(Hk,Vk,Qk,"≯","\\ngtr",!0),jk(Hk,Vk,Qk,"","\\@ngeqslant"),jk(Hk,Vk,Qk,"","\\@ngeqq"),jk(Hk,Vk,Qk,"⪈","\\gneq",!0),jk(Hk,Vk,Qk,"≩","\\gneqq",!0),jk(Hk,Vk,Qk,"","\\@gvertneqq"),jk(Hk,Vk,Qk,"⋧","\\gnsim",!0),jk(Hk,Vk,Qk,"⪊","\\gnapprox",!0),jk(Hk,Vk,Qk,"⊁","\\nsucc",!0),jk(Hk,Vk,Qk,"⋡","\\nsucceq",!0),jk(Hk,Vk,Qk,"⋩","\\succnsim",!0),jk(Hk,Vk,Qk,"⪺","\\succnapprox",!0),jk(Hk,Vk,Qk,"≆","\\ncong",!0),jk(Hk,Vk,Qk,"","\\@nshortparallel"),jk(Hk,Vk,Qk,"∦","\\nparallel",!0),jk(Hk,Vk,Qk,"⊯","\\nVDash",!0),jk(Hk,Vk,Qk,"⋫","\\ntriangleright"),jk(Hk,Vk,Qk,"⋭","\\ntrianglerighteq",!0),jk(Hk,Vk,Qk,"","\\@nsupseteqq"),jk(Hk,Vk,Qk,"⊋","\\supsetneq",!0),jk(Hk,Vk,Qk,"","\\@varsupsetneq"),jk(Hk,Vk,Qk,"⫌","\\supsetneqq",!0),jk(Hk,Vk,Qk,"","\\@varsupsetneqq"),jk(Hk,Vk,Qk,"⊮","\\nVdash",!0),jk(Hk,Vk,Qk,"⪵","\\precneqq",!0),jk(Hk,Vk,Qk,"⪶","\\succneqq",!0),jk(Hk,Vk,Qk,"","\\@nsubseteqq"),jk(Hk,Vk,Gk,"⊴","\\unlhd"),jk(Hk,Vk,Gk,"⊵","\\unrhd"),jk(Hk,Vk,Qk,"↚","\\nleftarrow",!0),jk(Hk,Vk,Qk,"↛","\\nrightarrow",!0),jk(Hk,Vk,Qk,"⇍","\\nLeftarrow",!0),jk(Hk,Vk,Qk,"⇏","\\nRightarrow",!0),jk(Hk,Vk,Qk,"↮","\\nleftrightarrow",!0),jk(Hk,Vk,Qk,"⇎","\\nLeftrightarrow",!0),jk(Hk,Vk,Qk,"△","\\vartriangle"),jk(Hk,Vk,tO,"ℏ","\\hslash"),jk(Hk,Vk,tO,"▽","\\triangledown"),jk(Hk,Vk,tO,"◊","\\lozenge"),jk(Hk,Vk,tO,"Ⓢ","\\circledS"),jk(Hk,Vk,tO,"®","\\circledR"),jk($k,Vk,tO,"®","\\circledR"),jk(Hk,Vk,tO,"∡","\\measuredangle",!0),jk(Hk,Vk,tO,"∄","\\nexists"),jk(Hk,Vk,tO,"℧","\\mho"),jk(Hk,Vk,tO,"Ⅎ","\\Finv",!0),jk(Hk,Vk,tO,"⅁","\\Game",!0),jk(Hk,Vk,tO,"‵","\\backprime"),jk(Hk,Vk,tO,"▲","\\blacktriangle"),jk(Hk,Vk,tO,"▼","\\blacktriangledown"),jk(Hk,Vk,tO,"■","\\blacksquare"),jk(Hk,Vk,tO,"⧫","\\blacklozenge"),jk(Hk,Vk,tO,"★","\\bigstar"),jk(Hk,Vk,tO,"∢","\\sphericalangle",!0),jk(Hk,Vk,tO,"∁","\\complement",!0),jk(Hk,Vk,tO,"ð","\\eth",!0),jk($k,Uk,tO,"ð","ð"),jk(Hk,Vk,tO,"╱","\\diagup"),jk(Hk,Vk,tO,"╲","\\diagdown"),jk(Hk,Vk,tO,"□","\\square"),jk(Hk,Vk,tO,"□","\\Box"),jk(Hk,Vk,tO,"◊","\\Diamond"),jk(Hk,Vk,tO,"¥","\\yen",!0),jk($k,Vk,tO,"¥","\\yen",!0),jk(Hk,Vk,tO,"✓","\\checkmark",!0),jk($k,Vk,tO,"✓","\\checkmark"),jk(Hk,Vk,tO,"ℶ","\\beth",!0),jk(Hk,Vk,tO,"ℸ","\\daleth",!0),jk(Hk,Vk,tO,"ℷ","\\gimel",!0),jk(Hk,Vk,tO,"ϝ","\\digamma",!0),jk(Hk,Vk,tO,"ϰ","\\varkappa"),jk(Hk,Vk,Zk,"┌","\\@ulcorner",!0),jk(Hk,Vk,Wk,"┐","\\@urcorner",!0),jk(Hk,Vk,Zk,"└","\\@llcorner",!0),jk(Hk,Vk,Wk,"┘","\\@lrcorner",!0),jk(Hk,Vk,Qk,"≦","\\leqq",!0),jk(Hk,Vk,Qk,"⩽","\\leqslant",!0),jk(Hk,Vk,Qk,"⪕","\\eqslantless",!0),jk(Hk,Vk,Qk,"≲","\\lesssim",!0),jk(Hk,Vk,Qk,"⪅","\\lessapprox",!0),jk(Hk,Vk,Qk,"≊","\\approxeq",!0),jk(Hk,Vk,Gk,"⋖","\\lessdot"),jk(Hk,Vk,Qk,"⋘","\\lll",!0),jk(Hk,Vk,Qk,"≶","\\lessgtr",!0),jk(Hk,Vk,Qk,"⋚","\\lesseqgtr",!0),jk(Hk,Vk,Qk,"⪋","\\lesseqqgtr",!0),jk(Hk,Vk,Qk,"≑","\\doteqdot"),jk(Hk,Vk,Qk,"≓","\\risingdotseq",!0),jk(Hk,Vk,Qk,"≒","\\fallingdotseq",!0),jk(Hk,Vk,Qk,"∽","\\backsim",!0),jk(Hk,Vk,Qk,"⋍","\\backsimeq",!0),jk(Hk,Vk,Qk,"⫅","\\subseteqq",!0),jk(Hk,Vk,Qk,"⋐","\\Subset",!0),jk(Hk,Vk,Qk,"⊏","\\sqsubset",!0),jk(Hk,Vk,Qk,"≼","\\preccurlyeq",!0),jk(Hk,Vk,Qk,"⋞","\\curlyeqprec",!0),jk(Hk,Vk,Qk,"≾","\\precsim",!0),jk(Hk,Vk,Qk,"⪷","\\precapprox",!0),jk(Hk,Vk,Qk,"⊲","\\vartriangleleft"),jk(Hk,Vk,Qk,"⊴","\\trianglelefteq"),jk(Hk,Vk,Qk,"⊨","\\vDash",!0),jk(Hk,Vk,Qk,"⊪","\\Vvdash",!0),jk(Hk,Vk,Qk,"⌣","\\smallsmile"),jk(Hk,Vk,Qk,"⌢","\\smallfrown"),jk(Hk,Vk,Qk,"≏","\\bumpeq",!0),jk(Hk,Vk,Qk,"≎","\\Bumpeq",!0),jk(Hk,Vk,Qk,"≧","\\geqq",!0),jk(Hk,Vk,Qk,"⩾","\\geqslant",!0),jk(Hk,Vk,Qk,"⪖","\\eqslantgtr",!0),jk(Hk,Vk,Qk,"≳","\\gtrsim",!0),jk(Hk,Vk,Qk,"⪆","\\gtrapprox",!0),jk(Hk,Vk,Gk,"⋗","\\gtrdot"),jk(Hk,Vk,Qk,"⋙","\\ggg",!0),jk(Hk,Vk,Qk,"≷","\\gtrless",!0),jk(Hk,Vk,Qk,"⋛","\\gtreqless",!0),jk(Hk,Vk,Qk,"⪌","\\gtreqqless",!0),jk(Hk,Vk,Qk,"≖","\\eqcirc",!0),jk(Hk,Vk,Qk,"≗","\\circeq",!0),jk(Hk,Vk,Qk,"≜","\\triangleq",!0),jk(Hk,Vk,Qk,"∼","\\thicksim"),jk(Hk,Vk,Qk,"≈","\\thickapprox"),jk(Hk,Vk,Qk,"⫆","\\supseteqq",!0),jk(Hk,Vk,Qk,"⋑","\\Supset",!0),jk(Hk,Vk,Qk,"⊐","\\sqsupset",!0),jk(Hk,Vk,Qk,"≽","\\succcurlyeq",!0),jk(Hk,Vk,Qk,"⋟","\\curlyeqsucc",!0),jk(Hk,Vk,Qk,"≿","\\succsim",!0),jk(Hk,Vk,Qk,"⪸","\\succapprox",!0),jk(Hk,Vk,Qk,"⊳","\\vartriangleright"),jk(Hk,Vk,Qk,"⊵","\\trianglerighteq"),jk(Hk,Vk,Qk,"⊩","\\Vdash",!0),jk(Hk,Vk,Qk,"∣","\\shortmid"),jk(Hk,Vk,Qk,"∥","\\shortparallel"),jk(Hk,Vk,Qk,"≬","\\between",!0),jk(Hk,Vk,Qk,"⋔","\\pitchfork",!0),jk(Hk,Vk,Qk,"∝","\\varpropto"),jk(Hk,Vk,Qk,"◀","\\blacktriangleleft"),jk(Hk,Vk,Qk,"∴","\\therefore",!0),jk(Hk,Vk,Qk,"∍","\\backepsilon"),jk(Hk,Vk,Qk,"▶","\\blacktriangleright"),jk(Hk,Vk,Qk,"∵","\\because",!0),jk(Hk,Vk,Qk,"⋘","\\llless"),jk(Hk,Vk,Qk,"⋙","\\gggtr"),jk(Hk,Vk,Gk,"⊲","\\lhd"),jk(Hk,Vk,Gk,"⊳","\\rhd"),jk(Hk,Vk,Qk,"≂","\\eqsim",!0),jk(Hk,Uk,Qk,"⋈","\\Join"),jk(Hk,Vk,Qk,"≑","\\Doteq",!0),jk(Hk,Vk,Gk,"∔","\\dotplus",!0),jk(Hk,Vk,Gk,"∖","\\smallsetminus"),jk(Hk,Vk,Gk,"⋒","\\Cap",!0),jk(Hk,Vk,Gk,"⋓","\\Cup",!0),jk(Hk,Vk,Gk,"⩞","\\doublebarwedge",!0),jk(Hk,Vk,Gk,"⊟","\\boxminus",!0),jk(Hk,Vk,Gk,"⊞","\\boxplus",!0),jk(Hk,Vk,Gk,"⋇","\\divideontimes",!0),jk(Hk,Vk,Gk,"⋉","\\ltimes",!0),jk(Hk,Vk,Gk,"⋊","\\rtimes",!0),jk(Hk,Vk,Gk,"⋋","\\leftthreetimes",!0),jk(Hk,Vk,Gk,"⋌","\\rightthreetimes",!0),jk(Hk,Vk,Gk,"⋏","\\curlywedge",!0),jk(Hk,Vk,Gk,"⋎","\\curlyvee",!0),jk(Hk,Vk,Gk,"⊝","\\circleddash",!0),jk(Hk,Vk,Gk,"⊛","\\circledast",!0),jk(Hk,Vk,Gk,"⋅","\\centerdot"),jk(Hk,Vk,Gk,"⊺","\\intercal",!0),jk(Hk,Vk,Gk,"⋒","\\doublecap"),jk(Hk,Vk,Gk,"⋓","\\doublecup"),jk(Hk,Vk,Gk,"⊠","\\boxtimes",!0),jk(Hk,Vk,Qk,"⇢","\\dashrightarrow",!0),jk(Hk,Vk,Qk,"⇠","\\dashleftarrow",!0),jk(Hk,Vk,Qk,"⇇","\\leftleftarrows",!0),jk(Hk,Vk,Qk,"⇆","\\leftrightarrows",!0),jk(Hk,Vk,Qk,"⇚","\\Lleftarrow",!0),jk(Hk,Vk,Qk,"↞","\\twoheadleftarrow",!0),jk(Hk,Vk,Qk,"↢","\\leftarrowtail",!0),jk(Hk,Vk,Qk,"↫","\\looparrowleft",!0),jk(Hk,Vk,Qk,"⇋","\\leftrightharpoons",!0),jk(Hk,Vk,Qk,"↶","\\curvearrowleft",!0),jk(Hk,Vk,Qk,"↺","\\circlearrowleft",!0),jk(Hk,Vk,Qk,"↰","\\Lsh",!0),jk(Hk,Vk,Qk,"⇈","\\upuparrows",!0),jk(Hk,Vk,Qk,"↿","\\upharpoonleft",!0),jk(Hk,Vk,Qk,"⇃","\\downharpoonleft",!0),jk(Hk,Uk,Qk,"⊶","\\origof",!0),jk(Hk,Uk,Qk,"⊷","\\imageof",!0),jk(Hk,Vk,Qk,"⊸","\\multimap",!0),jk(Hk,Vk,Qk,"↭","\\leftrightsquigarrow",!0),jk(Hk,Vk,Qk,"⇉","\\rightrightarrows",!0),jk(Hk,Vk,Qk,"⇄","\\rightleftarrows",!0),jk(Hk,Vk,Qk,"↠","\\twoheadrightarrow",!0),jk(Hk,Vk,Qk,"↣","\\rightarrowtail",!0),jk(Hk,Vk,Qk,"↬","\\looparrowright",!0),jk(Hk,Vk,Qk,"↷","\\curvearrowright",!0),jk(Hk,Vk,Qk,"↻","\\circlearrowright",!0),jk(Hk,Vk,Qk,"↱","\\Rsh",!0),jk(Hk,Vk,Qk,"⇊","\\downdownarrows",!0),jk(Hk,Vk,Qk,"↾","\\upharpoonright",!0),jk(Hk,Vk,Qk,"⇂","\\downharpoonright",!0),jk(Hk,Vk,Qk,"⇝","\\rightsquigarrow",!0),jk(Hk,Vk,Qk,"⇝","\\leadsto"),jk(Hk,Vk,Qk,"⇛","\\Rrightarrow",!0),jk(Hk,Vk,Qk,"↾","\\restriction"),jk(Hk,Uk,tO,"‘","`"),jk(Hk,Uk,tO,"$","\\$"),jk($k,Uk,tO,"$","\\$"),jk($k,Uk,tO,"$","\\textdollar"),jk(Hk,Uk,tO,"%","\\%"),jk($k,Uk,tO,"%","\\%"),jk(Hk,Uk,tO,"_","\\_"),jk($k,Uk,tO,"_","\\_"),jk($k,Uk,tO,"_","\\textunderscore"),jk(Hk,Uk,tO,"∠","\\angle",!0),jk(Hk,Uk,tO,"∞","\\infty",!0),jk(Hk,Uk,tO,"′","\\prime"),jk(Hk,Uk,tO,"△","\\triangle"),jk(Hk,Uk,tO,"Γ","\\Gamma",!0),jk(Hk,Uk,tO,"Δ","\\Delta",!0),jk(Hk,Uk,tO,"Θ","\\Theta",!0),jk(Hk,Uk,tO,"Λ","\\Lambda",!0),jk(Hk,Uk,tO,"Ξ","\\Xi",!0),jk(Hk,Uk,tO,"Π","\\Pi",!0),jk(Hk,Uk,tO,"Σ","\\Sigma",!0),jk(Hk,Uk,tO,"Υ","\\Upsilon",!0),jk(Hk,Uk,tO,"Φ","\\Phi",!0),jk(Hk,Uk,tO,"Ψ","\\Psi",!0),jk(Hk,Uk,tO,"Ω","\\Omega",!0),jk(Hk,Uk,tO,"A","Α"),jk(Hk,Uk,tO,"B","Β"),jk(Hk,Uk,tO,"E","Ε"),jk(Hk,Uk,tO,"Z","Ζ"),jk(Hk,Uk,tO,"H","Η"),jk(Hk,Uk,tO,"I","Ι"),jk(Hk,Uk,tO,"K","Κ"),jk(Hk,Uk,tO,"M","Μ"),jk(Hk,Uk,tO,"N","Ν"),jk(Hk,Uk,tO,"O","Ο"),jk(Hk,Uk,tO,"P","Ρ"),jk(Hk,Uk,tO,"T","Τ"),jk(Hk,Uk,tO,"X","Χ"),jk(Hk,Uk,tO,"¬","\\neg",!0),jk(Hk,Uk,tO,"¬","\\lnot"),jk(Hk,Uk,tO,"⊤","\\top"),jk(Hk,Uk,tO,"⊥","\\bot"),jk(Hk,Uk,tO,"∅","\\emptyset"),jk(Hk,Vk,tO,"∅","\\varnothing"),jk(Hk,Uk,Kk,"α","\\alpha",!0),jk(Hk,Uk,Kk,"β","\\beta",!0),jk(Hk,Uk,Kk,"γ","\\gamma",!0),jk(Hk,Uk,Kk,"δ","\\delta",!0),jk(Hk,Uk,Kk,"ϵ","\\epsilon",!0),jk(Hk,Uk,Kk,"ζ","\\zeta",!0),jk(Hk,Uk,Kk,"η","\\eta",!0),jk(Hk,Uk,Kk,"θ","\\theta",!0),jk(Hk,Uk,Kk,"ι","\\iota",!0),jk(Hk,Uk,Kk,"κ","\\kappa",!0),jk(Hk,Uk,Kk,"λ","\\lambda",!0),jk(Hk,Uk,Kk,"μ","\\mu",!0),jk(Hk,Uk,Kk,"ν","\\nu",!0),jk(Hk,Uk,Kk,"ξ","\\xi",!0),jk(Hk,Uk,Kk,"ο","\\omicron",!0),jk(Hk,Uk,Kk,"π","\\pi",!0),jk(Hk,Uk,Kk,"ρ","\\rho",!0),jk(Hk,Uk,Kk,"σ","\\sigma",!0),jk(Hk,Uk,Kk,"τ","\\tau",!0),jk(Hk,Uk,Kk,"υ","\\upsilon",!0),jk(Hk,Uk,Kk,"ϕ","\\phi",!0),jk(Hk,Uk,Kk,"χ","\\chi",!0),jk(Hk,Uk,Kk,"ψ","\\psi",!0),jk(Hk,Uk,Kk,"ω","\\omega",!0),jk(Hk,Uk,Kk,"ε","\\varepsilon",!0),jk(Hk,Uk,Kk,"ϑ","\\vartheta",!0),jk(Hk,Uk,Kk,"ϖ","\\varpi",!0),jk(Hk,Uk,Kk,"ϱ","\\varrho",!0),jk(Hk,Uk,Kk,"ς","\\varsigma",!0),jk(Hk,Uk,Kk,"φ","\\varphi",!0),jk(Hk,Uk,Gk,"∗","*",!0),jk(Hk,Uk,Gk,"+","+"),jk(Hk,Uk,Gk,"−","-",!0),jk(Hk,Uk,Gk,"⋅","\\cdot",!0),jk(Hk,Uk,Gk,"∘","\\circ",!0),jk(Hk,Uk,Gk,"÷","\\div",!0),jk(Hk,Uk,Gk,"±","\\pm",!0),jk(Hk,Uk,Gk,"×","\\times",!0),jk(Hk,Uk,Gk,"∩","\\cap",!0),jk(Hk,Uk,Gk,"∪","\\cup",!0),jk(Hk,Uk,Gk,"∖","\\setminus",!0),jk(Hk,Uk,Gk,"∧","\\land"),jk(Hk,Uk,Gk,"∨","\\lor"),jk(Hk,Uk,Gk,"∧","\\wedge",!0),jk(Hk,Uk,Gk,"∨","\\vee",!0),jk(Hk,Uk,tO,"√","\\surd"),jk(Hk,Uk,Zk,"⟨","\\langle",!0),jk(Hk,Uk,Zk,"∣","\\lvert"),jk(Hk,Uk,Zk,"∥","\\lVert"),jk(Hk,Uk,Wk,"?","?"),jk(Hk,Uk,Wk,"!","!"),jk(Hk,Uk,Wk,"⟩","\\rangle",!0),jk(Hk,Uk,Wk,"∣","\\rvert"),jk(Hk,Uk,Wk,"∥","\\rVert"),jk(Hk,Uk,Qk,"=","="),jk(Hk,Uk,Qk,":",":"),jk(Hk,Uk,Qk,"≈","\\approx",!0),jk(Hk,Uk,Qk,"≅","\\cong",!0),jk(Hk,Uk,Qk,"≥","\\ge"),jk(Hk,Uk,Qk,"≥","\\geq",!0),jk(Hk,Uk,Qk,"←","\\gets"),jk(Hk,Uk,Qk,">","\\gt",!0),jk(Hk,Uk,Qk,"∈","\\in",!0),jk(Hk,Uk,Qk,"","\\@not"),jk(Hk,Uk,Qk,"⊂","\\subset",!0),jk(Hk,Uk,Qk,"⊃","\\supset",!0),jk(Hk,Uk,Qk,"⊆","\\subseteq",!0),jk(Hk,Uk,Qk,"⊇","\\supseteq",!0),jk(Hk,Vk,Qk,"⊈","\\nsubseteq",!0),jk(Hk,Vk,Qk,"⊉","\\nsupseteq",!0),jk(Hk,Uk,Qk,"⊨","\\models"),jk(Hk,Uk,Qk,"←","\\leftarrow",!0),jk(Hk,Uk,Qk,"≤","\\le"),jk(Hk,Uk,Qk,"≤","\\leq",!0),jk(Hk,Uk,Qk,"<","\\lt",!0),jk(Hk,Uk,Qk,"→","\\rightarrow",!0),jk(Hk,Uk,Qk,"→","\\to"),jk(Hk,Vk,Qk,"≱","\\ngeq",!0),jk(Hk,Vk,Qk,"≰","\\nleq",!0),jk(Hk,Uk,eO," ","\\ "),jk(Hk,Uk,eO," ","\\space"),jk(Hk,Uk,eO," ","\\nobreakspace"),jk($k,Uk,eO," ","\\ "),jk($k,Uk,eO," "," "),jk($k,Uk,eO," ","\\space"),jk($k,Uk,eO," ","\\nobreakspace"),jk(Hk,Uk,eO,null,"\\nobreak"),jk(Hk,Uk,eO,null,"\\allowbreak"),jk(Hk,Uk,Jk,",",","),jk(Hk,Uk,Jk,";",";"),jk(Hk,Vk,Gk,"⊼","\\barwedge",!0),jk(Hk,Vk,Gk,"⊻","\\veebar",!0),jk(Hk,Uk,Gk,"⊙","\\odot",!0),jk(Hk,Uk,Gk,"⊕","\\oplus",!0),jk(Hk,Uk,Gk,"⊗","\\otimes",!0),jk(Hk,Uk,tO,"∂","\\partial",!0),jk(Hk,Uk,Gk,"⊘","\\oslash",!0),jk(Hk,Vk,Gk,"⊚","\\circledcirc",!0),jk(Hk,Vk,Gk,"⊡","\\boxdot",!0),jk(Hk,Uk,Gk,"△","\\bigtriangleup"),jk(Hk,Uk,Gk,"▽","\\bigtriangledown"),jk(Hk,Uk,Gk,"†","\\dagger"),jk(Hk,Uk,Gk,"⋄","\\diamond"),jk(Hk,Uk,Gk,"⋆","\\star"),jk(Hk,Uk,Gk,"◃","\\triangleleft"),jk(Hk,Uk,Gk,"▹","\\triangleright"),jk(Hk,Uk,Zk,"{","\\{"),jk($k,Uk,tO,"{","\\{"),jk($k,Uk,tO,"{","\\textbraceleft"),jk(Hk,Uk,Wk,"}","\\}"),jk($k,Uk,tO,"}","\\}"),jk($k,Uk,tO,"}","\\textbraceright"),jk(Hk,Uk,Zk,"{","\\lbrace"),jk(Hk,Uk,Wk,"}","\\rbrace"),jk(Hk,Uk,Zk,"[","\\lbrack",!0),jk($k,Uk,tO,"[","\\lbrack",!0),jk(Hk,Uk,Wk,"]","\\rbrack",!0),jk($k,Uk,tO,"]","\\rbrack",!0),jk(Hk,Uk,Zk,"(","\\lparen",!0),jk(Hk,Uk,Wk,")","\\rparen",!0),jk($k,Uk,tO,"<","\\textless",!0),jk($k,Uk,tO,">","\\textgreater",!0),jk(Hk,Uk,Zk,"⌊","\\lfloor",!0),jk(Hk,Uk,Wk,"⌋","\\rfloor",!0),jk(Hk,Uk,Zk,"⌈","\\lceil",!0),jk(Hk,Uk,Wk,"⌉","\\rceil",!0),jk(Hk,Uk,tO,"\\","\\backslash"),jk(Hk,Uk,tO,"∣","|"),jk(Hk,Uk,tO,"∣","\\vert"),jk($k,Uk,tO,"|","\\textbar",!0),jk(Hk,Uk,tO,"∥","\\|"),jk(Hk,Uk,tO,"∥","\\Vert"),jk($k,Uk,tO,"∥","\\textbardbl"),jk($k,Uk,tO,"~","\\textasciitilde"),jk($k,Uk,tO,"\\","\\textbackslash"),jk($k,Uk,tO,"^","\\textasciicircum"),jk(Hk,Uk,Qk,"↑","\\uparrow",!0),jk(Hk,Uk,Qk,"⇑","\\Uparrow",!0),jk(Hk,Uk,Qk,"↓","\\downarrow",!0),jk(Hk,Uk,Qk,"⇓","\\Downarrow",!0),jk(Hk,Uk,Qk,"↕","\\updownarrow",!0),jk(Hk,Uk,Qk,"⇕","\\Updownarrow",!0),jk(Hk,Uk,Xk,"∐","\\coprod"),jk(Hk,Uk,Xk,"⋁","\\bigvee"),jk(Hk,Uk,Xk,"⋀","\\bigwedge"),jk(Hk,Uk,Xk,"⨄","\\biguplus"),jk(Hk,Uk,Xk,"⋂","\\bigcap"),jk(Hk,Uk,Xk,"⋃","\\bigcup"),jk(Hk,Uk,Xk,"∫","\\int"),jk(Hk,Uk,Xk,"∫","\\intop"),jk(Hk,Uk,Xk,"∬","\\iint"),jk(Hk,Uk,Xk,"∭","\\iiint"),jk(Hk,Uk,Xk,"∏","\\prod"),jk(Hk,Uk,Xk,"∑","\\sum"),jk(Hk,Uk,Xk,"⨂","\\bigotimes"),jk(Hk,Uk,Xk,"⨁","\\bigoplus"),jk(Hk,Uk,Xk,"⨀","\\bigodot"),jk(Hk,Uk,Xk,"∮","\\oint"),jk(Hk,Uk,Xk,"∯","\\oiint"),jk(Hk,Uk,Xk,"∰","\\oiiint"),jk(Hk,Uk,Xk,"⨆","\\bigsqcup"),jk(Hk,Uk,Xk,"∫","\\smallint"),jk($k,Uk,Yk,"…","\\textellipsis"),jk(Hk,Uk,Yk,"…","\\mathellipsis"),jk($k,Uk,Yk,"…","\\ldots",!0),jk(Hk,Uk,Yk,"…","\\ldots",!0),jk(Hk,Uk,Yk,"⋯","\\@cdots",!0),jk(Hk,Uk,Yk,"⋱","\\ddots",!0),jk(Hk,Uk,tO,"⋮","\\varvdots"),jk($k,Uk,tO,"⋮","\\varvdots"),jk(Hk,Uk,qk,"ˊ","\\acute"),jk(Hk,Uk,qk,"ˋ","\\grave"),jk(Hk,Uk,qk,"¨","\\ddot"),jk(Hk,Uk,qk,"~","\\tilde"),jk(Hk,Uk,qk,"ˉ","\\bar"),jk(Hk,Uk,qk,"˘","\\breve"),jk(Hk,Uk,qk,"ˇ","\\check"),jk(Hk,Uk,qk,"^","\\hat"),jk(Hk,Uk,qk,"⃗","\\vec"),jk(Hk,Uk,qk,"˙","\\dot"),jk(Hk,Uk,qk,"˚","\\mathring"),jk(Hk,Uk,Kk,"","\\@imath"),jk(Hk,Uk,Kk,"","\\@jmath"),jk(Hk,Uk,tO,"ı","ı"),jk(Hk,Uk,tO,"ȷ","ȷ"),jk($k,Uk,tO,"ı","\\i",!0),jk($k,Uk,tO,"ȷ","\\j",!0),jk($k,Uk,tO,"ß","\\ss",!0),jk($k,Uk,tO,"æ","\\ae",!0),jk($k,Uk,tO,"œ","\\oe",!0),jk($k,Uk,tO,"ø","\\o",!0),jk($k,Uk,tO,"Æ","\\AE",!0),jk($k,Uk,tO,"Œ","\\OE",!0),jk($k,Uk,tO,"Ø","\\O",!0),jk($k,Uk,qk,"ˊ","\\'"),jk($k,Uk,qk,"ˋ","\\`"),jk($k,Uk,qk,"ˆ","\\^"),jk($k,Uk,qk,"˜","\\~"),jk($k,Uk,qk,"ˉ","\\="),jk($k,Uk,qk,"˘","\\u"),jk($k,Uk,qk,"˙","\\."),jk($k,Uk,qk,"¸","\\c"),jk($k,Uk,qk,"˚","\\r"),jk($k,Uk,qk,"ˇ","\\v"),jk($k,Uk,qk,"¨",'\\"'),jk($k,Uk,qk,"˝","\\H"),jk($k,Uk,qk,"◯","\\textcircled");var rO={"--":!0,"---":!0,"``":!0,"''":!0};jk($k,Uk,tO,"–","--",!0),jk($k,Uk,tO,"–","\\textendash"),jk($k,Uk,tO,"—","---",!0),jk($k,Uk,tO,"—","\\textemdash"),jk($k,Uk,tO,"‘","`",!0),jk($k,Uk,tO,"‘","\\textquoteleft"),jk($k,Uk,tO,"’","'",!0),jk($k,Uk,tO,"’","\\textquoteright"),jk($k,Uk,tO,"“","``",!0),jk($k,Uk,tO,"“","\\textquotedblleft"),jk($k,Uk,tO,"”","''",!0),jk($k,Uk,tO,"”","\\textquotedblright"),jk(Hk,Uk,tO,"°","\\degree",!0),jk($k,Uk,tO,"°","\\degree"),jk($k,Uk,tO,"°","\\textdegree",!0),jk(Hk,Uk,tO,"£","\\pounds"),jk(Hk,Uk,tO,"£","\\mathsterling",!0),jk($k,Uk,tO,"£","\\pounds"),jk($k,Uk,tO,"£","\\textsterling",!0),jk(Hk,Vk,tO,"✠","\\maltese"),jk($k,Vk,tO,"✠","\\maltese");for(var nO='0123456789/@."',oO=0;oO<14;oO++){var iO=nO.charAt(oO);jk(Hk,Uk,tO,iO,iO)}for(var aO='0123456789!@*()-=+";:?/.,',sO=0;sO<25;sO++){var uO=aO.charAt(sO);jk($k,Uk,tO,uO,uO)}for(var lO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",cO=0;cO<52;cO++){var dO=lO.charAt(cO);jk(Hk,Uk,Kk,dO,dO),jk($k,Uk,tO,dO,dO)}jk(Hk,Vk,tO,"C","ℂ"),jk($k,Vk,tO,"C","ℂ"),jk(Hk,Vk,tO,"H","ℍ"),jk($k,Vk,tO,"H","ℍ"),jk(Hk,Vk,tO,"N","ℕ"),jk($k,Vk,tO,"N","ℕ"),jk(Hk,Vk,tO,"P","ℙ"),jk($k,Vk,tO,"P","ℙ"),jk(Hk,Vk,tO,"Q","ℚ"),jk($k,Vk,tO,"Q","ℚ"),jk(Hk,Vk,tO,"R","ℝ"),jk($k,Vk,tO,"R","ℝ"),jk(Hk,Vk,tO,"Z","ℤ"),jk($k,Vk,tO,"Z","ℤ"),jk(Hk,Uk,Kk,"h","ℎ"),jk($k,Uk,Kk,"h","ℎ");for(var fO="",hO=0;hO<52;hO++){var pO=lO.charAt(hO);jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56320+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56372+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56424+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56580+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56684+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56736+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56788+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56840+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56944+hO)),jk($k,Uk,tO,pO,fO),hO<26&&(jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56632+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56476+hO)),jk($k,Uk,tO,pO,fO))}jk(Hk,Uk,Kk,"k",fO=String.fromCharCode(55349,56668)),jk($k,Uk,tO,"k",fO);for(var gO=0;gO<10;gO++){var mO=gO.toString();jk(Hk,Uk,Kk,mO,fO=String.fromCharCode(55349,57294+gO)),jk($k,Uk,tO,mO,fO),jk(Hk,Uk,Kk,mO,fO=String.fromCharCode(55349,57314+gO)),jk($k,Uk,tO,mO,fO),jk(Hk,Uk,Kk,mO,fO=String.fromCharCode(55349,57324+gO)),jk($k,Uk,tO,mO,fO),jk(Hk,Uk,Kk,mO,fO=String.fromCharCode(55349,57334+gO)),jk($k,Uk,tO,mO,fO)}for(var vO="ÐÞþ",yO=0;yO<3;yO++){var bO=vO.charAt(yO);jk(Hk,Uk,Kk,bO,bO),jk($k,Uk,tO,bO,bO)}var wO=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],EO=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],xO=function(e,t,r){return zk[r][e]&&zk[r][e].replace&&(e=zk[r][e].replace),{value:e,metrics:fk(e,t,r)}},SO=function(e,t,r,n,o){var i,a=xO(e,t,r),s=a.metrics;if(e=a.value,s){var u=s.italic;("text"===r||n&&"mathit"===n.font)&&(u=0),i=new Fk(e,s.height,s.depth,u,s.skew,s.width,o)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+r+"'"),i=new Fk(e,0,0,0,0,0,o);if(n){i.maxFontSize=n.sizeMultiplier,n.style.isTight()&&i.classes.push("mtight");var l=n.getColor();l&&(i.style.color=l)}return i},CO=(e,t)=>{if(Sk(e.classes)!==Sk(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var o in t.style)if(t.style.hasOwnProperty(o)&&e.style[o]!==t.style[o])return!1;return!0},AO=function(e){for(var t=0,r=0,n=0,o=0;o<e.children.length;o++){var i=e.children[o];i.height>t&&(t=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>n&&(n=i.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},DO=function(e,t,r,n){var o=new kk(e,t,r,n);return AO(o),o},TO=(e,t,r,n)=>new kk(e,t,r,n),kO=function(e){var t=new uk(e);return AO(t),t},OO=function(e,t,r){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},NO={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},BO={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},FO={fontMap:NO,makeSymbol:SO,mathsym:function(e,t,r,n){return void 0===n&&(n=[]),"boldsymbol"===r.font&&xO(e,"Main-Bold",t).metrics?SO(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===zk[t][e].font?SO(e,"Main-Regular",t,r,n):SO(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},makeSpan:DO,makeSvgSpan:TO,makeLineSpan:function(e,t,r){var n=DO([e],[],t);return n.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=xk(n.height),n.maxFontSize=1,n},makeAnchor:function(e,t,r,n){var o=new Ok(e,t,r,n);return AO(o),o},makeFragment:kO,wrapFragment:function(e,t){return e instanceof uk?DO([],[e],t):e},makeVList:function(e,t){for(var{children:r,depth:n}=function(e){if("individualShift"===e.positionType){for(var t=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.depth,o=n,i=1;i<t.length;i++){var a=-t[i].shift-o-t[i].elem.depth,s=a-(t[i-1].elem.height+t[i-1].elem.depth);o+=a,r.push({type:"kern",size:s}),r.push(t[i])}return{children:r,depth:n}}var u;if("top"===e.positionType){for(var l=e.positionData,c=0;c<e.children.length;c++){var d=e.children[c];l-="kern"===d.type?d.size:d.elem.height+d.elem.depth}u=l}else if("bottom"===e.positionType)u=-e.positionData;else{var f=e.children[0];if("elem"!==f.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)u=-f.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");u=-f.elem.depth}}return{children:e.children,depth:u}}(e),o=0,i=0;i<r.length;i++){var a=r[i];if("elem"===a.type){var s=a.elem;o=Math.max(o,s.maxFontSize,s.height)}}o+=2;var u=DO(["pstrut"],[]);u.style.height=xk(o);for(var l=[],c=n,d=n,f=n,h=0;h<r.length;h++){var p=r[h];if("kern"===p.type)f+=p.size;else{var g=p.elem,m=p.wrapperClasses||[],v=p.wrapperStyle||{},y=DO(m,[u,g],void 0,v);y.style.top=xk(-o-f-g.depth),p.marginLeft&&(y.style.marginLeft=p.marginLeft),p.marginRight&&(y.style.marginRight=p.marginRight),l.push(y),f+=g.height+g.depth}c=Math.min(c,f),d=Math.max(d,f)}var b,w=DO(["vlist"],l);if(w.style.height=xk(d),c<0){var E=DO([],[]),x=DO(["vlist"],[E]);x.style.height=xk(-c);var S=DO(["vlist-s"],[new Fk("")]);b=[DO(["vlist-r"],[w,S]),DO(["vlist-r"],[x])]}else b=[DO(["vlist-r"],[w])];var C=DO(["vlist-t"],b);return 2===b.length&&C.classes.push("vlist-t2"),C.height=d,C.depth=-c,C},makeOrd:function(e,t,r){var n=e.mode,o=e.text,i=["mord"],a="math"===n||"text"===n&&t.font,s=a?t.font:t.fontFamily,u="",l="";if(55349===o.charCodeAt(0)&&([u,l]=function(e,t){var r=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,n="math"===t?0:1;if(119808<=r&&r<120484){var o=Math.floor((r-119808)/26);return[wO[o][2],wO[o][n]]}if(120782<=r&&r<=120831){var i=Math.floor((r-120782)/10);return[EO[i][2],EO[i][n]]}if(120485===r||120486===r)return[wO[0][2],wO[0][n]];if(120486<r&&r<120782)return["",""];throw new zT("Unsupported character: "+e)}(o,n)),u.length>0)return SO(o,u,n,t,i.concat(l));if(s){var c,d;if("boldsymbol"===s){var f=function(e,t,r,n,o){return"textord"!==o&&xO(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(o,n,0,0,r);c=f.fontName,d=[f.fontClass]}else a?(c=NO[s].fontName,d=[s]):(c=OO(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(xO(o,c,n).metrics)return SO(o,c,n,t,i.concat(d));if(rO.hasOwnProperty(o)&&"Typewriter"===c.slice(0,10)){for(var h=[],p=0;p<o.length;p++)h.push(SO(o[p],c,n,t,i.concat(d)));return kO(h)}}if("mathord"===r)return SO(o,"Math-Italic",n,t,i.concat(["mathnormal"]));if("textord"===r){var g=zk[n][o]&&zk[n][o].font;if("ams"===g){var m=OO("amsrm",t.fontWeight,t.fontShape);return SO(o,m,n,t,i.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==g&&g){var v=OO(g,t.fontWeight,t.fontShape);return SO(o,v,n,t,i.concat(v,t.fontWeight,t.fontShape))}var y=OO("textrm",t.fontWeight,t.fontShape);return SO(o,y,n,t,i.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+r+" in makeOrd")},makeGlue:(e,t)=>{var r=DO(["mspace"],[],t),n=Ek(e,t);return r.style.marginRight=xk(n),r},staticSvg:function(e,t){var[r,n,o]=BO[e],i=new Ik(r),a=new Mk([i],{width:xk(n),height:xk(o),style:"width:"+xk(n),viewBox:"0 0 "+1e3*n+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),s=TO(["overlay"],[a],t);return s.height=o,s.style.height=xk(o),s.style.width=xk(n),s},svgData:BO,tryCombineChars:e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof Fk&&n instanceof Fk&&CO(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e}},MO={number:3,unit:"mu"},IO={number:4,unit:"mu"},PO={number:5,unit:"mu"},RO={mord:{mop:MO,mbin:IO,mrel:PO,minner:MO},mop:{mord:MO,mop:MO,mrel:PO,minner:MO},mbin:{mord:IO,mop:IO,mopen:IO,minner:IO},mrel:{mord:PO,mop:PO,mopen:PO,minner:PO},mopen:{},mclose:{mop:MO,mbin:IO,mrel:PO,minner:MO},mpunct:{mord:MO,mop:MO,mrel:PO,mopen:MO,mclose:MO,mpunct:MO,minner:MO},minner:{mord:MO,mop:MO,mbin:IO,mrel:PO,mopen:MO,mpunct:MO,minner:MO}},LO={mord:{mop:MO},mop:{mord:MO,mop:MO},mbin:{},mrel:{},mopen:{},mclose:{mop:MO},mpunct:{},minner:{mop:MO}},_O={},zO={},jO={};function HO(e){for(var{type:t,names:r,props:n,handler:o,htmlBuilder:i,mathmlBuilder:a}=e,s={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:void 0===n.allowedInMath||n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:o},u=0;u<r.length;++u)_O[r[u]]=s;t&&(i&&(zO[t]=i),a&&(jO[t]=a))}function $O(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;HO({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var UO=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},VO=function(e){return"ordgroup"===e.type?e.body:[e]},qO=FO.makeSpan,GO=["leftmost","mbin","mopen","mrel","mop","mpunct"],WO=["rightmost","mrel","mclose","mpunct"],YO={display:rk.DISPLAY,text:rk.TEXT,script:rk.SCRIPT,scriptscript:rk.SCRIPTSCRIPT},KO={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},XO=function(e,t,r,n){void 0===n&&(n=[null,null]);for(var o=[],i=0;i<e.length;i++){var a=rN(e[i],t);if(a instanceof uk){var s=a.children;o.push(...s)}else o.push(a)}if(FO.tryCombineChars(o),!r)return o;var u=t;if(1===e.length){var l=e[0];"sizing"===l.type?u=t.havingSize(l.size):"styling"===l.type&&(u=t.havingStyle(YO[l.style]))}var c=qO([n[0]||"leftmost"],[],t),d=qO([n[1]||"rightmost"],[],t),f="root"===r;return ZO(o,(e,t)=>{var r=t.classes[0],n=e.classes[0];"mbin"===r&&WO.includes(n)?t.classes[0]="mord":"mbin"===n&&GO.includes(r)&&(e.classes[0]="mord")},{node:c},d,f),ZO(o,(e,t)=>{var r=eN(t),n=eN(e),o=r&&n?e.hasClass("mtight")?LO[r][n]:RO[r][n]:null;if(o)return FO.makeGlue(o,u)},{node:c},d,f),o},ZO=function e(t,r,n,o,i){o&&t.push(o);for(var a=0;a<t.length;a++){var s=t[a],u=JO(s);if(u)e(u.children,r,n,null,i);else{var l=!s.hasClass("mspace");if(l){var c=r(s,n.node);c&&(n.insertAfter?n.insertAfter(c):(t.unshift(c),a++))}l?n.node=s:i&&s.hasClass("newline")&&(n.node=qO(["leftmost"])),n.insertAfter=(e=>r=>{t.splice(e+1,0,r),a++})(a)}}o&&t.pop()},JO=function(e){return e instanceof uk||e instanceof Ok||e instanceof kk&&e.hasClass("enclosing")?e:null},QO=function e(t,r){var n=JO(t);if(n){var o=n.children;if(o.length){if("right"===r)return e(o[o.length-1],"right");if("left"===r)return e(o[0],"left")}}return t},eN=function(e,t){return e?(t&&(e=QO(e,t)),KO[e.classes[0]]||null):null},tN=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return qO(t.concat(r))},rN=function(e,t,r){if(!e)return qO();if(zO[e.type]){var n=zO[e.type](e,t);if(r&&t.size!==r.size){n=qO(t.sizingClasses(r),[n],t);var o=t.sizeMultiplier/r.sizeMultiplier;n.height*=o,n.depth*=o}return n}throw new zT("Got group of unknown type: '"+e.type+"'")};function nN(e,t){var r=qO(["base"],e,t),n=qO(["strut"]);return n.style.height=xk(r.height+r.depth),r.depth&&(n.style.verticalAlign=xk(-r.depth)),r.children.unshift(n),r}function oN(e,t){var r=null;1===e.length&&"tag"===e[0].type&&(r=e[0].tag,e=e[0].body);var n,o=XO(e,t,"root");2===o.length&&o[1].hasClass("tag")&&(n=o.pop());for(var i,a=[],s=[],u=0;u<o.length;u++)if(s.push(o[u]),o[u].hasClass("mbin")||o[u].hasClass("mrel")||o[u].hasClass("allowbreak")){for(var l=!1;u<o.length-1&&o[u+1].hasClass("mspace")&&!o[u+1].hasClass("newline");)u++,s.push(o[u]),o[u].hasClass("nobreak")&&(l=!0);l||(a.push(nN(s,t)),s=[])}else o[u].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(nN(s,t)),s=[]),a.push(o[u]));s.length>0&&a.push(nN(s,t)),r?((i=nN(XO(r,t,!0))).classes=["tag"],a.push(i)):n&&a.push(n);var c=qO(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),i){var d=i.children[0];d.style.height=xk(c.height+c.depth),c.depth&&(d.style.verticalAlign=xk(-c.depth))}return c}function iN(e){return new uk(e)}class aN{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Sk(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof sN&&this.children[r+1]instanceof sN){for(var n=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof sN;)n+=this.children[++r].toText();e.appendChild(new sN(n).toNode())}else e.appendChild(this.children[r].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=VT.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+VT.escape(Sk(this.classes))+'"'),e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</"+this.type+">"}toText(){return this.children.map(e=>e.toText()).join("")}}class sN{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return VT.escape(this.toText())}toText(){return this.text}}var uN={MathNode:aN,TextNode:sN,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?" ":e>=-.05556&&e<=-.05555?" ":e>=-.1667&&e<=-.1666?" ":e>=-.2223&&e<=-.2222?" ":e>=-.2778&&e<=-.2777?" ":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",xk(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+xk(this.width)+'"/>'}toText(){return this.character?this.character:" "}},newDocumentFragment:iN},lN=function(e,t,r){return!zk[t][e]||!zk[t][e].replace||55349===e.charCodeAt(0)||rO.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6))||(e=zk[t][e].replace),new uN.TextNode(e)},cN=function(e){return 1===e.length?e[0]:new uN.MathNode("mrow",e)},dN=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var n=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathsfit"===r)return"sans-serif-italic";if("mathfrak"===r)return"fraktur";if("mathscr"===r||"mathcal"===r)return"script";if("mathsf"===r)return"sans-serif";if("mathtt"===r)return"monospace";var o=e.text;return["\\imath","\\jmath"].includes(o)?null:(zk[n][o]&&zk[n][o].replace&&(o=zk[n][o].replace),fk(o,FO.fontMap[r].fontName,n)?FO.fontMap[r].variant:null)};function fN(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof sN&&"."===t.text}if("mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")){var r=e.children[0];return r instanceof sN&&","===r.text}return!1}var hN=function(e,t,r){if(1===e.length){var n=gN(e[0],t);return r&&n instanceof aN&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var o,i=[],a=0;a<e.length;a++){var s=gN(e[a],t);if(s instanceof aN&&o instanceof aN){if("mtext"===s.type&&"mtext"===o.type&&s.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...s.children);continue}if("mn"===s.type&&"mn"===o.type){o.children.push(...s.children);continue}if(fN(s)&&"mn"===o.type){o.children.push(...s.children);continue}if("mn"===s.type&&fN(o))s.children=[...o.children,...s.children],i.pop();else if(("msup"===s.type||"msub"===s.type)&&s.children.length>=1&&("mn"===o.type||fN(o))){var u=s.children[0];u instanceof aN&&"mn"===u.type&&(u.children=[...o.children,...u.children],i.pop())}else if("mi"===o.type&&1===o.children.length){var l=o.children[0];if(l instanceof sN&&"̸"===l.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var c=s.children[0];c instanceof sN&&c.text.length>0&&(c.text=c.text.slice(0,1)+"̸"+c.text.slice(1),i.pop())}}}i.push(s),o=s}return i},pN=function(e,t,r){return cN(hN(e,t,r))},gN=function(e,t){if(!e)return new uN.MathNode("mrow");if(jO[e.type])return jO[e.type](e,t);throw new zT("Got group of unknown type: '"+e.type+"'")};function mN(e,t,r,n,o){var i,a=hN(e,r);i=1===a.length&&a[0]instanceof aN&&["mrow","mtable"].includes(a[0].type)?a[0]:new uN.MathNode("mrow",a);var s=new uN.MathNode("annotation",[new uN.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var u=new uN.MathNode("semantics",[i,s]),l=new uN.MathNode("math",[u]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&l.setAttribute("display","block");var c=o?"katex":"katex-mathml";return FO.makeSpan([c],[l])}var vN=function(e){return new vk({style:e.displayMode?rk.DISPLAY:rk.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},yN=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=FO.makeSpan(r,[e])}return e},bN={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},wN={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},EN=function(e,t,r,n,o){var i,a=e.height+e.depth+r+n;if(/fbox|color|angl/.test(t)){if(i=FO.makeSpan(["stretchy",t],[],o),"fbox"===t){var s=o.color&&o.getColor();s&&(i.style.borderColor=s)}}else{var u=[];/^[bx]cancel$/.test(t)&&u.push(new Pk({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&u.push(new Pk({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var l=new Mk(u,{width:"100%",height:xk(a)});i=FO.makeSvgSpan([],[l],o)}return i.height=a,i.style.height=xk(a),i},xN=function(e){var t=new uN.MathNode("mo",[new uN.TextNode(bN[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},SN=function(e,t){var{span:r,minWidth:n,height:o}=function(){var r=4e5,n=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(n)){var o,i,a,s="ordgroup"===(h=e.base).type?h.body.length:1;if(s>5)"widehat"===n||"widecheck"===n?(o=420,r=2364,a=.42,i=n+"4"):(o=312,r=2340,a=.34,i="tilde4");else{var u=[1,1,2,2,3,3][s];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][u],o=[0,239,300,360,420][u],a=[0,.24,.3,.3,.36,.42][u],i=n+u):(r=[0,600,1033,2339,2340][u],o=[0,260,286,306,312][u],a=[0,.26,.286,.3,.306,.34][u],i="tilde"+u)}var l=new Ik(i),c=new Mk([l],{width:"100%",height:xk(a),viewBox:"0 0 "+r+" "+o,preserveAspectRatio:"none"});return{span:FO.makeSvgSpan([],[c],t),minWidth:0,height:a}}var d,f,h,p=[],g=wN[n],[m,v,y]=g,b=y/1e3,w=m.length;if(1===w)d=["hide-tail"],f=[g[3]];else if(2===w)d=["halfarrow-left","halfarrow-right"],f=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");d=["brace-left","brace-center","brace-right"],f=["xMinYMin","xMidYMin","xMaxYMin"]}for(var E=0;E<w;E++){var x=new Ik(m[E]),S=new Mk([x],{width:"400em",height:xk(b),viewBox:"0 0 "+r+" "+y,preserveAspectRatio:f[E]+" slice"}),C=FO.makeSvgSpan([d[E]],[S],t);if(1===w)return{span:C,minWidth:v,height:b};C.style.height=xk(b),p.push(C)}return{span:FO.makeSpan(["stretchy"],p,t),minWidth:v,height:b}}();return r.height=o,r.style.height=xk(o),n>0&&(r.style.minWidth=xk(n)),r};function CN(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function AN(e){var t=DN(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function DN(e){return e&&("atom"===e.type||_k.hasOwnProperty(e.type))?e:null}var TN=(e,t)=>{var r,n,o;e&&"supsub"===e.type?(r=(n=CN(e.base,"accent")).base,e.base=r,o=function(e){if(e instanceof kk)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(rN(e,t)),e.base=n):r=(n=CN(e,"accent")).base;var i=rN(r,t.havingCrampedStyle()),a=0;if(n.isShifty&&VT.isCharacterBox(r)){var s=VT.getBaseElem(r);a=Rk(rN(s,t.havingCrampedStyle())).skew}var u,l="\\c"===n.label,c=l?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(n.isStretchy)u=SN(n,t),u=FO.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:u,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+xk(2*a)+")",marginLeft:xk(2*a)}:void 0}]},t);else{var d,f;"\\vec"===n.label?(d=FO.staticSvg("vec",t),f=FO.svgData.vec[1]):((d=Rk(d=FO.makeOrd({mode:n.mode,text:n.label},t,"textord"))).italic=0,f=d.width,l&&(c+=d.depth)),u=FO.makeSpan(["accent-body"],[d]);var h="\\textcircled"===n.label;h&&(u.classes.push("accent-full"),c=i.height);var p=a;h||(p-=f/2),u.style.left=xk(p),"\\textcircled"===n.label&&(u.style.top=".2em"),u=FO.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-c},{type:"elem",elem:u}]},t)}var g=FO.makeSpan(["mord","accent"],[u],t);return o?(o.children[0]=g,o.height=Math.max(g.height,o.height),o.classes[0]="mord",o):g},kN=(e,t)=>{var r=e.isStretchy?xN(e.label):new uN.MathNode("mo",[lN(e.label,e.mode)]),n=new uN.MathNode("mover",[gN(e.base,t),r]);return n.setAttribute("accent","true"),n},ON=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));HO({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=UO(t[0]),n=!ON.test(e.funcName),o=!n||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:o,base:r}},htmlBuilder:TN,mathmlBuilder:kN}),HO({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return"math"===n&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:TN,mathmlBuilder:kN}),HO({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:o}},htmlBuilder:(e,t)=>{var r=rN(e.base,t),n=SN(e,t),o="\\utilde"===e.label?.12:0,i=FO.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:r}]},t);return FO.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=xN(e.label),n=new uN.MathNode("munder",[gN(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var NN=e=>{var t=new uN.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};HO({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:o}=e;return{type:"xArrow",mode:n.mode,label:o,body:t[0],below:r[0]}},htmlBuilder(e,t){var r,n=t.style,o=t.havingStyle(n.sup()),i=FO.wrapFragment(rN(e.body,o,t),t),a="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(a+"-arrow-pad"),e.below&&(o=t.havingStyle(n.sub()),(r=FO.wrapFragment(rN(e.below,o,t),t)).classes.push(a+"-arrow-pad"));var s,u=SN(e,t),l=-t.fontMetrics().axisHeight+.5*u.height,c=-t.fontMetrics().axisHeight-.5*u.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(c-=i.depth),r){var d=-t.fontMetrics().axisHeight+r.height+.5*u.height+.111;s=FO.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:u,shift:l},{type:"elem",elem:r,shift:d}]},t)}else s=FO.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:u,shift:l}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),FO.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){var r,n=xN(e.label);if(n.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var o=NN(gN(e.body,t));if(e.below){var i=NN(gN(e.below,t));r=new uN.MathNode("munderover",[n,i,o])}else r=new uN.MathNode("mover",[n,o])}else if(e.below){var a=NN(gN(e.below,t));r=new uN.MathNode("munder",[n,a])}else r=NN(),r=new uN.MathNode("mover",[n,r]);return r}});var BN=FO.makeSpan;function FN(e,t){var r=XO(e.body,t,!0);return BN([e.mclass],r,t)}function MN(e,t){var r,n=hN(e.body,t);return"minner"===e.mclass?r=new uN.MathNode("mpadded",n):"mord"===e.mclass?e.isCharacterBox?(r=n[0]).type="mi":r=new uN.MathNode("mi",n):(e.isCharacterBox?(r=n[0]).type="mo":r=new uN.MathNode("mo",n),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}HO({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,o=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:VO(o),isCharacterBox:VT.isCharacterBox(o)}},htmlBuilder:FN,mathmlBuilder:MN});var IN=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};HO({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:IN(t[0]),body:VO(t[1]),isCharacterBox:VT.isCharacterBox(t[1])}}}),HO({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var r,{parser:n,funcName:o}=e,i=t[1],a=t[0];r="\\stackrel"!==o?IN(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==o,body:VO(i)},u={type:"supsub",mode:a.mode,base:s,sup:"\\underset"===o?null:a,sub:"\\underset"===o?a:null};return{type:"mclass",mode:n.mode,mclass:r,body:[u],isCharacterBox:VT.isCharacterBox(u)}},htmlBuilder:FN,mathmlBuilder:MN}),HO({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:IN(t[0]),body:VO(t[0])}},htmlBuilder(e,t){var r=XO(e.body,t,!0),n=FO.makeSpan([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=hN(e.body,t),n=new uN.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var PN={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},RN=()=>({type:"styling",body:[],mode:"math",style:"display"}),LN=e=>"textord"===e.type&&"@"===e.text,_N=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;function zN(e,t,r){var n=PN[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var o={type:"atom",text:n,mode:"math",family:"rel"},i={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[o],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[i],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}HO({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=FO.wrapFragment(rN(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=xk(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new uN.MathNode("mrow",[gN(e.label,t)]);return(r=new uN.MathNode("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new uN.MathNode("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),HO({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=FO.wrapFragment(rN(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:(e,t)=>new uN.MathNode("mrow",[gN(e.fragment,t)])}),HO({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=CN(t[0],"ordgroup").body,o="",i=0;i<n.length;i++){o+=CN(n[i],"textord").text}var a,s=parseInt(o);if(isNaN(s))throw new zT("\\@char has non-numeric argument "+o);if(s<0||s>=1114111)throw new zT("\\@char with invalid code point "+o);return s<=65535?a=String.fromCharCode(s):(s-=65536,a=String.fromCharCode(55296+(s>>10),56320+(1023&s))),{type:"textord",mode:r.mode,text:a}}});var jN=(e,t)=>{var r=XO(e.body,t.withColor(e.color),!1);return FO.makeFragment(r)},HN=(e,t)=>{var r=hN(e.body,t.withColor(e.color)),n=new uN.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};HO({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=CN(t[0],"color-token").color,o=t[1];return{type:"color",mode:r.mode,color:n,body:VO(o)}},htmlBuilder:jN,mathmlBuilder:HN}),HO({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,o=CN(t[0],"color-token").color;r.gullet.macros.set("\\current@color",o);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:o,body:i}},htmlBuilder:jN,mathmlBuilder:HN}),HO({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,o="["===n.gullet.future().text?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:o&&CN(o,"size").value}},htmlBuilder(e,t){var r=FO.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=xk(Ek(e.size,t)))),r},mathmlBuilder(e,t){var r=new uN.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",xk(Ek(e.size,t)))),r}});var $N={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},UN=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new zT("Expected a control sequence",e);return t},VN=(e,t,r,n)=>{var o=e.gullet.macros.get(r.text);null==o&&(r.noexpand=!0,o={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,o,n)};HO({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if($N[n.text])return"\\global"!==r&&"\\\\globallong"!==r||(n.text=$N[n.text]),CN(t.parseFunction(),"internal");throw new zT("Invalid token after macro prefix",n)}}),HO({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),o=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new zT("Expected a control sequence",n);for(var i,a=0,s=[[]];"{"!==t.gullet.future().text;)if("#"===(n=t.gullet.popToken()).text){if("{"===t.gullet.future().text){i=t.gullet.future(),s[a].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new zT('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new zT('Argument number "'+n.text+'" out of order');a++,s.push([])}else{if("EOF"===n.text)throw new zT("Expected a macro definition");s[a].push(n.text)}var{tokens:u}=t.gullet.consumeArg();return i&&u.unshift(i),"\\edef"!==r&&"\\xdef"!==r||(u=t.gullet.expandTokens(u)).reverse(),t.gullet.macros.set(o,{tokens:u,numArgs:a,delimiters:s},r===$N[r]),{type:"internal",mode:t.mode}}}),HO({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=UN(t.gullet.popToken());t.gullet.consumeSpaces();var o=(e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t})(t);return VN(t,n,o,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),HO({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=UN(t.gullet.popToken()),o=t.gullet.popToken(),i=t.gullet.popToken();return VN(t,n,i,"\\\\globalfuture"===r),t.gullet.pushToken(i),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var qN=function(e,t,r){var n=fk(zk.math[e]&&zk.math[e].replace||e,t,r);if(!n)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return n},GN=function(e,t,r,n){var o=r.havingBaseStyle(t),i=FO.makeSpan(n.concat(o.sizingClasses(r)),[e],r),a=o.sizeMultiplier/r.sizeMultiplier;return i.height*=a,i.depth*=a,i.maxFontSize=o.sizeMultiplier,i},WN=function(e,t,r){var n=t.havingBaseStyle(r),o=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=xk(o),e.height-=o,e.depth+=o},YN=function(e,t,r,n,o,i){var a=function(e,t,r,n){return FO.makeSymbol(e,"Size"+t+"-Regular",r,n)}(e,t,o,n),s=GN(FO.makeSpan(["delimsizing","size"+t],[a],n),rk.TEXT,n,i);return r&&WN(s,n,rk.TEXT),s},KN=function(e,t,r){var n;return n="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:FO.makeSpan(["delimsizinginner",n],[FO.makeSpan([],[FO.makeSymbol(e,t,r)])])}},XN=function(e,t,r){var n=lk["Size4-Regular"][e.charCodeAt(0)]?lk["Size4-Regular"][e.charCodeAt(0)][4]:lk["Size1-Regular"][e.charCodeAt(0)][4],o=new Ik("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),i=new Mk([o],{width:xk(n),height:xk(t),style:"width:"+xk(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=FO.makeSvgSpan([],[i],r);return a.height=t,a.style.height=xk(t),a.style.width=xk(n),{type:"elem",elem:a}},ZN={type:"kern",size:-.008},JN=["|","\\lvert","\\rvert","\\vert"],QN=["\\|","\\lVert","\\rVert","\\Vert"],eB=function(e,t,r,n,o,i){var a,s,u,l,c="",d=0;a=u=l=e,s=null;var f="Size1-Regular";"\\uparrow"===e?u=l="⏐":"\\Uparrow"===e?u=l="‖":"\\downarrow"===e?a=u="⏐":"\\Downarrow"===e?a=u="‖":"\\updownarrow"===e?(a="\\uparrow",u="⏐",l="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",u="‖",l="\\Downarrow"):JN.includes(e)?(u="∣",c="vert",d=333):QN.includes(e)?(u="∥",c="doublevert",d=556):"["===e||"\\lbrack"===e?(a="⎡",u="⎢",l="⎣",f="Size4-Regular",c="lbrack",d=667):"]"===e||"\\rbrack"===e?(a="⎤",u="⎥",l="⎦",f="Size4-Regular",c="rbrack",d=667):"\\lfloor"===e||"⌊"===e?(u=a="⎢",l="⎣",f="Size4-Regular",c="lfloor",d=667):"\\lceil"===e||"⌈"===e?(a="⎡",u=l="⎢",f="Size4-Regular",c="lceil",d=667):"\\rfloor"===e||"⌋"===e?(u=a="⎥",l="⎦",f="Size4-Regular",c="rfloor",d=667):"\\rceil"===e||"⌉"===e?(a="⎤",u=l="⎥",f="Size4-Regular",c="rceil",d=667):"("===e||"\\lparen"===e?(a="⎛",u="⎜",l="⎝",f="Size4-Regular",c="lparen",d=875):")"===e||"\\rparen"===e?(a="⎞",u="⎟",l="⎠",f="Size4-Regular",c="rparen",d=875):"\\{"===e||"\\lbrace"===e?(a="⎧",s="⎨",l="⎩",u="⎪",f="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="⎫",s="⎬",l="⎭",u="⎪",f="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(a="⎧",l="⎩",u="⎪",f="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(a="⎫",l="⎭",u="⎪",f="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(a="⎧",l="⎭",u="⎪",f="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(a="⎫",l="⎩",u="⎪",f="Size4-Regular");var h=qN(a,f,o),p=h.height+h.depth,g=qN(u,f,o),m=g.height+g.depth,v=qN(l,f,o),y=v.height+v.depth,b=0,w=1;if(null!==s){var E=qN(s,f,o);b=E.height+E.depth,w=2}var x=p+y+b,S=x+Math.max(0,Math.ceil((t-x)/(w*m)))*w*m,C=n.fontMetrics().axisHeight;r&&(C*=n.sizeMultiplier);var A=S/2-C,D=[];if(c.length>0){var T=S-p-y,k=Math.round(1e3*S),O=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(c,Math.round(1e3*T)),N=new Ik(c,O),B=(d/1e3).toFixed(3)+"em",F=(k/1e3).toFixed(3)+"em",M=new Mk([N],{width:B,height:F,viewBox:"0 0 "+d+" "+k}),I=FO.makeSvgSpan([],[M],n);I.height=k/1e3,I.style.width=B,I.style.height=F,D.push({type:"elem",elem:I})}else{if(D.push(KN(l,f,o)),D.push(ZN),null===s){var P=S-p-y+.016;D.push(XN(u,P,n))}else{var R=(S-p-y-b)/2+.016;D.push(XN(u,R,n)),D.push(ZN),D.push(KN(s,f,o)),D.push(ZN),D.push(XN(u,R,n))}D.push(ZN),D.push(KN(a,f,o))}var L=n.havingBaseStyle(rk.TEXT),_=FO.makeVList({positionType:"bottom",positionData:A,children:D},L);return GN(FO.makeSpan(["delimsizing","mult"],[_],L),rk.TEXT,n,i)},tB=.08,rB=function(e,t,r,n,o){var i=function(e,t,r){t*=1e3;var n="";switch(e){case"sqrtMain":n=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,ak);break;case"sqrtSize1":n=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,ak);break;case"sqrtSize2":n=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,ak);break;case"sqrtSize3":n=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,ak);break;case"sqrtSize4":n=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,ak);break;case"sqrtTall":n=function(e,t,r){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(r-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,ak,r)}return n}(e,n,r),a=new Ik(e,i),s=new Mk([a],{width:"400em",height:xk(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return FO.makeSvgSpan(["hide-tail"],[s],o)},nB=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],oB=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],iB=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],aB=[0,1.2,1.8,2.4,3],sB=[{type:"small",style:rk.SCRIPTSCRIPT},{type:"small",style:rk.SCRIPT},{type:"small",style:rk.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],uB=[{type:"small",style:rk.SCRIPTSCRIPT},{type:"small",style:rk.SCRIPT},{type:"small",style:rk.TEXT},{type:"stack"}],lB=[{type:"small",style:rk.SCRIPTSCRIPT},{type:"small",style:rk.SCRIPT},{type:"small",style:rk.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],cB=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},dB=function(e,t,r,n){for(var o=Math.min(2,3-n.style.size);o<r.length&&"stack"!==r[o].type;o++){var i=qN(e,cB(r[o]),"math"),a=i.height+i.depth;if("small"===r[o].type&&(a*=n.havingBaseStyle(r[o].style).sizeMultiplier),a>t)return r[o]}return r[r.length-1]},fB=function(e,t,r,n,o,i){var a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=iB.includes(e)?sB:nB.includes(e)?lB:uB;var s=dB(e,t,a,n);return"small"===s.type?function(e,t,r,n,o,i){var a=FO.makeSymbol(e,"Main-Regular",o,n),s=GN(a,t,n,i);return r&&WN(s,n,t),s}(e,s.style,r,n,o,i):"large"===s.type?YN(e,s.size,r,n,o,i):eB(e,t,r,n,o,i)},hB={sqrtImage:function(e,t){var r,n,o=t.havingBaseSizing(),i=dB("\\surd",e*o.sizeMultiplier,lB,o),a=o.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),u=0,l=0,c=0;return"small"===i.type?(e<1?a=1:e<1.4&&(a=.7),l=(1+s)/a,(r=rB("sqrtMain",u=(1+s+tB)/a,c=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",n=.833/a):"large"===i.type?(c=1080*aB[i.size],l=(aB[i.size]+s)/a,u=(aB[i.size]+s+tB)/a,(r=rB("sqrtSize"+i.size,u,c,s,t)).style.minWidth="1.02em",n=1/a):(u=e+s+tB,l=e+s,c=Math.floor(1e3*e+s)+80,(r=rB("sqrtTall",u,c,s,t)).style.minWidth="0.742em",n=1.056),r.height=l,r.style.height=xk(u),{span:r,advanceWidth:n,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*a}},sizedDelim:function(e,t,r,n,o){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),nB.includes(e)||iB.includes(e))return YN(e,t,!1,r,n,o);if(oB.includes(e))return eB(e,aB[t],!1,r,n,o);throw new zT("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:aB,customSizedDelim:fB,leftRightDelim:function(e,t,r,n,o,i){var a=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,u=Math.max(t-a,r+a),l=Math.max(u/500*901,2*u-s);return fB(e,l,!0,n,o,i)}},pB={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},gB=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function mB(e,t){var r=DN(e);if(r&&gB.includes(r.text))return r;throw new zT(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function vB(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}HO({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=mB(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:pB[e.funcName].size,mclass:pB[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?FO.makeSpan([e.mclass]):hB.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(lN(e.delim,e.mode));var r=new uN.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=xk(hB.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}}),HO({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new zT("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:mB(t[0],e).text,color:r}}}),HO({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=mB(t[0],e),n=e.parser;++n.leftrightDepth;var o=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=CN(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:o,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{vB(e);for(var r,n,o=XO(e.body,t,!0,["mopen","mclose"]),i=0,a=0,s=!1,u=0;u<o.length;u++)o[u].isMiddle?s=!0:(i=Math.max(o[u].height,i),a=Math.max(o[u].depth,a));if(i*=t.sizeMultiplier,a*=t.sizeMultiplier,r="."===e.left?tN(t,["mopen"]):hB.leftRightDelim(e.left,i,a,t,e.mode,["mopen"]),o.unshift(r),s)for(var l=1;l<o.length;l++){var c=o[l].isMiddle;c&&(o[l]=hB.leftRightDelim(c.delim,i,a,c.options,e.mode,[]))}if("."===e.right)n=tN(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;n=hB.leftRightDelim(e.right,i,a,d,e.mode,["mclose"])}return o.push(n),FO.makeSpan(["minner"],o,t)},mathmlBuilder:(e,t)=>{vB(e);var r=hN(e.body,t);if("."!==e.left){var n=new uN.MathNode("mo",[lN(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if("."!==e.right){var o=new uN.MathNode("mo",[lN(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),r.push(o)}return cN(r)}}),HO({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=mB(t[0],e);if(!e.parser.leftrightDepth)throw new zT("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if("."===e.delim)r=tN(t,[]);else{r=hB.sizedDelim(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r="\\vert"===e.delim||"|"===e.delim?lN("|","text"):lN(e.delim,e.mode),n=new uN.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var yB=(e,t)=>{var r,n,o=FO.wrapFragment(rN(e.body,t),t),i=e.label.slice(1),a=t.sizeMultiplier,s=0,u=VT.isCharacterBox(e.body);if("sout"===i)(r=FO.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/a,s=-.5*t.fontMetrics().xHeight;else if("phase"===i){var l=Ek({number:.6,unit:"pt"},t),c=Ek({number:.35,unit:"ex"},t);a/=t.havingBaseSizing().sizeMultiplier;var d=o.height+o.depth+l+c;o.style.paddingLeft=xk(d/2+l);var f=Math.floor(1e3*d*a),h=function(e){return"M400000 "+e+" H0 L"+e/2+" 0 l65 45 L145 "+(e-80)+" H400000z"}(f),p=new Mk([new Ik("phase",h)],{width:"400em",height:xk(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});(r=FO.makeSvgSpan(["hide-tail"],[p],t)).style.height=xk(d),s=o.depth+l+c}else{/cancel/.test(i)?u||o.classes.push("cancel-pad"):"angl"===i?o.classes.push("anglpad"):o.classes.push("boxpad");var g=0,m=0,v=0;/box/.test(i)?(v=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),m=g=t.fontMetrics().fboxsep+("colorbox"===i?0:v)):"angl"===i?(g=4*(v=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),m=Math.max(0,.25-o.depth)):m=g=u?.2:0,r=EN(o,i,g,m,t),/fbox|boxed|fcolorbox/.test(i)?(r.style.borderStyle="solid",r.style.borderWidth=xk(v)):"angl"===i&&.049!==v&&(r.style.borderTopWidth=xk(v),r.style.borderRightWidth=xk(v)),s=o.depth+m,e.backgroundColor&&(r.style.backgroundColor=e.backgroundColor,e.borderColor&&(r.style.borderColor=e.borderColor))}if(e.backgroundColor)n=FO.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:s},{type:"elem",elem:o,shift:0}]},t);else{var y=/cancel|phase/.test(i)?["svg-align"]:[];n=FO.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:r,shift:s,wrapperClasses:y}]},t)}return/cancel/.test(i)&&(n.height=o.height,n.depth=o.depth),/cancel/.test(i)&&!u?FO.makeSpan(["mord","cancel-lap"],[n],t):FO.makeSpan(["mord"],[n],t)},bB=(e,t)=>{var r=0,n=new uN.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[gN(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};HO({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:o}=e,i=CN(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:n.mode,label:o,backgroundColor:i,body:a}},htmlBuilder:yB,mathmlBuilder:bB}),HO({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:o}=e,i=CN(t[0],"color-token").color,a=CN(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:o,backgroundColor:a,borderColor:i,body:s}},htmlBuilder:yB,mathmlBuilder:bB}),HO({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),HO({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,o=t[0];return{type:"enclose",mode:r.mode,label:n,body:o}},htmlBuilder:yB,mathmlBuilder:bB}),HO({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var wB={};function EB(e){for(var{type:t,names:r,props:n,handler:o,htmlBuilder:i,mathmlBuilder:a}=e,s={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},u=0;u<r.length;++u)wB[r[u]]=s;i&&(zO[t]=i),a&&(jO[t]=a)}var xB={};function SB(e,t){xB[e]=t}function CB(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for("\\relax"===r&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);"\\hline"===r||"\\hdashline"===r;)e.consume(),t.push("\\hdashline"===r),e.consumeSpaces(),r=e.fetch().text;return t}var AB=e=>{if(!e.parser.settings.displayMode)throw new zT("{"+e.envName+"} can be used only in display mode.")};function DB(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function TB(e,t,r){var{hskipBeforeAndAfter:n,addJot:o,cols:i,arraystretch:a,colSeparationType:s,autoTag:u,singleRow:l,emptySingleRow:c,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!a){var h=e.gullet.expandMacroAsText("\\arraystretch");if(null==h)a=1;else if(!(a=parseFloat(h))||a<0)throw new zT("Invalid \\arraystretch: "+h)}e.gullet.beginGroup();var p=[],g=[p],m=[],v=[],y=null!=u?[]:void 0;function b(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function w(){y&&(e.gullet.macros.get("\\df@tag")?(y.push(e.subparse([new _T("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):y.push(Boolean(u)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(b(),v.push(CB(e));;){var E=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),E={type:"ordgroup",mode:e.mode,body:E},r&&(E={type:"styling",mode:e.mode,style:r,body:[E]}),p.push(E);var x=e.fetch().text;if("&"===x){if(d&&p.length===d){if(l||s)throw new zT("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===x){w(),1===p.length&&"styling"===E.type&&0===E.body[0].body.length&&(g.length>1||!c)&&g.pop(),v.length<g.length+1&&v.push([]);break}if("\\\\"!==x)throw new zT("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var S=void 0;" "!==e.gullet.future().text&&(S=e.parseSizeGroup(!0)),m.push(S?S.value:null),w(),v.push(CB(e)),p=[],g.push(p),b()}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:o,arraystretch:a,body:g,cols:i,rowGaps:m,hskipBeforeAndAfter:n,hLinesBeforeRow:v,colSeparationType:s,tags:y,leqno:f}}function kB(e){return"d"===e.slice(0,1)?"display":"text"}var OB=function(e,t){var r,n,o=e.body.length,i=e.hLinesBeforeRow,a=0,s=new Array(o),u=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),c=1/t.fontMetrics().ptPerEm,d=5*c;e.colSeparationType&&"small"===e.colSeparationType&&(d=t.havingStyle(rk.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var f="CD"===e.colSeparationType?Ek({number:3,unit:"ex"},t):12*c,h=3*c,p=e.arraystretch*f,g=.7*p,m=.3*p,v=0;function y(e){for(var t=0;t<e.length;++t)t>0&&(v+=.25),u.push({pos:v,isDashed:e[t]})}for(y(i[0]),r=0;r<e.body.length;++r){var b=e.body[r],w=g,E=m;a<b.length&&(a=b.length);var x=new Array(b.length);for(n=0;n<b.length;++n){var S=rN(b[n],t);E<S.depth&&(E=S.depth),w<S.height&&(w=S.height),x[n]=S}var C=e.rowGaps[r],A=0;C&&(A=Ek(C,t))>0&&(E<(A+=m)&&(E=A),A=0),e.addJot&&(E+=h),x.height=w,x.depth=E,v+=w,x.pos=v,v+=E+A,s[r]=x,y(i[r+1])}var D,T,k=v/2+t.fontMetrics().axisHeight,O=e.cols||[],N=[],B=[];if(e.tags&&e.tags.some(e=>e))for(r=0;r<o;++r){var F=s[r],M=F.pos-k,I=e.tags[r],P=void 0;(P=!0===I?FO.makeSpan(["eqn-num"],[],t):!1===I?FO.makeSpan([],[],t):FO.makeSpan([],XO(I,t,!0),t)).depth=F.depth,P.height=F.height,B.push({type:"elem",elem:P,shift:M})}for(n=0,T=0;n<a||T<O.length;++n,++T){for(var R=O[T]||{},L=!0;"separator"===R.type;){if(L||((D=FO.makeSpan(["arraycolsep"],[])).style.width=xk(t.fontMetrics().doubleRuleSep),N.push(D)),"|"!==R.separator&&":"!==R.separator)throw new zT("Invalid separator type: "+R.separator);var _="|"===R.separator?"solid":"dashed",z=FO.makeSpan(["vertical-separator"],[],t);z.style.height=xk(v),z.style.borderRightWidth=xk(l),z.style.borderRightStyle=_,z.style.margin="0 "+xk(-l/2);var j=v-k;j&&(z.style.verticalAlign=xk(-j)),N.push(z),R=O[++T]||{},L=!1}if(!(n>=a)){var H=void 0;(n>0||e.hskipBeforeAndAfter)&&0!==(H=VT.deflt(R.pregap,d))&&((D=FO.makeSpan(["arraycolsep"],[])).style.width=xk(H),N.push(D));var $=[];for(r=0;r<o;++r){var U=s[r],V=U[n];if(V){var q=U.pos-k;V.depth=U.depth,V.height=U.height,$.push({type:"elem",elem:V,shift:q})}}$=FO.makeVList({positionType:"individualShift",children:$},t),$=FO.makeSpan(["col-align-"+(R.align||"c")],[$]),N.push($),(n<a-1||e.hskipBeforeAndAfter)&&0!==(H=VT.deflt(R.postgap,d))&&((D=FO.makeSpan(["arraycolsep"],[])).style.width=xk(H),N.push(D))}}if(s=FO.makeSpan(["mtable"],N),u.length>0){for(var G=FO.makeLineSpan("hline",t,l),W=FO.makeLineSpan("hdashline",t,l),Y=[{type:"elem",elem:s,shift:0}];u.length>0;){var K=u.pop(),X=K.pos-k;K.isDashed?Y.push({type:"elem",elem:W,shift:X}):Y.push({type:"elem",elem:G,shift:X})}s=FO.makeVList({positionType:"individualShift",children:Y},t)}if(0===B.length)return FO.makeSpan(["mord"],[s],t);var Z=FO.makeVList({positionType:"individualShift",children:B},t);return Z=FO.makeSpan(["tag"],[Z],t),FO.makeFragment([s,Z])},NB={c:"center ",l:"left ",r:"right "},BB=function(e,t){for(var r=[],n=new uN.MathNode("mtd",[],["mtr-glue"]),o=new uN.MathNode("mtd",[],["mml-eqn-num"]),i=0;i<e.body.length;i++){for(var a=e.body[i],s=[],u=0;u<a.length;u++)s.push(new uN.MathNode("mtd",[gN(a[u],t)]));e.tags&&e.tags[i]&&(s.unshift(n),s.push(n),e.leqno?s.unshift(o):s.push(o)),r.push(new uN.MathNode("mtr",s))}var l=new uN.MathNode("mtable",r),c=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute("rowspacing",xk(c));var d="",f="";if(e.cols&&e.cols.length>0){var h=e.cols,p="",g=!1,m=0,v=h.length;"separator"===h[0].type&&(d+="top ",m=1),"separator"===h[h.length-1].type&&(d+="bottom ",v-=1);for(var y=m;y<v;y++)"align"===h[y].type?(f+=NB[h[y].align],g&&(p+="none "),g=!0):"separator"===h[y].type&&g&&(p+="|"===h[y].separator?"solid ":"dashed ",g=!1);l.setAttribute("columnalign",f.trim()),/[sd]/.test(p)&&l.setAttribute("columnlines",p.trim())}if("align"===e.colSeparationType){for(var b=e.cols||[],w="",E=1;E<b.length;E++)w+=E%2?"0em ":"1em ";l.setAttribute("columnspacing",w.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?l.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?l.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?l.setAttribute("columnspacing","0.5em"):l.setAttribute("columnspacing","1em");var x="",S=e.hLinesBeforeRow;d+=S[0].length>0?"left ":"",d+=S[S.length-1].length>0?"right ":"";for(var C=1;C<S.length-1;C++)x+=0===S[C].length?"none ":S[C][0]?"dashed ":"solid ";return/[sd]/.test(x)&&l.setAttribute("rowlines",x.trim()),""!==d&&(l=new uN.MathNode("menclose",[l])).setAttribute("notation",d.trim()),e.arraystretch&&e.arraystretch<1&&(l=new uN.MathNode("mstyle",[l])).setAttribute("scriptlevel","1"),l},FB=function(e,t){-1===e.envName.indexOf("ed")&&AB(e);var r,n=[],o=e.envName.indexOf("at")>-1?"alignat":"align",i="split"===e.envName,a=TB(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:DB(e.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,u={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var l="",c=0;c<t[0].body.length;c++){l+=CN(t[0].body[c],"textord").text}r=Number(l),s=2*r}var d=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var n=CN(e[t],"styling");CN(n.body[0],"ordgroup").body.unshift(u)}if(d)s<e.length&&(s=e.length);else{var o=e.length/2;if(r<o)throw new zT("Too many math in a row: expected "+r+", but got "+o,e[0])}});for(var f=0;f<s;++f){var h="r",p=0;f%2==1?h="l":f>0&&d&&(p=1),n[f]={type:"align",align:h,pregap:p,postgap:0}}return a.colSeparationType=d?"align":"alignat",a};EB({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=(DN(t[0])?[t[0]]:CN(t[0],"ordgroup").body).map(function(e){var t=AN(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new zT("Unknown column alignment: "+t,e)}),n={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return TB(e.parser,n,kB(e.envName))},htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var o=e.parser;if(o.consumeSpaces(),"["===o.fetch().text){if(o.consume(),o.consumeSpaces(),r=o.fetch().text,-1==="lcr".indexOf(r))throw new zT("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),n.cols=[{type:"align",align:r}]}}var i=TB(e.parser,n,kB(e.envName)),a=Math.max(0,...i.body.map(e=>e.length));return i.cols=new Array(a).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=TB(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=(DN(t[0])?[t[0]]:CN(t[0],"ordgroup").body).map(function(e){var t=AN(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new zT("Unknown column alignment: "+t,e)});if(r.length>1)throw new zT("{subarray} can contain only one column");var n={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((n=TB(e.parser,n,"script")).body.length>0&&n.body[0].length>1)throw new zT("{subarray} can contain only one column");return n},htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=TB(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},kB(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:FB,htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&AB(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:DB(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return TB(e.parser,t,"display")},htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:FB,htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){AB(e);var t={autoTag:DB(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return TB(e.parser,t,"display")},htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(AB(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if("&"!==r&&"\\\\"!==r){if("\\end"===r){0===t[t.length-1].length&&t.pop();break}throw new zT("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var n=[],o=[n],i=0;i<t.length;i++){for(var a=t[i],s=RN(),u=0;u<a.length;u++)if(LN(a[u])){n.push(s);var l=AN(a[u+=1]).text,c=new Array(2);if(c[0]={type:"ordgroup",mode:"math",body:[]},c[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(l)>-1);else{if(!("<>AV".indexOf(l)>-1))throw new zT('Expected one of "<>AV=|." after @',a[u]);for(var d=0;d<2;d++){for(var f=!0,h=u+1;h<a.length;h++){if(_N(a[h],l)){f=!1,u=h;break}if(LN(a[h]))throw new zT("Missing a "+l+" character to complete a CD arrow.",a[h]);c[d].body.push(a[h])}if(f)throw new zT("Missing a "+l+" character to complete a CD arrow.",a[u])}}var p={type:"styling",body:[zN(l,c,e)],mode:"math",style:"display"};n.push(p),s=RN()}else s.body.push(a[u]);i%2==0?n.push(s):n.shift(),n=[],o.push(n)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(o[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(o.length+1).fill([])}}(e.parser)),htmlBuilder:OB,mathmlBuilder:BB}),SB("\\nonumber","\\gdef\\@eqnsw{0}"),SB("\\notag","\\nonumber"),HO({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new zT(e.funcName+" valid only within array environment")}});var MB=wB;HO({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,o=t[0];if("ordgroup"!==o.type)throw new zT("Invalid environment name",o);for(var i="",a=0;a<o.body.length;++a)i+=CN(o.body[a],"textord").text;if("\\begin"===n){if(!MB.hasOwnProperty(i))throw new zT("No such environment: "+i,o);var s=MB[i],{args:u,optArgs:l}=r.parseArguments("\\begin{"+i+"}",s),c={mode:r.mode,envName:i,parser:r},d=s.handler(c,u,l);r.expect("\\end",!1);var f=r.nextToken,h=CN(r.parseFunction(),"environment");if(h.name!==i)throw new zT("Mismatch: \\begin{"+i+"} matched by \\end{"+h.name+"}",f);return d}return{type:"environment",mode:r.mode,name:i,nameGroup:o}}});var IB=(e,t)=>{var r=e.font,n=t.withFont(r);return rN(e.body,n)},PB=(e,t)=>{var r=e.font,n=t.withFont(r);return gN(e.body,n)},RB={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};HO({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=UO(t[0]),i=n;return i in RB&&(i=RB[i]),{type:"font",mode:r.mode,font:i.slice(1),body:o}},htmlBuilder:IB,mathmlBuilder:PB}),HO({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0],o=VT.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:IN(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:o}}}),HO({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:o}=e,{mode:i}=r,a=r.parseExpression(!0,o);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:a}}},htmlBuilder:IB,mathmlBuilder:PB});var LB=(e,t)=>{var r=t;return"display"===e?r=r.id>=rk.SCRIPT.id?r.text():rk.DISPLAY:"text"===e&&r.size===rk.DISPLAY.size?r=rk.TEXT:"script"===e?r=rk.SCRIPT:"scriptscript"===e&&(r=rk.SCRIPTSCRIPT),r},_B=(e,t)=>{var r,n=LB(e.size,t.style),o=n.fracNum(),i=n.fracDen();r=t.havingStyle(o);var a=rN(e.numer,r,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;a.height=a.height<s?s:a.height,a.depth=a.depth<u?u:a.depth}r=t.havingStyle(i);var l,c,d,f,h,p,g,m,v,y,b=rN(e.denom,r,t);if(e.hasBarLine?(e.barSize?(c=Ek(e.barSize,t),l=FO.makeLineSpan("frac-line",t,c)):l=FO.makeLineSpan("frac-line",t),c=l.height,d=l.height):(l=null,c=0,d=t.fontMetrics().defaultRuleThickness),n.size===rk.DISPLAY.size||"display"===e.size?(f=t.fontMetrics().num1,h=c>0?3*d:7*d,p=t.fontMetrics().denom1):(c>0?(f=t.fontMetrics().num2,h=d):(f=t.fontMetrics().num3,h=3*d),p=t.fontMetrics().denom2),l){var w=t.fontMetrics().axisHeight;f-a.depth-(w+.5*c)<h&&(f+=h-(f-a.depth-(w+.5*c))),w-.5*c-(b.height-p)<h&&(p+=h-(w-.5*c-(b.height-p)));var E=-(w-.5*c);g=FO.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:p},{type:"elem",elem:l,shift:E},{type:"elem",elem:a,shift:-f}]},t)}else{var x=f-a.depth-(b.height-p);x<h&&(f+=.5*(h-x),p+=.5*(h-x)),g=FO.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:p},{type:"elem",elem:a,shift:-f}]},t)}return r=t.havingStyle(n),g.height*=r.sizeMultiplier/t.sizeMultiplier,g.depth*=r.sizeMultiplier/t.sizeMultiplier,m=n.size===rk.DISPLAY.size?t.fontMetrics().delim1:n.size===rk.SCRIPTSCRIPT.size?t.havingStyle(rk.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,v=null==e.leftDelim?tN(t,["mopen"]):hB.customSizedDelim(e.leftDelim,m,!0,t.havingStyle(n),e.mode,["mopen"]),y=e.continued?FO.makeSpan([]):null==e.rightDelim?tN(t,["mclose"]):hB.customSizedDelim(e.rightDelim,m,!0,t.havingStyle(n),e.mode,["mclose"]),FO.makeSpan(["mord"].concat(r.sizingClasses(t)),[v,FO.makeSpan(["mfrac"],[g]),y],t)},zB=(e,t)=>{var r=new uN.MathNode("mfrac",[gN(e.numer,t),gN(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var n=Ek(e.barSize,t);r.setAttribute("linethickness",xk(n))}}else r.setAttribute("linethickness","0px");var o=LB(e.size,t.style);if(o.size!==t.style.size){r=new uN.MathNode("mstyle",[r]);var i=o.size===rk.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",i),r.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var a=[];if(null!=e.leftDelim){var s=new uN.MathNode("mo",[new uN.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(r),null!=e.rightDelim){var u=new uN.MathNode("mo",[new uN.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),a.push(u)}return cN(a)}return r};HO({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var r,{parser:n,funcName:o}=e,i=t[0],a=t[1],s=null,u=null,l="auto";switch(o){case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,s="(",u=")";break;case"\\\\bracefrac":r=!1,s="\\{",u="\\}";break;case"\\\\brackfrac":r=!1,s="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(o){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text"}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:r,leftDelim:s,rightDelim:u,size:l,barSize:null}},htmlBuilder:_B,mathmlBuilder:zB}),HO({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=t[0],i=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:o,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),HO({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:r,funcName:n,token:o}=e;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:o}}});var jB=["display","text","script","scriptscript"],HB=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};HO({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var r,{parser:n}=e,o=t[4],i=t[5],a=UO(t[0]),s="atom"===a.type&&"open"===a.family?HB(a.text):null,u=UO(t[1]),l="atom"===u.type&&"close"===u.family?HB(u.text):null,c=CN(t[2],"size"),d=null;r=!!c.isBlank||(d=c.value).number>0;var f="auto",h=t[3];if("ordgroup"===h.type){if(h.body.length>0){var p=CN(h.body[0],"textord");f=jB[Number(p.text)]}}else h=CN(h,"textord"),f=jB[Number(h.text)];return{type:"genfrac",mode:n.mode,numer:o,denom:i,continued:!1,hasBarLine:r,barSize:d,leftDelim:s,rightDelim:l,size:f}},htmlBuilder:_B,mathmlBuilder:zB}),HO({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:o}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:CN(t[0],"size").value,token:o}}}),HO({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=t[0],i=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(CN(t[1],"infix").size),a=t[2],s=i.number>0;return{type:"genfrac",mode:r.mode,numer:o,denom:a,continued:!1,hasBarLine:s,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:_B,mathmlBuilder:zB});var $B=(e,t)=>{var r,n,o=t.style;"supsub"===e.type?(r=e.sup?rN(e.sup,t.havingStyle(o.sup()),t):rN(e.sub,t.havingStyle(o.sub()),t),n=CN(e.base,"horizBrace")):n=CN(e,"horizBrace");var i,a=rN(n.base,t.havingBaseStyle(rk.DISPLAY)),s=SN(n,t);if(n.isOver?(i=FO.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=FO.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var u=FO.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t);i=n.isOver?FO.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:r}]},t):FO.makeVList({positionType:"bottom",positionData:u.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return FO.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t)};HO({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:$B,mathmlBuilder:(e,t)=>{var r=xN(e.label);return new uN.MathNode(e.isOver?"mover":"munder",[gN(e.base,t),r])}}),HO({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],o=CN(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:r.mode,href:o,body:VO(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=XO(e.body,t,!1);return FO.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=pN(e.body,t);return r instanceof aN||(r=new aN("mrow",[r])),r.setAttribute("href",e.href),r}}),HO({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=CN(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var o=[],i=0;i<n.length;i++){var a=n[i];"~"===a&&(a="\\textasciitilde"),o.push({type:"textord",mode:"text",text:a})}var s={type:"text",mode:r.mode,font:"\\texttt",body:o};return{type:"href",mode:r.mode,href:n,body:VO(s)}}}),HO({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:VO(t[0])}},htmlBuilder(e,t){var r=XO(e.body,t,!1);return FO.makeFragment(r)},mathmlBuilder:(e,t)=>new uN.MathNode("mrow",hN(e.body,t))}),HO({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var r,{parser:n,funcName:o,token:i}=e,a=CN(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var u={};switch(o){case"\\htmlClass":u.class=a,r={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,r={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,r={command:"\\htmlStyle",style:a};break;case"\\htmlData":for(var l=a.split(","),c=0;c<l.length;c++){var d=l[c].split("=");if(2!==d.length)throw new zT("Error parsing key-value for \\htmlData");u["data-"+d[0].trim()]=d[1].trim()}r={command:"\\htmlData",attributes:u};break;default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(r)?{type:"html",mode:n.mode,attributes:u,body:VO(s)}:n.formatUnsupportedCmd(o)},htmlBuilder:(e,t)=>{var r=XO(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var o=FO.makeSpan(n,r,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&o.setAttribute(i,e.attributes[i]);return o},mathmlBuilder:(e,t)=>pN(e.body,t)}),HO({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:VO(t[0]),mathml:VO(t[1])}},htmlBuilder:(e,t)=>{var r=XO(e.html,t,!1);return FO.makeFragment(r)},mathmlBuilder:(e,t)=>pN(e.mathml,t)});var UB=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new zT("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!wk(r))throw new zT("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};HO({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,o={number:0,unit:"em"},i={number:.9,unit:"em"},a={number:0,unit:"em"},s="";if(r[0])for(var u=CN(r[0],"raw").string.split(","),l=0;l<u.length;l++){var c=u[l].split("=");if(2===c.length){var d=c[1].trim();switch(c[0].trim()){case"alt":s=d;break;case"width":o=UB(d);break;case"height":i=UB(d);break;case"totalheight":a=UB(d);break;default:throw new zT("Invalid key: '"+c[0]+"' in \\includegraphics.")}}}var f=CN(t[0],"url").url;return""===s&&(s=(s=(s=f).replace(/^.*[\\/]/,"")).substring(0,s.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:f})?{type:"includegraphics",mode:n.mode,alt:s,width:o,height:i,totalheight:a,src:f}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Ek(e.height,t),n=0;e.totalheight.number>0&&(n=Ek(e.totalheight,t)-r);var o=0;e.width.number>0&&(o=Ek(e.width,t));var i={height:xk(r+n)};o>0&&(i.width=xk(o)),n>0&&(i.verticalAlign=xk(-n));var a=new Nk(e.src,e.alt,i);return a.height=r,a.depth=n,a},mathmlBuilder:(e,t)=>{var r=new uN.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=Ek(e.height,t),o=0;if(e.totalheight.number>0&&(o=Ek(e.totalheight,t)-n,r.setAttribute("valign",xk(-o))),r.setAttribute("height",xk(n+o)),e.width.number>0){var i=Ek(e.width,t);r.setAttribute("width",xk(i))}return r.setAttribute("src",e.src),r}}),HO({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,o=CN(t[0],"size");if(r.settings.strict){var i="m"===n[1],a="mu"===o.value.unit;i?(a||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+o.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):a&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:o.value}},htmlBuilder:(e,t)=>FO.makeGlue(e.dimension,t),mathmlBuilder(e,t){var r=Ek(e.dimension,t);return new uN.SpaceNode(r)}}),HO({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:o}},htmlBuilder:(e,t)=>{var r;"clap"===e.alignment?(r=FO.makeSpan([],[rN(e.body,t)]),r=FO.makeSpan(["inner"],[r],t)):r=FO.makeSpan(["inner"],[rN(e.body,t)]);var n=FO.makeSpan(["fix"],[]),o=FO.makeSpan([e.alignment],[r,n],t),i=FO.makeSpan(["strut"]);return i.style.height=xk(o.height+o.depth),o.depth&&(i.style.verticalAlign=xk(-o.depth)),o.children.unshift(i),o=FO.makeSpan(["thinbox"],[o],t),FO.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:(e,t)=>{var r=new uN.MathNode("mpadded",[gN(e.body,t)]);if("rlap"!==e.alignment){var n="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),HO({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,o=n.mode;n.switchMode("math");var i="\\("===r?"\\)":"$",a=n.parseExpression(!1,i);return n.expect(i),n.switchMode(o),{type:"styling",mode:n.mode,style:"text",body:a}}}),HO({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new zT("Mismatched "+e.funcName)}});var VB=(e,t)=>{switch(t.style.size){case rk.DISPLAY.size:return e.display;case rk.TEXT.size:return e.text;case rk.SCRIPT.size:return e.script;case rk.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};HO({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:VO(t[0]),text:VO(t[1]),script:VO(t[2]),scriptscript:VO(t[3])}},htmlBuilder:(e,t)=>{var r=VB(e,t),n=XO(r,t,!1);return FO.makeFragment(n)},mathmlBuilder:(e,t)=>{var r=VB(e,t);return pN(r,t)}});var qB=(e,t,r,n,o,i,a)=>{e=FO.makeSpan([],[e]);var s,u,l,c=r&&VT.isCharacterBox(r);if(t){var d=rN(t,n.havingStyle(o.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var f=rN(r,n.havingStyle(o.sub()),n);s={elem:f,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-f.height)}}if(u&&s){var h=n.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+a;l=FO.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:xk(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:xk(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(s){var p=e.height-a;l=FO.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:xk(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},n)}else{if(!u)return e;var g=e.depth+a;l=FO.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:xk(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}var m=[l];if(s&&0!==i&&!c){var v=FO.makeSpan(["mspace"],[],n);v.style.marginRight=xk(i),m.unshift(v)}return FO.makeSpan(["mop","op-limits"],m,n)},GB=["\\smallint"],WB=(e,t)=>{var r,n,o,i=!1;"supsub"===e.type?(r=e.sup,n=e.sub,o=CN(e.base,"op"),i=!0):o=CN(e,"op");var a,s=t.style,u=!1;if(s.size===rk.DISPLAY.size&&o.symbol&&!GB.includes(o.name)&&(u=!0),o.symbol){var l=u?"Size2-Regular":"Size1-Regular",c="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(c=o.name.slice(1),o.name="oiint"===c?"\\iint":"\\iiint"),a=FO.makeSymbol(o.name,l,"math",t,["mop","op-symbol",u?"large-op":"small-op"]),c.length>0){var d=a.italic,f=FO.staticSvg(c+"Size"+(u?"2":"1"),t);a=FO.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:f,shift:u?.08:0}]},t),o.name="\\"+c,a.classes.unshift("mop"),a.italic=d}}else if(o.body){var h=XO(o.body,t,!0);1===h.length&&h[0]instanceof Fk?(a=h[0]).classes[0]="mop":a=FO.makeSpan(["mop"],h,t)}else{for(var p=[],g=1;g<o.name.length;g++)p.push(FO.mathsym(o.name[g],o.mode,t));a=FO.makeSpan(["mop"],p,t)}var m=0,v=0;return(a instanceof Fk||"\\oiint"===o.name||"\\oiiint"===o.name)&&!o.suppressBaseShift&&(m=(a.height-a.depth)/2-t.fontMetrics().axisHeight,v=a.italic),i?qB(a,r,n,t,s,v,m):(m&&(a.style.position="relative",a.style.top=xk(m)),a)},YB=(e,t)=>{var r;if(e.symbol)r=new aN("mo",[lN(e.name,e.mode)]),GB.includes(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new aN("mo",hN(e.body,t));else{r=new aN("mi",[new sN(e.name.slice(1))]);var n=new aN("mo",[lN("","text")]);r=e.parentIsSupSub?new aN("mrow",[r,n]):iN([r,n])}return r},KB={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};HO({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=n;return 1===o.length&&(o=KB[o]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:WB,mathmlBuilder:YB}),HO({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:VO(n)}},htmlBuilder:WB,mathmlBuilder:YB});var XB={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};HO({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:WB,mathmlBuilder:YB}),HO({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:WB,mathmlBuilder:YB}),HO({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,n=r;return 1===n.length&&(n=XB[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:WB,mathmlBuilder:YB});var ZB=(e,t)=>{var r,n,o,i,a=!1;if("supsub"===e.type?(r=e.sup,n=e.sub,o=CN(e.base,"operatorname"),a=!0):o=CN(e,"operatorname"),o.body.length>0){for(var s=o.body.map(e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),u=XO(s,t.withFont("mathrm"),!0),l=0;l<u.length;l++){var c=u[l];c instanceof Fk&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=FO.makeSpan(["mop"],u,t)}else i=FO.makeSpan(["mop"],[],t);return a?qB(i,r,n,t,t.style,0,0):i};function JB(e,t,r){for(var n=XO(e,t,!1),o=t.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var a=n[i].classes.indexOf("sizing");a<0?Array.prototype.push.apply(n[i].classes,t.sizingClasses(r)):n[i].classes[a+1]==="reset-size"+t.size&&(n[i].classes[a+1]="reset-size"+r.size),n[i].height*=o,n[i].depth*=o}return FO.makeFragment(n)}HO({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=t[0];return{type:"operatorname",mode:r.mode,body:VO(o),alwaysHandleSupSub:"\\operatornamewithlimits"===n,limits:!1,parentIsSupSub:!1}},htmlBuilder:ZB,mathmlBuilder:(e,t)=>{for(var r=hN(e.body,t.withFont("mathrm")),n=!0,o=0;o<r.length;o++){var i=r[o];if(i instanceof uN.SpaceNode);else if(i instanceof uN.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var a=i.children[0];1===i.children.length&&a instanceof uN.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break;default:n=!1}else n=!1}if(n){var s=r.map(e=>e.toText()).join("");r=[new uN.TextNode(s)]}var u=new uN.MathNode("mi",r);u.setAttribute("mathvariant","normal");var l=new uN.MathNode("mo",[lN("","text")]);return e.parentIsSupSub?new uN.MathNode("mrow",[u,l]):uN.newDocumentFragment([u,l])}}),SB("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),$O({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?FO.makeFragment(XO(e.body,t,!1)):FO.makeSpan(["mord"],XO(e.body,t,!0),t),mathmlBuilder:(e,t)=>pN(e.body,t,!0)}),HO({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=rN(e.body,t.havingCrampedStyle()),n=FO.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,i=FO.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n},{type:"kern",size:o}]},t);return FO.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new uN.MathNode("mo",[new uN.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new uN.MathNode("mover",[gN(e.body,t),r]);return n.setAttribute("accent","true"),n}}),HO({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:VO(n)}},htmlBuilder:(e,t)=>{var r=XO(e.body,t.withPhantom(),!1);return FO.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=hN(e.body,t);return new uN.MathNode("mphantom",r)}}),HO({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=FO.makeSpan([],[rN(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n<r.children.length;n++)r.children[n].height=0,r.children[n].depth=0;return r=FO.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),FO.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=hN(VO(e.body),t),n=new uN.MathNode("mphantom",r),o=new uN.MathNode("mpadded",[n]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),HO({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=FO.makeSpan(["inner"],[rN(e.body,t.withPhantom())]),n=FO.makeSpan(["fix"],[]);return FO.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=hN(VO(e.body),t),n=new uN.MathNode("mphantom",r),o=new uN.MathNode("mpadded",[n]);return o.setAttribute("width","0px"),o}}),HO({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=CN(t[0],"size").value,o=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:o}},htmlBuilder(e,t){var r=rN(e.body,t),n=Ek(e.dy,t);return FO.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new uN.MathNode("mpadded",[gN(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}}),HO({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),HO({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,o=r[0],i=CN(t[0],"size"),a=CN(t[1],"size");return{type:"rule",mode:n.mode,shift:o&&CN(o,"size").value,width:i.value,height:a.value}},htmlBuilder(e,t){var r=FO.makeSpan(["mord","rule"],[],t),n=Ek(e.width,t),o=Ek(e.height,t),i=e.shift?Ek(e.shift,t):0;return r.style.borderRightWidth=xk(n),r.style.borderTopWidth=xk(o),r.style.bottom=xk(i),r.width=n,r.height=o+i,r.depth=-i,r.maxFontSize=1.125*o*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Ek(e.width,t),n=Ek(e.height,t),o=e.shift?Ek(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new uN.MathNode("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",xk(r)),a.setAttribute("height",xk(n));var s=new uN.MathNode("mpadded",[a]);return o>=0?s.setAttribute("height",xk(o)):(s.setAttribute("height",xk(o)),s.setAttribute("depth",xk(-o))),s.setAttribute("voffset",xk(o)),s}});var QB=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];HO({type:"sizing",names:QB,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:o}=e,i=o.parseExpression(!1,r);return{type:"sizing",mode:o.mode,size:QB.indexOf(n)+1,body:i}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return JB(e.body,r,t)},mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=hN(e.body,r),o=new uN.MathNode("mstyle",n);return o.setAttribute("mathsize",xk(r.sizeMultiplier)),o}}),HO({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,o=!1,i=!1,a=r[0]&&CN(r[0],"ordgroup");if(a)for(var s="",u=0;u<a.body.length;++u){if("t"===(s=a.body[u].text))o=!0;else{if("b"!==s){o=!1,i=!1;break}i=!0}}else o=!0,i=!0;var l=t[0];return{type:"smash",mode:n.mode,body:l,smashHeight:o,smashDepth:i}},htmlBuilder:(e,t)=>{var r=FO.makeSpan([],[rN(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var o=0;o<r.children.length;o++)r.children[o].depth=0;var i=FO.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return FO.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new uN.MathNode("mpadded",[gN(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),HO({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,o=r[0],i=t[0];return{type:"sqrt",mode:n.mode,body:i,index:o}},htmlBuilder(e,t){var r=rN(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=FO.wrapFragment(r,t);var n=t.fontMetrics().defaultRuleThickness,o=n;t.style.id<rk.TEXT.id&&(o=t.fontMetrics().xHeight);var i=n+o/4,a=r.height+r.depth+i+n,{span:s,ruleWidth:u,advanceWidth:l}=hB.sqrtImage(a,t),c=s.height-u;c>r.height+r.depth+i&&(i=(i+c-r.height-r.depth)/2);var d=s.height-r.height-i-u;r.style.paddingLeft=xk(l);var f=FO.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+d)},{type:"elem",elem:s},{type:"kern",size:u}]},t);if(e.index){var h=t.havingStyle(rk.SCRIPTSCRIPT),p=rN(e.index,h,t),g=.6*(f.height-f.depth),m=FO.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:p}]},t),v=FO.makeSpan(["root"],[m]);return FO.makeSpan(["mord","sqrt"],[v,f],t)}return FO.makeSpan(["mord","sqrt"],[f],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new uN.MathNode("mroot",[gN(r,t),gN(n,t)]):new uN.MathNode("msqrt",[gN(r,t)])}});var eF={display:rk.DISPLAY,text:rk.TEXT,script:rk.SCRIPT,scriptscript:rk.SCRIPTSCRIPT};HO({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:o}=e,i=o.parseExpression(!0,r),a=n.slice(1,n.length-5);return{type:"styling",mode:o.mode,style:a,body:i}},htmlBuilder(e,t){var r=eF[e.style],n=t.havingStyle(r).withFont("");return JB(e.body,n,t)},mathmlBuilder(e,t){var r=eF[e.style],n=t.havingStyle(r),o=hN(e.body,n),i=new uN.MathNode("mstyle",o),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}});$O({type:"supsub",htmlBuilder(e,t){var r=function(e,t){var r=e.base;return r?"op"===r.type?r.limits&&(t.style.size===rk.DISPLAY.size||r.alwaysHandleSupSub)?WB:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(t.style.size===rk.DISPLAY.size||r.limits)?ZB:null:"accent"===r.type?VT.isCharacterBox(r.base)?TN:null:"horizBrace"===r.type&&!e.sub===r.isOver?$B:null:null}(e,t);if(r)return r(e,t);var n,o,i,{base:a,sup:s,sub:u}=e,l=rN(a,t),c=t.fontMetrics(),d=0,f=0,h=a&&VT.isCharacterBox(a);if(s){var p=t.havingStyle(t.style.sup());n=rN(s,p,t),h||(d=l.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(u){var g=t.havingStyle(t.style.sub());o=rN(u,g,t),h||(f=l.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}i=t.style===rk.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2;var m,v=t.sizeMultiplier,y=xk(.5/c.ptPerEm/v),b=null;if(o){var w=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(l instanceof Fk||w)&&(b=xk(-l.italic))}if(n&&o){d=Math.max(d,i,n.depth+.25*c.xHeight),f=Math.max(f,c.sub2);var E=4*c.defaultRuleThickness;if(d-n.depth-(o.height-f)<E){f=E-(d-n.depth)+o.height;var x=.8*c.xHeight-(d-n.depth);x>0&&(d+=x,f-=x)}var S=[{type:"elem",elem:o,shift:f,marginRight:y,marginLeft:b},{type:"elem",elem:n,shift:-d,marginRight:y}];m=FO.makeVList({positionType:"individualShift",children:S},t)}else if(o){f=Math.max(f,c.sub1,o.height-.8*c.xHeight);var C=[{type:"elem",elem:o,marginLeft:b,marginRight:y}];m=FO.makeVList({positionType:"shift",positionData:f,children:C},t)}else{if(!n)throw new Error("supsub must have either sup or sub.");d=Math.max(d,i,n.depth+.25*c.xHeight),m=FO.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:n,marginRight:y}]},t)}var A=eN(l,"right")||"mord";return FO.makeSpan([A],[l,FO.makeSpan(["msupsub"],[m])],t)},mathmlBuilder(e,t){var r,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,r=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var o,i=[gN(e.base,t)];if(e.sub&&i.push(gN(e.sub,t)),e.sup&&i.push(gN(e.sup,t)),n)o=r?"mover":"munder";else if(e.sub)if(e.sup){var a=e.base;o=a&&"op"===a.type&&a.limits&&t.style===rk.DISPLAY||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(t.style===rk.DISPLAY||a.limits)?"munderover":"msubsup"}else{var s=e.base;o=s&&"op"===s.type&&s.limits&&(t.style===rk.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===rk.DISPLAY)?"munder":"msub"}else{var u=e.base;o=u&&"op"===u.type&&u.limits&&(t.style===rk.DISPLAY||u.alwaysHandleSupSub)||u&&"operatorname"===u.type&&u.alwaysHandleSupSub&&(u.limits||t.style===rk.DISPLAY)?"mover":"msup"}return new uN.MathNode(o,i)}}),$O({type:"atom",htmlBuilder:(e,t)=>FO.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var r=new uN.MathNode("mo",[lN(e.text,e.mode)]);if("bin"===e.family){var n=dN(e,t);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});var tF={mi:"italic",mn:"normal",mtext:"normal"};$O({type:"mathord",htmlBuilder:(e,t)=>FO.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var r=new uN.MathNode("mi",[lN(e.text,e.mode,t)]),n=dN(e,t)||"italic";return n!==tF[r.type]&&r.setAttribute("mathvariant",n),r}}),$O({type:"textord",htmlBuilder:(e,t)=>FO.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var r,n=lN(e.text,e.mode,t),o=dN(e,t)||"normal";return r="text"===e.mode?new uN.MathNode("mtext",[n]):/[0-9]/.test(e.text)?new uN.MathNode("mn",[n]):"\\prime"===e.text?new uN.MathNode("mo",[n]):new uN.MathNode("mi",[n]),o!==tF[r.type]&&r.setAttribute("mathvariant",o),r}});var rF={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},nF={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};$O({type:"spacing",htmlBuilder(e,t){if(nF.hasOwnProperty(e.text)){var r=nF[e.text].className||"";if("text"===e.mode){var n=FO.makeOrd(e,t,"textord");return n.classes.push(r),n}return FO.makeSpan(["mspace",r],[FO.mathsym(e.text,e.mode,t)],t)}if(rF.hasOwnProperty(e.text))return FO.makeSpan(["mspace",rF[e.text]],[],t);throw new zT('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!nF.hasOwnProperty(e.text)){if(rF.hasOwnProperty(e.text))return new uN.MathNode("mspace");throw new zT('Unknown type of space "'+e.text+'"')}return new uN.MathNode("mtext",[new uN.TextNode(" ")])}});var oF=()=>{var e=new uN.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};$O({type:"tag",mathmlBuilder(e,t){var r=new uN.MathNode("mtable",[new uN.MathNode("mtr",[oF(),new uN.MathNode("mtd",[pN(e.body,t)]),oF(),new uN.MathNode("mtd",[pN(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var iF={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},aF={"\\textbf":"textbf","\\textmd":"textmd"},sF={"\\textit":"textit","\\textup":"textup"},uF=(e,t)=>{var r=e.font;return r?iF[r]?t.withTextFontFamily(iF[r]):aF[r]?t.withTextFontWeight(aF[r]):"\\emph"===r?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(sF[r]):t};HO({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,o=t[0];return{type:"text",mode:r.mode,body:VO(o),font:n}},htmlBuilder(e,t){var r=uF(e,t),n=XO(e.body,r,!0);return FO.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){var r=uF(e,t);return pN(e.body,r)}}),HO({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=rN(e.body,t),n=FO.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,i=FO.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:o},{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r}]},t);return FO.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new uN.MathNode("mo",[new uN.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new uN.MathNode("munder",[gN(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),HO({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=rN(e.body,t),n=t.fontMetrics().axisHeight,o=.5*(r.height-n-(r.depth+n));return FO.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:(e,t)=>new uN.MathNode("mpadded",[gN(e.body,t)],["vcenter"])}),HO({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new zT("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=lF(e),n=[],o=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var a=r[i];"~"===a&&(a="\\textasciitilde"),n.push(FO.makeSymbol(a,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return FO.makeSpan(["mord","text"].concat(o.sizingClasses(t)),FO.tryCombineChars(n),o)},mathmlBuilder(e,t){var r=new uN.TextNode(lF(e)),n=new uN.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var lF=e=>e.body.replace(/ /g,e.star?"␣":" "),cF=_O,dF="[ \r\n\t]",fF="(\\\\[a-zA-Z@]+)"+dF+"*",hF="[̀-ͯ]",pF=new RegExp(hF+"+$"),gF="("+dF+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧-豈-]"+hF+"*|[\ud800-\udbff][\udc00-\udfff]"+hF+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+fF+"|\\\\[^\ud800-\udfff])";class mF{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(gF,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new _T("EOF",new LT(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new zT("Unexpected character: '"+e[t]+"'",new _T(e[t],new LT(this,t,t+1)));var n=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[n]){var o=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===o?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new _T(n,new LT(this,t,this.tokenRegex.lastIndex))}}class vF{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new zT("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(void 0===r&&(r=!1),r){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var yF=xB;SB("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),SB("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),SB("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),SB("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),SB("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),SB("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),SB("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var bF={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};SB("\\char",function(e){var t,r=e.popToken(),n="";if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if("\\"===(r=e.popToken()).text[0])n=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new zT("\\char` missing argument");n=r.text.charCodeAt(0)}else t=10;if(t){if(null==(n=bF[r.text])||n>=t)throw new zT("Invalid base-"+t+" digit "+r.text);for(var o;null!=(o=bF[e.future().text])&&o<t;)n*=t,n+=o,e.popToken()}return"\\@char{"+n+"}"});var wF=(e,t,r,n)=>{var o=e.consumeArg().tokens;if(1!==o.length)throw new zT("\\newcommand's first argument must be a macro name");var i=o[0].text,a=e.isDefined(i);if(a&&!t)throw new zT("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!a&&!r)throw new zT("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(1===(o=e.consumeArg().tokens).length&&"["===o[0].text){for(var u="",l=e.expandNextToken();"]"!==l.text&&"EOF"!==l.text;)u+=l.text,l=e.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new zT("Invalid number of arguments: "+u);s=parseInt(u),o=e.consumeArg().tokens}return a&&n||e.macros.set(i,{tokens:o,numArgs:s}),""};SB("\\newcommand",e=>wF(e,!1,!0,!1)),SB("\\renewcommand",e=>wF(e,!0,!1,!1)),SB("\\providecommand",e=>wF(e,!0,!0,!0)),SB("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join("")),""}),SB("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join("")),""}),SB("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),cF[r],zk.math[r],zk.text[r]),""}),SB("\\bgroup","{"),SB("\\egroup","}"),SB("~","\\nobreakspace"),SB("\\lq","`"),SB("\\rq","'"),SB("\\aa","\\r a"),SB("\\AA","\\r A"),SB("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),SB("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),SB("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),SB("ℬ","\\mathscr{B}"),SB("ℰ","\\mathscr{E}"),SB("ℱ","\\mathscr{F}"),SB("ℋ","\\mathscr{H}"),SB("ℐ","\\mathscr{I}"),SB("ℒ","\\mathscr{L}"),SB("ℳ","\\mathscr{M}"),SB("ℛ","\\mathscr{R}"),SB("ℭ","\\mathfrak{C}"),SB("ℌ","\\mathfrak{H}"),SB("ℨ","\\mathfrak{Z}"),SB("\\Bbbk","\\Bbb{k}"),SB("·","\\cdotp"),SB("\\llap","\\mathllap{\\textrm{#1}}"),SB("\\rlap","\\mathrlap{\\textrm{#1}}"),SB("\\clap","\\mathclap{\\textrm{#1}}"),SB("\\mathstrut","\\vphantom{(}"),SB("\\underbar","\\underline{\\text{#1}}"),SB("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),SB("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),SB("\\ne","\\neq"),SB("≠","\\neq"),SB("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),SB("∉","\\notin"),SB("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),SB("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),SB("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),SB("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),SB("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),SB("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),SB("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),SB("⟂","\\perp"),SB("‼","\\mathclose{!\\mkern-0.8mu!}"),SB("∌","\\notni"),SB("⌜","\\ulcorner"),SB("⌝","\\urcorner"),SB("⌞","\\llcorner"),SB("⌟","\\lrcorner"),SB("©","\\copyright"),SB("®","\\textregistered"),SB("️","\\textregistered"),SB("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),SB("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),SB("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),SB("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),SB("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),SB("⋮","\\vdots"),SB("\\varGamma","\\mathit{\\Gamma}"),SB("\\varDelta","\\mathit{\\Delta}"),SB("\\varTheta","\\mathit{\\Theta}"),SB("\\varLambda","\\mathit{\\Lambda}"),SB("\\varXi","\\mathit{\\Xi}"),SB("\\varPi","\\mathit{\\Pi}"),SB("\\varSigma","\\mathit{\\Sigma}"),SB("\\varUpsilon","\\mathit{\\Upsilon}"),SB("\\varPhi","\\mathit{\\Phi}"),SB("\\varPsi","\\mathit{\\Psi}"),SB("\\varOmega","\\mathit{\\Omega}"),SB("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),SB("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),SB("\\boxed","\\fbox{$\\displaystyle{#1}$}"),SB("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),SB("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),SB("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),SB("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),SB("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var EF={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};SB("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in EF?t=EF[r]:("\\not"===r.slice(0,4)||r in zk.math&&["bin","rel"].includes(zk.math[r].group))&&(t="\\dotsb"),t});var xF={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};SB("\\dotso",function(e){return e.future().text in xF?"\\ldots\\,":"\\ldots"}),SB("\\dotsc",function(e){var t=e.future().text;return t in xF&&","!==t?"\\ldots\\,":"\\ldots"}),SB("\\cdots",function(e){return e.future().text in xF?"\\@cdots\\,":"\\@cdots"}),SB("\\dotsb","\\cdots"),SB("\\dotsm","\\cdots"),SB("\\dotsi","\\!\\cdots"),SB("\\dotsx","\\ldots\\,"),SB("\\DOTSI","\\relax"),SB("\\DOTSB","\\relax"),SB("\\DOTSX","\\relax"),SB("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),SB("\\,","\\tmspace+{3mu}{.1667em}"),SB("\\thinspace","\\,"),SB("\\>","\\mskip{4mu}"),SB("\\:","\\tmspace+{4mu}{.2222em}"),SB("\\medspace","\\:"),SB("\\;","\\tmspace+{5mu}{.2777em}"),SB("\\thickspace","\\;"),SB("\\!","\\tmspace-{3mu}{.1667em}"),SB("\\negthinspace","\\!"),SB("\\negmedspace","\\tmspace-{4mu}{.2222em}"),SB("\\negthickspace","\\tmspace-{5mu}{.277em}"),SB("\\enspace","\\kern.5em "),SB("\\enskip","\\hskip.5em\\relax"),SB("\\quad","\\hskip1em\\relax"),SB("\\qquad","\\hskip2em\\relax"),SB("\\tag","\\@ifstar\\tag@literal\\tag@paren"),SB("\\tag@paren","\\tag@literal{({#1})}"),SB("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new zT("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),SB("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),SB("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),SB("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),SB("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),SB("\\newline","\\\\\\relax"),SB("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var SF=xk(lk["Main-Regular"]["T".charCodeAt(0)][1]-.7*lk["Main-Regular"]["A".charCodeAt(0)][1]);SB("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+SF+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),SB("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+SF+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),SB("\\hspace","\\@ifstar\\@hspacer\\@hspace"),SB("\\@hspace","\\hskip #1\\relax"),SB("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),SB("\\ordinarycolon",":"),SB("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),SB("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),SB("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),SB("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),SB("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),SB("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),SB("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),SB("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),SB("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),SB("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),SB("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),SB("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),SB("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),SB("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),SB("∷","\\dblcolon"),SB("∹","\\eqcolon"),SB("≔","\\coloneqq"),SB("≕","\\eqqcolon"),SB("⩴","\\Coloneqq"),SB("\\ratio","\\vcentcolon"),SB("\\coloncolon","\\dblcolon"),SB("\\colonequals","\\coloneqq"),SB("\\coloncolonequals","\\Coloneqq"),SB("\\equalscolon","\\eqqcolon"),SB("\\equalscoloncolon","\\Eqqcolon"),SB("\\colonminus","\\coloneq"),SB("\\coloncolonminus","\\Coloneq"),SB("\\minuscolon","\\eqcolon"),SB("\\minuscoloncolon","\\Eqcolon"),SB("\\coloncolonapprox","\\Colonapprox"),SB("\\coloncolonsim","\\Colonsim"),SB("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),SB("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),SB("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),SB("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),SB("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),SB("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),SB("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),SB("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),SB("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),SB("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),SB("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),SB("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),SB("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),SB("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),SB("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),SB("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),SB("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),SB("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),SB("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),SB("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),SB("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),SB("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),SB("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),SB("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),SB("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),SB("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),SB("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),SB("\\imath","\\html@mathml{\\@imath}{ı}"),SB("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),SB("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),SB("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),SB("⟦","\\llbracket"),SB("⟧","\\rrbracket"),SB("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),SB("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),SB("⦃","\\lBrace"),SB("⦄","\\rBrace"),SB("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),SB("⦵","\\minuso"),SB("\\darr","\\downarrow"),SB("\\dArr","\\Downarrow"),SB("\\Darr","\\Downarrow"),SB("\\lang","\\langle"),SB("\\rang","\\rangle"),SB("\\uarr","\\uparrow"),SB("\\uArr","\\Uparrow"),SB("\\Uarr","\\Uparrow"),SB("\\N","\\mathbb{N}"),SB("\\R","\\mathbb{R}"),SB("\\Z","\\mathbb{Z}"),SB("\\alef","\\aleph"),SB("\\alefsym","\\aleph"),SB("\\Alpha","\\mathrm{A}"),SB("\\Beta","\\mathrm{B}"),SB("\\bull","\\bullet"),SB("\\Chi","\\mathrm{X}"),SB("\\clubs","\\clubsuit"),SB("\\cnums","\\mathbb{C}"),SB("\\Complex","\\mathbb{C}"),SB("\\Dagger","\\ddagger"),SB("\\diamonds","\\diamondsuit"),SB("\\empty","\\emptyset"),SB("\\Epsilon","\\mathrm{E}"),SB("\\Eta","\\mathrm{H}"),SB("\\exist","\\exists"),SB("\\harr","\\leftrightarrow"),SB("\\hArr","\\Leftrightarrow"),SB("\\Harr","\\Leftrightarrow"),SB("\\hearts","\\heartsuit"),SB("\\image","\\Im"),SB("\\infin","\\infty"),SB("\\Iota","\\mathrm{I}"),SB("\\isin","\\in"),SB("\\Kappa","\\mathrm{K}"),SB("\\larr","\\leftarrow"),SB("\\lArr","\\Leftarrow"),SB("\\Larr","\\Leftarrow"),SB("\\lrarr","\\leftrightarrow"),SB("\\lrArr","\\Leftrightarrow"),SB("\\Lrarr","\\Leftrightarrow"),SB("\\Mu","\\mathrm{M}"),SB("\\natnums","\\mathbb{N}"),SB("\\Nu","\\mathrm{N}"),SB("\\Omicron","\\mathrm{O}"),SB("\\plusmn","\\pm"),SB("\\rarr","\\rightarrow"),SB("\\rArr","\\Rightarrow"),SB("\\Rarr","\\Rightarrow"),SB("\\real","\\Re"),SB("\\reals","\\mathbb{R}"),SB("\\Reals","\\mathbb{R}"),SB("\\Rho","\\mathrm{P}"),SB("\\sdot","\\cdot"),SB("\\sect","\\S"),SB("\\spades","\\spadesuit"),SB("\\sub","\\subset"),SB("\\sube","\\subseteq"),SB("\\supe","\\supseteq"),SB("\\Tau","\\mathrm{T}"),SB("\\thetasym","\\vartheta"),SB("\\weierp","\\wp"),SB("\\Zeta","\\mathrm{Z}"),SB("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),SB("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),SB("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),SB("\\bra","\\mathinner{\\langle{#1}|}"),SB("\\ket","\\mathinner{|{#1}\\rangle}"),SB("\\braket","\\mathinner{\\langle{#1}\\rangle}"),SB("\\Bra","\\left\\langle#1\\right|"),SB("\\Ket","\\left|#1\\right\\rangle");var CF=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,o=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var u=t=>r=>{e&&(r.macros.set("|",a),o.length&&r.macros.set("\\|",s));var i=t;!t&&o.length&&("|"===r.future().text&&(r.popToken(),i=!0));return{tokens:i?o:n,numArgs:0}};t.macros.set("|",u(!1)),o.length&&t.macros.set("\\|",u(!0));var l=t.consumeArg().tokens,c=t.expandTokens([...i,...l,...r]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};SB("\\bra@ket",CF(!1)),SB("\\bra@set",CF(!0)),SB("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),SB("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),SB("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),SB("\\angln","{\\angl n}"),SB("\\blue","\\textcolor{##6495ed}{#1}"),SB("\\orange","\\textcolor{##ffa500}{#1}"),SB("\\pink","\\textcolor{##ff00af}{#1}"),SB("\\red","\\textcolor{##df0030}{#1}"),SB("\\green","\\textcolor{##28ae7b}{#1}"),SB("\\gray","\\textcolor{gray}{#1}"),SB("\\purple","\\textcolor{##9d38bd}{#1}"),SB("\\blueA","\\textcolor{##ccfaff}{#1}"),SB("\\blueB","\\textcolor{##80f6ff}{#1}"),SB("\\blueC","\\textcolor{##63d9ea}{#1}"),SB("\\blueD","\\textcolor{##11accd}{#1}"),SB("\\blueE","\\textcolor{##0c7f99}{#1}"),SB("\\tealA","\\textcolor{##94fff5}{#1}"),SB("\\tealB","\\textcolor{##26edd5}{#1}"),SB("\\tealC","\\textcolor{##01d1c1}{#1}"),SB("\\tealD","\\textcolor{##01a995}{#1}"),SB("\\tealE","\\textcolor{##208170}{#1}"),SB("\\greenA","\\textcolor{##b6ffb0}{#1}"),SB("\\greenB","\\textcolor{##8af281}{#1}"),SB("\\greenC","\\textcolor{##74cf70}{#1}"),SB("\\greenD","\\textcolor{##1fab54}{#1}"),SB("\\greenE","\\textcolor{##0d923f}{#1}"),SB("\\goldA","\\textcolor{##ffd0a9}{#1}"),SB("\\goldB","\\textcolor{##ffbb71}{#1}"),SB("\\goldC","\\textcolor{##ff9c39}{#1}"),SB("\\goldD","\\textcolor{##e07d10}{#1}"),SB("\\goldE","\\textcolor{##a75a05}{#1}"),SB("\\redA","\\textcolor{##fca9a9}{#1}"),SB("\\redB","\\textcolor{##ff8482}{#1}"),SB("\\redC","\\textcolor{##f9685d}{#1}"),SB("\\redD","\\textcolor{##e84d39}{#1}"),SB("\\redE","\\textcolor{##bc2612}{#1}"),SB("\\maroonA","\\textcolor{##ffbde0}{#1}"),SB("\\maroonB","\\textcolor{##ff92c6}{#1}"),SB("\\maroonC","\\textcolor{##ed5fa6}{#1}"),SB("\\maroonD","\\textcolor{##ca337c}{#1}"),SB("\\maroonE","\\textcolor{##9e034e}{#1}"),SB("\\purpleA","\\textcolor{##ddd7ff}{#1}"),SB("\\purpleB","\\textcolor{##c6b9fc}{#1}"),SB("\\purpleC","\\textcolor{##aa87ff}{#1}"),SB("\\purpleD","\\textcolor{##7854ab}{#1}"),SB("\\purpleE","\\textcolor{##543b78}{#1}"),SB("\\mintA","\\textcolor{##f5f9e8}{#1}"),SB("\\mintB","\\textcolor{##edf2df}{#1}"),SB("\\mintC","\\textcolor{##e0e5cc}{#1}"),SB("\\grayA","\\textcolor{##f6f7f7}{#1}"),SB("\\grayB","\\textcolor{##f0f1f2}{#1}"),SB("\\grayC","\\textcolor{##e3e5e6}{#1}"),SB("\\grayD","\\textcolor{##d6d8da}{#1}"),SB("\\grayE","\\textcolor{##babec2}{#1}"),SB("\\grayF","\\textcolor{##888d93}{#1}"),SB("\\grayG","\\textcolor{##626569}{#1}"),SB("\\grayH","\\textcolor{##3b3e40}{#1}"),SB("\\grayI","\\textcolor{##21242c}{#1}"),SB("\\kaBlue","\\textcolor{##314453}{#1}"),SB("\\kaGreen","\\textcolor{##71B307}{#1}");var AF={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class DF{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new vF(yF,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new mF(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:n,end:r}=this.consumeArg(["]"]))}else({tokens:n,start:t,end:r}=this.consumeArg());return this.pushToken(new _T("EOF",r.loc)),this.pushTokens(n),new _T("",LT.range(t,r))}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var n,o=this.future(),i=0,a=0;do{if(n=this.popToken(),t.push(n),"{"===n.text)++i;else if("}"===n.text){if(-1===--i)throw new zT("Extra }",n)}else if("EOF"===n.text)throw new zT("Unexpected end of input in a macro argument, expected '"+(e&&r?e[a]:"}")+"'",n);if(e&&r)if((0===i||1===i&&"{"===e[a])&&n.text===e[a]){if(++a===e.length){t.splice(-a,a);break}}else a=0}while(0!==i||r);return"{"===o.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:o,end:n}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new zT("The length of delimiters doesn't match the number of args!");for(var r=t[0],n=0;n<r.length;n++){var o=this.popToken();if(r[n]!==o.text)throw new zT("Use of the macro doesn't match its definition",o)}}for(var i=[],a=0;a<e;a++)i.push(this.consumeArg(t&&t[a+1]).tokens);return i}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new zT("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,n=t.noexpand?null:this._getExpansion(r);if(null==n||e&&n.unexpandable){if(e&&null==n&&"\\"===r[0]&&!this.isDefined(r))throw new zT("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var o=n.tokens,i=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs)for(var a=(o=o.slice()).length-1;a>=0;--a){var s=o[a];if("#"===s.text){if(0===a)throw new zT("Incomplete placeholder at end of macro body",s);if("#"===(s=o[--a]).text)o.splice(a+1,1);else{if(!/^[1-9]$/.test(s.text))throw new zT("Not a valid argument number",s);o.splice(a,2,...i[+s.text-1])}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new _T(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var n="function"==typeof t?t(this):t;if("string"==typeof n){var o=0;if(-1!==n.indexOf("#"))for(var i=n.replace(/##/g,"");-1!==i.indexOf("#"+(o+1));)++o;for(var a=new mF(n,this.settings),s=[],u=a.lex();"EOF"!==u.text;)s.push(u),u=a.lex();return s.reverse(),{tokens:s,numArgs:o}}return n}isDefined(e){return this.macros.has(e)||cF.hasOwnProperty(e)||zk.math.hasOwnProperty(e)||zk.text.hasOwnProperty(e)||AF.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:cF.hasOwnProperty(e)&&!cF[e].primitive}}var TF=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,kF=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),OF={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},NF={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class BF{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new DF(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new zT("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new _T("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(-1!==BF.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(e&&cF[n.text]&&cF[n.text].infix)break;var o=this.parseAtom(t);if(!o)break;"internal"!==o.type&&r.push(o)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t,r=-1,n=0;n<e.length;n++)if("infix"===e[n].type){if(-1!==r)throw new zT("only one infix operator per group",e[n].token);r=n,t=e[n].replaceWith}if(-1!==r&&t){var o,i,a=e.slice(0,r),s=e.slice(r+1);return o=1===a.length&&"ordgroup"===a[0].type?a[0]:{type:"ordgroup",mode:this.mode,body:a},i=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},["\\\\abovefrac"===t?this.callFunction(t,[o,e[r],i],[]):this.callFunction(t,[o,i],[])]}return e}handleSupSubscript(e){var t,r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();do{var o;t=this.parseGroup(e)}while("internal"===(null==(o=t)?void 0:o.type));if(!t)throw new zT("Expected group after '"+n+"'",r);return t}formatUnsupportedCmd(e){for(var t=[],r=0;r<e.length;r++)t.push({type:"textord",mode:"text",text:e[r]});var n={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]}}parseAtom(e){var t,r,n=this.parseGroup("atom",e);if("internal"===(null==n?void 0:n.type))return n;if("text"===this.mode)return n;for(;;){this.consumeSpaces();var o=this.fetch();if("\\limits"===o.text||"\\nolimits"===o.text){if(n&&"op"===n.type){var i="\\limits"===o.text;n.limits=i,n.alwaysHandleSupSub=!0}else{if(!n||"operatorname"!==n.type)throw new zT("Limit controls must follow a math operator",o);n.alwaysHandleSupSub&&(n.limits="\\limits"===o.text)}this.consume()}else if("^"===o.text){if(t)throw new zT("Double superscript",o);t=this.handleSupSubscript("superscript")}else if("_"===o.text){if(r)throw new zT("Double subscript",o);r=this.handleSupSubscript("subscript")}else if("'"===o.text){if(t)throw new zT("Double superscript",o);var a={type:"textord",mode:this.mode,text:"\\prime"},s=[a];for(this.consume();"'"===this.fetch().text;)s.push(a),this.consume();"^"===this.fetch().text&&s.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:s}}else{if(!kF[o.text])break;var u=TF.test(o.text),l=[];for(l.push(new _T(kF[o.text])),this.consume();;){var c=this.fetch().text;if(!kF[c])break;if(TF.test(c)!==u)break;l.unshift(new _T(kF[c])),this.consume()}var d=this.subparse(l);u?r={type:"ordgroup",mode:"math",body:d}:t={type:"ordgroup",mode:"math",body:d}}}return t||r?{type:"supsub",mode:this.mode,base:n,sup:t,sub:r}:n}parseFunction(e,t){var r=this.fetch(),n=r.text,o=cF[n];if(!o)return null;if(this.consume(),t&&"atom"!==t&&!o.allowedInArgument)throw new zT("Got function '"+n+"' with no arguments"+(t?" as "+t:""),r);if("text"===this.mode&&!o.allowedInText)throw new zT("Can't use function '"+n+"' in text mode",r);if("math"===this.mode&&!1===o.allowedInMath)throw new zT("Can't use function '"+n+"' in math mode",r);var{args:i,optArgs:a}=this.parseArguments(n,o);return this.callFunction(n,i,a,r,e)}callFunction(e,t,r,n,o){var i={funcName:e,parser:this,token:n,breakOnTokenText:o},a=cF[e];if(a&&a.handler)return a.handler(i,t,r);throw new zT("No function handler for "+e)}parseArguments(e,t){var r=t.numArgs+t.numOptionalArgs;if(0===r)return{args:[],optArgs:[]};for(var n=[],o=[],i=0;i<r;i++){var a=t.argTypes&&t.argTypes[i],s=i<t.numOptionalArgs;(t.primitive&&null==a||"sqrt"===t.type&&1===i&&null==o[0])&&(a="primitive");var u=this.parseGroupOfType("argument to '"+e+"'",a,s);if(s)o.push(u);else{if(null==u)throw new zT("Null argument, please report this as a bug");n.push(u)}}return{args:n,optArgs:o}}parseGroupOfType(e,t,r){switch(t){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,t);case"hbox":var n=this.parseArgumentGroup(r,"text");return null!=n?{type:"styling",mode:n.mode,body:[n],style:"text"}:null;case"raw":var o=this.parseStringGroup("raw",r);return null!=o?{type:"raw",mode:"text",string:o.text}:null;case"primitive":if(r)throw new zT("A primitive argument cannot be optional");var i=this.parseGroup(e);if(null==i)throw new zT("Expected group as "+e,this.fetch());return i;case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new zT("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){var r=this.gullet.scanArgument(t);if(null==r)return null;for(var n,o="";"EOF"!==(n=this.fetch()).text;)o+=n.text,this.consume();return this.consume(),r.text=o,r}parseRegexGroup(e,t){for(var r,n=this.fetch(),o=n,i="";"EOF"!==(r=this.fetch()).text&&e.test(i+r.text);)i+=(o=r).text,this.consume();if(""===i)throw new zT("Invalid "+t+": '"+n.text+"'",n);return n.range(o,i)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var r=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!r)throw new zT("Invalid color: '"+t.text+"'",t);var n=r[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(e){var t,r=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",r=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!n)throw new zT("Invalid size: '"+t.text+"'",t);var o={number:+(n[1]+n[2]),unit:n[3]};if(!wk(o))throw new zT("Invalid unit: '"+o.unit+"'",t);return{type:"size",mode:this.mode,value:o,isBlank:r}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var r=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(e,t){var r=this.gullet.scanArgument(e);if(null==r)return null;var n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:r.loc,body:o};return t&&this.switchMode(n),i}parseGroup(e,t){var r,n=this.fetch(),o=n.text;if("{"===o||"\\begingroup"===o){this.consume();var i="{"===o?"}":"\\endgroup";this.gullet.beginGroup();var a=this.parseExpression(!1,i),s=this.fetch();this.expect(i),this.gullet.endGroup(),r={type:"ordgroup",mode:this.mode,loc:LT.range(n,s),body:a,semisimple:"\\begingroup"===o||void 0}}else if(null==(r=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===o[0]&&!AF.hasOwnProperty(o)){if(this.settings.throwOnError)throw new zT("Undefined control sequence: "+o,n);r=this.formatUnsupportedCmd(o),this.consume()}return r}formLigatures(e){for(var t=e.length-1,r=0;r<t;++r){var n=e[r],o=n.text;"-"===o&&"-"===e[r+1].text&&(r+1<t&&"-"===e[r+2].text?(e.splice(r,3,{type:"textord",mode:"text",loc:LT.range(n,e[r+2]),text:"---"}),t-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:LT.range(n,e[r+1]),text:"--"}),t-=1)),"'"!==o&&"`"!==o||e[r+1].text!==o||(e.splice(r,2,{type:"textord",mode:"text",loc:LT.range(n,e[r+1]),text:o+o}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var r=t.slice(5),n="*"===r.charAt(0);if(n&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new zT("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:r=r.slice(1,-1),star:n}}NF.hasOwnProperty(t[0])&&!zk[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=NF[t[0]]+t.slice(1));var o,i=pF.exec(t);if(i&&("i"===(t=t.substring(0,i.index))?t="ı":"j"===t&&(t="ȷ")),zk[this.mode][t]){this.settings.strict&&"math"===this.mode&&vO.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var a,s=zk[this.mode][t].group,u=LT.range(e);if(Lk.hasOwnProperty(s)){var l=s;a={type:"atom",mode:this.mode,family:l,loc:u,text:t}}else a={type:s,mode:this.mode,loc:u,text:t};o=a}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(ik(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:LT.range(e),text:t}}if(this.consume(),i)for(var c=0;c<i[0].length;c++){var d=i[0][c];if(!OF[d])throw new zT("Unknown accent ' "+d+"'",e);var f=OF[d][this.mode]||OF[d].text;if(!f)throw new zT("Accent "+d+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:LT.range(e),label:f,isStretchy:!1,isShifty:!0,base:o}}return o}}BF.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var FF=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new BF(e,t);delete r.gullet.macros.current["\\df@tag"];var n=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new zT("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:r.subparse([new _T("\\df@tag")])}]}return n},MF=function(e,t,r){t.textContent="";var n=PF(e,r).toNode();t.appendChild(n)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),MF=function(){throw new zT("KaTeX doesn't work in quirks mode.")});var IF=function(e,t,r){if(r.throwOnError||!(e instanceof zT))throw e;var n=FO.makeSpan(["katex-error"],[new Fk(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+r.errorColor),n},PF=function(e,t){var r=new WT(t);try{return function(e,t,r){var n,o=vN(r);if("mathml"===r.output)return mN(e,t,o,r.displayMode,!0);if("html"===r.output){var i=oN(e,o);n=FO.makeSpan(["katex"],[i])}else{var a=mN(e,t,o,r.displayMode,!1),s=oN(e,o);n=FO.makeSpan(["katex"],[a,s])}return yN(n,r)}(FF(e,r),e,r)}catch(t){return IF(t,e,r)}},RF={version:"0.16.25",render:MF,renderToString:function(e,t){return PF(e,t).toMarkup()},ParseError:zT,SETTINGS_SCHEMA:qT,__parse:function(e,t){var r=new WT(t);return FF(e,r)},__renderToDomTree:PF,__renderToHTMLTree:function(e,t){var r=new WT(t);try{return function(e,t,r){var n=oN(e,vN(r)),o=FO.makeSpan(["katex"],[n]);return yN(o,r)}(FF(e,r),0,r)}catch(t){return IF(t,e,r)}},__setFontMetrics:function(e,t){lk[e]=t},__defineSymbol:jk,__defineFunction:HO,__defineMacro:SB,__domTree:{Span:kk,Anchor:Ok,SymbolNode:Fk,SvgNode:Mk,PathNode:Ik,LineNode:Pk}},LF=function(e){function t(){var t=e.call(this)||this,r=t.attachShadow({mode:"open"}),n=r.ownerDocument.createElement("span");return n.style.display="inline-block",r.appendChild(n),t.span=n,t}return bh(t,e),Object.defineProperty(t,"observedAttributes",{get:function(){return["data-value"]},enumerable:!1,configurable:!0}),t.prototype.attributeChangedCallback=function(e,t,r){if("data-value"===e){if(t===r)return;this.render(r||"")}},t.prototype.render=function(e){RF.render(e,this.span,{throwOnError:!1,output:"mathml"})},t}(HTMLElement);window.customElements.get("w-e-formula-card")||window.customElements.define("w-e-formula-card",LF),Py("en",{formula:{formula:"Formula",placeholder:"Use LateX syntax",insert:"Insert formula",edit:"Edit formula",textToFormula:"Convert to formula",ok:"OK"}}),Py("zh-CN",{formula:{formula:"公式",placeholder:"使用 LateX 语法",insert:"插入公式",edit:"编辑公式",textToFormula:"转换为公式",ok:"确定"}});var _F={type:"formula",elemToHtml:function(e,t){var r=e.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>')}},zF='<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>';function jF(e){return void 0===e&&(e="r"),"".concat(e,"-").concat(bg())}function HF(){return jF("w-e-insert-formula")}ag&&(_p.fn.append=ag),ng&&(_p.fn.html=ng),Gp&&(_p.fn.val=Gp),Wp&&(_p.fn.on=Wp),vg&&(_p.fn.focus=vg),ig&&(_p.fn.is=ig),lg&&(_p.fn.parents=lg),cg&&(_p.fn.find=cg);var $F=function(){function e(){this.title=Ly("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=HF(),this.buttonId=HF()}return e.prototype.getSelectedElem=function(e){var t=bm.getSelectedNodeByType(e,"formula");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedElem(e);return t&&t.value||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!!ph.Range.isExpanded(t)||null==this.getSelectedElem(e))},e.prototype.getModalPositionNode=function(e){return this.getSelectedElem(e)},e.prototype.getModalContentElem=function(e){var t=this,r=this.textareaId,n=this.buttonId,o=Ch(Ky(Ly("formula.formula"),r,Ly("formula.placeholder")),2),i=o[0],a=_p(o[1]),s=Ch(Xy(n,Ly("formula.ok")),1)[0];if(null==this.$content){var u=_p("<div></div>");u.on("click","#".concat(n),function(n){n.preventDefault();var o=u.find("#".concat(r)).val().trim();t.updateFormula(e,o),e.hidePanelOrModal()}),this.$content=u}var l=this.$content;l.html(""),l.append(i),l.append(s);var c=this.getValue(e);return a.val(c),setTimeout(function(){a.focus()}),l[0]},e.prototype.updateFormula=function(e,t){if(t&&(e.restoreSelection(),!this.isDisabled(e))){var r=this.getSelectedElem(e);if(null!=r){var n=bm.findPath(e,r),o={value:t};ph.Transforms.setNodes(e,o,{at:n})}}},e}();function UF(){return jF("w-e-insert-formula")}var VF=function(){function e(){this.title=Ly("formula.insert"),this.iconSvg=zF,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textareaId=UF(),this.buttonId=UF()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=bm.getSelectedElems(e);return!!t.some(function(t){return e.isVoid(t)})||!!t.some(function(e){return"pre"===bm.getNodeType(e)})},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,r=this.textareaId,n=this.buttonId,o=Ch(Ky(Ly("formula.formula"),r,Ly("formula.placeholder")),2),i=o[0],a=_p(o[1]),s=Ch(Xy(n,Ly("formula.ok")),1)[0];if(null==this.$content){var u=_p("<div></div>");u.on("click","#".concat(n),function(n){n.preventDefault();var o=u.find("#".concat(r)).val().trim();t.insertFormula(e,o),e.hidePanelOrModal()}),this.$content=u}var l=this.$content;l.html(""),l.append(i),l.append(s);var c=e.selection,d="";return c&&ph.Range.isExpanded(c)&&(d=ph.Editor.string(e,c)),a.val(d),setTimeout(function(){a.focus()},50),l[0]},e.prototype.insertFormula=function(e,t){if(t&&(e.restoreSelection(),!this.isDisabled(e))){var r=e.selection,n={type:"formula",value:t,children:[{text:""}]};r&&ph.Range.isExpanded(r)&&ph.Transforms.delete(e),e.insertNode(n)}},e}();function qF(){return jF("w-e-text-to-formula")}var GF=function(){function e(){this.title=Ly("formula.textToFormula"),this.iconSvg=zF,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textareaId=qF(),this.buttonId=qF()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){if(null==Kh.insertFormula)return!0;if(null==e.selection)return!1;var t=bm.getSelectedElems(e);return!!t.some(function(t){return e.isVoid(t)})||!!t.some(function(e){return"pre"===bm.getNodeType(e)})},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,r=this.textareaId,n=this.buttonId,o=Ch(Ky(Ly("formula.formula"),r,Ly("formula.placeholder")),2),i=o[0],a=_p(o[1]),s=Ch(Xy(n,Ly("formula.ok")),1)[0];if(null==this.$content){var u=_p("<div></div>");u.on("click","#".concat(n),function(n){n.preventDefault();var o,i=u.find("#".concat(r)).val().trim();o=i,console.warn("composeFnDeal 被调用了"),console.log("原始 latex:",o),o=function(e){return e?(e=e.trim(),/^\$\$([\s\S]*)\$\$$/.test(e)?e=e.replace(/^\$\$([\s\S]*)\$\$$/,"$1"):/^\$([\s\S]*)\$/.test(e)?e=e.replace(/^\$([\s\S]*)\$$/,"$1"):/^\\\(([\s\S]*)\\\)$/.test(e)?e=e.replace(/^\\\(([\s\S]*)\\\)$/,"$1"):/^\\\[([\s\S]*)\\\]$/.test(e)&&(e=e.replace(/^\\\[([\s\S]*)\\\]$/,"$1")),e.trim()):e}(o=function(e){return e.replace(/\\text\{([^}]*)\}/g,function(e,t){var r=t.trim().split(/\s+/).join(" \\quad ");return"\\text{".concat(r,"}")})}(o)),console.log("去掉公式包裹符号后:",o),o=function(e){return e?e=(e=(e=(e=(e=e.replace(/\\begin\{align\}/g,"\\begin{aligned}")).replace(/\\end\{align\}/g,"\\end{aligned}")).replace(/\\frac\{(\d+)\}\{(\d+)\}/g,"\\tfrac{$1}{$2}")).replace(/\\left\\\{/g,"\\left\\{")).replace(/\\right\./g,"\\right."):e}(o),console.log("fixKatexFormula 处理后:",o),o=function(e){return e.replace(/\\left\[\s*\\begin\{matrix\}([\s\S]*?)\\end\{matrix\}\s*\\right\]/g,"\\begin{bmatrix}$1\\end{bmatrix}")}(o),console.log("fixMatrixForKaTeX 处理后:",o),i=o,t.insertFormula(e,i),e.hidePanelOrModal()}),this.$content=u}var l=this.$content;l.html(""),l.append(i),l.append(s);var c=e.selection,d="";return c&&ph.Range.isExpanded(c)&&(d=ph.Editor.string(e,c)),a.val(d),setTimeout(function(){if(a.focus(),d){var e=a[0];e&&e.select()}},50),l[0]},e.prototype.insertFormula=function(e,t){if(t&&(e.restoreSelection(),!this.isDisabled(e))){var r=e.selection,n={type:"formula",value:t,children:[{text:""}]};r&&ph.Range.isExpanded(r)&&ph.Transforms.delete(e),e.insertNode(n)}},e}();var WF={type:"formula",renderElem:function(e,t,r){var n=bm.isNodeSelected(r,e),o=e.value,i=Wb("w-e-formula-card",{dataset:{value:void 0===o?"":o}},null);return Wb("div",{className:"w-e-textarea-formula-container",props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:n?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"3px 3px"}},[i])}},YF={editorPlugin:function(e){var t=e.isInline,r=e.isVoid,n=e;return n.isInline=function(e){return"formula"===bm.getNodeType(e)||t(e)},n.isVoid=function(e){return"formula"===bm.getNodeType(e)||r(e)},n},renderElems:[WF],elemsToHtml:[_F],parseElemsHtml:[{selector:'span[data-w-e-type="formula"]',parseElemHtml:function(e,t,r){return{type:"formula",value:e.getAttribute("data-value")||"",children:[{text:""}]}}}],menus:[{key:"insertFormula",factory:function(){return new VF}},{key:"editFormula",factory:function(){return new $F}},{key:"textToFormula",factory:function(){return new GF}}]};Py("en",{tableModule:{modal:{border:"Border",borderWidth:"Width",bgColor:"Back color",align:"Text Align",ok:"OK"},color:{default:"Default color",clear:"Clear back color"},borderStyle:{none:"None",solid:"Solid",dotted:"Dotted",dashed:"Dashed",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset"},deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Fit width",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header",mergeCell:"merge cell",splitCell:"split cell",tableProperty:"Table property",cellProperty:"Cell property"}}),Py("zh-CN",{tableModule:{modal:{border:"边框",borderWidth:"宽度",bgColor:"背景色",align:"对齐方式",ok:"确定"},color:{default:"默认颜色",clear:"清除背景色"},borderStyle:{none:"无样式",solid:"实线",dotted:"点状虚线",dashed:"虚线",double:"双线",groove:"凹槽边框",ridge:"菱形边框",inset:"凹边框",outset:"凸边框"},deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"适应宽度",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",mergeCell:"合并单元格",splitCell:"拆分单元格",tableProperty:"表格属性",cellProperty:"单元格属性"}});var KF={type:"table",elemToHtml:function(e,t){var r=e,n=r.width,o=void 0===n?"auto":n,i=r.columnWidths,a=r.height,s=void 0===a?"auto":a,u=null==i?void 0:i.map(function(e){return"<col width=".concat(e,"></col>")}).join(""),l=u?'<colgroup contentEditable="false">'.concat(u,"</colgroup>"):"";return'<table style="width: '.concat(o,";table-layout: fixed;height:").concat(s,'">').concat(l,"<tbody>").concat(t,"</tbody></table>")}},XF={type:"table-row",elemToHtml:function(e,t){var r=e.height,n=r?' style="height: '.concat(r,'px"'):"";return"<tr".concat(n,">").concat(t,"</tr>")}},ZF={type:"table-cell",elemToHtml:function(e,t){var r=e,n=r.colSpan,o=void 0===n?1:n,i=r.rowSpan,a=void 0===i?1:i,s=r.isHeader,u=void 0!==s&&s,l=r.width,c=void 0===l?"auto":l,d=r.hidden;if(void 0!==d&&d)return"";var f=u?"th":"td";return"<".concat(f,' colSpan="').concat(o,'" rowSpan="').concat(a,'" width="').concat(c,'">').concat(t,"</").concat(f,">")}},JF='<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>',QF={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function eM(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=QF,o=t.map(function(e){var t;return null===(t=null==n?void 0:n.blocks)||void 0===t?void 0:t[e]});return function(e){return function(e){return!ph.Editor.isEditor(e)&&ph.Element.isElement(e)&&"type"in e}(e)&&o.includes(e.type)}}function tM(e,t){for(var r=Ch(t,2),n=r[0],o=r[1],i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=Ch(ph.Node.common(e,n,o),2),u=s[0],l=s[1];return!!eM.apply(void 0,Ah([e],Ch(i),!1))(u,l)||!!ph.Editor.above(e,{match:eM.apply(void 0,Ah([e],Ch(i),!1)),at:l})}function rM(e,t){var r,n;void 0===t&&(t={});var o=[];try{for(var i=Sh(function(e,t){var r,n,o,i,a,s,u,l,c,d,f,h,p,g,m,v,y,b;return void 0===t&&(t={}),xh(this,function(w){switch(w.label){case 0:if(r=Ch(ph.Editor.nodes(e,{match:eM(e,"table"),at:t.at}),1),!(n=r[0]))return[2,[]];o=Ch(n,2),i=o[1],w.label=1;case 1:w.trys.push([1,6,7,8]),a=Sh(ph.Editor.nodes(e,{match:eM(e,"table"),at:i})),s=a.next(),w.label=2;case 2:if(s.done)return[3,5];u=Ch(s.value,2),l=u[1],c=[];try{for(y=void 0,d=Sh(ph.Editor.nodes(e,{match:eM(e,"tr"),at:l})),f=d.next();!f.done;f=d.next())h=Ch(f.value,2),p=h[1],c.push(Ah([],Ch(ph.Editor.nodes(e,{match:eM(e,"th","td"),at:p})),!1))}catch(e){y={error:e}}finally{try{f&&!f.done&&(b=d.return)&&b.call(d)}finally{if(y)throw y.error}}return[4,c];case 3:w.sent(),w.label=4;case 4:return s=a.next(),[3,2];case 5:return[3,8];case 6:return g=w.sent(),m={error:g},[3,8];case 7:try{s&&!s.done&&(v=a.return)&&v.call(a)}finally{if(m)throw m.error}return[7];case 8:return[2]}})}(e,{at:t.at})),a=i.next();!a.done;a=i.next()){for(var s=a.value,u=[],l=0,c=0;c<s.length;c+=1)s[c]&&(l=Math.max(l,s[c].length));for(c=0;c<s.length;c+=1)if(u[c]||(u[c]=[]),s[c])for(var d=0;d<s[c].length;d+=1)if(s[c][d]&&s[c][d][0]){for(var f=Ch(s[c][d],1)[0],h=f.rowSpan,p=void 0===h?1:h,g=f.colSpan,m=void 0===g?1:g,v=d;u[c]&&u[c][v];)v+=1;for(var y=0;y<m;y+=1)for(var b=0;b<p;b+=1){var w=c+b,E=v+y;u[w]||(u[w]=[]),u[w][E]||(u[w][E]=[s[c][d],{rtl:y+1,ltr:m-y,ttb:b+1,btt:p-b}])}}o.push.apply(o,Ah([],Ch(u),!1))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}var nM=function(){function e(e,t){this.x=e,this.y=t}return e.valueOf=function(e,t){return new this(e,t)},e.equals=function(e,t){return e.x===t.x&&e.y===t.y},e}();function oM(e){return e.length?e[0].tagName.toLowerCase():""}function iM(e,t){for(var r="",n=(e.attr("style")||"").split(";"),o=n.length,i=0;i<o;i+=1){var a=n[i];if(a){var s=a.split(":");s[0].trim()===t&&(r=s[1].trim())}}return r}ag&&_p.fn&&(_p.fn.append=ag),Wp&&_p.fn&&(_p.fn.on=Wp),vg&&_p.fn&&(_p.fn.focus=vg),$p&&_p.fn&&(_p.fn.attr=$p),Gp&&_p.fn&&(_p.fn.val=Gp),ng&&_p.fn&&(_p.fn.html=ng),qp&&_p.fn&&(_p.fn.dataset=qp),zp&&_p.fn&&(_p.fn.addClass=zp),jp&&_p.fn&&(_p.fn.removeClass=jp),dg&&_p.fn&&(_p.fn.children=dg),tg&&_p.fn&&(_p.fn.each=tg),cg&&_p.fn&&(_p.fn.find=cg),Vp&&_p.fn&&(_p.fn.data=Vp),Jp&&_p.fn&&(_p.fn.hide=Jp),Qp&&_p.fn&&(_p.fn.show=Qp);var aM=new WeakMap,sM=new WeakMap,uM=function(){function e(){this.title=Ly("tableModule.tableProperty"),this.iconSvg='<svg viewBox="0 0 20 20"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.menu="table",this.borderStyle=[{value:"none",label:Ly("tableModule.borderStyle.none")},{value:"solid",label:Ly("tableModule.borderStyle.solid")},{value:"dotted",label:Ly("tableModule.borderStyle.dotted")},{value:"dashed",label:Ly("tableModule.borderStyle.dashed")},{value:"double",label:Ly("tableModule.borderStyle.double")},{value:"groove",label:Ly("tableModule.borderStyle.groove")},{value:"ridge",label:Ly("tableModule.borderStyle.ridge")},{value:"inset",label:Ly("tableModule.borderStyle.inset")},{value:"outset",label:Ly("tableModule.borderStyle.outset")}],this.textAlignOptions=[{value:"left",label:Ly("justify.left"),svg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"center",label:Ly("justify.center"),svg:'<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"right",label:Ly("justify.right"),svg:'<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"justify",label:Ly("justify.justify"),svg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>'}]}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==bm.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){},e.prototype.getModalContentNode=function(e){return Ch(ph.Editor.nodes(e,{match:eM(e,"table")}),1)[0]},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,r=this.getModalContentNode(e);if(!r)return null;var n=Ch(r,2),o=n[0],i=n[1],a=_p('<div>\n <label class="babel-container">\n <span>'.concat(Ly("tableModule.modal.border"),'</span>\n <span class="babel-container-border">\n <select name="borderStyle">\n ').concat(this.borderStyle.map(function(e){return'<option value="'.concat(e.value,'">').concat(e.label,"</option>")}).join(""),'\n </select>\n <span class="color-group" data-mark="color">\n <span class="color-group-block"></span>\n <input name="borderColor" type="hidden">\n </span>\n <input name="borderWidth" type="number" placeholder="').concat(Ly("tableModule.modal.borderWidth"),'">\n </span>\n </label>\n <div class="babel-container">\n <span>').concat(Ly("tableModule.modal.bgColor"),'</span>\n <span class="babel-container-background">\n <span class="color-group" data-mark="bgColor">\n <span class="color-group-block"></span>\n <input name="backgroundColor" type="hidden">\n </span>\n </span>\n </div>\n <label class="babel-container">\n <span>').concat(Ly("tableModule.modal.align"),'</span>\n <span class="babel-container-align">\n <select name="textAlign">\n ').concat(this.textAlignOptions.map(function(e){return'<option value="'.concat(e.value,'">').concat(e.label,"</option>")}).join(""),'\n </select>\n </span>\n </label>\n <div class="button-container">\n <button type="button">').concat(Ly("tableModule.modal.ok"),"</button>\n </div>\n </div>"));a.find("[name]").each(function(e){_p(e).val(o[_p(e).attr("name")])});var s=function(e,t){t?_p(".color-group-block",e).css("background-color",t).empty():_p(".color-group-block",e).css("background-color","").html(JF)};return a.find(".color-group").each(function(r){var n=_p('[type="hidden"]',r).val()||"";s(r,n);var o=_p(r);o.on("click",function(){a.find(".color-group .w-e-drop-panel").hide();var i=o.data("panel");i?i.show():(i=t.getPanelContentElem(e,{mark:o.data("mark"),selectedColor:n,callback:function(e){_p('[type="hidden"]',r).val(e||""),s(r,e),i.hide()}}),o.append(i),o.data("panel",i))})}),a.find("button").on("click",function(){var r=Array.from(a.find("[name]")).reduce(function(e,t){return e[_p(t).attr("name")]=_p(t).val(),e},{}),n=aM.get(e);"cell"===t.menu&&(null==n?void 0:n.length)?n.forEach(function(t){t.forEach(function(t){ph.Transforms.setNodes(e,r,{at:t[0][1]})})}):ph.Transforms.setNodes(e,r,{at:i}),setTimeout(function(){e.focus()})}),a[0]},e.prototype.getPanelContentElem=function(e,t){var r=t.mark,n=t.selectedColor,o=t.callback,i=_p('<ul class="w-e-panel-content-color"></ul>');i.on("click","li",function(e){var t=e.target;if(t){e.preventDefault(),e.stopPropagation();var r=_p(t).attr("data-value");o(r)}});var a=e.getMenuConfig(r).colors;(void 0===a?[]:a).forEach(function(e){var t=_p('<div class="color-block" data-value="'.concat(e,'"></div>'));t.css("background-color",e);var r=_p('<li data-value="'.concat(e,'"></li>'));n===e&&r.addClass("active"),r.append(t),i.append(r)});var s="";"color"===r&&(s=Ly("tableModule.color.default")),"bgColor"===r&&(s=Ly("tableModule.color.clear"));var u=_p('\n <li data-value="" class="clear">\n '.concat(JF,"\n ").concat(s,"\n </li>\n "));i.prepend(u);var l=_p('<div class="w-e-drop-panel"></div>');return l.append(i),l},e}(),lM=function(e){function t(){var t=e.apply(this,Ah([],Ch(arguments),!1))||this;return t.title=Ly("tableModule.cellProperty"),t.iconSvg='<svg viewBox="0 0 20 20"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',t.tag="button",t.showModal=!0,t.modalWidth=300,t.menu="cell",t}return bh(t,e),t.prototype.getModalContentNode=function(e){return Ch(ph.Editor.nodes(e,{match:eM(e,"td")}),1)[0]},t}(uM),cM=function(){function e(){this.title=Ly("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!ph.Range.isCollapsed(t)||null==bm.getSelectedNodeByType(e,"table-cell"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var r=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-cell")},universal:!0}),1),n=Ch(r[0],2),o=n[0],i=n[1],a=bm.getParentNode(e,o),s=(null==a?void 0:a.children.length)||0;if(!a||s<=1)ph.Transforms.removeNodes(e,{mode:"highest"});else if(null!=bm.getParentNode(e,a)){var u=rM(e),l=0;e:for(var c=0;c<u.length;c+=1)for(var d=0;d<u[c].length;d+=1){var f=Ch(u[c][d],1),h=Ch(f[0],2)[1];if(ph.Path.equals(i,h)){l=d;break e}}ph.Editor.withoutNormalizing(e,function(){for(var t,r,n=new Set,o=new Set,i=0;i<u.length;i+=1)if(u[i]&&u[i][l]){var a=Ch(u[i][l],2),s=Ch(a[0],2)[1],c=a[1],d=c.rtl,f=c.ltr,h=c.ttb,p=c.btt,g=s.join(",");if(d>1||f>1||h>1||p>1){var m=i-(h-1),v=l-(d-1);if(m<0||m>=u.length||!u[m]||!u[m][v])continue;var y=Ch(u[m][v],1),b=Ch(y[0],2),w=b[0],E=b[1],x=E.join(",");if(!o.has(x)){o.add(x);var S=w.rowSpan,C=void 0===S?1:S,A=w.colSpan,D=void 0===A?1:A,T=Math.max(D-1,1);ph.Transforms.setNodes(e,{rowSpan:C,colSpan:T},{at:E})}}else n.add(g)}var k=Array.from(n);k.sort(function(e,t){var r=e.split(",").map(Number),n=t.split(",").map(Number);return r[r.length-2]!==n[n.length-2]?n[n.length-2]-r[r.length-2]:n[n.length-1]-r[r.length-1]});try{for(var O=Sh(k),N=O.next();!N.done;N=O.next()){var B=N.value.split(",").map(Number);try{ph.Editor.hasPath(e,B)&&ph.Transforms.removeNodes(e,{at:B})}catch(e){console.warn("删除单元格失败:",B,e)}}}catch(e){t={error:e}}finally{try{N&&!N.done&&(r=O.return)&&r.call(O)}finally{if(t)throw t.error}}var F=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table")},universal:!0}),1),M=F[0];if(M){var I=Ch(M,2),P=I[0],R=I[1],L=P.columnWidths,_=Ah([],Ch(void 0===L?[]:L),!1);_.splice(l,1),ph.Transforms.setNodes(e,{columnWidths:_},{at:R})}})}}},e}(),dM=function(){function e(){this.title=Ly("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!ph.Range.isCollapsed(t)||null==bm.getSelectedNodeByType(e,"table-row"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var r=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-row")},universal:!0}),1),n=Ch(r[0],2),o=n[0],i=n[1],a=bm.getParentNode(e,o);if(((null==a?void 0:a.children.length)||0)<=1)ph.Transforms.removeNodes(e,{mode:"highest"});else{var s=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-cell")},universal:!0}),1),u=Ch(s[0],2)[1],l=rM(e),c=0;e:for(var d=0;d<l.length;d+=1)for(var f=0;f<l[d].length;f+=1){var h=Ch(l[d][f],1),p=Ch(h[0],2)[1];if(ph.Path.equals(u,p)){c=d;break e}}ph.Editor.withoutNormalizing(e,function(){for(var t,r,n=[],o=0;o<l[c].length;o+=1){var a=Ch(l[c][o],2),s=Ch(a[0],1)[0].hidden,u=a[1],d=u.ttb,f=u.btt,h=u.rtl;if(d>1||f>1){var p=c-(d-1);if(p<0||p>=l.length||!l[p]||!l[p][o])continue;var g=Ch(l[p][o],1),m=Ch(g[0],2),v=m[0],y=m[1],b=v,w=b.rowSpan,E=void 0===w?1:w,x=b.colSpan,S=void 0===x?1:x;if(s)ph.Transforms.setNodes(e,{rowSpan:Math.max(E-1,1),colSpan:S},{at:y});else if(1===d&&1===h){if(c+1<l.length&&E>1){var C={type:"table-cell",rowSpan:E-1,colSpan:S,hidden:!1,children:b.children.map(function(e){return wh({},e)})};b.isHeader&&(C.isHeader=b.isHeader),b.width&&(C.width=b.width),b.backgroundColor&&(C.backgroundColor=b.backgroundColor),b.borderWidth&&(C.borderWidth=b.borderWidth),b.borderStyle&&(C.borderStyle=b.borderStyle),b.borderColor&&(C.borderColor=b.borderColor),b.textAlign&&(C.textAlign=b.textAlign),n.push({cell:C,columnIndex:o})}else ph.Transforms.setNodes(e,{rowSpan:Math.max(E-1,1),colSpan:S},{at:y})}else ph.Transforms.setNodes(e,{rowSpan:Math.max(E-1,1),colSpan:S},{at:y})}}if(ph.Transforms.removeNodes(e,{at:i}),n.length>0){var A=i;try{n.sort(function(e,t){return e.columnIndex-t.columnIndex});try{for(var D=Sh(n),T=D.next();!T.done;T=D.next()){var k=T.value,O=k.cell,N=k.columnIndex;try{var B=Ah(Ah([],Ch(A),!1),[N],!1);ph.Transforms.insertNodes(e,O,{at:B})}catch(t){try{var F=Ch(ph.Editor.node(e,A),1)[0].children.length,M=Ah(Ah([],Ch(A),!1),[F],!1);ph.Transforms.insertNodes(e,O,{at:M})}catch(e){console.warn("插入新单元格失败:",e)}}}}catch(e){t={error:e}}finally{try{T&&!T.done&&(r=D.return)&&r.call(D)}finally{if(t)throw t.error}}}catch(e){console.warn("插入新单元格失败:",e)}}})}}},e}(),fM=function(){function e(){this.title=Ly("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==bm.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||ph.Transforms.removeNodes(e,{mode:"highest"})},e}(),hM=function(){function e(){this.title=Ly("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return!1},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!ph.Range.isCollapsed(t)||null==bm.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var r=bm.getSelectedNodeByType(e,"table");if(r){var n=r.columnWidths,o=void 0===n?[]:n,i=bm.toDOMNode(e,r).querySelector(".table-container");if(i&&0!==o.length){var a=i.clientWidth,s=o.reduce(function(e,t){return e+t},0),u=o.map(function(e){var t=e/s;return Math.floor(t*a)}),l=e.getMenuConfig("insertTable").minWidth,c=parseInt(String(void 0===l?60:l),10)||60,d=u.map(function(e){return Math.max(c,e)}),f=d.reduce(function(e,t){return e+t},0);if(f>a){var h=a/f,p=d.map(function(e){return Math.max(c,Math.floor(e*h))});m={width:"auto",columnWidths:p};ph.Transforms.setNodes(e,m,{mode:"highest"})}else{p=Ah([],Ch(d),!1);var g=a-f-1;g>0&&p.length>0&&(p[p.length-1]+=g);m={width:"auto",columnWidths:p};ph.Transforms.setNodes(e,m,{mode:"highest"})}}else{var m={width:"auto"};ph.Transforms.setNodes(e,m,{mode:"highest"})}}}},e}();function pM(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function gM(e){return pM(e).every(function(e){return!!e.isHeader})}var mM=function(){function e(){this.title=Ly("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;if(null==t)return!0;if(!ph.Range.isCollapsed(t))return!0;var r=bm.getSelectedNodeByType(e,"table");if(null==r)return!0;try{var n=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-cell")},universal:!0}),1),o=n[0];if(!o)return!0;for(var i=Ch(o,2)[1],a=rM(e),s=-1,u=0;u<a.length;u+=1){for(var l=0;l<a[u].length;l+=1){var c=Ch(a[u][l],1),d=Ch(c[0],2)[1];if(ph.Path.equals(i,d)){s=l;break}}if(-1!==s)break}if(-1===s)return!0;var f=r.columnWidths,h=(void 0===f?[]:f)[s];if(h&&h<20)return!0}catch(e){return!0}return!1},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var r=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-cell")},universal:!0}),1),n=Ch(r[0],2),o=n[0],i=n[1],a=bm.getParentNode(e,o);if(null!=a){var s=bm.getParentNode(e,a);if(null!=s){for(var u=rM(e),l=0,c=0;c<u.length;c+=1)for(var d=0;d<u[c].length;d+=1){var f=Ch(u[c][d],1),h=Ch(f[0],2)[1];if(ph.Path.equals(i,h)){l=d;break}}ph.Editor.withoutNormalizing(e,function(){for(var t=new Set,r=new Set,n=0;n<u.length;n+=1)if(u[n]&&u[n][l]){var o=Ch(u[n][l],2);Ch(o[0],1);var i=o[1],a=i.rtl,c=i.ltr,d=i.ttb,f=i.btt;if(a>1||c>1||d>1||f>1){var h=n-(d-1),p=l-(a-1);if(h<0||h>=u.length||!u[h]||!u[h][p])continue;var g=Ch(u[h][p],1),m=Ch(g[0],2),v=m[0],y=m[1],b=y.join(",");if(t.has(b))r.add(n);else{t.add(b);var w=v.rowSpan,E=void 0===w?1:w,x=v.colSpan,S=(void 0===x?1:x)+1;v.hidden||ph.Transforms.setNodes(e,{colSpan:S},{at:y});for(var C=0;C<E;C+=1)r.add(h+C)}}}for(n=0;n<u.length;n+=1)if(!r.has(n)&&u[n]&&u[n][l]){var A={type:"table-cell",children:[{text:""}]};0===n&&gM(s)&&(A.isHeader=!0);var D=Ch(u[n][l],1),T=Ch(D[0],2)[1];ph.Transforms.insertNodes(e,A,{at:T})}var k=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table")},universal:!0}),1),O=k[0];if(O){var N=Ch(O,2),B=N[0],F=N[1],M=B.columnWidths,I=void 0===M?[]:M,P=Ah([],Ch(I),!1),R=e.getMenuConfig("insertTable").minWidth,L=void 0===R?60:R,_=I[l]||parseInt(L,10)||60,z=Math.floor(_/2),j=_-z;P.splice(l,0,z),P[l+1]=j,ph.Transforms.setNodes(e,{columnWidths:P},{at:F})}})}}}},e}(),vM=function(){function e(){this.title=Ly("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!ph.Range.isCollapsed(t)||null==bm.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){var r;if(!this.isDisabled(e)){var n=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-cell")},universal:!0}),1),o=Ch(n[0],2)[1],i=rM(e),a=0;e:for(var s=0;s<i.length;s+=1)for(var u=0;u<i[s].length;u+=1){var l=Ch(i[s][u],1),c=Ch(l[0],2)[1];if(ph.Path.equals(o,c)){a=s;break e}}var d=(null===(r=i[a])||void 0===r?void 0:r.length)||0;0!==d&&ph.Editor.withoutNormalizing(e,function(){for(var t=a+1,r=t>=0&&t<i.length,n=[],s=0;r&&s<i[a].length;s+=1){var u=Ch(i[a][s],2)[1],l=u.ttb,c=u.btt;if(l>1||c>1){var f=a-(l-1);if(f<0||f>=i.length||!i[f]||!i[f][s])continue;var h=Ch(i[f][s],1),p=Ch(h[0],2),g=p[0],m=p[1],v=g.rowSpan||1;n.push(s),g.hidden||ph.Transforms.setNodes(e,{rowSpan:v+1},{at:m})}}for(var y=(e.getMenuConfig("insertTable")||{}).minRowHeight,b={type:"table-row",children:[],height:parseInt((void 0===y?30:y).toString(),10)||30},w=0;w<d;w+=1)if(!n.includes(w)){b.children.push({type:"table-cell",children:[{text:""}]})}var E=ph.Path.parent(o),x=ph.Path.next(E);ph.Transforms.insertNodes(e,b,{at:x})})}},e}();var yM=function(){function e(){this.title=Ly("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!ph.Range.isCollapsed(t)||!!bm.getSelectedElems(e).some(function(t){var r=bm.getNodeType(t);return"pre"===r||("table"===r||("list-item"===r||!!e.isVoid(t)))}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var r=_p('<div class="w-e-panel-content-table"></div>'),n=_p("<span>0 × 0</span>"),o=_p("<table></table>"),i=0;i<10;i+=1){for(var a=_p("<tr></tr>"),s=0;s<10;s+=1){var u=_p("<td></td>");u.attr("data-x",s.toString()),u.attr("data-y",i.toString()),a.append(u),u.on("mouseenter",function(e){var t=e.target;if(null!=t){var r=_p(t).dataset(),i=r.x,a=r.y;n[0].innerHTML="".concat(i+1," × ").concat(a+1),o.children().each(function(e){_p(e).children().each(function(e){var t=_p(e),r=t.dataset(),n=r.x,o=r.y;n<=i&&o<=a?t.addClass("active"):t.removeClass("active")})})}}),u.on("click",function(r){r.preventDefault();var n=r.target;if(null!=n){var o=_p(n).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}})}o.append(a)}return r.append(o),r.append(n),this.$content=r,r[0]},e.prototype.insertTable=function(e,t,r){var n=parseInt(t,10),o=parseInt(r,10);if(n&&o&&!(n<=0||o<=0)){if(bm.isSelectedEmptyParagraph(e)&&ph.Transforms.removeNodes(e,{mode:"highest"}),0===e.children.length){ph.Transforms.insertNodes(e,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}var i=function(e,t,r){for(var n,o=[],i=e.getMenuConfig("insertTable"),a=i.minWidth,s=void 0===a?60:a,u=i.minRowHeight,l=void 0===u?30:u,c=i.tableFullWidth,d=i.tableHeader,f=Array(r).fill(parseInt(s,10)||60),h=0;h<t;h+=1){for(var p=[],g=0;g<r;g+=1){var m={type:"table-cell",children:[{text:""}]};0===h&&(m.isHeader=null===(n=null==d?void 0:d.selected)||void 0===n||n),p.push(m)}o.push({type:"table-row",children:p,height:parseInt(l,10)||30})}return{type:"table",width:(null==c?void 0:c.selected)?"100%":"auto",children:o,columnWidths:f}}(e,n,o);ph.Transforms.insertNodes(e,i,{mode:"highest"})}},e}(),bM={isInTable:function(e,t){return void 0===t&&(t={}),!!Ch(ph.Editor.nodes(e,{match:eM(e,"table"),at:t.at}),1)[0]},selection:function(e){var t,r,n,o,i,a,s,u;return xh(this,function(l){switch(l.label){case 0:t=aM.get(e),r=0,l.label=1;case 1:if(!(t&&r<t.length))return[3,4];for(n=[],o=0;o<t[r].length;o+=1)i=Ch(t[r][o],2),a=i[0],s=i[1],u=s.ltr,1===s.ttb&&n.push(a),o+=u-1;return[4,n];case 2:l.sent(),l.label=3;case 3:return r+=1,[3,1];case 4:return[2]}})},unselect:function(e){sM.delete(e),aM.delete(e)},isSelected:function(e,t){var r=sM.get(e);return!!r&&r.has(t)},hasSelected:function(e){return aM.has(e)}},wM=function(){function e(){this.title=Ly("tableModule.mergeCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return!this.canMerge(e)},e.prototype.exec=function(e,t){this.isDisabled(e)||(this.merge(e),bM.unselect(e))},e.prototype.canMerge=function(e){var t=aM.get(e);if(!t||!t.length)return!1;var r=Ch(t[t.length-1][t[t.length-1].length-1],1),n=Ch(r[0],2)[1],o=Ch(t[0][0],1);return!!tM(e,[Ch(o[0],2)[1],n],"table")},e.prototype.merge=function(e){if(this.canMerge(e)){var t=aM.get(e);if(t&&t.length){var r=Ch(t[0][0],1),n=Ch(r[0],2)[1],o=Ch(ph.Node.children(e,n,{reverse:!0}),1),i=Ch(o[0],2)[1];ph.Editor.withoutNormalizing(e,function(){for(var r,o,a,s,u,l,c=new Map,d=[],f=1/0,h=-1/0,p=1/0,g=-1/0,m=0;m<t.length;m+=1)for(var v=0;v<t[m].length;v+=1){var y=Ch(t[m][v],2),b=Ch(y[0],2),w=b[0],E=b[1],x=y[1].ttb,S=E.join(",");if(1===x&&!c.has(S)){c.set(S,{path:E,x:m,y:v,element:w});var C=w.rowSpan,A=void 0===C?1:C,D=w.colSpan,T=m,k=m+A-1,O=v,N=v+(void 0===D?1:D)-1;f=Math.min(f,T),h=Math.max(h,k),p=Math.min(p,O),g=Math.max(g,N)}}var B=h-f+1,F=g-p+1;try{for(var M=Sh(c),I=M.next();!I.done;I=M.next()){E=Ch(I.value,2)[1].path;ph.Path.equals(n,E)||d.push(E)}}catch(e){r={error:e}}finally{try{I&&!I.done&&(o=M.return)&&o.call(M)}finally{if(r)throw r.error}}d.sort(function(e,t){for(var r=0;r<Math.min(e.length,t.length);r+=1)if(e[r]!==t[r])return t[r]-e[r];return t.length-e.length});try{for(var P=Sh(d),R=P.next();!R.done;R=P.next()){E=R.value;try{if(!ph.Editor.hasPath(e,E))continue;try{for(var L=(u=void 0,Sh(ph.Node.children(e,E,{reverse:!0}))),_=L.next();!_.done;_=L.next()){var z=Ch(_.value,2)[1];ph.Transforms.moveNodes(e,{to:ph.Path.next(i),at:z})}}catch(e){u={error:e}}finally{try{_&&!_.done&&(l=L.return)&&l.call(L)}finally{if(u)throw u.error}}ph.Transforms.removeNodes(e,{at:E})}catch(e){}}}catch(e){a={error:e}}finally{try{R&&!R.done&&(s=P.return)&&s.call(P)}finally{if(a)throw a.error}}ph.Transforms.setNodes(e,{rowSpan:B,colSpan:F},{at:n})})}}},e}(),EM=function(){function e(){this.title=Ly("tableModule.splitCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M362.667 494.933v53.334l25.6-25.6zm0-241.066L460.8 352V78.933H57.6v98.134h305.067zm0 535.466v57.6H57.6v98.134h403.2V691.2zM661.333 494.933v53.334l-25.6-25.6zm0-241.066L563.2 352V78.933h403.2v98.134H661.333zm0 535.466v57.6H966.4v98.134H563.2V691.2z"/><path d="M753.067 341.333 693.333 281.6 512 460.8 330.667 281.6l-59.734 59.733 181.334 181.334L270.933 704l59.734 59.733L512 582.4l181.333 181.333L753.067 704 571.733 522.667z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-cell")}}),1),r=t[0];if(!r)return!0;var n=Ch(r,1)[0],o=n.rowSpan,i=void 0===o?1:o,a=n.colSpan;return!(i>1||(void 0===a?1:a)>1)},e.prototype.exec=function(e,t){this.isDisabled(e)||this.split(e)},e.prototype.split=function(e,t){void 0===t&&(t={});var r=Ch(ph.Editor.nodes(e,{match:eM(e,"table","th","td"),at:t.at}),2),n=r[0],o=r[1];if(n&&o){var i=gM(Ch(n,1)[0]),a=Ch(o,2),s=a[0],u=a[1],l=s.rowSpan,c=void 0===l?1:l,d=s.colSpan,f=void 0===d?1:d;1===c&&1===f||ph.Editor.withoutNormalizing(e,function(){ph.Transforms.setNodes(e,{rowSpan:1,colSpan:1},{at:u});for(var t=1;t<f;t+=1){var r={type:"table-cell",children:[{text:""}]};0===u[u.length-2]&&i&&(r.isHeader=!0);var n=u.slice(0,-1),o=u[u.length-1]+t,a=Ah(Ah([],Ch(n),!1),[o],!1);try{ph.Transforms.insertNodes(e,r,{at:a})}catch(t){try{var s=Ch(ph.Editor.node(e,n),1)[0].children.length,l=Ah(Ah([],Ch(n),!1),[s],!1);ph.Transforms.insertNodes(e,r,{at:l})}catch(e){console.warn("插入同行单元格失败: ".concat(e instanceof Error?e.message:String(e)))}}}for(var d=1;d<c;d+=1){var h=u[u.length-2]+d,p=Ah(Ah([],Ch(u.slice(0,-2)),!1),[h],!1);try{var g=Ch(ph.Editor.node(e,p),1)[0];if(!g){console.warn("目标行 ".concat(h," 不存在"));continue}for(t=0;t<f;t+=1){r={type:"table-cell",children:[{text:""}]},o=u[u.length-1]+t,a=Ah(Ah([],Ch(p),!1),[o],!1);try{var m=g.children.length;if(o>=m){var v=Ah(Ah([],Ch(p),!1),[m],!1);ph.Transforms.insertNodes(e,r,{at:v})}else ph.Transforms.insertNodes(e,r,{at:a})}catch(t){try{var y=g.children.length;l=Ah(Ah([],Ch(p),!1),[y],!1);ph.Transforms.insertNodes(e,r,{at:l})}catch(e){console.warn("插入单元格到第".concat(d,"行失败: ").concat(e instanceof Error?e.message:String(e)))}}}}catch(e){console.warn("处理第".concat(d,"行时出错: ").concat(e instanceof Error?e.message:String(e)))}}})}},e}(),xM=function(){function e(){this.title=Ly("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=bm.getSelectedNodeByType(e,"table");return null!=t&&gM(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!ph.Range.isCollapsed(t)||null==bm.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var r=!t,n=bm.getSelectedNodeByType(e,"table");if(null!=n)pM(n).forEach(function(t){return ph.Transforms.setNodes(e,{isHeader:r},{at:bm.findPath(e,t)})})}},e}(),SM={key:"insertTable",factory:function(){return new yM}},CM={key:"deleteTable",factory:function(){return new fM}},AM={key:"insertTableRow",factory:function(){return new vM}},DM={key:"deleteTableRow",factory:function(){return new dM}},TM={key:"insertTableCol",factory:function(){return new mM}},kM={key:"deleteTableCol",factory:function(){return new cM}},OM={key:"tableHeader",factory:function(){return new xM}},NM={key:"tableFullWidth",factory:function(){return new hM}},BM={key:"mergeTableCell",factory:function(){return new wM}},FM={key:"splitTableCell",factory:function(){return new EM}},MM={key:"setTableProperty",factory:function(){return new uM}},IM={key:"setTableCellProperty",factory:function(){return new lM}};var PM={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=_p(e),o=n.text().replace(/\s+/gm," ").trim();0===(t=t.filter(function(e){return"paragraph"===bm.getNodeType(e)||(!!ph.Text.isText(e)||!!r.isInline(e))})).length&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var i=parseInt(n.attr("colSpan")||"1",10),a=parseInt(n.attr("rowSpan")||"1",10),s="none"===iM(n,"display")&&0===o.length,u=n.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===oM(n),colSpan:i,rowSpan:a,width:u,children:t,hidden:s}}};var RM={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,r){for(var n=_p(e),o=[],i=0;i<t.length;i+=1){var a=t[i];if("table-cell"===bm.getNodeType(a)){var s=a;if(s.hidden)continue;o.push(s)}}return{type:"table-row",height:parseInt(iM(n,"height")||"0",10)||void 0,children:o}}};var LM,_M={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n,o,i=_p(e),a="auto";"100%"===iM(i,"width")&&(a="100%"),"100%"===i.attr("width")&&(a="100%");var s={type:"table",width:a,height:parseInt(iM(i,"height")||"0",10),children:t.filter(function(e){return"table-row"===bm.getNodeType(e)})},u=(null===(n=i.find("tr")[0])||void 0===n?void 0:n.children)||[],l=function(e){if(!e||0===e.length)return[];var t=[];return Array.from(e).forEach(function(e){var r=parseInt(e.getAttribute("span")||"1",10),n=parseInt(e.getAttribute("width")||iM(_p(e),"width")||"90",10);if(!Number.isNaN(n))for(var o=0;o<r;o+=1)t.push(n)}),t}((null===(o=i.find("colgroup")[0])||void 0===o?void 0:o.children)||null);if(l.length>0)s.columnWidths=l;else if(u.length>0){var c=[];Array.from(u).forEach(function(e){var t=parseInt(_p(e).attr("colSpan")||"1",10),r=parseInt(iM(_p(e),"width")||"90",10);c.push(r);for(var n=1;n<t;n+=1)c.push(90)}),s.columnWidths=c}return s}},zM=null===(LM=null===window||void 0===window?void 0:window.getComputedStyle(document.documentElement))||void 0===LM?void 0:LM.getPropertyValue("--w-e-textarea-border-color");function jM(e){var t=e.selection;if(null==t)return!1;var r=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-cell")}}),1),n=r[0];if(n){var o=Ch(n,2)[1],i=ph.Editor.start(e,o);if(ph.Point.equals(t.anchor,i))return!0}return!1}function HM(e,t){var r=t.offset;if(0===r)return!1;var n=ph.Editor.node(e,t);if(!ph.Text.isText(n[0]))return!1;var o=ph.Node.string(n[0]);return!(r>=o.length)&&("\n"===o[r-1]&&"\r"===o[r])}function $M(e,t,r){var n=e.selection;if(null==n||"line"===t)return!1;var o=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-cell")}}),1),i=o[0],a=n.anchor;if("backward"===r&&0===n.anchor.offset&&(a=ph.Editor.before(e,n)),"forward"===r&&ph.Editor.isEnd(e,n.anchor,n.anchor.path)&&(a=ph.Editor.after(e,n)),null==a)return!1;var s=ph.Editor.above(e,{at:a,match:function(e){return bm.checkNodeType(e,"table-cell")}});if(null==s||null==i||!ph.Path.equals(s[1],i[1]))return!1;var u=ph.Editor.node(e,a);if(!ph.Text.isText(u[0])||u[0].text.length<2)return!1;var l="backward"===r?[a.offset-2,a.offset]:[a.offset,a.offset+2],c=ph.Node.string(u[0]);return"\n\r"===c.slice.apply(c,Ah([],Ch(l),!1))?(ph.Transforms.insertText(e,c.slice(0,l[0])+c.slice(l[1]),{at:{anchor:ph.Editor.start(e,a.path),focus:ph.Editor.end(e,a.path)}}),!0):!!HM(e,a)&&(ph.Transforms.insertText(e,c.slice(0,n.anchor.offset-1)+c.slice(n.anchor.offset+1),{at:{anchor:ph.Editor.start(e,a.path),focus:ph.Editor.end(e,a.path)}}),!0)}function UM(e,t){var r=ph.Editor.nodes(e,{at:t,match:function(e){return"table"===bm.getNodeType(e)}});return!!Ah([],Ch(r),!1).find(function(){return!0})}function VM(e){var t,r;try{for(var n=Sh(["paragraph","header1","header2","header3","header4","header5","header6","blockquote","list-item","todo","divider"]),o=n.next();!o.done;o=n.next()){var i=o.value;if(bm.getSelectedNodeByType(e,i))return!0}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return!1}function qM(e){var t=document.createElement("div");t.innerHTML=e;var r=[],n=!1;return Array.from(t.childNodes).forEach(function(e){if(e.nodeType!==Node.TEXT_NODE){if(!(e instanceof HTMLElement)||"p"!==e.tagName.toLowerCase())return r.push(e.cloneNode(!0)),void(n=!0);var t=e.innerHTML,o=t.trim();if(o&&" "!==o){n&&r.push(document.createElement("br"));var i=document.createElement("div");i.innerHTML=t,Array.from(i.childNodes).forEach(function(e){r.push(e.cloneNode(!0))}),n=!0}}else(e.textContent||"").trim()&&(r.push(e.cloneNode(!0)),n=!0)}),t.replaceChildren.apply(t,Ah([],Ch(r),!1)),t.innerHTML}var GM={selector:"table",preParseHtml:function(e){var t=_p(e);if("table"!==oM(t))return e;var r=t.find("tbody");if(0===r.length)return e;var n=t.find("tr");t.append(n),r.remove();for(var o=t.find("td, th"),i=0;i<o.length;i+=1){var a=_p(o[i]);a.attr("width","auto");var s=a.html()||"";s=qM(s=(s=s.replace(/<o:p[^>]*>[\s\S]*?<\/o:p>/gi,"")).replace(/<\/o:p>/gi,"")),a.html(s)}return t[0]}};function WM(e){var t,r,n=[],o=0;try{for(var i=Sh(e),a=i.next();!a.done;a=i.next()){o+=a.value,n.push(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function YM(e){var t,r,n=[],o=e.reduce(function(e,t){return e+t},0);try{for(var i=Sh(e),a=i.next();!a.done;a=i.next()){var s=a.value;n.push(s/o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}var KM=null;var XM=!1,ZM=!1,JM=0,QM=null,eI=_p(window);eI.on("mousedown",function(e){var t=e.target;if(t.closest('[data-block-type="table-cell"]'))XM=!0;else if("DIV"===t.tagName&&t.closest(".column-resizer-item")){if(null===QM)return;ZM=!0;var r=e.clientX;JM=r,document.body.style.cursor="col-resize",e.preventDefault()}eI.on("mousemove",tI),eI.on("mouseup",rI)});var tI=lb(function(e){if(ZM&&null!==QM){e.preventDefault();var t,r=e.clientX,n=r-JM,o=Ch(ph.Editor.nodes(QM,{match:eM(QM,"table")}),1),i=Ch(o[0],1)[0],a=i.columnWidths,s=void 0===a?[]:a,u=i.resizingIndex,l=void 0===u?-1:u,c=bm.getSelectedNodeByType(QM,"table"),d=bm.toDOMNode(QM,c).querySelector(".table");if(d)t=function(e,t,r,n,o){var i=Ah([],Ch(e),!1);if(t<0||t>=e.length)return i;var a=o.getMenuConfig("insertTable").minWidth,s=parseInt((void 0===a?60:a).toString(),10)||60,u=r-(0===t?0:n[t-1]),l=Math.max(s,u);return i[t]=Math.floor(100*l)/100,i}(s,l,r-d.getBoundingClientRect().left,WM(s),QM);else t=function(e,t,r,n){var o=Ah([],Ch(e),!1),i=n.getMenuConfig("insertTable").minWidth,a=parseInt((void 0===i?60:i).toString(),10)||60,s=o[t],u=Math.max(a,s+r);return o[t]=Math.floor(100*u)/100,o}(s,l,n,QM);ph.Transforms.setNodes(QM,{columnWidths:t},{mode:"highest"})}},100);function rI(e){XM=!1,ZM=!1,QM=null,document.body.style.cursor="",eI.off("mousemove",tI),eI.off("mouseup",rI)}function nI(e,t){"mouseenter"===t.type?ph.Transforms.setNodes(e,{isResizing:!0},{mode:"highest"}):ph.Transforms.setNodes(e,{isResizing:!1},{mode:"highest"})}function oI(e){var t,r,n=[],o=0;try{for(var i=Sh(e),a=i.next();!a.done;a=i.next()){o+=a.value,n.push(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}var iI=!1,aI=0,sI=null,uI=_p(window);var lI=lb(function(e){if(iI&&null!==sI){e.preventDefault();var t,r=e.clientY,n=r-aI,o=Ch(ph.Editor.nodes(sI,{match:eM(sI,"table")}),1),i=Ch(o[0],1)[0],a=i.children,s=i.resizingRowIndex,u=void 0===s?-1:s,l=a.map(function(e){return e.height||30}),c=bm.getSelectedNodeByType(sI,"table"),d=bm.toDOMNode(sI,c).querySelector(".table");if(d)t=function(e,t,r,n,o){var i=Ah([],Ch(e),!1);if(t<0||t>=e.length)return i;var a=(o.getMenuConfig("insertTable")||{}).minRowHeight,s=parseInt((void 0===a?30:a).toString(),10)||30,u=r-(0===t?0:n[t-1]),l=Math.max(s,u);return i[t]=Math.floor(100*l)/100,i}(l,u,r-d.getBoundingClientRect().top,oI(l),sI);else t=function(e,t,r,n){var o=Ah([],Ch(e),!1),i=(n.getMenuConfig("insertTable")||{}).minRowHeight,a=parseInt((void 0===i?30:i).toString(),10)||30,s=o[t],u=Math.max(a,s+r);return o[t]=Math.floor(100*u)/100,o}(l,u,n,sI);var f=bm.getSelectedNodeByType(sI,"table");if(f&&u>=0&&u<t.length){var h=Ah(Ah([],Ch(bm.findPath(sI,f)),!1),[u],!1);try{ph.Transforms.setNodes(sI,{height:t[u]},{at:h})}catch(e){console.warn("更新行高度失败:",e)}}}},100);function cI(e){iI=!1,sI=null,document.body.style.cursor="",uI.off("mousemove",lI),uI.off("mouseup",cI)}function dI(e,t){"mouseenter"===t.type?ph.Transforms.setNodes(e,{isResizingRow:!0},{mode:"highest"}):ph.Transforms.setNodes(e,{isResizingRow:!1},{mode:"highest"})}uI.on("mousedown",function(e){var t=e.target;if("DIV"===t.tagName&&t.closest(".row-resizer-item")){if(null===sI)return;iI=!0;var r=e.clientY;aI=r,document.body.style.cursor="row-resize",e.preventDefault()}uI.on("mousemove",lI),uI.on("mouseup",cI)});var fI={type:"table",renderElem:function(e,t,r){var n=function(e,t){if(e.isDisabled())return!1;var r=e.selection;if(null==r)return!0;if(ph.Range.isCollapsed(r))return!0;var n=r.anchor,o=r.focus,i=bm.findPath(e,t),a=ph.Editor.start(e,i),s=ph.Editor.end(e,i),u=ph.Point.compare(n,s)<=0&&ph.Point.compare(n,a)>=0,l=ph.Point.compare(o,s)<=0&&ph.Point.compare(o,a)>=0;return!!(u&&l&&ph.Path.equals(n.path.slice(0,3),o.path.slice(0,3)))}(r,e),o=e,i=o.width,a=void 0===i?"auto":i,s=o.height,u=o.columnWidths,l=void 0===u?[]:u,c=o.scrollWidth,d=void 0===c?0:c,f=o.isHoverCellBorder,h=o.resizingIndex,p=o.isResizing,g=o.isHoverRowBorder,m=o.resizingRowIndex,v=o.isResizingRow,y=bm.isNodeSelected(r,e),b=Ch(bM.selection(r),1)[0],w=YM(l),E=hw("div",{className:"table-container","data-selected":y,on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!r.isDisabled()){t.target.closest('[data-block-type="table-cell"]')&&bM.unselect(r);var n=bm.findPath(r,e),o=ph.Editor.start(r,n),i=r.selection;if(null!=i)i.anchor.path[0]!==n[0]&&"DIV"===t.target.tagName&&r.select(o);else r.select(o)}}}},hw("table",{width:a,contentEditable:n,className:"table ".concat(b?"table-selection-none":""),style:{width:"100%"===a?a:"".concat(l.reduce(function(e,t){return e+t},0),"px")},on:{mousemove:Uv(function(t){bM.hasSelected(r)||(function(e,t,r,n){if(!e.isDisabled()&&!XM&&!ZM){var o=t,i=o.width,a=void 0===i?"auto":i,s=o.columnWidths,u=void 0===s?[]:s,l=o.isHoverCellBorder,c=o.resizingIndex,d=r.clientX,f=r.target;if(Ag(f)&&d>(g=f.getBoundingClientRect()).x+5&&d<g.x+g.width-5)return void(l&&ph.Transforms.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(Ag(f)){var h=f.closest(".table");if(h)for(var p=r.clientX,g=h.getBoundingClientRect(),m="100%"===a?YM(u).map(function(e){return e*n}):u,v=WM(m),y=0;y<v.length;y+=1)if(p-g.x>=v[y]-5&&p-g.x<v[y]+5){if(c===y)return;return void ph.Transforms.setNodes(e,{isHoverCellBorder:!0,resizingIndex:y},{mode:"highest"})}}!0===l&&ph.Transforms.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"})}}(r,e,t,d),function(e,t,r){if(!e.isDisabled()&&!iI){var n=t,o=n.children,i=n.isHoverRowBorder,a=n.resizingRowIndex,s=r.target;if(Ag(s)){var u=s.closest(".table");if(u)for(var l=r.clientY,c=u.getBoundingClientRect(),d=oI(o.map(function(e){return e.height||30})),f=0;f<d.length;f+=1)if(l-c.y>=d[f]-5&&l-c.y<d[f]+5){if(a===f)return;return void ph.Transforms.setNodes(e,{isHoverRowBorder:!0,resizingRowIndex:f},{mode:"highest"})}}!0===i&&ph.Transforms.setNodes(e,{isHoverRowBorder:!1,resizingRowIndex:-1},{mode:"highest"})}}(r,e,t))},25)}},hw("colgroup",{contentEditable:!1},l.map(function(e){return hw("col",{width:e})})),hw("tbody",null,t)),hw("div",{className:"column-resizer",contentEditable:!1},l.map(function(e,t){var n=e;return"100%"===a&&(n=w[t]*d),hw("div",{className:"column-resizer-item",style:{minWidth:"".concat(n,"px")}},hw("div",{className:"resizer-line-hotzone ".concat(f&&t===h?"visible ":"").concat(p&&t===h?"highlight":""),style:{height:"".concat(s,"px")},on:{mouseenter:function(e){return nI(r,e)},mouseleave:function(e){return nI(r,e)},mousedown:function(e){return function(e){ZM||(QM=e)}(r)}}},hw("div",{className:"resizer-line"})))})),hw("div",{className:"row-resizer",contentEditable:!1},e.children.map(function(e,t){var n=l.reduce(function(e,t){return e+t},0),o=e.height||30;return hw("div",{className:"row-resizer-item",style:{minHeight:"".concat(o,"px")}},hw("div",{className:"resizer-line-hotzone-horizontal ".concat(g&&t===m?"visible ":"").concat(v&&t===m?"highlight":""),style:{width:"".concat(n,"px")},on:{mouseenter:function(e){return dI(r,e)},mouseleave:function(e){return dI(r,e)},mousedown:function(e){return function(e){iI||(sI=e)}(r)}}},hw("div",{className:"resizer-line-horizontal"})))}))),x=Wb("div",{hook:{insert:function(e){var t=e.elm;return function(e,t){if(Ag(t)){var r=t.querySelector("table");r&&(KM=new ResizeObserver(function(t){var r=Ch(t,1)[0].contentRect;ph.Transforms.setNodes(e,{scrollWidth:r.width,height:r.height},{mode:"highest"})}),KM.observe(r))}}(r,t)},destroy:function(){KM&&(null==KM||KM.disconnect(),KM=null)}}},E);return x}},hI={type:"table-row",renderElem:function(e,t,r){var n=e.height;return hw("tr",{style:n?{height:"".concat(n,"px")}:{}},t)}},pI={type:"table-cell",renderElem:function(e,t,r){var n=function(e,t){var r=bm.getParentNode(e,t);if(null==r)return!1;var n=bm.getParentNode(e,r);return null!=n&&pM(n).some(function(e){return e===t})}(r,e),o=e,i=o.colSpan,a=void 0===i?1:i,s=o.rowSpan,u=void 0===s?1:s,l=o.isHeader,c=void 0!==l&&l,d=o.hidden,f=void 0!==d&&d,h=bM.isSelected(r,e);return hw(n&&c?"th":"td",{colSpan:a,rowSpan:u,"data-block-type":"table-cell",className:h?"w-e-selected":"",style:{display:f?"none":""}},t)}};function gI(e,t){null==e.data&&(e.data={});var r=e.data;null==r.style&&(r.style={}),Object.assign(r.style,t)}var mI={renderStyle:function(e,t){var r,n;if(!ph.Element.isElement(e))return t;var o=e,i=o.backgroundColor,a=o.borderWidth,s=o.borderStyle,u=o.borderColor,l=o.textAlign,c={};if(i&&(c.backgroundColor=i),a){/^\d+(\.\d+)?$/.test(a)?c.borderWidth="".concat(a,"px"):c.borderWidth=a}s&&(c.borderStyle="none"===s?"":s),u&&(c.borderColor=u),l&&(c.textAlign=l);var d=t;return"table"===e.type?gI(null===(n=(null===(r=d.children)||void 0===r?void 0:r[0]).children)||void 0===n?void 0:n[0],c):gI(d,c),d},styleToHtml:function(e,t){if("table"!==e.type&&"table-cell"!==e.type)return t;var r=e.backgroundColor,n=e.borderWidth,o=e.borderStyle,i=e.borderColor,a=e.textAlign;if(!(r||n||o||i||a))return t;var s=_p(t);return r&&s.css("background-color",r),n&&s.css("border-width","".concat(n,"px")),o&&s.css("border-style","none"===o?"":o),i&&s.css("border-color",i),a&&s.css("text-align",a),function(e){return 0===e.length?"":e[0].outerHTML}(s)},parseStyleHtml:function(e,t,r){if(!["TABLE","TD","TH"].includes(e.tagName))return t;var n=_p(e),o=t,i=iM(n,"background-color");i||(i=iM(n,"background")),i&&(o.backgroundColor=i);var a=iM(n,"border");a||"TD"!==e.tagName||(a="1px solid ".concat(zM));var s,u=Ch((null==a?void 0:a.split(" "))||[],3),l=u[0],c=u[1],d=u[2];(l=iM(n,"border-width")||l)&&(o.borderWidth=(s=l.trim())&&"string"==typeof s&&s.includes("pt")?s.replace(/(\d+(\.\d+)?)\s*pt/g,function(e,t){var r=(4*parseFloat(t)/3).toFixed(2);return"".concat(r,"px")}):s),(c=iM(n,"border-style")||c)&&(o.borderStyle="none"===c?"":c),(d=iM(n,"border-color")||d)&&(o.borderColor=d);var f=iM(n,"text-align");return(f=iM(n,"text-align")||f)&&(o.textAlign=f),t},renderElems:[fI,hI,pI],elemsToHtml:[KF,XF,ZF],preParseHtml:[GM],parseElemsHtml:[PM,RM,_M],menus:[SM,CM,AM,DM,TM,kM,OM,NM,BM,FM,MM,IM],editorPlugin:function(e){var t=e.insertBreak,r=e.deleteBackward,n=e.deleteForward,o=e.deleteFragment,i=e.normalizeNode,a=e.insertData,s=e.handleTab,u=e.selectAll,l=e;l.insertBreak=function(){null==bm.getSelectedNodeByType(l,"table")?t():l.insertText("\n\r")},l.deleteBackward=function(e){if(!jM(l)&&!$M(l,e,"backward")){var t=l.selection;if(t){var n=ph.Editor.before(l,t),o=ph.Editor.above(l,{at:t,match:function(e){return bm.checkNodeType(e,"table-cell")}});if(n){var i=UM(l,n);if(!o&&i&&VM(l))return}}r(e)}},l.handleTab=function(){var t;if(bm.getSelectedNodeByType(l,"table")){var r=ph.Editor.above(e);bm.checkNodeType(r[0],"table-cell")&&ph.Transforms.select(e,r[1]);var n=ph.Editor.next(e);if(n)n[0]&&n[0].text&&(n=null!==(t=ph.Editor.above(e,{at:n[1]}))&&void 0!==t?t:n),ph.Transforms.select(e,n[1]);else{var o=l.children||[],i=o.length;if(bm.checkNodeType(o[i-1],"table")){var a=bm.genEmptyParagraph();ph.Transforms.insertNodes(l,a,{at:[i]}),l.handleTab()}}}else s()},l.deleteForward=function(e){if(!jM(l)&&!$M(l,e,"forward")){var t=l.selection;if(t){var r=ph.Editor.after(l,t),o=ph.Editor.above(l,{at:t,match:function(e){return bm.checkNodeType(e,"table-cell")}});if(r){var i=UM(l,r);if(!o&&i&&VM(l))return}}n(e)}},l.deleteFragment=function(e){var t=l.selection;if(t){var r,n=!1,i={anchor:t.anchor,focus:t.focus},a=ph.Point.isBefore(i.anchor,i.focus);if(HM(l,t.anchor))(r=ph.Editor[a?"before":"after"](l,t.anchor))&&(i.anchor=r),n=!0;if(HM(l,t.focus))(r=ph.Editor[a?"after":"before"](l,t.focus))&&(i.focus=r),n=!0;n&&ph.Transforms.setSelection(l,i),o(e)}},l.normalizeNode=function(e){var t=Ch(e,2),r=t[0],n=t[1];if("table"!==bm.getNodeType(r))return i([r,n]);if(bm.isLastNode(l,r)){var o=bm.genEmptyParagraph();ph.Transforms.insertNodes(l,o,{at:[n[0]+1]})}},l.insertData=function(e){if(null!=bm.getSelectedNodeByType(l,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?a(e):ph.Editor.insertText(l,t)}else a(e)},l.selectAll=function(){var e=l.selection;if(null!=e){var t=bm.getSelectedNodeByType(l,"table-cell");if(null!=t){var r=e.anchor,n=e.focus;if(ph.Path.equals(r.path.slice(0,3),n.path.slice(0,3)))if(0!==ph.Node.string(t).length){var o=bm.findPath(l,t),i={anchor:ph.Editor.start(l,o),focus:ph.Editor.end(l,o)};l.select(i)}else u();else u()}else u()}else u()},function(e){var t=e.apply;e.apply=function(r){if(!ph.Operation.isSelectionOperation(r)||!r.newProperties)return t(r);var n=wh(wh({},e.selection),r.newProperties);if(!ph.Range.isRange(n))return bM.unselect(e),t(r);var o=function(e){return ph.Element.isElement(e)&&("table-cell"===e.type||"th"===e.type||"td"===e.type)},i=Ch(ph.Editor.nodes(e,{match:o,at:ph.Range.start(n),mode:"lowest"}),1)[0],a=Ch(ph.Editor.nodes(e,{match:o,at:ph.Range.end(n),mode:"lowest"}),1)[0];if(!i||!a)return bM.unselect(e),t(r);var s=Ch(i,2)[1],u=Ch(a,2)[1];if(ph.Path.equals(s,u)||!tM(e,[s,u],"table"))return bM.unselect(e),t(r);try{var l=rM(e,{at:s});if(!l||0===l.length)return bM.unselect(e),t(r);for(var c=nM.valueOf(0,0),d=nM.valueOf(0,0),f=!1,h=!1,p=0;p<l.length;p+=1)if(l[p])for(var g=0;g<l[p].length;g+=1)if(l[p][g]){var m=Ch(l[p][g],1),v=Ch(m[0],2)[1];ph.Path.equals(s,v)&&(c.x=p,c.y=g,f=!0),ph.Path.equals(u,v)&&(d.x=p,d.y=g,h=!0)}if(!f||!h)return bM.unselect(e),t(r);for(var y=nM.valueOf(Math.min(c.x,d.x),Math.min(c.y,d.y)),b=nM.valueOf(Math.max(c.x,d.x),Math.max(c.y,d.y));;){var w=nM.valueOf(y.x,y.y),E=nM.valueOf(b.x,b.y);for(p=w.x;p<=E.x&&p<l.length;p+=1)if(l[p])for(g=w.y;g<=E.y&&g<l[p].length;g+=1)if(l[p][g]){var x=Ch(l[p][g],2)[1];if(x){var S=x.rtl,C=x.ltr,A=x.btt,D=x.ttb;w.x=Math.min(w.x,p-(D-1)),w.y=Math.min(w.y,g-(S-1)),E.x=Math.max(E.x,p+(A-1)),E.y=Math.max(E.y,g+(C-1))}}if(nM.equals(y,w)&&nM.equals(b,E))break;y=w,b=E}var T=[],k=new WeakSet;for(p=y.x;p<=b.x&&p<l.length;p+=1)if(l[p]){var O=[];for(g=y.y;g<=b.y&&g<l[p].length;g+=1)if(l[p][g]){var N=Ch(l[p][g],1),B=Ch(N[0],1)[0];B&&(k.add(B),O.push(l[p][g]))}O.length>0&&T.push(O)}aM.set(e,T),sM.set(e,k)}catch(n){return bM.unselect(e),t(r)}t(r)}}(l),l.getTableSelection=function(){return aM.get(l)||null};var c=l.addMark,d=l.removeMark,f=wh({},ph.Transforms);return l.addMark=function(e,t){var r=aM.get(l);if(r&&r.length>0){var n=l.selection;r.forEach(function(r){r.forEach(function(r){var n=Ch(r[0],2)[1],o=ph.Editor.start(l,n),i=ph.Editor.end(l,n);ph.Transforms.select(l,{anchor:o,focus:i}),c(e,t)})}),n&&ph.Transforms.select(l,n)}else c(e,t)},l.removeMark=function(e){var t=aM.get(l);if(t&&t.length>0){var r=l.selection;t.forEach(function(t){t.forEach(function(t){var r=Ch(t[0],2)[1],n=ph.Editor.start(l,r),o=ph.Editor.end(l,r);ph.Transforms.select(l,{anchor:n,focus:o}),d(e)})}),r&&ph.Transforms.select(l,r)}else d(e)},ph.Transforms.setNodes=function(e,t,r){if(void 0===r&&(r={}),e===l){var n=aM.get(l);if(n&&n.length>0)return"hidden"in t||"rowSpan"in t||"colSpan"in t?void f.setNodes(e,t,r):void n.forEach(function(n){n.forEach(function(n){var o=Ch(n[0],2)[1];f.setNodes(e,t,wh(wh({},r),{at:o}))})})}f.setNodes(e,t,r)},l}};Py("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Py("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});ag&&(_p.fn.append=ag),Wp&&(_p.fn.on=Wp),fg&&(_p.fn.remove=fg),Gp&&(_p.fn.val=Gp),mg&&(_p.fn.click=mg),Jp&&(_p.fn.hide=Jp);var vI=new WeakMap;function yI(e){return e.getMenuConfig("uploadImage")}function bI(e,t){return Eh(this,void 0,void 0,function(){return xh(this,function(r){return[2,new Promise(function(r){var n=new FileReader;n.readAsDataURL(t),n.onload=function(){var o=n.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;BA(e,i,t.name,a),r("ok")}}})]})})}function wI(e,t){return Eh(this,void 0,void 0,function(){var r,n;return xh(this,function(o){switch(o.label){case 0:return r=function(e){var t=vI.get(e);if(null!=t)return t;var r=yI(e),n=r.onSuccess,o=r.onProgress,i=r.onFailed,a=r.customInsert,s=r.onError;return t=BS(wh(wh({},r),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,r){if(a)return a(r,function(t,r,n){return BA(e,t,r,n)}),void n(t,r);var o=r.errno,s=void 0===o?1:o,u=r.data,l=void 0===u?{}:u;if(0===s){if(Array.isArray(l))l.forEach(function(t){var r=t.url,n=void 0===r?"":r,o=t.alt,i=void 0===o?"":o,a=t.href;BA(e,n,i,void 0===a?"":a)});else{var c=l.url,d=void 0===c?"":c,f=l.alt,h=void 0===f?"":f,p=l.href;BA(e,d,h,void 0===p?"":p)}n(t,r)}else i(t,r)},onError:function(e,t,r){s(e,t,r)}})),vI.set(e,t),t}(e),n=t.map(function(e){return{name:e.name,type:e.type,size:e.size,data:e}}),r.addFiles(n),[4,r.upload()];case 1:return o.sent(),[2]}})})}function EI(e,t){return Eh(this,void 0,void 0,function(){var r,n,o,i,a,s,u,l,c,d,f,h,p,g,m;return xh(this,function(v){switch(v.label){case 0:if(null==t)return[2];r=Array.prototype.slice.call(t),n=yI(e),o=n.customUpload,i=n.base64LimitSize,a=[],v.label=1;case 1:v.trys.push([1,10,11,16]),s=!0,u=Dh(r),v.label=2;case 2:return[4,u.next()];case 3:return l=v.sent(),(h=l.done)?[3,9]:(m=l.value,s=!1,d=(c=m).size,i&&d<=i?[4,bI(e,c)]:[3,5]);case 4:return v.sent(),[3,8];case 5:return o?[4,o(c,function(t,r,n){return BA(e,t,r,n)},e)]:[3,7];case 6:return v.sent(),[3,8];case 7:a.push(c),v.label=8;case 8:return s=!0,[3,2];case 9:return[3,16];case 10:return f=v.sent(),p={error:f},[3,16];case 11:return v.trys.push([11,,14,15]),s||h||!(g=u.return)?[3,13]:[4,g.call(u)];case 12:v.sent(),v.label=13;case 13:return[3,15];case 14:if(p)throw p.error;return[7];case 15:return[7];case 16:return a.length>0?[4,wI(e,a)]:[3,18];case 17:v.sent(),v.label=18;case 18:return[2]}})})}var xI=function(){function e(){this.title=Ly("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return kA(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var r=this.getMenuConfig(e),n=r.allowedFileTypes,o=void 0===n?[]:n,i=r.customBrowseAndUpload;if(i)i(function(t,r,n){return BA(e,t,r,n)});else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var s=_p("body"),u=_p('<input type="file" '.concat(a," multiple/>"));u.hide(),s.append(u),u.click(),u.on("change",function(){var t=u[0].files;EI(e,t)})}},e}();var SI={menus:[{key:"uploadImage",factory:function(){return new xI},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'".concat(e.name,"' upload failed"),t)},onError:function(e,t,r){console.error("'".concat(e.name,"' upload error"),r)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,r=e;return r.insertData=function(n){if(kA(r))t(n);else if(n.getData("text/plain"))t(n);else{var o=n.files;if(o.length<=0)t(n);else Array.prototype.slice.call(o).some(function(e){return"image"===Ch(e.type.split("/"),1)[0]})?EI(e,o):t(n)}},r}};function CI(e){return e.length?e[0].tagName.toLowerCase():""}function AI(e,t,r,n){void 0===t&&(t="auto"),void 0===r&&(r="auto"),void 0===n&&(n={});var o=_p(e),i=n.width,a=void 0===i?"":i,s=n.height,u=void 0===s?"":s,l="";return a&&(l+="width: ".concat(a,";")),u&&(l+="height: ".concat(u,";")),o.attr("width",t),o.attr("height",r),o.attr("style",l),o[0].outerHTML}Py("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",edit:"Edit video",width:"Width",height:"Height"}}),Py("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}}),ag&&(_p.fn.append=ag),Wp&&(_p.fn.on=Wp),vg&&(_p.fn.focus=vg),$p&&(_p.fn.attr=$p),Gp&&(_p.fn.val=Gp),ng&&(_p.fn.html=ng),ug&&(_p.fn.parent=ug),Hp&&(_p.fn.hasClass=Hp),hg&&(_p.fn.empty=hg);var DI={type:"video",elemToHtml:function(e,t){var r=e,n=r.src,o=void 0===n?"":n,i=r.poster,a=void 0===i?"":i,s=r.width,u=void 0===s?"auto":s,l=r.height,c=void 0===l?"auto":l,d=r.style,f=void 0===d?{}:d,h=r.textAlign,p='<div data-w-e-type="video" data-w-e-is-void style="text-align: '.concat(void 0===h?"center":h,';">\n');if(0===o.trim().indexOf("<iframe ")){p+=AI(o,u,c,f)}else{var g=f.width,m=void 0===g?"":g,v=f.height,y=void 0===v?"":v,b="";m&&(b+="width: ".concat(m,";")),y&&(b+="height: ".concat(y,";")),p+='<video poster="'.concat(a,'" controls="true" width="').concat(u,'" height="').concat(c,'" style="').concat(b,'"><source src="').concat(o,'" type="video/mp4"/></video>')}return p+="\n</div>"}};function TI(e){return void 0===e&&(e="r"),"".concat(e,"-").concat(bg())}function kI(e){var t={};return e.trim().split(";").forEach(function(e){if(e){var r=Ch(e.split(":"),2),n=r[0],o=r[1];n&&o&&(t[n.trim()]=o.trim())}}),t}function OI(){return TI("w-e-insert-video")}var NI=function(){function e(){this.title=Ly("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=OI(),this.heightInputId=OI(),this.buttonId=OI()}return e.prototype.getSelectedVideoNode=function(e){return bm.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,r=t.widthInputId,n=t.heightInputId,o=t.buttonId,i=Ch(Yy(Ly("videoModule.width"),r,"auto"),2),a=i[0],s=_p(i[1]),u=Ch(Yy(Ly("videoModule.height"),n,"auto"),2),l=u[0],c=_p(u[1]),d=Ch(Xy(o,Ly("videoModule.ok")),1)[0],f=this.getSelectedVideoNode(e);if(null==this.$content){var h=_p("<div></div>");h.on("click","#".concat(o),function(t){t.preventDefault();var o=h.find("#".concat(r)).val().trim(),i=h.find("#".concat(n)).val().trim(),a=function(e){return/^\d+(\.\d+)?%$/.test(e)},s=function(e){return/^\d+(\.\d+)?$/.test(e)},u="auto",l="auto";a(o)?u=o:s(o)&&(u="".concat(parseInt(o,10),"px")),a(i)?l=i:s(i)&&(l="".concat(parseInt(i,10),"px"));var c=f.style,d=void 0===c?{}:c;e.restoreSelection();var p={style:wh(wh({},d),{width:u,height:l})};ph.Transforms.setNodes(e,p,{match:function(e){return bm.checkNodeType(e,"video")}}),e.hidePanelOrModal()}),this.$content=h}var p=this.$content;if(p.empty(),p.append(a),p.append(l),p.append(d),null==f)return p[0];var g=f.style,m=void 0===g?{}:g,v=m.width,y=void 0===v?"":v,b=m.height,w=void 0===b?"":b;return s.val(y),c.val(w),setTimeout(function(){s.focus()}),p[0]},e}();function BI(){return TI("w-e-edit-video")}var FI=function(){function e(){this.title=Ly("videoModule.edit"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=BI(),this.posterInputId=BI(),this.buttonId=BI()}return e.prototype.getSelectedVideoNode=function(e){return bm.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,r=this,n=r.srcInputId,o=r.posterInputId,i=r.buttonId,a=Ch(Yy(Ly("videoModule.videoSrc"),n,Ly("videoModule.videoSrcPlaceHolder")),2),s=a[0],u=a[1],l=Ch(Yy(Ly("videoModule.videoPoster"),o,Ly("videoModule.videoPosterPlaceHolder")),2),c=l[0],d=l[1],f=_p(u),h=_p(d),p=Ch(Xy(i,Ly("videoModule.ok")),1)[0];if(null==this.$content){var g=_p("<div></div>");g.on("click","#".concat(i),function(r){return Eh(t,void 0,void 0,function(){var t,i,a,s;return xh(this,function(u){return r.preventDefault(),t=g.find("#".concat(n)).val().trim(),i=g.find("#".concat(o)).val().trim(),a=TI("video-"),s={src:t,poster:i,key:a},e.restoreSelection(),ph.Transforms.setNodes(e,s,{match:function(e){return bm.checkNodeType(e,"video")}}),e.hidePanelOrModal(),[2]})})}),this.$content=g}var m=this.$content;m.empty(),m.append(s),m.append(c),m.append(p);var v=this.getSelectedVideoNode(e);if(null==v)return m[0];var y=v.src,b=void 0===y?"":y,w=v.poster,E=void 0===w?"":w;return f.val(b),h.val(E),setTimeout(function(){f.focus()}),m[0]},e}();function MI(e,t){return Eh(this,arguments,void 0,function(e,t,r,n,o){var i,a,s,u,l,c,d;return void 0===r&&(r=""),void 0===n&&(n=""),void 0===o&&(o=""),xh(this,function(f){switch(f.label){case 0:return t?(e.restoreSelection(),i=e.getMenuConfig("insertVideo"),a=i.onInsertedVideo,s=i.checkVideo,u=i.parseVideoSrc,[4,s(t,r)]):[2];case 1:return"string"==typeof(l=f.sent())?(e.alert(l,"error"),[2]):null==l?[2]:[4,u(t)];case 2:return 0!==(c=f.sent()).trim().indexOf("<iframe ")&&(c=function(e){return e.replace(/</g,"<").replace(/>/g,">")}(c)),d={type:"video",src:c,poster:r,children:[{text:""}],style:{width:n,height:o}},Promise.resolve().then(function(){bm.isSelectedEmptyParagraph(e)&&ph.Transforms.removeNodes(e,{mode:"highest"}),ph.Transforms.insertNodes(e,d,{mode:"highest"})}),a(d),[2]}})})}function II(){return TI("w-e-insert-video")}var PI=function(){function e(){this.title=Ly("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=II(),this.posterInputId=II(),this.buttonId=II()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!ph.Range.isCollapsed(t)||!!bm.getSelectedElems(e).some(function(t){var r=bm.getNodeType(t);return"pre"===r||("list-item"===r||!!e.isVoid(t))}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,r=this,n=r.srcInputId,o=r.posterInputId,i=r.buttonId,a=Ch(Yy(Ly("videoModule.videoSrc"),n,Ly("videoModule.videoSrcPlaceHolder")),2),s=a[0],u=a[1],l=Ch(Yy(Ly("videoModule.videoPoster"),o,Ly("videoModule.videoPosterPlaceHolder")),2),c=l[0],d=l[1],f=_p(u),h=_p(d),p=Ch(Xy(i,Ly("videoModule.ok")),1)[0];if(null==this.$content){var g=_p("<div></div>");g.on("click","#".concat(i),function(r){return Eh(t,void 0,void 0,function(){var t,i;return xh(this,function(a){switch(a.label){case 0:return r.preventDefault(),t=g.find("#".concat(n)).val().trim(),i=g.find("#".concat(o)).val().trim(),[4,MI(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=g}var m=this.$content;return m.empty(),m.append(s),m.append(c),m.append(p),f.val(""),h.val(""),setTimeout(function(){f.focus()}),m[0]},e}();function RI(e){return e.getMenuConfig("uploadVideo")}var LI=new WeakMap;function _I(e,t){return Eh(this,void 0,void 0,function(){var r,n;return xh(this,function(o){switch(o.label){case 0:return r=function(e){var t=LI.get(e);if(null!=t)return t;var r=RI(e),n=r.onSuccess,o=r.onProgress,i=r.onFailed,a=r.customInsert,s=r.onError;return t=BS(wh(wh({},r),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,r){if(a)return a(r,function(t,r){return MI(e,t,r)}),void n(t,r);var o=r.errno,s=void 0===o?1:o,u=r.data,l=void 0===u?{}:u;if(0===s){var c=l.url,d=void 0===c?"":c,f=l.poster;MI(e,d,void 0===f?"":f),n(t,r)}else i(t,r)},onError:function(e,t,r){s(e,t,r)}})),LI.set(e,t),t}(e),n=t.map(function(e){return{name:e.name,type:e.type,size:e.size,data:e}}),r.addFiles(n),[4,r.upload()];case 1:return o.sent(),[2]}})})}var zI=function(){function e(){this.title=Ly("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var r=this.getMenuConfig(e),n=r.allowedFileTypes,o=void 0===n?[]:n,i=r.customBrowseAndUpload;if(i)i(function(t,r){return MI(e,t,r)});else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var s=_p("body"),u=_p('<input type="file" '.concat(a," multiple/>"));u.hide(),s.append(u),u.click(),u.on("change",function(){var t=u[0].files;!function(e,t){Eh(this,void 0,void 0,function(){var r,n,o,i,a,s,u,l,c,d,f,h;return xh(this,function(p){switch(p.label){case 0:if(null==t)return[2];r=Array.prototype.slice.call(t),n=[],o=RI(e).customUpload,p.label=1;case 1:p.trys.push([1,8,9,14]),i=!0,a=Dh(r),p.label=2;case 2:return[4,a.next()];case 3:return s=p.sent(),(c=s.done)?[3,7]:(h=s.value,i=!1,u=h,o?[4,o(u,function(t,r){return MI(e,t,r)},e)]:[3,5]);case 4:return p.sent(),[3,6];case 5:n.push(u),p.label=6;case 6:return i=!0,[3,2];case 7:return[3,14];case 8:return l=p.sent(),d={error:l},[3,14];case 9:return p.trys.push([9,,12,13]),i||c||!(f=a.return)?[3,11]:[4,f.call(a)];case 10:p.sent(),p.label=11;case 11:return[3,13];case 12:if(d)throw d.error;return[7];case 13:return[7];case 14:return n.length>0?[4,_I(e,n)]:[3,16];case 15:p.sent(),p.label=16;case 16:return[2]}})})}(e,t)})}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!ph.Range.isCollapsed(t)||!!bm.getSelectedElems(e).some(function(t){var r=bm.getNodeType(t);return"pre"===r||("list-item"===r||!!e.isVoid(t))}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}();function jI(e,t,r,n,o,i){return void 0===t&&(t=""),void 0===r&&(r="auto"),void 0===n&&(n="auto"),void 0===o&&(o={}),void 0===i&&(i="center"),{type:"video",src:e,poster:t,width:r,height:n,style:o,children:[{text:""}],textAlign:i}}var HI={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,r){var n=_p(e),o="",i="",a="auto",s="auto",u={},l=n.find("iframe");if(l.length>0)return a=l.attr("width")||"auto",s=l.attr("height")||"auto",u=kI(u=l.attr("style")||""),jI(o=l[0].outerHTML,i,a,s,u,kI(n.attr("style")||"")["text-align"]||"center");var c=n.find("video");return(o=c.attr("src")||"")||c.length>0&&(o=c.find("source").attr("src")||""),a=c.attr("width")||"auto",s=c.attr("height")||"auto",jI(o,i=c.attr("poster")||"",a,s,u=kI(u=c.attr("style")||""),kI(n.attr("style")||"")["text-align"]||"center")}};var $I={selector:"iframe,video,p",preParseHtml:function(e){var t=_p(e),r=t;if("p"===CI(t)){var n=t.children();if(1===n.length){var o=n[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(r=_p(o))}}var a=CI(r);if("iframe"!==a&&"video"!==a)return r[0];if("video"===r.parent().attr("data-w-e-type"))return r[0];var s=_p('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return s.append(r),s[0]}};var UI={type:"video",renderElem:function(e,t,r){var n,o=e,i=o.src,a=void 0===i?"":i,s=o.poster,u=void 0===s?"":s,l=o.key,c=void 0===l?"":l,d=o.width,f=void 0===d?"auto":d,h=o.height,p=void 0===h?"auto":h,g=o.style,m=void 0===g?{}:g,v=o.textAlign,y=void 0===v?"center":v,b=bm.isNodeSelected(r,e);if(0===a.trim().indexOf("<iframe ")){n=hw("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:y},innerHTML:AI(a,f,p,m)})}else{var w=hw("video",{key:c,poster:u,controls:!0,style:m},hw("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==f&&(w.data.width=f),"auto"!==p&&(w.data.height=p),n=hw("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:y}},w)}var E=Wb("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},n);return E}},VI={renderElems:[UI],elemsToHtml:[DI],preParseHtml:[$I],parseElemsHtml:[HI],menus:[{key:"insertVideo",factory:function(){return new PI},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new zI},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'".concat(e.name,"' upload failed"),t)},onError:function(e,t,r){console.error("'".concat(e.name," upload error"),t,r)}}},{key:"editVideoSize",factory:function(){return new NI}},{key:"editVideoSrc",factory:function(){return new FI}}],editorPlugin:function(e){var t=e.isVoid,r=e.normalizeNode,n=e;return n.isVoid=function(e){return"video"===e.type||t(e)},n.normalizeNode=function(e){var t=Ch(e,2),o=t[0],i=t[1];"video"===bm.getNodeType(o)&&(bm.isLastNode(n,o)&&ph.Transforms.insertNodes(n,bm.genEmptyParagraph(),{at:[i[0]+1]}));return r([o,i])},n}},qI=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=wh(wh({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=wh(wh({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=wh(wh({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=wh(wh({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){Xh(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,r=e.renderElem;vw[t||""]=r}(e)},e.registerRenderStyle=function(e){!function(e){pw.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,r=e.elemToHtml;nm[t||""]=r}(e)},e.registerStyleToHtml=function(e){!function(e){em.push(e)}(e)},e.registerPreParseHtml=function(e){},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,r=e.parseElemHtml;Hg[t]=r}(e)},e.registerParseStyleHtml=function(e){!function(e){jg.push(e)}(e)},e.registerModule=function(e){GI(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function GI(e){var t=e.menus,r=e.renderElems,n=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,s=e.parseElemsHtml,u=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(e){return qI.registerMenu(e)}),r&&r.forEach(function(e){return qI.registerRenderElem(e)}),n&&qI.registerRenderStyle(n),o&&o.forEach(function(e){return qI.registerElemToHtml(e)}),i&&qI.registerStyleToHtml(i),a&&a.forEach(function(e){return qI.registerPreParseHtml(e)}),s&&s.forEach(function(e){return qI.registerParseElemHtml(e)}),u&&qI.registerParseStyleHtml(u),l&&qI.registerPlugin(l)}tT.forEach(function(e){return GI(e)}),GI(RT),GI(mI),GI(VI),GI(SI),GI(bT),GI(YF);var WI='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>';var YI={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editorImageSizeMenu","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable","mergeTableCell","splitTableCell","setTableProperty","setTableCellProperty"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize","editVideoSrc"]}};var KI,XI={hoverbarKeys:(KI=["formatPainter","headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"],null!=Kh.textToFormula&&KI.push("|","textToFormula"),wh(wh({},YI),{text:{menuKeys:KI}}))};qI.setEditorConfig(wh(wh({},XI),{decorate:gT}));var ZI={hoverbarKeys:YI};qI.setSimpleEditorConfig(wh(wh({},ZI),{decorate:gT}));var JI={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Ly("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:Ly("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:Ly("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:Ly("editor.image"),iconSvg:WI,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Ly("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","formatPainter","fullScreen"]};qI.setToolbarConfig(JI);var QI={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Ly("editor.image"),iconSvg:WI,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};qI.setSimpleToolbarConfig(QI);e.Boot=qI,e.DomEditor=bm,e.SlateEditor=ph.Editor,e.SlateElement=ph.Element,e.SlateNode=ph.Node,e.SlatePath=ph.Path,e.SlatePoint=ph.Point,e.SlateRange=ph.Range,e.SlateText=ph.Text,e.SlateTransforms=ph.Transforms,e.Toolbar=Mw,e.createEditor=function(e){void 0===e&&(e={});var t=e.selector,r=void 0===t?"":t,n=e.content,o=void 0===n?[]:n,i=e.html,a=e.config,s=void 0===a?{}:a,u=e.mode,l="simple"===(void 0===u?"default":u)?qI.simpleEditorConfig:qI.editorConfig,c=wh(wh({},l.hoverbarKeys||{}),s.hoverbarKeys||{});return Fw({selector:r,config:wh(wh(wh({},l),s),{hoverbarKeys:c}),content:o,html:i,plugins:qI.plugins})},e.createToolbar=function(e){var t=e.selector,r=e.editor,n=e.config,o=void 0===n?{}:n,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var s="simple"===a?qI.simpleToolbarConfig:qI.toolbarConfig;return Iw(r,{selector:t,config:wh(wh({},s),o)})},e.createUploader=BS,e.default={},e.genModalButtonElems=Xy,e.genModalInputElems=Yy,e.genModalTextareaElems=Ky,e.i18nAddResources=Py,e.i18nChangeLanguage=function(e){My.changeLanguage(e)},e.i18nGetResources=function(e){return My.getResourceBundle(e,Iy)},e.t=Ly,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
20
|
+
*/e.exports&&(e.exports=t),void 0!==b&&(b.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,r){var n={};n["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};o["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",n="loading",o="loaded",i="pre[data-src]:not(["+r+'="'+o+'"]):not(['+r+'="'+n+'"])';t.hooks.add("before-highlightall",function(e){e.selector+=", "+i}),t.hooks.add("before-sanity-check",function(a){var s=a.element;if(s.matches(i)){a.code="",s.setAttribute(r,n);var u=s.appendChild(document.createElement("CODE"));u.textContent="Loading…";var l=s.getAttribute("data-src"),c=a.language;if("none"===c){var d=(/\.(\w+)$/.exec(l)||[,"none"])[1];c=e[d]||d}t.util.setLanguage(u,c),t.util.setLanguage(s,c);var f=t.plugins.autoloader;f&&f.loadLanguages(c),function(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4==n.readyState&&(n.status<400&&n.responseText?t(n.responseText):n.status>=400?r("✖ Error "+n.status+" while fetching file: "+n.statusText):r("✖ Error: File does not exist or is empty"))},n.send(null)}(l,function(e){s.setAttribute(r,o);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var r=Number(t[1]),n=t[2],o=t[3];return n?o?[r,Number(o)]:[r,void 0]:[r,r]}}(s.getAttribute("data-range"));if(n){var i=e.split(/\r\n?|\n/g),a=n[0],l=null==n[1]?i.length:n[1];a<0&&(a+=i.length),a=Math.max(0,Math.min(a-1,i.length)),l<0&&(l+=i.length),l=Math.max(0,Math.min(l,i.length)),e=i.slice(a,l).join("\n"),s.hasAttribute("data-start")||s.setAttribute("data-start",String(a+1))}u.textContent=e,t.highlightElement(u)},function(e){s.setAttribute(r,"failed"),u.textContent=e})}}),t.plugins.fileHighlight={highlight:function(e){for(var r,n=(e||document).querySelectorAll(i),o=0;r=n[o++];)t.highlightElement(r)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}(nT)),nT.exports),iT=w(oT);!function(e){var t=e.util.clone(e.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return n}).replace(/<SPREAD>/g,function(){return o}),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var r=[],n=0;n<t.length;n++){var o=t[n],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?r.length>0&&r[r.length-1].tagName===a(o.content[0].content[1])&&r.pop():"/>"===o.content[o.content.length-1].content||r.push({tagName:a(o.content[0].content[1]),openedBraces:0}):r.length>0&&"punctuation"===o.type&&"{"===o.content?r[r.length-1].openedBraces++:r.length>0&&r[r.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?r[r.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&r.length>0&&0===r[r.length-1].openedBraces){var u=a(o);n<t.length-1&&("string"==typeof t[n+1]||"plain-text"===t[n+1].type)&&(u+=a(t[n+1]),t.splice(n+1,1)),n>0&&("string"==typeof t[n-1]||"plain-text"===t[n-1].type)&&(u=a(t[n-1])+u,t.splice(n-1,1),n--),t[n]=new e.Token("plain-text",u,null,u)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)})}(Prism);var aT;aT||(aT=1,function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism)),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"];var sT;sT||(sT=1,function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:n,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")})}(Prism)),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean;var uT;uT||(uT=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python);var lT;lT||(lT=1,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[n,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:n.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:n.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":n,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:n.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:n.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism));var cT;cT||(cT=1,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism));var dT;dT||(dT=1,function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,r){return"(?:"+t[+r]+")"})}function r(e,r,n){return RegExp(t(e,r),"")}function n(e,t){for(var r=0;r<t;r++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function u(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=u(i),c=RegExp(u(o+" "+i+" "+a+" "+s)),d=u(i+" "+a+" "+s),f=u(o+" "+i+" "+s),h=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),p=n(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,m=t(/<<0>>(?:\s*<<1>>)?/.source,[g,h]),v=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,m]),y=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[v,y]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,p,y]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,v,y]),S={keyword:c,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,D=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[v]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,x]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,m]),lookbehind:!0,inside:S},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[v]),lookbehind:!0,inside:S},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,f,g]),inside:S}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,v]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,h]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(h),alias:"class-name",inside:S}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,m,g,x,c.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,p]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var T=A+"|"+C,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[T]),O=n(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),N=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,B=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[v,O]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[N,B]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[N]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[O]),inside:e.languages.csharp},"class-name":{pattern:RegExp(v),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var F=/:[^}\r\n]+/.source,M=n(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,F]),P=n(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[T]),2),R=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,F]);function L(t,n){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[n,F]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:L(I,M)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[R]),lookbehind:!0,greedy:!0,inside:L(R,P)}],char:{pattern:RegExp(C),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)),Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};var fT;fT||(fT=1,function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",n=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+n),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+n+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism)),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=n.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return n}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(n),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(r){t!==r&&(e.languages.markdown[t].inside.content.inside[r]=e.languages.markdown[r])})}),e.hooks.add("after-tokenize",function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var r=0,n=t.length;r<n;r++){var o=t[r];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,u]:a.alias.push(u):a.alias=[u]}}else e(o.content)}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var r="",n=0,o=t.classes.length;n<o;n++){var i=t.classes[n],l=/language-(.+)/.exec(i);if(l){r=l[1];break}}var c=e.languages[r];if(c)t.content=e.highlight(function(e){var t=e.replace(a,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){var r;if("#"===(t=t.toLowerCase())[0])return r="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),u(r);var n=s[t];return n||e}),t}(t.content),c,r);else if(r&&"none"!==r&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(r,function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[r],r))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},function(e){var t={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.groovy=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.inside.expression.inside=e.languages.groovy}(Prism),Prism.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/};var hT=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function pT(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce(function(e,t){return e+pT(t)},0)}var gT=function(e){var t,r,n,o=Ch(e,2),i=o[0],a=o[1],s=[],u=function(e){if(!ph.Text.isText(e))return null;var t=bm.getParentNode(null,e);if(t&&"code"===bm.getNodeType(t)){var r=bm.getParentNode(null,t);if(r&&"pre"===bm.getNodeType(r))return t}return null}(i);if(null==u)return s;var l=u.language,c=void 0===l?"":l;if(!c)return s;var d=function(e,t){if(!t)return[];var r=iT.languages[t];return r?iT.tokenize(e.text,r):[]}(i,c),f=0;try{for(var h=Sh(d),p=h.next();!p.done;p=h.next()){var g=p.value,m=f+pT(g);"string"!=typeof g&&s.push(((n={})[g.type]=!0,n.anchor={path:a,offset:f},n.focus={path:a,offset:m},n)),f=m}}catch(e){t={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(t)throw t.error}}return s};var mT={type:"code",elemToHtml:function(e,t){var r=e.language,n=void 0===r?"":r,o=n?'class="language-'.concat(n,'"'):"";return"<code ".concat(o,">").concat(t,"</code>")}};var vT=function(){function e(){this.title=Ly("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115,this.defaultCodeLang=""}return e.prototype.getOptions=function(e){var t=this,r=[],n=e.getMenuConfig("codeSelectLang").codeLangs,o=void 0===n?[]:n;r.push({text:"plain text",value:""}),o.forEach(function(e){var n=e.text,o=e.value;e.selected&&(t.defaultCodeLang=o),r.push({text:n,value:o})});var i=this.getValue(e);return r.forEach(function(e){e.value===i?e.selected=!0:e.selected=void 0}),r},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return this.defaultCodeLang;if(!ph.Element.isElement(t))return this.defaultCodeLang;var r=t.language.toString(),n=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===n?[]:n).some(function(e){return e.value===r})?r:this.defaultCodeLang},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var r={language:t.toString()};ph.Transforms.setNodes(e,r,{match:function(e){return bm.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=bm.getSelectedNodeByType(e,"code");if(null==t)return null;var r=bm.getParentNode(e,t);return ph.Element.isElement(r)?"pre"!==r.type?null:t:null},e}(),yT={key:"codeSelectLang",factory:function(){return new vT},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"},{text:"ABAP",value:"abap"}]}};$p&&(_p.fn.attr=$p);var bT={renderStyle:function(e,t){var r=e,n=t,o="";return hT.forEach(function(e){r[e]&&(o=e)}),o&&function(e,t){null==e.data&&(e.data={});var r=e.data;null==r.props&&(r.props={}),Object.assign(r.props,{className:t})}(n,o="token ".concat(o)),n},parseStyleHtml:function(e,t,r){var n=_p(e);if(!ph.Element.isElement(t))return t;if("code"!==bm.getNodeType(t))return t;var o=t,i=n.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[yT],elemsToHtml:[mT]};Py("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Py("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var wT=new WeakMap;function ET(e){var t,r=e.children||[],n=r.length;if(0===n)return"";for(var o=0;o<n&&!t;o+=1){var i=r[o];ph.Text.isText(i)&&(t=i)}return null==t?"":t.color||""}function xT(e,t,r){for(var n=t.type,o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(t,["type"]),i=void 0!==r?r:o.level||0,a=bm.findPath(e,t);;){if(0===a.length||0===a[a.length-1])return null;a=ph.Path.previous(a);var s=ph.Editor.node(e,a);if(!s)return null;var u=Ch(s,1)[0],l=u.level,c=void 0===l?0:l;if(bm.getNodeType(u)!==n)return null;if(c===i)return u}}function ST(e,t,r){var n=xT(e,t,r);return!!n&&n.ordered===t.ordered}var CT=[];var AT={type:"list-item",elemToHtml:function(e,t){var r="",n="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=wT.get(e);if(null==t)return 0;var r=e,n=r.type,o=r.ordered,i=void 0!==o&&o,a=r.level,s=void 0===a?0:a,u=bm.findPath(t,e);if(0===u[0])return s+1;var l=ph.Path.previous(u),c=ph.Editor.node(t,l);if(!c)return 0;var d=Ch(c,1)[0];if(bm.getNodeType(d)!==n)return s+1;var f=d,h=f.ordered,p=void 0!==h&&h,g=f.level,m=void 0===g?0:g;return m<s?s-m:m>s?ST(t,e)?0:1:m===s?p===i?0:1:0}(e);if(a>0)for(var s=0;s<a;s+=1)r+="<".concat(i,">"),CT.push(i);var u=function(e){var t=wT.get(e);if(null==t)return 0;var r=e,n=r.type,o=r.ordered,i=void 0!==o&&o,a=r.level,s=void 0===a?0:a,u=bm.findPath(t,e);if(u[0]===t.children.length-1)return s+1;var l=ph.Path.next(u),c=ph.Editor.node(t,l);if(!c)return 0;var d=Ch(c,1)[0];if(bm.getNodeType(d)!==n)return s+1;var f=d,h=f.ordered,p=void 0!==h&&h,g=f.level,m=void 0===g?0:g;return m<s?ST(t,d)?s-m:s-m+1:m>s?0:m===s?p===i?0:1:0}(e);if(u>0)for(s=0;s<u;s+=1){var l=CT.pop();n+="</".concat(l,">")}var c=ET(e),d=c?' style="color:'.concat(c,'"'):"";return{html:"<li".concat(d,">").concat(t,"</li>"),prefix:r,suffix:n}}},DT=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return bm.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var r=t.ordered;return(void 0!==r&&r)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!bm.getSelectedElems(e).some(function(t){if(ph.Editor.isVoid(e,t)&&ph.Editor.isBlock(e,t))return!0;var r=t.type;return!!["pre","code","table"].includes(r)})},e.prototype.exec=function(e,t){this.isActive(e)?ph.Transforms.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):ph.Transforms.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),TT=function(e){function t(){var t=e.apply(this,Ah([],Ch(arguments),!1))||this;return t.ordered=!1,t.title=Ly("listModule.unOrderedList"),t.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>',t}return bh(t,e),t}(DT),kT=function(e){function t(){var t=e.apply(this,Ah([],Ch(arguments),!1))||this;return t.ordered=!0,t.title=Ly("listModule.orderedList"),t.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>',t}return bh(t,e),t}(DT),OT={key:"bulletedList",factory:function(){return new TT}},NT={key:"numberedList",factory:function(){return new kT}};function BT(e){return e.length?e[0].tagName.toLowerCase():""}ag&&(_p.fn.append=ag),$p&&(_p.fn.attr=$p),ug&&(_p.fn.parent=ug);var FT={selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=_p(e);0===(t=t.filter(function(e){return!!ph.Text.isText(e)||!!r.isInline(e)})).length&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===BT(e.parent())}(n),i=function(e){for(var t=0,r=e.parent(),n=BT(r);"ul"===n||"ol"===n;)n=BT(r=r.parent()),t+=1;return t-1}(n);return{type:"list-item",ordered:o,level:i,children:t}}};var MT={selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,r){return t.flat(1/0)}};function IT(e){return ph.Editor.nodes(e,{at:e.selection||void 0,match:function(t){return 1===bm.findPath(e,t).length}})}var PT={type:"list-item",renderElem:function(e,t,r){wT.set(e,r);var n=e,o=n.level,i=void 0===o?0:o,a=n.ordered,s=void 0!==a&&a,u={margin:"5px 0 5px ".concat(20*i,"px"),display:"flex",alignItems:"flex-start"},l="";if(s){var c=function(e,t){var r=t,n=r.type,o=r.level,i=void 0===o?0:o,a=r.ordered,s=void 0!==a&&a,u=1,l=t,c=bm.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var d=ph.Path.previous(c),f=ph.Editor.node(e,d);if(null==f)break;var h=f[0],p=h.level,g=void 0===p?0:p,m=h.type,v=h.ordered;if(m!==n)break;if(g<i)break;if(g===i){if(v!==s)break;u+=1}l=h,c=d}return u}(r,e);l="".concat(c,".")}else l=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);return hw("div",{style:u},hw("span",{contentEditable:!1,style:{marginRight:"0.5em",color:ET(e)},"data-w-e-reserve":!0},l),hw("span",{style:{flex:"1",wordBreak:"break-word"}},t))}},RT={renderElems:[PT],editorPlugin:function(e){var t=e.deleteBackward,r=e.handleTab,n=e.normalizeNode,o=e.insertBreak,i=e;return i.insertBreak=function(){var t=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"list-item")},universal:!0}),1),r=t[0];return r?""!==r[0].children[0].text?o():void ph.Transforms.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0}):o()},i.deleteBackward=function(r){var n=i.selection;if(null!=n)if(ph.Range.isExpanded(n))t(r);else{var o=bm.getSelectedNodeByType(i,"list-item");if(null!=o)if(0!==n.focus.offset)t(r);else{var a=o,s=a.level,u=void 0===s?0:s,l=a.ordered,c=void 0!==l&&l;if(u>0){var d=xT(e,o,u-1);d&&d.ordered!==c?ph.Transforms.setNodes(i,{level:u-1,ordered:!c}):ph.Transforms.setNodes(i,{level:u-1})}else ph.Transforms.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0})}else t(r)}else t(r)},i.handleTab=function(){var e,t,n,o,a=i.selection;if(null!=a){if(ph.Range.isCollapsed(a)){var s=bm.getSelectedNodeByType(i,"list-item");if(null==s)return void r();if(0===a.focus.offset){var u=s.level,l=void 0===u?0:u;return void ph.Transforms.setNodes(i,{level:l+1})}}if(ph.Range.isExpanded(a)){var c=0,d=!1;try{for(var f=Sh(IT(i)),h=f.next();!h.done;h=f.next()){var p=Ch(h.value,1)[0];"list-item"===bm.getNodeType(p)?c+=1:d=!0}}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}if(d||c<=1)return void r();try{for(var g=Sh(IT(i)),m=g.next();!m.done;m=g.next()){var v=Ch(m.value,2),y=(p=v[0],v[1]),b=p.level;l=void 0===b?0:b;ph.Transforms.setNodes(i,{level:l+1},{at:y})}}catch(e){n={error:e}}finally{try{m&&!m.done&&(o=g.return)&&o.call(g)}finally{if(n)throw n.error}}}else r()}else r()},i.normalizeNode=function(e){var t=Ch(e,2),r=t[0],o=t[1],a=bm.getNodeType(r);return"bulleted-list"!==a&&"numbered-list"!==a||ph.Transforms.unwrapNodes(i,{at:o}),n([r,o])},i},menus:[OT,NT],elemsToHtml:[AT],parseElemsHtml:[MT,FT]};!function(){if(void 0!==window.Reflect&&void 0!==window.customElements&&!window.customElements.polyfillWrapFlushCallback){var e=HTMLElement,t=function(){return Reflect.construct(e,[],this.constructor)};window.HTMLElement=t,HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}}();class LT{constructor(e,t,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=r}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new LT(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class _T{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new _T(t,LT.range(this,e))}}class zT{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r,n,o="KaTeX parse error: "+e,i=t&&t.loc;if(i&&i.start<=i.end){var a=i.lexer.input;r=i.start,n=i.end,r===a.length?o+=" at end of input: ":o+=" at position "+(r+1)+": ";var s=a.slice(r,n).replace(/[^]/g,"$&̲");o+=(r>15?"…"+a.slice(r-15,r):a.slice(0,r))+s+(n+15<a.length?a.slice(n,n+15)+"…":a.slice(n))}var u=new Error(o);return u.name="ParseError",u.__proto__=zT.prototype,u.position=r,null!=r&&null!=n&&(u.length=n-r),u.rawMessage=e,u}}zT.prototype.__proto__=Error.prototype;var jT=/([A-Z])/g,HT={"&":"&",">":">","<":"<",'"':""","'":"'"},$T=/[&><"']/g;var UT=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},VT={deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace($T,e=>HT[e])},hyphenate:function(e){return e.replace(jT,"-$1").toLowerCase()},getBaseElem:UT,isCharacterBox:function(e){var t=UT(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"}},qT={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function GT(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if("string"!=typeof r)return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class WT{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},qT)if(qT.hasOwnProperty(t)){var r=qT[t];this[t]=void 0!==e[t]?r.processor?r.processor(e[t]):e[t]:GT(r)}}reportNonstrict(e,t,r){var n=this.strict;if("function"==typeof n&&(n=n(e,t,r)),n&&"ignore"!==n){if(!0===n||"error"===n)throw new zT("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,r){var n=this.strict;if("function"==typeof n)try{n=n(e,t,r)}catch(e){n="error"}return!(!n||"ignore"===n)&&(!0===n||"error"===n||("warn"===n?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),!1)))}isTrusted(e){if(e.url&&!e.protocol){var t=VT.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}var r="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(r)}}class YT{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return KT[XT[this.id]]}sub(){return KT[ZT[this.id]]}fracNum(){return KT[JT[this.id]]}fracDen(){return KT[QT[this.id]]}cramp(){return KT[ek[this.id]]}text(){return KT[tk[this.id]]}isTight(){return this.size>=2}}var KT=[new YT(0,0,!1),new YT(1,0,!0),new YT(2,1,!1),new YT(3,1,!0),new YT(4,2,!1),new YT(5,2,!0),new YT(6,3,!1),new YT(7,3,!0)],XT=[4,5,4,5,6,7,6,7],ZT=[5,5,5,5,7,7,7,7],JT=[2,3,4,5,6,7,6,7],QT=[3,3,5,5,7,7,7,7],ek=[1,1,3,3,5,5,7,7],tk=[0,1,2,3,2,3,2,3],rk={DISPLAY:KT[0],TEXT:KT[2],SCRIPT:KT[4],SCRIPTSCRIPT:KT[6]},nk=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];var ok=[];function ik(e){for(var t=0;t<ok.length;t+=2)if(e>=ok[t]&&e<=ok[t+1])return!0;return!1}nk.forEach(e=>e.blocks.forEach(e=>ok.push(...e)));var ak=80,sk={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class uk{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join("")}}var lk={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ck={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},dk={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function fk(e,t,r){if(!lk[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),o=lk[t][n];if(!o&&e[0]in dk&&(n=dk[e[0]].charCodeAt(0),o=lk[t][n]),o||"text"!==r||ik(n)&&(o=lk[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var hk={};var pk=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],gk=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],mk=function(e,t){return t.size<2?e:pk[e-1][t.size-1]};class vk{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||vk.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=gk[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new vk(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:mk(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:gk[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=mk(vk.BASESIZE,e);return this.size===t&&this.textSize===vk.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==vk.BASESIZE?["sizing","reset-size"+this.size,"size"+vk.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!hk[t=e>=5?0:e>=3?1:2]){var r=hk[t]={cssEmPerMu:ck.quad[t]/18};for(var n in ck)ck.hasOwnProperty(n)&&(r[n]=ck[n][t])}return hk[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}vk.BASESIZE=6;var yk={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},bk={ex:!0,em:!0,mu:!0},wk=function(e){return"string"!=typeof e&&(e=e.unit),e in yk||e in bk||"ex"===e},Ek=function(e,t){var r;if(e.unit in yk)r=yk[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{var n;if(n=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=n.fontMetrics().xHeight;else{if("em"!==e.unit)throw new zT("Invalid unit: '"+e.unit+"'");r=n.fontMetrics().quad}n!==t&&(r*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},xk=function(e){return+e.toFixed(4)+"em"},Sk=function(e){return e.filter(e=>e).join(" ")},Ck=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},Ak=function(e){var t=document.createElement(e);for(var r in t.className=Sk(this.classes),this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var o=0;o<this.children.length;o++)t.appendChild(this.children[o].toNode());return t},Dk=/[\s"'>/=\x00-\x1f]/,Tk=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+VT.escape(Sk(this.classes))+'"');var r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=VT.hyphenate(n)+":"+this.style[n]+";");for(var o in r&&(t+=' style="'+VT.escape(r)+'"'),this.attributes)if(this.attributes.hasOwnProperty(o)){if(Dk.test(o))throw new zT("Invalid attribute name '"+o+"'");t+=" "+o+'="'+VT.escape(this.attributes[o])+'"'}t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+e+">"};class kk{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Ck.call(this,e,r,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Ak.call(this,"span")}toMarkup(){return Tk.call(this,"span")}}class Ok{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Ck.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Ak.call(this,"a")}toMarkup(){return Tk.call(this,"a")}}class Nk{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e='<img src="'+VT.escape(this.src)+'" alt="'+VT.escape(this.alt)+'"',t="";for(var r in this.style)this.style.hasOwnProperty(r)&&(t+=VT.hyphenate(r)+":"+this.style[r]+";");return t&&(e+=' style="'+VT.escape(t)+'"'),e+="'/>"}}var Bk={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"};class Fk{constructor(e,t,r,n,o,i,a,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=r||0,this.italic=n||0,this.skew=o||0,this.width=i||0,this.classes=a||[],this.style=s||{},this.maxFontSize=0;var u=function(e){for(var t=0;t<nk.length;t++)for(var r=nk[t],n=0;n<r.blocks.length;n++){var o=r.blocks[n];if(e>=o[0]&&e<=o[1])return r.name}return null}(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Bk[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var r in this.italic>0&&((t=document.createElement("span")).style.marginRight=xk(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=Sk(this.classes)),this.style)this.style.hasOwnProperty(r)&&((t=t||document.createElement("span")).style[r]=this.style[r]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=VT.escape(Sk(this.classes)),t+='"');var r="";for(var n in this.italic>0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(n)&&(r+=VT.hyphenate(n)+":"+this.style[n]+";");r&&(e=!0,t+=' style="'+VT.escape(r)+'"');var o=VT.escape(this.text);return e?(t+=">",t+=o,t+="</span>"):o}}class Mk{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+VT.escape(this.attributes[t])+'"');e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</svg>"}}class Ik{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",sk[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+VT.escape(this.alternate)+'"/>':'<path d="'+VT.escape(sk[this.pathName])+'"/>'}}class Pk{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+VT.escape(this.attributes[t])+'"');return e+="/>"}}function Rk(e){if(e instanceof Fk)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var Lk={bin:1,close:1,inner:1,open:1,punct:1,rel:1},_k={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},zk={math:{},text:{}};function jk(e,t,r,n,o,i){zk[e][o]={font:t,group:r,replace:n},i&&n&&(zk[e][n]=zk[e][o])}var Hk="math",$k="text",Uk="main",Vk="ams",qk="accent-token",Gk="bin",Wk="close",Yk="inner",Kk="mathord",Xk="op-token",Zk="open",Jk="punct",Qk="rel",eO="spacing",tO="textord";jk(Hk,Uk,Qk,"≡","\\equiv",!0),jk(Hk,Uk,Qk,"≺","\\prec",!0),jk(Hk,Uk,Qk,"≻","\\succ",!0),jk(Hk,Uk,Qk,"∼","\\sim",!0),jk(Hk,Uk,Qk,"⊥","\\perp"),jk(Hk,Uk,Qk,"⪯","\\preceq",!0),jk(Hk,Uk,Qk,"⪰","\\succeq",!0),jk(Hk,Uk,Qk,"≃","\\simeq",!0),jk(Hk,Uk,Qk,"∣","\\mid",!0),jk(Hk,Uk,Qk,"≪","\\ll",!0),jk(Hk,Uk,Qk,"≫","\\gg",!0),jk(Hk,Uk,Qk,"≍","\\asymp",!0),jk(Hk,Uk,Qk,"∥","\\parallel"),jk(Hk,Uk,Qk,"⋈","\\bowtie",!0),jk(Hk,Uk,Qk,"⌣","\\smile",!0),jk(Hk,Uk,Qk,"⊑","\\sqsubseteq",!0),jk(Hk,Uk,Qk,"⊒","\\sqsupseteq",!0),jk(Hk,Uk,Qk,"≐","\\doteq",!0),jk(Hk,Uk,Qk,"⌢","\\frown",!0),jk(Hk,Uk,Qk,"∋","\\ni",!0),jk(Hk,Uk,Qk,"∝","\\propto",!0),jk(Hk,Uk,Qk,"⊢","\\vdash",!0),jk(Hk,Uk,Qk,"⊣","\\dashv",!0),jk(Hk,Uk,Qk,"∋","\\owns"),jk(Hk,Uk,Jk,".","\\ldotp"),jk(Hk,Uk,Jk,"⋅","\\cdotp"),jk(Hk,Uk,tO,"#","\\#"),jk($k,Uk,tO,"#","\\#"),jk(Hk,Uk,tO,"&","\\&"),jk($k,Uk,tO,"&","\\&"),jk(Hk,Uk,tO,"ℵ","\\aleph",!0),jk(Hk,Uk,tO,"∀","\\forall",!0),jk(Hk,Uk,tO,"ℏ","\\hbar",!0),jk(Hk,Uk,tO,"∃","\\exists",!0),jk(Hk,Uk,tO,"∇","\\nabla",!0),jk(Hk,Uk,tO,"♭","\\flat",!0),jk(Hk,Uk,tO,"ℓ","\\ell",!0),jk(Hk,Uk,tO,"♮","\\natural",!0),jk(Hk,Uk,tO,"♣","\\clubsuit",!0),jk(Hk,Uk,tO,"℘","\\wp",!0),jk(Hk,Uk,tO,"♯","\\sharp",!0),jk(Hk,Uk,tO,"♢","\\diamondsuit",!0),jk(Hk,Uk,tO,"ℜ","\\Re",!0),jk(Hk,Uk,tO,"♡","\\heartsuit",!0),jk(Hk,Uk,tO,"ℑ","\\Im",!0),jk(Hk,Uk,tO,"♠","\\spadesuit",!0),jk(Hk,Uk,tO,"§","\\S",!0),jk($k,Uk,tO,"§","\\S"),jk(Hk,Uk,tO,"¶","\\P",!0),jk($k,Uk,tO,"¶","\\P"),jk(Hk,Uk,tO,"†","\\dag"),jk($k,Uk,tO,"†","\\dag"),jk($k,Uk,tO,"†","\\textdagger"),jk(Hk,Uk,tO,"‡","\\ddag"),jk($k,Uk,tO,"‡","\\ddag"),jk($k,Uk,tO,"‡","\\textdaggerdbl"),jk(Hk,Uk,Wk,"⎱","\\rmoustache",!0),jk(Hk,Uk,Zk,"⎰","\\lmoustache",!0),jk(Hk,Uk,Wk,"⟯","\\rgroup",!0),jk(Hk,Uk,Zk,"⟮","\\lgroup",!0),jk(Hk,Uk,Gk,"∓","\\mp",!0),jk(Hk,Uk,Gk,"⊖","\\ominus",!0),jk(Hk,Uk,Gk,"⊎","\\uplus",!0),jk(Hk,Uk,Gk,"⊓","\\sqcap",!0),jk(Hk,Uk,Gk,"∗","\\ast"),jk(Hk,Uk,Gk,"⊔","\\sqcup",!0),jk(Hk,Uk,Gk,"◯","\\bigcirc",!0),jk(Hk,Uk,Gk,"∙","\\bullet",!0),jk(Hk,Uk,Gk,"‡","\\ddagger"),jk(Hk,Uk,Gk,"≀","\\wr",!0),jk(Hk,Uk,Gk,"⨿","\\amalg"),jk(Hk,Uk,Gk,"&","\\And"),jk(Hk,Uk,Qk,"⟵","\\longleftarrow",!0),jk(Hk,Uk,Qk,"⇐","\\Leftarrow",!0),jk(Hk,Uk,Qk,"⟸","\\Longleftarrow",!0),jk(Hk,Uk,Qk,"⟶","\\longrightarrow",!0),jk(Hk,Uk,Qk,"⇒","\\Rightarrow",!0),jk(Hk,Uk,Qk,"⟹","\\Longrightarrow",!0),jk(Hk,Uk,Qk,"↔","\\leftrightarrow",!0),jk(Hk,Uk,Qk,"⟷","\\longleftrightarrow",!0),jk(Hk,Uk,Qk,"⇔","\\Leftrightarrow",!0),jk(Hk,Uk,Qk,"⟺","\\Longleftrightarrow",!0),jk(Hk,Uk,Qk,"↦","\\mapsto",!0),jk(Hk,Uk,Qk,"⟼","\\longmapsto",!0),jk(Hk,Uk,Qk,"↗","\\nearrow",!0),jk(Hk,Uk,Qk,"↩","\\hookleftarrow",!0),jk(Hk,Uk,Qk,"↪","\\hookrightarrow",!0),jk(Hk,Uk,Qk,"↘","\\searrow",!0),jk(Hk,Uk,Qk,"↼","\\leftharpoonup",!0),jk(Hk,Uk,Qk,"⇀","\\rightharpoonup",!0),jk(Hk,Uk,Qk,"↙","\\swarrow",!0),jk(Hk,Uk,Qk,"↽","\\leftharpoondown",!0),jk(Hk,Uk,Qk,"⇁","\\rightharpoondown",!0),jk(Hk,Uk,Qk,"↖","\\nwarrow",!0),jk(Hk,Uk,Qk,"⇌","\\rightleftharpoons",!0),jk(Hk,Vk,Qk,"≮","\\nless",!0),jk(Hk,Vk,Qk,"","\\@nleqslant"),jk(Hk,Vk,Qk,"","\\@nleqq"),jk(Hk,Vk,Qk,"⪇","\\lneq",!0),jk(Hk,Vk,Qk,"≨","\\lneqq",!0),jk(Hk,Vk,Qk,"","\\@lvertneqq"),jk(Hk,Vk,Qk,"⋦","\\lnsim",!0),jk(Hk,Vk,Qk,"⪉","\\lnapprox",!0),jk(Hk,Vk,Qk,"⊀","\\nprec",!0),jk(Hk,Vk,Qk,"⋠","\\npreceq",!0),jk(Hk,Vk,Qk,"⋨","\\precnsim",!0),jk(Hk,Vk,Qk,"⪹","\\precnapprox",!0),jk(Hk,Vk,Qk,"≁","\\nsim",!0),jk(Hk,Vk,Qk,"","\\@nshortmid"),jk(Hk,Vk,Qk,"∤","\\nmid",!0),jk(Hk,Vk,Qk,"⊬","\\nvdash",!0),jk(Hk,Vk,Qk,"⊭","\\nvDash",!0),jk(Hk,Vk,Qk,"⋪","\\ntriangleleft"),jk(Hk,Vk,Qk,"⋬","\\ntrianglelefteq",!0),jk(Hk,Vk,Qk,"⊊","\\subsetneq",!0),jk(Hk,Vk,Qk,"","\\@varsubsetneq"),jk(Hk,Vk,Qk,"⫋","\\subsetneqq",!0),jk(Hk,Vk,Qk,"","\\@varsubsetneqq"),jk(Hk,Vk,Qk,"≯","\\ngtr",!0),jk(Hk,Vk,Qk,"","\\@ngeqslant"),jk(Hk,Vk,Qk,"","\\@ngeqq"),jk(Hk,Vk,Qk,"⪈","\\gneq",!0),jk(Hk,Vk,Qk,"≩","\\gneqq",!0),jk(Hk,Vk,Qk,"","\\@gvertneqq"),jk(Hk,Vk,Qk,"⋧","\\gnsim",!0),jk(Hk,Vk,Qk,"⪊","\\gnapprox",!0),jk(Hk,Vk,Qk,"⊁","\\nsucc",!0),jk(Hk,Vk,Qk,"⋡","\\nsucceq",!0),jk(Hk,Vk,Qk,"⋩","\\succnsim",!0),jk(Hk,Vk,Qk,"⪺","\\succnapprox",!0),jk(Hk,Vk,Qk,"≆","\\ncong",!0),jk(Hk,Vk,Qk,"","\\@nshortparallel"),jk(Hk,Vk,Qk,"∦","\\nparallel",!0),jk(Hk,Vk,Qk,"⊯","\\nVDash",!0),jk(Hk,Vk,Qk,"⋫","\\ntriangleright"),jk(Hk,Vk,Qk,"⋭","\\ntrianglerighteq",!0),jk(Hk,Vk,Qk,"","\\@nsupseteqq"),jk(Hk,Vk,Qk,"⊋","\\supsetneq",!0),jk(Hk,Vk,Qk,"","\\@varsupsetneq"),jk(Hk,Vk,Qk,"⫌","\\supsetneqq",!0),jk(Hk,Vk,Qk,"","\\@varsupsetneqq"),jk(Hk,Vk,Qk,"⊮","\\nVdash",!0),jk(Hk,Vk,Qk,"⪵","\\precneqq",!0),jk(Hk,Vk,Qk,"⪶","\\succneqq",!0),jk(Hk,Vk,Qk,"","\\@nsubseteqq"),jk(Hk,Vk,Gk,"⊴","\\unlhd"),jk(Hk,Vk,Gk,"⊵","\\unrhd"),jk(Hk,Vk,Qk,"↚","\\nleftarrow",!0),jk(Hk,Vk,Qk,"↛","\\nrightarrow",!0),jk(Hk,Vk,Qk,"⇍","\\nLeftarrow",!0),jk(Hk,Vk,Qk,"⇏","\\nRightarrow",!0),jk(Hk,Vk,Qk,"↮","\\nleftrightarrow",!0),jk(Hk,Vk,Qk,"⇎","\\nLeftrightarrow",!0),jk(Hk,Vk,Qk,"△","\\vartriangle"),jk(Hk,Vk,tO,"ℏ","\\hslash"),jk(Hk,Vk,tO,"▽","\\triangledown"),jk(Hk,Vk,tO,"◊","\\lozenge"),jk(Hk,Vk,tO,"Ⓢ","\\circledS"),jk(Hk,Vk,tO,"®","\\circledR"),jk($k,Vk,tO,"®","\\circledR"),jk(Hk,Vk,tO,"∡","\\measuredangle",!0),jk(Hk,Vk,tO,"∄","\\nexists"),jk(Hk,Vk,tO,"℧","\\mho"),jk(Hk,Vk,tO,"Ⅎ","\\Finv",!0),jk(Hk,Vk,tO,"⅁","\\Game",!0),jk(Hk,Vk,tO,"‵","\\backprime"),jk(Hk,Vk,tO,"▲","\\blacktriangle"),jk(Hk,Vk,tO,"▼","\\blacktriangledown"),jk(Hk,Vk,tO,"■","\\blacksquare"),jk(Hk,Vk,tO,"⧫","\\blacklozenge"),jk(Hk,Vk,tO,"★","\\bigstar"),jk(Hk,Vk,tO,"∢","\\sphericalangle",!0),jk(Hk,Vk,tO,"∁","\\complement",!0),jk(Hk,Vk,tO,"ð","\\eth",!0),jk($k,Uk,tO,"ð","ð"),jk(Hk,Vk,tO,"╱","\\diagup"),jk(Hk,Vk,tO,"╲","\\diagdown"),jk(Hk,Vk,tO,"□","\\square"),jk(Hk,Vk,tO,"□","\\Box"),jk(Hk,Vk,tO,"◊","\\Diamond"),jk(Hk,Vk,tO,"¥","\\yen",!0),jk($k,Vk,tO,"¥","\\yen",!0),jk(Hk,Vk,tO,"✓","\\checkmark",!0),jk($k,Vk,tO,"✓","\\checkmark"),jk(Hk,Vk,tO,"ℶ","\\beth",!0),jk(Hk,Vk,tO,"ℸ","\\daleth",!0),jk(Hk,Vk,tO,"ℷ","\\gimel",!0),jk(Hk,Vk,tO,"ϝ","\\digamma",!0),jk(Hk,Vk,tO,"ϰ","\\varkappa"),jk(Hk,Vk,Zk,"┌","\\@ulcorner",!0),jk(Hk,Vk,Wk,"┐","\\@urcorner",!0),jk(Hk,Vk,Zk,"└","\\@llcorner",!0),jk(Hk,Vk,Wk,"┘","\\@lrcorner",!0),jk(Hk,Vk,Qk,"≦","\\leqq",!0),jk(Hk,Vk,Qk,"⩽","\\leqslant",!0),jk(Hk,Vk,Qk,"⪕","\\eqslantless",!0),jk(Hk,Vk,Qk,"≲","\\lesssim",!0),jk(Hk,Vk,Qk,"⪅","\\lessapprox",!0),jk(Hk,Vk,Qk,"≊","\\approxeq",!0),jk(Hk,Vk,Gk,"⋖","\\lessdot"),jk(Hk,Vk,Qk,"⋘","\\lll",!0),jk(Hk,Vk,Qk,"≶","\\lessgtr",!0),jk(Hk,Vk,Qk,"⋚","\\lesseqgtr",!0),jk(Hk,Vk,Qk,"⪋","\\lesseqqgtr",!0),jk(Hk,Vk,Qk,"≑","\\doteqdot"),jk(Hk,Vk,Qk,"≓","\\risingdotseq",!0),jk(Hk,Vk,Qk,"≒","\\fallingdotseq",!0),jk(Hk,Vk,Qk,"∽","\\backsim",!0),jk(Hk,Vk,Qk,"⋍","\\backsimeq",!0),jk(Hk,Vk,Qk,"⫅","\\subseteqq",!0),jk(Hk,Vk,Qk,"⋐","\\Subset",!0),jk(Hk,Vk,Qk,"⊏","\\sqsubset",!0),jk(Hk,Vk,Qk,"≼","\\preccurlyeq",!0),jk(Hk,Vk,Qk,"⋞","\\curlyeqprec",!0),jk(Hk,Vk,Qk,"≾","\\precsim",!0),jk(Hk,Vk,Qk,"⪷","\\precapprox",!0),jk(Hk,Vk,Qk,"⊲","\\vartriangleleft"),jk(Hk,Vk,Qk,"⊴","\\trianglelefteq"),jk(Hk,Vk,Qk,"⊨","\\vDash",!0),jk(Hk,Vk,Qk,"⊪","\\Vvdash",!0),jk(Hk,Vk,Qk,"⌣","\\smallsmile"),jk(Hk,Vk,Qk,"⌢","\\smallfrown"),jk(Hk,Vk,Qk,"≏","\\bumpeq",!0),jk(Hk,Vk,Qk,"≎","\\Bumpeq",!0),jk(Hk,Vk,Qk,"≧","\\geqq",!0),jk(Hk,Vk,Qk,"⩾","\\geqslant",!0),jk(Hk,Vk,Qk,"⪖","\\eqslantgtr",!0),jk(Hk,Vk,Qk,"≳","\\gtrsim",!0),jk(Hk,Vk,Qk,"⪆","\\gtrapprox",!0),jk(Hk,Vk,Gk,"⋗","\\gtrdot"),jk(Hk,Vk,Qk,"⋙","\\ggg",!0),jk(Hk,Vk,Qk,"≷","\\gtrless",!0),jk(Hk,Vk,Qk,"⋛","\\gtreqless",!0),jk(Hk,Vk,Qk,"⪌","\\gtreqqless",!0),jk(Hk,Vk,Qk,"≖","\\eqcirc",!0),jk(Hk,Vk,Qk,"≗","\\circeq",!0),jk(Hk,Vk,Qk,"≜","\\triangleq",!0),jk(Hk,Vk,Qk,"∼","\\thicksim"),jk(Hk,Vk,Qk,"≈","\\thickapprox"),jk(Hk,Vk,Qk,"⫆","\\supseteqq",!0),jk(Hk,Vk,Qk,"⋑","\\Supset",!0),jk(Hk,Vk,Qk,"⊐","\\sqsupset",!0),jk(Hk,Vk,Qk,"≽","\\succcurlyeq",!0),jk(Hk,Vk,Qk,"⋟","\\curlyeqsucc",!0),jk(Hk,Vk,Qk,"≿","\\succsim",!0),jk(Hk,Vk,Qk,"⪸","\\succapprox",!0),jk(Hk,Vk,Qk,"⊳","\\vartriangleright"),jk(Hk,Vk,Qk,"⊵","\\trianglerighteq"),jk(Hk,Vk,Qk,"⊩","\\Vdash",!0),jk(Hk,Vk,Qk,"∣","\\shortmid"),jk(Hk,Vk,Qk,"∥","\\shortparallel"),jk(Hk,Vk,Qk,"≬","\\between",!0),jk(Hk,Vk,Qk,"⋔","\\pitchfork",!0),jk(Hk,Vk,Qk,"∝","\\varpropto"),jk(Hk,Vk,Qk,"◀","\\blacktriangleleft"),jk(Hk,Vk,Qk,"∴","\\therefore",!0),jk(Hk,Vk,Qk,"∍","\\backepsilon"),jk(Hk,Vk,Qk,"▶","\\blacktriangleright"),jk(Hk,Vk,Qk,"∵","\\because",!0),jk(Hk,Vk,Qk,"⋘","\\llless"),jk(Hk,Vk,Qk,"⋙","\\gggtr"),jk(Hk,Vk,Gk,"⊲","\\lhd"),jk(Hk,Vk,Gk,"⊳","\\rhd"),jk(Hk,Vk,Qk,"≂","\\eqsim",!0),jk(Hk,Uk,Qk,"⋈","\\Join"),jk(Hk,Vk,Qk,"≑","\\Doteq",!0),jk(Hk,Vk,Gk,"∔","\\dotplus",!0),jk(Hk,Vk,Gk,"∖","\\smallsetminus"),jk(Hk,Vk,Gk,"⋒","\\Cap",!0),jk(Hk,Vk,Gk,"⋓","\\Cup",!0),jk(Hk,Vk,Gk,"⩞","\\doublebarwedge",!0),jk(Hk,Vk,Gk,"⊟","\\boxminus",!0),jk(Hk,Vk,Gk,"⊞","\\boxplus",!0),jk(Hk,Vk,Gk,"⋇","\\divideontimes",!0),jk(Hk,Vk,Gk,"⋉","\\ltimes",!0),jk(Hk,Vk,Gk,"⋊","\\rtimes",!0),jk(Hk,Vk,Gk,"⋋","\\leftthreetimes",!0),jk(Hk,Vk,Gk,"⋌","\\rightthreetimes",!0),jk(Hk,Vk,Gk,"⋏","\\curlywedge",!0),jk(Hk,Vk,Gk,"⋎","\\curlyvee",!0),jk(Hk,Vk,Gk,"⊝","\\circleddash",!0),jk(Hk,Vk,Gk,"⊛","\\circledast",!0),jk(Hk,Vk,Gk,"⋅","\\centerdot"),jk(Hk,Vk,Gk,"⊺","\\intercal",!0),jk(Hk,Vk,Gk,"⋒","\\doublecap"),jk(Hk,Vk,Gk,"⋓","\\doublecup"),jk(Hk,Vk,Gk,"⊠","\\boxtimes",!0),jk(Hk,Vk,Qk,"⇢","\\dashrightarrow",!0),jk(Hk,Vk,Qk,"⇠","\\dashleftarrow",!0),jk(Hk,Vk,Qk,"⇇","\\leftleftarrows",!0),jk(Hk,Vk,Qk,"⇆","\\leftrightarrows",!0),jk(Hk,Vk,Qk,"⇚","\\Lleftarrow",!0),jk(Hk,Vk,Qk,"↞","\\twoheadleftarrow",!0),jk(Hk,Vk,Qk,"↢","\\leftarrowtail",!0),jk(Hk,Vk,Qk,"↫","\\looparrowleft",!0),jk(Hk,Vk,Qk,"⇋","\\leftrightharpoons",!0),jk(Hk,Vk,Qk,"↶","\\curvearrowleft",!0),jk(Hk,Vk,Qk,"↺","\\circlearrowleft",!0),jk(Hk,Vk,Qk,"↰","\\Lsh",!0),jk(Hk,Vk,Qk,"⇈","\\upuparrows",!0),jk(Hk,Vk,Qk,"↿","\\upharpoonleft",!0),jk(Hk,Vk,Qk,"⇃","\\downharpoonleft",!0),jk(Hk,Uk,Qk,"⊶","\\origof",!0),jk(Hk,Uk,Qk,"⊷","\\imageof",!0),jk(Hk,Vk,Qk,"⊸","\\multimap",!0),jk(Hk,Vk,Qk,"↭","\\leftrightsquigarrow",!0),jk(Hk,Vk,Qk,"⇉","\\rightrightarrows",!0),jk(Hk,Vk,Qk,"⇄","\\rightleftarrows",!0),jk(Hk,Vk,Qk,"↠","\\twoheadrightarrow",!0),jk(Hk,Vk,Qk,"↣","\\rightarrowtail",!0),jk(Hk,Vk,Qk,"↬","\\looparrowright",!0),jk(Hk,Vk,Qk,"↷","\\curvearrowright",!0),jk(Hk,Vk,Qk,"↻","\\circlearrowright",!0),jk(Hk,Vk,Qk,"↱","\\Rsh",!0),jk(Hk,Vk,Qk,"⇊","\\downdownarrows",!0),jk(Hk,Vk,Qk,"↾","\\upharpoonright",!0),jk(Hk,Vk,Qk,"⇂","\\downharpoonright",!0),jk(Hk,Vk,Qk,"⇝","\\rightsquigarrow",!0),jk(Hk,Vk,Qk,"⇝","\\leadsto"),jk(Hk,Vk,Qk,"⇛","\\Rrightarrow",!0),jk(Hk,Vk,Qk,"↾","\\restriction"),jk(Hk,Uk,tO,"‘","`"),jk(Hk,Uk,tO,"$","\\$"),jk($k,Uk,tO,"$","\\$"),jk($k,Uk,tO,"$","\\textdollar"),jk(Hk,Uk,tO,"%","\\%"),jk($k,Uk,tO,"%","\\%"),jk(Hk,Uk,tO,"_","\\_"),jk($k,Uk,tO,"_","\\_"),jk($k,Uk,tO,"_","\\textunderscore"),jk(Hk,Uk,tO,"∠","\\angle",!0),jk(Hk,Uk,tO,"∞","\\infty",!0),jk(Hk,Uk,tO,"′","\\prime"),jk(Hk,Uk,tO,"△","\\triangle"),jk(Hk,Uk,tO,"Γ","\\Gamma",!0),jk(Hk,Uk,tO,"Δ","\\Delta",!0),jk(Hk,Uk,tO,"Θ","\\Theta",!0),jk(Hk,Uk,tO,"Λ","\\Lambda",!0),jk(Hk,Uk,tO,"Ξ","\\Xi",!0),jk(Hk,Uk,tO,"Π","\\Pi",!0),jk(Hk,Uk,tO,"Σ","\\Sigma",!0),jk(Hk,Uk,tO,"Υ","\\Upsilon",!0),jk(Hk,Uk,tO,"Φ","\\Phi",!0),jk(Hk,Uk,tO,"Ψ","\\Psi",!0),jk(Hk,Uk,tO,"Ω","\\Omega",!0),jk(Hk,Uk,tO,"A","Α"),jk(Hk,Uk,tO,"B","Β"),jk(Hk,Uk,tO,"E","Ε"),jk(Hk,Uk,tO,"Z","Ζ"),jk(Hk,Uk,tO,"H","Η"),jk(Hk,Uk,tO,"I","Ι"),jk(Hk,Uk,tO,"K","Κ"),jk(Hk,Uk,tO,"M","Μ"),jk(Hk,Uk,tO,"N","Ν"),jk(Hk,Uk,tO,"O","Ο"),jk(Hk,Uk,tO,"P","Ρ"),jk(Hk,Uk,tO,"T","Τ"),jk(Hk,Uk,tO,"X","Χ"),jk(Hk,Uk,tO,"¬","\\neg",!0),jk(Hk,Uk,tO,"¬","\\lnot"),jk(Hk,Uk,tO,"⊤","\\top"),jk(Hk,Uk,tO,"⊥","\\bot"),jk(Hk,Uk,tO,"∅","\\emptyset"),jk(Hk,Vk,tO,"∅","\\varnothing"),jk(Hk,Uk,Kk,"α","\\alpha",!0),jk(Hk,Uk,Kk,"β","\\beta",!0),jk(Hk,Uk,Kk,"γ","\\gamma",!0),jk(Hk,Uk,Kk,"δ","\\delta",!0),jk(Hk,Uk,Kk,"ϵ","\\epsilon",!0),jk(Hk,Uk,Kk,"ζ","\\zeta",!0),jk(Hk,Uk,Kk,"η","\\eta",!0),jk(Hk,Uk,Kk,"θ","\\theta",!0),jk(Hk,Uk,Kk,"ι","\\iota",!0),jk(Hk,Uk,Kk,"κ","\\kappa",!0),jk(Hk,Uk,Kk,"λ","\\lambda",!0),jk(Hk,Uk,Kk,"μ","\\mu",!0),jk(Hk,Uk,Kk,"ν","\\nu",!0),jk(Hk,Uk,Kk,"ξ","\\xi",!0),jk(Hk,Uk,Kk,"ο","\\omicron",!0),jk(Hk,Uk,Kk,"π","\\pi",!0),jk(Hk,Uk,Kk,"ρ","\\rho",!0),jk(Hk,Uk,Kk,"σ","\\sigma",!0),jk(Hk,Uk,Kk,"τ","\\tau",!0),jk(Hk,Uk,Kk,"υ","\\upsilon",!0),jk(Hk,Uk,Kk,"ϕ","\\phi",!0),jk(Hk,Uk,Kk,"χ","\\chi",!0),jk(Hk,Uk,Kk,"ψ","\\psi",!0),jk(Hk,Uk,Kk,"ω","\\omega",!0),jk(Hk,Uk,Kk,"ε","\\varepsilon",!0),jk(Hk,Uk,Kk,"ϑ","\\vartheta",!0),jk(Hk,Uk,Kk,"ϖ","\\varpi",!0),jk(Hk,Uk,Kk,"ϱ","\\varrho",!0),jk(Hk,Uk,Kk,"ς","\\varsigma",!0),jk(Hk,Uk,Kk,"φ","\\varphi",!0),jk(Hk,Uk,Gk,"∗","*",!0),jk(Hk,Uk,Gk,"+","+"),jk(Hk,Uk,Gk,"−","-",!0),jk(Hk,Uk,Gk,"⋅","\\cdot",!0),jk(Hk,Uk,Gk,"∘","\\circ",!0),jk(Hk,Uk,Gk,"÷","\\div",!0),jk(Hk,Uk,Gk,"±","\\pm",!0),jk(Hk,Uk,Gk,"×","\\times",!0),jk(Hk,Uk,Gk,"∩","\\cap",!0),jk(Hk,Uk,Gk,"∪","\\cup",!0),jk(Hk,Uk,Gk,"∖","\\setminus",!0),jk(Hk,Uk,Gk,"∧","\\land"),jk(Hk,Uk,Gk,"∨","\\lor"),jk(Hk,Uk,Gk,"∧","\\wedge",!0),jk(Hk,Uk,Gk,"∨","\\vee",!0),jk(Hk,Uk,tO,"√","\\surd"),jk(Hk,Uk,Zk,"⟨","\\langle",!0),jk(Hk,Uk,Zk,"∣","\\lvert"),jk(Hk,Uk,Zk,"∥","\\lVert"),jk(Hk,Uk,Wk,"?","?"),jk(Hk,Uk,Wk,"!","!"),jk(Hk,Uk,Wk,"⟩","\\rangle",!0),jk(Hk,Uk,Wk,"∣","\\rvert"),jk(Hk,Uk,Wk,"∥","\\rVert"),jk(Hk,Uk,Qk,"=","="),jk(Hk,Uk,Qk,":",":"),jk(Hk,Uk,Qk,"≈","\\approx",!0),jk(Hk,Uk,Qk,"≅","\\cong",!0),jk(Hk,Uk,Qk,"≥","\\ge"),jk(Hk,Uk,Qk,"≥","\\geq",!0),jk(Hk,Uk,Qk,"←","\\gets"),jk(Hk,Uk,Qk,">","\\gt",!0),jk(Hk,Uk,Qk,"∈","\\in",!0),jk(Hk,Uk,Qk,"","\\@not"),jk(Hk,Uk,Qk,"⊂","\\subset",!0),jk(Hk,Uk,Qk,"⊃","\\supset",!0),jk(Hk,Uk,Qk,"⊆","\\subseteq",!0),jk(Hk,Uk,Qk,"⊇","\\supseteq",!0),jk(Hk,Vk,Qk,"⊈","\\nsubseteq",!0),jk(Hk,Vk,Qk,"⊉","\\nsupseteq",!0),jk(Hk,Uk,Qk,"⊨","\\models"),jk(Hk,Uk,Qk,"←","\\leftarrow",!0),jk(Hk,Uk,Qk,"≤","\\le"),jk(Hk,Uk,Qk,"≤","\\leq",!0),jk(Hk,Uk,Qk,"<","\\lt",!0),jk(Hk,Uk,Qk,"→","\\rightarrow",!0),jk(Hk,Uk,Qk,"→","\\to"),jk(Hk,Vk,Qk,"≱","\\ngeq",!0),jk(Hk,Vk,Qk,"≰","\\nleq",!0),jk(Hk,Uk,eO," ","\\ "),jk(Hk,Uk,eO," ","\\space"),jk(Hk,Uk,eO," ","\\nobreakspace"),jk($k,Uk,eO," ","\\ "),jk($k,Uk,eO," "," "),jk($k,Uk,eO," ","\\space"),jk($k,Uk,eO," ","\\nobreakspace"),jk(Hk,Uk,eO,null,"\\nobreak"),jk(Hk,Uk,eO,null,"\\allowbreak"),jk(Hk,Uk,Jk,",",","),jk(Hk,Uk,Jk,";",";"),jk(Hk,Vk,Gk,"⊼","\\barwedge",!0),jk(Hk,Vk,Gk,"⊻","\\veebar",!0),jk(Hk,Uk,Gk,"⊙","\\odot",!0),jk(Hk,Uk,Gk,"⊕","\\oplus",!0),jk(Hk,Uk,Gk,"⊗","\\otimes",!0),jk(Hk,Uk,tO,"∂","\\partial",!0),jk(Hk,Uk,Gk,"⊘","\\oslash",!0),jk(Hk,Vk,Gk,"⊚","\\circledcirc",!0),jk(Hk,Vk,Gk,"⊡","\\boxdot",!0),jk(Hk,Uk,Gk,"△","\\bigtriangleup"),jk(Hk,Uk,Gk,"▽","\\bigtriangledown"),jk(Hk,Uk,Gk,"†","\\dagger"),jk(Hk,Uk,Gk,"⋄","\\diamond"),jk(Hk,Uk,Gk,"⋆","\\star"),jk(Hk,Uk,Gk,"◃","\\triangleleft"),jk(Hk,Uk,Gk,"▹","\\triangleright"),jk(Hk,Uk,Zk,"{","\\{"),jk($k,Uk,tO,"{","\\{"),jk($k,Uk,tO,"{","\\textbraceleft"),jk(Hk,Uk,Wk,"}","\\}"),jk($k,Uk,tO,"}","\\}"),jk($k,Uk,tO,"}","\\textbraceright"),jk(Hk,Uk,Zk,"{","\\lbrace"),jk(Hk,Uk,Wk,"}","\\rbrace"),jk(Hk,Uk,Zk,"[","\\lbrack",!0),jk($k,Uk,tO,"[","\\lbrack",!0),jk(Hk,Uk,Wk,"]","\\rbrack",!0),jk($k,Uk,tO,"]","\\rbrack",!0),jk(Hk,Uk,Zk,"(","\\lparen",!0),jk(Hk,Uk,Wk,")","\\rparen",!0),jk($k,Uk,tO,"<","\\textless",!0),jk($k,Uk,tO,">","\\textgreater",!0),jk(Hk,Uk,Zk,"⌊","\\lfloor",!0),jk(Hk,Uk,Wk,"⌋","\\rfloor",!0),jk(Hk,Uk,Zk,"⌈","\\lceil",!0),jk(Hk,Uk,Wk,"⌉","\\rceil",!0),jk(Hk,Uk,tO,"\\","\\backslash"),jk(Hk,Uk,tO,"∣","|"),jk(Hk,Uk,tO,"∣","\\vert"),jk($k,Uk,tO,"|","\\textbar",!0),jk(Hk,Uk,tO,"∥","\\|"),jk(Hk,Uk,tO,"∥","\\Vert"),jk($k,Uk,tO,"∥","\\textbardbl"),jk($k,Uk,tO,"~","\\textasciitilde"),jk($k,Uk,tO,"\\","\\textbackslash"),jk($k,Uk,tO,"^","\\textasciicircum"),jk(Hk,Uk,Qk,"↑","\\uparrow",!0),jk(Hk,Uk,Qk,"⇑","\\Uparrow",!0),jk(Hk,Uk,Qk,"↓","\\downarrow",!0),jk(Hk,Uk,Qk,"⇓","\\Downarrow",!0),jk(Hk,Uk,Qk,"↕","\\updownarrow",!0),jk(Hk,Uk,Qk,"⇕","\\Updownarrow",!0),jk(Hk,Uk,Xk,"∐","\\coprod"),jk(Hk,Uk,Xk,"⋁","\\bigvee"),jk(Hk,Uk,Xk,"⋀","\\bigwedge"),jk(Hk,Uk,Xk,"⨄","\\biguplus"),jk(Hk,Uk,Xk,"⋂","\\bigcap"),jk(Hk,Uk,Xk,"⋃","\\bigcup"),jk(Hk,Uk,Xk,"∫","\\int"),jk(Hk,Uk,Xk,"∫","\\intop"),jk(Hk,Uk,Xk,"∬","\\iint"),jk(Hk,Uk,Xk,"∭","\\iiint"),jk(Hk,Uk,Xk,"∏","\\prod"),jk(Hk,Uk,Xk,"∑","\\sum"),jk(Hk,Uk,Xk,"⨂","\\bigotimes"),jk(Hk,Uk,Xk,"⨁","\\bigoplus"),jk(Hk,Uk,Xk,"⨀","\\bigodot"),jk(Hk,Uk,Xk,"∮","\\oint"),jk(Hk,Uk,Xk,"∯","\\oiint"),jk(Hk,Uk,Xk,"∰","\\oiiint"),jk(Hk,Uk,Xk,"⨆","\\bigsqcup"),jk(Hk,Uk,Xk,"∫","\\smallint"),jk($k,Uk,Yk,"…","\\textellipsis"),jk(Hk,Uk,Yk,"…","\\mathellipsis"),jk($k,Uk,Yk,"…","\\ldots",!0),jk(Hk,Uk,Yk,"…","\\ldots",!0),jk(Hk,Uk,Yk,"⋯","\\@cdots",!0),jk(Hk,Uk,Yk,"⋱","\\ddots",!0),jk(Hk,Uk,tO,"⋮","\\varvdots"),jk($k,Uk,tO,"⋮","\\varvdots"),jk(Hk,Uk,qk,"ˊ","\\acute"),jk(Hk,Uk,qk,"ˋ","\\grave"),jk(Hk,Uk,qk,"¨","\\ddot"),jk(Hk,Uk,qk,"~","\\tilde"),jk(Hk,Uk,qk,"ˉ","\\bar"),jk(Hk,Uk,qk,"˘","\\breve"),jk(Hk,Uk,qk,"ˇ","\\check"),jk(Hk,Uk,qk,"^","\\hat"),jk(Hk,Uk,qk,"⃗","\\vec"),jk(Hk,Uk,qk,"˙","\\dot"),jk(Hk,Uk,qk,"˚","\\mathring"),jk(Hk,Uk,Kk,"","\\@imath"),jk(Hk,Uk,Kk,"","\\@jmath"),jk(Hk,Uk,tO,"ı","ı"),jk(Hk,Uk,tO,"ȷ","ȷ"),jk($k,Uk,tO,"ı","\\i",!0),jk($k,Uk,tO,"ȷ","\\j",!0),jk($k,Uk,tO,"ß","\\ss",!0),jk($k,Uk,tO,"æ","\\ae",!0),jk($k,Uk,tO,"œ","\\oe",!0),jk($k,Uk,tO,"ø","\\o",!0),jk($k,Uk,tO,"Æ","\\AE",!0),jk($k,Uk,tO,"Œ","\\OE",!0),jk($k,Uk,tO,"Ø","\\O",!0),jk($k,Uk,qk,"ˊ","\\'"),jk($k,Uk,qk,"ˋ","\\`"),jk($k,Uk,qk,"ˆ","\\^"),jk($k,Uk,qk,"˜","\\~"),jk($k,Uk,qk,"ˉ","\\="),jk($k,Uk,qk,"˘","\\u"),jk($k,Uk,qk,"˙","\\."),jk($k,Uk,qk,"¸","\\c"),jk($k,Uk,qk,"˚","\\r"),jk($k,Uk,qk,"ˇ","\\v"),jk($k,Uk,qk,"¨",'\\"'),jk($k,Uk,qk,"˝","\\H"),jk($k,Uk,qk,"◯","\\textcircled");var rO={"--":!0,"---":!0,"``":!0,"''":!0};jk($k,Uk,tO,"–","--",!0),jk($k,Uk,tO,"–","\\textendash"),jk($k,Uk,tO,"—","---",!0),jk($k,Uk,tO,"—","\\textemdash"),jk($k,Uk,tO,"‘","`",!0),jk($k,Uk,tO,"‘","\\textquoteleft"),jk($k,Uk,tO,"’","'",!0),jk($k,Uk,tO,"’","\\textquoteright"),jk($k,Uk,tO,"“","``",!0),jk($k,Uk,tO,"“","\\textquotedblleft"),jk($k,Uk,tO,"”","''",!0),jk($k,Uk,tO,"”","\\textquotedblright"),jk(Hk,Uk,tO,"°","\\degree",!0),jk($k,Uk,tO,"°","\\degree"),jk($k,Uk,tO,"°","\\textdegree",!0),jk(Hk,Uk,tO,"£","\\pounds"),jk(Hk,Uk,tO,"£","\\mathsterling",!0),jk($k,Uk,tO,"£","\\pounds"),jk($k,Uk,tO,"£","\\textsterling",!0),jk(Hk,Vk,tO,"✠","\\maltese"),jk($k,Vk,tO,"✠","\\maltese");for(var nO='0123456789/@."',oO=0;oO<14;oO++){var iO=nO.charAt(oO);jk(Hk,Uk,tO,iO,iO)}for(var aO='0123456789!@*()-=+";:?/.,',sO=0;sO<25;sO++){var uO=aO.charAt(sO);jk($k,Uk,tO,uO,uO)}for(var lO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",cO=0;cO<52;cO++){var dO=lO.charAt(cO);jk(Hk,Uk,Kk,dO,dO),jk($k,Uk,tO,dO,dO)}jk(Hk,Vk,tO,"C","ℂ"),jk($k,Vk,tO,"C","ℂ"),jk(Hk,Vk,tO,"H","ℍ"),jk($k,Vk,tO,"H","ℍ"),jk(Hk,Vk,tO,"N","ℕ"),jk($k,Vk,tO,"N","ℕ"),jk(Hk,Vk,tO,"P","ℙ"),jk($k,Vk,tO,"P","ℙ"),jk(Hk,Vk,tO,"Q","ℚ"),jk($k,Vk,tO,"Q","ℚ"),jk(Hk,Vk,tO,"R","ℝ"),jk($k,Vk,tO,"R","ℝ"),jk(Hk,Vk,tO,"Z","ℤ"),jk($k,Vk,tO,"Z","ℤ"),jk(Hk,Uk,Kk,"h","ℎ"),jk($k,Uk,Kk,"h","ℎ");for(var fO="",hO=0;hO<52;hO++){var pO=lO.charAt(hO);jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56320+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56372+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56424+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56580+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56684+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56736+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56788+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56840+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56944+hO)),jk($k,Uk,tO,pO,fO),hO<26&&(jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56632+hO)),jk($k,Uk,tO,pO,fO),jk(Hk,Uk,Kk,pO,fO=String.fromCharCode(55349,56476+hO)),jk($k,Uk,tO,pO,fO))}jk(Hk,Uk,Kk,"k",fO=String.fromCharCode(55349,56668)),jk($k,Uk,tO,"k",fO);for(var gO=0;gO<10;gO++){var mO=gO.toString();jk(Hk,Uk,Kk,mO,fO=String.fromCharCode(55349,57294+gO)),jk($k,Uk,tO,mO,fO),jk(Hk,Uk,Kk,mO,fO=String.fromCharCode(55349,57314+gO)),jk($k,Uk,tO,mO,fO),jk(Hk,Uk,Kk,mO,fO=String.fromCharCode(55349,57324+gO)),jk($k,Uk,tO,mO,fO),jk(Hk,Uk,Kk,mO,fO=String.fromCharCode(55349,57334+gO)),jk($k,Uk,tO,mO,fO)}for(var vO="ÐÞþ",yO=0;yO<3;yO++){var bO=vO.charAt(yO);jk(Hk,Uk,Kk,bO,bO),jk($k,Uk,tO,bO,bO)}var wO=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],EO=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],xO=function(e,t,r){return zk[r][e]&&zk[r][e].replace&&(e=zk[r][e].replace),{value:e,metrics:fk(e,t,r)}},SO=function(e,t,r,n,o){var i,a=xO(e,t,r),s=a.metrics;if(e=a.value,s){var u=s.italic;("text"===r||n&&"mathit"===n.font)&&(u=0),i=new Fk(e,s.height,s.depth,u,s.skew,s.width,o)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+r+"'"),i=new Fk(e,0,0,0,0,0,o);if(n){i.maxFontSize=n.sizeMultiplier,n.style.isTight()&&i.classes.push("mtight");var l=n.getColor();l&&(i.style.color=l)}return i},CO=(e,t)=>{if(Sk(e.classes)!==Sk(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var o in t.style)if(t.style.hasOwnProperty(o)&&e.style[o]!==t.style[o])return!1;return!0},AO=function(e){for(var t=0,r=0,n=0,o=0;o<e.children.length;o++){var i=e.children[o];i.height>t&&(t=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>n&&(n=i.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},DO=function(e,t,r,n){var o=new kk(e,t,r,n);return AO(o),o},TO=(e,t,r,n)=>new kk(e,t,r,n),kO=function(e){var t=new uk(e);return AO(t),t},OO=function(e,t,r){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},NO={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},BO={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},FO={fontMap:NO,makeSymbol:SO,mathsym:function(e,t,r,n){return void 0===n&&(n=[]),"boldsymbol"===r.font&&xO(e,"Main-Bold",t).metrics?SO(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===zk[t][e].font?SO(e,"Main-Regular",t,r,n):SO(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},makeSpan:DO,makeSvgSpan:TO,makeLineSpan:function(e,t,r){var n=DO([e],[],t);return n.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=xk(n.height),n.maxFontSize=1,n},makeAnchor:function(e,t,r,n){var o=new Ok(e,t,r,n);return AO(o),o},makeFragment:kO,wrapFragment:function(e,t){return e instanceof uk?DO([],[e],t):e},makeVList:function(e,t){for(var{children:r,depth:n}=function(e){if("individualShift"===e.positionType){for(var t=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.depth,o=n,i=1;i<t.length;i++){var a=-t[i].shift-o-t[i].elem.depth,s=a-(t[i-1].elem.height+t[i-1].elem.depth);o+=a,r.push({type:"kern",size:s}),r.push(t[i])}return{children:r,depth:n}}var u;if("top"===e.positionType){for(var l=e.positionData,c=0;c<e.children.length;c++){var d=e.children[c];l-="kern"===d.type?d.size:d.elem.height+d.elem.depth}u=l}else if("bottom"===e.positionType)u=-e.positionData;else{var f=e.children[0];if("elem"!==f.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)u=-f.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");u=-f.elem.depth}}return{children:e.children,depth:u}}(e),o=0,i=0;i<r.length;i++){var a=r[i];if("elem"===a.type){var s=a.elem;o=Math.max(o,s.maxFontSize,s.height)}}o+=2;var u=DO(["pstrut"],[]);u.style.height=xk(o);for(var l=[],c=n,d=n,f=n,h=0;h<r.length;h++){var p=r[h];if("kern"===p.type)f+=p.size;else{var g=p.elem,m=p.wrapperClasses||[],v=p.wrapperStyle||{},y=DO(m,[u,g],void 0,v);y.style.top=xk(-o-f-g.depth),p.marginLeft&&(y.style.marginLeft=p.marginLeft),p.marginRight&&(y.style.marginRight=p.marginRight),l.push(y),f+=g.height+g.depth}c=Math.min(c,f),d=Math.max(d,f)}var b,w=DO(["vlist"],l);if(w.style.height=xk(d),c<0){var E=DO([],[]),x=DO(["vlist"],[E]);x.style.height=xk(-c);var S=DO(["vlist-s"],[new Fk("")]);b=[DO(["vlist-r"],[w,S]),DO(["vlist-r"],[x])]}else b=[DO(["vlist-r"],[w])];var C=DO(["vlist-t"],b);return 2===b.length&&C.classes.push("vlist-t2"),C.height=d,C.depth=-c,C},makeOrd:function(e,t,r){var n=e.mode,o=e.text,i=["mord"],a="math"===n||"text"===n&&t.font,s=a?t.font:t.fontFamily,u="",l="";if(55349===o.charCodeAt(0)&&([u,l]=function(e,t){var r=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,n="math"===t?0:1;if(119808<=r&&r<120484){var o=Math.floor((r-119808)/26);return[wO[o][2],wO[o][n]]}if(120782<=r&&r<=120831){var i=Math.floor((r-120782)/10);return[EO[i][2],EO[i][n]]}if(120485===r||120486===r)return[wO[0][2],wO[0][n]];if(120486<r&&r<120782)return["",""];throw new zT("Unsupported character: "+e)}(o,n)),u.length>0)return SO(o,u,n,t,i.concat(l));if(s){var c,d;if("boldsymbol"===s){var f=function(e,t,r,n,o){return"textord"!==o&&xO(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(o,n,0,0,r);c=f.fontName,d=[f.fontClass]}else a?(c=NO[s].fontName,d=[s]):(c=OO(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(xO(o,c,n).metrics)return SO(o,c,n,t,i.concat(d));if(rO.hasOwnProperty(o)&&"Typewriter"===c.slice(0,10)){for(var h=[],p=0;p<o.length;p++)h.push(SO(o[p],c,n,t,i.concat(d)));return kO(h)}}if("mathord"===r)return SO(o,"Math-Italic",n,t,i.concat(["mathnormal"]));if("textord"===r){var g=zk[n][o]&&zk[n][o].font;if("ams"===g){var m=OO("amsrm",t.fontWeight,t.fontShape);return SO(o,m,n,t,i.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==g&&g){var v=OO(g,t.fontWeight,t.fontShape);return SO(o,v,n,t,i.concat(v,t.fontWeight,t.fontShape))}var y=OO("textrm",t.fontWeight,t.fontShape);return SO(o,y,n,t,i.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+r+" in makeOrd")},makeGlue:(e,t)=>{var r=DO(["mspace"],[],t),n=Ek(e,t);return r.style.marginRight=xk(n),r},staticSvg:function(e,t){var[r,n,o]=BO[e],i=new Ik(r),a=new Mk([i],{width:xk(n),height:xk(o),style:"width:"+xk(n),viewBox:"0 0 "+1e3*n+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),s=TO(["overlay"],[a],t);return s.height=o,s.style.height=xk(o),s.style.width=xk(n),s},svgData:BO,tryCombineChars:e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof Fk&&n instanceof Fk&&CO(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e}},MO={number:3,unit:"mu"},IO={number:4,unit:"mu"},PO={number:5,unit:"mu"},RO={mord:{mop:MO,mbin:IO,mrel:PO,minner:MO},mop:{mord:MO,mop:MO,mrel:PO,minner:MO},mbin:{mord:IO,mop:IO,mopen:IO,minner:IO},mrel:{mord:PO,mop:PO,mopen:PO,minner:PO},mopen:{},mclose:{mop:MO,mbin:IO,mrel:PO,minner:MO},mpunct:{mord:MO,mop:MO,mrel:PO,mopen:MO,mclose:MO,mpunct:MO,minner:MO},minner:{mord:MO,mop:MO,mbin:IO,mrel:PO,mopen:MO,mpunct:MO,minner:MO}},LO={mord:{mop:MO},mop:{mord:MO,mop:MO},mbin:{},mrel:{},mopen:{},mclose:{mop:MO},mpunct:{},minner:{mop:MO}},_O={},zO={},jO={};function HO(e){for(var{type:t,names:r,props:n,handler:o,htmlBuilder:i,mathmlBuilder:a}=e,s={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:void 0===n.allowedInMath||n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:o},u=0;u<r.length;++u)_O[r[u]]=s;t&&(i&&(zO[t]=i),a&&(jO[t]=a))}function $O(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;HO({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var UO=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},VO=function(e){return"ordgroup"===e.type?e.body:[e]},qO=FO.makeSpan,GO=["leftmost","mbin","mopen","mrel","mop","mpunct"],WO=["rightmost","mrel","mclose","mpunct"],YO={display:rk.DISPLAY,text:rk.TEXT,script:rk.SCRIPT,scriptscript:rk.SCRIPTSCRIPT},KO={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},XO=function(e,t,r,n){void 0===n&&(n=[null,null]);for(var o=[],i=0;i<e.length;i++){var a=rN(e[i],t);if(a instanceof uk){var s=a.children;o.push(...s)}else o.push(a)}if(FO.tryCombineChars(o),!r)return o;var u=t;if(1===e.length){var l=e[0];"sizing"===l.type?u=t.havingSize(l.size):"styling"===l.type&&(u=t.havingStyle(YO[l.style]))}var c=qO([n[0]||"leftmost"],[],t),d=qO([n[1]||"rightmost"],[],t),f="root"===r;return ZO(o,(e,t)=>{var r=t.classes[0],n=e.classes[0];"mbin"===r&&WO.includes(n)?t.classes[0]="mord":"mbin"===n&&GO.includes(r)&&(e.classes[0]="mord")},{node:c},d,f),ZO(o,(e,t)=>{var r=eN(t),n=eN(e),o=r&&n?e.hasClass("mtight")?LO[r][n]:RO[r][n]:null;if(o)return FO.makeGlue(o,u)},{node:c},d,f),o},ZO=function e(t,r,n,o,i){o&&t.push(o);for(var a=0;a<t.length;a++){var s=t[a],u=JO(s);if(u)e(u.children,r,n,null,i);else{var l=!s.hasClass("mspace");if(l){var c=r(s,n.node);c&&(n.insertAfter?n.insertAfter(c):(t.unshift(c),a++))}l?n.node=s:i&&s.hasClass("newline")&&(n.node=qO(["leftmost"])),n.insertAfter=(e=>r=>{t.splice(e+1,0,r),a++})(a)}}o&&t.pop()},JO=function(e){return e instanceof uk||e instanceof Ok||e instanceof kk&&e.hasClass("enclosing")?e:null},QO=function e(t,r){var n=JO(t);if(n){var o=n.children;if(o.length){if("right"===r)return e(o[o.length-1],"right");if("left"===r)return e(o[0],"left")}}return t},eN=function(e,t){return e?(t&&(e=QO(e,t)),KO[e.classes[0]]||null):null},tN=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return qO(t.concat(r))},rN=function(e,t,r){if(!e)return qO();if(zO[e.type]){var n=zO[e.type](e,t);if(r&&t.size!==r.size){n=qO(t.sizingClasses(r),[n],t);var o=t.sizeMultiplier/r.sizeMultiplier;n.height*=o,n.depth*=o}return n}throw new zT("Got group of unknown type: '"+e.type+"'")};function nN(e,t){var r=qO(["base"],e,t),n=qO(["strut"]);return n.style.height=xk(r.height+r.depth),r.depth&&(n.style.verticalAlign=xk(-r.depth)),r.children.unshift(n),r}function oN(e,t){var r=null;1===e.length&&"tag"===e[0].type&&(r=e[0].tag,e=e[0].body);var n,o=XO(e,t,"root");2===o.length&&o[1].hasClass("tag")&&(n=o.pop());for(var i,a=[],s=[],u=0;u<o.length;u++)if(s.push(o[u]),o[u].hasClass("mbin")||o[u].hasClass("mrel")||o[u].hasClass("allowbreak")){for(var l=!1;u<o.length-1&&o[u+1].hasClass("mspace")&&!o[u+1].hasClass("newline");)u++,s.push(o[u]),o[u].hasClass("nobreak")&&(l=!0);l||(a.push(nN(s,t)),s=[])}else o[u].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(nN(s,t)),s=[]),a.push(o[u]));s.length>0&&a.push(nN(s,t)),r?((i=nN(XO(r,t,!0))).classes=["tag"],a.push(i)):n&&a.push(n);var c=qO(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),i){var d=i.children[0];d.style.height=xk(c.height+c.depth),c.depth&&(d.style.verticalAlign=xk(-c.depth))}return c}function iN(e){return new uk(e)}class aN{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Sk(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof sN&&this.children[r+1]instanceof sN){for(var n=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof sN;)n+=this.children[++r].toText();e.appendChild(new sN(n).toNode())}else e.appendChild(this.children[r].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=VT.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+VT.escape(Sk(this.classes))+'"'),e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</"+this.type+">"}toText(){return this.children.map(e=>e.toText()).join("")}}class sN{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return VT.escape(this.toText())}toText(){return this.text}}var uN={MathNode:aN,TextNode:sN,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?" ":e>=-.05556&&e<=-.05555?" ":e>=-.1667&&e<=-.1666?" ":e>=-.2223&&e<=-.2222?" ":e>=-.2778&&e<=-.2777?" ":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",xk(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+xk(this.width)+'"/>'}toText(){return this.character?this.character:" "}},newDocumentFragment:iN},lN=function(e,t,r){return!zk[t][e]||!zk[t][e].replace||55349===e.charCodeAt(0)||rO.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6))||(e=zk[t][e].replace),new uN.TextNode(e)},cN=function(e){return 1===e.length?e[0]:new uN.MathNode("mrow",e)},dN=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var n=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathsfit"===r)return"sans-serif-italic";if("mathfrak"===r)return"fraktur";if("mathscr"===r||"mathcal"===r)return"script";if("mathsf"===r)return"sans-serif";if("mathtt"===r)return"monospace";var o=e.text;return["\\imath","\\jmath"].includes(o)?null:(zk[n][o]&&zk[n][o].replace&&(o=zk[n][o].replace),fk(o,FO.fontMap[r].fontName,n)?FO.fontMap[r].variant:null)};function fN(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof sN&&"."===t.text}if("mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")){var r=e.children[0];return r instanceof sN&&","===r.text}return!1}var hN=function(e,t,r){if(1===e.length){var n=gN(e[0],t);return r&&n instanceof aN&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var o,i=[],a=0;a<e.length;a++){var s=gN(e[a],t);if(s instanceof aN&&o instanceof aN){if("mtext"===s.type&&"mtext"===o.type&&s.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...s.children);continue}if("mn"===s.type&&"mn"===o.type){o.children.push(...s.children);continue}if(fN(s)&&"mn"===o.type){o.children.push(...s.children);continue}if("mn"===s.type&&fN(o))s.children=[...o.children,...s.children],i.pop();else if(("msup"===s.type||"msub"===s.type)&&s.children.length>=1&&("mn"===o.type||fN(o))){var u=s.children[0];u instanceof aN&&"mn"===u.type&&(u.children=[...o.children,...u.children],i.pop())}else if("mi"===o.type&&1===o.children.length){var l=o.children[0];if(l instanceof sN&&"̸"===l.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var c=s.children[0];c instanceof sN&&c.text.length>0&&(c.text=c.text.slice(0,1)+"̸"+c.text.slice(1),i.pop())}}}i.push(s),o=s}return i},pN=function(e,t,r){return cN(hN(e,t,r))},gN=function(e,t){if(!e)return new uN.MathNode("mrow");if(jO[e.type])return jO[e.type](e,t);throw new zT("Got group of unknown type: '"+e.type+"'")};function mN(e,t,r,n,o){var i,a=hN(e,r);i=1===a.length&&a[0]instanceof aN&&["mrow","mtable"].includes(a[0].type)?a[0]:new uN.MathNode("mrow",a);var s=new uN.MathNode("annotation",[new uN.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var u=new uN.MathNode("semantics",[i,s]),l=new uN.MathNode("math",[u]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&l.setAttribute("display","block");var c=o?"katex":"katex-mathml";return FO.makeSpan([c],[l])}var vN=function(e){return new vk({style:e.displayMode?rk.DISPLAY:rk.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},yN=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=FO.makeSpan(r,[e])}return e},bN={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},wN={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},EN=function(e,t,r,n,o){var i,a=e.height+e.depth+r+n;if(/fbox|color|angl/.test(t)){if(i=FO.makeSpan(["stretchy",t],[],o),"fbox"===t){var s=o.color&&o.getColor();s&&(i.style.borderColor=s)}}else{var u=[];/^[bx]cancel$/.test(t)&&u.push(new Pk({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&u.push(new Pk({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var l=new Mk(u,{width:"100%",height:xk(a)});i=FO.makeSvgSpan([],[l],o)}return i.height=a,i.style.height=xk(a),i},xN=function(e){var t=new uN.MathNode("mo",[new uN.TextNode(bN[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},SN=function(e,t){var{span:r,minWidth:n,height:o}=function(){var r=4e5,n=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(n)){var o,i,a,s="ordgroup"===(h=e.base).type?h.body.length:1;if(s>5)"widehat"===n||"widecheck"===n?(o=420,r=2364,a=.42,i=n+"4"):(o=312,r=2340,a=.34,i="tilde4");else{var u=[1,1,2,2,3,3][s];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][u],o=[0,239,300,360,420][u],a=[0,.24,.3,.3,.36,.42][u],i=n+u):(r=[0,600,1033,2339,2340][u],o=[0,260,286,306,312][u],a=[0,.26,.286,.3,.306,.34][u],i="tilde"+u)}var l=new Ik(i),c=new Mk([l],{width:"100%",height:xk(a),viewBox:"0 0 "+r+" "+o,preserveAspectRatio:"none"});return{span:FO.makeSvgSpan([],[c],t),minWidth:0,height:a}}var d,f,h,p=[],g=wN[n],[m,v,y]=g,b=y/1e3,w=m.length;if(1===w)d=["hide-tail"],f=[g[3]];else if(2===w)d=["halfarrow-left","halfarrow-right"],f=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");d=["brace-left","brace-center","brace-right"],f=["xMinYMin","xMidYMin","xMaxYMin"]}for(var E=0;E<w;E++){var x=new Ik(m[E]),S=new Mk([x],{width:"400em",height:xk(b),viewBox:"0 0 "+r+" "+y,preserveAspectRatio:f[E]+" slice"}),C=FO.makeSvgSpan([d[E]],[S],t);if(1===w)return{span:C,minWidth:v,height:b};C.style.height=xk(b),p.push(C)}return{span:FO.makeSpan(["stretchy"],p,t),minWidth:v,height:b}}();return r.height=o,r.style.height=xk(o),n>0&&(r.style.minWidth=xk(n)),r};function CN(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function AN(e){var t=DN(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function DN(e){return e&&("atom"===e.type||_k.hasOwnProperty(e.type))?e:null}var TN=(e,t)=>{var r,n,o;e&&"supsub"===e.type?(r=(n=CN(e.base,"accent")).base,e.base=r,o=function(e){if(e instanceof kk)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(rN(e,t)),e.base=n):r=(n=CN(e,"accent")).base;var i=rN(r,t.havingCrampedStyle()),a=0;if(n.isShifty&&VT.isCharacterBox(r)){var s=VT.getBaseElem(r);a=Rk(rN(s,t.havingCrampedStyle())).skew}var u,l="\\c"===n.label,c=l?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(n.isStretchy)u=SN(n,t),u=FO.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:u,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+xk(2*a)+")",marginLeft:xk(2*a)}:void 0}]},t);else{var d,f;"\\vec"===n.label?(d=FO.staticSvg("vec",t),f=FO.svgData.vec[1]):((d=Rk(d=FO.makeOrd({mode:n.mode,text:n.label},t,"textord"))).italic=0,f=d.width,l&&(c+=d.depth)),u=FO.makeSpan(["accent-body"],[d]);var h="\\textcircled"===n.label;h&&(u.classes.push("accent-full"),c=i.height);var p=a;h||(p-=f/2),u.style.left=xk(p),"\\textcircled"===n.label&&(u.style.top=".2em"),u=FO.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-c},{type:"elem",elem:u}]},t)}var g=FO.makeSpan(["mord","accent"],[u],t);return o?(o.children[0]=g,o.height=Math.max(g.height,o.height),o.classes[0]="mord",o):g},kN=(e,t)=>{var r=e.isStretchy?xN(e.label):new uN.MathNode("mo",[lN(e.label,e.mode)]),n=new uN.MathNode("mover",[gN(e.base,t),r]);return n.setAttribute("accent","true"),n},ON=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));HO({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=UO(t[0]),n=!ON.test(e.funcName),o=!n||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:o,base:r}},htmlBuilder:TN,mathmlBuilder:kN}),HO({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return"math"===n&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:TN,mathmlBuilder:kN}),HO({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:o}},htmlBuilder:(e,t)=>{var r=rN(e.base,t),n=SN(e,t),o="\\utilde"===e.label?.12:0,i=FO.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:r}]},t);return FO.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=xN(e.label),n=new uN.MathNode("munder",[gN(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var NN=e=>{var t=new uN.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};HO({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:o}=e;return{type:"xArrow",mode:n.mode,label:o,body:t[0],below:r[0]}},htmlBuilder(e,t){var r,n=t.style,o=t.havingStyle(n.sup()),i=FO.wrapFragment(rN(e.body,o,t),t),a="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(a+"-arrow-pad"),e.below&&(o=t.havingStyle(n.sub()),(r=FO.wrapFragment(rN(e.below,o,t),t)).classes.push(a+"-arrow-pad"));var s,u=SN(e,t),l=-t.fontMetrics().axisHeight+.5*u.height,c=-t.fontMetrics().axisHeight-.5*u.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(c-=i.depth),r){var d=-t.fontMetrics().axisHeight+r.height+.5*u.height+.111;s=FO.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:u,shift:l},{type:"elem",elem:r,shift:d}]},t)}else s=FO.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:u,shift:l}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),FO.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){var r,n=xN(e.label);if(n.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var o=NN(gN(e.body,t));if(e.below){var i=NN(gN(e.below,t));r=new uN.MathNode("munderover",[n,i,o])}else r=new uN.MathNode("mover",[n,o])}else if(e.below){var a=NN(gN(e.below,t));r=new uN.MathNode("munder",[n,a])}else r=NN(),r=new uN.MathNode("mover",[n,r]);return r}});var BN=FO.makeSpan;function FN(e,t){var r=XO(e.body,t,!0);return BN([e.mclass],r,t)}function MN(e,t){var r,n=hN(e.body,t);return"minner"===e.mclass?r=new uN.MathNode("mpadded",n):"mord"===e.mclass?e.isCharacterBox?(r=n[0]).type="mi":r=new uN.MathNode("mi",n):(e.isCharacterBox?(r=n[0]).type="mo":r=new uN.MathNode("mo",n),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}HO({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,o=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:VO(o),isCharacterBox:VT.isCharacterBox(o)}},htmlBuilder:FN,mathmlBuilder:MN});var IN=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};HO({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:IN(t[0]),body:VO(t[1]),isCharacterBox:VT.isCharacterBox(t[1])}}}),HO({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var r,{parser:n,funcName:o}=e,i=t[1],a=t[0];r="\\stackrel"!==o?IN(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==o,body:VO(i)},u={type:"supsub",mode:a.mode,base:s,sup:"\\underset"===o?null:a,sub:"\\underset"===o?a:null};return{type:"mclass",mode:n.mode,mclass:r,body:[u],isCharacterBox:VT.isCharacterBox(u)}},htmlBuilder:FN,mathmlBuilder:MN}),HO({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:IN(t[0]),body:VO(t[0])}},htmlBuilder(e,t){var r=XO(e.body,t,!0),n=FO.makeSpan([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=hN(e.body,t),n=new uN.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var PN={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},RN=()=>({type:"styling",body:[],mode:"math",style:"display"}),LN=e=>"textord"===e.type&&"@"===e.text,_N=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;function zN(e,t,r){var n=PN[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var o={type:"atom",text:n,mode:"math",family:"rel"},i={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[o],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[i],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}HO({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=FO.wrapFragment(rN(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=xk(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new uN.MathNode("mrow",[gN(e.label,t)]);return(r=new uN.MathNode("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new uN.MathNode("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),HO({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=FO.wrapFragment(rN(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:(e,t)=>new uN.MathNode("mrow",[gN(e.fragment,t)])}),HO({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=CN(t[0],"ordgroup").body,o="",i=0;i<n.length;i++){o+=CN(n[i],"textord").text}var a,s=parseInt(o);if(isNaN(s))throw new zT("\\@char has non-numeric argument "+o);if(s<0||s>=1114111)throw new zT("\\@char with invalid code point "+o);return s<=65535?a=String.fromCharCode(s):(s-=65536,a=String.fromCharCode(55296+(s>>10),56320+(1023&s))),{type:"textord",mode:r.mode,text:a}}});var jN=(e,t)=>{var r=XO(e.body,t.withColor(e.color),!1);return FO.makeFragment(r)},HN=(e,t)=>{var r=hN(e.body,t.withColor(e.color)),n=new uN.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};HO({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=CN(t[0],"color-token").color,o=t[1];return{type:"color",mode:r.mode,color:n,body:VO(o)}},htmlBuilder:jN,mathmlBuilder:HN}),HO({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,o=CN(t[0],"color-token").color;r.gullet.macros.set("\\current@color",o);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:o,body:i}},htmlBuilder:jN,mathmlBuilder:HN}),HO({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,o="["===n.gullet.future().text?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:o&&CN(o,"size").value}},htmlBuilder(e,t){var r=FO.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=xk(Ek(e.size,t)))),r},mathmlBuilder(e,t){var r=new uN.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",xk(Ek(e.size,t)))),r}});var $N={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},UN=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new zT("Expected a control sequence",e);return t},VN=(e,t,r,n)=>{var o=e.gullet.macros.get(r.text);null==o&&(r.noexpand=!0,o={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,o,n)};HO({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if($N[n.text])return"\\global"!==r&&"\\\\globallong"!==r||(n.text=$N[n.text]),CN(t.parseFunction(),"internal");throw new zT("Invalid token after macro prefix",n)}}),HO({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),o=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new zT("Expected a control sequence",n);for(var i,a=0,s=[[]];"{"!==t.gullet.future().text;)if("#"===(n=t.gullet.popToken()).text){if("{"===t.gullet.future().text){i=t.gullet.future(),s[a].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new zT('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new zT('Argument number "'+n.text+'" out of order');a++,s.push([])}else{if("EOF"===n.text)throw new zT("Expected a macro definition");s[a].push(n.text)}var{tokens:u}=t.gullet.consumeArg();return i&&u.unshift(i),"\\edef"!==r&&"\\xdef"!==r||(u=t.gullet.expandTokens(u)).reverse(),t.gullet.macros.set(o,{tokens:u,numArgs:a,delimiters:s},r===$N[r]),{type:"internal",mode:t.mode}}}),HO({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=UN(t.gullet.popToken());t.gullet.consumeSpaces();var o=(e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t})(t);return VN(t,n,o,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),HO({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=UN(t.gullet.popToken()),o=t.gullet.popToken(),i=t.gullet.popToken();return VN(t,n,i,"\\\\globalfuture"===r),t.gullet.pushToken(i),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var qN=function(e,t,r){var n=fk(zk.math[e]&&zk.math[e].replace||e,t,r);if(!n)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return n},GN=function(e,t,r,n){var o=r.havingBaseStyle(t),i=FO.makeSpan(n.concat(o.sizingClasses(r)),[e],r),a=o.sizeMultiplier/r.sizeMultiplier;return i.height*=a,i.depth*=a,i.maxFontSize=o.sizeMultiplier,i},WN=function(e,t,r){var n=t.havingBaseStyle(r),o=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=xk(o),e.height-=o,e.depth+=o},YN=function(e,t,r,n,o,i){var a=function(e,t,r,n){return FO.makeSymbol(e,"Size"+t+"-Regular",r,n)}(e,t,o,n),s=GN(FO.makeSpan(["delimsizing","size"+t],[a],n),rk.TEXT,n,i);return r&&WN(s,n,rk.TEXT),s},KN=function(e,t,r){var n;return n="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:FO.makeSpan(["delimsizinginner",n],[FO.makeSpan([],[FO.makeSymbol(e,t,r)])])}},XN=function(e,t,r){var n=lk["Size4-Regular"][e.charCodeAt(0)]?lk["Size4-Regular"][e.charCodeAt(0)][4]:lk["Size1-Regular"][e.charCodeAt(0)][4],o=new Ik("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),i=new Mk([o],{width:xk(n),height:xk(t),style:"width:"+xk(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=FO.makeSvgSpan([],[i],r);return a.height=t,a.style.height=xk(t),a.style.width=xk(n),{type:"elem",elem:a}},ZN={type:"kern",size:-.008},JN=["|","\\lvert","\\rvert","\\vert"],QN=["\\|","\\lVert","\\rVert","\\Vert"],eB=function(e,t,r,n,o,i){var a,s,u,l,c="",d=0;a=u=l=e,s=null;var f="Size1-Regular";"\\uparrow"===e?u=l="⏐":"\\Uparrow"===e?u=l="‖":"\\downarrow"===e?a=u="⏐":"\\Downarrow"===e?a=u="‖":"\\updownarrow"===e?(a="\\uparrow",u="⏐",l="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",u="‖",l="\\Downarrow"):JN.includes(e)?(u="∣",c="vert",d=333):QN.includes(e)?(u="∥",c="doublevert",d=556):"["===e||"\\lbrack"===e?(a="⎡",u="⎢",l="⎣",f="Size4-Regular",c="lbrack",d=667):"]"===e||"\\rbrack"===e?(a="⎤",u="⎥",l="⎦",f="Size4-Regular",c="rbrack",d=667):"\\lfloor"===e||"⌊"===e?(u=a="⎢",l="⎣",f="Size4-Regular",c="lfloor",d=667):"\\lceil"===e||"⌈"===e?(a="⎡",u=l="⎢",f="Size4-Regular",c="lceil",d=667):"\\rfloor"===e||"⌋"===e?(u=a="⎥",l="⎦",f="Size4-Regular",c="rfloor",d=667):"\\rceil"===e||"⌉"===e?(a="⎤",u=l="⎥",f="Size4-Regular",c="rceil",d=667):"("===e||"\\lparen"===e?(a="⎛",u="⎜",l="⎝",f="Size4-Regular",c="lparen",d=875):")"===e||"\\rparen"===e?(a="⎞",u="⎟",l="⎠",f="Size4-Regular",c="rparen",d=875):"\\{"===e||"\\lbrace"===e?(a="⎧",s="⎨",l="⎩",u="⎪",f="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="⎫",s="⎬",l="⎭",u="⎪",f="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(a="⎧",l="⎩",u="⎪",f="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(a="⎫",l="⎭",u="⎪",f="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(a="⎧",l="⎭",u="⎪",f="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(a="⎫",l="⎩",u="⎪",f="Size4-Regular");var h=qN(a,f,o),p=h.height+h.depth,g=qN(u,f,o),m=g.height+g.depth,v=qN(l,f,o),y=v.height+v.depth,b=0,w=1;if(null!==s){var E=qN(s,f,o);b=E.height+E.depth,w=2}var x=p+y+b,S=x+Math.max(0,Math.ceil((t-x)/(w*m)))*w*m,C=n.fontMetrics().axisHeight;r&&(C*=n.sizeMultiplier);var A=S/2-C,D=[];if(c.length>0){var T=S-p-y,k=Math.round(1e3*S),O=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(c,Math.round(1e3*T)),N=new Ik(c,O),B=(d/1e3).toFixed(3)+"em",F=(k/1e3).toFixed(3)+"em",M=new Mk([N],{width:B,height:F,viewBox:"0 0 "+d+" "+k}),I=FO.makeSvgSpan([],[M],n);I.height=k/1e3,I.style.width=B,I.style.height=F,D.push({type:"elem",elem:I})}else{if(D.push(KN(l,f,o)),D.push(ZN),null===s){var P=S-p-y+.016;D.push(XN(u,P,n))}else{var R=(S-p-y-b)/2+.016;D.push(XN(u,R,n)),D.push(ZN),D.push(KN(s,f,o)),D.push(ZN),D.push(XN(u,R,n))}D.push(ZN),D.push(KN(a,f,o))}var L=n.havingBaseStyle(rk.TEXT),_=FO.makeVList({positionType:"bottom",positionData:A,children:D},L);return GN(FO.makeSpan(["delimsizing","mult"],[_],L),rk.TEXT,n,i)},tB=.08,rB=function(e,t,r,n,o){var i=function(e,t,r){t*=1e3;var n="";switch(e){case"sqrtMain":n=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,ak);break;case"sqrtSize1":n=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,ak);break;case"sqrtSize2":n=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,ak);break;case"sqrtSize3":n=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,ak);break;case"sqrtSize4":n=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,ak);break;case"sqrtTall":n=function(e,t,r){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(r-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,ak,r)}return n}(e,n,r),a=new Ik(e,i),s=new Mk([a],{width:"400em",height:xk(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return FO.makeSvgSpan(["hide-tail"],[s],o)},nB=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],oB=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],iB=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],aB=[0,1.2,1.8,2.4,3],sB=[{type:"small",style:rk.SCRIPTSCRIPT},{type:"small",style:rk.SCRIPT},{type:"small",style:rk.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],uB=[{type:"small",style:rk.SCRIPTSCRIPT},{type:"small",style:rk.SCRIPT},{type:"small",style:rk.TEXT},{type:"stack"}],lB=[{type:"small",style:rk.SCRIPTSCRIPT},{type:"small",style:rk.SCRIPT},{type:"small",style:rk.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],cB=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},dB=function(e,t,r,n){for(var o=Math.min(2,3-n.style.size);o<r.length&&"stack"!==r[o].type;o++){var i=qN(e,cB(r[o]),"math"),a=i.height+i.depth;if("small"===r[o].type&&(a*=n.havingBaseStyle(r[o].style).sizeMultiplier),a>t)return r[o]}return r[r.length-1]},fB=function(e,t,r,n,o,i){var a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=iB.includes(e)?sB:nB.includes(e)?lB:uB;var s=dB(e,t,a,n);return"small"===s.type?function(e,t,r,n,o,i){var a=FO.makeSymbol(e,"Main-Regular",o,n),s=GN(a,t,n,i);return r&&WN(s,n,t),s}(e,s.style,r,n,o,i):"large"===s.type?YN(e,s.size,r,n,o,i):eB(e,t,r,n,o,i)},hB={sqrtImage:function(e,t){var r,n,o=t.havingBaseSizing(),i=dB("\\surd",e*o.sizeMultiplier,lB,o),a=o.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),u=0,l=0,c=0;return"small"===i.type?(e<1?a=1:e<1.4&&(a=.7),l=(1+s)/a,(r=rB("sqrtMain",u=(1+s+tB)/a,c=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",n=.833/a):"large"===i.type?(c=1080*aB[i.size],l=(aB[i.size]+s)/a,u=(aB[i.size]+s+tB)/a,(r=rB("sqrtSize"+i.size,u,c,s,t)).style.minWidth="1.02em",n=1/a):(u=e+s+tB,l=e+s,c=Math.floor(1e3*e+s)+80,(r=rB("sqrtTall",u,c,s,t)).style.minWidth="0.742em",n=1.056),r.height=l,r.style.height=xk(u),{span:r,advanceWidth:n,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*a}},sizedDelim:function(e,t,r,n,o){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),nB.includes(e)||iB.includes(e))return YN(e,t,!1,r,n,o);if(oB.includes(e))return eB(e,aB[t],!1,r,n,o);throw new zT("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:aB,customSizedDelim:fB,leftRightDelim:function(e,t,r,n,o,i){var a=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,u=Math.max(t-a,r+a),l=Math.max(u/500*901,2*u-s);return fB(e,l,!0,n,o,i)}},pB={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},gB=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function mB(e,t){var r=DN(e);if(r&&gB.includes(r.text))return r;throw new zT(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function vB(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}HO({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=mB(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:pB[e.funcName].size,mclass:pB[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?FO.makeSpan([e.mclass]):hB.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(lN(e.delim,e.mode));var r=new uN.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=xk(hB.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}}),HO({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new zT("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:mB(t[0],e).text,color:r}}}),HO({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=mB(t[0],e),n=e.parser;++n.leftrightDepth;var o=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=CN(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:o,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{vB(e);for(var r,n,o=XO(e.body,t,!0,["mopen","mclose"]),i=0,a=0,s=!1,u=0;u<o.length;u++)o[u].isMiddle?s=!0:(i=Math.max(o[u].height,i),a=Math.max(o[u].depth,a));if(i*=t.sizeMultiplier,a*=t.sizeMultiplier,r="."===e.left?tN(t,["mopen"]):hB.leftRightDelim(e.left,i,a,t,e.mode,["mopen"]),o.unshift(r),s)for(var l=1;l<o.length;l++){var c=o[l].isMiddle;c&&(o[l]=hB.leftRightDelim(c.delim,i,a,c.options,e.mode,[]))}if("."===e.right)n=tN(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;n=hB.leftRightDelim(e.right,i,a,d,e.mode,["mclose"])}return o.push(n),FO.makeSpan(["minner"],o,t)},mathmlBuilder:(e,t)=>{vB(e);var r=hN(e.body,t);if("."!==e.left){var n=new uN.MathNode("mo",[lN(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if("."!==e.right){var o=new uN.MathNode("mo",[lN(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),r.push(o)}return cN(r)}}),HO({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=mB(t[0],e);if(!e.parser.leftrightDepth)throw new zT("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if("."===e.delim)r=tN(t,[]);else{r=hB.sizedDelim(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r="\\vert"===e.delim||"|"===e.delim?lN("|","text"):lN(e.delim,e.mode),n=new uN.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var yB=(e,t)=>{var r,n,o=FO.wrapFragment(rN(e.body,t),t),i=e.label.slice(1),a=t.sizeMultiplier,s=0,u=VT.isCharacterBox(e.body);if("sout"===i)(r=FO.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/a,s=-.5*t.fontMetrics().xHeight;else if("phase"===i){var l=Ek({number:.6,unit:"pt"},t),c=Ek({number:.35,unit:"ex"},t);a/=t.havingBaseSizing().sizeMultiplier;var d=o.height+o.depth+l+c;o.style.paddingLeft=xk(d/2+l);var f=Math.floor(1e3*d*a),h=function(e){return"M400000 "+e+" H0 L"+e/2+" 0 l65 45 L145 "+(e-80)+" H400000z"}(f),p=new Mk([new Ik("phase",h)],{width:"400em",height:xk(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});(r=FO.makeSvgSpan(["hide-tail"],[p],t)).style.height=xk(d),s=o.depth+l+c}else{/cancel/.test(i)?u||o.classes.push("cancel-pad"):"angl"===i?o.classes.push("anglpad"):o.classes.push("boxpad");var g=0,m=0,v=0;/box/.test(i)?(v=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),m=g=t.fontMetrics().fboxsep+("colorbox"===i?0:v)):"angl"===i?(g=4*(v=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),m=Math.max(0,.25-o.depth)):m=g=u?.2:0,r=EN(o,i,g,m,t),/fbox|boxed|fcolorbox/.test(i)?(r.style.borderStyle="solid",r.style.borderWidth=xk(v)):"angl"===i&&.049!==v&&(r.style.borderTopWidth=xk(v),r.style.borderRightWidth=xk(v)),s=o.depth+m,e.backgroundColor&&(r.style.backgroundColor=e.backgroundColor,e.borderColor&&(r.style.borderColor=e.borderColor))}if(e.backgroundColor)n=FO.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:s},{type:"elem",elem:o,shift:0}]},t);else{var y=/cancel|phase/.test(i)?["svg-align"]:[];n=FO.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:r,shift:s,wrapperClasses:y}]},t)}return/cancel/.test(i)&&(n.height=o.height,n.depth=o.depth),/cancel/.test(i)&&!u?FO.makeSpan(["mord","cancel-lap"],[n],t):FO.makeSpan(["mord"],[n],t)},bB=(e,t)=>{var r=0,n=new uN.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[gN(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};HO({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:o}=e,i=CN(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:n.mode,label:o,backgroundColor:i,body:a}},htmlBuilder:yB,mathmlBuilder:bB}),HO({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:o}=e,i=CN(t[0],"color-token").color,a=CN(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:o,backgroundColor:a,borderColor:i,body:s}},htmlBuilder:yB,mathmlBuilder:bB}),HO({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),HO({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,o=t[0];return{type:"enclose",mode:r.mode,label:n,body:o}},htmlBuilder:yB,mathmlBuilder:bB}),HO({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var wB={};function EB(e){for(var{type:t,names:r,props:n,handler:o,htmlBuilder:i,mathmlBuilder:a}=e,s={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},u=0;u<r.length;++u)wB[r[u]]=s;i&&(zO[t]=i),a&&(jO[t]=a)}var xB={};function SB(e,t){xB[e]=t}function CB(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for("\\relax"===r&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);"\\hline"===r||"\\hdashline"===r;)e.consume(),t.push("\\hdashline"===r),e.consumeSpaces(),r=e.fetch().text;return t}var AB=e=>{if(!e.parser.settings.displayMode)throw new zT("{"+e.envName+"} can be used only in display mode.")};function DB(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function TB(e,t,r){var{hskipBeforeAndAfter:n,addJot:o,cols:i,arraystretch:a,colSeparationType:s,autoTag:u,singleRow:l,emptySingleRow:c,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!a){var h=e.gullet.expandMacroAsText("\\arraystretch");if(null==h)a=1;else if(!(a=parseFloat(h))||a<0)throw new zT("Invalid \\arraystretch: "+h)}e.gullet.beginGroup();var p=[],g=[p],m=[],v=[],y=null!=u?[]:void 0;function b(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function w(){y&&(e.gullet.macros.get("\\df@tag")?(y.push(e.subparse([new _T("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):y.push(Boolean(u)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(b(),v.push(CB(e));;){var E=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),E={type:"ordgroup",mode:e.mode,body:E},r&&(E={type:"styling",mode:e.mode,style:r,body:[E]}),p.push(E);var x=e.fetch().text;if("&"===x){if(d&&p.length===d){if(l||s)throw new zT("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===x){w(),1===p.length&&"styling"===E.type&&0===E.body[0].body.length&&(g.length>1||!c)&&g.pop(),v.length<g.length+1&&v.push([]);break}if("\\\\"!==x)throw new zT("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var S=void 0;" "!==e.gullet.future().text&&(S=e.parseSizeGroup(!0)),m.push(S?S.value:null),w(),v.push(CB(e)),p=[],g.push(p),b()}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:o,arraystretch:a,body:g,cols:i,rowGaps:m,hskipBeforeAndAfter:n,hLinesBeforeRow:v,colSeparationType:s,tags:y,leqno:f}}function kB(e){return"d"===e.slice(0,1)?"display":"text"}var OB=function(e,t){var r,n,o=e.body.length,i=e.hLinesBeforeRow,a=0,s=new Array(o),u=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),c=1/t.fontMetrics().ptPerEm,d=5*c;e.colSeparationType&&"small"===e.colSeparationType&&(d=t.havingStyle(rk.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var f="CD"===e.colSeparationType?Ek({number:3,unit:"ex"},t):12*c,h=3*c,p=e.arraystretch*f,g=.7*p,m=.3*p,v=0;function y(e){for(var t=0;t<e.length;++t)t>0&&(v+=.25),u.push({pos:v,isDashed:e[t]})}for(y(i[0]),r=0;r<e.body.length;++r){var b=e.body[r],w=g,E=m;a<b.length&&(a=b.length);var x=new Array(b.length);for(n=0;n<b.length;++n){var S=rN(b[n],t);E<S.depth&&(E=S.depth),w<S.height&&(w=S.height),x[n]=S}var C=e.rowGaps[r],A=0;C&&(A=Ek(C,t))>0&&(E<(A+=m)&&(E=A),A=0),e.addJot&&(E+=h),x.height=w,x.depth=E,v+=w,x.pos=v,v+=E+A,s[r]=x,y(i[r+1])}var D,T,k=v/2+t.fontMetrics().axisHeight,O=e.cols||[],N=[],B=[];if(e.tags&&e.tags.some(e=>e))for(r=0;r<o;++r){var F=s[r],M=F.pos-k,I=e.tags[r],P=void 0;(P=!0===I?FO.makeSpan(["eqn-num"],[],t):!1===I?FO.makeSpan([],[],t):FO.makeSpan([],XO(I,t,!0),t)).depth=F.depth,P.height=F.height,B.push({type:"elem",elem:P,shift:M})}for(n=0,T=0;n<a||T<O.length;++n,++T){for(var R=O[T]||{},L=!0;"separator"===R.type;){if(L||((D=FO.makeSpan(["arraycolsep"],[])).style.width=xk(t.fontMetrics().doubleRuleSep),N.push(D)),"|"!==R.separator&&":"!==R.separator)throw new zT("Invalid separator type: "+R.separator);var _="|"===R.separator?"solid":"dashed",z=FO.makeSpan(["vertical-separator"],[],t);z.style.height=xk(v),z.style.borderRightWidth=xk(l),z.style.borderRightStyle=_,z.style.margin="0 "+xk(-l/2);var j=v-k;j&&(z.style.verticalAlign=xk(-j)),N.push(z),R=O[++T]||{},L=!1}if(!(n>=a)){var H=void 0;(n>0||e.hskipBeforeAndAfter)&&0!==(H=VT.deflt(R.pregap,d))&&((D=FO.makeSpan(["arraycolsep"],[])).style.width=xk(H),N.push(D));var $=[];for(r=0;r<o;++r){var U=s[r],V=U[n];if(V){var q=U.pos-k;V.depth=U.depth,V.height=U.height,$.push({type:"elem",elem:V,shift:q})}}$=FO.makeVList({positionType:"individualShift",children:$},t),$=FO.makeSpan(["col-align-"+(R.align||"c")],[$]),N.push($),(n<a-1||e.hskipBeforeAndAfter)&&0!==(H=VT.deflt(R.postgap,d))&&((D=FO.makeSpan(["arraycolsep"],[])).style.width=xk(H),N.push(D))}}if(s=FO.makeSpan(["mtable"],N),u.length>0){for(var G=FO.makeLineSpan("hline",t,l),W=FO.makeLineSpan("hdashline",t,l),Y=[{type:"elem",elem:s,shift:0}];u.length>0;){var K=u.pop(),X=K.pos-k;K.isDashed?Y.push({type:"elem",elem:W,shift:X}):Y.push({type:"elem",elem:G,shift:X})}s=FO.makeVList({positionType:"individualShift",children:Y},t)}if(0===B.length)return FO.makeSpan(["mord"],[s],t);var Z=FO.makeVList({positionType:"individualShift",children:B},t);return Z=FO.makeSpan(["tag"],[Z],t),FO.makeFragment([s,Z])},NB={c:"center ",l:"left ",r:"right "},BB=function(e,t){for(var r=[],n=new uN.MathNode("mtd",[],["mtr-glue"]),o=new uN.MathNode("mtd",[],["mml-eqn-num"]),i=0;i<e.body.length;i++){for(var a=e.body[i],s=[],u=0;u<a.length;u++)s.push(new uN.MathNode("mtd",[gN(a[u],t)]));e.tags&&e.tags[i]&&(s.unshift(n),s.push(n),e.leqno?s.unshift(o):s.push(o)),r.push(new uN.MathNode("mtr",s))}var l=new uN.MathNode("mtable",r),c=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute("rowspacing",xk(c));var d="",f="";if(e.cols&&e.cols.length>0){var h=e.cols,p="",g=!1,m=0,v=h.length;"separator"===h[0].type&&(d+="top ",m=1),"separator"===h[h.length-1].type&&(d+="bottom ",v-=1);for(var y=m;y<v;y++)"align"===h[y].type?(f+=NB[h[y].align],g&&(p+="none "),g=!0):"separator"===h[y].type&&g&&(p+="|"===h[y].separator?"solid ":"dashed ",g=!1);l.setAttribute("columnalign",f.trim()),/[sd]/.test(p)&&l.setAttribute("columnlines",p.trim())}if("align"===e.colSeparationType){for(var b=e.cols||[],w="",E=1;E<b.length;E++)w+=E%2?"0em ":"1em ";l.setAttribute("columnspacing",w.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?l.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?l.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?l.setAttribute("columnspacing","0.5em"):l.setAttribute("columnspacing","1em");var x="",S=e.hLinesBeforeRow;d+=S[0].length>0?"left ":"",d+=S[S.length-1].length>0?"right ":"";for(var C=1;C<S.length-1;C++)x+=0===S[C].length?"none ":S[C][0]?"dashed ":"solid ";return/[sd]/.test(x)&&l.setAttribute("rowlines",x.trim()),""!==d&&(l=new uN.MathNode("menclose",[l])).setAttribute("notation",d.trim()),e.arraystretch&&e.arraystretch<1&&(l=new uN.MathNode("mstyle",[l])).setAttribute("scriptlevel","1"),l},FB=function(e,t){-1===e.envName.indexOf("ed")&&AB(e);var r,n=[],o=e.envName.indexOf("at")>-1?"alignat":"align",i="split"===e.envName,a=TB(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:DB(e.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,u={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var l="",c=0;c<t[0].body.length;c++){l+=CN(t[0].body[c],"textord").text}r=Number(l),s=2*r}var d=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var n=CN(e[t],"styling");CN(n.body[0],"ordgroup").body.unshift(u)}if(d)s<e.length&&(s=e.length);else{var o=e.length/2;if(r<o)throw new zT("Too many math in a row: expected "+r+", but got "+o,e[0])}});for(var f=0;f<s;++f){var h="r",p=0;f%2==1?h="l":f>0&&d&&(p=1),n[f]={type:"align",align:h,pregap:p,postgap:0}}return a.colSeparationType=d?"align":"alignat",a};EB({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=(DN(t[0])?[t[0]]:CN(t[0],"ordgroup").body).map(function(e){var t=AN(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new zT("Unknown column alignment: "+t,e)}),n={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return TB(e.parser,n,kB(e.envName))},htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var o=e.parser;if(o.consumeSpaces(),"["===o.fetch().text){if(o.consume(),o.consumeSpaces(),r=o.fetch().text,-1==="lcr".indexOf(r))throw new zT("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),n.cols=[{type:"align",align:r}]}}var i=TB(e.parser,n,kB(e.envName)),a=Math.max(0,...i.body.map(e=>e.length));return i.cols=new Array(a).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=TB(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=(DN(t[0])?[t[0]]:CN(t[0],"ordgroup").body).map(function(e){var t=AN(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new zT("Unknown column alignment: "+t,e)});if(r.length>1)throw new zT("{subarray} can contain only one column");var n={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((n=TB(e.parser,n,"script")).body.length>0&&n.body[0].length>1)throw new zT("{subarray} can contain only one column");return n},htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=TB(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},kB(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:FB,htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&AB(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:DB(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return TB(e.parser,t,"display")},htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:FB,htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){AB(e);var t={autoTag:DB(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return TB(e.parser,t,"display")},htmlBuilder:OB,mathmlBuilder:BB}),EB({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(AB(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if("&"!==r&&"\\\\"!==r){if("\\end"===r){0===t[t.length-1].length&&t.pop();break}throw new zT("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var n=[],o=[n],i=0;i<t.length;i++){for(var a=t[i],s=RN(),u=0;u<a.length;u++)if(LN(a[u])){n.push(s);var l=AN(a[u+=1]).text,c=new Array(2);if(c[0]={type:"ordgroup",mode:"math",body:[]},c[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(l)>-1);else{if(!("<>AV".indexOf(l)>-1))throw new zT('Expected one of "<>AV=|." after @',a[u]);for(var d=0;d<2;d++){for(var f=!0,h=u+1;h<a.length;h++){if(_N(a[h],l)){f=!1,u=h;break}if(LN(a[h]))throw new zT("Missing a "+l+" character to complete a CD arrow.",a[h]);c[d].body.push(a[h])}if(f)throw new zT("Missing a "+l+" character to complete a CD arrow.",a[u])}}var p={type:"styling",body:[zN(l,c,e)],mode:"math",style:"display"};n.push(p),s=RN()}else s.body.push(a[u]);i%2==0?n.push(s):n.shift(),n=[],o.push(n)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(o[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(o.length+1).fill([])}}(e.parser)),htmlBuilder:OB,mathmlBuilder:BB}),SB("\\nonumber","\\gdef\\@eqnsw{0}"),SB("\\notag","\\nonumber"),HO({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new zT(e.funcName+" valid only within array environment")}});var MB=wB;HO({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,o=t[0];if("ordgroup"!==o.type)throw new zT("Invalid environment name",o);for(var i="",a=0;a<o.body.length;++a)i+=CN(o.body[a],"textord").text;if("\\begin"===n){if(!MB.hasOwnProperty(i))throw new zT("No such environment: "+i,o);var s=MB[i],{args:u,optArgs:l}=r.parseArguments("\\begin{"+i+"}",s),c={mode:r.mode,envName:i,parser:r},d=s.handler(c,u,l);r.expect("\\end",!1);var f=r.nextToken,h=CN(r.parseFunction(),"environment");if(h.name!==i)throw new zT("Mismatch: \\begin{"+i+"} matched by \\end{"+h.name+"}",f);return d}return{type:"environment",mode:r.mode,name:i,nameGroup:o}}});var IB=(e,t)=>{var r=e.font,n=t.withFont(r);return rN(e.body,n)},PB=(e,t)=>{var r=e.font,n=t.withFont(r);return gN(e.body,n)},RB={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};HO({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=UO(t[0]),i=n;return i in RB&&(i=RB[i]),{type:"font",mode:r.mode,font:i.slice(1),body:o}},htmlBuilder:IB,mathmlBuilder:PB}),HO({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0],o=VT.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:IN(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:o}}}),HO({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:o}=e,{mode:i}=r,a=r.parseExpression(!0,o);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:a}}},htmlBuilder:IB,mathmlBuilder:PB});var LB=(e,t)=>{var r=t;return"display"===e?r=r.id>=rk.SCRIPT.id?r.text():rk.DISPLAY:"text"===e&&r.size===rk.DISPLAY.size?r=rk.TEXT:"script"===e?r=rk.SCRIPT:"scriptscript"===e&&(r=rk.SCRIPTSCRIPT),r},_B=(e,t)=>{var r,n=LB(e.size,t.style),o=n.fracNum(),i=n.fracDen();r=t.havingStyle(o);var a=rN(e.numer,r,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;a.height=a.height<s?s:a.height,a.depth=a.depth<u?u:a.depth}r=t.havingStyle(i);var l,c,d,f,h,p,g,m,v,y,b=rN(e.denom,r,t);if(e.hasBarLine?(e.barSize?(c=Ek(e.barSize,t),l=FO.makeLineSpan("frac-line",t,c)):l=FO.makeLineSpan("frac-line",t),c=l.height,d=l.height):(l=null,c=0,d=t.fontMetrics().defaultRuleThickness),n.size===rk.DISPLAY.size||"display"===e.size?(f=t.fontMetrics().num1,h=c>0?3*d:7*d,p=t.fontMetrics().denom1):(c>0?(f=t.fontMetrics().num2,h=d):(f=t.fontMetrics().num3,h=3*d),p=t.fontMetrics().denom2),l){var w=t.fontMetrics().axisHeight;f-a.depth-(w+.5*c)<h&&(f+=h-(f-a.depth-(w+.5*c))),w-.5*c-(b.height-p)<h&&(p+=h-(w-.5*c-(b.height-p)));var E=-(w-.5*c);g=FO.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:p},{type:"elem",elem:l,shift:E},{type:"elem",elem:a,shift:-f}]},t)}else{var x=f-a.depth-(b.height-p);x<h&&(f+=.5*(h-x),p+=.5*(h-x)),g=FO.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:p},{type:"elem",elem:a,shift:-f}]},t)}return r=t.havingStyle(n),g.height*=r.sizeMultiplier/t.sizeMultiplier,g.depth*=r.sizeMultiplier/t.sizeMultiplier,m=n.size===rk.DISPLAY.size?t.fontMetrics().delim1:n.size===rk.SCRIPTSCRIPT.size?t.havingStyle(rk.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,v=null==e.leftDelim?tN(t,["mopen"]):hB.customSizedDelim(e.leftDelim,m,!0,t.havingStyle(n),e.mode,["mopen"]),y=e.continued?FO.makeSpan([]):null==e.rightDelim?tN(t,["mclose"]):hB.customSizedDelim(e.rightDelim,m,!0,t.havingStyle(n),e.mode,["mclose"]),FO.makeSpan(["mord"].concat(r.sizingClasses(t)),[v,FO.makeSpan(["mfrac"],[g]),y],t)},zB=(e,t)=>{var r=new uN.MathNode("mfrac",[gN(e.numer,t),gN(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var n=Ek(e.barSize,t);r.setAttribute("linethickness",xk(n))}}else r.setAttribute("linethickness","0px");var o=LB(e.size,t.style);if(o.size!==t.style.size){r=new uN.MathNode("mstyle",[r]);var i=o.size===rk.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",i),r.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var a=[];if(null!=e.leftDelim){var s=new uN.MathNode("mo",[new uN.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(r),null!=e.rightDelim){var u=new uN.MathNode("mo",[new uN.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),a.push(u)}return cN(a)}return r};HO({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var r,{parser:n,funcName:o}=e,i=t[0],a=t[1],s=null,u=null,l="auto";switch(o){case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,s="(",u=")";break;case"\\\\bracefrac":r=!1,s="\\{",u="\\}";break;case"\\\\brackfrac":r=!1,s="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(o){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text"}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:r,leftDelim:s,rightDelim:u,size:l,barSize:null}},htmlBuilder:_B,mathmlBuilder:zB}),HO({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=t[0],i=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:o,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),HO({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:r,funcName:n,token:o}=e;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:o}}});var jB=["display","text","script","scriptscript"],HB=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};HO({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var r,{parser:n}=e,o=t[4],i=t[5],a=UO(t[0]),s="atom"===a.type&&"open"===a.family?HB(a.text):null,u=UO(t[1]),l="atom"===u.type&&"close"===u.family?HB(u.text):null,c=CN(t[2],"size"),d=null;r=!!c.isBlank||(d=c.value).number>0;var f="auto",h=t[3];if("ordgroup"===h.type){if(h.body.length>0){var p=CN(h.body[0],"textord");f=jB[Number(p.text)]}}else h=CN(h,"textord"),f=jB[Number(h.text)];return{type:"genfrac",mode:n.mode,numer:o,denom:i,continued:!1,hasBarLine:r,barSize:d,leftDelim:s,rightDelim:l,size:f}},htmlBuilder:_B,mathmlBuilder:zB}),HO({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:o}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:CN(t[0],"size").value,token:o}}}),HO({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=t[0],i=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(CN(t[1],"infix").size),a=t[2],s=i.number>0;return{type:"genfrac",mode:r.mode,numer:o,denom:a,continued:!1,hasBarLine:s,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:_B,mathmlBuilder:zB});var $B=(e,t)=>{var r,n,o=t.style;"supsub"===e.type?(r=e.sup?rN(e.sup,t.havingStyle(o.sup()),t):rN(e.sub,t.havingStyle(o.sub()),t),n=CN(e.base,"horizBrace")):n=CN(e,"horizBrace");var i,a=rN(n.base,t.havingBaseStyle(rk.DISPLAY)),s=SN(n,t);if(n.isOver?(i=FO.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=FO.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var u=FO.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t);i=n.isOver?FO.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:r}]},t):FO.makeVList({positionType:"bottom",positionData:u.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return FO.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t)};HO({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:$B,mathmlBuilder:(e,t)=>{var r=xN(e.label);return new uN.MathNode(e.isOver?"mover":"munder",[gN(e.base,t),r])}}),HO({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],o=CN(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:r.mode,href:o,body:VO(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=XO(e.body,t,!1);return FO.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=pN(e.body,t);return r instanceof aN||(r=new aN("mrow",[r])),r.setAttribute("href",e.href),r}}),HO({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=CN(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var o=[],i=0;i<n.length;i++){var a=n[i];"~"===a&&(a="\\textasciitilde"),o.push({type:"textord",mode:"text",text:a})}var s={type:"text",mode:r.mode,font:"\\texttt",body:o};return{type:"href",mode:r.mode,href:n,body:VO(s)}}}),HO({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:VO(t[0])}},htmlBuilder(e,t){var r=XO(e.body,t,!1);return FO.makeFragment(r)},mathmlBuilder:(e,t)=>new uN.MathNode("mrow",hN(e.body,t))}),HO({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var r,{parser:n,funcName:o,token:i}=e,a=CN(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var u={};switch(o){case"\\htmlClass":u.class=a,r={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,r={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,r={command:"\\htmlStyle",style:a};break;case"\\htmlData":for(var l=a.split(","),c=0;c<l.length;c++){var d=l[c].split("=");if(2!==d.length)throw new zT("Error parsing key-value for \\htmlData");u["data-"+d[0].trim()]=d[1].trim()}r={command:"\\htmlData",attributes:u};break;default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(r)?{type:"html",mode:n.mode,attributes:u,body:VO(s)}:n.formatUnsupportedCmd(o)},htmlBuilder:(e,t)=>{var r=XO(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var o=FO.makeSpan(n,r,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&o.setAttribute(i,e.attributes[i]);return o},mathmlBuilder:(e,t)=>pN(e.body,t)}),HO({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:VO(t[0]),mathml:VO(t[1])}},htmlBuilder:(e,t)=>{var r=XO(e.html,t,!1);return FO.makeFragment(r)},mathmlBuilder:(e,t)=>pN(e.mathml,t)});var UB=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new zT("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!wk(r))throw new zT("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};HO({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,o={number:0,unit:"em"},i={number:.9,unit:"em"},a={number:0,unit:"em"},s="";if(r[0])for(var u=CN(r[0],"raw").string.split(","),l=0;l<u.length;l++){var c=u[l].split("=");if(2===c.length){var d=c[1].trim();switch(c[0].trim()){case"alt":s=d;break;case"width":o=UB(d);break;case"height":i=UB(d);break;case"totalheight":a=UB(d);break;default:throw new zT("Invalid key: '"+c[0]+"' in \\includegraphics.")}}}var f=CN(t[0],"url").url;return""===s&&(s=(s=(s=f).replace(/^.*[\\/]/,"")).substring(0,s.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:f})?{type:"includegraphics",mode:n.mode,alt:s,width:o,height:i,totalheight:a,src:f}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Ek(e.height,t),n=0;e.totalheight.number>0&&(n=Ek(e.totalheight,t)-r);var o=0;e.width.number>0&&(o=Ek(e.width,t));var i={height:xk(r+n)};o>0&&(i.width=xk(o)),n>0&&(i.verticalAlign=xk(-n));var a=new Nk(e.src,e.alt,i);return a.height=r,a.depth=n,a},mathmlBuilder:(e,t)=>{var r=new uN.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=Ek(e.height,t),o=0;if(e.totalheight.number>0&&(o=Ek(e.totalheight,t)-n,r.setAttribute("valign",xk(-o))),r.setAttribute("height",xk(n+o)),e.width.number>0){var i=Ek(e.width,t);r.setAttribute("width",xk(i))}return r.setAttribute("src",e.src),r}}),HO({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,o=CN(t[0],"size");if(r.settings.strict){var i="m"===n[1],a="mu"===o.value.unit;i?(a||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+o.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):a&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:o.value}},htmlBuilder:(e,t)=>FO.makeGlue(e.dimension,t),mathmlBuilder(e,t){var r=Ek(e.dimension,t);return new uN.SpaceNode(r)}}),HO({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:o}},htmlBuilder:(e,t)=>{var r;"clap"===e.alignment?(r=FO.makeSpan([],[rN(e.body,t)]),r=FO.makeSpan(["inner"],[r],t)):r=FO.makeSpan(["inner"],[rN(e.body,t)]);var n=FO.makeSpan(["fix"],[]),o=FO.makeSpan([e.alignment],[r,n],t),i=FO.makeSpan(["strut"]);return i.style.height=xk(o.height+o.depth),o.depth&&(i.style.verticalAlign=xk(-o.depth)),o.children.unshift(i),o=FO.makeSpan(["thinbox"],[o],t),FO.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:(e,t)=>{var r=new uN.MathNode("mpadded",[gN(e.body,t)]);if("rlap"!==e.alignment){var n="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),HO({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,o=n.mode;n.switchMode("math");var i="\\("===r?"\\)":"$",a=n.parseExpression(!1,i);return n.expect(i),n.switchMode(o),{type:"styling",mode:n.mode,style:"text",body:a}}}),HO({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new zT("Mismatched "+e.funcName)}});var VB=(e,t)=>{switch(t.style.size){case rk.DISPLAY.size:return e.display;case rk.TEXT.size:return e.text;case rk.SCRIPT.size:return e.script;case rk.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};HO({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:VO(t[0]),text:VO(t[1]),script:VO(t[2]),scriptscript:VO(t[3])}},htmlBuilder:(e,t)=>{var r=VB(e,t),n=XO(r,t,!1);return FO.makeFragment(n)},mathmlBuilder:(e,t)=>{var r=VB(e,t);return pN(r,t)}});var qB=(e,t,r,n,o,i,a)=>{e=FO.makeSpan([],[e]);var s,u,l,c=r&&VT.isCharacterBox(r);if(t){var d=rN(t,n.havingStyle(o.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var f=rN(r,n.havingStyle(o.sub()),n);s={elem:f,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-f.height)}}if(u&&s){var h=n.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+a;l=FO.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:xk(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:xk(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(s){var p=e.height-a;l=FO.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:xk(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},n)}else{if(!u)return e;var g=e.depth+a;l=FO.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:xk(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}var m=[l];if(s&&0!==i&&!c){var v=FO.makeSpan(["mspace"],[],n);v.style.marginRight=xk(i),m.unshift(v)}return FO.makeSpan(["mop","op-limits"],m,n)},GB=["\\smallint"],WB=(e,t)=>{var r,n,o,i=!1;"supsub"===e.type?(r=e.sup,n=e.sub,o=CN(e.base,"op"),i=!0):o=CN(e,"op");var a,s=t.style,u=!1;if(s.size===rk.DISPLAY.size&&o.symbol&&!GB.includes(o.name)&&(u=!0),o.symbol){var l=u?"Size2-Regular":"Size1-Regular",c="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(c=o.name.slice(1),o.name="oiint"===c?"\\iint":"\\iiint"),a=FO.makeSymbol(o.name,l,"math",t,["mop","op-symbol",u?"large-op":"small-op"]),c.length>0){var d=a.italic,f=FO.staticSvg(c+"Size"+(u?"2":"1"),t);a=FO.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:f,shift:u?.08:0}]},t),o.name="\\"+c,a.classes.unshift("mop"),a.italic=d}}else if(o.body){var h=XO(o.body,t,!0);1===h.length&&h[0]instanceof Fk?(a=h[0]).classes[0]="mop":a=FO.makeSpan(["mop"],h,t)}else{for(var p=[],g=1;g<o.name.length;g++)p.push(FO.mathsym(o.name[g],o.mode,t));a=FO.makeSpan(["mop"],p,t)}var m=0,v=0;return(a instanceof Fk||"\\oiint"===o.name||"\\oiiint"===o.name)&&!o.suppressBaseShift&&(m=(a.height-a.depth)/2-t.fontMetrics().axisHeight,v=a.italic),i?qB(a,r,n,t,s,v,m):(m&&(a.style.position="relative",a.style.top=xk(m)),a)},YB=(e,t)=>{var r;if(e.symbol)r=new aN("mo",[lN(e.name,e.mode)]),GB.includes(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new aN("mo",hN(e.body,t));else{r=new aN("mi",[new sN(e.name.slice(1))]);var n=new aN("mo",[lN("","text")]);r=e.parentIsSupSub?new aN("mrow",[r,n]):iN([r,n])}return r},KB={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};HO({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=n;return 1===o.length&&(o=KB[o]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:WB,mathmlBuilder:YB}),HO({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:VO(n)}},htmlBuilder:WB,mathmlBuilder:YB});var XB={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};HO({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:WB,mathmlBuilder:YB}),HO({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:WB,mathmlBuilder:YB}),HO({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,n=r;return 1===n.length&&(n=XB[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:WB,mathmlBuilder:YB});var ZB=(e,t)=>{var r,n,o,i,a=!1;if("supsub"===e.type?(r=e.sup,n=e.sub,o=CN(e.base,"operatorname"),a=!0):o=CN(e,"operatorname"),o.body.length>0){for(var s=o.body.map(e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),u=XO(s,t.withFont("mathrm"),!0),l=0;l<u.length;l++){var c=u[l];c instanceof Fk&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=FO.makeSpan(["mop"],u,t)}else i=FO.makeSpan(["mop"],[],t);return a?qB(i,r,n,t,t.style,0,0):i};function JB(e,t,r){for(var n=XO(e,t,!1),o=t.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var a=n[i].classes.indexOf("sizing");a<0?Array.prototype.push.apply(n[i].classes,t.sizingClasses(r)):n[i].classes[a+1]==="reset-size"+t.size&&(n[i].classes[a+1]="reset-size"+r.size),n[i].height*=o,n[i].depth*=o}return FO.makeFragment(n)}HO({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=t[0];return{type:"operatorname",mode:r.mode,body:VO(o),alwaysHandleSupSub:"\\operatornamewithlimits"===n,limits:!1,parentIsSupSub:!1}},htmlBuilder:ZB,mathmlBuilder:(e,t)=>{for(var r=hN(e.body,t.withFont("mathrm")),n=!0,o=0;o<r.length;o++){var i=r[o];if(i instanceof uN.SpaceNode);else if(i instanceof uN.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var a=i.children[0];1===i.children.length&&a instanceof uN.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break;default:n=!1}else n=!1}if(n){var s=r.map(e=>e.toText()).join("");r=[new uN.TextNode(s)]}var u=new uN.MathNode("mi",r);u.setAttribute("mathvariant","normal");var l=new uN.MathNode("mo",[lN("","text")]);return e.parentIsSupSub?new uN.MathNode("mrow",[u,l]):uN.newDocumentFragment([u,l])}}),SB("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),$O({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?FO.makeFragment(XO(e.body,t,!1)):FO.makeSpan(["mord"],XO(e.body,t,!0),t),mathmlBuilder:(e,t)=>pN(e.body,t,!0)}),HO({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=rN(e.body,t.havingCrampedStyle()),n=FO.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,i=FO.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n},{type:"kern",size:o}]},t);return FO.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new uN.MathNode("mo",[new uN.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new uN.MathNode("mover",[gN(e.body,t),r]);return n.setAttribute("accent","true"),n}}),HO({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:VO(n)}},htmlBuilder:(e,t)=>{var r=XO(e.body,t.withPhantom(),!1);return FO.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=hN(e.body,t);return new uN.MathNode("mphantom",r)}}),HO({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=FO.makeSpan([],[rN(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n<r.children.length;n++)r.children[n].height=0,r.children[n].depth=0;return r=FO.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),FO.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=hN(VO(e.body),t),n=new uN.MathNode("mphantom",r),o=new uN.MathNode("mpadded",[n]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),HO({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=FO.makeSpan(["inner"],[rN(e.body,t.withPhantom())]),n=FO.makeSpan(["fix"],[]);return FO.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=hN(VO(e.body),t),n=new uN.MathNode("mphantom",r),o=new uN.MathNode("mpadded",[n]);return o.setAttribute("width","0px"),o}}),HO({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=CN(t[0],"size").value,o=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:o}},htmlBuilder(e,t){var r=rN(e.body,t),n=Ek(e.dy,t);return FO.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new uN.MathNode("mpadded",[gN(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}}),HO({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),HO({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,o=r[0],i=CN(t[0],"size"),a=CN(t[1],"size");return{type:"rule",mode:n.mode,shift:o&&CN(o,"size").value,width:i.value,height:a.value}},htmlBuilder(e,t){var r=FO.makeSpan(["mord","rule"],[],t),n=Ek(e.width,t),o=Ek(e.height,t),i=e.shift?Ek(e.shift,t):0;return r.style.borderRightWidth=xk(n),r.style.borderTopWidth=xk(o),r.style.bottom=xk(i),r.width=n,r.height=o+i,r.depth=-i,r.maxFontSize=1.125*o*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Ek(e.width,t),n=Ek(e.height,t),o=e.shift?Ek(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new uN.MathNode("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",xk(r)),a.setAttribute("height",xk(n));var s=new uN.MathNode("mpadded",[a]);return o>=0?s.setAttribute("height",xk(o)):(s.setAttribute("height",xk(o)),s.setAttribute("depth",xk(-o))),s.setAttribute("voffset",xk(o)),s}});var QB=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];HO({type:"sizing",names:QB,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:o}=e,i=o.parseExpression(!1,r);return{type:"sizing",mode:o.mode,size:QB.indexOf(n)+1,body:i}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return JB(e.body,r,t)},mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=hN(e.body,r),o=new uN.MathNode("mstyle",n);return o.setAttribute("mathsize",xk(r.sizeMultiplier)),o}}),HO({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,o=!1,i=!1,a=r[0]&&CN(r[0],"ordgroup");if(a)for(var s="",u=0;u<a.body.length;++u){if("t"===(s=a.body[u].text))o=!0;else{if("b"!==s){o=!1,i=!1;break}i=!0}}else o=!0,i=!0;var l=t[0];return{type:"smash",mode:n.mode,body:l,smashHeight:o,smashDepth:i}},htmlBuilder:(e,t)=>{var r=FO.makeSpan([],[rN(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var o=0;o<r.children.length;o++)r.children[o].depth=0;var i=FO.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return FO.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new uN.MathNode("mpadded",[gN(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),HO({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,o=r[0],i=t[0];return{type:"sqrt",mode:n.mode,body:i,index:o}},htmlBuilder(e,t){var r=rN(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=FO.wrapFragment(r,t);var n=t.fontMetrics().defaultRuleThickness,o=n;t.style.id<rk.TEXT.id&&(o=t.fontMetrics().xHeight);var i=n+o/4,a=r.height+r.depth+i+n,{span:s,ruleWidth:u,advanceWidth:l}=hB.sqrtImage(a,t),c=s.height-u;c>r.height+r.depth+i&&(i=(i+c-r.height-r.depth)/2);var d=s.height-r.height-i-u;r.style.paddingLeft=xk(l);var f=FO.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+d)},{type:"elem",elem:s},{type:"kern",size:u}]},t);if(e.index){var h=t.havingStyle(rk.SCRIPTSCRIPT),p=rN(e.index,h,t),g=.6*(f.height-f.depth),m=FO.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:p}]},t),v=FO.makeSpan(["root"],[m]);return FO.makeSpan(["mord","sqrt"],[v,f],t)}return FO.makeSpan(["mord","sqrt"],[f],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new uN.MathNode("mroot",[gN(r,t),gN(n,t)]):new uN.MathNode("msqrt",[gN(r,t)])}});var eF={display:rk.DISPLAY,text:rk.TEXT,script:rk.SCRIPT,scriptscript:rk.SCRIPTSCRIPT};HO({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:o}=e,i=o.parseExpression(!0,r),a=n.slice(1,n.length-5);return{type:"styling",mode:o.mode,style:a,body:i}},htmlBuilder(e,t){var r=eF[e.style],n=t.havingStyle(r).withFont("");return JB(e.body,n,t)},mathmlBuilder(e,t){var r=eF[e.style],n=t.havingStyle(r),o=hN(e.body,n),i=new uN.MathNode("mstyle",o),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}});$O({type:"supsub",htmlBuilder(e,t){var r=function(e,t){var r=e.base;return r?"op"===r.type?r.limits&&(t.style.size===rk.DISPLAY.size||r.alwaysHandleSupSub)?WB:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(t.style.size===rk.DISPLAY.size||r.limits)?ZB:null:"accent"===r.type?VT.isCharacterBox(r.base)?TN:null:"horizBrace"===r.type&&!e.sub===r.isOver?$B:null:null}(e,t);if(r)return r(e,t);var n,o,i,{base:a,sup:s,sub:u}=e,l=rN(a,t),c=t.fontMetrics(),d=0,f=0,h=a&&VT.isCharacterBox(a);if(s){var p=t.havingStyle(t.style.sup());n=rN(s,p,t),h||(d=l.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(u){var g=t.havingStyle(t.style.sub());o=rN(u,g,t),h||(f=l.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}i=t.style===rk.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2;var m,v=t.sizeMultiplier,y=xk(.5/c.ptPerEm/v),b=null;if(o){var w=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(l instanceof Fk||w)&&(b=xk(-l.italic))}if(n&&o){d=Math.max(d,i,n.depth+.25*c.xHeight),f=Math.max(f,c.sub2);var E=4*c.defaultRuleThickness;if(d-n.depth-(o.height-f)<E){f=E-(d-n.depth)+o.height;var x=.8*c.xHeight-(d-n.depth);x>0&&(d+=x,f-=x)}var S=[{type:"elem",elem:o,shift:f,marginRight:y,marginLeft:b},{type:"elem",elem:n,shift:-d,marginRight:y}];m=FO.makeVList({positionType:"individualShift",children:S},t)}else if(o){f=Math.max(f,c.sub1,o.height-.8*c.xHeight);var C=[{type:"elem",elem:o,marginLeft:b,marginRight:y}];m=FO.makeVList({positionType:"shift",positionData:f,children:C},t)}else{if(!n)throw new Error("supsub must have either sup or sub.");d=Math.max(d,i,n.depth+.25*c.xHeight),m=FO.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:n,marginRight:y}]},t)}var A=eN(l,"right")||"mord";return FO.makeSpan([A],[l,FO.makeSpan(["msupsub"],[m])],t)},mathmlBuilder(e,t){var r,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,r=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var o,i=[gN(e.base,t)];if(e.sub&&i.push(gN(e.sub,t)),e.sup&&i.push(gN(e.sup,t)),n)o=r?"mover":"munder";else if(e.sub)if(e.sup){var a=e.base;o=a&&"op"===a.type&&a.limits&&t.style===rk.DISPLAY||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(t.style===rk.DISPLAY||a.limits)?"munderover":"msubsup"}else{var s=e.base;o=s&&"op"===s.type&&s.limits&&(t.style===rk.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===rk.DISPLAY)?"munder":"msub"}else{var u=e.base;o=u&&"op"===u.type&&u.limits&&(t.style===rk.DISPLAY||u.alwaysHandleSupSub)||u&&"operatorname"===u.type&&u.alwaysHandleSupSub&&(u.limits||t.style===rk.DISPLAY)?"mover":"msup"}return new uN.MathNode(o,i)}}),$O({type:"atom",htmlBuilder:(e,t)=>FO.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var r=new uN.MathNode("mo",[lN(e.text,e.mode)]);if("bin"===e.family){var n=dN(e,t);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});var tF={mi:"italic",mn:"normal",mtext:"normal"};$O({type:"mathord",htmlBuilder:(e,t)=>FO.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var r=new uN.MathNode("mi",[lN(e.text,e.mode,t)]),n=dN(e,t)||"italic";return n!==tF[r.type]&&r.setAttribute("mathvariant",n),r}}),$O({type:"textord",htmlBuilder:(e,t)=>FO.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var r,n=lN(e.text,e.mode,t),o=dN(e,t)||"normal";return r="text"===e.mode?new uN.MathNode("mtext",[n]):/[0-9]/.test(e.text)?new uN.MathNode("mn",[n]):"\\prime"===e.text?new uN.MathNode("mo",[n]):new uN.MathNode("mi",[n]),o!==tF[r.type]&&r.setAttribute("mathvariant",o),r}});var rF={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},nF={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};$O({type:"spacing",htmlBuilder(e,t){if(nF.hasOwnProperty(e.text)){var r=nF[e.text].className||"";if("text"===e.mode){var n=FO.makeOrd(e,t,"textord");return n.classes.push(r),n}return FO.makeSpan(["mspace",r],[FO.mathsym(e.text,e.mode,t)],t)}if(rF.hasOwnProperty(e.text))return FO.makeSpan(["mspace",rF[e.text]],[],t);throw new zT('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!nF.hasOwnProperty(e.text)){if(rF.hasOwnProperty(e.text))return new uN.MathNode("mspace");throw new zT('Unknown type of space "'+e.text+'"')}return new uN.MathNode("mtext",[new uN.TextNode(" ")])}});var oF=()=>{var e=new uN.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};$O({type:"tag",mathmlBuilder(e,t){var r=new uN.MathNode("mtable",[new uN.MathNode("mtr",[oF(),new uN.MathNode("mtd",[pN(e.body,t)]),oF(),new uN.MathNode("mtd",[pN(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var iF={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},aF={"\\textbf":"textbf","\\textmd":"textmd"},sF={"\\textit":"textit","\\textup":"textup"},uF=(e,t)=>{var r=e.font;return r?iF[r]?t.withTextFontFamily(iF[r]):aF[r]?t.withTextFontWeight(aF[r]):"\\emph"===r?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(sF[r]):t};HO({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,o=t[0];return{type:"text",mode:r.mode,body:VO(o),font:n}},htmlBuilder(e,t){var r=uF(e,t),n=XO(e.body,r,!0);return FO.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){var r=uF(e,t);return pN(e.body,r)}}),HO({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=rN(e.body,t),n=FO.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,i=FO.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:o},{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r}]},t);return FO.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new uN.MathNode("mo",[new uN.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new uN.MathNode("munder",[gN(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),HO({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=rN(e.body,t),n=t.fontMetrics().axisHeight,o=.5*(r.height-n-(r.depth+n));return FO.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:(e,t)=>new uN.MathNode("mpadded",[gN(e.body,t)],["vcenter"])}),HO({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new zT("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=lF(e),n=[],o=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var a=r[i];"~"===a&&(a="\\textasciitilde"),n.push(FO.makeSymbol(a,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return FO.makeSpan(["mord","text"].concat(o.sizingClasses(t)),FO.tryCombineChars(n),o)},mathmlBuilder(e,t){var r=new uN.TextNode(lF(e)),n=new uN.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var lF=e=>e.body.replace(/ /g,e.star?"␣":" "),cF=_O,dF="[ \r\n\t]",fF="(\\\\[a-zA-Z@]+)"+dF+"*",hF="[̀-ͯ]",pF=new RegExp(hF+"+$"),gF="("+dF+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧-豈-]"+hF+"*|[\ud800-\udbff][\udc00-\udfff]"+hF+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+fF+"|\\\\[^\ud800-\udfff])";class mF{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(gF,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new _T("EOF",new LT(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new zT("Unexpected character: '"+e[t]+"'",new _T(e[t],new LT(this,t,t+1)));var n=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[n]){var o=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===o?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new _T(n,new LT(this,t,this.tokenRegex.lastIndex))}}class vF{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new zT("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(void 0===r&&(r=!1),r){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var yF=xB;SB("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),SB("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),SB("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),SB("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),SB("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),SB("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),SB("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var bF={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};SB("\\char",function(e){var t,r=e.popToken(),n="";if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if("\\"===(r=e.popToken()).text[0])n=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new zT("\\char` missing argument");n=r.text.charCodeAt(0)}else t=10;if(t){if(null==(n=bF[r.text])||n>=t)throw new zT("Invalid base-"+t+" digit "+r.text);for(var o;null!=(o=bF[e.future().text])&&o<t;)n*=t,n+=o,e.popToken()}return"\\@char{"+n+"}"});var wF=(e,t,r,n)=>{var o=e.consumeArg().tokens;if(1!==o.length)throw new zT("\\newcommand's first argument must be a macro name");var i=o[0].text,a=e.isDefined(i);if(a&&!t)throw new zT("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!a&&!r)throw new zT("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(1===(o=e.consumeArg().tokens).length&&"["===o[0].text){for(var u="",l=e.expandNextToken();"]"!==l.text&&"EOF"!==l.text;)u+=l.text,l=e.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new zT("Invalid number of arguments: "+u);s=parseInt(u),o=e.consumeArg().tokens}return a&&n||e.macros.set(i,{tokens:o,numArgs:s}),""};SB("\\newcommand",e=>wF(e,!1,!0,!1)),SB("\\renewcommand",e=>wF(e,!0,!1,!1)),SB("\\providecommand",e=>wF(e,!0,!0,!0)),SB("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join("")),""}),SB("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join("")),""}),SB("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),cF[r],zk.math[r],zk.text[r]),""}),SB("\\bgroup","{"),SB("\\egroup","}"),SB("~","\\nobreakspace"),SB("\\lq","`"),SB("\\rq","'"),SB("\\aa","\\r a"),SB("\\AA","\\r A"),SB("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),SB("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),SB("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),SB("ℬ","\\mathscr{B}"),SB("ℰ","\\mathscr{E}"),SB("ℱ","\\mathscr{F}"),SB("ℋ","\\mathscr{H}"),SB("ℐ","\\mathscr{I}"),SB("ℒ","\\mathscr{L}"),SB("ℳ","\\mathscr{M}"),SB("ℛ","\\mathscr{R}"),SB("ℭ","\\mathfrak{C}"),SB("ℌ","\\mathfrak{H}"),SB("ℨ","\\mathfrak{Z}"),SB("\\Bbbk","\\Bbb{k}"),SB("·","\\cdotp"),SB("\\llap","\\mathllap{\\textrm{#1}}"),SB("\\rlap","\\mathrlap{\\textrm{#1}}"),SB("\\clap","\\mathclap{\\textrm{#1}}"),SB("\\mathstrut","\\vphantom{(}"),SB("\\underbar","\\underline{\\text{#1}}"),SB("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),SB("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),SB("\\ne","\\neq"),SB("≠","\\neq"),SB("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),SB("∉","\\notin"),SB("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),SB("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),SB("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),SB("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),SB("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),SB("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),SB("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),SB("⟂","\\perp"),SB("‼","\\mathclose{!\\mkern-0.8mu!}"),SB("∌","\\notni"),SB("⌜","\\ulcorner"),SB("⌝","\\urcorner"),SB("⌞","\\llcorner"),SB("⌟","\\lrcorner"),SB("©","\\copyright"),SB("®","\\textregistered"),SB("️","\\textregistered"),SB("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),SB("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),SB("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),SB("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),SB("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),SB("⋮","\\vdots"),SB("\\varGamma","\\mathit{\\Gamma}"),SB("\\varDelta","\\mathit{\\Delta}"),SB("\\varTheta","\\mathit{\\Theta}"),SB("\\varLambda","\\mathit{\\Lambda}"),SB("\\varXi","\\mathit{\\Xi}"),SB("\\varPi","\\mathit{\\Pi}"),SB("\\varSigma","\\mathit{\\Sigma}"),SB("\\varUpsilon","\\mathit{\\Upsilon}"),SB("\\varPhi","\\mathit{\\Phi}"),SB("\\varPsi","\\mathit{\\Psi}"),SB("\\varOmega","\\mathit{\\Omega}"),SB("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),SB("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),SB("\\boxed","\\fbox{$\\displaystyle{#1}$}"),SB("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),SB("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),SB("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),SB("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),SB("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var EF={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};SB("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in EF?t=EF[r]:("\\not"===r.slice(0,4)||r in zk.math&&["bin","rel"].includes(zk.math[r].group))&&(t="\\dotsb"),t});var xF={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};SB("\\dotso",function(e){return e.future().text in xF?"\\ldots\\,":"\\ldots"}),SB("\\dotsc",function(e){var t=e.future().text;return t in xF&&","!==t?"\\ldots\\,":"\\ldots"}),SB("\\cdots",function(e){return e.future().text in xF?"\\@cdots\\,":"\\@cdots"}),SB("\\dotsb","\\cdots"),SB("\\dotsm","\\cdots"),SB("\\dotsi","\\!\\cdots"),SB("\\dotsx","\\ldots\\,"),SB("\\DOTSI","\\relax"),SB("\\DOTSB","\\relax"),SB("\\DOTSX","\\relax"),SB("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),SB("\\,","\\tmspace+{3mu}{.1667em}"),SB("\\thinspace","\\,"),SB("\\>","\\mskip{4mu}"),SB("\\:","\\tmspace+{4mu}{.2222em}"),SB("\\medspace","\\:"),SB("\\;","\\tmspace+{5mu}{.2777em}"),SB("\\thickspace","\\;"),SB("\\!","\\tmspace-{3mu}{.1667em}"),SB("\\negthinspace","\\!"),SB("\\negmedspace","\\tmspace-{4mu}{.2222em}"),SB("\\negthickspace","\\tmspace-{5mu}{.277em}"),SB("\\enspace","\\kern.5em "),SB("\\enskip","\\hskip.5em\\relax"),SB("\\quad","\\hskip1em\\relax"),SB("\\qquad","\\hskip2em\\relax"),SB("\\tag","\\@ifstar\\tag@literal\\tag@paren"),SB("\\tag@paren","\\tag@literal{({#1})}"),SB("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new zT("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),SB("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),SB("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),SB("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),SB("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),SB("\\newline","\\\\\\relax"),SB("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var SF=xk(lk["Main-Regular"]["T".charCodeAt(0)][1]-.7*lk["Main-Regular"]["A".charCodeAt(0)][1]);SB("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+SF+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),SB("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+SF+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),SB("\\hspace","\\@ifstar\\@hspacer\\@hspace"),SB("\\@hspace","\\hskip #1\\relax"),SB("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),SB("\\ordinarycolon",":"),SB("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),SB("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),SB("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),SB("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),SB("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),SB("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),SB("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),SB("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),SB("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),SB("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),SB("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),SB("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),SB("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),SB("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),SB("∷","\\dblcolon"),SB("∹","\\eqcolon"),SB("≔","\\coloneqq"),SB("≕","\\eqqcolon"),SB("⩴","\\Coloneqq"),SB("\\ratio","\\vcentcolon"),SB("\\coloncolon","\\dblcolon"),SB("\\colonequals","\\coloneqq"),SB("\\coloncolonequals","\\Coloneqq"),SB("\\equalscolon","\\eqqcolon"),SB("\\equalscoloncolon","\\Eqqcolon"),SB("\\colonminus","\\coloneq"),SB("\\coloncolonminus","\\Coloneq"),SB("\\minuscolon","\\eqcolon"),SB("\\minuscoloncolon","\\Eqcolon"),SB("\\coloncolonapprox","\\Colonapprox"),SB("\\coloncolonsim","\\Colonsim"),SB("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),SB("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),SB("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),SB("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),SB("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),SB("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),SB("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),SB("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),SB("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),SB("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),SB("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),SB("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),SB("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),SB("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),SB("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),SB("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),SB("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),SB("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),SB("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),SB("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),SB("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),SB("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),SB("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),SB("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),SB("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),SB("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),SB("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),SB("\\imath","\\html@mathml{\\@imath}{ı}"),SB("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),SB("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),SB("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),SB("⟦","\\llbracket"),SB("⟧","\\rrbracket"),SB("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),SB("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),SB("⦃","\\lBrace"),SB("⦄","\\rBrace"),SB("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),SB("⦵","\\minuso"),SB("\\darr","\\downarrow"),SB("\\dArr","\\Downarrow"),SB("\\Darr","\\Downarrow"),SB("\\lang","\\langle"),SB("\\rang","\\rangle"),SB("\\uarr","\\uparrow"),SB("\\uArr","\\Uparrow"),SB("\\Uarr","\\Uparrow"),SB("\\N","\\mathbb{N}"),SB("\\R","\\mathbb{R}"),SB("\\Z","\\mathbb{Z}"),SB("\\alef","\\aleph"),SB("\\alefsym","\\aleph"),SB("\\Alpha","\\mathrm{A}"),SB("\\Beta","\\mathrm{B}"),SB("\\bull","\\bullet"),SB("\\Chi","\\mathrm{X}"),SB("\\clubs","\\clubsuit"),SB("\\cnums","\\mathbb{C}"),SB("\\Complex","\\mathbb{C}"),SB("\\Dagger","\\ddagger"),SB("\\diamonds","\\diamondsuit"),SB("\\empty","\\emptyset"),SB("\\Epsilon","\\mathrm{E}"),SB("\\Eta","\\mathrm{H}"),SB("\\exist","\\exists"),SB("\\harr","\\leftrightarrow"),SB("\\hArr","\\Leftrightarrow"),SB("\\Harr","\\Leftrightarrow"),SB("\\hearts","\\heartsuit"),SB("\\image","\\Im"),SB("\\infin","\\infty"),SB("\\Iota","\\mathrm{I}"),SB("\\isin","\\in"),SB("\\Kappa","\\mathrm{K}"),SB("\\larr","\\leftarrow"),SB("\\lArr","\\Leftarrow"),SB("\\Larr","\\Leftarrow"),SB("\\lrarr","\\leftrightarrow"),SB("\\lrArr","\\Leftrightarrow"),SB("\\Lrarr","\\Leftrightarrow"),SB("\\Mu","\\mathrm{M}"),SB("\\natnums","\\mathbb{N}"),SB("\\Nu","\\mathrm{N}"),SB("\\Omicron","\\mathrm{O}"),SB("\\plusmn","\\pm"),SB("\\rarr","\\rightarrow"),SB("\\rArr","\\Rightarrow"),SB("\\Rarr","\\Rightarrow"),SB("\\real","\\Re"),SB("\\reals","\\mathbb{R}"),SB("\\Reals","\\mathbb{R}"),SB("\\Rho","\\mathrm{P}"),SB("\\sdot","\\cdot"),SB("\\sect","\\S"),SB("\\spades","\\spadesuit"),SB("\\sub","\\subset"),SB("\\sube","\\subseteq"),SB("\\supe","\\supseteq"),SB("\\Tau","\\mathrm{T}"),SB("\\thetasym","\\vartheta"),SB("\\weierp","\\wp"),SB("\\Zeta","\\mathrm{Z}"),SB("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),SB("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),SB("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),SB("\\bra","\\mathinner{\\langle{#1}|}"),SB("\\ket","\\mathinner{|{#1}\\rangle}"),SB("\\braket","\\mathinner{\\langle{#1}\\rangle}"),SB("\\Bra","\\left\\langle#1\\right|"),SB("\\Ket","\\left|#1\\right\\rangle");var CF=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,o=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var u=t=>r=>{e&&(r.macros.set("|",a),o.length&&r.macros.set("\\|",s));var i=t;!t&&o.length&&("|"===r.future().text&&(r.popToken(),i=!0));return{tokens:i?o:n,numArgs:0}};t.macros.set("|",u(!1)),o.length&&t.macros.set("\\|",u(!0));var l=t.consumeArg().tokens,c=t.expandTokens([...i,...l,...r]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};SB("\\bra@ket",CF(!1)),SB("\\bra@set",CF(!0)),SB("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),SB("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),SB("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),SB("\\angln","{\\angl n}"),SB("\\blue","\\textcolor{##6495ed}{#1}"),SB("\\orange","\\textcolor{##ffa500}{#1}"),SB("\\pink","\\textcolor{##ff00af}{#1}"),SB("\\red","\\textcolor{##df0030}{#1}"),SB("\\green","\\textcolor{##28ae7b}{#1}"),SB("\\gray","\\textcolor{gray}{#1}"),SB("\\purple","\\textcolor{##9d38bd}{#1}"),SB("\\blueA","\\textcolor{##ccfaff}{#1}"),SB("\\blueB","\\textcolor{##80f6ff}{#1}"),SB("\\blueC","\\textcolor{##63d9ea}{#1}"),SB("\\blueD","\\textcolor{##11accd}{#1}"),SB("\\blueE","\\textcolor{##0c7f99}{#1}"),SB("\\tealA","\\textcolor{##94fff5}{#1}"),SB("\\tealB","\\textcolor{##26edd5}{#1}"),SB("\\tealC","\\textcolor{##01d1c1}{#1}"),SB("\\tealD","\\textcolor{##01a995}{#1}"),SB("\\tealE","\\textcolor{##208170}{#1}"),SB("\\greenA","\\textcolor{##b6ffb0}{#1}"),SB("\\greenB","\\textcolor{##8af281}{#1}"),SB("\\greenC","\\textcolor{##74cf70}{#1}"),SB("\\greenD","\\textcolor{##1fab54}{#1}"),SB("\\greenE","\\textcolor{##0d923f}{#1}"),SB("\\goldA","\\textcolor{##ffd0a9}{#1}"),SB("\\goldB","\\textcolor{##ffbb71}{#1}"),SB("\\goldC","\\textcolor{##ff9c39}{#1}"),SB("\\goldD","\\textcolor{##e07d10}{#1}"),SB("\\goldE","\\textcolor{##a75a05}{#1}"),SB("\\redA","\\textcolor{##fca9a9}{#1}"),SB("\\redB","\\textcolor{##ff8482}{#1}"),SB("\\redC","\\textcolor{##f9685d}{#1}"),SB("\\redD","\\textcolor{##e84d39}{#1}"),SB("\\redE","\\textcolor{##bc2612}{#1}"),SB("\\maroonA","\\textcolor{##ffbde0}{#1}"),SB("\\maroonB","\\textcolor{##ff92c6}{#1}"),SB("\\maroonC","\\textcolor{##ed5fa6}{#1}"),SB("\\maroonD","\\textcolor{##ca337c}{#1}"),SB("\\maroonE","\\textcolor{##9e034e}{#1}"),SB("\\purpleA","\\textcolor{##ddd7ff}{#1}"),SB("\\purpleB","\\textcolor{##c6b9fc}{#1}"),SB("\\purpleC","\\textcolor{##aa87ff}{#1}"),SB("\\purpleD","\\textcolor{##7854ab}{#1}"),SB("\\purpleE","\\textcolor{##543b78}{#1}"),SB("\\mintA","\\textcolor{##f5f9e8}{#1}"),SB("\\mintB","\\textcolor{##edf2df}{#1}"),SB("\\mintC","\\textcolor{##e0e5cc}{#1}"),SB("\\grayA","\\textcolor{##f6f7f7}{#1}"),SB("\\grayB","\\textcolor{##f0f1f2}{#1}"),SB("\\grayC","\\textcolor{##e3e5e6}{#1}"),SB("\\grayD","\\textcolor{##d6d8da}{#1}"),SB("\\grayE","\\textcolor{##babec2}{#1}"),SB("\\grayF","\\textcolor{##888d93}{#1}"),SB("\\grayG","\\textcolor{##626569}{#1}"),SB("\\grayH","\\textcolor{##3b3e40}{#1}"),SB("\\grayI","\\textcolor{##21242c}{#1}"),SB("\\kaBlue","\\textcolor{##314453}{#1}"),SB("\\kaGreen","\\textcolor{##71B307}{#1}");var AF={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class DF{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new vF(yF,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new mF(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:n,end:r}=this.consumeArg(["]"]))}else({tokens:n,start:t,end:r}=this.consumeArg());return this.pushToken(new _T("EOF",r.loc)),this.pushTokens(n),new _T("",LT.range(t,r))}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var n,o=this.future(),i=0,a=0;do{if(n=this.popToken(),t.push(n),"{"===n.text)++i;else if("}"===n.text){if(-1===--i)throw new zT("Extra }",n)}else if("EOF"===n.text)throw new zT("Unexpected end of input in a macro argument, expected '"+(e&&r?e[a]:"}")+"'",n);if(e&&r)if((0===i||1===i&&"{"===e[a])&&n.text===e[a]){if(++a===e.length){t.splice(-a,a);break}}else a=0}while(0!==i||r);return"{"===o.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:o,end:n}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new zT("The length of delimiters doesn't match the number of args!");for(var r=t[0],n=0;n<r.length;n++){var o=this.popToken();if(r[n]!==o.text)throw new zT("Use of the macro doesn't match its definition",o)}}for(var i=[],a=0;a<e;a++)i.push(this.consumeArg(t&&t[a+1]).tokens);return i}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new zT("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,n=t.noexpand?null:this._getExpansion(r);if(null==n||e&&n.unexpandable){if(e&&null==n&&"\\"===r[0]&&!this.isDefined(r))throw new zT("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var o=n.tokens,i=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs)for(var a=(o=o.slice()).length-1;a>=0;--a){var s=o[a];if("#"===s.text){if(0===a)throw new zT("Incomplete placeholder at end of macro body",s);if("#"===(s=o[--a]).text)o.splice(a+1,1);else{if(!/^[1-9]$/.test(s.text))throw new zT("Not a valid argument number",s);o.splice(a,2,...i[+s.text-1])}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new _T(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var n="function"==typeof t?t(this):t;if("string"==typeof n){var o=0;if(-1!==n.indexOf("#"))for(var i=n.replace(/##/g,"");-1!==i.indexOf("#"+(o+1));)++o;for(var a=new mF(n,this.settings),s=[],u=a.lex();"EOF"!==u.text;)s.push(u),u=a.lex();return s.reverse(),{tokens:s,numArgs:o}}return n}isDefined(e){return this.macros.has(e)||cF.hasOwnProperty(e)||zk.math.hasOwnProperty(e)||zk.text.hasOwnProperty(e)||AF.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:cF.hasOwnProperty(e)&&!cF[e].primitive}}var TF=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,kF=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),OF={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},NF={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class BF{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new DF(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new zT("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new _T("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(-1!==BF.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(e&&cF[n.text]&&cF[n.text].infix)break;var o=this.parseAtom(t);if(!o)break;"internal"!==o.type&&r.push(o)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t,r=-1,n=0;n<e.length;n++)if("infix"===e[n].type){if(-1!==r)throw new zT("only one infix operator per group",e[n].token);r=n,t=e[n].replaceWith}if(-1!==r&&t){var o,i,a=e.slice(0,r),s=e.slice(r+1);return o=1===a.length&&"ordgroup"===a[0].type?a[0]:{type:"ordgroup",mode:this.mode,body:a},i=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},["\\\\abovefrac"===t?this.callFunction(t,[o,e[r],i],[]):this.callFunction(t,[o,i],[])]}return e}handleSupSubscript(e){var t,r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();do{var o;t=this.parseGroup(e)}while("internal"===(null==(o=t)?void 0:o.type));if(!t)throw new zT("Expected group after '"+n+"'",r);return t}formatUnsupportedCmd(e){for(var t=[],r=0;r<e.length;r++)t.push({type:"textord",mode:"text",text:e[r]});var n={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]}}parseAtom(e){var t,r,n=this.parseGroup("atom",e);if("internal"===(null==n?void 0:n.type))return n;if("text"===this.mode)return n;for(;;){this.consumeSpaces();var o=this.fetch();if("\\limits"===o.text||"\\nolimits"===o.text){if(n&&"op"===n.type){var i="\\limits"===o.text;n.limits=i,n.alwaysHandleSupSub=!0}else{if(!n||"operatorname"!==n.type)throw new zT("Limit controls must follow a math operator",o);n.alwaysHandleSupSub&&(n.limits="\\limits"===o.text)}this.consume()}else if("^"===o.text){if(t)throw new zT("Double superscript",o);t=this.handleSupSubscript("superscript")}else if("_"===o.text){if(r)throw new zT("Double subscript",o);r=this.handleSupSubscript("subscript")}else if("'"===o.text){if(t)throw new zT("Double superscript",o);var a={type:"textord",mode:this.mode,text:"\\prime"},s=[a];for(this.consume();"'"===this.fetch().text;)s.push(a),this.consume();"^"===this.fetch().text&&s.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:s}}else{if(!kF[o.text])break;var u=TF.test(o.text),l=[];for(l.push(new _T(kF[o.text])),this.consume();;){var c=this.fetch().text;if(!kF[c])break;if(TF.test(c)!==u)break;l.unshift(new _T(kF[c])),this.consume()}var d=this.subparse(l);u?r={type:"ordgroup",mode:"math",body:d}:t={type:"ordgroup",mode:"math",body:d}}}return t||r?{type:"supsub",mode:this.mode,base:n,sup:t,sub:r}:n}parseFunction(e,t){var r=this.fetch(),n=r.text,o=cF[n];if(!o)return null;if(this.consume(),t&&"atom"!==t&&!o.allowedInArgument)throw new zT("Got function '"+n+"' with no arguments"+(t?" as "+t:""),r);if("text"===this.mode&&!o.allowedInText)throw new zT("Can't use function '"+n+"' in text mode",r);if("math"===this.mode&&!1===o.allowedInMath)throw new zT("Can't use function '"+n+"' in math mode",r);var{args:i,optArgs:a}=this.parseArguments(n,o);return this.callFunction(n,i,a,r,e)}callFunction(e,t,r,n,o){var i={funcName:e,parser:this,token:n,breakOnTokenText:o},a=cF[e];if(a&&a.handler)return a.handler(i,t,r);throw new zT("No function handler for "+e)}parseArguments(e,t){var r=t.numArgs+t.numOptionalArgs;if(0===r)return{args:[],optArgs:[]};for(var n=[],o=[],i=0;i<r;i++){var a=t.argTypes&&t.argTypes[i],s=i<t.numOptionalArgs;(t.primitive&&null==a||"sqrt"===t.type&&1===i&&null==o[0])&&(a="primitive");var u=this.parseGroupOfType("argument to '"+e+"'",a,s);if(s)o.push(u);else{if(null==u)throw new zT("Null argument, please report this as a bug");n.push(u)}}return{args:n,optArgs:o}}parseGroupOfType(e,t,r){switch(t){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,t);case"hbox":var n=this.parseArgumentGroup(r,"text");return null!=n?{type:"styling",mode:n.mode,body:[n],style:"text"}:null;case"raw":var o=this.parseStringGroup("raw",r);return null!=o?{type:"raw",mode:"text",string:o.text}:null;case"primitive":if(r)throw new zT("A primitive argument cannot be optional");var i=this.parseGroup(e);if(null==i)throw new zT("Expected group as "+e,this.fetch());return i;case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new zT("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){var r=this.gullet.scanArgument(t);if(null==r)return null;for(var n,o="";"EOF"!==(n=this.fetch()).text;)o+=n.text,this.consume();return this.consume(),r.text=o,r}parseRegexGroup(e,t){for(var r,n=this.fetch(),o=n,i="";"EOF"!==(r=this.fetch()).text&&e.test(i+r.text);)i+=(o=r).text,this.consume();if(""===i)throw new zT("Invalid "+t+": '"+n.text+"'",n);return n.range(o,i)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var r=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!r)throw new zT("Invalid color: '"+t.text+"'",t);var n=r[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(e){var t,r=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",r=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!n)throw new zT("Invalid size: '"+t.text+"'",t);var o={number:+(n[1]+n[2]),unit:n[3]};if(!wk(o))throw new zT("Invalid unit: '"+o.unit+"'",t);return{type:"size",mode:this.mode,value:o,isBlank:r}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var r=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(e,t){var r=this.gullet.scanArgument(e);if(null==r)return null;var n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:r.loc,body:o};return t&&this.switchMode(n),i}parseGroup(e,t){var r,n=this.fetch(),o=n.text;if("{"===o||"\\begingroup"===o){this.consume();var i="{"===o?"}":"\\endgroup";this.gullet.beginGroup();var a=this.parseExpression(!1,i),s=this.fetch();this.expect(i),this.gullet.endGroup(),r={type:"ordgroup",mode:this.mode,loc:LT.range(n,s),body:a,semisimple:"\\begingroup"===o||void 0}}else if(null==(r=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===o[0]&&!AF.hasOwnProperty(o)){if(this.settings.throwOnError)throw new zT("Undefined control sequence: "+o,n);r=this.formatUnsupportedCmd(o),this.consume()}return r}formLigatures(e){for(var t=e.length-1,r=0;r<t;++r){var n=e[r],o=n.text;"-"===o&&"-"===e[r+1].text&&(r+1<t&&"-"===e[r+2].text?(e.splice(r,3,{type:"textord",mode:"text",loc:LT.range(n,e[r+2]),text:"---"}),t-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:LT.range(n,e[r+1]),text:"--"}),t-=1)),"'"!==o&&"`"!==o||e[r+1].text!==o||(e.splice(r,2,{type:"textord",mode:"text",loc:LT.range(n,e[r+1]),text:o+o}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var r=t.slice(5),n="*"===r.charAt(0);if(n&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new zT("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:r=r.slice(1,-1),star:n}}NF.hasOwnProperty(t[0])&&!zk[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=NF[t[0]]+t.slice(1));var o,i=pF.exec(t);if(i&&("i"===(t=t.substring(0,i.index))?t="ı":"j"===t&&(t="ȷ")),zk[this.mode][t]){this.settings.strict&&"math"===this.mode&&vO.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var a,s=zk[this.mode][t].group,u=LT.range(e);if(Lk.hasOwnProperty(s)){var l=s;a={type:"atom",mode:this.mode,family:l,loc:u,text:t}}else a={type:s,mode:this.mode,loc:u,text:t};o=a}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(ik(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:LT.range(e),text:t}}if(this.consume(),i)for(var c=0;c<i[0].length;c++){var d=i[0][c];if(!OF[d])throw new zT("Unknown accent ' "+d+"'",e);var f=OF[d][this.mode]||OF[d].text;if(!f)throw new zT("Accent "+d+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:LT.range(e),label:f,isStretchy:!1,isShifty:!0,base:o}}return o}}BF.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var FF=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new BF(e,t);delete r.gullet.macros.current["\\df@tag"];var n=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new zT("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:r.subparse([new _T("\\df@tag")])}]}return n},MF=function(e,t,r){t.textContent="";var n=PF(e,r).toNode();t.appendChild(n)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),MF=function(){throw new zT("KaTeX doesn't work in quirks mode.")});var IF=function(e,t,r){if(r.throwOnError||!(e instanceof zT))throw e;var n=FO.makeSpan(["katex-error"],[new Fk(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+r.errorColor),n},PF=function(e,t){var r=new WT(t);try{return function(e,t,r){var n,o=vN(r);if("mathml"===r.output)return mN(e,t,o,r.displayMode,!0);if("html"===r.output){var i=oN(e,o);n=FO.makeSpan(["katex"],[i])}else{var a=mN(e,t,o,r.displayMode,!1),s=oN(e,o);n=FO.makeSpan(["katex"],[a,s])}return yN(n,r)}(FF(e,r),e,r)}catch(t){return IF(t,e,r)}},RF={version:"0.16.25",render:MF,renderToString:function(e,t){return PF(e,t).toMarkup()},ParseError:zT,SETTINGS_SCHEMA:qT,__parse:function(e,t){var r=new WT(t);return FF(e,r)},__renderToDomTree:PF,__renderToHTMLTree:function(e,t){var r=new WT(t);try{return function(e,t,r){var n=oN(e,vN(r)),o=FO.makeSpan(["katex"],[n]);return yN(o,r)}(FF(e,r),0,r)}catch(t){return IF(t,e,r)}},__setFontMetrics:function(e,t){lk[e]=t},__defineSymbol:jk,__defineFunction:HO,__defineMacro:SB,__domTree:{Span:kk,Anchor:Ok,SymbolNode:Fk,SvgNode:Mk,PathNode:Ik,LineNode:Pk}},LF=function(e){function t(){var t=e.call(this)||this,r=t.attachShadow({mode:"open"}),n=r.ownerDocument.createElement("span");return n.style.display="inline-block",r.appendChild(n),t.span=n,t}return bh(t,e),Object.defineProperty(t,"observedAttributes",{get:function(){return["data-value"]},enumerable:!1,configurable:!0}),t.prototype.attributeChangedCallback=function(e,t,r){if("data-value"===e){if(t===r)return;this.render(r||"")}},t.prototype.render=function(e){RF.render(e,this.span,{throwOnError:!1,output:"mathml"})},t}(HTMLElement);window.customElements.get("w-e-formula-card")||window.customElements.define("w-e-formula-card",LF),Py("en",{formula:{formula:"Formula",placeholder:"Use LateX syntax",insert:"Insert formula",edit:"Edit formula",textToFormula:"Convert to formula",ok:"OK"}}),Py("zh-CN",{formula:{formula:"公式",placeholder:"使用 LateX 语法",insert:"插入公式",edit:"编辑公式",textToFormula:"转换为公式",ok:"确定"}});var _F={type:"formula",elemToHtml:function(e,t){var r=e.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>')}},zF='<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>';function jF(e){return void 0===e&&(e="r"),"".concat(e,"-").concat(bg())}function HF(){return jF("w-e-insert-formula")}ag&&(_p.fn.append=ag),ng&&(_p.fn.html=ng),Gp&&(_p.fn.val=Gp),Wp&&(_p.fn.on=Wp),vg&&(_p.fn.focus=vg),ig&&(_p.fn.is=ig),lg&&(_p.fn.parents=lg),cg&&(_p.fn.find=cg);var $F=function(){function e(){this.title=Ly("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=HF(),this.buttonId=HF()}return e.prototype.getSelectedElem=function(e){var t=bm.getSelectedNodeByType(e,"formula");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedElem(e);return t&&t.value||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!!ph.Range.isExpanded(t)||null==this.getSelectedElem(e))},e.prototype.getModalPositionNode=function(e){return this.getSelectedElem(e)},e.prototype.getModalContentElem=function(e){var t=this,r=this.textareaId,n=this.buttonId,o=Ch(Ky(Ly("formula.formula"),r,Ly("formula.placeholder")),2),i=o[0],a=_p(o[1]),s=Ch(Xy(n,Ly("formula.ok")),1)[0];if(null==this.$content){var u=_p("<div></div>");u.on("click","#".concat(n),function(n){n.preventDefault();var o=u.find("#".concat(r)).val().trim();t.updateFormula(e,o),e.hidePanelOrModal()}),this.$content=u}var l=this.$content;l.html(""),l.append(i),l.append(s);var c=this.getValue(e);return a.val(c),setTimeout(function(){a.focus()}),l[0]},e.prototype.updateFormula=function(e,t){if(t&&(e.restoreSelection(),!this.isDisabled(e))){var r=this.getSelectedElem(e);if(null!=r){var n=bm.findPath(e,r),o={value:t};ph.Transforms.setNodes(e,o,{at:n})}}},e}();function UF(){return jF("w-e-insert-formula")}var VF=function(){function e(){this.title=Ly("formula.insert"),this.iconSvg=zF,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textareaId=UF(),this.buttonId=UF()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=bm.getSelectedElems(e);return!!t.some(function(t){return e.isVoid(t)})||!!t.some(function(e){return"pre"===bm.getNodeType(e)})},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,r=this.textareaId,n=this.buttonId,o=Ch(Ky(Ly("formula.formula"),r,Ly("formula.placeholder")),2),i=o[0],a=_p(o[1]),s=Ch(Xy(n,Ly("formula.ok")),1)[0];if(null==this.$content){var u=_p("<div></div>");u.on("click","#".concat(n),function(n){n.preventDefault();var o=u.find("#".concat(r)).val().trim();t.insertFormula(e,o),e.hidePanelOrModal()}),this.$content=u}var l=this.$content;l.html(""),l.append(i),l.append(s);var c=e.selection,d="";return c&&ph.Range.isExpanded(c)&&(d=ph.Editor.string(e,c)),a.val(d),setTimeout(function(){a.focus()},50),l[0]},e.prototype.insertFormula=function(e,t){if(t&&(e.restoreSelection(),!this.isDisabled(e))){var r=e.selection,n={type:"formula",value:t,children:[{text:""}]};r&&ph.Range.isExpanded(r)&&ph.Transforms.delete(e),e.insertNode(n)}},e}();function qF(){return jF("w-e-text-to-formula")}var GF=function(){function e(){this.title=Ly("formula.textToFormula"),this.iconSvg=zF,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textareaId=qF(),this.buttonId=qF()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){if(null==Kh.insertFormula)return!0;if(null==e.selection)return!1;var t=bm.getSelectedElems(e);return!!t.some(function(t){return e.isVoid(t)})||!!t.some(function(e){return"pre"===bm.getNodeType(e)})},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,r=this.textareaId,n=this.buttonId,o=Ch(Ky(Ly("formula.formula"),r,Ly("formula.placeholder")),2),i=o[0],a=_p(o[1]),s=Ch(Xy(n,Ly("formula.ok")),1)[0];if(null==this.$content){var u=_p("<div></div>");u.on("click","#".concat(n),function(n){n.preventDefault();var o,i=u.find("#".concat(r)).val().trim();o=i,console.warn("composeFnDeal 被调用了"),console.log("原始 latex:",o),o=function(e){return e?(e=e.trim(),/^\$\$([\s\S]*)\$\$$/.test(e)?e=e.replace(/^\$\$([\s\S]*)\$\$$/,"$1"):/^\$([\s\S]*)\$/.test(e)?e=e.replace(/^\$([\s\S]*)\$$/,"$1"):/^\\\(([\s\S]*)\\\)$/.test(e)?e=e.replace(/^\\\(([\s\S]*)\\\)$/,"$1"):/^\\\[([\s\S]*)\\\]$/.test(e)&&(e=e.replace(/^\\\[([\s\S]*)\\\]$/,"$1")),e.trim()):e}(o=function(e){return e.replace(/\\text\{([^}]*)\}/g,function(e,t){var r=t.trim().split(/\s+/).join(" \\quad ");return"\\text{".concat(r,"}")})}(o)),console.log("去掉公式包裹符号后:",o),o=function(e){return e?e=(e=(e=(e=(e=e.replace(/\\begin\{align\}/g,"\\begin{aligned}")).replace(/\\end\{align\}/g,"\\end{aligned}")).replace(/\\frac\{(\d+)\}\{(\d+)\}/g,"\\tfrac{$1}{$2}")).replace(/\\left\\\{/g,"\\left\\{")).replace(/\\right\./g,"\\right."):e}(o),console.log("fixKatexFormula 处理后:",o),o=function(e){return e.replace(/\\left\[\s*\\begin\{matrix\}([\s\S]*?)\\end\{matrix\}\s*\\right\]/g,"\\begin{bmatrix}$1\\end{bmatrix}")}(o),console.log("fixMatrixForKaTeX 处理后:",o),i=o,t.insertFormula(e,i),e.hidePanelOrModal()}),this.$content=u}var l=this.$content;l.html(""),l.append(i),l.append(s);var c=e.selection,d="";return c&&ph.Range.isExpanded(c)&&(d=ph.Editor.string(e,c)),a.val(d),setTimeout(function(){if(a.focus(),d){var e=a[0];e&&e.select()}},50),l[0]},e.prototype.insertFormula=function(e,t){if(t&&(e.restoreSelection(),!this.isDisabled(e))){var r=e.selection,n={type:"formula",value:t,children:[{text:""}]};r&&ph.Range.isExpanded(r)&&ph.Transforms.delete(e),e.insertNode(n)}},e}();var WF={type:"formula",renderElem:function(e,t,r){var n=bm.isNodeSelected(r,e),o=e.value,i=Wb("w-e-formula-card",{dataset:{value:void 0===o?"":o}},null);return Wb("div",{className:"w-e-textarea-formula-container",props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:n?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"3px 3px"}},[i])}},YF={editorPlugin:function(e){var t=e.isInline,r=e.isVoid,n=e;return n.isInline=function(e){return"formula"===bm.getNodeType(e)||t(e)},n.isVoid=function(e){return"formula"===bm.getNodeType(e)||r(e)},n},renderElems:[WF],elemsToHtml:[_F],parseElemsHtml:[{selector:'span[data-w-e-type="formula"]',parseElemHtml:function(e,t,r){return{type:"formula",value:e.getAttribute("data-value")||"",children:[{text:""}]}}}],menus:[{key:"insertFormula",factory:function(){return new VF}},{key:"editFormula",factory:function(){return new $F}},{key:"textToFormula",factory:function(){return new GF}}]};Py("en",{tableModule:{modal:{border:"Border",borderWidth:"Width",bgColor:"Back color",align:"Text Align",ok:"OK"},color:{default:"Default color",clear:"Clear back color"},borderStyle:{none:"None",solid:"Solid",dotted:"Dotted",dashed:"Dashed",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset"},deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Fit width",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header",mergeCell:"merge cell",splitCell:"split cell",tableProperty:"Table property",cellProperty:"Cell property"}}),Py("zh-CN",{tableModule:{modal:{border:"边框",borderWidth:"宽度",bgColor:"背景色",align:"对齐方式",ok:"确定"},color:{default:"默认颜色",clear:"清除背景色"},borderStyle:{none:"无样式",solid:"实线",dotted:"点状虚线",dashed:"虚线",double:"双线",groove:"凹槽边框",ridge:"菱形边框",inset:"凹边框",outset:"凸边框"},deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"适应宽度",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",mergeCell:"合并单元格",splitCell:"拆分单元格",tableProperty:"表格属性",cellProperty:"单元格属性"}});var KF={type:"table",elemToHtml:function(e,t){var r=e,n=r.width,o=void 0===n?"auto":n,i=r.columnWidths,a=r.height,s=void 0===a?"auto":a,u=null==i?void 0:i.map(function(e){return"<col width=".concat(e,"></col>")}).join(""),l=u?'<colgroup contentEditable="false">'.concat(u,"</colgroup>"):"";return'<table style="width: '.concat(o,";table-layout: fixed;height:").concat(s,'">').concat(l,"<tbody>").concat(t,"</tbody></table>")}},XF={type:"table-row",elemToHtml:function(e,t){var r=e.height,n=r?' style="height: '.concat(r,'px"'):"";return"<tr".concat(n,">").concat(t,"</tr>")}},ZF={type:"table-cell",elemToHtml:function(e,t){var r=e,n=r.colSpan,o=void 0===n?1:n,i=r.rowSpan,a=void 0===i?1:i,s=r.isHeader,u=void 0!==s&&s,l=r.width,c=void 0===l?"auto":l,d=r.hidden;if(void 0!==d&&d)return"";var f=u?"th":"td";return"<".concat(f,' colSpan="').concat(o,'" rowSpan="').concat(a,'" width="').concat(c,'">').concat(t,"</").concat(f,">")}},JF='<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>',QF={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function eM(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=QF,o=t.map(function(e){var t;return null===(t=null==n?void 0:n.blocks)||void 0===t?void 0:t[e]});return function(e){return function(e){return!ph.Editor.isEditor(e)&&ph.Element.isElement(e)&&"type"in e}(e)&&o.includes(e.type)}}function tM(e,t){for(var r=Ch(t,2),n=r[0],o=r[1],i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=Ch(ph.Node.common(e,n,o),2),u=s[0],l=s[1];return!!eM.apply(void 0,Ah([e],Ch(i),!1))(u,l)||!!ph.Editor.above(e,{match:eM.apply(void 0,Ah([e],Ch(i),!1)),at:l})}function rM(e,t){var r,n;void 0===t&&(t={});var o=[];try{for(var i=Sh(function(e,t){var r,n,o,i,a,s,u,l,c,d,f,h,p,g,m,v,y,b;return void 0===t&&(t={}),xh(this,function(w){switch(w.label){case 0:if(r=Ch(ph.Editor.nodes(e,{match:eM(e,"table"),at:t.at}),1),!(n=r[0]))return[2,[]];o=Ch(n,2),i=o[1],w.label=1;case 1:w.trys.push([1,6,7,8]),a=Sh(ph.Editor.nodes(e,{match:eM(e,"table"),at:i})),s=a.next(),w.label=2;case 2:if(s.done)return[3,5];u=Ch(s.value,2),l=u[1],c=[];try{for(y=void 0,d=Sh(ph.Editor.nodes(e,{match:eM(e,"tr"),at:l})),f=d.next();!f.done;f=d.next())h=Ch(f.value,2),p=h[1],c.push(Ah([],Ch(ph.Editor.nodes(e,{match:eM(e,"th","td"),at:p})),!1))}catch(e){y={error:e}}finally{try{f&&!f.done&&(b=d.return)&&b.call(d)}finally{if(y)throw y.error}}return[4,c];case 3:w.sent(),w.label=4;case 4:return s=a.next(),[3,2];case 5:return[3,8];case 6:return g=w.sent(),m={error:g},[3,8];case 7:try{s&&!s.done&&(v=a.return)&&v.call(a)}finally{if(m)throw m.error}return[7];case 8:return[2]}})}(e,{at:t.at})),a=i.next();!a.done;a=i.next()){for(var s=a.value,u=[],l=0,c=0;c<s.length;c+=1)s[c]&&(l=Math.max(l,s[c].length));for(c=0;c<s.length;c+=1)if(u[c]||(u[c]=[]),s[c])for(var d=0;d<s[c].length;d+=1)if(s[c][d]&&s[c][d][0]){for(var f=Ch(s[c][d],1)[0],h=f.rowSpan,p=void 0===h?1:h,g=f.colSpan,m=void 0===g?1:g,v=d;u[c]&&u[c][v];)v+=1;for(var y=0;y<m;y+=1)for(var b=0;b<p;b+=1){var w=c+b,E=v+y;u[w]||(u[w]=[]),u[w][E]||(u[w][E]=[s[c][d],{rtl:y+1,ltr:m-y,ttb:b+1,btt:p-b}])}}o.push.apply(o,Ah([],Ch(u),!1))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}var nM=function(){function e(e,t){this.x=e,this.y=t}return e.valueOf=function(e,t){return new this(e,t)},e.equals=function(e,t){return e.x===t.x&&e.y===t.y},e}();function oM(e){return e.length?e[0].tagName.toLowerCase():""}function iM(e,t){for(var r="",n=(e.attr("style")||"").split(";"),o=n.length,i=0;i<o;i+=1){var a=n[i];if(a){var s=a.split(":");s[0].trim()===t&&(r=s[1].trim())}}return r}ag&&_p.fn&&(_p.fn.append=ag),Wp&&_p.fn&&(_p.fn.on=Wp),vg&&_p.fn&&(_p.fn.focus=vg),$p&&_p.fn&&(_p.fn.attr=$p),Gp&&_p.fn&&(_p.fn.val=Gp),ng&&_p.fn&&(_p.fn.html=ng),qp&&_p.fn&&(_p.fn.dataset=qp),zp&&_p.fn&&(_p.fn.addClass=zp),jp&&_p.fn&&(_p.fn.removeClass=jp),dg&&_p.fn&&(_p.fn.children=dg),tg&&_p.fn&&(_p.fn.each=tg),cg&&_p.fn&&(_p.fn.find=cg),Vp&&_p.fn&&(_p.fn.data=Vp),Jp&&_p.fn&&(_p.fn.hide=Jp),Qp&&_p.fn&&(_p.fn.show=Qp);var aM=new WeakMap,sM=new WeakMap,uM=function(){function e(){this.title=Ly("tableModule.tableProperty"),this.iconSvg='<svg viewBox="0 0 20 20"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.menu="table",this.borderStyle=[{value:"none",label:Ly("tableModule.borderStyle.none")},{value:"solid",label:Ly("tableModule.borderStyle.solid")},{value:"dotted",label:Ly("tableModule.borderStyle.dotted")},{value:"dashed",label:Ly("tableModule.borderStyle.dashed")},{value:"double",label:Ly("tableModule.borderStyle.double")},{value:"groove",label:Ly("tableModule.borderStyle.groove")},{value:"ridge",label:Ly("tableModule.borderStyle.ridge")},{value:"inset",label:Ly("tableModule.borderStyle.inset")},{value:"outset",label:Ly("tableModule.borderStyle.outset")}],this.textAlignOptions=[{value:"left",label:Ly("justify.left"),svg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"center",label:Ly("justify.center"),svg:'<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"right",label:Ly("justify.right"),svg:'<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"justify",label:Ly("justify.justify"),svg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>'}]}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==bm.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){},e.prototype.getModalContentNode=function(e){return Ch(ph.Editor.nodes(e,{match:eM(e,"table")}),1)[0]},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,r=this.getModalContentNode(e);if(!r)return null;var n=Ch(r,2),o=n[0],i=n[1],a=_p('<div>\n <label class="babel-container">\n <span>'.concat(Ly("tableModule.modal.border"),'</span>\n <span class="babel-container-border">\n <select name="borderStyle">\n ').concat(this.borderStyle.map(function(e){return'<option value="'.concat(e.value,'">').concat(e.label,"</option>")}).join(""),'\n </select>\n <span class="color-group" data-mark="color">\n <span class="color-group-block"></span>\n <input name="borderColor" type="hidden">\n </span>\n <input name="borderWidth" type="number" placeholder="').concat(Ly("tableModule.modal.borderWidth"),'">\n </span>\n </label>\n <div class="babel-container">\n <span>').concat(Ly("tableModule.modal.bgColor"),'</span>\n <span class="babel-container-background">\n <span class="color-group" data-mark="bgColor">\n <span class="color-group-block"></span>\n <input name="backgroundColor" type="hidden">\n </span>\n </span>\n </div>\n <label class="babel-container">\n <span>').concat(Ly("tableModule.modal.align"),'</span>\n <span class="babel-container-align">\n <select name="textAlign">\n ').concat(this.textAlignOptions.map(function(e){return'<option value="'.concat(e.value,'">').concat(e.label,"</option>")}).join(""),'\n </select>\n </span>\n </label>\n <div class="button-container">\n <button type="button">').concat(Ly("tableModule.modal.ok"),"</button>\n </div>\n </div>"));a.find("[name]").each(function(e){_p(e).val(o[_p(e).attr("name")])});var s=function(e,t){t?_p(".color-group-block",e).css("background-color",t).empty():_p(".color-group-block",e).css("background-color","").html(JF)};return a.find(".color-group").each(function(r){var n=_p('[type="hidden"]',r).val()||"";s(r,n);var o=_p(r);o.on("click",function(){a.find(".color-group .w-e-drop-panel").hide();var i=o.data("panel");i?i.show():(i=t.getPanelContentElem(e,{mark:o.data("mark"),selectedColor:n,callback:function(e){_p('[type="hidden"]',r).val(e||""),s(r,e),i.hide()}}),o.append(i),o.data("panel",i))})}),a.find("button").on("click",function(){var r=Array.from(a.find("[name]")).reduce(function(e,t){return e[_p(t).attr("name")]=_p(t).val(),e},{}),n=aM.get(e);"cell"===t.menu&&(null==n?void 0:n.length)?n.forEach(function(t){t.forEach(function(t){ph.Transforms.setNodes(e,r,{at:t[0][1]})})}):ph.Transforms.setNodes(e,r,{at:i}),setTimeout(function(){e.focus()})}),a[0]},e.prototype.getPanelContentElem=function(e,t){var r=t.mark,n=t.selectedColor,o=t.callback,i=_p('<ul class="w-e-panel-content-color"></ul>');i.on("click","li",function(e){var t=e.target;if(t){e.preventDefault(),e.stopPropagation();var r=_p(t).attr("data-value");o(r)}});var a=e.getMenuConfig(r).colors;(void 0===a?[]:a).forEach(function(e){var t=_p('<div class="color-block" data-value="'.concat(e,'"></div>'));t.css("background-color",e);var r=_p('<li data-value="'.concat(e,'"></li>'));n===e&&r.addClass("active"),r.append(t),i.append(r)});var s="";"color"===r&&(s=Ly("tableModule.color.default")),"bgColor"===r&&(s=Ly("tableModule.color.clear"));var u=_p('\n <li data-value="" class="clear">\n '.concat(JF,"\n ").concat(s,"\n </li>\n "));i.prepend(u);var l=_p('<div class="w-e-drop-panel"></div>');return l.append(i),l},e}(),lM=function(e){function t(){var t=e.apply(this,Ah([],Ch(arguments),!1))||this;return t.title=Ly("tableModule.cellProperty"),t.iconSvg='<svg viewBox="0 0 20 20"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',t.tag="button",t.showModal=!0,t.modalWidth=300,t.menu="cell",t}return bh(t,e),t.prototype.getModalContentNode=function(e){return Ch(ph.Editor.nodes(e,{match:eM(e,"td")}),1)[0]},t}(uM),cM=function(){function e(){this.title=Ly("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!ph.Range.isCollapsed(t)||null==bm.getSelectedNodeByType(e,"table-cell"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var r=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-cell")},universal:!0}),1),n=Ch(r[0],2),o=n[0],i=n[1],a=bm.getParentNode(e,o),s=(null==a?void 0:a.children.length)||0;if(!a||s<=1)ph.Transforms.removeNodes(e,{mode:"highest"});else if(null!=bm.getParentNode(e,a)){var u=rM(e),l=0;e:for(var c=0;c<u.length;c+=1)for(var d=0;d<u[c].length;d+=1){var f=Ch(u[c][d],1),h=Ch(f[0],2)[1];if(ph.Path.equals(i,h)){l=d;break e}}ph.Editor.withoutNormalizing(e,function(){for(var t,r,n=new Set,o=new Set,i=0;i<u.length;i+=1)if(u[i]&&u[i][l]){var a=Ch(u[i][l],2),s=Ch(a[0],2)[1],c=a[1],d=c.rtl,f=c.ltr,h=c.ttb,p=c.btt,g=s.join(",");if(d>1||f>1||h>1||p>1){var m=i-(h-1),v=l-(d-1);if(m<0||m>=u.length||!u[m]||!u[m][v])continue;var y=Ch(u[m][v],1),b=Ch(y[0],2),w=b[0],E=b[1],x=E.join(",");if(!o.has(x)){o.add(x);var S=w.rowSpan,C=void 0===S?1:S,A=w.colSpan,D=void 0===A?1:A,T=Math.max(D-1,1);ph.Transforms.setNodes(e,{rowSpan:C,colSpan:T},{at:E})}}else n.add(g)}var k=Array.from(n);k.sort(function(e,t){var r=e.split(",").map(Number),n=t.split(",").map(Number);return r[r.length-2]!==n[n.length-2]?n[n.length-2]-r[r.length-2]:n[n.length-1]-r[r.length-1]});try{for(var O=Sh(k),N=O.next();!N.done;N=O.next()){var B=N.value.split(",").map(Number);try{ph.Editor.hasPath(e,B)&&ph.Transforms.removeNodes(e,{at:B})}catch(e){console.warn("删除单元格失败:",B,e)}}}catch(e){t={error:e}}finally{try{N&&!N.done&&(r=O.return)&&r.call(O)}finally{if(t)throw t.error}}var F=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table")},universal:!0}),1),M=F[0];if(M){var I=Ch(M,2),P=I[0],R=I[1],L=P.columnWidths,_=Ah([],Ch(void 0===L?[]:L),!1);_.splice(l,1),ph.Transforms.setNodes(e,{columnWidths:_},{at:R})}})}}},e}(),dM=function(){function e(){this.title=Ly("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!ph.Range.isCollapsed(t)||null==bm.getSelectedNodeByType(e,"table-row"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var r=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-row")},universal:!0}),1),n=Ch(r[0],2),o=n[0],i=n[1],a=bm.getParentNode(e,o);if(((null==a?void 0:a.children.length)||0)<=1)ph.Transforms.removeNodes(e,{mode:"highest"});else{var s=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-cell")},universal:!0}),1),u=Ch(s[0],2)[1],l=rM(e),c=0;e:for(var d=0;d<l.length;d+=1)for(var f=0;f<l[d].length;f+=1){var h=Ch(l[d][f],1),p=Ch(h[0],2)[1];if(ph.Path.equals(u,p)){c=d;break e}}ph.Editor.withoutNormalizing(e,function(){for(var t,r,n=[],o=0;o<l[c].length;o+=1){var a=Ch(l[c][o],2),s=Ch(a[0],1)[0].hidden,u=a[1],d=u.ttb,f=u.btt,h=u.rtl;if(d>1||f>1){var p=c-(d-1);if(p<0||p>=l.length||!l[p]||!l[p][o])continue;var g=Ch(l[p][o],1),m=Ch(g[0],2),v=m[0],y=m[1],b=v,w=b.rowSpan,E=void 0===w?1:w,x=b.colSpan,S=void 0===x?1:x;if(s)ph.Transforms.setNodes(e,{rowSpan:Math.max(E-1,1),colSpan:S},{at:y});else if(1===d&&1===h){if(c+1<l.length&&E>1){var C={type:"table-cell",rowSpan:E-1,colSpan:S,hidden:!1,children:b.children.map(function(e){return wh({},e)})};b.isHeader&&(C.isHeader=b.isHeader),b.width&&(C.width=b.width),b.backgroundColor&&(C.backgroundColor=b.backgroundColor),b.borderWidth&&(C.borderWidth=b.borderWidth),b.borderStyle&&(C.borderStyle=b.borderStyle),b.borderColor&&(C.borderColor=b.borderColor),b.textAlign&&(C.textAlign=b.textAlign),n.push({cell:C,columnIndex:o})}else ph.Transforms.setNodes(e,{rowSpan:Math.max(E-1,1),colSpan:S},{at:y})}else ph.Transforms.setNodes(e,{rowSpan:Math.max(E-1,1),colSpan:S},{at:y})}}if(ph.Transforms.removeNodes(e,{at:i}),n.length>0){var A=i;try{n.sort(function(e,t){return e.columnIndex-t.columnIndex});try{for(var D=Sh(n),T=D.next();!T.done;T=D.next()){var k=T.value,O=k.cell,N=k.columnIndex;try{var B=Ah(Ah([],Ch(A),!1),[N],!1);ph.Transforms.insertNodes(e,O,{at:B})}catch(t){try{var F=Ch(ph.Editor.node(e,A),1)[0].children.length,M=Ah(Ah([],Ch(A),!1),[F],!1);ph.Transforms.insertNodes(e,O,{at:M})}catch(e){console.warn("插入新单元格失败:",e)}}}}catch(e){t={error:e}}finally{try{T&&!T.done&&(r=D.return)&&r.call(D)}finally{if(t)throw t.error}}}catch(e){console.warn("插入新单元格失败:",e)}}})}}},e}(),fM=function(){function e(){this.title=Ly("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==bm.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||ph.Transforms.removeNodes(e,{mode:"highest"})},e}(),hM=function(){function e(){this.title=Ly("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return!1},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!ph.Range.isCollapsed(t)||null==bm.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var r=bm.getSelectedNodeByType(e,"table");if(r){var n=r.columnWidths,o=void 0===n?[]:n,i=bm.toDOMNode(e,r).querySelector(".table-container");if(i&&0!==o.length){var a=i.clientWidth,s=o.reduce(function(e,t){return e+t},0),u=o.map(function(e){var t=e/s;return Math.floor(t*a)}),l=e.getMenuConfig("insertTable").minWidth,c=parseInt(String(void 0===l?60:l),10)||60,d=u.map(function(e){return Math.max(c,e)}),f=d.reduce(function(e,t){return e+t},0);if(f>a){var h=a/f,p=d.map(function(e){return Math.max(c,Math.floor(e*h))});m={width:"auto",columnWidths:p};ph.Transforms.setNodes(e,m,{mode:"highest"})}else{p=Ah([],Ch(d),!1);var g=a-f-1;g>0&&p.length>0&&(p[p.length-1]+=g);m={width:"auto",columnWidths:p};ph.Transforms.setNodes(e,m,{mode:"highest"})}}else{var m={width:"auto"};ph.Transforms.setNodes(e,m,{mode:"highest"})}}}},e}();function pM(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function gM(e){return pM(e).every(function(e){return!!e.isHeader})}var mM=function(){function e(){this.title=Ly("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;if(null==t)return!0;if(!ph.Range.isCollapsed(t))return!0;var r=bm.getSelectedNodeByType(e,"table");if(null==r)return!0;try{var n=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-cell")},universal:!0}),1),o=n[0];if(!o)return!0;for(var i=Ch(o,2)[1],a=rM(e),s=-1,u=0;u<a.length;u+=1){for(var l=0;l<a[u].length;l+=1){var c=Ch(a[u][l],1),d=Ch(c[0],2)[1];if(ph.Path.equals(i,d)){s=l;break}}if(-1!==s)break}if(-1===s)return!0;var f=r.columnWidths,h=(void 0===f?[]:f)[s];if(h&&h<20)return!0}catch(e){return!0}return!1},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var r=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-cell")},universal:!0}),1),n=Ch(r[0],2),o=n[0],i=n[1],a=bm.getParentNode(e,o);if(null!=a){var s=bm.getParentNode(e,a);if(null!=s){for(var u=rM(e),l=0,c=0;c<u.length;c+=1)for(var d=0;d<u[c].length;d+=1){var f=Ch(u[c][d],1),h=Ch(f[0],2)[1];if(ph.Path.equals(i,h)){l=d;break}}ph.Editor.withoutNormalizing(e,function(){for(var t=new Set,r=new Set,n=0;n<u.length;n+=1)if(u[n]&&u[n][l]){var o=Ch(u[n][l],2);Ch(o[0],1);var i=o[1],a=i.rtl,c=i.ltr,d=i.ttb,f=i.btt;if(a>1||c>1||d>1||f>1){var h=n-(d-1),p=l-(a-1);if(h<0||h>=u.length||!u[h]||!u[h][p])continue;var g=Ch(u[h][p],1),m=Ch(g[0],2),v=m[0],y=m[1],b=y.join(",");if(t.has(b))r.add(n);else{t.add(b);var w=v.rowSpan,E=void 0===w?1:w,x=v.colSpan,S=(void 0===x?1:x)+1;v.hidden||ph.Transforms.setNodes(e,{colSpan:S},{at:y});for(var C=0;C<E;C+=1)r.add(h+C)}}}for(n=0;n<u.length;n+=1)if(!r.has(n)&&u[n]&&u[n][l]){var A={type:"table-cell",children:[{text:""}]};0===n&&gM(s)&&(A.isHeader=!0);var D=Ch(u[n][l],1),T=Ch(D[0],2)[1];ph.Transforms.insertNodes(e,A,{at:T})}var k=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table")},universal:!0}),1),O=k[0];if(O){var N=Ch(O,2),B=N[0],F=N[1],M=B.columnWidths,I=void 0===M?[]:M,P=Ah([],Ch(I),!1),R=e.getMenuConfig("insertTable").minWidth,L=void 0===R?60:R,_=I[l]||parseInt(L,10)||60,z=Math.floor(_/2),j=_-z;P.splice(l,0,z),P[l+1]=j,ph.Transforms.setNodes(e,{columnWidths:P},{at:F})}})}}}},e}(),vM=function(){function e(){this.title=Ly("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!ph.Range.isCollapsed(t)||null==bm.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){var r;if(!this.isDisabled(e)){var n=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-cell")},universal:!0}),1),o=Ch(n[0],2)[1],i=rM(e),a=0;e:for(var s=0;s<i.length;s+=1)for(var u=0;u<i[s].length;u+=1){var l=Ch(i[s][u],1),c=Ch(l[0],2)[1];if(ph.Path.equals(o,c)){a=s;break e}}var d=(null===(r=i[a])||void 0===r?void 0:r.length)||0;0!==d&&ph.Editor.withoutNormalizing(e,function(){for(var t=a+1,r=t>=0&&t<i.length,n=[],s=0;r&&s<i[a].length;s+=1){var u=Ch(i[a][s],2)[1],l=u.ttb,c=u.btt;if(l>1||c>1){var f=a-(l-1);if(f<0||f>=i.length||!i[f]||!i[f][s])continue;var h=Ch(i[f][s],1),p=Ch(h[0],2),g=p[0],m=p[1],v=g.rowSpan||1;n.push(s),g.hidden||ph.Transforms.setNodes(e,{rowSpan:v+1},{at:m})}}for(var y=(e.getMenuConfig("insertTable")||{}).minRowHeight,b={type:"table-row",children:[],height:parseInt((void 0===y?30:y).toString(),10)||30},w=0;w<d;w+=1)if(!n.includes(w)){b.children.push({type:"table-cell",children:[{text:""}]})}var E=ph.Path.parent(o),x=ph.Path.next(E);ph.Transforms.insertNodes(e,b,{at:x})})}},e}();var yM=function(){function e(){this.title=Ly("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!ph.Range.isCollapsed(t)||!!bm.getSelectedElems(e).some(function(t){var r=bm.getNodeType(t);return"pre"===r||("table"===r||("list-item"===r||!!e.isVoid(t)))}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var r=_p('<div class="w-e-panel-content-table"></div>'),n=_p("<span>0 × 0</span>"),o=_p("<table></table>"),i=0;i<10;i+=1){for(var a=_p("<tr></tr>"),s=0;s<10;s+=1){var u=_p("<td></td>");u.attr("data-x",s.toString()),u.attr("data-y",i.toString()),a.append(u),u.on("mouseenter",function(e){var t=e.target;if(null!=t){var r=_p(t).dataset(),i=r.x,a=r.y;n[0].innerHTML="".concat(i+1," × ").concat(a+1),o.children().each(function(e){_p(e).children().each(function(e){var t=_p(e),r=t.dataset(),n=r.x,o=r.y;n<=i&&o<=a?t.addClass("active"):t.removeClass("active")})})}}),u.on("click",function(r){r.preventDefault();var n=r.target;if(null!=n){var o=_p(n).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}})}o.append(a)}return r.append(o),r.append(n),this.$content=r,r[0]},e.prototype.insertTable=function(e,t,r){var n=parseInt(t,10),o=parseInt(r,10);if(n&&o&&!(n<=0||o<=0)){if(bm.isSelectedEmptyParagraph(e)&&ph.Transforms.removeNodes(e,{mode:"highest"}),0===e.children.length){ph.Transforms.insertNodes(e,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}var i=function(e,t,r){for(var n,o=[],i=e.getMenuConfig("insertTable"),a=i.minWidth,s=void 0===a?60:a,u=i.minRowHeight,l=void 0===u?30:u,c=i.tableFullWidth,d=i.tableHeader,f=Array(r).fill(parseInt(s,10)||60),h=0;h<t;h+=1){for(var p=[],g=0;g<r;g+=1){var m={type:"table-cell",children:[{text:""}]};0===h&&(m.isHeader=null===(n=null==d?void 0:d.selected)||void 0===n||n),p.push(m)}o.push({type:"table-row",children:p,height:parseInt(l,10)||30})}return{type:"table",width:(null==c?void 0:c.selected)?"100%":"auto",children:o,columnWidths:f}}(e,n,o);ph.Transforms.insertNodes(e,i,{mode:"highest"})}},e}(),bM={isInTable:function(e,t){return void 0===t&&(t={}),!!Ch(ph.Editor.nodes(e,{match:eM(e,"table"),at:t.at}),1)[0]},selection:function(e){var t,r,n,o,i,a,s,u;return xh(this,function(l){switch(l.label){case 0:t=aM.get(e),r=0,l.label=1;case 1:if(!(t&&r<t.length))return[3,4];for(n=[],o=0;o<t[r].length;o+=1)i=Ch(t[r][o],2),a=i[0],s=i[1],u=s.ltr,1===s.ttb&&n.push(a),o+=u-1;return[4,n];case 2:l.sent(),l.label=3;case 3:return r+=1,[3,1];case 4:return[2]}})},unselect:function(e){sM.delete(e),aM.delete(e)},isSelected:function(e,t){var r=sM.get(e);return!!r&&r.has(t)},hasSelected:function(e){return aM.has(e)}},wM=function(){function e(){this.title=Ly("tableModule.mergeCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return!this.canMerge(e)},e.prototype.exec=function(e,t){this.isDisabled(e)||(this.merge(e),bM.unselect(e))},e.prototype.canMerge=function(e){var t=aM.get(e);if(!t||!t.length)return!1;var r=Ch(t[t.length-1][t[t.length-1].length-1],1),n=Ch(r[0],2)[1],o=Ch(t[0][0],1);return!!tM(e,[Ch(o[0],2)[1],n],"table")},e.prototype.merge=function(e){if(this.canMerge(e)){var t=aM.get(e);if(t&&t.length){var r=Ch(t[0][0],1),n=Ch(r[0],2)[1],o=Ch(ph.Node.children(e,n,{reverse:!0}),1),i=Ch(o[0],2)[1];ph.Editor.withoutNormalizing(e,function(){for(var r,o,a,s,u,l,c=new Map,d=[],f=1/0,h=-1/0,p=1/0,g=-1/0,m=0;m<t.length;m+=1)for(var v=0;v<t[m].length;v+=1){var y=Ch(t[m][v],2),b=Ch(y[0],2),w=b[0],E=b[1],x=y[1].ttb,S=E.join(",");if(1===x&&!c.has(S)){c.set(S,{path:E,x:m,y:v,element:w});var C=w.rowSpan,A=void 0===C?1:C,D=w.colSpan,T=m,k=m+A-1,O=v,N=v+(void 0===D?1:D)-1;f=Math.min(f,T),h=Math.max(h,k),p=Math.min(p,O),g=Math.max(g,N)}}var B=h-f+1,F=g-p+1;try{for(var M=Sh(c),I=M.next();!I.done;I=M.next()){E=Ch(I.value,2)[1].path;ph.Path.equals(n,E)||d.push(E)}}catch(e){r={error:e}}finally{try{I&&!I.done&&(o=M.return)&&o.call(M)}finally{if(r)throw r.error}}d.sort(function(e,t){for(var r=0;r<Math.min(e.length,t.length);r+=1)if(e[r]!==t[r])return t[r]-e[r];return t.length-e.length});try{for(var P=Sh(d),R=P.next();!R.done;R=P.next()){E=R.value;try{if(!ph.Editor.hasPath(e,E))continue;try{for(var L=(u=void 0,Sh(ph.Node.children(e,E,{reverse:!0}))),_=L.next();!_.done;_=L.next()){var z=Ch(_.value,2)[1];ph.Transforms.moveNodes(e,{to:ph.Path.next(i),at:z})}}catch(e){u={error:e}}finally{try{_&&!_.done&&(l=L.return)&&l.call(L)}finally{if(u)throw u.error}}ph.Transforms.removeNodes(e,{at:E})}catch(e){}}}catch(e){a={error:e}}finally{try{R&&!R.done&&(s=P.return)&&s.call(P)}finally{if(a)throw a.error}}ph.Transforms.setNodes(e,{rowSpan:B,colSpan:F},{at:n})})}}},e}(),EM=function(){function e(){this.title=Ly("tableModule.splitCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M362.667 494.933v53.334l25.6-25.6zm0-241.066L460.8 352V78.933H57.6v98.134h305.067zm0 535.466v57.6H57.6v98.134h403.2V691.2zM661.333 494.933v53.334l-25.6-25.6zm0-241.066L563.2 352V78.933h403.2v98.134H661.333zm0 535.466v57.6H966.4v98.134H563.2V691.2z"/><path d="M753.067 341.333 693.333 281.6 512 460.8 330.667 281.6l-59.734 59.733 181.334 181.334L270.933 704l59.734 59.733L512 582.4l181.333 181.333L753.067 704 571.733 522.667z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-cell")}}),1),r=t[0];if(!r)return!0;var n=Ch(r,1)[0],o=n.rowSpan,i=void 0===o?1:o,a=n.colSpan;return!(i>1||(void 0===a?1:a)>1)},e.prototype.exec=function(e,t){this.isDisabled(e)||this.split(e)},e.prototype.split=function(e,t){void 0===t&&(t={});var r=Ch(ph.Editor.nodes(e,{match:eM(e,"table","th","td"),at:t.at}),2),n=r[0],o=r[1];if(n&&o){var i=gM(Ch(n,1)[0]),a=Ch(o,2),s=a[0],u=a[1],l=s.rowSpan,c=void 0===l?1:l,d=s.colSpan,f=void 0===d?1:d;1===c&&1===f||ph.Editor.withoutNormalizing(e,function(){ph.Transforms.setNodes(e,{rowSpan:1,colSpan:1},{at:u});for(var t=1;t<f;t+=1){var r={type:"table-cell",children:[{text:""}]};0===u[u.length-2]&&i&&(r.isHeader=!0);var n=u.slice(0,-1),o=u[u.length-1]+t,a=Ah(Ah([],Ch(n),!1),[o],!1);try{ph.Transforms.insertNodes(e,r,{at:a})}catch(t){try{var s=Ch(ph.Editor.node(e,n),1)[0].children.length,l=Ah(Ah([],Ch(n),!1),[s],!1);ph.Transforms.insertNodes(e,r,{at:l})}catch(e){console.warn("插入同行单元格失败: ".concat(e instanceof Error?e.message:String(e)))}}}for(var d=1;d<c;d+=1){var h=u[u.length-2]+d,p=Ah(Ah([],Ch(u.slice(0,-2)),!1),[h],!1);try{var g=Ch(ph.Editor.node(e,p),1)[0];if(!g){console.warn("目标行 ".concat(h," 不存在"));continue}for(t=0;t<f;t+=1){r={type:"table-cell",children:[{text:""}]},o=u[u.length-1]+t,a=Ah(Ah([],Ch(p),!1),[o],!1);try{var m=g.children.length;if(o>=m){var v=Ah(Ah([],Ch(p),!1),[m],!1);ph.Transforms.insertNodes(e,r,{at:v})}else ph.Transforms.insertNodes(e,r,{at:a})}catch(t){try{var y=g.children.length;l=Ah(Ah([],Ch(p),!1),[y],!1);ph.Transforms.insertNodes(e,r,{at:l})}catch(e){console.warn("插入单元格到第".concat(d,"行失败: ").concat(e instanceof Error?e.message:String(e)))}}}}catch(e){console.warn("处理第".concat(d,"行时出错: ").concat(e instanceof Error?e.message:String(e)))}}})}},e}(),xM=function(){function e(){this.title=Ly("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=bm.getSelectedNodeByType(e,"table");return null!=t&&gM(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!ph.Range.isCollapsed(t)||null==bm.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var r=!t,n=bm.getSelectedNodeByType(e,"table");if(null!=n)pM(n).forEach(function(t){return ph.Transforms.setNodes(e,{isHeader:r},{at:bm.findPath(e,t)})})}},e}(),SM={key:"insertTable",factory:function(){return new yM}},CM={key:"deleteTable",factory:function(){return new fM}},AM={key:"insertTableRow",factory:function(){return new vM}},DM={key:"deleteTableRow",factory:function(){return new dM}},TM={key:"insertTableCol",factory:function(){return new mM}},kM={key:"deleteTableCol",factory:function(){return new cM}},OM={key:"tableHeader",factory:function(){return new xM}},NM={key:"tableFullWidth",factory:function(){return new hM}},BM={key:"mergeTableCell",factory:function(){return new wM}},FM={key:"splitTableCell",factory:function(){return new EM}},MM={key:"setTableProperty",factory:function(){return new uM}},IM={key:"setTableCellProperty",factory:function(){return new lM}};var PM={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=_p(e),o=n.text().replace(/\s+/gm," ").trim();0===(t=t.filter(function(e){return"paragraph"===bm.getNodeType(e)||(!!ph.Text.isText(e)||!!r.isInline(e))})).length&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var i=parseInt(n.attr("colSpan")||"1",10),a=parseInt(n.attr("rowSpan")||"1",10),s="none"===iM(n,"display")&&0===o.length,u=n.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===oM(n),colSpan:i,rowSpan:a,width:u,children:t,hidden:s}}};var RM={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,r){for(var n=_p(e),o=[],i=0;i<t.length;i+=1){var a=t[i];if("table-cell"===bm.getNodeType(a)){var s=a;if(s.hidden)continue;o.push(s)}}return{type:"table-row",height:parseInt(iM(n,"height")||"0",10)||void 0,children:o}}};var LM,_M={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n,o,i=_p(e),a="auto";"100%"===iM(i,"width")&&(a="100%"),"100%"===i.attr("width")&&(a="100%");var s={type:"table",width:a,height:parseInt(iM(i,"height")||"0",10),children:t.filter(function(e){return"table-row"===bm.getNodeType(e)})},u=(null===(n=i.find("tr")[0])||void 0===n?void 0:n.children)||[],l=function(e){if(!e||0===e.length)return[];var t=[];return Array.from(e).forEach(function(e){var r=parseInt(e.getAttribute("span")||"1",10),n=parseInt(e.getAttribute("width")||iM(_p(e),"width")||"90",10);if(!Number.isNaN(n))for(var o=0;o<r;o+=1)t.push(n)}),t}((null===(o=i.find("colgroup")[0])||void 0===o?void 0:o.children)||null);if(l.length>0)s.columnWidths=l;else if(u.length>0){var c=[];Array.from(u).forEach(function(e){var t=parseInt(_p(e).attr("colSpan")||"1",10),r=parseInt(iM(_p(e),"width")||"90",10);c.push(r);for(var n=1;n<t;n+=1)c.push(90)}),s.columnWidths=c}return s}},zM=null===(LM=null===window||void 0===window?void 0:window.getComputedStyle(document.documentElement))||void 0===LM?void 0:LM.getPropertyValue("--w-e-textarea-border-color");function jM(e){var t=e.selection;if(null==t)return!1;var r=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-cell")}}),1),n=r[0];if(n){var o=Ch(n,2)[1],i=ph.Editor.start(e,o);if(ph.Point.equals(t.anchor,i))return!0}return!1}function HM(e,t){var r=t.offset;if(0===r)return!1;var n=ph.Editor.node(e,t);if(!ph.Text.isText(n[0]))return!1;var o=ph.Node.string(n[0]);return!(r>=o.length)&&("\n"===o[r-1]&&"\r"===o[r])}function $M(e,t,r){var n=e.selection;if(null==n||"line"===t)return!1;var o=Ch(ph.Editor.nodes(e,{match:function(e){return bm.checkNodeType(e,"table-cell")}}),1),i=o[0],a=n.anchor;if("backward"===r&&0===n.anchor.offset&&(a=ph.Editor.before(e,n)),"forward"===r&&ph.Editor.isEnd(e,n.anchor,n.anchor.path)&&(a=ph.Editor.after(e,n)),null==a)return!1;var s=ph.Editor.above(e,{at:a,match:function(e){return bm.checkNodeType(e,"table-cell")}});if(null==s||null==i||!ph.Path.equals(s[1],i[1]))return!1;var u=ph.Editor.node(e,a);if(!ph.Text.isText(u[0])||u[0].text.length<2)return!1;var l="backward"===r?[a.offset-2,a.offset]:[a.offset,a.offset+2],c=ph.Node.string(u[0]);return"\n\r"===c.slice.apply(c,Ah([],Ch(l),!1))?(ph.Transforms.insertText(e,c.slice(0,l[0])+c.slice(l[1]),{at:{anchor:ph.Editor.start(e,a.path),focus:ph.Editor.end(e,a.path)}}),!0):!!HM(e,a)&&(ph.Transforms.insertText(e,c.slice(0,n.anchor.offset-1)+c.slice(n.anchor.offset+1),{at:{anchor:ph.Editor.start(e,a.path),focus:ph.Editor.end(e,a.path)}}),!0)}function UM(e,t){var r=ph.Editor.nodes(e,{at:t,match:function(e){return"table"===bm.getNodeType(e)}});return!!Ah([],Ch(r),!1).find(function(){return!0})}function VM(e){var t,r;try{for(var n=Sh(["paragraph","header1","header2","header3","header4","header5","header6","blockquote","list-item","todo","divider"]),o=n.next();!o.done;o=n.next()){var i=o.value;if(bm.getSelectedNodeByType(e,i))return!0}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return!1}function qM(e){var t=document.createElement("div");t.innerHTML=e;var r=[],n=!1;return Array.from(t.childNodes).forEach(function(e){if(e.nodeType!==Node.TEXT_NODE){if(!(e instanceof HTMLElement)||"p"!==e.tagName.toLowerCase())return r.push(e.cloneNode(!0)),void(n=!0);var t=e.innerHTML,o=t.trim();if(o&&" "!==o){n&&r.push(document.createElement("br"));var i=document.createElement("div");i.innerHTML=t,Array.from(i.childNodes).forEach(function(e){r.push(e.cloneNode(!0))}),n=!0}}else(e.textContent||"").trim()&&(r.push(e.cloneNode(!0)),n=!0)}),t.replaceChildren.apply(t,Ah([],Ch(r),!1)),t.innerHTML}var GM={selector:"table",preParseHtml:function(e){var t=_p(e);if("table"!==oM(t))return e;var r=t.find("tbody");if(0===r.length)return e;var n=t.find("tr");t.append(n),r.remove();for(var o=t.find("td, th"),i=0;i<o.length;i+=1){var a=_p(o[i]);a.attr("width","auto");var s=a.html()||"";s=qM(s=(s=s.replace(/<o:p[^>]*>[\s\S]*?<\/o:p>/gi,"")).replace(/<\/o:p>/gi,"")),a.html(s)}return t[0]}};function WM(e){var t,r,n=[],o=0;try{for(var i=Sh(e),a=i.next();!a.done;a=i.next()){o+=a.value,n.push(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function YM(e){var t,r,n=[],o=e.reduce(function(e,t){return e+t},0);try{for(var i=Sh(e),a=i.next();!a.done;a=i.next()){var s=a.value;n.push(s/o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}var KM=null;var XM=!1,ZM=!1,JM=0,QM=null,eI=_p(window);eI.on("mousedown",function(e){var t=e.target;if(t.closest('[data-block-type="table-cell"]'))XM=!0;else if("DIV"===t.tagName&&t.closest(".column-resizer-item")){if(null===QM)return;ZM=!0;var r=e.clientX;JM=r,document.body.style.cursor="col-resize",e.preventDefault()}eI.on("mousemove",tI),eI.on("mouseup",rI)});var tI=lb(function(e){if(ZM&&null!==QM){e.preventDefault();var t,r=e.clientX,n=r-JM,o=Ch(ph.Editor.nodes(QM,{match:eM(QM,"table")}),1),i=Ch(o[0],1)[0],a=i.columnWidths,s=void 0===a?[]:a,u=i.resizingIndex,l=void 0===u?-1:u,c=bm.getSelectedNodeByType(QM,"table"),d=bm.toDOMNode(QM,c).querySelector(".table");if(d)t=function(e,t,r,n,o){var i=Ah([],Ch(e),!1);if(t<0||t>=e.length)return i;var a=o.getMenuConfig("insertTable").minWidth,s=parseInt((void 0===a?60:a).toString(),10)||60,u=r-(0===t?0:n[t-1]),l=Math.max(s,u);return i[t]=Math.floor(100*l)/100,i}(s,l,r-d.getBoundingClientRect().left,WM(s),QM);else t=function(e,t,r,n){var o=Ah([],Ch(e),!1),i=n.getMenuConfig("insertTable").minWidth,a=parseInt((void 0===i?60:i).toString(),10)||60,s=o[t],u=Math.max(a,s+r);return o[t]=Math.floor(100*u)/100,o}(s,l,n,QM);ph.Transforms.setNodes(QM,{columnWidths:t},{mode:"highest"})}},100);function rI(e){XM=!1,ZM=!1,QM=null,document.body.style.cursor="",eI.off("mousemove",tI),eI.off("mouseup",rI)}function nI(e,t){"mouseenter"===t.type?ph.Transforms.setNodes(e,{isResizing:!0},{mode:"highest"}):ph.Transforms.setNodes(e,{isResizing:!1},{mode:"highest"})}function oI(e){var t,r,n=[],o=0;try{for(var i=Sh(e),a=i.next();!a.done;a=i.next()){o+=a.value,n.push(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}var iI=!1,aI=0,sI=null,uI=_p(window);var lI=lb(function(e){if(iI&&null!==sI){e.preventDefault();var t,r=e.clientY,n=r-aI,o=Ch(ph.Editor.nodes(sI,{match:eM(sI,"table")}),1),i=Ch(o[0],1)[0],a=i.children,s=i.resizingRowIndex,u=void 0===s?-1:s,l=a.map(function(e){return e.height||30}),c=bm.getSelectedNodeByType(sI,"table"),d=bm.toDOMNode(sI,c).querySelector(".table");if(d)t=function(e,t,r,n,o){var i=Ah([],Ch(e),!1);if(t<0||t>=e.length)return i;var a=(o.getMenuConfig("insertTable")||{}).minRowHeight,s=parseInt((void 0===a?30:a).toString(),10)||30,u=r-(0===t?0:n[t-1]),l=Math.max(s,u);return i[t]=Math.floor(100*l)/100,i}(l,u,r-d.getBoundingClientRect().top,oI(l),sI);else t=function(e,t,r,n){var o=Ah([],Ch(e),!1),i=(n.getMenuConfig("insertTable")||{}).minRowHeight,a=parseInt((void 0===i?30:i).toString(),10)||30,s=o[t],u=Math.max(a,s+r);return o[t]=Math.floor(100*u)/100,o}(l,u,n,sI);var f=bm.getSelectedNodeByType(sI,"table");if(f&&u>=0&&u<t.length){var h=Ah(Ah([],Ch(bm.findPath(sI,f)),!1),[u],!1);try{ph.Transforms.setNodes(sI,{height:t[u]},{at:h})}catch(e){console.warn("更新行高度失败:",e)}}}},100);function cI(e){iI=!1,sI=null,document.body.style.cursor="",uI.off("mousemove",lI),uI.off("mouseup",cI)}function dI(e,t){"mouseenter"===t.type?ph.Transforms.setNodes(e,{isResizingRow:!0},{mode:"highest"}):ph.Transforms.setNodes(e,{isResizingRow:!1},{mode:"highest"})}uI.on("mousedown",function(e){var t=e.target;if("DIV"===t.tagName&&t.closest(".row-resizer-item")){if(null===sI)return;iI=!0;var r=e.clientY;aI=r,document.body.style.cursor="row-resize",e.preventDefault()}uI.on("mousemove",lI),uI.on("mouseup",cI)});var fI={type:"table",renderElem:function(e,t,r){var n=function(e,t){if(e.isDisabled())return!1;var r=e.selection;if(null==r)return!0;if(ph.Range.isCollapsed(r))return!0;var n=r.anchor,o=r.focus,i=bm.findPath(e,t),a=ph.Editor.start(e,i),s=ph.Editor.end(e,i),u=ph.Point.compare(n,s)<=0&&ph.Point.compare(n,a)>=0,l=ph.Point.compare(o,s)<=0&&ph.Point.compare(o,a)>=0;return!!(u&&l&&ph.Path.equals(n.path.slice(0,3),o.path.slice(0,3)))}(r,e),o=e,i=o.width,a=void 0===i?"auto":i,s=o.height,u=o.columnWidths,l=void 0===u?[]:u,c=o.scrollWidth,d=void 0===c?0:c,f=o.isHoverCellBorder,h=o.resizingIndex,p=o.isResizing,g=o.isHoverRowBorder,m=o.resizingRowIndex,v=o.isResizingRow,y=bm.isNodeSelected(r,e),b=Ch(bM.selection(r),1)[0],w=YM(l),E=hw("div",{className:"table-container","data-selected":y,on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!r.isDisabled()){t.target.closest('[data-block-type="table-cell"]')&&bM.unselect(r);var n=bm.findPath(r,e),o=ph.Editor.start(r,n),i=r.selection;if(null!=i)i.anchor.path[0]!==n[0]&&"DIV"===t.target.tagName&&r.select(o);else r.select(o)}}}},hw("table",{width:a,contentEditable:n,className:"table ".concat(b?"table-selection-none":""),style:{width:"100%"===a?a:"".concat(l.reduce(function(e,t){return e+t},0),"px")},on:{mousemove:Uv(function(t){bM.hasSelected(r)||(function(e,t,r,n){if(!e.isDisabled()&&!XM&&!ZM){var o=t,i=o.width,a=void 0===i?"auto":i,s=o.columnWidths,u=void 0===s?[]:s,l=o.isHoverCellBorder,c=o.resizingIndex,d=r.clientX,f=r.target;if(Ag(f)&&d>(g=f.getBoundingClientRect()).x+5&&d<g.x+g.width-5)return void(l&&ph.Transforms.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(Ag(f)){var h=f.closest(".table");if(h)for(var p=r.clientX,g=h.getBoundingClientRect(),m="100%"===a?YM(u).map(function(e){return e*n}):u,v=WM(m),y=0;y<v.length;y+=1)if(p-g.x>=v[y]-5&&p-g.x<v[y]+5){if(c===y)return;return void ph.Transforms.setNodes(e,{isHoverCellBorder:!0,resizingIndex:y},{mode:"highest"})}}!0===l&&ph.Transforms.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"})}}(r,e,t,d),function(e,t,r){if(!e.isDisabled()&&!iI){var n=t,o=n.children,i=n.isHoverRowBorder,a=n.resizingRowIndex,s=r.target;if(Ag(s)){var u=s.closest(".table");if(u)for(var l=r.clientY,c=u.getBoundingClientRect(),d=oI(o.map(function(e){return e.height||30})),f=0;f<d.length;f+=1)if(l-c.y>=d[f]-5&&l-c.y<d[f]+5){if(a===f)return;return void ph.Transforms.setNodes(e,{isHoverRowBorder:!0,resizingRowIndex:f},{mode:"highest"})}}!0===i&&ph.Transforms.setNodes(e,{isHoverRowBorder:!1,resizingRowIndex:-1},{mode:"highest"})}}(r,e,t))},25)}},hw("colgroup",{contentEditable:!1},l.map(function(e){return hw("col",{width:e})})),hw("tbody",null,t)),hw("div",{className:"column-resizer",contentEditable:!1},l.map(function(e,t){var n=e;return"100%"===a&&(n=w[t]*d),hw("div",{className:"column-resizer-item",style:{minWidth:"".concat(n,"px")}},hw("div",{className:"resizer-line-hotzone ".concat(f&&t===h?"visible ":"").concat(p&&t===h?"highlight":""),style:{height:"".concat(s,"px")},on:{mouseenter:function(e){return nI(r,e)},mouseleave:function(e){return nI(r,e)},mousedown:function(e){return function(e){ZM||(QM=e)}(r)}}},hw("div",{className:"resizer-line"})))})),hw("div",{className:"row-resizer",contentEditable:!1},e.children.map(function(e,t){var n=l.reduce(function(e,t){return e+t},0),o=e.height||30;return hw("div",{className:"row-resizer-item",style:{minHeight:"".concat(o,"px")}},hw("div",{className:"resizer-line-hotzone-horizontal ".concat(g&&t===m?"visible ":"").concat(v&&t===m?"highlight":""),style:{width:"".concat(n,"px")},on:{mouseenter:function(e){return dI(r,e)},mouseleave:function(e){return dI(r,e)},mousedown:function(e){return function(e){iI||(sI=e)}(r)}}},hw("div",{className:"resizer-line-horizontal"})))}))),x=Wb("div",{hook:{insert:function(e){var t=e.elm;return function(e,t){if(Ag(t)){var r=t.querySelector("table");r&&(KM=new ResizeObserver(function(t){var r=Ch(t,1)[0].contentRect;ph.Transforms.setNodes(e,{scrollWidth:r.width,height:r.height},{mode:"highest"})}),KM.observe(r))}}(r,t)},destroy:function(){KM&&(null==KM||KM.disconnect(),KM=null)}}},E);return x}},hI={type:"table-row",renderElem:function(e,t,r){var n=e.height;return hw("tr",{style:n?{height:"".concat(n,"px")}:{}},t)}},pI={type:"table-cell",renderElem:function(e,t,r){var n=function(e,t){var r=bm.getParentNode(e,t);if(null==r)return!1;var n=bm.getParentNode(e,r);return null!=n&&pM(n).some(function(e){return e===t})}(r,e),o=e,i=o.colSpan,a=void 0===i?1:i,s=o.rowSpan,u=void 0===s?1:s,l=o.isHeader,c=void 0!==l&&l,d=o.hidden,f=void 0!==d&&d,h=bM.isSelected(r,e);return hw(n&&c?"th":"td",{colSpan:a,rowSpan:u,"data-block-type":"table-cell",className:h?"w-e-selected":"",style:{display:f?"none":""}},t)}};function gI(e,t){null==e.data&&(e.data={});var r=e.data;null==r.style&&(r.style={}),Object.assign(r.style,t)}var mI={renderStyle:function(e,t){var r,n;if(!ph.Element.isElement(e))return t;var o=e,i=o.backgroundColor,a=o.borderWidth,s=o.borderStyle,u=o.borderColor,l=o.textAlign,c={};if(i&&(c.backgroundColor=i),a){/^\d+(\.\d+)?$/.test(a)?c.borderWidth="".concat(a,"px"):c.borderWidth=a}s&&(c.borderStyle="none"===s?"":s),u&&(c.borderColor=u),l&&(c.textAlign=l);var d=t;return"table"===e.type?gI(null===(n=(null===(r=d.children)||void 0===r?void 0:r[0]).children)||void 0===n?void 0:n[0],c):gI(d,c),d},styleToHtml:function(e,t){if("table"!==e.type&&"table-cell"!==e.type)return t;var r=e.backgroundColor,n=e.borderWidth,o=e.borderStyle,i=e.borderColor,a=e.textAlign;if(!(r||n||o||i||a))return t;var s=_p(t);return r&&s.css("background-color",r),n&&s.css("border-width","".concat(n,"px")),o&&s.css("border-style","none"===o?"":o),i&&s.css("border-color",i),a&&s.css("text-align",a),function(e){return 0===e.length?"":e[0].outerHTML}(s)},parseStyleHtml:function(e,t,r){if(!["TABLE","TD","TH"].includes(e.tagName))return t;var n=_p(e),o=t,i=iM(n,"background-color");i||(i=iM(n,"background")),i&&(o.backgroundColor=i);var a=iM(n,"border");a||"TD"!==e.tagName||(a="1px solid ".concat(zM));var s,u=Ch((null==a?void 0:a.split(" "))||[],3),l=u[0],c=u[1],d=u[2];(l=iM(n,"border-width")||l)&&(o.borderWidth=(s=l.trim())&&"string"==typeof s&&s.includes("pt")?s.replace(/(\d+(\.\d+)?)\s*pt/g,function(e,t){var r=(4*parseFloat(t)/3).toFixed(2);return"".concat(r,"px")}):s),(c=iM(n,"border-style")||c)&&(o.borderStyle="none"===c?"":c),(d=iM(n,"border-color")||d)&&(o.borderColor=d);var f=iM(n,"text-align");return(f=iM(n,"text-align")||f)&&(o.textAlign=f),t},renderElems:[fI,hI,pI],elemsToHtml:[KF,XF,ZF],preParseHtml:[GM],parseElemsHtml:[PM,RM,_M],menus:[SM,CM,AM,DM,TM,kM,OM,NM,BM,FM,MM,IM],editorPlugin:function(e){var t=e.insertBreak,r=e.deleteBackward,n=e.deleteForward,o=e.deleteFragment,i=e.normalizeNode,a=e.insertData,s=e.handleTab,u=e.selectAll,l=e;l.insertBreak=function(){null==bm.getSelectedNodeByType(l,"table")?t():l.insertText("\n\r")},l.deleteBackward=function(e){if(!jM(l)&&!$M(l,e,"backward")){var t=l.selection;if(t){var n=ph.Editor.before(l,t),o=ph.Editor.above(l,{at:t,match:function(e){return bm.checkNodeType(e,"table-cell")}});if(n){var i=UM(l,n);if(!o&&i&&VM(l))return}}r(e)}},l.handleTab=function(){var t;if(bm.getSelectedNodeByType(l,"table")){var r=ph.Editor.above(e);bm.checkNodeType(r[0],"table-cell")&&ph.Transforms.select(e,r[1]);var n=ph.Editor.next(e);if(n)n[0]&&n[0].text&&(n=null!==(t=ph.Editor.above(e,{at:n[1]}))&&void 0!==t?t:n),ph.Transforms.select(e,n[1]);else{var o=l.children||[],i=o.length;if(bm.checkNodeType(o[i-1],"table")){var a=bm.genEmptyParagraph();ph.Transforms.insertNodes(l,a,{at:[i]}),l.handleTab()}}}else s()},l.deleteForward=function(e){if(!jM(l)&&!$M(l,e,"forward")){var t=l.selection;if(t){var r=ph.Editor.after(l,t),o=ph.Editor.above(l,{at:t,match:function(e){return bm.checkNodeType(e,"table-cell")}});if(r){var i=UM(l,r);if(!o&&i&&VM(l))return}}n(e)}},l.deleteFragment=function(e){var t=l.selection;if(t){var r,n=!1,i={anchor:t.anchor,focus:t.focus},a=ph.Point.isBefore(i.anchor,i.focus);if(HM(l,t.anchor))(r=ph.Editor[a?"before":"after"](l,t.anchor))&&(i.anchor=r),n=!0;if(HM(l,t.focus))(r=ph.Editor[a?"after":"before"](l,t.focus))&&(i.focus=r),n=!0;n&&ph.Transforms.setSelection(l,i),o(e)}},l.normalizeNode=function(e){var t=Ch(e,2),r=t[0],n=t[1];if("table"!==bm.getNodeType(r))return i([r,n]);if(bm.isLastNode(l,r)){var o=bm.genEmptyParagraph();ph.Transforms.insertNodes(l,o,{at:[n[0]+1]})}},l.insertData=function(e){if(null!=bm.getSelectedNodeByType(l,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?a(e):ph.Editor.insertText(l,t)}else a(e)},l.selectAll=function(){var e=l.selection;if(null!=e){var t=bm.getSelectedNodeByType(l,"table-cell");if(null!=t){var r=e.anchor,n=e.focus;if(ph.Path.equals(r.path.slice(0,3),n.path.slice(0,3)))if(0!==ph.Node.string(t).length){var o=bm.findPath(l,t),i={anchor:ph.Editor.start(l,o),focus:ph.Editor.end(l,o)};l.select(i)}else u();else u()}else u()}else u()},function(e){var t=e.apply;e.apply=function(r){if(!ph.Operation.isSelectionOperation(r)||!r.newProperties)return t(r);var n=wh(wh({},e.selection),r.newProperties);if(!ph.Range.isRange(n))return bM.unselect(e),t(r);var o=function(e){return ph.Element.isElement(e)&&("table-cell"===e.type||"th"===e.type||"td"===e.type)},i=Ch(ph.Editor.nodes(e,{match:o,at:ph.Range.start(n),mode:"lowest"}),1)[0],a=Ch(ph.Editor.nodes(e,{match:o,at:ph.Range.end(n),mode:"lowest"}),1)[0];if(!i||!a)return bM.unselect(e),t(r);var s=Ch(i,2)[1],u=Ch(a,2)[1];if(ph.Path.equals(s,u)||!tM(e,[s,u],"table"))return bM.unselect(e),t(r);try{var l=rM(e,{at:s});if(!l||0===l.length)return bM.unselect(e),t(r);for(var c=nM.valueOf(0,0),d=nM.valueOf(0,0),f=!1,h=!1,p=0;p<l.length;p+=1)if(l[p])for(var g=0;g<l[p].length;g+=1)if(l[p][g]){var m=Ch(l[p][g],1),v=Ch(m[0],2)[1];ph.Path.equals(s,v)&&(c.x=p,c.y=g,f=!0),ph.Path.equals(u,v)&&(d.x=p,d.y=g,h=!0)}if(!f||!h)return bM.unselect(e),t(r);for(var y=nM.valueOf(Math.min(c.x,d.x),Math.min(c.y,d.y)),b=nM.valueOf(Math.max(c.x,d.x),Math.max(c.y,d.y));;){var w=nM.valueOf(y.x,y.y),E=nM.valueOf(b.x,b.y);for(p=w.x;p<=E.x&&p<l.length;p+=1)if(l[p])for(g=w.y;g<=E.y&&g<l[p].length;g+=1)if(l[p][g]){var x=Ch(l[p][g],2)[1];if(x){var S=x.rtl,C=x.ltr,A=x.btt,D=x.ttb;w.x=Math.min(w.x,p-(D-1)),w.y=Math.min(w.y,g-(S-1)),E.x=Math.max(E.x,p+(A-1)),E.y=Math.max(E.y,g+(C-1))}}if(nM.equals(y,w)&&nM.equals(b,E))break;y=w,b=E}var T=[],k=new WeakSet;for(p=y.x;p<=b.x&&p<l.length;p+=1)if(l[p]){var O=[];for(g=y.y;g<=b.y&&g<l[p].length;g+=1)if(l[p][g]){var N=Ch(l[p][g],1),B=Ch(N[0],1)[0];B&&(k.add(B),O.push(l[p][g]))}O.length>0&&T.push(O)}aM.set(e,T),sM.set(e,k)}catch(n){return bM.unselect(e),t(r)}t(r)}}(l),l.getTableSelection=function(){return aM.get(l)||null};var c=l.addMark,d=l.removeMark,f=wh({},ph.Transforms);return l.addMark=function(e,t){var r=aM.get(l);if(r&&r.length>0){var n=l.selection;r.forEach(function(r){r.forEach(function(r){var n=Ch(r[0],2)[1],o=ph.Editor.start(l,n),i=ph.Editor.end(l,n);ph.Transforms.select(l,{anchor:o,focus:i}),c(e,t)})}),n&&ph.Transforms.select(l,n)}else c(e,t)},l.removeMark=function(e){var t=aM.get(l);if(t&&t.length>0){var r=l.selection;t.forEach(function(t){t.forEach(function(t){var r=Ch(t[0],2)[1],n=ph.Editor.start(l,r),o=ph.Editor.end(l,r);ph.Transforms.select(l,{anchor:n,focus:o}),d(e)})}),r&&ph.Transforms.select(l,r)}else d(e)},ph.Transforms.setNodes=function(e,t,r){if(void 0===r&&(r={}),e===l){var n=aM.get(l);if(n&&n.length>0)return"hidden"in t||"rowSpan"in t||"colSpan"in t?void f.setNodes(e,t,r):void n.forEach(function(n){n.forEach(function(n){var o=Ch(n[0],2)[1];f.setNodes(e,t,wh(wh({},r),{at:o}))})})}f.setNodes(e,t,r)},l}};Py("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Py("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});ag&&(_p.fn.append=ag),Wp&&(_p.fn.on=Wp),fg&&(_p.fn.remove=fg),Gp&&(_p.fn.val=Gp),mg&&(_p.fn.click=mg),Jp&&(_p.fn.hide=Jp);var vI=new WeakMap;function yI(e){return e.getMenuConfig("uploadImage")}function bI(e,t){return Eh(this,void 0,void 0,function(){return xh(this,function(r){return[2,new Promise(function(r){var n=new FileReader;n.readAsDataURL(t),n.onload=function(){var o=n.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;BA(e,i,t.name,a),r("ok")}}})]})})}function wI(e,t){return Eh(this,void 0,void 0,function(){var r,n;return xh(this,function(o){switch(o.label){case 0:return r=function(e){var t=vI.get(e);if(null!=t)return t;var r=yI(e),n=r.onSuccess,o=r.onProgress,i=r.onFailed,a=r.customInsert,s=r.onError;return t=BS(wh(wh({},r),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,r){if(a)return a(r,function(t,r,n){return BA(e,t,r,n)}),void n(t,r);var o=r.errno,s=void 0===o?1:o,u=r.data,l=void 0===u?{}:u;if(0===s){if(Array.isArray(l))l.forEach(function(t){var r=t.url,n=void 0===r?"":r,o=t.alt,i=void 0===o?"":o,a=t.href;BA(e,n,i,void 0===a?"":a)});else{var c=l.url,d=void 0===c?"":c,f=l.alt,h=void 0===f?"":f,p=l.href;BA(e,d,h,void 0===p?"":p)}n(t,r)}else i(t,r)},onError:function(e,t,r){s(e,t,r)}})),vI.set(e,t),t}(e),n=t.map(function(e){return{name:e.name,type:e.type,size:e.size,data:e}}),r.addFiles(n),[4,r.upload()];case 1:return o.sent(),[2]}})})}function EI(e,t){return Eh(this,void 0,void 0,function(){var r,n,o,i,a,s,u,l,c,d,f,h,p,g,m;return xh(this,function(v){switch(v.label){case 0:if(null==t)return[2];r=Array.prototype.slice.call(t),n=yI(e),o=n.customUpload,i=n.base64LimitSize,a=[],v.label=1;case 1:v.trys.push([1,10,11,16]),s=!0,u=Dh(r),v.label=2;case 2:return[4,u.next()];case 3:return l=v.sent(),(h=l.done)?[3,9]:(m=l.value,s=!1,d=(c=m).size,i&&d<=i?[4,bI(e,c)]:[3,5]);case 4:return v.sent(),[3,8];case 5:return o?[4,o(c,function(t,r,n){return BA(e,t,r,n)},e)]:[3,7];case 6:return v.sent(),[3,8];case 7:a.push(c),v.label=8;case 8:return s=!0,[3,2];case 9:return[3,16];case 10:return f=v.sent(),p={error:f},[3,16];case 11:return v.trys.push([11,,14,15]),s||h||!(g=u.return)?[3,13]:[4,g.call(u)];case 12:v.sent(),v.label=13;case 13:return[3,15];case 14:if(p)throw p.error;return[7];case 15:return[7];case 16:return a.length>0?[4,wI(e,a)]:[3,18];case 17:v.sent(),v.label=18;case 18:return[2]}})})}var xI=function(){function e(){this.title=Ly("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return kA(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var r=this.getMenuConfig(e),n=r.allowedFileTypes,o=void 0===n?[]:n,i=r.customBrowseAndUpload;if(i)i(function(t,r,n){return BA(e,t,r,n)});else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var s=_p("body"),u=_p('<input type="file" '.concat(a," multiple/>"));u.hide(),s.append(u),u.click(),u.on("change",function(){var t=u[0].files;EI(e,t)})}},e}();var SI={menus:[{key:"uploadImage",factory:function(){return new xI},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'".concat(e.name,"' upload failed"),t)},onError:function(e,t,r){console.error("'".concat(e.name,"' upload error"),r)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,r=e;return r.insertData=function(n){if(kA(r))t(n);else if(n.getData("text/plain"))t(n);else{var o=n.files;if(o.length<=0)t(n);else Array.prototype.slice.call(o).some(function(e){return"image"===Ch(e.type.split("/"),1)[0]})?EI(e,o):t(n)}},r}};function CI(e){return e.length?e[0].tagName.toLowerCase():""}function AI(e,t,r,n){void 0===t&&(t="auto"),void 0===r&&(r="auto"),void 0===n&&(n={});var o=_p(e),i=n.width,a=void 0===i?"":i,s=n.height,u=void 0===s?"":s,l="";return a&&(l+="width: ".concat(a,";")),u&&(l+="height: ".concat(u,";")),o.attr("width",t),o.attr("height",r),o.attr("style",l),o[0].outerHTML}Py("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",edit:"Edit video",width:"Width",height:"Height"}}),Py("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}}),ag&&(_p.fn.append=ag),Wp&&(_p.fn.on=Wp),vg&&(_p.fn.focus=vg),$p&&(_p.fn.attr=$p),Gp&&(_p.fn.val=Gp),ng&&(_p.fn.html=ng),ug&&(_p.fn.parent=ug),Hp&&(_p.fn.hasClass=Hp),hg&&(_p.fn.empty=hg);var DI={type:"video",elemToHtml:function(e,t){var r=e,n=r.src,o=void 0===n?"":n,i=r.poster,a=void 0===i?"":i,s=r.width,u=void 0===s?"auto":s,l=r.height,c=void 0===l?"auto":l,d=r.style,f=void 0===d?{}:d,h=r.textAlign,p='<div data-w-e-type="video" data-w-e-is-void style="text-align: '.concat(void 0===h?"center":h,';">\n');if(0===o.trim().indexOf("<iframe ")){p+=AI(o,u,c,f)}else{var g=f.width,m=void 0===g?"":g,v=f.height,y=void 0===v?"":v,b="";m&&(b+="width: ".concat(m,";")),y&&(b+="height: ".concat(y,";")),p+='<video poster="'.concat(a,'" controls="true" width="').concat(u,'" height="').concat(c,'" style="').concat(b,'"><source src="').concat(o,'" type="video/mp4"/></video>')}return p+="\n</div>"}};function TI(e){return void 0===e&&(e="r"),"".concat(e,"-").concat(bg())}function kI(e){var t={};return e.trim().split(";").forEach(function(e){if(e){var r=Ch(e.split(":"),2),n=r[0],o=r[1];n&&o&&(t[n.trim()]=o.trim())}}),t}function OI(){return TI("w-e-insert-video")}var NI=function(){function e(){this.title=Ly("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=OI(),this.heightInputId=OI(),this.buttonId=OI()}return e.prototype.getSelectedVideoNode=function(e){return bm.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,r=t.widthInputId,n=t.heightInputId,o=t.buttonId,i=Ch(Yy(Ly("videoModule.width"),r,"auto"),2),a=i[0],s=_p(i[1]),u=Ch(Yy(Ly("videoModule.height"),n,"auto"),2),l=u[0],c=_p(u[1]),d=Ch(Xy(o,Ly("videoModule.ok")),1)[0],f=this.getSelectedVideoNode(e);if(null==this.$content){var h=_p("<div></div>");h.on("click","#".concat(o),function(t){t.preventDefault();var o=h.find("#".concat(r)).val().trim(),i=h.find("#".concat(n)).val().trim(),a=function(e){return/^\d+(\.\d+)?%$/.test(e)},s=function(e){return/^\d+(\.\d+)?$/.test(e)},u="auto",l="auto";a(o)?u=o:s(o)&&(u="".concat(parseInt(o,10),"px")),a(i)?l=i:s(i)&&(l="".concat(parseInt(i,10),"px"));var c=f.style,d=void 0===c?{}:c;e.restoreSelection();var p={style:wh(wh({},d),{width:u,height:l})};ph.Transforms.setNodes(e,p,{match:function(e){return bm.checkNodeType(e,"video")}}),e.hidePanelOrModal()}),this.$content=h}var p=this.$content;if(p.empty(),p.append(a),p.append(l),p.append(d),null==f)return p[0];var g=f.style,m=void 0===g?{}:g,v=m.width,y=void 0===v?"":v,b=m.height,w=void 0===b?"":b;return s.val(y),c.val(w),setTimeout(function(){s.focus()}),p[0]},e}();function BI(){return TI("w-e-edit-video")}var FI=function(){function e(){this.title=Ly("videoModule.edit"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=BI(),this.posterInputId=BI(),this.buttonId=BI()}return e.prototype.getSelectedVideoNode=function(e){return bm.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,r=this,n=r.srcInputId,o=r.posterInputId,i=r.buttonId,a=Ch(Yy(Ly("videoModule.videoSrc"),n,Ly("videoModule.videoSrcPlaceHolder")),2),s=a[0],u=a[1],l=Ch(Yy(Ly("videoModule.videoPoster"),o,Ly("videoModule.videoPosterPlaceHolder")),2),c=l[0],d=l[1],f=_p(u),h=_p(d),p=Ch(Xy(i,Ly("videoModule.ok")),1)[0];if(null==this.$content){var g=_p("<div></div>");g.on("click","#".concat(i),function(r){return Eh(t,void 0,void 0,function(){var t,i,a,s;return xh(this,function(u){return r.preventDefault(),t=g.find("#".concat(n)).val().trim(),i=g.find("#".concat(o)).val().trim(),a=TI("video-"),s={src:t,poster:i,key:a},e.restoreSelection(),ph.Transforms.setNodes(e,s,{match:function(e){return bm.checkNodeType(e,"video")}}),e.hidePanelOrModal(),[2]})})}),this.$content=g}var m=this.$content;m.empty(),m.append(s),m.append(c),m.append(p);var v=this.getSelectedVideoNode(e);if(null==v)return m[0];var y=v.src,b=void 0===y?"":y,w=v.poster,E=void 0===w?"":w;return f.val(b),h.val(E),setTimeout(function(){f.focus()}),m[0]},e}();function MI(e,t){return Eh(this,arguments,void 0,function(e,t,r,n,o){var i,a,s,u,l,c,d;return void 0===r&&(r=""),void 0===n&&(n=""),void 0===o&&(o=""),xh(this,function(f){switch(f.label){case 0:return t?(e.restoreSelection(),i=e.getMenuConfig("insertVideo"),a=i.onInsertedVideo,s=i.checkVideo,u=i.parseVideoSrc,[4,s(t,r)]):[2];case 1:return"string"==typeof(l=f.sent())?(e.alert(l,"error"),[2]):null==l?[2]:[4,u(t)];case 2:return 0!==(c=f.sent()).trim().indexOf("<iframe ")&&(c=function(e){return e.replace(/</g,"<").replace(/>/g,">")}(c)),d={type:"video",src:c,poster:r,children:[{text:""}],style:{width:n,height:o}},Promise.resolve().then(function(){bm.isSelectedEmptyParagraph(e)&&ph.Transforms.removeNodes(e,{mode:"highest"}),ph.Transforms.insertNodes(e,d,{mode:"highest"})}),a(d),[2]}})})}function II(){return TI("w-e-insert-video")}var PI=function(){function e(){this.title=Ly("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=II(),this.posterInputId=II(),this.buttonId=II()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!ph.Range.isCollapsed(t)||!!bm.getSelectedElems(e).some(function(t){var r=bm.getNodeType(t);return"pre"===r||("list-item"===r||!!e.isVoid(t))}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,r=this,n=r.srcInputId,o=r.posterInputId,i=r.buttonId,a=Ch(Yy(Ly("videoModule.videoSrc"),n,Ly("videoModule.videoSrcPlaceHolder")),2),s=a[0],u=a[1],l=Ch(Yy(Ly("videoModule.videoPoster"),o,Ly("videoModule.videoPosterPlaceHolder")),2),c=l[0],d=l[1],f=_p(u),h=_p(d),p=Ch(Xy(i,Ly("videoModule.ok")),1)[0];if(null==this.$content){var g=_p("<div></div>");g.on("click","#".concat(i),function(r){return Eh(t,void 0,void 0,function(){var t,i;return xh(this,function(a){switch(a.label){case 0:return r.preventDefault(),t=g.find("#".concat(n)).val().trim(),i=g.find("#".concat(o)).val().trim(),[4,MI(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=g}var m=this.$content;return m.empty(),m.append(s),m.append(c),m.append(p),f.val(""),h.val(""),setTimeout(function(){f.focus()}),m[0]},e}();function RI(e){return e.getMenuConfig("uploadVideo")}var LI=new WeakMap;function _I(e,t){return Eh(this,void 0,void 0,function(){var r,n;return xh(this,function(o){switch(o.label){case 0:return r=function(e){var t=LI.get(e);if(null!=t)return t;var r=RI(e),n=r.onSuccess,o=r.onProgress,i=r.onFailed,a=r.customInsert,s=r.onError;return t=BS(wh(wh({},r),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,r){if(a)return a(r,function(t,r){return MI(e,t,r)}),void n(t,r);var o=r.errno,s=void 0===o?1:o,u=r.data,l=void 0===u?{}:u;if(0===s){var c=l.url,d=void 0===c?"":c,f=l.poster;MI(e,d,void 0===f?"":f),n(t,r)}else i(t,r)},onError:function(e,t,r){s(e,t,r)}})),LI.set(e,t),t}(e),n=t.map(function(e){return{name:e.name,type:e.type,size:e.size,data:e}}),r.addFiles(n),[4,r.upload()];case 1:return o.sent(),[2]}})})}var zI=function(){function e(){this.title=Ly("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var r=this.getMenuConfig(e),n=r.allowedFileTypes,o=void 0===n?[]:n,i=r.customBrowseAndUpload;if(i)i(function(t,r){return MI(e,t,r)});else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var s=_p("body"),u=_p('<input type="file" '.concat(a," multiple/>"));u.hide(),s.append(u),u.click(),u.on("change",function(){var t=u[0].files;!function(e,t){Eh(this,void 0,void 0,function(){var r,n,o,i,a,s,u,l,c,d,f,h;return xh(this,function(p){switch(p.label){case 0:if(null==t)return[2];r=Array.prototype.slice.call(t),n=[],o=RI(e).customUpload,p.label=1;case 1:p.trys.push([1,8,9,14]),i=!0,a=Dh(r),p.label=2;case 2:return[4,a.next()];case 3:return s=p.sent(),(c=s.done)?[3,7]:(h=s.value,i=!1,u=h,o?[4,o(u,function(t,r){return MI(e,t,r)},e)]:[3,5]);case 4:return p.sent(),[3,6];case 5:n.push(u),p.label=6;case 6:return i=!0,[3,2];case 7:return[3,14];case 8:return l=p.sent(),d={error:l},[3,14];case 9:return p.trys.push([9,,12,13]),i||c||!(f=a.return)?[3,11]:[4,f.call(a)];case 10:p.sent(),p.label=11;case 11:return[3,13];case 12:if(d)throw d.error;return[7];case 13:return[7];case 14:return n.length>0?[4,_I(e,n)]:[3,16];case 15:p.sent(),p.label=16;case 16:return[2]}})})}(e,t)})}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!ph.Range.isCollapsed(t)||!!bm.getSelectedElems(e).some(function(t){var r=bm.getNodeType(t);return"pre"===r||("list-item"===r||!!e.isVoid(t))}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}();function jI(e,t,r,n,o,i){return void 0===t&&(t=""),void 0===r&&(r="auto"),void 0===n&&(n="auto"),void 0===o&&(o={}),void 0===i&&(i="center"),{type:"video",src:e,poster:t,width:r,height:n,style:o,children:[{text:""}],textAlign:i}}var HI={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,r){var n=_p(e),o="",i="",a="auto",s="auto",u={},l=n.find("iframe");if(l.length>0)return a=l.attr("width")||"auto",s=l.attr("height")||"auto",u=kI(u=l.attr("style")||""),jI(o=l[0].outerHTML,i,a,s,u,kI(n.attr("style")||"")["text-align"]||"center");var c=n.find("video");return(o=c.attr("src")||"")||c.length>0&&(o=c.find("source").attr("src")||""),a=c.attr("width")||"auto",s=c.attr("height")||"auto",jI(o,i=c.attr("poster")||"",a,s,u=kI(u=c.attr("style")||""),kI(n.attr("style")||"")["text-align"]||"center")}};var $I={selector:"iframe,video,p",preParseHtml:function(e){var t=_p(e),r=t;if("p"===CI(t)){var n=t.children();if(1===n.length){var o=n[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(r=_p(o))}}var a=CI(r);if("iframe"!==a&&"video"!==a)return r[0];if("video"===r.parent().attr("data-w-e-type"))return r[0];var s=_p('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return s.append(r),s[0]}};var UI={type:"video",renderElem:function(e,t,r){var n,o=e,i=o.src,a=void 0===i?"":i,s=o.poster,u=void 0===s?"":s,l=o.key,c=void 0===l?"":l,d=o.width,f=void 0===d?"auto":d,h=o.height,p=void 0===h?"auto":h,g=o.style,m=void 0===g?{}:g,v=o.textAlign,y=void 0===v?"center":v,b=bm.isNodeSelected(r,e);if(0===a.trim().indexOf("<iframe ")){n=hw("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:y},innerHTML:AI(a,f,p,m)})}else{var w=hw("video",{key:c,poster:u,controls:!0,style:m},hw("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==f&&(w.data.width=f),"auto"!==p&&(w.data.height=p),n=hw("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:y}},w)}var E=Wb("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},n);return E}},VI={renderElems:[UI],elemsToHtml:[DI],preParseHtml:[$I],parseElemsHtml:[HI],menus:[{key:"insertVideo",factory:function(){return new PI},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new zI},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'".concat(e.name,"' upload failed"),t)},onError:function(e,t,r){console.error("'".concat(e.name," upload error"),t,r)}}},{key:"editVideoSize",factory:function(){return new NI}},{key:"editVideoSrc",factory:function(){return new FI}}],editorPlugin:function(e){var t=e.isVoid,r=e.normalizeNode,n=e;return n.isVoid=function(e){return"video"===e.type||t(e)},n.normalizeNode=function(e){var t=Ch(e,2),o=t[0],i=t[1];"video"===bm.getNodeType(o)&&(bm.isLastNode(n,o)&&ph.Transforms.insertNodes(n,bm.genEmptyParagraph(),{at:[i[0]+1]}));return r([o,i])},n}},qI=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=wh(wh({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=wh(wh({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=wh(wh({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=wh(wh({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){Xh(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,r=e.renderElem;vw[t||""]=r}(e)},e.registerRenderStyle=function(e){!function(e){pw.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,r=e.elemToHtml;nm[t||""]=r}(e)},e.registerStyleToHtml=function(e){!function(e){em.push(e)}(e)},e.registerPreParseHtml=function(e){},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,r=e.parseElemHtml;Hg[t]=r}(e)},e.registerParseStyleHtml=function(e){!function(e){jg.push(e)}(e)},e.registerModule=function(e){GI(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function GI(e){var t=e.menus,r=e.renderElems,n=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,s=e.parseElemsHtml,u=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(e){return qI.registerMenu(e)}),r&&r.forEach(function(e){return qI.registerRenderElem(e)}),n&&qI.registerRenderStyle(n),o&&o.forEach(function(e){return qI.registerElemToHtml(e)}),i&&qI.registerStyleToHtml(i),a&&a.forEach(function(e){return qI.registerPreParseHtml(e)}),s&&s.forEach(function(e){return qI.registerParseElemHtml(e)}),u&&qI.registerParseStyleHtml(u),l&&qI.registerPlugin(l)}console.log("=== register-builtin-modules/index.ts is loading ==="),console.log("=== About to register modules ==="),console.log("Formula module:",YF),tT.forEach(function(e){return GI(e)}),GI(RT),GI(mI),GI(VI),GI(SI),GI(bT),GI(YF),console.log("=== All modules registered ===");var WI='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>';var YI={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editorImageSizeMenu","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable","mergeTableCell","splitTableCell","setTableProperty","setTableCellProperty"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize","editVideoSrc"]}};var KI,XI={hoverbarKeys:(KI=["formatPainter","headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"],null!=Kh.textToFormula&&KI.push("|","textToFormula"),wh(wh({},YI),{text:{menuKeys:KI}}))};qI.setEditorConfig(wh(wh({},XI),{decorate:gT}));var ZI={hoverbarKeys:YI};qI.setSimpleEditorConfig(wh(wh({},ZI),{decorate:gT}));var JI={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Ly("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:Ly("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:Ly("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:Ly("editor.image"),iconSvg:WI,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Ly("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","formatPainter","fullScreen"]};qI.setToolbarConfig(JI);var QI={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Ly("editor.image"),iconSvg:WI,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};qI.setSimpleToolbarConfig(QI);e.Boot=qI,e.DomEditor=bm,e.SlateEditor=ph.Editor,e.SlateElement=ph.Element,e.SlateNode=ph.Node,e.SlatePath=ph.Path,e.SlatePoint=ph.Point,e.SlateRange=ph.Range,e.SlateText=ph.Text,e.SlateTransforms=ph.Transforms,e.Toolbar=Mw,e.createEditor=function(e){void 0===e&&(e={});var t=e.selector,r=void 0===t?"":t,n=e.content,o=void 0===n?[]:n,i=e.html,a=e.config,s=void 0===a?{}:a,u=e.mode,l="simple"===(void 0===u?"default":u)?qI.simpleEditorConfig:qI.editorConfig,c=wh(wh({},l.hoverbarKeys||{}),s.hoverbarKeys||{});return Fw({selector:r,config:wh(wh(wh({},l),s),{hoverbarKeys:c}),content:o,html:i,plugins:qI.plugins})},e.createToolbar=function(e){var t=e.selector,r=e.editor,n=e.config,o=void 0===n?{}:n,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var s="simple"===a?qI.simpleToolbarConfig:qI.toolbarConfig;return Iw(r,{selector:t,config:wh(wh({},s),o)})},e.createUploader=BS,e.default={},e.genModalButtonElems=Xy,e.genModalInputElems=Yy,e.genModalTextareaElems=Ky,e.i18nAddResources=Py,e.i18nChangeLanguage=function(e){My.changeLanguage(e)},e.i18nGetResources=function(e){return My.getResourceBundle(e,Iy)},e.t=Ly,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
21
21
|
//# sourceMappingURL=index.js.map
|