davis-components 0.3.47 → 0.3.48
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/Draft-D-vT5vhB.js +26 -0
- package/dist/Draft-DNl18xs1.cjs +1 -0
- package/dist/Draft-DoDD1aAL.js +11043 -0
- package/dist/Draft-DtTns1gR.cjs +24 -0
- package/dist/{html-to-draftjs-Cr34gkSk.cjs → html-to-draftjs-BvewVH1h.cjs} +2 -2
- package/dist/{html-to-draftjs-JQLXkU8V.js → html-to-draftjs-CnzvN9x0.js} +26 -26
- package/dist/{immutable-BK0zUnIS.js → immutable-BgORiwZP.js} +1 -1
- package/dist/{immutable-BQAZWDcd.cjs → immutable-D5VwHMVZ.cjs} +1 -1
- package/dist/{main-DgrDd7yr.js → main-B6zUCT7j.js} +1745 -1736
- package/dist/{main-DIsThwVx.js → main-B9vk0kuh.js} +2 -2
- package/dist/main-DNuRf2lC.cjs +52 -0
- package/dist/main-Dla_y6RY.cjs +9 -0
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +1 -1
- package/dist/{react-draft-wysiwyg-39QIX-UD.js → react-draft-wysiwyg-BAwczaYU.js} +4 -4
- package/dist/{react-draft-wysiwyg-B7Il0hgO.cjs → react-draft-wysiwyg-GEjaTQLS.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Draft-D54UBgJ2.cjs +0 -1
- package/dist/Draft-DS_t3bI2.js +0 -188
- package/dist/convertFromRawToDraftState-BIFdvEGS.cjs +0 -24
- package/dist/convertFromRawToDraftState-X0cT6Di8.js +0 -9923
- package/dist/main-DNYU1iTa.cjs +0 -9
- package/dist/main-Q8BvMLBB.cjs +0 -52
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";const ct=require("react"),va=require("./main-Q8BvMLBB.cjs"),ml=require("react-dom");var Pu={exports:{}};(function(r,e){(function(n,a){r.exports=a()})(va.commonjsGlobal,function(){var n=Array.prototype.slice;function a(t,o){o&&(t.prototype=Object.create(o.prototype)),t.prototype.constructor=t}function i(t){return v(t)?t:pe(t)}a(s,i);function s(t){return h(t)?t:be(t)}a(c,i);function c(t){return y(t)?t:oe(t)}a(l,i);function l(t){return v(t)&&!w(t)?t:Ne(t)}function v(t){return!!(t&&t[E])}function h(t){return!!(t&&t[m])}function y(t){return!!(t&&t[S])}function w(t){return h(t)||y(t)}function d(t){return!!(t&&t[C])}i.isIterable=v,i.isKeyed=h,i.isIndexed=y,i.isAssociative=w,i.isOrdered=d,i.Keyed=s,i.Indexed=c,i.Set=l;var E="@@__IMMUTABLE_ITERABLE__@@",m="@@__IMMUTABLE_KEYED__@@",S="@@__IMMUTABLE_INDEXED__@@",C="@@__IMMUTABLE_ORDERED__@@",T="delete",B=5,O=1<<B,k=O-1,M={},X={value:!1},j={value:!1};function ue(t){return t.value=!1,t}function I(t){t&&(t.value=!0)}function R(){}function $(t,o){o=o||0;for(var u=Math.max(0,t.length-o),f=new Array(u),p=0;p<u;p++)f[p]=t[p+o];return f}function F(t){return t.size===void 0&&(t.size=t.__iterate(P)),t.size}function N(t,o){if(typeof o!="number"){var u=o>>>0;if(""+u!==o||u===4294967295)return NaN;o=u}return o<0?F(t)+o:o}function P(){return!0}function V(t,o,u){return(t===0||u!==void 0&&t<=-u)&&(o===void 0||u!==void 0&&o>=u)}function G(t,o){return re(t,o,0)}function W(t,o){return re(t,o,o)}function re(t,o,u){return t===void 0?u:t<0?Math.max(0,o+t):o===void 0?t:Math.min(o,t)}var ne=0,Y=1,ee=2,he=typeof Symbol=="function"&&Symbol.iterator,Be="@@iterator",Fe=he||Be;function Z(t){this.next=t}Z.prototype.toString=function(){return"[Iterator]"},Z.KEYS=ne,Z.VALUES=Y,Z.ENTRIES=ee,Z.prototype.inspect=Z.prototype.toSource=function(){return this.toString()},Z.prototype[Fe]=function(){return this};function ae(t,o,u,f){var p=t===0?o:t===1?u:[o,u];return f?f.value=p:f={value:p,done:!1},f}function me(){return{value:void 0,done:!0}}function ft(t){return!!st(t)}function Ue(t){return t&&typeof t.next=="function"}function ze(t){var o=st(t);return o&&o.call(t)}function st(t){var o=t&&(he&&t[he]||t[Be]);if(typeof o=="function")return o}function Je(t){return t&&typeof t.length=="number"}a(pe,i);function pe(t){return t==null?Ie():v(t)?t.toSeq():se(t)}pe.of=function(){return pe(arguments)},pe.prototype.toSeq=function(){return this},pe.prototype.toString=function(){return this.__toString("Seq {","}")},pe.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},pe.prototype.__iterate=function(t,o){return de(this,t,o,!0)},pe.prototype.__iterator=function(t,o){return tt(this,t,o,!0)},a(be,pe);function be(t){return t==null?Ie().toKeyedSeq():v(t)?h(t)?t.toSeq():t.fromEntrySeq():vt(t)}be.prototype.toKeyedSeq=function(){return this},a(oe,pe);function oe(t){return t==null?Ie():v(t)?h(t)?t.entrySeq():t.toIndexedSeq():Q(t)}oe.of=function(){return oe(arguments)},oe.prototype.toIndexedSeq=function(){return this},oe.prototype.toString=function(){return this.__toString("Seq [","]")},oe.prototype.__iterate=function(t,o){return de(this,t,o,!1)},oe.prototype.__iterator=function(t,o){return tt(this,t,o,!1)},a(Ne,pe);function Ne(t){return(t==null?Ie():v(t)?h(t)?t.entrySeq():t:Q(t)).toSetSeq()}Ne.of=function(){return Ne(arguments)},Ne.prototype.toSetSeq=function(){return this},pe.isSeq=Ke,pe.Keyed=be,pe.Set=Ne,pe.Indexed=oe;var lt="@@__IMMUTABLE_SEQ__@@";pe.prototype[lt]=!0,a(_e,oe);function _e(t){this._array=t,this.size=t.length}_e.prototype.get=function(t,o){return this.has(t)?this._array[N(this,t)]:o},_e.prototype.__iterate=function(t,o){for(var u=this._array,f=u.length-1,p=0;p<=f;p++)if(t(u[o?f-p:p],p,this)===!1)return p+1;return p},_e.prototype.__iterator=function(t,o){var u=this._array,f=u.length-1,p=0;return new Z(function(){return p>f?me():ae(t,p,u[o?f-p++:p++])})},a(ke,be);function ke(t){var o=Object.keys(t);this._object=t,this._keys=o,this.size=o.length}ke.prototype.get=function(t,o){return o!==void 0&&!this.has(t)?o:this._object[t]},ke.prototype.has=function(t){return this._object.hasOwnProperty(t)},ke.prototype.__iterate=function(t,o){for(var u=this._object,f=this._keys,p=f.length-1,g=0;g<=p;g++){var _=f[o?p-g:g];if(t(u[_],_,this)===!1)return g+1}return g},ke.prototype.__iterator=function(t,o){var u=this._object,f=this._keys,p=f.length-1,g=0;return new Z(function(){var _=f[o?p-g:g];return g++>p?me():ae(t,_,u[_])})},ke.prototype[C]=!0,a(qe,oe);function qe(t){this._iterable=t,this.size=t.length||t.size}qe.prototype.__iterateUncached=function(t,o){if(o)return this.cacheResult().__iterate(t,o);var u=this._iterable,f=ze(u),p=0;if(Ue(f))for(var g;!(g=f.next()).done&&t(g.value,p++,this)!==!1;);return p},qe.prototype.__iteratorUncached=function(t,o){if(o)return this.cacheResult().__iterator(t,o);var u=this._iterable,f=ze(u);if(!Ue(f))return new Z(me);var p=0;return new Z(function(){var g=f.next();return g.done?g:ae(t,p++,g.value)})},a(De,oe);function De(t){this._iterator=t,this._iteratorCache=[]}De.prototype.__iterateUncached=function(t,o){if(o)return this.cacheResult().__iterate(t,o);for(var u=this._iterator,f=this._iteratorCache,p=0;p<f.length;)if(t(f[p],p++,this)===!1)return p;for(var g;!(g=u.next()).done;){var _=g.value;if(f[p]=_,t(_,p++,this)===!1)break}return p},De.prototype.__iteratorUncached=function(t,o){if(o)return this.cacheResult().__iterator(t,o);var u=this._iterator,f=this._iteratorCache,p=0;return new Z(function(){if(p>=f.length){var g=u.next();if(g.done)return g;f[p]=g.value}return ae(t,p,f[p++])})};function Ke(t){return!!(t&&t[lt])}var xe;function Ie(){return xe||(xe=new _e([]))}function vt(t){var o=Array.isArray(t)?new _e(t).fromEntrySeq():Ue(t)?new De(t).fromEntrySeq():ft(t)?new qe(t).fromEntrySeq():typeof t=="object"?new ke(t):void 0;if(!o)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return o}function Q(t){var o=H(t);if(!o)throw new TypeError("Expected Array or iterable object of values: "+t);return o}function se(t){var o=H(t)||typeof t=="object"&&new ke(t);if(!o)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return o}function H(t){return Je(t)?new _e(t):Ue(t)?new De(t):ft(t)?new qe(t):void 0}function de(t,o,u,f){var p=t._cache;if(p){for(var g=p.length-1,_=0;_<=g;_++){var D=p[u?g-_:_];if(o(D[1],f?D[0]:_,t)===!1)return _+1}return _}return t.__iterateUncached(o,u)}function tt(t,o,u,f){var p=t._cache;if(p){var g=p.length-1,_=0;return new Z(function(){var D=p[u?g-_:_];return _++>g?me():ae(o,f?D[0]:_-1,D[1])})}return t.__iteratorUncached(o,u)}function He(t,o){return o?ce(o,t,"",{"":t}):q(t)}function ce(t,o,u,f){return Array.isArray(o)?t.call(f,u,oe(o).map(function(p,g){return ce(t,p,g,o)})):Xe(o)?t.call(f,u,be(o).map(function(p,g){return ce(t,p,g,o)})):o}function q(t){return Array.isArray(t)?oe(t).map(q).toList():Xe(t)?be(t).map(q).toMap():t}function Xe(t){return t&&(t.constructor===Object||t.constructor===void 0)}function Ee(t,o){if(t===o||t!==t&&o!==o)return!0;if(!t||!o)return!1;if(typeof t.valueOf=="function"&&typeof o.valueOf=="function"){if(t=t.valueOf(),o=o.valueOf(),t===o||t!==t&&o!==o)return!0;if(!t||!o)return!1}return!!(typeof t.equals=="function"&&typeof o.equals=="function"&&t.equals(o))}function rr(t,o){if(t===o)return!0;if(!v(o)||t.size!==void 0&&o.size!==void 0&&t.size!==o.size||t.__hash!==void 0&&o.__hash!==void 0&&t.__hash!==o.__hash||h(t)!==h(o)||y(t)!==y(o)||d(t)!==d(o))return!1;if(t.size===0&&o.size===0)return!0;var u=!w(t);if(d(t)){var f=t.entries();return o.every(function(b,x){var K=f.next().value;return K&&Ee(K[1],b)&&(u||Ee(K[0],x))})&&f.next().done}var p=!1;if(t.size===void 0)if(o.size===void 0)typeof t.cacheResult=="function"&&t.cacheResult();else{p=!0;var g=t;t=o,o=g}var _=!0,D=o.__iterate(function(b,x){if(u?!t.has(b):p?!Ee(b,t.get(x,M)):!Ee(t.get(x,M),b))return _=!1,!1});return _&&t.size===D}a(Re,oe);function Re(t,o){if(!(this instanceof Re))return new Re(t,o);if(this._value=t,this.size=o===void 0?1/0:Math.max(0,o),this.size===0){if(Jn)return Jn;Jn=this}}Re.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Re.prototype.get=function(t,o){return this.has(t)?this._value:o},Re.prototype.includes=function(t){return Ee(this._value,t)},Re.prototype.slice=function(t,o){var u=this.size;return V(t,o,u)?this:new Re(this._value,W(o,u)-G(t,u))},Re.prototype.reverse=function(){return this},Re.prototype.indexOf=function(t){return Ee(this._value,t)?0:-1},Re.prototype.lastIndexOf=function(t){return Ee(this._value,t)?this.size:-1},Re.prototype.__iterate=function(t,o){for(var u=0;u<this.size;u++)if(t(this._value,u,this)===!1)return u+1;return u},Re.prototype.__iterator=function(t,o){var u=this,f=0;return new Z(function(){return f<u.size?ae(t,f++,u._value):me()})},Re.prototype.equals=function(t){return t instanceof Re?Ee(this._value,t._value):rr(t)};var Jn;function rn(t,o){if(!t)throw new Error(o)}a(Le,oe);function Le(t,o,u){if(!(this instanceof Le))return new Le(t,o,u);if(rn(u!==0,"Cannot step a Range by 0"),t=t||0,o===void 0&&(o=1/0),u=u===void 0?1:Math.abs(u),o<t&&(u=-u),this._start=t,this._end=o,this._step=u,this.size=Math.max(0,Math.ceil((o-t)/u-1)+1),this.size===0){if(Xn)return Xn;Xn=this}}Le.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Le.prototype.get=function(t,o){return this.has(t)?this._start+N(this,t)*this._step:o},Le.prototype.includes=function(t){var o=(t-this._start)/this._step;return o>=0&&o<this.size&&o===Math.floor(o)},Le.prototype.slice=function(t,o){return V(t,o,this.size)?this:(t=G(t,this.size),o=W(o,this.size),o<=t?new Le(0,0):new Le(this.get(t,this._end),this.get(o,this._end),this._step))},Le.prototype.indexOf=function(t){var o=t-this._start;if(o%this._step===0){var u=o/this._step;if(u>=0&&u<this.size)return u}return-1},Le.prototype.lastIndexOf=function(t){return this.indexOf(t)},Le.prototype.__iterate=function(t,o){for(var u=this.size-1,f=this._step,p=o?this._start+u*f:this._start,g=0;g<=u;g++){if(t(p,g,this)===!1)return g+1;p+=o?-f:f}return g},Le.prototype.__iterator=function(t,o){var u=this.size-1,f=this._step,p=o?this._start+u*f:this._start,g=0;return new Z(function(){var _=p;return p+=o?-f:f,g>u?me():ae(t,g++,_)})},Le.prototype.equals=function(t){return t instanceof Le?this._start===t._start&&this._end===t._end&&this._step===t._step:rr(this,t)};var Xn;a(Kt,i);function Kt(){throw TypeError("Abstract")}a(Dr,Kt);function Dr(){}a(nr,Kt);function nr(){}a(nn,Kt);function nn(){}Kt.Keyed=Dr,Kt.Indexed=nr,Kt.Set=nn;var br=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(o,u){o=o|0,u=u|0;var f=o&65535,p=u&65535;return f*p+((o>>>16)*p+f*(u>>>16)<<16>>>0)|0};function Yn(t){return t>>>1&1073741824|t&3221225471}function Ye(t){if(t===!1||t===null||t===void 0||typeof t.valueOf=="function"&&(t=t.valueOf(),t===!1||t===null||t===void 0))return 0;if(t===!0)return 1;var o=typeof t;if(o==="number"){var u=t|0;for(u!==t&&(u^=t*4294967295);t>4294967295;)t/=4294967295,u^=t;return Yn(u)}if(o==="string")return t.length>jf?Hf(t):Zn(t);if(typeof t.hashCode=="function")return t.hashCode();if(o==="object")return Vf(t);if(typeof t.toString=="function")return Zn(t.toString());throw new Error("Value type "+o+" cannot be hashed.")}function Hf(t){var o=ni[t];return o===void 0&&(o=Zn(t),ri===Gf&&(ri=0,ni={}),ri++,ni[t]=o),o}function Zn(t){for(var o=0,u=0;u<t.length;u++)o=31*o+t.charCodeAt(u)|0;return Yn(o)}function Vf(t){var o;if(Qn&&(o=ei.get(t),o!==void 0)||(o=t[Vt],o!==void 0)||!La&&(o=t.propertyIsEnumerable&&t.propertyIsEnumerable[Vt],o!==void 0||(o=Wf(t),o!==void 0)))return o;if(o=++ti,ti&1073741824&&(ti=0),Qn)ei.set(t,o);else{if(Ra!==void 0&&Ra(t)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(La)Object.defineProperty(t,Vt,{enumerable:!1,configurable:!1,writable:!1,value:o});else if(t.propertyIsEnumerable!==void 0&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Vt]=o;else if(t.nodeType!==void 0)t[Vt]=o;else throw new Error("Unable to set a non-enumerable property on object.")}return o}var Ra=Object.isExtensible,La=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function Wf(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}var Qn=typeof WeakMap=="function",ei;Qn&&(ei=new WeakMap);var ti=0,Vt="__immutablehash__";typeof Symbol=="function"&&(Vt=Symbol(Vt));var jf=16,Gf=255,ri=0,ni={};function Ze(t){rn(t!==1/0,"Cannot perform this action with an infinite size.")}a(fe,Dr);function fe(t){return t==null?pt():ii(t)&&!d(t)?t:pt().withMutations(function(o){var u=s(t);Ze(u.size),u.forEach(function(f,p){return o.set(p,f)})})}fe.prototype.toString=function(){return this.__toString("Map {","}")},fe.prototype.get=function(t,o){return this._root?this._root.get(0,void 0,t,o):o},fe.prototype.set=function(t,o){return Ua(this,t,o)},fe.prototype.setIn=function(t,o){return this.updateIn(t,M,function(){return o})},fe.prototype.remove=function(t){return Ua(this,t,M)},fe.prototype.deleteIn=function(t){return this.updateIn(t,function(){return M})},fe.prototype.update=function(t,o,u){return arguments.length===1?t(this):this.updateIn([t],o,u)},fe.prototype.updateIn=function(t,o,u){u||(u=o,o=void 0);var f=Wa(this,po(t),o,u);return f===M?void 0:f},fe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):pt()},fe.prototype.merge=function(){return an(this,void 0,arguments)},fe.prototype.mergeWith=function(t){var o=n.call(arguments,1);return an(this,t,o)},fe.prototype.mergeIn=function(t){var o=n.call(arguments,1);return this.updateIn(t,pt(),function(u){return typeof u.merge=="function"?u.merge.apply(u,o):o[o.length-1]})},fe.prototype.mergeDeep=function(){return an(this,qa,arguments)},fe.prototype.mergeDeepWith=function(t){var o=n.call(arguments,1);return an(this,Ha(t),o)},fe.prototype.mergeDeepIn=function(t){var o=n.call(arguments,1);return this.updateIn(t,pt(),function(u){return typeof u.mergeDeep=="function"?u.mergeDeep.apply(u,o):o[o.length-1]})},fe.prototype.sort=function(t){return Oe(fr(this,t))},fe.prototype.sortBy=function(t,o){return Oe(fr(this,o,t))},fe.prototype.withMutations=function(t){var o=this.asMutable();return t(o),o.wasAltered()?o.__ensureOwner(this.__ownerID):this},fe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new R)},fe.prototype.asImmutable=function(){return this.__ensureOwner()},fe.prototype.wasAltered=function(){return this.__altered},fe.prototype.__iterator=function(t,o){return new ai(this,t,o)},fe.prototype.__iterate=function(t,o){var u=this,f=0;return this._root&&this._root.iterate(function(p){return f++,t(p[1],p[0],u)},o),f},fe.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?si(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)};function ii(t){return!!(t&&t[$a])}fe.isMap=ii;var $a="@@__IMMUTABLE_MAP__@@",ie=fe.prototype;ie[$a]=!0,ie[T]=ie.remove,ie.removeIn=ie.deleteIn;function Or(t,o){this.ownerID=t,this.entries=o}Or.prototype.get=function(t,o,u,f){for(var p=this.entries,g=0,_=p.length;g<_;g++)if(Ee(u,p[g][0]))return p[g][1];return f},Or.prototype.update=function(t,o,u,f,p,g,_){for(var D=p===M,b=this.entries,x=0,K=b.length;x<K&&!Ee(f,b[x][0]);x++);var A=x<K;if(A?b[x][1]===p:D)return this;if(I(_),(D||!A)&&I(g),!(D&&b.length===1)){if(!A&&!D&&b.length>=el)return Jf(t,b,f,p);var L=t&&t===this.ownerID,J=L?b:$(b);return A?D?x===K-1?J.pop():J[x]=J.pop():J[x]=[f,p]:J.push([f,p]),L?(this.entries=J,this):new Or(t,J)}};function ir(t,o,u){this.ownerID=t,this.bitmap=o,this.nodes=u}ir.prototype.get=function(t,o,u,f){o===void 0&&(o=Ye(u));var p=1<<((t===0?o:o>>>t)&k),g=this.bitmap;return g&p?this.nodes[ja(g&p-1)].get(t+B,o,u,f):f},ir.prototype.update=function(t,o,u,f,p,g,_){u===void 0&&(u=Ye(f));var D=(o===0?u:u>>>o)&k,b=1<<D,x=this.bitmap,K=(x&b)!==0;if(!K&&p===M)return this;var A=ja(x&b-1),L=this.nodes,J=K?L[A]:void 0,te=ui(J,t,o+B,u,f,p,g,_);if(te===J)return this;if(!K&&te&&L.length>=tl)return Yf(t,L,x,D,te);if(K&&!te&&L.length===2&&za(L[A^1]))return L[A^1];if(K&&te&&L.length===1&&za(te))return te;var Ce=t&&t===this.ownerID,ut=K?te?x:x^b:x|b,yt=K?te?Ga(L,A,te,Ce):Qf(L,A,Ce):Zf(L,A,te,Ce);return Ce?(this.bitmap=ut,this.nodes=yt,this):new ir(t,ut,yt)};function Tr(t,o,u){this.ownerID=t,this.count=o,this.nodes=u}Tr.prototype.get=function(t,o,u,f){o===void 0&&(o=Ye(u));var p=(t===0?o:o>>>t)&k,g=this.nodes[p];return g?g.get(t+B,o,u,f):f},Tr.prototype.update=function(t,o,u,f,p,g,_){u===void 0&&(u=Ye(f));var D=(o===0?u:u>>>o)&k,b=p===M,x=this.nodes,K=x[D];if(b&&!K)return this;var A=ui(K,t,o+B,u,f,p,g,_);if(A===K)return this;var L=this.count;if(!K)L++;else if(!A&&(L--,L<rl))return Xf(t,x,L,D);var J=t&&t===this.ownerID,te=Ga(x,D,A,J);return J?(this.count=L,this.nodes=te,this):new Tr(t,L,te)};function ar(t,o,u){this.ownerID=t,this.keyHash=o,this.entries=u}ar.prototype.get=function(t,o,u,f){for(var p=this.entries,g=0,_=p.length;g<_;g++)if(Ee(u,p[g][0]))return p[g][1];return f},ar.prototype.update=function(t,o,u,f,p,g,_){u===void 0&&(u=Ye(f));var D=p===M;if(u!==this.keyHash)return D?this:(I(_),I(g),ci(this,t,o,u,[f,p]));for(var b=this.entries,x=0,K=b.length;x<K&&!Ee(f,b[x][0]);x++);var A=x<K;if(A?b[x][1]===p:D)return this;if(I(_),(D||!A)&&I(g),D&&K===2)return new Dt(t,this.keyHash,b[x^1]);var L=t&&t===this.ownerID,J=L?b:$(b);return A?D?x===K-1?J.pop():J[x]=J.pop():J[x]=[f,p]:J.push([f,p]),L?(this.entries=J,this):new ar(t,this.keyHash,J)};function Dt(t,o,u){this.ownerID=t,this.keyHash=o,this.entry=u}Dt.prototype.get=function(t,o,u,f){return Ee(u,this.entry[0])?this.entry[1]:f},Dt.prototype.update=function(t,o,u,f,p,g,_){var D=p===M,b=Ee(f,this.entry[0]);if(b?p===this.entry[1]:D)return this;if(I(_),D){I(g);return}return b?t&&t===this.ownerID?(this.entry[1]=p,this):new Dt(t,this.keyHash,[f,p]):(I(g),ci(this,t,o,Ye(f),[f,p]))},Or.prototype.iterate=ar.prototype.iterate=function(t,o){for(var u=this.entries,f=0,p=u.length-1;f<=p;f++)if(t(u[o?p-f:f])===!1)return!1},ir.prototype.iterate=Tr.prototype.iterate=function(t,o){for(var u=this.nodes,f=0,p=u.length-1;f<=p;f++){var g=u[o?p-f:f];if(g&&g.iterate(t,o)===!1)return!1}},Dt.prototype.iterate=function(t,o){return t(this.entry)},a(ai,Z);function ai(t,o,u){this._type=o,this._reverse=u,this._stack=t._root&&Fa(t._root)}ai.prototype.next=function(){for(var t=this._type,o=this._stack;o;){var u=o.node,f=o.index++,p;if(u.entry){if(f===0)return oi(t,u.entry)}else if(u.entries){if(p=u.entries.length-1,f<=p)return oi(t,u.entries[this._reverse?p-f:f])}else if(p=u.nodes.length-1,f<=p){var g=u.nodes[this._reverse?p-f:f];if(g){if(g.entry)return oi(t,g.entry);o=this._stack=Fa(g,o)}continue}o=this._stack=this._stack.__prev}return me()};function oi(t,o){return ae(t,o[0],o[1])}function Fa(t,o){return{node:t,index:0,__prev:o}}function si(t,o,u,f){var p=Object.create(ie);return p.size=t,p._root=o,p.__ownerID=u,p.__hash=f,p.__altered=!1,p}var Pa;function pt(){return Pa||(Pa=si(0))}function Ua(t,o,u){var f,p;if(t._root){var g=ue(X),_=ue(j);if(f=ui(t._root,t.__ownerID,0,void 0,o,u,g,_),!_.value)return t;p=t.size+(g.value?u===M?-1:1:0)}else{if(u===M)return t;p=1,f=new Or(t.__ownerID,[[o,u]])}return t.__ownerID?(t.size=p,t._root=f,t.__hash=void 0,t.__altered=!0,t):f?si(p,f):pt()}function ui(t,o,u,f,p,g,_,D){return t?t.update(o,u,f,p,g,_,D):g===M?t:(I(D),I(_),new Dt(o,f,[p,g]))}function za(t){return t.constructor===Dt||t.constructor===ar}function ci(t,o,u,f,p){if(t.keyHash===f)return new ar(o,f,[t.entry,p]);var g=(u===0?t.keyHash:t.keyHash>>>u)&k,_=(u===0?f:f>>>u)&k,D,b=g===_?[ci(t,o,u+B,f,p)]:(D=new Dt(o,f,p),g<_?[t,D]:[D,t]);return new ir(o,1<<g|1<<_,b)}function Jf(t,o,u,f){t||(t=new R);for(var p=new Dt(t,Ye(u),[u,f]),g=0;g<o.length;g++){var _=o[g];p=p.update(t,0,void 0,_[0],_[1])}return p}function Xf(t,o,u,f){for(var p=0,g=0,_=new Array(u),D=0,b=1,x=o.length;D<x;D++,b<<=1){var K=o[D];K!==void 0&&D!==f&&(p|=b,_[g++]=K)}return new ir(t,p,_)}function Yf(t,o,u,f,p){for(var g=0,_=new Array(O),D=0;u!==0;D++,u>>>=1)_[D]=u&1?o[g++]:void 0;return _[f]=p,new Tr(t,g+1,_)}function an(t,o,u){for(var f=[],p=0;p<u.length;p++){var g=u[p],_=s(g);v(g)||(_=_.map(function(D){return He(D)})),f.push(_)}return Va(t,o,f)}function qa(t,o,u){return t&&t.mergeDeep&&v(o)?t.mergeDeep(o):Ee(t,o)?t:o}function Ha(t){return function(o,u,f){if(o&&o.mergeDeepWith&&v(u))return o.mergeDeepWith(t,u);var p=t(o,u,f);return Ee(o,p)?o:p}}function Va(t,o,u){return u=u.filter(function(f){return f.size!==0}),u.length===0?t:t.size===0&&!t.__ownerID&&u.length===1?t.constructor(u[0]):t.withMutations(function(f){for(var p=o?function(_,D){f.update(D,M,function(b){return b===M?_:o(b,_,D)})}:function(_,D){f.set(D,_)},g=0;g<u.length;g++)u[g].forEach(p)})}function Wa(t,o,u,f){var p=t===M,g=o.next();if(g.done){var _=p?u:t,D=f(_);return D===_?t:D}rn(p||t&&t.set,"invalid keyPath");var b=g.value,x=p?M:t.get(b,M),K=Wa(x,o,u,f);return K===x?t:K===M?t.remove(b):(p?pt():t).set(b,K)}function ja(t){return t=t-(t>>1&1431655765),t=(t&858993459)+(t>>2&858993459),t=t+(t>>4)&252645135,t=t+(t>>8),t=t+(t>>16),t&127}function Ga(t,o,u,f){var p=f?t:$(t);return p[o]=u,p}function Zf(t,o,u,f){var p=t.length+1;if(f&&o+1===p)return t[o]=u,t;for(var g=new Array(p),_=0,D=0;D<p;D++)D===o?(g[D]=u,_=-1):g[D]=t[D+_];return g}function Qf(t,o,u){var f=t.length-1;if(u&&o===f)return t.pop(),t;for(var p=new Array(f),g=0,_=0;_<f;_++)_===o&&(g=1),p[_]=t[_+g];return p}var el=O/4,tl=O/2,rl=O/4;a(Se,nr);function Se(t){var o=fi();if(t==null)return o;if(Ja(t))return t;var u=c(t),f=u.size;return f===0?o:(Ze(f),f>0&&f<O?xr(0,f,B,null,new Mt(u.toArray())):o.withMutations(function(p){p.setSize(f),u.forEach(function(g,_){return p.set(_,g)})}))}Se.of=function(){return this(arguments)},Se.prototype.toString=function(){return this.__toString("List [","]")},Se.prototype.get=function(t,o){if(t=N(this,t),t>=0&&t<this.size){t+=this._origin;var u=Qa(this,t);return u&&u.array[t&k]}return o},Se.prototype.set=function(t,o){return nl(this,t,o)},Se.prototype.remove=function(t){return this.has(t)?t===0?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},Se.prototype.insert=function(t,o){return this.splice(t,0,o)},Se.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=B,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):fi()},Se.prototype.push=function(){var t=arguments,o=this.size;return this.withMutations(function(u){At(u,0,o+t.length);for(var f=0;f<t.length;f++)u.set(o+f,t[f])})},Se.prototype.pop=function(){return At(this,0,-1)},Se.prototype.unshift=function(){var t=arguments;return this.withMutations(function(o){At(o,-t.length);for(var u=0;u<t.length;u++)o.set(u,t[u])})},Se.prototype.shift=function(){return At(this,1)},Se.prototype.merge=function(){return on(this,void 0,arguments)},Se.prototype.mergeWith=function(t){var o=n.call(arguments,1);return on(this,t,o)},Se.prototype.mergeDeep=function(){return on(this,qa,arguments)},Se.prototype.mergeDeepWith=function(t){var o=n.call(arguments,1);return on(this,Ha(t),o)},Se.prototype.setSize=function(t){return At(this,0,t)},Se.prototype.slice=function(t,o){var u=this.size;return V(t,o,u)?this:At(this,G(t,u),W(o,u))},Se.prototype.__iterator=function(t,o){var u=0,f=Ya(this,o);return new Z(function(){var p=f();return p===kr?me():ae(t,u++,p)})},Se.prototype.__iterate=function(t,o){for(var u=0,f=Ya(this,o),p;(p=f())!==kr&&t(p,u++,this)!==!1;);return u},Se.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?xr(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)};function Ja(t){return!!(t&&t[Xa])}Se.isList=Ja;var Xa="@@__IMMUTABLE_LIST__@@",Pe=Se.prototype;Pe[Xa]=!0,Pe[T]=Pe.remove,Pe.setIn=ie.setIn,Pe.deleteIn=Pe.removeIn=ie.removeIn,Pe.update=ie.update,Pe.updateIn=ie.updateIn,Pe.mergeIn=ie.mergeIn,Pe.mergeDeepIn=ie.mergeDeepIn,Pe.withMutations=ie.withMutations,Pe.asMutable=ie.asMutable,Pe.asImmutable=ie.asImmutable,Pe.wasAltered=ie.wasAltered;function Mt(t,o){this.array=t,this.ownerID=o}Mt.prototype.removeBefore=function(t,o,u){if(u===o?1<<o:this.array.length===0)return this;var f=u>>>o&k;if(f>=this.array.length)return new Mt([],t);var p=f===0,g;if(o>0){var _=this.array[f];if(g=_&&_.removeBefore(t,o-B,u),g===_&&p)return this}if(p&&!g)return this;var D=or(this,t);if(!p)for(var b=0;b<f;b++)D.array[b]=void 0;return g&&(D.array[f]=g),D},Mt.prototype.removeAfter=function(t,o,u){if(u===(o?1<<o:0)||this.array.length===0)return this;var f=u-1>>>o&k;if(f>=this.array.length)return this;var p;if(o>0){var g=this.array[f];if(p=g&&g.removeAfter(t,o-B,u),p===g&&f===this.array.length-1)return this}var _=or(this,t);return _.array.splice(f+1),p&&(_.array[f]=p),_};var kr={};function Ya(t,o){var u=t._origin,f=t._capacity,p=Br(f),g=t._tail;return _(t._root,t._level,0);function _(x,K,A){return K===0?D(x,A):b(x,K,A)}function D(x,K){var A=K===p?g&&g.array:x&&x.array,L=K>u?0:u-K,J=f-K;return J>O&&(J=O),function(){if(L===J)return kr;var te=o?--J:L++;return A&&A[te]}}function b(x,K,A){var L,J=x&&x.array,te=A>u?0:u-A>>K,Ce=(f-A>>K)+1;return Ce>O&&(Ce=O),function(){do{if(L){var ut=L();if(ut!==kr)return ut;L=null}if(te===Ce)return kr;var yt=o?--Ce:te++;L=_(J&&J[yt],K-B,A+(yt<<K))}while(!0)}}}function xr(t,o,u,f,p,g,_){var D=Object.create(Pe);return D.size=o-t,D._origin=t,D._capacity=o,D._level=u,D._root=f,D._tail=p,D.__ownerID=g,D.__hash=_,D.__altered=!1,D}var Za;function fi(){return Za||(Za=xr(0,0,B))}function nl(t,o,u){if(o=N(t,o),o!==o)return t;if(o>=t.size||o<0)return t.withMutations(function(_){o<0?At(_,o).set(0,u):At(_,0,o+1).set(o,u)});o+=t._origin;var f=t._tail,p=t._root,g=ue(j);return o>=Br(t._capacity)?f=li(f,t.__ownerID,0,o,u,g):p=li(p,t.__ownerID,t._level,o,u,g),g.value?t.__ownerID?(t._root=p,t._tail=f,t.__hash=void 0,t.__altered=!0,t):xr(t._origin,t._capacity,t._level,p,f):t}function li(t,o,u,f,p,g){var _=f>>>u&k,D=t&&_<t.array.length;if(!D&&p===void 0)return t;var b;if(u>0){var x=t&&t.array[_],K=li(x,o,u-B,f,p,g);return K===x?t:(b=or(t,o),b.array[_]=K,b)}return D&&t.array[_]===p?t:(I(g),b=or(t,o),p===void 0&&_===b.array.length-1?b.array.pop():b.array[_]=p,b)}function or(t,o){return o&&t&&o===t.ownerID?t:new Mt(t?t.array.slice():[],o)}function Qa(t,o){if(o>=Br(t._capacity))return t._tail;if(o<1<<t._level+B){for(var u=t._root,f=t._level;u&&f>0;)u=u.array[o>>>f&k],f-=B;return u}}function At(t,o,u){o!==void 0&&(o=o|0),u!==void 0&&(u=u|0);var f=t.__ownerID||new R,p=t._origin,g=t._capacity,_=p+o,D=u===void 0?g:u<0?g+u:p+u;if(_===p&&D===g)return t;if(_>=D)return t.clear();for(var b=t._level,x=t._root,K=0;_+K<0;)x=new Mt(x&&x.array.length?[void 0,x]:[],f),b+=B,K+=1<<b;K&&(_+=K,p+=K,D+=K,g+=K);for(var A=Br(g),L=Br(D);L>=1<<b+B;)x=new Mt(x&&x.array.length?[x]:[],f),b+=B;var J=t._tail,te=L<A?Qa(t,D-1):L>A?new Mt([],f):J;if(J&&L>A&&_<g&&J.array.length){x=or(x,f);for(var Ce=x,ut=b;ut>B;ut-=B){var yt=A>>>ut&k;Ce=Ce.array[yt]=or(Ce.array[yt],f)}Ce.array[A>>>B&k]=J}if(D<g&&(te=te&&te.removeAfter(f,0,D)),_>=L)_-=L,D-=L,b=B,x=null,te=te&&te.removeBefore(f,0,_);else if(_>p||L<A){for(K=0;x;){var pn=_>>>b&k;if(pn!==L>>>b&k)break;pn&&(K+=(1<<b)*pn),b-=B,x=x.array[pn]}x&&_>p&&(x=x.removeBefore(f,b,_-K)),x&&L<A&&(x=x.removeAfter(f,b,L-K)),K&&(_-=K,D-=K)}return t.__ownerID?(t.size=D-_,t._origin=_,t._capacity=D,t._level=b,t._root=x,t._tail=te,t.__hash=void 0,t.__altered=!0,t):xr(_,D,b,x,te)}function on(t,o,u){for(var f=[],p=0,g=0;g<u.length;g++){var _=u[g],D=c(_);D.size>p&&(p=D.size),v(_)||(D=D.map(function(b){return He(b)})),f.push(D)}return p>t.size&&(t=t.setSize(p)),Va(t,o,f)}function Br(t){return t<O?0:t-1>>>B<<B}a(Oe,fe);function Oe(t){return t==null?sn():eo(t)?t:sn().withMutations(function(o){var u=s(t);Ze(u.size),u.forEach(function(f,p){return o.set(p,f)})})}Oe.of=function(){return this(arguments)},Oe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Oe.prototype.get=function(t,o){var u=this._map.get(t);return u!==void 0?this._list.get(u)[1]:o},Oe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):sn()},Oe.prototype.set=function(t,o){return ro(this,t,o)},Oe.prototype.remove=function(t){return ro(this,t,M)},Oe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Oe.prototype.__iterate=function(t,o){var u=this;return this._list.__iterate(function(f){return f&&t(f[1],f[0],u)},o)},Oe.prototype.__iterator=function(t,o){return this._list.fromEntrySeq().__iterator(t,o)},Oe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var o=this._map.__ensureOwner(t),u=this._list.__ensureOwner(t);return t?vi(o,u,t,this.__hash):(this.__ownerID=t,this._map=o,this._list=u,this)};function eo(t){return ii(t)&&d(t)}Oe.isOrderedMap=eo,Oe.prototype[C]=!0,Oe.prototype[T]=Oe.prototype.remove;function vi(t,o,u,f){var p=Object.create(Oe.prototype);return p.size=t?t.size:0,p._map=t,p._list=o,p.__ownerID=u,p.__hash=f,p}var to;function sn(){return to||(to=vi(pt(),fi()))}function ro(t,o,u){var f=t._map,p=t._list,g=f.get(o),_=g!==void 0,D,b;if(u===M){if(!_)return t;p.size>=O&&p.size>=f.size*2?(b=p.filter(function(x,K){return x!==void 0&&g!==K}),D=b.toKeyedSeq().map(function(x){return x[0]}).flip().toMap(),t.__ownerID&&(D.__ownerID=b.__ownerID=t.__ownerID)):(D=f.remove(o),b=g===p.size-1?p.pop():p.set(g,void 0))}else if(_){if(u===p.get(g)[1])return t;D=f,b=p.set(g,[o,u])}else D=f.set(o,p.size),b=p.set(p.size,[o,u]);return t.__ownerID?(t.size=D.size,t._map=D,t._list=b,t.__hash=void 0,t):vi(D,b)}a(rt,be);function rt(t,o){this._iter=t,this._useKeys=o,this.size=t.size}rt.prototype.get=function(t,o){return this._iter.get(t,o)},rt.prototype.has=function(t){return this._iter.has(t)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var t=this,o=pi(this,!0);return this._useKeys||(o.valueSeq=function(){return t._iter.toSeq().reverse()}),o},rt.prototype.map=function(t,o){var u=this,f=io(this,t,o);return this._useKeys||(f.valueSeq=function(){return u._iter.toSeq().map(t,o)}),f},rt.prototype.__iterate=function(t,o){var u=this,f;return this._iter.__iterate(this._useKeys?function(p,g){return t(p,g,u)}:(f=o?fo(this):0,function(p){return t(p,o?--f:f++,u)}),o)},rt.prototype.__iterator=function(t,o){if(this._useKeys)return this._iter.__iterator(t,o);var u=this._iter.__iterator(Y,o),f=o?fo(this):0;return new Z(function(){var p=u.next();return p.done?p:ae(t,o?--f:f++,p.value,p)})},rt.prototype[C]=!0,a(sr,oe);function sr(t){this._iter=t,this.size=t.size}sr.prototype.includes=function(t){return this._iter.includes(t)},sr.prototype.__iterate=function(t,o){var u=this,f=0;return this._iter.__iterate(function(p){return t(p,f++,u)},o)},sr.prototype.__iterator=function(t,o){var u=this._iter.__iterator(Y,o),f=0;return new Z(function(){var p=u.next();return p.done?p:ae(t,f++,p.value,p)})},a(ur,Ne);function ur(t){this._iter=t,this.size=t.size}ur.prototype.has=function(t){return this._iter.includes(t)},ur.prototype.__iterate=function(t,o){var u=this;return this._iter.__iterate(function(f){return t(f,f,u)},o)},ur.prototype.__iterator=function(t,o){var u=this._iter.__iterator(Y,o);return new Z(function(){var f=u.next();return f.done?f:ae(t,f.value,f.value,f)})},a(cr,be);function cr(t){this._iter=t,this.size=t.size}cr.prototype.entrySeq=function(){return this._iter.toSeq()},cr.prototype.__iterate=function(t,o){var u=this;return this._iter.__iterate(function(f){if(f){co(f);var p=v(f);return t(p?f.get(1):f[1],p?f.get(0):f[0],u)}},o)},cr.prototype.__iterator=function(t,o){var u=this._iter.__iterator(Y,o);return new Z(function(){for(;;){var f=u.next();if(f.done)return f;var p=f.value;if(p){co(p);var g=v(p);return ae(t,g?p.get(0):p[0],g?p.get(1):p[1],f)}}})},sr.prototype.cacheResult=rt.prototype.cacheResult=ur.prototype.cacheResult=cr.prototype.cacheResult=gi;function no(t){var o=dt(t);return o._iter=t,o.size=t.size,o.flip=function(){return t},o.reverse=function(){var u=t.reverse.apply(this);return u.flip=function(){return t.reverse()},u},o.has=function(u){return t.includes(u)},o.includes=function(u){return t.has(u)},o.cacheResult=gi,o.__iterateUncached=function(u,f){var p=this;return t.__iterate(function(g,_){return u(_,g,p)!==!1},f)},o.__iteratorUncached=function(u,f){if(u===ee){var p=t.__iterator(u,f);return new Z(function(){var g=p.next();if(!g.done){var _=g.value[0];g.value[0]=g.value[1],g.value[1]=_}return g})}return t.__iterator(u===Y?ne:Y,f)},o}function io(t,o,u){var f=dt(t);return f.size=t.size,f.has=function(p){return t.has(p)},f.get=function(p,g){var _=t.get(p,M);return _===M?g:o.call(u,_,p,t)},f.__iterateUncached=function(p,g){var _=this;return t.__iterate(function(D,b,x){return p(o.call(u,D,b,x),b,_)!==!1},g)},f.__iteratorUncached=function(p,g){var _=t.__iterator(ee,g);return new Z(function(){var D=_.next();if(D.done)return D;var b=D.value,x=b[0];return ae(p,x,o.call(u,b[1],x,t),D)})},f}function pi(t,o){var u=dt(t);return u._iter=t,u.size=t.size,u.reverse=function(){return t},t.flip&&(u.flip=function(){var f=no(t);return f.reverse=function(){return t.flip()},f}),u.get=function(f,p){return t.get(o?f:-1-f,p)},u.has=function(f){return t.has(o?f:-1-f)},u.includes=function(f){return t.includes(f)},u.cacheResult=gi,u.__iterate=function(f,p){var g=this;return t.__iterate(function(_,D){return f(_,D,g)},!p)},u.__iterator=function(f,p){return t.__iterator(f,!p)},u}function ao(t,o,u,f){var p=dt(t);return f&&(p.has=function(g){var _=t.get(g,M);return _!==M&&!!o.call(u,_,g,t)},p.get=function(g,_){var D=t.get(g,M);return D!==M&&o.call(u,D,g,t)?D:_}),p.__iterateUncached=function(g,_){var D=this,b=0;return t.__iterate(function(x,K,A){if(o.call(u,x,K,A))return b++,g(x,f?K:b-1,D)},_),b},p.__iteratorUncached=function(g,_){var D=t.__iterator(ee,_),b=0;return new Z(function(){for(;;){var x=D.next();if(x.done)return x;var K=x.value,A=K[0],L=K[1];if(o.call(u,L,A,t))return ae(g,f?A:b++,L,x)}})},p}function il(t,o,u){var f=fe().asMutable();return t.__iterate(function(p,g){f.update(o.call(u,p,g,t),0,function(_){return _+1})}),f.asImmutable()}function al(t,o,u){var f=h(t),p=(d(t)?Oe():fe()).asMutable();t.__iterate(function(_,D){p.update(o.call(u,_,D,t),function(b){return b=b||[],b.push(f?[D,_]:_),b})});var g=lo(t);return p.map(function(_){return ge(t,g(_))})}function di(t,o,u,f){var p=t.size;if(o!==void 0&&(o=o|0),u!==void 0&&(u=u|0),V(o,u,p))return t;var g=G(o,p),_=W(u,p);if(g!==g||_!==_)return di(t.toSeq().cacheResult(),o,u,f);var D=_-g,b;D===D&&(b=D<0?0:D);var x=dt(t);return x.size=b===0?b:t.size&&b||void 0,!f&&Ke(t)&&b>=0&&(x.get=function(K,A){return K=N(this,K),K>=0&&K<b?t.get(K+g,A):A}),x.__iterateUncached=function(K,A){var L=this;if(b===0)return 0;if(A)return this.cacheResult().__iterate(K,A);var J=0,te=!0,Ce=0;return t.__iterate(function(ut,yt){if(!(te&&(te=J++<g)))return Ce++,K(ut,f?yt:Ce-1,L)!==!1&&Ce!==b}),Ce},x.__iteratorUncached=function(K,A){if(b!==0&&A)return this.cacheResult().__iterator(K,A);var L=b!==0&&t.__iterator(K,A),J=0,te=0;return new Z(function(){for(;J++<g;)L.next();if(++te>b)return me();var Ce=L.next();return f||K===Y?Ce:K===ne?ae(K,te-1,void 0,Ce):ae(K,te-1,Ce.value[1],Ce)})},x}function ol(t,o,u){var f=dt(t);return f.__iterateUncached=function(p,g){var _=this;if(g)return this.cacheResult().__iterate(p,g);var D=0;return t.__iterate(function(b,x,K){return o.call(u,b,x,K)&&++D&&p(b,x,_)}),D},f.__iteratorUncached=function(p,g){var _=this;if(g)return this.cacheResult().__iterator(p,g);var D=t.__iterator(ee,g),b=!0;return new Z(function(){if(!b)return me();var x=D.next();if(x.done)return x;var K=x.value,A=K[0],L=K[1];return o.call(u,L,A,_)?p===ee?x:ae(p,A,L,x):(b=!1,me())})},f}function oo(t,o,u,f){var p=dt(t);return p.__iterateUncached=function(g,_){var D=this;if(_)return this.cacheResult().__iterate(g,_);var b=!0,x=0;return t.__iterate(function(K,A,L){if(!(b&&(b=o.call(u,K,A,L))))return x++,g(K,f?A:x-1,D)}),x},p.__iteratorUncached=function(g,_){var D=this;if(_)return this.cacheResult().__iterator(g,_);var b=t.__iterator(ee,_),x=!0,K=0;return new Z(function(){var A,L,J;do{if(A=b.next(),A.done)return f||g===Y?A:g===ne?ae(g,K++,void 0,A):ae(g,K++,A.value[1],A);var te=A.value;L=te[0],J=te[1],x&&(x=o.call(u,J,L,D))}while(x);return g===ee?A:ae(g,L,J,A)})},p}function sl(t,o){var u=h(t),f=[t].concat(o).map(function(_){return v(_)?u&&(_=s(_)):_=u?vt(_):Q(Array.isArray(_)?_:[_]),_}).filter(function(_){return _.size!==0});if(f.length===0)return t;if(f.length===1){var p=f[0];if(p===t||u&&h(p)||y(t)&&y(p))return p}var g=new _e(f);return u?g=g.toKeyedSeq():y(t)||(g=g.toSetSeq()),g=g.flatten(!0),g.size=f.reduce(function(_,D){if(_!==void 0){var b=D.size;if(b!==void 0)return _+b}},0),g}function so(t,o,u){var f=dt(t);return f.__iterateUncached=function(p,g){var _=0,D=!1;function b(x,K){var A=this;x.__iterate(function(L,J){return(!o||K<o)&&v(L)?b(L,K+1):p(L,u?J:_++,A)===!1&&(D=!0),!D},g)}return b(t,0),_},f.__iteratorUncached=function(p,g){var _=t.__iterator(p,g),D=[],b=0;return new Z(function(){for(;_;){var x=_.next();if(x.done!==!1){_=D.pop();continue}var K=x.value;if(p===ee&&(K=K[1]),(!o||D.length<o)&&v(K))D.push(_),_=K.__iterator(p,g);else return u?x:ae(p,b++,K,x)}return me()})},f}function ul(t,o,u){var f=lo(t);return t.toSeq().map(function(p,g){return f(o.call(u,p,g,t))}).flatten(!0)}function cl(t,o){var u=dt(t);return u.size=t.size&&t.size*2-1,u.__iterateUncached=function(f,p){var g=this,_=0;return t.__iterate(function(D,b){return(!_||f(o,_++,g)!==!1)&&f(D,_++,g)!==!1},p),_},u.__iteratorUncached=function(f,p){var g=t.__iterator(Y,p),_=0,D;return new Z(function(){return(!D||_%2)&&(D=g.next(),D.done)?D:_%2?ae(f,_++,o):ae(f,_++,D.value,D)})},u}function fr(t,o,u){o||(o=vo);var f=h(t),p=0,g=t.toSeq().map(function(_,D){return[D,_,p++,u?u(_,D,t):_]}).toArray();return g.sort(function(_,D){return o(_[3],D[3])||_[2]-D[2]}).forEach(f?function(_,D){g[D].length=2}:function(_,D){g[D]=_[1]}),f?be(g):y(t)?oe(g):Ne(g)}function un(t,o,u){if(o||(o=vo),u){var f=t.toSeq().map(function(p,g){return[p,u(p,g,t)]}).reduce(function(p,g){return uo(o,p[1],g[1])?g:p});return f&&f[0]}else return t.reduce(function(p,g){return uo(o,p,g)?g:p})}function uo(t,o,u){var f=t(u,o);return f===0&&u!==o&&(u==null||u!==u)||f>0}function hi(t,o,u){var f=dt(t);return f.size=new _e(u).map(function(p){return p.size}).min(),f.__iterate=function(p,g){for(var _=this.__iterator(Y,g),D,b=0;!(D=_.next()).done&&p(D.value,b++,this)!==!1;);return b},f.__iteratorUncached=function(p,g){var _=u.map(function(x){return x=i(x),ze(g?x.reverse():x)}),D=0,b=!1;return new Z(function(){var x;return b||(x=_.map(function(K){return K.next()}),b=x.some(function(K){return K.done})),b?me():ae(p,D++,o.apply(null,x.map(function(K){return K.value})))})},f}function ge(t,o){return Ke(t)?o:t.constructor(o)}function co(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function fo(t){return Ze(t.size),F(t)}function lo(t){return h(t)?s:y(t)?c:l}function dt(t){return Object.create((h(t)?be:y(t)?oe:Ne).prototype)}function gi(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):pe.prototype.cacheResult.call(this)}function vo(t,o){return t>o?1:t<o?-1:0}function po(t){var o=ze(t);if(!o){if(!Je(t))throw new TypeError("Expected iterable or array-like: "+t);o=ze(i(t))}return o}a(Qe,Dr);function Qe(t,o){var u,f=function(_){if(_ instanceof f)return _;if(!(this instanceof f))return new f(_);if(!u){u=!0;var D=Object.keys(t);fl(p,D),p.size=D.length,p._name=o,p._keys=D,p._defaultValues=t}this._map=fe(_)},p=f.prototype=Object.create(Me);return p.constructor=f,f}Qe.prototype.toString=function(){return this.__toString(ho(this)+" {","}")},Qe.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Qe.prototype.get=function(t,o){if(!this.has(t))return o;var u=this._defaultValues[t];return this._map?this._map.get(t,u):u},Qe.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=cn(this,pt()))},Qe.prototype.set=function(t,o){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+ho(this));var u=this._map&&this._map.set(t,o);return this.__ownerID||u===this._map?this:cn(this,u)},Qe.prototype.remove=function(t){if(!this.has(t))return this;var o=this._map&&this._map.remove(t);return this.__ownerID||o===this._map?this:cn(this,o)},Qe.prototype.wasAltered=function(){return this._map.wasAltered()},Qe.prototype.__iterator=function(t,o){var u=this;return s(this._defaultValues).map(function(f,p){return u.get(p)}).__iterator(t,o)},Qe.prototype.__iterate=function(t,o){var u=this;return s(this._defaultValues).map(function(f,p){return u.get(p)}).__iterate(t,o)},Qe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var o=this._map&&this._map.__ensureOwner(t);return t?cn(this,o,t):(this.__ownerID=t,this._map=o,this)};var Me=Qe.prototype;Me[T]=Me.remove,Me.deleteIn=Me.removeIn=ie.removeIn,Me.merge=ie.merge,Me.mergeWith=ie.mergeWith,Me.mergeIn=ie.mergeIn,Me.mergeDeep=ie.mergeDeep,Me.mergeDeepWith=ie.mergeDeepWith,Me.mergeDeepIn=ie.mergeDeepIn,Me.setIn=ie.setIn,Me.update=ie.update,Me.updateIn=ie.updateIn,Me.withMutations=ie.withMutations,Me.asMutable=ie.asMutable,Me.asImmutable=ie.asImmutable;function cn(t,o,u){var f=Object.create(Object.getPrototypeOf(t));return f._map=o,f.__ownerID=u,f}function ho(t){return t._name||t.constructor.name||"Record"}function fl(t,o){try{o.forEach(ll.bind(void 0,t))}catch{}}function ll(t,o){Object.defineProperty(t,o,{get:function(){return this.get(o)},set:function(u){rn(this.__ownerID,"Cannot set on an immutable record."),this.set(o,u)}})}a(we,nn);function we(t){return t==null?_i():yi(t)&&!d(t)?t:_i().withMutations(function(o){var u=l(t);Ze(u.size),u.forEach(function(f){return o.add(f)})})}we.of=function(){return this(arguments)},we.fromKeys=function(t){return this(s(t).keySeq())},we.prototype.toString=function(){return this.__toString("Set {","}")},we.prototype.has=function(t){return this._map.has(t)},we.prototype.add=function(t){return mi(this,this._map.set(t,!0))},we.prototype.remove=function(t){return mi(this,this._map.remove(t))},we.prototype.clear=function(){return mi(this,this._map.clear())},we.prototype.union=function(){var t=n.call(arguments,0);return t=t.filter(function(o){return o.size!==0}),t.length===0?this:this.size===0&&!this.__ownerID&&t.length===1?this.constructor(t[0]):this.withMutations(function(o){for(var u=0;u<t.length;u++)l(t[u]).forEach(function(f){return o.add(f)})})},we.prototype.intersect=function(){var t=n.call(arguments,0);if(t.length===0)return this;t=t.map(function(u){return l(u)});var o=this;return this.withMutations(function(u){o.forEach(function(f){t.every(function(p){return p.includes(f)})||u.remove(f)})})},we.prototype.subtract=function(){var t=n.call(arguments,0);if(t.length===0)return this;t=t.map(function(u){return l(u)});var o=this;return this.withMutations(function(u){o.forEach(function(f){t.some(function(p){return p.includes(f)})&&u.remove(f)})})},we.prototype.merge=function(){return this.union.apply(this,arguments)},we.prototype.mergeWith=function(t){var o=n.call(arguments,1);return this.union.apply(this,o)},we.prototype.sort=function(t){return ht(fr(this,t))},we.prototype.sortBy=function(t,o){return ht(fr(this,o,t))},we.prototype.wasAltered=function(){return this._map.wasAltered()},we.prototype.__iterate=function(t,o){var u=this;return this._map.__iterate(function(f,p){return t(p,p,u)},o)},we.prototype.__iterator=function(t,o){return this._map.map(function(u,f){return f}).__iterator(t,o)},we.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var o=this._map.__ensureOwner(t);return t?this.__make(o,t):(this.__ownerID=t,this._map=o,this)};function yi(t){return!!(t&&t[go])}we.isSet=yi;var go="@@__IMMUTABLE_SET__@@",et=we.prototype;et[go]=!0,et[T]=et.remove,et.mergeDeep=et.merge,et.mergeDeepWith=et.mergeWith,et.withMutations=ie.withMutations,et.asMutable=ie.asMutable,et.asImmutable=ie.asImmutable,et.__empty=_i,et.__make=yo;function mi(t,o){return t.__ownerID?(t.size=o.size,t._map=o,t):o===t._map?t:o.size===0?t.__empty():t.__make(o)}function yo(t,o){var u=Object.create(et);return u.size=t?t.size:0,u._map=t,u.__ownerID=o,u}var mo;function _i(){return mo||(mo=yo(pt()))}a(ht,we);function ht(t){return t==null?Ei():_o(t)?t:Ei().withMutations(function(o){var u=l(t);Ze(u.size),u.forEach(function(f){return o.add(f)})})}ht.of=function(){return this(arguments)},ht.fromKeys=function(t){return this(s(t).keySeq())},ht.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function _o(t){return yi(t)&&d(t)}ht.isOrderedSet=_o;var fn=ht.prototype;fn[C]=!0,fn.__empty=Ei,fn.__make=Eo;function Eo(t,o){var u=Object.create(fn);return u.size=t?t.size:0,u._map=t,u.__ownerID=o,u}var So;function Ei(){return So||(So=Eo(sn()))}a(Te,nr);function Te(t){return t==null?Si():wo(t)?t:Si().unshiftAll(t)}Te.of=function(){return this(arguments)},Te.prototype.toString=function(){return this.__toString("Stack [","]")},Te.prototype.get=function(t,o){var u=this._head;for(t=N(this,t);u&&t--;)u=u.next;return u?u.value:o},Te.prototype.peek=function(){return this._head&&this._head.value},Te.prototype.push=function(){if(arguments.length===0)return this;for(var t=this.size+arguments.length,o=this._head,u=arguments.length-1;u>=0;u--)o={value:arguments[u],next:o};return this.__ownerID?(this.size=t,this._head=o,this.__hash=void 0,this.__altered=!0,this):Kr(t,o)},Te.prototype.pushAll=function(t){if(t=c(t),t.size===0)return this;Ze(t.size);var o=this.size,u=this._head;return t.reverse().forEach(function(f){o++,u={value:f,next:u}}),this.__ownerID?(this.size=o,this._head=u,this.__hash=void 0,this.__altered=!0,this):Kr(o,u)},Te.prototype.pop=function(){return this.slice(1)},Te.prototype.unshift=function(){return this.push.apply(this,arguments)},Te.prototype.unshiftAll=function(t){return this.pushAll(t)},Te.prototype.shift=function(){return this.pop.apply(this,arguments)},Te.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Si()},Te.prototype.slice=function(t,o){if(V(t,o,this.size))return this;var u=G(t,this.size),f=W(o,this.size);if(f!==this.size)return nr.prototype.slice.call(this,t,o);for(var p=this.size-u,g=this._head;u--;)g=g.next;return this.__ownerID?(this.size=p,this._head=g,this.__hash=void 0,this.__altered=!0,this):Kr(p,g)},Te.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Kr(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Te.prototype.__iterate=function(t,o){if(o)return this.reverse().__iterate(t);for(var u=0,f=this._head;f&&t(f.value,u++,this)!==!1;)f=f.next;return u},Te.prototype.__iterator=function(t,o){if(o)return this.reverse().__iterator(t);var u=0,f=this._head;return new Z(function(){if(f){var p=f.value;return f=f.next,ae(t,u++,p)}return me()})};function wo(t){return!!(t&&t[Co])}Te.isStack=wo;var Co="@@__IMMUTABLE_STACK__@@",lr=Te.prototype;lr[Co]=!0,lr.withMutations=ie.withMutations,lr.asMutable=ie.asMutable,lr.asImmutable=ie.asImmutable,lr.wasAltered=ie.wasAltered;function Kr(t,o,u,f){var p=Object.create(lr);return p.size=t,p._head=o,p.__ownerID=u,p.__hash=f,p.__altered=!1,p}var Do;function Si(){return Do||(Do=Kr(0))}function gt(t,o){var u=function(f){t.prototype[f]=o[f]};return Object.keys(o).forEach(u),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(o).forEach(u),t}i.Iterator=Z,gt(i,{toArray:function(){Ze(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(o,u){t[u]=o}),t},toIndexedSeq:function(){return new sr(this)},toJS:function(){return this.toSeq().map(function(t){return t&&typeof t.toJS=="function"?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&typeof t.toJSON=="function"?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new rt(this,!0)},toMap:function(){return fe(this.toKeyedSeq())},toObject:function(){Ze(this.size);var t={};return this.__iterate(function(o,u){t[u]=o}),t},toOrderedMap:function(){return Oe(this.toKeyedSeq())},toOrderedSet:function(){return ht(h(this)?this.valueSeq():this)},toSet:function(){return we(h(this)?this.valueSeq():this)},toSetSeq:function(){return new ur(this)},toSeq:function(){return y(this)?this.toIndexedSeq():h(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Te(h(this)?this.valueSeq():this)},toList:function(){return Se(h(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,o){return this.size===0?t+o:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+o},concat:function(){var t=n.call(arguments,0);return ge(this,sl(this,t))},includes:function(t){return this.some(function(o){return Ee(o,t)})},entries:function(){return this.__iterator(ee)},every:function(t,o){Ze(this.size);var u=!0;return this.__iterate(function(f,p,g){if(!t.call(o,f,p,g))return u=!1,!1}),u},filter:function(t,o){return ge(this,ao(this,t,o,!0))},find:function(t,o,u){var f=this.findEntry(t,o);return f?f[1]:u},findEntry:function(t,o){var u;return this.__iterate(function(f,p,g){if(t.call(o,f,p,g))return u=[p,f],!1}),u},findLastEntry:function(t,o){return this.toSeq().reverse().findEntry(t,o)},forEach:function(t,o){return Ze(this.size),this.__iterate(o?t.bind(o):t)},join:function(t){Ze(this.size),t=t!==void 0?""+t:",";var o="",u=!0;return this.__iterate(function(f){u?u=!1:o+=t,o+=f!=null?f.toString():""}),o},keys:function(){return this.__iterator(ne)},map:function(t,o){return ge(this,io(this,t,o))},reduce:function(t,o,u){Ze(this.size);var f,p;return arguments.length<2?p=!0:f=o,this.__iterate(function(g,_,D){p?(p=!1,f=g):f=t.call(u,f,g,_,D)}),f},reduceRight:function(t,o,u){var f=this.toKeyedSeq().reverse();return f.reduce.apply(f,arguments)},reverse:function(){return ge(this,pi(this,!0))},slice:function(t,o){return ge(this,di(this,t,o,!0))},some:function(t,o){return!this.every(vn(t),o)},sort:function(t){return ge(this,fr(this,t))},values:function(){return this.__iterator(Y)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(t,o){return F(t?this.toSeq().filter(t,o):this)},countBy:function(t,o){return il(this,t,o)},equals:function(t){return rr(this,t)},entrySeq:function(){var t=this;if(t._cache)return new _e(t._cache);var o=t.toSeq().map(pl).toIndexedSeq();return o.fromEntrySeq=function(){return t.toSeq()},o},filterNot:function(t,o){return this.filter(vn(t),o)},findLast:function(t,o,u){return this.toKeyedSeq().reverse().find(t,o,u)},first:function(){return this.find(P)},flatMap:function(t,o){return ge(this,ul(this,t,o))},flatten:function(t){return ge(this,so(this,t,!0))},fromEntrySeq:function(){return new cr(this)},get:function(t,o){return this.find(function(u,f){return Ee(f,t)},void 0,o)},getIn:function(t,o){for(var u=this,f=po(t),p;!(p=f.next()).done;){var g=p.value;if(u=u&&u.get?u.get(g,M):M,u===M)return o}return u},groupBy:function(t,o){return al(this,t,o)},has:function(t){return this.get(t,M)!==M},hasIn:function(t){return this.getIn(t,M)!==M},isSubset:function(t){return t=typeof t.includes=="function"?t:i(t),this.every(function(o){return t.includes(o)})},isSuperset:function(t){return t=typeof t.isSubset=="function"?t:i(t),t.isSubset(this)},keySeq:function(){return this.toSeq().map(vl).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return un(this,t)},maxBy:function(t,o){return un(this,o,t)},min:function(t){return un(this,t?bo(t):To)},minBy:function(t,o){return un(this,o?bo(o):To,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return ge(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,o){return ge(this,oo(this,t,o,!0))},skipUntil:function(t,o){return this.skipWhile(vn(t),o)},sortBy:function(t,o){return ge(this,fr(this,o,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return ge(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,o){return ge(this,ol(this,t,o))},takeUntil:function(t,o){return this.takeWhile(vn(t),o)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=hl(this))}});var $e=i.prototype;$e[E]=!0,$e[Fe]=$e.values,$e.__toJS=$e.toArray,$e.__toStringMapper=Oo,$e.inspect=$e.toSource=function(){return this.toString()},$e.chain=$e.flatMap,$e.contains=$e.includes,function(){try{Object.defineProperty($e,"length",{get:function(){if(!i.noLengthWarning){var t;try{throw new Error}catch(o){t=o.stack}if(t.indexOf("_wrapObject")===-1)return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch{}}(),gt(s,{flip:function(){return ge(this,no(this))},findKey:function(t,o){var u=this.findEntry(t,o);return u&&u[0]},findLastKey:function(t,o){return this.toSeq().reverse().findKey(t,o)},keyOf:function(t){return this.findKey(function(o){return Ee(o,t)})},lastKeyOf:function(t){return this.findLastKey(function(o){return Ee(o,t)})},mapEntries:function(t,o){var u=this,f=0;return ge(this,this.toSeq().map(function(p,g){return t.call(o,[g,p],f++,u)}).fromEntrySeq())},mapKeys:function(t,o){var u=this;return ge(this,this.toSeq().flip().map(function(f,p){return t.call(o,f,p,u)}).flip())}});var ln=s.prototype;ln[m]=!0,ln[Fe]=$e.entries,ln.__toJS=$e.toObject,ln.__toStringMapper=function(t,o){return JSON.stringify(o)+": "+Oo(t)},gt(c,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(t,o){return ge(this,ao(this,t,o,!1))},findIndex:function(t,o){var u=this.findEntry(t,o);return u?u[0]:-1},indexOf:function(t){var o=this.toKeyedSeq().keyOf(t);return o===void 0?-1:o},lastIndexOf:function(t){var o=this.toKeyedSeq().reverse().keyOf(t);return o===void 0?-1:o},reverse:function(){return ge(this,pi(this,!1))},slice:function(t,o){return ge(this,di(this,t,o,!1))},splice:function(t,o){var u=arguments.length;if(o=Math.max(o|0,0),u===0||u===2&&!o)return this;t=G(t,t<0?this.count():this.size);var f=this.slice(0,t);return ge(this,u===1?f:f.concat($(arguments,2),this.slice(t+o)))},findLastIndex:function(t,o){var u=this.toKeyedSeq().findLastKey(t,o);return u===void 0?-1:u},first:function(){return this.get(0)},flatten:function(t){return ge(this,so(this,t,!1))},get:function(t,o){return t=N(this,t),t<0||this.size===1/0||this.size!==void 0&&t>this.size?o:this.find(function(u,f){return f===t},void 0,o)},has:function(t){return t=N(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return ge(this,cl(this,t))},interleave:function(){var t=[this].concat($(arguments)),o=hi(this.toSeq(),oe.of,t),u=o.flatten(!0);return o.size&&(u.size=o.size*t.length),ge(this,u)},last:function(){return this.get(-1)},skipWhile:function(t,o){return ge(this,oo(this,t,o,!1))},zip:function(){var t=[this].concat($(arguments));return ge(this,hi(this,dl,t))},zipWith:function(t){var o=$(arguments);return o[0]=this,ge(this,hi(this,t,o))}}),c.prototype[S]=!0,c.prototype[C]=!0,gt(l,{get:function(t,o){return this.has(t)?t:o},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),l.prototype.has=$e.includes,gt(be,s.prototype),gt(oe,c.prototype),gt(Ne,l.prototype),gt(Dr,s.prototype),gt(nr,c.prototype),gt(nn,l.prototype);function vl(t,o){return o}function pl(t,o){return[o,t]}function vn(t){return function(){return!t.apply(this,arguments)}}function bo(t){return function(){return-t.apply(this,arguments)}}function Oo(t){return typeof t=="string"?JSON.stringify(t):t}function dl(){return $(arguments)}function To(t,o){return t<o?1:t>o?-1:0}function hl(t){if(t.size===1/0)return 0;var o=d(t),u=h(t),f=o?1:0,p=t.__iterate(u?o?function(g,_){f=31*f+ko(Ye(g),Ye(_))|0}:function(g,_){f=f+ko(Ye(g),Ye(_))|0}:o?function(g){f=31*f+Ye(g)|0}:function(g){f=f+Ye(g)|0});return gl(p,f)}function gl(t,o){return o=br(o,3432918353),o=br(o<<15|o>>>-15,461845907),o=br(o<<13|o>>>-13,5),o=(o+3864292196|0)^t,o=br(o^o>>>16,2246822507),o=br(o^o>>>13,3266489909),o=Yn(o^o>>>16),o}function ko(t,o){return t^o+2654435769+(t<<6)+(t>>2)|0}var yl={Iterable:i,Seq:pe,Collection:Kt,Map:fe,OrderedMap:Oe,List:Se,Stack:Te,Set:we,OrderedSet:ht,Record:Qe,Range:Le,Repeat:Re,is:Ee,fromJS:He};return yl})})(Pu);var le=Pu.exports,_l=le,El=_l.OrderedMap,Sl={createFromArray:function(e){return El(e.map(function(n){return[n.getKey(),n]}))}},jr=Sl;function wl(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var pa=le,Yi=pa.Map,Zi=pa.OrderedSet,Cl=pa.Record,Uu=Zi(),zu={style:Uu,entity:null},Dl=Cl(zu),da=function(r){wl(e,r);function e(){return r.apply(this,arguments)||this}var n=e.prototype;return n.getStyle=function(){return this.get("style")},n.getEntity=function(){return this.get("entity")},n.hasStyle=function(i){return this.getStyle().includes(i)},e.applyStyle=function(i,s){var c=i.set("style",i.getStyle().add(s));return e.create(c)},e.removeStyle=function(i,s){var c=i.set("style",i.getStyle().remove(s));return e.create(c)},e.applyEntity=function(i,s){var c=i.getEntity()===s?i:i.set("entity",s);return e.create(c)},e.create=function(i){if(!i)return ha;var s={style:Uu,entity:null},c=Yi(s).merge(i),l=wi.get(c);if(l)return l;var v=new e(c);return wi=wi.set(c,v),v},e.fromJS=function(i){var s=i.style,c=i.entity;return new e({style:Array.isArray(s)?Zi(s):s,entity:Array.isArray(c)?Zi(c):c})},e}(Dl),ha=new da,wi=Yi([[Yi(zu),ha]]);da.EMPTY=ha;var at=da;function bl(r,e,n,a){if(r.size){var i=0;r.reduce(function(s,c,l){return e(s,c)||(n(s)&&a(i,l),i=l),c}),n(r.last())&&a(i,r.count())}}var Gr=bl;function Ol(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var Tl=at,xo=Gr,Jr=le,qu=Jr.List,kl=Jr.Map,xl=Jr.OrderedSet,Bl=Jr.Record,Kl=Jr.Repeat,Ml=xl(),Al={key:"",type:"unstyled",text:"",characterList:qu(),depth:0,data:kl()},Nl=Bl(Al),Il=function(e){if(!e)return e;var n=e.characterList,a=e.text;return a&&!n&&(e.characterList=qu(Kl(Tl.EMPTY,a.length))),e},Rl=function(r){Ol(e,r);function e(a){return r.call(this,Il(a))||this}var n=e.prototype;return n.getKey=function(){return this.get("key")},n.getType=function(){return this.get("type")},n.getText=function(){return this.get("text")},n.getCharacterList=function(){return this.get("characterList")},n.getLength=function(){return this.getText().length},n.getDepth=function(){return this.get("depth")},n.getData=function(){return this.get("data")},n.getInlineStyleAt=function(i){var s=this.getCharacterList().get(i);return s?s.getStyle():Ml},n.getEntityAt=function(i){var s=this.getCharacterList().get(i);return s?s.getEntity():null},n.findStyleRanges=function(i,s){xo(this.getCharacterList(),Ll,i,s)},n.findEntityRanges=function(i,s){xo(this.getCharacterList(),$l,i,s)},e}(Nl);function Ll(r,e){return r.getStyle()===e.getStyle()}function $l(r,e){return r.getEntity()===e.getEntity()}var Cr=Rl;function Fl(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var Pl=at,Bo=Gr,Xr=le,Qi=Xr.List,Ul=Xr.Map,zl=Xr.OrderedSet,ql=Xr.Record,Hl=Xr.Repeat,Vl=zl(),Ko={parent:null,characterList:Qi(),data:Ul(),depth:0,key:"",text:"",type:"unstyled",children:Qi(),prevSibling:null,nextSibling:null},Wl=function(e,n){return e.getStyle()===n.getStyle()},jl=function(e,n){return e.getEntity()===n.getEntity()},Gl=function(e){if(!e)return e;var n=e.characterList,a=e.text;return a&&!n&&(e.characterList=Qi(Hl(Pl.EMPTY,a.length))),e},Jl=function(r){Fl(e,r);function e(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ko;return r.call(this,Gl(a))||this}var n=e.prototype;return n.getKey=function(){return this.get("key")},n.getType=function(){return this.get("type")},n.getText=function(){return this.get("text")},n.getCharacterList=function(){return this.get("characterList")},n.getLength=function(){return this.getText().length},n.getDepth=function(){return this.get("depth")},n.getData=function(){return this.get("data")},n.getInlineStyleAt=function(i){var s=this.getCharacterList().get(i);return s?s.getStyle():Vl},n.getEntityAt=function(i){var s=this.getCharacterList().get(i);return s?s.getEntity():null},n.getChildKeys=function(){return this.get("children")},n.getParentKey=function(){return this.get("parent")},n.getPrevSiblingKey=function(){return this.get("prevSibling")},n.getNextSiblingKey=function(){return this.get("nextSibling")},n.findStyleRanges=function(i,s){Bo(this.getCharacterList(),Wl,i,s)},n.findEntityRanges=function(i,s){Bo(this.getCharacterList(),jl,i,s)},e}(ql(Ko)),ot=Jl,Mo=at,Xl=le,Yl=Xl.Map,Zl={add:function(e,n,a){return Ao(e,n,a,!0)},remove:function(e,n,a){return Ao(e,n,a,!1)}};function Ao(r,e,n,a){var i=r.getBlockMap(),s=e.getStartKey(),c=e.getStartOffset(),l=e.getEndKey(),v=e.getEndOffset(),h=i.skipUntil(function(y,w){return w===s}).takeUntil(function(y,w){return w===l}).concat(Yl([[l,i.get(l)]])).map(function(y,w){var d,E;s===l?(d=c,E=v):(d=w===s?c:0,E=w===l?v:y.getLength());for(var m=y.getCharacterList(),S;d<E;)S=m.get(d),m=m.set(d,a?Mo.applyStyle(S,n):Mo.removeStyle(S,n)),d++;return y.set("characterList",m)});return r.merge({blockMap:i.merge(h),selectionBefore:e,selectionAfter:e})}var Ql=Zl,ev=at;function tv(r,e,n,a){for(var i=e,s=r.getCharacterList();i<n;)s=s.set(i,ev.applyEntity(s.get(i),a)),i++;return r.set("characterList",s)}var rv=tv,nv=rv,iv=le;function av(r,e,n){var a=r.getBlockMap(),i=e.getStartKey(),s=e.getStartOffset(),c=e.getEndKey(),l=e.getEndOffset(),v=a.skipUntil(function(h,y){return y===i}).takeUntil(function(h,y){return y===c}).toOrderedMap().merge(iv.OrderedMap([[c,a.get(c)]])).map(function(h,y){var w=y===i?s:0,d=y===c?l:h.getLength();return nv(h,w,d,n)});return r.merge({blockMap:a.merge(v),selectionBefore:e,selectionAfter:e})}var ov=av,sv={getRemovalRange:function(e,n,a,i,s){var c=a.split(" ");c=c.map(function(C,T){if(s==="forward"){if(T>0)return" "+C}else if(T<c.length-1)return C+" ";return C});for(var l=i,v,h,y=null,w=null,d=0;d<c.length;d++){if(h=c[d],v=l+h.length,e<v&&l<n)y!==null||(y=l),w=v;else if(y!==null)break;l=v}var E=i+a.length,m=y===i,S=w===E;return(!m&&S||m&&!S)&&(s==="forward"?w!==E&&w++:y!==i&&y--),{start:y,end:w}}},uv=sv,cv=process.env.NODE_ENV!=="production"?function(r){if(r===void 0)throw new Error("invariant(...): Second argument must be a string.")}:function(r){};function fv(r,e){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];if(cv(e),!r){var s;if(e===void 0)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=0;s=new Error(e.replace(/%s/g,function(){return String(a[c++])})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var ve=fv,No=ve;function lv(r,e){var n=[];return r.findEntityRanges(function(a){return a.getEntity()===e},function(a,i){n.push({start:a,end:i})}),n.length||(process.env.NODE_ENV!=="production"?No(!1,"Entity key not found in this range."):No(!1)),n}var vv=lv,pv=uv,dv=vv,Io=ve;function hv(r,e,n,a,i){var s=a.getStartOffset(),c=a.getEndOffset(),l=e.getEntityAt(s),v=n.getEntityAt(c-1);if(!l&&!v)return a;var h=a;if(l&&l===v)h=Mr(r,e,h,i,l,!0,!0);else if(l&&v){var y=Mr(r,e,h,i,l,!1,!0),w=Mr(r,n,h,i,v,!1,!1);h=h.merge({anchorOffset:y.getAnchorOffset(),focusOffset:w.getFocusOffset(),isBackward:!1})}else if(l){var d=Mr(r,e,h,i,l,!1,!0);h=h.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(v){var E=Mr(r,n,h,i,v,!1,!1);h=h.merge({focusOffset:E.getEndOffset(),isBackward:!1})}return h}function Mr(r,e,n,a,i,s,c){var l=n.getStartOffset(),v=n.getEndOffset(),h=r.__get(i),y=h.getMutability(),w=c?l:v;if(y==="MUTABLE")return n;var d=dv(e,i).filter(function(S){return w<=S.end&&w>=S.start});d.length!=1&&(process.env.NODE_ENV!=="production"?Io(!1,"There should only be one entity range within this removal range."):Io(!1));var E=d[0];if(y==="IMMUTABLE")return n.merge({anchorOffset:E.start,focusOffset:E.end,isBackward:!1});s||(c?v=E.end:l=E.start);var m=pv.getRemovalRange(l,v,e.getText().slice(E.start,E.end),E.start,a);return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1})}var gv=hv,Ro={},yv=Math.pow(2,24);function mv(){for(var r;r===void 0||Ro.hasOwnProperty(r)||!isNaN(+r);)r=Math.floor(Math.random()*yv).toString(32);return Ro[r]=!0,r}var Ct=mv,_v=ot,Hu=Ct,Ev=le,Vu=Ev.OrderedMap,Sv=function(e){var n={},a;return Vu(e.withMutations(function(i){i.forEach(function(s,c){var l=s.getKey(),v=s.getNextSiblingKey(),h=s.getPrevSiblingKey(),y=s.getChildKeys(),w=s.getParentKey(),d=Hu();if(n[l]=d,v){var E=i.get(v);E?i.setIn([v,"prevSibling"],d):i.setIn([l,"nextSibling"],null)}if(h){var m=i.get(h);m?i.setIn([h,"nextSibling"],d):i.setIn([l,"prevSibling"],null)}if(w&&i.get(w)){var S=i.get(w),C=S.getChildKeys();i.setIn([w,"children"],C.set(C.indexOf(s.getKey()),d))}else i.setIn([l,"parent"],null),a&&(i.setIn([a.getKey(),"nextSibling"],d),i.setIn([l,"prevSibling"],n[a.getKey()])),a=i.get(l);y.forEach(function(T){var B=i.get(T);B?i.setIn([T,"parent"],d):i.setIn([l,"children"],s.getChildKeys().filter(function(O){return O!==T}))})})}).toArray().map(function(i){return[n[i.getKey()],i.set("key",n[i.getKey()])]}))},wv=function(e){return Vu(e.toArray().map(function(n){var a=Hu();return[a,n.set("key",a)]}))},Cv=function(e){var n=e.first()instanceof _v;return n?Sv(e):wv(e)},Wu=Cv,Dv=at,bv=Gr,Lo=ve;function Ov(r,e){var n=r.getBlockMap(),a=r.getEntityMap(),i={},s=e.getStartKey(),c=e.getStartOffset(),l=n.get(s),v=$o(a,l,c);v!==l&&(i[s]=v);var h=e.getEndKey(),y=e.getEndOffset(),w=n.get(h);s===h&&(w=v);var d=$o(a,w,y);return d!==w&&(i[h]=d),Object.keys(i).length?r.merge({blockMap:n.merge(i),selectionAfter:e}):r.set("selectionAfter",e)}function Tv(r,e,n){var a;return bv(r,function(i,s){return i.getEntity()===s.getEntity()},function(i){return i.getEntity()===e},function(i,s){i<=n&&s>=n&&(a={start:i,end:s})}),typeof a!="object"&&(process.env.NODE_ENV!=="production"?Lo(!1,"Removal range must exist within character list."):Lo(!1)),a}function $o(r,e,n){var a=e.getCharacterList(),i=n>0?a.get(n-1):void 0,s=n<a.count()?a.get(n):void 0,c=i?i.getEntity():void 0,l=s?s.getEntity():void 0;if(l&&l===c){var v=r.__get(l);if(v.getMutability()!=="MUTABLE"){for(var h=Tv(a,l,n),y=h.start,w=h.end,d;y<w;)d=a.get(y),a=a.set(y,Dv.applyEntity(d,null)),y++;return e.set("characterList",a)}}return e}var ju=Ov,kv=Wu,xv=ju,Bv=function(e,n){var a=n.getStartKey(),i=n.getStartOffset(),s=n.getEndKey(),c=n.getEndOffset(),l=xv(e,n),v=l.getBlockMap(),h=v.keySeq(),y=h.indexOf(a),w=h.indexOf(s)+1;return kv(v.slice(y,w).map(function(d,E){var m=d.getText(),S=d.getCharacterList();return a===s?d.merge({text:m.slice(i,c),characterList:S.slice(i,c)}):E===a?d.merge({text:m.slice(i),characterList:S.slice(i)}):E===s?d.merge({text:m.slice(0,c),characterList:S.slice(0,c)}):d}))},Rn=Bv;function Kv(r,e,n){var a=r;if(n===a.count())e.forEach(function(c){a=a.push(c)});else if(n===0)e.reverse().forEach(function(c){a=a.unshift(c)});else{var i=a.slice(0,n),s=a.slice(n);a=i.concat(e,s).toList()}return a}var Gu=Kv,Mv=jr,Ju=ot,Av=le,Nv=Gu,dn=ve,Iv=Wu,Rv=Av.List,Lv=function(e,n,a,i,s,c){var l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"REPLACE_WITH_NEW_DATA",v=a.get(s),h=v.getText(),y=v.getCharacterList(),w=s,d=c+i.getText().length,E=null;switch(l){case"MERGE_OLD_DATA_TO_NEW_DATA":E=i.getData().merge(v.getData());break;case"REPLACE_WITH_NEW_DATA":E=i.getData();break}var m=v.getType();h&&m==="unstyled"&&(m=i.getType());var S=v.merge({text:h.slice(0,c)+i.getText()+h.slice(c),characterList:Nv(y,i.getCharacterList(),c),type:m,data:E});return e.merge({blockMap:a.set(s,S),selectionBefore:n,selectionAfter:n.merge({anchorKey:w,anchorOffset:d,focusKey:w,focusOffset:d,isBackward:!1})})},$v=function(e,n,a){var i=e.getText(),s=e.getCharacterList(),c=i.slice(0,n),l=s.slice(0,n),v=a.first();return e.merge({text:c+v.getText(),characterList:l.concat(v.getCharacterList()),type:c?e.getType():v.getType(),data:v.getData()})},Fv=function(e,n,a){var i=e.getText(),s=e.getCharacterList(),c=i.length,l=i.slice(n,c),v=s.slice(n,c),h=a.last();return h.merge({text:h.getText()+l,characterList:h.getCharacterList().concat(v),data:h.getData()})},Pv=function(e,n){var a=e.getKey(),i=e,s=[];for(n.get(a)&&s.push(a);i&&i.getNextSiblingKey();){var c=i.getNextSiblingKey();if(!c)break;s.push(c),i=n.get(c)}return s},Uv=function(e,n,a,i){return e.withMutations(function(s){var c=a.getKey(),l=i.getKey(),v=a.getNextSiblingKey(),h=a.getParentKey(),y=Pv(i,e),w=y[y.length-1];if(s.get(l)?(s.setIn([c,"nextSibling"],l),s.setIn([l,"prevSibling"],c)):(s.setIn([c,"nextSibling"],i.getNextSiblingKey()),s.setIn([i.getNextSiblingKey(),"prevSibling"],c)),s.setIn([w,"nextSibling"],v),v&&s.setIn([v,"prevSibling"],w),y.forEach(function(T){return s.setIn([T,"parent"],h)}),h){var d=e.get(h),E=d.getChildKeys(),m=E.indexOf(c),S=m+1,C=E.toArray();C.splice.apply(C,[S,0].concat(y)),s.setIn([h,"children"],Rv(C))}})},zv=function(e,n,a,i,s,c){var l=a.first()instanceof Ju,v=[],h=i.size,y=a.get(s),w=i.first(),d=i.last(),E=d.getLength(),m=d.getKey(),S=l&&(!y.getChildKeys().isEmpty()||!w.getChildKeys().isEmpty());a.forEach(function(T,B){if(B!==s){v.push(T);return}S?v.push(T):v.push($v(T,c,i)),i.slice(S?0:1,h-1).forEach(function(O){return v.push(O)}),v.push(Fv(T,c,i))});var C=Mv.createFromArray(v);return l&&(C=Uv(C,a,y,w)),e.merge({blockMap:C,selectionBefore:n,selectionAfter:n.merge({anchorKey:m,anchorOffset:E,focusKey:m,focusOffset:E,isBackward:!1})})},qv=function(e,n,a){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";n.isCollapsed()||(process.env.NODE_ENV!=="production"?dn(!1,"`insertFragment` should only be called with a collapsed selection state."):dn(!1));var s=e.getBlockMap(),c=Iv(a),l=n.getStartKey(),v=n.getStartOffset(),h=s.get(l);return h instanceof Ju&&(h.getChildKeys().isEmpty()||(process.env.NODE_ENV!=="production"?dn(!1,"`insertFragment` should not be called when a container node is selected."):dn(!1))),c.size===1?Lv(e,n,s,c.first(),l,v,i):zv(e,n,s,c,l,v)},Hv=qv,Vv=le,Wv=Gu,Fo=ve,jv=Vv.Repeat;function Gv(r,e,n,a){e.isCollapsed()||(process.env.NODE_ENV!=="production"?Fo(!1,"`insertText` should only be called with a collapsed range."):Fo(!1));var i=null;if(n!=null&&(i=n.length),i==null||i===0)return r;var s=r.getBlockMap(),c=e.getStartKey(),l=e.getStartOffset(),v=s.get(c),h=v.getText(),y=v.merge({text:h.slice(0,l)+n+h.slice(l,v.getLength()),characterList:Wv(v.getCharacterList(),jv(a,i).toList(),l)}),w=l+i;return r.merge({blockMap:s.set(c,y),selectionAfter:e.merge({anchorOffset:w,focusOffset:w})})}var Jv=Gv,Xv=le,Yv=Xv.Map;function Zv(r,e,n){var a=e.getStartKey(),i=e.getEndKey(),s=r.getBlockMap(),c=s.toSeq().skipUntil(function(l,v){return v===a}).takeUntil(function(l,v){return v===i}).concat(Yv([[i,s.get(i)]])).map(n);return r.merge({blockMap:s.merge(c),selectionBefore:e,selectionAfter:e})}var Xu=Zv,Qv=ot,ep=function(e,n){var a=e instanceof Qv;if(!a)return null;var i=e.getNextSiblingKey();if(i)return i;var s=e.getParentKey();if(!s)return null;for(var c=n.get(s);c&&!c.getNextSiblingKey();){var l=c.getParentKey();c=l?n.get(l):null}return c?c.getNextSiblingKey():null},Yu=ep,tp=ot,ea=Yu,Zu=le;Zu.List;var Po=Zu.Map,Ve=function(e,n,a){if(e){var i=n.get(e);i&&n.set(e,a(i))}},An=function(e,n){var a=[];if(!e)return a;for(var i=n.get(e);i&&i.getParentKey();){var s=i.getParentKey();s&&a.push(s),i=s?n.get(s):null}return a},rp=function(e,n){var a=[];if(!e)return a;for(var i=ea(e,n);i&&n.get(i);){var s=n.get(i);a.push(i),i=s.getParentKey()?ea(s,n):null}return a},vr=function(e,n,a){if(!e)return null;for(var i=a.get(e.getKey()).getNextSiblingKey();i&&!n.get(i);)i=a.get(i).getNextSiblingKey()||null;return i},pr=function(e,n,a){if(!e)return null;for(var i=a.get(e.getKey()).getPrevSiblingKey();i&&!n.get(i);)i=a.get(i).getPrevSiblingKey()||null;return i},np=function(e,n,a,i){return e.withMutations(function(s){if(Ve(n.getKey(),s,function(y){return y.merge({nextSibling:vr(y,s,i),prevSibling:pr(y,s,i)})}),Ve(a.getKey(),s,function(y){return y.merge({nextSibling:vr(y,s,i),prevSibling:pr(y,s,i)})}),An(n.getKey(),i).forEach(function(y){return Ve(y,s,function(w){return w.merge({children:w.getChildKeys().filter(function(d){return s.get(d)}),nextSibling:vr(w,s,i),prevSibling:pr(w,s,i)})})}),Ve(n.getNextSiblingKey(),s,function(y){return y.merge({prevSibling:n.getPrevSiblingKey()})}),Ve(n.getPrevSiblingKey(),s,function(y){return y.merge({nextSibling:vr(y,s,i)})}),Ve(a.getNextSiblingKey(),s,function(y){return y.merge({prevSibling:pr(y,s,i)})}),Ve(a.getPrevSiblingKey(),s,function(y){return y.merge({nextSibling:a.getNextSiblingKey()})}),An(a.getKey(),i).forEach(function(y){Ve(y,s,function(w){return w.merge({children:w.getChildKeys().filter(function(d){return s.get(d)}),nextSibling:vr(w,s,i),prevSibling:pr(w,s,i)})})}),rp(a,i).forEach(function(y){return Ve(y,s,function(w){return w.merge({nextSibling:vr(w,s,i),prevSibling:pr(w,s,i)})})}),e.get(n.getKey())==null&&e.get(a.getKey())!=null&&a.getParentKey()===n.getKey()&&a.getPrevSiblingKey()==null){var c=n.getPrevSiblingKey();Ve(a.getKey(),s,function(y){return y.merge({prevSibling:c})}),Ve(c,s,function(y){return y.merge({nextSibling:a.getKey()})});var l=c?e.get(c):null,v=l?l.getParentKey():null;if(n.getChildKeys().forEach(function(y){Ve(y,s,function(w){return w.merge({parent:v})})}),v!=null){var h=e.get(v);Ve(v,s,function(y){return y.merge({children:h.getChildKeys().concat(n.getChildKeys())})})}Ve(n.getChildKeys().find(function(y){var w=e.get(y);return w.getNextSiblingKey()===null}),s,function(y){return y.merge({nextSibling:n.getNextSiblingKey()})})}})},ip=function(e,n){if(n.isCollapsed())return e;var a=e.getBlockMap(),i=n.getStartKey(),s=n.getStartOffset(),c=n.getEndKey(),l=n.getEndOffset(),v=a.get(i),h=a.get(c),y=v instanceof tp,w=[];if(y){var d=h.getChildKeys(),E=An(c,a);h.getNextSiblingKey()&&(w=w.concat(E)),d.isEmpty()||(w=w.concat(E.concat([c]))),w=w.concat(An(ea(h,a),a))}var m;v===h?m=ap(v.getCharacterList(),s,l):m=v.getCharacterList().slice(0,s).concat(h.getCharacterList().slice(l));var S=v.merge({text:v.getText().slice(0,s)+h.getText().slice(l),characterList:m}),C=y&&s===0&&l===0&&h.getParentKey()===i&&h.getPrevSiblingKey()==null,T=C?Po([[i,null]]):a.toSeq().skipUntil(function(O,k){return k===i}).takeUntil(function(O,k){return k===c}).filter(function(O,k){return w.indexOf(k)===-1}).concat(Po([[c,null]])).map(function(O,k){return k===i?S:null}),B=a.merge(T).filter(function(O){return!!O});return y&&v!==h&&(B=np(B,v,h,a)),e.merge({blockMap:B,selectionBefore:n,selectionAfter:n.merge({anchorKey:i,anchorOffset:s,focusKey:i,focusOffset:s,isBackward:!1})})},ap=function(e,n,a){if(n===0)for(;n<a;)e=e.shift(),n++;else if(a===e.count())for(;a>n;)e=e.pop(),a--;else{var i=e.slice(0,n),s=e.slice(a);e=i.concat(s).toList()}return e},op=ip,sp=ot,up=Ct,Qu=le,hn=ve,cp=Xu,fp=Qu.List,lp=Qu.Map,gn=function(e,n,a){if(e){var i=n.get(e);i&&n.set(e,a(i))}},vp=function(e,n,a){return e.withMutations(function(i){var s=n.getKey(),c=a.getKey();gn(n.getParentKey(),i,function(l){var v=l.getChildKeys(),h=v.indexOf(s)+1,y=v.toArray();return y.splice(h,0,c),l.merge({children:fp(y)})}),gn(n.getNextSiblingKey(),i,function(l){return l.merge({prevSibling:c})}),gn(s,i,function(l){return l.merge({nextSibling:c})}),gn(c,i,function(l){return l.merge({prevSibling:s})})})},pp=function(e,n){n.isCollapsed()||(process.env.NODE_ENV!=="production"?hn(!1,"Selection range must be collapsed."):hn(!1));var a=n.getAnchorKey(),i=e.getBlockMap(),s=i.get(a),c=s.getText();if(!c){var l=s.getType();if(l==="unordered-list-item"||l==="ordered-list-item")return cp(e,n,function(T){return T.merge({type:"unstyled",depth:0})})}var v=n.getAnchorOffset(),h=s.getCharacterList(),y=up(),w=s instanceof sp,d=s.merge({text:c.slice(0,v),characterList:h.slice(0,v)}),E=d.merge({key:y,text:c.slice(v),characterList:h.slice(v),data:lp()}),m=i.toSeq().takeUntil(function(T){return T===s}),S=i.toSeq().skipUntil(function(T){return T===s}).rest(),C=m.concat([[a,d],[y,E]],S).toOrderedMap();return w&&(s.getChildKeys().isEmpty()||(process.env.NODE_ENV!=="production"?hn(!1,"ContentBlockNode must not have children"):hn(!1)),C=vp(C,d,E)),e.merge({blockMap:C,selectionBefore:n,selectionAfter:n.merge({anchorKey:y,anchorOffset:0,focusKey:y,focusOffset:0,isBackward:!1})})},dp=pp,hp=at,Uo=Ql,gp=ov,yp=gv,mp=Rn,_p=le,Ep=Hv,Sp=Jv,zo=ve,Ci=Xu,Ar=ju,Nr=op,wp=dp,Cp=_p.OrderedSet,Kn={replaceText:function(e,n,a,i,s){var c=Ar(e,n),l=Nr(c,n),v=hp.create({style:i||Cp(),entity:s||null});return Sp(l,l.getSelectionAfter(),a,v)},insertText:function(e,n,a,i,s){return n.isCollapsed()||(process.env.NODE_ENV!=="production"?zo(!1,"Target range must be collapsed for `insertText`."):zo(!1)),Kn.replaceText(e,n,a,i,s)},moveText:function(e,n,a){var i=mp(e,n),s=Kn.removeRange(e,n,"backward");return Kn.replaceWithFragment(s,a,i)},replaceWithFragment:function(e,n,a){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA",s=Ar(e,n),c=Nr(s,n);return Ep(c,c.getSelectionAfter(),a,i)},removeRange:function(e,n,a){var i,s,c,l;n.getIsBackward()&&(n=n.merge({anchorKey:n.getFocusKey(),anchorOffset:n.getFocusOffset(),focusKey:n.getAnchorKey(),focusOffset:n.getAnchorOffset(),isBackward:!1})),i=n.getAnchorKey(),s=n.getFocusKey(),c=e.getBlockForKey(i),l=e.getBlockForKey(s);var v=n.getStartOffset(),h=n.getEndOffset(),y=c.getEntityAt(v),w=l.getEntityAt(h-1);if(i===s&&y&&y===w){var d=yp(e.getEntityMap(),c,l,n,a);return Nr(e,d)}var E=Ar(e,n);return Nr(E,n)},splitBlock:function(e,n){var a=Ar(e,n),i=Nr(a,n);return wp(i,i.getSelectionAfter())},applyInlineStyle:function(e,n,a){return Uo.add(e,n,a)},removeInlineStyle:function(e,n,a){return Uo.remove(e,n,a)},setBlockType:function(e,n,a){return Ci(e,n,function(i){return i.merge({type:a,depth:0})})},setBlockData:function(e,n,a){return Ci(e,n,function(i){return i.merge({data:a})})},mergeBlockData:function(e,n,a){return Ci(e,n,function(i){return i.merge({data:i.getData().merge(a)})})},applyEntity:function(e,n,a){var i=Ar(e,n);return gp(i,n,a)}},We=Kn;function Dp(r){return Object.keys(r).map(function(e){return r[e]})}var ec=Dp;function bp(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){Op(r,i,n[i])})}return r}function Op(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function Tp(r,e){if(r==null)return{};var n={},a=Object.keys(r),i,s;for(s=0;s<a.length;s++)i=a[s],!(e.indexOf(i)>=0)&&(n[i]=r[i]);return n}var tc=Gr,kp=ec,ga=le,mr=ga.List,xp=ga.Repeat,rc=ga.Record,nc=function(){return!0},Bp={start:null,end:null},ta=rc(Bp),Kp={start:null,end:null,decoratorKey:null,leaves:null},Di=rc(Kp),Mp={generate:function(e,n,a){var i=n.getLength();if(!i)return mr.of(new Di({start:0,end:0,decoratorKey:null,leaves:mr.of(new ta({start:0,end:0}))}));var s=[],c=a?a.getDecorations(n,e):mr(xp(null,i)),l=n.getCharacterList();return tc(c,ic,nc,function(v,h){s.push(new Di({start:v,end:h,decoratorKey:c.get(v),leaves:Ap(l.slice(v,h).toList(),v)}))}),mr(s)},fromJS:function(e){var n=e.leaves,a=Tp(e,["leaves"]);return new Di(bp({},a,{leaves:n!=null?mr(Array.isArray(n)?n:kp(n)).map(function(i){return ta(i)}):null}))}};function Ap(r,e){var n=[],a=r.map(function(i){return i.getStyle()}).toList();return tc(a,ic,nc,function(i,s){n.push(new ta({start:i+e,end:s+e}))}),mr(n)}function ic(r,e){return r===e}var Np=Mp;function Ip(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var Rp=le,Lp=Rp.Record,$p=Lp({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),Fp=function(r){Ip(e,r);function e(){return r.apply(this,arguments)||this}var n=e.prototype;return n.getType=function(){return this.get("type")},n.getMutability=function(){return this.get("mutability")},n.getData=function(){return this.get("data")},e}($p),ac=Fp;function Pp(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var e=Math.random()*16|0,n=r=="x"?e:e&3|8;return n.toString(16)})}var Up=Pp;function zp(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){qp(r,i,n[i])})}return r}function qp(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var Hp=ac,Vp=le,qo=ve,ra=Up,Wp=Vp.Map,bt=Wp(),Ir=ra();function dr(r,e){console.warn("WARNING: "+r+` will be deprecated soon!
|
|
2
|
-
Please use "`+e+'" instead.')}var Et={getLastCreatedEntityKey:function(){return dr("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),Et.__getLastCreatedEntityKey()},create:function(e,n,a){return dr("DraftEntity.create","contentState.createEntity"),Et.__create(e,n,a)},add:function(e){return dr("DraftEntity.add","contentState.addEntity"),Et.__add(e)},get:function(e){return dr("DraftEntity.get","contentState.getEntity"),Et.__get(e)},__getAll:function(){return bt},__loadWithEntities:function(e){bt=e,Ir=ra()},mergeData:function(e,n){return dr("DraftEntity.mergeData","contentState.mergeEntityData"),Et.__mergeData(e,n)},replaceData:function(e,n){return dr("DraftEntity.replaceData","contentState.replaceEntityData"),Et.__replaceData(e,n)},__getLastCreatedEntityKey:function(){return Ir},__create:function(e,n,a){return Et.__add(new Hp({type:e,mutability:n,data:a||{}}))},__add:function(e){return Ir=ra(),bt=bt.set(Ir,e),Ir},__get:function(e){var n=bt.get(e);return n||(process.env.NODE_ENV!=="production"?qo(!1,"Unknown DraftEntity key: %s.",e):qo(!1)),n},__mergeData:function(e,n){var a=Et.__get(e),i=zp({},a.getData(),n),s=a.set("data",i);return bt=bt.set(e,s),s},__replaceData:function(e,n){var a=Et.__get(e),i=a.set("data",n);return bt=bt.set(e,i),i}},Ln=Et;function jp(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var Gp=le,Jp=Gp.Record,Xp={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},Yp=Jp(Xp),Zp=function(r){jp(e,r);function e(){return r.apply(this,arguments)||this}var n=e.prototype;return n.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},n.getAnchorKey=function(){return this.get("anchorKey")},n.getAnchorOffset=function(){return this.get("anchorOffset")},n.getFocusKey=function(){return this.get("focusKey")},n.getFocusOffset=function(){return this.get("focusOffset")},n.getIsBackward=function(){return this.get("isBackward")},n.getHasFocus=function(){return this.get("hasFocus")},n.hasEdgeWithin=function(i,s,c){var l=this.getAnchorKey(),v=this.getFocusKey();if(l===v&&l===i){var h=this.getStartOffset(),y=this.getEndOffset();return s<=h&&h<=c||s<=y&&y<=c}if(i!==l&&i!==v)return!1;var w=i===l?this.getAnchorOffset():this.getFocusOffset();return s<=w&&c>=w},n.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},n.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},n.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},n.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},n.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},e.createEmpty=function(i){return new e({anchorKey:i,anchorOffset:0,focusKey:i,focusOffset:0,isBackward:!1,hasFocus:!1})},e}(Yp),$n=Zp,Ht=function(r){return typeof window<"u"&&window.__DRAFT_GKX?!!window.__DRAFT_GKX[r]:!1},Qp=new RegExp("\r","g");function ed(r){return r.replace(Qp,"")}var oc=ed;function Ho(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){td(r,i,n[i])})}return r}function td(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function rd(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var nd=jr,Vo=at,id=Cr,ad=ot,mt=Ln,yn=$n,od=Ct,sd=ec,ud=Ht,Yr=le,cd=oc,Wo=Yr.List,fd=Yr.Record,ld=Yr.Repeat,vd=Yr.Map,pd=Yr.OrderedMap,dd={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},hd=fd(dd),jo=ud("draft_tree_data_support")?ad:id,gd=function(r){rd(e,r);function e(){return r.apply(this,arguments)||this}var n=e.prototype;return n.getEntityMap=function(){return mt},n.getBlockMap=function(){return this.get("blockMap")},n.getSelectionBefore=function(){return this.get("selectionBefore")},n.getSelectionAfter=function(){return this.get("selectionAfter")},n.getBlockForKey=function(i){var s=this.getBlockMap().get(i);return s},n.getKeyBefore=function(i){return this.getBlockMap().reverse().keySeq().skipUntil(function(s){return s===i}).skip(1).first()},n.getKeyAfter=function(i){return this.getBlockMap().keySeq().skipUntil(function(s){return s===i}).skip(1).first()},n.getBlockAfter=function(i){return this.getBlockMap().skipUntil(function(s,c){return c===i}).skip(1).first()},n.getBlockBefore=function(i){return this.getBlockMap().reverse().skipUntil(function(s,c){return c===i}).skip(1).first()},n.getBlocksAsArray=function(){return this.getBlockMap().toArray()},n.getFirstBlock=function(){return this.getBlockMap().first()},n.getLastBlock=function(){return this.getBlockMap().last()},n.getPlainText=function(i){return this.getBlockMap().map(function(s){return s?s.getText():""}).join(i||`
|
|
3
|
-
`)},n.getLastCreatedEntityKey=function(){return mt.__getLastCreatedEntityKey()},n.hasText=function(){var i=this.getBlockMap();return i.size>1||escape(i.first().getText()).replace(/%u200B/g,"").length>0},n.createEntity=function(i,s,c){return mt.__create(i,s,c),this},n.mergeEntityData=function(i,s){return mt.__mergeData(i,s),this},n.replaceEntityData=function(i,s){return mt.__replaceData(i,s),this},n.addEntity=function(i){return mt.__add(i),this},n.getEntity=function(i){return mt.__get(i)},n.getAllEntities=function(){return mt.__getAll()},n.loadWithEntities=function(i){return mt.__loadWithEntities(i)},e.createFromBlockArray=function(i,s){var c=Array.isArray(i)?i:i.contentBlocks,l=nd.createFromArray(c),v=l.isEmpty()?new yn:yn.createEmpty(l.first().getKey());return new e({blockMap:l,entityMap:s||mt,selectionBefore:v,selectionAfter:v})},e.createFromText=function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:/\r\n?|\n/g,c=i.split(s),l=c.map(function(v){return v=cd(v),new jo({key:od(),text:v,type:"unstyled",characterList:Wo(ld(Vo.EMPTY,v.length))})});return e.createFromBlockArray(l)},e.fromJS=function(i){return new e(Ho({},i,{blockMap:pd(i.blockMap).map(e.createContentBlockFromJS),selectionBefore:new yn(i.selectionBefore),selectionAfter:new yn(i.selectionAfter)}))},e.createContentBlockFromJS=function(i){var s=i.characterList;return new jo(Ho({},i,{data:vd(i.data),characterList:s!=null?Wo((Array.isArray(s)?s:sd(s)).map(function(c){return Vo.fromJS(c)})):void 0}))},e}(hd),ya=gd,Pt=ve,yd="NEUTRAL",Fn="LTR",sc="RTL",Mn=null;function Nn(r){return r===Fn||r===sc}function uc(r){return Nn(r)||(process.env.NODE_ENV!=="production"?Pt(!1,"`dir` must be a strong direction to be converted to HTML Direction"):Pt(!1)),r===Fn?"ltr":"rtl"}function md(r,e){return Nn(r)||(process.env.NODE_ENV!=="production"?Pt(!1,"`dir` must be a strong direction to be converted to HTML Direction"):Pt(!1)),Nn(e)||(process.env.NODE_ENV!=="production"?Pt(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):Pt(!1)),r===e?null:uc(r)}function cc(r){Mn=r}function _d(){cc(Fn)}function Ed(){return Mn||this.initGlobalDir(),Mn||(process.env.NODE_ENV!=="production"?Pt(!1,"Global direction not set."):Pt(!1)),Mn}var Sd={NEUTRAL:yd,LTR:Fn,RTL:sc,isStrong:Nn,getHTMLDir:uc,getHTMLDirIfDifferent:md,setGlobalDir:cc,initGlobalDir:_d,getGlobalDir:Ed},Pn=Sd,xt=Pn,Go=ve,qr={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",R:"־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",AL:"؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-"},wd=new RegExp("["+qr.L+qr.R+qr.AL+"]"),Cd=new RegExp("["+qr.R+qr.AL+"]");function fc(r){var e=wd.exec(r);return e==null?null:e[0]}function lc(r){var e=fc(r);return e==null?xt.NEUTRAL:Cd.exec(e)?xt.RTL:xt.LTR}function vc(r,e){if(e=e||xt.NEUTRAL,!r.length)return e;var n=lc(r);return n===xt.NEUTRAL?e:n}function ma(r,e){return e||(e=xt.getGlobalDir()),xt.isStrong(e)||(process.env.NODE_ENV!=="production"?Go(!1,"Fallback direction must be a strong direction"):Go(!1)),vc(r,e)}function Dd(r,e){return ma(r,e)===xt.LTR}function bd(r,e){return ma(r,e)===xt.RTL}var Od={firstStrongChar:fc,firstStrongCharDir:lc,resolveBlockDir:vc,getDirection:ma,isDirectionLTR:Dd,isDirectionRTL:bd},_a=Od;function Jo(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var Td=_a,Xo=Pn,Yo=ve,kd=function(){function r(n){Jo(this,"_defaultDir",void 0),Jo(this,"_lastDir",void 0),n?Xo.isStrong(n)||(process.env.NODE_ENV!=="production"?Yo(!1,"Default direction must be a strong direction (LTR or RTL)"):Yo(!1)):n=Xo.getGlobalDir(),this._defaultDir=n,this.reset()}var e=r.prototype;return e.reset=function(){this._lastDir=this._defaultDir},e.getDirection=function(a){return this._lastDir=Td.getDirection(a,this._lastDir),this._lastDir},r}(),xd=kd,Bd=function(e){if(e!=null)return e;throw new Error("Got unexpected null or undefined")},je=Bd,Kd=xd,pc=le,Md=je,Ad=pc.OrderedMap,mn,Nd={getDirectionMap:function(e,n){mn?mn.reset():mn=new Kd;var a=e.getBlockMap(),i=a.valueSeq().map(function(c){return Md(mn).getDirection(c.getText())}),s=Ad(a.keySeq().zip(i));return n!=null&&pc.is(n,s)?n:s}},Id=Nd;function Zo(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){dc(r,i,n[i])})}return r}function dc(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var Un=Np,Rr=ya,_n=Id,bi=$n,Zr=le,hc=Zr.OrderedSet,Rd=Zr.Record,Jt=Zr.Stack,Qo=Zr.OrderedMap,Ld=Zr.List,$d={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:Jt(),selection:null,treeMap:null,undoStack:Jt()},es=Rd($d),gc=function(){e.createEmpty=function(a){return this.createWithText("",a)},e.createWithText=function(a,i){return e.createWithContent(Rr.createFromText(a),i)},e.createWithContent=function(a,i){if(a.getBlockMap().count()===0)return e.createEmpty(i);var s=a.getBlockMap().first().getKey();return e.create({currentContent:a,undoStack:Jt(),redoStack:Jt(),decorator:i||null,selection:bi.createEmpty(s)})},e.create=function(a){var i=a.currentContent,s=a.decorator,c=Zo({},a,{treeMap:rs(i,s),directionMap:_n.getDirectionMap(i)});return new e(new es(c))},e.fromJS=function(a){return new e(new es(Zo({},a,{directionMap:a.directionMap!=null?Qo(a.directionMap):a.directionMap,inlineStyleOverride:a.inlineStyleOverride!=null?hc(a.inlineStyleOverride):a.inlineStyleOverride,nativelyRenderedContent:a.nativelyRenderedContent!=null?Rr.fromJS(a.nativelyRenderedContent):a.nativelyRenderedContent,redoStack:a.redoStack!=null?Jt(a.redoStack.map(function(i){return Rr.fromJS(i)})):a.redoStack,selection:a.selection!=null?new bi(a.selection):a.selection,treeMap:a.treeMap!=null?Qo(a.treeMap).map(function(i){return Ld(i).map(function(s){return Un.fromJS(s)})}):a.treeMap,undoStack:a.undoStack!=null?Jt(a.undoStack.map(function(i){return Rr.fromJS(i)})):a.undoStack,currentContent:Rr.fromJS(a.currentContent)})))},e.set=function(a,i){var s=a.getImmutable().withMutations(function(c){var l=c.get("decorator"),v=l;i.decorator===null?v=null:i.decorator&&(v=i.decorator);var h=i.currentContent||a.getCurrentContent();if(v!==l){var y=c.get("treeMap"),w;v&&l?w=Pd(h,h.getBlockMap(),y,v,l):w=rs(h,v),c.merge({decorator:v,treeMap:w,nativelyRenderedContent:null});return}var d=a.getCurrentContent();h!==d&&c.set("treeMap",Fd(a,h.getBlockMap(),h.getEntityMap(),v)),c.merge(i)});return new e(s)};var r=e.prototype;r.toJS=function(){return this.getImmutable().toJS()},r.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},r.getCurrentContent=function(){return this.getImmutable().get("currentContent")},r.getUndoStack=function(){return this.getImmutable().get("undoStack")},r.getRedoStack=function(){return this.getImmutable().get("redoStack")},r.getSelection=function(){return this.getImmutable().get("selection")},r.getDecorator=function(){return this.getImmutable().get("decorator")},r.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},r.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},r.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},r.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},r.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(a,i){return e.set(a,{inlineStyleOverride:i})},r.getCurrentInlineStyle=function(){var a=this.getInlineStyleOverride();if(a!=null)return a;var i=this.getCurrentContent(),s=this.getSelection();return s.isCollapsed()?zd(i,s):qd(i,s)},r.getBlockTree=function(a){return this.getImmutable().getIn(["treeMap",a])},r.isSelectionAtStartOfContent=function(){var a=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(a,0,0)},r.isSelectionAtEndOfContent=function(){var a=this.getCurrentContent(),i=a.getBlockMap(),s=i.last(),c=s.getLength();return this.getSelection().hasEdgeWithin(s.getKey(),c,c)},r.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(a,i){return ts(a,i,!1)},e.forceSelection=function(a,i){return i.getHasFocus()||(i=i.set("hasFocus",!0)),ts(a,i,!0)},e.moveSelectionToEnd=function(a){var i=a.getCurrentContent(),s=i.getLastBlock(),c=s.getKey(),l=s.getLength();return e.acceptSelection(a,new bi({anchorKey:c,anchorOffset:l,focusKey:c,focusOffset:l,isBackward:!1}))},e.moveFocusToEnd=function(a){var i=e.moveSelectionToEnd(a);return e.forceSelection(i,i.getSelection())},e.push=function(a,i,s){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;if(a.getCurrentContent()===i)return a;var l=_n.getDirectionMap(i,a.getDirectionMap());if(!a.getAllowUndo())return e.set(a,{currentContent:i,directionMap:l,lastChangeType:s,selection:i.getSelectionAfter(),forceSelection:c,inlineStyleOverride:null});var v=a.getSelection(),h=a.getCurrentContent(),y=a.getUndoStack(),w=i;v!==h.getSelectionAfter()||Ud(a,s)?(y=y.push(h),w=w.set("selectionBefore",v)):(s==="insert-characters"||s==="backspace-character"||s==="delete-character")&&(w=w.set("selectionBefore",h.getSelectionBefore()));var d=a.getInlineStyleOverride(),E=["adjust-depth","change-block-type","split-block"];E.indexOf(s)===-1&&(d=null);var m={currentContent:w,directionMap:l,undoStack:y,redoStack:Jt(),lastChangeType:s,selection:i.getSelectionAfter(),forceSelection:c,inlineStyleOverride:d};return e.set(a,m)},e.undo=function(a){if(!a.getAllowUndo())return a;var i=a.getUndoStack(),s=i.peek();if(!s)return a;var c=a.getCurrentContent(),l=_n.getDirectionMap(s,a.getDirectionMap());return e.set(a,{currentContent:s,directionMap:l,undoStack:i.shift(),redoStack:a.getRedoStack().push(c),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:c.getSelectionBefore()})},e.redo=function(a){if(!a.getAllowUndo())return a;var i=a.getRedoStack(),s=i.peek();if(!s)return a;var c=a.getCurrentContent(),l=_n.getDirectionMap(s,a.getDirectionMap());return e.set(a,{currentContent:s,directionMap:l,undoStack:a.getUndoStack().push(c),redoStack:i.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:s.getSelectionAfter()})};function e(n){dc(this,"_immutable",void 0),this._immutable=n}return r.getImmutable=function(){return this._immutable},e}();function ts(r,e,n){return gc.set(r,{selection:e,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function rs(r,e){return r.getBlockMap().map(function(n){return Un.generate(r,n,e)}).toOrderedMap()}function Fd(r,e,n,a){var i=r.getCurrentContent().set("entityMap",n),s=i.getBlockMap(),c=r.getImmutable().get("treeMap");return c.merge(e.toSeq().filter(function(l,v){return l!==s.get(v)}).map(function(l){return Un.generate(i,l,a)}))}function Pd(r,e,n,a,i){return n.merge(e.toSeq().filter(function(s){return a.getDecorations(s,r)!==i.getDecorations(s,r)}).map(function(s){return Un.generate(r,s,a)}))}function Ud(r,e){var n=r.getLastChangeType();return e!==n||e!=="insert-characters"&&e!=="backspace-character"&&e!=="delete-character"}function zd(r,e){var n=e.getStartKey(),a=e.getStartOffset(),i=r.getBlockForKey(n);return a>0?i.getInlineStyleAt(a-1):i.getLength()?i.getInlineStyleAt(0):yc(r,n)}function qd(r,e){var n=e.getStartKey(),a=e.getStartOffset(),i=r.getBlockForKey(n);return a<i.getLength()?i.getInlineStyleAt(a):a>0?i.getInlineStyleAt(a-1):yc(r,n)}function yc(r,e){var n=r.getBlockMap().reverse().skipUntil(function(a,i){return i===e}).skip(1).skipUntil(function(a,i){return a.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):hc()}var ye=gc,Hd=ot,Vd=Yu,mc=le,Nt=ve,Wd=mc.OrderedMap,jd=mc.List,Wt=function(e,n,a){if(e){var i=n.get(e);i&&n.set(e,a(i))}},Gd=function(e,n,a,i,s){if(!s)return e;var c=i==="after",l=n.getKey(),v=a.getKey(),h=n.getParentKey(),y=n.getNextSiblingKey(),w=n.getPrevSiblingKey(),d=a.getParentKey(),E=c?a.getNextSiblingKey():v,m=c?v:a.getPrevSiblingKey();return e.withMutations(function(S){Wt(h,S,function(C){var T=C.getChildKeys();return C.merge({children:T.delete(T.indexOf(l))})}),Wt(w,S,function(C){return C.merge({nextSibling:y})}),Wt(y,S,function(C){return C.merge({prevSibling:w})}),Wt(E,S,function(C){return C.merge({prevSibling:l})}),Wt(m,S,function(C){return C.merge({nextSibling:l})}),Wt(d,S,function(C){var T=C.getChildKeys(),B=T.indexOf(v),O=c?B+1:B!==0?B-1:0,k=T.toArray();return k.splice(O,0,l),C.merge({children:jd(k)})}),Wt(l,S,function(C){return C.merge({nextSibling:E,prevSibling:m,parent:d})})})},Jd=function(e,n,a,i){i==="replace"&&(process.env.NODE_ENV!=="production"?Nt(!1,"Replacing blocks is not supported."):Nt(!1));var s=a.getKey(),c=n.getKey();c===s&&(process.env.NODE_ENV!=="production"?Nt(!1,"Block cannot be moved next to itself."):Nt(!1));var l=e.getBlockMap(),v=n instanceof Hd,h=[n],y=l.delete(c);v&&(h=[],y=l.withMutations(function(T){var B=n.getNextSiblingKey(),O=Vd(n,T);T.toSeq().skipUntil(function(k){return k.getKey()===c}).takeWhile(function(k){var M=k.getKey(),X=M===c,j=B&&M!==B,ue=!B&&k.getParentKey()&&(!O||M!==O);return!!(X||j||ue)}).forEach(function(k){h.push(k),T.delete(k.getKey())})}));var w=y.toSeq().takeUntil(function(T){return T===a}),d=y.toSeq().skipUntil(function(T){return T===a}).skip(1),E=h.map(function(T){return[T.getKey(),T]}),m=Wd();if(i==="before"){var S=e.getBlockBefore(s);!S||S.getKey()!==n.getKey()||(process.env.NODE_ENV!=="production"?Nt(!1,"Block cannot be moved next to itself."):Nt(!1)),m=w.concat([].concat(E,[[s,a]]),d).toOrderedMap()}else if(i==="after"){var C=e.getBlockAfter(s);!C||C.getKey()!==c||(process.env.NODE_ENV!=="production"?Nt(!1,"Block cannot be moved next to itself."):Nt(!1)),m=w.concat([[s,a]].concat(E),d).toOrderedMap()}return e.merge({blockMap:Gd(m,n,a,i,v),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:c,focusKey:c})})},Xd=Jd;function ns(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){Yd(r,i,n[i])})}return r}function Yd(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var Zd=jr,Qd=at,eh=Cr,th=ot,hr=We,is=ye,as=Ct,rh=Ht,_c=le,En=Xd,Ec=rh("draft_tree_data_support"),os=Ec?th:eh,nh=_c.List,ih=_c.Repeat,ah={insertAtomicBlock:function(e,n,a){var i=e.getCurrentContent(),s=e.getSelection(),c=hr.removeRange(i,s,"backward"),l=c.getSelectionAfter(),v=hr.splitBlock(c,l),h=v.getSelectionAfter(),y=hr.setBlockType(v,h,"atomic"),w=Qd.create({entity:n}),d={key:as(),type:"atomic",text:a,characterList:nh(ih(w,a.length))},E={key:as(),type:"unstyled"};Ec&&(d=ns({},d,{nextSibling:E.key}),E=ns({},E,{prevSibling:d.key}));var m=[new os(d),new os(E)],S=Zd.createFromArray(m),C=hr.replaceWithFragment(y,h,S),T=C.merge({selectionBefore:s,selectionAfter:C.getSelectionAfter().set("hasFocus",!0)});return is.push(e,T,"insert-fragment")},moveAtomicBlock:function(e,n,a,i){var s=e.getCurrentContent(),c=e.getSelection(),l;if(i==="before"||i==="after"){var v=s.getBlockForKey(i==="before"?a.getStartKey():a.getEndKey());l=En(s,n,v,i)}else{var h=hr.removeRange(s,a,"backward"),y=h.getSelectionAfter(),w=h.getBlockForKey(y.getFocusKey());if(y.getStartOffset()===0)l=En(h,n,w,"before");else if(y.getEndOffset()===w.getLength())l=En(h,n,w,"after");else{var d=hr.splitBlock(h,y),E=d.getSelectionAfter(),m=d.getBlockForKey(E.getFocusKey());l=En(d,n,m,"before")}}var S=l.merge({selectionBefore:c,selectionAfter:l.getSelectionAfter().set("hasFocus",!0)});return is.push(e,S,"move-block")}},oh=ah;function sh(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var uh=le,ch=uh.List,Oi=".",fh=function(){function r(n){sh(this,"_decorators",void 0),this._decorators=n.slice()}var e=r.prototype;return e.getDecorations=function(a,i){var s=Array(a.getText().length).fill(null);return this._decorators.forEach(function(c,l){var v=0,h=c.strategy,y=function(d,E){lh(s,d,E)&&(vh(s,d,E,l+Oi+v),v++)};h(a,y,i)}),ch(s)},e.getComponentForKey=function(a){var i=parseInt(a.split(Oi)[0],10);return this._decorators[i].component},e.getPropsForKey=function(a){var i=parseInt(a.split(Oi)[0],10);return this._decorators[i].props},r}();function lh(r,e,n){for(var a=e;a<n;a++)if(r[a]!=null)return!1;return!0}function vh(r,e,n,a){for(var i=e;i<n;i++)r[i]=a}var ph=fh;function dh(r){return typeof r=="object"?Object.keys(r).filter(function(e){return r[e]}).map(ss).join(" "):Array.prototype.map.call(arguments,ss).join(" ")}function ss(r){return r.replace(/\//g,"-")}var Yt=dh,Ea=ct,Sa=Yt,hh=le,gh=hh.Map,yh=Ea.createElement("ul",{className:Sa("public/DraftStyleDefault/ul")}),mh=Ea.createElement("ol",{className:Sa("public/DraftStyleDefault/ol")}),_h=Ea.createElement("pre",{className:Sa("public/DraftStyleDefault/pre")}),Eh=gh({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:yh},"ordered-list-item":{element:"li",wrapper:mh},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:_h},unstyled:{element:"div",aliasedElements:["p"]}}),wa=Eh,Sc={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}};/*
|
|
4
|
-
object-assign
|
|
5
|
-
(c) Sindre Sorhus
|
|
6
|
-
@license MIT
|
|
7
|
-
*/var us=Object.getOwnPropertySymbols,Sh=Object.prototype.hasOwnProperty,wh=Object.prototype.propertyIsEnumerable;function Ch(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function Dh(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var a=Object.getOwnPropertyNames(e).map(function(s){return e[s]});if(a.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(s){i[s]=s}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Zt=Dh()?Object.assign:function(r,e){for(var n,a=Ch(r),i,s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var c in n)Sh.call(n,c)&&(a[c]=n[c]);if(us){i=us(n);for(var l=0;l<i.length;l++)wh.call(n,i[l])&&(a[i[l]]=n[i[l]])}}return a},na={exports:{}};(function(r,e){(function(n,a){var i="0.7.40",s="",c="?",l="function",v="undefined",h="object",y="string",w="major",d="model",E="name",m="type",S="vendor",C="version",T="architecture",B="console",O="mobile",k="tablet",M="smarttv",X="wearable",j="embedded",ue=500,I="Amazon",R="Apple",$="ASUS",F="BlackBerry",N="Browser",P="Chrome",V="Edge",G="Firefox",W="Google",re="Huawei",ne="LG",Y="Microsoft",ee="Motorola",he="Opera",Be="Samsung",Fe="Sharp",Z="Sony",ae="Xiaomi",me="Zebra",ft="Facebook",Ue="Chromium OS",ze="Mac OS",st=" Browser",Je=function(Q,se){var H={};for(var de in Q)se[de]&&se[de].length%2===0?H[de]=se[de].concat(Q[de]):H[de]=Q[de];return H},pe=function(Q){for(var se={},H=0;H<Q.length;H++)se[Q[H].toUpperCase()]=Q[H];return se},be=function(Q,se){return typeof Q===y?oe(se).indexOf(oe(Q))!==-1:!1},oe=function(Q){return Q.toLowerCase()},Ne=function(Q){return typeof Q===y?Q.replace(/[^\d\.]/g,s).split(".")[0]:a},lt=function(Q,se){if(typeof Q===y)return Q=Q.replace(/^\s\s*/,s),typeof se===v?Q:Q.substring(0,ue)},_e=function(Q,se){for(var H=0,de,tt,He,ce,q,Xe;H<se.length&&!q;){var Ee=se[H],rr=se[H+1];for(de=tt=0;de<Ee.length&&!q&&Ee[de];)if(q=Ee[de++].exec(Q),q)for(He=0;He<rr.length;He++)Xe=q[++tt],ce=rr[He],typeof ce===h&&ce.length>0?ce.length===2?typeof ce[1]==l?this[ce[0]]=ce[1].call(this,Xe):this[ce[0]]=ce[1]:ce.length===3?typeof ce[1]===l&&!(ce[1].exec&&ce[1].test)?this[ce[0]]=Xe?ce[1].call(this,Xe,ce[2]):a:this[ce[0]]=Xe?Xe.replace(ce[1],ce[2]):a:ce.length===4&&(this[ce[0]]=Xe?ce[3].call(this,Xe.replace(ce[1],ce[2])):a):this[ce]=Xe||a;H+=2}},ke=function(Q,se){for(var H in se)if(typeof se[H]===h&&se[H].length>0){for(var de=0;de<se[H].length;de++)if(be(se[H][de],Q))return H===c?a:H}else if(be(se[H],Q))return H===c?a:H;return se.hasOwnProperty("*")?se["*"]:Q},qe={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},De={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Ke={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[C,[E,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[C,[E,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[E,C],[/opios[\/ ]+([\w\.]+)/i],[C,[E,he+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[C,[E,he+" GX"]],[/\bopr\/([\w\.]+)/i],[C,[E,he]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[C,[E,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[C,[E,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[E,C],[/quark(?:pc)?\/([-\w\.]+)/i],[C,[E,"Quark"]],[/\bddg\/([\w\.]+)/i],[C,[E,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[C,[E,"UC"+N]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[C,[E,"WeChat"]],[/konqueror\/([\w\.]+)/i],[C,[E,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[C,[E,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[C,[E,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[C,[E,"Smart Lenovo "+N]],[/(avast|avg)\/([\w\.]+)/i],[[E,/(.+)/,"$1 Secure "+N],C],[/\bfocus\/([\w\.]+)/i],[C,[E,G+" Focus"]],[/\bopt\/([\w\.]+)/i],[C,[E,he+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[C,[E,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[C,[E,"Dolphin"]],[/coast\/([\w\.]+)/i],[C,[E,he+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[C,[E,"MIUI"+st]],[/fxios\/([\w\.-]+)/i],[C,[E,G]],[/\bqihoobrowser\/?([\w\.]*)/i],[C,[E,"360"]],[/\b(qq)\/([\w\.]+)/i],[[E,/(.+)/,"$1Browser"],C],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[E,/(.+)/,"$1"+st],C],[/samsungbrowser\/([\w\.]+)/i],[C,[E,Be+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[C,[E,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[E,"Sogou Mobile"],C],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[E,C],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[E],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[C,E],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[E,ft],C],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[E,C],[/\bgsa\/([\w\.]+) .*safari\//i],[C,[E,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[C,[E,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[C,[E,P+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[E,P+" WebView"],C],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[C,[E,"Android "+N]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[E,C],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[C,[E,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[C,E],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[E,[C,ke,qe]],[/(webkit|khtml)\/([\w\.]+)/i],[E,C],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[E,"Netscape"],C],[/(wolvic|librewolf)\/([\w\.]+)/i],[E,C],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[C,[E,G+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[E,[C,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[E,[C,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[T,"amd64"]],[/(ia32(?=;))/i],[[T,oe]],[/((?:i[346]|x)86)[;\)]/i],[[T,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[T,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[T,"armhf"]],[/windows (ce|mobile); ppc;/i],[[T,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[T,/ower/,s,oe]],[/(sun4\w)[;\)]/i],[[T,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[T,oe]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[S,Be],[m,k]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[d,[S,Be],[m,O]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[S,R],[m,O]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[S,R],[m,k]],[/(macintosh);/i],[d,[S,R]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[S,Fe],[m,O]],[/(?:honor)([-\w ]+)[;\)]/i],[d,[S,"Honor"],[m,O]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[S,re],[m,k]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[S,re],[m,O]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[d,/_/g," "],[S,ae],[m,O]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[S,ae],[m,k]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[S,"OPPO"],[m,O]],[/\b(opd2\d{3}a?) bui/i],[d,[S,"OPPO"],[m,k]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[S,"Vivo"],[m,O]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[S,"Realme"],[m,O]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[S,ee],[m,O]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[S,ee],[m,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[S,ne],[m,k]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[S,ne],[m,O]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[S,"Lenovo"],[m,k]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[S,"Nokia"],[m,O]],[/(pixel c)\b/i],[d,[S,W],[m,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[S,W],[m,O]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[S,Z],[m,O]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[S,Z],[m,k]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[S,"OnePlus"],[m,O]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[S,I],[m,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[S,I],[m,O]],[/(playbook);[-\w\),; ]+(rim)/i],[d,S,[m,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[S,F],[m,O]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[S,$],[m,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[S,$],[m,O]],[/(nexus 9)/i],[d,[S,"HTC"],[m,k]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[S,[d,/_/g," "],[m,O]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[d,[S,"TCL"],[m,k]],[/(itel) ((\w+))/i],[[S,oe],d,[m,ke,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[S,"Acer"],[m,k]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[S,"Meizu"],[m,O]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[S,"Ulefone"],[m,O]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[d,[S,"Energizer"],[m,O]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[d,[S,"Cat"],[m,O]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[d,[S,"Smartfren"],[m,O]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[S,"Nothing"],[m,O]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[S,d,[m,O]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[S,d,[m,k]],[/(surface duo)/i],[d,[S,Y],[m,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[S,"Fairphone"],[m,O]],[/(u304aa)/i],[d,[S,"AT&T"],[m,O]],[/\bsie-(\w*)/i],[d,[S,"Siemens"],[m,O]],[/\b(rct\w+) b/i],[d,[S,"RCA"],[m,k]],[/\b(venue[\d ]{2,7}) b/i],[d,[S,"Dell"],[m,k]],[/\b(q(?:mv|ta)\w+) b/i],[d,[S,"Verizon"],[m,k]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[S,"Barnes & Noble"],[m,k]],[/\b(tm\d{3}\w+) b/i],[d,[S,"NuVision"],[m,k]],[/\b(k88) b/i],[d,[S,"ZTE"],[m,k]],[/\b(nx\d{3}j) b/i],[d,[S,"ZTE"],[m,O]],[/\b(gen\d{3}) b.+49h/i],[d,[S,"Swiss"],[m,O]],[/\b(zur\d{3}) b/i],[d,[S,"Swiss"],[m,k]],[/\b((zeki)?tb.*\b) b/i],[d,[S,"Zeki"],[m,k]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[S,"Dragon Touch"],d,[m,k]],[/\b(ns-?\w{0,9}) b/i],[d,[S,"Insignia"],[m,k]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[S,"NextBook"],[m,k]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[S,"Voice"],d,[m,O]],[/\b(lvtel\-)?(v1[12]) b/i],[[S,"LvTel"],d,[m,O]],[/\b(ph-1) /i],[d,[S,"Essential"],[m,O]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[S,"Envizen"],[m,k]],[/\b(trio[-\w\. ]+) b/i],[d,[S,"MachSpeed"],[m,k]],[/\btu_(1491) b/i],[d,[S,"Rotor"],[m,k]],[/(shield[\w ]+) b/i],[d,[S,"Nvidia"],[m,k]],[/(sprint) (\w+)/i],[S,d,[m,O]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[S,Y],[m,O]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[S,me],[m,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[S,me],[m,O]],[/smart-tv.+(samsung)/i],[S,[m,M]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[S,Be],[m,M]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[S,ne],[m,M]],[/(apple) ?tv/i],[S,[d,R+" TV"],[m,M]],[/crkey/i],[[d,P+"cast"],[S,W],[m,M]],[/droid.+aft(\w+)( bui|\))/i],[d,[S,I],[m,M]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[S,Fe],[m,M]],[/(bravia[\w ]+)( bui|\))/i],[d,[S,Z],[m,M]],[/(mitv-\w{5}) bui/i],[d,[S,ae],[m,M]],[/Hbbtv.*(technisat) (.*);/i],[S,d,[m,M]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[S,lt],[d,lt],[m,M]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,M]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[S,d,[m,B]],[/droid.+; (shield) bui/i],[d,[S,"Nvidia"],[m,B]],[/(playstation [345portablevi]+)/i],[d,[S,Z],[m,B]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[S,Y],[m,B]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[d,[S,Be],[m,X]],[/((pebble))app/i],[S,d,[m,X]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[S,R],[m,X]],[/droid.+; (glass) \d/i],[d,[S,W],[m,X]],[/droid.+; (wt63?0{2,3})\)/i],[d,[S,me],[m,X]],[/droid.+; (glass) \d/i],[d,[S,W],[m,X]],[/(pico) (4|neo3(?: link|pro)?)/i],[S,d,[m,X]],[/; (quest( \d| pro)?)/i],[d,[S,ft],[m,X]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[S,[m,j]],[/(aeobc)\b/i],[d,[S,I],[m,j]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[m,O]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[m,k]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,k]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,O]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[S,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[C,[E,V+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[E,C],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[C,[E,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[E,C],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[C,E]],os:[[/microsoft (windows) (vista|xp)/i],[E,C],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[E,[C,ke,De]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[C,ke,De],[E,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[C,/_/g,"."],[E,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[E,ze],[C,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[C,E],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[E,C],[/\(bb(10);/i],[C,[E,F]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[C,[E,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[C,[E,G+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[C,[E,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[C,[E,"watchOS"]],[/crkey\/([\d\.]+)/i],[C,[E,P+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[E,Ue],C],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[E,C],[/(sunos) ?([\w\.\d]*)/i],[[E,"Solaris"],C],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[E,C]]},xe=function(Q,se){if(typeof Q===h&&(se=Q,Q=a),!(this instanceof xe))return new xe(Q,se).getResult();var H=typeof n!==v&&n.navigator?n.navigator:a,de=Q||(H&&H.userAgent?H.userAgent:s),tt=H&&H.userAgentData?H.userAgentData:a,He=se?Je(Ke,se):Ke,ce=H&&H.userAgent==de;return this.getBrowser=function(){var q={};return q[E]=a,q[C]=a,_e.call(q,de,He.browser),q[w]=Ne(q[C]),ce&&H&&H.brave&&typeof H.brave.isBrave==l&&(q[E]="Brave"),q},this.getCPU=function(){var q={};return q[T]=a,_e.call(q,de,He.cpu),q},this.getDevice=function(){var q={};return q[S]=a,q[d]=a,q[m]=a,_e.call(q,de,He.device),ce&&!q[m]&&tt&&tt.mobile&&(q[m]=O),ce&&q[d]=="Macintosh"&&H&&typeof H.standalone!==v&&H.maxTouchPoints&&H.maxTouchPoints>2&&(q[d]="iPad",q[m]=k),q},this.getEngine=function(){var q={};return q[E]=a,q[C]=a,_e.call(q,de,He.engine),q},this.getOS=function(){var q={};return q[E]=a,q[C]=a,_e.call(q,de,He.os),ce&&!q[E]&&tt&&tt.platform&&tt.platform!="Unknown"&&(q[E]=tt.platform.replace(/chrome os/i,Ue).replace(/macos/i,ze)),q},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return de},this.setUA=function(q){return de=typeof q===y&&q.length>ue?lt(q,ue):q,this},this.setUA(de),this};xe.VERSION=i,xe.BROWSER=pe([E,C,w]),xe.CPU=pe([T]),xe.DEVICE=pe([d,S,m,B,O,M,k,X,j]),xe.ENGINE=xe.OS=pe([E,C]),r.exports&&(e=r.exports=xe),e.UAParser=xe;var Ie=typeof n!==v&&(n.jQuery||n.Zepto);if(Ie&&!Ie.ua){var vt=new xe;Ie.ua=vt.getResult(),Ie.ua.get=function(){return vt.getUA()},Ie.ua.set=function(Q){vt.setUA(Q);var se=vt.getResult();for(var H in se)Ie.ua[H]=se[H]}}})(typeof window=="object"?window:va.commonjsGlobal)})(na,na.exports);var bh=na.exports,Oh=bh,nt="Unknown",Th={"Mac OS":"Mac OS X"};function kh(r){return Th[r]||r}function xh(r){if(!r)return{major:"",minor:""};var e=r.split(".");return{major:e[0],minor:e[1]}}var Bh=new Oh,it=Bh.getResult(),Kh=xh(it.browser.version),Mh={browserArchitecture:it.cpu.architecture||nt,browserFullVersion:it.browser.version||nt,browserMinorVersion:Kh.minor||nt,browserName:it.browser.name||nt,browserVersion:it.browser.major||nt,deviceName:it.device.model||nt,engineName:it.engine.name||nt,engineVersion:it.engine.version||nt,platformArchitecture:it.cpu.architecture||nt,platformName:kh(it.os.name)||nt,platformVersion:it.os.version||nt,platformFullVersion:it.os.version||nt},Ah=Mh,Ut=ve,wc=/\./,Nh=/\|\|/,Ih=/\s+\-\s+/,Rh=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,cs=/^(\d*)(.*)/;function Lh(r,e){var n=r.split(Nh);return n.length>1?n.some(function(a){return Oc.contains(a,e)}):(r=n[0].trim(),$h(r,e))}function $h(r,e){var n=r.split(Ih);if(n.length>0&&n.length<=2||(process.env.NODE_ENV!=="production"?Ut(!1,'the "-" operator expects exactly 2 operands'):Ut(!1)),n.length===1)return Ti(n[0],e);var a=n[0],i=n[1];return fs(a)&&fs(i)||(process.env.NODE_ENV!=="production"?Ut(!1,'operands to the "-" operator must be simple (no modifiers)'):Ut(!1)),Ti(">="+a,e)&&Ti("<="+i,e)}function Ti(r,e){if(r=r.trim(),r==="")return!0;var n=e.split(wc),a=bc(r),i=a.modifier,s=a.rangeComponents;switch(i){case"<":return Cc(n,s);case"<=":return Fh(n,s);case">=":return Dc(n,s);case">":return Uh(n,s);case"~":case"~>":return zh(n,s);default:return Ph(n,s)}}function Cc(r,e){return Qr(r,e)===-1}function Fh(r,e){var n=Qr(r,e);return n===-1||n===0}function Ph(r,e){return Qr(r,e)===0}function Dc(r,e){var n=Qr(r,e);return n===1||n===0}function Uh(r,e){return Qr(r,e)===1}function zh(r,e){var n=e.slice(),a=e.slice();a.length>1&&a.pop();var i=a.length-1,s=parseInt(a[i],10);return ia(s)&&(a[i]=s+1+""),Dc(r,n)&&Cc(r,a)}function bc(r){var e=r.split(wc),n=e[0].match(Rh);return n||(process.env.NODE_ENV!=="production"?Ut(!1,"expected regex to match but it did not"):Ut(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(e.slice(1))}}function ia(r){return!isNaN(r)&&isFinite(r)}function fs(r){return!bc(r).modifier}function ls(r,e){for(var n=r.length;n<e;n++)r[n]="0"}function qh(r,e){r=r.slice(),e=e.slice(),ls(r,e.length);for(var n=0;n<e.length;n++){var a=e[n].match(/^[x*]$/i);if(a&&(e[n]=r[n]="0",a[0]==="*"&&n===e.length-1))for(var i=n;i<r.length;i++)r[i]="0"}return ls(e,r.length),[r,e]}function Hh(r,e){var n=r.match(cs)[1],a=e.match(cs)[1],i=parseInt(n,10),s=parseInt(a,10);return ia(i)&&ia(s)&&i!==s?vs(i,s):vs(r,e)}function vs(r,e){return typeof r!=typeof e&&(process.env.NODE_ENV!=="production"?Ut(!1,'"a" and "b" must be of the same type'):Ut(!1)),r>e?1:r<e?-1:0}function Qr(r,e){for(var n=qh(r,e),a=n[0],i=n[1],s=0;s<i.length;s++){var c=Hh(a[s],i[s]);if(c)return c}return 0}var Oc={contains:function(e,n){return Lh(e.trim(),n.trim())}},Vh=Oc,Wh=Object.prototype.hasOwnProperty;function jh(r,e,n){if(!r)return null;var a={};for(var i in r)Wh.call(r,i)&&(a[i]=e.call(n,r[i],i,r));return a}var Gh=jh;function Jh(r){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=r.call(this,n)),e[n]}}var Xh=Jh,St=Ah,Yh=Vh,Zh=Gh,Qh=Xh;function gr(r,e,n,a){if(r===n)return!0;if(!n.startsWith(r))return!1;var i=n.slice(r.length);return e?(i=a?a(i):i,Yh.contains(i,e)):!1}function eg(r){return St.platformName==="Windows"?r.replace(/^\s*NT/,""):r}var tg={isBrowser:function(e){return gr(St.browserName,St.browserFullVersion,e)},isBrowserArchitecture:function(e){return gr(St.browserArchitecture,null,e)},isDevice:function(e){return gr(St.deviceName,null,e)},isEngine:function(e){return gr(St.engineName,St.engineVersion,e)},isPlatform:function(e){return gr(St.platformName,St.platformFullVersion,e,eg)},isPlatformArchitecture:function(e){return gr(St.platformArchitecture,null,e)}},Ge=Zh(tg,Qh);function rg(r){return!r||!r.ownerDocument?document:r.ownerDocument}var zn=rg;function ng(r){return!r||!r.ownerDocument?!1:r.nodeType===Node.ELEMENT_NODE}var Qt=ng,ig=Qt;function Tc(r){if(ig(r)){var e=r,n=e.getAttribute("data-offset-key");if(n)return n;for(var a=0;a<e.childNodes.length;a++){var i=Tc(e.childNodes[a]);if(i)return i}}return null}var kc=Tc,ag=zn,og=kc;function sg(r){for(var e=r;e&&e!==ag(r).documentElement;){var n=og(e);if(n!=null)return n;e=e.parentNode}return null}var qn=sg;function ug(r){return!r||!r.ownerDocument||!r.ownerDocument.defaultView?window:r.ownerDocument.defaultView}var xc=ug;function Sn(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var cg=Ge,fg=qn,lg=xc,vg=le,ps=ve,pg=je,ds=vg.Map,dg={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},hs=cg.isBrowser("IE <= 11"),hg=function(){function r(n){var a=this;Sn(this,"observer",void 0),Sn(this,"container",void 0),Sn(this,"mutations",void 0),Sn(this,"onCharData",void 0),this.container=n,this.mutations=ds();var i=lg(n);i.MutationObserver&&!hs?this.observer=new i.MutationObserver(function(s){return a.registerMutations(s)}):this.onCharData=function(s){s.target instanceof Node||(process.env.NODE_ENV!=="production"?ps(!1,"Expected target to be an instance of Node"):ps(!1)),a.registerMutation({type:"characterData",target:s.target})}}var e=r.prototype;return e.start=function(){this.observer?this.observer.observe(this.container,dg):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},e.stopAndFlushMutations=function(){var a=this.observer;a?(this.registerMutations(a.takeRecords()),a.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var i=this.mutations;return this.mutations=ds(),i},e.registerMutations=function(a){for(var i=0;i<a.length;i++)this.registerMutation(a[i])},e.getMutationTextContent=function(a){var i=a.type,s=a.target,c=a.removedNodes;if(i==="characterData"){if(s.textContent!=="")return hs?s.textContent.replace(`
|
|
8
|
-
`,""):s.textContent}else if(i==="childList"){if(c&&c.length)return"";if(s.textContent!=="")return s.textContent}return null},e.registerMutation=function(a){var i=this.getMutationTextContent(a);if(i!=null){var s=pg(fg(a.target));this.mutations=this.mutations.set(s,i)}},r}(),gg=hg,wn="-",yg={encode:function(e,n,a){return e+wn+n+wn+a},decode:function(e){var n=e.split(wn).reverse(),a=n[0],i=n[1],s=n.slice(2);return{blockKey:s.reverse().join(wn),decoratorKey:parseInt(i,10),leafKey:parseInt(a,10)}}},Bt=yg,Hn={BACKSPACE:8,TAB:9,RETURN:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},Bc={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};function mg(r){return!r||!r.ownerDocument?!1:r.ownerDocument.defaultView?r instanceof r.ownerDocument.defaultView.HTMLElement:r instanceof HTMLElement}var en=mg,Cn=ve,_g=en;function Eg(r){var e=r.editorContainer;e||(process.env.NODE_ENV!=="production"?Cn(!1,"Missing editorNode"):Cn(!1)),_g(e.firstChild)||(process.env.NODE_ENV!=="production"?Cn(!1,"editorNode.firstChild is not an HTMLElement"):Cn(!1));var n=e.firstChild;return n}var Kc=Eg,gs=Bt,Sg=je;function wg(r,e,n,a,i){var s=Sg(r.getSelection());if(!e||!a)return process.env.NODE_ENV!=="production"&&console.warn("Invalid selection state.",arguments,r.toJS()),s;var c=gs.decode(e),l=c.blockKey,v=r.getBlockTree(l),h=v&&v.getIn([c.decoratorKey,"leaves",c.leafKey]),y=gs.decode(a),w=y.blockKey,d=r.getBlockTree(w),E=d&&d.getIn([y.decoratorKey,"leaves",y.leafKey]);if(!h||!E)return process.env.NODE_ENV!=="production"&&console.warn("Invalid selection state.",arguments,r.toJS()),s;var m=h.get("start"),S=E.get("start"),C=h?m+n:null,T=E?S+i:null,B=s.getAnchorKey()===l&&s.getAnchorOffset()===C&&s.getFocusKey()===w&&s.getFocusOffset()===T;if(B)return s;var O=!1;if(l===w){var k=h.get("end"),M=E.get("end");S===m&&M===k?O=i<n:O=S<m}else{var X=r.getCurrentContent().getBlockMap().keySeq().skipUntil(function(j){return j===l||j===w}).first();O=X===w}return s.merge({anchorKey:l,anchorOffset:C,focusKey:w,focusOffset:T,isBackward:O})}var Mc=wg,Ur=qn,Hr=kc,ys=Mc,yr=ve,Ca=Qt,Xt=je;function Cg(r,e,n,a,i,s){var c=n.nodeType===Node.TEXT_NODE,l=i.nodeType===Node.TEXT_NODE;if(c&&l)return{selectionState:ys(r,Xt(Ur(n)),a,Xt(Ur(i)),s),needsRecovery:!1};var v=null,h=null,y=!0;return c?(v={key:Xt(Ur(n)),offset:a},h=Dn(e,i,s)):l?(h={key:Xt(Ur(i)),offset:s},v=Dn(e,n,a)):(v=Dn(e,n,a),h=Dn(e,i,s),n===i&&a===s&&(y=!!n.firstChild&&n.firstChild.nodeName!=="BR")),{selectionState:ys(r,v.key,v.offset,h.key,h.offset),needsRecovery:y}}function Dg(r){for(;r.firstChild&&(Ca(r.firstChild)&&r.firstChild.getAttribute("data-blocks")==="true"||Hr(r.firstChild));)r=r.firstChild;return r}function bg(r){for(;r.lastChild&&(Ca(r.lastChild)&&r.lastChild.getAttribute("data-blocks")==="true"||Hr(r.lastChild));)r=r.lastChild;return r}function Dn(r,e,n){var a=e,i=Ur(a);if(i!=null||r&&(r===a||r.firstChild===a)||(process.env.NODE_ENV!=="production"?yr(!1,"Unknown node in selection range."):yr(!1)),r===a){a=a.firstChild,Ca(a)||(process.env.NODE_ENV!=="production"?yr(!1,"Invalid DraftEditorContents node."):yr(!1));var s=a;a=s,a.getAttribute("data-contents")!=="true"&&(process.env.NODE_ENV!=="production"?yr(!1,"Invalid DraftEditorContents structure."):yr(!1)),n>0&&(n=a.childNodes.length)}if(n===0){var c=null;if(i!=null)c=i;else{var l=Dg(a);c=Xt(Hr(l))}return{key:c,offset:0}}var v=a.childNodes[n-1],h=null,y=null;if(!Hr(v))h=Xt(i),y=ms(v);else{var w=bg(v);h=Xt(Hr(w)),y=ms(w)}return{key:h,offset:y}}function ms(r){var e=r.textContent;return e===`
|
|
9
|
-
`?0:e.length}var Ac=Cg,Og=Ac;function Tg(r,e){var n=e.ownerDocument.defaultView.getSelection(),a=n.anchorNode,i=n.anchorOffset,s=n.focusNode,c=n.focusOffset,l=n.rangeCount;return l===0||a==null||s==null?{selectionState:r.getSelection().set("hasFocus",!1),needsRecovery:!1}:Og(r,e,a,i,s,c)}var Nc=Tg,kg=Bc,_s=ye,xg=Kc,Bg=Nc;function Kg(r){if(r._blockSelectEvents||r._latestEditorState!==r.props.editorState){if(r._blockSelectEvents){var e=r.props.editorState,n=e.getSelection();kg.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:new Error().stack}),selectionState:JSON.stringify(n.toJS())})}return}var a=r.props.editorState,i=Bg(a,xg(r)),s=i.selectionState;s!==a.getSelection()&&(i.needsRecovery?a=_s.forceSelection(a,s):a=_s.acceptSelection(a,s),r.update(a))}var Ic=Kg;function Mg(r){return r!=null&&r!=""}var Rc={notEmptyKey:Mg},Ag=Rc,Ng=Ag.notEmptyKey;function Ig(r,e){var n;if(e.isCollapsed()){var a=e.getAnchorKey(),i=e.getAnchorOffset();return i>0?(n=r.getBlockForKey(a).getEntityAt(i-1),n!==r.getBlockForKey(a).getEntityAt(i)?null:Es(r.getEntityMap(),n)):null}var s=e.getStartKey(),c=e.getStartOffset(),l=r.getBlockForKey(s);return n=c===l.getLength()?null:l.getEntityAt(c),Es(r.getEntityMap(),n)}function Es(r,e){if(Ng(e)){var n=r.__get(e);return n.getMutability()==="MUTABLE"?e:null}return null}var Da=Ig,Rg=gg,Lg=We,$g=Bt,Lr=ye,ki=Hn,Fg=Ge,Pg=Ic,Lc=Kc,Ug=Nc,zg=Da,qg=je,Hg=Fg.isBrowser("IE"),Vg=20,xi=!1,bn=!1,Vr=null;function Wg(r){Vr||(Vr=new Rg(Lc(r)),Vr.start())}var aa={onCompositionStart:function(e){bn=!0,Wg(e)},onCompositionEnd:function(e){xi=!1,bn=!1,setTimeout(function(){xi||aa.resolveComposition(e)},Vg)},onSelect:Pg,onKeyDown:function(e,n){if(!bn){aa.resolveComposition(e),e._onKeyDown(n);return}(n.which===ki.RIGHT||n.which===ki.LEFT)&&n.preventDefault()},onKeyPress:function(e,n){n.which===ki.RETURN&&n.preventDefault()},resolveComposition:function(e){if(!bn){var n=qg(Vr).stopAndFlushMutations();Vr=null,xi=!0;var a=Lr.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),!n.size){e.update(a);return}var i=a.getCurrentContent();n.forEach(function(v,h){var y=$g.decode(h),w=y.blockKey,d=y.decoratorKey,E=y.leafKey,m=a.getBlockTree(w).getIn([d,"leaves",E]),S=m.start,C=m.end,T=a.getSelection().merge({anchorKey:w,focusKey:w,anchorOffset:S,focusOffset:C,isBackward:!1}),B=zg(i,T),O=i.getBlockForKey(w).getInlineStyleAt(S);i=Lg.replaceText(i,T,v,O,B),a=Lr.set(a,{currentContent:i})});var s=Ug(a,Lc(e)),c=s.selectionState;e.restoreEditorDOM();var l=Hg?Lr.forceSelection(a,c):Lr.acceptSelection(a,c);e.update(Lr.push(l,i,"insert-characters"))}}},jg=aa,Bi,Ss;function Gg(){if(Ss)return Bi;Ss=1;var r=Zt;function e(){return e=r||function(v){for(var h=1;h<arguments.length;h++){var y=arguments[h];for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&(v[w]=y[w])}return v},e.apply(this,arguments)}function n(v,h){v.prototype=Object.create(h.prototype),v.prototype.constructor=v,v.__proto__=h}var a=Bt,i=ct,s=_a,c=Pn,l=function(v){n(h,v);function h(){return v.apply(this,arguments)||this}var y=h.prototype;return y.render=function(){var d=this.props,E=d.block,m=d.children,S=d.contentState,C=d.decorator,T=d.decoratorKey,B=d.direction,O=d.leafSet,k=d.text,M=E.getKey(),X=O.get("leaves"),j=C.getComponentForKey(T),ue=C.getPropsForKey(T),I=a.encode(M,parseInt(T,10),0),R=k.slice(X.first().get("start"),X.last().get("end")),$=c.getHTMLDirIfDifferent(s.getDirection(R),B);return i.createElement(j,e({},ue,{contentState:S,decoratedText:R,dir:$,key:I,entityKey:E.getEntityAt(O.get("start")),offsetKey:I}),m)},h}(i.Component);return Bi=l,Bi}function ws(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Jg(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}function Cs(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var wr=ct,Xg=Ge,Ds=ve,Yg=Qt,ba=Xg.isBrowser("IE <= 11");function Zg(r){return ba?r.textContent===`
|
|
10
|
-
`:r.tagName==="BR"}var Qg=function(e){return ba?wr.createElement("span",{key:"A","data-text":"true",ref:e},`
|
|
11
|
-
`):wr.createElement("br",{key:"A","data-text":"true",ref:e})},ey=function(e){return ba?wr.createElement("span",{key:"B","data-text":"true",ref:e},`
|
|
12
|
-
`):wr.createElement("br",{key:"B","data-text":"true",ref:e})},ty=function(r){Jg(e,r);function e(a){var i;return i=r.call(this,a)||this,Cs(ws(i),"_forceFlag",void 0),Cs(ws(i),"_node",void 0),i._forceFlag=!1,i}var n=e.prototype;return n.shouldComponentUpdate=function(i){var s=this._node,c=i.children==="";Yg(s)||(process.env.NODE_ENV!=="production"?Ds(!1,"node is not an Element"):Ds(!1));var l=s;return c?!Zg(l):l.textContent!==i.children},n.componentDidMount=function(){this._forceFlag=!this._forceFlag},n.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},n.render=function(){var i=this;return this.props.children===""?this._forceFlag?Qg(function(s){return i._node=s}):ey(function(s){return i._node=s}):wr.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(c){return i._node=c}},this.props.children)},e}(wr.Component),ry=ty,ny=Qt;function iy(r){return!r||!r.ownerDocument?!1:ny(r)&&r.nodeName==="BR"}var $c=iy,Fc={initODS:function(){},handleExtensionCausedError:function(){}};function ay(r){var e=r?r.ownerDocument||r:document,n=e.defaultView||window;return!!(r&&(typeof n.Node=="function"?r instanceof n.Node:typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.nodeName=="string"))}var oy=ay,sy=oy;function uy(r){return sy(r)&&r.nodeType==3}var cy=uy,bs=cy;function Pc(r,e){return!r||!e?!1:r===e?!0:bs(r)?!1:bs(e)?Pc(r,e.parentNode):"contains"in r?r.contains(e):r.compareDocumentPosition?!!(r.compareDocumentPosition(e)&16):!1}var Oa=Pc;function fy(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var Uc=fy,ly=Fc,oa=Bc,vy=Ge,zc=Oa,py=Uc,Ta=zn,Os=ve,qc=Qt,dy=vy.isBrowser("IE");function hy(r,e){if(!r)return"[empty]";var n=Hc(r,e);if(n.nodeType===Node.TEXT_NODE)return n.textContent;qc(n)||(process.env.NODE_ENV!=="production"?Os(!1,"Node must be an Element if it is not a text node."):Os(!1));var a=n;return a.outerHTML}function Hc(r,e){var n=e!==void 0?e(r):[];if(r.nodeType===Node.TEXT_NODE){var a=r.textContent.length;return Ta(r).createTextNode("[text "+a+(n.length?" | "+n.join(", "):"")+"]")}var i=r.cloneNode();i.nodeType===1&&n.length&&i.setAttribute("data-labels",n.join(", "));for(var s=r.childNodes,c=0;c<s.length;c++)i.appendChild(Hc(s[c],e));return i}function sa(r,e){for(var n=r,a=n;n;){if(qc(n)&&a.hasAttribute("contenteditable"))return hy(n,e);n=n.parentNode,a=n}return"Could not find contentEditable parent of node"}function Vc(r){return r.nodeValue===null?r.childNodes.length:r.nodeValue.length}function gy(r,e,n,a,i){var s=Ta(e);if(zc(s.documentElement,e)){var c=s.defaultView.getSelection(),l=r.getAnchorKey(),v=r.getAnchorOffset(),h=r.getFocusKey(),y=r.getFocusOffset(),w=r.getIsBackward();if(!c.extend&&w){var d=l,E=v;l=h,v=y,h=d,y=E,w=!1}var m=l===n&&a<=v&&i>=v,S=h===n&&a<=y&&i>=y;if(m&&S){c.removeAllRanges(),On(c,e,v-a,r),Ki(c,e,y-a,r);return}if(!w)m&&(c.removeAllRanges(),On(c,e,v-a,r)),S&&Ki(c,e,y-a,r);else if(S&&(c.removeAllRanges(),On(c,e,y-a,r)),m){var C=c.focusNode,T=c.focusOffset;c.removeAllRanges(),On(c,e,v-a,r),Ki(c,C,T,r)}}}function Ki(r,e,n,a){var i=py(),s=r.extend;if(s&&e!=null&&zc(i,e)){n>Vc(e)&&oa.logSelectionStateFailure({anonymizedDom:sa(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(a.toJS())});var c=e===r.focusNode;try{r.rangeCount>0&&r.extend&&r.extend(e,n)}catch(v){throw oa.logSelectionStateFailure({anonymizedDom:sa(e,function(h){var y=[];return h===i&&y.push("active element"),h===r.anchorNode&&y.push("selection anchor node"),h===r.focusNode&&y.push("selection focus node"),y}),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:e===r.focusNode,nodeWasFocus:c,selectionRangeCount:r.rangeCount,selectionAnchorNodeName:r.anchorNode?r.anchorNode.nodeName:null,selectionAnchorOffset:r.anchorOffset,selectionFocusNodeName:r.focusNode?r.focusNode.nodeName:null,selectionFocusOffset:r.focusOffset,message:v?""+v:null,offset:n},null,2),selectionState:JSON.stringify(a.toJS(),null,2)}),v}}else if(e&&r.rangeCount>0){var l=r.getRangeAt(0);l.setEnd(e,n),r.addRange(l.cloneRange())}}function On(r,e,n,a){var i=Ta(e).createRange();if(n>Vc(e)&&(oa.logSelectionStateFailure({anonymizedDom:sa(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(a.toJS())}),ly.handleExtensionCausedError()),i.setStart(e,n),dy)try{r.addRange(i)}catch(s){process.env.NODE_ENV!=="production"&&console.warn("Call to selection.addRange() threw exception: ",s)}else r.addRange(i)}var yy={setDraftEditorSelection:gy},Ts=Zt;function my(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function _y(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}function Ey(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var Sy=ry,Mi=ct,It=ve,wy=$c,Cy=yy.setDraftEditorSelection,Dy=function(r){_y(e,r);function e(){for(var a,i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];return a=r.call.apply(r,[this].concat(s))||this,Ey(my(a),"leaf",void 0),a}var n=e.prototype;return n._setSelection=function(){var i=this.props.selection;if(!(i==null||!i.getHasFocus())){var s=this.props,c=s.block,l=s.start,v=s.text,h=c.getKey(),y=l+v.length;if(i.hasEdgeWithin(h,l,y)){var w=this.leaf;w||(process.env.NODE_ENV!=="production"?It(!1,"Missing node"):It(!1));var d=w.firstChild;d||(process.env.NODE_ENV!=="production"?It(!1,"Missing child"):It(!1));var E;d.nodeType===Node.TEXT_NODE?E=d:wy(d)?E=w:(E=d.firstChild,E||(process.env.NODE_ENV!=="production"?It(!1,"Missing targetNode"):It(!1))),Cy(i,E,h,l,y)}}},n.shouldComponentUpdate=function(i){var s=this.leaf;s||(process.env.NODE_ENV!=="production"?It(!1,"Missing leafNode"):It(!1));var c=s.textContent!==i.text||i.styleSet!==this.props.styleSet||i.forceSelection;return c},n.componentDidUpdate=function(){this._setSelection()},n.componentDidMount=function(){this._setSelection()},n.render=function(){var i=this,s=this.props.block,c=this.props.text;c.endsWith(`
|
|
13
|
-
`)&&this.props.isLast&&(c+=`
|
|
14
|
-
`);var l=this.props,v=l.customStyleMap,h=l.customStyleFn,y=l.offsetKey,w=l.styleSet,d=w.reduce(function(m,S){var C={},T=v[S];return T!==void 0&&m.textDecoration!==T.textDecoration&&(C.textDecoration=[m.textDecoration,T.textDecoration].join(" ").trim()),Ts(m,T,C)},{});if(h){var E=h(w,s);d=Ts(d,E)}return Mi.createElement("span",{"data-offset-key":y,ref:function(S){return i.leaf=S},style:d},Mi.createElement(Sy,null,c))},e}(Mi.Component),Wc=Dy,Ai,ks;function by(){if(ks)return Ai;ks=1;function r(v,h){v.prototype=Object.create(h.prototype),v.prototype.constructor=v,v.__proto__=h}var e=Gg(),n=Wc,a=Bt,i=le,s=ct,c=Yt;i.List;var l=function(v){r(h,v);function h(){return v.apply(this,arguments)||this}var y=h.prototype;return y.render=function(){var d=this.props,E=d.block,m=d.contentState,S=d.customStyleFn,C=d.customStyleMap,T=d.decorator,B=d.direction,O=d.forceSelection,k=d.hasSelection,M=d.selection,X=d.tree,j=E.getKey(),ue=E.getText(),I=X.size-1,R=this.props.children||X.map(function($,F){var N=$.get("decoratorKey"),P=$.get("leaves"),V=P.size-1,G=P.map(function(W,re){var ne=a.encode(j,F,re),Y=W.get("start"),ee=W.get("end");return s.createElement(n,{key:ne,offsetKey:ne,block:E,start:Y,selection:k?M:null,forceSelection:O,text:ue.slice(Y,ee),styleSet:E.getInlineStyleAt(Y),customStyleMap:C,customStyleFn:S,isLast:N===I&&re===V})}).toArray();return!N||!T?G:s.createElement(e,{block:E,children:G,contentState:m,decorator:T,decoratorKey:N,direction:B,leafSet:$,text:ue,key:F})}).toArray();return s.createElement("div",{"data-offset-key":a.encode(j,0,0),className:c({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":B==="LTR","public/DraftStyleDefault/rtl":B==="RTL"})},R)},h}(s.Component);return Ai=l,Ai}function Tn(r,e){return!!e&&(r===e.documentElement||r===e.body)}var Oy={getTop:function(e){var n=e.ownerDocument;return Tn(e,n)?n.body.scrollTop||n.documentElement.scrollTop:e.scrollTop},setTop:function(e,n){var a=e.ownerDocument;Tn(e,a)?a.body.scrollTop=a.documentElement.scrollTop=n:e.scrollTop=n},getLeft:function(e){var n=e.ownerDocument;return Tn(e,n)?n.body.scrollLeft||n.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,n){var a=e.ownerDocument;Tn(e,a)?a.body.scrollLeft=a.documentElement.scrollLeft=n:e.scrollLeft=n}},ka=Oy,Ty=/-(.)/g;function ky(r){return r.replace(Ty,function(e,n){return n.toUpperCase()})}var xy=ky,By=/([A-Z])/g;function Ky(r){return r.replace(By,"-$1").toLowerCase()}var My=Ky,xs=xy,Bs=My;function $r(r){return r==null?r:String(r)}function Ay(r,e){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(r,null),n))return $r(n.getPropertyValue(Bs(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(r,null),n)return $r(n.getPropertyValue(Bs(e)));if(e==="display")return"none"}return r.currentStyle?$r(e==="float"?r.currentStyle.cssFloat||r.currentStyle.styleFloat:r.currentStyle[xs(e)]):$r(r.style&&r.style[xs(e)])}var Ny=Ay,Iy=Ny;function Ni(r,e){var n=jc.get(r,e);return n==="auto"||n==="scroll"}var jc={get:Iy,getScrollParent:function(e){if(!e)return null;for(var n=e.ownerDocument;e&&e!==n.body;){if(Ni(e,"overflow")||Ni(e,"overflowY")||Ni(e,"overflowX"))return e;e=e.parentNode}return n.defaultView||n.parentWindow}},Vn=jc,Ry=Oa;function Ly(r){var e=r.ownerDocument.documentElement;if(!("getBoundingClientRect"in r)||!Ry(e,r))return{left:0,right:0,top:0,bottom:0};var n=r.getBoundingClientRect();return{left:Math.round(n.left)-e.clientLeft,right:Math.round(n.right)-e.clientLeft,top:Math.round(n.top)-e.clientTop,bottom:Math.round(n.bottom)-e.clientTop}}var $y=Ly,Fy=$y;function Py(r){var e=Fy(r);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}var Gc=Py,Uy=typeof navigator<"u"&&navigator.userAgent.indexOf("AppleWebKit")>-1;function zy(r){return r=r||document,r.scrollingElement?r.scrollingElement:!Uy&&r.compatMode==="CSS1Compat"?r.documentElement:r.body}var qy=zy;function Hy(r){return r.Window&&r instanceof r.Window?{x:r.pageXOffset||r.document.documentElement.scrollLeft,y:r.pageYOffset||r.document.documentElement.scrollTop}:{x:r.scrollLeft,y:r.scrollTop}}var Vy=Hy,Wy=qy,jy=Vy;function Gy(r){var e=Wy(r.ownerDocument||r.document);r.Window&&r instanceof r.Window&&(r=e);var n=jy(r),a=r===e?r.ownerDocument.documentElement:r,i=r.scrollWidth-a.clientWidth,s=r.scrollHeight-a.clientHeight;return n.x=Math.max(0,Math.min(n.x,i)),n.y=Math.max(0,Math.min(n.y,s)),n}var Wn=Gy;function Jc(){var r;return document.documentElement&&(r=document.documentElement.clientWidth),!r&&document.body&&(r=document.body.clientWidth),r||0}function Xc(){var r;return document.documentElement&&(r=document.documentElement.clientHeight),!r&&document.body&&(r=document.body.clientHeight),r||0}function Yc(){return{width:window.innerWidth||Jc(),height:window.innerHeight||Xc()}}Yc.withoutScrollbars=function(){return{width:Jc(),height:Xc()}};var Zc=Yc,Ii,Ks;function Jy(){if(Ks)return Ii;Ks=1;var r=Zt;function e(){return e=r||function(I){for(var R=1;R<arguments.length;R++){var $=arguments[R];for(var F in $)Object.prototype.hasOwnProperty.call($,F)&&(I[F]=$[F])}return I},e.apply(this,arguments)}function n(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function a(I,R){I.prototype=Object.create(R.prototype),I.prototype.constructor=I,I.__proto__=R}function i(I){for(var R=1;R<arguments.length;R++){var $=arguments[R]!=null?arguments[R]:{},F=Object.keys($);typeof Object.getOwnPropertySymbols=="function"&&(F=F.concat(Object.getOwnPropertySymbols($).filter(function(N){return Object.getOwnPropertyDescriptor($,N).enumerable}))),F.forEach(function(N){s(I,N,$[N])})}return I}function s(I,R,$){return R in I?Object.defineProperty(I,R,{value:$,enumerable:!0,configurable:!0,writable:!0}):I[R]=$,I}var c=by(),l=Bt,v=ct,h=ka,y=Vn,w=Gc,d=Wn,E=Zc,m=le,S=ve,C=en,T=10;m.List;var B=function(R,$){return R.getAnchorKey()===$||R.getFocusKey()===$},O=function(R,$){var F=R.getNextSiblingKey();return F?$.getBlockForKey(F).getType()===R.getType():!1},k=function(R,$,F){var N=[],P=!0,V=!1,G=void 0;try{for(var W=F.reverse()[Symbol.iterator](),re;!(P=(re=W.next()).done);P=!0){var ne=re.value;if(ne.type!==$)break;N.push(ne)}}catch(he){V=!0,G=he}finally{try{!P&&W.return!=null&&W.return()}finally{if(V)throw G}}F.splice(F.indexOf(N[0]),N.length+1);var Y=N.reverse(),ee=Y[0].key;return F.push(v.cloneElement(R,{key:"".concat(ee,"-wrap"),"data-offset-key":l.encode(ee,0,0)},Y)),F},M=function(R,$){var F=$.get(R.getType())||$.get("unstyled"),N=F.wrapper,P=F.element||$.get("unstyled").element;return{Element:P,wrapperTemplate:N}},X=function(R,$){var F=$(R);if(!F)return{};var N=F.component,P=F.props,V=F.editable;return{CustomComponent:N,customProps:P,customEditable:V}},j=function(R,$,F,N,P,V){var G={"data-block":!0,"data-editor":$,"data-offset-key":F,key:R.getKey(),ref:V},W=N(R);return W&&(G.className=W),P.customEditable!==void 0&&(G=i({},G,{contentEditable:P.customEditable,suppressContentEditableWarning:!0})),G},ue=function(I){a(R,I);function R(){for(var F,N=arguments.length,P=new Array(N),V=0;V<N;V++)P[V]=arguments[V];return F=I.call.apply(I,[this].concat(P))||this,s(n(F),"wrapperRef",v.createRef()),F}var $=R.prototype;return $.shouldComponentUpdate=function(N){var P=this.props,V=P.block,G=P.direction,W=P.tree,re=!V.getChildKeys().isEmpty(),ne=V!==N.block||W!==N.tree||G!==N.direction||B(N.selection,N.block.getKey())&&N.forceSelection;return re||ne},$.componentDidMount=function(){var N=this.props.selection,P=N.getEndKey();if(!(!N.getHasFocus()||P!==this.props.block.getKey())){var V=this.wrapperRef.current;if(V){var G=y.getScrollParent(V),W=d(G),re;if(G===window){var ne=w(V),Y=ne.y+ne.height,ee=E().height;re=Y-ee,re>0&&window.scrollTo(W.x,W.y+re+T)}else{C(V)||(process.env.NODE_ENV!=="production"?S(!1,"blockNode is not an HTMLElement"):S(!1));var he=V,Be=he.offsetHeight+he.offsetTop,Fe=G.offsetHeight+W.y;re=Be-Fe,re>0&&h.setTop(G,h.getTop(G)+re+T)}}}},$.render=function(){var N=this,P=this.props,V=P.block,G=P.blockRenderMap,W=P.blockRendererFn,re=P.blockStyleFn,ne=P.contentState,Y=P.decorator,ee=P.editorKey,he=P.editorState,Be=P.customStyleFn,Fe=P.customStyleMap,Z=P.direction,ae=P.forceSelection,me=P.selection,ft=P.tree,Ue=null;V.children.size&&(Ue=V.children.reduce(function(_e,ke){var qe=l.encode(ke,0,0),De=ne.getBlockForKey(ke),Ke=X(De,W),xe=Ke.CustomComponent||R,Ie=M(De,G),vt=Ie.Element,Q=Ie.wrapperTemplate,se=j(De,ee,qe,re,Ke,null),H=i({},N.props,{tree:he.getBlockTree(ke),blockProps:Ke.customProps,offsetKey:qe,block:De});return _e.push(v.createElement(vt,se,v.createElement(xe,H))),!Q||O(De,ne)||k(Q,vt,_e),_e},[]));var ze=V.getKey(),st=l.encode(ze,0,0),Je=X(V,W),pe=Je.CustomComponent,be=pe!=null?v.createElement(pe,e({},this.props,{tree:he.getBlockTree(ze),blockProps:Je.customProps,offsetKey:st,block:V})):v.createElement(c,{block:V,children:Ue,contentState:ne,customStyleFn:Be,customStyleMap:Fe,decorator:Y,direction:Z,forceSelection:ae,hasSelection:B(me,ze),selection:me,tree:ft});if(V.getParentKey())return be;var oe=M(V,G),Ne=oe.Element,lt=j(V,ee,st,re,Je,this.wrapperRef);return v.createElement(Ne,lt,be)},R}(v.Component);return Ii=ue,Ii}var Ri,Ms;function Xy(){if(Ms)return Ri;Ms=1;var r=Zt;function e(){return e=r||function(v){for(var h=1;h<arguments.length;h++){var y=arguments[h];for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&(v[w]=y[w])}return v},e.apply(this,arguments)}function n(v,h){v.prototype=Object.create(h.prototype),v.prototype.constructor=v,v.__proto__=h}var a=Jy(),i=Bt,s=ct,c=je,l=function(v){n(h,v);function h(){return v.apply(this,arguments)||this}var y=h.prototype;return y.shouldComponentUpdate=function(d){var E=this.props.editorState,m=d.editorState,S=E.getDirectionMap(),C=m.getDirectionMap();if(S!==C)return!0;var T=E.getSelection().getHasFocus(),B=m.getSelection().getHasFocus();if(T!==B)return!0;var O=m.getNativelyRenderedContent(),k=E.isInCompositionMode(),M=m.isInCompositionMode();if(E===m||O!==null&&m.getCurrentContent()===O||k&&M)return!1;var X=E.getCurrentContent(),j=m.getCurrentContent(),ue=E.getDecorator(),I=m.getDecorator();return k!==M||X!==j||ue!==I||m.mustForceSelection()},y.render=function(){for(var d=this.props,E=d.blockRenderMap,m=d.blockRendererFn,S=d.blockStyleFn,C=d.customStyleMap,T=d.customStyleFn,B=d.editorState,O=d.editorKey,k=d.textDirectionality,M=B.getCurrentContent(),X=B.getSelection(),j=B.mustForceSelection(),ue=B.getDecorator(),I=c(B.getDirectionMap()),R=M.getBlocksAsArray(),$=R[0],F=[],N=$;N;){var P=N.getKey(),V={blockRenderMap:E,blockRendererFn:m,blockStyleFn:S,contentState:M,customStyleFn:T,customStyleMap:C,decorator:ue,editorKey:O,editorState:B,forceSelection:j,selection:X,block:N,direction:k||I.get(P),tree:B.getBlockTree(P)},G=E.get(N.getType())||E.get("unstyled"),W=G.wrapper;F.push({block:s.createElement(a,e({key:P},V)),wrapperTemplate:W,key:P,offsetKey:i.encode(P,0,0)});var re=N.getNextSiblingKey();N=re?M.getBlockForKey(re):null}for(var ne=[],Y=0;Y<F.length;){var ee=F[Y];if(ee.wrapperTemplate){var he=[];do he.push(F[Y].block),Y++;while(Y<F.length&&F[Y].wrapperTemplate===ee.wrapperTemplate);var Be=s.cloneElement(ee.wrapperTemplate,{key:ee.key+"-wrap","data-offset-key":ee.offsetKey},he);ne.push(Be)}else ne.push(ee.block),Y++}return s.createElement("div",{"data-contents":"true"},ne)},h}(s.Component);return Ri=l,Ri}var Yy=Zt;function ua(){return ua=Yy||function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])}return r},ua.apply(this,arguments)}function Zy(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Qy(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}function em(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var tm=Wc,As=Bt,kn=ct,Ns=ka,rm=Vn,nm=_a,im=Pn,am=Yt,om=Gc,sm=Wn,um=Zc,Is=ve,cm=en,fm=je,Rs=10,Ls=function(e,n){return e.getAnchorKey()===n||e.getFocusKey()===n},lm=function(r){Qy(e,r);function e(){for(var a,i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];return a=r.call.apply(r,[this].concat(s))||this,em(Zy(a),"_node",void 0),a}var n=e.prototype;return n.shouldComponentUpdate=function(i){return this.props.block!==i.block||this.props.tree!==i.tree||this.props.direction!==i.direction||Ls(i.selection,i.block.getKey())&&i.forceSelection},n.componentDidMount=function(){if(!this.props.preventScroll){var i=this.props.selection,s=i.getEndKey();if(!(!i.getHasFocus()||s!==this.props.block.getKey())){var c=this._node;if(c!=null){var l=rm.getScrollParent(c),v=sm(l),h;if(l===window){var y=om(c),w=y.y+y.height,d=um().height;h=w-d,h>0&&window.scrollTo(v.x,v.y+h+Rs)}else{cm(c)||(process.env.NODE_ENV!=="production"?Is(!1,"blockNode is not an HTMLElement"):Is(!1));var E=c.offsetHeight+c.offsetTop,m=l.offsetTop+l.offsetHeight,S=m+v.y;h=E-S,h>0&&Ns.setTop(l,Ns.getTop(l)+h+Rs)}}}}},n._renderChildren=function(){var i=this,s=this.props.block,c=s.getKey(),l=s.getText(),v=this.props.tree.size-1,h=Ls(this.props.selection,c);return this.props.tree.map(function(y,w){var d=y.get("leaves");if(d.size===0)return null;var E=d.size-1,m=d.map(function(R,$){var F=As.encode(c,w,$),N=R.get("start"),P=R.get("end");return kn.createElement(tm,{key:F,offsetKey:F,block:s,start:N,selection:h?i.props.selection:null,forceSelection:i.props.forceSelection,text:l.slice(N,P),styleSet:s.getInlineStyleAt(N),customStyleMap:i.props.customStyleMap,customStyleFn:i.props.customStyleFn,isLast:w===v&&$===E})}).toArray(),S=y.get("decoratorKey");if(S==null||!i.props.decorator)return m;var C=fm(i.props.decorator),T=C.getComponentForKey(S);if(!T)return m;var B=C.getPropsForKey(S),O=As.encode(c,w,0),k=d.first().get("start"),M=d.last().get("end"),X=l.slice(k,M),j=s.getEntityAt(y.get("start")),ue=im.getHTMLDirIfDifferent(nm.getDirection(X),i.props.direction),I={contentState:i.props.contentState,decoratedText:X,dir:ue,start:k,end:M,blockKey:c,entityKey:j,offsetKey:O};return kn.createElement(T,ua({},B,I,{key:O}),m)}).toArray()},n.render=function(){var i=this,s=this.props,c=s.direction,l=s.offsetKey,v=am({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":c==="LTR","public/DraftStyleDefault/rtl":c==="RTL"});return kn.createElement("div",{"data-offset-key":l,className:v,ref:function(y){return i._node=y}},this._renderChildren())},e}(kn.Component),Qc=lm,Li,$s;function vm(){if($s)return Li;$s=1;function r(e){var n=e||"",a=arguments.length;if(a>1)for(var i=1;i<a;i++){var s=arguments[i];s&&(n=(n?n+" ":"")+s)}return n}return Li=r,Li}var $i,Fs;function pm(){if(Fs)return $i;Fs=1;var r=Zt;function e(){return e=r||function(E){for(var m=1;m<arguments.length;m++){var S=arguments[m];for(var C in S)Object.prototype.hasOwnProperty.call(S,C)&&(E[C]=S[C])}return E},e.apply(this,arguments)}function n(E){for(var m=1;m<arguments.length;m++){var S=arguments[m]!=null?arguments[m]:{},C=Object.keys(S);typeof Object.getOwnPropertySymbols=="function"&&(C=C.concat(Object.getOwnPropertySymbols(S).filter(function(T){return Object.getOwnPropertyDescriptor(S,T).enumerable}))),C.forEach(function(T){a(E,T,S[T])})}return E}function a(E,m,S){return m in E?Object.defineProperty(E,m,{value:S,enumerable:!0,configurable:!0,writable:!0}):E[m]=S,E}function i(E,m){E.prototype=Object.create(m.prototype),E.prototype.constructor=E,E.__proto__=m}var s=Qc,c=Bt,l=ct,v=Yt,h=vm(),y=je,w=function(m,S,C,T){return v({"public/DraftStyleDefault/unorderedListItem":m==="unordered-list-item","public/DraftStyleDefault/orderedListItem":m==="ordered-list-item","public/DraftStyleDefault/reset":C,"public/DraftStyleDefault/depth0":S===0,"public/DraftStyleDefault/depth1":S===1,"public/DraftStyleDefault/depth2":S===2,"public/DraftStyleDefault/depth3":S===3,"public/DraftStyleDefault/depth4":S>=4,"public/DraftStyleDefault/listLTR":T==="LTR","public/DraftStyleDefault/listRTL":T==="RTL"})},d=function(E){i(m,E);function m(){return E.apply(this,arguments)||this}var S=m.prototype;return S.shouldComponentUpdate=function(T){var B=this.props.editorState,O=T.editorState,k=B.getDirectionMap(),M=O.getDirectionMap();if(k!==M)return!0;var X=B.getSelection().getHasFocus(),j=O.getSelection().getHasFocus();if(X!==j)return!0;var ue=O.getNativelyRenderedContent(),I=B.isInCompositionMode(),R=O.isInCompositionMode();if(B===O||ue!==null&&O.getCurrentContent()===ue||I&&R)return!1;var $=B.getCurrentContent(),F=O.getCurrentContent(),N=B.getDecorator(),P=O.getDecorator();return I!==R||$!==F||N!==P||O.mustForceSelection()},S.render=function(){for(var T=this.props,B=T.blockRenderMap,O=T.blockRendererFn,k=T.blockStyleFn,M=T.customStyleMap,X=T.customStyleFn,j=T.editorState,ue=T.editorKey,I=T.preventScroll,R=T.textDirectionality,$=j.getCurrentContent(),F=j.getSelection(),N=j.mustForceSelection(),P=j.getDecorator(),V=y(j.getDirectionMap()),G=$.getBlocksAsArray(),W=[],re=null,ne=null,Y=0;Y<G.length;Y++){var ee=G[Y],he=ee.getKey(),Be=ee.getType(),Fe=O(ee),Z=void 0,ae=void 0,me=void 0;Fe&&(Z=Fe.component,ae=Fe.props,me=Fe.editable);var ft=R||V.get(he),Ue=c.encode(he,0,0),ze={contentState:$,block:ee,blockProps:ae,blockStyleFn:k,customStyleMap:M,customStyleFn:X,decorator:P,direction:ft,forceSelection:N,offsetKey:Ue,preventScroll:I,selection:F,tree:j.getBlockTree(he)},st=B.get(Be)||B.get("unstyled"),Je=st.wrapper,pe=st.element||B.get("unstyled").element,be=ee.getDepth(),oe="";if(k&&(oe=k(ee)),pe==="li"){var Ne=ne!==Je||re===null||be>re;oe=h(oe,w(Be,be,Ne,ft))}var lt=Z||s,_e={className:oe,"data-block":!0,"data-editor":ue,"data-offset-key":Ue,key:he};me!==void 0&&(_e=n({},_e,{contentEditable:me,suppressContentEditableWarning:!0}));var ke=l.createElement(pe,_e,l.createElement(lt,e({},ze,{key:he})));W.push({block:ke,wrapperTemplate:Je,key:he,offsetKey:Ue}),Je?re=ee.getDepth():re=null,ne=Je}for(var qe=[],De=0;De<W.length;){var Ke=W[De];if(Ke.wrapperTemplate){var xe=[];do xe.push(W[De].block),De++;while(De<W.length&&W[De].wrapperTemplate===Ke.wrapperTemplate);var Ie=l.cloneElement(Ke.wrapperTemplate,{key:Ke.key+"-wrap","data-offset-key":Ke.offsetKey},xe);qe.push(Ie)}else qe.push(Ke.block),De++}return l.createElement("div",{"data-contents":"true"},qe)},m}(l.Component);return $i=d,$i}var dm=Ht,hm=dm("draft_tree_data_support"),gm=hm?Xy():pm(),ef={isImage:function(e){return Ps(e)[0]==="image"},isJpeg:function(e){var n=Ps(e);return ef.isImage(e)&&(n[1]==="jpeg"||n[1]==="pjpeg")}};function Ps(r){return r.split("/")}var ym=ef,Rt=ve;function mm(r){var e=r.length;if(!Array.isArray(r)&&(typeof r=="object"||typeof r=="function")||(process.env.NODE_ENV!=="production"?Rt(!1,"toArray: Array-like object expected"):Rt(!1)),typeof e!="number"&&(process.env.NODE_ENV!=="production"?Rt(!1,"toArray: Object needs a length property"):Rt(!1)),e===0||e-1 in r||(process.env.NODE_ENV!=="production"?Rt(!1,"toArray: Object should have keys for indices"):Rt(!1)),typeof r.callee=="function"&&(process.env.NODE_ENV!=="production"?Rt(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):Rt(!1)),r.hasOwnProperty)try{return Array.prototype.slice.call(r)}catch{}for(var n=Array(e),a=0;a<e;a++)n[a]=r[a];return n}function _m(r){return!!r&&(typeof r=="object"||typeof r=="function")&&"length"in r&&!("setInterval"in r)&&typeof r.nodeType!="number"&&(Array.isArray(r)||"callee"in r||"item"in r)}function Em(r){return _m(r)?Array.isArray(r)?r.slice():mm(r):[r]}var Sm=Em;function jn(r){return function(){return r}}var er=function(){};er.thatReturns=jn;er.thatReturnsFalse=jn(!1);er.thatReturnsTrue=jn(!0);er.thatReturnsNull=jn(null);er.thatReturnsThis=function(){return this};er.thatReturnsArgument=function(r){return r};var tf=er,wm=ym,Cm=Sm,Dm=tf,bm=new RegExp(`\r
|
|
15
|
-
`,"g"),Om=`
|
|
16
|
-
`,Tm={"text/rtf":1,"text/html":1};function km(r){if(r.kind=="file")return r.getAsFile()}var xm=function(){function r(n){this.data=n,this.types=n.types?Cm(n.types):[]}var e=r.prototype;return e.isRichText=function(){return this.getHTML()&&this.getText()?!0:this.isImage()?!1:this.types.some(function(a){return Tm[a]})},e.getText=function(){var a;return this.data.getData&&(this.types.length?this.types.indexOf("text/plain")!=-1&&(a=this.data.getData("text/plain")):a=this.data.getData("Text")),a?a.replace(bm,Om):null},e.getHTML=function(){if(this.data.getData)if(this.types.length){if(this.types.indexOf("text/html")!=-1)return this.data.getData("text/html")}else return this.data.getData("Text")},e.isLink=function(){return this.types.some(function(a){return a.indexOf("Url")!=-1||a.indexOf("text/uri-list")!=-1||a.indexOf("text/x-moz-url")})},e.getLink=function(){if(this.data.getData){if(this.types.indexOf("text/x-moz-url")!=-1){var a=this.data.getData("text/x-moz-url").split(`
|
|
17
|
-
`);return a[0]}return this.types.indexOf("text/uri-list")!=-1?this.data.getData("text/uri-list"):this.data.getData("url")}return null},e.isImage=function(){var a=this.types.some(function(l){return l.indexOf("application/x-moz-file")!=-1});if(a)return!0;for(var i=this.getFiles(),s=0;s<i.length;s++){var c=i[s].type;if(!wm.isImage(c))return!1}return!0},e.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},e.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(km).filter(Dm.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},e.hasFiles=function(){return this.getFiles().length>0},r}(),rf=xm,Us=ve,zs=/\.textClipping$/,Bm={"text/plain":!0,"text/html":!0,"text/rtf":!0},Km=5e3;function Mm(r,e){var n=0,a=[];r.forEach(function(i){Am(i,function(s){n++,s&&a.push(s.slice(0,Km)),n==r.length&&e(a.join("\r"))})})}function Am(r,e){if(!window.FileReader||r.type&&!(r.type in Bm)){e("");return}if(r.type===""){var n="";zs.test(r.name)&&(n=r.name.replace(zs,"")),e(n);return}var a=new FileReader;a.onload=function(){var i=a.result;typeof i!="string"&&(process.env.NODE_ENV!=="production"?Us(!1,'We should be calling "FileReader.readAsText" which returns a string'):Us(!1)),e(i)},a.onerror=function(){e("")},a.readAsText(r)}var nf=Mm;function Nm(r){return r==="handled"||r===!0}var Gn=Nm,Im=rf,af=We,of=ye,Rm=qn,Lm=zn,$m=nf,Fm=Mc,Pm=xc,qs=Gn,Fi=je;function Um(r,e){var n=null,a=null,i=Lm(r.currentTarget);if(typeof i.caretRangeFromPoint=="function"){var s=i.caretRangeFromPoint(r.x,r.y);n=s.startContainer,a=s.startOffset}else if(r.rangeParent)n=r.rangeParent,a=r.rangeOffset;else return null;n=Fi(n),a=Fi(a);var c=Fi(Rm(n));return Fm(e,c,a,c,a)}var zm={onDragEnd:function(e){e.exitCurrentMode(),Hs(e)},onDrop:function(e,n){var a=new Im(n.nativeEvent.dataTransfer),i=e._latestEditorState,s=Um(n.nativeEvent,i);if(n.preventDefault(),e._dragCount=0,e.exitCurrentMode(),s!=null){var c=a.getFiles();if(c.length>0){if(e.props.handleDroppedFiles&&qs(e.props.handleDroppedFiles(s,c)))return;$m(c,function(v){v&&e.update(Vs(i,s,v))});return}var l=e._internalDrag?"internal":"external";e.props.handleDrop&&qs(e.props.handleDrop(s,a,l))||(e._internalDrag?e.update(qm(i,s)):e.update(Vs(i,s,a.getText()))),Hs(e)}}};function Hs(r){r._internalDrag=!1;var e=r.editorContainer;if(e){var n=new MouseEvent("mouseup",{view:Pm(e),bubbles:!0,cancelable:!0});e.dispatchEvent(n)}}function qm(r,e){var n=af.moveText(r.getCurrentContent(),r.getSelection(),e);return of.push(r,n,"insert-fragment")}function Vs(r,e,n){var a=af.insertText(r.getCurrentContent(),e,n,r.getCurrentInlineStyle());return of.push(r,a,"insert-fragment")}var Hm=zm;function Vm(r){var e=r.getSelection(),n=e.getAnchorKey(),a=r.getBlockTree(n),i=e.getStartOffset(),s=!1;return a.some(function(c){return i===c.get("start")?(s=!0,!0):i<c.get("end")?c.get("leaves").some(function(l){var v=l.get("start");return i===v?(s=!0,!0):!1}):!1}),s}var Wm=Vm;(function(r,e){if(r.setImmediate)return;var n=1,a={},i=!1,s=r.document,c;function l(B){typeof B!="function"&&(B=new Function(""+B));for(var O=new Array(arguments.length-1),k=0;k<O.length;k++)O[k]=arguments[k+1];var M={callback:B,args:O};return a[n]=M,c(n),n++}function v(B){delete a[B]}function h(B){var O=B.callback,k=B.args;switch(k.length){case 0:O();break;case 1:O(k[0]);break;case 2:O(k[0],k[1]);break;case 3:O(k[0],k[1],k[2]);break;default:O.apply(e,k);break}}function y(B){if(i)setTimeout(y,0,B);else{var O=a[B];if(O){i=!0;try{h(O)}finally{v(B),i=!1}}}}function w(){c=function(B){process.nextTick(function(){y(B)})}}function d(){if(r.postMessage&&!r.importScripts){var B=!0,O=r.onmessage;return r.onmessage=function(){B=!1},r.postMessage("","*"),r.onmessage=O,B}}function E(){var B="setImmediate$"+Math.random()+"$",O=function(k){k.source===r&&typeof k.data=="string"&&k.data.indexOf(B)===0&&y(+k.data.slice(B.length))};r.addEventListener?r.addEventListener("message",O,!1):r.attachEvent("onmessage",O),c=function(k){r.postMessage(B+k,"*")}}function m(){var B=new MessageChannel;B.port1.onmessage=function(O){var k=O.data;y(k)},c=function(O){B.port2.postMessage(O)}}function S(){var B=s.documentElement;c=function(O){var k=s.createElement("script");k.onreadystatechange=function(){y(O),k.onreadystatechange=null,B.removeChild(k),k=null},B.appendChild(k)}}function C(){c=function(B){setTimeout(y,0,B)}}var T=Object.getPrototypeOf&&Object.getPrototypeOf(r);T=T&&T.setTimeout?T:r,{}.toString.call(r.process)==="[object process]"?w():d()?E():r.MessageChannel?m():s&&"onreadystatechange"in s.createElement("script")?S():C(),T.setImmediate=l,T.clearImmediate=v})(typeof self>"u"?typeof window>"u"?va.commonjsGlobal:window:self);var jm=window.setImmediate,Gm=We,ca=ye,Jm=Ge,Ws=Da,Xm=Gn,Ym=Wm,js=je,Zm=jm,Qm="'",e_="/",t_=Jm.isBrowser("Firefox");function r_(r){return t_&&(r==Qm||r==e_)}function Gs(r,e,n,a,i){var s=Gm.replaceText(r.getCurrentContent(),r.getSelection(),e,n,a);return ca.push(r,s,"insert-characters",i)}function n_(r,e){r._pendingStateFromBeforeInput!==void 0&&(r.update(r._pendingStateFromBeforeInput),r._pendingStateFromBeforeInput=void 0);var n=r._latestEditorState,a=e.data;if(a){if(r.props.handleBeforeInput&&Xm(r.props.handleBeforeInput(a,n,e.timeStamp))){e.preventDefault();return}var i=n.getSelection(),s=i.getStartOffset(),c=i.getAnchorKey();if(!i.isCollapsed()){e.preventDefault(),r.update(Gs(n,a,n.getCurrentInlineStyle(),Ws(n.getCurrentContent(),n.getSelection()),!0));return}var l=Gs(n,a,n.getCurrentInlineStyle(),Ws(n.getCurrentContent(),n.getSelection()),!1),v=!1;if(v||(v=Ym(r._latestCommittedEditorState)),!v){var h=n.getBlockTree(c),y=l.getBlockTree(c);v=h.size!==y.size||h.zip(y).some(function(w){var d=w[0],E=w[1],m=d.get("start"),S=m+(m>=s?a.length:0),C=d.get("end"),T=C+(C>=s?a.length:0),B=E.get("start"),O=E.get("end"),k=E.get("decoratorKey");return d.get("decoratorKey")!==k||d.get("leaves").size!==E.get("leaves").size||S!==B||T!==O||k!=null&&O-B!==C-m})}if(v||(v=r_(a)),v||(v=js(l.getDirectionMap()).get(c)!==js(n.getDirectionMap()).get(c)),v){e.preventDefault(),l=ca.set(l,{forceSelection:!0}),r.update(l);return}l=ca.set(l,{nativelyRenderedContent:l.getCurrentContent()}),r._pendingStateFromBeforeInput=l,Zm(function(){r._pendingStateFromBeforeInput!==void 0&&(r.update(r._pendingStateFromBeforeInput),r._pendingStateFromBeforeInput=void 0)})}}var i_=n_,a_=ye,Js=Oa,o_=Uc;function s_(r,e){var n=e.currentTarget.ownerDocument;if(!r.props.preserveSelectionOnBlur&&o_(n)===n.body){var a=n.defaultView.getSelection(),i=r.editor;a.rangeCount===1&&Js(i,a.anchorNode)&&Js(i,a.focusNode)&&a.removeAllRanges()}var s=r._latestEditorState,c=s.getSelection();if(c.getHasFocus()){var l=c.set("hasFocus",!1);r.props.onBlur&&r.props.onBlur(e),r.update(a_.acceptSelection(s,l))}}var u_=s_,c_=ye;function f_(r,e){r.setMode("composite"),r.update(c_.set(r._latestEditorState,{inCompositionMode:!0})),r._onCompositionStart(e)}var l_=f_,v_=Rn;function p_(r){var e=r.getSelection();return e.isCollapsed()?null:v_(r.getCurrentContent(),e)}var sf=p_,d_=sf;function h_(r,e){var n=r._latestEditorState,a=n.getSelection();if(a.isCollapsed()){e.preventDefault();return}r.setClipboard(d_(r._latestEditorState))}var g_=h_;function y_(r){if(!r||!("ownerDocument"in r))return!1;if("ownerDocument"in r){var e=r;if(!e.ownerDocument.defaultView)return e instanceof Node;if(e instanceof e.ownerDocument.defaultView.Node)return!0}return!1}var m_=y_,__=We,E_=ye,S_=Vn,w_=sf,C_=Wn,D_=m_;function b_(r,e){var n=r._latestEditorState,a=n.getSelection(),i=e.target,s;if(a.isCollapsed()){e.preventDefault();return}if(D_(i)){var c=i;s=C_(S_.getScrollParent(c))}var l=w_(n);r.setClipboard(l),r.setMode("cut"),setTimeout(function(){r.restoreEditorDOM(s),r.exitCurrentMode(),r.update(O_(n))},0)}function O_(r){var e=__.removeRange(r.getCurrentContent(),r.getSelection(),"forward");return E_.push(r,e,"remove-range")}var T_=b_;function k_(r,e){r.setMode("drag"),e.preventDefault()}var x_=k_;function B_(r){r._internalDrag=!0,r.setMode("drag")}var K_=B_,Xs=ye,M_=Ge;function A_(r,e){var n=r._latestEditorState,a=n.getSelection();if(!a.getHasFocus()){var i=a.set("hasFocus",!0);r.props.onFocus&&r.props.onFocus(e),M_.isBrowser("Chrome < 60.0.3081.0")?r.update(Xs.forceSelection(n,i)):r.update(Xs.acceptSelection(n,i))}}var N_=A_,Ys=ve,uf=55296,I_=56319,R_=56320,cf=57343,L_=/[\uD800-\uDFFF]/;function ff(r){return uf<=r&&r<=cf}function $_(r,e){if(0<=e&&e<r.length||(process.env.NODE_ENV!=="production"?Ys(!1,"isSurrogatePair: Invalid index %s for string length %s.",e,r.length):Ys(!1)),e+1===r.length)return!1;var n=r.charCodeAt(e),a=r.charCodeAt(e+1);return uf<=n&&n<=I_&&R_<=a&&a<=cf}function xa(r){return L_.test(r)}function Er(r,e){return 1+ff(r.charCodeAt(e))}function F_(r){if(!xa(r))return r.length;for(var e=0,n=0;n<r.length;n+=Er(r,n))e++;return e}function lf(r,e,n){if(e=e||0,n=n===void 0?1/0:n||0,!xa(r))return r.substr(e,n);var a=r.length;if(a<=0||e>a||n<=0)return"";var i=0;if(e>0){for(;e>0&&i<a;e--)i+=Er(r,i);if(i>=a)return""}else if(e<0){for(i=a;e<0&&0<i;e++)i-=Er(r,i-1);i<0&&(i=0)}var s=a;if(n<a)for(s=i;n>0&&s<a;n--)s+=Er(r,s);return r.substring(i,s)}function P_(r,e,n){e=e||0,n=n===void 0?1/0:n||0,e<0&&(e=0),n<0&&(n=0);var a=Math.abs(n-e);return e=e<n?e:n,lf(r,e,a)}function U_(r){for(var e=[],n=0;n<r.length;n+=Er(r,n))e.push(r.codePointAt(n));return e}var z_={getCodePoints:U_,getUTF16Length:Er,hasSurrogateUnit:xa,isCodeUnitInSurrogateRange:ff,isSurrogatePair:$_,strlen:F_,substring:P_,substr:lf},tr=z_,q_=tf;function H_(r){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];var i=0,s="Warning: "+r.replace(/%s/g,function(){return n[i++]});typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}var V_=process.env.NODE_ENV!=="production"?function(r,e){if(e===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];H_.apply(void 0,[e].concat(a))}}:q_,Ba=V_,W_=Ba;function j_(r,e){var n=r.getSelection();process.env.NODE_ENV!=="production"&&W_(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var a=r.getCurrentContent(),i=n.getStartKey(),s=n.getStartOffset(),c=i,l=0;if(e>s){var v=a.getKeyBefore(i);if(v==null)c=i;else{c=v;var h=a.getBlockForKey(v);l=h.getText().length}}else l=s-e;return n.merge({focusKey:c,focusOffset:l,isBackward:!0})}var Ka=j_,G_=We,J_=Ht,Zs=J_("draft_tree_data_support");function X_(r,e,n){var a=r.getSelection(),i=r.getCurrentContent(),s=a,c=a.getAnchorKey(),l=a.getFocusKey(),v=i.getBlockForKey(c);if(Zs&&n==="forward"&&c!==l)return i;if(a.isCollapsed()){if(n==="forward"){if(r.isSelectionAtEndOfContent())return i;if(Zs){var h=a.getAnchorOffset()===i.getBlockForKey(c).getLength();if(h){var y=i.getBlockForKey(v.nextSibling);if(!y||y.getLength()===0)return i}}}else if(r.isSelectionAtStartOfContent())return i;if(s=e(r),s===a)return i}return G_.removeRange(i,s,n)}var tn=X_,Y_=ye,Z_=tr,Q_=Ka,eE=tn;function tE(r){var e=eE(r,function(a){var i=a.getSelection(),s=a.getCurrentContent(),c=i.getAnchorKey(),l=i.getAnchorOffset(),v=s.getBlockForKey(c).getText()[l-1];return Q_(a,v?Z_.getUTF16Length(v,0):1)},"backward");if(e===r.getCurrentContent())return r;var n=r.getSelection();return Y_.push(r,e.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}var vf=tE,rE=We,nE=Bt,iE=ye,aE=Ge,oE=Rc,sE=oE.notEmptyKey,uE=qn,cE=vf,fE=je,lE=aE.isEngine("Gecko"),vE=`
|
|
18
|
-
|
|
19
|
-
`;function pE(r,e){switch(r){case"deleteContentBackward":return cE(e)}return e}function dE(r,e){r._pendingStateFromBeforeInput!==void 0&&(r.update(r._pendingStateFromBeforeInput),r._pendingStateFromBeforeInput=void 0);var n=r.editor,a=n.ownerDocument.defaultView.getSelection(),i=a.anchorNode,s=a.isCollapsed,c=i?.nodeType!==Node.TEXT_NODE&&i?.nodeType!==Node.ELEMENT_NODE;if(!(i==null||c)){if(i.nodeType===Node.TEXT_NODE&&(i.previousSibling!==null||i.nextSibling!==null)){var l=i.parentNode;if(l==null)return;i.nodeValue=l.textContent;for(var v=l.firstChild;v!=null;v=v.nextSibling)v!==i&&l.removeChild(v)}var h=i.textContent,y=r._latestEditorState,w=fE(uE(i)),d=nE.decode(w),E=d.blockKey,m=d.decoratorKey,S=d.leafKey,C=y.getBlockTree(E).getIn([m,"leaves",S]),T=C.start,B=C.end,O=y.getCurrentContent(),k=O.getBlockForKey(E),M=k.getText().slice(T,B);if(h.endsWith(vE)&&(h=h.slice(0,-1)),h===M){var X=e.nativeEvent.inputType;if(X){var j=pE(X,y);if(j!==y){r.restoreEditorDOM(),r.update(j);return}}return}var ue=y.getSelection(),I=ue.merge({anchorOffset:T,focusOffset:B,isBackward:!1}),R=k.getEntityAt(T),$=sE(R)?O.getEntity(R):null,F=$!=null?$.getMutability():null,N=F==="MUTABLE",P=N?"spellcheck-change":"apply-entity",V=rE.replaceText(O,I,h,k.getInlineStyleAt(T),N?k.getEntityAt(T):null),G,W,re,ne;if(lE)G=a.anchorOffset,W=a.focusOffset,re=T+Math.min(G,W),ne=re+Math.abs(G-W),G=re,W=ne;else{var Y=h.length-M.length;re=ue.getStartOffset(),ne=ue.getEndOffset(),G=s?ne+Y:re,W=ne+Y}var ee=V.merge({selectionBefore:O.getSelectionAfter(),selectionAfter:ue.merge({anchorOffset:G,focusOffset:W})});r.update(iE.push(y,ee,P))}}var hE=dE,gE=Hn;function yE(r){return r.which===gE.RETURN&&(r.getModifierState("Shift")||r.getModifierState("Alt")||r.getModifierState("Control"))}var mE=yE,_E=Ge,EE=mE,Pi=_E.isPlatform("Mac OS X"),pf={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return Pi&&e.altKey},usesMacOSHeuristics:function(){return Pi},hasCommandModifier:function(e){return Pi?!!e.metaKey&&!e.altKey:pf.isCtrlKeyCommand(e)},isSoftNewlineEvent:EE},Ma=pf,Qs=We,eu=ye,SE=Rn,wE=je,Ui=null,CE={cut:function(e){var n=e.getCurrentContent(),a=e.getSelection(),i=null;if(a.isCollapsed()){var s=a.getAnchorKey(),c=n.getBlockForKey(s).getLength();if(c===a.getAnchorOffset()){var l=n.getKeyAfter(s);if(l==null)return e;i=a.set("focusKey",l).set("focusOffset",0)}else i=a.set("focusOffset",c)}else i=a;i=wE(i),Ui=SE(n,i);var v=Qs.removeRange(n,i,"forward");return v===n?e:eu.push(e,v,"remove-range")},paste:function(e){if(!Ui)return e;var n=Qs.replaceWithFragment(e.getCurrentContent(),e.getSelection(),Ui);return eu.push(e,n,"insert-fragment")}},DE=CE,bE=Ge,tu=ve,OE=bE.isBrowser("Chrome");function TE(r){for(var e=r.cloneRange(),n=[],a=r.endContainer;a!=null;a=a.parentNode){var i=a===r.commonAncestorContainer;i?e.setStart(r.startContainer,r.startOffset):e.setStart(e.endContainer,0);var s=Array.from(e.getClientRects());if(n.push(s),i){var c;return n.reverse(),(c=[]).concat.apply(c,n)}e.setEndBefore(a)}process.env.NODE_ENV!=="production"?tu(!1,"Found an unexpected detached subtree when getting range client rects."):tu(!1)}var kE=OE?TE:function(r){return Array.from(r.getClientRects())},df=kE,xE=tr,BE=zn,ru=df,_r=ve;function KE(r){var e=getComputedStyle(r),n=BE(r),a=n.createElement("div");a.style.fontFamily=e.fontFamily,a.style.fontSize=e.fontSize,a.style.fontStyle=e.fontStyle,a.style.fontWeight=e.fontWeight,a.style.lineHeight=e.lineHeight,a.style.position="absolute",a.textContent="M";var i=n.body;i||(process.env.NODE_ENV!=="production"?_r(!1,"Missing document.body"):_r(!1)),i.appendChild(a);var s=a.getBoundingClientRect();return i.removeChild(a),s.height}function nu(r,e){for(var n=1/0,a=1/0,i=-1/0,s=-1/0,c=0;c<r.length;c++){var l=r[c];l.width===0||l.width===1||(n=Math.min(n,l.top),a=Math.min(a,l.bottom),i=Math.max(i,l.top),s=Math.max(s,l.bottom))}return i<=a&&i-n<e&&s-a<e}function ME(r){switch(r.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return r.length;default:return r.childNodes.length}}function AE(r){r.collapsed||(process.env.NODE_ENV!=="production"?_r(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):_r(!1)),r=r.cloneRange();var e=r.startContainer;e.nodeType!==1&&(e=e.parentNode);var n=KE(e),a=r.endContainer,i=r.endOffset;for(r.setStart(r.startContainer,0);nu(ru(r),n)&&(a=r.startContainer,i=r.startOffset,a.parentNode||(process.env.NODE_ENV!=="production"?_r(!1,"Found unexpected detached subtree when traversing."):_r(!1)),r.setStartBefore(a),!(a.nodeType===1&&getComputedStyle(a).display!=="inline")););var s=a,c=i-1;do{for(var l=s.nodeValue,v=c;v>=0;v--)if(!(l!=null&&v>0&&xE.isSurrogatePair(l,v-1)))if(r.setStart(s,v),nu(ru(r),n))a=s,i=v;else break;if(v===-1||s.childNodes.length===0)break;s=s.childNodes[v],c=ME(s)}while(!0);return r.setStart(a,i),r}var NE=AE,IE=ye,RE=NE,LE=Ac,$E=Ka,FE=tn;function PE(r,e){var n=FE(r,function(a){var i=a.getSelection();if(i.isCollapsed()&&i.getAnchorOffset()===0)return $E(a,1);var s=e.currentTarget.ownerDocument,c=s.defaultView.getSelection(),l=c.getRangeAt(0);return l=RE(l),LE(a,null,l.endContainer,l.endOffset,l.startContainer,l.startOffset).selectionState},"backward");return n===r.getCurrentContent()?r:IE.push(r,n,"remove-range")}var UE=PE,zE=`[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]`,qE={getPunctuation:function(){return zE}},HE=qE,VE=HE.getPunctuation(),hf="['‘’]",Sr="\\s|(?![_])"+VE,WE="^(?:"+Sr+")*(?:"+hf+"|(?!"+Sr+").)*(?:(?!"+Sr+").)",jE=new RegExp(WE),GE="(?:(?!"+Sr+").)(?:"+hf+"|(?!"+Sr+").)*(?:"+Sr+")*$",JE=new RegExp(GE);function iu(r,e){var n=e?JE.exec(r):jE.exec(r);return n?n[0]:r}var XE={getBackward:function(e){return iu(e,!0)},getForward:function(e){return iu(e,!1)}},gf=XE,YE=gf,ZE=ye,au=Ka,QE=tn;function eS(r){var e=QE(r,function(n){var a=n.getSelection(),i=a.getStartOffset();if(i===0)return au(n,1);var s=a.getStartKey(),c=n.getCurrentContent(),l=c.getBlockForKey(s).getText().slice(0,i),v=YE.getBackward(l);return au(n,v.length||1)},"backward");return e===r.getCurrentContent()?r:ZE.push(r,e,"remove-range")}var tS=eS,rS=Ba;function nS(r,e){var n=r.getSelection();process.env.NODE_ENV!=="production"&&rS(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var a=n.getStartKey(),i=n.getStartOffset(),s=r.getCurrentContent(),c=a,l,v=s.getBlockForKey(a);return e>v.getText().length-i?(c=s.getKeyAfter(a),l=0):l=i+e,n.merge({focusKey:c,focusOffset:l})}var yf=nS,iS=gf,aS=ye,oS=yf,sS=tn;function uS(r){var e=sS(r,function(n){var a=n.getSelection(),i=a.getStartOffset(),s=a.getStartKey(),c=n.getCurrentContent(),l=c.getBlockForKey(s).getText().slice(i),v=iS.getForward(l);return oS(n,v.length||1)},"forward");return e===r.getCurrentContent()?r:aS.push(r,e,"remove-range")}var cS=uS,fS=We,lS=ye;function vS(r){var e=fS.splitBlock(r.getCurrentContent(),r.getSelection());return lS.push(r,e,"split-block")}var pS=vS,dS=ye;function hS(r){var e=r.getSelection(),n=e.getEndKey(),a=r.getCurrentContent(),i=a.getBlockForKey(n).getLength();return dS.set(r,{selection:e.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})}var gS=hS,yS=ye;function mS(r){var e=r.getSelection(),n=e.getStartKey();return yS.set(r,{selection:e.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}var _S=mS,ES=ye,SS=tr,wS=yf,CS=tn;function DS(r){var e=CS(r,function(a){var i=a.getSelection(),s=a.getCurrentContent(),c=i.getAnchorKey(),l=i.getAnchorOffset(),v=s.getBlockForKey(c).getText()[l];return wS(a,v?SS.getUTF16Length(v,0):1)},"forward");if(e===r.getCurrentContent())return r;var n=r.getSelection();return ES.push(r,e.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}var bS=DS,ou=We,su=ye,OS=Rn;function TS(r){var e=r.getSelection();if(!e.isCollapsed())return r;var n=e.getAnchorOffset();if(n===0)return r;var a=e.getAnchorKey(),i=r.getCurrentContent(),s=i.getBlockForKey(a),c=s.getLength();if(c<=1)return r;var l,v;n===c?(l=e.set("anchorOffset",n-1),v=e):(l=e.set("focusOffset",n+1),v=l.set("anchorOffset",n+1));var h=OS(i,l),y=ou.removeRange(i,l,"backward"),w=y.getSelectionAfter(),d=w.getAnchorOffset()-1,E=w.merge({anchorOffset:d,focusOffset:d}),m=ou.replaceWithFragment(y,E,h),S=su.push(r,m,"insert-fragment");return su.acceptSelection(S,v)}var kS=TS,zi=ye;function xS(r,e,n){var a=zi.undo(e);if(e.getLastChangeType()==="spellcheck-change"){var i=a.getCurrentContent();n(zi.set(a,{nativelyRenderedContent:i}));return}if(r.preventDefault(),!e.getNativelyRenderedContent()){n(a);return}n(zi.set(e,{nativelyRenderedContent:null})),setTimeout(function(){n(a)},0)}var BS=xS,KS=We,mf=ye,MS=Ma,Ot=Hn,uu=DE,AS=Ge,cu=Gn,NS=UE,IS=tS,RS=cS,LS=pS,$S=gS,FS=_S,PS=vf,US=bS,zS=kS,qS=BS,fu=MS.isOptionKeyCommand,lu=AS.isBrowser("Chrome");function HS(r,e,n){switch(r){case"redo":return mf.redo(e);case"delete":return US(e);case"delete-word":return RS(e);case"backspace":return PS(e);case"backspace-word":return IS(e);case"backspace-to-start-of-line":return NS(e,n);case"split-block":return LS(e);case"transpose-characters":return zS(e);case"move-selection-to-start-of-block":return FS(e);case"move-selection-to-end-of-block":return $S(e);case"secondary-cut":return uu.cut(e);case"secondary-paste":return uu.paste(e);default:return e}}function VS(r,e){var n=e.which,a=r._latestEditorState;function i(v){var h=r.props[v];return h?(h(e),!0):!1}switch(n){case Ot.RETURN:if(e.preventDefault(),r.props.handleReturn&&cu(r.props.handleReturn(e,a)))return;break;case Ot.ESC:if(e.preventDefault(),i("onEscape"))return;break;case Ot.TAB:if(i("onTab"))return;break;case Ot.UP:if(i("onUpArrow"))return;break;case Ot.RIGHT:if(i("onRightArrow"))return;break;case Ot.DOWN:if(i("onDownArrow"))return;break;case Ot.LEFT:if(i("onLeftArrow"))return;break;case Ot.SPACE:lu&&fu(e)&&e.preventDefault()}var s=r.props.keyBindingFn(e);if(s==null||s===""){if(n===Ot.SPACE&&lu&&fu(e)){var c=KS.replaceText(a.getCurrentContent(),a.getSelection()," ");r.update(mf.push(a,c,"insert-characters"))}return}if(s==="undo"){qS(e,a,r.update);return}if(e.preventDefault(),!(r.props.handleKeyCommand&&cu(r.props.handleKeyCommand(s,a,e.timeStamp)))){var l=HS(s,a,e);l!==a&&r.update(l)}}var WS=VS;function jS(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var GS=function(){function r(n){jS(this,"_uri",void 0),this._uri=n}var e=r.prototype;return e.toString=function(){return this._uri},r}(),JS=GS,XS=Ge,vu=ve,YS=XS.isBrowser("IE <= 9");function ZS(r){var e,n=null;return!YS&&document.implementation&&document.implementation.createHTMLDocument&&(e=document.implementation.createHTMLDocument("foo"),e.documentElement||(process.env.NODE_ENV!=="production"?vu(!1,"Missing doc.documentElement"):vu(!1)),e.documentElement.innerHTML=r,n=e.getElementsByTagName("body")[0]),n}var _f=ZS,QS=Qt;function ew(r){return!r||!r.ownerDocument?!1:QS(r)&&r.nodeName==="A"}var tw=ew,rw=Qt;function nw(r){return!r||!r.ownerDocument?!1:rw(r)&&r.nodeName==="IMG"}var iw=nw,jt;function qi(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){Ae(r,i,n[i])})}return r}function Ae(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var aw=at,ow=Cr,sw=ot,uw=wa,pu=Ln,Ef=JS,Fr=Yt,du=Ct,cw=_f,Sf=Ht,Aa=le,Lt=Aa.List,wf=Aa.Map,fw=Aa.OrderedSet,Cf=tw,lw=$c,Na=en,Df=iw,hu=Sf("draft_tree_data_support"),vw=" ",bf=" ",pw=new RegExp("\r","g"),dw=new RegExp(`
|
|
20
|
-
`,"g"),hw=new RegExp(`^
|
|
21
|
-
`,"g"),gw=new RegExp(vw,"g"),yw=new RegExp(" ?","g"),mw=new RegExp("​?","g"),_w=["bold","bolder","500","600","700","800","900"],Ew=["light","lighter","normal","100","200","300","400"],Sw=["className","href","rel","target","title"],ww=["alt","className","height","src","width"],gu=(jt={},Ae(jt,Fr("public/DraftStyleDefault/depth0"),0),Ae(jt,Fr("public/DraftStyleDefault/depth1"),1),Ae(jt,Fr("public/DraftStyleDefault/depth2"),2),Ae(jt,Fr("public/DraftStyleDefault/depth3"),3),Ae(jt,Fr("public/DraftStyleDefault/depth4"),4),jt),yu=wf({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),Cw=function(e){var n={};return e.mapKeys(function(a,i){var s=[i.element];i.aliasedElements!==void 0&&s.push.apply(s,i.aliasedElements),s.forEach(function(c){n[c]===void 0?n[c]=a:typeof n[c]=="string"?n[c]=[n[c],a]:n[c].push(a)})}),wf(n)},Dw=function(e){if(Na(e)){var n=e;if(n.style.fontFamily.includes("monospace"))return"CODE"}return null},bw=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Object.keys(gu).some(function(a){e.classList.contains(a)&&(n=gu[a])}),n},Ow=function(e){if(!Cf(e))return!1;var n=e;if(!n.href||n.protocol!=="http:"&&n.protocol!=="https:"&&n.protocol!=="mailto:"&&n.protocol!=="tel:")return!1;try{var a=new Ef(n.href);return!0}catch{return!1}},Tw=function(e){if(!Df(e))return!1;var n=e;return!!(n.attributes.getNamedItem("src")&&n.attributes.getNamedItem("src").value)},kw=function(e,n){if(!Na(e))return n;var a=e,i=a.style.fontWeight,s=a.style.fontStyle,c=a.style.textDecoration;return n.withMutations(function(l){_w.indexOf(i)>=0?l.add("BOLD"):Ew.indexOf(i)>=0&&l.remove("BOLD"),s==="italic"?l.add("ITALIC"):s==="normal"&&l.remove("ITALIC"),c==="underline"&&l.add("UNDERLINE"),c==="line-through"&&l.add("STRIKETHROUGH"),c==="none"&&(l.remove("UNDERLINE"),l.remove("STRIKETHROUGH"))})},Hi=function(e){return e==="ul"||e==="ol"},xw=function(){function r(n,a){Ae(this,"characterList",Lt()),Ae(this,"currentBlockType","unstyled"),Ae(this,"currentDepth",0),Ae(this,"currentEntity",null),Ae(this,"currentText",""),Ae(this,"wrapper",null),Ae(this,"blockConfigs",[]),Ae(this,"contentBlocks",[]),Ae(this,"entityMap",pu),Ae(this,"blockTypeMap",void 0),Ae(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=n,this.disambiguate=a}var e=r.prototype;return e.clear=function(){this.characterList=Lt(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=pu,this.wrapper=null,this.contentBlocks=[]},e.addDOMNode=function(a){var i;return this.contentBlocks=[],this.currentDepth=0,(i=this.blockConfigs).push.apply(i,this._toBlockConfigs([a],fw())),this._trimCurrentText(),this.currentText!==""&&this.blockConfigs.push(this._makeBlockConfig()),this},e.getContentBlocks=function(){return this.contentBlocks.length===0&&(hu?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},e._makeBlockConfig=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.key||du(),s=qi({key:i,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:Lt(),prevSibling:null,nextSibling:null,childConfigs:[]},a);return this.characterList=Lt(),this.currentBlockType="unstyled",this.currentText="",s},e._toBlockConfigs=function(a,i){for(var s=[],c=0;c<a.length;c++){var l=a[c],v=l.nodeName.toLowerCase();if(v==="body"||Hi(v)){this._trimCurrentText(),this.currentText!==""&&s.push(this._makeBlockConfig());var h=this.currentDepth,y=this.wrapper;Hi(v)&&(this.wrapper=v,Hi(y)&&this.currentDepth++),s.push.apply(s,this._toBlockConfigs(Array.from(l.childNodes),i)),this.currentDepth=h,this.wrapper=y;continue}var w=this.blockTypeMap.get(v);if(w!==void 0){this._trimCurrentText(),this.currentText!==""&&s.push(this._makeBlockConfig());var d=this.currentDepth,E=this.wrapper;if(this.wrapper=v==="pre"?"pre":this.wrapper,typeof w!="string"&&(w=this.disambiguate(v,this.wrapper)||w[0]||"unstyled"),!hu&&Na(l)&&(w==="unordered-list-item"||w==="ordered-list-item")){var m=l;this.currentDepth=bw(m,this.currentDepth)}var S=du(),C=this._toBlockConfigs(Array.from(l.childNodes),i);this._trimCurrentText(),s.push(this._makeBlockConfig({key:S,childConfigs:C,type:w})),this.currentDepth=d,this.wrapper=E;continue}if(v==="#text"){this._addTextNode(l,i);continue}if(v==="br"){this._addBreakNode(l,i);continue}if(Tw(l)){this._addImgNode(l,i);continue}if(Ow(l)){this._addAnchorNode(l,s,i);continue}var T=i;yu.has(v)&&(T=T.add(yu.get(v))),T=kw(l,T);var B=Dw(l);B!=null&&(T=T.add(B)),s.push.apply(s,this._toBlockConfigs(Array.from(l.childNodes),T))}return s},e._appendText=function(a,i){var s;this.currentText+=a;var c=aw.create({style:i,entity:this.currentEntity});this.characterList=(s=this.characterList).push.apply(s,Array(a.length).fill(c))},e._trimCurrentText=function(){var a=this.currentText.length,i=a-this.currentText.trimLeft().length,s=this.currentText.trimRight().length,c=this.characterList.findEntry(function(l){return l.getEntity()!==null});i=c!==void 0?Math.min(i,c[0]):i,c=this.characterList.reverse().findEntry(function(l){return l.getEntity()!==null}),s=c!==void 0?Math.max(s,a-c[0]):s,i>s?(this.currentText="",this.characterList=Lt()):(this.currentText=this.currentText.slice(i,s),this.characterList=this.characterList.slice(i,s))},e._addTextNode=function(a,i){var s=a.textContent,c=s.trim();c===""&&this.wrapper!=="pre"&&(s=" "),this.wrapper!=="pre"&&(s=s.replace(hw,""),s=s.replace(dw,bf)),this._appendText(s,i)},e._addBreakNode=function(a,i){lw(a)&&this._appendText(`
|
|
22
|
-
`,i)},e._addImgNode=function(a,i){if(Df(a)){var s=a,c={};ww.forEach(function(l){var v=s.getAttribute(l);v&&(c[l]=v)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",c),Sf("draftjs_fix_paste_for_img")?s.getAttribute("role")!=="presentation"&&this._appendText("📷",i):this._appendText("📷",i),this.currentEntity=null}},e._addAnchorNode=function(a,i,s){if(Cf(a)){var c=a,l={};Sw.forEach(function(v){var h=c.getAttribute(v);h&&(l[v]=h)}),l.url=new Ef(c.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",l||{}),i.push.apply(i,this._toBlockConfigs(Array.from(a.childNodes),s)),this.currentEntity=null}},e._toContentBlocks=function(a){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,s=a.length-1,c=0;c<=s;c++){var l=a[c];l.parent=i,l.prevSibling=c>0?a[c-1].key:null,l.nextSibling=c<s?a[c+1].key:null,l.children=Lt(l.childConfigs.map(function(v){return v.key})),this.contentBlocks.push(new sw(qi({},l))),this._toContentBlocks(l.childConfigs,l.key)}},e._hoistContainersInBlockConfigs=function(a){var i=this,s=Lt(a).flatMap(function(c){return c.type!=="unstyled"||c.text!==""?[c]:i._hoistContainersInBlockConfigs(c.childConfigs)});return s},e._toFlatContentBlocks=function(a){var i=this,s=this._hoistContainersInBlockConfigs(a);s.forEach(function(c){var l=i._extractTextFromBlockConfigs(c.childConfigs),v=l.text,h=l.characterList;i.contentBlocks.push(new ow(qi({},c,{text:c.text+v,characterList:c.characterList.concat(h)})))})},e._extractTextFromBlockConfigs=function(a){for(var i=a.length-1,s="",c=Lt(),l=0;l<=i;l++){var v=a[l];s+=v.text,c=c.concat(v.characterList),s!==""&&v.type!=="unstyled"&&(s+=`
|
|
23
|
-
`,c=c.push(c.last()));var h=this._extractTextFromBlockConfigs(v.childConfigs);s+=h.text,c=c.concat(h.characterList)}return{text:s,characterList:c}},r}(),Bw=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cw,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:uw;e=e.trim().replace(pw,"").replace(gw,bf).replace(yw,"").replace(mw,"");var i=n(e);if(!i)return null;var s=Cw(a),c=function(v,h){return v==="li"?h==="ol"?"ordered-list-item":"unordered-list-item":null};return new xw(s,c).addDOMNode(i).getContentBlocks()},Of=Bw;function Kw(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){Mw(r,i,n[i])})}return r}function Mw(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var Aw=Cr,Nw=ot,Iw=Of,Rw=Ct,Lw=_f,$w=Ht,Tf=le,Fw=oc,Pw=Tf.List,Uw=Tf.Repeat,kf=$w("draft_tree_data_support"),zw=kf?Nw:Aw,qw={processHTML:function(e,n){return Iw(e,Lw,n)},processText:function(e,n,a){return e.reduce(function(i,s,c){s=Fw(s);var l=Rw(),v={key:l,type:a,text:s,characterList:Pw(Uw(n,s.length))};if(kf&&c!==0){var h=c-1,y=i[h]=i[h].merge({nextSibling:l});v=Kw({},v,{prevSibling:y.getKey()})}return i.push(new zw(v)),i},[])}},Hw=qw;function Vw(r,e,n,a){var i=e.getStartKey(),s=e.getEndKey(),c=r.getBlockMap(),l=c.toSeq().skipUntil(function(v,h){return h===i}).takeUntil(function(v,h){return h===s}).concat([[s,c.get(s)]]).map(function(v){var h=v.getDepth()+n;return h=Math.max(0,Math.min(h,a)),v.set("depth",h)});return c=c.merge(l),r.merge({blockMap:c,selectionBefore:e,selectionAfter:e})}var Ww=Vw,Gt=We,_t=ye,jw=Ww,Gw=je,wt={currentBlockContainsLink:function(e){var n=e.getSelection(),a=e.getCurrentContent(),i=a.getEntityMap();return a.getBlockForKey(n.getAnchorKey()).getCharacterList().slice(n.getStartOffset(),n.getEndOffset()).some(function(s){var c=s.getEntity();return!!c&&i.__get(c).getType()==="LINK"})},getCurrentBlockType:function(e){var n=e.getSelection();return e.getCurrentContent().getBlockForKey(n.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,n,a){switch(n){case"bold":return wt.toggleInlineStyle(e,"BOLD");case"italic":return wt.toggleInlineStyle(e,"ITALIC");case"underline":return wt.toggleInlineStyle(e,"UNDERLINE");case"code":return wt.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return wt.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return wt.onDelete(e);default:return null}},insertSoftNewline:function(e){var n=Gt.insertText(e.getCurrentContent(),e.getSelection(),`
|
|
24
|
-
`,e.getCurrentInlineStyle(),null),a=_t.push(e,n,"insert-characters");return _t.forceSelection(a,n.getSelectionAfter())},onBackspace:function(e){var n=e.getSelection();if(!n.isCollapsed()||n.getAnchorOffset()||n.getFocusOffset())return null;var a=e.getCurrentContent(),i=n.getStartKey(),s=a.getBlockBefore(i);if(s&&s.getType()==="atomic"){var c=a.getBlockMap().delete(s.getKey()),l=a.merge({blockMap:c,selectionAfter:n});if(l!==a)return _t.push(e,l,"remove-range")}var v=wt.tryToRemoveBlockStyle(e);return v?_t.push(e,v,"change-block-type"):null},onDelete:function(e){var n=e.getSelection();if(!n.isCollapsed())return null;var a=e.getCurrentContent(),i=n.getStartKey(),s=a.getBlockForKey(i),c=s.getLength();if(n.getStartOffset()<c)return null;var l=a.getBlockAfter(i);if(!l||l.getType()!=="atomic")return null;var v=n.merge({focusKey:l.getKey(),focusOffset:l.getLength()}),h=Gt.removeRange(a,v,"forward");return h!==a?_t.push(e,h,"remove-range"):null},onTab:function(e,n,a){var i=n.getSelection(),s=i.getAnchorKey();if(s!==i.getFocusKey())return n;var c=n.getCurrentContent(),l=c.getBlockForKey(s),v=l.getType();if(v!=="unordered-list-item"&&v!=="ordered-list-item")return n;e.preventDefault();var h=l.getDepth();if(!e.shiftKey&&h===a)return n;var y=jw(c,i,e.shiftKey?-1:1,a);return _t.push(n,y,"adjust-depth")},toggleBlockType:function(e,n){var a=e.getSelection(),i=a.getStartKey(),s=a.getEndKey(),c=e.getCurrentContent(),l=a;if(i!==s&&a.getEndOffset()===0){var v=Gw(c.getBlockBefore(s));s=v.getKey(),l=l.merge({anchorKey:i,anchorOffset:a.getStartOffset(),focusKey:s,focusOffset:v.getLength(),isBackward:!1})}var h=c.getBlockMap().skipWhile(function(w,d){return d!==i}).reverse().skipWhile(function(w,d){return d!==s}).some(function(w){return w.getType()==="atomic"});if(h)return e;var y=c.getBlockForKey(i).getType()===n?"unstyled":n;return _t.push(e,Gt.setBlockType(c,l,y),"change-block-type")},toggleCode:function(e){var n=e.getSelection(),a=n.getAnchorKey(),i=n.getFocusKey();return n.isCollapsed()||a!==i?wt.toggleBlockType(e,"code-block"):wt.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,n){var a=e.getSelection(),i=e.getCurrentInlineStyle();if(a.isCollapsed())return _t.setInlineStyleOverride(e,i.has(n)?i.remove(n):i.add(n));var s=e.getCurrentContent(),c;return i.has(n)?c=Gt.removeInlineStyle(s,a,n):c=Gt.applyInlineStyle(s,a,n),_t.push(e,c,"change-inline-style")},toggleLink:function(e,n,a){var i=Gt.applyEntity(e.getCurrentContent(),n,a);return _t.push(e,i,"apply-entity")},tryToRemoveBlockStyle:function(e){var n=e.getSelection(),a=n.getAnchorOffset();if(n.isCollapsed()&&a===0){var i=n.getAnchorKey(),s=e.getCurrentContent(),c=s.getBlockForKey(i),l=c.getType(),v=s.getBlockBefore(i);if(l==="code-block"&&v&&v.getType()==="code-block"&&v.getLength()!==0)return null;if(l!=="unstyled")return Gt.setBlockType(s,n,"unstyled")}return null}},xf=wt,Jw=/\r\n?|\n/g;function Xw(r){return r.split(Jw)}var Yw=Xw,Vi=jr,mu=at,Zw=rf,Bf=We,Wi=Hw,Kf=ye,_u=xf,Eu=Da,Qw=nf,Su=Gn,wu=Yw;function eC(r,e){e.preventDefault();var n=new Zw(e.clipboardData);if(!n.isRichText()){var a=n.getFiles(),i=n.getText();if(a.length>0){if(r.props.handlePastedFiles&&Su(r.props.handlePastedFiles(a)))return;Qw(a,function(X){if(X=X||i,!!X){var j=r._latestEditorState,ue=wu(X),I=mu.create({style:j.getCurrentInlineStyle(),entity:Eu(j.getCurrentContent(),j.getSelection())}),R=_u.getCurrentBlockType(j),$=Wi.processText(ue,I,R),F=Vi.createFromArray($),N=Bf.replaceWithFragment(j.getCurrentContent(),j.getSelection(),F);r.update(Kf.push(j,N,"insert-fragment"))}});return}}var s=[],c=n.getText(),l=n.getHTML(),v=r._latestEditorState;if(r.props.formatPastedText){var h=r.props.formatPastedText(c,l),y=h.text,w=h.html;c=y,l=w}if(!(r.props.handlePastedText&&Su(r.props.handlePastedText(c,l,v)))){if(c&&(s=wu(c)),!r.props.stripPastedStyles){var d=r.getClipboard();if(!r.props.formatPastedText&&n.isRichText()&&d){var E;if(((E=l)===null||E===void 0?void 0:E.indexOf(r.getEditorKey()))!==-1||s.length===1&&d.size===1&&d.first().getText()===c){r.update(xn(r._latestEditorState,d));return}}else if(d&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&tC(s,d)){r.update(xn(r._latestEditorState,d));return}if(l){var m=Wi.processHTML(l,r.props.blockRenderMap);if(m){var S=m.contentBlocks,C=m.entityMap;if(S){var T=Vi.createFromArray(S);r.update(xn(r._latestEditorState,T,C));return}}}r.setClipboard(null)}if(s.length){var B=mu.create({style:v.getCurrentInlineStyle(),entity:Eu(v.getCurrentContent(),v.getSelection())}),O=_u.getCurrentBlockType(v),k=Wi.processText(s,B,O),M=Vi.createFromArray(k);r.update(xn(r._latestEditorState,M))}}}function xn(r,e,n){var a=Bf.replaceWithFragment(r.getCurrentContent(),r.getSelection(),e);return Kf.push(r,a.set("entityMap",n),"insert-fragment")}function tC(r,e){return r.length===e.size&&e.valueSeq().every(function(n,a){return n.getText()===r[a]})}var rC=eC,Mf=Ge,nC=i_,iC=u_,aC=l_,oC=g_,sC=T_,uC=x_,cC=K_,fC=N_,lC=hE,vC=WS,pC=rC,Af=Ic,dC=Mf.isBrowser("Chrome"),hC=Mf.isBrowser("Firefox"),Cu=dC||hC?Af:function(r){},gC={onBeforeInput:nC,onBlur:iC,onCompositionStart:aC,onCopy:oC,onCut:sC,onDragOver:uC,onDragStart:cC,onFocus:fC,onInput:lC,onKeyDown:vC,onPaste:pC,onSelect:Af,onMouseUp:Cu,onKeyUp:Cu},yC=gC,mC=ml,_C=mC.unstable_flushControlled,EC=_C;function SC(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var ji=ct,Du=Yt,wC=function(r){SC(e,r);function e(){return r.apply(this,arguments)||this}var n=e.prototype;return n.shouldComponentUpdate=function(i){return this.props.text!==i.text||this.props.editorState.getSelection().getHasFocus()!==i.editorState.getSelection().getHasFocus()},n.render=function(){var i=this.props.editorState.getSelection().getHasFocus(),s=Du({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":i}),c={whiteSpace:"pre-wrap"};return ji.createElement("div",{className:s},ji.createElement("div",{className:Du("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:c},this.props.text))},e}(ji.Component),CC=wC,Nf=Ma,Pr=Hn,If=Ge,zt=If.isPlatform("Mac OS X"),bu=zt&&If.isBrowser("Firefox < 29"),Ft=Nf.hasCommandModifier,kt=Nf.isCtrlKeyCommand;function Rf(r){return zt&&r.altKey||kt(r)}function DC(r){return Ft(r)?r.shiftKey?"redo":"undo":null}function bC(r){return!zt&&r.shiftKey?null:Rf(r)?"delete-word":"delete"}function OC(r){return Ft(r)&&zt?"backspace-to-start-of-line":Rf(r)?"backspace-word":"backspace"}function TC(r){switch(r.keyCode){case 66:return Ft(r)?"bold":null;case 68:return kt(r)?"delete":null;case 72:return kt(r)?"backspace":null;case 73:return Ft(r)?"italic":null;case 74:return Ft(r)?"code":null;case 75:return zt&&kt(r)?"secondary-cut":null;case 77:return kt(r)?"split-block":null;case 79:return kt(r)?"split-block":null;case 84:return zt&&kt(r)?"transpose-characters":null;case 85:return Ft(r)?"underline":null;case 87:return zt&&kt(r)?"backspace-word":null;case 89:return kt(r)?zt?"secondary-paste":"redo":null;case 90:return DC(r)||null;case Pr.RETURN:return"split-block";case Pr.DELETE:return bC(r);case Pr.BACKSPACE:return OC(r);case Pr.LEFT:return bu&&Ft(r)?"move-selection-to-start-of-block":null;case Pr.RIGHT:return bu&&Ft(r)?"move-selection-to-end-of-block":null;default:return null}}var Lf=TC,kC=Zt;function fa(){return fa=kC||function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])}return r},fa.apply(this,arguments)}function Gi(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){U(r,i,n[i])})}return r}function z(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function U(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function $f(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var xC=wa,BC=Sc,KC=jg,MC=gm,AC=Hm,NC=yC,Ou=EC,IC=CC,RC=Fc,LC=ye,$t=ct,$C=ka,FC=Vn,PC=Ge,Ji=Yt,UC=Ct,zC=Lf,qC=Wn,HC=Ht,Bn=ve,Tu=en,VC=je,Ff=PC.isBrowser("IE"),WC=!Ff,ku={edit:NC,composite:KC,drag:AC,cut:null,render:null},xu=!1,jC=function(r){$f(e,r);function e(){return r.apply(this,arguments)||this}var n=e.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var i=this.props.editor;i._latestEditorState=this.props.editorState,i._blockSelectEvents=!0},e}($t.Component),Pf=function(r){$f(e,r);function e(a){var i;return i=r.call(this,a)||this,U(z(i),"_blockSelectEvents",void 0),U(z(i),"_clipboard",void 0),U(z(i),"_handler",void 0),U(z(i),"_dragCount",void 0),U(z(i),"_internalDrag",void 0),U(z(i),"_editorKey",void 0),U(z(i),"_placeholderAccessibilityID",void 0),U(z(i),"_latestEditorState",void 0),U(z(i),"_latestCommittedEditorState",void 0),U(z(i),"_pendingStateFromBeforeInput",void 0),U(z(i),"_onBeforeInput",void 0),U(z(i),"_onBlur",void 0),U(z(i),"_onCharacterData",void 0),U(z(i),"_onCompositionEnd",void 0),U(z(i),"_onCompositionStart",void 0),U(z(i),"_onCopy",void 0),U(z(i),"_onCut",void 0),U(z(i),"_onDragEnd",void 0),U(z(i),"_onDragOver",void 0),U(z(i),"_onDragStart",void 0),U(z(i),"_onDrop",void 0),U(z(i),"_onInput",void 0),U(z(i),"_onFocus",void 0),U(z(i),"_onKeyDown",void 0),U(z(i),"_onKeyPress",void 0),U(z(i),"_onKeyUp",void 0),U(z(i),"_onMouseDown",void 0),U(z(i),"_onMouseUp",void 0),U(z(i),"_onPaste",void 0),U(z(i),"_onSelect",void 0),U(z(i),"editor",void 0),U(z(i),"editorContainer",void 0),U(z(i),"focus",void 0),U(z(i),"blur",void 0),U(z(i),"setMode",void 0),U(z(i),"exitCurrentMode",void 0),U(z(i),"restoreEditorDOM",void 0),U(z(i),"setClipboard",void 0),U(z(i),"getClipboard",void 0),U(z(i),"getEditorKey",void 0),U(z(i),"update",void 0),U(z(i),"onDragEnter",void 0),U(z(i),"onDragLeave",void 0),U(z(i),"_handleEditorContainerRef",function(s){i.editorContainer=s,i.editor=s!==null?s.firstChild:null}),U(z(i),"focus",function(s){var c=i.props.editorState,l=c.getSelection().getHasFocus(),v=i.editor;if(v){var h=FC.getScrollParent(v),y=s||qC(h),w=y.x,d=y.y;Tu(v)||(process.env.NODE_ENV!=="production"?Bn(!1,"editorNode is not an HTMLElement"):Bn(!1)),v.focus(),h===window?window.scrollTo(w,d):$C.setTop(h,d),l||i.update(LC.forceSelection(c,c.getSelection()))}}),U(z(i),"blur",function(){var s=i.editor;s&&(Tu(s)||(process.env.NODE_ENV!=="production"?Bn(!1,"editorNode is not an HTMLElement"):Bn(!1)),s.blur())}),U(z(i),"setMode",function(s){var c=i.props,l=c.onPaste,v=c.onCut,h=c.onCopy,y=Gi({},ku.edit);l&&(y.onPaste=l),v&&(y.onCut=v),h&&(y.onCopy=h);var w=Gi({},ku,{edit:y});i._handler=w[s]}),U(z(i),"exitCurrentMode",function(){i.setMode("edit")}),U(z(i),"restoreEditorDOM",function(s){i.setState({contentsKey:i.state.contentsKey+1},function(){i.focus(s)})}),U(z(i),"setClipboard",function(s){i._clipboard=s}),U(z(i),"getClipboard",function(){return i._clipboard}),U(z(i),"update",function(s){i._latestEditorState=s,i.props.onChange(s)}),U(z(i),"onDragEnter",function(){i._dragCount++}),U(z(i),"onDragLeave",function(){i._dragCount--,i._dragCount===0&&i.exitCurrentMode()}),i._blockSelectEvents=!1,i._clipboard=null,i._handler=null,i._dragCount=0,i._editorKey=a.editorKey||UC(),i._placeholderAccessibilityID="placeholder-"+i._editorKey,i._latestEditorState=a.editorState,i._latestCommittedEditorState=a.editorState,i._onBeforeInput=i._buildHandler("onBeforeInput"),i._onBlur=i._buildHandler("onBlur"),i._onCharacterData=i._buildHandler("onCharacterData"),i._onCompositionEnd=i._buildHandler("onCompositionEnd"),i._onCompositionStart=i._buildHandler("onCompositionStart"),i._onCopy=i._buildHandler("onCopy"),i._onCut=i._buildHandler("onCut"),i._onDragEnd=i._buildHandler("onDragEnd"),i._onDragOver=i._buildHandler("onDragOver"),i._onDragStart=i._buildHandler("onDragStart"),i._onDrop=i._buildHandler("onDrop"),i._onInput=i._buildHandler("onInput"),i._onFocus=i._buildHandler("onFocus"),i._onKeyDown=i._buildHandler("onKeyDown"),i._onKeyPress=i._buildHandler("onKeyPress"),i._onKeyUp=i._buildHandler("onKeyUp"),i._onMouseDown=i._buildHandler("onMouseDown"),i._onMouseUp=i._buildHandler("onMouseUp"),i._onPaste=i._buildHandler("onPaste"),i._onSelect=i._buildHandler("onSelect"),i.getEditorKey=function(){return i._editorKey},process.env.NODE_ENV!=="production"&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach(function(s){a.hasOwnProperty(s)&&console.warn("Supplying an `".concat(s,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")}),i.state={contentsKey:0},i}var n=e.prototype;return n._buildHandler=function(i){var s=this;return function(c){if(!s.props.readOnly){var l=s._handler&&s._handler[i];l&&(Ou?Ou(function(){return l(s,c)}):l(s,c))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var i={text:VC(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return $t.createElement(IC,i)}return null},n._renderARIADescribedBy=function(){var i=this.props.ariaDescribedBy||"",s=this._showPlaceholder()?this._placeholderAccessibilityID:"";return i.replace("{{editor_id_placeholder}}",s)||void 0},n.render=function(){var i=this.props,s=i.blockRenderMap,c=i.blockRendererFn,l=i.blockStyleFn,v=i.customStyleFn,h=i.customStyleMap,y=i.editorState,w=i.preventScroll,d=i.readOnly,E=i.textAlignment,m=i.textDirectionality,S=Ji({"DraftEditor/root":!0,"DraftEditor/alignLeft":E==="left","DraftEditor/alignRight":E==="right","DraftEditor/alignCenter":E==="center"}),C={outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},T=this.props.role||"textbox",B=T==="combobox"?!!this.props.ariaExpanded:null,O={blockRenderMap:s,blockRendererFn:c,blockStyleFn:l,customStyleMap:Gi({},BC,h),customStyleFn:v,editorKey:this._editorKey,editorState:y,preventScroll:w,textDirectionality:m};return $t.createElement("div",{className:S},this._renderPlaceholder(),$t.createElement("div",{className:Ji("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},$t.createElement("div",{"aria-activedescendant":d?null:this.props.ariaActiveDescendantID,"aria-autocomplete":d?null:this.props.ariaAutoComplete,"aria-controls":d?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":d?null:B,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":d?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:Ji({notranslate:!d,"public/DraftEditor/content":!0}),contentEditable:!d,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:d?null:T,spellCheck:WC&&this.props.spellCheck,style:C,suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},$t.createElement(jC,{editor:this,editorState:y}),$t.createElement(MC,fa({},O,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!xu&&HC("draft_ods_enabled")&&(xu=!0,RC.initODS()),this.setMode("edit"),Ff&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):window.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},e}($t.Component);U(Pf,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:xC,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:zC,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var GC=Pf,JC={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},Uf=JC,XC=Uf,YC=tr,Bu=YC.strlen;function ZC(r,e){var n=[];return r.findEntityRanges(function(a){return!!a.getEntity()},function(a,i){var s=r.getText(),c=r.getEntityAt(a);n.push({offset:Bu(s.slice(0,a)),length:Bu(s.slice(a,i)),key:Number(e[XC.stringify(c)])})}),n}var QC=ZC;function zr(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){e0(r,i,n[i])})}return r}function e0(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var t0=Ct,In=ve,r0=function(e,n){for(var a=[].concat(e).reverse();a.length;){var i=a.pop();n(i);var s=i.children;Array.isArray(s)||(process.env.NODE_ENV!=="production"?In(!1,"Invalid tree raw block"):In(!1)),a=a.concat([].concat(s.reverse()))}},Ku=function(e){if(!(e&&e.type))return!1;var n=e.type;return n==="unordered-list-item"||n==="ordered-list-item"},n0=function(e){Array.isArray(e.children)&&(e.children=e.children.map(function(n){return n.type===e.type?zr({},n,{depth:(e.depth||0)+1}):n}))},i0={fromRawTreeStateToRawState:function(e){var n=e.blocks,a=[];return Array.isArray(n)||(process.env.NODE_ENV!=="production"?In(!1,"Invalid raw state"):In(!1)),!Array.isArray(n)||!n.length?e:(r0(n,function(i){var s=zr({},i);Ku(i)&&(s.depth=s.depth||0,n0(i),i.children!=null&&i.children.length>0)||(delete s.children,a.push(s))}),e.blocks=a,zr({},e,{blocks:a}))},fromRawStateToRawTreeState:function(e){var n=[],a=[];return e.blocks.forEach(function(i){var s=Ku(i),c=i.depth||0,l=zr({},i,{children:[]});if(!s){n.push(l);return}var v=a[0];if(v==null&&c===0)n.push(l);else if(v==null||v.depth<c-1){var h={key:t0(),text:"",depth:c-1,type:i.type,children:[],entityRanges:[],inlineStyleRanges:[]};a.unshift(h),c===1?n.push(h):v?.children.push(h),h.children.push(l)}else if(v.depth===c-1)v.children.push(l);else{for(;v!=null&&v.depth>=c;)a.shift(),v=a[0];c>0?v.children.push(l):n.push(l)}}),zr({},e,{blocks:n})}},a0=i0,Tt=Ba,o0={isValidBlock:function(e,n){var a=e.getKey(),i=e.getParentKey();if(i!=null){var s=n.get(i);if(!s.getChildKeys().includes(a))return process.env.NODE_ENV!=="production"&&Tt(!0,"Tree is missing parent -> child pointer on %s",a),!1}var c=e.getChildKeys().map(function(w){return n.get(w)});if(!c.every(function(w){return w.getParentKey()===a}))return process.env.NODE_ENV!=="production"&&Tt(!0,"Tree is missing child -> parent pointer on %s",a),!1;var l=e.getPrevSiblingKey();if(l!=null){var v=n.get(l);if(v.getNextSiblingKey()!==a)return process.env.NODE_ENV!=="production"&&Tt(!0,"Tree is missing nextSibling pointer on %s's prevSibling",a),!1}var h=e.getNextSiblingKey();if(h!=null){var y=n.get(h);if(y.getPrevSiblingKey()!==a)return process.env.NODE_ENV!=="production"&&Tt(!0,"Tree is missing prevSibling pointer on %s's nextSibling",a),!1}return h!==null&&l!==null&&l===h?(process.env.NODE_ENV!=="production"&&Tt(!0,"Tree has a two-node cycle at %s",a),!1):e.text!=""&&e.getChildKeys().size>0?(process.env.NODE_ENV!=="production"&&Tt(!0,"Leaf node %s has children",a),!1):!0},isConnectedTree:function(e){var n=e.toArray().filter(function(d){return d.getParentKey()==null&&d.getPrevSiblingKey()==null});if(n.length!==1)return process.env.NODE_ENV!=="production"&&Tt(!0,"Tree is not connected. More or less than one first node"),!1;for(var a=n.shift(),i=0,s=a.getKey(),c=[];s!=null;){var l=e.get(s),v=l.getChildKeys(),h=l.getNextSiblingKey();if(v.size>0){h!=null&&c.unshift(h);var y=v.map(function(d){return e.get(d)}),w=y.find(function(d){return d.getPrevSiblingKey()==null});if(w==null)return process.env.NODE_ENV!=="production"&&Tt(!0,"%s has no first child",s),!1;s=w.getKey()}else l.getNextSiblingKey()!=null?s=l.getNextSiblingKey():s=c.shift();i++}return i!==e.size?(process.env.NODE_ENV!=="production"&&Tt(!0,"Tree is not connected. %s nodes were seen instead of %s",i,e.size),!1):!0},isValidTree:function(e){var n=this,a=e.toArray();return a.every(function(i){return n.isValidBlock(i,e)})?this.isConnectedTree(e):!1}},s0=o0,u0=at,c0=le,f0=c0.List;function l0(r,e){var n=r.map(function(a,i){var s=e[i];return u0.create({style:a,entity:s})});return f0(n)}var v0=l0,p0=tr,Mu=p0.substr;function d0(r,e){var n=Array(r.length).fill(null);return e&&e.forEach(function(a){for(var i=Mu(r,0,a.offset).length,s=i+Mu(r,a.offset,a.length).length,c=i;c<s;c++)n[c]=a.key}),n}var h0=d0,g0=tr,y0=le,m0=y0.OrderedSet,Au=g0.substr,_0=m0();function E0(r,e){var n=Array(r.length).fill(_0);return e&&e.forEach(function(a){for(var i=Au(r,0,a.offset).length,s=i+Au(r,a.offset,a.length).length;i<s;)n[i]=n[i].add(a.style),i++}),n}var S0=E0;function Wr(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){w0(r,i,n[i])})}return r}function w0(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var C0=Cr,Nu=ot,D0=ya,b0=Ln,Iu=a0,O0=s0,Ru=$n,T0=v0,k0=h0,x0=S0,zf=Ct,B0=Ht,Ia=le,qt=ve,Lu=B0("draft_tree_data_support"),$u=Ia.List,K0=Ia.Map,qf=Ia.OrderedMap,la=function(e,n){var a=e.key,i=e.type,s=e.data,c=e.text,l=e.depth,v={text:c,depth:l||0,type:i||"unstyled",key:a||zf(),data:K0(s),characterList:M0(e,n)};return v},M0=function(e,n){var a=e.text,i=e.entityRanges,s=e.inlineStyleRanges,c=i||[],l=s||[];return T0(x0(a,l),k0(a,c.filter(function(v){return n.hasOwnProperty(v.key)}).map(function(v){return Wr({},v,{key:n[v.key]})})))},Xi=function(e){return Wr({},e,{key:e.key||zf()})},Fu=function(e,n,a){var i=n.map(function(s){return Wr({},s,{parentRef:a})});return e.concat(i.reverse())},A0=function(e,n){return e.map(Xi).reduce(function(a,i,s){Array.isArray(i.children)||(process.env.NODE_ENV!=="production"?qt(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):qt(!1));var c=i.children.map(Xi),l=new Nu(Wr({},la(i,n),{prevSibling:s===0?null:e[s-1].key,nextSibling:s===e.length-1?null:e[s+1].key,children:$u(c.map(function(C){return C.key}))}));a=a.set(l.getKey(),l);for(var v=Fu([],c,l);v.length>0;){var h=v.pop(),y=h.parentRef,w=y.getChildKeys(),d=w.indexOf(h.key),E=Array.isArray(h.children);if(!E){E||(process.env.NODE_ENV!=="production"?qt(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):qt(!1));break}var m=h.children.map(Xi),S=new Nu(Wr({},la(h,n),{parent:y.getKey(),children:$u(m.map(function(C){return C.key})),prevSibling:d===0?null:w.get(d-1),nextSibling:d===w.size-1?null:w.get(d+1)}));a=a.set(S.getKey(),S),v=Fu(v,m,S)}return a},qf())},N0=function(e,n){return qf(e.map(function(a){var i=new C0(la(a,n));return[i.getKey(),i]}))},I0=function(e,n){var a=e.blocks.find(function(c){return Array.isArray(c.children)&&c.children.length>0}),i=Lu&&!a?Iu.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!Lu)return N0(a?Iu.fromRawTreeStateToRawState(e).blocks:i,n);var s=A0(i,n);return process.env.NODE_ENV!=="production"&&(O0.isValidTree(s)||(process.env.NODE_ENV!=="production"?qt(!1,"Should be a valid tree"):qt(!1))),s},R0=function(e){var n=e.entityMap,a={};return Object.keys(n).forEach(function(i){var s=n[i],c=s.type,l=s.mutability,v=s.data;a[i]=b0.__create(c,l,v||{})}),a},L0=function(e){Array.isArray(e.blocks)||(process.env.NODE_ENV!=="production"?qt(!1,"invalid RawDraftContentState"):qt(!1));var n=R0(e),a=I0(e,n),i=a.isEmpty()?new Ru:Ru.createEmpty(a.first().getKey());return new D0({blockMap:a,entityMap:n,selectionBefore:i,selectionAfter:i})},$0=L0;exports.AtomicBlockUtils_1=oh;exports.BlockMapBuilder_1=jr;exports.CharacterMetadata_1=at;exports.CompositeDraftDecorator_1=ph;exports.ContentBlockNode_1=ot;exports.ContentBlock_1=Cr;exports.ContentState_1=ya;exports.DefaultDraftBlockRenderMap_1=wa;exports.DefaultDraftInlineStyle=Sc;exports.DraftEditorBlock_react=Qc;exports.DraftEditor_react=GC;exports.DraftEntityInstance_1=ac;exports.DraftEntity_1=Ln;exports.DraftModifier_1=We;exports.DraftStringKey_1=Uf;exports.EditorState_1=ye;exports.KeyBindingUtil_1=Ma;exports.RichTextEditorUtil_1=xf;exports.SelectionState_1=$n;exports.UnicodeUtils_1=tr;exports.convertFromHTMLToContentBlocks_1=Of;exports.convertFromRawToDraftState_1=$0;exports.encodeEntityRanges_1=QC;exports.findRangesImmutable_1=Gr;exports.generateRandomKey_1=Ct;exports.getDefaultKeyBinding_1=Lf;exports.getRangeClientRects_1=df;exports.invariant_1=ve;
|