@wangeditor-next/yjs-for-react 0.1.2 → 0.1.4
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/hooks/useRemoteCursorEditor.d.ts +1 -1
- package/dist/hooks/useRemoteCursorOverlayPositions.d.ts +2 -2
- package/dist/hooks/useRemoteCursorStateStore.d.ts +1 -1
- package/dist/hooks/utils.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils/getOverlayPosition.d.ts +5 -5
- package/dist/utils/react-editor-to-dom-range-safe.d.ts +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("@wangeditor-next/yjs"),require("slate"),require("@wangeditor-next/editor")):"function"==typeof define&&define.amd?define(["exports","react","@wangeditor-next/yjs","slate","@wangeditor-next/editor"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorCodeHighLight={},t.e,t.yjs,t.slate,t.editor)}(this,(function(t,e,r,n,o){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var u=i(e),a=e.createContext(null),c=function(){var t=e.useContext(a);return t||console.warn("The `useEditorStatic` hook must be used inside the <EditorContext> component's context."),t},f=function(){return f=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},f.apply(this,arguments)};function s(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}"function"==typeof SuppressedError&&SuppressedError;var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(t){var e={exports:{}};return t(e,e.exports),e.exports
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("@wangeditor-next/yjs"),require("@wangeditor-next/editor"),require("slate")):"function"==typeof define&&define.amd?define(["exports","react","@wangeditor-next/yjs","@wangeditor-next/editor","slate"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorCodeHighLight={},t.e,t.yjs,t.editor,t.slate)}(this,(function(t,e,r,n,o){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var u=i(e),a=e.createContext(null),c=function(){var t=e.useContext(a);return t||console.warn("The `useEditorStatic` hook must be used inside the <EditorContext> component's context."),t},f=function(t){try{return!!t()}catch(t){return!0}},s=!f((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),l=Function.prototype,v=l.call,p=s&&l.bind.bind(v,v),d=s?p:function(t){return function(){return v.apply(t,arguments)}},h=d({}.toString),y=d("".slice),g=function(t){return y(h(t),8,-1)},b=Object,m=d("".split),S=f((function(){return!b("z").propertyIsEnumerable(0)}))?function(t){return"String"===g(t)?m(t,""):b(t)}:b,w=function(t){return null==t},O=TypeError,E=function(t){if(w(t))throw new O("Can't call method on "+t);return t},j=function(t){return S(E(t))},x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function R(t){var e={exports:{}};return t(e,e.exports),e.exports}var P,A,T=function(t){return t&&t.Math===Math&&t},C=T("object"==typeof globalThis&&globalThis)||T("object"==typeof window&&window)||T("object"==typeof self&&self)||T("object"==typeof x&&x)||T("object"==typeof x&&x)||function(){return this}()||Function("return this")(),k=Object.defineProperty,z=function(t,e){try{k(C,t,{value:e,configurable:!0,writable:!0})}catch(r){C[t]=e}return e},I=R((function(t){var e="__core-js_shared__",r=t.exports=C[e]||z(e,{});(r.versions||(r.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),L=function(t,e){return I[t]||(I[t]=e||{})},M=Object,F=function(t){return M(E(t))},_=d({}.hasOwnProperty),D=Object.hasOwn||function(t,e){return _(F(t),e)},N=0,G=Math.random(),W=d(1..toString),V=function(t){return"Symbol("+(void 0===t?"":t)+")_"+W(++N+G,36)},B=C.navigator,q=B&&B.userAgent,U=q?String(q):"",H=C.process,X=C.Deno,K=H&&H.versions||X&&X.version,Y=K&&K.v8;Y&&(A=(P=Y.split("."))[0]>0&&P[0]<4?1:+(P[0]+P[1])),!A&&U&&(!(P=U.match(/Edge\/(\d+)/))||P[1]>=74)&&(P=U.match(/Chrome\/(\d+)/))&&(A=+P[1]);var $,J=A,Q=C.String,Z=!!Object.getOwnPropertySymbols&&!f((function(){var t=Symbol("symbol detection");return!Q(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&J&&J<41})),tt=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,et=C.Symbol,rt=L("wks"),nt=tt?et.for||et:et&&et.withoutSetter||V,ot=function(t){return D(rt,t)||(rt[t]=Z&&D(et,t)?et[t]:nt("Symbol."+t)),rt[t]},it="object"==typeof document&&document.all,ut=void 0===it&&void 0!==it?function(t){return"function"==typeof t||t===it}:function(t){return"function"==typeof t},at=function(t){return"object"==typeof t?null!==t:ut(t)},ct=String,ft=TypeError,st=function(t){if(at(t))return t;throw new ft(ct(t)+" is not an object")},lt=!f((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),vt=lt&&f((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),pt=C.document,dt=at(pt)&&at(pt.createElement),ht=function(t){return dt?pt.createElement(t):{}},yt=!lt&&!f((function(){return 7!==Object.defineProperty(ht("div"),"a",{get:function(){return 7}}).a})),gt=Function.prototype.call,bt=s?gt.bind(gt):function(){return gt.apply(gt,arguments)},mt=function(t,e){return arguments.length<2?(r=C[t],ut(r)?r:void 0):C[t]&&C[t][e];var r},St=d({}.isPrototypeOf),wt=Object,Ot=tt?function(t){return"symbol"==typeof t}:function(t){var e=mt("Symbol");return ut(e)&&St(e.prototype,wt(t))},Et=String,jt=function(t){try{return Et(t)}catch(t){return"Object"}},xt=TypeError,Rt=function(t){if(ut(t))return t;throw new xt(jt(t)+" is not a function")},Pt=function(t,e){var r=t[e];return w(r)?void 0:Rt(r)},At=TypeError,Tt=TypeError,Ct=ot("toPrimitive"),kt=function(t,e){if(!at(t)||Ot(t))return t;var r,n=Pt(t,Ct);if(n){if(void 0===e&&(e="default"),r=bt(n,t,e),!at(r)||Ot(r))return r;throw new Tt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&ut(r=t.toString)&&!at(n=bt(r,t)))return n;if(ut(r=t.valueOf)&&!at(n=bt(r,t)))return n;if("string"!==e&&ut(r=t.toString)&&!at(n=bt(r,t)))return n;throw new At("Can't convert object to primitive value")}(t,e)},zt=function(t){var e=kt(t,"string");return Ot(e)?e:e+""},It=TypeError,Lt=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,Ft="enumerable",_t="configurable",Dt="writable",Nt={f:lt?vt?function(t,e,r){if(st(t),e=zt(e),st(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Dt in r&&!r[Dt]){var n=Mt(t,e);n&&n[Dt]&&(t[e]=r.value,r={configurable:_t in r?r[_t]:n[_t],enumerable:Ft in r?r[Ft]:n[Ft],writable:!1})}return Lt(t,e,r)}:Lt:function(t,e,r){if(st(t),e=zt(e),st(r),yt)try{return Lt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new It("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Gt=Math.ceil,Wt=Math.floor,Vt=Math.trunc||function(t){var e=+t;return(e>0?Wt:Gt)(e)},Bt=function(t){var e=+t;return e!=e||0===e?0:Vt(e)},qt=Math.max,Ut=Math.min,Ht=Math.min,Xt=function(t){return e=t.length,(r=Bt(e))>0?Ht(r,9007199254740991):0;var e,r},Kt=function(t){return function(e,r,n){var o=j(e),i=Xt(o);if(0===i)return!t&&-1;var u,a=function(t,e){var r=Bt(t);return r<0?qt(r+e,0):Ut(r,e)}(n,i);if(t&&r!=r){for(;i>a;)if((u=o[a++])!=u)return!0}else for(;i>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},Yt={includes:Kt(!0),indexOf:Kt(!1)},$t={},Jt=Yt.indexOf,Qt=d([].push),Zt=function(t,e){var r,n=j(t),o=0,i=[];for(r in n)!D($t,r)&&D(n,r)&&Qt(i,r);for(;e.length>o;)D(n,r=e[o++])&&(~Jt(i,r)||Qt(i,r));return i},te=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ee=Object.keys||function(t){return Zt(t,te)},re=lt&&!vt?Object.defineProperties:function(t,e){st(t);for(var r,n=j(e),o=ee(e),i=o.length,u=0;i>u;)Nt.f(t,r=o[u++],n[r]);return t},ne={f:re},oe=mt("document","documentElement"),ie=L("keys"),ue=function(t){return ie[t]||(ie[t]=V(t))},ae="prototype",ce="script",fe=ue("IE_PROTO"),se=function(){},le=function(t){return"<"+ce+">"+t+"</"+ce+">"},ve=function(t){t.write(le("")),t.close();var e=t.parentWindow.Object;return t=null,e},pe=function(){try{$=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;pe="undefined"!=typeof document?document.domain&&$?ve($):(e=ht("iframe"),r="java"+ce+":",e.style.display="none",oe.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(le("document.F=Object")),t.close(),t.F):ve($);for(var n=te.length;n--;)delete pe[ae][te[n]];return pe()};$t[fe]=!0;var de=Object.create||function(t,e){var r;return null!==t?(se[ae]=st(t),r=new se,se[ae]=null,r[fe]=t):r=pe(),void 0===e?r:ne.f(r,e)},he=Nt.f,ye=ot("unscopables"),ge=Array.prototype;void 0===ge[ye]&&he(ge,ye,{configurable:!0,value:de(null)});var be,me,Se,we=function(t){ge[ye][t]=!0},Oe={},Ee=C.WeakMap,je=ut(Ee)&&/native code/.test(String(Ee)),xe=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Re=lt?function(t,e,r){return Nt.f(t,e,xe(1,r))}:function(t,e,r){return t[e]=r,t},Pe="Object already initialized",Ae=C.TypeError,Te=C.WeakMap;if(je||I.state){var Ce=I.state||(I.state=new Te);Ce.get=Ce.get,Ce.has=Ce.has,Ce.set=Ce.set,be=function(t,e){if(Ce.has(t))throw new Ae(Pe);return e.facade=t,Ce.set(t,e),e},me=function(t){return Ce.get(t)||{}},Se=function(t){return Ce.has(t)}}else{var ke=ue("state");$t[ke]=!0,be=function(t,e){if(D(t,ke))throw new Ae(Pe);return e.facade=t,Re(t,ke,e),e},me=function(t){return D(t,ke)?t[ke]:{}},Se=function(t){return D(t,ke)}}var ze={set:be,get:me,has:Se,enforce:function(t){return Se(t)?me(t):be(t,{})},getterFor:function(t){return function(e){var r;if(!at(e)||(r=me(e)).type!==t)throw new Ae("Incompatible receiver, "+t+" required");return r}}},Ie={}.propertyIsEnumerable,Le=Object.getOwnPropertyDescriptor,Me={f:Le&&!Ie.call({1:2},1)?function(t){var e=Le(this,t);return!!e&&e.enumerable}:Ie},Fe=Object.getOwnPropertyDescriptor,_e={f:lt?Fe:function(t,e){if(t=j(t),e=zt(e),yt)try{return Fe(t,e)}catch(t){}if(D(t,e))return xe(!bt(Me.f,t,e),t[e])}},De=Function.prototype,Ne=lt&&Object.getOwnPropertyDescriptor,Ge=D(De,"name"),We={EXISTS:Ge,PROPER:Ge&&"something"===function(){}.name,CONFIGURABLE:Ge&&(!lt||lt&&Ne(De,"name").configurable)},Ve=d(Function.toString);ut(I.inspectSource)||(I.inspectSource=function(t){return Ve(t)});var Be,qe,Ue,He=I.inspectSource,Xe=R((function(t){var e=We.CONFIGURABLE,r=ze.enforce,n=ze.get,o=String,i=Object.defineProperty,u=d("".slice),a=d("".replace),c=d([].join),s=lt&&!f((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),v=t.exports=function(t,n,f){"Symbol("===u(o(n),0,7)&&(n="["+a(o(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(n="get "+n),f&&f.setter&&(n="set "+n),(!D(t,"name")||e&&t.name!==n)&&(lt?i(t,"name",{value:n,configurable:!0}):t.name=n),s&&f&&D(f,"arity")&&t.length!==f.arity&&i(t,"length",{value:f.arity});try{f&&D(f,"constructor")&&f.constructor?lt&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var v=r(t);return D(v,"source")||(v.source=c(l,"string"==typeof n?n:"")),t};Function.prototype.toString=v((function(){return ut(this)&&n(this).source||He(this)}),"toString")})),Ke=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(ut(r)&&Xe(r,i,n),n.global)o?t[e]=r:z(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Nt.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},Ye=te.concat("length","prototype"),$e={f:Object.getOwnPropertyNames||function(t){return Zt(t,Ye)}},Je={f:Object.getOwnPropertySymbols},Qe=d([].concat),Ze=mt("Reflect","ownKeys")||function(t){var e=$e.f(st(t)),r=Je.f;return r?Qe(e,r(t)):e},tr=function(t,e,r){for(var n=Ze(e),o=Nt.f,i=_e.f,u=0;u<n.length;u++){var a=n[u];D(t,a)||r&&D(r,a)||o(t,a,i(e,a))}},er=/#|\.prototype\./,rr=function(t,e){var r=or[nr(t)];return r===ur||r!==ir&&(ut(e)?f(e):!!e)},nr=rr.normalize=function(t){return String(t).replace(er,".").toLowerCase()},or=rr.data={},ir=rr.NATIVE="N",ur=rr.POLYFILL="P",ar=rr,cr=_e.f,fr=function(t,e){var r,n,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?C:f?C[a]||z(a,{}):C[a]&&C[a].prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(u=cr(r,n))&&u.value:r[n],!ar(c?n:a+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;tr(i,o)}(t.sham||o&&o.sham)&&Re(i,"sham",!0),Ke(r,n,i,t)}},sr=!f((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),lr=ue("IE_PROTO"),vr=Object,pr=vr.prototype,dr=sr?vr.getPrototypeOf:function(t){var e=F(t);if(D(e,lr))return e[lr];var r=e.constructor;return ut(r)&&e instanceof r?r.prototype:e instanceof vr?pr:null},hr=ot("iterator"),yr=!1;[].keys&&("next"in(Ue=[].keys())?(qe=dr(dr(Ue)))!==Object.prototype&&(Be=qe):yr=!0);var gr=!at(Be)||f((function(){var t={};return Be[hr].call(t)!==t}));gr&&(Be={}),ut(Be[hr])||Ke(Be,hr,(function(){return this}));var br={IteratorPrototype:Be,BUGGY_SAFARI_ITERATORS:yr},mr=Nt.f,Sr=ot("toStringTag"),wr=function(t,e,r){t&&!r&&(t=t.prototype),t&&!D(t,Sr)&&mr(t,Sr,{configurable:!0,value:e})},Or=br.IteratorPrototype,Er=function(){return this},jr=String,xr=TypeError,Rr=function(t){if(function(t){return at(t)||null===t}(t))return t;throw new xr("Can't set "+jr(t)+" as a prototype")},Pr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=function(t,e,r){try{return d(Rt(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return E(r),Rr(n),at(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),Ar=We.PROPER,Tr=We.CONFIGURABLE,Cr=br.IteratorPrototype,kr=br.BUGGY_SAFARI_ITERATORS,zr=ot("iterator"),Ir="keys",Lr="values",Mr="entries",Fr=function(){return this},_r=function(t,e,r,n,o,i,u){!function(t,e,r,n){var o=e+" Iterator";t.prototype=de(Or,{next:xe(+!n,r)}),wr(t,o,!1),Oe[o]=Er}(r,e,n);var a,c,f,s=function(t){if(t===o&&h)return h;if(!kr&&t&&t in p)return p[t];switch(t){case Ir:case Lr:case Mr:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",v=!1,p=t.prototype,d=p[zr]||p["@@iterator"]||o&&p[o],h=!kr&&d||s(o),y="Array"===e&&p.entries||d;if(y&&(a=dr(y.call(new t)))!==Object.prototype&&a.next&&(dr(a)!==Cr&&(Pr?Pr(a,Cr):ut(a[zr])||Ke(a,zr,Fr)),wr(a,l,!0)),Ar&&o===Lr&&d&&d.name!==Lr&&(Tr?Re(p,"name",Lr):(v=!0,h=function(){return bt(d,this)})),o)if(c={values:s(Lr),keys:i?h:s(Ir),entries:s(Mr)},u)for(f in c)(kr||v||!(f in p))&&Ke(p,f,c[f]);else fr({target:e,proto:!0,forced:kr||v},c);return p[zr]!==h&&Ke(p,zr,h,{name:o}),Oe[e]=h,c},Dr=function(t,e){return{value:t,done:e}},Nr=Nt.f,Gr="Array Iterator",Wr=ze.set,Vr=ze.getterFor(Gr),Br=_r(Array,"Array",(function(t,e){Wr(this,{type:Gr,target:j(t),index:0,kind:e})}),(function(){var t=Vr(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,Dr(void 0,!0);switch(t.kind){case"keys":return Dr(r,!1);case"values":return Dr(e[r],!1)}return Dr([r,e[r]],!1)}),"values"),qr=Oe.Arguments=Oe.Array;if(we("keys"),we("values"),we("entries"),lt&&"values"!==qr.name)try{Nr(qr,"name",{value:"values"})}catch(t){}var Ur=function(t){if("Function"===g(t))return d(t)},Hr=Ur(Ur.bind),Xr=function(t,e){return Rt(t),void 0===e?t:s?Hr(t,e):function(){return t.apply(e,arguments)}},Kr=Array.isArray||function(t){return"Array"===g(t)},Yr={};Yr[ot("toStringTag")]="z";var $r="[object z]"===String(Yr),Jr=ot("toStringTag"),Qr=Object,Zr="Arguments"===g(function(){return arguments}()),tn=$r?g:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Qr(t),Jr))?r:Zr?g(e):"Object"===(n=g(e))&&ut(e.callee)?"Arguments":n},en=function(){},rn=mt("Reflect","construct"),nn=/^\s*(?:class|function)\b/,on=d(nn.exec),un=!nn.test(en),an=function(t){if(!ut(t))return!1;try{return rn(en,[],t),!0}catch(t){return!1}},cn=function(t){if(!ut(t))return!1;switch(tn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return un||!!on(nn,He(t))}catch(t){return!0}};cn.sham=!0;var fn,sn=!rn||f((function(){var t;return an(an.call)||!an(Object)||!an((function(){t=!0}))||t}))?cn:an,ln=ot("species"),vn=Array,pn=function(t,e){return new(function(t){var e;return Kr(t)&&(e=t.constructor,(sn(e)&&(e===vn||Kr(e.prototype))||at(e)&&null===(e=e[ln]))&&(e=void 0)),void 0===e?vn:e}(t))(0===e?0:e)},dn=d([].push),hn=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,f,s,l){for(var v,p,d=F(c),h=S(d),y=Xt(h),g=Xr(f,s),b=0,m=l||pn,w=e?m(c,y):r||u?m(c,0):void 0;y>b;b++)if((a||b in h)&&(p=g(v=h[b],b,d),t))if(e)w[b]=p;else if(p)switch(t){case 3:return!0;case 5:return v;case 6:return b;case 2:dn(w,v)}else switch(t){case 4:return!1;case 7:dn(w,v)}return i?-1:n||o?o:w}},yn={forEach:hn(0),map:hn(1),filter:hn(2),some:hn(3),every:hn(4),find:hn(5),findIndex:hn(6),filterReject:hn(7)},gn=ot("species"),bn=yn.map,mn=(fn="map",J>=51||!f((function(){var t=[];return(t.constructor={})[gn]=function(){return{foo:1}},1!==t[fn](Boolean).foo})));fr({target:"Array",proto:!0,forced:!mn},{map:function(t){return bn(this,t,arguments.length>1?arguments[1]:void 0)}});var Sn=d(Me.f),wn=d([].push),On=lt&&f((function(){var t=Object.create(null);return t[2]=2,!Sn(t,2)})),En=function(t){return function(e){for(var r,n=j(e),o=ee(n),i=On&&null===dr(n),u=o.length,a=0,c=[];u>a;)r=o[a++],lt&&!(i?r in n:Sn(n,r))||wn(c,t?[r,n[r]]:n[r]);return c}},jn={entries:En(!0),values:En(!1)}.entries;fr({target:"Object",stat:!0},{entries:function(t){return jn(t)}});var xn=!f((function(){return Object.isExtensible(Object.preventExtensions({}))})),Rn=d([].slice),Pn=$e.f,An="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Tn={f:function(t){return An&&"Window"===g(t)?function(t){try{return Pn(t)}catch(t){return Rn(An)}}(t):Pn(j(t))}},Cn=f((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),kn=Object.isExtensible,zn=f((function(){kn(1)}))||Cn?function(t){return!!at(t)&&((!Cn||"ArrayBuffer"!==g(t))&&(!kn||kn(t)))}:kn,In=R((function(t){var e=Nt.f,r=!1,n=V("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}})},u=t.exports={enable:function(){u.enable=function(){},r=!0;var t=$e.f,e=d([].splice),o={};o[n]=1,t(o).length&&($e.f=function(r){for(var o=t(r),i=0,u=o.length;i<u;i++)if(o[i]===n){e(o,i,1);break}return o},fr({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Tn.f}))},fastKey:function(t,e){if(!at(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!D(t,n)){if(!zn(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!D(t,n)){if(!zn(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return xn&&r&&zn(t)&&!D(t,n)&&i(t),t}};$t[n]=!0})),Ln=In.onFreeze,Mn=Object.freeze,Fn=f((function(){Mn(1)}));fr({target:"Object",stat:!0,forced:Fn,sham:!xn},{freeze:function(t){return Mn&&at(t)?Mn(Ln(t)):t}});var _n=ot("iterator"),Dn=Array.prototype,Nn=ot("iterator"),Gn=function(t){if(!w(t))return Pt(t,Nn)||Pt(t,"@@iterator")||Oe[tn(t)]},Wn=TypeError,Vn=function(t,e,r){var n,o;st(t);try{if(!(n=Pt(t,"return"))){if("throw"===e)throw r;return r}n=bt(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return st(n),r},Bn=TypeError,qn=function(t,e){this.stopped=t,this.result=e},Un=qn.prototype,Hn=function(t,e,r){var n,o,i,u,a,c,f,s,l=r&&r.that,v=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),y=Xr(e,l),g=function(t){return n&&Vn(n,"normal",t),new qn(!0,t)},b=function(t){return v?(st(t),h?y(t[0],t[1],g):y(t[0],t[1])):h?y(t,g):y(t)};if(p)n=t.iterator;else if(d)n=t;else{if(!(o=Gn(t)))throw new Bn(jt(t)+" is not iterable");if(void 0!==(s=o)&&(Oe.Array===s||Dn[_n]===s)){for(i=0,u=Xt(t);u>i;i++)if((a=b(t[i]))&&St(Un,a))return a;return new qn(!1)}n=function(t,e){var r=arguments.length<2?Gn(t):e;if(Rt(r))return st(bt(r,t));throw new Wn(jt(t)+" is not iterable")}(t,o)}for(c=p?t.next:n.next;!(f=bt(c,n)).done;){try{a=b(f.value)}catch(t){Vn(n,"throw",t)}if("object"==typeof a&&a&&St(Un,a))return a}return new qn(!1)};fr({target:"Object",stat:!0},{fromEntries:function(t){var e={};return Hn(t,(function(t,r){var n,o,i;n=e,o=t,i=r,lt?Nt.f(n,o,xe(0,i)):n[o]=i}),{AS_ENTRIES:!0}),e}});var Xn=f((function(){ee(1)}));fr({target:"Object",stat:!0,forced:Xn},{keys:function(t){return ee(F(t))}});var Kn=$r?{}.toString:function(){return"[object "+tn(this)+"]"};$r||Ke(Object.prototype,"toString",Kn,{unsafe:!0});var Yn=String,$n=function(t){if("Symbol"===tn(t))throw new TypeError("Cannot convert a Symbol value to a string");return Yn(t)},Jn=d("".charAt),Qn=d("".charCodeAt),Zn=d("".slice),to=function(t){return function(e,r){var n,o,i=$n(E(e)),u=Bt(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=Qn(i,u))<55296||n>56319||u+1===a||(o=Qn(i,u+1))<56320||o>57343?t?Jn(i,u):n:t?Zn(i,u,u+2):o-56320+(n-55296<<10)+65536}},eo={codeAt:to(!1),charAt:to(!0)}.charAt,ro="String Iterator",no=ze.set,oo=ze.getterFor(ro);_r(String,"String",(function(t){no(this,{type:ro,string:$n(t),index:0})}),(function(){var t,e=oo(this),r=e.string,n=e.index;return n>=r.length?Dr(void 0,!0):(t=eo(r,n),e.index+=t.length,Dr(t,!1))}));var io=function(t,e,r){for(var n in e)Ke(t,n,e[n],r);return t},uo=TypeError,ao=function(t,e){if(St(e,t))return t;throw new uo("Incorrect invocation")},co=ot("iterator"),fo=!1;try{var so=0,lo={next:function(){return{done:!!so++}},return:function(){fo=!0}};lo[co]=function(){return this},Array.from(lo,(function(){throw 2}))}catch(t){}var vo=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=C[t],a=u&&u.prototype,c=u,s={},l=function(t){var e=d(a[t]);Ke(a,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!at(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!at(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!at(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(ar(t,!ut(u)||!(o||a.forEach&&!f((function(){(new u).entries().next()})))))c=r.getConstructor(e,t,n,i),In.enable();else if(ar(t,!0)){var v=new c,p=v[i](o?{}:-0,1)!==v,h=f((function(){v.has(1)})),y=function(t,e){try{if(!e&&!fo)return!1}catch(t){return!1}var r=!1;try{var n={};n[co]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){new u(t)})),g=!o&&f((function(){for(var t=new u,e=5;e--;)t[i](e,e);return!t.has(-0)}));y||((c=e((function(t,e){ao(t,a);var r=function(t,e,r){var n,o;return Pr&&ut(n=e.constructor)&&n!==r&&at(o=n.prototype)&&o!==r.prototype&&Pr(t,o),t}(new u,t,c);return w(e)||Hn(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=a,a.constructor=c),(h||g)&&(l("delete"),l("has"),n&&l("get")),(g||p)&&l(i),o&&a.clear&&delete a.clear}return s[t]=c,fr({global:!0,constructor:!0,forced:c!==u},s),wr(c,t),o||r.setStrong(c,t,n),c},po=In.getWeakData,ho=ze.set,yo=ze.getterFor,go=yn.find,bo=yn.findIndex,mo=d([].splice),So=0,wo=function(t){return t.frozen||(t.frozen=new Oo)},Oo=function(){this.entries=[]},Eo=function(t,e){return go(t.entries,(function(t){return t[0]===e}))};Oo.prototype={get:function(t){var e=Eo(this,t);if(e)return e[1]},has:function(t){return!!Eo(this,t)},set:function(t,e){var r=Eo(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=bo(this.entries,(function(e){return e[0]===t}));return~e&&mo(this.entries,e,1),!!~e}};var jo,xo={getConstructor:function(t,e,r,n){var o=t((function(t,o){ao(t,i),ho(t,{type:e,id:So++,frozen:null}),w(o)||Hn(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,u=yo(e),a=function(t,e,r){var n=u(t),o=po(st(e),!0);return!0===o?wo(n).set(e,r):o[n.id]=r,t};return io(i,{delete:function(t){var e=u(this);if(!at(t))return!1;var r=po(t);return!0===r?wo(e).delete(t):r&&D(r,e.id)&&delete r[e.id]},has:function(t){var e=u(this);if(!at(t))return!1;var r=po(t);return!0===r?wo(e).has(t):r&&D(r,e.id)}}),io(i,r?{get:function(t){var e=u(this);if(at(t)){var r=po(t);if(!0===r)return wo(e).get(t);if(r)return r[e.id]}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Ro=ze.enforce,Po=Object,Ao=Array.isArray,To=Po.isExtensible,Co=Po.isFrozen,ko=Po.isSealed,zo=Po.freeze,Io=Po.seal,Lo=!C.ActiveXObject&&"ActiveXObject"in C,Mo=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Fo=vo("WeakMap",Mo,xo),_o=Fo.prototype,Do=d(_o.set);if(je)if(Lo){jo=xo.getConstructor(Mo,"WeakMap",!0),In.enable();var No=d(_o.delete),Go=d(_o.has),Wo=d(_o.get);io(_o,{delete:function(t){if(at(t)&&!To(t)){var e=Ro(this);return e.frozen||(e.frozen=new jo),No(this,t)||e.frozen.delete(t)}return No(this,t)},has:function(t){if(at(t)&&!To(t)){var e=Ro(this);return e.frozen||(e.frozen=new jo),Go(this,t)||e.frozen.has(t)}return Go(this,t)},get:function(t){if(at(t)&&!To(t)){var e=Ro(this);return e.frozen||(e.frozen=new jo),Go(this,t)?Wo(this,t):e.frozen.get(t)}return Wo(this,t)},set:function(t,e){if(at(t)&&!To(t)){var r=Ro(this);r.frozen||(r.frozen=new jo),Go(this,t)?Do(this,t,e):r.frozen.set(t,e)}else Do(this,t,e);return this}})}else xn&&f((function(){var t=zo([]);return Do(new Fo,t,1),!Co(t)}))&&io(_o,{set:function(t,e){var r;return Ao(t)&&(Co(t)?r=zo:ko(t)&&(r=Io)),Do(this,t,e),r&&r(t),this}});var Vo={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},Bo=ht("span").classList,qo=Bo&&Bo.constructor&&Bo.constructor.prototype,Uo=qo===Object.prototype?void 0:qo,Ho=ot("iterator"),Xo=Br.values,Ko=function(t,e){if(t){if(t[Ho]!==Xo)try{Re(t,Ho,Xo)}catch(e){t[Ho]=Xo}if(wr(t,e,!0),Vo[e])for(var r in Br)if(t[r]!==Br[r])try{Re(t,r,Br[r])}catch(e){t[r]=Br[r]}}};for(var Yo in Vo)Ko(C[Yo]&&C[Yo].prototype,Yo);Ko(Uo,"DOMTokenList");var $o=function(){return $o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},$o.apply(this,arguments)};function Jo(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}"function"==typeof SuppressedError&&SuppressedError;var Qo=new WeakMap;function Zo(t,e){if(!e.relativeSelection)return null;var n=Qo.get(t.children);n||(n=new WeakMap,Qo.set(t.children,n));var o=n.get(e);if(void 0===o)try{o=r.relativeRangeToSlateRange(t.sharedRoot,t,e.relativeSelection),n.set(e,o)}catch(t){return null}return o}function ti(t,e,r){var i,u,a=r.yOffset,c=r.xOffset,f=r.shouldGenerateOverlay,s=Jo(o.Range.edges(e),2),l=s[0],v=s[1],p=function(t,e){try{return n.DomEditor.toDOMRange(t,e)}catch(t){return null}}(t,e);if(!p)return{caretPosition:null,selectionRects:[]};var d=[],h=o.Editor.nodes(t,{at:e,match:function(t,e){return o.Text.isText(t)&&(!f||f(t,e))}}),y=null,g=o.Range.isBackward(e);try{for(var b=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.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(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),m=b.next();!m.done;m=b.next()){var S=Jo(m.value,2),w=S[0],O=S[1],E=n.DomEditor.toDOMNode(t,w),j=o.Path.equals(O,l.path),x=o.Path.equals(O,v.path),R=null;if(j||x){var P=document.createRange();P.selectNode(E),j&&P.setStart(p.startContainer,p.startOffset),x&&P.setEnd(p.endContainer,p.endOffset),R=P.getClientRects()}else R=E.getClientRects();for(var A=g?j:x,T=0;T<R.length;T+=1){var C=R.item(T);if(C){var k=A&&(g?0===T:T===R.length-1),z=C.top-a,I=C.left-c;k&&(y={height:C.height,top:z,left:I+(g||o.Range.isCollapsed(e)?0:C.width)}),d.push({width:C.width,height:C.height,top:z,left:I})}}}}catch(t){i={error:t}}finally{try{m&&!m.done&&(u=b.return)&&u.call(b)}finally{if(i)throw i.error}}return{selectionRects:d,caretPosition:y}}function ei(){var t=c();return r.CursorEditor.isCursorEditor(t)||console.warn("Cannot use useSyncExternalStore outside the context of a RemoteCursorEditor"),t}
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
10
|
+
*/var ri="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},ni=u.default.useState,oi=u.default.useEffect,ii=u.default.useLayoutEffect,ui=u.default.useDebugValue;function ai(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!ri(t,r)}catch(t){return!0}}var ci="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var r=e(),n=ni({inst:{value:r,getSnapshot:e}}),o=n[0].inst,i=n[1];return ii((function(){o.value=r,o.getSnapshot=e,ai(o)&&i({inst:o})}),[t,r,e]),oi((function(){return ai(o)&&i({inst:o}),t((function(){ai(o)&&i({inst:o})}))}),[t]),ui(r),r},fi={useSyncExternalStore:void 0!==u.default.useSyncExternalStore?u.default.useSyncExternalStore:ci};
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* use-sync-external-store-shim.development.js
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
R((function(t,e){}));var si=R((function(t){t.exports=fi}));
|
|
21
21
|
/**
|
|
22
22
|
* @license React
|
|
23
23
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
@@ -26,7 +26,7 @@ v((function(t,e){}));var w=v((function(t){t.exports=S}));
|
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license found in the
|
|
28
28
|
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var
|
|
29
|
+
*/var li="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},vi=si.useSyncExternalStore,pi=u.default.useRef,di=u.default.useEffect,hi=u.default.useMemo,yi=u.default.useDebugValue,gi={useSyncExternalStoreWithSelector:function(t,e,r,n,o){var i=pi(null);if(null===i.current){var u={hasValue:!1,value:null};i.current=u}else u=i.current;i=hi((function(){function t(t){if(!c){if(c=!0,i=t,t=n(t),void 0!==o&&u.hasValue){var e=u.value;if(o(e,t))return a=e}return a=t}if(e=a,li(i,t))return e;var r=n(t);return void 0!==o&&o(e,r)?e:(i=t,a=r)}var i,a,c=!1,f=void 0===r?null:r;return[function(){return t(e())},null===f?void 0:function(){return t(f())}]}),[e,r,n,o]);var a=vi(t,i[0],i[1]);return di((function(){u.hasValue=!0,u.value=a}),[a]),yi(a),a}};
|
|
30
30
|
/**
|
|
31
31
|
* @license React
|
|
32
32
|
* use-sync-external-store-shim/with-selector.development.js
|
|
@@ -36,5 +36,5 @@ v((function(t,e){}));var w=v((function(t){t.exports=S}));
|
|
|
36
36
|
* This source code is licensed under the MIT license found in the
|
|
37
37
|
* LICENSE file in the root directory of this source tree.
|
|
38
38
|
*/
|
|
39
|
-
v((function(t,e){}));var T,C,k=v((function(t){t.exports=A})),z=function(t){try{return!!t()}catch(t){return!0}},I=!z((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),L=Function.prototype,M=L.call,F=I&&L.bind.bind(M,M),_=I?F:function(t){return function(){return M.apply(t,arguments)}},D=_({}.toString),N=_("".slice),G=function(t){return N(D(t),8,-1)},W=Object,V=_("".split),B=z((function(){return!W("z").propertyIsEnumerable(0)}))?function(t){return"String"===G(t)?V(t,""):W(t)}:W,q=function(t){return null==t},U=TypeError,H=function(t){if(q(t))throw new U("Can't call method on "+t);return t},X=function(t){return B(H(t))},K=function(t){return t&&t.Math===Math&&t},Y=K("object"==typeof globalThis&&globalThis)||K("object"==typeof window&&window)||K("object"==typeof self&&self)||K("object"==typeof l&&l)||K("object"==typeof l&&l)||function(){return this}()||Function("return this")(),$=Object.defineProperty,J=function(t,e){try{$(Y,t,{value:e,configurable:!0,writable:!0})}catch(r){Y[t]=e}return e},Q=v((function(t){var e="__core-js_shared__",r=t.exports=Y[e]||J(e,{});(r.versions||(r.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),Z=function(t,e){return Q[t]||(Q[t]=e||{})},tt=Object,et=function(t){return tt(H(t))},rt=_({}.hasOwnProperty),nt=Object.hasOwn||function(t,e){return rt(et(t),e)},ot=0,it=Math.random(),ut=_(1..toString),at=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ut(++ot+it,36)},ct=Y.navigator,ft=ct&&ct.userAgent,st=ft?String(ft):"",lt=Y.process,vt=Y.Deno,pt=lt&<.versions||vt&&vt.version,dt=pt&&pt.v8;dt&&(C=(T=dt.split("."))[0]>0&&T[0]<4?1:+(T[0]+T[1])),!C&&st&&(!(T=st.match(/Edge\/(\d+)/))||T[1]>=74)&&(T=st.match(/Chrome\/(\d+)/))&&(C=+T[1]);var ht,yt=C,gt=Y.String,bt=!!Object.getOwnPropertySymbols&&!z((function(){var t=Symbol("symbol detection");return!gt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&yt&&yt<41})),mt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,St=Y.Symbol,wt=Z("wks"),Ot=mt?St.for||St:St&&St.withoutSetter||at,Et=function(t){return nt(wt,t)||(wt[t]=bt&&nt(St,t)?St[t]:Ot("Symbol."+t)),wt[t]},jt="object"==typeof document&&document.all,xt=void 0===jt&&void 0!==jt?function(t){return"function"==typeof t||t===jt}:function(t){return"function"==typeof t},Rt=function(t){return"object"==typeof t?null!==t:xt(t)},Pt=String,At=TypeError,Tt=function(t){if(Rt(t))return t;throw new At(Pt(t)+" is not an object")},Ct=!z((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),kt=Ct&&z((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),zt=Y.document,It=Rt(zt)&&Rt(zt.createElement),Lt=function(t){return It?zt.createElement(t):{}},Mt=!Ct&&!z((function(){return 7!==Object.defineProperty(Lt("div"),"a",{get:function(){return 7}}).a})),Ft=Function.prototype.call,_t=I?Ft.bind(Ft):function(){return Ft.apply(Ft,arguments)},Dt=function(t,e){return arguments.length<2?(r=Y[t],xt(r)?r:void 0):Y[t]&&Y[t][e];var r},Nt=_({}.isPrototypeOf),Gt=Object,Wt=mt?function(t){return"symbol"==typeof t}:function(t){var e=Dt("Symbol");return xt(e)&&Nt(e.prototype,Gt(t))},Vt=String,Bt=function(t){try{return Vt(t)}catch(t){return"Object"}},qt=TypeError,Ut=function(t){if(xt(t))return t;throw new qt(Bt(t)+" is not a function")},Ht=function(t,e){var r=t[e];return q(r)?void 0:Ut(r)},Xt=TypeError,Kt=TypeError,Yt=Et("toPrimitive"),$t=function(t,e){if(!Rt(t)||Wt(t))return t;var r,n=Ht(t,Yt);if(n){if(void 0===e&&(e="default"),r=_t(n,t,e),!Rt(r)||Wt(r))return r;throw new Kt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&xt(r=t.toString)&&!Rt(n=_t(r,t)))return n;if(xt(r=t.valueOf)&&!Rt(n=_t(r,t)))return n;if("string"!==e&&xt(r=t.toString)&&!Rt(n=_t(r,t)))return n;throw new Xt("Can't convert object to primitive value")}(t,e)},Jt=function(t){var e=$t(t,"string");return Wt(e)?e:e+""},Qt=TypeError,Zt=Object.defineProperty,te=Object.getOwnPropertyDescriptor,ee="enumerable",re="configurable",ne="writable",oe={f:Ct?kt?function(t,e,r){if(Tt(t),e=Jt(e),Tt(r),"function"==typeof t&&"prototype"===e&&"value"in r&&ne in r&&!r[ne]){var n=te(t,e);n&&n[ne]&&(t[e]=r.value,r={configurable:re in r?r[re]:n[re],enumerable:ee in r?r[ee]:n[ee],writable:!1})}return Zt(t,e,r)}:Zt:function(t,e,r){if(Tt(t),e=Jt(e),Tt(r),Mt)try{return Zt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new Qt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},ie=Math.ceil,ue=Math.floor,ae=Math.trunc||function(t){var e=+t;return(e>0?ue:ie)(e)},ce=function(t){var e=+t;return e!=e||0===e?0:ae(e)},fe=Math.max,se=Math.min,le=Math.min,ve=function(t){return e=t.length,(r=ce(e))>0?le(r,9007199254740991):0;var e,r},pe=function(t){return function(e,r,n){var o=X(e),i=ve(o);if(0===i)return!t&&-1;var u,a=function(t,e){var r=ce(t);return r<0?fe(r+e,0):se(r,e)}(n,i);if(t&&r!=r){for(;i>a;)if((u=o[a++])!=u)return!0}else for(;i>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},de={includes:pe(!0),indexOf:pe(!1)},he={},ye=de.indexOf,ge=_([].push),be=function(t,e){var r,n=X(t),o=0,i=[];for(r in n)!nt(he,r)&&nt(n,r)&&ge(i,r);for(;e.length>o;)nt(n,r=e[o++])&&(~ye(i,r)||ge(i,r));return i},me=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Se=Object.keys||function(t){return be(t,me)},we=Ct&&!kt?Object.defineProperties:function(t,e){Tt(t);for(var r,n=X(e),o=Se(e),i=o.length,u=0;i>u;)oe.f(t,r=o[u++],n[r]);return t},Oe={f:we},Ee=Dt("document","documentElement"),je=Z("keys"),xe=function(t){return je[t]||(je[t]=at(t))},Re="prototype",Pe="script",Ae=xe("IE_PROTO"),Te=function(){},Ce=function(t){return"<"+Pe+">"+t+"</"+Pe+">"},ke=function(t){t.write(Ce("")),t.close();var e=t.parentWindow.Object;return t=null,e},ze=function(){try{ht=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;ze="undefined"!=typeof document?document.domain&&ht?ke(ht):(e=Lt("iframe"),r="java"+Pe+":",e.style.display="none",Ee.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Ce("document.F=Object")),t.close(),t.F):ke(ht);for(var n=me.length;n--;)delete ze[Re][me[n]];return ze()};he[Ae]=!0;var Ie=Object.create||function(t,e){var r;return null!==t?(Te[Re]=Tt(t),r=new Te,Te[Re]=null,r[Ae]=t):r=ze(),void 0===e?r:Oe.f(r,e)},Le=oe.f,Me=Et("unscopables"),Fe=Array.prototype;void 0===Fe[Me]&&Le(Fe,Me,{configurable:!0,value:Ie(null)});var _e,De,Ne,Ge=function(t){Fe[Me][t]=!0},We={},Ve=Y.WeakMap,Be=xt(Ve)&&/native code/.test(String(Ve)),qe=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ue=Ct?function(t,e,r){return oe.f(t,e,qe(1,r))}:function(t,e,r){return t[e]=r,t},He="Object already initialized",Xe=Y.TypeError,Ke=Y.WeakMap;if(Be||Q.state){var Ye=Q.state||(Q.state=new Ke);Ye.get=Ye.get,Ye.has=Ye.has,Ye.set=Ye.set,_e=function(t,e){if(Ye.has(t))throw new Xe(He);return e.facade=t,Ye.set(t,e),e},De=function(t){return Ye.get(t)||{}},Ne=function(t){return Ye.has(t)}}else{var $e=xe("state");he[$e]=!0,_e=function(t,e){if(nt(t,$e))throw new Xe(He);return e.facade=t,Ue(t,$e,e),e},De=function(t){return nt(t,$e)?t[$e]:{}},Ne=function(t){return nt(t,$e)}}var Je={set:_e,get:De,has:Ne,enforce:function(t){return Ne(t)?De(t):_e(t,{})},getterFor:function(t){return function(e){var r;if(!Rt(e)||(r=De(e)).type!==t)throw new Xe("Incompatible receiver, "+t+" required");return r}}},Qe={}.propertyIsEnumerable,Ze=Object.getOwnPropertyDescriptor,tr={f:Ze&&!Qe.call({1:2},1)?function(t){var e=Ze(this,t);return!!e&&e.enumerable}:Qe},er=Object.getOwnPropertyDescriptor,rr={f:Ct?er:function(t,e){if(t=X(t),e=Jt(e),Mt)try{return er(t,e)}catch(t){}if(nt(t,e))return qe(!_t(tr.f,t,e),t[e])}},nr=Function.prototype,or=Ct&&Object.getOwnPropertyDescriptor,ir=nt(nr,"name"),ur={EXISTS:ir,PROPER:ir&&"something"===function(){}.name,CONFIGURABLE:ir&&(!Ct||Ct&&or(nr,"name").configurable)},ar=_(Function.toString);xt(Q.inspectSource)||(Q.inspectSource=function(t){return ar(t)});var cr,fr,sr,lr=Q.inspectSource,vr=v((function(t){var e=ur.CONFIGURABLE,r=Je.enforce,n=Je.get,o=String,i=Object.defineProperty,u=_("".slice),a=_("".replace),c=_([].join),f=Ct&&!z((function(){return 8!==i((function(){}),"length",{value:8}).length})),s=String(String).split("String"),l=t.exports=function(t,n,l){"Symbol("===u(o(n),0,7)&&(n="["+a(o(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),l&&l.getter&&(n="get "+n),l&&l.setter&&(n="set "+n),(!nt(t,"name")||e&&t.name!==n)&&(Ct?i(t,"name",{value:n,configurable:!0}):t.name=n),f&&l&&nt(l,"arity")&&t.length!==l.arity&&i(t,"length",{value:l.arity});try{l&&nt(l,"constructor")&&l.constructor?Ct&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var v=r(t);return nt(v,"source")||(v.source=c(s,"string"==typeof n?n:"")),t};Function.prototype.toString=l((function(){return xt(this)&&n(this).source||lr(this)}),"toString")})),pr=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(xt(r)&&vr(r,i,n),n.global)o?t[e]=r:J(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:oe.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},dr=me.concat("length","prototype"),hr={f:Object.getOwnPropertyNames||function(t){return be(t,dr)}},yr={f:Object.getOwnPropertySymbols},gr=_([].concat),br=Dt("Reflect","ownKeys")||function(t){var e=hr.f(Tt(t)),r=yr.f;return r?gr(e,r(t)):e},mr=function(t,e,r){for(var n=br(e),o=oe.f,i=rr.f,u=0;u<n.length;u++){var a=n[u];nt(t,a)||r&&nt(r,a)||o(t,a,i(e,a))}},Sr=/#|\.prototype\./,wr=function(t,e){var r=Er[Or(t)];return r===xr||r!==jr&&(xt(e)?z(e):!!e)},Or=wr.normalize=function(t){return String(t).replace(Sr,".").toLowerCase()},Er=wr.data={},jr=wr.NATIVE="N",xr=wr.POLYFILL="P",Rr=wr,Pr=rr.f,Ar=function(t,e){var r,n,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?Y:f?Y[a]||J(a,{}):Y[a]&&Y[a].prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(u=Pr(r,n))&&u.value:r[n],!Rr(c?n:a+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;mr(i,o)}(t.sham||o&&o.sham)&&Ue(i,"sham",!0),pr(r,n,i,t)}},Tr=!z((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Cr=xe("IE_PROTO"),kr=Object,zr=kr.prototype,Ir=Tr?kr.getPrototypeOf:function(t){var e=et(t);if(nt(e,Cr))return e[Cr];var r=e.constructor;return xt(r)&&e instanceof r?r.prototype:e instanceof kr?zr:null},Lr=Et("iterator"),Mr=!1;[].keys&&("next"in(sr=[].keys())?(fr=Ir(Ir(sr)))!==Object.prototype&&(cr=fr):Mr=!0);var Fr=!Rt(cr)||z((function(){var t={};return cr[Lr].call(t)!==t}));Fr&&(cr={}),xt(cr[Lr])||pr(cr,Lr,(function(){return this}));var _r={IteratorPrototype:cr,BUGGY_SAFARI_ITERATORS:Mr},Dr=oe.f,Nr=Et("toStringTag"),Gr=function(t,e,r){t&&!r&&(t=t.prototype),t&&!nt(t,Nr)&&Dr(t,Nr,{configurable:!0,value:e})},Wr=_r.IteratorPrototype,Vr=function(){return this},Br=String,qr=TypeError,Ur=function(t){if(function(t){return Rt(t)||null===t}(t))return t;throw new qr("Can't set "+Br(t)+" as a prototype")},Hr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=function(t,e,r){try{return _(Ut(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return H(r),Ur(n),Rt(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),Xr=ur.PROPER,Kr=ur.CONFIGURABLE,Yr=_r.IteratorPrototype,$r=_r.BUGGY_SAFARI_ITERATORS,Jr=Et("iterator"),Qr="keys",Zr="values",tn="entries",en=function(){return this},rn=function(t,e,r,n,o,i,u){!function(t,e,r,n){var o=e+" Iterator";t.prototype=Ie(Wr,{next:qe(+!n,r)}),Gr(t,o,!1),We[o]=Vr}(r,e,n);var a,c,f,s=function(t){if(t===o&&h)return h;if(!$r&&t&&t in p)return p[t];switch(t){case Qr:case Zr:case tn:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",v=!1,p=t.prototype,d=p[Jr]||p["@@iterator"]||o&&p[o],h=!$r&&d||s(o),y="Array"===e&&p.entries||d;if(y&&(a=Ir(y.call(new t)))!==Object.prototype&&a.next&&(Ir(a)!==Yr&&(Hr?Hr(a,Yr):xt(a[Jr])||pr(a,Jr,en)),Gr(a,l,!0)),Xr&&o===Zr&&d&&d.name!==Zr&&(Kr?Ue(p,"name",Zr):(v=!0,h=function(){return _t(d,this)})),o)if(c={values:s(Zr),keys:i?h:s(Qr),entries:s(tn)},u)for(f in c)($r||v||!(f in p))&&pr(p,f,c[f]);else Ar({target:e,proto:!0,forced:$r||v},c);return p[Jr]!==h&&pr(p,Jr,h,{name:o}),We[e]=h,c},nn=function(t,e){return{value:t,done:e}},on=oe.f,un="Array Iterator",an=Je.set,cn=Je.getterFor(un),fn=rn(Array,"Array",(function(t,e){an(this,{type:un,target:X(t),index:0,kind:e})}),(function(){var t=cn(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,nn(void 0,!0);switch(t.kind){case"keys":return nn(r,!1);case"values":return nn(e[r],!1)}return nn([r,e[r]],!1)}),"values"),sn=We.Arguments=We.Array;if(Ge("keys"),Ge("values"),Ge("entries"),Ct&&"values"!==sn.name)try{on(sn,"name",{value:"values"})}catch(t){}var ln={};ln[Et("toStringTag")]="z";var vn="[object z]"===String(ln),pn=Et("toStringTag"),dn=Object,hn="Arguments"===G(function(){return arguments}()),yn=vn?G:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=dn(t),pn))?r:hn?G(e):"Object"===(n=G(e))&&xt(e.callee)?"Arguments":n},gn=vn?{}.toString:function(){return"[object "+yn(this)+"]"};vn||pr(Object.prototype,"toString",gn,{unsafe:!0});var bn=String,mn=function(t){if("Symbol"===yn(t))throw new TypeError("Cannot convert a Symbol value to a string");return bn(t)},Sn=function(){var t=Tt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},wn=RegExp.prototype,On=ur.PROPER,En="toString",jn=RegExp.prototype,xn=jn[En],Rn=z((function(){return"/a/b"!==xn.call({source:"a",flags:"b"})})),Pn=On&&xn.name!==En;(Rn||Pn)&&pr(jn,En,(function(){var t=Tt(this),e=mn(t.source),r=mn(function(t){var e=t.flags;return void 0!==e||"flags"in wn||nt(t,"flags")||!Nt(wn,t)?e:_t(Sn,t)}(t));return"/"+e+"/"+r}),{unsafe:!0});var An=_([].slice),Tn=hr.f,Cn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],kn={f:function(t){return Cn&&"Window"===G(t)?function(t){try{return Tn(t)}catch(t){return An(Cn)}}(t):Tn(X(t))}},zn=z((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),In=Object.isExtensible,Ln=z((function(){In(1)}))||zn?function(t){return!!Rt(t)&&((!zn||"ArrayBuffer"!==G(t))&&(!In||In(t)))}:In,Mn=!z((function(){return Object.isExtensible(Object.preventExtensions({}))})),Fn=v((function(t){var e=oe.f,r=!1,n=at("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}})},u=t.exports={enable:function(){u.enable=function(){},r=!0;var t=hr.f,e=_([].splice),o={};o[n]=1,t(o).length&&(hr.f=function(r){for(var o=t(r),i=0,u=o.length;i<u;i++)if(o[i]===n){e(o,i,1);break}return o},Ar({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:kn.f}))},fastKey:function(t,e){if(!Rt(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!nt(t,n)){if(!Ln(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!nt(t,n)){if(!Ln(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return Mn&&r&&Ln(t)&&!nt(t,n)&&i(t),t}};he[n]=!0})),_n=function(t){if("Function"===G(t))return _(t)},Dn=_n(_n.bind),Nn=function(t,e){return Ut(t),void 0===e?t:I?Dn(t,e):function(){return t.apply(e,arguments)}},Gn=Et("iterator"),Wn=Array.prototype,Vn=Et("iterator"),Bn=function(t){if(!q(t))return Ht(t,Vn)||Ht(t,"@@iterator")||We[yn(t)]},qn=TypeError,Un=function(t,e,r){var n,o;Tt(t);try{if(!(n=Ht(t,"return"))){if("throw"===e)throw r;return r}n=_t(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return Tt(n),r},Hn=TypeError,Xn=function(t,e){this.stopped=t,this.result=e},Kn=Xn.prototype,Yn=function(t,e,r){var n,o,i,u,a,c,f,s,l=r&&r.that,v=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),y=Nn(e,l),g=function(t){return n&&Un(n,"normal",t),new Xn(!0,t)},b=function(t){return v?(Tt(t),h?y(t[0],t[1],g):y(t[0],t[1])):h?y(t,g):y(t)};if(p)n=t.iterator;else if(d)n=t;else{if(!(o=Bn(t)))throw new Hn(Bt(t)+" is not iterable");if(void 0!==(s=o)&&(We.Array===s||Wn[Gn]===s)){for(i=0,u=ve(t);u>i;i++)if((a=b(t[i]))&&Nt(Kn,a))return a;return new Xn(!1)}n=function(t,e){var r=arguments.length<2?Bn(t):e;if(Ut(r))return Tt(_t(r,t));throw new qn(Bt(t)+" is not iterable")}(t,o)}for(c=p?t.next:n.next;!(f=_t(c,n)).done;){try{a=b(f.value)}catch(t){Un(n,"throw",t)}if("object"==typeof a&&a&&Nt(Kn,a))return a}return new Xn(!1)},$n=TypeError,Jn=function(t,e){if(Nt(e,t))return t;throw new $n("Incorrect invocation")},Qn=Et("iterator"),Zn=!1;try{var to=0,eo={next:function(){return{done:!!to++}},return:function(){Zn=!0}};eo[Qn]=function(){return this},Array.from(eo,(function(){throw 2}))}catch(t){}var ro=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Y[t],a=u&&u.prototype,c=u,f={},s=function(t){var e=_(a[t]);pr(a,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!Rt(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!Rt(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!Rt(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(Rr(t,!xt(u)||!(o||a.forEach&&!z((function(){(new u).entries().next()})))))c=r.getConstructor(e,t,n,i),Fn.enable();else if(Rr(t,!0)){var l=new c,v=l[i](o?{}:-0,1)!==l,p=z((function(){l.has(1)})),d=function(t,e){try{if(!e&&!Zn)return!1}catch(t){return!1}var r=!1;try{var n={};n[Qn]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){new u(t)})),h=!o&&z((function(){for(var t=new u,e=5;e--;)t[i](e,e);return!t.has(-0)}));d||((c=e((function(t,e){Jn(t,a);var r=function(t,e,r){var n,o;return Hr&&xt(n=e.constructor)&&n!==r&&Rt(o=n.prototype)&&o!==r.prototype&&Hr(t,o),t}(new u,t,c);return q(e)||Yn(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=a,a.constructor=c),(p||h)&&(s("delete"),s("has"),n&&s("get")),(h||v)&&s(i),o&&a.clear&&delete a.clear}return f[t]=c,Ar({global:!0,constructor:!0,forced:c!==u},f),Gr(c,t),o||r.setStrong(c,t,n),c},no=function(t,e,r){return r.get&&vr(r.get,e,{getter:!0}),r.set&&vr(r.set,e,{setter:!0}),oe.f(t,e,r)},oo=function(t,e,r){for(var n in e)pr(t,n,e[n],r);return t},io=Et("species"),uo=Fn.fastKey,ao=Je.set,co=Je.getterFor,fo={getConstructor:function(t,e,r,n){var o=t((function(t,o){Jn(t,i),ao(t,{type:e,index:Ie(null),first:null,last:null,size:0}),Ct||(t.size=0),q(o)||Yn(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,u=co(e),a=function(t,e,r){var n,o,i=u(t),a=c(t,e);return a?a.value=r:(i.last=a={index:o=uo(e,!0),key:e,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=a),n&&(n.next=a),Ct?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},c=function(t,e){var r,n=u(t),o=uo(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return oo(i,{clear:function(){for(var t=u(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=Ie(null),Ct?t.size=0:this.size=0},delete:function(t){var e=this,r=u(e),n=c(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),Ct?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=u(this),n=Nn(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),oo(i,r?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),Ct&&no(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=co(e),i=co(n);rn(t,e,(function(t,e){ao(this,{type:n,target:t,state:o(t),kind:e,last:null})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?nn("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,nn(void 0,!0))}),r?"entries":"values",!r,!0),function(t){var e=Dt(t);Ct&&e&&!e[io]&&no(e,io,{configurable:!0,get:function(){return this}})}(e)}};ro("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),fo);var so=_("".charAt),lo=_("".charCodeAt),vo=_("".slice),po=function(t){return function(e,r){var n,o,i=mn(H(e)),u=ce(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=lo(i,u))<55296||n>56319||u+1===a||(o=lo(i,u+1))<56320||o>57343?t?so(i,u):n:t?vo(i,u,u+2):o-56320+(n-55296<<10)+65536}},ho={codeAt:po(!1),charAt:po(!0)}.charAt,yo="String Iterator",go=Je.set,bo=Je.getterFor(yo);rn(String,"String",(function(t){go(this,{type:yo,string:mn(t),index:0})}),(function(){var t,e=bo(this),r=e.string,n=e.index;return n>=r.length?nn(void 0,!0):(t=ho(r,n),e.index+=t.length,nn(t,!1))}));var mo=Array.isArray||function(t){return"Array"===G(t)},So=function(){},wo=Dt("Reflect","construct"),Oo=/^\s*(?:class|function)\b/,Eo=_(Oo.exec),jo=!Oo.test(So),xo=function(t){if(!xt(t))return!1;try{return wo(So,[],t),!0}catch(t){return!1}},Ro=function(t){if(!xt(t))return!1;switch(yn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return jo||!!Eo(Oo,lr(t))}catch(t){return!0}};Ro.sham=!0;var Po=!wo||z((function(){var t;return xo(xo.call)||!xo(Object)||!xo((function(){t=!0}))||t}))?Ro:xo,Ao=Et("species"),To=Array,Co=function(t,e){return new(function(t){var e;return mo(t)&&(e=t.constructor,(Po(e)&&(e===To||mo(e.prototype))||Rt(e)&&null===(e=e[Ao]))&&(e=void 0)),void 0===e?To:e}(t))(0===e?0:e)},ko=_([].push),zo=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,f,s,l){for(var v,p,d=et(c),h=B(d),y=ve(h),g=Nn(f,s),b=0,m=l||Co,S=e?m(c,y):r||u?m(c,0):void 0;y>b;b++)if((a||b in h)&&(p=g(v=h[b],b,d),t))if(e)S[b]=p;else if(p)switch(t){case 3:return!0;case 5:return v;case 6:return b;case 2:ko(S,v)}else switch(t){case 4:return!1;case 7:ko(S,v)}return i?-1:n||o?o:S}},Io={forEach:zo(0),map:zo(1),filter:zo(2),some:zo(3),every:zo(4),find:zo(5),findIndex:zo(6),filterReject:zo(7)},Lo=Fn.getWeakData,Mo=Je.set,Fo=Je.getterFor,_o=Io.find,Do=Io.findIndex,No=_([].splice),Go=0,Wo=function(t){return t.frozen||(t.frozen=new Vo)},Vo=function(){this.entries=[]},Bo=function(t,e){return _o(t.entries,(function(t){return t[0]===e}))};Vo.prototype={get:function(t){var e=Bo(this,t);if(e)return e[1]},has:function(t){return!!Bo(this,t)},set:function(t,e){var r=Bo(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Do(this.entries,(function(e){return e[0]===t}));return~e&&No(this.entries,e,1),!!~e}};var qo,Uo={getConstructor:function(t,e,r,n){var o=t((function(t,o){Jn(t,i),Mo(t,{type:e,id:Go++,frozen:null}),q(o)||Yn(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,u=Fo(e),a=function(t,e,r){var n=u(t),o=Lo(Tt(e),!0);return!0===o?Wo(n).set(e,r):o[n.id]=r,t};return oo(i,{delete:function(t){var e=u(this);if(!Rt(t))return!1;var r=Lo(t);return!0===r?Wo(e).delete(t):r&&nt(r,e.id)&&delete r[e.id]},has:function(t){var e=u(this);if(!Rt(t))return!1;var r=Lo(t);return!0===r?Wo(e).has(t):r&&nt(r,e.id)}}),oo(i,r?{get:function(t){var e=u(this);if(Rt(t)){var r=Lo(t);if(!0===r)return Wo(e).get(t);if(r)return r[e.id]}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Ho=Je.enforce,Xo=Object,Ko=Array.isArray,Yo=Xo.isExtensible,$o=Xo.isFrozen,Jo=Xo.isSealed,Qo=Xo.freeze,Zo=Xo.seal,ti=!Y.ActiveXObject&&"ActiveXObject"in Y,ei=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},ri=ro("WeakMap",ei,Uo),ni=ri.prototype,oi=_(ni.set);if(Be)if(ti){qo=Uo.getConstructor(ei,"WeakMap",!0),Fn.enable();var ii=_(ni.delete),ui=_(ni.has),ai=_(ni.get);oo(ni,{delete:function(t){if(Rt(t)&&!Yo(t)){var e=Ho(this);return e.frozen||(e.frozen=new qo),ii(this,t)||e.frozen.delete(t)}return ii(this,t)},has:function(t){if(Rt(t)&&!Yo(t)){var e=Ho(this);return e.frozen||(e.frozen=new qo),ui(this,t)||e.frozen.has(t)}return ui(this,t)},get:function(t){if(Rt(t)&&!Yo(t)){var e=Ho(this);return e.frozen||(e.frozen=new qo),ui(this,t)?ai(this,t):e.frozen.get(t)}return ai(this,t)},set:function(t,e){if(Rt(t)&&!Yo(t)){var r=Ho(this);r.frozen||(r.frozen=new qo),ui(this,t)?oi(this,t,e):r.frozen.set(t,e)}else oi(this,t,e);return this}})}else Mn&&z((function(){var t=Qo([]);return oi(new ri,t,1),!$o(t)}))&&oo(ni,{set:function(t,e){var r;return Ko(t)&&($o(t)?r=Qo:Jo(t)&&(r=Zo)),oi(this,t,e),r&&r(t),this}});var ci,fi,si={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},li=Lt("span").classList,vi=li&&li.constructor&&li.constructor.prototype,pi=vi===Object.prototype?void 0:vi,di=Io.forEach,hi=!!(fi=[]["forEach"])&&z((function(){fi.call(null,ci||function(){return 1},1)}))?[].forEach:function(t){return di(this,t,arguments.length>1?arguments[1]:void 0)},yi=function(t){if(t&&t.forEach!==hi)try{Ue(t,"forEach",hi)}catch(e){t.forEach=hi}};for(var gi in si)si[gi]&&yi(Y[gi]&&Y[gi].prototype);yi(pi);var bi=Et("iterator"),mi=fn.values,Si=function(t,e){if(t){if(t[bi]!==mi)try{Ue(t,bi,mi)}catch(e){t[bi]=mi}if(Gr(t,e,!0),si[e])for(var r in fn)if(t[r]!==fn[r])try{Ue(t,r,fn[r])}catch(e){t[r]=fn[r]}}};for(var wi in si)Si(Y[wi]&&Y[wi].prototype,wi);function Oi(){var t=c();return r.CursorEditor.isCursorEditor(t)||console.warn("Cannot use useSyncExternalStore outside the context of a RemoteCursorEditor"),t}Si(pi,"DOMTokenList");var Ei=new WeakMap;function ji(t){var e=Ei.get(t);if(e)return e;var n=function(t){var e={},n=new Set,o=n.add.bind(n),i=new Set,u=null;return[function(e){return i.add(e),u||(u=function(t){t.added.forEach(o),t.removed.forEach(o),t.updated.forEach(o),i.forEach((function(t){return t()}))},r.CursorEditor.on(t,"change",u)),function(){i.delete(e),u&&0===i.size&&(r.CursorEditor.off(t,"change",u),u=null)}},function(){return 0===n.size?e:(n.forEach((function(n){var o=r.CursorEditor.cursorState(t,n);null!==o?e[n]=o:delete e[n.toString()]})),n.clear(),e=f({},e))}]}(t);return t&&Ei.set(t,n),n}function xi(){return ji(Oi())}function Ri(){var t=s(xi(),2),e=t[0],r=t[1];return w.useSyncExternalStore(e,r)}var Pi=new WeakMap;function Ai(t,e){if(!e.relativeSelection)return null;var n=Pi.get(t.children);n||(n=new WeakMap,Pi.set(t.children,n));var o=n.get(e);if(void 0===o)try{o=r.relativeRangeToSlateRange(t.sharedRoot,t,e.relativeSelection),n.set(e,o)}catch(t){return null}return o}var Ti=Et("species"),Ci=Io.map,ki=function(t){return yt>=51||!z((function(){var e=[];return(e.constructor={})[Ti]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("map");Ar({target:"Array",proto:!0,forced:!ki},{map:function(t){return Ci(this,t,arguments.length>1?arguments[1]:void 0)}});var zi=_(tr.f),Ii=_([].push),Li=Ct&&z((function(){var t=Object.create(null);return t[2]=2,!zi(t,2)})),Mi=function(t){return function(e){for(var r,n=X(e),o=Se(n),i=Li&&null===Ir(n),u=o.length,a=0,c=[];u>a;)r=o[a++],Ct&&!(i?r in n:zi(n,r))||Ii(c,t?[r,n[r]]:n[r]);return c}},Fi={entries:Mi(!0),values:Mi(!1)}.entries;Ar({target:"Object",stat:!0},{entries:function(t){return Fi(t)}});var _i=Fn.onFreeze,Di=Object.freeze,Ni=z((function(){Di(1)}));Ar({target:"Object",stat:!0,forced:Ni,sham:!Mn},{freeze:function(t){return Di&&Rt(t)?Di(_i(t)):t}});Ar({target:"Object",stat:!0},{fromEntries:function(t){var e={};return Yn(t,(function(t,r){var n,o,i;n=e,o=t,i=r,Ct?oe.f(n,o,qe(0,i)):n[o]=i}),{AS_ENTRIES:!0}),e}});var Gi=z((function(){Se(1)}));function Wi(t,e,r){var i,u,a=r.yOffset,c=r.xOffset,f=r.shouldGenerateOverlay,l=s(n.Range.edges(e),2),v=l[0],p=l[1],d=function(t,e){try{return o.DomEditor.toDOMRange(t,e)}catch(t){return null}}(t,e);if(!d)return{caretPosition:null,selectionRects:[]};var h=[],y=n.Editor.nodes(t,{at:e,match:function(t,e){return n.Text.isText(t)&&(!f||f(t,e))}}),g=null,b=n.Range.isBackward(e);try{for(var m=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.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(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(y),S=m.next();!S.done;S=m.next()){var w=s(S.value,2),O=w[0],E=w[1],j=o.DomEditor.toDOMNode(t,O),x=n.Path.equals(E,v.path),R=n.Path.equals(E,p.path),P=null;if(x||R){var A=document.createRange();A.selectNode(j),x&&A.setStart(d.startContainer,d.startOffset),R&&A.setEnd(d.endContainer,d.endOffset),P=A.getClientRects()}else P=j.getClientRects();for(var T=b?x:R,C=0;C<P.length;C++){var k=P.item(C);if(k){var z=T&&(b?0===C:C===P.length-1),I=k.top-a,L=k.left-c;z&&(g={height:k.height,top:I,left:L+(b||n.Range.isCollapsed(e)?0:k.width)}),h.push({width:k.width,height:k.height,top:I,left:L})}}}}catch(t){i={error:t}}finally{try{S&&!S.done&&(u=m.return)&&u.call(m)}finally{if(i)throw i.error}}return{selectionRects:h,caretPosition:g}}Ar({target:"Object",stat:!0,forced:Gi},{keys:function(t){return Se(et(t))}});var Vi=Object.freeze([]);t.EditorContext=a,t.getCursorRange=Ai,t.useEditorStatic=c,t.useRemoteCursorOverlayPositions=function(t){var r;void 0===t&&(t={});var n,o,i,u=t.containerRef,a=t.shouldGenerateOverlay,c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["containerRef","shouldGenerateOverlay"]),l=Oi(),v=Ri(),p=(n=s(e.useReducer((function(t){return t+1}),0),2)[1],o=e.useRef(null),i=function(){o.current&&(cancelAnimationFrame(o.current),o.current=0)},e.useEffect(i),e.useEffect((function(){return i}),[]),e.useCallback((function(t){void 0===t&&(t=!1),t?n():o.current||(o.current=requestAnimationFrame(n))}),[])),d=e.useRef(new WeakMap),h=s(e.useState({}),2),y=h[0],g=h[1],b=!("refreshOnResize"in c)||(null===(r=c.refreshOnResize)||void 0===r||r);!function(t,r){var n=e.useRef(r);n.current=r;var o=s(e.useState((function(){return new ResizeObserver((function(){n.current()}))})),1)[0];e.useEffect((function(){if(null==t?void 0:t.current){var e=t.current;return o.observe(e),function(){return o.unobserve(e)}}}),[o,t])}(b?u:void 0,(function(){d.current=new WeakMap,p("debounced"!==b)})),e.useLayoutEffect((function(){var t,e,r;if(!u||u.current){var n=null===(t=null==u?void 0:u.current)||void 0===t?void 0:t.getBoundingClientRect(),o=null!==(e=null==n?void 0:n.x)&&void 0!==e?e:0,i=null!==(r=null==n?void 0:n.y)&&void 0!==r?r:0,c=Object.keys(y).length!==Object.keys(v).length,f=Object.fromEntries(Object.entries(v).map((function(t){var e=s(t,2),r=e[0],n=e[1],u=n.relativeSelection&&Ai(l,n);if(!u)return[r,Vi];var f=d.current.get(u);if(f)return[r,f];var v=Wi(l,u,{xOffset:o,yOffset:i,shouldGenerateOverlay:a});return c=!0,d.current.set(u,v),[r,v]})));c&&g(f)}}));var m=e.useMemo((function(){return Object.entries(v).map((function(t){var e,r,n=s(t,2),o=n[0],i=n[1],u=i.relativeSelection&&Ai(l,i),a=y[o];return f(f({},i),{range:u,caretPosition:null!==(e=null==a?void 0:a.caretPosition)&&void 0!==e?e:null,selectionRects:null!==(r=null==a?void 0:a.selectionRects)&&void 0!==r?r:Vi})}))}),[v,l,y]);return[m,e.useCallback((function(){d.current=new WeakMap,p(!0)}),[p])]},t.useRemoteCursorStates=Ri,t.useRemoteCursorStatesSelector=function(t,e){var r=s(xi(),2),n=r[0],o=r[1];return k.useSyncExternalStoreWithSelector(n,o,null,t,e)},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
39
|
+
R((function(t,e){}));var bi=R((function(t){t.exports=gi})),mi=function(){var t=st(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Si=RegExp.prototype,wi=We.PROPER,Oi="toString",Ei=RegExp.prototype,ji=Ei[Oi],xi=f((function(){return"/a/b"!==ji.call({source:"a",flags:"b"})})),Ri=wi&&ji.name!==Oi;(xi||Ri)&&Ke(Ei,Oi,(function(){var t=st(this),e=$n(t.source),r=$n(function(t){var e=t.flags;return void 0!==e||"flags"in Si||D(t,"flags")||!St(Si,t)?e:bt(mi,t)}(t));return"/"+e+"/"+r}),{unsafe:!0});var Pi=function(t,e,r){return r.get&&Xe(r.get,e,{getter:!0}),r.set&&Xe(r.set,e,{setter:!0}),Nt.f(t,e,r)},Ai=ot("species"),Ti=In.fastKey,Ci=ze.set,ki=ze.getterFor,zi={getConstructor:function(t,e,r,n){var o=t((function(t,o){ao(t,i),Ci(t,{type:e,index:de(null),first:null,last:null,size:0}),lt||(t.size=0),w(o)||Hn(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,u=ki(e),a=function(t,e,r){var n,o,i=u(t),a=c(t,e);return a?a.value=r:(i.last=a={index:o=Ti(e,!0),key:e,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=a),n&&(n.next=a),lt?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},c=function(t,e){var r,n=u(t),o=Ti(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return io(i,{clear:function(){for(var t=u(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=de(null),lt?t.size=0:this.size=0},delete:function(t){var e=this,r=u(e),n=c(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),lt?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=u(this),n=Xr(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),io(i,r?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),lt&&Pi(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=ki(e),i=ki(n);_r(t,e,(function(t,e){Ci(this,{type:n,target:t,state:o(t),kind:e,last:null})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?Dr("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,Dr(void 0,!0))}),r?"entries":"values",!r,!0),function(t){var e=mt(t);lt&&e&&!e[Ai]&&Pi(e,Ai,{configurable:!0,get:function(){return this}})}(e)}};vo("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),zi);var Ii=yn.forEach,Li=function(t,e){var r=[][t];return!!r&&f((function(){r.call(null,e||function(){return 1},1)}))}("forEach"),Mi=Li?[].forEach:function(t){return Ii(this,t,arguments.length>1?arguments[1]:void 0)},Fi=function(t){if(t&&t.forEach!==Mi)try{Re(t,"forEach",Mi)}catch(e){t.forEach=Mi}};for(var _i in Vo)Vo[_i]&&Fi(C[_i]&&C[_i].prototype);Fi(Uo);var Di=new WeakMap;function Ni(t){var e=Di.get(t);if(e)return e;var n=function(t){var e={},n=new Set,o=n.add.bind(n),i=new Set,u=null;return[function(e){return i.add(e),u||(u=function(t){t.added.forEach(o),t.removed.forEach(o),t.updated.forEach(o),i.forEach((function(t){return t()}))},r.CursorEditor.on(t,"change",u)),function(){i.delete(e),u&&0===i.size&&(r.CursorEditor.off(t,"change",u),u=null)}},function(){return 0===n.size?e:(n.forEach((function(n){var o=r.CursorEditor.cursorState(t,n);null!==o?e[n]=o:delete e[n.toString()]})),n.clear(),e=$o({},e))}]}(t);return t&&Di.set(t,n),n}function Gi(){return Ni(ei())}function Wi(){var t=Jo(Gi(),2),e=t[0],r=t[1];return si.useSyncExternalStore(e,r)}var Vi=Object.freeze([]);t.EditorContext=a,t.getCursorRange=Zo,t.useEditorStatic=c,t.useRemoteCursorOverlayPositions=function(t){var r;void 0===t&&(t={});var n,o,i,u=t.containerRef,a=t.shouldGenerateOverlay,c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["containerRef","shouldGenerateOverlay"]),f=ei(),s=Wi(),l=(n=Jo(e.useReducer((function(t){return t+1}),0),2)[1],o=e.useRef(null),i=function(){o.current&&(cancelAnimationFrame(o.current),o.current=0)},e.useEffect(i),e.useEffect((function(){return i}),[]),e.useCallback((function(t){void 0===t&&(t=!1),t?n():o.current||(o.current=requestAnimationFrame(n))}),[])),v=e.useRef(new WeakMap),p=Jo(e.useState({}),2),d=p[0],h=p[1],y=!("refreshOnResize"in c)||(null===(r=c.refreshOnResize)||void 0===r||r);!function(t,r){var n=e.useRef(r);n.current=r;var o=Jo(e.useState((function(){return new ResizeObserver((function(){n.current()}))})),1)[0];e.useEffect((function(){if(null==t?void 0:t.current){var e=t.current;return o.observe(e),function(){return o.unobserve(e)}}}),[o,t])}(y?u:void 0,(function(){v.current=new WeakMap,l("debounced"!==y)})),e.useLayoutEffect((function(){var t,e,r;if(!u||u.current){var n=null===(t=null==u?void 0:u.current)||void 0===t?void 0:t.getBoundingClientRect(),o=null!==(e=null==n?void 0:n.x)&&void 0!==e?e:0,i=null!==(r=null==n?void 0:n.y)&&void 0!==r?r:0,c=Object.keys(d).length!==Object.keys(s).length,l=Object.fromEntries(Object.entries(s).map((function(t){var e=Jo(t,2),r=e[0],n=e[1],u=n.relativeSelection&&Zo(f,n);if(!u)return[r,Vi];var s=v.current.get(u);if(s)return[r,s];var l=ti(f,u,{xOffset:o,yOffset:i,shouldGenerateOverlay:a});return c=!0,v.current.set(u,l),[r,l]})));c&&h(l)}}));var g=e.useMemo((function(){return Object.entries(s).map((function(t){var e,r,n=Jo(t,2),o=n[0],i=n[1],u=i.relativeSelection&&Zo(f,i),a=d[o];return $o($o({},i),{range:u,caretPosition:null!==(e=null==a?void 0:a.caretPosition)&&void 0!==e?e:null,selectionRects:null!==(r=null==a?void 0:a.selectionRects)&&void 0!==r?r:Vi})}))}),[s,f,d]);return[g,e.useCallback((function(){v.current=new WeakMap,l(!0)}),[l])]},t.useRemoteCursorStates=Wi,t.useRemoteCursorStatesSelector=function(t,e){var r=Jo(Gi(),2),n=r[0],o=r[1];return bi.useSyncExternalStoreWithSelector(n,o,null,t,e)},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
40
40
|
//# sourceMappingURL=index.js.map
|