@wangeditor-next/video-module 1.3.56 → 1.3.57

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,t as r,DomEditor as n,genModalInputElems as e,genModalButtonElems as o,createUploader as i}from"@wangeditor-next/core";import u,{append as c,on as a,focus as f,attr as s,val as l,html as v,parent as d,hasClass as p,empty as h}from"dom7";import{Transforms as y,Range as g}from"slate";import{nanoid as m}from"nanoid";import{jsx as b,h as w}from"snabbdom";t("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",edit:"Edit video",width:"Width",height:"Height"}}),t("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function O(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var E,x,j={};function P(){if(x)return E;x=1;var t=function(t){return t&&t.Math===Math&&t};return E=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof S&&S)||t("object"==typeof E&&E)||function(){return this}()||Function("return this")()}var T,I,M,A,C,N,R,k,L={};function z(){return I?T:(I=1,T=function(t){try{return!!t()}catch(t){return!0}})}function D(){if(A)return M;A=1;var t=z();return M=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function V(){if(N)return C;N=1;var t=z();return C=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function F(){if(k)return R;k=1;var t=V(),r=Function.prototype.call;return R=t?r.bind(r):function(){return r.apply(r,arguments)},R}var _,$,B,U,H,W,G,K,Y,X,J,q,Q,Z,tt,rt,nt,et,ot,it,ut,ct,at,ft,st,lt,vt,dt,pt,ht,yt,gt,mt,bt,wt,St,Ot,Et,xt,jt,Pt,Tt={};function It(){return B?$:(B=1,$=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function Mt(){if(H)return U;H=1;var t=V(),r=Function.prototype,n=r.call,e=t&&r.bind.bind(n,n);return U=t?e:function(t){return function(){return n.apply(t,arguments)}},U}function At(){if(G)return W;G=1;var t=Mt(),r=t({}.toString),n=t("".slice);return W=function(t){return n(r(t),8,-1)}}function Ct(){if(Y)return K;Y=1;var t=Mt(),r=z(),n=At(),e=Object,o=t("".split);return K=r(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):e(t)}:e}function Nt(){return J?X:(J=1,X=function(t){return null==t})}function Rt(){if(Q)return q;Q=1;var t=Nt(),r=TypeError;return q=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}function kt(){if(tt)return Z;tt=1;var t=Ct(),r=Rt();return Z=function(n){return t(r(n))}}function Lt(){if(nt)return rt;nt=1;var t="object"==typeof document&&document.all;return rt=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function zt(){if(ot)return et;ot=1;var t=Lt();return et=function(r){return"object"==typeof r?null!==r:t(r)}}function Dt(){if(ut)return it;ut=1;var t=P(),r=Lt();return it=function(n,e){return arguments.length<2?(o=t[n],r(o)?o:void 0):t[n]&&t[n][e];var o},it}function Vt(){if(at)return ct;at=1;var t=Mt();return ct=t({}.isPrototypeOf)}function Ft(){if(st)return ft;st=1;var t=P().navigator,r=t&&t.userAgent;return ft=r?String(r):""}function _t(){if(vt)return lt;vt=1;var t,r,n=P(),e=Ft(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,c=u&&u.v8;return c&&(r=(t=c.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]),lt=r}function $t(){if(pt)return dt;pt=1;var t=_t(),r=z(),n=P().String;return dt=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!n(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function Bt(){if(yt)return ht;yt=1;var t=$t();return ht=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Ut(){if(mt)return gt;mt=1;var t=Dt(),r=Lt(),n=Vt(),e=Bt(),o=Object;return gt=e?function(t){return"symbol"==typeof t}:function(e){var i=t("Symbol");return r(i)&&n(i.prototype,o(e))}}function Ht(){if(wt)return bt;wt=1;var t=String;return bt=function(r){try{return t(r)}catch(t){return"Object"}}}function Wt(){if(Ot)return St;Ot=1;var t=Lt(),r=Ht(),n=TypeError;return St=function(e){if(t(e))return e;throw new n(r(e)+" is not a function")}}function Gt(){if(xt)return Et;xt=1;var t=Wt(),r=Nt();return Et=function(n,e){var o=n[e];return r(o)?void 0:t(o)}}var Kt,Yt,Xt,Jt,qt,Qt,Zt,tr,rr,nr,er,or,ir,ur,cr,ar,fr,sr,lr,vr,dr,pr,hr,yr,gr={exports:{}};function mr(){return Yt?Kt:(Yt=1,Kt=!1)}function br(){if(Jt)return Xt;Jt=1;var t=P(),r=Object.defineProperty;return Xt=function(n,e){try{r(t,n,{value:e,configurable:!0,writable:!0})}catch(r){t[n]=e}return e}}function wr(){if(qt)return gr.exports;qt=1;var t=mr(),r=P(),n=br(),e="__core-js_shared__",o=gr.exports=r[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.49.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),gr.exports}function Sr(){if(Zt)return Qt;Zt=1;var t=wr();return Qt=function(r,n){return t[r]||(t[r]=n||{})}}function Or(){if(rr)return tr;rr=1;var t=Rt(),r=Object;return tr=function(n){return r(t(n))}}function Er(){if(er)return nr;er=1;var t=Mt(),r=Or(),n=t({}.hasOwnProperty);return nr=Object.hasOwn||function(t,e){return n(r(t),e)}}function xr(){if(ir)return or;ir=1;var t=Mt(),r=0,n=Math.random(),e=t(1.1.toString);return or=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++r+n,36)}}function jr(){if(cr)return ur;cr=1;var t=P(),r=Sr(),n=Er(),e=xr(),o=$t(),i=Bt(),u=t.Symbol,c=r("wks"),a=i?u.for||u:u&&u.withoutSetter||e;return ur=function(t){return n(c,t)||(c[t]=o&&n(u,t)?u[t]:a("Symbol."+t)),c[t]}}function Pr(){if(fr)return ar;fr=1;var t=F(),r=zt(),n=Ut(),e=Gt(),o=function(){if(Pt)return jt;Pt=1;var t=F(),r=Lt(),n=zt(),e=TypeError;return jt=function(o,i){var u,c;if("string"===i&&r(u=o.toString)&&!n(c=t(u,o)))return c;if(r(u=o.valueOf)&&!n(c=t(u,o)))return c;if("string"!==i&&r(u=o.toString)&&!n(c=t(u,o)))return c;throw new e("Can't convert object to primitive value")},jt}(),i=jr(),u=TypeError,c=i("toPrimitive");return ar=function(i,a){if(!r(i)||n(i))return i;var f,s=e(i,c);if(s){if(void 0===a&&(a="default"),f=t(s,i,a),!r(f)||n(f))return f;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),o(i,a)}}function Tr(){if(lr)return sr;lr=1;var t=Pr(),r=Ut();return sr=function(n){var e=t(n,"string");return r(e)?e:e+""}}function Ir(){if(dr)return vr;dr=1;var t=P(),r=zt(),n=t.document,e=r(n)&&r(n.createElement);return vr=function(t){return e?n.createElement(t):{}}}function Mr(){if(hr)return pr;hr=1;var t=D(),r=z(),n=Ir();return pr=!t&&!r(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Ar(){if(yr)return L;yr=1;var t=D(),r=F(),n=function(){if(_)return Tt;_=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);return Tt.f=n?function(t){var n=r(this,t);return!!n&&n.enumerable}:t,Tt}(),e=It(),o=kt(),i=Tr(),u=Er(),c=Mr(),a=Object.getOwnPropertyDescriptor;return L.f=t?a:function(t,f){if(t=o(t),f=i(f),c)try{return a(t,f)}catch(t){}if(u(t,f))return e(!r(n.f,t,f),t[f])},L}var Cr,Nr,Rr,kr,Lr,zr,Dr,Vr={};function Fr(){if(Nr)return Cr;Nr=1;var t=D(),r=z();return Cr=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function _r(){if(kr)return Rr;kr=1;var t=zt(),r=String,n=TypeError;return Rr=function(e){if(t(e))return e;throw new n(r(e)+" is not an object")}}function $r(){if(Lr)return Vr;Lr=1;var t=D(),r=Mr(),n=Fr(),e=_r(),o=Tr(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,a="enumerable",f="configurable",s="writable";return Vr.f=t?n?function(t,r,n){if(e(t),r=o(r),e(n),"function"==typeof t&&"prototype"===r&&"value"in n&&s in n&&!n[s]){var i=c(t,r);i&&i[s]&&(t[r]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:a in n?n[a]:i[a],writable:!1})}return u(t,r,n)}:u:function(t,n,c){if(e(t),n=o(n),e(c),r)try{return u(t,n,c)}catch(t){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(t[n]=c.value),t},Vr}function Br(){if(Dr)return zr;Dr=1;var t=D(),r=$r(),n=It();return zr=t?function(t,e,o){return r.f(t,e,n(1,o))}:function(t,r,n){return t[r]=n,t}}var Ur,Hr,Wr,Gr,Kr,Yr,Xr,Jr,qr,Qr,Zr,tn,rn,nn,en,on={exports:{}};function un(){if(Hr)return Ur;Hr=1;var t=D(),r=Er(),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 Ur={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function cn(){if(Gr)return Wr;Gr=1;var t=Mt(),r=Lt(),n=wr(),e=t(Function.toString);return r(n.inspectSource)||(n.inspectSource=function(t){return e(t)}),Wr=n.inspectSource}function an(){if(Yr)return Kr;Yr=1;var t=P(),r=Lt(),n=t.WeakMap;return Kr=r(n)&&/native code/.test(String(n))}function fn(){if(Jr)return Xr;Jr=1;var t=Sr(),r=xr(),n=t("keys");return Xr=function(t){return n[t]||(n[t]=r(t))}}function sn(){return Qr?qr:(Qr=1,qr={})}function ln(){if(tn)return Zr;tn=1;var t,r,n,e=an(),o=P(),i=zt(),u=Br(),c=Er(),a=wr(),f=fn(),s=sn(),l="Object already initialized",v=o.TypeError,d=o.WeakMap;if(e||a.state){var p=a.state||(a.state=new d);p.get=p.get,p.has=p.has,p.set=p.set,t=function(t,r){if(p.has(t))throw new v(l);return r.facade=t,p.set(t,r),r},r=function(t){return p.get(t)||{}},n=function(t){return p.has(t)}}else{var h=f("state");s[h]=!0,t=function(t,r){if(c(t,h))throw new v(l);return r.facade=t,u(t,h,r),r},r=function(t){return c(t,h)?t[h]:{}},n=function(t){return c(t,h)}}return Zr={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 vn(){if(rn)return on.exports;rn=1;var t=Mt(),r=z(),n=Lt(),e=Er(),o=D(),i=un().CONFIGURABLE,u=cn(),c=ln(),a=c.enforce,f=c.get,s=String,l=Object.defineProperty,v=t("".slice),d=t("".replace),p=t([].join),h=o&&!r(function(){return 8!==l(function(){},"length",{value:8}).length}),y=String(String).split("String"),g=on.exports=function(t,r,n){"Symbol("===v(s(r),0,7)&&(r="["+d(s(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(r="get "+r),n&&n.setter&&(r="set "+r),(!e(t,"name")||i&&t.name!==r)&&(o?l(t,"name",{value:r,configurable:!0}):t.name=r),h&&n&&e(n,"arity")&&t.length!==n.arity&&l(t,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?o&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=a(t);return e(u,"source")||(u.source=p(y,"string"==typeof r?r:"")),t};return Function.prototype.toString=g(function(){return n(this)&&f(this).source||u(this)},"toString"),on.exports}function dn(){if(en)return nn;en=1;var t=Lt(),r=$r(),n=vn(),e=br();return nn=function(o,i,u,c){c||(c={});var a=c.enumerable,f=void 0!==c.name?c.name:i;if(t(u)&&n(u,f,c),c.global)a?o[i]=u:e(i,u);else{try{c.unsafe?o[i]&&(a=!0):delete o[i]}catch(t){}a?o[i]=u:r.f(o,i,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return o}}var pn,hn,yn,gn,mn,bn,wn,Sn,On,En,xn,jn,Pn,Tn,In,Mn,An,Cn={};function Nn(){if(gn)return yn;gn=1;var t=function(){if(hn)return pn;hn=1;var t=Math.ceil,r=Math.floor;return pn=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}}();return yn=function(r){var n=+r;return n!=n||0===n?0:t(n)}}function Rn(){if(bn)return mn;bn=1;var t=Nn(),r=Math.max,n=Math.min;return mn=function(e,o){var i=t(e);return i<0?r(i+o,0):n(i,o)}}function kn(){if(Sn)return wn;Sn=1;var t=Nn(),r=Math.min;return wn=function(n){var e=t(n);return e>0?r(e,9007199254740991):0}}function Ln(){if(En)return On;En=1;var t=kn();return On=function(r){return t(r.length)}}function zn(){if(Tn)return Pn;Tn=1;var t=Mt(),r=Er(),n=kt(),e=function(){if(jn)return xn;jn=1;var t=kt(),r=Rn(),n=Ln(),e=function(e){return function(o,i,u){var c=t(o),a=n(c);if(0===a)return!e&&-1;var f,s=r(u,a);if(e&&i!=i){for(;a>s;)if((f=c[s++])!=f)return!0}else for(;a>s;s++)if((e||s in c)&&c[s]===i)return e||s||0;return!e&&-1}};return xn={includes:e(!0),indexOf:e(!1)}}().indexOf,o=sn(),i=t([].push);return Pn=function(t,u){var c,a=n(t),f=0,s=[];for(c in a)!r(o,c)&&r(a,c)&&i(s,c);for(;u.length>f;)r(a,c=u[f++])&&(~e(s,c)||i(s,c));return s}}function Dn(){return Mn?In:(Mn=1,In=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function Vn(){if(An)return Cn;An=1;var t=zn(),r=Dn().concat("length","prototype");return Cn.f=Object.getOwnPropertyNames||function(n){return t(n,r)},Cn}var Fn,_n,$n,Bn,Un,Hn,Wn,Gn,Kn,Yn,Xn,Jn,qn,Qn,Zn,te,re,ne,ee,oe,ie,ue,ce,ae,fe,se,le,ve,de,pe,he={};function ye(){if($n)return _n;$n=1;var t=Dt(),r=Mt(),n=Vn(),e=(Fn||(Fn=1,he.f=Object.getOwnPropertySymbols),he),o=_r(),i=r([].concat);return _n=t("Reflect","ownKeys")||function(t){var r=n.f(o(t)),u=e.f;return u?i(r,u(t)):r}}function ge(){if(Un)return Bn;Un=1;var t=Er(),r=ye(),n=Ar(),e=$r();return Bn=function(o,i,u){for(var c=r(i),a=e.f,f=n.f,s=0;s<c.length;s++){var l=c[s];t(o,l)||u&&t(u,l)||a(o,l,f(i,l))}}}function me(){if(Wn)return Hn;Wn=1;var t=z(),r=Lt(),n=/#|\.prototype\./,e=function(n,e){var a=i[o(n)];return a===c||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",c=e.POLYFILL="P";return Hn=e}function be(){if(Kn)return Gn;Kn=1;var t=P(),r=Ar().f,n=Br(),e=dn(),o=br(),i=ge(),u=me();return Gn=function(c,a){var f,s,l,v,d,p=c.target,h=c.global,y=c.stat;if(f=h?t:y?t[p]||o(p,{}):t[p]&&t[p].prototype)for(s in a){if(v=a[s],l=c.dontCallGetSet?(d=r(f,s))&&d.value:f[s],!u(h?s:p+(y?".":"#")+s,c.forced)&&void 0!==l){if(typeof v==typeof l)continue;i(v,l)}(c.sham||l&&l.sham)&&n(v,"sham",!0),e(f,s,v,c)}}}function we(){if(Xn)return Yn;Xn=1;var t=At();return Yn=Array.isArray||function(r){return"Array"===t(r)}}function Se(){if(qn)return Jn;qn=1;var t=TypeError;return Jn=function(r){if(r>9007199254740991)throw new t("Maximum allowed index exceeded");return r}}function Oe(){if(Zn)return Qn;Zn=1;var t=D(),r=$r(),n=It();return Qn=function(e,o,i){t?r.f(e,o,n(0,i)):e[o]=i}}function Ee(){if(re)return te;re=1;var t=D(),r=we(),n=TypeError,e=Object.getOwnPropertyDescriptor,o=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();return te=o?function(t,o){if(r(t)&&!e(t,"length").writable)throw new n("Cannot set read only .length");return t.length=o}:function(t,r){return t.length=r}}function xe(){if(ee)return ne;ee=1;var t={};return t[jr()("toStringTag")]="z",ne="[object z]"===String(t)}function je(){if(ie)return oe;ie=1;var t=xe(),r=Lt(),n=At(),e=jr()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return oe=t?n:function(t){var u,c,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(c=function(t,r){try{return t[r]}catch(t){}}(u=o(t),e))?c:i?n(u):"Object"===(a=n(u))&&r(u.callee)?"Arguments":a}}function Pe(){if(ce)return ue;ce=1;var t=Mt(),r=z(),n=Lt(),e=je(),o=Dt(),i=cn(),u=function(){},c=o("Reflect","construct"),a=/^\s*(?:class|function)\b/,f=t(a.exec),s=!a.test(u),l=function(t){if(!n(t))return!1;try{return c(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 s||!!f(a,i(t))}catch(t){return!0}};return v.sham=!0,ue=!c||r(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?v:l}function Te(){if(fe)return ae;fe=1;var t=we(),r=Pe(),n=zt(),e=jr()("species"),o=Array;return ae=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 Ie(){if(le)return se;le=1;var t=Te();return se=function(r,n){return new(t(r))(0===n?0:n)}}function Me(){if(de)return ve;de=1;var t=z(),r=jr(),n=_t(),e=r("species");return ve=function(r){return n>=51||!t(function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[r](Boolean).foo})}}!function(){if(pe)return j;pe=1;var t=be(),r=z(),n=we(),e=zt(),o=Or(),i=Ln(),u=Se(),c=Oe(),a=Ee(),f=Ie(),s=Me(),l=jr(),v=_t(),d=l("isConcatSpreadable"),p=v>=51||!r(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!e(t))return!1;var r=t[d];return void 0!==r?!!r:n(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!s("concat")},{concat:function(t){var r,n,e,s,l,v=o(this),d=f(v,0),p=0;for(r=-1,e=arguments.length;r<e;r++)if(h(l=-1===r?v:arguments[r]))for(s=i(l),u(p+s),n=0;n<s;n++,p++)n in l&&c(d,p,l[n]);else u(p+1),c(d,p++,l);return a(d,p),d}})}();var Ae,Ce,Ne,Re,ke,Le,ze,De,Ve,Fe={};function _e(){if(Ce)return Ae;Ce=1;var t=je(),r=String;return Ae=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}}function $e(){return Re?Ne:(Re=1,Ne="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(Ve)return Fe;Ve=1;var t=be(),r=function(){if(Le)return ke;Le=1;var t=Mt(),r=Rt(),n=_e(),e=$e(),o=t("".replace),i=RegExp("^["+e+"]+"),u=RegExp("(^|[^"+e+"])["+e+"]+$"),c=function(t){return function(e){var c=n(r(e));return 1&t&&(c=o(c,i,"")),2&t&&(c=o(c,u,"$1")),c}};return ke={start:c(1),end:c(2),trim:c(3)}}().trim,n=function(){if(De)return ze;De=1;var t=un().PROPER,r=z(),n=$e();return ze=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 Be,Ue,He={};function We(t){return t.length?t[0].tagName.toLowerCase():""}function Ge(t,r,n,e){void 0===r&&(r="auto"),void 0===n&&(n="auto"),void 0===e&&(e={});var o=u(t),i=e.width,c=void 0===i?"":i,a=e.height,f=void 0===a?"":a,s="";return c&&(s+="width: ".concat(c,";")),f&&(s+="height: ".concat(f,";")),o.attr("width",r),o.attr("height",n),o.attr("style",s),o[0].outerHTML}Ue||(Ue=1,function(){if(Be)return He;Be=1;var t=be(),r=P();t({global:!0,forced:r.globalThis!==r},{globalThis:r})}()),c&&(u.fn.append=c),a&&(u.fn.on=a),f&&(u.fn.focus=f),s&&(u.fn.attr=s),l&&(u.fn.val=l),v&&(u.fn.html=v),d&&(u.fn.parent=d),p&&(u.fn.hasClass=p),h&&(u.fn.empty=h);var Ke,Ye,Xe,Je={type:"video",elemToHtml:function(t,r){var n=t,e=n.src,o=void 0===e?"":e,i=n.poster,u=void 0===i?"":i,c=n.width,a=void 0===c?"auto":c,f=n.height,s=void 0===f?"auto":f,l=n.style,v=void 0===l?{}:l,d=n.textAlign,p='<div data-w-e-type="video" data-w-e-is-void style="text-align: '.concat(void 0===d?"center":d,';">\n');if(0===o.trim().indexOf("<iframe ")){p+=Ge(o,a,s,v)}else{var h=v.width,y=void 0===h?"":h,g=v.height,m=void 0===g?"":g,b="";y&&(b+="width: ".concat(y,";")),m&&(b+="height: ".concat(m,";")),p+='<video poster="'.concat(u,'" controls="true" width="').concat(a,'" height="').concat(s,'" style="').concat(b,'"><source src="').concat(o,'" type="video/mp4"/></video>')}return p+="\n</div>"}},qe={};function Qe(){if(Ye)return Ke;Ye=1;var t=vn(),r=$r();return Ke=function(n,e,o){return o.get&&t(o.get,e,{getter:!0}),o.set&&t(o.set,e,{setter:!0}),r.f(n,e,o)}}!function(){if(Xe)return qe;Xe=1;var t=D(),r=un().EXISTS,n=Mt(),e=Qe(),o=Function.prototype,i=n(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=n(u.exec);t&&!r&&e(o,"name",{configurable:!0,get:function(){try{return c(u,i(this))[1]}catch(t){return""}}})}();var Ze,to,ro,no,eo,oo,io={};function uo(){if(no)return ro;no=1;var t=function(){if(to)return Ze;to=1;var t=At(),r=Mt();return Ze=function(n){if("Function"===t(n))return r(n)}}(),r=Wt(),n=V(),e=t(t.bind);return ro=function(t,o){return r(t),void 0===o?t:n?e(t,o):function(){return t.apply(o,arguments)}},ro}function co(){if(oo)return eo;oo=1;var t=uo(),r=Ct(),n=Or(),e=Ln(),o=Ie(),i=Oe(),u=function(u){var c=1===u,a=2===u,f=3===u,s=4===u,l=6===u,v=7===u,d=5===u||l;return function(p,h,y){for(var g,m,b=n(p),w=r(b),S=e(w),O=t(h,y),E=0,x=0,j=c?o(p,S):a||v?o(p,0):void 0;S>E;E++)if((d||E in w)&&(m=O(g=w[E],E,b),u))if(c)i(j,E,m);else if(m)switch(u){case 3:return!0;case 5:return g;case 6:return E;case 2:i(j,x++,g)}else switch(u){case 4:return!1;case 7:i(j,x++,g)}return l?-1:f||s?s:j}};return eo={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}var ao,fo,so,lo,vo,po,ho,yo,go,mo,bo={};function wo(){if(fo)return ao;fo=1;var t=zn(),r=Dn();return ao=Object.keys||function(n){return t(n,r)}}function So(){if(vo)return lo;vo=1;var t=Dt();return lo=t("document","documentElement")}function Oo(){if(ho)return po;ho=1;var t,r=_r(),n=function(){if(so)return bo;so=1;var t=D(),r=Fr(),n=$r(),e=_r(),o=kt(),i=wo();return bo.f=t&&!r?Object.defineProperties:function(t,r){e(t);for(var u,c=o(r),a=i(r),f=a.length,s=0;f>s;)n.f(t,u=a[s++],c[u]);return t},bo}(),e=Dn(),o=sn(),i=So(),u=Ir(),c=fn(),a="prototype",f="script",s=c("IE_PROTO"),l=function(){},v=function(t){return"<"+f+">"+t+"</"+f+">"},d=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var r,n,o;p="undefined"!=typeof document?document.domain&&t?d(t):(n=u("iframe"),o="java"+f+":",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):d(t);for(var c=e.length;c--;)delete p[a][e[c]];return p()};return o[s]=!0,po=Object.create||function(t,e){var o;return null!==t?(l[a]=r(t),o=new l,l[a]=null,o[s]=t):o=p(),void 0===e?o:n.f(o,e)}}function Eo(){if(go)return yo;go=1;var t=jr(),r=Oo(),n=$r().f,e=t("unscopables"),o=Array.prototype;return void 0===o[e]&&n(o,e,{configurable:!0,value:r(null)}),yo=function(t){o[e][t]=!0}}!function(){if(mo)return io;mo=1;var t=be(),r=co().find,n=Eo(),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 xo,jo,Po,To={};!function(){if(Po)return To;Po=1;var t=xe(),r=dn(),n=function(){if(jo)return xo;jo=1;var t=xe(),r=je();return xo=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",n,{unsafe:!0})}();var Io,Mo,Ao,Co,No,Ro,ko,Lo,zo,Do,Vo,Fo={};function _o(){if(Mo)return Io;Mo=1;var t=_r();return Io=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 $o(){if(Do)return zo;Do=1;var t,r,n=F(),e=Mt(),o=_e(),i=_o(),u=function(){if(Co)return Ao;Co=1;var t=z(),r=P().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 Ao={BROKEN_CARET:o,MISSED_STICKY:e,UNSUPPORTED_Y:n}}(),c=Sr(),a=Oo(),f=ln().get,s=function(){if(Ro)return No;Ro=1;var t=z(),r=P().RegExp;return No=t(function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),l=function(){if(Lo)return ko;Lo=1;var t=z(),r=P().RegExp;return ko=t(function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),v=c("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,p=d,h=e("".charAt),y=e("".indexOf),g=e("".replace),m=e("".slice),b=(r=/b*/g,n(d,t=/a/,"a"),n(d,r,"a"),0!==t.lastIndex||0!==r.lastIndex),w=u.BROKEN_CARET,S=void 0!==/()??/.exec("")[1],O=function(t,r){for(var n=t.groups=a(null),e=0;e<r.length;e++){var o=r[e];n[o[0]]=t[o[1]]}};return(b||S||w||s||l)&&(p=function(t){var r,e,u,c=this,a=f(c),s=o(t),l=a.raw;if(l)return l.lastIndex=c.lastIndex,r=n(p,l,s),c.lastIndex=l.lastIndex,r&&a.groups&&O(r,a.groups),r;var E=a.groups,x=w&&c.sticky,j=n(i,c),P=c.source,T=0,I=s;if(x){j=g(j,"y",""),-1===y(j,"g")&&(j+="g"),I=m(s,c.lastIndex);var M=c.lastIndex>0&&h(s,c.lastIndex-1);c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==M&&"\r"!==M&&"\u2028"!==M&&"\u2029"!==M)&&(P="(?: (?:"+P+"))",I=" "+I,T++),e=new RegExp("^(?:"+P+")",j)}S&&(e=new RegExp("^"+P+"$(?!\\s)",j)),b&&(u=c.lastIndex);var A=n(d,x?e:c,I);return x?A?(A.input=s,A[0]=m(A[0],T),A.index=c.lastIndex,c.lastIndex+=A[0].length):c.lastIndex=0:b&&A&&(c.lastIndex=c.global?A.index+A[0].length:u),S&&A&&A.length>1&&n(v,A[0],e,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(A[t]=void 0)}),A&&E&&O(A,E),A}),zo=p}function Bo(){if(Vo)return Fo;Vo=1;var t=be(),r=$o();return t({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r}),Fo}Bo();var Uo=function(){return Uo=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},Uo.apply(this,arguments)};function Ho(t,r,n,e){return new(n||(n=Promise))(function(o,i){function u(t){try{a(e.next(t))}catch(t){i(t)}}function c(t){try{a(e.throw(t))}catch(t){i(t)}}function a(t){var r;t.done?o(t.value):(r=t.value,r instanceof n?r:new n(function(t){t(r)})).then(u,c)}a((e=e.apply(t,r||[])).next())})}function Wo(t,r){var n,e,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(a){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(i=0)),i;)try{if(n=1,e&&(o=2&c[0]?e.return:c[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,c[1])).done)return o;switch(e=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,e=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(t,i)}catch(t){c=[6,t],e=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}}function Go(t){var r="function"==typeof Symbol&&Symbol.iterator,n=r&&t[r],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ko(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 Yo(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=t[Symbol.asyncIterator];return n?n.call(t):(t=Go(t),r={},e("next"),e("throw"),e("return"),r[Symbol.asyncIterator]=function(){return this},r);function e(n){r[n]=t[n]&&function(r){return new Promise(function(e,o){(function(t,r,n,e){Promise.resolve(e).then(function(r){t({value:r,done:n})},r)})(e,o,(r=t[n](r)).done,r.value)})}}}"function"==typeof SuppressedError&&SuppressedError;var Xo,Jo,qo,Qo,Zo,ti,ri,ni,ei,oi,ii,ui,ci,ai,fi,si,li,vi={};function di(){if(Jo)return Xo;Jo=1;var t=V(),r=Function.prototype,n=r.apply,e=r.call;return Xo="object"==typeof Reflect&&Reflect.apply||(t?e.bind(n):function(){return e.apply(n,arguments)}),Xo}function pi(){if(ti)return Zo;ti=1;var t=Mt(),r=Nn(),n=_e(),e=Rt(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),c=function(t){return function(c,a){var f,s,l=n(e(c)),v=r(a),d=l.length;return v<0||v>=d?t?"":void 0:(f=i(l,v))<55296||f>56319||v+1===d||(s=i(l,v+1))<56320||s>57343?t?o(l,v):f:t?u(l,v,v+2):s-56320+(f-55296<<10)+65536}};return Zo={codeAt:c(!1),charAt:c(!0)}}function hi(){if(ni)return ri;ni=1;var t=pi().charAt;return ri=function(r,n,e){return n+(e&&t(r,n).length||1)}}function yi(){if(oi)return ei;oi=1;var t=Mt(),r=Or(),n=Math.floor,e=t("".charAt),o=t("".replace),i=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;return ei=function(t,a,f,s,l,v){var d=f+t.length,p=s.length,h=c;return void 0!==l&&(l=r(l),h=u),o(v,h,function(r,o){var u;switch(e(o,0)){case"$":return"$";case"&":return t;case"`":return i(a,0,f);case"'":return i(a,d);case"<":u=l[i(o,1,-1)];break;default:var c=+o;if(0===c)return r;if(c>p){var v=n(c/10);return 0===v?r:v<=p?void 0===s[v-1]?e(o,1):s[v-1]+e(o,1):r}u=s[c-1]}return void 0===u?"":u})}}function gi(){if(ai)return ci;ai=1;var t=F(),r=Er(),n=Vt(),e=function(){if(ui)return ii;ui=1;var t=P(),r=z(),n=t.RegExp,e=!r(function(){var t=!0;try{n(".","d")}catch(r){t=!1}var r={},e="",o=t?"dgimsy":"gimsy",i=function(t,n){Object.defineProperty(r,t,{get:function(){return e+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var c in t&&(u.hasIndices="d"),u)i(c,u[c]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(r)!==o||e!==o});return ii={correct:e}}(),o=_o(),i=RegExp.prototype;return ci=e.correct?function(t){return t.flags}:function(u){return e.correct||!n(i,u)||r(u,"flags")?u.flags:t(o,u)}}!function(){if(li)return vi;li=1;var t=di(),r=F(),n=Mt(),e=function(){if(Qo)return qo;Qo=1,Bo();var t=F(),r=dn(),n=$o(),e=z(),o=jr(),i=Br(),u=o("species"),c=RegExp.prototype;return qo=function(a,f,s,l){var v=o(a),d=!e(function(){var t={};return t[v]=function(){return 7},7!==""[a](t)}),p=d&&!e(function(){var t=!1,r=/a/;if("split"===a){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(!d||!p||s){var h=/./[v],y=f(v,""[a],function(r,e,o,i,u){var a=e.exec;return a===n||a===c.exec?d&&!u?{done:!0,value:t(h,e,o,i)}:{done:!0,value:t(r,o,e,i)}:{done:!1}});r(String.prototype,a,y[0]),r(c,v,y[1])}l&&i(c[v],"sham",!0)}}(),o=z(),i=_r(),u=Lt(),c=zt(),a=Nn(),f=kn(),s=_e(),l=Rt(),v=hi(),d=Gt(),p=yi(),h=gi(),y=function(){if(si)return fi;si=1;var t=F(),r=_r(),n=Lt(),e=At(),o=$o(),i=TypeError;return fi=function(u,c){var a=u.exec;if(n(a)){var f=t(a,u,c);return null!==f&&r(f),f}if("RegExp"===e(u))return t(o,u,c);throw new i("RegExp#exec called on incompatible receiver")}}(),g=jr()("replace"),m=Math.max,b=Math.min,w=n([].concat),S=n([].push),O=n("".indexOf),E=n("".slice),x=function(t){return void 0===t?t:String(t)},j="$0"==="a".replace(/./,"$0"),P=!!/./[g]&&""===/./[g]("a","$0");e("replace",function(n,e,o){var j=P?"$":"$0";return[function(t,n){var o=l(this),i=c(t)?d(t,g):void 0;return i?r(i,t,o,n):r(e,s(o),t,n)},function(r,n){var c=i(this),l=s(r),d=u(n);d||(n=s(n));var g=s(h(c));if("string"==typeof n&&!~O(n,j)&&!~O(n,"$<")&&!~O(g,"y")){var P=o(e,c,l,n);if(P.done)return P.value}var T,I=!!~O(g,"g");I&&(T=!!~O(g,"u")||!!~O(g,"v"),c.lastIndex=0);for(var M,A=[];null!==(M=y(c,l))&&(S(A,M),I);){""===s(M[0])&&(c.lastIndex=v(l,f(c.lastIndex),T))}for(var C="",N=0,R=0;R<A.length;R++){for(var k,L=s((M=A[R])[0]),z=m(b(a(M.index),l.length),0),D=[],V=1;V<M.length;V++)S(D,x(M[V]));var F=M.groups;if(d){var _=w([L],D,z,l);void 0!==F&&S(_,F),k=s(t(n,void 0,_))}else k=p(L,l,z,D,F,n);z>=N&&(C+=E(l,N,z)+k,N=z+L.length)}return C+E(l,N)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!j||P)}();var mi,bi,wi,Si,Oi,Ei,xi,ji,Pi,Ti={};function Ii(){return bi?mi:(bi=1,mi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0})}function Mi(){if(Si)return wi;Si=1;var t=Ir()("span").classList,r=t&&t.constructor&&t.constructor.prototype;return wi=r===Object.prototype?void 0:r}function Ai(){if(Ei)return Oi;Ei=1;var t=z();return Oi=function(r,n){var e=[][r];return!!e&&t(function(){e.call(null,n||function(){return 1},1)})}}function Ci(t){return void 0===t&&(t="r"),"".concat(t,"-").concat(m())}function Ni(t){var r={};return t.trim().split(";").forEach(function(t){if(t){var n=Ko(t.split(":"),2),e=n[0],o=n[1];e&&o&&(r[e.trim()]=o.trim())}}),r}function Ri(){return Ci("w-e-insert-video")}!function(){if(Pi)return Ti;Pi=1;var t=P(),r=Ii(),n=Mi(),e=function(){if(ji)return xi;ji=1;var t=co().forEach,r=Ai()("forEach");return xi=r?[].forEach:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)},xi}(),o=Br(),i=function(t){if(t&&t.forEach!==e)try{o(t,"forEach",e)}catch(r){t.forEach=e}};for(var u in r)r[u]&&i(t[u]&&t[u].prototype);i(n)}();var ki=function(){function t(){this.title=r("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Ri(),this.heightInputId=Ri(),this.buttonId=Ri()}return t.prototype.getSelectedVideoNode=function(t){return n.getSelectedNodeByType(t,"video")},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,r){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},t.prototype.getModalContentElem=function(t){var i=this,c=i.widthInputId,a=i.heightInputId,f=i.buttonId,s=Ko(e(r("videoModule.width"),c,"auto"),2),l=s[0],v=s[1],d=u(v),p=Ko(e(r("videoModule.height"),a,"auto"),2),h=p[0],g=p[1],m=u(g),b=Ko(o(f,r("videoModule.ok")),1)[0],w=this.getSelectedVideoNode(t);if(null==this.$content){var S=u("<div></div>");S.on("click","#".concat(f),function(r){r.preventDefault();var e=S.find("#".concat(c)).val().trim(),o=S.find("#".concat(a)).val().trim(),i=function(t){return/^\d+(\.\d+)?%$/.test(t)},u=function(t){return/^\d+(\.\d+)?$/.test(t)},f="auto",s="auto";i(e)?f=e:u(e)&&(f="".concat(parseInt(e,10),"px")),i(o)?s=o:u(o)&&(s="".concat(parseInt(o,10),"px"));var l=w.style,v=void 0===l?{}:l;t.restoreSelection();var d={style:Uo(Uo({},v),{width:f,height:s})};y.setNodes(t,d,{match:function(t){return n.checkNodeType(t,"video")}}),t.hidePanelOrModal()}),this.$content=S}var O=this.$content;if(O.empty(),O.append(l),O.append(h),O.append(b),null==w)return O[0];var E=w.style,x=void 0===E?{}:E,j=x.width,P=void 0===j?"":j,T=x.height,I=void 0===T?"":T;return d.val(P),m.val(I),setTimeout(function(){d.focus()}),O[0]},t}();function Li(){return Ci("w-e-edit-video")}var zi,Di,Vi,Fi,_i,$i,Bi,Ui,Hi,Wi,Gi,Ki,Yi,Xi,Ji,qi,Qi,Zi,tu,ru,nu,eu,ou,iu,uu,cu,au,fu,su,lu,vu,du,pu,hu,yu,gu,mu,bu,wu,Su,Ou,Eu,xu,ju,Pu,Tu,Iu,Mu,Au,Cu,Nu=function(){function t(){this.title=r("videoModule.edit"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Li(),this.posterInputId=Li(),this.buttonId=Li()}return t.prototype.getSelectedVideoNode=function(t){return n.getSelectedNodeByType(t,"video")},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,r){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},t.prototype.getModalContentElem=function(t){var i=this,c=this,a=c.srcInputId,f=c.posterInputId,s=c.buttonId,l=Ko(e(r("videoModule.videoSrc"),a,r("videoModule.videoSrcPlaceHolder")),2),v=l[0],d=l[1],p=Ko(e(r("videoModule.videoPoster"),f,r("videoModule.videoPosterPlaceHolder")),2),h=p[0],g=p[1],m=u(d),b=u(g),w=Ko(o(s,r("videoModule.ok")),1)[0];if(null==this.$content){var S=u("<div></div>");S.on("click","#".concat(s),function(r){return Ho(i,void 0,void 0,function(){var e,o,i,u;return Wo(this,function(c){return r.preventDefault(),e=S.find("#".concat(a)).val().trim(),o=S.find("#".concat(f)).val().trim(),i=Ci("video-"),u={src:e,poster:o,key:i},t.restoreSelection(),y.setNodes(t,u,{match:function(t){return n.checkNodeType(t,"video")}}),t.hidePanelOrModal(),[2]})})}),this.$content=S}var O=this.$content;O.empty(),O.append(v),O.append(h),O.append(w);var E=this.getSelectedVideoNode(t);if(null==E)return O[0];var x=E.src,j=void 0===x?"":x,P=E.poster,T=void 0===P?"":P;return m.val(j),b.val(T),setTimeout(function(){m.focus()}),O[0]},t}(),Ru={};function ku(){if(Di)return zi;Di=1;var t=P(),r=Ft(),n=At(),e=function(t){return r.slice(0,t.length)===t};return zi=e("Bun/")?"BUN":e("Cloudflare-Workers")?"CLOUDFLARE":e("Deno/")?"DENO":e("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function Lu(){if(Fi)return Vi;Fi=1;var t=ku();return Vi="NODE"===t}function zu(){if(Wi)return Hi;Wi=1;var t=zt();return Hi=function(r){return t(r)||null===r}}function Du(){if(Ki)return Gi;Ki=1;var t=zu(),r=String,n=TypeError;return Gi=function(e){if(t(e))return e;throw new n("Can't set "+r(e)+" as a prototype")}}function Vu(){if(Xi)return Yi;Xi=1;var t=function(){if(Ui)return Bi;Ui=1;var t=Mt(),r=Wt();return Bi=function(n,e,o){try{return t(r(Object.getOwnPropertyDescriptor(n,e)[o]))}catch(t){}}}(),r=zt(),n=Rt(),e=Du();return Yi=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,u={};try{(o=t(Object.prototype,"__proto__","set"))(u,[]),i=u instanceof Array}catch(t){}return function(t,u){return n(t),e(u),r(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function Fu(){if(qi)return Ji;qi=1;var t=$r().f,r=Er(),n=jr()("toStringTag");return Ji=function(e,o,i){e&&!i&&(e=e.prototype),e&&!r(e,n)&&t(e,n,{configurable:!0,value:o})}}function _u(){if(Zi)return Qi;Zi=1;var t=Dt(),r=Qe(),n=jr(),e=D(),o=n("species");return Qi=function(n){var i=t(n);e&&i&&!i[o]&&r(i,o,{configurable:!0,get:function(){return this}})}}function $u(){if(ru)return tu;ru=1;var t=Vt(),r=TypeError;return tu=function(n,e){if(t(e,n))return n;throw new r("Incorrect invocation")}}function Bu(){if(eu)return nu;eu=1;var t=Pe(),r=Ht(),n=TypeError;return nu=function(e){if(t(e))return e;throw new n(r(e)+" is not a constructor")}}function Uu(){if(iu)return ou;iu=1;var t=_r(),r=Bu(),n=Nt(),e=jr()("species");return ou=function(o,i){var u,c=t(o).constructor;return void 0===c||n(u=t(c)[e])?i:r(u)}}function Hu(){if(cu)return uu;cu=1;var t=Mt();return uu=t([].slice)}function Wu(){if(fu)return au;fu=1;var t=TypeError;return au=function(r,n){if(r<n)throw new t("Not enough arguments");return r}}function Gu(){if(lu)return su;lu=1;var t=Ft();return su=/ipad|iphone|ipod/i.test(t)&&/applewebkit/i.test(t)}function Ku(){if(du)return vu;du=1;var t,r,n,e,o=P(),i=di(),u=uo(),c=Lt(),a=Er(),f=z(),s=So(),l=Hu(),v=Ir(),d=Wu(),p=Gu(),h=Lu(),y=o.setImmediate,g=o.clearImmediate,m=o.process,b=o.Dispatch,w=o.Function,S=o.MessageChannel,O=o.String,E=0,x={},j="onreadystatechange";f(function(){t=o.location});var T=function(t){if(a(x,t)){var r=x[t];delete x[t],r()}},I=function(t){return function(){T(t)}},M=function(t){T(t.data)},A=function(r){o.postMessage(O(r),t.protocol+"//"+t.host)};return y&&g||(y=function(t){d(arguments.length,1);var n=c(t)?t:w(t),e=l(arguments,1);return x[++E]=function(){i(n,void 0,e)},r(E),E},g=function(t){delete x[t]},h?r=function(t){m.nextTick(I(t))}:b&&b.now?r=function(t){b.now(I(t))}:S&&!p?(e=(n=new S).port2,n.port1.onmessage=M,r=u(e.postMessage,e)):o.addEventListener&&c(o.postMessage)&&!o.importScripts&&t&&"file:"!==t.protocol&&!f(A)?(r=A,o.addEventListener("message",M,!1)):r=j in v("script")?function(t){s.appendChild(v("script"))[j]=function(){s.removeChild(this),T(t)}}:function(t){setTimeout(I(t),0)}),vu={set:y,clear:g}}function Yu(){if(hu)return pu;hu=1;var t=P(),r=D(),n=Object.getOwnPropertyDescriptor;return pu=function(e){if(!r)return t[e];var o=n(t,e);return o&&o.value}}function Xu(){if(gu)return yu;gu=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var r={item:t,next:null},n=this.tail;n?n.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},yu=t}function Ju(){if(Eu)return Ou;Eu=1;var t,r,n,e,o,i=P(),u=Yu(),c=uo(),a=Ku().set,f=Xu(),s=Gu(),l=function(){if(bu)return mu;bu=1;var t=Ft();return mu=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),v=function(){if(Su)return wu;Su=1;var t=Ft();return wu=/web0s(?!.*chrome)/i.test(t)}(),d=Lu(),p=i.MutationObserver||i.WebKitMutationObserver,h=i.document,y=i.process,g=i.Promise,m=u("queueMicrotask");if(!m){var b=new f,w=function(){var r,n;for(d&&(r=y.domain)&&r.exit();n=b.get();)try{n()}catch(r){throw b.head&&t(),r}r&&r.enter()};s||d||v||!p||!h?!l&&g&&g.resolve?((e=g.resolve(void 0)).constructor=g,o=c(e.then,e),t=function(){o(w)}):d?t=function(){y.nextTick(w)}:(a=c(a,i),t=function(){a(w)}):(r=!0,n=h.createTextNode(""),new p(w).observe(n,{characterData:!0}),t=function(){n.data=r=!r}),m=function(r){b.head||t(),b.add(r)}}return Ou=m}function qu(){return ju||(ju=1,xu=function(t,r){try{1===arguments.length?console.error(t):console.error(t,r)}catch(t){}}),xu}function Qu(){return Tu?Pu:(Tu=1,Pu=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function Zu(){if(Mu)return Iu;Mu=1;var t=P();return Iu=t.Promise}function tc(){if(Cu)return Au;Cu=1;var t=P(),r=Zu(),n=Lt(),e=me(),o=cn(),i=jr(),u=ku(),c=mr(),a=_t(),f=r&&r.prototype,s=i("species"),l=!1,v=n(t.PromiseRejectionEvent),d=e("Promise",function(){var t=o(r),n=t!==String(r);if(!n&&66===a)return!0;if(c&&(!f.catch||!f.finally))return!0;if(!a||a<51||!/native code/.test(t)){var e=new r(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((e.constructor={})[s]=i,!(l=e.then(function(){})instanceof i))return!0}return!(n||"BROWSER"!==u&&"DENO"!==u||v)});return Au={CONSTRUCTOR:d,REJECTION_EVENT:v,SUBCLASSING:l}}var rc,nc,ec={};function oc(){if(rc)return ec;rc=1;var t=Wt(),r=TypeError,n=function(n){var e,o;this.promise=new n(function(t,n){if(void 0!==e||void 0!==o)throw new r("Bad Promise constructor");e=t,o=n}),this.resolve=t(e),this.reject=t(o)};return ec.f=function(t){return new n(t)},ec}function ic(){if(nc)return Ru;nc=1;var t,r,n,e,o=be(),i=mr(),u=Lu(),c=P(),a=function(){if($i)return _i;$i=1;var t=P();return _i=t}(),f=F(),s=dn(),l=Vu(),v=Fu(),d=_u(),p=Wt(),h=Lt(),y=zt(),g=$u(),m=Uu(),b=Ku().set,w=Ju(),S=qu(),O=Qu(),E=Xu(),x=ln(),j=Zu(),T=tc(),I=oc(),M="Promise",A=T.CONSTRUCTOR,C=T.REJECTION_EVENT,N=T.SUBCLASSING,R=x.getterFor(M),k=x.set,L=j&&j.prototype,z=j,D=L,V=c.TypeError,_=c.document,$=c.process,B=I.f,U=B,H=!!(_&&_.createEvent&&c.dispatchEvent),W="unhandledrejection",G=function(t){var r;return!(!y(t)||!h(r=t.then))&&r},K=function(t,r){var n,e,o,i=r.value,u=1===r.state,c=u?t.ok:t.fail,a=t.resolve,s=t.reject,l=t.domain;try{c?(u||(2===r.rejection&&Q(r),r.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===t.promise?s(new V("Promise-chain cycle")):(e=G(n))?f(e,n,a,s):a(n)):s(i)}catch(t){l&&!o&&l.exit(),s(t)}},Y=function(t,r){t.notified||(t.notified=!0,w(function(){for(var n,e=t.reactions;n=e.get();)K(n,t);t.notified=!1,r&&!t.rejection&&J(t)}))},X=function(t,r,n){var e,o;H?((e=_.createEvent("Event")).promise=r,e.reason=n,e.initEvent(t,!1,!0),c.dispatchEvent(e)):e={promise:r,reason:n},!C&&(o=c["on"+t])?o(e):t===W&&S("Unhandled promise rejection",n)},J=function(t){f(b,c,function(){var r,n=t.facade,e=t.value;if(q(t)&&(r=O(function(){u?$.emit("unhandledRejection",e,n):X(W,n,e)}),t.rejection=u||q(t)?2:1,r.error))throw r.value})},q=function(t){return 1!==t.rejection&&!t.parent},Q=function(t){f(b,c,function(){var r=t.facade;u?$.emit("rejectionHandled",r):X("rejectionhandled",r,t.value)})},Z=function(t,r,n){return function(e){t(r,e,n)}},tt=function(t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,Y(t,!0))},rt=function(t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===r)throw new V("Promise can't be resolved itself");var e=G(r);e?w(function(){var n={done:!1};try{f(e,r,Z(rt,n,t),Z(tt,n,t))}catch(r){tt(n,r,t)}}):(t.value=r,t.state=1,Y(t,!1))}catch(r){tt({done:!1},r,t)}}};if(A&&(D=(z=function(r){g(this,D),p(r),f(t,this);var n=R(this);try{r(Z(rt,n),Z(tt,n))}catch(t){tt(n,t)}}).prototype,(t=function(t){k(this,{type:M,done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:0,value:null})}).prototype=s(D,"then",function(t,r){var n=R(this),e=B(m(this,z));return n.parent=!0,e.ok=!h(t)||t,e.fail=h(r)&&r,e.domain=u?$.domain:void 0,0===n.state?n.reactions.add(e):w(function(){K(e,n)}),e.promise}),r=function(){var r=new t,n=R(r);this.promise=r,this.resolve=Z(rt,n),this.reject=Z(tt,n)},I.f=B=function(t){return t===z||t===n?new r(t):U(t)},!i&&h(j)&&L!==Object.prototype)){e=L.then,N||s(L,"then",function(t,r){var n=this;return new z(function(t,r){f(e,n,t,r)}).then(t,r)},{unsafe:!0});try{delete L.constructor}catch(t){}l&&l(L,D)}return o({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:z}),n=a.Promise,v(z,M,!1,!0),d(M),Ru}var uc,cc,ac,fc,sc,lc,vc,dc,pc,hc,yc,gc,mc,bc,wc,Sc,Oc,Ec={};function xc(){return cc?uc:(cc=1,uc={})}function jc(){if(fc)return ac;fc=1;var t=jr(),r=xc(),n=t("iterator"),e=Array.prototype;return ac=function(t){return void 0!==t&&(r.Array===t||e[n]===t)}}function Pc(){if(lc)return sc;lc=1;var t=je(),r=Gt(),n=Nt(),e=xc(),o=jr()("iterator");return sc=function(i){if(!n(i))return r(i,o)||r(i,"@@iterator")||e[t(i)]}}function Tc(){if(dc)return vc;dc=1;var t=F(),r=Wt(),n=_r(),e=Ht(),o=Pc(),i=TypeError;return vc=function(u,c){var a=arguments.length<2?o(u):c;if(r(a))return n(t(a,u));throw new i(e(u)+" is not iterable")},vc}function Ic(){if(hc)return pc;hc=1;var t=F(),r=_r(),n=Gt();return pc=function(e,o,i){var u,c;r(e);try{if(!(u=n(e,"return"))){if("throw"===o)throw i;return i}u=t(u,e)}catch(t){c=!0,u=t}if("throw"===o)throw i;if(c)throw u;return r(u),i}}function Mc(){if(gc)return yc;gc=1;var t=uo(),r=F(),n=_r(),e=Ht(),o=jc(),i=Ln(),u=Vt(),c=Tc(),a=Pc(),f=Ic(),s=TypeError,l=function(t,r){this.stopped=t,this.result=r},v=l.prototype;return yc=function(d,p,h){var y,g,m,b,w,S,O,E=h&&h.that,x=!(!h||!h.AS_ENTRIES),j=!(!h||!h.IS_RECORD),P=!(!h||!h.IS_ITERATOR),T=!(!h||!h.INTERRUPTED),I=t(p,E),M=function(t){var r=y;return y=void 0,r&&f(r,"normal"),new l(!0,t)},A=function(t){return x?(n(t),T?I(t[0],t[1],M):I(t[0],t[1])):T?I(t,M):I(t)};if(j)y=d.iterator;else if(P)y=d;else{if(!(g=a(d)))throw new s(e(d)+" is not iterable");if(o(g)){for(m=0,b=i(d);b>m;m++)if((w=A(d[m]))&&u(v,w))return w;return new l(!1)}y=c(d,g)}for(S=j?d.next:y.next;!(O=r(S,y)).done;){var C=O.value;try{w=A(C)}catch(t){if(!y)throw t;f(y,"throw",t)}if("object"==typeof w&&w&&u(v,w))return w}return new l(!1)}}function Ac(){if(bc)return mc;bc=1;var t=jr()("iterator"),r=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){r=!0}};e[t]=function(){return this},Array.from(e,function(){throw 2})}catch(t){}return mc=function(n,e){try{if(!e&&!r)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},n(i)}catch(t){}return o}}function Cc(){if(Sc)return wc;Sc=1;var t=Zu(),r=Ac(),n=tc().CONSTRUCTOR;return wc=n||!r(function(r){t.all(r).then(void 0,function(){})})}var Nc,Rc={};var kc,Lc={};var zc,Dc={};var Vc,Fc,_c,$c,Bc={};function Uc(){if(Fc)return Vc;Fc=1;var t=_r(),r=zt(),n=oc();return Vc=function(e,o){if(t(e),r(o)&&o.constructor===e)return o;var i=n.f(e);return(0,i.resolve)(o),i.promise}}function Hc(t,r){return Ho(this,arguments,void 0,function(t,r,e,o,i){var u,c,a,f,s,l,v;return void 0===e&&(e=""),void 0===o&&(o=""),void 0===i&&(i=""),Wo(this,function(d){switch(d.label){case 0:return r?(t.restoreSelection(),u=t.getMenuConfig("insertVideo"),c=u.onInsertedVideo,a=u.checkVideo,f=u.parseVideoSrc,[4,a(r,e)]):[2];case 1:return"string"==typeof(s=d.sent())?(t.alert(s,"error"),[2]):null==s?[2]:[4,f(r)];case 2:return 0!==(l=d.sent()).trim().indexOf("<iframe ")&&(l=l.replace(/</g,"&lt;").replace(/>/g,"&gt;")),v={type:"video",src:l,poster:e,children:[{text:""}],style:{width:o,height:i}},Promise.resolve().then(function(){n.isSelectedEmptyParagraph(t)&&y.removeNodes(t,{mode:"highest"}),y.insertNodes(t,v,{mode:"highest"})}),c(v),[2]}})})}function Wc(){return Ci("w-e-insert-video")}$c||($c=1,ic(),function(){if(Oc)return Ec;Oc=1;var t=be(),r=F(),n=Wt(),e=oc(),o=Qu(),i=Mc();t({target:"Promise",stat:!0,forced:Cc()},{all:function(t){var u=this,c=e.f(u),a=c.resolve,f=c.reject,s=o(function(){var e=n(u.resolve),o=[],c=0,s=1;i(t,function(t){var n=c++,i=!1;s++,r(e,u,t).then(function(t){i||(i=!0,o[n]=t,--s||a(o))},f)}),--s||a(o)});return s.error&&f(s.value),c.promise}})}(),function(){if(Nc)return Rc;Nc=1;var t=be(),r=mr(),n=tc().CONSTRUCTOR,e=Zu(),o=Dt(),i=Lt(),u=dn(),c=e&&e.prototype;if(t({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&i(e)){var a=o("Promise").prototype.catch;c.catch!==a&&u(c,"catch",a,{unsafe:!0})}}(),function(){if(kc)return Lc;kc=1;var t=be(),r=F(),n=Wt(),e=oc(),o=Qu(),i=Mc();t({target:"Promise",stat:!0,forced:Cc()},{race:function(t){var u=this,c=e.f(u),a=c.reject,f=o(function(){var e=n(u.resolve);i(t,function(t){r(e,u,t).then(c.resolve,a)})});return f.error&&a(f.value),c.promise}})}(),function(){if(zc)return Dc;zc=1;var t=be(),r=oc();t({target:"Promise",stat:!0,forced:tc().CONSTRUCTOR},{reject:function(t){var n=r.f(this);return(0,n.reject)(t),n.promise}})}(),function(){if(_c)return Bc;_c=1;var t=be(),r=Dt(),n=mr(),e=Zu(),o=tc().CONSTRUCTOR,i=Uc(),u=r("Promise"),c=n&&!o;t({target:"Promise",stat:!0,forced:n||o},{resolve:function(t){return i(c&&this===u?e:this,t)}})}());var Gc,Kc,Yc,Xc,Jc,qc,Qc,Zc,ta,ra,na,ea,oa,ia,ua,ca=function(){function t(){this.title=r("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=Wc(),this.posterInputId=Wc(),this.buttonId=Wc()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,r){},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!g.isCollapsed(r)||!!n.getSelectedElems(t).some(function(r){var e=n.getNodeType(r);return"pre"===e||("list-item"===e||!!t.isVoid(r))}))},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var n=this,i=this,c=i.srcInputId,a=i.posterInputId,f=i.buttonId,s=Ko(e(r("videoModule.videoSrc"),c,r("videoModule.videoSrcPlaceHolder")),2),l=s[0],v=s[1],d=Ko(e(r("videoModule.videoPoster"),a,r("videoModule.videoPosterPlaceHolder")),2),p=d[0],h=d[1],y=u(v),g=u(h),m=Ko(o(f,r("videoModule.ok")),1)[0];if(null==this.$content){var b=u("<div></div>");b.on("click","#".concat(f),function(r){return Ho(n,void 0,void 0,function(){var n,e;return Wo(this,function(o){switch(o.label){case 0:return r.preventDefault(),n=b.find("#".concat(c)).val().trim(),e=b.find("#".concat(a)).val().trim(),[4,Hc(t,n,e)];case 1:return o.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=b}var w=this.$content;return w.empty(),w.append(l),w.append(p),w.append(m),y.val(""),g.val(""),setTimeout(function(){y.focus()}),w[0]},t}(),aa={};function fa(){if(Jc)return Xc;Jc=1;var t=Er(),r=Lt(),n=Or(),e=fn(),o=function(){if(Yc)return Kc;Yc=1;var t=z();return Kc=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=e("IE_PROTO"),u=Object,c=u.prototype;return Xc=o?u.getPrototypeOf:function(e){var o=n(e);if(t(o,i))return o[i];var a=o.constructor;return r(a)&&o instanceof a?a.prototype:o instanceof u?c:null}}function sa(){if(Qc)return qc;Qc=1;var t,r,n,e=z(),o=Lt(),i=zt(),u=Oo(),c=fa(),a=dn(),f=jr(),s=mr(),l=f("iterator"),v=!1;return[].keys&&("next"in(n=[].keys())?(r=c(c(n)))!==Object.prototype&&(t=r):v=!0),!i(t)||e(function(){var r={};return t[l].call(r)!==r})?t={}:s&&(t=u(t)),o(t[l])||a(t,l,function(){return this}),qc={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:v}}function la(){if(na)return ra;na=1;var t=be(),r=F(),n=mr(),e=un(),o=Lt(),i=function(){if(ta)return Zc;ta=1;var t=sa().IteratorPrototype,r=Oo(),n=It(),e=Fu(),o=xc(),i=function(){return this};return Zc=function(u,c,a,f){var s=c+" Iterator";return u.prototype=r(t,{next:n(+!f,a)}),e(u,s,!1,!0),o[s]=i,u}}(),u=fa(),c=Vu(),a=Fu(),f=Br(),s=dn(),l=jr(),v=xc(),d=sa(),p=e.PROPER,h=e.CONFIGURABLE,y=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,m=l("iterator"),b="keys",w="values",S="entries",O=function(){return this};return ra=function(e,l,d,E,x,j,P){i(d,l,E);var T,I,M,A=function(t){if(t===x&&L)return L;if(!g&&t&&t in R)return R[t];switch(t){case b:case w:case S:return function(){return new d(this,t)}}return function(){return new d(this)}},C=l+" Iterator",N=!1,R=e.prototype,k=R[m]||R["@@iterator"]||x&&R[x],L=!g&&k||A(x),z="Array"===l&&R.entries||k;if(z&&(T=u(z.call(new e)))!==Object.prototype&&T.next&&(n||u(T)===y||(c?c(T,y):o(T[m])||s(T,m,O)),a(T,C,!0,!0),n&&(v[C]=O)),p&&x===w&&k&&k.name!==w&&(!n&&h?f(R,"name",w):(N=!0,L=function(){return r(k,this)})),x)if(I={values:A(w),keys:j?L:A(b),entries:A(S)},P)for(M in I)(g||N||!(M in R))&&s(R,M,I[M]);else t({target:l,proto:!0,forced:g||N},I);return n&&!P||R[m]===L||s(R,m,L,{name:x}),v[l]=L,I}}function va(){return oa?ea:(oa=1,ea=function(t,r){return{value:t,done:r}})}function da(){if(ua)return ia;ua=1;var t=kt(),r=Eo(),n=xc(),e=ln(),o=$r().f,i=la(),u=va(),c=mr(),a=D(),f="Array Iterator",s=e.set,l=e.getterFor(f);ia=i(Array,"Array",function(r,n){s(this,{type:f,target:t(r),index:0,kind:n})},function(){var t=l(this),r=t.target,n=t.index++;if(!r||n>=r.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(n,!1);case"values":return u(r[n],!1)}return u([n,r[n]],!1)},"values");var v=n.Arguments=n.Array;if(r("keys"),r("values"),r("entries"),!c&&a&&"values"!==v.name)try{o(v,"name",{value:"values"})}catch(t){}return ia}!function(){if(Gc)return aa;Gc=1;var t=be(),r=Mt(),n=Ct(),e=kt(),o=Ai(),i=r([].join);t({target:"Array",proto:!0,forced:n!==Object||!o("join",",")},{join:function(t){return i(e(this),void 0===t?",":t)}})}(),da();var pa,ha={};!function(){if(pa)return ha;pa=1;var t=be(),r=co().map;t({target:"Array",proto:!0,forced:!Me()("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}();var ya,ga={};!function(){if(ya)return ga;ya=1;var t=be(),r=we(),n=Pe(),e=zt(),o=Rn(),i=Ln(),u=kt(),c=Oe(),a=Ee(),f=jr(),s=Me(),l=Hu(),v=s("slice"),d=f("species"),p=Array,h=Math.max;t({target:"Array",proto:!0,forced:!v},{slice:function(t,f){var s,v,y,g=u(this),m=i(g),b=o(t,m),w=o(void 0===f?m:f,m);if(r(g)&&(s=g.constructor,(n(s)&&(s===p||r(s.prototype))||e(s)&&null===(s=s[d]))&&(s=void 0),s===p||void 0===s))return l(g,b,w);for(v=new(void 0===s?p:s)(h(w-b,0)),y=0;b<w;b++,y++)b in g&&c(v,y,g[b]);return a(v,y),v}})}();var ma,ba={};!function(){if(ma)return ba;ma=1;var t=pi().charAt,r=_e(),n=ln(),e=la(),o=va(),i="String Iterator",u=n.set,c=n.getterFor(i);e(String,"String",function(t){u(this,{type:i,string:r(t),index:0})},function(){var r,n=c(this),e=n.string,i=n.index;return i>=e.length?o(void 0,!0):(r=t(e,i),n.index+=r.length,o(r,!1))})}();var wa,Sa,Oa,Ea,xa={};function ja(){if(Sa)return wa;Sa=1;var t=z();return wa=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function Pa(){if(Ea)return Oa;Ea=1;var t=dn();return Oa=function(r,n,e){for(var o in n)t(r,o,n[o],e);return r}}var Ta,Ia,Ma,Aa,Ca,Na,Ra,ka,La,za,Da,Va,Fa,_a,$a={exports:{}},Ba={};function Ua(){if(Ta)return Ba;Ta=1;var t=At(),r=kt(),n=Vn().f,e=Hu(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Ba.f=function(i){return o&&"Window"===t(i)?function(t){try{return n(t)}catch(t){return e(o)}}(i):n(r(i))},Ba}function Ha(){if(Ca)return Aa;Ca=1;var t=z(),r=zt(),n=At(),e=function(){if(Ma)return Ia;Ma=1;var t=z();return Ia=t(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})}(),o=Object.isExtensible,i=t(function(){});return Aa=i||e?function(t){return!!r(t)&&((!e||"ArrayBuffer"!==n(t))&&(!o||o(t)))}:o}function Wa(){if(Na)return $a.exports;Na=1;var t=be(),r=Mt(),n=sn(),e=zt(),o=Er(),i=$r().f,u=Vn(),c=Ua(),a=Ha(),f=xr(),s=ja(),l=!1,v=f("meta"),d=0,p=function(t){i(t,v,{value:{objectID:"O"+d++,weakData:{}}})},h=$a.exports={enable:function(){h.enable=function(){},l=!0;var n=u.f,e=r([].splice),o={};o[v]=1,n(o).length&&(u.f=function(t){for(var r=n(t),o=0,i=r.length;o<i;o++)if(r[o]===v){e(r,o,1);break}return r},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(t,r){if(!e(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,v)){if(!a(t))return"F";if(!r)return"E";p(t)}return t[v].objectID},getWeakData:function(t,r){if(!o(t,v)){if(!a(t))return!0;if(!r)return!1;p(t)}return t[v].weakData},onFreeze:function(t){return s&&l&&a(t)&&!o(t,v)&&p(t),t}};return n[v]=!0,$a.exports}function Ga(){if(ka)return Ra;ka=1;var t=Lt(),r=zt(),n=Vu();return Ra=function(e,o,i){var u,c;return n&&t(u=o.constructor)&&u!==i&&r(c=u.prototype)&&c!==i.prototype&&n(e,c),e}}function Ka(){if(za)return La;za=1;var t=be(),r=P(),n=Mt(),e=me(),o=dn(),i=Wa(),u=Mc(),c=$u(),a=Lt(),f=Nt(),s=zt(),l=z(),v=Ac(),d=Fu(),p=Ga();return La=function(h,y,g){var m=-1!==h.indexOf("Map"),b=-1!==h.indexOf("Weak"),w=m?"set":"add",S=r[h],O=S&&S.prototype,E=S,x={},j=function(t){var r=n(O[t]);o(O,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!s(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return b&&!s(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!s(t))&&r(this,0===t?0:t)}:function(t,n){return r(this,0===t?0:t,n),this})};if(e(h,!a(S)||!(b||O.forEach&&!l(function(){(new S).entries().next()}))))E=g.getConstructor(y,h,m,w),i.enable();else if(e(h,!0)){var P=new E,T=P[w](b?{}:-0,1)!==P,I=l(function(){P.has(1)}),M=v(function(t){new S(t)}),A=!b&&l(function(){for(var t=new S,r=5;r--;)t[w](r,r);return!t.has(-0)});M||((E=y(function(t,r){c(t,O);var n=p(new S,t,E);return f(r)||u(r,n[w],{that:n,AS_ENTRIES:m}),n})).prototype=O,O.constructor=E),(I||A)&&(j("delete"),j("has"),m&&j("get")),(A||T)&&j(w),b&&O.clear&&delete O.clear}return x[h]=E,t({global:!0,constructor:!0,forced:E!==S},x),d(E,h),b||g.setStrong(E,h,m),E}}function Ya(){if(Va)return Da;Va=1;var t=Mt(),r=Pa(),n=Wa().getWeakData,e=$u(),o=_r(),i=Nt(),u=zt(),c=Mc(),a=co(),f=Er(),s=ln(),l=s.set,v=s.getterFor,d=a.find,p=a.findIndex,h=t([].splice),y=0,g=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,r){return d(t.entries,function(t){return t[0]===r})};return m.prototype={get:function(t){var r=b(this,t);if(r)return r[1]},has:function(t){return!!b(this,t)},set:function(t,r){var n=b(this,t);n?n[1]=r:this.entries.push([t,r])},delete:function(t){var r=p(this.entries,function(r){return r[0]===t});return~r&&h(this.entries,r,1),!!~r}},Da={getConstructor:function(t,a,s,d){var p=t(function(t,r){e(t,h),l(t,{type:a,id:y++,frozen:null}),i(r)||c(r,t[d],{that:t,AS_ENTRIES:s})}),h=p.prototype,m=v(a),b=function(t,r,e){var i=m(t),u=n(o(r),!0);return!0===u?g(i).set(r,e):u[i.id]=e,t};return r(h,{delete:function(t){var r=m(this);if(!u(t))return!1;var e=n(t);return!0===e?g(r).delete(t):e&&f(e,r.id)&&delete e[r.id]},has:function(t){var r=m(this);if(!u(t))return!1;var e=n(t);return!0===e?g(r).has(t):e&&f(e,r.id)}}),r(h,s?{get:function(t){var r=m(this);if(u(t)){var e=n(t);if(!0===e)return g(r).get(t);if(e)return e[r.id]}},set:function(t,r){return b(this,t,r)}}:{add:function(t){return b(this,t,!0)}}),p}}}_a||(_a=1,function(){if(Fa)return xa;Fa=1;var t,r=ja(),n=P(),e=Mt(),o=Pa(),i=Wa(),u=Ka(),c=Ya(),a=zt(),f=ln().enforce,s=z(),l=an(),v=Object,d=Array.isArray,p=v.isExtensible,h=v.isFrozen,y=v.isSealed,g=v.freeze,m=v.seal,b=!n.ActiveXObject&&"ActiveXObject"in n,w=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},S=u("WeakMap",w,c),O=S.prototype,E=e(O.set);if(l)if(b){t=c.getConstructor(w,"WeakMap",!0),i.enable();var x=e(O.delete),j=e(O.has),T=e(O.get);o(O,{delete:function(r){if(a(r)&&!p(r)){var n=f(this);return n.frozen||(n.frozen=new t),x(this,r)||n.frozen.delete(r)}return x(this,r)},has:function(r){if(a(r)&&!p(r)){var n=f(this);return n.frozen||(n.frozen=new t),j(this,r)||n.frozen.has(r)}return j(this,r)},get:function(r){if(a(r)&&!p(r)){var n=f(this);return n.frozen||(n.frozen=new t),j(this,r)?T(this,r):n.frozen.get(r)}return T(this,r)},set:function(r,n){if(a(r)&&!p(r)){var e=f(this);e.frozen||(e.frozen=new t),j(this,r)?E(this,r,n):e.frozen.set(r,n)}else E(this,r,n);return this}})}else r&&s(function(){var t=g([]);return E(new S,t,1),!h(t)})&&o(O,{set:function(t,r){var n;return d(t)&&(h(t)?n=g:y(t)&&(n=m)),E(this,t,r),n&&n(t),this}})}());var Xa,Ja={};function qa(t){return t.getMenuConfig("uploadVideo")}!function(){if(Xa)return Ja;Xa=1;var t=P(),r=Ii(),n=Mi(),e=da(),o=Br(),i=Fu(),u=jr()("iterator"),c=e.values,a=function(t,n){if(t){if(t[u]!==c)try{o(t,u,c)}catch(r){t[u]=c}if(i(t,n,!0),r[n])for(var a in e)if(t[a]!==e[a])try{o(t,a,e[a])}catch(r){t[a]=e[a]}}};for(var f in r)a(t[f]&&t[f].prototype,f);a(n,"DOMTokenList")}();var Qa=new WeakMap;function Za(t,r){return Ho(this,void 0,void 0,function(){var n,e;return Wo(this,function(o){switch(o.label){case 0:return n=function(t){var r=Qa.get(t);if(null!=r)return r;var n=qa(t),e=n.onSuccess,o=n.onProgress,u=n.onFailed,c=n.customInsert,a=n.onError;return r=i(Uo(Uo({},n),{onProgress:function(r){t.showProgressBar(r),o&&o(r)},onSuccess:function(r,n){if(c)return c(n,function(r,n){return Hc(t,r,n)}),void e(r,n);var o=n.errno,i=void 0===o?1:o,a=n.data,f=void 0===a?{}:a;if(0===i){var s=f.url,l=void 0===s?"":s,v=f.poster;Hc(t,l,void 0===v?"":v),e(r,n)}else u(r,n)},onError:function(t,r,n){a(t,r,n)}})),Qa.set(t,r),r}(t),e=r.map(function(t){return{name:t.name,type:t.type,size:t.size,data:t}}),n.addFiles(e),[4,n.upload()];case 1:return o.sent(),[2]}})})}var tf=function(){function t(){this.title=r("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,r){var n=this.getMenuConfig(t),e=n.allowedFileTypes,o=void 0===e?[]:e,i=n.customBrowseAndUpload;if(i)i(function(r,n){return Hc(t,r,n)});else{var c="";o.length>0&&(c='accept="'.concat(o.join(", "),'"'));var a=u("body"),f=u('<input type="file" '.concat(c," multiple/>"));f.hide(),a.append(f),f.click(),f.on("change",function(){var r=f[0].files;!function(t,r){Ho(this,void 0,void 0,function(){var n,e,o,i,u,c,a,f,s,l,v,d;return Wo(this,function(p){switch(p.label){case 0:if(null==r)return[2];n=Array.prototype.slice.call(r),e=[],o=qa(t).customUpload,p.label=1;case 1:p.trys.push([1,8,9,14]),i=!0,u=Yo(n),p.label=2;case 2:return[4,u.next()];case 3:return c=p.sent(),(s=c.done)?[3,7]:(d=c.value,i=!1,a=d,o?[4,o(a,function(r,n){return Hc(t,r,n)},t)]:[3,5]);case 4:return p.sent(),[3,6];case 5:e.push(a),p.label=6;case 6:return i=!0,[3,2];case 7:return[3,14];case 8:return f=p.sent(),l={error:f},[3,14];case 9:return p.trys.push([9,,12,13]),i||s||!(v=u.return)?[3,11]:[4,v.call(u)];case 10:p.sent(),p.label=11;case 11:return[3,13];case 12:if(l)throw l.error;return[7];case 13:return[7];case 14:return e.length>0?[4,Za(t,e)]:[3,16];case 15:p.sent(),p.label=16;case 16:return[2]}})})}(t,r)})}},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!g.isCollapsed(r)||!!n.getSelectedElems(t).some(function(r){var e=n.getNodeType(r);return"pre"===e||("list-item"===e||!!t.isVoid(r))}))},t.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},t}(),rf={key:"insertVideo",factory:function(){return new ca},config:{onInsertedVideo:function(t){},checkVideo:function(t,r){return!0},parseVideoSrc:function(t){return t}}},nf={key:"uploadVideo",factory:function(){return new tf},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,r){},onFailed:function(t,r){console.error("'".concat(t.name,"' upload failed"),r)},onError:function(t,r,n){console.error("'".concat(t.name," upload error"),r,n)}}},ef={key:"editVideoSize",factory:function(){return new ki}},of={key:"editVideoSrc",factory:function(){return new Nu}};function uf(t,r,n,e,o,i){return void 0===r&&(r=""),void 0===n&&(n="auto"),void 0===e&&(e="auto"),void 0===o&&(o={}),void 0===i&&(i="center"),{type:"video",src:t,poster:r,width:n,height:e,style:o,children:[{text:""}],textAlign:i}}var cf,af,ff,sf,lf,vf,df,pf,hf={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,r,n){var e=u(t),o="",i="",c="auto",a="auto",f={},s=e.find("iframe");if(s.length>0)return c=s.attr("width")||"auto",a=s.attr("height")||"auto",f=Ni(f=s.attr("style")||""),uf(o=s[0].outerHTML,i,c,a,f,Ni(e.attr("style")||"")["text-align"]||"center");var l=e.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),c=l.attr("width")||"auto",a=l.attr("height")||"auto",uf(o,i=l.attr("poster")||"",c,a,f=Ni(f=l.attr("style")||""),Ni(e.attr("style")||"")["text-align"]||"center")}};function yf(){return af?cf:(af=1,cf=function(t){try{return!!t()}catch(t){return!0}})}function gf(){return sf?ff:(sf=1,ff=!yf()(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function mf(){if(vf)return lf;vf=1;var t=gf(),r=Function.prototype,n=r.call,e=t&&r.bind.bind(n,n);return lf=t?e:function(t){return function(){return n.apply(t,arguments)}},lf}function bf(){return pf?df:(pf=1,df=mf()({}.isPrototypeOf))}var wf,Sf,Of,Ef,xf,jf,Pf,Tf,If,Mf,Af={};function Cf(){if(Sf)return wf;Sf=1;var t=function(t){return t&&t.Math===Math&&t};return wf=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof S&&S)||t("object"==typeof wf&&wf)||function(){return this}()||Function("return this")()}function Nf(){if(Ef)return Of;Ef=1;var t=gf(),r=Function.prototype,n=r.apply,e=r.call;return Of="object"==typeof Reflect&&Reflect.apply||(t?e.bind(n):function(){return e.apply(n,arguments)}),Of}function Rf(){if(jf)return xf;jf=1;var t=mf(),r=t({}.toString),n=t("".slice);return xf=function(t){return n(r(t),8,-1)}}function kf(){if(Tf)return Pf;Tf=1;var t=Rf(),r=mf();return Pf=function(n){if("Function"===t(n))return r(n)}}function Lf(){if(Mf)return If;Mf=1;var t="object"==typeof document&&document.all;return If=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}var zf,Df,Vf,Ff,_f={};function $f(){return Df?zf:(Df=1,zf=!yf()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function Bf(){if(Ff)return Vf;Ff=1;var t=gf(),r=Function.prototype.call;return Vf=t?r.bind(r):function(){return r.apply(r,arguments)},Vf}var Uf,Hf,Wf,Gf,Kf,Yf,Xf,Jf,qf,Qf,Zf,ts,rs,ns,es,os,is,us,cs,as,fs,ss,ls,vs,ds,ps,hs,ys,gs,ms,bs,ws,Ss,Os,Es,xs={};function js(){if(Uf)return xs;Uf=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);return xs.f=n?function(t){var n=r(this,t);return!!n&&n.enumerable}:t,xs}function Ps(){return Wf?Hf:(Wf=1,Hf=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function Ts(){if(Kf)return Gf;Kf=1;var t=mf(),r=yf(),n=Rf(),e=Object,o=t("".split);return Gf=r(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):e(t)}:e}function Is(){return Xf?Yf:(Xf=1,Yf=function(t){return null==t})}function Ms(){if(qf)return Jf;qf=1;var t=Is(),r=TypeError;return Jf=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}function As(){if(Zf)return Qf;Zf=1;var t=Ts(),r=Ms();return Qf=function(n){return t(r(n))}}function Cs(){if(rs)return ts;rs=1;var t=Lf();return ts=function(r){return"object"==typeof r?null!==r:t(r)}}function Ns(){return es?ns:(es=1,ns={})}function Rs(){if(is)return os;is=1;var t=Ns(),r=Cf(),n=Lf(),e=function(t){return n(t)?t:void 0};return os=function(n,o){return arguments.length<2?e(t[n])||e(r[n]):t[n]&&t[n][o]||r[n]&&r[n][o]},os}function ks(){if(cs)return us;cs=1;var t=Cf().navigator,r=t&&t.userAgent;return us=r?String(r):""}function Ls(){if(fs)return as;fs=1;var t,r,n=Cf(),e=ks(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,c=u&&u.v8;return c&&(r=(t=c.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]),as=r}function zs(){if(ls)return ss;ls=1;var t=Ls(),r=yf(),n=Cf().String;return ss=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!n(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function Ds(){return ds?vs:(ds=1,vs=zs()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Vs(){if(hs)return ps;hs=1;var t=Rs(),r=Lf(),n=bf(),e=Object;return ps=Ds()?function(t){return"symbol"==typeof t}:function(o){var i=t("Symbol");return r(i)&&n(i.prototype,e(o))}}function Fs(){if(gs)return ys;gs=1;var t=String;return ys=function(r){try{return t(r)}catch(t){return"Object"}}}function _s(){if(bs)return ms;bs=1;var t=Lf(),r=Fs(),n=TypeError;return ms=function(e){if(t(e))return e;throw new n(r(e)+" is not a function")}}function $s(){if(Ss)return ws;Ss=1;var t=_s(),r=Is();return ws=function(n,e){var o=n[e];return r(o)?void 0:t(o)}}function Bs(){if(Es)return Os;Es=1;var t=Bf(),r=Lf(),n=Cs(),e=TypeError;return Os=function(o,i){var u,c;if("string"===i&&r(u=o.toString)&&!n(c=t(u,o)))return c;if(r(u=o.valueOf)&&!n(c=t(u,o)))return c;if("string"!==i&&r(u=o.toString)&&!n(c=t(u,o)))return c;throw new e("Can't convert object to primitive value")},Os}var Us,Hs,Ws,Gs,Ks,Ys,Xs,Js,qs,Qs,Zs,tl,rl,nl,el,ol,il,ul,cl,al,fl,sl,ll,vl,dl,pl,hl,yl,gl={exports:{}};function ml(){return Hs?Us:(Hs=1,Us=!0)}function bl(){if(Gs)return Ws;Gs=1;var t=Cf(),r=Object.defineProperty;return Ws=function(n,e){try{r(t,n,{value:e,configurable:!0,writable:!0})}catch(r){t[n]=e}return e}}function wl(){if(Ks)return gl.exports;Ks=1;var t=ml(),r=Cf(),n=bl(),e="__core-js_shared__",o=gl.exports=r[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.49.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),gl.exports}function Sl(){if(Xs)return Ys;Xs=1;var t=wl();return Ys=function(r,n){return t[r]||(t[r]=n||{})}}function Ol(){if(qs)return Js;qs=1;var t=Ms(),r=Object;return Js=function(n){return r(t(n))}}function El(){if(Zs)return Qs;Zs=1;var t=mf(),r=Ol(),n=t({}.hasOwnProperty);return Qs=Object.hasOwn||function(t,e){return n(r(t),e)}}function xl(){if(rl)return tl;rl=1;var t=mf(),r=0,n=Math.random(),e=t(1.1.toString);return tl=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++r+n,36)}}function jl(){if(el)return nl;el=1;var t=Cf(),r=Sl(),n=El(),e=xl(),o=zs(),i=Ds(),u=t.Symbol,c=r("wks"),a=i?u.for||u:u&&u.withoutSetter||e;return nl=function(t){return n(c,t)||(c[t]=o&&n(u,t)?u[t]:a("Symbol."+t)),c[t]}}function Pl(){if(il)return ol;il=1;var t=Bf(),r=Cs(),n=Vs(),e=$s(),o=Bs(),i=TypeError,u=jl()("toPrimitive");return ol=function(c,a){if(!r(c)||n(c))return c;var f,s=e(c,u);if(s){if(void 0===a&&(a="default"),f=t(s,c,a),!r(f)||n(f))return f;throw new i("Can't convert object to primitive value")}return void 0===a&&(a="number"),o(c,a)}}function Tl(){if(cl)return ul;cl=1;var t=Pl(),r=Vs();return ul=function(n){var e=t(n,"string");return r(e)?e:e+""}}function Il(){if(fl)return al;fl=1;var t=Cf(),r=Cs(),n=t.document,e=r(n)&&r(n.createElement);return al=function(t){return e?n.createElement(t):{}}}function Ml(){if(ll)return sl;ll=1;var t=$f(),r=yf(),n=Il();return sl=!t&&!r(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Al(){if(vl)return _f;vl=1;var t=$f(),r=Bf(),n=js(),e=Ps(),o=As(),i=Tl(),u=El(),c=Ml(),a=Object.getOwnPropertyDescriptor;return _f.f=t?a:function(t,f){if(t=o(t),f=i(f),c)try{return a(t,f)}catch(t){}if(u(t,f))return e(!r(n.f,t,f),t[f])},_f}function Cl(){if(pl)return dl;pl=1;var t=yf(),r=Lf(),n=/#|\.prototype\./,e=function(n,e){var a=i[o(n)];return a===c||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",c=e.POLYFILL="P";return dl=e}function Nl(){if(yl)return hl;yl=1;var t=kf(),r=_s(),n=gf(),e=t(t.bind);return hl=function(t,o){return r(t),void 0===o?t:n?e(t,o):function(){return t.apply(o,arguments)}},hl}var Rl,kl,Ll,zl,Dl,Vl,Fl,_l,$l,Bl,Ul,Hl,Wl,Gl,Kl,Yl,Xl,Jl,ql,Ql,Zl,tv,rv,nv,ev,ov,iv,uv,cv={};function av(){return kl?Rl:(kl=1,Rl=$f()&&yf()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function fv(){if(zl)return Ll;zl=1;var t=Cs(),r=String,n=TypeError;return Ll=function(e){if(t(e))return e;throw new n(r(e)+" is not an object")}}function sv(){if(Dl)return cv;Dl=1;var t=$f(),r=Ml(),n=av(),e=fv(),o=Tl(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,a="enumerable",f="configurable",s="writable";return cv.f=t?n?function(t,r,n){if(e(t),r=o(r),e(n),"function"==typeof t&&"prototype"===r&&"value"in n&&s in n&&!n[s]){var i=c(t,r);i&&i[s]&&(t[r]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:a in n?n[a]:i[a],writable:!1})}return u(t,r,n)}:u:function(t,n,c){if(e(t),n=o(n),e(c),r)try{return u(t,n,c)}catch(t){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(t[n]=c.value),t},cv}function lv(){if(Fl)return Vl;Fl=1;var t=$f(),r=sv(),n=Ps();return Vl=t?function(t,e,o){return r.f(t,e,n(1,o))}:function(t,r,n){return t[r]=n,t}}function vv(){if($l)return _l;$l=1;var t=Cf(),r=Nf(),n=kf(),e=Lf(),o=Al().f,i=Cl(),u=Ns(),c=Nl(),a=lv(),f=El(),s=function(t){var n=function(e,o,i){if(this instanceof n){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,o)}return new t(e,o,i)}return r(t,this,arguments)};return n.prototype=t.prototype,n};return _l=function(r,l){var v,d,p,h,y,g,m,b,w,S=r.target,O=r.global,E=r.stat,x=r.proto,j=O?t:E?t[S]:t[S]&&t[S].prototype,P=O?u:u[S]||a(u,S,{})[S],T=P.prototype;for(h in l)d=!(v=i(O?h:S+(E?".":"#")+h,r.forced))&&j&&f(j,h),g=P[h],d&&(m=r.dontCallGetSet?(w=o(j,h))&&w.value:j[h]),y=d&&m?m:l[h],(v||x||typeof g!=typeof y)&&(b=r.bind&&d?c(y,t):r.wrap&&d?s(y):x&&e(y)?n(y):y,(r.sham||y&&y.sham||g&&g.sham)&&a(b,"sham",!0),a(P,h,b),x&&(f(u,p=S+"Prototype")||a(u,p,{}),a(u[p],h,y),r.real&&T&&(v||!T[h])&&a(T,h,y)))}}function dv(){if(Ul)return Bl;Ul=1;var t=Math.ceil,r=Math.floor;return Bl=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}}function pv(){if(Wl)return Hl;Wl=1;var t=dv();return Hl=function(r){var n=+r;return n!=n||0===n?0:t(n)}}function hv(){if(Kl)return Gl;Kl=1;var t=pv(),r=Math.max,n=Math.min;return Gl=function(e,o){var i=t(e);return i<0?r(i+o,0):n(i,o)}}function yv(){if(Xl)return Yl;Xl=1;var t=pv(),r=Math.min;return Yl=function(n){var e=t(n);return e>0?r(e,9007199254740991):0}}function gv(){if(ql)return Jl;ql=1;var t=yv();return Jl=function(r){return t(r.length)}}function mv(){if(Zl)return Ql;Zl=1;var t=As(),r=hv(),n=gv(),e=function(e){return function(o,i,u){var c=t(o),a=n(c);if(0===a)return!e&&-1;var f,s=r(u,a);if(e&&i!=i){for(;a>s;)if((f=c[s++])!=f)return!0}else for(;a>s;s++)if((e||s in c)&&c[s]===i)return e||s||0;return!e&&-1}};return Ql={includes:e(!0),indexOf:e(!1)}}function bv(){return rv?tv:(rv=1,tv=function(){})}function wv(){if(ov)return ev;ov=1;var t=Cf(),r=Ns();return ev=function(n,e){var o=r[n+"Prototype"],i=o&&o[e];if(i)return i;var u=t[n],c=u&&u.prototype;return c&&c[e]}}function Sv(){return uv?iv:(uv=1,function(){if(nv)return Af;nv=1;var t=vv(),r=mv().includes,n=yf(),e=bv(),o=n(function(){return!Array(1).includes()}),i=n(function(){return[,1].includes(void 0,1)});t({target:"Array",proto:!0,forced:o||i},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),e("includes")}(),iv=wv()("Array","includes"))}var Ov,Ev,xv,jv,Pv,Tv,Iv,Mv,Av,Cv,Nv,Rv,kv,Lv,zv,Dv,Vv,Fv,_v,$v,Bv,Uv={};function Hv(){if(Ev)return Ov;Ev=1;var t=Cs(),r=Rf(),n=jl()("match");return Ov=function(e){var o;return t(e)&&(void 0!==(o=e[n])?!!o:"RegExp"===r(e))}}function Wv(){if(jv)return xv;jv=1;var t=Hv(),r=TypeError;return xv=function(n){if(t(n))throw new r("The method doesn't accept regular expressions");return n}}function Gv(){if(Tv)return Pv;Tv=1;var t={};return t[jl()("toStringTag")]="z",Pv="[object z]"===String(t)}function Kv(){if(Mv)return Iv;Mv=1;var t=Gv(),r=Lf(),n=Rf(),e=jl()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Iv=t?n:function(t){var u,c,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(c=function(t,r){try{return t[r]}catch(t){}}(u=o(t),e))?c:i?n(u):"Object"===(a=n(u))&&r(u.callee)?"Arguments":a}}function Yv(){if(Cv)return Av;Cv=1;var t=Kv(),r=String;return Av=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}}function Xv(){if(Rv)return Nv;Rv=1;var t=jl()("match");return Nv=function(r){var n=/./;try{"/./"[r](n)}catch(e){try{return n[t]=!1,"/./"[r](n)}catch(t){}}return!1}}function Jv(){return zv?Lv:(zv=1,function(){if(kv)return Uv;kv=1;var t=vv(),r=mf(),n=Wv(),e=Ms(),o=Yv(),i=Xv(),u=r("".indexOf);t({target:"String",proto:!0,forced:!i("includes")},{includes:function(t){return!!~u(o(e(this)),o(n(t)),arguments.length>1?arguments[1]:void 0)}})}(),Lv=wv()("String","includes"))}function qv(){if(Vv)return Dv;Vv=1;var t=bf(),r=Sv(),n=Jv(),e=Array.prototype,o=String.prototype;return Dv=function(i){var u=i.includes;return i===e||t(e,i)&&u===e.includes?r:"string"==typeof i||i===o||t(o,i)&&u===o.includes?n:u}}function Qv(){return _v?Fv:(_v=1,Fv=qv())}var Zv=O(Bv?$v:(Bv=1,$v=Qv()));var td={renderElems:[{type:"video",renderElem:function(t,r,e){var o,i=t,u=i.src,c=void 0===u?"":u,a=i.poster,f=void 0===a?"":a,s=i.key,l=void 0===s?"":s,v=i.width,d=void 0===v?"auto":v,p=i.height,h=void 0===p?"auto":p,y=i.style,g=void 0===y?{}:y,m=i.textAlign,S=void 0===m?"center":m,O=n.isNodeSelected(e,t);if(0===c.trim().indexOf("<iframe ")){var E=Ge(c,d,h,g);o=b("div",{className:"w-e-textarea-video-container","data-selected":O?"true":"",style:{textAlign:S},innerHTML:E})}else{var x=b("video",{key:l,poster:f,controls:!0,style:g},b("source",{src:c,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==d&&(x.data.width=d),"auto"!==h&&(x.data.height=h),o=b("div",{className:"w-e-textarea-video-container","data-selected":O?"true":"",style:{textAlign:S}},x)}return w("div",{props:{contentEditable:!1},on:{mousedown:function(t){return t.preventDefault()}}},o)}}],elemsToHtml:[Je],preParseHtml:[{selector:"iframe,video,p",preParseHtml:function(t){var r=u(t),n=r;if("p"===We(r)){var e=r.children();if(1===e.length){var o,i=e[0],c=i.tagName.toLowerCase();Zv(o=["iframe","video"]).call(o,c)&&(n=u(i))}}var a=We(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var f=u('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return f.append(n),f[0]}}],parseElemsHtml:[hf],menus:[rf,nf,ef,of],editorPlugin:function(t){var r=t.isVoid,e=t.normalizeNode,o=t;return o.isVoid=function(t){return"video"===t.type||r(t)},o.normalizeNode=function(t){var r=Ko(t,2),i=r[0],u=r[1];"video"===n.getNodeType(i)&&(n.isLastNode(o,i)&&y.insertNodes(o,n.genEmptyParagraph(),{at:[u[0]+1]}));return e([i,u])},o}};export{td as default};
1
+ import{i18nAddResources as t,t as r,DomEditor as e,genModalInputElems as n,genModalButtonElems as o,createUploader as i}from"@wangeditor-next/core";import u,{append as c,on as a,focus as f,attr as s,val as l,html as v,parent as d,hasClass as p,empty as h}from"dom7";import{Transforms as y,Range as g}from"slate";import{nanoid as m}from"nanoid";import{jsx as b,h as w}from"snabbdom";t("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",edit:"Edit video",width:"Width",height:"Height"}}),t("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var S,O,x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},E={};function I(){if(O)return S;O=1;var t=function(t){return t&&t.Math===Math&&t};return S=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof x&&x)||t("object"==typeof S&&S)||function(){return this}()||Function("return this")()}var P,j,T,M,A,N,R,C,k={};function L(){return j?P:(j=1,P=function(t){try{return!!t()}catch(t){return!0}})}function V(){if(M)return T;M=1;var t=L();return T=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function z(){if(N)return A;N=1;var t=L();return A=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function D(){if(C)return R;C=1;var t=z(),r=Function.prototype.call;return R=t?r.bind(r):function(){return r.apply(r,arguments)},R}var F,_,$,B,U,H,W,G,K,X,Y,q,J,Q,Z,tt,rt,et,nt,ot,it,ut,ct,at,ft,st,lt,vt,dt,pt,ht,yt,gt,mt,bt,wt,St,Ot,xt,Et,It,Pt={};function jt(){return $?_:($=1,_=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function Tt(){if(U)return B;U=1;var t=z(),r=Function.prototype,e=r.call,n=t&&r.bind.bind(e,e);return B=t?n:function(t){return function(){return e.apply(t,arguments)}},B}function Mt(){if(W)return H;W=1;var t=Tt(),r=t({}.toString),e=t("".slice);return H=function(t){return e(r(t),8,-1)}}function At(){if(K)return G;K=1;var t=Tt(),r=L(),e=Mt(),n=Object,o=t("".split);return G=r(function(){return!n("z").propertyIsEnumerable(0)})?function(t){return"String"===e(t)?o(t,""):n(t)}:n}function Nt(){return Y?X:(Y=1,X=function(t){return null==t})}function Rt(){if(J)return q;J=1;var t=Nt(),r=TypeError;return q=function(e){if(t(e))throw new r("Can't call method on "+e);return e}}function Ct(){if(Z)return Q;Z=1;var t=At(),r=Rt();return Q=function(e){return t(r(e))}}function kt(){if(rt)return tt;rt=1;var t="object"==typeof document&&document.all;return tt=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function Lt(){if(nt)return et;nt=1;var t=kt();return et=function(r){return"object"==typeof r?null!==r:t(r)}}function Vt(){if(it)return ot;it=1;var t=I(),r=kt();return ot=function(e,n){return arguments.length<2?(o=t[e],r(o)?o:void 0):t[e]&&t[e][n];var o},ot}function zt(){if(ct)return ut;ct=1;var t=Tt();return ut=t({}.isPrototypeOf)}function Dt(){if(ft)return at;ft=1;var t=I().navigator,r=t&&t.userAgent;return at=r?String(r):""}function Ft(){if(lt)return st;lt=1;var t,r,e=I(),n=Dt(),o=e.process,i=e.Deno,u=o&&o.versions||i&&i.version,c=u&&u.v8;return c&&(r=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(r=+t[1]),st=r}function _t(){if(dt)return vt;dt=1;var t=Ft(),r=L(),e=I().String;return vt=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!e(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function $t(){if(ht)return pt;ht=1;var t=_t();return pt=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Bt(){if(gt)return yt;gt=1;var t=Vt(),r=kt(),e=zt(),n=$t(),o=Object;return yt=n?function(t){return"symbol"==typeof t}:function(n){var i=t("Symbol");return r(i)&&e(i.prototype,o(n))}}function Ut(){if(bt)return mt;bt=1;var t=String;return mt=function(r){try{return t(r)}catch(t){return"Object"}}}function Ht(){if(St)return wt;St=1;var t=kt(),r=Ut(),e=TypeError;return wt=function(n){if(t(n))return n;throw new e(r(n)+" is not a function")}}function Wt(){if(xt)return Ot;xt=1;var t=Ht(),r=Nt();return Ot=function(e,n){var o=e[n];return r(o)?void 0:t(o)}}function Gt(){if(It)return Et;It=1;var t=D(),r=kt(),e=Lt(),n=TypeError;return Et=function(o,i){var u,c;if("string"===i&&r(u=o.toString)&&!e(c=t(u,o)))return c;if(r(u=o.valueOf)&&!e(c=t(u,o)))return c;if("string"!==i&&r(u=o.toString)&&!e(c=t(u,o)))return c;throw new n("Can't convert object to primitive value")},Et}var Kt,Xt,Yt,qt,Jt,Qt,Zt,tr,rr,er,nr,or,ir,ur,cr,ar,fr,sr,lr,vr,dr,pr,hr,yr,gr={exports:{}};function mr(){return Xt?Kt:(Xt=1,Kt=!1)}function br(){if(qt)return Yt;qt=1;var t=I(),r=Object.defineProperty;return Yt=function(e,n){try{r(t,e,{value:n,configurable:!0,writable:!0})}catch(r){t[e]=n}return n}}function wr(){if(Jt)return gr.exports;Jt=1;var t=mr(),r=I(),e=br(),n="__core-js_shared__",o=gr.exports=r[n]||e(n,{});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"}),gr.exports}function Sr(){if(Zt)return Qt;Zt=1;var t=wr();return Qt=function(r,e){return t[r]||(t[r]=e||{})}}function Or(){if(rr)return tr;rr=1;var t=Rt(),r=Object;return tr=function(e){return r(t(e))}}function xr(){if(nr)return er;nr=1;var t=Tt(),r=Or(),e=t({}.hasOwnProperty);return er=Object.hasOwn||function(t,n){return e(r(t),n)}}function Er(){if(ir)return or;ir=1;var t=Tt(),r=0,e=Math.random(),n=t(1.1.toString);return or=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++r+e,36)}}function Ir(){if(cr)return ur;cr=1;var t=I(),r=Sr(),e=xr(),n=Er(),o=_t(),i=$t(),u=t.Symbol,c=r("wks"),a=i?u.for||u:u&&u.withoutSetter||n;return ur=function(t){return e(c,t)||(c[t]=o&&e(u,t)?u[t]:a("Symbol."+t)),c[t]}}function Pr(){if(fr)return ar;fr=1;var t=D(),r=Lt(),e=Bt(),n=Wt(),o=Gt(),i=Ir(),u=TypeError,c=i("toPrimitive");return ar=function(i,a){if(!r(i)||e(i))return i;var f,s=n(i,c);if(s){if(void 0===a&&(a="default"),f=t(s,i,a),!r(f)||e(f))return f;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),o(i,a)}}function jr(){if(lr)return sr;lr=1;var t=Pr(),r=Bt();return sr=function(e){var n=t(e,"string");return r(n)?n:n+""}}function Tr(){if(dr)return vr;dr=1;var t=I(),r=Lt(),e=t.document,n=r(e)&&r(e.createElement);return vr=function(t){return n?e.createElement(t):{}}}function Mr(){if(hr)return pr;hr=1;var t=V(),r=L(),e=Tr();return pr=!t&&!r(function(){return 7!==Object.defineProperty(e("div"),"a",{get:function(){return 7}}).a})}function Ar(){if(yr)return k;yr=1;var t=V(),r=D(),e=function(){if(F)return Pt;F=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,e=r&&!t.call({1:2},1);return Pt.f=e?function(t){var e=r(this,t);return!!e&&e.enumerable}:t,Pt}(),n=jt(),o=Ct(),i=jr(),u=xr(),c=Mr(),a=Object.getOwnPropertyDescriptor;return k.f=t?a:function(t,f){if(t=o(t),f=i(f),c)try{return a(t,f)}catch(t){}if(u(t,f))return n(!r(e.f,t,f),t[f])},k}var Nr,Rr,Cr,kr,Lr,Vr,zr,Dr={};function Fr(){if(Rr)return Nr;Rr=1;var t=V(),r=L();return Nr=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function _r(){if(kr)return Cr;kr=1;var t=Lt(),r=String,e=TypeError;return Cr=function(n){if(t(n))return n;throw new e(r(n)+" is not an object")}}function $r(){if(Lr)return Dr;Lr=1;var t=V(),r=Mr(),e=Fr(),n=_r(),o=jr(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,a="enumerable",f="configurable",s="writable";return Dr.f=t?e?function(t,r,e){if(n(t),r=o(r),n(e),"function"==typeof t&&"prototype"===r&&"value"in e&&s in e&&!e[s]){var i=c(t,r);i&&i[s]&&(t[r]=e.value,e={configurable:f in e?e[f]:i[f],enumerable:a in e?e[a]:i[a],writable:!1})}return u(t,r,e)}:u:function(t,e,c){if(n(t),e=o(e),n(c),r)try{return u(t,e,c)}catch(t){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(t[e]=c.value),t},Dr}function Br(){if(zr)return Vr;zr=1;var t=V(),r=$r(),e=jt();return Vr=t?function(t,n,o){return r.f(t,n,e(1,o))}:function(t,r,e){return t[r]=e,t}}var Ur,Hr,Wr,Gr,Kr,Xr,Yr,qr,Jr,Qr,Zr,te,re,ee,ne,oe={exports:{}};function ie(){if(Hr)return Ur;Hr=1;var t=V(),r=xr(),e=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,o=r(e,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&n(e,"name").configurable);return Ur={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function ue(){if(Gr)return Wr;Gr=1;var t=Tt(),r=kt(),e=wr(),n=t(Function.toString);return r(e.inspectSource)||(e.inspectSource=function(t){return n(t)}),Wr=e.inspectSource}function ce(){if(Xr)return Kr;Xr=1;var t=I(),r=kt(),e=t.WeakMap;return Kr=r(e)&&/native code/.test(String(e))}function ae(){if(qr)return Yr;qr=1;var t=Sr(),r=Er(),e=t("keys");return Yr=function(t){return e[t]||(e[t]=r(t))}}function fe(){return Qr?Jr:(Qr=1,Jr={})}function se(){if(te)return Zr;te=1;var t,r,e,n=ce(),o=I(),i=Lt(),u=Br(),c=xr(),a=wr(),f=ae(),s=fe(),l="Object already initialized",v=o.TypeError,d=o.WeakMap;if(n||a.state){var p=a.state||(a.state=new d);p.get=p.get,p.has=p.has,p.set=p.set,t=function(t,r){if(p.has(t))throw new v(l);return r.facade=t,p.set(t,r),r},r=function(t){return p.get(t)||{}},e=function(t){return p.has(t)}}else{var h=f("state");s[h]=!0,t=function(t,r){if(c(t,h))throw new v(l);return r.facade=t,u(t,h,r),r},r=function(t){return c(t,h)?t[h]:{}},e=function(t){return c(t,h)}}return Zr={set:t,get:r,has:e,enforce:function(n){return e(n)?r(n):t(n,{})},getterFor:function(t){return function(e){var n;if(!i(e)||(n=r(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return n}}}}function le(){if(re)return oe.exports;re=1;var t=Tt(),r=L(),e=kt(),n=xr(),o=V(),i=ie().CONFIGURABLE,u=ue(),c=se(),a=c.enforce,f=c.get,s=String,l=Object.defineProperty,v=t("".slice),d=t("".replace),p=t([].join),h=o&&!r(function(){return 8!==l(function(){},"length",{value:8}).length}),y=String(String).split("String"),g=oe.exports=function(t,r,e){"Symbol("===v(s(r),0,7)&&(r="["+d(s(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!n(t,"name")||i&&t.name!==r)&&(o?l(t,"name",{value:r,configurable:!0}):t.name=r),h&&e&&n(e,"arity")&&t.length!==e.arity&&l(t,"length",{value:e.arity});try{e&&n(e,"constructor")&&e.constructor?o&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=a(t);return n(u,"source")||(u.source=p(y,"string"==typeof r?r:"")),t};return Function.prototype.toString=g(function(){return e(this)&&f(this).source||u(this)},"toString"),oe.exports}function ve(){if(ne)return ee;ne=1;var t=kt(),r=$r(),e=le(),n=br();return ee=function(o,i,u,c){c||(c={});var a=c.enumerable,f=void 0!==c.name?c.name:i;if(t(u)&&e(u,f,c),c.global)a?o[i]=u:n(i,u);else{try{c.unsafe?o[i]&&(a=!0):delete o[i]}catch(t){}a?o[i]=u:r.f(o,i,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return o}}var de,pe,he,ye,ge,me,be,we,Se,Oe,xe,Ee,Ie,Pe,je,Te,Me,Ae={};function Ne(){if(ye)return he;ye=1;var t=function(){if(pe)return de;pe=1;var t=Math.ceil,r=Math.floor;return de=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}}();return he=function(r){var e=+r;return e!=e||0===e?0:t(e)}}function Re(){if(me)return ge;me=1;var t=Ne(),r=Math.max,e=Math.min;return ge=function(n,o){var i=t(n);return i<0?r(i+o,0):e(i,o)}}function Ce(){if(we)return be;we=1;var t=Ne(),r=Math.min;return be=function(e){var n=t(e);return n>0?r(n,9007199254740991):0}}function ke(){if(Oe)return Se;Oe=1;var t=Ce();return Se=function(r){return t(r.length)}}function Le(){if(Ee)return xe;Ee=1;var t=Ct(),r=Re(),e=ke(),n=function(n){return function(o,i,u){var c=t(o),a=e(c);if(0===a)return!n&&-1;var f,s=r(u,a);if(n&&i!=i){for(;a>s;)if((f=c[s++])!=f)return!0}else for(;a>s;s++)if((n||s in c)&&c[s]===i)return n||s||0;return!n&&-1}};return xe={includes:n(!0),indexOf:n(!1)}}function Ve(){if(Pe)return Ie;Pe=1;var t=Tt(),r=xr(),e=Ct(),n=Le().indexOf,o=fe(),i=t([].push);return Ie=function(t,u){var c,a=e(t),f=0,s=[];for(c in a)!r(o,c)&&r(a,c)&&i(s,c);for(;u.length>f;)r(a,c=u[f++])&&(~n(s,c)||i(s,c));return s}}function ze(){return Te?je:(Te=1,je=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function De(){if(Me)return Ae;Me=1;var t=Ve(),r=ze().concat("length","prototype");return Ae.f=Object.getOwnPropertyNames||function(e){return t(e,r)},Ae}var Fe,_e,$e,Be,Ue,He,We,Ge,Ke,Xe,Ye,qe,Je,Qe,Ze,tn,rn,en,nn,on,un,cn,an,fn,sn,ln,vn,dn,pn={};function hn(){if($e)return _e;$e=1;var t=Vt(),r=Tt(),e=De(),n=(Fe||(Fe=1,pn.f=Object.getOwnPropertySymbols),pn),o=_r(),i=r([].concat);return _e=t("Reflect","ownKeys")||function(t){var r=e.f(o(t)),u=n.f;return u?i(r,u(t)):r}}function yn(){if(Ue)return Be;Ue=1;var t=xr(),r=hn(),e=Ar(),n=$r();return Be=function(o,i,u){for(var c=r(i),a=n.f,f=e.f,s=0;s<c.length;s++){var l=c[s];t(o,l)||u&&t(u,l)||a(o,l,f(i,l))}}}function gn(){if(We)return He;We=1;var t=L(),r=kt(),e=/#|\.prototype\./,n=function(e,n){var a=i[o(e)];return a===c||a!==u&&(r(n)?t(n):!!n)},o=n.normalize=function(t){return String(t).replace(e,".").toLowerCase()},i=n.data={},u=n.NATIVE="N",c=n.POLYFILL="P";return He=n}function mn(){if(Ke)return Ge;Ke=1;var t=I(),r=Ar().f,e=Br(),n=ve(),o=br(),i=yn(),u=gn();return Ge=function(c,a){var f,s,l,v,d,p=c.target,h=c.global,y=c.stat;if(f=h?t:y?t[p]||o(p,{}):t[p]&&t[p].prototype)for(s in a){if(v=a[s],l=c.dontCallGetSet?(d=r(f,s))&&d.value:f[s],!u(h?s:p+(y?".":"#")+s,c.forced)&&void 0!==l){if(typeof v==typeof l)continue;i(v,l)}(c.sham||l&&l.sham)&&e(v,"sham",!0),n(f,s,v,c)}}}function bn(){if(Ye)return Xe;Ye=1;var t=Mt();return Xe=Array.isArray||function(r){return"Array"===t(r)}}function wn(){if(Je)return qe;Je=1;var t=TypeError;return qe=function(r){if(r>9007199254740991)throw t("Maximum allowed index exceeded");return r}}function Sn(){if(Ze)return Qe;Ze=1;var t=V(),r=$r(),e=jt();return Qe=function(n,o,i){t?r.f(n,o,e(0,i)):n[o]=i}}function On(){if(rn)return tn;rn=1;var t={};return t[Ir()("toStringTag")]="z",tn="[object z]"===String(t)}function xn(){if(nn)return en;nn=1;var t=On(),r=kt(),e=Mt(),n=Ir()("toStringTag"),o=Object,i="Arguments"===e(function(){return arguments}());return en=t?e:function(t){var u,c,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(c=function(t,r){try{return t[r]}catch(t){}}(u=o(t),n))?c:i?e(u):"Object"===(a=e(u))&&r(u.callee)?"Arguments":a}}function En(){if(un)return on;un=1;var t=Tt(),r=L(),e=kt(),n=xn(),o=Vt(),i=ue(),u=function(){},c=o("Reflect","construct"),a=/^\s*(?:class|function)\b/,f=t(a.exec),s=!a.test(u),l=function(t){if(!e(t))return!1;try{return c(u,[],t),!0}catch(t){return!1}},v=function(t){if(!e(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!f(a,i(t))}catch(t){return!0}};return v.sham=!0,on=!c||r(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?v:l}function In(){if(an)return cn;an=1;var t=bn(),r=En(),e=Lt(),n=Ir()("species"),o=Array;return cn=function(i){var u;return t(i)&&(u=i.constructor,(r(u)&&(u===o||t(u.prototype))||e(u)&&null===(u=u[n]))&&(u=void 0)),void 0===u?o:u}}function Pn(){if(sn)return fn;sn=1;var t=In();return fn=function(r,e){return new(t(r))(0===e?0:e)}}function jn(){if(vn)return ln;vn=1;var t=L(),r=Ir(),e=Ft(),n=r("species");return ln=function(r){return e>=51||!t(function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[r](Boolean).foo})}}!function(){if(dn)return E;dn=1;var t=mn(),r=L(),e=bn(),n=Lt(),o=Or(),i=ke(),u=wn(),c=Sn(),a=Pn(),f=jn(),s=Ir(),l=Ft(),v=s("isConcatSpreadable"),d=l>=51||!r(function(){var t=[];return t[v]=!1,t.concat()[0]!==t}),p=function(t){if(!n(t))return!1;var r=t[v];return void 0!==r?!!r:e(t)};t({target:"Array",proto:!0,arity:1,forced:!d||!f("concat")},{concat:function(t){var r,e,n,f,s,l=o(this),v=a(l,0),d=0;for(r=-1,n=arguments.length;r<n;r++)if(p(s=-1===r?l:arguments[r]))for(f=i(s),u(d+f),e=0;e<f;e++,d++)e in s&&c(v,d,s[e]);else u(d+1),c(v,d++,s);return v.length=d,v}})}();var Tn,Mn,An,Nn,Rn,Cn,kn,Ln,Vn,zn={};function Dn(){if(Mn)return Tn;Mn=1;var t=xn(),r=String;return Tn=function(e){if("Symbol"===t(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}}function Fn(){return Nn?An:(Nn=1,An="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(Vn)return zn;Vn=1;var t=mn(),r=function(){if(Cn)return Rn;Cn=1;var t=Tt(),r=Rt(),e=Dn(),n=Fn(),o=t("".replace),i=RegExp("^["+n+"]+"),u=RegExp("(^|[^"+n+"])["+n+"]+$"),c=function(t){return function(n){var c=e(r(n));return 1&t&&(c=o(c,i,"")),2&t&&(c=o(c,u,"$1")),c}};return Rn={start:c(1),end:c(2),trim:c(3)}}().trim,e=function(){if(Ln)return kn;Ln=1;var t=ie().PROPER,r=L(),e=Fn();return kn=function(n){return r(function(){return!!e[n]()||"​…᠎"!=="​…᠎"[n]()||t&&e[n].name!==n})}}();t({target:"String",proto:!0,forced:e("trim")},{trim:function(){return r(this)}})}();var _n,$n,Bn={};function Un(t){return t.length?t[0].tagName.toLowerCase():""}function Hn(t,r,e,n){void 0===r&&(r="auto"),void 0===e&&(e="auto"),void 0===n&&(n={});var o=u(t),i=n.width,c=void 0===i?"":i,a=n.height,f=void 0===a?"":a,s="";return c&&(s+="width: ".concat(c,";")),f&&(s+="height: ".concat(f,";")),o.attr("width",r),o.attr("height",e),o.attr("style",s),o[0].outerHTML}$n||($n=1,function(){if(_n)return Bn;_n=1;var t=mn(),r=I();t({global:!0,forced:r.globalThis!==r},{globalThis:r})}()),c&&(u.fn.append=c),a&&(u.fn.on=a),f&&(u.fn.focus=f),s&&(u.fn.attr=s),l&&(u.fn.val=l),v&&(u.fn.html=v),d&&(u.fn.parent=d),p&&(u.fn.hasClass=p),h&&(u.fn.empty=h);var Wn,Gn,Kn,Xn={type:"video",elemToHtml:function(t,r){var e=t,n=e.src,o=void 0===n?"":n,i=e.poster,u=void 0===i?"":i,c=e.width,a=void 0===c?"auto":c,f=e.height,s=void 0===f?"auto":f,l=e.style,v=void 0===l?{}:l,d=e.textAlign,p='<div data-w-e-type="video" data-w-e-is-void style="text-align: '.concat(void 0===d?"center":d,';">\n');if(0===o.trim().indexOf("<iframe ")){p+=Hn(o,a,s,v)}else{var h=v.width,y=void 0===h?"":h,g=v.height,m=void 0===g?"":g,b="";y&&(b+="width: ".concat(y,";")),m&&(b+="height: ".concat(m,";")),p+='<video poster="'.concat(u,'" controls="true" width="').concat(a,'" height="').concat(s,'" style="').concat(b,'"><source src="').concat(o,'" type="video/mp4"/></video>')}return p+="\n</div>"}},Yn={};function qn(){if(Gn)return Wn;Gn=1;var t=le(),r=$r();return Wn=function(e,n,o){return o.get&&t(o.get,n,{getter:!0}),o.set&&t(o.set,n,{setter:!0}),r.f(e,n,o)}}!function(){if(Kn)return Yn;Kn=1;var t=V(),r=ie().EXISTS,e=Tt(),n=qn(),o=Function.prototype,i=e(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=e(u.exec);t&&!r&&n(o,"name",{configurable:!0,get:function(){try{return c(u,i(this))[1]}catch(t){return""}}})}();var Jn,Qn,Zn,to,ro,eo,no={};function oo(){if(to)return Zn;to=1;var t=function(){if(Qn)return Jn;Qn=1;var t=Mt(),r=Tt();return Jn=function(e){if("Function"===t(e))return r(e)}}(),r=Ht(),e=z(),n=t(t.bind);return Zn=function(t,o){return r(t),void 0===o?t:e?n(t,o):function(){return t.apply(o,arguments)}},Zn}function io(){if(eo)return ro;eo=1;var t=oo(),r=Tt(),e=At(),n=Or(),o=ke(),i=Pn(),u=r([].push),c=function(r){var c=1===r,a=2===r,f=3===r,s=4===r,l=6===r,v=7===r,d=5===r||l;return function(p,h,y,g){for(var m,b,w=n(p),S=e(w),O=o(S),x=t(h,y),E=0,I=g||i,P=c?I(p,O):a||v?I(p,0):void 0;O>E;E++)if((d||E in S)&&(b=x(m=S[E],E,w),r))if(c)P[E]=b;else if(b)switch(r){case 3:return!0;case 5:return m;case 6:return E;case 2:u(P,m)}else switch(r){case 4:return!1;case 7:u(P,m)}return l?-1:f||s?s:P}};return ro={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}}var uo,co,ao,fo,so,lo,vo,po,ho,yo,go={};function mo(){if(co)return uo;co=1;var t=Ve(),r=ze();return uo=Object.keys||function(e){return t(e,r)}}function bo(){if(so)return fo;so=1;var t=Vt();return fo=t("document","documentElement")}function wo(){if(vo)return lo;vo=1;var t,r=_r(),e=function(){if(ao)return go;ao=1;var t=V(),r=Fr(),e=$r(),n=_r(),o=Ct(),i=mo();return go.f=t&&!r?Object.defineProperties:function(t,r){n(t);for(var u,c=o(r),a=i(r),f=a.length,s=0;f>s;)e.f(t,u=a[s++],c[u]);return t},go}(),n=ze(),o=fe(),i=bo(),u=Tr(),c=ae(),a="prototype",f="script",s=c("IE_PROTO"),l=function(){},v=function(t){return"<"+f+">"+t+"</"+f+">"},d=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var r,e,o;p="undefined"!=typeof document?document.domain&&t?d(t):(e=u("iframe"),o="java"+f+":",e.style.display="none",i.appendChild(e),e.src=String(o),(r=e.contentWindow.document).open(),r.write(v("document.F=Object")),r.close(),r.F):d(t);for(var c=n.length;c--;)delete p[a][n[c]];return p()};return o[s]=!0,lo=Object.create||function(t,n){var o;return null!==t?(l[a]=r(t),o=new l,l[a]=null,o[s]=t):o=p(),void 0===n?o:e.f(o,n)}}function So(){if(ho)return po;ho=1;var t=Ir(),r=wo(),e=$r().f,n=t("unscopables"),o=Array.prototype;return void 0===o[n]&&e(o,n,{configurable:!0,value:r(null)}),po=function(t){o[n][t]=!0}}!function(){if(yo)return no;yo=1;var t=mn(),r=io().find,e=So(),n="find",o=!0;n in[]&&Array(1)[n](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),e(n)}();var Oo,xo,Eo,Io={};!function(){if(Eo)return Io;Eo=1;var t=On(),r=ve(),e=function(){if(xo)return Oo;xo=1;var t=On(),r=xn();return Oo=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",e,{unsafe:!0})}();var Po,jo,To,Mo,Ao,No,Ro,Co,ko,Lo,Vo,zo={};function Do(){if(jo)return Po;jo=1;var t=_r();return Po=function(){var r=t(this),e="";return r.hasIndices&&(e+="d"),r.global&&(e+="g"),r.ignoreCase&&(e+="i"),r.multiline&&(e+="m"),r.dotAll&&(e+="s"),r.unicode&&(e+="u"),r.unicodeSets&&(e+="v"),r.sticky&&(e+="y"),e}}function Fo(){if(Lo)return ko;Lo=1;var t,r,e=D(),n=Tt(),o=Dn(),i=Do(),u=function(){if(Mo)return To;Mo=1;var t=L(),r=I().RegExp,e=t(function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),n=e||t(function(){return!r("a","y").sticky}),o=e||t(function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return To={BROKEN_CARET:o,MISSED_STICKY:n,UNSUPPORTED_Y:e}}(),c=Sr(),a=wo(),f=se().get,s=function(){if(No)return Ao;No=1;var t=L(),r=I().RegExp;return Ao=t(function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),l=function(){if(Co)return Ro;Co=1;var t=L(),r=I().RegExp;return Ro=t(function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),v=c("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,p=d,h=n("".charAt),y=n("".indexOf),g=n("".replace),m=n("".slice),b=(r=/b*/g,e(d,t=/a/,"a"),e(d,r,"a"),0!==t.lastIndex||0!==r.lastIndex),w=u.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];return(b||S||w||s||l)&&(p=function(t){var r,n,u,c,s,l,O,x=this,E=f(x),I=o(t),P=E.raw;if(P)return P.lastIndex=x.lastIndex,r=e(p,P,I),x.lastIndex=P.lastIndex,r;var j=E.groups,T=w&&x.sticky,M=e(i,x),A=x.source,N=0,R=I;if(T&&(M=g(M,"y",""),-1===y(M,"g")&&(M+="g"),R=m(I,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&"\n"!==h(I,x.lastIndex-1))&&(A="(?: "+A+")",R=" "+R,N++),n=new RegExp("^(?:"+A+")",M)),S&&(n=new RegExp("^"+A+"$(?!\\s)",M)),b&&(u=x.lastIndex),c=e(d,T?n:x,R),T?c?(c.input=m(c.input,N),c[0]=m(c[0],N),c.index=x.lastIndex,x.lastIndex+=c[0].length):x.lastIndex=0:b&&c&&(x.lastIndex=x.global?c.index+c[0].length:u),S&&c&&c.length>1&&e(v,c[0],n,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(c[s]=void 0)}),c&&j)for(c.groups=l=a(null),s=0;s<j.length;s++)l[(O=j[s])[0]]=c[O[1]];return c}),ko=p}function _o(){if(Vo)return zo;Vo=1;var t=mn(),r=Fo();return t({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r}),zo}_o();var $o=function(){return $o=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},$o.apply(this,arguments)};function Bo(t,r,e,n){return new(e||(e=Promise))(function(o,i){function u(t){try{a(n.next(t))}catch(t){i(t)}}function c(t){try{a(n.throw(t))}catch(t){i(t)}}function a(t){var r;t.done?o(t.value):(r=t.value,r instanceof e?r:new e(function(t){t(r)})).then(u,c)}a((n=n.apply(t,r||[])).next())})}function Uo(t,r){var e,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(a){return function(c){if(e)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(i=0)),i;)try{if(e=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(t,i)}catch(t){c=[6,t],n=0}finally{e=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}}function Ho(t){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&t[r],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Wo(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,i=e.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function Go(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,e=t[Symbol.asyncIterator];return e?e.call(t):(t=Ho(t),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(e){r[e]=t[e]&&function(r){return new Promise(function(n,o){(function(t,r,e,n){Promise.resolve(n).then(function(r){t({value:r,done:e})},r)})(n,o,(r=t[e](r)).done,r.value)})}}}"function"==typeof SuppressedError&&SuppressedError;var Ko,Xo,Yo,qo,Jo,Qo,Zo,ti,ri,ei,ni,oi,ii,ui,ci,ai,fi,si={};function li(){if(Xo)return Ko;Xo=1;var t=z(),r=Function.prototype,e=r.apply,n=r.call;return Ko="object"==typeof Reflect&&Reflect.apply||(t?n.bind(e):function(){return n.apply(e,arguments)}),Ko}function vi(){if(Qo)return Jo;Qo=1;var t=Tt(),r=Ne(),e=Dn(),n=Rt(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),c=function(t){return function(c,a){var f,s,l=e(n(c)),v=r(a),d=l.length;return v<0||v>=d?t?"":void 0:(f=i(l,v))<55296||f>56319||v+1===d||(s=i(l,v+1))<56320||s>57343?t?o(l,v):f:t?u(l,v,v+2):s-56320+(f-55296<<10)+65536}};return Jo={codeAt:c(!1),charAt:c(!0)}}function di(){if(ti)return Zo;ti=1;var t=vi().charAt;return Zo=function(r,e,n){return e+(n?t(r,e).length:1)}}function pi(){if(ei)return ri;ei=1;var t=Tt(),r=Or(),e=Math.floor,n=t("".charAt),o=t("".replace),i=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;return ri=function(t,a,f,s,l,v){var d=f+t.length,p=s.length,h=c;return void 0!==l&&(l=r(l),h=u),o(v,h,function(r,o){var u;switch(n(o,0)){case"$":return"$";case"&":return t;case"`":return i(a,0,f);case"'":return i(a,d);case"<":u=l[i(o,1,-1)];break;default:var c=+o;if(0===c)return r;if(c>p){var v=e(c/10);return 0===v?r:v<=p?void 0===s[v-1]?n(o,1):s[v-1]+n(o,1):r}u=s[c-1]}return void 0===u?"":u})}}function hi(){if(ui)return ii;ui=1;var t=D(),r=xr(),e=zt(),n=function(){if(oi)return ni;oi=1;var t=I(),r=L(),e=t.RegExp,n=!r(function(){var t=!0;try{e(".","d")}catch(r){t=!1}var r={},n="",o=t?"dgimsy":"gimsy",i=function(t,e){Object.defineProperty(r,t,{get:function(){return n+=e,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var c in t&&(u.hasIndices="d"),u)i(c,u[c]);return Object.getOwnPropertyDescriptor(e.prototype,"flags").get.call(r)!==o||n!==o});return ni={correct:n}}(),o=Do(),i=RegExp.prototype;return ii=n.correct?function(t){return t.flags}:function(u){return n.correct||!e(i,u)||r(u,"flags")?u.flags:t(o,u)}}!function(){if(fi)return si;fi=1;var t=li(),r=D(),e=Tt(),n=function(){if(qo)return Yo;qo=1,_o();var t=D(),r=ve(),e=Fo(),n=L(),o=Ir(),i=Br(),u=o("species"),c=RegExp.prototype;return Yo=function(a,f,s,l){var v=o(a),d=!n(function(){var t={};return t[v]=function(){return 7},7!==""[a](t)}),p=d&&!n(function(){var t=!1,r=/a/;if("split"===a){var e={};e[u]=function(){return r},(r={constructor:e,flags:""})[v]=/./[v]}return r.exec=function(){return t=!0,null},r[v](""),!t});if(!d||!p||s){var h=/./[v],y=f(v,""[a],function(r,n,o,i,u){var a=n.exec;return a===e||a===c.exec?d&&!u?{done:!0,value:t(h,n,o,i)}:{done:!0,value:t(r,o,n,i)}:{done:!1}});r(String.prototype,a,y[0]),r(c,v,y[1])}l&&i(c[v],"sham",!0)}}(),o=L(),i=_r(),u=kt(),c=Lt(),a=Ne(),f=Ce(),s=Dn(),l=Rt(),v=di(),d=Wt(),p=pi(),h=hi(),y=function(){if(ai)return ci;ai=1;var t=D(),r=_r(),e=kt(),n=Mt(),o=Fo(),i=TypeError;return ci=function(u,c){var a=u.exec;if(e(a)){var f=t(a,u,c);return null!==f&&r(f),f}if("RegExp"===n(u))return t(o,u,c);throw new i("RegExp#exec called on incompatible receiver")}}(),g=Ir()("replace"),m=Math.max,b=Math.min,w=e([].concat),S=e([].push),O=e("".indexOf),x=e("".slice),E=function(t){return void 0===t?t:String(t)},I="$0"==="a".replace(/./,"$0"),P=!!/./[g]&&""===/./[g]("a","$0");n("replace",function(e,n,o){var I=P?"$":"$0";return[function(t,e){var o=l(this),i=c(t)?d(t,g):void 0;return i?r(i,t,o,e):r(n,s(o),t,e)},function(r,e){var c=i(this),l=s(r);if("string"==typeof e&&-1===O(e,I)&&-1===O(e,"$<")){var d=o(n,c,l,e);if(d.done)return d.value}var g=u(e);g||(e=s(e));var P,j=s(h(c)),T=-1!==O(j,"g");T&&(P=-1!==O(j,"u"),c.lastIndex=0);for(var M,A=[];null!==(M=y(c,l))&&(S(A,M),T);){""===s(M[0])&&(c.lastIndex=v(l,f(c.lastIndex),P))}for(var N="",R=0,C=0;C<A.length;C++){for(var k,L=s((M=A[C])[0]),V=m(b(a(M.index),l.length),0),z=[],D=1;D<M.length;D++)S(z,E(M[D]));var F=M.groups;if(g){var _=w([L],z,V,l);void 0!==F&&S(_,F),k=s(t(e,void 0,_))}else k=p(L,l,V,z,F,e);V>=R&&(N+=x(l,R,V)+k,R=V+L.length)}return N+x(l,R)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!I||P)}();var yi,gi,mi,bi,wi,Si,Oi,xi,Ei,Ii={};function Pi(){return gi?yi:(gi=1,yi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0})}function ji(){if(bi)return mi;bi=1;var t=Tr()("span").classList,r=t&&t.constructor&&t.constructor.prototype;return mi=r===Object.prototype?void 0:r}function Ti(){if(Si)return wi;Si=1;var t=L();return wi=function(r,e){var n=[][r];return!!n&&t(function(){n.call(null,e||function(){return 1},1)})}}function Mi(t){return void 0===t&&(t="r"),"".concat(t,"-").concat(m())}function Ai(t){var r={};return t.trim().split(";").forEach(function(t){if(t){var e=Wo(t.split(":"),2),n=e[0],o=e[1];n&&o&&(r[n.trim()]=o.trim())}}),r}function Ni(){return Mi("w-e-insert-video")}!function(){if(Ei)return Ii;Ei=1;var t=I(),r=Pi(),e=ji(),n=function(){if(xi)return Oi;xi=1;var t=io().forEach,r=Ti()("forEach");return Oi=r?[].forEach:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)},Oi}(),o=Br(),i=function(t){if(t&&t.forEach!==n)try{o(t,"forEach",n)}catch(r){t.forEach=n}};for(var u in r)r[u]&&i(t[u]&&t[u].prototype);i(e)}();var Ri=function(){function t(){this.title=r("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Ni(),this.heightInputId=Ni(),this.buttonId=Ni()}return t.prototype.getSelectedVideoNode=function(t){return e.getSelectedNodeByType(t,"video")},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,r){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},t.prototype.getModalContentElem=function(t){var i=this,c=i.widthInputId,a=i.heightInputId,f=i.buttonId,s=Wo(n(r("videoModule.width"),c,"auto"),2),l=s[0],v=s[1],d=u(v),p=Wo(n(r("videoModule.height"),a,"auto"),2),h=p[0],g=p[1],m=u(g),b=Wo(o(f,r("videoModule.ok")),1)[0],w=this.getSelectedVideoNode(t);if(null==this.$content){var S=u("<div></div>");S.on("click","#".concat(f),function(r){r.preventDefault();var n=S.find("#".concat(c)).val().trim(),o=S.find("#".concat(a)).val().trim(),i=function(t){return/^\d+(\.\d+)?%$/.test(t)},u=function(t){return/^\d+(\.\d+)?$/.test(t)},f="auto",s="auto";i(n)?f=n:u(n)&&(f="".concat(parseInt(n,10),"px")),i(o)?s=o:u(o)&&(s="".concat(parseInt(o,10),"px"));var l=w.style,v=void 0===l?{}:l;t.restoreSelection();var d={style:$o($o({},v),{width:f,height:s})};y.setNodes(t,d,{match:function(t){return e.checkNodeType(t,"video")}}),t.hidePanelOrModal()}),this.$content=S}var O=this.$content;if(O.empty(),O.append(l),O.append(h),O.append(b),null==w)return O[0];var x=w.style,E=void 0===x?{}:x,I=E.width,P=void 0===I?"":I,j=E.height,T=void 0===j?"":j;return d.val(P),m.val(T),setTimeout(function(){d.focus()}),O[0]},t}();function Ci(){return Mi("w-e-edit-video")}var ki,Li,Vi,zi,Di,Fi,_i,$i,Bi,Ui,Hi,Wi,Gi,Ki,Xi,Yi,qi,Ji,Qi,Zi,tu,ru,eu,nu,ou,iu,uu,cu,au,fu,su,lu,vu,du,pu,hu,yu,gu,mu,bu,wu,Su,Ou,xu,Eu,Iu,Pu,ju,Tu,Mu,Au=function(){function t(){this.title=r("videoModule.edit"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Ci(),this.posterInputId=Ci(),this.buttonId=Ci()}return t.prototype.getSelectedVideoNode=function(t){return e.getSelectedNodeByType(t,"video")},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,r){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},t.prototype.getModalContentElem=function(t){var i=this,c=this,a=c.srcInputId,f=c.posterInputId,s=c.buttonId,l=Wo(n(r("videoModule.videoSrc"),a,r("videoModule.videoSrcPlaceHolder")),2),v=l[0],d=l[1],p=Wo(n(r("videoModule.videoPoster"),f,r("videoModule.videoPosterPlaceHolder")),2),h=p[0],g=p[1],m=u(d),b=u(g),w=Wo(o(s,r("videoModule.ok")),1)[0];if(null==this.$content){var S=u("<div></div>");S.on("click","#".concat(s),function(r){return Bo(i,void 0,void 0,function(){var n,o,i,u;return Uo(this,function(c){return r.preventDefault(),n=S.find("#".concat(a)).val().trim(),o=S.find("#".concat(f)).val().trim(),i=Mi("video-"),u={src:n,poster:o,key:i},t.restoreSelection(),y.setNodes(t,u,{match:function(t){return e.checkNodeType(t,"video")}}),t.hidePanelOrModal(),[2]})})}),this.$content=S}var O=this.$content;O.empty(),O.append(v),O.append(h),O.append(w);var x=this.getSelectedVideoNode(t);if(null==x)return O[0];var E=x.src,I=void 0===E?"":E,P=x.poster,j=void 0===P?"":P;return m.val(I),b.val(j),setTimeout(function(){m.focus()}),O[0]},t}(),Nu={};function Ru(){if(Li)return ki;Li=1;var t=I(),r=Dt(),e=Mt(),n=function(t){return r.slice(0,t.length)===t};return ki=n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===e(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function Cu(){if(zi)return Vi;zi=1;var t=Ru();return Vi="NODE"===t}function ku(){if(Fi)return Di;Fi=1;var t=I();return Di=t}function Lu(){if(Ui)return Bi;Ui=1;var t=Lt();return Bi=function(r){return t(r)||null===r}}function Vu(){if(Wi)return Hi;Wi=1;var t=Lu(),r=String,e=TypeError;return Hi=function(n){if(t(n))return n;throw new e("Can't set "+r(n)+" as a prototype")}}function zu(){if(Ki)return Gi;Ki=1;var t=function(){if($i)return _i;$i=1;var t=Tt(),r=Ht();return _i=function(e,n,o){try{return t(r(Object.getOwnPropertyDescriptor(e,n)[o]))}catch(t){}}}(),r=Lt(),e=Rt(),n=Vu();return Gi=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,u={};try{(o=t(Object.prototype,"__proto__","set"))(u,[]),i=u instanceof Array}catch(t){}return function(t,u){return e(t),n(u),r(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function Du(){if(Yi)return Xi;Yi=1;var t=$r().f,r=xr(),e=Ir()("toStringTag");return Xi=function(n,o,i){n&&!i&&(n=n.prototype),n&&!r(n,e)&&t(n,e,{configurable:!0,value:o})}}function Fu(){if(Ji)return qi;Ji=1;var t=Vt(),r=qn(),e=Ir(),n=V(),o=e("species");return qi=function(e){var i=t(e);n&&i&&!i[o]&&r(i,o,{configurable:!0,get:function(){return this}})}}function _u(){if(Zi)return Qi;Zi=1;var t=zt(),r=TypeError;return Qi=function(e,n){if(t(n,e))return e;throw new r("Incorrect invocation")}}function $u(){if(ru)return tu;ru=1;var t=En(),r=Ut(),e=TypeError;return tu=function(n){if(t(n))return n;throw new e(r(n)+" is not a constructor")}}function Bu(){if(nu)return eu;nu=1;var t=_r(),r=$u(),e=Nt(),n=Ir()("species");return eu=function(o,i){var u,c=t(o).constructor;return void 0===c||e(u=t(c)[n])?i:r(u)}}function Uu(){if(iu)return ou;iu=1;var t=Tt();return ou=t([].slice)}function Hu(){if(cu)return uu;cu=1;var t=TypeError;return uu=function(r,e){if(r<e)throw new t("Not enough arguments");return r}}function Wu(){if(fu)return au;fu=1;var t=Dt();return au=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function Gu(){if(lu)return su;lu=1;var t,r,e,n,o=I(),i=li(),u=oo(),c=kt(),a=xr(),f=L(),s=bo(),l=Uu(),v=Tr(),d=Hu(),p=Wu(),h=Cu(),y=o.setImmediate,g=o.clearImmediate,m=o.process,b=o.Dispatch,w=o.Function,S=o.MessageChannel,O=o.String,x=0,E={},P="onreadystatechange";f(function(){t=o.location});var j=function(t){if(a(E,t)){var r=E[t];delete E[t],r()}},T=function(t){return function(){j(t)}},M=function(t){j(t.data)},A=function(r){o.postMessage(O(r),t.protocol+"//"+t.host)};return y&&g||(y=function(t){d(arguments.length,1);var e=c(t)?t:w(t),n=l(arguments,1);return E[++x]=function(){i(e,void 0,n)},r(x),x},g=function(t){delete E[t]},h?r=function(t){m.nextTick(T(t))}:b&&b.now?r=function(t){b.now(T(t))}:S&&!p?(n=(e=new S).port2,e.port1.onmessage=M,r=u(n.postMessage,n)):o.addEventListener&&c(o.postMessage)&&!o.importScripts&&t&&"file:"!==t.protocol&&!f(A)?(r=A,o.addEventListener("message",M,!1)):r=P in v("script")?function(t){s.appendChild(v("script"))[P]=function(){s.removeChild(this),j(t)}}:function(t){setTimeout(T(t),0)}),su={set:y,clear:g}}function Ku(){if(du)return vu;du=1;var t=I(),r=V(),e=Object.getOwnPropertyDescriptor;return vu=function(n){if(!r)return t[n];var o=e(t,n);return o&&o.value}}function Xu(){if(hu)return pu;hu=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var r={item:t,next:null},e=this.tail;e?e.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},pu=t}function Yu(){if(Su)return wu;Su=1;var t,r,e,n,o,i=I(),u=Ku(),c=oo(),a=Gu().set,f=Xu(),s=Wu(),l=function(){if(gu)return yu;gu=1;var t=Dt();return yu=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),v=function(){if(bu)return mu;bu=1;var t=Dt();return mu=/web0s(?!.*chrome)/i.test(t)}(),d=Cu(),p=i.MutationObserver||i.WebKitMutationObserver,h=i.document,y=i.process,g=i.Promise,m=u("queueMicrotask");if(!m){var b=new f,w=function(){var r,e;for(d&&(r=y.domain)&&r.exit();e=b.get();)try{e()}catch(r){throw b.head&&t(),r}r&&r.enter()};s||d||v||!p||!h?!l&&g&&g.resolve?((n=g.resolve(void 0)).constructor=g,o=c(n.then,n),t=function(){o(w)}):d?t=function(){y.nextTick(w)}:(a=c(a,i),t=function(){a(w)}):(r=!0,e=h.createTextNode(""),new p(w).observe(e,{characterData:!0}),t=function(){e.data=r=!r}),m=function(r){b.head||t(),b.add(r)}}return wu=m}function qu(){return xu||(xu=1,Ou=function(t,r){try{1===arguments.length?console.error(t):console.error(t,r)}catch(t){}}),Ou}function Ju(){return Iu?Eu:(Iu=1,Eu=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function Qu(){if(ju)return Pu;ju=1;var t=I();return Pu=t.Promise}function Zu(){if(Mu)return Tu;Mu=1;var t=I(),r=Qu(),e=kt(),n=gn(),o=ue(),i=Ir(),u=Ru(),c=mr(),a=Ft(),f=r&&r.prototype,s=i("species"),l=!1,v=e(t.PromiseRejectionEvent),d=n("Promise",function(){var t=o(r),e=t!==String(r);if(!e&&66===a)return!0;if(c&&(!f.catch||!f.finally))return!0;if(!a||a<51||!/native code/.test(t)){var n=new r(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((n.constructor={})[s]=i,!(l=n.then(function(){})instanceof i))return!0}return!(e||"BROWSER"!==u&&"DENO"!==u||v)});return Tu={CONSTRUCTOR:d,REJECTION_EVENT:v,SUBCLASSING:l}}var tc,rc,ec={};function nc(){if(tc)return ec;tc=1;var t=Ht(),r=TypeError,e=function(e){var n,o;this.promise=new e(function(t,e){if(void 0!==n||void 0!==o)throw new r("Bad Promise constructor");n=t,o=e}),this.resolve=t(n),this.reject=t(o)};return ec.f=function(t){return new e(t)},ec}var oc,ic,uc,cc,ac,fc,sc,lc,vc,dc,pc,hc,yc,gc,mc,bc,wc,Sc={};function Oc(){return ic?oc:(ic=1,oc={})}function xc(){if(cc)return uc;cc=1;var t=Ir(),r=Oc(),e=t("iterator"),n=Array.prototype;return uc=function(t){return void 0!==t&&(r.Array===t||n[e]===t)}}function Ec(){if(fc)return ac;fc=1;var t=xn(),r=Wt(),e=Nt(),n=Oc(),o=Ir()("iterator");return ac=function(i){if(!e(i))return r(i,o)||r(i,"@@iterator")||n[t(i)]}}function Ic(){if(lc)return sc;lc=1;var t=D(),r=Ht(),e=_r(),n=Ut(),o=Ec(),i=TypeError;return sc=function(u,c){var a=arguments.length<2?o(u):c;if(r(a))return e(t(a,u));throw new i(n(u)+" is not iterable")},sc}function Pc(){if(dc)return vc;dc=1;var t=D(),r=_r(),e=Wt();return vc=function(n,o,i){var u,c;r(n);try{if(!(u=e(n,"return"))){if("throw"===o)throw i;return i}u=t(u,n)}catch(t){c=!0,u=t}if("throw"===o)throw i;if(c)throw u;return r(u),i}}function jc(){if(hc)return pc;hc=1;var t=oo(),r=D(),e=_r(),n=Ut(),o=xc(),i=ke(),u=zt(),c=Ic(),a=Ec(),f=Pc(),s=TypeError,l=function(t,r){this.stopped=t,this.result=r},v=l.prototype;return pc=function(d,p,h){var y,g,m,b,w,S,O,x=h&&h.that,E=!(!h||!h.AS_ENTRIES),I=!(!h||!h.IS_RECORD),P=!(!h||!h.IS_ITERATOR),j=!(!h||!h.INTERRUPTED),T=t(p,x),M=function(t){return y&&f(y,"normal"),new l(!0,t)},A=function(t){return E?(e(t),j?T(t[0],t[1],M):T(t[0],t[1])):j?T(t,M):T(t)};if(I)y=d.iterator;else if(P)y=d;else{if(!(g=a(d)))throw new s(n(d)+" is not iterable");if(o(g)){for(m=0,b=i(d);b>m;m++)if((w=A(d[m]))&&u(v,w))return w;return new l(!1)}y=c(d,g)}for(S=I?d.next:y.next;!(O=r(S,y)).done;){try{w=A(O.value)}catch(t){f(y,"throw",t)}if("object"==typeof w&&w&&u(v,w))return w}return new l(!1)}}function Tc(){if(gc)return yc;gc=1;var t=Ir()("iterator"),r=!1;try{var e=0,n={next:function(){return{done:!!e++}},return:function(){r=!0}};n[t]=function(){return this},Array.from(n,function(){throw 2})}catch(t){}return yc=function(e,n){try{if(!n&&!r)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},e(i)}catch(t){}return o}}function Mc(){if(bc)return mc;bc=1;var t=Qu(),r=Tc(),e=Zu().CONSTRUCTOR;return mc=e||!r(function(r){t.all(r).then(void 0,function(){})})}var Ac,Nc={};var Rc,Cc={};var kc,Lc={};var Vc,zc,Dc,Fc,_c={};function $c(){if(zc)return Vc;zc=1;var t=_r(),r=Lt(),e=nc();return Vc=function(n,o){if(t(n),r(o)&&o.constructor===n)return o;var i=e.f(n);return(0,i.resolve)(o),i.promise}}function Bc(t,r){return Bo(this,arguments,void 0,function(t,r,n,o,i){var u,c,a,f,s,l,v;return void 0===n&&(n=""),void 0===o&&(o=""),void 0===i&&(i=""),Uo(this,function(d){switch(d.label){case 0:return r?(t.restoreSelection(),u=t.getMenuConfig("insertVideo"),c=u.onInsertedVideo,a=u.checkVideo,f=u.parseVideoSrc,[4,a(r,n)]):[2];case 1:return"string"==typeof(s=d.sent())?(t.alert(s,"error"),[2]):null==s?[2]:[4,f(r)];case 2:return 0!==(l=d.sent()).trim().indexOf("<iframe ")&&(l=l.replace(/</g,"&lt;").replace(/>/g,"&gt;")),v={type:"video",src:l,poster:n,children:[{text:""}],style:{width:o,height:i}},Promise.resolve().then(function(){e.isSelectedEmptyParagraph(t)&&y.removeNodes(t,{mode:"highest"}),y.insertNodes(t,v,{mode:"highest"})}),c(v),[2]}})})}function Uc(){return Mi("w-e-insert-video")}Fc||(Fc=1,function(){if(rc)return Nu;rc=1;var t,r,e,n,o=mn(),i=mr(),u=Cu(),c=I(),a=ku(),f=D(),s=ve(),l=zu(),v=Du(),d=Fu(),p=Ht(),h=kt(),y=Lt(),g=_u(),m=Bu(),b=Gu().set,w=Yu(),S=qu(),O=Ju(),x=Xu(),E=se(),P=Qu(),j=Zu(),T=nc(),M="Promise",A=j.CONSTRUCTOR,N=j.REJECTION_EVENT,R=j.SUBCLASSING,C=E.getterFor(M),k=E.set,L=P&&P.prototype,V=P,z=L,F=c.TypeError,_=c.document,$=c.process,B=T.f,U=B,H=!!(_&&_.createEvent&&c.dispatchEvent),W="unhandledrejection",G=function(t){var r;return!(!y(t)||!h(r=t.then))&&r},K=function(t,r){var e,n,o,i=r.value,u=1===r.state,c=u?t.ok:t.fail,a=t.resolve,s=t.reject,l=t.domain;try{c?(u||(2===r.rejection&&Q(r),r.rejection=1),!0===c?e=i:(l&&l.enter(),e=c(i),l&&(l.exit(),o=!0)),e===t.promise?s(new F("Promise-chain cycle")):(n=G(e))?f(n,e,a,s):a(e)):s(i)}catch(t){l&&!o&&l.exit(),s(t)}},X=function(t,r){t.notified||(t.notified=!0,w(function(){for(var e,n=t.reactions;e=n.get();)K(e,t);t.notified=!1,r&&!t.rejection&&q(t)}))},Y=function(t,r,e){var n,o;H?((n=_.createEvent("Event")).promise=r,n.reason=e,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:r,reason:e},!N&&(o=c["on"+t])?o(n):t===W&&S("Unhandled promise rejection",e)},q=function(t){f(b,c,function(){var r,e=t.facade,n=t.value;if(J(t)&&(r=O(function(){u?$.emit("unhandledRejection",n,e):Y(W,e,n)}),t.rejection=u||J(t)?2:1,r.error))throw r.value})},J=function(t){return 1!==t.rejection&&!t.parent},Q=function(t){f(b,c,function(){var r=t.facade;u?$.emit("rejectionHandled",r):Y("rejectionhandled",r,t.value)})},Z=function(t,r,e){return function(n){t(r,n,e)}},tt=function(t,r,e){t.done||(t.done=!0,e&&(t=e),t.value=r,t.state=2,X(t,!0))},rt=function(t,r,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===r)throw new F("Promise can't be resolved itself");var n=G(r);n?w(function(){var e={done:!1};try{f(n,r,Z(rt,e,t),Z(tt,e,t))}catch(r){tt(e,r,t)}}):(t.value=r,t.state=1,X(t,!1))}catch(r){tt({done:!1},r,t)}}};if(A&&(z=(V=function(r){g(this,z),p(r),f(t,this);var e=C(this);try{r(Z(rt,e),Z(tt,e))}catch(t){tt(e,t)}}).prototype,(t=function(t){k(this,{type:M,done:!1,notified:!1,parent:!1,reactions:new x,rejection:!1,state:0,value:null})}).prototype=s(z,"then",function(t,r){var e=C(this),n=B(m(this,V));return e.parent=!0,n.ok=!h(t)||t,n.fail=h(r)&&r,n.domain=u?$.domain:void 0,0===e.state?e.reactions.add(n):w(function(){K(n,e)}),n.promise}),r=function(){var r=new t,e=C(r);this.promise=r,this.resolve=Z(rt,e),this.reject=Z(tt,e)},T.f=B=function(t){return t===V||t===e?new r(t):U(t)},!i&&h(P)&&L!==Object.prototype)){n=L.then,R||s(L,"then",function(t,r){var e=this;return new V(function(t,r){f(n,e,t,r)}).then(t,r)},{unsafe:!0});try{delete L.constructor}catch(t){}l&&l(L,z)}o({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:V}),e=a.Promise,v(V,M,!1,!0),d(M)}(),function(){if(wc)return Sc;wc=1;var t=mn(),r=D(),e=Ht(),n=nc(),o=Ju(),i=jc();t({target:"Promise",stat:!0,forced:Mc()},{all:function(t){var u=this,c=n.f(u),a=c.resolve,f=c.reject,s=o(function(){var n=e(u.resolve),o=[],c=0,s=1;i(t,function(t){var e=c++,i=!1;s++,r(n,u,t).then(function(t){i||(i=!0,o[e]=t,--s||a(o))},f)}),--s||a(o)});return s.error&&f(s.value),c.promise}})}(),function(){if(Ac)return Nc;Ac=1;var t=mn(),r=mr(),e=Zu().CONSTRUCTOR,n=Qu(),o=Vt(),i=kt(),u=ve(),c=n&&n.prototype;if(t({target:"Promise",proto:!0,forced:e,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&i(n)){var a=o("Promise").prototype.catch;c.catch!==a&&u(c,"catch",a,{unsafe:!0})}}(),function(){if(Rc)return Cc;Rc=1;var t=mn(),r=D(),e=Ht(),n=nc(),o=Ju(),i=jc();t({target:"Promise",stat:!0,forced:Mc()},{race:function(t){var u=this,c=n.f(u),a=c.reject,f=o(function(){var n=e(u.resolve);i(t,function(t){r(n,u,t).then(c.resolve,a)})});return f.error&&a(f.value),c.promise}})}(),function(){if(kc)return Lc;kc=1;var t=mn(),r=nc();t({target:"Promise",stat:!0,forced:Zu().CONSTRUCTOR},{reject:function(t){var e=r.f(this);return(0,e.reject)(t),e.promise}})}(),function(){if(Dc)return _c;Dc=1;var t=mn(),r=Vt(),e=mr(),n=Qu(),o=Zu().CONSTRUCTOR,i=$c(),u=r("Promise"),c=e&&!o;t({target:"Promise",stat:!0,forced:e||o},{resolve:function(t){return i(c&&this===u?n:this,t)}})}());var Hc,Wc,Gc,Kc,Xc,Yc,qc,Jc,Qc,Zc,ta,ra,ea,na,oa,ia=function(){function t(){this.title=r("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=Uc(),this.posterInputId=Uc(),this.buttonId=Uc()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,r){},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!g.isCollapsed(r)||!!e.getSelectedElems(t).some(function(r){var n=e.getNodeType(r);return"pre"===n||("list-item"===n||!!t.isVoid(r))}))},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=this,i=this,c=i.srcInputId,a=i.posterInputId,f=i.buttonId,s=Wo(n(r("videoModule.videoSrc"),c,r("videoModule.videoSrcPlaceHolder")),2),l=s[0],v=s[1],d=Wo(n(r("videoModule.videoPoster"),a,r("videoModule.videoPosterPlaceHolder")),2),p=d[0],h=d[1],y=u(v),g=u(h),m=Wo(o(f,r("videoModule.ok")),1)[0];if(null==this.$content){var b=u("<div></div>");b.on("click","#".concat(f),function(r){return Bo(e,void 0,void 0,function(){var e,n;return Uo(this,function(o){switch(o.label){case 0:return r.preventDefault(),e=b.find("#".concat(c)).val().trim(),n=b.find("#".concat(a)).val().trim(),[4,Bc(t,e,n)];case 1:return o.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=b}var w=this.$content;return w.empty(),w.append(l),w.append(p),w.append(m),y.val(""),g.val(""),setTimeout(function(){y.focus()}),w[0]},t}(),ua={};function ca(){if(Xc)return Kc;Xc=1;var t=xr(),r=kt(),e=Or(),n=ae(),o=function(){if(Gc)return Wc;Gc=1;var t=L();return Wc=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=n("IE_PROTO"),u=Object,c=u.prototype;return Kc=o?u.getPrototypeOf:function(n){var o=e(n);if(t(o,i))return o[i];var a=o.constructor;return r(a)&&o instanceof a?a.prototype:o instanceof u?c:null}}function aa(){if(qc)return Yc;qc=1;var t,r,e,n=L(),o=kt(),i=Lt(),u=wo(),c=ca(),a=ve(),f=Ir(),s=mr(),l=f("iterator"),v=!1;return[].keys&&("next"in(e=[].keys())?(r=c(c(e)))!==Object.prototype&&(t=r):v=!0),!i(t)||n(function(){var r={};return t[l].call(r)!==r})?t={}:s&&(t=u(t)),o(t[l])||a(t,l,function(){return this}),Yc={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:v}}function fa(){if(ta)return Zc;ta=1;var t=mn(),r=D(),e=mr(),n=ie(),o=kt(),i=function(){if(Qc)return Jc;Qc=1;var t=aa().IteratorPrototype,r=wo(),e=jt(),n=Du(),o=Oc(),i=function(){return this};return Jc=function(u,c,a,f){var s=c+" Iterator";return u.prototype=r(t,{next:e(+!f,a)}),n(u,s,!1,!0),o[s]=i,u}}(),u=ca(),c=zu(),a=Du(),f=Br(),s=ve(),l=Ir(),v=Oc(),d=aa(),p=n.PROPER,h=n.CONFIGURABLE,y=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,m=l("iterator"),b="keys",w="values",S="entries",O=function(){return this};return Zc=function(n,l,d,x,E,I,P){i(d,l,x);var j,T,M,A=function(t){if(t===E&&L)return L;if(!g&&t&&t in C)return C[t];switch(t){case b:case w:case S:return function(){return new d(this,t)}}return function(){return new d(this)}},N=l+" Iterator",R=!1,C=n.prototype,k=C[m]||C["@@iterator"]||E&&C[E],L=!g&&k||A(E),V="Array"===l&&C.entries||k;if(V&&(j=u(V.call(new n)))!==Object.prototype&&j.next&&(e||u(j)===y||(c?c(j,y):o(j[m])||s(j,m,O)),a(j,N,!0,!0),e&&(v[N]=O)),p&&E===w&&k&&k.name!==w&&(!e&&h?f(C,"name",w):(R=!0,L=function(){return r(k,this)})),E)if(T={values:A(w),keys:I?L:A(b),entries:A(S)},P)for(M in T)(g||R||!(M in C))&&s(C,M,T[M]);else t({target:l,proto:!0,forced:g||R},T);return e&&!P||C[m]===L||s(C,m,L,{name:E}),v[l]=L,T}}function sa(){return ea?ra:(ea=1,ra=function(t,r){return{value:t,done:r}})}function la(){if(oa)return na;oa=1;var t=Ct(),r=So(),e=Oc(),n=se(),o=$r().f,i=fa(),u=sa(),c=mr(),a=V(),f="Array Iterator",s=n.set,l=n.getterFor(f);na=i(Array,"Array",function(r,e){s(this,{type:f,target:t(r),index:0,kind:e})},function(){var t=l(this),r=t.target,e=t.index++;if(!r||e>=r.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(e,!1);case"values":return u(r[e],!1)}return u([e,r[e]],!1)},"values");var v=e.Arguments=e.Array;if(r("keys"),r("values"),r("entries"),!c&&a&&"values"!==v.name)try{o(v,"name",{value:"values"})}catch(t){}return na}!function(){if(Hc)return ua;Hc=1;var t=mn(),r=Tt(),e=At(),n=Ct(),o=Ti(),i=r([].join);t({target:"Array",proto:!0,forced:e!==Object||!o("join",",")},{join:function(t){return i(n(this),void 0===t?",":t)}})}(),la();var va,da={};!function(){if(va)return da;va=1;var t=mn(),r=io().map;t({target:"Array",proto:!0,forced:!jn()("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}();var pa,ha={};!function(){if(pa)return ha;pa=1;var t=mn(),r=bn(),e=En(),n=Lt(),o=Re(),i=ke(),u=Ct(),c=Sn(),a=Ir(),f=jn(),s=Uu(),l=f("slice"),v=a("species"),d=Array,p=Math.max;t({target:"Array",proto:!0,forced:!l},{slice:function(t,a){var f,l,h,y=u(this),g=i(y),m=o(t,g),b=o(void 0===a?g:a,g);if(r(y)&&(f=y.constructor,(e(f)&&(f===d||r(f.prototype))||n(f)&&null===(f=f[v]))&&(f=void 0),f===d||void 0===f))return s(y,m,b);for(l=new(void 0===f?d:f)(p(b-m,0)),h=0;m<b;m++,h++)m in y&&c(l,h,y[m]);return l.length=h,l}})}();var ya,ga={};!function(){if(ya)return ga;ya=1;var t=vi().charAt,r=Dn(),e=se(),n=fa(),o=sa(),i="String Iterator",u=e.set,c=e.getterFor(i);n(String,"String",function(t){u(this,{type:i,string:r(t),index:0})},function(){var r,e=c(this),n=e.string,i=e.index;return i>=n.length?o(void 0,!0):(r=t(n,i),e.index+=r.length,o(r,!1))})}();var ma,ba,wa,Sa,Oa={};function xa(){if(ba)return ma;ba=1;var t=L();return ma=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function Ea(){if(Sa)return wa;Sa=1;var t=ve();return wa=function(r,e,n){for(var o in e)t(r,o,e[o],n);return r}}var Ia,Pa,ja,Ta,Ma,Aa,Na,Ra,Ca,ka,La,Va,za,Da,Fa={exports:{}},_a={};function $a(){if(Ia)return _a;Ia=1;var t=Mt(),r=Ct(),e=De().f,n=Uu(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return _a.f=function(i){return o&&"Window"===t(i)?function(t){try{return e(t)}catch(t){return n(o)}}(i):e(r(i))},_a}function Ba(){if(Ma)return Ta;Ma=1;var t=L(),r=Lt(),e=Mt(),n=function(){if(ja)return Pa;ja=1;var t=L();return Pa=t(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})}(),o=Object.isExtensible,i=t(function(){});return Ta=i||n?function(t){return!!r(t)&&((!n||"ArrayBuffer"!==e(t))&&(!o||o(t)))}:o}function Ua(){if(Aa)return Fa.exports;Aa=1;var t=mn(),r=Tt(),e=fe(),n=Lt(),o=xr(),i=$r().f,u=De(),c=$a(),a=Ba(),f=Er(),s=xa(),l=!1,v=f("meta"),d=0,p=function(t){i(t,v,{value:{objectID:"O"+d++,weakData:{}}})},h=Fa.exports={enable:function(){h.enable=function(){},l=!0;var e=u.f,n=r([].splice),o={};o[v]=1,e(o).length&&(u.f=function(t){for(var r=e(t),o=0,i=r.length;o<i;o++)if(r[o]===v){n(r,o,1);break}return r},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(t,r){if(!n(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,v)){if(!a(t))return"F";if(!r)return"E";p(t)}return t[v].objectID},getWeakData:function(t,r){if(!o(t,v)){if(!a(t))return!0;if(!r)return!1;p(t)}return t[v].weakData},onFreeze:function(t){return s&&l&&a(t)&&!o(t,v)&&p(t),t}};return e[v]=!0,Fa.exports}function Ha(){if(Ra)return Na;Ra=1;var t=kt(),r=Lt(),e=zu();return Na=function(n,o,i){var u,c;return e&&t(u=o.constructor)&&u!==i&&r(c=u.prototype)&&c!==i.prototype&&e(n,c),n}}function Wa(){if(ka)return Ca;ka=1;var t=mn(),r=I(),e=Tt(),n=gn(),o=ve(),i=Ua(),u=jc(),c=_u(),a=kt(),f=Nt(),s=Lt(),l=L(),v=Tc(),d=Du(),p=Ha();return Ca=function(h,y,g){var m=-1!==h.indexOf("Map"),b=-1!==h.indexOf("Weak"),w=m?"set":"add",S=r[h],O=S&&S.prototype,x=S,E={},I=function(t){var r=e(O[t]);o(O,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!s(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return b&&!s(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!s(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(n(h,!a(S)||!(b||O.forEach&&!l(function(){(new S).entries().next()}))))x=g.getConstructor(y,h,m,w),i.enable();else if(n(h,!0)){var P=new x,j=P[w](b?{}:-0,1)!==P,T=l(function(){P.has(1)}),M=v(function(t){new S(t)}),A=!b&&l(function(){for(var t=new S,r=5;r--;)t[w](r,r);return!t.has(-0)});M||((x=y(function(t,r){c(t,O);var e=p(new S,t,x);return f(r)||u(r,e[w],{that:e,AS_ENTRIES:m}),e})).prototype=O,O.constructor=x),(T||A)&&(I("delete"),I("has"),m&&I("get")),(A||j)&&I(w),b&&O.clear&&delete O.clear}return E[h]=x,t({global:!0,constructor:!0,forced:x!==S},E),d(x,h),b||g.setStrong(x,h,m),x}}function Ga(){if(Va)return La;Va=1;var t=Tt(),r=Ea(),e=Ua().getWeakData,n=_u(),o=_r(),i=Nt(),u=Lt(),c=jc(),a=io(),f=xr(),s=se(),l=s.set,v=s.getterFor,d=a.find,p=a.findIndex,h=t([].splice),y=0,g=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,r){return d(t.entries,function(t){return t[0]===r})};return m.prototype={get:function(t){var r=b(this,t);if(r)return r[1]},has:function(t){return!!b(this,t)},set:function(t,r){var e=b(this,t);e?e[1]=r:this.entries.push([t,r])},delete:function(t){var r=p(this.entries,function(r){return r[0]===t});return~r&&h(this.entries,r,1),!!~r}},La={getConstructor:function(t,a,s,d){var p=t(function(t,r){n(t,h),l(t,{type:a,id:y++,frozen:null}),i(r)||c(r,t[d],{that:t,AS_ENTRIES:s})}),h=p.prototype,m=v(a),b=function(t,r,n){var i=m(t),u=e(o(r),!0);return!0===u?g(i).set(r,n):u[i.id]=n,t};return r(h,{delete:function(t){var r=m(this);if(!u(t))return!1;var n=e(t);return!0===n?g(r).delete(t):n&&f(n,r.id)&&delete n[r.id]},has:function(t){var r=m(this);if(!u(t))return!1;var n=e(t);return!0===n?g(r).has(t):n&&f(n,r.id)}}),r(h,s?{get:function(t){var r=m(this);if(u(t)){var n=e(t);if(!0===n)return g(r).get(t);if(n)return n[r.id]}},set:function(t,r){return b(this,t,r)}}:{add:function(t){return b(this,t,!0)}}),p}}}Da||(Da=1,function(){if(za)return Oa;za=1;var t,r=xa(),e=I(),n=Tt(),o=Ea(),i=Ua(),u=Wa(),c=Ga(),a=Lt(),f=se().enforce,s=L(),l=ce(),v=Object,d=Array.isArray,p=v.isExtensible,h=v.isFrozen,y=v.isSealed,g=v.freeze,m=v.seal,b=!e.ActiveXObject&&"ActiveXObject"in e,w=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},S=u("WeakMap",w,c),O=S.prototype,x=n(O.set);if(l)if(b){t=c.getConstructor(w,"WeakMap",!0),i.enable();var E=n(O.delete),P=n(O.has),j=n(O.get);o(O,{delete:function(r){if(a(r)&&!p(r)){var e=f(this);return e.frozen||(e.frozen=new t),E(this,r)||e.frozen.delete(r)}return E(this,r)},has:function(r){if(a(r)&&!p(r)){var e=f(this);return e.frozen||(e.frozen=new t),P(this,r)||e.frozen.has(r)}return P(this,r)},get:function(r){if(a(r)&&!p(r)){var e=f(this);return e.frozen||(e.frozen=new t),P(this,r)?j(this,r):e.frozen.get(r)}return j(this,r)},set:function(r,e){if(a(r)&&!p(r)){var n=f(this);n.frozen||(n.frozen=new t),P(this,r)?x(this,r,e):n.frozen.set(r,e)}else x(this,r,e);return this}})}else r&&s(function(){var t=g([]);return x(new S,t,1),!h(t)})&&o(O,{set:function(t,r){var e;return d(t)&&(h(t)?e=g:y(t)&&(e=m)),x(this,t,r),e&&e(t),this}})}());var Ka,Xa={};function Ya(t){return t.getMenuConfig("uploadVideo")}!function(){if(Ka)return Xa;Ka=1;var t=I(),r=Pi(),e=ji(),n=la(),o=Br(),i=Du(),u=Ir()("iterator"),c=n.values,a=function(t,e){if(t){if(t[u]!==c)try{o(t,u,c)}catch(r){t[u]=c}if(i(t,e,!0),r[e])for(var a in n)if(t[a]!==n[a])try{o(t,a,n[a])}catch(r){t[a]=n[a]}}};for(var f in r)a(t[f]&&t[f].prototype,f);a(e,"DOMTokenList")}();var qa=new WeakMap;function Ja(t,r){return Bo(this,void 0,void 0,function(){var e,n;return Uo(this,function(o){switch(o.label){case 0:return e=function(t){var r=qa.get(t);if(null!=r)return r;var e=Ya(t),n=e.onSuccess,o=e.onProgress,u=e.onFailed,c=e.customInsert,a=e.onError;return r=i($o($o({},e),{onProgress:function(r){t.showProgressBar(r),o&&o(r)},onSuccess:function(r,e){if(c)return c(e,function(r,e){return Bc(t,r,e)}),void n(r,e);var o=e.errno,i=void 0===o?1:o,a=e.data,f=void 0===a?{}:a;if(0===i){var s=f.url,l=void 0===s?"":s,v=f.poster;Bc(t,l,void 0===v?"":v),n(r,e)}else u(r,e)},onError:function(t,r,e){a(t,r,e)}})),qa.set(t,r),r}(t),n=r.map(function(t){return{name:t.name,type:t.type,size:t.size,data:t}}),e.addFiles(n),[4,e.upload()];case 1:return o.sent(),[2]}})})}var Qa=function(){function t(){this.title=r("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,r){var e=this.getMenuConfig(t),n=e.allowedFileTypes,o=void 0===n?[]:n,i=e.customBrowseAndUpload;if(i)i(function(r,e){return Bc(t,r,e)});else{var c="";o.length>0&&(c='accept="'.concat(o.join(", "),'"'));var a=u("body"),f=u('<input type="file" '.concat(c," multiple/>"));f.hide(),a.append(f),f.click(),f.on("change",function(){var r=f[0].files;!function(t,r){Bo(this,void 0,void 0,function(){var e,n,o,i,u,c,a,f,s,l,v,d;return Uo(this,function(p){switch(p.label){case 0:if(null==r)return[2];e=Array.prototype.slice.call(r),n=[],o=Ya(t).customUpload,p.label=1;case 1:p.trys.push([1,8,9,14]),i=!0,u=Go(e),p.label=2;case 2:return[4,u.next()];case 3:return c=p.sent(),(s=c.done)?[3,7]:(d=c.value,i=!1,a=d,o?[4,o(a,function(r,e){return Bc(t,r,e)},t)]:[3,5]);case 4:return p.sent(),[3,6];case 5:n.push(a),p.label=6;case 6:return i=!0,[3,2];case 7:return[3,14];case 8:return f=p.sent(),l={error:f},[3,14];case 9:return p.trys.push([9,,12,13]),i||s||!(v=u.return)?[3,11]:[4,v.call(u)];case 10:p.sent(),p.label=11;case 11:return[3,13];case 12:if(l)throw l.error;return[7];case 13:return[7];case 14:return n.length>0?[4,Ja(t,n)]:[3,16];case 15:p.sent(),p.label=16;case 16:return[2]}})})}(t,r)})}},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!g.isCollapsed(r)||!!e.getSelectedElems(t).some(function(r){var n=e.getNodeType(r);return"pre"===n||("list-item"===n||!!t.isVoid(r))}))},t.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},t}(),Za={key:"insertVideo",factory:function(){return new ia},config:{onInsertedVideo:function(t){},checkVideo:function(t,r){return!0},parseVideoSrc:function(t){return t}}},tf={key:"uploadVideo",factory:function(){return new Qa},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,r){},onFailed:function(t,r){console.error("'".concat(t.name,"' upload failed"),r)},onError:function(t,r,e){console.error("'".concat(t.name," upload error"),r,e)}}},rf={key:"editVideoSize",factory:function(){return new Ri}},ef={key:"editVideoSrc",factory:function(){return new Au}};function nf(t,r,e,n,o,i){return void 0===r&&(r=""),void 0===e&&(e="auto"),void 0===n&&(n="auto"),void 0===o&&(o={}),void 0===i&&(i="center"),{type:"video",src:t,poster:r,width:e,height:n,style:o,children:[{text:""}],textAlign:i}}var of={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,r,e){var n=u(t),o="",i="",c="auto",a="auto",f={},s=n.find("iframe");if(s.length>0)return c=s.attr("width")||"auto",a=s.attr("height")||"auto",f=Ai(f=s.attr("style")||""),nf(o=s[0].outerHTML,i,c,a,f,Ai(n.attr("style")||"")["text-align"]||"center");var l=n.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),c=l.attr("width")||"auto",a=l.attr("height")||"auto",nf(o,i=l.attr("poster")||"",c,a,f=Ai(f=l.attr("style")||""),Ai(n.attr("style")||"")["text-align"]||"center")}};var uf,cf={};!function(){if(uf)return cf;uf=1;var t=mn(),r=Le().includes,e=L(),n=So();t({target:"Array",proto:!0,forced:e(function(){return!Array(1).includes()})},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("includes")}();var af={renderElems:[{type:"video",renderElem:function(t,r,n){var o,i=t,u=i.src,c=void 0===u?"":u,a=i.poster,f=void 0===a?"":a,s=i.key,l=void 0===s?"":s,v=i.width,d=void 0===v?"auto":v,p=i.height,h=void 0===p?"auto":p,y=i.style,g=void 0===y?{}:y,m=i.textAlign,S=void 0===m?"center":m,O=e.isNodeSelected(n,t);if(0===c.trim().indexOf("<iframe ")){var x=Hn(c,d,h,g);o=b("div",{className:"w-e-textarea-video-container","data-selected":O?"true":"",style:{textAlign:S},innerHTML:x})}else{var E=b("video",{key:l,poster:f,controls:!0,style:g},b("source",{src:c,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==d&&(E.data.width=d),"auto"!==h&&(E.data.height=h),o=b("div",{className:"w-e-textarea-video-container","data-selected":O?"true":"",style:{textAlign:S}},E)}return w("div",{props:{contentEditable:!1},on:{mousedown:function(t){return t.preventDefault()}}},o)}}],elemsToHtml:[Xn],preParseHtml:[{selector:"iframe,video,p",preParseHtml:function(t){var r=u(t),e=r;if("p"===Un(r)){var n=r.children();if(1===n.length){var o=n[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(e=u(o))}}var c=Un(e);if("iframe"!==c&&"video"!==c)return e[0];if("video"===e.parent().attr("data-w-e-type"))return e[0];var a=u('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return a.append(e),a[0]}}],parseElemsHtml:[of],menus:[Za,tf,rf,ef],editorPlugin:function(t){var r=t.isVoid,n=t.normalizeNode,o=t;return o.isVoid=function(t){return"video"===t.type||r(t)},o.normalizeNode=function(t){var r=Wo(t,2),i=r[0],u=r[1];"video"===e.getNodeType(i)&&(e.isLastNode(o,i)&&y.insertNodes(o,e.genEmptyParagraph(),{at:[u[0]+1]}));return n([i,u])},o}};export{af as default};
2
2
  //# sourceMappingURL=index.mjs.map