@wangeditor-next/yjs
Version:
Yjs binding for wangeditor-next.
1 lines • 71.6 kB
JavaScript
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("yjs"),require("slate")):"function"==typeof define&&define.amd?define(["exports","yjs","slate"],r):r((t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorYjsModule={},t.Y,t.slate)}(this,function(t,r,n){"use strict";function e(t){var r=Object.create(null);return t&&Object.keys(t).forEach(function(n){if("default"!==n){var e=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,e.get?e:{enumerable:!0,get:function(){return t[n]}})}}),r.default=t,Object.freeze(r)}var o,i,u=e(r),a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},c={};function f(){if(i)return o;i=1;var t=function(t){return t&&t.Math===Math&&t};return o=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof a&&a)||t("object"==typeof o&&o)||function(){return this}()||Function("return this")()}var s,l,v,d,p,h,g,y,b={};function m(){return l?s:(l=1,s=function(t){try{return!!t()}catch(t){return!0}})}function w(){if(d)return v;d=1;var t=m();return v=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function O(){if(h)return p;h=1;var t=m();return p=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function x(){if(y)return g;y=1;var t=O(),r=Function.prototype.call;return g=t?r.bind(r):function(){return r.apply(r,arguments)},g}var S,E,T,j,P,R,A,C,k,L,F,_,D,M,I,z,N,W,Y,X,G,B,U,V,q,H,$,J,K,Q,Z,tt,rt,nt,et,ot,it,ut,at,ct,ft,st={};function lt(){if(S)return st;S=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);return st.f=n?function(t){var n=r(this,t);return!!n&&n.enumerable}:t,st}function vt(){return T?E:(T=1,E=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function dt(){if(P)return j;P=1;var t=O(),r=Function.prototype,n=r.call,e=t&&r.bind.bind(n,n);return j=t?e:function(t){return function(){return n.apply(t,arguments)}},j}function pt(){if(A)return R;A=1;var t=dt(),r=t({}.toString),n=t("".slice);return R=function(t){return n(r(t),8,-1)}}function ht(){if(k)return C;k=1;var t=dt(),r=m(),n=pt(),e=Object,o=t("".split);return C=r(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):e(t)}:e}function gt(){return F?L:(F=1,L=function(t){return null==t})}function yt(){if(D)return _;D=1;var t=gt(),r=TypeError;return _=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}function bt(){if(I)return M;I=1;var t=ht(),r=yt();return M=function(n){return t(r(n))}}function mt(){if(N)return z;N=1;var t="object"==typeof document&&document.all;return z=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function wt(){if(Y)return W;Y=1;var t=mt();return W=function(r){return"object"==typeof r?null!==r:t(r)}}function Ot(){if(G)return X;G=1;var t=f(),r=mt();return X=function(n,e){return arguments.length<2?(o=t[n],r(o)?o:void 0):t[n]&&t[n][e];var o},X}function xt(){if(U)return B;U=1;var t=dt();return B=t({}.isPrototypeOf)}function St(){if($)return H;$=1;var t,r,n=f(),e=function(){if(q)return V;q=1;var t=f().navigator,r=t&&t.userAgent;return V=r?String(r):""}(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,a=u&&u.v8;return a&&(r=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(r=+t[1]),H=r}function Et(){if(K)return J;K=1;var t=St(),r=m(),n=f().String;return J=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!n(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function Tt(){if(Z)return Q;Z=1;var t=Et();return Q=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function jt(){if(rt)return tt;rt=1;var t=Ot(),r=mt(),n=xt(),e=Tt(),o=Object;return tt=e?function(t){return"symbol"==typeof t}:function(e){var i=t("Symbol");return r(i)&&n(i.prototype,o(e))}}function Pt(){if(et)return nt;et=1;var t=String;return nt=function(r){try{return t(r)}catch(t){return"Object"}}}function Rt(){if(it)return ot;it=1;var t=mt(),r=Pt(),n=TypeError;return ot=function(e){if(t(e))return e;throw new n(r(e)+" is not a function")}}function At(){if(at)return ut;at=1;var t=Rt(),r=gt();return ut=function(n,e){var o=n[e];return r(o)?void 0:t(o)}}function Ct(){if(ft)return ct;ft=1;var t=x(),r=mt(),n=wt(),e=TypeError;return ct=function(o,i){var u,a;if("string"===i&&r(u=o.toString)&&!n(a=t(u,o)))return a;if(r(u=o.valueOf)&&!n(a=t(u,o)))return a;if("string"!==i&&r(u=o.toString)&&!n(a=t(u,o)))return a;throw new e("Can't convert object to primitive value")}}var kt,Lt,Ft,_t,Dt,Mt,It,zt,Nt,Wt,Yt,Xt,Gt,Bt,Ut,Vt,qt,Ht,$t,Jt,Kt,Qt,Zt,tr,rr={exports:{}};function nr(){return Lt?kt:(Lt=1,kt=!1)}function er(){if(_t)return Ft;_t=1;var t=f(),r=Object.defineProperty;return Ft=function(n,e){try{r(t,n,{value:e,configurable:!0,writable:!0})}catch(r){t[n]=e}return e}}function or(){if(Dt)return rr.exports;Dt=1;var t=nr(),r=f(),n=er(),e="__core-js_shared__",o=rr.exports=r[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.45.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.0/LICENSE",source:"https://github.com/zloirock/core-js"}),rr.exports}function ir(){if(It)return Mt;It=1;var t=or();return Mt=function(r,n){return t[r]||(t[r]=n||{})}}function ur(){if(Nt)return zt;Nt=1;var t=yt(),r=Object;return zt=function(n){return r(t(n))}}function ar(){if(Yt)return Wt;Yt=1;var t=dt(),r=ur(),n=t({}.hasOwnProperty);return Wt=Object.hasOwn||function(t,e){return n(r(t),e)}}function cr(){if(Gt)return Xt;Gt=1;var t=dt(),r=0,n=Math.random(),e=t(1.1.toString);return Xt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++r+n,36)}}function fr(){if(Ut)return Bt;Ut=1;var t=f(),r=ir(),n=ar(),e=cr(),o=Et(),i=Tt(),u=t.Symbol,a=r("wks"),c=i?u.for||u:u&&u.withoutSetter||e;return Bt=function(t){return n(a,t)||(a[t]=o&&n(u,t)?u[t]:c("Symbol."+t)),a[t]}}function sr(){if(qt)return Vt;qt=1;var t=x(),r=wt(),n=jt(),e=At(),o=Ct(),i=fr(),u=TypeError,a=i("toPrimitive");return Vt=function(i,c){if(!r(i)||n(i))return i;var f,s=e(i,a);if(s){if(void 0===c&&(c="default"),f=t(s,i,c),!r(f)||n(f))return f;throw new u("Can't convert object to primitive value")}return void 0===c&&(c="number"),o(i,c)}}function lr(){if($t)return Ht;$t=1;var t=sr(),r=jt();return Ht=function(n){var e=t(n,"string");return r(e)?e:e+""}}function vr(){if(Kt)return Jt;Kt=1;var t=f(),r=wt(),n=t.document,e=r(n)&&r(n.createElement);return Jt=function(t){return e?n.createElement(t):{}}}function dr(){if(Zt)return Qt;Zt=1;var t=w(),r=m(),n=vr();return Qt=!t&&!r(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function pr(){if(tr)return b;tr=1;var t=w(),r=x(),n=lt(),e=vt(),o=bt(),i=lr(),u=ar(),a=dr(),c=Object.getOwnPropertyDescriptor;return b.f=t?c:function(t,f){if(t=o(t),f=i(f),a)try{return c(t,f)}catch(t){}if(u(t,f))return e(!r(n.f,t,f),t[f])},b}var hr,gr,yr,br,mr,wr,Or,xr={};function Sr(){if(gr)return hr;gr=1;var t=w(),r=m();return hr=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Er(){if(br)return yr;br=1;var t=wt(),r=String,n=TypeError;return yr=function(e){if(t(e))return e;throw new n(r(e)+" is not an object")}}function Tr(){if(mr)return xr;mr=1;var t=w(),r=dr(),n=Sr(),e=Er(),o=lr(),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c="enumerable",f="configurable",s="writable";return xr.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=a(t,r);i&&i[s]&&(t[r]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:c in n?n[c]:i[c],writable:!1})}return u(t,r,n)}:u:function(t,n,a){if(e(t),n=o(n),e(a),r)try{return u(t,n,a)}catch(t){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(t[n]=a.value),t},xr}function jr(){if(Or)return wr;Or=1;var t=w(),r=Tr(),n=vt();return wr=t?function(t,e,o){return r.f(t,e,n(1,o))}:function(t,r,n){return t[r]=n,t}}var Pr,Rr,Ar,Cr,kr,Lr,Fr,_r,Dr,Mr,Ir,zr,Nr,Wr,Yr,Xr={exports:{}};function Gr(){if(Rr)return Pr;Rr=1;var t=w(),r=ar(),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 Pr={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function Br(){if(Cr)return Ar;Cr=1;var t=dt(),r=mt(),n=or(),e=t(Function.toString);return r(n.inspectSource)||(n.inspectSource=function(t){return e(t)}),Ar=n.inspectSource}function Ur(){if(Lr)return kr;Lr=1;var t=f(),r=mt(),n=t.WeakMap;return kr=r(n)&&/native code/.test(String(n))}function Vr(){if(_r)return Fr;_r=1;var t=ir(),r=cr(),n=t("keys");return Fr=function(t){return n[t]||(n[t]=r(t))}}function qr(){return Mr?Dr:(Mr=1,Dr={})}function Hr(){if(zr)return Ir;zr=1;var t,r,n,e=Ur(),o=f(),i=wt(),u=jr(),a=ar(),c=or(),s=Vr(),l=qr(),v="Object already initialized",d=o.TypeError,p=o.WeakMap;if(e||c.state){var h=c.state||(c.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,r){if(h.has(t))throw new d(v);return r.facade=t,h.set(t,r),r},r=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var g=s("state");l[g]=!0,t=function(t,r){if(a(t,g))throw new d(v);return r.facade=t,u(t,g,r),r},r=function(t){return a(t,g)?t[g]:{}},n=function(t){return a(t,g)}}return Ir={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 d("Incompatible receiver, "+t+" required");return e}}}}function $r(){if(Nr)return Xr.exports;Nr=1;var t=dt(),r=m(),n=mt(),e=ar(),o=w(),i=Gr().CONFIGURABLE,u=Br(),a=Hr(),c=a.enforce,f=a.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}),g=String(String).split("String"),y=Xr.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=c(t);return e(u,"source")||(u.source=p(g,"string"==typeof r?r:"")),t};return Function.prototype.toString=y(function(){return n(this)&&f(this).source||u(this)},"toString"),Xr.exports}function Jr(){if(Yr)return Wr;Yr=1;var t=mt(),r=Tr(),n=$r(),e=er();return Wr=function(o,i,u,a){a||(a={});var c=a.enumerable,f=void 0!==a.name?a.name:i;if(t(u)&&n(u,f,a),a.global)c?o[i]=u:e(i,u);else{try{a.unsafe?o[i]&&(c=!0):delete o[i]}catch(t){}c?o[i]=u:r.f(o,i,{value:u,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return o}}var Kr,Qr,Zr,tn,rn,nn,en,on,un,an,cn,fn,sn,ln,vn,dn,pn,hn={};function gn(){if(tn)return Zr;tn=1;var t=function(){if(Qr)return Kr;Qr=1;var t=Math.ceil,r=Math.floor;return Kr=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}}();return Zr=function(r){var n=+r;return n!=n||0===n?0:t(n)}}function yn(){if(nn)return rn;nn=1;var t=gn(),r=Math.max,n=Math.min;return rn=function(e,o){var i=t(e);return i<0?r(i+o,0):n(i,o)}}function bn(){if(on)return en;on=1;var t=gn(),r=Math.min;return en=function(n){var e=t(n);return e>0?r(e,9007199254740991):0}}function mn(){if(an)return un;an=1;var t=bn();return un=function(r){return t(r.length)}}function wn(){if(fn)return cn;fn=1;var t=bt(),r=yn(),n=mn(),e=function(e){return function(o,i,u){var a=t(o),c=n(a);if(0===c)return!e&&-1;var f,s=r(u,c);if(e&&i!=i){for(;c>s;)if((f=a[s++])!=f)return!0}else for(;c>s;s++)if((e||s in a)&&a[s]===i)return e||s||0;return!e&&-1}};return cn={includes:e(!0),indexOf:e(!1)}}function On(){if(ln)return sn;ln=1;var t=dt(),r=ar(),n=bt(),e=wn().indexOf,o=qr(),i=t([].push);return sn=function(t,u){var a,c=n(t),f=0,s=[];for(a in c)!r(o,a)&&r(c,a)&&i(s,a);for(;u.length>f;)r(c,a=u[f++])&&(~e(s,a)||i(s,a));return s}}function xn(){return dn?vn:(dn=1,vn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function Sn(){if(pn)return hn;pn=1;var t=On(),r=xn().concat("length","prototype");return hn.f=Object.getOwnPropertyNames||function(n){return t(n,r)},hn}var En,Tn,jn,Pn,Rn,An,Cn,kn,Ln,Fn,_n,Dn,Mn,In,zn,Nn,Wn,Yn,Xn,Gn,Bn,Un,Vn,qn,Hn,$n,Jn,Kn,Qn,Zn,te={};function re(){return En||(En=1,te.f=Object.getOwnPropertySymbols),te}function ne(){if(jn)return Tn;jn=1;var t=Ot(),r=dt(),n=Sn(),e=re(),o=Er(),i=r([].concat);return Tn=t("Reflect","ownKeys")||function(t){var r=n.f(o(t)),u=e.f;return u?i(r,u(t)):r}}function ee(){if(Rn)return Pn;Rn=1;var t=ar(),r=ne(),n=pr(),e=Tr();return Pn=function(o,i,u){for(var a=r(i),c=e.f,f=n.f,s=0;s<a.length;s++){var l=a[s];t(o,l)||u&&t(u,l)||c(o,l,f(i,l))}}}function oe(){if(Cn)return An;Cn=1;var t=m(),r=mt(),n=/#|\.prototype\./,e=function(n,e){var c=i[o(n)];return c===a||c!==u&&(r(e)?t(e):!!e)},o=e.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",a=e.POLYFILL="P";return An=e}function ie(){if(Ln)return kn;Ln=1;var t=f(),r=pr().f,n=jr(),e=Jr(),o=er(),i=ee(),u=oe();return kn=function(a,c){var f,s,l,v,d,p=a.target,h=a.global,g=a.stat;if(f=h?t:g?t[p]||o(p,{}):t[p]&&t[p].prototype)for(s in c){if(v=c[s],l=a.dontCallGetSet?(d=r(f,s))&&d.value:f[s],!u(h?s:p+(g?".":"#")+s,a.forced)&&void 0!==l){if(typeof v==typeof l)continue;i(v,l)}(a.sham||l&&l.sham)&&n(v,"sham",!0),e(f,s,v,a)}}}function ue(){if(_n)return Fn;_n=1;var t=pt(),r=dt();return Fn=function(n){if("Function"===t(n))return r(n)}}function ae(){if(Mn)return Dn;Mn=1;var t=ue(),r=Rt(),n=O(),e=t(t.bind);return Dn=function(t,o){return r(t),void 0===o?t:n?e(t,o):function(){return t.apply(o,arguments)}},Dn}function ce(){if(zn)return In;zn=1;var t=pt();return In=Array.isArray||function(r){return"Array"===t(r)}}function fe(){if(Wn)return Nn;Wn=1;var t={};return t[fr()("toStringTag")]="z",Nn="[object z]"===String(t)}function se(){if(Xn)return Yn;Xn=1;var t=fe(),r=mt(),n=pt(),e=fr()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Yn=t?n:function(t){var u,a,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,r){try{return t[r]}catch(t){}}(u=o(t),e))?a:i?n(u):"Object"===(c=n(u))&&r(u.callee)?"Arguments":c}}function le(){if(Bn)return Gn;Bn=1;var t=dt(),r=m(),n=mt(),e=se(),o=Ot(),i=Br(),u=function(){},a=o("Reflect","construct"),c=/^\s*(?:class|function)\b/,f=t(c.exec),s=!c.test(u),l=function(t){if(!n(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},v=function(t){if(!n(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!f(c,i(t))}catch(t){return!0}};return v.sham=!0,Gn=!a||r(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?v:l}function ve(){if(Vn)return Un;Vn=1;var t=ce(),r=le(),n=wt(),e=fr()("species"),o=Array;return Un=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 de(){if(Hn)return qn;Hn=1;var t=ve();return qn=function(r,n){return new(t(r))(0===n?0:n)}}function pe(){if(Jn)return $n;Jn=1;var t=ae(),r=dt(),n=ht(),e=ur(),o=mn(),i=de(),u=r([].push),a=function(r){var a=1===r,c=2===r,f=3===r,s=4===r,l=6===r,v=7===r,d=5===r||l;return function(p,h,g,y){for(var b,m,w=e(p),O=n(w),x=o(O),S=t(h,g),E=0,T=y||i,j=a?T(p,x):c||v?T(p,0):void 0;x>E;E++)if((d||E in O)&&(m=S(b=O[E],E,w),r))if(a)j[E]=m;else if(m)switch(r){case 3:return!0;case 5:return b;case 6:return E;case 2:u(j,b)}else switch(r){case 4:return!1;case 7:u(j,b)}return l?-1:f||s?s:j}};return $n={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}function he(){if(Qn)return Kn;Qn=1;var t=m(),r=fr(),n=St(),e=r("species");return Kn=function(r){return n>=51||!t(function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[r](Boolean).foo})}}!function(){if(Zn)return c;Zn=1;var t=ie(),r=pe().filter;t({target:"Array",proto:!0,forced:!he()("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}();var ge,ye,be,me,we,Oe,xe,Se,Ee,Te,je,Pe,Re,Ae,Ce,ke,Le,Fe,_e,De={};function Me(){if(ye)return ge;ye=1;var t=x(),r=Er(),n=At();return ge=function(e,o,i){var u,a;r(e);try{if(!(u=n(e,"return"))){if("throw"===o)throw i;return i}u=t(u,e)}catch(t){a=!0,u=t}if("throw"===o)throw i;if(a)throw u;return r(u),i}}function Ie(){if(me)return be;me=1;var t=Er(),r=Me();return be=function(n,e,o,i){try{return i?e(t(o)[0],o[1]):e(o)}catch(t){r(n,"throw",t)}}}function ze(){return Oe?we:(Oe=1,we={})}function Ne(){if(Se)return xe;Se=1;var t=fr(),r=ze(),n=t("iterator"),e=Array.prototype;return xe=function(t){return void 0!==t&&(r.Array===t||e[n]===t)}}function We(){if(Te)return Ee;Te=1;var t=w(),r=Tr(),n=vt();return Ee=function(e,o,i){t?r.f(e,o,n(0,i)):e[o]=i}}function Ye(){if(Pe)return je;Pe=1;var t=se(),r=At(),n=gt(),e=ze(),o=fr()("iterator");return je=function(i){if(!n(i))return r(i,o)||r(i,"@@iterator")||e[t(i)]}}function Xe(){if(Ae)return Re;Ae=1;var t=x(),r=Rt(),n=Er(),e=Pt(),o=Ye(),i=TypeError;return Re=function(u,a){var c=arguments.length<2?o(u):a;if(r(c))return n(t(c,u));throw new i(e(u)+" is not iterable")},Re}function Ge(){if(Fe)return Le;Fe=1;var t=fr()("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 Le=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(){if(_e)return De;_e=1;var t=ie(),r=function(){if(ke)return Ce;ke=1;var t=ae(),r=x(),n=ur(),e=Ie(),o=Ne(),i=le(),u=mn(),a=We(),c=Xe(),f=Ye(),s=Array;return Ce=function(l){var v=n(l),d=i(this),p=arguments.length,h=p>1?arguments[1]:void 0,g=void 0!==h;g&&(h=t(h,p>2?arguments[2]:void 0));var y,b,m,w,O,x,S=f(v),E=0;if(!S||this===s&&o(S))for(y=u(v),b=d?new this(y):s(y);y>E;E++)x=g?h(v[E],E):v[E],a(b,E,x);else for(b=d?new this:[],O=(w=c(v,S)).next;!(m=r(O,w)).done;E++)x=g?e(w,h,[m.value,E],!0):m.value,a(b,E,x);return b.length=E,b},Ce}();t({target:"Array",stat:!0,forced:!Ge()(function(t){Array.from(t)})},{from:r})}();var Be,Ue,Ve,qe,He,$e,Je,Ke,Qe,Ze,to,ro,no,eo,oo,io,uo,ao,co,fo,so,lo,vo,po,ho,go,yo,bo,mo,wo,Oo,xo,So,Eo={};function To(){if(Ue)return Be;Ue=1;var t=On(),r=xn();return Be=Object.keys||function(n){return t(n,r)}}function jo(){if(Ve)return Eo;Ve=1;var t=w(),r=Sr(),n=Tr(),e=Er(),o=bt(),i=To();return Eo.f=t&&!r?Object.defineProperties:function(t,r){e(t);for(var u,a=o(r),c=i(r),f=c.length,s=0;f>s;)n.f(t,u=c[s++],a[u]);return t},Eo}function Po(){if(He)return qe;He=1;var t=Ot();return qe=t("document","documentElement")}function Ro(){if(Je)return $e;Je=1;var t,r=Er(),n=jo(),e=xn(),o=qr(),i=Po(),u=vr(),a=Vr(),c="prototype",f="script",s=a("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 a=e.length;a--;)delete p[c][e[a]];return p()};return o[s]=!0,$e=Object.create||function(t,e){var o;return null!==t?(l[c]=r(t),o=new l,l[c]=null,o[s]=t):o=p(),void 0===e?o:n.f(o,e)}}function Ao(){if(Qe)return Ke;Qe=1;var t=fr(),r=Ro(),n=Tr().f,e=t("unscopables"),o=Array.prototype;return void 0===o[e]&&n(o,e,{configurable:!0,value:r(null)}),Ke=function(t){o[e][t]=!0}}function Co(){if(no)return ro;no=1;var t=ar(),r=mt(),n=ur(),e=Vr(),o=function(){if(to)return Ze;to=1;var t=m();return Ze=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=e("IE_PROTO"),u=Object,a=u.prototype;return ro=o?u.getPrototypeOf:function(e){var o=n(e);if(t(o,i))return o[i];var c=o.constructor;return r(c)&&o instanceof c?c.prototype:o instanceof u?a:null}}function ko(){if(oo)return eo;oo=1;var t,r,n,e=m(),o=mt(),i=wt(),u=Ro(),a=Co(),c=Jr(),f=fr(),s=nr(),l=f("iterator"),v=!1;return[].keys&&("next"in(n=[].keys())?(r=a(a(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])||c(t,l,function(){return this}),eo={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:v}}function Lo(){if(uo)return io;uo=1;var t=Tr().f,r=ar(),n=fr()("toStringTag");return io=function(e,o,i){e&&!i&&(e=e.prototype),e&&!r(e,n)&&t(e,n,{configurable:!0,value:o})}}function Fo(){if(vo)return lo;vo=1;var t=wt();return lo=function(r){return t(r)||null===r}}function _o(){if(ho)return po;ho=1;var t=Fo(),r=String,n=TypeError;return po=function(e){if(t(e))return e;throw new n("Can't set "+r(e)+" as a prototype")}}function Do(){if(yo)return go;yo=1;var t=function(){if(so)return fo;so=1;var t=dt(),r=Rt();return fo=function(n,e,o){try{return t(r(Object.getOwnPropertyDescriptor(n,e)[o]))}catch(t){}}}(),r=wt(),n=yt(),e=_o();return go=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 Mo(){if(mo)return bo;mo=1;var t=ie(),r=x(),n=nr(),e=Gr(),o=mt(),i=function(){if(co)return ao;co=1;var t=ko().IteratorPrototype,r=Ro(),n=vt(),e=Lo(),o=ze(),i=function(){return this};return ao=function(u,a,c,f){var s=a+" Iterator";return u.prototype=r(t,{next:n(+!f,c)}),e(u,s,!1,!0),o[s]=i,u}}(),u=Co(),a=Do(),c=Lo(),f=jr(),s=Jr(),l=fr(),v=ze(),d=ko(),p=e.PROPER,h=e.CONFIGURABLE,g=d.IteratorPrototype,y=d.BUGGY_SAFARI_ITERATORS,b=l("iterator"),m="keys",w="values",O="entries",S=function(){return this};return bo=function(e,l,d,x,E,T,j){i(d,l,x);var P,R,A,C=function(t){if(t===E&&D)return D;if(!y&&t&&t in F)return F[t];switch(t){case m:case w:case O:return function(){return new d(this,t)}}return function(){return new d(this)}},k=l+" Iterator",L=!1,F=e.prototype,_=F[b]||F["@@iterator"]||E&&F[E],D=!y&&_||C(E),M="Array"===l&&F.entries||_;if(M&&(P=u(M.call(new e)))!==Object.prototype&&P.next&&(n||u(P)===g||(a?a(P,g):o(P[b])||s(P,b,S)),c(P,k,!0,!0),n&&(v[k]=S)),p&&E===w&&_&&_.name!==w&&(!n&&h?f(F,"name",w):(L=!0,D=function(){return r(_,this)})),E)if(R={values:C(w),keys:T?D:C(m),entries:C(O)},j)for(A in R)(y||L||!(A in F))&&s(F,A,R[A]);else t({target:l,proto:!0,forced:y||L},R);return n&&!j||F[b]===D||s(F,b,D,{name:E}),v[l]=D,R}}function Io(){return Oo?wo:(Oo=1,wo=function(t,r){return{value:t,done:r}})}function zo(){if(So)return xo;So=1;var t=bt(),r=Ao(),n=ze(),e=Hr(),o=Tr().f,i=Mo(),u=Io(),a=nr(),c=w(),f="Array Iterator",s=e.set,l=e.getterFor(f);xo=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"),!a&&c&&"values"!==v.name)try{o(v,"name",{value:"values"})}catch(t){}return xo}zo();var No,Wo,Yo,Xo={};function Go(){if(Wo)return No;Wo=1;var t=ae(),r=x(),n=Er(),e=Pt(),o=Ne(),i=mn(),u=xt(),a=Xe(),c=Ye(),f=Me(),s=TypeError,l=function(t,r){this.stopped=t,this.result=r},v=l.prototype;return No=function(d,p,h){var g,y,b,m,w,O,x,S=h&&h.that,E=!(!h||!h.AS_ENTRIES),T=!(!h||!h.IS_RECORD),j=!(!h||!h.IS_ITERATOR),P=!(!h||!h.INTERRUPTED),R=t(p,S),A=function(t){return g&&f(g,"normal"),new l(!0,t)},C=function(t){return E?(n(t),P?R(t[0],t[1],A):R(t[0],t[1])):P?R(t,A):R(t)};if(T)g=d.iterator;else if(j)g=d;else{if(!(y=c(d)))throw new s(e(d)+" is not iterable");if(o(y)){for(b=0,m=i(d);m>b;b++)if((w=C(d[b]))&&u(v,w))return w;return new l(!1)}g=a(d,y)}for(O=T?d.next:g.next;!(x=r(O,g)).done;){try{w=C(x.value)}catch(t){f(g,"throw",t)}if("object"==typeof w&&w&&u(v,w))return w}return new l(!1)}}!function(){if(Yo)return Xo;Yo=1;var t=ie(),r=Go(),n=We();t({target:"Object",stat:!0},{fromEntries:function(t){var e={};return r(t,function(t,r){n(e,t,r)},{AS_ENTRIES:!0}),e}})}();var Bo,Uo,Vo,qo={};!function(){if(Vo)return qo;Vo=1;var t=fe(),r=Jr(),n=function(){if(Uo)return Bo;Uo=1;var t=fe(),r=se();return Bo=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",n,{unsafe:!0})}();var Ho,$o,Jo,Ko,Qo,Zo,ti,ri,ni,ei,oi,ii,ui,ai,ci,fi,si,li,vi,di,pi,hi,gi,yi,bi,mi,wi={exports:{}},Oi={};function xi(){if($o)return Ho;$o=1;var t=dt();return Ho=t([].slice)}function Si(){if(Jo)return Oi;Jo=1;var t=pt(),r=bt(),n=Sn().f,e=xi(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Oi.f=function(i){return o&&"Window"===t(i)?function(t){try{return n(t)}catch(t){return e(o)}}(i):n(r(i))},Oi}function Ei(){if(ti)return Zo;ti=1;var t=m(),r=wt(),n=pt(),e=function(){if(Qo)return Ko;Qo=1;var t=m();return Ko=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 Zo=i||e?function(t){return!!r(t)&&((!e||"ArrayBuffer"!==n(t))&&(!o||o(t)))}:o}function Ti(){if(ni)return ri;ni=1;var t=m();return ri=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function ji(){if(ei)return wi.exports;ei=1;var t=ie(),r=dt(),n=qr(),e=wt(),o=ar(),i=Tr().f,u=Sn(),a=Si(),c=Ei(),f=cr(),s=Ti(),l=!1,v=f("meta"),d=0,p=function(t){i(t,v,{value:{objectID:"O"+d++,weakData:{}}})},h=wi.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:a.f}))},fastKey:function(t,r){if(!e(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,v)){if(!c(t))return"F";if(!r)return"E";p(t)}return t[v].objectID},getWeakData:function(t,r){if(!o(t,v)){if(!c(t))return!0;if(!r)return!1;p(t)}return t[v].weakData},onFreeze:function(t){return s&&l&&c(t)&&!o(t,v)&&p(t),t}};return n[v]=!0,wi.exports}function Pi(){if(ii)return oi;ii=1;var t=xt(),r=TypeError;return oi=function(n,e){if(t(e,n))return n;throw new r("Incorrect invocation")}}function Ri(){if(ai)return ui;ai=1;var t=mt(),r=wt(),n=Do();return ui=function(e,o,i){var u,a;return n&&t(u=o.constructor)&&u!==i&&r(a=u.prototype)&&a!==i.prototype&&n(e,a),e}}function Ai(){if(fi)return ci;fi=1;var t=ie(),r=f(),n=dt(),e=oe(),o=Jr(),i=ji(),u=Go(),a=Pi(),c=mt(),s=gt(),l=wt(),v=m(),d=Ge(),p=Lo(),h=Ri();return ci=function(f,g,y){var b=-1!==f.indexOf("Map"),m=-1!==f.indexOf("Weak"),w=b?"set":"add",O=r[f],x=O&&O.prototype,S=O,E={},T=function(t){var r=n(x[t]);o(x,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(m&&!l(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return m&&!l(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(m&&!l(t))&&r(this,0===t?0:t)}:function(t,n){return r(this,0===t?0:t,n),this})};if(e(f,!c(O)||!(m||x.forEach&&!v(function(){(new O).entries().next()}))))S=y.getConstructor(g,f,b,w),i.enable();else if(e(f,!0)){var j=new S,P=j[w](m?{}:-0,1)!==j,R=v(function(){j.has(1)}),A=d(function(t){new O(t)}),C=!m&&v(function(){for(var t=new O,r=5;r--;)t[w](r,r);return!t.has(-0)});A||((S=g(function(t,r){a(t,x);var n=h(new O,t,S);return s(r)||u(r,n[w],{that:n,AS_ENTRIES:b}),n})).prototype=x,x.constructor=S),(R||C)&&(T("delete"),T("has"),b&&T("get")),(C||P)&&T(w),m&&x.clear&&delete x.clear}return E[f]=S,t({global:!0,constructor:!0,forced:S!==O},E),p(S,f),m||y.setStrong(S,f,b),S}}function Ci(){if(li)return si;li=1;var t=$r(),r=Tr();return si=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 ki(){if(di)return vi;di=1;var t=Jr();return vi=function(r,n,e){for(var o in n)t(r,o,n[o],e);return r}}function Li(){if(hi)return pi;hi=1;var t=Ot(),r=Ci(),n=fr(),e=w(),o=n("species");return pi=function(n){var i=t(n);e&&i&&!i[o]&&r(i,o,{configurable:!0,get:function(){return this}})}}mi||(mi=1,bi||(bi=1,Ai()("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},function(){if(yi)return gi;yi=1;var t=Ro(),r=Ci(),n=ki(),e=ae(),o=Pi(),i=gt(),u=Go(),a=Mo(),c=Io(),f=Li(),s=w(),l=ji().fastKey,v=Hr(),d=v.set,p=v.getterFor;return gi={getConstructor:function(a,c,f,v){var h=a(function(r,n){o(r,g),d(r,{type:c,index:t(null),first:null,last:null,size:0}),s||(r.size=0),i(n)||u(n,r[v],{that:r,AS_ENTRIES:f})}),g=h.prototype,y=p(c),b=function(t,r,n){var e,o,i=y(t),u=m(t,r);return u?u.value=n:(i.last=u={index:o=l(r,!0),key:r,value:n,previous:e=i.last,next:null,removed:!1},i.first||(i.first=u),e&&(e.next=u),s?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},m=function(t,r){var n,e=y(t),o=l(r);if("F"!==o)return e.index[o];for(n=e.first;n;n=n.next)if(n.key===r)return n};return n(g,{clear:function(){for(var r=y(this),n=r.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=null),n=n.next;r.first=r.last=null,r.index=t(null),s?r.size=0:this.size=0},delete:function(t){var r=this,n=y(r),e=m(r,t);if(e){var o=e.next,i=e.previous;delete n.index[e.index],e.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first===e&&(n.first=o),n.last===e&&(n.last=i),s?n.size--:r.size--}return!!e},forEach:function(t){for(var r,n=y(this),o=e(t,arguments.length>1?arguments[1]:void 0);r=r?r.next:n.first;)for(o(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!m(this,t)}}),n(g,f?{get:function(t){var r=m(this,t);return r&&r.value},set:function(t,r){return b(this,0===t?0:t,r)}}:{add:function(t){return b(this,t=0===t?0:t,t)}}),s&&r(g,"size",{configurable:!0,get:function(){return y(this).size}}),h},setStrong:function(t,r,n){var e=r+" Iterator",o=p(r),i=p(e);a(t,r,function(t,r){d(this,{type:e,target:t,state:o(t),kind:r,last:null})},function(){for(var t=i(this),r=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?c("keys"===r?n.key:"values"===r?n.value:[n.key,n.value],!1):(t.target=null,c(void 0,!0))},n?"entries":"values",!n,!0),f(r)}},gi}())));var Fi,_i,Di,Mi,Ii,zi={};function Ni(){if(_i)return Fi;_i=1;var t=se(),r=String;return Fi=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}}!function(){if(Ii)return zi;Ii=1;var t=function(){if(Mi)return Di;Mi=1;var t=dt(),r=gn(),n=Ni(),e=yt(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,c){var f,s,l=n(e(a)),v=r(c),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 Di={codeAt:a(!1),charAt:a(!0)}}().charAt,r=Ni(),n=Hr(),e=Mo(),o=Io(),i="String Iterator",u=n.set,a=n.getterFor(i);e(String,"String",function(t){u(this,{type:i,string:r(t),index:0})},function(){var r,n=a(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 Wi,Yi,Xi,Gi,Bi,Ui={};!function(){if(Bi)return Ui;Bi=1;var t=ie(),r=function(){if(Yi)return Wi;Yi=1;var t=dt(),r=yt(),n=Ni(),e=/"/g,o=t("".replace);return Wi=function(t,i,u,a){var c=n(r(t)),f="<"+i;return""!==u&&(f+=" "+u+'="'+o(n(a),e,""")+'"'),f+">"+c+"</"+i+">"}}(),n=function(){if(Gi)return Xi;Gi=1;var t=m();return Xi=function(r){return t(function(){var t=""[r]('"');return t!==t.toLowerCase()||t.split('"').length>3})}}();t({target:"String",proto:!0,forced:n("anchor")},{anchor:function(t){return r(this,"a","name",t)}})}();var Vi,qi,Hi,$i,Ji={};function Ki(){if(qi)return Vi;qi=1;var t=dt(),r=ki(),n=ji().getWeakData,e=Pi(),o=Er(),i=gt(),u=wt(),a=Go(),c=pe(),f=ar(),s=Hr(),l=s.set,v=s.getterFor,d=c.find,p=c.findIndex,h=t([].splice),g=0,y=function(t){return t.frozen||(t.frozen=new b)},b=function(){this.entries=[]},m=function(t,r){return d(t.entries,function(t){return t[0]===r})};return b.prototype={get:function(t){var r=m(this,t);if(r)return r[1]},has:function(t){return!!m(this,t)},set:function(t,r){var n=m(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}},Vi={getConstructor:function(t,c,s,d){var p=t(function(t,r){e(t,h),l(t,{type:c,id:g++,frozen:null}),i(r)||a(r,t[d],{that:t,AS_ENTRIES:s})}),h=p.prototype,b=v(c),m=function(t,r,e){var i=b(t),u=n(o(r),!0);return!0===u?y(i).set(r,e):u[i.id]=e,t};return r(h,{delete:function(t){var r=b(this);if(!u(t))return!1;var e=n(t);return!0===e?y(r).delete(t):e&&f(e,r.id)&&delete e[r.id]},has:function(t){var r=b(this);if(!u(t))return!1;var e=n(t);return!0===e?y(r).has(t):e&&f(e,r.id)}}),r(h,s?{get:function(t){var r=b(this);if(u(t)){var e=n(t);if(!0===e)return y(r).get(t);if(e)return e[r.id]}},set:function(t,r){return m(this,t,r)}}:{add:function(t){return m(this,t,!0)}}),p}}}$i||($i=1,function(){if(Hi)return Ji;Hi=1;var t,r=Ti(),n=f(),e=dt(),o=ki(),i=ji(),u=Ai(),a=Ki(),c=wt(),s=Hr().enforce,l=m(),v=Ur(),d=Object,p=Array.isArray,h=d.isExtensible,g=d.isFrozen,y=d.isSealed,b=d.freeze,w=d.seal,O=!n.ActiveXObject&&"ActiveXObject"in n,x=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},S=u("WeakMap",x,a),E=S.prototype,T=e(E.set);if(v)if(O){t=a.getConstructor(x,"WeakMap",!0),i.enable();var j=e(E.delete),P=e(E.has),R=e(E.get);o(E,{delete:function(r){if(c(r)&&!h(r)){var n=s(this);return n.frozen||(n.frozen=new t),j(this,r)||n.frozen.delete(r)}return j(this,r)},has:function(r){if(c(r)&&!h(r)){var n=s(this);return n.frozen||(n.frozen=new t),P(this,r)||n.frozen.has(r)}return P(this,r)},get:function(r){if(c(r)&&!h(r)){var n=s(this);return n.frozen||(n.frozen=new t),P(this,r)?R(this,r):n.frozen.get(r)}return R(this,r)},set:function(r,n){if(c(r)&&!h(r)){var e=s(this);e.frozen||(e.frozen=new t),P(this,r)?T(this,r,n):e.frozen.set(r,n)}else T(this,r,n);return this}})}else r&&l(function(){var t=b([]);return T(new S,t,1),!g(t)})&&o(E,{set:function(t,r){var n;return p(t)&&(g(t)?n=b:y(t)&&(n=w)),T(this,t,r),n&&n(t),this}})}());var Qi,Zi,tu,ru,nu,eu,ou,iu,uu,au={};function cu(){return Zi?Qi:(Zi=1,Qi={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 fu(){if(ru)return tu;ru=1;var t=vr()("span").classList,r=t&&t.constructor&&t.constructor.prototype;return tu=r===Object.prototype?void 0:r}!function(){if(uu)return au;uu=1;var t=f(),r=cu(),n=fu(),e=function(){if(iu)return ou;iu=1;var t=pe().forEach,r=function(){if(eu)return nu;eu=1;var t=m();return nu=function(r,n){var e=[][r];return!!e&&t(function(){e.call(null,n||function(){return 1},1)})}}()("forEach");return ou=r?[].forEach:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)},ou}(),o=jr(),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 su,lu={};!function(){if(su)return lu;su=1;var t=f(),r=cu(),n=fu(),e=zo(),o=jr(),i=Lo(),u=fr()("iterator"),a=e.values,c=function(t,n){if(t){if(t[u]!==a)try{o(t,u,a)}catch(r){t[u]=a}if(i(t,n,!0),r[n])for(var c in e)if(t[c]!==e[c])try{o(t,c,e[c])}catch(r){t[c]=e[c]}}};for(var s in r)c(t[s]&&t[s].prototype,s);c(n,"DOMTokenList")}();var vu=function(){return vu=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},vu.apply(this,arguments)};function du(t,r){var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(n[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)r.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(t,e[o])&&(n[e[o]]=t[e[o]])}return n}function pu(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 hu(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 gu(t,r,n){if(n||2===arguments.length)for(var e,o=0,i=r.length;o<i;o++)!e&&o in r||(e||(e=Array.prototype.slice.call(r,0,o)),e[o]=r[o]);return t.concat(e||Array.prototype.slice.call(r))}"function"==typeof SuppressedError&&SuppressedError;var yu,bu,mu,wu={};function Ou(){if(bu)return yu;bu=1;var t=TypeError;return yu=function(r){if(r>9007199254740991)throw t("Maximum allowed index exceeded");return r}}!function(){if(mu)return wu;mu=1;var t=ie(),r=m(),n=ce(),e=wt(),o=ur(),i=mn(),u=Ou(),a=We(),c=de(),f=he(),s=fr(),l=St(),v=s("isConcatSpreadable"),d=l>=51||!r(function(){var t=[];return t[v]=!1,t.concat()[0]!==t}),p=function(t){if(!e(t))return!1;var r=t[v];return void 0!==r?!!r:n(t)};t({target:"Array",proto:!0,arity:1,forced:!d||!f("concat")},{concat:function(t){var r,n,e,f,s,l=o(this),v=c(l,0),d=0;for(r=-1,e=arguments.length;r<e;r++)if(p(s=-1===r?l:arguments[r]))for(f=i(s),u(d+f),n=0;n<f;n++,d++)n in s&&a(v,d,s[n]);else u(d+1),a(v,d++,s);return v.length=d,v}})}();var xu,Su={};!function(){if(xu)return Su;xu=1;var t=ie(),r=pe().map;t({target:"Array",proto:!0,forced:!he()("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}();var Eu,Tu={};!function(){if(Eu)return Tu;Eu=1;var t=ie(),r=ce(),n=le(),e=wt(),o=yn(),i=mn(),u=bt(),a=We(),c=fr(),f=he(),s=xi(),l=f("slice"),v=c("species"),d=Array,p=Math.max;t({target:"Array",proto:!0,forced:!l},{slice:function(t,c){var f,l,h,g=u(this),y=i(g),b=o(t,y),m=o(void 0===c?y:c,y);if(r(g)&&(f=g.constructor,(n(f)&&(f===d||r(f.prototype))||e(f)&&null===(f=f[v]))&&(f=void 0),f===d||void 0===f))return s(g,b,m);for(l=new(void 0===f?d:f)(p(m-b,0)),h=0;b<m;b++,h++)b in g&&a(l,h,g[b]);return l.length=h,l}})}();var ju,Pu,Ru,Au={};!function(){if(Ru)return Au;Ru=1;var t=ie(),r=function(){if(Pu)return ju;Pu=1;var t=w(),r=dt(),n=x(),e=m(),o=To(),i=re(),u=lt(),a=ur(),c=ht(),f=Object.assign,s=Object.defineProperty,l=r([].concat);return ju=!f||e(function(){if(t&&1!==f({b:1},f(s({},"a",{enumerable:!0,get:function(){s(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var r={},n={},e=Symbol("assign detection"),i="abcdefghijklmnopqrst";return r[e]=7,i.split("").forEach(function(t){n[t]=t}),7!==f({},r)[e]||o(f({},n)).join("")!==i})?function(r,e){for(var f=a(r),s=arguments.length,v=1,d=i.f,p=u.f;s>v;)for(var h,g=c(arguments[v++]),y=d?l(o(g),d(g)):o(g),b=y.length,m=0;b>m;)h=y[m++],t&&!n(p,g,h)||(f[h]=g[h]);return f}:f,ju}();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})}();var Cu,ku,Lu,Fu={};!function(){if(Lu)return Fu;Lu=1;var t=ie(),r=function(){if(ku)return Cu;ku=1;var t=w(),r=m(),n=dt(),e=Co(),o=To(),i=bt(),u=n(lt().f),a=n([].push),c=t&&r(function(){var t=Object.create(null);return t[2]=2,!u(t,2)}),f=function(r){return function(n){for(var f,s=i(n),l=o(s),v=c&&null===e(s),d=l.length,p=0,h=[];d>p;)f=l[p++],t&&!(v?f in s:u(s,f))||a(h,r?[f,s[f]]:s[f]);return h}};return Cu={entries:f(!0),values:f(!1)}}().entries;t({target:"Object",stat:!0},{entries:function(t){return r(t)}})}();var _u,Du,Mu,Iu,zu,Nu,Wu,Yu={};function Xu(){if(Nu)return zu;Nu=1;var t=x(),r=ar(),n=xt(),e=function(){if(Du)return _u;Du=1;var t=f(),r=m(),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 a in t&&(u.hasIndices="d"),u)i(a,u[a]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(r)!==o||e!==o});return _u={correct:e}}(),o=function(){if(Iu)return Mu;Iu=1;var t=Er();return Mu=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}}(),i=RegExp.prototype;return zu=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(Wu)return Yu;Wu=1;var t=Gr().PROPER,r=Jr(),n=Er(),e=Ni(),o=m(),i=Xu(),u="toString",a=RegExp.prototype,c=a[u],f=o(function(){return"/a/b"!==c.call({source:"a",flags:"b"})}),s=t&&c.name!==u;(f||s)&&r(a,u,function(){var t=n(this);return"/"+e(t.source)+"/"+e(i(t))},{unsafe:!0})}();var Gu,Bu,Uu,Vu,qu,Hu,$u,Ju={};function Ku(){if(Vu)return Uu;Vu=1;var t=function(){if(Bu)return Gu;Bu=1;var t=wt(),r=pt(),n=fr()("match");return Gu=function(e){var o;return t(e)&&(void 0!==(o=e[n])?!!o:"RegExp"===r(e))}}(),r=TypeError;return Uu=function(n){if(t(n))throw new r("The method doesn't accept regular expressions");return n}}!function(){if($u)return Ju;$u=1;var t,r=ie(),n=ue(),e=pr().f,o=bn(),i=Ni(),u=Ku(),a=yt(),c=function(){if(Hu)return qu;Hu=1;var t=fr()("match");return qu=function(r){var n=/./;try{"/./"[r](n)}catch(e){try{return n[t]=!1,"/./"[r](n)}catch(t){}}return!1}}(),f=nr(),s=n("".slice),l=Math.min,v=c("startsWith");r({target:"String",proto:!0,forced:!!(f||v||(t=e(String.prototype,"startsWith"),!t||t.writable))&&!v},{startsWith:function(t){var r=i(a(this));u(t);var n=o(l(arguments.length>1?arguments[1]:void 0,r.length)),e=i(t);return s(r,n,n+e.length)===e}})}();var Qu,Zu={};function ta(t){return"[object Object]"===Object.prototype.toString.call(t)}function ra(t){if(!ta(t))return!1;var r=t.constructor;if(void 0===r)return!0;var n=r.prototype;return!1!==ta(n)&&!Object.prototype.hasOwnProperty.call(n,"isPrototypeOfOf")}function na(t,r){for(var n in t){var e=t[n],o=r[n];if(ra(e)&&ra(o)){if(!na(e,o))return!1}else if(Array.isArray(e)&&Array.isArray(o)){if(e.length!==o.length)return!1;for(var i=0;i<e.length;i+=1)if(e[i]!==o[i])return!1}else if(e!==o)return!1}for(var n in r)if(void 0===t[n]&&void 0!==r[n])return!1;return!0}function ea(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return Object.fromEntries(Object.entries(t).filter(function(t){var n=hu(t,1)[0];return r.includes(n)}))}function oa(t){return Object.fromEntries(Object.entries(t).filter(function(t){return null!==hu(t,2)[1]}))}function ia(t){return function(t){var r,n,e,o,i=[];try{for(var u=pu(t),a=u.next();!a.done;a=u.next()){var c=a.value;if("string"!=typeof c.insert||0!==c.insert.length){var f=i[i.length-1];f&&"string"==typeof f.insert&&"string"==typeof c.insert&&(f.attributes===c.attributes||!f.attributes==!c.attributes&&na(null!==(e=f.attributes)&&void 0!==e?e:{},null!==(o=c.attributes)&&void 0!==o?o:{}))?f.insert+=c.insert:i.push(c)}}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}return i}(t.toDelta())}function ua(t){var r=t.insert;return"string"==typeof r?r.length:1}function aa(t){return t.reduce(function(t,r){return t+ua(r)},0)}function ca(t,r,n){if(n<1)return[];for(var e=0,o=[],i=r+n,u=0;u<t.length&&!(e>=i);u+=1){var a=t[u],c=ua(a);if(e+c<=r)e+=c;else if("string"==typeof a.insert){var f=Math.max(0,r-e),s=Math.min(c,c-(e+c-i));o.push(vu(vu({},a),{insert:a.insert.slice(f,s)})),e+=c}else e+=c,o.push(a)}return o}function fa(t){return t?n.Text.isText(t)?t.text.length:1:0}function sa(t,r,e){var o;if(0===e.length)throw new Error("Path has to a have a length >= 1");if(n.Text.isText(r))throw new Error("Cannot descent into slate text");var i=hu(e),a=i[0],c=i.slice(1),f=function(t,r){return t.children.slice(0,r).reduce(function(t,r){return t+fa(r)},0)}(r,a),s=r.children[a],l=ia(t),v=fa(s),d=ca(l,f,v);if(d.length>1)throw new Error("Path doesn't match yText, yTarget spans multiple nodes");var p=null===(o=d[0])||void 0===o?void 0:o.insert;if(c.length>0){if(!(p instanceof u.XmlText))throw new Error("Path doesn't match yText, cannot descent into non-yText");return sa(p,s,c)}return{yParent:t,textRange:{start:f,end:f+v},yTarget:p instanceof u.XmlText?p:void 0,slateParent:r,slateTarget:s,targetDelta:d}}function la(t,r,e){void 0===e&&(e={});for(var o=e.assoc,i=void 0===o?0:o,u=e.insert,a=void 0!==u&&u,c=0,f=0,s=0;s<t.children.length;s+=1){var l=t.children[s],v=n.Text.isText(l)?l.text.length:1;v>0&&(f=s);var d=c+v;if(v>0&&(i>=0?d>r:d>=r))return[s,r-c];c+=v}if(r>c+(a?1:0))throw new Error("yOffset out of bounds");if(a)return[t.children.length,0];var p=t.children[f];return[f,n.Text.isText(p)?p.text.length:1]}function va(t,r,e){for(var o=[e];o[0]!==t;){var i=o[0].parent;if(!i)throw new Error("yText isn't a descendant of root element");if(!(i instanceof u.XmlText))throw new Error("Unexpected y parent type");o.unshift(i)}if(o.length<2)return[];var a=r;return o.reduce(function(t,r,e){var i,u,c=o[e+1];if(!c)return t;var f=0,s=ia(r);try{for(var l=pu(s),v=l.next();!v.done;v=l.next()){var d=v.value;if(d.insert===c)break;f+="string"==typeof d.insert?d.insert.length:1}}catch(t){i={error:t}}finally{try{v&&!v.done&&(u=l.return)&&u.call(l)}finally{if(i)throw i.error}}if(n.Text.isText(a))throw new Error("Cannot descent into slate text");var p=hu(la(a,f),1)[0];return a=a.children[p],t.concat(p)},[])}function da(t){if(!t.doc)throw new Error("shared type isn't attached to a document")}!function(){if(Qu)return Zu;Qu=1;var t=ie(),r=wn().includes,n=m(),e=Ao();t({target:"Array",proto:!0,forced:n(function(){return!Array(1).includes()})},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),e("includes")}();var pa="__slateYjsStoredPosition_";function ha(t,r,n){var e=sa(t,r,n.path),o=e.yTarget,i=e.yParent,a=e.textRange;if(o)throw new Error("Slate point points to a non-text element inside sharedRoot");var c=a.start+n.offset;return u.createRelativePositionFromTypeIndex(i,c,c===a.end?-1:0)}function ga(t,r,e){if(!t.doc)throw new Error("sharedRoot isn't attach to a yDoc");var o=u.createAbsolutePositionFromRelativePosition(e,t.doc);return o&&function(t,r,e){var o=e.type,i=e.index,a=e.assoc;if(!(o instanceof u.XmlText))throw new Error("Absolute position points to a non-XMLText");var c=va(t,r,o),f=n.Node.get(r,c);if(n.Text.isText(f)||!n.Element.isElement(f))throw new Error("Absolute position doesn't match slateRoot, cannot descent into text and EditorRoot");var s=hu(la(f,i,{assoc:a}),2),l=s[0],v=s[1],d=f.children[l];return n.Text.isText(d)?{path:gu(gu([],hu(c),!1),[l],!1),offset:v}:null}(t,r,o)}function ya(t,r,n){t.setAttribute(pa+r,u.encodeRelativePosition(n))}function ba(t,r,n){return Object.fromEntries(Object.entries(t).filter(function(t){var e=hu(t,2)[1];return e.type===r&&(!n||(e.assoc>=0?e.index>=n.start&&e.index<n.end:e.index>n.start&&e.index>=n.end))}))}function ma(t,r,n){var e;void 0===n&&(n="");var o=((e={})[n]=ba(t,r),e);return ia(r).forEach(function(r,e){var i=r.insert;i instanceof u.XmlText&&Object.assign(o,ma(t,i,n?"".concat(n,".").concat(e):e.toString()))}),o}function wa(t,r,n,e){void 0===e&&(e=0);var o=function(t){return da(t),Object.fromEntries(Object.entries(t.getAttributes()).filter(function(t){return hu(t,1)[0].startsWith(pa)}).map(function(r){var n=hu(r,2),e=n[0],o=n[1];return[e.slice(25),u.createAbsolutePositionFromRelativePosition(u.decodeRelativePosition(o),t.doc)]}).filter(function(t){return hu(t,2)[1]}))}(t),i={"":ba(o,r,{start:e,end:e+aa(n)})};return n.forEach(function(t,r){var n=t.insert;n instanceof u.XmlText&&Object.assign(i,ma(o,n,r.toString()))}),i}function Oa(t,r,n,e,o,i,a){void 0===o&&(o=0),void 0===i&&(i=0),void 0===a&&(a="");var c=n[a];c&&Object.entries(c).forEach(function(n){var e=hu(n,2),a=e[0],c=e[1];ya(t,a,u.createRelativePositionFromTypeIndex(r,c.index-i+o,c.assoc))}),e.forEach(function(r,e){var o=r.insert;o instanceof u.XmlText&&Oa(t,o,n,ia(o),0,0,a?"".concat(a,".").concat(e):e.toString())})}function xa(t,r,n){return{anchor:ha(t,r,n.anchor),focus:ha(t,r,n.focus)}}function Sa(t,r,n){var e=ga(t,r,n.anchor);if(!e)return null;var o=ga(t,r,n.focus);return o?{anchor:e,focus:o}:null}var Ea,Ta,ja,Pa,Ra,Aa,Ca,ka,La={},Fa={};function _a(){if(Ea)return Fa;Ea=1;var t=fr();return Fa.f=t,Fa}function Da(){if(ja)return Ta;ja=1;var t=f();return Ta=t}function Ma(){if(ka)return La;ka=1;var t=ie(),r=f(),n=x(),e=dt(),o=nr(),i=w(),u=Et(),a=m(),c=ar(),s=xt(),l=Er(),v=bt(),d=lr(),p=Ni(),h=vt(),g=Ro(),y=To(),b=Sn(),O=Si(),S=re(),E=pr(),T=Tr(),j=jo(),P=lt(),R=Jr(),A=Ci(),C=ir(),k=Vr(),L=qr(),F=cr(),_=fr(),D=_a(),M=function(){if(Ra)return Pa;Ra=1;var t=Da(),r=ar(),n=_a(),e=Tr().f;return Pa=function(o){var i=t.Symbol||(t.Symbol={});r(i,o)||e(i,o,{value:n.f(o)})}}(),I=function(){if(Ca)return Aa;Ca=1;var t=x(),r=Ot(),n=fr(),e=Jr();return Aa=function(){var o=r("Symbol"),i=o&&o.prototype,u=i&&i.valueOf,a=n("toPrimitive");i&&!i[a]&&e(i,a,function(r){return t(u,this)},{arity:1})}}(),z=Lo(),N=Hr(),W=pe().forEach,Y=k("hidden"),X="Symbol",G="prototype",B=N.set,U=N.getterFor(X),V=Object[G],q=r.Symbol,H=q&&q[G],$=r.RangeError,J=r.TypeError,K=r.QObject,Q=E.f,Z=T.f,tt=O.f,rt=P.f,nt=e([].push),et=C("symbols"),ot=C("op-symbols"),it=C("wks"),ut=!K||!K[G]||!K[G].findChild,at=function(t,r,n){var e=Q(V,r);e&&delete V[r],Z(t,r,n),e&&t!==V&&Z(V,r,e)},ct=i&&a(function(){return 7!==g(Z({},"