@wangeditor-next/plugin-float-image 1.0.40 → 2.0.0

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.
Files changed (41) hide show
  1. package/dist/basic-modules/src/modules/color/render-style.d.ts +3 -1
  2. package/dist/basic-modules/src/modules/color/style-to-html.d.ts +3 -1
  3. package/dist/basic-modules/src/modules/font-size-family/render-style.d.ts +3 -1
  4. package/dist/basic-modules/src/modules/font-size-family/style-to-html.d.ts +3 -1
  5. package/dist/basic-modules/src/modules/image/elem-to-html.d.ts +2 -1
  6. package/dist/basic-modules/src/modules/indent/render-style.d.ts +3 -1
  7. package/dist/basic-modules/src/modules/indent/style-to-html.d.ts +2 -1
  8. package/dist/basic-modules/src/modules/justify/render-style.d.ts +3 -1
  9. package/dist/basic-modules/src/modules/justify/style-to-html.d.ts +2 -1
  10. package/dist/basic-modules/src/modules/line-height/render-style.d.ts +3 -1
  11. package/dist/basic-modules/src/modules/line-height/style-to-html.d.ts +2 -1
  12. package/dist/basic-modules/src/modules/link/url.d.ts +10 -0
  13. package/dist/basic-modules/src/utils/style-class.d.ts +14 -0
  14. package/dist/basic-modules/src/utils/vdom.d.ts +14 -0
  15. package/dist/core/src/config/interface.d.ts +36 -1
  16. package/dist/core/src/config/style-mode.d.ts +8 -0
  17. package/dist/core/src/index.d.ts +2 -1
  18. package/dist/core/src/menus/bar/Toolbar.d.ts +1 -0
  19. package/dist/core/src/menus/bar-item/BaseButton.d.ts +1 -1
  20. package/dist/core/src/render/element/renderStyle.d.ts +3 -1
  21. package/dist/core/src/render/index.d.ts +2 -2
  22. package/dist/core/src/render/text/renderStyle.d.ts +3 -1
  23. package/dist/core/src/to-html/index.d.ts +2 -2
  24. package/dist/core/src/upload/createUploader.d.ts +7 -3
  25. package/dist/core/src/upload/createUppyUploader.d.ts +7 -0
  26. package/dist/core/src/upload/index.d.ts +4 -3
  27. package/dist/core/src/upload/interface.d.ts +37 -9
  28. package/dist/css/style.css +1 -1
  29. package/dist/editor/src/index.d.ts +2 -2
  30. package/dist/index.js +1 -1
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.mjs +1 -1
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/list-module/src/module/elem-to-html.d.ts +2 -1
  35. package/dist/list-module/src/module/style-class.d.ts +6 -0
  36. package/dist/plugin-float-image/src/module/elem-to-html.d.ts +2 -2
  37. package/dist/table-module/src/module/elem-to-html.d.ts +3 -2
  38. package/dist/table-module/src/module/style-to-html.d.ts +2 -1
  39. package/dist/video-module/src/module/elem-to-html.d.ts +2 -1
  40. package/dist/video-module/src/utils/dom.d.ts +1 -1
  41. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{i18nAddResources as t,DomEditor as r,SlateTransforms as n,t as e}from"@wangeditor-next/editor";import o,{css as i,append as u,prepend as f,addClass as a,removeClass as c,hasClass as l,on as s,off as v,focus as p,attr as d,removeAttr as h,hide as g,show as y,parents as m,dataset as b,val as w,text as x,html as O,children as S,remove as j,find as E,width as q,height as T,filter as P,empty as I}from"dom7";import{jsx as N}from"snabbdom";t("en",{float:{none:"Default",left:"Float Left",right:"Float Right"}}),t("zh-CN",{float:{none:"默认",left:"左浮动",right:"右浮动"}});var C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function A(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var M,R,F={};function _(){if(R)return M;R=1;var t=function(t){return t&&t.Math===Math&&t};return M=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof C&&C)||t("object"==typeof M&&M)||function(){return this}()||Function("return this")()}var k,D,z,L,Z,$,B,W,H={};function U(){return D?k:(D=1,k=function(t){try{return!!t()}catch(t){return!0}})}function G(){if(L)return z;L=1;var t=U();return z=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function K(){if($)return Z;$=1;var t=U();return Z=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function X(){if(W)return B;W=1;var t=K(),r=Function.prototype.call;return B=t?r.bind(r):function(){return r.apply(r,arguments)},B}var Y,V,J,Q,tt,rt,nt,et,ot,it,ut,ft,at,ct,lt,st,vt,pt,dt,ht,gt,yt,mt,bt,wt,xt,Ot,St,jt,Et,qt,Tt,Pt,It,Nt,Ct,At,Mt,Rt,Ft,_t,kt={};function Dt(){return J?V:(J=1,V=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function zt(){if(tt)return Q;tt=1;var t=K(),r=Function.prototype,n=r.call,e=t&&r.bind.bind(n,n);return Q=t?e:function(t){return function(){return n.apply(t,arguments)}},Q}function Lt(){if(nt)return rt;nt=1;var t=zt(),r=t({}.toString),n=t("".slice);return rt=function(t){return n(r(t),8,-1)}}function Zt(){if(ot)return et;ot=1;var t=zt(),r=U(),n=Lt(),e=Object,o=t("".split);return et=r(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):e(t)}:e}function $t(){return ut?it:(ut=1,it=function(t){return null==t})}function Bt(){if(at)return ft;at=1;var t=$t(),r=TypeError;return ft=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}function Wt(){if(lt)return ct;lt=1;var t=Zt(),r=Bt();return ct=function(n){return t(r(n))}}function Ht(){if(vt)return st;vt=1;var t="object"==typeof document&&document.all;return st=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function Ut(){if(dt)return pt;dt=1;var t=Ht();return pt=function(r){return"object"==typeof r?null!==r:t(r)}}function Gt(){if(gt)return ht;gt=1;var t=_(),r=Ht();return ht=function(n,e){return arguments.length<2?(o=t[n],r(o)?o:void 0):t[n]&&t[n][e];var o},ht}function Kt(){if(Ot)return xt;Ot=1;var t,r,n=_(),e=function(){if(wt)return bt;wt=1;var t=_().navigator,r=t&&t.userAgent;return bt=r?String(r):""}(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,f=u&&u.v8;return f&&(r=(t=f.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(r=+t[1]),xt=r}function Xt(){if(jt)return St;jt=1;var t=Kt(),r=U(),n=_().String;return St=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!n(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function Yt(){if(qt)return Et;qt=1;var t=Xt();return Et=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Vt(){if(Pt)return Tt;Pt=1;var t=Gt(),r=Ht(),n=function(){if(mt)return yt;mt=1;var t=zt();return yt=t({}.isPrototypeOf)}(),e=Yt(),o=Object;return Tt=e?function(t){return"symbol"==typeof t}:function(e){var i=t("Symbol");return r(i)&&n(i.prototype,o(e))}}function Jt(){if(Nt)return It;Nt=1;var t=String;return It=function(r){try{return t(r)}catch(t){return"Object"}}}function Qt(){if(At)return Ct;At=1;var t=Ht(),r=Jt(),n=TypeError;return Ct=function(e){if(t(e))return e;throw new n(r(e)+" is not a function")}}function tr(){if(Rt)return Mt;Rt=1;var t=Qt(),r=$t();return Mt=function(n,e){var o=n[e];return r(o)?void 0:t(o)}}function rr(){if(_t)return Ft;_t=1;var t=X(),r=Ht(),n=Ut(),e=TypeError;return Ft=function(o,i){var u,f;if("string"===i&&r(u=o.toString)&&!n(f=t(u,o)))return f;if(r(u=o.valueOf)&&!n(f=t(u,o)))return f;if("string"!==i&&r(u=o.toString)&&!n(f=t(u,o)))return f;throw new e("Can't convert object to primitive value")},Ft}var nr,er,or,ir,ur,fr,ar,cr,lr,sr,vr,pr,dr,hr,gr,yr,mr,br,wr,xr,Or,Sr,jr,Er,qr={exports:{}};function Tr(){if(ir)return or;ir=1;var t=_(),r=Object.defineProperty;return or=function(n,e){try{r(t,n,{value:e,configurable:!0,writable:!0})}catch(r){t[n]=e}return e}}function Pr(){if(ur)return qr.exports;ur=1;var t=er?nr:(er=1,nr=!1),r=_(),n=Tr(),e="__core-js_shared__",o=qr.exports=r[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.47.0",mode:t?"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"}),qr.exports}function Ir(){if(ar)return fr;ar=1;var t=Pr();return fr=function(r,n){return t[r]||(t[r]=n||{})}}function Nr(){if(lr)return cr;lr=1;var t=Bt(),r=Object;return cr=function(n){return r(t(n))}}function Cr(){if(vr)return sr;vr=1;var t=zt(),r=Nr(),n=t({}.hasOwnProperty);return sr=Object.hasOwn||function(t,e){return n(r(t),e)}}function Ar(){if(dr)return pr;dr=1;var t=zt(),r=0,n=Math.random(),e=t(1.1.toString);return pr=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++r+n,36)}}function Mr(){if(gr)return hr;gr=1;var t=_(),r=Ir(),n=Cr(),e=Ar(),o=Xt(),i=Yt(),u=t.Symbol,f=r("wks"),a=i?u.for||u:u&&u.withoutSetter||e;return hr=function(t){return n(f,t)||(f[t]=o&&n(u,t)?u[t]:a("Symbol."+t)),f[t]}}function Rr(){if(mr)return yr;mr=1;var t=X(),r=Ut(),n=Vt(),e=tr(),o=rr(),i=Mr(),u=TypeError,f=i("toPrimitive");return yr=function(i,a){if(!r(i)||n(i))return i;var c,l=e(i,f);if(l){if(void 0===a&&(a="default"),c=t(l,i,a),!r(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),o(i,a)}}function Fr(){if(wr)return br;wr=1;var t=Rr(),r=Vt();return br=function(n){var e=t(n,"string");return r(e)?e:e+""}}function _r(){if(Or)return xr;Or=1;var t=_(),r=Ut(),n=t.document,e=r(n)&&r(n.createElement);return xr=function(t){return e?n.createElement(t):{}}}function kr(){if(jr)return Sr;jr=1;var t=G(),r=U(),n=_r();return Sr=!t&&!r(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Dr(){if(Er)return H;Er=1;var t=G(),r=X(),n=function(){if(Y)return kt;Y=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);return kt.f=n?function(t){var n=r(this,t);return!!n&&n.enumerable}:t,kt}(),e=Dt(),o=Wt(),i=Fr(),u=Cr(),f=kr(),a=Object.getOwnPropertyDescriptor;return H.f=t?a:function(t,c){if(t=o(t),c=i(c),f)try{return a(t,c)}catch(t){}if(u(t,c))return e(!r(n.f,t,c),t[c])},H}var zr,Lr,Zr,$r,Br,Wr,Hr,Ur={};function Gr(){if(Lr)return zr;Lr=1;var t=G(),r=U();return zr=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Kr(){if($r)return Zr;$r=1;var t=Ut(),r=String,n=TypeError;return Zr=function(e){if(t(e))return e;throw new n(r(e)+" is not an object")}}function Xr(){if(Br)return Ur;Br=1;var t=G(),r=kr(),n=Gr(),e=Kr(),o=Fr(),i=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,a="enumerable",c="configurable",l="writable";return Ur.f=t?n?function(t,r,n){if(e(t),r=o(r),e(n),"function"==typeof t&&"prototype"===r&&"value"in n&&l in n&&!n[l]){var i=f(t,r);i&&i[l]&&(t[r]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:a in n?n[a]:i[a],writable:!1})}return u(t,r,n)}:u:function(t,n,f){if(e(t),n=o(n),e(f),r)try{return u(t,n,f)}catch(t){}if("get"in f||"set"in f)throw new i("Accessors not supported");return"value"in f&&(t[n]=f.value),t},Ur}function Yr(){if(Hr)return Wr;Hr=1;var t=G(),r=Xr(),n=Dt();return Wr=t?function(t,e,o){return r.f(t,e,n(1,o))}:function(t,r,n){return t[r]=n,t}}var Vr,Jr,Qr,tn,rn,nn,en,on,un,fn,an,cn,ln,sn,vn,pn={exports:{}};function dn(){if(Jr)return Vr;Jr=1;var t=G(),r=Cr(),n=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,o=r(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&e(n,"name").configurable);return Vr={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function hn(){if(tn)return Qr;tn=1;var t=zt(),r=Ht(),n=Pr(),e=t(Function.toString);return r(n.inspectSource)||(n.inspectSource=function(t){return e(t)}),Qr=n.inspectSource}function gn(){if(on)return en;on=1;var t=Ir(),r=Ar(),n=t("keys");return en=function(t){return n[t]||(n[t]=r(t))}}function yn(){return fn?un:(fn=1,un={})}function mn(){if(cn)return an;cn=1;var t,r,n,e=function(){if(nn)return rn;nn=1;var t=_(),r=Ht(),n=t.WeakMap;return rn=r(n)&&/native code/.test(String(n))}(),o=_(),i=Ut(),u=Yr(),f=Cr(),a=Pr(),c=gn(),l=yn(),s="Object already initialized",v=o.TypeError,p=o.WeakMap;if(e||a.state){var d=a.state||(a.state=new p);d.get=d.get,d.has=d.has,d.set=d.set,t=function(t,r){if(d.has(t))throw new v(s);return r.facade=t,d.set(t,r),r},r=function(t){return d.get(t)||{}},n=function(t){return d.has(t)}}else{var h=c("state");l[h]=!0,t=function(t,r){if(f(t,h))throw new v(s);return r.facade=t,u(t,h,r),r},r=function(t){return f(t,h)?t[h]:{}},n=function(t){return f(t,h)}}return an={set:t,get:r,has:n,enforce:function(e){return n(e)?r(e):t(e,{})},getterFor:function(t){return function(n){var e;if(!i(n)||(e=r(n)).type!==t)throw new v("Incompatible receiver, "+t+" required");return e}}}}function bn(){if(ln)return pn.exports;ln=1;var t=zt(),r=U(),n=Ht(),e=Cr(),o=G(),i=dn().CONFIGURABLE,u=hn(),f=mn(),a=f.enforce,c=f.get,l=String,s=Object.defineProperty,v=t("".slice),p=t("".replace),d=t([].join),h=o&&!r(function(){return 8!==s(function(){},"length",{value:8}).length}),g=String(String).split("String"),y=pn.exports=function(t,r,n){"Symbol("===v(l(r),0,7)&&(r="["+p(l(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(r="get "+r),n&&n.setter&&(r="set "+r),(!e(t,"name")||i&&t.name!==r)&&(o?s(t,"name",{value:r,configurable:!0}):t.name=r),h&&n&&e(n,"arity")&&t.length!==n.arity&&s(t,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?o&&s(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=a(t);return e(u,"source")||(u.source=d(g,"string"==typeof r?r:"")),t};return Function.prototype.toString=y(function(){return n(this)&&c(this).source||u(this)},"toString"),pn.exports}function wn(){if(vn)return sn;vn=1;var t=Ht(),r=Xr(),n=bn(),e=Tr();return sn=function(o,i,u,f){f||(f={});var a=f.enumerable,c=void 0!==f.name?f.name:i;if(t(u)&&n(u,c,f),f.global)a?o[i]=u:e(i,u);else{try{f.unsafe?o[i]&&(a=!0):delete o[i]}catch(t){}a?o[i]=u:r.f(o,i,{value:u,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return o}}var xn,On,Sn,jn,En,qn,Tn,Pn,In,Nn,Cn,An,Mn,Rn,Fn,_n,kn,Dn={};function zn(){if(jn)return Sn;jn=1;var t=function(){if(On)return xn;On=1;var t=Math.ceil,r=Math.floor;return xn=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}}();return Sn=function(r){var n=+r;return n!=n||0===n?0:t(n)}}function Ln(){if(qn)return En;qn=1;var t=zn(),r=Math.max,n=Math.min;return En=function(e,o){var i=t(e);return i<0?r(i+o,0):n(i,o)}}function Zn(){if(Pn)return Tn;Pn=1;var t=zn(),r=Math.min;return Tn=function(n){var e=t(n);return e>0?r(e,9007199254740991):0}}function $n(){if(Nn)return In;Nn=1;var t=Zn();return In=function(r){return t(r.length)}}function Bn(){if(Rn)return Mn;Rn=1;var t=zt(),r=Cr(),n=Wt(),e=function(){if(An)return Cn;An=1;var t=Wt(),r=Ln(),n=$n(),e=function(e){return function(o,i,u){var f=t(o),a=n(f);if(0===a)return!e&&-1;var c,l=r(u,a);if(e&&i!=i){for(;a>l;)if((c=f[l++])!=c)return!0}else for(;a>l;l++)if((e||l in f)&&f[l]===i)return e||l||0;return!e&&-1}};return Cn={includes:e(!0),indexOf:e(!1)}}().indexOf,o=yn(),i=t([].push);return Mn=function(t,u){var f,a=n(t),c=0,l=[];for(f in a)!r(o,f)&&r(a,f)&&i(l,f);for(;u.length>c;)r(a,f=u[c++])&&(~e(l,f)||i(l,f));return l}}function Wn(){return _n?Fn:(_n=1,Fn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Hn,Un,Gn,Kn,Xn,Yn,Vn,Jn,Qn,te,re,ne,ee,oe,ie,ue,fe,ae,ce,le,se,ve,pe,de,he,ge,ye,me,be={};function we(){if(Gn)return Un;Gn=1;var t=Gt(),r=zt(),n=function(){if(kn)return Dn;kn=1;var t=Bn(),r=Wn().concat("length","prototype");return Dn.f=Object.getOwnPropertyNames||function(n){return t(n,r)},Dn}(),e=(Hn||(Hn=1,be.f=Object.getOwnPropertySymbols),be),o=Kr(),i=r([].concat);return Un=t("Reflect","ownKeys")||function(t){var r=n.f(o(t)),u=e.f;return u?i(r,u(t)):r}}function xe(){if(Xn)return Kn;Xn=1;var t=Cr(),r=we(),n=Dr(),e=Xr();return Kn=function(o,i,u){for(var f=r(i),a=e.f,c=n.f,l=0;l<f.length;l++){var s=f[l];t(o,s)||u&&t(u,s)||a(o,s,c(i,s))}}}function Oe(){if(Qn)return Jn;Qn=1;var t=_(),r=Dr().f,n=Yr(),e=wn(),o=Tr(),i=xe(),u=function(){if(Vn)return Yn;Vn=1;var t=U(),r=Ht(),n=/#|\.prototype\./,e=function(n,e){var a=i[o(n)];return a===f||a!==u&&(r(e)?t(e):!!e)},o=e.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",f=e.POLYFILL="P";return Yn=e}();return Jn=function(f,a){var c,l,s,v,p,d=f.target,h=f.global,g=f.stat;if(c=h?t:g?t[d]||o(d,{}):t[d]&&t[d].prototype)for(l in a){if(v=a[l],s=f.dontCallGetSet?(p=r(c,l))&&p.value:c[l],!u(h?l:d+(g?".":"#")+l,f.forced)&&void 0!==s){if(typeof v==typeof s)continue;i(v,s)}(f.sham||s&&s.sham)&&n(v,"sham",!0),e(c,l,v,f)}}}function Se(){if(re)return te;re=1;var t=Lt();return te=Array.isArray||function(r){return"Array"===t(r)}}function je(){if(ee)return ne;ee=1;var t=TypeError;return ne=function(r){if(r>9007199254740991)throw t("Maximum allowed index exceeded");return r}}function Ee(){if(ie)return oe;ie=1;var t=G(),r=Xr(),n=Dt();return oe=function(e,o,i){t?r.f(e,o,n(0,i)):e[o]=i}}function qe(){if(fe)return ue;fe=1;var t={};return t[Mr()("toStringTag")]="z",ue="[object z]"===String(t)}function Te(){if(ce)return ae;ce=1;var t=qe(),r=Ht(),n=Lt(),e=Mr()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return ae=t?n:function(t){var u,f,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(f=function(t,r){try{return t[r]}catch(t){}}(u=o(t),e))?f:i?n(u):"Object"===(a=n(u))&&r(u.callee)?"Arguments":a}}function Pe(){if(se)return le;se=1;var t=zt(),r=U(),n=Ht(),e=Te(),o=Gt(),i=hn(),u=function(){},f=o("Reflect","construct"),a=/^\s*(?:class|function)\b/,c=t(a.exec),l=!a.test(u),s=function(t){if(!n(t))return!1;try{return f(u,[],t),!0}catch(t){return!1}},v=function(t){if(!n(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(a,i(t))}catch(t){return!0}};return v.sham=!0,le=!f||r(function(){var t;return s(s.call)||!s(Object)||!s(function(){t=!0})||t})?v:s}function Ie(){if(pe)return ve;pe=1;var t=Se(),r=Pe(),n=Ut(),e=Mr()("species"),o=Array;return ve=function(i){var u;return t(i)&&(u=i.constructor,(r(u)&&(u===o||t(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?o:u}}function Ne(){if(he)return de;he=1;var t=Ie();return de=function(r,n){return new(t(r))(0===n?0:n)}}function Ce(){if(ye)return ge;ye=1;var t=U(),r=Mr(),n=Kt(),e=r("species");return ge=function(r){return n>=51||!t(function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[r](Boolean).foo})}}!function(){if(me)return F;me=1;var t=Oe(),r=U(),n=Se(),e=Ut(),o=Nr(),i=$n(),u=je(),f=Ee(),a=Ne(),c=Ce(),l=Mr(),s=Kt(),v=l("isConcatSpreadable"),p=s>=51||!r(function(){var t=[];return t[v]=!1,t.concat()[0]!==t}),d=function(t){if(!e(t))return!1;var r=t[v];return void 0!==r?!!r:n(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var r,n,e,c,l,s=o(this),v=a(s,0),p=0;for(r=-1,e=arguments.length;r<e;r++)if(d(l=-1===r?s:arguments[r]))for(c=i(l),u(p+c),n=0;n<c;n++,p++)n in l&&f(v,p,l[n]);else u(p+1),f(v,p++,l);return v.length=p,v}})}();var Ae={type:"image",elemToHtml:function(t,r){var n=t,e=n.src,o=n.alt,i=void 0===o?"":o,u=n.href,f=void 0===u?"":u,a=n.style,c=void 0===a?{}:a,l=c.width,s=void 0===l?"":l,v=c.height,p=void 0===v?"":v,d=c.float,h=void 0===d?"":d,g="";return s&&(g+="width: ".concat(s,";")),p&&(g+="height: ".concat(p,";")),h&&(g+="float: ".concat(h,";")),'<img src="'.concat(e,'" alt="').concat(i,'" data-href="').concat(f,'" style="').concat(g,'"/>')}},Me=function(t,r){return Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},Me(t,r)};function Re(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}Me(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var Fe=function(){return Fe=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var o in r=arguments[n])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},Fe.apply(this,arguments)};function _e(t,r){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,o,i=n.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(e=i.next()).done;)u.push(e.value)}catch(t){o={error:t}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function ke(t,r,n){if(n||2===arguments.length)for(var e,o=0,i=r.length;o<i;o++)!e&&o in r||(e||(e=Array.prototype.slice.call(r,0,o)),e[o]=r[o]);return t.concat(e||Array.prototype.slice.call(r))}"function"==typeof SuppressedError&&SuppressedError;var De,ze,Le,Ze,$e,Be,We={};function He(){if(ze)return De;ze=1;var t=Te(),r=String;return De=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}}function Ue(){if(Ze)return Le;Ze=1;var t=Kr();return Le=function(){var r=t(this),n="";return r.hasIndices&&(n+="d"),r.global&&(n+="g"),r.ignoreCase&&(n+="i"),r.multiline&&(n+="m"),r.dotAll&&(n+="s"),r.unicode&&(n+="u"),r.unicodeSets&&(n+="v"),r.sticky&&(n+="y"),n}}var Ge,Ke,Xe,Ye,Ve,Je,Qe,to,ro,no,eo,oo,io,uo,fo={};function ao(){if(Ke)return Ge;Ke=1;var t=Bn(),r=Wn();return Ge=Object.keys||function(n){return t(n,r)}}function co(){if(Ve)return Ye;Ve=1;var t=Gt();return Ye=t("document","documentElement")}function lo(){if(Qe)return Je;Qe=1;var t,r=Kr(),n=function(){if(Xe)return fo;Xe=1;var t=G(),r=Gr(),n=Xr(),e=Kr(),o=Wt(),i=ao();return fo.f=t&&!r?Object.defineProperties:function(t,r){e(t);for(var u,f=o(r),a=i(r),c=a.length,l=0;c>l;)n.f(t,u=a[l++],f[u]);return t},fo}(),e=Wn(),o=yn(),i=co(),u=_r(),f=gn(),a="prototype",c="script",l=f("IE_PROTO"),s=function(){},v=function(t){return"<"+c+">"+t+"</"+c+">"},p=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},d=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var r,n,o;d="undefined"!=typeof document?document.domain&&t?p(t):(n=u("iframe"),o="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(o),(r=n.contentWindow.document).open(),r.write(v("document.F=Object")),r.close(),r.F):p(t);for(var f=e.length;f--;)delete d[a][e[f]];return d()};return o[l]=!0,Je=Object.create||function(t,e){var o;return null!==t?(s[a]=r(t),o=new s,s[a]=null,o[l]=t):o=d(),void 0===e?o:n.f(o,e)}}function so(){if(io)return oo;io=1;var t,r,n=X(),e=zt(),o=He(),i=Ue(),u=function(){if(Be)return $e;Be=1;var t=U(),r=_().RegExp,n=t(function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),e=n||t(function(){return!r("a","y").sticky}),o=n||t(function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return $e={BROKEN_CARET:o,MISSED_STICKY:e,UNSUPPORTED_Y:n}}(),f=Ir(),a=lo(),c=mn().get,l=function(){if(ro)return to;ro=1;var t=U(),r=_().RegExp;return to=t(function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),s=function(){if(eo)return no;eo=1;var t=U(),r=_().RegExp;return no=t(function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),v=f("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,d=p,h=e("".charAt),g=e("".indexOf),y=e("".replace),m=e("".slice),b=(r=/b*/g,n(p,t=/a/,"a"),n(p,r,"a"),0!==t.lastIndex||0!==r.lastIndex),w=u.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];return(b||x||w||l||s)&&(d=function(t){var r,e,u,f,l,s,O,S=this,j=c(S),E=o(t),q=j.raw;if(q)return q.lastIndex=S.lastIndex,r=n(d,q,E),S.lastIndex=q.lastIndex,r;var T=j.groups,P=w&&S.sticky,I=n(i,S),N=S.source,C=0,A=E;if(P&&(I=y(I,"y",""),-1===g(I,"g")&&(I+="g"),A=m(E,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==h(E,S.lastIndex-1))&&(N="(?: "+N+")",A=" "+A,C++),e=new RegExp("^(?:"+N+")",I)),x&&(e=new RegExp("^"+N+"$(?!\\s)",I)),b&&(u=S.lastIndex),f=n(p,P?e:S,A),P?f?(f.input=m(f.input,C),f[0]=m(f[0],C),f.index=S.lastIndex,S.lastIndex+=f[0].length):S.lastIndex=0:b&&f&&(S.lastIndex=S.global?f.index+f[0].length:u),x&&f&&f.length>1&&n(v,f[0],e,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(f[l]=void 0)}),f&&T)for(f.groups=s=a(null),l=0;l<T.length;l++)s[(O=T[l])[0]]=f[O[1]];return f}),oo=d}!function(){if(uo)return We;uo=1;var t=Oe(),r=so();t({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})}();var vo,po,ho,go,yo,mo,bo,wo=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.getSelectedNode=function(t){return r.getSelectedNodeByType(t,"image")},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedNode(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var o=this.getSelectedNode(t);if(null!=o){var i=r.getHoverbar(t);i&&i.hideAndClean();var u=o.style,f={style:Fe(Fe({},void 0===u?{}:u),{float:this.value})};n.setNodes(t,f,{match:function(t){return r.checkNodeType(t,"image")}})}}},t}(),xo=function(t){function r(){var r=t.apply(this,ke([],_e(arguments),!1))||this;return r.title=e("float.left"),r.value="left",r.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M77.03514075 117.83964445m12.4275674 0l845.0745837 0q12.42756741 0 12.4275674 12.4275674l0 68.35162074q0 12.42756741-12.4275674 12.42756741l-845.0745837 0q-12.42756741 0-12.4275674-12.42756741l0-68.35162074q0-12.42756741 12.4275674-12.4275674Z"></path><path d="M77.03514075 801.35585185m12.4275674 0l845.0745837 0q12.42756741 0 12.4275674 12.42756741l0 68.35162074q0 12.42756741-12.4275674 12.42756742l-845.0745837 0q-12.42756741 0-12.4275674-12.42756742l0-68.35162074q0-12.42756741 12.4275674-12.42756741Z"></path><path d="M89.46270815 304.25315556h347.9718874c6.83516208 0 12.42756741 5.59240533 12.42756742 12.42756741v410.10972445a12.42756741 12.42756741 0 0 1-12.42756742 12.4275674h-347.9718874a12.42756741 12.42756741 0 0 1-12.4275674-12.4275674v-410.10972445c0-6.83516208 5.59240533-12.42756741 12.4275674-12.42756741z"></path><path d="M512 552.8045037m12.42756741 0l410.10972444 0q12.42756741 0 12.4275674 12.42756742l0 68.35162073q0 12.42756741-12.4275674 12.42756741l-410.10972444 0q-12.42756741 0-12.42756741-12.42756741l0-68.35162073q0-12.42756741 12.42756741-12.42756742Z"></path><path d="M512 366.39099259m12.42756741 0l410.10972444 0q12.42756741 0 12.4275674 12.42756741l0 68.35162075q0 12.42756741-12.4275674 12.4275674l-410.10972444 0q-12.42756741 0-12.42756741-12.4275674l0-68.35162075q0-12.42756741 12.42756741-12.42756741Z"></path></svg>',r}return Re(r,t),r}(wo),Oo=function(t){function r(){var r=t.apply(this,ke([],_e(arguments),!1))||this;return r.title=e("float.none"),r.value="none",r.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M76.73805432 117.83964445m12.42756741 0l845.0745837 0q12.42756741 0 12.42756741 12.4275674l0 68.35162074q0 12.42756741-12.42756741 12.42756741l-845.0745837 0q-12.42756741 0-12.42756741-12.42756741l0-68.35162074q0-12.42756741 12.42756741-12.4275674Z"></path><path d="M76.73805432 801.35585185m12.42756741 0l845.0745837 0q12.42756741 0 12.42756741 12.42756741l0 68.35162074q0 12.42756741-12.42756741 12.42756742l-845.0745837 0q-12.42756741 0-12.42756741-12.42756742l0-68.35162074q0-12.42756741 12.42756741-12.42756741Z"></path><path d="M89.16562173 304.25315556h410.10972444c6.83516208 0 12.42756741 5.59240533 12.42756741 12.42756741v410.10972445a12.42756741 12.42756741 0 0 1-12.42756741 12.4275674h-410.10972444a12.42756741 12.42756741 0 0 1-12.42756741-12.4275674v-410.10972445c0-6.83516208 5.59240533-12.42756741 12.42756741-12.42756741z"></path></svg>',r}return Re(r,t),r}(wo),So=function(t){function r(){var r=t.apply(this,ke([],_e(arguments),!1))||this;return r.title=e("float.right"),r.value="right",r.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M77.03514075 117.83964445m12.4275674 0l845.0745837 0q12.42756741 0 12.4275674 12.4275674l0 68.35162074q0 12.42756741-12.4275674 12.42756741l-845.0745837 0q-12.42756741 0-12.4275674-12.42756741l0-68.35162074q0-12.42756741 12.4275674-12.4275674Z"></path><path d="M77.03514075 801.35585185m12.4275674 0l845.0745837 0q12.42756741 0 12.4275674 12.42756741l0 68.35162074q0 12.42756741-12.4275674 12.42756742l-845.0745837 0q-12.42756741 0-12.4275674-12.42756742l0-68.35162074q0-12.42756741 12.4275674-12.42756741Z"></path><path d="M586.56540445 304.25315556h347.9718874c6.83516208 0 12.42756741 5.59240533 12.4275674 12.42756741v410.10972445a12.42756741 12.42756741 0 0 1-12.4275674 12.4275674h-347.9718874a12.42756741 12.42756741 0 0 1-12.42756742-12.4275674v-410.10972445c0-6.83516208 5.59240533-12.42756741 12.42756742-12.42756741z"></path><path d="M77.03514075 552.8045037m12.4275674 0l410.10972444 0q12.42756741 0 12.42756741 12.42756742l0 68.35162073q0 12.42756741-12.42756741 12.42756741l-410.10972444 0q-12.42756741 0-12.4275674-12.42756741l0-68.35162073q0-12.42756741 12.4275674-12.42756742Z"></path><path d="M77.03514075 366.39099259m12.4275674 0l410.10972444 0q12.42756741 0 12.42756741 12.42756741l0 68.35162075q0 12.42756741-12.42756741 12.4275674l-410.10972444 0q-12.42756741 0-12.4275674-12.4275674l0-68.35162075q0-12.42756741 12.4275674-12.42756741Z"></path></svg>',r}return Re(r,t),r}(wo),jo={key:"imageFloatNone",factory:function(){return new Oo}},Eo={key:"imageFloatLeft",factory:function(){return new xo}},qo={key:"imageFloatRight",factory:function(){return new So}},To={};function Po(){if(go)return ho;go=1;var t=function(){if(po)return vo;po=1;var t=Lt(),r=zt();return vo=function(n){if("Function"===t(n))return r(n)}}(),r=Qt(),n=K(),e=t(t.bind);return ho=function(t,o){return r(t),void 0===o?t:n?e(t,o):function(){return t.apply(o,arguments)}},ho}function Io(){if(mo)return yo;mo=1;var t=Po(),r=zt(),n=Zt(),e=Nr(),o=$n(),i=Ne(),u=r([].push),f=function(r){var f=1===r,a=2===r,c=3===r,l=4===r,s=6===r,v=7===r,p=5===r||s;return function(d,h,g,y){for(var m,b,w=e(d),x=n(w),O=o(x),S=t(h,g),j=0,E=y||i,q=f?E(d,O):a||v?E(d,0):void 0;O>j;j++)if((p||j in x)&&(b=S(m=x[j],j,w),r))if(f)q[j]=b;else if(b)switch(r){case 3:return!0;case 5:return m;case 6:return j;case 2:u(q,m)}else switch(r){case 4:return!1;case 7:u(q,m)}return s?-1:c||l?l:q}};return yo={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}}!function(){if(bo)return To;bo=1;var t=Oe(),r=Io().filter;t({target:"Array",proto:!0,forced:!Ce()("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}();var No,Co,Ao,Mo={};function Ro(){if(Co)return No;Co=1;var t=Mr(),r=lo(),n=Xr().f,e=t("unscopables"),o=Array.prototype;return void 0===o[e]&&n(o,e,{configurable:!0,value:r(null)}),No=function(t){o[e][t]=!0}}!function(){if(Ao)return Mo;Ao=1;var t=Oe(),r=Io().find,n=Ro(),e="find",o=!0;e in[]&&Array(1)[e](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(e)}();var Fo,_o,ko,Do={};!function(){if(ko)return Do;ko=1;var t=qe(),r=wn(),n=function(){if(_o)return Fo;_o=1;var t=qe(),r=Te();return Fo=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",n,{unsafe:!0})}();var zo,Lo,Zo,$o,Bo,Wo,Ho,Uo={};function Go(){return Lo?zo:(Lo=1,zo="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(Ho)return Uo;Ho=1;var t=Oe(),r=function(){if($o)return Zo;$o=1;var t=zt(),r=Bt(),n=He(),e=Go(),o=t("".replace),i=RegExp("^["+e+"]+"),u=RegExp("(^|[^"+e+"])["+e+"]+$"),f=function(t){return function(e){var f=n(r(e));return 1&t&&(f=o(f,i,"")),2&t&&(f=o(f,u,"$1")),f}};return Zo={start:f(1),end:f(2),trim:f(3)}}().trim,n=function(){if(Wo)return Bo;Wo=1;var t=dn().PROPER,r=U(),n=Go();return Bo=function(e){return r(function(){return!!n[e]()||"​…᠎"!=="​…᠎"[e]()||t&&n[e].name!==e})}}();t({target:"String",proto:!0,forced:n("trim")},{trim:function(){return r(this)}})}();var Ko,Xo,Yo={};function Vo(t,r){for(var n="",e=(t.attr("style")||"").split(";"),o=e.length,i=0;i<o;i+=1){var u=e[i];if(u){var f=u.split(":");f[0].trim()===r&&(n=f[1].trim())}}return n}Xo||(Xo=1,function(){if(Ko)return Yo;Ko=1;var t=Oe(),r=_();t({global:!0,forced:r.globalThis!==r},{globalThis:r})}()),i&&(o.fn.css=i),u&&(o.fn.append=u),f&&(o.fn.prepend=f),a&&(o.fn.addClass=a),c&&(o.fn.removeClass=c),l&&(o.fn.hasClass=l),s&&(o.fn.on=s),v&&(o.fn.off=v),p&&(o.fn.focus=p),d&&(o.fn.attr=d),h&&(o.fn.removeAttr=h),g&&(o.fn.hide=g),y&&(o.fn.show=y),m&&(o.fn.parents=m),b&&(o.fn.dataset=b),w&&(o.fn.val=w),x&&(o.fn.text=x),O&&(o.fn.html=O),S&&(o.fn.children=S),j&&(o.fn.remove=j),E&&(o.fn.find=E),q&&(o.fn.width=q),T&&(o.fn.height=T),P&&(o.fn.filter=P),I&&(o.fn.empty=I);var Jo,Qo,ti,ri,ni,ei,oi,ii={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,r,n){var e=o(t),i=e.attr("data-href")||"";return i=decodeURIComponent(i),{type:"image",src:e.attr("src")||"",alt:e.attr("alt")||"",href:i,style:{width:Vo(e,"width"),height:Vo(e,"height"),float:Vo(e,"float")||""},width:e.attr("width")||"",height:e.attr("height")||"",children:[{text:""}]}}},ui={};function fi(){if(Qo)return Jo;Qo=1;var t=zt();return Jo=t(1.1.valueOf)}!function(){if(ni)return ui;ni=1;var t=Oe(),r=zt(),n=zn(),e=fi(),o=function(){if(ri)return ti;ri=1;var t=zn(),r=He(),n=Bt(),e=RangeError;return ti=function(o){var i=r(n(this)),u="",f=t(o);if(f<0||f===1/0)throw new e("Wrong number of repetitions");for(;f>0;(f>>>=1)&&(i+=i))1&f&&(u+=i);return u}}(),i=U(),u=RangeError,f=String,a=Math.floor,c=r(o),l=r("".slice),s=r(1.1.toFixed),v=function(t,r,n){return 0===r?n:r%2==1?v(t,r-1,n*t):v(t*t,r/2,n)},p=function(t,r,n){for(var e=-1,o=n;++e<6;)o+=r*t[e],t[e]=o%1e7,o=a(o/1e7)},d=function(t,r){for(var n=6,e=0;--n>=0;)e+=t[n],t[n]=a(e/r),e=e%r*1e7},h=function(t){for(var r=6,n="";--r>=0;)if(""!==n||0===r||0!==t[r]){var e=f(t[r]);n=""===n?e:n+c("0",7-e.length)+e}return n};t({target:"Number",proto:!0,forced:i(function(){return"0.000"!==s(8e-5,3)||"1"!==s(.9,0)||"1.25"!==s(1.255,2)||"1000000000000000128"!==s(0xde0b6b3a7640080,0)})||!i(function(){s({})})},{toFixed:function(t){var r,o,i,a,s=e(this),g=n(t),y=[0,0,0,0,0,0],m="",b="0";if(g<0||g>20)throw new u("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return f(s);if(s<0&&(m="-",s=-s),s>1e-21)if(o=(r=function(t){for(var r=0,n=t;n>=4096;)r+=12,n/=4096;for(;n>=2;)r+=1,n/=2;return r}(s*v(2,69,1))-69)<0?s*v(2,-r,1):s/v(2,r,1),o*=4503599627370496,(r=52-r)>0){for(p(y,0,o),i=g;i>=7;)p(y,1e7,0),i-=7;for(p(y,v(10,i,1),0),i=r-1;i>=23;)d(y,1<<23),i-=23;d(y,1<<i),p(y,1,1),d(y,2),b=h(y)}else p(y,0,o),p(y,1<<-r,0),b=h(y)+c("0",g);return b=g>0?m+((a=b.length)<=g?"0."+c("0",g-a)+b:l(b,0,a-g)+"."+l(b,a-g)):m+b}})}();var ai=function(){if(oi)return ei;oi=1;var t="Expected a function",r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,e=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt,u="object"==typeof C&&C&&C.Object===Object&&C,f="object"==typeof self&&self&&self.Object===Object&&self,a=u||f||Function("return this")(),c=Object.prototype.toString,l=Math.max,s=Math.min,v=function(){return a.Date.now()};function p(r,n,e){var o,i,u,f,a,c,p=0,g=!1,y=!1,m=!0;if("function"!=typeof r)throw new TypeError(t);function b(t){var n=o,e=i;return o=i=void 0,p=t,f=r.apply(e,n)}function w(t){var r=t-c;return void 0===c||r>=n||r<0||y&&t-p>=u}function x(){var t=v();if(w(t))return O(t);a=setTimeout(x,function(t){var r=n-(t-c);return y?s(r,u-(t-p)):r}(t))}function O(t){return a=void 0,m&&o?b(t):(o=i=void 0,f)}function S(){var t=v(),r=w(t);if(o=arguments,i=this,c=t,r){if(void 0===a)return function(t){return p=t,a=setTimeout(x,n),g?b(t):f}(c);if(y)return a=setTimeout(x,n),b(c)}return void 0===a&&(a=setTimeout(x,n)),f}return n=h(n)||0,d(e)&&(g=!!e.leading,u=(y="maxWait"in e)?l(h(e.maxWait)||0,n):u,m="trailing"in e?!!e.trailing:m),S.cancel=function(){void 0!==a&&clearTimeout(a),p=0,o=c=i=a=void 0},S.flush=function(){return void 0===a?f:O(v())},S}function d(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function h(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==c.call(t)}(t))return NaN;if(d(t)){var u="function"==typeof t.valueOf?t.valueOf():t;t=d(u)?u+"":u}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var f=e.test(t);return f||o.test(t)?i(t.slice(2),f?2:8):n.test(t)?NaN:+t}return ei=function(r,n,e){var o=!0,i=!0;if("function"!=typeof r)throw new TypeError(t);return d(e)&&(o="leading"in e?!!e.leading:o,i="trailing"in e?!!e.trailing:i),p(r,n,{leading:o,maxWait:n,trailing:i})}}(),ci=A(ai);function li(t,n){var e=r.findKey(t,n).id;return"w-e-image-container-".concat(e)}function si(t,e,i,u){var f=o("body"),a=li(t,e),c=u.width,l=u.height,s=u.float,v=0,p=0,d=0,h=!1,g=null;var y=ci(function(t){t.preventDefault();var r=t.clientX,n=p+(h?v-r:r-v),e=d*(n/p);null!=g&&(n<=15||e<=15||(g.css("width","".concat(n,"px")),g.css("height","".concat(e,"px"))))},100);function m(o){if(f.off("mousemove",y),null!=g){var i=g.width().toFixed(2),u=g.height().toFixed(2),a={style:Fe(Fe({},e.style),{width:"".concat(i,"px"),height:"".concat(u,"px")})};n.setNodes(t,a,{at:r.findPath(t,e)}),f.off("mouseup",m)}}function b(n){g=function(){var t=o("#".concat(a));if(0===t.length)throw new Error("Cannot find image container elem");return t}(),v=n;var e=g.find("img");if(0===e.length)throw new Error("Cannot find image elem");p=e.width(),d=e.height(),f.on("mousemove",y),f.on("mouseup",m);var i=r.getHoverbar(t);i&&i.hideAndClean()}var w={};return c&&(w.width=c),l&&(w.height=l),s&&(w.float=s),N("div",{id:a,style:w,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var r=o(t.target);r.hasClass("w-e-image-dragger")&&(t.preventDefault(),(r.hasClass("left-top")||r.hasClass("left-bottom"))&&(h=!0),b(t.clientX))}}},i,N("div",{className:"w-e-image-dragger left-top"}),N("div",{className:"w-e-image-dragger right-top"}),N("div",{className:"w-e-image-dragger left-bottom"}),N("div",{className:"w-e-image-dragger right-bottom"}))}var vi={type:"image",renderElem:function(t,n,e){var o=t,i=o.src,u=o.alt,f=void 0===u?"":u,a=o.href,c=void 0===a?"":a,l=o.style,s=void 0===l?{}:l,v=s.width,p=void 0===v?"":v,d=s.height,h=void 0===d?"":d,g=s.float,y=r.isNodeSelected(e,t),m={};p&&(m.width="100%"),h&&(m.height="100%"),g&&(m.float=g);var b=N("img",{style:m,src:i,alt:f,"data-href":c}),w=e.isDisabled();return y&&!w?si(e,t,b,{width:p,height:h,float:g}):function(t,r,n,e){var o=e.width,i=e.height,u=e.float,f={};o&&(f.width=o),i&&(f.height=i),u&&(f.float=u);var a=li(t,r);return N("div",{id:a,style:f,className:"w-e-image-container"},n)}(e,t,b,{width:p,height:h,float:g})}},pi={renderElems:[vi],elemsToHtml:[Ae],parseElemsHtml:[ii],menus:[Eo,qo,jo]};export{pi as default};
1
+ import{i18nAddResources as t,getTextStyleMode as r,DomEditor as n,SlateTransforms as e,t as i}from"@wangeditor-next/editor";import o,{css as u,append as a,prepend as f,addClass as c,removeClass as l,hasClass as s,on as v,off as p,focus as h,attr as d,removeAttr as g,hide as y,show as m,parents as b,dataset as w,val as x,text as O,html as S,children as j,remove as E,find as q,width as T,height as A,filter as P,empty as I}from"dom7";import{jsx as C}from"snabbdom";t("en",{float:{none:"Default",left:"Float Left",right:"Float Right"}}),t("zh-CN",{float:{none:"默认",left:"左浮动",right:"右浮动"}});var R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function N(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var M,F,_={};function k(){if(F)return M;F=1;var t=function(t){return t&&t.Math===Math&&t};return M=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof R&&R)||t("object"==typeof M&&M)||function(){return this}()||Function("return this")()}var D,z,L,B,Z,$,W,U,H={};function G(){return z?D:(z=1,D=function(t){try{return!!t()}catch(t){return!0}})}function K(){if(B)return L;B=1;var t=G();return L=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function X(){if($)return Z;$=1;var t=G();return Z=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function Y(){if(U)return W;U=1;var t=X(),r=Function.prototype.call;return W=t?r.bind(r):function(){return r.apply(r,arguments)},W}var V,J,Q,tt,rt,nt,et,it,ot,ut,at,ft,ct,lt,st,vt,pt,ht,dt,gt,yt,mt,bt,wt,xt,Ot,St,jt,Et,qt,Tt,At,Pt,It,Ct,Rt,Nt,Mt,Ft,_t,kt,Dt={};function zt(){return Q?J:(Q=1,J=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function Lt(){if(rt)return tt;rt=1;var t=X(),r=Function.prototype,n=r.call,e=t&&r.bind.bind(n,n);return tt=t?e:function(t){return function(){return n.apply(t,arguments)}},tt}function Bt(){if(et)return nt;et=1;var t=Lt(),r=t({}.toString),n=t("".slice);return nt=function(t){return n(r(t),8,-1)}}function Zt(){if(ot)return it;ot=1;var t=Lt(),r=G(),n=Bt(),e=Object,i=t("".split);return it=r(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?i(t,""):e(t)}:e}function $t(){return at?ut:(at=1,ut=function(t){return null==t})}function Wt(){if(ct)return ft;ct=1;var t=$t(),r=TypeError;return ft=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}function Ut(){if(st)return lt;st=1;var t=Zt(),r=Wt();return lt=function(n){return t(r(n))}}function Ht(){if(pt)return vt;pt=1;var t="object"==typeof document&&document.all;return vt=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function Gt(){if(dt)return ht;dt=1;var t=Ht();return ht=function(r){return"object"==typeof r?null!==r:t(r)}}function Kt(){if(yt)return gt;yt=1;var t=k(),r=Ht();return gt=function(n,e){return arguments.length<2?(i=t[n],r(i)?i:void 0):t[n]&&t[n][e];var i},gt}function Xt(){if(St)return Ot;St=1;var t,r,n=k(),e=function(){if(xt)return wt;xt=1;var t=k().navigator,r=t&&t.userAgent;return wt=r?String(r):""}(),i=n.process,o=n.Deno,u=i&&i.versions||o&&o.version,a=u&&u.v8;return a&&(r=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(r=+t[1]),Ot=r}function Yt(){if(Et)return jt;Et=1;var t=Xt(),r=G(),n=k().String;return jt=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!n(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function Vt(){if(Tt)return qt;Tt=1;var t=Yt();return qt=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Jt(){if(Pt)return At;Pt=1;var t=Kt(),r=Ht(),n=function(){if(bt)return mt;bt=1;var t=Lt();return mt=t({}.isPrototypeOf)}(),e=Vt(),i=Object;return At=e?function(t){return"symbol"==typeof t}:function(e){var o=t("Symbol");return r(o)&&n(o.prototype,i(e))}}function Qt(){if(Ct)return It;Ct=1;var t=String;return It=function(r){try{return t(r)}catch(t){return"Object"}}}function tr(){if(Nt)return Rt;Nt=1;var t=Ht(),r=Qt(),n=TypeError;return Rt=function(e){if(t(e))return e;throw new n(r(e)+" is not a function")}}function rr(){if(Ft)return Mt;Ft=1;var t=tr(),r=$t();return Mt=function(n,e){var i=n[e];return r(i)?void 0:t(i)}}function nr(){if(kt)return _t;kt=1;var t=Y(),r=Ht(),n=Gt(),e=TypeError;return _t=function(i,o){var u,a;if("string"===o&&r(u=i.toString)&&!n(a=t(u,i)))return a;if(r(u=i.valueOf)&&!n(a=t(u,i)))return a;if("string"!==o&&r(u=i.toString)&&!n(a=t(u,i)))return a;throw new e("Can't convert object to primitive value")},_t}var er,ir,or,ur,ar,fr,cr,lr,sr,vr,pr,hr,dr,gr,yr,mr,br,wr,xr,Or,Sr,jr,Er,qr,Tr={exports:{}};function Ar(){if(ur)return or;ur=1;var t=k(),r=Object.defineProperty;return or=function(n,e){try{r(t,n,{value:e,configurable:!0,writable:!0})}catch(r){t[n]=e}return e}}function Pr(){if(ar)return Tr.exports;ar=1;var t=ir?er:(ir=1,er=!1),r=k(),n=Ar(),e="__core-js_shared__",i=Tr.exports=r[e]||n(e,{});return(i.versions||(i.versions=[])).push({version:"3.47.0",mode:t?"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"}),Tr.exports}function Ir(){if(cr)return fr;cr=1;var t=Pr();return fr=function(r,n){return t[r]||(t[r]=n||{})}}function Cr(){if(sr)return lr;sr=1;var t=Wt(),r=Object;return lr=function(n){return r(t(n))}}function Rr(){if(pr)return vr;pr=1;var t=Lt(),r=Cr(),n=t({}.hasOwnProperty);return vr=Object.hasOwn||function(t,e){return n(r(t),e)}}function Nr(){if(dr)return hr;dr=1;var t=Lt(),r=0,n=Math.random(),e=t(1.1.toString);return hr=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++r+n,36)}}function Mr(){if(yr)return gr;yr=1;var t=k(),r=Ir(),n=Rr(),e=Nr(),i=Yt(),o=Vt(),u=t.Symbol,a=r("wks"),f=o?u.for||u:u&&u.withoutSetter||e;return gr=function(t){return n(a,t)||(a[t]=i&&n(u,t)?u[t]:f("Symbol."+t)),a[t]}}function Fr(){if(br)return mr;br=1;var t=Y(),r=Gt(),n=Jt(),e=rr(),i=nr(),o=Mr(),u=TypeError,a=o("toPrimitive");return mr=function(o,f){if(!r(o)||n(o))return o;var c,l=e(o,a);if(l){if(void 0===f&&(f="default"),c=t(l,o,f),!r(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===f&&(f="number"),i(o,f)}}function _r(){if(xr)return wr;xr=1;var t=Fr(),r=Jt();return wr=function(n){var e=t(n,"string");return r(e)?e:e+""}}function kr(){if(Sr)return Or;Sr=1;var t=k(),r=Gt(),n=t.document,e=r(n)&&r(n.createElement);return Or=function(t){return e?n.createElement(t):{}}}function Dr(){if(Er)return jr;Er=1;var t=K(),r=G(),n=kr();return jr=!t&&!r(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function zr(){if(qr)return H;qr=1;var t=K(),r=Y(),n=function(){if(V)return Dt;V=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);return Dt.f=n?function(t){var n=r(this,t);return!!n&&n.enumerable}:t,Dt}(),e=zt(),i=Ut(),o=_r(),u=Rr(),a=Dr(),f=Object.getOwnPropertyDescriptor;return H.f=t?f:function(t,c){if(t=i(t),c=o(c),a)try{return f(t,c)}catch(t){}if(u(t,c))return e(!r(n.f,t,c),t[c])},H}var Lr,Br,Zr,$r,Wr,Ur,Hr,Gr={};function Kr(){if(Br)return Lr;Br=1;var t=K(),r=G();return Lr=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Xr(){if($r)return Zr;$r=1;var t=Gt(),r=String,n=TypeError;return Zr=function(e){if(t(e))return e;throw new n(r(e)+" is not an object")}}function Yr(){if(Wr)return Gr;Wr=1;var t=K(),r=Dr(),n=Kr(),e=Xr(),i=_r(),o=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,f="enumerable",c="configurable",l="writable";return Gr.f=t?n?function(t,r,n){if(e(t),r=i(r),e(n),"function"==typeof t&&"prototype"===r&&"value"in n&&l in n&&!n[l]){var o=a(t,r);o&&o[l]&&(t[r]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:f in n?n[f]:o[f],writable:!1})}return u(t,r,n)}:u:function(t,n,a){if(e(t),n=i(n),e(a),r)try{return u(t,n,a)}catch(t){}if("get"in a||"set"in a)throw new o("Accessors not supported");return"value"in a&&(t[n]=a.value),t},Gr}function Vr(){if(Hr)return Ur;Hr=1;var t=K(),r=Yr(),n=zt();return Ur=t?function(t,e,i){return r.f(t,e,n(1,i))}:function(t,r,n){return t[r]=n,t}}var Jr,Qr,tn,rn,nn,en,on,un,an,fn,cn,ln,sn,vn,pn,hn={exports:{}};function dn(){if(Qr)return Jr;Qr=1;var t=K(),r=Rr(),n=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,i=r(n,"name"),o=i&&"something"===function(){}.name,u=i&&(!t||t&&e(n,"name").configurable);return Jr={EXISTS:i,PROPER:o,CONFIGURABLE:u}}function gn(){if(rn)return tn;rn=1;var t=Lt(),r=Ht(),n=Pr(),e=t(Function.toString);return r(n.inspectSource)||(n.inspectSource=function(t){return e(t)}),tn=n.inspectSource}function yn(){if(un)return on;un=1;var t=Ir(),r=Nr(),n=t("keys");return on=function(t){return n[t]||(n[t]=r(t))}}function mn(){return fn?an:(fn=1,an={})}function bn(){if(ln)return cn;ln=1;var t,r,n,e=function(){if(en)return nn;en=1;var t=k(),r=Ht(),n=t.WeakMap;return nn=r(n)&&/native code/.test(String(n))}(),i=k(),o=Gt(),u=Vr(),a=Rr(),f=Pr(),c=yn(),l=mn(),s="Object already initialized",v=i.TypeError,p=i.WeakMap;if(e||f.state){var h=f.state||(f.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,r){if(h.has(t))throw new v(s);return r.facade=t,h.set(t,r),r},r=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var d=c("state");l[d]=!0,t=function(t,r){if(a(t,d))throw new v(s);return r.facade=t,u(t,d,r),r},r=function(t){return a(t,d)?t[d]:{}},n=function(t){return a(t,d)}}return cn={set:t,get:r,has:n,enforce:function(e){return n(e)?r(e):t(e,{})},getterFor:function(t){return function(n){var e;if(!o(n)||(e=r(n)).type!==t)throw new v("Incompatible receiver, "+t+" required");return e}}}}function wn(){if(sn)return hn.exports;sn=1;var t=Lt(),r=G(),n=Ht(),e=Rr(),i=K(),o=dn().CONFIGURABLE,u=gn(),a=bn(),f=a.enforce,c=a.get,l=String,s=Object.defineProperty,v=t("".slice),p=t("".replace),h=t([].join),d=i&&!r(function(){return 8!==s(function(){},"length",{value:8}).length}),g=String(String).split("String"),y=hn.exports=function(t,r,n){"Symbol("===v(l(r),0,7)&&(r="["+p(l(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(r="get "+r),n&&n.setter&&(r="set "+r),(!e(t,"name")||o&&t.name!==r)&&(i?s(t,"name",{value:r,configurable:!0}):t.name=r),d&&n&&e(n,"arity")&&t.length!==n.arity&&s(t,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?i&&s(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=f(t);return e(u,"source")||(u.source=h(g,"string"==typeof r?r:"")),t};return Function.prototype.toString=y(function(){return n(this)&&c(this).source||u(this)},"toString"),hn.exports}function xn(){if(pn)return vn;pn=1;var t=Ht(),r=Yr(),n=wn(),e=Ar();return vn=function(i,o,u,a){a||(a={});var f=a.enumerable,c=void 0!==a.name?a.name:o;if(t(u)&&n(u,c,a),a.global)f?i[o]=u:e(o,u);else{try{a.unsafe?i[o]&&(f=!0):delete i[o]}catch(t){}f?i[o]=u:r.f(i,o,{value:u,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return i}}var On,Sn,jn,En,qn,Tn,An,Pn,In,Cn,Rn,Nn,Mn,Fn,_n,kn,Dn,zn={};function Ln(){if(En)return jn;En=1;var t=function(){if(Sn)return On;Sn=1;var t=Math.ceil,r=Math.floor;return On=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}}();return jn=function(r){var n=+r;return n!=n||0===n?0:t(n)}}function Bn(){if(Tn)return qn;Tn=1;var t=Ln(),r=Math.max,n=Math.min;return qn=function(e,i){var o=t(e);return o<0?r(o+i,0):n(o,i)}}function Zn(){if(Pn)return An;Pn=1;var t=Ln(),r=Math.min;return An=function(n){var e=t(n);return e>0?r(e,9007199254740991):0}}function $n(){if(Cn)return In;Cn=1;var t=Zn();return In=function(r){return t(r.length)}}function Wn(){if(Nn)return Rn;Nn=1;var t=Ut(),r=Bn(),n=$n(),e=function(e){return function(i,o,u){var a=t(i),f=n(a);if(0===f)return!e&&-1;var c,l=r(u,f);if(e&&o!=o){for(;f>l;)if((c=a[l++])!=c)return!0}else for(;f>l;l++)if((e||l in a)&&a[l]===o)return e||l||0;return!e&&-1}};return Rn={includes:e(!0),indexOf:e(!1)}}function Un(){if(Fn)return Mn;Fn=1;var t=Lt(),r=Rr(),n=Ut(),e=Wn().indexOf,i=mn(),o=t([].push);return Mn=function(t,u){var a,f=n(t),c=0,l=[];for(a in f)!r(i,a)&&r(f,a)&&o(l,a);for(;u.length>c;)r(f,a=u[c++])&&(~e(l,a)||o(l,a));return l}}function Hn(){return kn?_n:(kn=1,_n=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Gn,Kn,Xn,Yn,Vn,Jn,Qn,te,re,ne,ee,ie,oe,ue,ae,fe,ce,le,se,ve,pe,he,de,ge,ye,me,be,we,xe={};function Oe(){if(Xn)return Kn;Xn=1;var t=Kt(),r=Lt(),n=function(){if(Dn)return zn;Dn=1;var t=Un(),r=Hn().concat("length","prototype");return zn.f=Object.getOwnPropertyNames||function(n){return t(n,r)},zn}(),e=(Gn||(Gn=1,xe.f=Object.getOwnPropertySymbols),xe),i=Xr(),o=r([].concat);return Kn=t("Reflect","ownKeys")||function(t){var r=n.f(i(t)),u=e.f;return u?o(r,u(t)):r}}function Se(){if(Vn)return Yn;Vn=1;var t=Rr(),r=Oe(),n=zr(),e=Yr();return Yn=function(i,o,u){for(var a=r(o),f=e.f,c=n.f,l=0;l<a.length;l++){var s=a[l];t(i,s)||u&&t(u,s)||f(i,s,c(o,s))}}}function je(){if(re)return te;re=1;var t=k(),r=zr().f,n=Vr(),e=xn(),i=Ar(),o=Se(),u=function(){if(Qn)return Jn;Qn=1;var t=G(),r=Ht(),n=/#|\.prototype\./,e=function(n,e){var f=o[i(n)];return f===a||f!==u&&(r(e)?t(e):!!e)},i=e.normalize=function(t){return String(t).replace(n,".").toLowerCase()},o=e.data={},u=e.NATIVE="N",a=e.POLYFILL="P";return Jn=e}();return te=function(a,f){var c,l,s,v,p,h=a.target,d=a.global,g=a.stat;if(c=d?t:g?t[h]||i(h,{}):t[h]&&t[h].prototype)for(l in f){if(v=f[l],s=a.dontCallGetSet?(p=r(c,l))&&p.value:c[l],!u(d?l:h+(g?".":"#")+l,a.forced)&&void 0!==s){if(typeof v==typeof s)continue;o(v,s)}(a.sham||s&&s.sham)&&n(v,"sham",!0),e(c,l,v,a)}}}function Ee(){if(ee)return ne;ee=1;var t=Bt();return ne=Array.isArray||function(r){return"Array"===t(r)}}function qe(){if(oe)return ie;oe=1;var t=TypeError;return ie=function(r){if(r>9007199254740991)throw t("Maximum allowed index exceeded");return r}}function Te(){if(ae)return ue;ae=1;var t=K(),r=Yr(),n=zt();return ue=function(e,i,o){t?r.f(e,i,n(0,o)):e[i]=o}}function Ae(){if(ce)return fe;ce=1;var t={};return t[Mr()("toStringTag")]="z",fe="[object z]"===String(t)}function Pe(){if(se)return le;se=1;var t=Ae(),r=Ht(),n=Bt(),e=Mr()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return le=t?n:function(t){var u,a,f;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,r){try{return t[r]}catch(t){}}(u=i(t),e))?a:o?n(u):"Object"===(f=n(u))&&r(u.callee)?"Arguments":f}}function Ie(){if(pe)return ve;pe=1;var t=Lt(),r=G(),n=Ht(),e=Pe(),i=Kt(),o=gn(),u=function(){},a=i("Reflect","construct"),f=/^\s*(?:class|function)\b/,c=t(f.exec),l=!f.test(u),s=function(t){if(!n(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},v=function(t){if(!n(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(f,o(t))}catch(t){return!0}};return v.sham=!0,ve=!a||r(function(){var t;return s(s.call)||!s(Object)||!s(function(){t=!0})||t})?v:s}function Ce(){if(de)return he;de=1;var t=Ee(),r=Ie(),n=Gt(),e=Mr()("species"),i=Array;return he=function(o){var u;return t(o)&&(u=o.constructor,(r(u)&&(u===i||t(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?i:u}}function Re(){if(ye)return ge;ye=1;var t=Ce();return ge=function(r,n){return new(t(r))(0===n?0:n)}}function Ne(){if(be)return me;be=1;var t=G(),r=Mr(),n=Xt(),e=r("species");return me=function(r){return n>=51||!t(function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[r](Boolean).foo})}}!function(){if(we)return _;we=1;var t=je(),r=G(),n=Ee(),e=Gt(),i=Cr(),o=$n(),u=qe(),a=Te(),f=Re(),c=Ne(),l=Mr(),s=Xt(),v=l("isConcatSpreadable"),p=s>=51||!r(function(){var t=[];return t[v]=!1,t.concat()[0]!==t}),h=function(t){if(!e(t))return!1;var r=t[v];return void 0!==r?!!r:n(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var r,n,e,c,l,s=i(this),v=f(s,0),p=0;for(r=-1,e=arguments.length;r<e;r++)if(h(l=-1===r?s:arguments[r]))for(c=o(l),u(p+c),n=0;n<c;n++,p++)n in l&&a(v,p,l[n]);else u(p+1),a(v,p++,l);return v.length=p,v}})}();var Me,Fe,_e,ke,De,ze,Le,Be,Ze,$e={};function We(){if(Fe)return Me;Fe=1;var t=Pe(),r=String;return Me=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}}function Ue(){return ke?_e:(ke=1,_e="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(Ze)return $e;Ze=1;var t=je(),r=function(){if(ze)return De;ze=1;var t=Lt(),r=Wt(),n=We(),e=Ue(),i=t("".replace),o=RegExp("^["+e+"]+"),u=RegExp("(^|[^"+e+"])["+e+"]+$"),a=function(t){return function(e){var a=n(r(e));return 1&t&&(a=i(a,o,"")),2&t&&(a=i(a,u,"$1")),a}};return De={start:a(1),end:a(2),trim:a(3)}}().trim,n=function(){if(Be)return Le;Be=1;var t=dn().PROPER,r=G(),n=Ue();return Le=function(e){return r(function(){return!!n[e]()||"​…᠎"!=="​…᠎"[e]()||t&&n[e].name!==e})}}();t({target:"String",proto:!0,forced:n("trim")},{trim:function(){return r(this)}})}();var He={type:"image",elemToHtml:function(t,n,e){var i=t,o=i.src,u=i.alt,a=void 0===u?"":u,f=i.href,c=void 0===f?"":f,l=i.style,s=void 0===l?{}:l,v=s.width,p=void 0===v?"":v,h=s.height,d=void 0===h?"":h,g=s.float,y=void 0===g?"":g;if("class"===r(e)){var m=p?' data-w-e-style-width="'.concat(p,'"'):"",b=d?' data-w-e-style-height="'.concat(d,'"'):"",w=y?' data-w-e-style-float="'.concat(y,'"'):"",x=function(t){var r=(t||"").trim().toLowerCase();return"left"===r?"w-e-float-image-left":"right"===r?"w-e-float-image-right":"none"===r?"w-e-float-image-none":""}(y),O=x?' class="'.concat(x,'"'):"";return'<img src="'.concat(o,'" alt="').concat(a,'" data-href="').concat(c,'" width="').concat(p,'" height="').concat(d,'"').concat(O).concat(m).concat(b).concat(w,"/>")}var S="";return p&&(S+="width: ".concat(p,";")),d&&(S+="height: ".concat(d,";")),y&&(S+="float: ".concat(y,";")),'<img src="'.concat(o,'" alt="').concat(a,'" data-href="').concat(c,'" style="').concat(S,'"/>')}},Ge=function(t,r){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},Ge(t,r)};function Ke(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}Ge(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var Xe=function(){return Xe=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var i in r=arguments[n])Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t},Xe.apply(this,arguments)};function Ye(t,r){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,i,o=n.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(t){i={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function Ve(t,r,n){if(n||2===arguments.length)for(var e,i=0,o=r.length;i<o;i++)!e&&i in r||(e||(e=Array.prototype.slice.call(r,0,i)),e[i]=r[i]);return t.concat(e||Array.prototype.slice.call(r))}"function"==typeof SuppressedError&&SuppressedError;var Je,Qe,ti,ri,ni={};function ei(){if(Qe)return Je;Qe=1;var t=Xr();return Je=function(){var r=t(this),n="";return r.hasIndices&&(n+="d"),r.global&&(n+="g"),r.ignoreCase&&(n+="i"),r.multiline&&(n+="m"),r.dotAll&&(n+="s"),r.unicode&&(n+="u"),r.unicodeSets&&(n+="v"),r.sticky&&(n+="y"),n}}function ii(){if(ri)return ti;ri=1;var t=G(),r=k().RegExp,n=t(function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),e=n||t(function(){return!r("a","y").sticky}),i=n||t(function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return ti={BROKEN_CARET:i,MISSED_STICKY:e,UNSUPPORTED_Y:n}}var oi,ui,ai,fi,ci,li,si,vi,pi,hi,di,gi,yi,mi,bi={};function wi(){if(ui)return oi;ui=1;var t=Un(),r=Hn();return oi=Object.keys||function(n){return t(n,r)}}function xi(){if(ci)return fi;ci=1;var t=Kt();return fi=t("document","documentElement")}function Oi(){if(si)return li;si=1;var t,r=Xr(),n=function(){if(ai)return bi;ai=1;var t=K(),r=Kr(),n=Yr(),e=Xr(),i=Ut(),o=wi();return bi.f=t&&!r?Object.defineProperties:function(t,r){e(t);for(var u,a=i(r),f=o(r),c=f.length,l=0;c>l;)n.f(t,u=f[l++],a[u]);return t},bi}(),e=Hn(),i=mn(),o=xi(),u=kr(),a=yn(),f="prototype",c="script",l=a("IE_PROTO"),s=function(){},v=function(t){return"<"+c+">"+t+"</"+c+">"},p=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},h=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var r,n,i;h="undefined"!=typeof document?document.domain&&t?p(t):(n=u("iframe"),i="java"+c+":",n.style.display="none",o.appendChild(n),n.src=String(i),(r=n.contentWindow.document).open(),r.write(v("document.F=Object")),r.close(),r.F):p(t);for(var a=e.length;a--;)delete h[f][e[a]];return h()};return i[l]=!0,li=Object.create||function(t,e){var i;return null!==t?(s[f]=r(t),i=new s,s[f]=null,i[l]=t):i=h(),void 0===e?i:n.f(i,e)}}function Si(){if(yi)return gi;yi=1;var t,r,n=Y(),e=Lt(),i=We(),o=ei(),u=ii(),a=Ir(),f=Oi(),c=bn().get,l=function(){if(pi)return vi;pi=1;var t=G(),r=k().RegExp;return vi=t(function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),s=function(){if(di)return hi;di=1;var t=G(),r=k().RegExp;return hi=t(function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),v=a("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,h=p,d=e("".charAt),g=e("".indexOf),y=e("".replace),m=e("".slice),b=(r=/b*/g,n(p,t=/a/,"a"),n(p,r,"a"),0!==t.lastIndex||0!==r.lastIndex),w=u.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];return(b||x||w||l||s)&&(h=function(t){var r,e,u,a,l,s,O,S=this,j=c(S),E=i(t),q=j.raw;if(q)return q.lastIndex=S.lastIndex,r=n(h,q,E),S.lastIndex=q.lastIndex,r;var T=j.groups,A=w&&S.sticky,P=n(o,S),I=S.source,C=0,R=E;if(A&&(P=y(P,"y",""),-1===g(P,"g")&&(P+="g"),R=m(E,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==d(E,S.lastIndex-1))&&(I="(?: "+I+")",R=" "+R,C++),e=new RegExp("^(?:"+I+")",P)),x&&(e=new RegExp("^"+I+"$(?!\\s)",P)),b&&(u=S.lastIndex),a=n(p,A?e:S,R),A?a?(a.input=m(a.input,C),a[0]=m(a[0],C),a.index=S.lastIndex,S.lastIndex+=a[0].length):S.lastIndex=0:b&&a&&(S.lastIndex=S.global?a.index+a[0].length:u),x&&a&&a.length>1&&n(v,a[0],e,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)}),a&&T)for(a.groups=s=f(null),l=0;l<T.length;l++)s[(O=T[l])[0]]=a[O[1]];return a}),gi=h}function ji(){if(mi)return ni;mi=1;var t=je(),r=Si();return t({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r}),ni}ji();var Ei,qi,Ti,Ai,Pi,Ii,Ci,Ri=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.getSelectedNode=function(t){return n.getSelectedNodeByType(t,"image")},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedNode(t)},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var i=this.getSelectedNode(t);if(null!=i){var o=n.getHoverbar(t);o&&o.hideAndClean();var u=i.style,a={style:Xe(Xe({},void 0===u?{}:u),{float:this.value})};e.setNodes(t,a,{match:function(t){return n.checkNodeType(t,"image")}})}}},t}(),Ni=function(t){function r(){var r=t.apply(this,Ve([],Ye(arguments),!1))||this;return r.title=i("float.left"),r.value="left",r.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M77.03514075 117.83964445m12.4275674 0l845.0745837 0q12.42756741 0 12.4275674 12.4275674l0 68.35162074q0 12.42756741-12.4275674 12.42756741l-845.0745837 0q-12.42756741 0-12.4275674-12.42756741l0-68.35162074q0-12.42756741 12.4275674-12.4275674Z"></path><path d="M77.03514075 801.35585185m12.4275674 0l845.0745837 0q12.42756741 0 12.4275674 12.42756741l0 68.35162074q0 12.42756741-12.4275674 12.42756742l-845.0745837 0q-12.42756741 0-12.4275674-12.42756742l0-68.35162074q0-12.42756741 12.4275674-12.42756741Z"></path><path d="M89.46270815 304.25315556h347.9718874c6.83516208 0 12.42756741 5.59240533 12.42756742 12.42756741v410.10972445a12.42756741 12.42756741 0 0 1-12.42756742 12.4275674h-347.9718874a12.42756741 12.42756741 0 0 1-12.4275674-12.4275674v-410.10972445c0-6.83516208 5.59240533-12.42756741 12.4275674-12.42756741z"></path><path d="M512 552.8045037m12.42756741 0l410.10972444 0q12.42756741 0 12.4275674 12.42756742l0 68.35162073q0 12.42756741-12.4275674 12.42756741l-410.10972444 0q-12.42756741 0-12.42756741-12.42756741l0-68.35162073q0-12.42756741 12.42756741-12.42756742Z"></path><path d="M512 366.39099259m12.42756741 0l410.10972444 0q12.42756741 0 12.4275674 12.42756741l0 68.35162075q0 12.42756741-12.4275674 12.4275674l-410.10972444 0q-12.42756741 0-12.42756741-12.4275674l0-68.35162075q0-12.42756741 12.42756741-12.42756741Z"></path></svg>',r}return Ke(r,t),r}(Ri),Mi=function(t){function r(){var r=t.apply(this,Ve([],Ye(arguments),!1))||this;return r.title=i("float.none"),r.value="none",r.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M76.73805432 117.83964445m12.42756741 0l845.0745837 0q12.42756741 0 12.42756741 12.4275674l0 68.35162074q0 12.42756741-12.42756741 12.42756741l-845.0745837 0q-12.42756741 0-12.42756741-12.42756741l0-68.35162074q0-12.42756741 12.42756741-12.4275674Z"></path><path d="M76.73805432 801.35585185m12.42756741 0l845.0745837 0q12.42756741 0 12.42756741 12.42756741l0 68.35162074q0 12.42756741-12.42756741 12.42756742l-845.0745837 0q-12.42756741 0-12.42756741-12.42756742l0-68.35162074q0-12.42756741 12.42756741-12.42756741Z"></path><path d="M89.16562173 304.25315556h410.10972444c6.83516208 0 12.42756741 5.59240533 12.42756741 12.42756741v410.10972445a12.42756741 12.42756741 0 0 1-12.42756741 12.4275674h-410.10972444a12.42756741 12.42756741 0 0 1-12.42756741-12.4275674v-410.10972445c0-6.83516208 5.59240533-12.42756741 12.42756741-12.42756741z"></path></svg>',r}return Ke(r,t),r}(Ri),Fi=function(t){function r(){var r=t.apply(this,Ve([],Ye(arguments),!1))||this;return r.title=i("float.right"),r.value="right",r.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M77.03514075 117.83964445m12.4275674 0l845.0745837 0q12.42756741 0 12.4275674 12.4275674l0 68.35162074q0 12.42756741-12.4275674 12.42756741l-845.0745837 0q-12.42756741 0-12.4275674-12.42756741l0-68.35162074q0-12.42756741 12.4275674-12.4275674Z"></path><path d="M77.03514075 801.35585185m12.4275674 0l845.0745837 0q12.42756741 0 12.4275674 12.42756741l0 68.35162074q0 12.42756741-12.4275674 12.42756742l-845.0745837 0q-12.42756741 0-12.4275674-12.42756742l0-68.35162074q0-12.42756741 12.4275674-12.42756741Z"></path><path d="M586.56540445 304.25315556h347.9718874c6.83516208 0 12.42756741 5.59240533 12.4275674 12.42756741v410.10972445a12.42756741 12.42756741 0 0 1-12.4275674 12.4275674h-347.9718874a12.42756741 12.42756741 0 0 1-12.42756742-12.4275674v-410.10972445c0-6.83516208 5.59240533-12.42756741 12.42756742-12.42756741z"></path><path d="M77.03514075 552.8045037m12.4275674 0l410.10972444 0q12.42756741 0 12.42756741 12.42756742l0 68.35162073q0 12.42756741-12.42756741 12.42756741l-410.10972444 0q-12.42756741 0-12.4275674-12.42756741l0-68.35162073q0-12.42756741 12.4275674-12.42756742Z"></path><path d="M77.03514075 366.39099259m12.4275674 0l410.10972444 0q12.42756741 0 12.42756741 12.42756741l0 68.35162075q0 12.42756741-12.42756741 12.4275674l-410.10972444 0q-12.42756741 0-12.4275674-12.4275674l0-68.35162075q0-12.42756741 12.4275674-12.42756741Z"></path></svg>',r}return Ke(r,t),r}(Ri),_i={key:"imageFloatNone",factory:function(){return new Mi}},ki={key:"imageFloatLeft",factory:function(){return new Ni}},Di={key:"imageFloatRight",factory:function(){return new Fi}},zi={};function Li(){if(Ai)return Ti;Ai=1;var t=function(){if(qi)return Ei;qi=1;var t=Bt(),r=Lt();return Ei=function(n){if("Function"===t(n))return r(n)}}(),r=tr(),n=X(),e=t(t.bind);return Ti=function(t,i){return r(t),void 0===i?t:n?e(t,i):function(){return t.apply(i,arguments)}},Ti}function Bi(){if(Ii)return Pi;Ii=1;var t=Li(),r=Lt(),n=Zt(),e=Cr(),i=$n(),o=Re(),u=r([].push),a=function(r){var a=1===r,f=2===r,c=3===r,l=4===r,s=6===r,v=7===r,p=5===r||s;return function(h,d,g,y){for(var m,b,w=e(h),x=n(w),O=i(x),S=t(d,g),j=0,E=y||o,q=a?E(h,O):f||v?E(h,0):void 0;O>j;j++)if((p||j in x)&&(b=S(m=x[j],j,w),r))if(a)q[j]=b;else if(b)switch(r){case 3:return!0;case 5:return m;case 6:return j;case 2:u(q,m)}else switch(r){case 4:return!1;case 7:u(q,m)}return s?-1:c||l?l:q}};return Pi={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}!function(){if(Ci)return zi;Ci=1;var t=je(),r=Bi().filter;t({target:"Array",proto:!0,forced:!Ne()("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}();var Zi,$i,Wi,Ui={};function Hi(){if($i)return Zi;$i=1;var t=Mr(),r=Oi(),n=Yr().f,e=t("unscopables"),i=Array.prototype;return void 0===i[e]&&n(i,e,{configurable:!0,value:r(null)}),Zi=function(t){i[e][t]=!0}}!function(){if(Wi)return Ui;Wi=1;var t=je(),r=Wn().includes,n=G(),e=Hi();t({target:"Array",proto:!0,forced:n(function(){return!Array(1).includes()})},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),e("includes")}();var Gi,Ki,Xi,Yi={};!function(){if(Xi)return Yi;Xi=1;var t=Ae(),r=xn(),n=function(){if(Ki)return Gi;Ki=1;var t=Ae(),r=Pe();return Gi=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",n,{unsafe:!0})}();var Vi,Ji,Qi,to,ro,no,eo,io={};function oo(){if(to)return Qi;to=1;var t=function(){if(Ji)return Vi;Ji=1;var t=Gt(),r=Bt(),n=Mr()("match");return Vi=function(e){var i;return t(e)&&(void 0!==(i=e[n])?!!i:"RegExp"===r(e))}}(),r=TypeError;return Qi=function(n){if(t(n))throw new r("The method doesn't accept regular expressions");return n}}!function(){if(eo)return io;eo=1;var t=je(),r=Lt(),n=oo(),e=Wt(),i=We(),o=function(){if(no)return ro;no=1;var t=Mr()("match");return ro=function(r){var n=/./;try{"/./"[r](n)}catch(e){try{return n[t]=!1,"/./"[r](n)}catch(t){}}return!1}}(),u=r("".indexOf);t({target:"String",proto:!0,forced:!o("includes")},{includes:function(t){return!!~u(i(e(this)),i(n(t)),arguments.length>1?arguments[1]:void 0)}})}();var uo,ao,fo,co,lo,so,vo,po,ho,go,yo,mo,bo,wo={};function xo(){if(co)return fo;co=1;var t=Ie(),r=Qt(),n=TypeError;return fo=function(e){if(t(e))return e;throw new n(r(e)+" is not a constructor")}}function Oo(){if(so)return lo;so=1;var t=Xr(),r=xo(),n=$t(),e=Mr()("species");return lo=function(i,o){var u,a=t(i).constructor;return void 0===a||n(u=t(a)[e])?o:r(u)}}function So(){if(go)return ho;go=1;var t=function(){if(po)return vo;po=1;var t=Lt(),r=Ln(),n=We(),e=Wt(),i=t("".charAt),o=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,f){var c,l,s=n(e(a)),v=r(f),p=s.length;return v<0||v>=p?t?"":void 0:(c=o(s,v))<55296||c>56319||v+1===p||(l=o(s,v+1))<56320||l>57343?t?i(s,v):c:t?u(s,v,v+2):l-56320+(c-55296<<10)+65536}};return vo={codeAt:a(!1),charAt:a(!0)}}().charAt;return ho=function(r,n,e){return n+(e?t(r,n).length:1)}}!function(){if(bo)return wo;bo=1;var t=Y(),r=Lt(),n=function(){if(ao)return uo;ao=1,ji();var t=Y(),r=xn(),n=Si(),e=G(),i=Mr(),o=Vr(),u=i("species"),a=RegExp.prototype;return uo=function(f,c,l,s){var v=i(f),p=!e(function(){var t={};return t[v]=function(){return 7},7!==""[f](t)}),h=p&&!e(function(){var t=!1,r=/a/;if("split"===f){var n={};n[u]=function(){return r},(r={constructor:n,flags:""})[v]=/./[v]}return r.exec=function(){return t=!0,null},r[v](""),!t});if(!p||!h||l){var d=/./[v],g=c(v,""[f],function(r,e,i,o,u){var f=e.exec;return f===n||f===a.exec?p&&!u?{done:!0,value:t(d,e,i,o)}:{done:!0,value:t(r,i,e,o)}:{done:!1}});r(String.prototype,f,g[0]),r(a,v,g[1])}s&&o(a[v],"sham",!0)}}(),e=Xr(),i=Gt(),o=Wt(),u=Oo(),a=So(),f=Zn(),c=We(),l=rr(),s=function(){if(mo)return yo;mo=1;var t=Y(),r=Xr(),n=Ht(),e=Bt(),i=Si(),o=TypeError;return yo=function(u,a){var f=u.exec;if(n(f)){var c=t(f,u,a);return null!==c&&r(c),c}if("RegExp"===e(u))return t(i,u,a);throw new o("RegExp#exec called on incompatible receiver")}}(),v=ii(),p=G(),h=v.UNSUPPORTED_Y,d=Math.min,g=r([].push),y=r("".slice),m=!p(function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),b="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;n("split",function(r,n,v){var p="0".split(void 0,0).length?function(r,e){return void 0===r&&0===e?[]:t(n,this,r,e)}:n;return[function(n,e){var u=o(this),a=i(n)?l(n,r):void 0;return a?t(a,n,u,e):t(p,c(u),n,e)},function(t,r){var i=e(this),o=c(t);if(!b){var l=v(p,i,o,r,p!==n);if(l.done)return l.value}var m=u(i,RegExp),w=i.unicode,x=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(h?"g":"y"),O=new m(h?"^(?:"+i.source+")":i,x),S=void 0===r?4294967295:r>>>0;if(0===S)return[];if(0===o.length)return null===s(O,o)?[o]:[];for(var j=0,E=0,q=[];E<o.length;){O.lastIndex=h?0:E;var T,A=s(O,h?y(o,E):o);if(null===A||(T=d(f(O.lastIndex+(h?E:0)),o.length))===j)E=a(o,E,w);else{if(g(q,y(o,j,E)),q.length===S)return q;for(var P=1;P<=A.length-1;P++)if(g(q,A[P]),q.length===S)return q;E=j=T}}return g(q,y(o,j)),q}]},b||!m,h)}();var jo,Eo={};!function(){if(jo)return Eo;jo=1;var t=je(),r=Bi().find,n=Hi(),e="find",i=!0;e in[]&&Array(1)[e](function(){i=!1}),t({target:"Array",proto:!0,forced:i},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(e)}();var qo,To,Ao={};function Po(t,r){for(var n="",e=(t.attr("style")||"").split(";"),i=e.length,o=0;o<i;o+=1){var u=e[o];if(u){var a=u.split(":");a[0].trim()===r&&(n=a[1].trim())}}return n}To||(To=1,function(){if(qo)return Ao;qo=1;var t=je(),r=k();t({global:!0,forced:r.globalThis!==r},{globalThis:r})}()),u&&(o.fn.css=u),a&&(o.fn.append=a),f&&(o.fn.prepend=f),c&&(o.fn.addClass=c),l&&(o.fn.removeClass=l),s&&(o.fn.hasClass=s),v&&(o.fn.on=v),p&&(o.fn.off=p),h&&(o.fn.focus=h),d&&(o.fn.attr=d),g&&(o.fn.removeAttr=g),y&&(o.fn.hide=y),m&&(o.fn.show=m),b&&(o.fn.parents=b),w&&(o.fn.dataset=w),x&&(o.fn.val=x),O&&(o.fn.text=O),S&&(o.fn.html=S),j&&(o.fn.children=j),E&&(o.fn.remove=E),q&&(o.fn.find=q),T&&(o.fn.width=T),A&&(o.fn.height=A),P&&(o.fn.filter=P),I&&(o.fn.empty=I);var Io,Co,Ro,No,Mo,Fo,_o,ko={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,r,n){var e=o(t),i=e.attr("data-href")||"",u=e.attr("width")||"",a=e.attr("height")||"",f=Po(e,"width")||e.attr("data-w-e-style-width")||u,c=Po(e,"height")||e.attr("data-w-e-style-height")||a,l=function(t){var r=Po(t,"float");if(r)return r;var n=(t.attr("data-w-e-style-float")||"").trim();if(n)return n;var e=(t.attr("class")||"").trim().split(/\s+/).filter(Boolean);return e.includes("w-e-float-image-left")?"left":e.includes("w-e-float-image-right")?"right":e.includes("w-e-float-image-none")?"none":""}(e);return i=decodeURIComponent(i),{type:"image",src:e.attr("src")||"",alt:e.attr("alt")||"",href:i,style:{width:f,height:c,float:l},width:u,height:a,children:[{text:""}]}}},Do={};function zo(){if(Co)return Io;Co=1;var t=Lt();return Io=t(1.1.valueOf)}!function(){if(Mo)return Do;Mo=1;var t=je(),r=Lt(),n=Ln(),e=zo(),i=function(){if(No)return Ro;No=1;var t=Ln(),r=We(),n=Wt(),e=RangeError;return Ro=function(i){var o=r(n(this)),u="",a=t(i);if(a<0||a===1/0)throw new e("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(o+=o))1&a&&(u+=o);return u}}(),o=G(),u=RangeError,a=String,f=Math.floor,c=r(i),l=r("".slice),s=r(1.1.toFixed),v=function(t,r,n){return 0===r?n:r%2==1?v(t,r-1,n*t):v(t*t,r/2,n)},p=function(t,r,n){for(var e=-1,i=n;++e<6;)i+=r*t[e],t[e]=i%1e7,i=f(i/1e7)},h=function(t,r){for(var n=6,e=0;--n>=0;)e+=t[n],t[n]=f(e/r),e=e%r*1e7},d=function(t){for(var r=6,n="";--r>=0;)if(""!==n||0===r||0!==t[r]){var e=a(t[r]);n=""===n?e:n+c("0",7-e.length)+e}return n};t({target:"Number",proto:!0,forced:o(function(){return"0.000"!==s(8e-5,3)||"1"!==s(.9,0)||"1.25"!==s(1.255,2)||"1000000000000000128"!==s(0xde0b6b3a7640080,0)})||!o(function(){s({})})},{toFixed:function(t){var r,i,o,f,s=e(this),g=n(t),y=[0,0,0,0,0,0],m="",b="0";if(g<0||g>20)throw new u("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return a(s);if(s<0&&(m="-",s=-s),s>1e-21)if(i=(r=function(t){for(var r=0,n=t;n>=4096;)r+=12,n/=4096;for(;n>=2;)r+=1,n/=2;return r}(s*v(2,69,1))-69)<0?s*v(2,-r,1):s/v(2,r,1),i*=4503599627370496,(r=52-r)>0){for(p(y,0,i),o=g;o>=7;)p(y,1e7,0),o-=7;for(p(y,v(10,o,1),0),o=r-1;o>=23;)h(y,1<<23),o-=23;h(y,1<<o),p(y,1,1),h(y,2),b=d(y)}else p(y,0,i),p(y,1<<-r,0),b=d(y)+c("0",g);return b=g>0?m+((f=b.length)<=g?"0."+c("0",g-f)+b:l(b,0,f-g)+"."+l(b,f-g)):m+b}})}();var Lo=function(){if(_o)return Fo;_o=1;var t="Expected a function",r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,e=/^0b[01]+$/i,i=/^0o[0-7]+$/i,o=parseInt,u="object"==typeof R&&R&&R.Object===Object&&R,a="object"==typeof self&&self&&self.Object===Object&&self,f=u||a||Function("return this")(),c=Object.prototype.toString,l=Math.max,s=Math.min,v=function(){return f.Date.now()};function p(r,n,e){var i,o,u,a,f,c,p=0,g=!1,y=!1,m=!0;if("function"!=typeof r)throw new TypeError(t);function b(t){var n=i,e=o;return i=o=void 0,p=t,a=r.apply(e,n)}function w(t){var r=t-c;return void 0===c||r>=n||r<0||y&&t-p>=u}function x(){var t=v();if(w(t))return O(t);f=setTimeout(x,function(t){var r=n-(t-c);return y?s(r,u-(t-p)):r}(t))}function O(t){return f=void 0,m&&i?b(t):(i=o=void 0,a)}function S(){var t=v(),r=w(t);if(i=arguments,o=this,c=t,r){if(void 0===f)return function(t){return p=t,f=setTimeout(x,n),g?b(t):a}(c);if(y)return f=setTimeout(x,n),b(c)}return void 0===f&&(f=setTimeout(x,n)),a}return n=d(n)||0,h(e)&&(g=!!e.leading,u=(y="maxWait"in e)?l(d(e.maxWait)||0,n):u,m="trailing"in e?!!e.trailing:m),S.cancel=function(){void 0!==f&&clearTimeout(f),p=0,i=c=o=f=void 0},S.flush=function(){return void 0===f?a:O(v())},S}function h(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function d(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==c.call(t)}(t))return NaN;if(h(t)){var u="function"==typeof t.valueOf?t.valueOf():t;t=h(u)?u+"":u}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var a=e.test(t);return a||i.test(t)?o(t.slice(2),a?2:8):n.test(t)?NaN:+t}return Fo=function(r,n,e){var i=!0,o=!0;if("function"!=typeof r)throw new TypeError(t);return h(e)&&(i="leading"in e?!!e.leading:i,o="trailing"in e?!!e.trailing:o),p(r,n,{leading:i,maxWait:n,trailing:o})}}(),Bo=N(Lo);function Zo(t,r){var e=n.findKey(t,r).id;return"w-e-image-container-".concat(e)}function $o(t,r,i,u){var a=o("body"),f=Zo(t,r),c=u.width,l=u.height,s=u.float,v=0,p=0,h=0,d=!1,g=null;var y=Bo(function(t){t.preventDefault();var r=t.clientX,n=p+(d?v-r:r-v),e=h*(n/p);null!=g&&(n<=15||e<=15||(g.css("width","".concat(n,"px")),g.css("height","".concat(e,"px"))))},100);function m(i){if(a.off("mousemove",y),null!=g){var o=g.width().toFixed(2),u=g.height().toFixed(2),f={style:Xe(Xe({},r.style),{width:"".concat(o,"px"),height:"".concat(u,"px")})};e.setNodes(t,f,{at:n.findPath(t,r)}),a.off("mouseup",m)}}function b(r){g=function(){var t=o("#".concat(f));if(0===t.length)throw new Error("Cannot find image container elem");return t}(),v=r;var e=g.find("img");if(0===e.length)throw new Error("Cannot find image elem");p=e.width(),h=e.height(),a.on("mousemove",y),a.on("mouseup",m);var i=n.getHoverbar(t);i&&i.hideAndClean()}var w={};return c&&(w.width=c),l&&(w.height=l),s&&(w.float=s),C("div",{id:f,style:w,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var r=o(t.target);r.hasClass("w-e-image-dragger")&&(t.preventDefault(),(r.hasClass("left-top")||r.hasClass("left-bottom"))&&(d=!0),b(t.clientX))}}},i,C("div",{className:"w-e-image-dragger left-top"}),C("div",{className:"w-e-image-dragger right-top"}),C("div",{className:"w-e-image-dragger left-bottom"}),C("div",{className:"w-e-image-dragger right-bottom"}))}var Wo={type:"image",renderElem:function(t,r,e){var i=t,o=i.src,u=i.alt,a=void 0===u?"":u,f=i.href,c=void 0===f?"":f,l=i.style,s=void 0===l?{}:l,v=s.width,p=void 0===v?"":v,h=s.height,d=void 0===h?"":h,g=s.float,y=n.isNodeSelected(e,t),m={};p&&(m.width="100%"),d&&(m.height="100%"),g&&(m.float=g);var b=C("img",{style:m,src:o,alt:a,"data-href":c}),w=e.isDisabled();return y&&!w?$o(e,t,b,{width:p,height:d,float:g}):function(t,r,n,e){var i=e.width,o=e.height,u=e.float,a={};i&&(a.width=i),o&&(a.height=o),u&&(a.float=u);var f=Zo(t,r);return C("div",{id:f,style:a,className:"w-e-image-container"},n)}(e,t,b,{width:p,height:d,float:g})}},Uo={renderElems:[Wo],elemsToHtml:[He],parseElemsHtml:[ko],menus:[ki,Di,_i]};export{Uo as default};
2
2
  //# sourceMappingURL=index.mjs.map