@wangeditor-next/plugin-float-image 1.0.27 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{i18nAddResources as t,DomEditor as r,SlateTransforms as n,t as e}from"@wangeditor-next/editor";import i,{css as o,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 A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function C(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 A&&A)||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,it,ot,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,At,Ct,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(it)return et;it=1;var t=zt(),r=U(),n=Lt(),e=Object,i=t("".split);return et=r(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?i(t,""):e(t)}:e}function $t(){return ut?ot:(ut=1,ot=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?(i=t[n],r(i)?i:void 0):t[n]&&t[n][e];var i},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):""}(),i=n.process,o=n.Deno,u=i&&i.versions||o&&o.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(),i=Object;return Tt=e?function(t){return"symbol"==typeof t}:function(e){var o=t("Symbol");return r(o)&&n(o.prototype,i(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(Ct)return At;Ct=1;var t=Ht(),r=Jt(),n=TypeError;return At=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 i=n[e];return r(i)?void 0:t(i)}}function rr(){if(_t)return Ft;_t=1;var t=X(),r=Ht(),n=Ut(),e=TypeError;return Ft=function(i,o){var u,f;if("string"===o&&r(u=i.toString)&&!n(f=t(u,i)))return f;if(r(u=i.valueOf)&&!n(f=t(u,i)))return f;if("string"!==o&&r(u=i.toString)&&!n(f=t(u,i)))return f;throw new e("Can't convert object to primitive value")},Ft}var nr,er,ir,or,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(or)return ir;or=1;var t=_(),r=Object.defineProperty;return ir=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__",i=qr.exports=r[e]||n(e,{});return(i.versions||(i.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.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 Ar(){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 Cr(){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=Ar(),e=Cr(),i=Xt(),o=Yt(),u=t.Symbol,f=r("wks"),a=o?u.for||u:u&&u.withoutSetter||e;return hr=function(t){return n(f,t)||(f[t]=i&&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(),i=rr(),o=Mr(),u=TypeError,f=o("toPrimitive");return yr=function(o,a){if(!r(o)||n(o))return o;var c,l=e(o,f);if(l){if(void 0===a&&(a="default"),c=t(l,o,a),!r(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(o,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(),i=Wt(),o=Fr(),u=Ar(),f=kr(),a=Object.getOwnPropertyDescriptor;return H.f=t?a:function(t,c){if(t=i(t),c=o(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(),i=Fr(),o=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=i(r),e(n),"function"==typeof t&&"prototype"===r&&"value"in n&&l in n&&!n[l]){var o=f(t,r);o&&o[l]&&(t[r]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:a in n?n[a]:o[a],writable:!1})}return u(t,r,n)}:u:function(t,n,f){if(e(t),n=i(n),e(f),r)try{return u(t,n,f)}catch(t){}if("get"in f||"set"in f)throw new o("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,i){return r.f(t,e,n(1,i))}: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=Ar(),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 Vr={EXISTS:i,PROPER:o,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=Cr(),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))}(),i=_(),o=Ut(),u=Yr(),f=Ar(),a=Pr(),c=gn(),l=yn(),s="Object already initialized",v=i.TypeError,p=i.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(!o(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=Ar(),i=G(),o=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=i&&!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")||o&&t.name!==r)&&(i?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?i&&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(i,o,u,f){f||(f={});var a=f.enumerable,c=void 0!==f.name?f.name:o;if(t(u)&&n(u,c,f),f.global)a?i[o]=u:e(o,u);else{try{f.unsafe?i[o]&&(a=!0):delete i[o]}catch(t){}a?i[o]=u:r.f(i,o,{value:u,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return i}}var xn,On,Sn,jn,En,qn,Tn,Pn,In,Nn,An,Cn,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,i){var o=t(e);return o<0?r(o+i,0):n(o,i)}}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=Ar(),n=Wt(),e=function(){if(Cn)return An;Cn=1;var t=Wt(),r=Ln(),n=$n(),e=function(e){return function(i,o,u){var f=t(i),a=n(f);if(0===a)return!e&&-1;var c,l=r(u,a);if(e&&o!=o){for(;a>l;)if((c=f[l++])!=c)return!0}else for(;a>l;l++)if((e||l in f)&&f[l]===o)return e||l||0;return!e&&-1}};return An={includes:e(!0),indexOf:e(!1)}}().indexOf,i=yn(),o=t([].push);return Mn=function(t,u){var f,a=n(t),c=0,l=[];for(f in a)!r(i,f)&&r(a,f)&&o(l,f);for(;u.length>c;)r(a,f=u[c++])&&(~e(l,f)||o(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,ie,oe,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),i=Kr(),o=r([].concat);return Un=t("Reflect","ownKeys")||function(t){var r=n.f(i(t)),u=e.f;return u?o(r,u(t)):r}}function xe(){if(Xn)return Kn;Xn=1;var t=Ar(),r=we(),n=Dr(),e=Xr();return Kn=function(i,o,u){for(var f=r(o),a=e.f,c=n.f,l=0;l<f.length;l++){var s=f[l];t(i,s)||u&&t(u,s)||a(i,s,c(o,s))}}}function Oe(){if(Qn)return Jn;Qn=1;var t=_(),r=Dr().f,n=Yr(),e=wn(),i=Tr(),o=xe(),u=function(){if(Vn)return Yn;Vn=1;var t=U(),r=Ht(),n=/#|\.prototype\./,e=function(n,e){var a=o[i(n)];return a===f||a!==u&&(r(e)?t(e):!!e)},i=e.normalize=function(t){return String(t).replace(n,".").toLowerCase()},o=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]||i(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;o(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(oe)return ie;oe=1;var t=G(),r=Xr(),n=Dt();return ie=function(e,i,o){t?r.f(e,i,n(0,o)):e[i]=o}}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"),i=Object,o="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=i(t),e))?f:o?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(),i=Gt(),o=hn(),u=function(){},f=i("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,o(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"),i=Array;return ve=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 Ne(){if(he)return de;he=1;var t=Ie();return de=function(r,n){return new(t(r))(0===n?0:n)}}function Ae(){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(),i=Nr(),o=$n(),u=je(),f=Ee(),a=Ne(),c=Ae(),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=i(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=o(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 Ce={type:"image",elemToHtml:function(t,r){var n=t,e=n.src,i=n.alt,o=void 0===i?"":i,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(o,'" 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 i in r=arguments[n])Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t},Fe.apply(this,arguments)};function _e(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 ke(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 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,ti,ri,ni,ei,ii,oi,ui,fi={};function ai(){if(Ke)return Ge;Ke=1;var t=Bn(),r=Wn();return Ge=Object.keys||function(n){return t(n,r)}}function ci(){if(Ve)return Ye;Ve=1;var t=Gt();return Ye=t("document","documentElement")}function li(){if(Qe)return Je;Qe=1;var t,r=Kr(),n=function(){if(Xe)return fi;Xe=1;var t=G(),r=Gr(),n=Xr(),e=Kr(),i=Wt(),o=ai();return fi.f=t&&!r?Object.defineProperties:function(t,r){e(t);for(var u,f=i(r),a=o(r),c=a.length,l=0;c>l;)n.f(t,u=a[l++],f[u]);return t},fi}(),e=Wn(),i=yn(),o=ci(),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,i;d="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 f=e.length;f--;)delete d[a][e[f]];return d()};return i[l]=!0,Je=Object.create||function(t,e){var i;return null!==t?(s[a]=r(t),i=new s,s[a]=null,i[l]=t):i=d(),void 0===e?i:n.f(i,e)}}function si(){if(oi)return ii;oi=1;var t,r,n=X(),e=zt(),i=He(),o=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}),i=n||t(function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return $e={BROKEN_CARET:i,MISSED_STICKY:e,UNSUPPORTED_Y:n}}(),f=Ir(),a=li(),c=mn().get,l=function(){if(ri)return ti;ri=1;var t=U(),r=_().RegExp;return ti=t(function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),s=function(){if(ei)return ni;ei=1;var t=U(),r=_().RegExp;return ni=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=i(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(o,S),N=S.source,A=0,C=E;if(P&&(I=y(I,"y",""),-1===g(I,"g")&&(I+="g"),C=m(E,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==h(E,S.lastIndex-1))&&(N="(?: "+N+")",C=" "+C,A++),e=new RegExp("^(?:"+N+")",I)),x&&(e=new RegExp("^"+N+"$(?!\\s)",I)),b&&(u=S.lastIndex),f=n(p,P?e:S,C),P?f?(f.input=m(f.input,A),f[0]=m(f[0],A),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}),ii=d}!function(){if(ui)return We;ui=1;var t=Oe(),r=si();t({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})}();var vi,pi,di,hi,gi,yi,mi,bi=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 i=this.getSelectedNode(t);if(null!=i){var o=r.getHoverbar(t);o&&o.hideAndClean();var u=i.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}(),wi=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}(bi),xi=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}(bi),Oi=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}(bi),Si={key:"imageFloatNone",factory:function(){return new xi}},ji={key:"imageFloatLeft",factory:function(){return new wi}},Ei={key:"imageFloatRight",factory:function(){return new Oi}},qi={};function Ti(){if(hi)return di;hi=1;var t=function(){if(pi)return vi;pi=1;var t=Lt(),r=zt();return vi=function(n){if("Function"===t(n))return r(n)}}(),r=Qt(),n=K(),e=t(t.bind);return di=function(t,i){return r(t),void 0===i?t:n?e(t,i):function(){return t.apply(i,arguments)}},di}function Pi(){if(yi)return gi;yi=1;var t=Ti(),r=zt(),n=Zt(),e=Nr(),i=$n(),o=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=i(x),S=t(h,g),j=0,E=y||o,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 gi={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(mi)return qi;mi=1;var t=Oe(),r=Pi().filter;t({target:"Array",proto:!0,forced:!Ae()("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}();var Ii,Ni,Ai,Ci={};function Mi(){if(Ni)return Ii;Ni=1;var t=Mr(),r=li(),n=Xr().f,e=t("unscopables"),i=Array.prototype;return void 0===i[e]&&n(i,e,{configurable:!0,value:r(null)}),Ii=function(t){i[e][t]=!0}}!function(){if(Ai)return Ci;Ai=1;var t=Oe(),r=Pi().find,n=Mi(),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 Ri,Fi,_i,ki={};!function(){if(_i)return ki;_i=1;var t=qe(),r=wn(),n=function(){if(Fi)return Ri;Fi=1;var t=qe(),r=Te();return Ri=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",n,{unsafe:!0})}();var Di,zi,Li,Zi,$i,Bi,Wi,Hi={};function Ui(){return zi?Di:(zi=1,Di="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(Wi)return Hi;Wi=1;var t=Oe(),r=function(){if(Zi)return Li;Zi=1;var t=zt(),r=Bt(),n=He(),e=Ui(),i=t("".replace),o=RegExp("^["+e+"]+"),u=RegExp("(^|[^"+e+"])["+e+"]+$"),f=function(t){return function(e){var f=n(r(e));return 1&t&&(f=i(f,o,"")),2&t&&(f=i(f,u,"$1")),f}};return Li={start:f(1),end:f(2),trim:f(3)}}().trim,n=function(){if(Bi)return $i;Bi=1;var t=dn().PROPER,r=U(),n=Ui();return $i=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 Gi,Ki,Xi={};function Yi(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 f=u.split(":");f[0].trim()===r&&(n=f[1].trim())}}return n}Ki||(Ki=1,function(){if(Gi)return Xi;Gi=1;var t=Oe(),r=_();t({global:!0,forced:r.globalThis!==r},{globalThis:r})}()),o&&(i.fn.css=o),u&&(i.fn.append=u),f&&(i.fn.prepend=f),a&&(i.fn.addClass=a),c&&(i.fn.removeClass=c),l&&(i.fn.hasClass=l),s&&(i.fn.on=s),v&&(i.fn.off=v),p&&(i.fn.focus=p),d&&(i.fn.attr=d),h&&(i.fn.removeAttr=h),g&&(i.fn.hide=g),y&&(i.fn.show=y),m&&(i.fn.parents=m),b&&(i.fn.dataset=b),w&&(i.fn.val=w),x&&(i.fn.text=x),O&&(i.fn.html=O),S&&(i.fn.children=S),j&&(i.fn.remove=j),E&&(i.fn.find=E),q&&(i.fn.width=q),T&&(i.fn.height=T),P&&(i.fn.filter=P),I&&(i.fn.empty=I);var Vi,Ji,Qi,to,ro,no,eo,io={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,r,n){var e=i(t),o=e.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:e.attr("src")||"",alt:e.attr("alt")||"",href:o,style:{width:Yi(e,"width"),height:Yi(e,"height"),float:Yi(e,"float")||""},width:e.attr("width")||"",height:e.attr("height")||"",children:[{text:""}]}}},oo={};function uo(){if(Ji)return Vi;Ji=1;var t=zt();return Vi=t(1.1.valueOf)}!function(){if(ro)return oo;ro=1;var t=Oe(),r=zt(),n=zn(),e=uo(),i=function(){if(to)return Qi;to=1;var t=zn(),r=He(),n=Bt(),e=RangeError;return Qi=function(i){var o=r(n(this)),u="",f=t(i);if(f<0||f===1/0)throw new e("Wrong number of repetitions");for(;f>0;(f>>>=1)&&(o+=o))1&f&&(u+=o);return u}}(),o=U(),u=RangeError,f=String,a=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=a(i/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: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,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(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;)d(y,1<<23),o-=23;d(y,1<<o),p(y,1,1),d(y,2),b=h(y)}else p(y,0,i),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 fo=function(){if(eo)return no;eo=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 A&&A&&A.Object===Object&&A,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 i,o,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=i,e=o;return i=o=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&&i?b(t):(i=o=void 0,f)}function S(){var t=v(),r=w(t);if(i=arguments,o=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,i=c=o=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||i.test(t)?o(t.slice(2),f?2:8):n.test(t)?NaN:+t}return no=function(r,n,e){var i=!0,o=!0;if("function"!=typeof r)throw new TypeError(t);return d(e)&&(i="leading"in e?!!e.leading:i,o="trailing"in e?!!e.trailing:o),p(r,n,{leading:i,maxWait:n,trailing:o})}}(),ao=C(fo);function co(t,n){var e=r.findKey(t,n).id;return"w-e-image-container-".concat(e)}function lo(t,e,o,u){var f=i("body"),a=co(t,e),c=u.width,l=u.height,s=u.float,v=0,p=0,d=0,h=!1,g=null;var y=ao(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(i){if(f.off("mousemove",y),null!=g){var o=g.width().toFixed(2),u=g.height().toFixed(2),a={style:Fe(Fe({},e.style),{width:"".concat(o,"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=i("#".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 o=r.getHoverbar(t);o&&o.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=i(t.target);r.hasClass("w-e-image-dragger")&&(t.preventDefault(),(r.hasClass("left-top")||r.hasClass("left-bottom"))&&(h=!0),b(t.clientX))}}},o,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 so={type:"image",renderElem:function(t,n,e){var i=t,o=i.src,u=i.alt,f=void 0===u?"":u,a=i.href,c=void 0===a?"":a,l=i.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:o,alt:f,"data-href":c}),w=e.isDisabled();return y&&!w?lo(e,t,b,{width:p,height:h,float:g}):function(t,r,n,e){var i=e.width,o=e.height,u=e.float,f={};i&&(f.width=i),o&&(f.height=o),u&&(f.float=u);var a=co(t,r);return N("div",{id:a,style:f,className:"w-e-image-container"},n)}(e,t,b,{width:p,height:h,float:g})}},vo={renderElems:[so],elemsToHtml:[Ce],parseElemsHtml:[io],menus:[ji,Ei,Si]};export{vo as default};
1
+ import{i18nAddResources as t,DomEditor as r,SlateTransforms as n,t as e}from"@wangeditor-next/editor";import i,{css as o,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 A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function C(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 A&&A)||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,it,ot,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,At,Ct,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(it)return et;it=1;var t=zt(),r=U(),n=Lt(),e=Object,i=t("".split);return et=r(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?i(t,""):e(t)}:e}function $t(){return ut?ot:(ut=1,ot=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?(i=t[n],r(i)?i:void 0):t[n]&&t[n][e];var i},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):""}(),i=n.process,o=n.Deno,u=i&&i.versions||o&&o.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(),i=Object;return Tt=e?function(t){return"symbol"==typeof t}:function(e){var o=t("Symbol");return r(o)&&n(o.prototype,i(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(Ct)return At;Ct=1;var t=Ht(),r=Jt(),n=TypeError;return At=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 i=n[e];return r(i)?void 0:t(i)}}function rr(){if(_t)return Ft;_t=1;var t=X(),r=Ht(),n=Ut(),e=TypeError;return Ft=function(i,o){var u,f;if("string"===o&&r(u=i.toString)&&!n(f=t(u,i)))return f;if(r(u=i.valueOf)&&!n(f=t(u,i)))return f;if("string"!==o&&r(u=i.toString)&&!n(f=t(u,i)))return f;throw new e("Can't convert object to primitive value")},Ft}var nr,er,ir,or,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(or)return ir;or=1;var t=_(),r=Object.defineProperty;return ir=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__",i=qr.exports=r[e]||n(e,{});return(i.versions||(i.versions=[])).push({version:"3.45.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.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 Ar(){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 Cr(){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=Ar(),e=Cr(),i=Xt(),o=Yt(),u=t.Symbol,f=r("wks"),a=o?u.for||u:u&&u.withoutSetter||e;return hr=function(t){return n(f,t)||(f[t]=i&&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(),i=rr(),o=Mr(),u=TypeError,f=o("toPrimitive");return yr=function(o,a){if(!r(o)||n(o))return o;var c,l=e(o,f);if(l){if(void 0===a&&(a="default"),c=t(l,o,a),!r(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(o,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(),i=Wt(),o=Fr(),u=Ar(),f=kr(),a=Object.getOwnPropertyDescriptor;return H.f=t?a:function(t,c){if(t=i(t),c=o(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(),i=Fr(),o=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=i(r),e(n),"function"==typeof t&&"prototype"===r&&"value"in n&&l in n&&!n[l]){var o=f(t,r);o&&o[l]&&(t[r]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:a in n?n[a]:o[a],writable:!1})}return u(t,r,n)}:u:function(t,n,f){if(e(t),n=i(n),e(f),r)try{return u(t,n,f)}catch(t){}if("get"in f||"set"in f)throw new o("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,i){return r.f(t,e,n(1,i))}: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=Ar(),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 Vr={EXISTS:i,PROPER:o,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=Cr(),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))}(),i=_(),o=Ut(),u=Yr(),f=Ar(),a=Pr(),c=gn(),l=yn(),s="Object already initialized",v=i.TypeError,p=i.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(!o(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=Ar(),i=G(),o=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=i&&!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")||o&&t.name!==r)&&(i?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?i&&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(i,o,u,f){f||(f={});var a=f.enumerable,c=void 0!==f.name?f.name:o;if(t(u)&&n(u,c,f),f.global)a?i[o]=u:e(o,u);else{try{f.unsafe?i[o]&&(a=!0):delete i[o]}catch(t){}a?i[o]=u:r.f(i,o,{value:u,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return i}}var xn,On,Sn,jn,En,qn,Tn,Pn,In,Nn,An,Cn,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,i){var o=t(e);return o<0?r(o+i,0):n(o,i)}}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=Ar(),n=Wt(),e=function(){if(Cn)return An;Cn=1;var t=Wt(),r=Ln(),n=$n(),e=function(e){return function(i,o,u){var f=t(i),a=n(f);if(0===a)return!e&&-1;var c,l=r(u,a);if(e&&o!=o){for(;a>l;)if((c=f[l++])!=c)return!0}else for(;a>l;l++)if((e||l in f)&&f[l]===o)return e||l||0;return!e&&-1}};return An={includes:e(!0),indexOf:e(!1)}}().indexOf,i=yn(),o=t([].push);return Mn=function(t,u){var f,a=n(t),c=0,l=[];for(f in a)!r(i,f)&&r(a,f)&&o(l,f);for(;u.length>c;)r(a,f=u[c++])&&(~e(l,f)||o(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,ie,oe,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),i=Kr(),o=r([].concat);return Un=t("Reflect","ownKeys")||function(t){var r=n.f(i(t)),u=e.f;return u?o(r,u(t)):r}}function xe(){if(Xn)return Kn;Xn=1;var t=Ar(),r=we(),n=Dr(),e=Xr();return Kn=function(i,o,u){for(var f=r(o),a=e.f,c=n.f,l=0;l<f.length;l++){var s=f[l];t(i,s)||u&&t(u,s)||a(i,s,c(o,s))}}}function Oe(){if(Qn)return Jn;Qn=1;var t=_(),r=Dr().f,n=Yr(),e=wn(),i=Tr(),o=xe(),u=function(){if(Vn)return Yn;Vn=1;var t=U(),r=Ht(),n=/#|\.prototype\./,e=function(n,e){var a=o[i(n)];return a===f||a!==u&&(r(e)?t(e):!!e)},i=e.normalize=function(t){return String(t).replace(n,".").toLowerCase()},o=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]||i(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;o(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(oe)return ie;oe=1;var t=G(),r=Xr(),n=Dt();return ie=function(e,i,o){t?r.f(e,i,n(0,o)):e[i]=o}}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"),i=Object,o="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=i(t),e))?f:o?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(),i=Gt(),o=hn(),u=function(){},f=i("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,o(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"),i=Array;return ve=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 Ne(){if(he)return de;he=1;var t=Ie();return de=function(r,n){return new(t(r))(0===n?0:n)}}function Ae(){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(),i=Nr(),o=$n(),u=je(),f=Ee(),a=Ne(),c=Ae(),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=i(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=o(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 Ce={type:"image",elemToHtml:function(t,r){var n=t,e=n.src,i=n.alt,o=void 0===i?"":i,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(o,'" 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 i in r=arguments[n])Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t},Fe.apply(this,arguments)};function _e(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 ke(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 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,ti,ri,ni,ei,ii,oi,ui,fi={};function ai(){if(Ke)return Ge;Ke=1;var t=Bn(),r=Wn();return Ge=Object.keys||function(n){return t(n,r)}}function ci(){if(Ve)return Ye;Ve=1;var t=Gt();return Ye=t("document","documentElement")}function li(){if(Qe)return Je;Qe=1;var t,r=Kr(),n=function(){if(Xe)return fi;Xe=1;var t=G(),r=Gr(),n=Xr(),e=Kr(),i=Wt(),o=ai();return fi.f=t&&!r?Object.defineProperties:function(t,r){e(t);for(var u,f=i(r),a=o(r),c=a.length,l=0;c>l;)n.f(t,u=a[l++],f[u]);return t},fi}(),e=Wn(),i=yn(),o=ci(),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,i;d="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 f=e.length;f--;)delete d[a][e[f]];return d()};return i[l]=!0,Je=Object.create||function(t,e){var i;return null!==t?(s[a]=r(t),i=new s,s[a]=null,i[l]=t):i=d(),void 0===e?i:n.f(i,e)}}function si(){if(oi)return ii;oi=1;var t,r,n=X(),e=zt(),i=He(),o=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}),i=n||t(function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return $e={BROKEN_CARET:i,MISSED_STICKY:e,UNSUPPORTED_Y:n}}(),f=Ir(),a=li(),c=mn().get,l=function(){if(ri)return ti;ri=1;var t=U(),r=_().RegExp;return ti=t(function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),s=function(){if(ei)return ni;ei=1;var t=U(),r=_().RegExp;return ni=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=i(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(o,S),N=S.source,A=0,C=E;if(P&&(I=y(I,"y",""),-1===g(I,"g")&&(I+="g"),C=m(E,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==h(E,S.lastIndex-1))&&(N="(?: "+N+")",C=" "+C,A++),e=new RegExp("^(?:"+N+")",I)),x&&(e=new RegExp("^"+N+"$(?!\\s)",I)),b&&(u=S.lastIndex),f=n(p,P?e:S,C),P?f?(f.input=m(f.input,A),f[0]=m(f[0],A),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}),ii=d}!function(){if(ui)return We;ui=1;var t=Oe(),r=si();t({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})}();var vi,pi,di,hi,gi,yi,mi,bi=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 i=this.getSelectedNode(t);if(null!=i){var o=r.getHoverbar(t);o&&o.hideAndClean();var u=i.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}(),wi=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}(bi),xi=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}(bi),Oi=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}(bi),Si={key:"imageFloatNone",factory:function(){return new xi}},ji={key:"imageFloatLeft",factory:function(){return new wi}},Ei={key:"imageFloatRight",factory:function(){return new Oi}},qi={};function Ti(){if(hi)return di;hi=1;var t=function(){if(pi)return vi;pi=1;var t=Lt(),r=zt();return vi=function(n){if("Function"===t(n))return r(n)}}(),r=Qt(),n=K(),e=t(t.bind);return di=function(t,i){return r(t),void 0===i?t:n?e(t,i):function(){return t.apply(i,arguments)}},di}function Pi(){if(yi)return gi;yi=1;var t=Ti(),r=zt(),n=Zt(),e=Nr(),i=$n(),o=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=i(x),S=t(h,g),j=0,E=y||o,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 gi={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(mi)return qi;mi=1;var t=Oe(),r=Pi().filter;t({target:"Array",proto:!0,forced:!Ae()("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}();var Ii,Ni,Ai,Ci={};function Mi(){if(Ni)return Ii;Ni=1;var t=Mr(),r=li(),n=Xr().f,e=t("unscopables"),i=Array.prototype;return void 0===i[e]&&n(i,e,{configurable:!0,value:r(null)}),Ii=function(t){i[e][t]=!0}}!function(){if(Ai)return Ci;Ai=1;var t=Oe(),r=Pi().find,n=Mi(),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 Ri,Fi,_i,ki={};!function(){if(_i)return ki;_i=1;var t=qe(),r=wn(),n=function(){if(Fi)return Ri;Fi=1;var t=qe(),r=Te();return Ri=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",n,{unsafe:!0})}();var Di,zi,Li,Zi,$i,Bi,Wi,Hi={};function Ui(){return zi?Di:(zi=1,Di="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(Wi)return Hi;Wi=1;var t=Oe(),r=function(){if(Zi)return Li;Zi=1;var t=zt(),r=Bt(),n=He(),e=Ui(),i=t("".replace),o=RegExp("^["+e+"]+"),u=RegExp("(^|[^"+e+"])["+e+"]+$"),f=function(t){return function(e){var f=n(r(e));return 1&t&&(f=i(f,o,"")),2&t&&(f=i(f,u,"$1")),f}};return Li={start:f(1),end:f(2),trim:f(3)}}().trim,n=function(){if(Bi)return $i;Bi=1;var t=dn().PROPER,r=U(),n=Ui();return $i=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 Gi,Ki,Xi={};function Yi(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 f=u.split(":");f[0].trim()===r&&(n=f[1].trim())}}return n}Ki||(Ki=1,function(){if(Gi)return Xi;Gi=1;var t=Oe(),r=_();t({global:!0,forced:r.globalThis!==r},{globalThis:r})}()),o&&(i.fn.css=o),u&&(i.fn.append=u),f&&(i.fn.prepend=f),a&&(i.fn.addClass=a),c&&(i.fn.removeClass=c),l&&(i.fn.hasClass=l),s&&(i.fn.on=s),v&&(i.fn.off=v),p&&(i.fn.focus=p),d&&(i.fn.attr=d),h&&(i.fn.removeAttr=h),g&&(i.fn.hide=g),y&&(i.fn.show=y),m&&(i.fn.parents=m),b&&(i.fn.dataset=b),w&&(i.fn.val=w),x&&(i.fn.text=x),O&&(i.fn.html=O),S&&(i.fn.children=S),j&&(i.fn.remove=j),E&&(i.fn.find=E),q&&(i.fn.width=q),T&&(i.fn.height=T),P&&(i.fn.filter=P),I&&(i.fn.empty=I);var Vi,Ji,Qi,to,ro,no,eo,io={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,r,n){var e=i(t),o=e.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:e.attr("src")||"",alt:e.attr("alt")||"",href:o,style:{width:Yi(e,"width"),height:Yi(e,"height"),float:Yi(e,"float")||""},width:e.attr("width")||"",height:e.attr("height")||"",children:[{text:""}]}}},oo={};function uo(){if(Ji)return Vi;Ji=1;var t=zt();return Vi=t(1.1.valueOf)}!function(){if(ro)return oo;ro=1;var t=Oe(),r=zt(),n=zn(),e=uo(),i=function(){if(to)return Qi;to=1;var t=zn(),r=He(),n=Bt(),e=RangeError;return Qi=function(i){var o=r(n(this)),u="",f=t(i);if(f<0||f===1/0)throw new e("Wrong number of repetitions");for(;f>0;(f>>>=1)&&(o+=o))1&f&&(u+=o);return u}}(),o=U(),u=RangeError,f=String,a=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=a(i/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: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,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(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;)d(y,1<<23),o-=23;d(y,1<<o),p(y,1,1),d(y,2),b=h(y)}else p(y,0,i),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 fo=function(){if(eo)return no;eo=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 A&&A&&A.Object===Object&&A,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 i,o,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=i,e=o;return i=o=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&&i?b(t):(i=o=void 0,f)}function S(){var t=v(),r=w(t);if(i=arguments,o=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,i=c=o=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||i.test(t)?o(t.slice(2),f?2:8):n.test(t)?NaN:+t}return no=function(r,n,e){var i=!0,o=!0;if("function"!=typeof r)throw new TypeError(t);return d(e)&&(i="leading"in e?!!e.leading:i,o="trailing"in e?!!e.trailing:o),p(r,n,{leading:i,maxWait:n,trailing:o})}}(),ao=C(fo);function co(t,n){var e=r.findKey(t,n).id;return"w-e-image-container-".concat(e)}function lo(t,e,o,u){var f=i("body"),a=co(t,e),c=u.width,l=u.height,s=u.float,v=0,p=0,d=0,h=!1,g=null;var y=ao(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(i){if(f.off("mousemove",y),null!=g){var o=g.width().toFixed(2),u=g.height().toFixed(2),a={style:Fe(Fe({},e.style),{width:"".concat(o,"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=i("#".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 o=r.getHoverbar(t);o&&o.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=i(t.target);r.hasClass("w-e-image-dragger")&&(t.preventDefault(),(r.hasClass("left-top")||r.hasClass("left-bottom"))&&(h=!0),b(t.clientX))}}},o,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 so={type:"image",renderElem:function(t,n,e){var i=t,o=i.src,u=i.alt,f=void 0===u?"":u,a=i.href,c=void 0===a?"":a,l=i.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:o,alt:f,"data-href":c}),w=e.isDisabled();return y&&!w?lo(e,t,b,{width:p,height:h,float:g}):function(t,r,n,e){var i=e.width,o=e.height,u=e.float,f={};i&&(f.width=i),o&&(f.height=o),u&&(f.float=u);var a=co(t,r);return N("div",{id:a,style:f,className:"w-e-image-container"},n)}(e,t,b,{width:p,height:h,float:g})}},vo={renderElems:[so],elemsToHtml:[Ce],parseElemsHtml:[io],menus:[ji,Ei,Si]};export{vo as default};
2
2
  //# sourceMappingURL=index.mjs.map