Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.15.1.23
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{272:function(t,e,n){"use strict";var o=n(268),r=n.n(o),i=n(265),a=n.n(i),c=n(1),s=n.n(c),l=n(333),u=n(551),p=n(549),f=n(267);function d(t){var e=t.children,n=t.className,o=t.clearing,i=t.content,c=t.fitted,g=t.hidden,h=t.horizontal,y=t.inverted,m=t.section,v=t.vertical,b=a()("ui",Object(l.a)(o,"clearing"),Object(l.a)(c,"fitted"),Object(l.a)(g,"hidden"),Object(l.a)(h,"horizontal"),Object(l.a)(y,"inverted"),Object(l.a)(m,"section"),Object(l.a)(v,"vertical"),"divider",n),S=Object(u.a)(d,t),M=Object(p.a)(d,t);return s.a.createElement(M,r()({},S,{className:b}),f.a.isNil(e)?i:e)}d.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],d.propTypes={},e.a=d},285:function(t,e,n){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function n(t){return a(t)?t:Z(t)}function o(t){return c(t)?t:W(t)}function r(t){return s(t)?t:G(t)}function i(t){return a(t)&&!l(t)?t:q(t)}function a(t){return!(!t||!t[p])}function c(t){return!(!t||!t[f])}function s(t){return!(!t||!t[d])}function l(t){return c(t)||s(t)}function u(t){return!(!t||!t[g])}e(o,n),e(r,n),e(i,n),n.isIterable=a,n.isKeyed=c,n.isIndexed=s,n.isAssociative=l,n.isOrdered=u,n.Keyed=o,n.Indexed=r,n.Set=i;var p="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",g="@@__IMMUTABLE_ORDERED__@@",h=5,y=1<<h,m=y-1,v={},b={value:!1},S={value:!1};function M(t){return t.value=!1,t}function w(t){t&&(t.value=!0)}function C(){}function k(t,e){e=e||0;for(var n=Math.max(0,t.length-e),o=new Array(n),r=0;r<n;r++)o[r]=t[r+e];return o}function E(t){return void 0===t.size&&(t.size=t.__iterate(j)),t.size}function _(t,e){if("number"!==typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?E(t)+e:e}function j(){return!0}function x(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function D(t,e){return L(t,e,0)}function N(t,e){return L(t,e,e)}function L(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var O=0,I=1,T=2,A="function"===typeof Symbol&&Symbol.iterator,z="@@iterator",B=A||z;function P(t){this.next=t}function R(t,e,n,o){var r=0===t?e:1===t?n:[e,n];return o?o.value=r:o={value:r,done:!1},o}function F(){return{value:void 0,done:!0}}function U(t){return!!H(t)}function K(t){return t&&"function"===typeof t.next}function Y(t){var e=H(t);return e&&e.call(t)}function H(t){var e=t&&(A&&t[A]||t[z]);if("function"===typeof e)return e}function Q(t){return t&&"number"===typeof t.length}function Z(t){return null===t||void 0===t?it():a(t)?t.toSeq():function(t){var e=st(t)||"object"===typeof t&&new et(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function W(t){return null===t||void 0===t?it().toKeyedSeq():a(t)?c(t)?t.toSeq():t.fromEntrySeq():at(t)}function G(t){return null===t||void 0===t?it():a(t)?c(t)?t.entrySeq():t.toIndexedSeq():ct(t)}function q(t){return(null===t||void 0===t?it():a(t)?c(t)?t.entrySeq():t:ct(t)).toSetSeq()}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=O,P.VALUES=I,P.ENTRIES=T,P.prototype.inspect=P.prototype.toSource=function(){return this.toString()},P.prototype[B]=function(){return this},e(Z,n),Z.of=function(){return Z(arguments)},Z.prototype.toSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq {","}")},Z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Z.prototype.__iterate=function(t,e){return lt(this,t,e,!0)},Z.prototype.__iterator=function(t,e){return ut(this,t,e,!0)},e(W,Z),W.prototype.toKeyedSeq=function(){return this},e(G,Z),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(t,e){return lt(this,t,e,!1)},G.prototype.__iterator=function(t,e){return ut(this,t,e,!1)},e(q,Z),q.of=function(){return q(arguments)},q.prototype.toSetSeq=function(){return this},Z.isSeq=rt,Z.Keyed=W,Z.Set=q,Z.Indexed=G;var V,J,X,$="@@__IMMUTABLE_SEQ__@@";function tt(t){this._array=t,this.size=t.length}function et(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function nt(t){this._iterable=t,this.size=t.length||t.size}function ot(t){this._iterator=t,this._iteratorCache=[]}function rt(t){return!(!t||!t[$])}function it(){return V||(V=new tt([]))}function at(t){var e=Array.isArray(t)?new tt(t).fromEntrySeq():K(t)?new ot(t).fromEntrySeq():U(t)?new nt(t).fromEntrySeq():"object"===typeof t?new et(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function ct(t){var e=st(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function st(t){return Q(t)?new tt(t):K(t)?new ot(t):U(t)?new nt(t):void 0}function lt(t,e,n,o){var r=t._cache;if(r){for(var i=r.length-1,a=0;a<=i;a++){var c=r[n?i-a:a];if(!1===e(c[1],o?c[0]:a,t))return a+1}return a}return t.__iterateUncached(e,n)}function ut(t,e,n,o){var r=t._cache;if(r){var i=r.length-1,a=0;return new P(function(){var t=r[n?i-a:a];return a++>i?{value:void 0,done:!0}:R(e,o?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,n)}function pt(t,e){return e?function t(e,n,o,r){return Array.isArray(n)?e.call(r,o,G(n).map(function(o,r){return t(e,o,r,n)})):dt(n)?e.call(r,o,W(n).map(function(o,r){return t(e,o,r,n)})):n}(e,t,"",{"":t}):ft(t)}function ft(t){return Array.isArray(t)?G(t).map(ft).toList():dt(t)?W(t).map(ft).toMap():t}function dt(t){return t&&(t.constructor===Object||void 0===t.constructor)}function gt(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"===typeof t.valueOf&&"function"===typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!("function"!==typeof t.equals||"function"!==typeof e.equals||!t.equals(e))}function ht(t,e){if(t===e)return!0;if(!a(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||c(t)!==c(e)||s(t)!==s(e)||u(t)!==u(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!l(t);if(u(t)){var o=t.entries();return e.every(function(t,e){var r=o.next().value;return r&>(r[1],t)&&(n||gt(r[0],e))})&&o.next().done}var r=!1;if(void 0===t.size)if(void 0===e.size)"function"===typeof t.cacheResult&&t.cacheResult();else{r=!0;var i=t;t=e,e=i}var p=!0,f=e.__iterate(function(e,o){if(n?!t.has(e):r?!gt(e,t.get(o,v)):!gt(t.get(o,v),e))return p=!1,!1});return p&&t.size===f}function yt(t,e){if(!(this instanceof yt))return new yt(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(J)return J;J=this}}function mt(t,e){if(!t)throw new Error(e)}function vt(t,e,n){if(!(this instanceof vt))return new vt(t,e,n);if(mt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(X)return X;X=this}}function bt(){throw TypeError("Abstract")}function St(){}function Mt(){}function wt(){}Z.prototype[$]=!0,e(tt,G),tt.prototype.get=function(t,e){return this.has(t)?this._array[_(this,t)]:e},tt.prototype.__iterate=function(t,e){for(var n=this._array,o=n.length-1,r=0;r<=o;r++)if(!1===t(n[e?o-r:r],r,this))return r+1;return r},tt.prototype.__iterator=function(t,e){var n=this._array,o=n.length-1,r=0;return new P(function(){return r>o?{value:void 0,done:!0}:R(t,r,n[e?o-r++:r++])})},e(et,W),et.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},et.prototype.has=function(t){return this._object.hasOwnProperty(t)},et.prototype.__iterate=function(t,e){for(var n=this._object,o=this._keys,r=o.length-1,i=0;i<=r;i++){var a=o[e?r-i:i];if(!1===t(n[a],a,this))return i+1}return i},et.prototype.__iterator=function(t,e){var n=this._object,o=this._keys,r=o.length-1,i=0;return new P(function(){var a=o[e?r-i:i];return i++>r?{value:void 0,done:!0}:R(t,a,n[a])})},et.prototype[g]=!0,e(nt,G),nt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=this._iterable,o=Y(n),r=0;if(K(o))for(var i;!(i=o.next()).done&&!1!==t(i.value,r++,this););return r},nt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterable,o=Y(n);if(!K(o))return new P(F);var r=0;return new P(function(){var e=o.next();return e.done?e:R(t,r++,e.value)})},e(ot,G),ot.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,o=this._iterator,r=this._iteratorCache,i=0;i<r.length;)if(!1===t(r[i],i++,this))return i;for(;!(n=o.next()).done;){var a=n.value;if(r[i]=a,!1===t(a,i++,this))break}return i},ot.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,o=this._iteratorCache,r=0;return new P(function(){if(r>=o.length){var e=n.next();if(e.done)return e;o[r]=e.value}return R(t,r,o[r++])})},e(yt,G),yt.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},yt.prototype.get=function(t,e){return this.has(t)?this._value:e},yt.prototype.includes=function(t){return gt(this._value,t)},yt.prototype.slice=function(t,e){var n=this.size;return x(t,e,n)?this:new yt(this._value,N(e,n)-D(t,n))},yt.prototype.reverse=function(){return this},yt.prototype.indexOf=function(t){return gt(this._value,t)?0:-1},yt.prototype.lastIndexOf=function(t){return gt(this._value,t)?this.size:-1},yt.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(!1===t(this._value,n,this))return n+1;return n},yt.prototype.__iterator=function(t,e){var n=this,o=0;return new P(function(){return o<n.size?R(t,o++,n._value):{value:void 0,done:!0}})},yt.prototype.equals=function(t){return t instanceof yt?gt(this._value,t._value):ht(t)},e(vt,G),vt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},vt.prototype.get=function(t,e){return this.has(t)?this._start+_(this,t)*this._step:e},vt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},vt.prototype.slice=function(t,e){return x(t,e,this.size)?this:(t=D(t,this.size),(e=N(e,this.size))<=t?new vt(0,0):new vt(this.get(t,this._end),this.get(e,this._end),this._step))},vt.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},vt.prototype.lastIndexOf=function(t){return this.indexOf(t)},vt.prototype.__iterate=function(t,e){for(var n=this.size-1,o=this._step,r=e?this._start+n*o:this._start,i=0;i<=n;i++){if(!1===t(r,i,this))return i+1;r+=e?-o:o}return i},vt.prototype.__iterator=function(t,e){var n=this.size-1,o=this._step,r=e?this._start+n*o:this._start,i=0;return new P(function(){var a=r;return r+=e?-o:o,i>n?{value:void 0,done:!0}:R(t,i++,a)})},vt.prototype.equals=function(t){return t instanceof vt?this._start===t._start&&this._end===t._end&&this._step===t._step:ht(this,t)},e(bt,n),e(St,bt),e(Mt,bt),e(wt,bt),bt.Keyed=St,bt.Indexed=Mt,bt.Set=wt;var Ct="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),o=65535&(e|=0);return n*o+((t>>>16)*o+n*(e>>>16)<<16>>>0)|0};function kt(t){return t>>>1&1073741824|3221225471&t}function Et(t){if(!1===t||null===t||void 0===t)return 0;if("function"===typeof t.valueOf&&(!1===(t=t.valueOf())||null===t||void 0===t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return kt(n)}if("string"===e)return t.length>It?function(t){var e=zt[t];return void 0===e&&(e=_t(t),At===Tt&&(At=0,zt={}),At++,zt[t]=e),e}(t):_t(t);if("function"===typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(Nt&&void 0!==(e=jt.get(t)))return e;if(void 0!==(e=t[Ot]))return e;if(!Dt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Ot]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++Lt,1073741824&Lt&&(Lt=0),Nt)jt.set(t,e);else{if(void 0!==xt&&!1===xt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(Dt)Object.defineProperty(t,Ot,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Ot]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Ot]=e}}return e}(t);if("function"===typeof t.toString)return _t(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function _t(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return kt(e)}var jt,xt=Object.isExtensible,Dt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Nt="function"===typeof WeakMap;Nt&&(jt=new WeakMap);var Lt=0,Ot="__immutablehash__";"function"===typeof Symbol&&(Ot=Symbol(Ot));var It=16,Tt=255,At=0,zt={};function Bt(t){mt(t!==1/0,"Cannot perform this action with an infinite size.")}function Pt(t){return null===t||void 0===t?Xt():Rt(t)&&!u(t)?t:Xt().withMutations(function(e){var n=o(t);Bt(n.size),n.forEach(function(t,n){return e.set(n,t)})})}function Rt(t){return!(!t||!t[Ut])}e(Pt,St),Pt.prototype.toString=function(){return this.__toString("Map {","}")},Pt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Pt.prototype.set=function(t,e){return $t(this,t,e)},Pt.prototype.setIn=function(t,e){return this.updateIn(t,v,function(){return e})},Pt.prototype.remove=function(t){return $t(this,t,v)},Pt.prototype.deleteIn=function(t){return this.updateIn(t,function(){return v})},Pt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},Pt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var o=function t(e,n,o,r){var i=e===v,a=n.next();if(a.done){var c=i?o:e,s=r(c);return s===c?e:s}mt(i||e&&e.set,"invalid keyPath");var l=a.value,u=i?v:e.get(l,v),p=t(u,n,o,r);return p===u?e:p===v?e.remove(l):(i?Xt():e).set(l,p)}(this,nn(t),e,n);return o===v?void 0:o},Pt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Xt()},Pt.prototype.merge=function(){return oe(this,void 0,arguments)},Pt.prototype.mergeWith=function(e){var n=t.call(arguments,1);return oe(this,e,n)},Pt.prototype.mergeIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Xt(),function(t){return"function"===typeof t.merge?t.merge.apply(t,n):n[n.length-1]})},Pt.prototype.mergeDeep=function(){return oe(this,re,arguments)},Pt.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return oe(this,ie(e),n)},Pt.prototype.mergeDeepIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Xt(),function(t){return"function"===typeof t.mergeDeep?t.mergeDeep.apply(t,n):n[n.length-1]})},Pt.prototype.sort=function(t){return De(Qe(this,t))},Pt.prototype.sortBy=function(t,e){return De(Qe(this,e,t))},Pt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Pt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new C)},Pt.prototype.asImmutable=function(){return this.__ensureOwner()},Pt.prototype.wasAltered=function(){return this.__altered},Pt.prototype.__iterator=function(t,e){return new Gt(this,t,e)},Pt.prototype.__iterate=function(t,e){var n=this,o=0;return this._root&&this._root.iterate(function(e){return o++,t(e[1],e[0],n)},e),o},Pt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Jt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Pt.isMap=Rt;var Ft,Ut="@@__IMMUTABLE_MAP__@@",Kt=Pt.prototype;function Yt(t,e){this.ownerID=t,this.entries=e}function Ht(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function Qt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function Zt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function Wt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function Gt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&Vt(t._root)}function qt(t,e){return R(t,e[0],e[1])}function Vt(t,e){return{node:t,index:0,__prev:e}}function Jt(t,e,n,o){var r=Object.create(Kt);return r.size=t,r._root=e,r.__ownerID=n,r.__hash=o,r.__altered=!1,r}function Xt(){return Ft||(Ft=Jt(0))}function $t(t,e,n){var o,r;if(t._root){var i=M(b),a=M(S);if(o=te(t._root,t.__ownerID,0,void 0,e,n,i,a),!a.value)return t;r=t.size+(i.value?n===v?-1:1:0)}else{if(n===v)return t;r=1,o=new Yt(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=r,t._root=o,t.__hash=void 0,t.__altered=!0,t):o?Jt(r,o):Xt()}function te(t,e,n,o,r,i,a,c){return t?t.update(e,n,o,r,i,a,c):i===v?t:(w(c),w(a),new Wt(e,o,[r,i]))}function ee(t){return t.constructor===Wt||t.constructor===Zt}function ne(t,e,n,o,r){if(t.keyHash===o)return new Zt(e,o,[t.entry,r]);var i,a=(0===n?t.keyHash:t.keyHash>>>n)&m,c=(0===n?o:o>>>n)&m,s=a===c?[ne(t,e,n+h,o,r)]:(i=new Wt(e,o,r),a<c?[t,i]:[i,t]);return new Ht(e,1<<a|1<<c,s)}function oe(t,e,n){for(var r=[],i=0;i<n.length;i++){var c=n[i],s=o(c);a(c)||(s=s.map(function(t){return pt(t)})),r.push(s)}return ae(t,e,r)}function re(t,e,n){return t&&t.mergeDeep&&a(e)?t.mergeDeep(e):gt(t,e)?t:e}function ie(t){return function(e,n,o){if(e&&e.mergeDeepWith&&a(n))return e.mergeDeepWith(t,n);var r=t(e,n,o);return gt(e,r)?e:r}}function ae(t,e,n){return 0===(n=n.filter(function(t){return 0!==t.size})).length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var o=e?function(n,o){t.update(o,v,function(t){return t===v?n:e(t,n,o)})}:function(e,n){t.set(n,e)},r=0;r<n.length;r++)n[r].forEach(o)}):t.constructor(n[0])}function ce(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function se(t,e,n,o){var r=o?t:k(t);return r[e]=n,r}Kt[Ut]=!0,Kt.delete=Kt.remove,Kt.removeIn=Kt.deleteIn,Yt.prototype.get=function(t,e,n,o){for(var r=this.entries,i=0,a=r.length;i<a;i++)if(gt(n,r[i][0]))return r[i][1];return o},Yt.prototype.update=function(t,e,n,o,r,i,a){for(var c=r===v,s=this.entries,l=0,u=s.length;l<u&&!gt(o,s[l][0]);l++);var p=l<u;if(p?s[l][1]===r:c)return this;if(w(a),(c||!p)&&w(i),!c||1!==s.length){if(!p&&!c&&s.length>=le)return function(t,e,n,o){t||(t=new C);for(var r=new Wt(t,Et(n),[n,o]),i=0;i<e.length;i++){var a=e[i];r=r.update(t,0,void 0,a[0],a[1])}return r}(t,s,o,r);var f=t&&t===this.ownerID,d=f?s:k(s);return p?c?l===u-1?d.pop():d[l]=d.pop():d[l]=[o,r]:d.push([o,r]),f?(this.entries=d,this):new Yt(t,d)}},Ht.prototype.get=function(t,e,n,o){void 0===e&&(e=Et(n));var r=1<<((0===t?e:e>>>t)&m),i=this.bitmap;return 0===(i&r)?o:this.nodes[ce(i&r-1)].get(t+h,e,n,o)},Ht.prototype.update=function(t,e,n,o,r,i,a){void 0===n&&(n=Et(o));var c=(0===e?n:n>>>e)&m,s=1<<c,l=this.bitmap,u=0!==(l&s);if(!u&&r===v)return this;var p=ce(l&s-1),f=this.nodes,d=u?f[p]:void 0,g=te(d,t,e+h,n,o,r,i,a);if(g===d)return this;if(!u&&g&&f.length>=ue)return function(t,e,n,o,r){for(var i=0,a=new Array(y),c=0;0!==n;c++,n>>>=1)a[c]=1&n?e[i++]:void 0;return a[o]=r,new Qt(t,i+1,a)}(t,f,l,c,g);if(u&&!g&&2===f.length&&ee(f[1^p]))return f[1^p];if(u&&g&&1===f.length&&ee(g))return g;var b=t&&t===this.ownerID,S=u?g?l:l^s:l|s,M=u?g?se(f,p,g,b):function(t,e,n){var o=t.length-1;if(n&&e===o)return t.pop(),t;for(var r=new Array(o),i=0,a=0;a<o;a++)a===e&&(i=1),r[a]=t[a+i];return r}(f,p,b):function(t,e,n,o){var r=t.length+1;if(o&&e+1===r)return t[e]=n,t;for(var i=new Array(r),a=0,c=0;c<r;c++)c===e?(i[c]=n,a=-1):i[c]=t[c+a];return i}(f,p,g,b);return b?(this.bitmap=S,this.nodes=M,this):new Ht(t,S,M)},Qt.prototype.get=function(t,e,n,o){void 0===e&&(e=Et(n));var r=(0===t?e:e>>>t)&m,i=this.nodes[r];return i?i.get(t+h,e,n,o):o},Qt.prototype.update=function(t,e,n,o,r,i,a){void 0===n&&(n=Et(o));var c=(0===e?n:n>>>e)&m,s=r===v,l=this.nodes,u=l[c];if(s&&!u)return this;var p=te(u,t,e+h,n,o,r,i,a);if(p===u)return this;var f=this.count;if(u){if(!p&&--f<pe)return function(t,e,n,o){for(var r=0,i=0,a=new Array(n),c=0,s=1,l=e.length;c<l;c++,s<<=1){var u=e[c];void 0!==u&&c!==o&&(r|=s,a[i++]=u)}return new Ht(t,r,a)}(t,l,f,c)}else f++;var d=t&&t===this.ownerID,g=se(l,c,p,d);return d?(this.count=f,this.nodes=g,this):new Qt(t,f,g)},Zt.prototype.get=function(t,e,n,o){for(var r=this.entries,i=0,a=r.length;i<a;i++)if(gt(n,r[i][0]))return r[i][1];return o},Zt.prototype.update=function(t,e,n,o,r,i,a){void 0===n&&(n=Et(o));var c=r===v;if(n!==this.keyHash)return c?this:(w(a),w(i),ne(this,t,e,n,[o,r]));for(var s=this.entries,l=0,u=s.length;l<u&&!gt(o,s[l][0]);l++);var p=l<u;if(p?s[l][1]===r:c)return this;if(w(a),(c||!p)&&w(i),c&&2===u)return new Wt(t,this.keyHash,s[1^l]);var f=t&&t===this.ownerID,d=f?s:k(s);return p?c?l===u-1?d.pop():d[l]=d.pop():d[l]=[o,r]:d.push([o,r]),f?(this.entries=d,this):new Zt(t,this.keyHash,d)},Wt.prototype.get=function(t,e,n,o){return gt(n,this.entry[0])?this.entry[1]:o},Wt.prototype.update=function(t,e,n,o,r,i,a){var c=r===v,s=gt(o,this.entry[0]);return(s?r===this.entry[1]:c)?this:(w(a),c?void w(i):s?t&&t===this.ownerID?(this.entry[1]=r,this):new Wt(t,this.keyHash,[o,r]):(w(i),ne(this,t,e,Et(o),[o,r])))},Yt.prototype.iterate=Zt.prototype.iterate=function(t,e){for(var n=this.entries,o=0,r=n.length-1;o<=r;o++)if(!1===t(n[e?r-o:o]))return!1},Ht.prototype.iterate=Qt.prototype.iterate=function(t,e){for(var n=this.nodes,o=0,r=n.length-1;o<=r;o++){var i=n[e?r-o:o];if(i&&!1===i.iterate(t,e))return!1}},Wt.prototype.iterate=function(t,e){return t(this.entry)},e(Gt,P),Gt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,o=e.node,r=e.index++;if(o.entry){if(0===r)return qt(t,o.entry)}else if(o.entries){if(n=o.entries.length-1,r<=n)return qt(t,o.entries[this._reverse?n-r:r])}else if(n=o.nodes.length-1,r<=n){var i=o.nodes[this._reverse?n-r:r];if(i){if(i.entry)return qt(t,i.entry);e=this._stack=Vt(i,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var le=y/4,ue=y/2,pe=y/4;function fe(t){var e=we();if(null===t||void 0===t)return e;if(de(t))return t;var n=r(t),o=n.size;return 0===o?e:(Bt(o),o>0&&o<y?Me(0,o,h,null,new ye(n.toArray())):e.withMutations(function(t){t.setSize(o),n.forEach(function(e,n){return t.set(n,e)})}))}function de(t){return!(!t||!t[ge])}e(fe,Mt),fe.of=function(){return this(arguments)},fe.prototype.toString=function(){return this.__toString("List [","]")},fe.prototype.get=function(t,e){if((t=_(this,t))>=0&&t<this.size){var n=Ee(this,t+=this._origin);return n&&n.array[t&m]}return e},fe.prototype.set=function(t,e){return function(t,e,n){if((e=_(t,e))!==e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?_e(t,e).set(0,n):_e(t,0,e+1).set(e,n)});e+=t._origin;var o=t._tail,r=t._root,i=M(S);return e>=xe(t._capacity)?o=Ce(o,t.__ownerID,0,e,n,i):r=Ce(r,t.__ownerID,t._level,e,n,i),i.value?t.__ownerID?(t._root=r,t._tail=o,t.__hash=void 0,t.__altered=!0,t):Me(t._origin,t._capacity,t._level,r,o):t}(this,t,e)},fe.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},fe.prototype.insert=function(t,e){return this.splice(t,0,e)},fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=h,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):we()},fe.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){_e(n,0,e+t.length);for(var o=0;o<t.length;o++)n.set(e+o,t[o])})},fe.prototype.pop=function(){return _e(this,0,-1)},fe.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){_e(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])})},fe.prototype.shift=function(){return _e(this,1)},fe.prototype.merge=function(){return je(this,void 0,arguments)},fe.prototype.mergeWith=function(e){var n=t.call(arguments,1);return je(this,e,n)},fe.prototype.mergeDeep=function(){return je(this,re,arguments)},fe.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return je(this,ie(e),n)},fe.prototype.setSize=function(t){return _e(this,0,t)},fe.prototype.slice=function(t,e){var n=this.size;return x(t,e,n)?this:_e(this,D(t,n),N(e,n))},fe.prototype.__iterator=function(t,e){var n=0,o=Se(this,e);return new P(function(){var e=o();return e===be?{value:void 0,done:!0}:R(t,n++,e)})},fe.prototype.__iterate=function(t,e){for(var n,o=0,r=Se(this,e);(n=r())!==be&&!1!==t(n,o++,this););return o},fe.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Me(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},fe.isList=de;var ge="@@__IMMUTABLE_LIST__@@",he=fe.prototype;function ye(t,e){this.array=t,this.ownerID=e}he[ge]=!0,he.delete=he.remove,he.setIn=Kt.setIn,he.deleteIn=he.removeIn=Kt.removeIn,he.update=Kt.update,he.updateIn=Kt.updateIn,he.mergeIn=Kt.mergeIn,he.mergeDeepIn=Kt.mergeDeepIn,he.withMutations=Kt.withMutations,he.asMutable=Kt.asMutable,he.asImmutable=Kt.asImmutable,he.wasAltered=Kt.wasAltered,ye.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var o=n>>>e&m;if(o>=this.array.length)return new ye([],t);var r,i=0===o;if(e>0){var a=this.array[o];if((r=a&&a.removeBefore(t,e-h,n))===a&&i)return this}if(i&&!r)return this;var c=ke(this,t);if(!i)for(var s=0;s<o;s++)c.array[s]=void 0;return r&&(c.array[o]=r),c},ye.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var o,r=n-1>>>e&m;if(r>=this.array.length)return this;if(e>0){var i=this.array[r];if((o=i&&i.removeAfter(t,e-h,n))===i&&r===this.array.length-1)return this}var a=ke(this,t);return a.array.splice(r+1),o&&(a.array[r]=o),a};var me,ve,be={};function Se(t,e){var n=t._origin,o=t._capacity,r=xe(o),i=t._tail;return a(t._root,t._level,0);function a(t,c,s){return 0===c?function(t,a){var c=a===r?i&&i.array:t&&t.array,s=a>n?0:n-a,l=o-a;return l>y&&(l=y),function(){if(s===l)return be;var t=e?--l:s++;return c&&c[t]}}(t,s):function(t,r,i){var c,s=t&&t.array,l=i>n?0:n-i>>r,u=1+(o-i>>r);return u>y&&(u=y),function(){for(;;){if(c){var t=c();if(t!==be)return t;c=null}if(l===u)return be;var n=e?--u:l++;c=a(s&&s[n],r-h,i+(n<<r))}}}(t,c,s)}}function Me(t,e,n,o,r,i,a){var c=Object.create(he);return c.size=e-t,c._origin=t,c._capacity=e,c._level=n,c._root=o,c._tail=r,c.__ownerID=i,c.__hash=a,c.__altered=!1,c}function we(){return me||(me=Me(0,0,h))}function Ce(t,e,n,o,r,i){var a,c=o>>>n&m,s=t&&c<t.array.length;if(!s&&void 0===r)return t;if(n>0){var l=t&&t.array[c],u=Ce(l,e,n-h,o,r,i);return u===l?t:((a=ke(t,e)).array[c]=u,a)}return s&&t.array[c]===r?t:(w(i),a=ke(t,e),void 0===r&&c===a.array.length-1?a.array.pop():a.array[c]=r,a)}function ke(t,e){return e&&t&&e===t.ownerID?t:new ye(t?t.array.slice():[],e)}function Ee(t,e){if(e>=xe(t._capacity))return t._tail;if(e<1<<t._level+h){for(var n=t._root,o=t._level;n&&o>0;)n=n.array[e>>>o&m],o-=h;return n}}function _e(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var o=t.__ownerID||new C,r=t._origin,i=t._capacity,a=r+e,c=void 0===n?i:n<0?i+n:r+n;if(a===r&&c===i)return t;if(a>=c)return t.clear();for(var s=t._level,l=t._root,u=0;a+u<0;)l=new ye(l&&l.array.length?[void 0,l]:[],o),u+=1<<(s+=h);u&&(a+=u,r+=u,c+=u,i+=u);for(var p=xe(i),f=xe(c);f>=1<<s+h;)l=new ye(l&&l.array.length?[l]:[],o),s+=h;var d=t._tail,g=f<p?Ee(t,c-1):f>p?new ye([],o):d;if(d&&f>p&&a<i&&d.array.length){for(var y=l=ke(l,o),v=s;v>h;v-=h){var b=p>>>v&m;y=y.array[b]=ke(y.array[b],o)}y.array[p>>>h&m]=d}if(c<i&&(g=g&&g.removeAfter(o,0,c)),a>=f)a-=f,c-=f,s=h,l=null,g=g&&g.removeBefore(o,0,a);else if(a>r||f<p){for(u=0;l;){var S=a>>>s&m;if(S!==f>>>s&m)break;S&&(u+=(1<<s)*S),s-=h,l=l.array[S]}l&&a>r&&(l=l.removeBefore(o,s,a-u)),l&&f<p&&(l=l.removeAfter(o,s,f-u)),u&&(a-=u,c-=u)}return t.__ownerID?(t.size=c-a,t._origin=a,t._capacity=c,t._level=s,t._root=l,t._tail=g,t.__hash=void 0,t.__altered=!0,t):Me(a,c,s,l,g)}function je(t,e,n){for(var o=[],i=0,c=0;c<n.length;c++){var s=n[c],l=r(s);l.size>i&&(i=l.size),a(s)||(l=l.map(function(t){return pt(t)})),o.push(l)}return i>t.size&&(t=t.setSize(i)),ae(t,e,o)}function xe(t){return t<y?0:t-1>>>h<<h}function De(t){return null===t||void 0===t?Oe():Ne(t)?t:Oe().withMutations(function(e){var n=o(t);Bt(n.size),n.forEach(function(t,n){return e.set(n,t)})})}function Ne(t){return Rt(t)&&u(t)}function Le(t,e,n,o){var r=Object.create(De.prototype);return r.size=t?t.size:0,r._map=t,r._list=e,r.__ownerID=n,r.__hash=o,r}function Oe(){return ve||(ve=Le(Xt(),we()))}function Ie(t,e,n){var o,r,i=t._map,a=t._list,c=i.get(e),s=void 0!==c;if(n===v){if(!s)return t;a.size>=y&&a.size>=2*i.size?(r=a.filter(function(t,e){return void 0!==t&&c!==e}),o=r.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(o.__ownerID=r.__ownerID=t.__ownerID)):(o=i.remove(e),r=c===a.size-1?a.pop():a.set(c,void 0))}else if(s){if(n===a.get(c)[1])return t;o=i,r=a.set(c,[e,n])}else o=i.set(e,a.size),r=a.set(a.size,[e,n]);return t.__ownerID?(t.size=o.size,t._map=o,t._list=r,t.__hash=void 0,t):Le(o,r)}function Te(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Ae(t){this._iter=t,this.size=t.size}function ze(t){this._iter=t,this.size=t.size}function Be(t){this._iter=t,this.size=t.size}function Pe(t){var e=$e(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=tn,e.__iterateUncached=function(e,n){var o=this;return t.__iterate(function(t,n){return!1!==e(n,t,o)},n)},e.__iteratorUncached=function(e,n){if(e===T){var o=t.__iterator(e,n);return new P(function(){var t=o.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===I?O:I,n)},e}function Re(t,e,n){var o=$e(t);return o.size=t.size,o.has=function(e){return t.has(e)},o.get=function(o,r){var i=t.get(o,v);return i===v?r:e.call(n,i,o,t)},o.__iterateUncached=function(o,r){var i=this;return t.__iterate(function(t,r,a){return!1!==o(e.call(n,t,r,a),r,i)},r)},o.__iteratorUncached=function(o,r){var i=t.__iterator(T,r);return new P(function(){var r=i.next();if(r.done)return r;var a=r.value,c=a[0];return R(o,c,e.call(n,a[1],c,t),r)})},o}function Fe(t,e){var n=$e(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Pe(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,o){return t.get(e?n:-1-n,o)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=tn,n.__iterate=function(e,n){var o=this;return t.__iterate(function(t,n){return e(t,n,o)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function Ue(t,e,n,o){var r=$e(t);return o&&(r.has=function(o){var r=t.get(o,v);return r!==v&&!!e.call(n,r,o,t)},r.get=function(o,r){var i=t.get(o,v);return i!==v&&e.call(n,i,o,t)?i:r}),r.__iterateUncached=function(r,i){var a=this,c=0;return t.__iterate(function(t,i,s){if(e.call(n,t,i,s))return c++,r(t,o?i:c-1,a)},i),c},r.__iteratorUncached=function(r,i){var a=t.__iterator(T,i),c=0;return new P(function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,l=s[0],u=s[1];if(e.call(n,u,l,t))return R(r,o?l:c++,u,i)}})},r}function Ke(t,e,n,o){var r=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n|=0),x(e,n,r))return t;var i=D(e,r),a=N(n,r);if(i!==i||a!==a)return Ke(t.toSeq().cacheResult(),e,n,o);var c,s=a-i;s===s&&(c=s<0?0:s);var l=$e(t);return l.size=0===c?c:t.size&&c||void 0,!o&&rt(t)&&c>=0&&(l.get=function(e,n){return(e=_(this,e))>=0&&e<c?t.get(e+i,n):n}),l.__iterateUncached=function(e,n){var r=this;if(0===c)return 0;if(n)return this.cacheResult().__iterate(e,n);var a=0,s=!0,l=0;return t.__iterate(function(t,n){if(!s||!(s=a++<i))return l++,!1!==e(t,o?n:l-1,r)&&l!==c}),l},l.__iteratorUncached=function(e,n){if(0!==c&&n)return this.cacheResult().__iterator(e,n);var r=0!==c&&t.__iterator(e,n),a=0,s=0;return new P(function(){for(;a++<i;)r.next();if(++s>c)return{value:void 0,done:!0};var t=r.next();return o||e===I?t:R(e,s-1,e===O?void 0:t.value[1],t)})},l}function Ye(t,e,n,o){var r=$e(t);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var c=!0,s=0;return t.__iterate(function(t,i,l){if(!c||!(c=e.call(n,t,i,l)))return s++,r(t,o?i:s-1,a)}),s},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var c=t.__iterator(T,i),s=!0,l=0;return new P(function(){var t,i,u;do{if((t=c.next()).done)return o||r===I?t:R(r,l++,r===O?void 0:t.value[1],t);var p=t.value;i=p[0],u=p[1],s&&(s=e.call(n,u,i,a))}while(s);return r===T?t:R(r,i,u,t)})},r}function He(t,e,n){var o=$e(t);return o.__iterateUncached=function(o,r){var i=0,c=!1;return function t(s,l){var u=this;s.__iterate(function(r,s){return(!e||l<e)&&a(r)?t(r,l+1):!1===o(r,n?s:i++,u)&&(c=!0),!c},r)}(t,0),i},o.__iteratorUncached=function(o,r){var i=t.__iterator(o,r),c=[],s=0;return new P(function(){for(;i;){var t=i.next();if(!1===t.done){var l=t.value;if(o===T&&(l=l[1]),e&&!(c.length<e)||!a(l))return n?t:R(o,s++,l,t);c.push(i),i=l.__iterator(o,r)}else i=c.pop()}return{value:void 0,done:!0}})},o}function Qe(t,e,n){e||(e=en);var o=c(t),r=0,i=t.toSeq().map(function(e,o){return[o,e,r++,n?n(e,o,t):e]}).toArray();return i.sort(function(t,n){return e(t[3],n[3])||t[2]-n[2]}).forEach(o?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),o?W(i):s(t)?G(i):q(i)}function Ze(t,e,n){if(e||(e=en),n){var o=t.toSeq().map(function(e,o){return[e,n(e,o,t)]}).reduce(function(t,n){return We(e,t[1],n[1])?n:t});return o&&o[0]}return t.reduce(function(t,n){return We(e,t,n)?n:t})}function We(t,e,n){var o=t(n,e);return 0===o&&n!==e&&(void 0===n||null===n||n!==n)||o>0}function Ge(t,e,o){var r=$e(t);return r.size=new tt(o).map(function(t){return t.size}).min(),r.__iterate=function(t,e){for(var n,o=this.__iterator(I,e),r=0;!(n=o.next()).done&&!1!==t(n.value,r++,this););return r},r.__iteratorUncached=function(t,r){var i=o.map(function(t){return t=n(t),Y(r?t.reverse():t)}),a=0,c=!1;return new P(function(){var n;return c||(n=i.map(function(t){return t.next()}),c=n.some(function(t){return t.done})),c?{value:void 0,done:!0}:R(t,a++,e.apply(null,n.map(function(t){return t.value})))})},r}function qe(t,e){return rt(t)?e:t.constructor(e)}function Ve(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Je(t){return Bt(t.size),E(t)}function Xe(t){return c(t)?o:s(t)?r:i}function $e(t){return Object.create((c(t)?W:s(t)?G:q).prototype)}function tn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Z.prototype.cacheResult.call(this)}function en(t,e){return t>e?1:t<e?-1:0}function nn(t){var e=Y(t);if(!e){if(!Q(t))throw new TypeError("Expected iterable or array-like: "+t);e=Y(n(t))}return e}function on(t,e){var n,o=function(i){if(i instanceof o)return i;if(!(this instanceof o))return new o(i);if(!n){n=!0;var a=Object.keys(t);!function(t,e){try{e.forEach(function(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){mt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}.bind(void 0,t))}catch(n){}}(r,a),r.size=a.length,r._name=e,r._keys=a,r._defaultValues=t}this._map=Pt(i)},r=o.prototype=Object.create(rn);return r.constructor=o,o}e(De,Pt),De.of=function(){return this(arguments)},De.prototype.toString=function(){return this.__toString("OrderedMap {","}")},De.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},De.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Oe()},De.prototype.set=function(t,e){return Ie(this,t,e)},De.prototype.remove=function(t){return Ie(this,t,v)},De.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},De.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},De.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},De.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?Le(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},De.isOrderedMap=Ne,De.prototype[g]=!0,De.prototype.delete=De.prototype.remove,e(Te,W),Te.prototype.get=function(t,e){return this._iter.get(t,e)},Te.prototype.has=function(t){return this._iter.has(t)},Te.prototype.valueSeq=function(){return this._iter.valueSeq()},Te.prototype.reverse=function(){var t=this,e=Fe(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Te.prototype.map=function(t,e){var n=this,o=Re(this,t,e);return this._useKeys||(o.valueSeq=function(){return n._iter.toSeq().map(t,e)}),o},Te.prototype.__iterate=function(t,e){var n,o=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,o)}:(n=e?Je(this):0,function(r){return t(r,e?--n:n++,o)}),e)},Te.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(I,e),o=e?Je(this):0;return new P(function(){var r=n.next();return r.done?r:R(t,e?--o:o++,r.value,r)})},Te.prototype[g]=!0,e(Ae,G),Ae.prototype.includes=function(t){return this._iter.includes(t)},Ae.prototype.__iterate=function(t,e){var n=this,o=0;return this._iter.__iterate(function(e){return t(e,o++,n)},e)},Ae.prototype.__iterator=function(t,e){var n=this._iter.__iterator(I,e),o=0;return new P(function(){var e=n.next();return e.done?e:R(t,o++,e.value,e)})},e(ze,q),ze.prototype.has=function(t){return this._iter.includes(t)},ze.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},ze.prototype.__iterator=function(t,e){var n=this._iter.__iterator(I,e);return new P(function(){var e=n.next();return e.done?e:R(t,e.value,e.value,e)})},e(Be,W),Be.prototype.entrySeq=function(){return this._iter.toSeq()},Be.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){Ve(e);var o=a(e);return t(o?e.get(1):e[1],o?e.get(0):e[0],n)}},e)},Be.prototype.__iterator=function(t,e){var n=this._iter.__iterator(I,e);return new P(function(){for(;;){var e=n.next();if(e.done)return e;var o=e.value;if(o){Ve(o);var r=a(o);return R(t,r?o.get(0):o[0],r?o.get(1):o[1],e)}}})},Ae.prototype.cacheResult=Te.prototype.cacheResult=ze.prototype.cacheResult=Be.prototype.cacheResult=tn,e(on,St),on.prototype.toString=function(){return this.__toString(cn(this)+" {","}")},on.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},on.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},on.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=an(this,Xt()))},on.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+cn(this));var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:an(this,n)},on.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:an(this,e)},on.prototype.wasAltered=function(){return this._map.wasAltered()},on.prototype.__iterator=function(t,e){var n=this;return o(this._defaultValues).map(function(t,e){return n.get(e)}).__iterator(t,e)},on.prototype.__iterate=function(t,e){var n=this;return o(this._defaultValues).map(function(t,e){return n.get(e)}).__iterate(t,e)},on.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?an(this,e,t):(this.__ownerID=t,this._map=e,this)};var rn=on.prototype;function an(t,e,n){var o=Object.create(Object.getPrototypeOf(t));return o._map=e,o.__ownerID=n,o}function cn(t){return t._name||t.constructor.name||"Record"}function sn(t){return null===t||void 0===t?hn():ln(t)&&!u(t)?t:hn().withMutations(function(e){var n=i(t);Bt(n.size),n.forEach(function(t){return e.add(t)})})}function ln(t){return!(!t||!t[pn])}rn.delete=rn.remove,rn.deleteIn=rn.removeIn=Kt.removeIn,rn.merge=Kt.merge,rn.mergeWith=Kt.mergeWith,rn.mergeIn=Kt.mergeIn,rn.mergeDeep=Kt.mergeDeep,rn.mergeDeepWith=Kt.mergeDeepWith,rn.mergeDeepIn=Kt.mergeDeepIn,rn.setIn=Kt.setIn,rn.update=Kt.update,rn.updateIn=Kt.updateIn,rn.withMutations=Kt.withMutations,rn.asMutable=Kt.asMutable,rn.asImmutable=Kt.asImmutable,e(sn,wt),sn.of=function(){return this(arguments)},sn.fromKeys=function(t){return this(o(t).keySeq())},sn.prototype.toString=function(){return this.__toString("Set {","}")},sn.prototype.has=function(t){return this._map.has(t)},sn.prototype.add=function(t){return dn(this,this._map.set(t,!0))},sn.prototype.remove=function(t){return dn(this,this._map.remove(t))},sn.prototype.clear=function(){return dn(this,this._map.clear())},sn.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n<e.length;n++)i(e[n]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},sn.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return i(t)});var n=this;return this.withMutations(function(t){n.forEach(function(n){e.every(function(t){return t.includes(n)})||t.remove(n)})})},sn.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return i(t)});var n=this;return this.withMutations(function(t){n.forEach(function(n){e.some(function(t){return t.includes(n)})&&t.remove(n)})})},sn.prototype.merge=function(){return this.union.apply(this,arguments)},sn.prototype.mergeWith=function(e){var n=t.call(arguments,1);return this.union.apply(this,n)},sn.prototype.sort=function(t){return yn(Qe(this,t))},sn.prototype.sortBy=function(t,e){return yn(Qe(this,e,t))},sn.prototype.wasAltered=function(){return this._map.wasAltered()},sn.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e,o){return t(o,o,n)},e)},sn.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},sn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},sn.isSet=ln;var un,pn="@@__IMMUTABLE_SET__@@",fn=sn.prototype;function dn(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function gn(t,e){var n=Object.create(fn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function hn(){return un||(un=gn(Xt()))}function yn(t){return null===t||void 0===t?Mn():mn(t)?t:Mn().withMutations(function(e){var n=i(t);Bt(n.size),n.forEach(function(t){return e.add(t)})})}function mn(t){return ln(t)&&u(t)}fn[pn]=!0,fn.delete=fn.remove,fn.mergeDeep=fn.merge,fn.mergeDeepWith=fn.mergeWith,fn.withMutations=Kt.withMutations,fn.asMutable=Kt.asMutable,fn.asImmutable=Kt.asImmutable,fn.__empty=hn,fn.__make=gn,e(yn,sn),yn.of=function(){return this(arguments)},yn.fromKeys=function(t){return this(o(t).keySeq())},yn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},yn.isOrderedSet=mn;var vn,bn=yn.prototype;function Sn(t,e){var n=Object.create(bn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Mn(){return vn||(vn=Sn(Oe()))}function wn(t){return null===t||void 0===t?xn():Cn(t)?t:xn().unshiftAll(t)}function Cn(t){return!(!t||!t[En])}bn[g]=!0,bn.__empty=Mn,bn.__make=Sn,e(wn,Mt),wn.of=function(){return this(arguments)},wn.prototype.toString=function(){return this.__toString("Stack [","]")},wn.prototype.get=function(t,e){var n=this._head;for(t=_(this,t);n&&t--;)n=n.next;return n?n.value:e},wn.prototype.peek=function(){return this._head&&this._head.value},wn.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):jn(t,e)},wn.prototype.pushAll=function(t){if(0===(t=r(t)).size)return this;Bt(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):jn(e,n)},wn.prototype.pop=function(){return this.slice(1)},wn.prototype.unshift=function(){return this.push.apply(this,arguments)},wn.prototype.unshiftAll=function(t){return this.pushAll(t)},wn.prototype.shift=function(){return this.pop.apply(this,arguments)},wn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):xn()},wn.prototype.slice=function(t,e){if(x(t,e,this.size))return this;var n=D(t,this.size),o=N(e,this.size);if(o!==this.size)return Mt.prototype.slice.call(this,t,e);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):jn(r,i)},wn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?jn(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},wn.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,o=this._head;o&&!1!==t(o.value,n++,this);)o=o.next;return n},wn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,o=this._head;return new P(function(){if(o){var e=o.value;return o=o.next,R(t,n++,e)}return{value:void 0,done:!0}})},wn.isStack=Cn;var kn,En="@@__IMMUTABLE_STACK__@@",_n=wn.prototype;function jn(t,e,n,o){var r=Object.create(_n);return r.size=t,r._head=e,r.__ownerID=n,r.__hash=o,r.__altered=!1,r}function xn(){return kn||(kn=jn(0))}function Dn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}_n[En]=!0,_n.withMutations=Kt.withMutations,_n.asMutable=Kt.asMutable,_n.asImmutable=Kt.asImmutable,_n.wasAltered=Kt.wasAltered,n.Iterator=P,Dn(n,{toArray:function(){Bt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new Ae(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"===typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"===typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new Te(this,!0)},toMap:function(){return Pt(this.toKeyedSeq())},toObject:function(){Bt(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return De(this.toKeyedSeq())},toOrderedSet:function(){return yn(c(this)?this.valueSeq():this)},toSet:function(){return sn(c(this)?this.valueSeq():this)},toSetSeq:function(){return new ze(this)},toSeq:function(){return s(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return wn(c(this)?this.valueSeq():this)},toList:function(){return fe(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var e=t.call(arguments,0);return qe(this,function(t,e){var n=c(t),r=[t].concat(e).map(function(t){return a(t)?n&&(t=o(t)):t=n?at(t):ct(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===r.length)return t;if(1===r.length){var i=r[0];if(i===t||n&&c(i)||s(t)&&s(i))return i}var l=new tt(r);return n?l=l.toKeyedSeq():s(t)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=r.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),l}(this,e))},includes:function(t){return this.some(function(e){return gt(e,t)})},entries:function(){return this.__iterator(T)},every:function(t,e){Bt(this.size);var n=!0;return this.__iterate(function(o,r,i){if(!t.call(e,o,r,i))return n=!1,!1}),n},filter:function(t,e){return qe(this,Ue(this,t,e,!0))},find:function(t,e,n){var o=this.findEntry(t,e);return o?o[1]:n},findEntry:function(t,e){var n;return this.__iterate(function(o,r,i){if(t.call(e,o,r,i))return n=[r,o],!1}),n},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return Bt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Bt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(o){n?n=!1:e+=t,e+=null!==o&&void 0!==o?o.toString():""}),e},keys:function(){return this.__iterator(O)},map:function(t,e){return qe(this,Re(this,t,e))},reduce:function(t,e,n){var o,r;return Bt(this.size),arguments.length<2?r=!0:o=e,this.__iterate(function(e,i,a){r?(r=!1,o=e):o=t.call(n,o,e,i,a)}),o},reduceRight:function(t,e,n){var o=this.toKeyedSeq().reverse();return o.reduce.apply(o,arguments)},reverse:function(){return qe(this,Fe(this,!0))},slice:function(t,e){return qe(this,Ke(this,t,e,!0))},some:function(t,e){return!this.every(Tn(t),e)},sort:function(t){return qe(this,Qe(this,t))},values:function(){return this.__iterator(I)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return E(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var o=Pt().asMutable();return t.__iterate(function(r,i){o.update(e.call(n,r,i,t),0,function(t){return t+1})}),o.asImmutable()}(this,t,e)},equals:function(t){return ht(this,t)},entrySeq:function(){var t=this;if(t._cache)return new tt(t._cache);var e=t.toSeq().map(In).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Tn(t),e)},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},first:function(){return this.find(j)},flatMap:function(t,e){return qe(this,function(t,e,n){var o=Xe(t);return t.toSeq().map(function(r,i){return o(e.call(n,r,i,t))}).flatten(!0)}(this,t,e))},flatten:function(t){return qe(this,He(this,t,!0))},fromEntrySeq:function(){return new Be(this)},get:function(t,e){return this.find(function(e,n){return gt(n,t)},void 0,e)},getIn:function(t,e){for(var n,o=this,r=nn(t);!(n=r.next()).done;){var i=n.value;if((o=o&&o.get?o.get(i,v):v)===v)return e}return o},groupBy:function(t,e){return function(t,e,n){var o=c(t),r=(u(t)?De():Pt()).asMutable();t.__iterate(function(i,a){r.update(e.call(n,i,a,t),function(t){return(t=t||[]).push(o?[a,i]:i),t})});var i=Xe(t);return r.map(function(e){return qe(t,i(e))})}(this,t,e)},has:function(t){return this.get(t,v)!==v},hasIn:function(t){return this.getIn(t,v)!==v},isSubset:function(t){return t="function"===typeof t.includes?t:n(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"===typeof t.isSubset?t:n(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(On).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return Ze(this,t)},maxBy:function(t,e){return Ze(this,e,t)},min:function(t){return Ze(this,t?An(t):Pn)},minBy:function(t,e){return Ze(this,e?An(e):Pn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return qe(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return qe(this,Ye(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Tn(t),e)},sortBy:function(t,e){return qe(this,Qe(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return qe(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return qe(this,function(t,e,n){var o=$e(t);return o.__iterateUncached=function(o,r){var i=this;if(r)return this.cacheResult().__iterate(o,r);var a=0;return t.__iterate(function(t,r,c){return e.call(n,t,r,c)&&++a&&o(t,r,i)}),a},o.__iteratorUncached=function(o,r){var i=this;if(r)return this.cacheResult().__iterator(o,r);var a=t.__iterator(T,r),c=!0;return new P(function(){if(!c)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var r=t.value,s=r[0],l=r[1];return e.call(n,l,s,i)?o===T?t:R(o,s,l,t):(c=!1,{value:void 0,done:!0})})},o}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Tn(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=u(t),n=c(t),o=e?1:0;return function(t,e){return e=Ct(e,3432918353),e=Ct(e<<15|e>>>-15,461845907),e=Ct(e<<13|e>>>-13,5),e=Ct((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=kt((e=Ct(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){o=31*o+Rn(Et(t),Et(e))|0}:function(t,e){o=o+Rn(Et(t),Et(e))|0}:e?function(t){o=31*o+Et(t)|0}:function(t){o=o+Et(t)|0}),o)}(this))}});var Nn=n.prototype;Nn[p]=!0,Nn[B]=Nn.values,Nn.__toJS=Nn.toArray,Nn.__toStringMapper=zn,Nn.inspect=Nn.toSource=function(){return this.toString()},Nn.chain=Nn.flatMap,Nn.contains=Nn.includes,function(){try{Object.defineProperty(Nn,"length",{get:function(){if(!n.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))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(t){}}(),Dn(o,{flip:function(){return qe(this,Pe(this))},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey(function(e){return gt(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return gt(e,t)})},mapEntries:function(t,e){var n=this,o=0;return qe(this,this.toSeq().map(function(r,i){return t.call(e,[i,r],o++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return qe(this,this.toSeq().flip().map(function(o,r){return t.call(e,o,r,n)}).flip())}});var Ln=o.prototype;function On(t,e){return e}function In(t,e){return[e,t]}function Tn(t){return function(){return!t.apply(this,arguments)}}function An(t){return function(){return-t.apply(this,arguments)}}function zn(t){return"string"===typeof t?JSON.stringify(t):t}function Bn(){return k(arguments)}function Pn(t,e){return t<e?1:t>e?-1:0}function Rn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return Ln[f]=!0,Ln[B]=Nn.entries,Ln.__toJS=Nn.toObject,Ln.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+zn(t)},Dn(r,{toKeyedSeq:function(){return new Te(this,!1)},filter:function(t,e){return qe(this,Ue(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return qe(this,Fe(this,!1))},slice:function(t,e){return qe(this,Ke(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=D(t,t<0?this.count():this.size);var o=this.slice(0,t);return qe(this,1===n?o:o.concat(k(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.toKeyedSeq().findLastKey(t,e);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(t){return qe(this,He(this,t,!1))},get:function(t,e){return(t=_(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return(t=_(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return qe(this,function(t,e){var n=$e(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,o){var r=this,i=0;return t.__iterate(function(t,o){return(!i||!1!==n(e,i++,r))&&!1!==n(t,i++,r)},o),i},n.__iteratorUncached=function(n,o){var r,i=t.__iterator(I,o),a=0;return new P(function(){return(!r||a%2)&&(r=i.next()).done?r:a%2?R(n,a++,e):R(n,a++,r.value,r)})},n}(this,t))},interleave:function(){var t=[this].concat(k(arguments)),e=Ge(this.toSeq(),G.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),qe(this,n)},last:function(){return this.get(-1)},skipWhile:function(t,e){return qe(this,Ye(this,t,e,!1))},zip:function(){return qe(this,Ge(this,Bn,[this].concat(k(arguments))))},zipWith:function(t){var e=k(arguments);return e[0]=this,qe(this,Ge(this,t,e))}}),r.prototype[d]=!0,r.prototype[g]=!0,Dn(i,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Nn.includes,Dn(W,o.prototype),Dn(G,r.prototype),Dn(q,i.prototype),Dn(St,o.prototype),Dn(Mt,r.prototype),Dn(wt,i.prototype),{Iterable:n,Seq:Z,Collection:bt,Map:Pt,OrderedMap:De,List:fe,Stack:wn,Set:sn,OrderedSet:yn,Record:on,Range:vt,Repeat:yt,is:gt,fromJS:pt}}()},287:function(t,e,n){"use strict";var o=function(t){};t.exports=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(o(e),!t){var a;if(void 0===e)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=0;(a=new Error(e.replace(/%s/g,function(){return String(r[c++])}))).name="Invariant Violation"}throw a.framesToPop=1,a}}},291:function(t,e,n){"use strict";function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){r(t,e,n[e])})}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(888),a=n(468),c=n(890),s=n(415),l=n(285),u=l.OrderedSet,p=l.Record,f=l.Stack,d=l.OrderedMap,g=l.List,h=p({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:f(),selection:null,treeMap:null,undoStack:f()}),y=function(){e.createEmpty=function(t){return this.createWithText("",t)},e.createWithText=function(t,n){return e.createWithContent(a.createFromText(t),n)},e.createWithContent=function(t,n){if(0===t.getBlockMap().count())return e.createEmpty(n);var o=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:f(),redoStack:f(),decorator:n||null,selection:s.createEmpty(o)})},e.create=function(t){var n=t.currentContent,r=o({},t,{treeMap:v(n,t.decorator),directionMap:c.getDirectionMap(n)});return new e(new h(r))},e.fromJS=function(t){return new e(new h(o({},t,{directionMap:null!=t.directionMap?d(t.directionMap):t.directionMap,inlineStyleOverride:null!=t.inlineStyleOverride?u(t.inlineStyleOverride):t.inlineStyleOverride,nativelyRenderedContent:null!=t.nativelyRenderedContent?a.fromJS(t.nativelyRenderedContent):t.nativelyRenderedContent,redoStack:null!=t.redoStack?f(t.redoStack.map(function(t){return a.fromJS(t)})):t.redoStack,selection:null!=t.selection?new s(t.selection):t.selection,treeMap:null!=t.treeMap?d(t.treeMap).map(function(t){return g(t).map(function(t){return i.fromJS(t)})}):t.treeMap,undoStack:null!=t.undoStack?f(t.undoStack.map(function(t){return a.fromJS(t)})):t.undoStack,currentContent:a.fromJS(t.currentContent)})))},e.set=function(t,n){return new e(t.getImmutable().withMutations(function(e){var o=e.get("decorator"),r=o;null===n.decorator?r=null:n.decorator&&(r=n.decorator);var a=n.currentContent||t.getCurrentContent();if(r!==o){var c,s=e.get("treeMap");return c=r&&o?function(t,e,n,o,r){return n.merge(e.toSeq().filter(function(e){return o.getDecorations(e,t)!==r.getDecorations(e,t)}).map(function(e){return i.generate(t,e,o)}))}(a,a.getBlockMap(),s,r,o):v(a,r),void e.merge({decorator:r,treeMap:c,nativelyRenderedContent:null})}a!==t.getCurrentContent()&&e.set("treeMap",function(t,e,n,o){var r=t.getCurrentContent().set("entityMap",n),a=r.getBlockMap();return t.getImmutable().get("treeMap").merge(e.toSeq().filter(function(t,e){return t!==a.get(e)}).map(function(t){return i.generate(r,t,o)}))}(t,a.getBlockMap(),a.getEntityMap(),r)),e.merge(n)}))};var t=e.prototype;function e(t){r(this,"_immutable",void 0),this._immutable=t}return t.toJS=function(){return this.getImmutable().toJS()},t.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},t.getCurrentContent=function(){return this.getImmutable().get("currentContent")},t.getUndoStack=function(){return this.getImmutable().get("undoStack")},t.getRedoStack=function(){return this.getImmutable().get("redoStack")},t.getSelection=function(){return this.getImmutable().get("selection")},t.getDecorator=function(){return this.getImmutable().get("decorator")},t.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},t.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},t.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},t.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},t.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,n){return e.set(t,{inlineStyleOverride:n})},t.getCurrentInlineStyle=function(){var t=this.getInlineStyleOverride();if(null!=t)return t;var e=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(t,e){var n=e.getStartKey(),o=e.getStartOffset(),r=t.getBlockForKey(n);if(o>0)return r.getInlineStyleAt(o-1);if(r.getLength())return r.getInlineStyleAt(0);return b(t,n)}(e,n):function(t,e){var n=e.getStartKey(),o=e.getStartOffset(),r=t.getBlockForKey(n);if(o<r.getLength())return r.getInlineStyleAt(o);if(o>0)return r.getInlineStyleAt(o-1);return b(t,n)}(e,n)},t.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(t,e){return m(t,e,!1)},e.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),m(t,e,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),o=n.getKey(),r=n.getLength();return e.acceptSelection(t,new s({anchorKey:o,anchorOffset:r,focusKey:o,focusOffset:r,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,o){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.getCurrentContent()===n)return t;var i=c.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:i,lastChangeType:o,selection:n.getSelectionAfter(),forceSelection:r,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),l=t.getUndoStack(),u=n;a!==s.getSelectionAfter()||function(t,e){var n=t.getLastChangeType();return e!==n||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}(t,o)?(l=l.push(s),u=u.set("selectionBefore",a)):"insert-characters"!==o&&"backspace-character"!==o&&"delete-character"!==o||(u=u.set("selectionBefore",s.getSelectionBefore()));var p=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(o)&&(p=null);var d={currentContent:u,directionMap:i,undoStack:l,redoStack:f(),lastChangeType:o,selection:n.getSelectionAfter(),forceSelection:r,inlineStyleOverride:p};return e.set(t,d)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),o=n.peek();if(!o)return t;var r=t.getCurrentContent(),i=c.getDirectionMap(o,t.getDirectionMap());return e.set(t,{currentContent:o,directionMap:i,undoStack:n.shift(),redoStack:t.getRedoStack().push(r),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:r.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),o=n.peek();if(!o)return t;var r=t.getCurrentContent(),i=c.getDirectionMap(o,t.getDirectionMap());return e.set(t,{currentContent:o,directionMap:i,undoStack:t.getUndoStack().push(r),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:o.getSelectionAfter()})},t.getImmutable=function(){return this._immutable},e}();function m(t,e,n){return y.set(t,{selection:e,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function v(t,e){return t.getBlockMap().map(function(n){return i.generate(t,n,e)}).toOrderedMap()}function b(t,e){var n=t.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).skipUntil(function(t,e){return t.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):u()}t.exports=y},302:function(t,e,n){"use strict";var o=n(311),r=n(878),i=n(879),a=n(881),c=n(413),s=n(285),l=n(884),u=n(885),p=n(287),f=n(592),d=n(590),g=n(886),h=n(887),y=s.OrderedSet,m={replaceText:function(t,e,n,r,i){var a=d(t,e),c=g(a,e),s=o.create({style:r||y(),entity:i||null});return u(c,c.getSelectionAfter(),n,s)},insertText:function(t,e,n,o,r){return e.isCollapsed()||p(!1),m.replaceText(t,e,n,o,r)},moveText:function(t,e,n){var o=c(t,e),r=m.removeRange(t,e,"backward");return m.replaceWithFragment(r,n,o)},replaceWithFragment:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",r=d(t,e),i=g(r,e);return l(i,i.getSelectionAfter(),n,o)},removeRange:function(t,e,n){var o,r,i,c;e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),o=e.getAnchorKey(),r=e.getFocusKey(),i=t.getBlockForKey(o),c=t.getBlockForKey(r);var s=e.getStartOffset(),l=e.getEndOffset(),u=i.getEntityAt(s),p=c.getEntityAt(l-1);if(o===r&&u&&u===p){var f=a(t.getEntityMap(),i,c,e,n);return g(t,f)}var h=d(t,e);return g(h,e)},splitBlock:function(t,e){var n=d(t,e),o=g(n,e);return h(o,o.getSelectionAfter())},applyInlineStyle:function(t,e,n){return r.add(t,e,n)},removeInlineStyle:function(t,e,n){return r.remove(t,e,n)},setBlockType:function(t,e,n){return f(t,e,function(t){return t.merge({type:n,depth:0})})},setBlockData:function(t,e,n){return f(t,e,function(t){return t.merge({data:n})})},mergeBlockData:function(t,e,n){return f(t,e,function(t){return t.merge({data:t.getData().merge(n)})})},applyEntity:function(t,e,n){var o=d(t,e);return i(o,e,n)}};t.exports=m},303:function(t,e,n){"use strict";t.exports=function(t){if(null!=t)return t;throw new Error("Got unexpected null or undefined")}},304:function(t,e,n){"use strict";var o=n(897),r=n(899),i=n(900),a=n(901);function c(t,e,n,o){if(t===n)return!0;if(!n.startsWith(t))return!1;var i=n.slice(t.length);return!!e&&(i=o?o(i):i,r.contains(i,e))}function s(t){return"Windows"===o.platformName?t.replace(/^\s*NT/,""):t}var l={isBrowser:function(t){return c(o.browserName,o.browserFullVersion,t)},isBrowserArchitecture:function(t){return c(o.browserArchitecture,null,t)},isDevice:function(t){return c(o.deviceName,null,t)},isEngine:function(t){return c(o.engineName,o.engineVersion,t)},isPlatform:function(t){return c(o.platformName,o.platformFullVersion,t,s)},isPlatformArchitecture:function(t){return c(o.platformArchitecture,null,t)}};t.exports=i(l,a)},311:function(t,e,n){"use strict";var o=n(285),r=o.Map,i=o.OrderedSet,a=o.Record,c=i(),s={style:c,entity:null},l=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=o.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(t){return this.getStyle().includes(t)},o.applyStyle=function(t,e){var n=t.set("style",t.getStyle().add(e));return o.create(n)},o.removeStyle=function(t,e){var n=t.set("style",t.getStyle().remove(e));return o.create(n)},o.applyEntity=function(t,e){var n=t.getEntity()===e?t:t.set("entity",e);return o.create(n)},o.create=function(t){if(!t)return u;var e=r({style:c,entity:null}).merge(t),n=p.get(e);if(n)return n;var i=new o(e);return p=p.set(e,i),i},o.fromJS=function(t){var e=t.style,n=t.entity;return new o({style:Array.isArray(e)?i(e):e,entity:Array.isArray(n)?i(n):n})},o}(a(s)),u=new l,p=r([[r(s),u]]);l.EMPTY=u,t.exports=l},312:function(t,e,n){"use strict";var o=n(311),r=n(374),i=n(285),a=i.List,c=i.Map,s=i.OrderedSet,l=i.Record,u=i.Repeat,p=s(),f={parent:null,characterList:a(),data:c(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},d=function(t,e){return t.getStyle()===e.getStyle()},g=function(t,e){return t.getEntity()===e.getEntity()},h=function(t){if(!t)return t;var e=t.characterList,n=t.text;return n&&!e&&(t.characterList=a(u(o.EMPTY,n.length))),t},y=function(t){var e,n;function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return t.call(this,h(e))||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=o.prototype;return i.getKey=function(){return this.get("key")},i.getType=function(){return this.get("type")},i.getText=function(){return this.get("text")},i.getCharacterList=function(){return this.get("characterList")},i.getLength=function(){return this.getText().length},i.getDepth=function(){return this.get("depth")},i.getData=function(){return this.get("data")},i.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():p},i.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},i.getChildKeys=function(){return this.get("children")},i.getParentKey=function(){return this.get("parent")},i.getPrevSiblingKey=function(){return this.get("prevSibling")},i.getNextSiblingKey=function(){return this.get("nextSibling")},i.findStyleRanges=function(t,e){r(this.getCharacterList(),d,t,e)},i.findEntityRanges=function(t,e){r(this.getCharacterList(),g,t,e)},o}(l(f));t.exports=y},320:function(t,e,n){"use strict";var o={},r=Math.pow(2,24);t.exports=function(){for(var t;void 0===t||o.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(Math.random()*r).toString(32);return o[t]=!0,t}},329:function(t,e,n){"use strict";var o={encode:function(t,e,n){return t+"-"+e+"-"+n},decode:function(t){var e=t.split("-").reverse(),n=e[0],o=e[1];return{blockKey:e.slice(2).reverse().join("-"),decoratorKey:parseInt(o,10),leafKey:parseInt(n,10)}}};t.exports=o},336:function(t,e,n){"use strict";t.exports=function(t){return!("undefined"===typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[t]}},347:function(t,e,n){"use strict";var o=n(311),r=n(374),i=n(285),a=i.List,c=i.Map,s=i.OrderedSet,l=i.Record,u=i.Repeat,p=s(),f=l({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:c()}),d=function(t){if(!t)return t;var e=t.characterList,n=t.text;return n&&!e&&(t.characterList=a(u(o.EMPTY,n.length))),t},g=function(t){var e,n;function o(e){return t.call(this,d(e))||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=o.prototype;return i.getKey=function(){return this.get("key")},i.getType=function(){return this.get("type")},i.getText=function(){return this.get("text")},i.getCharacterList=function(){return this.get("characterList")},i.getLength=function(){return this.getText().length},i.getDepth=function(){return this.get("depth")},i.getData=function(){return this.get("data")},i.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():p},i.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},i.findStyleRanges=function(t,e){r(this.getCharacterList(),h,t,e)},i.findEntityRanges=function(t,e){r(this.getCharacterList(),y,t,e)},o}(f);function h(t,e){return t.getStyle()===e.getStyle()}function y(t,e){return t.getEntity()===e.getEntity()}t.exports=g},348:function(t,e,n){"use strict";function o(t){return t.replace(/\//g,"-")}t.exports=function(t){return"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).map(o).join(" "):Array.prototype.map.call(arguments,o).join(" ")}},349:function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.ownerDocument)&&t.nodeType===Node.ELEMENT_NODE}},350:function(t,e,n){"use strict";var o=n(287),r=55296,i=56319,a=56320,c=57343,s=/[\uD800-\uDFFF]/;function l(t){return r<=t&&t<=c}function u(t){return s.test(t)}function p(t,e){return 1+l(t.charCodeAt(e))}function f(t,e,n){if(e=e||0,n=void 0===n?1/0:n||0,!u(t))return t.substr(e,n);var o=t.length;if(o<=0||e>o||n<=0)return"";var r=0;if(e>0){for(;e>0&&r<o;e--)r+=p(t,r);if(r>=o)return""}else if(e<0){for(r=o;e<0&&0<r;e++)r-=p(t,r-1);r<0&&(r=0)}var i=o;if(n<o)for(i=r;n>0&&i<o;n--)i+=p(t,i);return t.substring(r,i)}var d={getCodePoints:function(t){for(var e=[],n=0;n<t.length;n+=p(t,n))e.push(t.codePointAt(n));return e},getUTF16Length:p,hasSurrogateUnit:u,isCodeUnitInSurrogateRange:l,isSurrogatePair:function(t,e){if(0<=e&&e<t.length||o(!1),e+1===t.length)return!1;var n=t.charCodeAt(e),s=t.charCodeAt(e+1);return r<=n&&n<=i&&a<=s&&s<=c},strlen:function(t){if(!u(t))return t.length;for(var e=0,n=0;n<t.length;n+=p(t,n))e++;return e},substring:function(t,e,n){(e=e||0)<0&&(e=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var o=Math.abs(n-e);return f(t,e=e<n?e:n,o)},substr:f};t.exports=d},372:function(t,e,n){"use strict";var o=n(877),r=n(373),i=n(311),a=n(893),c=n(347),s=n(468),l=n(470),u=n(597),p=n(894),f=n(613),d=n(414),g=n(302),h=n(595),y=n(291),m=n(477),v=n(958),b=n(624),S=n(415),M=n(959),w=n(962),C=n(320),k=n(625),E=n(968),_={Editor:p,EditorBlock:f,EditorState:y,CompositeDecorator:a,Entity:d,EntityInstance:h,BlockMapBuilder:r,CharacterMetadata:i,ContentBlock:c,ContentState:s,RawDraftContentState:v,SelectionState:S,AtomicBlockUtils:o,KeyBindingUtil:m,Modifier:g,RichUtils:b,DefaultDraftBlockRenderMap:l,DefaultDraftInlineStyle:u,convertFromHTML:n(622),convertFromRaw:w,convertToRaw:M,genKey:C,getDefaultKeyBinding:k,getVisibleSelectionRect:E};t.exports=_},373:function(t,e,n){"use strict";var o=n(285).OrderedMap,r={createFromArray:function(t){return o(t.map(function(t){return[t.getKey(),t]}))}};t.exports=r},374:function(t,e,n){"use strict";t.exports=function(t,e,n,o){if(t.size){var r=0;t.reduce(function(t,i,a){return e(t,i)||(n(t)&&o(r,a),r=a),i}),n(t.last())&&o(r,t.count())}}},375:function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.ownerDocument)&&(t.ownerDocument.defaultView?t instanceof t.ownerDocument.defaultView.HTMLElement:t instanceof HTMLElement)}},376:function(t,e,n){"use strict";var o=n(302),r=n(336)("draft_tree_data_support");t.exports=function(t,e,n){var i=t.getSelection(),a=t.getCurrentContent(),c=i,s=i.getAnchorKey(),l=i.getFocusKey(),u=a.getBlockForKey(s);if(r&&"forward"===n&&s!==l)return a;if(i.isCollapsed()){if("forward"===n){if(t.isSelectionAtEndOfContent())return a;if(r&&i.getAnchorOffset()===a.getBlockForKey(s).getLength()){var p=a.getBlockForKey(u.nextSibling);if(!p||0===p.getLength())return a}}else if(t.isSelectionAtStartOfContent())return a;if((c=e(t))===i)return a}return o.removeRange(a,c,n)}},413:function(t,e,n){"use strict";var o=n(589),r=n(590);t.exports=function(t,e){var n=e.getStartKey(),i=e.getStartOffset(),a=e.getEndKey(),c=e.getEndOffset(),s=r(t,e).getBlockMap(),l=s.keySeq(),u=l.indexOf(n),p=l.indexOf(a)+1;return o(s.slice(u,p).map(function(t,e){var o=t.getText(),r=t.getCharacterList();return n===a?t.merge({text:o.slice(i,c),characterList:r.slice(i,c)}):e===n?t.merge({text:o.slice(i),characterList:r.slice(i)}):e===a?t.merge({text:o.slice(0,c),characterList:r.slice(0,c)}):t}))}},414:function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=n(595),i=n(285),a=n(287),c=n(889),s=(0,i.Map)(),l=c();function u(t,e){console.warn("WARNING: "+t+' will be deprecated soon!\nPlease use "'+e+'" instead.')}var p={getLastCreatedEntityKey:function(){return u("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),p.__getLastCreatedEntityKey()},create:function(t,e,n){return u("DraftEntity.create","contentState.createEntity"),p.__create(t,e,n)},add:function(t){return u("DraftEntity.add","contentState.addEntity"),p.__add(t)},get:function(t){return u("DraftEntity.get","contentState.getEntity"),p.__get(t)},__getAll:function(){return s},__loadWithEntities:function(t){s=t,l=c()},mergeData:function(t,e){return u("DraftEntity.mergeData","contentState.mergeEntityData"),p.__mergeData(t,e)},replaceData:function(t,e){return u("DraftEntity.replaceData","contentState.replaceEntityData"),p.__replaceData(t,e)},__getLastCreatedEntityKey:function(){return l},__create:function(t,e,n){return p.__add(new r({type:t,mutability:e,data:n||{}}))},__add:function(t){return l=c(),s=s.set(l,t),l},__get:function(t){var e=s.get(t);return e||a(!1),e},__mergeData:function(t,e){var n=p.__get(t),r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}({},n.getData(),e),i=n.set("data",r);return s=s.set(t,i),i},__replaceData:function(t,e){var n=p.__get(t).set("data",e);return s=s.set(t,n),n}};t.exports=p},415:function(t,e,n){"use strict";var o=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var r=o.prototype;return r.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},r.getAnchorKey=function(){return this.get("anchorKey")},r.getAnchorOffset=function(){return this.get("anchorOffset")},r.getFocusKey=function(){return this.get("focusKey")},r.getFocusOffset=function(){return this.get("focusOffset")},r.getIsBackward=function(){return this.get("isBackward")},r.getHasFocus=function(){return this.get("hasFocus")},r.hasEdgeWithin=function(t,e,n){var o=this.getAnchorKey(),r=this.getFocusKey();if(o===r&&o===t){var i=this.getStartOffset(),a=this.getEndOffset();return e<=i&&i<=n||e<=a&&a<=n}if(t!==o&&t!==r)return!1;var c=t===o?this.getAnchorOffset():this.getFocusOffset();return e<=c&&n>=c},r.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},r.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},r.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},r.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},r.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},o.createEmpty=function(t){return new o({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},o}((0,n(285).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));t.exports=o},416:function(t,e,n){"use strict";var o=n(287),r="LTR",i="RTL",a=null;function c(t){return t===r||t===i}function s(t){return c(t)||o(!1),t===r?"ltr":"rtl"}function l(t){a=t}var u={NEUTRAL:"NEUTRAL",LTR:r,RTL:i,isStrong:c,getHTMLDir:s,getHTMLDirIfDifferent:function(t,e){return c(t)||o(!1),c(e)||o(!1),t===e?null:s(t)},setGlobalDir:l,initGlobalDir:function(){l(r)},getGlobalDir:function(){return a||this.initGlobalDir(),a||o(!1),a}};t.exports=u},417:function(t,e,n){"use strict";var o=n(418),r=n(598);t.exports=function(t){for(var e=t;e&&e!==o(t).documentElement;){var n=r(e);if(null!=n)return n;e=e.parentNode}return null}},418:function(t,e,n){"use strict";t.exports=function(t){return t&&t.ownerDocument?t.ownerDocument:document}},419:function(t,e,n){"use strict";t.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},420:function(t,e,n){"use strict";function o(t,e){var n=r.get(t,e);return"auto"===n||"scroll"===n}var r={get:n(911),getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(o(t,"overflow")||o(t,"overflowY")||o(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}};t.exports=r},421:function(t,e,n){"use strict";var o=n(915),r=n(916);t.exports=function(t){var e=o(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=e);var n=r(t),i=t===e?t.ownerDocument.documentElement:t,a=t.scrollWidth-i.clientWidth,c=t.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,c)),n}},422:function(t,e,n){"use strict";t.exports=function(t){return"handled"===t||!0===t}},423:function(t,e,n){},468:function(t,e,n){"use strict";function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){r(t,e,n[e])})}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(373),a=n(311),c=n(347),s=n(312),l=n(414),u=n(415),p=n(320),f=n(594),d=n(336),g=n(285),h=n(596),y=g.List,m=g.Record,v=g.Repeat,b=g.Map,S=g.OrderedMap,M=m({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),w=d("draft_tree_data_support")?s:c,C=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var c=r.prototype;return c.getEntityMap=function(){return l},c.getBlockMap=function(){return this.get("blockMap")},c.getSelectionBefore=function(){return this.get("selectionBefore")},c.getSelectionAfter=function(){return this.get("selectionAfter")},c.getBlockForKey=function(t){return this.getBlockMap().get(t)},c.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},c.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},c.getBlockAfter=function(t){return this.getBlockMap().skipUntil(function(e,n){return n===t}).skip(1).first()},c.getBlockBefore=function(t){return this.getBlockMap().reverse().skipUntil(function(e,n){return n===t}).skip(1).first()},c.getBlocksAsArray=function(){return this.getBlockMap().toArray()},c.getFirstBlock=function(){return this.getBlockMap().first()},c.getLastBlock=function(){return this.getBlockMap().last()},c.getPlainText=function(t){return this.getBlockMap().map(function(t){return t?t.getText():""}).join(t||"\n")},c.getLastCreatedEntityKey=function(){return l.__getLastCreatedEntityKey()},c.hasText=function(){var t=this.getBlockMap();return t.size>1||escape(t.first().getText()).replace(/%u200B/g,"").length>0},c.createEntity=function(t,e,n){return l.__create(t,e,n),this},c.mergeEntityData=function(t,e){return l.__mergeData(t,e),this},c.replaceEntityData=function(t,e){return l.__replaceData(t,e),this},c.addEntity=function(t){return l.__add(t),this},c.getEntity=function(t){return l.__get(t)},c.getAllEntities=function(){return l.__getAll()},c.loadWithEntities=function(t){return l.__loadWithEntities(t)},r.createFromBlockArray=function(t,e){var n=Array.isArray(t)?t:t.contentBlocks,o=i.createFromArray(n),a=o.isEmpty()?new u:u.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:e||l,selectionBefore:a,selectionAfter:a})},r.createFromText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=t.split(e).map(function(t){return t=h(t),new w({key:p(),text:t,type:"unstyled",characterList:y(v(a.EMPTY,t.length))})});return r.createFromBlockArray(n)},r.fromJS=function(t){return new r(o({},t,{blockMap:S(t.blockMap).map(r.createContentBlockFromJS),selectionBefore:new u(t.selectionBefore),selectionAfter:new u(t.selectionAfter)}))},r.createContentBlockFromJS=function(t){var e=t.characterList;return new w(o({},t,{data:b(t.data),characterList:null!=e?y((Array.isArray(e)?e:f(e)).map(function(t){return a.fromJS(t)})):void 0}))},r}(M);t.exports=C},469:function(t,e,n){"use strict";var o=n(416),r=n(287),i="\u0590\u05be\u05c0\u05c3\u05c6\u05c8-\u05cf\u05d0-\u05ea\u05eb-\u05ef\u05f0-\u05f2\u05f3-\u05f4\u05f5-\u05ff\u07c0-\u07c9\u07ca-\u07ea\u07f4-\u07f5\u07fa\u07fb-\u07ff\u0800-\u0815\u081a\u0824\u0828\u082e-\u082f\u0830-\u083e\u083f\u0840-\u0858\u085c-\u085d\u085e\u085f-\u089f\u200f\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb37\ufb38-\ufb3c\ufb3d\ufb3e\ufb3f\ufb40-\ufb41\ufb42\ufb43-\ufb44\ufb45\ufb46-\ufb4f",a="\u0608\u060b\u060d\u061b\u061c\u061d\u061e-\u061f\u0620-\u063f\u0640\u0641-\u064a\u066d\u066e-\u066f\u0671-\u06d3\u06d4\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06fd-\u06fe\u06ff\u0700-\u070d\u070e\u070f\u0710\u0712-\u072f\u074b-\u074c\u074d-\u07a5\u07b1\u07b2-\u07bf\u08a0-\u08b2\u08b3-\u08e3\ufb50-\ufbb1\ufbb2-\ufbc1\ufbc2-\ufbd2\ufbd3-\ufd3d\ufd40-\ufd4f\ufd50-\ufd8f\ufd90-\ufd91\ufd92-\ufdc7\ufdc8-\ufdcf\ufdf0-\ufdfb\ufdfc\ufdfe-\ufdff\ufe70-\ufe74\ufe75\ufe76-\ufefc\ufefd-\ufefe",c=new RegExp("["+"A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u01ba\u01bb\u01bc-\u01bf\u01c0-\u01c3\u01c4-\u0293\u0294\u0295-\u02af\u02b0-\u02b8\u02bb-\u02c1\u02d0-\u02d1\u02e0-\u02e4\u02ee\u0370-\u0373\u0376-\u0377\u037a\u037b-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0482\u048a-\u052f\u0531-\u0556\u0559\u055a-\u055f\u0561-\u0587\u0589\u0903\u0904-\u0939\u093b\u093d\u093e-\u0940\u0949-\u094c\u094e-\u094f\u0950\u0958-\u0961\u0964-\u0965\u0966-\u096f\u0970\u0971\u0972-\u0980\u0982-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09be-\u09c0\u09c7-\u09c8\u09cb-\u09cc\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e1\u09e6-\u09ef\u09f0-\u09f1\u09f4-\u09f9\u09fa\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3e-\u0a40\u0a59-\u0a5c\u0a5e\u0a66-\u0a6f\u0a72-\u0a74\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0abe-\u0ac0\u0ac9\u0acb-\u0acc\u0ad0\u0ae0-\u0ae1\u0ae6-\u0aef\u0af0\u0b02-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b3e\u0b40\u0b47-\u0b48\u0b4b-\u0b4c\u0b57\u0b5c-\u0b5d\u0b5f-\u0b61\u0b66-\u0b6f\u0b70\u0b71\u0b72-\u0b77\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bbf\u0bc1-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0be6-\u0bef\u0bf0-\u0bf2\u0c01-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c41-\u0c44\u0c58-\u0c59\u0c60-\u0c61\u0c66-\u0c6f\u0c7f\u0c82-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cbe\u0cbf\u0cc0-\u0cc4\u0cc6\u0cc7-\u0cc8\u0cca-\u0ccb\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce1\u0ce6-\u0cef\u0cf1-\u0cf2\u0d02-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d3e-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d57\u0d60-\u0d61\u0d66-\u0d6f\u0d70-\u0d75\u0d79\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd1\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0df4\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e45\u0e46\u0e4f\u0e50-\u0e59\u0e5a-\u0e5b\u0e81-\u0e82\u0e84\u0e87-\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa-\u0eab\u0ead-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f01-\u0f03\u0f04-\u0f12\u0f13\u0f14\u0f15-\u0f17\u0f1a-\u0f1f\u0f20-\u0f29\u0f2a-\u0f33\u0f34\u0f36\u0f38\u0f3e-\u0f3f\u0f40-\u0f47\u0f49-\u0f6c\u0f7f\u0f85\u0f88-\u0f8c\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce-\u0fcf\u0fd0-\u0fd4\u0fd5-\u0fd8\u0fd9-\u0fda\u1000-\u102a\u102b-\u102c\u1031\u1038\u103b-\u103c\u103f\u1040-\u1049\u104a-\u104f\u1050-\u1055\u1056-\u1057\u105a-\u105d\u1061\u1062-\u1064\u1065-\u1066\u1067-\u106d\u106e-\u1070\u1075-\u1081\u1083-\u1084\u1087-\u108c\u108e\u108f\u1090-\u1099\u109a-\u109c\u109e-\u109f\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fb\u10fc\u10fd-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1360-\u1368\u1369-\u137c\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166d-\u166e\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16eb-\u16ed\u16ee-\u16f0\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1735-\u1736\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17b6\u17be-\u17c5\u17c7-\u17c8\u17d4-\u17d6\u17d7\u17d8-\u17da\u17dc\u17e0-\u17e9\u1810-\u1819\u1820-\u1842\u1843\u1844-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1923-\u1926\u1929-\u192b\u1930-\u1931\u1933-\u1938\u1946-\u194f\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c0\u19c1-\u19c7\u19c8-\u19c9\u19d0-\u19d9\u19da\u1a00-\u1a16\u1a19-\u1a1a\u1a1e-\u1a1f\u1a20-\u1a54\u1a55\u1a57\u1a61\u1a63-\u1a64\u1a6d-\u1a72\u1a80-\u1a89\u1a90-\u1a99\u1aa0-\u1aa6\u1aa7\u1aa8-\u1aad\u1b04\u1b05-\u1b33\u1b35\u1b3b\u1b3d-\u1b41\u1b43-\u1b44\u1b45-\u1b4b\u1b50-\u1b59\u1b5a-\u1b60\u1b61-\u1b6a\u1b74-\u1b7c\u1b82\u1b83-\u1ba0\u1ba1\u1ba6-\u1ba7\u1baa\u1bae-\u1baf\u1bb0-\u1bb9\u1bba-\u1be5\u1be7\u1bea-\u1bec\u1bee\u1bf2-\u1bf3\u1bfc-\u1bff\u1c00-\u1c23\u1c24-\u1c2b\u1c34-\u1c35\u1c3b-\u1c3f\u1c40-\u1c49\u1c4d-\u1c4f\u1c50-\u1c59\u1c5a-\u1c77\u1c78-\u1c7d\u1c7e-\u1c7f\u1cc0-\u1cc7\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf1\u1cf2-\u1cf3\u1cf5-\u1cf6\u1d00-\u1d2b\u1d2c-\u1d6a\u1d6b-\u1d77\u1d78\u1d79-\u1d9a\u1d9b-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u200e\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2134\u2135-\u2138\u2139\u213c-\u213f\u2145-\u2149\u214e\u214f\u2160-\u2182\u2183-\u2184\u2185-\u2188\u2336-\u237a\u2395\u249c-\u24e9\u26ac\u2800-\u28ff\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2c7b\u2c7c-\u2c7d\u2c7e-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d70\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005\u3006\u3007\u3021-\u3029\u302e-\u302f\u3031-\u3035\u3038-\u303a\u303b\u303c\u3041-\u3096\u309d-\u309e\u309f\u30a1-\u30fa\u30fc-\u30fe\u30ff\u3105-\u312d\u3131-\u318e\u3190-\u3191\u3192-\u3195\u3196-\u319f\u31a0-\u31ba\u31f0-\u31ff\u3200-\u321c\u3220-\u3229\u322a-\u3247\u3248-\u324f\u3260-\u327b\u327f\u3280-\u3289\u328a-\u32b0\u32c0-\u32cb\u32d0-\u32fe\u3300-\u3376\u337b-\u33dd\u33e0-\u33fe\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua014\ua015\ua016-\ua48c\ua4d0-\ua4f7\ua4f8-\ua4fd\ua4fe-\ua4ff\ua500-\ua60b\ua60c\ua610-\ua61f\ua620-\ua629\ua62a-\ua62b\ua640-\ua66d\ua66e\ua680-\ua69b\ua69c-\ua69d\ua6a0-\ua6e5\ua6e6-\ua6ef\ua6f2-\ua6f7\ua722-\ua76f\ua770\ua771-\ua787\ua789-\ua78a\ua78b-\ua78e\ua790-\ua7ad\ua7b0-\ua7b1\ua7f7\ua7f8-\ua7f9\ua7fa\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua823-\ua824\ua827\ua830-\ua835\ua836-\ua837\ua840-\ua873\ua880-\ua881\ua882-\ua8b3\ua8b4-\ua8c3\ua8ce-\ua8cf\ua8d0-\ua8d9\ua8f2-\ua8f7\ua8f8-\ua8fa\ua8fb\ua900-\ua909\ua90a-\ua925\ua92e-\ua92f\ua930-\ua946\ua952-\ua953\ua95f\ua960-\ua97c\ua983\ua984-\ua9b2\ua9b4-\ua9b5\ua9ba-\ua9bb\ua9bd-\ua9c0\ua9c1-\ua9cd\ua9cf\ua9d0-\ua9d9\ua9de-\ua9df\ua9e0-\ua9e4\ua9e6\ua9e7-\ua9ef\ua9f0-\ua9f9\ua9fa-\ua9fe\uaa00-\uaa28\uaa2f-\uaa30\uaa33-\uaa34\uaa40-\uaa42\uaa44-\uaa4b\uaa4d\uaa50-\uaa59\uaa5c-\uaa5f\uaa60-\uaa6f\uaa70\uaa71-\uaa76\uaa77-\uaa79\uaa7a\uaa7b\uaa7d\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadc\uaadd\uaade-\uaadf\uaae0-\uaaea\uaaeb\uaaee-\uaaef\uaaf0-\uaaf1\uaaf2\uaaf3-\uaaf4\uaaf5\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5b\uab5c-\uab5f\uab64-\uab65\uabc0-\uabe2\uabe3-\uabe4\uabe6-\uabe7\uabe9-\uabea\uabeb\uabec\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\ue000-\uf8ff\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\uff21-\uff3a\uff41-\uff5a\uff66-\uff6f\uff70\uff71-\uff9d\uff9e-\uff9f\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"+i+a+"]"),s=new RegExp("["+i+a+"]");function l(t){var e=c.exec(t);return null==e?null:e[0]}function u(t){var e=l(t);return null==e?o.NEUTRAL:s.exec(e)?o.RTL:o.LTR}function p(t,e){if(e=e||o.NEUTRAL,!t.length)return e;var n=u(t);return n===o.NEUTRAL?e:n}function f(t,e){return e||(e=o.getGlobalDir()),o.isStrong(e)||r(!1),p(t,e)}var d={firstStrongChar:l,firstStrongCharDir:u,resolveBlockDir:p,getDirection:f,isDirectionLTR:function(t,e){return f(t,e)===o.LTR},isDirectionRTL:function(t,e){return f(t,e)===o.RTL}};t.exports=d},470:function(t,e,n){"use strict";var o=n(1),r=n(348),i=(0,n(285).Map)({"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:o.createElement("ul",{className:r("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:o.createElement("ol",{className:r("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:o.createElement("pre",{className:r("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});t.exports=i},471:function(t,e){(function(e){t.exports=e}).call(this,{})},472:function(t,e,n){"use strict";var o=n(606).notEmptyKey;function r(t,e){return o(e)&&"MUTABLE"===t.__get(e).getMutability()?e:null}t.exports=function(t,e){var n;if(e.isCollapsed()){var o=e.getAnchorKey(),i=e.getAnchorOffset();return i>0?(n=t.getBlockForKey(o).getEntityAt(i-1))!==t.getBlockForKey(o).getEntityAt(i)?null:r(t.getEntityMap(),n):null}var a=e.getStartKey(),c=e.getStartOffset(),s=t.getBlockForKey(a);return n=c===s.getLength()?null:s.getEntityAt(c),r(t.getEntityMap(),n)}},473:function(t,e,n){"use strict";var o=n(909);t.exports=function t(e,n){return!(!e||!n)&&(e===n||!o(e)&&(o(n)?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}},474:function(t,e,n){"use strict";function o(t,e){return!!e&&(t===e.documentElement||t===e.body)}var r={getTop:function(t){var e=t.ownerDocument;return o(t,e)?e.body.scrollTop||e.documentElement.scrollTop:t.scrollTop},setTop:function(t,e){var n=t.ownerDocument;o(t,n)?n.body.scrollTop=n.documentElement.scrollTop=e:t.scrollTop=e},getLeft:function(t){var e=t.ownerDocument;return o(t,e)?e.body.scrollLeft||e.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,e){var n=t.ownerDocument;o(t,n)?n.body.scrollLeft=n.documentElement.scrollLeft=e:t.scrollLeft=e}};t.exports=r},475:function(t,e,n){"use strict";n(476);t.exports=function(t,e){var n=t.getSelection(),o=t.getCurrentContent(),r=n.getStartKey(),i=n.getStartOffset(),a=r,c=0;if(e>i){var s=o.getKeyBefore(r);null==s?a=r:(a=s,c=o.getBlockForKey(s).getText().length)}else c=i-e;return n.merge({focusKey:a,focusOffset:c,isBackward:!0})}},476:function(t,e,n){"use strict";var o=n(615);t.exports=o},477:function(t,e,n){"use strict";var o=n(304),r=n(936),i=o.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return i&&t.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(t){return i?!!t.metaKey&&!t.altKey:a.isCtrlKeyCommand(t)},isSoftNewlineEvent:r};t.exports=a},478:function(t,e,n){window,t.exports=function(t,e,n){return i={},o.m=r=[function(t,e,n){t.exports=n(9)()},function(e,n){e.exports=t},function(t,e,n){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var t=[],e=0;e<arguments.length;e++){var o=arguments[e];if(o){var i=typeof o;if("string"==i||"number"==i)t.push(o);else if(Array.isArray(o)&&o.length){var a=r.apply(null,o);a&&t.push(a)}else if("object"==i)for(var c in o)n.call(o,c)&&o[c]&&t.push(c)}}return t.join(" ")}t.exports?(r.default=r,t.exports=r):void 0===(o=function(){return r}.apply(e,[]))||(t.exports=o)}()},function(t,n){t.exports=e},function(t,e,n){function o(t){if(c[t])return c[t].exports;var e=c[t]={i:t,l:!1,exports:{}};return a[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var r,i,a,c;window,t.exports=(r=n(3),i=n(5),c={},o.m=a=[function(t,e){t.exports=r},function(t,e){t.exports=i},function(t,e,n){t.exports=n(3)},function(t,e,n){"use strict";n.r(e);var o=n(0),r=n(1);function i(t){var e=t.getSelection(),n=t.getCurrentContent(),o=e.getStartKey(),r=e.getEndKey(),i=n.getBlockMap();return i.toSeq().skipUntil(function(t,e){return e===o}).takeUntil(function(t,e){return e===r}).concat([[r,i.get(r)]])}function a(t){return i(t).toList()}function c(t){if(t)return a(t).get(0)}function s(t){if(t){var e=c(t),n=t.getCurrentContent().getBlockMap().toSeq().toList(),o=0;if(n.forEach(function(t,n){t.get("key")===e.get("key")&&(o=n-1)}),-1<o)return n.get(o)}}function l(t){return t?t.getCurrentContent().getBlockMap().toList():new r.List}function u(t){var e=a(t);if(!e.some(function(t){return t.type!==e.get(0).type}))return e.get(0).type}function p(t){var e=o.RichUtils.tryToRemoveBlockStyle(t);return e?o.EditorState.push(t,e,"change-block-type"):t}function f(t){var e="",n=t.getSelection(),o=n.getAnchorOffset(),r=n.getFocusOffset(),i=a(t);if(0<i.size){if(n.getIsBackward()){var c=o;o=r,r=c}for(var s=0;s<i.size;s+=1){var l=0===s?o:0,u=s===i.size-1?r:i.get(s).getText().length;e+=i.get(s).getText().slice(l,u)}}return e}function d(t){var e=t.getCurrentContent(),n=t.getSelection(),r=o.Modifier.removeRange(e,n,"forward"),i=r.getSelectionAfter(),a=r.getBlockForKey(i.getStartKey());return r=o.Modifier.insertText(r,i,"\n",a.getInlineStyleAt(i.getStartOffset()),null),o.EditorState.push(t,r,"insert-fragment")}function g(t){var e=o.Modifier.splitBlock(t.getCurrentContent(),t.getSelection());return p(o.EditorState.push(t,e,"split-block"))}function h(t){var e=t.getCurrentContent().getBlockMap().toList(),n=t.getSelection().merge({anchorKey:e.first().get("key"),anchorOffset:0,focusKey:e.last().get("key"),focusOffset:e.last().getLength()}),r=o.Modifier.removeRange(t.getCurrentContent(),n,"forward");return o.EditorState.push(t,r,"remove-range")}function y(t,e){var n=o.Modifier.setBlockData(t.getCurrentContent(),t.getSelection(),e);return o.EditorState.push(t,n,"change-block-data")}function m(t){var e=new r.Map({}),n=a(t);if(n&&0<n.size)for(var o=function(t){var o=n.get(t).getData();if(!o||0===o.size)return e=e.clear(),"break";if(0===t)e=o;else if(e.forEach(function(t,n){o.get(n)&&o.get(n)===t||(e=e.delete(n))}),0===e.size)return e=e.clear(),"break"},i=0;i<n.size&&"break"!==o(i);i+=1);return e}var v=Object(r.Map)({code:{element:"pre"}}),b=o.DefaultDraftBlockRenderMap.merge(v);function S(t){if(t){var e=t.getType();return"unordered-list-item"===e||"ordered-list-item"===e}return!1}function M(t,e,n){var r,a=t.getSelection();r=a.getIsBackward()?a.getFocusKey():a.getAnchorKey();var c=t.getCurrentContent(),s=c.getBlockForKey(r),l=s.getType();if("unordered-list-item"!==l&&"ordered-list-item"!==l)return t;var u=c.getBlockBefore(r);if(!u)return t;if(u.getType()!==l)return t;var p=s.getDepth();if(1===e&&p===n)return t;var f,d,g,h,y,m,v,b=Math.min(u.getDepth()+1,n),S=(d=e,g=b,h=(f=t).getSelection(),y=f.getCurrentContent(),m=y.getBlockMap(),v=i(f).map(function(t){var e=t.getDepth()+d;return e=Math.max(0,Math.min(e,g)),t.set("depth",e)}),m=m.merge(v),y.merge({blockMap:m,selectionBefore:h,selectionAfter:h}));return o.EditorState.push(t,S,"adjust-depth")}function w(t,e){var n;return 13===(n=e).which&&(n.getModifierState("Shift")||n.getModifierState("Alt")||n.getModifierState("Control"))?t.getSelection().isCollapsed()?o.RichUtils.insertSoftNewline(t):d(t):function(t){var e=t.getSelection();if(e.isCollapsed()){var n=t.getCurrentContent(),o=e.getStartKey(),r=n.getBlockForKey(o);if(!S(r)&&"unstyled"!==r.getType()&&r.getLength()===e.getStartOffset())return g(t);if(S(r)&&0===r.getLength()){var i=r.getDepth();if(0===i)return p(t);if(0<i)return M(t,-1,i)}}}(t)}function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t){var e=t.getSelection();if(e.isCollapsed()){var n={},o=t.getCurrentInlineStyle().toList().toJS();if(o)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(t){n[t]=0<=o.indexOf(t)}),n}var r=e.getStartOffset(),i=e.getEndOffset(),c=a(t);if(0<c.size){var s=function(){for(var t={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},e=0;e<c.size;e+=1){var n=0===e?r:0,o=e===c.size-1?i:c.get(e).getText().length;n===o&&0===n?(n=1,o=2):n===o&&--n;for(var a=function(n){var o=c.get(e).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(e){t[e]=t[e]&&o.get(e)===e})},s=n;s<o;s+=1)a(s)}return{v:t}}();if("object"===E(s))return s.v}return{}}function j(t){var e,n=t.getSelection(),o=n.getStartOffset(),r=n.getEndOffset();o===r&&0===o?r=1:o===r&&--o;for(var i=c(t),a=o;a<r;a+=1){var s=i.getEntityAt(a);if(!s){e=void 0;break}if(a===o)e=s;else if(e!==s){e=void 0;break}}return e}function x(t,e){var n,o=c(t);return o.findEntityRanges(function(t){return t.get("entity")===e},function(t,e){n={start:t,end:e,text:o.get("text").slice(t,e)}}),n}function D(t,e,n){L[t]["".concat(t.toLowerCase(),"-").concat(n)]=k({},"".concat(e),n)}function N(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach(function(e){k(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},L.color,{},L.bgcolor,{},L.fontSize,{},L.fontFamily,{CODE:L.CODE,SUPERSCRIPT:L.SUPERSCRIPT,SUBSCRIPT:L.SUBSCRIPT})}var L={color:{},bgcolor:{},fontSize:{},fontFamily:{},CODE:{fontFamily:"monospace",wordWrap:"break-word",background:"#f1f1f1",borderRadius:3,padding:"1px 3px"},SUPERSCRIPT:{fontSize:11,position:"relative",top:-8,display:"inline-flex"},SUBSCRIPT:{fontSize:11,position:"relative",bottom:-8,display:"inline-flex"}};function O(t,e,n){var r=t.getSelection(),i=Object.keys(L[e]).reduce(function(t,e){return o.Modifier.removeInlineStyle(t,r,e)},t.getCurrentContent()),a=o.EditorState.push(t,i,"changeinline-style"),c=t.getCurrentInlineStyle();if(r.isCollapsed()&&(a=c.reduce(function(t,e){return o.RichUtils.toggleInlineStyle(t,e)},a)),"SUPERSCRIPT"===e||"SUBSCRIPT"==e)c.has(n)||(a=o.RichUtils.toggleInlineStyle(a,n));else{var s="bgcolor"===e?"backgroundColor":e;c.has("".concat(s,"-").concat(n))||(a=o.RichUtils.toggleInlineStyle(a,"".concat(e.toLowerCase(),"-").concat(n)),D(e,s,n))}return a}function I(t){t&&t.getCurrentContent().getBlockMap().map(function(t){return t.get("characterList")}).toList().flatten().forEach(function(t){t&&0===t.indexOf("color-")?D("color","color",t.substr(6)):t&&0===t.indexOf("bgcolor-")?D("bgcolor","backgroundColor",t.substr(8)):t&&0===t.indexOf("fontsize-")?D("fontSize","fontSize",+t.substr(9)):t&&0===t.indexOf("fontfamily-")&&D("fontFamily","fontFamily",t.substr(11))})}function T(t,e,n){var o=t.getInlineStyleAt(n).toList().filter(function(t){return t.startsWith(e.toLowerCase())});if(o&&0<o.size)return o.get(0)}function A(t,e){if(t&&e&&0<e.length){var n=function(){var n=t.getSelection(),o={};if(n.isCollapsed())return e.forEach(function(e){o[e]=function(t,e){var n=t.getCurrentInlineStyle().toList().filter(function(t){return t.startsWith(e.toLowerCase())});if(n&&0<n.size)return n.get(0)}(t,e)}),{v:o};var r=n.getStartOffset(),i=n.getEndOffset(),c=a(t);if(0<c.size){for(var s=function(t){var n=0===t?r:0,a=t===c.size-1?i:c.get(t).getText().length;n===a&&0===n?(n=1,a=2):n===a&&--n;for(var s=function(r){r===n?e.forEach(function(e){o[e]=T(c.get(t),e,r)}):e.forEach(function(e){o[e]&&o[e]!==T(c.get(t),e,r)&&(o[e]=void 0)})},l=n;l<a;l+=1)s(l)},l=0;l<c.size;l+=1)s(l);return{v:o}}}();if("object"===E(n))return n.v}return{}}function z(t){var e=t.getCurrentInlineStyle(),n=t.getCurrentContent();return e.forEach(function(e){n=o.Modifier.removeInlineStyle(n,t.getSelection(),e)}),o.EditorState.push(t,n,"change-inline-style")}n.d(e,"isListBlock",function(){return S}),n.d(e,"changeDepth",function(){return M}),n.d(e,"handleNewLine",function(){return w}),n.d(e,"getEntityRange",function(){return x}),n.d(e,"getCustomStyleMap",function(){return N}),n.d(e,"toggleCustomInlineStyle",function(){return O}),n.d(e,"getSelectionEntity",function(){return j}),n.d(e,"extractInlineStyle",function(){return I}),n.d(e,"removeAllInlineStyles",function(){return z}),n.d(e,"getSelectionInlineStyle",function(){return _}),n.d(e,"getSelectionCustomInlineStyle",function(){return A}),n.d(e,"getSelectedBlocksMap",function(){return i}),n.d(e,"getSelectedBlocksList",function(){return a}),n.d(e,"getSelectedBlock",function(){return c}),n.d(e,"getBlockBeforeSelectedBlock",function(){return s}),n.d(e,"getAllBlocks",function(){return l}),n.d(e,"getSelectedBlocksType",function(){return u}),n.d(e,"removeSelectedBlocksStyle",function(){return p}),n.d(e,"getSelectionText",function(){return f}),n.d(e,"addLineBreakRemovingSelection",function(){return d}),n.d(e,"insertNewUnstyledBlock",function(){return g}),n.d(e,"clearEditorContent",function(){return h}),n.d(e,"setBlockData",function(){return y}),n.d(e,"getSelectedBlocksMetadata",function(){return m}),n.d(e,"blockRenderMap",function(){return b})}],o.c=c,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=2))},function(t,e){t.exports=n},function(t,e,n){function o(t){if(c[t])return c[t].exports;var e=c[t]={i:t,l:!1,exports:{}};return a[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var r,i,a,c;window,t.exports=(r=n(5),i=n(3),c={},o.m=a=[function(t,e){t.exports=r},function(t,e){t.exports=i},function(t,e,n){t.exports=n(3)},function(t,e,n){"use strict";n.r(e);var o=n(1),r=n(0),i=function(t,e,n){var o,i=t.textContent;return""===i.trim()?{chunk:(o=n,{text:" ",inlines:[new r.OrderedSet],entities:[o],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(e),entities:Array(i.length).fill(n),blocks:[]}}},a=function(){return{text:"\n",inlines:[new r.OrderedSet],entities:new Array(1),blocks:[]}},c=function(){return{text:"",inlines:[],entities:[],blocks:[]}},s=function(t,e){return{text:"",inlines:[],entities:[],blocks:[{type:t,depth:0,data:e||new r.Map({})}]}},l=function(t,e,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:t,depth:Math.max(0,Math.min(4,e)),data:n||new r.Map({})}]}},u=function(t){return{text:"\r ",inlines:[new r.OrderedSet],entities:[t],blocks:[{type:"atomic",depth:0,data:new r.Map({})}]}},p=function(t,e){return{text:t.text+e.text,inlines:t.inlines.concat(e.inlines),entities:t.entities.concat(e.entities),blocks:t.blocks.concat(e.blocks)}},f=new r.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),d={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function g(t){return t.style.textAlign?new r.Map({"text-align":t.style.textAlign}):t.style.marginLeft?new r.Map({"margin-left":t.style.marginLeft}):void 0}var h=function(t){var e=void 0;if(t instanceof HTMLAnchorElement){var n={};e=t.dataset&&void 0!==t.dataset.mention?(n.url=t.href,n.text=t.innerHTML,n.value=t.dataset.value,o.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=t.getAttribute&&t.getAttribute("href")||t.href,n.title=t.innerHTML,n.targetOption=t.target,o.Entity.__create("LINK","MUTABLE",n))}return e};n.d(e,"default",function(){return b});var y=" ",m=new RegExp(" ","g"),v=!0;function b(t,e){var n,b,S,M=(n=e,b=t.trim().replace(m,y),(S=function(t){var e,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n}(b))?(v=!0,{chunk:function t(e,n,r,y,m,b){var S=e.nodeName.toLowerCase();if(b){var M=b(S,e);if(M){var w=o.Entity.__create(M.type,M.mutability,M.data||{});return{chunk:u(w)}}}if("#text"===S&&"\n"!==e.textContent)return i(e,n,m);if("br"===S)return{chunk:a()};if("img"===S&&e instanceof HTMLImageElement){var C={};C.src=e.getAttribute&&e.getAttribute("src")||e.src,C.alt=e.alt,C.height=e.style.height,C.width=e.style.width,e.style.float&&(C.alignment=e.style.float);var k=o.Entity.__create("IMAGE","MUTABLE",C);return{chunk:u(k)}}if("video"===S&&e instanceof HTMLVideoElement){var E={};E.src=e.getAttribute&&e.getAttribute("src")||e.src,E.alt=e.alt,E.height=e.style.height,E.width=e.style.width,e.style.float&&(E.alignment=e.style.float);var _=o.Entity.__create("VIDEO","MUTABLE",E);return{chunk:u(_)}}if("iframe"===S&&e instanceof HTMLIFrameElement){var j={};j.src=e.getAttribute&&e.getAttribute("src")||e.src,j.height=e.height,j.width=e.width;var x=o.Entity.__create("EMBEDDED_LINK","MUTABLE",j);return{chunk:u(x)}}var D,N=function(t,e){var n=f.filter(function(n){return n.element===t&&(!n.wrapper||n.wrapper===e)||n.wrapper===t||n.aliasedElements&&-1<n.aliasedElements.indexOf(t)}).keySeq().toSet().toArray();if(1===n.length)return n[0]}(S,y);N&&("ul"===S||"ol"===S?(y=S,r+=1):("unordered-list-item"!==N&&"ordered-list-item"!==N&&(y="",r=-1),v?(D=s(N,g(e)),v=!1):D=l(N,r,g(e)))),D=D||c(),n=function(t,e,n){var o,r=d[t];if(r)o=n.add(r).toOrderedSet();else if(e instanceof HTMLElement){var i=e;o=(o=n).withMutations(function(t){var e=i.style.color,n=i.style.backgroundColor,o=i.style.fontSize,r=i.style.fontFamily.replace(/^"|"$/g,""),a=i.style.fontWeight,c=i.style.textDecoration,s=i.style.fontStyle;e&&t.add("color-".concat(e.replace(/ /g,""))),n&&t.add("bgcolor-".concat(n.replace(/ /g,""))),o&&t.add("fontsize-".concat(o.replace(/px$/g,""))),r&&t.add("fontfamily-".concat(r)),"bold"===a&&t.add(d.strong),"underline"===c&&t.add(d.ins),"italic"===s&&t.add(d.em)}).toOrderedSet()}return o}(S,e,n);for(var L=e.firstChild;L;){var O=t(L,n,r,y,h(L)||m,b).chunk;D=p(D,O),L=L.nextSibling}return{chunk:D}}(S,new r.OrderedSet,-1,"",void 0,n).chunk}):null);if(M){var w=M.chunk,C=new r.OrderedMap({});w.entities&&w.entities.forEach(function(t){t&&(C=C.set(t,o.Entity.__get(t)))});var k=0;return{contentBlocks:w.text.split("\r").map(function(t,e){var n=k+t.length,i=w&&w.inlines.slice(k,n),a=w&&w.entities.slice(k,n),c=new r.List(i.map(function(t,e){var n={style:t,entity:null};return a[e]&&(n.entity=a[e]),o.CharacterMetadata.create(n)}));return k=n,new o.ContentBlock({key:Object(o.genKey)(),type:w&&w.blocks[e]&&w.blocks[e].type||"unstyled",depth:w&&w.blocks[e]&&w.blocks[e].depth,data:w&&w.blocks[e]&&w.blocks[e].data||new r.Map({}),text:t,characterList:c})}),entityMap:C}}return null}}],o.c=c,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=2))},function(t,e,n){"use strict";function o(t){return Array.prototype.slice.call(arguments,1).forEach(function(e){e&&Object.keys(e).forEach(function(n){t[n]=e[n]})}),t}function r(t){return Object.prototype.toString.call(t)}function i(t){return"[object Function]"===r(t)}function a(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var c={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},s={"http:":{validate:function(t,e,n){var o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?3<=e&&":"===t[e-3]?0:3<=e&&"/"===t[e-3]?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},l="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function p(t){var e=t.re=n(21)(t.__opts__),o=t.__tlds__.slice();function c(t){return t.replace("%TLDS%",e.src_tlds)}t.onCompile(),t.__tlds_replaced__||o.push(l),o.push(e.src_xn),e.src_tlds=o.join("|"),e.email_fuzzy=RegExp(c(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(c(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(c(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(c(e.tpl_host_fuzzy_test),"i");var s=[];function u(t,e){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+e)}t.__compiled__={},Object.keys(t.__schemas__).forEach(function(e){var n=t.__schemas__[e];if(null!==n){var o,a={validate:null,link:null};if(t.__compiled__[e]=a,"[object Object]"===r(n))return"[object RegExp]"===r(n.validate)?a.validate=(o=n.validate,function(t,e){var n=t.slice(e);return o.test(n)?n.match(o)[0].length:0}):i(n.validate)?a.validate=n.validate:u(e,n),void(i(n.normalize)?a.normalize=n.normalize:n.normalize?u(e,n):a.normalize=function(t,e){e.normalize(t)});"[object String]"!==r(n)?u(e,n):s.push(e)}}),s.forEach(function(e){t.__compiled__[t.__schemas__[e]]&&(t.__compiled__[e].validate=t.__compiled__[t.__schemas__[e]].validate,t.__compiled__[e].normalize=t.__compiled__[t.__schemas__[e]].normalize)}),t.__compiled__[""]={validate:null,normalize:function(t,e){e.normalize(t)}};var p,f=Object.keys(t.__compiled__).filter(function(e){return 0<e.length&&t.__compiled__[e]}).map(a).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+e.src_ZPCc+"))("+f+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+e.src_ZPCc+"))("+f+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),(p=t).__index__=-1,p.__text_cache__=""}function f(t,e){var n=t.__index__,o=t.__last_index__,r=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=r,this.text=r,this.url=r}function d(t,e){var n=new f(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function g(t,e){if(!(this instanceof g))return new g(t,e);var n;e||(n=t,Object.keys(n||{}).reduce(function(t,e){return t||c.hasOwnProperty(e)},!1)&&(e=t,t={})),this.__opts__=o({},c,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=o({},s,t),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},p(this)}g.prototype.add=function(t,e){return this.__schemas__[t]=e,p(this),this},g.prototype.set=function(t){return this.__opts__=o(this.__opts__,t),this},g.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var e,n,o,r,i,a,c,s;if(this.re.schema_test.test(t))for((c=this.re.schema_search).lastIndex=0;null!==(e=c.exec(t));)if(r=this.testSchemaAt(t,e[2],c.lastIndex)){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(s=t.search(this.re.host_fuzzy_test))&&(this.__index__<0||s<this.__index__)&&null!==(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=t.indexOf("@")&&null!==(o=t.match(this.re.email_fuzzy))&&(i=o.index+o[1].length,a=o.index+o[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),0<=this.__index__},g.prototype.pretest=function(t){return this.re.pretest.test(t)},g.prototype.testSchemaAt=function(t,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,n,this):0},g.prototype.match=function(t){var e=0,n=[];0<=this.__index__&&this.__text_cache__===t&&(n.push(d(this,e)),e=this.__last_index__);for(var o=e?t.slice(e):t;this.test(o);)n.push(d(this,e)),o=o.slice(this.__last_index__),e+=this.__last_index__;return n.length?n:null},g.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?this.__tlds__=this.__tlds__.concat(t).sort().filter(function(t,e,n){return t!==n[e-1]}).reverse():(this.__tlds__=t.slice(),this.__tlds_replaced__=!0),p(this),this},g.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},g.prototype.onCompile=function(){},t.exports=g},function(t,e,n){t.exports=n(40)},function(t,e,n){"use strict";var o=n(10);function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,i,a){if(a!==o){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}var n={array:t.isRequired=t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";t.exports=function(t){var e={};return e.src_Any=n(22).source,e.src_Cc=n(23).source,e.src_Z=n(24).source,e.src_P=n(25).source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|"),e.src_pseudo_letter="(?:(?![><\uff5c]|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|[><\uff5c]|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|[><\uff5c]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+e.src_ZCc+").|\\!(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+e.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+e.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}},function(t,e){t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(t,e){t.exports=/[\0-\x1F\x7F-\x9F]/},function(t,e){t.exports=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/},function(t,e){t.exports=/[!-#%-\*,-/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E44\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD807[\uDC41-\uDC45\uDC70\uDC71]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";n.r(e);var o=n(1),r=n.n(o),i=n(0),a=n.n(i),c=n(3),s=n(4),l=n(2),u=n.n(l);function p(){var t=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(e){t.callBacks.forEach(function(t){t(e)})},this.init=function(e){var n=document.getElementById(e);n&&n.addEventListener("click",function(){t.editorFlag=!0}),document&&(document.addEventListener("click",function(){t.editorFlag?t.editorFlag=!1:(t.closeAllModals(),t.suggestionCallback&&t.suggestionCallback())}),document.addEventListener("keydown",function(e){"Escape"===e.key&&t.closeAllModals()}))},this.onEditorClick=function(){t.closeModals(),!t.suggestionFlag&&t.suggestionCallback?t.suggestionCallback():t.suggestionFlag=!1},this.closeModals=function(e){t.closeAllModals(e)},this.registerCallBack=function(e){t.callBacks.push(e)},this.deregisterCallBack=function(e){t.callBacks=t.callBacks.filter(function(t){return t!==e})},this.setSuggestionCallback=function(e){t.suggestionCallback=e},this.removeSuggestionCallback=function(){t.suggestionCallback=void 0},this.onSuggestionClick=function(){t.suggestionFlag=!0}}function f(){var t=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){t.editorFocused=!0},this.onInputMouseDown=function(){t.inputFocused=!0},this.isEditorBlur=function(e){return"INPUT"!==e.target.tagName&&"LABEL"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName||t.editorFocused?!("INPUT"===e.target.tagName&&"LABEL"===e.target.tagName&&"TEXTAREA"===e.target.tagName||t.inputFocused)&&!(t.editorFocused=!1):!(t.inputFocused=!1)},this.isEditorFocused=function(){return!t.inputFocused||(t.inputFocused=!1)},this.isToolbarFocused=function(){return!t.editorFocused||(t.editorFocused=!1)},this.isInputFocused=function(){return t.inputFocused}}var d,g=[],h={onKeyDown:function(t){g.forEach(function(e){e(t)})},registerCallBack:function(t){g.push(t)},deregisterCallBack:function(t){g=g.filter(function(e){return e!==t})}},y=function(){d=!0},m=function(){d=!1},v=function(){return d};function b(t){var e=t.getData()&&t.getData().get("text-align");return e?"rdw-".concat(e,"-aligned-block"):""}function S(t,e){if(t)for(var n in t)!{}.hasOwnProperty.call(t,n)||e(n,t[n])}function M(t,e){var n=!1;if(t)for(var o in t)if({}.hasOwnProperty.call(t,o)&&e===o){n=!0;break}return n}function w(t){t.stopPropagation()}function C(t){return t[t.options[0]].icon}function k(t,e){if(t&&void 0===e)return t;var n={};return S(t,function(t,o){var r;r=o,"[object Object]"===Object.prototype.toString.call(r)?n[t]=k(o,e[t]):n[t]=void 0!==e[t]?e[t]:o}),n}var E=n(6),_=n.n(E),j=n(5);function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function D(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function N(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function L(t){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n(11);var I=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=function(t,e){return!e||"object"!==x(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=L(t)).call.apply(e,[this].concat(r)))).onClick=function(){var t=n.props,e=t.disabled,o=t.onClick,r=t.value;e||o(r)},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}(t,o.Component),e=t,(n=[{key:"render",value:function(){var t,e=this.props,n=e.children,o=e.className,i=e.activeClassName,a=e.active,c=e.disabled,s=e.title;return r.a.createElement("div",{className:u()("rdw-option-wrapper",o,(D(t={},"rdw-option-active ".concat(i),a),D(t,"rdw-option-disabled",c),t)),onClick:this.onClick,"aria-selected":a,title:s},n)}}])&&N(e.prototype,n),t}();function T(t){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function A(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function z(t){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function B(t,e){return(B=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}I.propTypes={onClick:a.a.func.isRequired,children:a.a.any,value:a.a.string,className:a.a.string,activeClassName:a.a.string,active:a.a.bool,disabled:a.a.bool,title:a.a.string},I.defaultProps={activeClassName:""},n(12);var P=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=function(t,e){return!e||"object"!==T(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=z(t)).call.apply(e,[this].concat(r)))).state={highlighted:-1},n.onChange=function(t){var e=n.props.onChange;e&&e(t),n.toggleExpansion()},n.setHighlighted=function(t){n.setState({highlighted:t})},n.toggleExpansion=function(){var t=n.props,e=t.doExpand,o=t.doCollapse;t.expanded?o():e()},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&B(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.expanded;t.expanded&&!e&&this.setState({highlighted:-1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.expanded,o=e.children,i=e.className,a=e.optionWrapperClassName,c=e.ariaLabel,s=e.onExpandEvent,l=e.title,p=this.state.highlighted,f=o.slice(1,o.length);return r.a.createElement("div",{className:u()("rdw-dropdown-wrapper",i),"aria-expanded":n,"aria-label":c||"rdw-dropdown"},r.a.createElement("a",{className:"rdw-dropdown-selectedtext",onClick:s,title:l},o[0],r.a.createElement("div",{className:u()({"rdw-dropdown-carettoclose":n,"rdw-dropdown-carettoopen":!n})})),n?r.a.createElement("ul",{className:u()("rdw-dropdown-optionwrapper",a),onClick:w},r.a.Children.map(f,function(e,n){return e&&r.a.cloneElement(e,{onSelect:t.onChange,highlighted:p===n,setHighlighted:t.setHighlighted,index:n})})):void 0)}}])&&A(e.prototype,n),t}();function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function F(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function K(t){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Y(t,e){return(Y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}P.propTypes={children:a.a.any,onChange:a.a.func,className:a.a.string,expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,optionWrapperClassName:a.a.string,ariaLabel:a.a.string,title:a.a.string},n(13);var H=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=function(t,e){return!e||"object"!==R(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=K(t)).call.apply(e,[this].concat(r)))).onClick=function(t){var e=n.props,o=e.onSelect,r=e.onClick,i=e.value;e.disabled||(o&&o(i),r&&(t.stopPropagation(),r(i)))},n.setHighlighted=function(){var t=n.props;(0,t.setHighlighted)(t.index)},n.resetHighlighted=function(){(0,n.props.setHighlighted)(-1)},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Y(t,e)}(t,o.Component),e=t,(n=[{key:"render",value:function(){var t,e=this.props,n=e.children,o=e.active,i=e.disabled,a=e.highlighted,c=e.className,s=e.activeClassName,l=e.disabledClassName,p=e.highlightedClassName,f=e.title;return r.a.createElement("li",{className:u()("rdw-dropdownoption-default",c,(F(t={},"rdw-dropdownoption-active ".concat(s),o),F(t,"rdw-dropdownoption-highlighted ".concat(p),a),F(t,"rdw-dropdownoption-disabled ".concat(l),i),t)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:f},n)}}])&&U(e.prototype,n),t}();function Q(t){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Z(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function W(t){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function G(t,e){return(G=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}H.propTypes={children:a.a.any,value:a.a.any,onClick:a.a.func,onSelect:a.a.func,setHighlighted:a.a.func,index:a.a.number,disabled:a.a.bool,active:a.a.bool,highlighted:a.a.bool,className:a.a.string,activeClassName:a.a.string,disabledClassName:a.a.string,highlightedClassName:a.a.string,title:a.a.string},H.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},n(14);var q=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){return!e||"object"!==Q(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,W(t).apply(this,arguments))}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&G(t,e)}(t,o.Component),e=t,(n=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=t.currentState,o=t.onChange,i=t.translations;return r.a.createElement("div",{className:u()("rdw-inline-wrapper",e.className),"aria-label":"rdw-inline-control"},e.options.map(function(t,a){return r.a.createElement(I,{key:a,value:t,onClick:o,className:u()(e[t].className),active:!0===n[t]||"MONOSPACE"===t&&n.CODE,title:e[t].title||i["components.controls.inline.".concat(t)]},r.a.createElement("img",{alt:"",src:e[t].icon}))}))}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,o=t.doExpand,i=t.onExpandEvent,a=t.doCollapse,c=t.currentState,s=t.onChange,l=t.translations,p=e.className,f=e.dropdownClassName,d=e.title;return r.a.createElement(P,{className:u()("rdw-inline-dropdown",p),optionWrapperClassName:u()(f),onChange:s,expanded:n,doExpand:o,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-inline-control",title:d},r.a.createElement("img",{src:C(e),alt:""}),e.options.map(function(t,n){return r.a.createElement(H,{key:n,value:t,className:u()("rdw-inline-dropdownoption",e[t].className),active:!0===c[t]||"MONOSPACE"===t&&c.CODE,title:e[t].title||l["components.controls.inline.".concat(t)]},r.a.createElement("img",{src:e[t].icon,alt:""}))}))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Z(e.prototype,n),t}();function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function J(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function X(t){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function $(t,e){return($=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}q.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var tt=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==V(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,X(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.toggleInlineStyle=function(t){var e="monospace"===t?"CODE":t.toUpperCase(),o=n.props,r=o.editorState,i=o.onChange,a=c.RichUtils.toggleInlineStyle(r,e);if("subscript"===t||"superscript"===t){var s="subscript"===t?"SUPERSCRIPT":"SUBSCRIPT",l=c.Modifier.removeInlineStyle(a.getCurrentContent(),a.getSelection(),s);a=c.EditorState.push(a,l,"change-inline-style")}a&&i(a)},n.changeKeys=function(t){if(t){var e={};return S(t,function(t,n){e["CODE"===t?"monospace":t.toLowerCase()]=n}),e}},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})};var o=n.props,r=o.editorState,i=o.modalHandler;return n.state={currentStyles:r?n.changeKeys(Object(s.getSelectionInlineStyle)(r)):{}},i.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentStyles:this.changeKeys(Object(s.getSelectionInlineStyle)(e))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state,i=o.expanded,a=o.currentStyles,c=e.component||q;return r.a.createElement(c,{config:e,translations:n,currentState:a,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&J(e.prototype,n),t}();function et(t){return(et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function ot(t){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function rt(t,e){return(rt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}tt.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(15);var it=function(){function t(e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==et(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,ot(t).call(this,e))).getBlockTypes=function(t){return[{label:"Normal",displayName:t["components.controls.blocktype.normal"]},{label:"H1",displayName:t["components.controls.blocktype.h1"]},{label:"H2",displayName:t["components.controls.blocktype.h2"]},{label:"H3",displayName:t["components.controls.blocktype.h3"]},{label:"H4",displayName:t["components.controls.blocktype.h4"]},{label:"H5",displayName:t["components.controls.blocktype.h5"]},{label:"H6",displayName:t["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:t["components.controls.blocktype.blockquote"]},{label:"Code",displayName:t["components.controls.blocktype.code"]}]},n.state={blockTypes:n.getBlockTypes(e.translations)},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rt(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.translations;e!==t.translations&&this.setState({blockTypes:this.getBlockTypes(e)})}},{key:"renderFlat",value:function(t){var e=this.props,n=e.config.className,o=e.onChange,i=e.currentState.blockType;return r.a.createElement("div",{className:u()("rdw-inline-wrapper",n)},t.map(function(t,e){return r.a.createElement(I,{key:e,value:t.label,active:i===t.label,onClick:o},t.displayName)}))}},{key:"renderInDropdown",value:function(t){var e=this.props,n=e.config,o=n.className,i=n.dropdownClassName,a=n.title,c=e.currentState.blockType,s=e.expanded,l=e.doExpand,p=e.onExpandEvent,f=e.doCollapse,d=e.onChange,g=e.translations,h=this.state.blockTypes.filter(function(t){return t.label===c}),y=h&&h[0]&&h[0].displayName;return r.a.createElement("div",{className:"rdw-block-wrapper","aria-label":"rdw-block-control"},r.a.createElement(P,{className:u()("rdw-block-dropdown",o),optionWrapperClassName:u()(i),onChange:d,expanded:s,doExpand:l,doCollapse:f,onExpandEvent:p,title:a||g["components.controls.blocktype.blocktype"]},r.a.createElement("span",null,y||g["components.controls.blocktype.blocktype"]),t.map(function(t,e){return r.a.createElement(H,{active:c===t.label,value:t.label,key:e},t.displayName)})))}},{key:"render",value:function(){var t=this.props.config,e=t.inDropdown,n=this.state.blockTypes.filter(function(e){var n=e.label;return-1<t.options.indexOf(n)});return e?this.renderInDropdown(n):this.renderFlat(n)}}])&&nt(e.prototype,n),t}();it.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var at=it;function ct(t){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function st(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function lt(t){return(lt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ut(t,e){return(ut=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var pt=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==ct(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,lt(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.blocksTypes=[{label:"Normal",style:"unstyled"},{label:"H1",style:"header-one"},{label:"H2",style:"header-two"},{label:"H3",style:"header-three"},{label:"H4",style:"header-four"},{label:"H5",style:"header-five"},{label:"H6",style:"header-six"},{label:"Blockquote",style:"blockquote"},{label:"Code",style:"code"}],n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.toggleBlockType=function(t){var e=n.blocksTypes.find(function(e){return e.label===t}).style,o=n.props,r=o.editorState,i=o.onChange,a=c.RichUtils.toggleBlockType(r,e);a&&i(a)};var o=e.editorState,r=e.modalHandler;return n.state={expanded:!1,currentBlockType:o?Object(s.getSelectedBlocksType)(o):"unstyled"},r.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ut(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentBlockType:Object(s.getSelectedBlocksType)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state,i=o.expanded,a=o.currentBlockType,c=e.component||at,s=this.blocksTypes.find(function(t){return t.style===a});return r.a.createElement(c,{config:e,translations:n,currentState:{blockType:s&&s.label},onChange:this.toggleBlockType,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&st(e.prototype,n),t}();pt.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var ft=pt;function dt(t){return(dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function ht(t){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function yt(t,e){return(yt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n(16);var mt=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=function(t,e){return!e||"object"!==dt(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=ht(t)).call.apply(e,[this].concat(r)))).state={defaultFontSize:void 0},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yt(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidMount",value:function(){var t=document.getElementsByClassName("DraftEditor-root");if(t&&0<t.length){var e=window.getComputedStyle(t[0]).getPropertyValue("font-size");e=e.substring(0,e.length-2),this.setState({defaultFontSize:e})}}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,o=e.className,i=e.dropdownClassName,a=e.options,c=e.title,s=t.onChange,l=t.expanded,p=t.doCollapse,f=t.onExpandEvent,d=t.doExpand,g=t.translations,h=this.props.currentState.fontSize,y=this.state.defaultFontSize;return y=Number(y),h=h||a&&0<=a.indexOf(y)&&y,r.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},r.a.createElement(P,{className:u()("rdw-fontsize-dropdown",o),optionWrapperClassName:u()(i),onChange:s,expanded:l,doExpand:d,doCollapse:p,onExpandEvent:f,title:c||g["components.controls.fontsize.fontsize"]},h?r.a.createElement("span",null,h):r.a.createElement("img",{src:n,alt:""}),a.map(function(t,e){return r.a.createElement(H,{className:"rdw-fontsize-option",active:h===t,value:t,key:e},t)})))}}])&>(e.prototype,n),t}();function vt(t){return(vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function St(t){return(St=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Mt(t,e){return(Mt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}mt.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var wt=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==vt(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,St(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.toggleFontSize=function(t){var e=n.props,o=e.editorState,r=e.onChange,i=Object(s.toggleCustomInlineStyle)(o,"fontSize",t);i&&r(i)};var o=e.editorState,r=e.modalHandler;return n.state={expanded:void 0,currentFontSize:o?Object(s.getSelectionCustomInlineStyle)(o,["FONTSIZE"]).FONTSIZE:void 0},r.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mt(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentFontSize:Object(s.getSelectionCustomInlineStyle)(e,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state,i=o.expanded,a=o.currentFontSize,c=e.component||mt,s=a&&Number(a.substring(9));return r.a.createElement(c,{config:e,translations:n,currentState:{fontSize:s},onChange:this.toggleFontSize,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&bt(e.prototype,n),t}();function Ct(t){return(Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Et(t){return(Et=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _t(t,e){return(_t=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}wt.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(17);var jt=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=function(t,e){return!e||"object"!==Ct(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=Et(t)).call.apply(e,[this].concat(r)))).state={defaultFontFamily:void 0},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_t(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidMount",value:function(){var t=document.getElementsByClassName("DraftEditor-root");if(t&&0<t.length){var e=window.getComputedStyle(t[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:e})}}},{key:"render",value:function(){var t=this.state.defaultFontFamily,e=this.props,n=e.config,o=n.className,i=n.dropdownClassName,a=n.options,c=n.title,s=e.translations,l=e.onChange,p=e.expanded,f=e.doCollapse,d=e.onExpandEvent,g=e.doExpand,h=this.props.currentState.fontFamily;return h=h||a&&t&&a.some(function(e){return e.toLowerCase()===t.toLowerCase()})&&t,r.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},r.a.createElement(P,{className:u()("rdw-fontfamily-dropdown",o),optionWrapperClassName:u()("rdw-fontfamily-optionwrapper",i),onChange:l,expanded:p,doExpand:g,doCollapse:f,onExpandEvent:d,title:c||s["components.controls.fontfamily.fontfamily"]},r.a.createElement("span",{className:"rdw-fontfamily-placeholder"},h||s["components.controls.fontfamily.fontfamily"]),a.map(function(t,e){return r.a.createElement(H,{active:h===t,value:t,key:e},t)})))}}])&&kt(e.prototype,n),t}();jt.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var xt=jt;function Dt(t){return(Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Lt(t){return(Lt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ot(t,e){return(Ot=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var It=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==Dt(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,Lt(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.toggleFontFamily=function(t){var e=n.props,o=e.editorState,r=e.onChange,i=Object(s.toggleCustomInlineStyle)(o,"fontFamily",t);i&&r(i)};var o=e.editorState,r=e.modalHandler;return n.state={expanded:void 0,currentFontFamily:o?Object(s.getSelectionCustomInlineStyle)(o,["FONTFAMILY"]).FONTFAMILY:void 0},r.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ot(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentFontFamily:Object(s.getSelectionCustomInlineStyle)(e,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state,i=o.expanded,a=o.currentFontFamily,c=e.component||xt,s=a&&a.substring(11);return r.a.createElement(c,{translations:n,config:e,currentState:{fontFamily:s},onChange:this.toggleFontFamily,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Nt(e.prototype,n),t}();function Tt(t){return(Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function At(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function zt(t){return(zt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Bt(t,e){return(Bt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}It.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(18);var Pt=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=function(t,e){return!e||"object"!==Tt(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=zt(t)).call.apply(e,[this].concat(r)))).options=["unordered","ordered","indent","outdent"],n.toggleBlockType=function(t){(0,n.props.onChange)(t)},n.indent=function(){(0,n.props.onChange)("indent")},n.outdent=function(){(0,n.props.onChange)("outdent")},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Bt(t,e)}(t,o.Component),e=t,(n=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=t.currentState.listType,o=t.translations,i=t.indentDisabled,a=t.outdentDisabled,c=e.options,s=e.unordered,l=e.ordered,p=e.indent,f=e.outdent,d=e.className;return r.a.createElement("div",{className:u()("rdw-list-wrapper",d),"aria-label":"rdw-list-control"},0<=c.indexOf("unordered")&&r.a.createElement(I,{value:"unordered",onClick:this.toggleBlockType,className:u()(s.className),active:"unordered"===n,title:s.title||o["components.controls.list.unordered"]},r.a.createElement("img",{src:s.icon,alt:""})),0<=c.indexOf("ordered")&&r.a.createElement(I,{value:"ordered",onClick:this.toggleBlockType,className:u()(l.className),active:"ordered"===n,title:l.title||o["components.controls.list.ordered"]},r.a.createElement("img",{src:l.icon,alt:""})),0<=c.indexOf("indent")&&r.a.createElement(I,{onClick:this.indent,disabled:i,className:u()(p.className),title:p.title||o["components.controls.list.indent"]},r.a.createElement("img",{src:p.icon,alt:""})),0<=c.indexOf("outdent")&&r.a.createElement(I,{onClick:this.outdent,disabled:a,className:u()(f.className),title:f.title||o["components.controls.list.outdent"]},r.a.createElement("img",{src:f.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var t=this,e=this.props,n=e.config,o=e.expanded,i=e.doCollapse,a=e.doExpand,c=e.onExpandEvent,s=e.onChange,l=e.currentState.listType,p=e.translations,f=n.options,d=n.className,g=n.dropdownClassName,h=n.title;return r.a.createElement(P,{className:u()("rdw-list-dropdown",d),optionWrapperClassName:u()(g),onChange:s,expanded:o,doExpand:a,doCollapse:i,onExpandEvent:c,"aria-label":"rdw-list-control",title:h||p["components.controls.list.list"]},r.a.createElement("img",{src:C(n),alt:""}),this.options.filter(function(t){return 0<=f.indexOf(t)}).map(function(e,o){return r.a.createElement(H,{key:o,value:e,disabled:t.props["".concat(e,"Disabled")],className:u()("rdw-list-dropdownOption",n[e].className),active:l===e,title:n[e].title||p["components.controls.list.".concat(e)]},r.a.createElement("img",{src:n[e].icon,alt:""}))}))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&At(e.prototype,n),t}();function Rt(t){return(Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ft(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Ut(t){return(Ut=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Kt(t,e){return(Kt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Pt.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object,indentDisabled:a.a.bool,outdentDisabled:a.a.bool};var Yt=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==Rt(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,Ut(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.onChange=function(t){"unordered"===t?n.toggleBlockType("unordered-list-item"):"ordered"===t?n.toggleBlockType("ordered-list-item"):"indent"===t?n.adjustDepth(1):n.adjustDepth(-1)},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.toggleBlockType=function(t){var e=n.props,o=e.onChange,r=e.editorState,i=c.RichUtils.toggleBlockType(r,t);i&&o(i)},n.adjustDepth=function(t){var e=n.props,o=e.onChange,r=e.editorState,i=Object(s.changeDepth)(r,t,4);i&&o(i)},n.isIndentDisabled=function(){var t=n.props.editorState,e=n.state.currentBlock,o=Object(s.getBlockBeforeSelectedBlock)(t);return!o||!Object(s.isListBlock)(e)||o.get("type")!==e.get("type")||o.get("depth")<e.get("depth")},n.isOutdentDisabled=function(){var t=n.state.currentBlock;return!t||!Object(s.isListBlock)(t)||t.get("depth")<=0};var o=n.props,r=o.editorState,i=o.modalHandler;return n.state={expanded:!1,currentBlock:r?Object(s.getSelectedBlock)(r):void 0},i.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Kt(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentBlock:Object(s.getSelectedBlock)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t,e=this.props,n=e.config,o=e.translations,i=this.state,a=i.expanded,c=i.currentBlock,s=n.component||Pt;"unordered-list-item"===c.get("type")?t="unordered":"ordered-list-item"===c.get("type")&&(t="ordered");var l=this.isIndentDisabled(),u=this.isOutdentDisabled();return r.a.createElement(s,{config:n,translations:o,currentState:{listType:t},expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:l,outdentDisabled:u})}}])&&Ft(e.prototype,n),t}();function Ht(t){return(Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Zt(t){return(Zt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Wt(t,e){return(Wt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Yt.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(19);var Gt=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){return!e||"object"!==Ht(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,Zt(t).apply(this,arguments))}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wt(t,e)}(t,o.Component),e=t,(n=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,o=e.left,i=e.center,a=e.right,c=e.justify,s=e.className,l=t.onChange,p=t.currentState.textAlignment,f=t.translations;return r.a.createElement("div",{className:u()("rdw-text-align-wrapper",s),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&r.a.createElement(I,{value:"left",className:u()(o.className),active:"left"===p,onClick:l,title:o.title||f["components.controls.textalign.left"]},r.a.createElement("img",{src:o.icon,alt:""})),0<=n.indexOf("center")&&r.a.createElement(I,{value:"center",className:u()(i.className),active:"center"===p,onClick:l,title:i.title||f["components.controls.textalign.center"]},r.a.createElement("img",{src:i.icon,alt:""})),0<=n.indexOf("right")&&r.a.createElement(I,{value:"right",className:u()(a.className),active:"right"===p,onClick:l,title:a.title||f["components.controls.textalign.right"]},r.a.createElement("img",{src:a.icon,alt:""})),0<=n.indexOf("justify")&&r.a.createElement(I,{value:"justify",className:u()(c.className),active:"justify"===p,onClick:l,title:c.title||f["components.controls.textalign.justify"]},r.a.createElement("img",{src:c.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,o=t.doExpand,i=t.onExpandEvent,a=t.doCollapse,c=t.currentState.textAlignment,s=t.onChange,l=t.translations,p=e.options,f=e.left,d=e.center,g=e.right,h=e.justify,y=e.className,m=e.dropdownClassName,v=e.title;return r.a.createElement(P,{className:u()("rdw-text-align-dropdown",y),optionWrapperClassName:u()(m),onChange:s,expanded:n,doExpand:o,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-textalign-control",title:v||l["components.controls.textalign.textalign"]},r.a.createElement("img",{src:c&&e[c]&&e[c].icon||C(e),alt:""}),0<=p.indexOf("left")&&r.a.createElement(H,{value:"left",active:"left"===c,className:u()("rdw-text-align-dropdownOption",f.className),title:f.title||l["components.controls.textalign.left"]},r.a.createElement("img",{src:f.icon,alt:""})),0<=p.indexOf("center")&&r.a.createElement(H,{value:"center",active:"center"===c,className:u()("rdw-text-align-dropdownOption",d.className),title:d.title||l["components.controls.textalign.center"]},r.a.createElement("img",{src:d.icon,alt:""})),0<=p.indexOf("right")&&r.a.createElement(H,{value:"right",active:"right"===c,className:u()("rdw-text-align-dropdownOption",g.className),title:g.title||l["components.controls.textalign.right"]},r.a.createElement("img",{src:g.icon,alt:""})),0<=p.indexOf("justify")&&r.a.createElement(H,{value:"justify",active:"justify"===c,className:u()("rdw-text-align-dropdownOption",h.className),title:h.title||l["components.controls.textalign.justify"]},r.a.createElement("img",{src:h.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Qt(e.prototype,n),t}();function qt(t){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Jt(t){return(Jt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Xt(t,e){return(Xt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Gt.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var $t=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==qt(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,Jt(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.addBlockAlignmentData=function(t){var e=n.props,o=e.editorState,r=e.onChange;r(n.state.currentTextAlignment!==t?Object(s.setBlockData)(o,{"text-align":t}):Object(s.setBlockData)(o,{"text-align":void 0}))};var o=n.props.modalHandler;return n.state={currentTextAlignment:void 0},o.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xt(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e!==t.editorState&&this.setState({currentTextAlignment:Object(s.getSelectedBlocksMetadata)(e).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state,i=o.expanded,a=o.currentTextAlignment,c=e.component||Gt;return r.a.createElement(c,{config:e,translations:n,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:a},onChange:this.addBlockAlignmentData})}}])&&Vt(e.prototype,n),t}();function te(t){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ee(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function ne(t){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function oe(t,e){return(oe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}$t.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(20);var re=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(n=function(t,e){return!e||"object"!==te(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=ne(t)).call.apply(e,[this].concat(i)))).state={currentStyle:"color"},n.onChange=function(t){(0,n.props.onChange)(n.state.currentStyle,t)},n.setCurrentStyleColor=function(){n.setState({currentStyle:"color"})},n.setCurrentStyleBgcolor=function(){n.setState({currentStyle:"bgcolor"})},n.renderModal=function(){var t=n.props,e=t.config,o=e.popupClassName,i=e.colors,a=t.currentState,c=a.color,s=a.bgColor,l=t.translations,p=n.state.currentStyle,f="color"===p?c:s;return r.a.createElement("div",{className:u()("rdw-colorpicker-modal",o),onClick:w},r.a.createElement("span",{className:"rdw-colorpicker-modal-header"},r.a.createElement("span",{className:u()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"color"===p}),onClick:n.setCurrentStyleColor},l["components.controls.colorpicker.text"]),r.a.createElement("span",{className:u()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"bgcolor"===p}),onClick:n.setCurrentStyleBgcolor},l["components.controls.colorpicker.background"])),r.a.createElement("span",{className:"rdw-colorpicker-modal-options"},i.map(function(t,e){return r.a.createElement(I,{value:t,key:e,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:f===t,onClick:n.onChange},r.a.createElement("span",{style:{backgroundColor:t},className:"rdw-colorpicker-cube"}))})))},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&oe(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){this.props.expanded&&!t.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,o=e.className,i=e.title,a=t.expanded,c=t.onExpandEvent,s=t.translations;return r.a.createElement("div",{className:"rdw-colorpicker-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-color-picker",title:i||s["components.controls.colorpicker.colorpicker"]},r.a.createElement(I,{onClick:c,className:u()(o)},r.a.createElement("img",{src:n,alt:""})),a?this.renderModal():void 0)}}])&&ee(e.prototype,n),t}();re.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var ie=re;function ae(t){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ce(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function se(t){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function le(t,e){return(le=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ue=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==ae(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,se(t).call(this,e))).state={expanded:!1,currentColor:void 0,currentBgColor:void 0},n.onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.toggleColor=function(t,e){var o=n.props,r=o.editorState,i=o.onChange,a=Object(s.toggleCustomInlineStyle)(r,t,e);a&&i(a),n.doCollapse()};var o=e.editorState,r=e.modalHandler,i={expanded:!1,currentColor:void 0,currentBgColor:void 0};return o&&(i.currentColor=Object(s.getSelectionCustomInlineStyle)(o,["COLOR"]).COLOR,i.currentBgColor=Object(s.getSelectionCustomInlineStyle)(o,["BGCOLOR"]).BGCOLOR),n.state=i,r.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&le(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentColor:Object(s.getSelectionCustomInlineStyle)(e,["COLOR"]).COLOR,currentBgColor:Object(s.getSelectionCustomInlineStyle)(e,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state,i=o.currentColor,a=o.currentBgColor,c=o.expanded,s=e.component||ie,l=i&&i.substring(6),u=a&&a.substring(8);return r.a.createElement(s,{config:e,translations:n,onChange:this.toggleColor,expanded:c,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:l,bgColor:u}})}}])&&ce(e.prototype,n),t}();ue.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var pe=ue,fe=n(7),de=n.n(fe);function ge(t){return(ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function he(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function ye(t){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function me(t,e){return(me=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n(26);var ve=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=function(t,e){return!e||"object"!==ge(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=ye(t)).call.apply(e,[this].concat(r)))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:n.props.config.defaultTargetOption},n.removeLink=function(){(0,n.props.onChange)("unlink")},n.addLink=function(){var t=n.props.onChange,e=n.state;t("link",e.linkTitle,e.linkTarget,e.linkTargetOption)},n.updateValue=function(t){var e,o,r;n.setState((e={},o="".concat(t.target.name),r=t.target.value,o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e))},n.updateTargetOption=function(t){n.setState({linkTargetOption:t.target.checked?"_blank":"_self"})},n.hideModal=function(){n.setState({showModal:!1})},n.signalExpandShowModal=function(){var t=n.props,e=t.onExpandEvent,o=t.currentState,r=o.link,i=o.selectionText,a=n.state.linkTargetOption;e(),n.setState({showModal:!0,linkTarget:r&&r.target||"",linkTargetOption:r&&r.targetOption||a,linkTitle:r&&r.title||i})},n.forceExpandAndShowModal=function(){var t=n.props,e=t.doExpand,o=t.currentState,r=o.link,i=o.selectionText,a=n.state.linkTargetOption;e(),n.setState({showModal:!0,linkTarget:r&&r.target,linkTargetOption:r&&r.targetOption||a,linkTitle:r&&r.title||i})},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&me(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){t.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var t=this.props,e=t.config.popupClassName,n=t.doCollapse,o=t.translations,i=this.state,a=i.linkTitle,c=i.linkTarget,s=i.linkTargetOption;return r.a.createElement("div",{className:u()("rdw-link-modal",e),onClick:w},r.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},o["components.controls.link.linkTitle"]),r.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:a}),r.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},o["components.controls.link.linkTarget"]),r.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:c}),r.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},r.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===s,value:"_blank",onChange:this.updateTargetOption}),r.a.createElement("span",null,o["components.controls.link.linkTargetOption"])),r.a.createElement("span",{className:"rdw-link-modal-buttonsection"},r.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!c||!a},o["generic.add"]),r.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},o["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,o=e.link,i=e.unlink,a=e.className,c=t.currentState,s=t.expanded,l=t.translations,p=this.state.showModal;return r.a.createElement("div",{className:u()("rdw-link-wrapper",a),"aria-label":"rdw-link-control"},0<=n.indexOf("link")&&r.a.createElement(I,{value:"unordered-list-item",className:u()(o.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":p,title:o.title||l["components.controls.link.link"]},r.a.createElement("img",{src:o.icon,alt:""})),0<=n.indexOf("unlink")&&r.a.createElement(I,{disabled:!c.link,value:"ordered-list-item",className:u()(i.className),onClick:this.removeLink,title:i.title||l["components.controls.link.unlink"]},r.a.createElement("img",{src:i.icon,alt:""})),s&&p?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.expanded,n=t.onExpandEvent,o=t.doCollapse,i=t.doExpand,a=t.onChange,c=t.config,s=t.currentState,l=t.translations,p=c.options,f=c.link,d=c.unlink,g=c.className,h=c.dropdownClassName,y=c.title,m=this.state.showModal;return r.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":e,title:y},r.a.createElement(P,{className:u()("rdw-link-dropdown",g),optionWrapperClassName:u()(h),onChange:a,expanded:e&&!m,doExpand:i,doCollapse:o,onExpandEvent:n},r.a.createElement("img",{src:C(c),alt:""}),0<=p.indexOf("link")&&r.a.createElement(H,{onClick:this.forceExpandAndShowModal,className:u()("rdw-link-dropdownoption",f.className),title:f.title||l["components.controls.link.link"]},r.a.createElement("img",{src:f.icon,alt:""})),0<=p.indexOf("unlink")&&r.a.createElement(H,{onClick:this.removeLink,disabled:!s.link,className:u()("rdw-link-dropdownoption",d.className),title:d.title||l["components.controls.link.unlink"]},r.a.createElement("img",{src:d.icon,alt:""}))),e&&m?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&he(e.prototype,n),t}();ve.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var be=ve;function Se(t){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Me(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function we(t){return(we=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ce(t,e){return(Ce=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ke(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function Ee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _e=de()(),je=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==Se(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,we(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.onChange=function(t,e,o,r){var i=n.props.config.linkCallback;if("link"===t){var a=(i||function(t){var e=_e.match(t.target);return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ke(Object(n),!0).forEach(function(e){Ee(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},t,{target:e&&e[0]&&e[0].url||t.target})})({title:e,target:o,targetOption:r});n.addLink(a.title,a.target,a.targetOption)}else n.removeLink()},n.getCurrentValues=function(){var t=n.props.editorState,e=n.state.currentEntity,o=t.getCurrentContent(),r={};if(e&&"LINK"===o.getEntity(e).get("type")){r.link={};var i=e&&Object(s.getEntityRange)(t,e);r.link.target=e&&o.getEntity(e).get("data").url,r.link.targetOption=e&&o.getEntity(e).get("data").targetOption,r.link.title=i&&i.text}return r.selectionText=Object(s.getSelectionText)(t),r},n.doExpand=function(){n.setState({expanded:!0})},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doCollapse=function(){n.setState({expanded:!1})},n.removeLink=function(){var t=n.props,e=t.editorState,o=t.onChange,r=n.state.currentEntity,i=e.getSelection();if(r){var a=Object(s.getEntityRange)(e,r);i=i.getIsBackward()?i.merge({anchorOffset:a.end,focusOffset:a.start}):i.merge({anchorOffset:a.start,focusOffset:a.end}),o(c.RichUtils.toggleLink(e,i,null))}},n.addLink=function(t,e,o){var r=n.props,i=r.editorState,a=r.onChange,l=n.state.currentEntity,u=i.getSelection();if(l){var p=Object(s.getEntityRange)(i,l);u=u.getIsBackward()?u.merge({anchorOffset:p.end,focusOffset:p.start}):u.merge({anchorOffset:p.start,focusOffset:p.end})}var f=i.getCurrentContent().createEntity("LINK","MUTABLE",{url:e,targetOption:o}).getLastCreatedEntityKey(),d=c.Modifier.replaceText(i.getCurrentContent(),u,"".concat(t),i.getCurrentInlineStyle(),f),g=c.EditorState.push(i,d,"insert-characters");u=g.getSelection().merge({anchorOffset:u.get("anchorOffset")+t.length,focusOffset:u.get("anchorOffset")+t.length}),g=c.EditorState.acceptSelection(g,u),d=c.Modifier.insertText(g.getCurrentContent(),u," ",g.getCurrentInlineStyle(),void 0),a(c.EditorState.push(g,d,"insert-characters")),n.doCollapse()};var o=n.props,r=o.editorState,i=o.modalHandler;return n.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:r?Object(s.getSelectionEntity)(r):void 0},i.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ce(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentEntity:Object(s.getSelectionEntity)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state.expanded,i=this.getCurrentValues(),a=i.link,c=i.selectionText,s=e.component||be;return r.a.createElement(s,{config:e,translations:n,expanded:o,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:a,selectionText:c},onChange:this.onChange})}}])&&Me(e.prototype,n),t}();je.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var xe=je;function De(t){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ne(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Le(t){return(Le=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Oe(t,e){return(Oe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n(27);var Ie=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=function(t,e){return!e||"object"!==De(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=Le(t)).call.apply(e,[this].concat(r)))).state={embeddedLink:"",height:n.props.config.defaultSize.height,width:n.props.config.defaultSize.width},n.onChange=function(){var t=n.props.onChange,e=n.state;t(e.embeddedLink,e.height,e.width)},n.updateValue=function(t){var e,o,r;n.setState((e={},o="".concat(t.target.name),r=t.target.value,o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e))},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Oe(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.expanded,o=e.config;if(!n&&t.expanded){var r=o.defaultSize,i=r.height,a=r.width;this.setState({embeddedLink:"",height:i,width:a})}}},{key:"rendeEmbeddedLinkModal",value:function(){var t=this.state,e=t.embeddedLink,n=t.height,o=t.width,i=this.props,a=i.config.popupClassName,c=i.doCollapse,s=i.translations;return r.a.createElement("div",{className:u()("rdw-embedded-modal",a),onClick:w},r.a.createElement("div",{className:"rdw-embedded-modal-header"},r.a.createElement("span",{className:"rdw-embedded-modal-header-option"},s["components.controls.embedded.embeddedlink"],r.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),r.a.createElement("div",{className:"rdw-embedded-modal-link-section"},r.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},r.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:s["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:e,name:"embeddedLink"}),r.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),r.a.createElement("div",{className:"rdw-embedded-modal-size"},r.a.createElement("span",null,r.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:n,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),r.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),r.a.createElement("span",null,r.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:o,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),r.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),r.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},r.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!e||!n||!o},s["generic.add"]),r.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:c},s["generic.cancel"])))}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,o=e.className,i=e.title,a=t.expanded,c=t.onExpandEvent,s=t.translations;return r.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-embedded-control"},r.a.createElement(I,{className:u()(o),value:"unordered-list-item",onClick:c,title:i||s["components.controls.embedded.embedded"]},r.a.createElement("img",{src:n,alt:""})),a?this.rendeEmbeddedLinkModal():void 0)}}])&&Ne(e.prototype,n),t}();Ie.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object,doCollapse:a.a.func};var Te=Ie;function Ae(t){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ze(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Be(t){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Pe(t,e){return(Pe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Re=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=function(t,e){return!e||"object"!==Ae(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=Be(t)).call.apply(e,[this].concat(r)))).state={expanded:!1},n.onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.addEmbeddedLink=function(t,e,o){var r=n.props,i=r.editorState,a=r.onChange,s=r.config.embedCallback,l=s?s(t):t,u=i.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:l,height:e,width:o}).getLastCreatedEntityKey();a(c.AtomicBlockUtils.insertAtomicBlock(i,u," ")),n.doCollapse()},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Pe(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state.expanded,i=e.component||Te;return r.a.createElement(i,{config:e,translations:n,onChange:this.addEmbeddedLink,expanded:o,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&ze(e.prototype,n),t}();Re.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Fe=Re;function Ue(t){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ke(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Ye(t){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function He(t,e){return(He=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n(28);var Qe=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=function(t,e){return!e||"object"!==Ue(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=Ye(t)).call.apply(e,[this].concat(r)))).onChange=function(t){(0,n.props.onChange)(t.target.innerHTML)},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&He(t,e)}(t,o.Component),e=t,(n=[{key:"renderEmojiModal",value:function(){var t=this,e=this.props.config,n=e.popupClassName,o=e.emojis;return r.a.createElement("div",{className:u()("rdw-emoji-modal",n),onClick:w},o.map(function(e,n){return r.a.createElement("span",{key:n,className:"rdw-emoji-icon",alt:"",onClick:t.onChange},e)}))}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,o=e.className,i=e.title,a=t.expanded,c=t.onExpandEvent,s=t.translations;return r.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":a,title:i||s["components.controls.emoji.emoji"]},r.a.createElement(I,{className:u()(o),value:"unordered-list-item",onClick:c},r.a.createElement("img",{src:n,alt:""})),a?this.renderEmojiModal():void 0)}}])&&Ke(e.prototype,n),t}();Qe.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var Ze=Qe;function We(t){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ge(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function qe(t){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ve(t,e){return(Ve=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Je=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=function(t,e){return!e||"object"!==We(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=qe(t)).call.apply(e,[this].concat(r)))).state={expanded:!1},n.onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.addEmoji=function(t){var e=n.props,o=e.editorState,r=e.onChange,i=c.Modifier.replaceText(o.getCurrentContent(),o.getSelection(),t,o.getCurrentInlineStyle());r(c.EditorState.push(o,i,"insert-characters")),n.doCollapse()},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ve(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state.expanded,i=e.component||Ze;return r.a.createElement(i,{config:e,translations:n,onChange:this.addEmoji,expanded:o,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&Ge(e.prototype,n),t}();function Xe(){return r.a.createElement("div",{className:"rdw-spinner"},r.a.createElement("div",{className:"rdw-bounce1"}),r.a.createElement("div",{className:"rdw-bounce2"}),r.a.createElement("div",{className:"rdw-bounce3"}))}function $e(t){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tn(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function en(t){return(en=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function nn(t,e){return(nn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Je.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(29),n(30);var on=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=function(t,e){return!e||"object"!==$e(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=en(t)).call.apply(e,[this].concat(r)))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:n.props.config.uploadEnabled&&!!n.props.config.uploadCallback,showImageLoading:!1,height:n.props.config.defaultSize.height,width:n.props.config.defaultSize.width,alt:""},n.onDragEnter=function(t){n.stopPropagation(t),n.setState({dragEnter:!0})},n.onImageDrop=function(t){var e,o;t.preventDefault(),t.stopPropagation(),n.setState({dragEnter:!1}),o=t.dataTransfer.items?(e=t.dataTransfer.items,!0):(e=t.dataTransfer.files,!1);for(var r=0;r<e.length;r+=1)if((!o||"file"===e[r].kind)&&e[r].type.match("^image/")){var i=o?e[r].getAsFile():e[r];n.uploadImage(i)}},n.showImageUploadOption=function(){n.setState({uploadHighlighted:!0})},n.addImageFromState=function(){var t=n.state,e=t.imgSrc,o=t.alt,r=n.state,i=r.height,a=r.width,c=n.props.onChange;isNaN(i)||(i+="px"),isNaN(a)||(a+="px"),c(e,i,a,o)},n.showImageURLOption=function(){n.setState({uploadHighlighted:!1})},n.toggleShowImageLoading=function(){var t=!n.state.showImageLoading;n.setState({showImageLoading:t})},n.updateValue=function(t){var e,o,r;n.setState((e={},o="".concat(t.target.name),r=t.target.value,o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e))},n.selectImage=function(t){t.target.files&&0<t.target.files.length&&n.uploadImage(t.target.files[0])},n.uploadImage=function(t){n.toggleShowImageLoading(),(0,n.props.config.uploadCallback)(t).then(function(t){var e=t.data;n.setState({showImageLoading:!1,dragEnter:!1,imgSrc:e.link||e.url}),n.fileUpload=!1}).catch(function(){n.setState({showImageLoading:!1,dragEnter:!1})})},n.fileUploadClick=function(t){n.fileUpload=!0,t.stopPropagation()},n.stopPropagation=function(t){n.fileUpload?n.fileUpload=!1:(t.preventDefault(),t.stopPropagation())},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nn(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.config;t.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:e.uploadEnabled&&!!e.uploadCallback,showImageLoading:!1,height:e.defaultSize.height,width:e.defaultSize.width,alt:""}):e.uploadCallback===t.config.uploadCallback&&e.uploadEnabled===t.config.uploadEnabled||this.setState({uploadHighlighted:e.uploadEnabled&&!!e.uploadCallback})}},{key:"renderAddImageModal",value:function(){var t=this.state,e=t.imgSrc,n=t.uploadHighlighted,o=t.showImageLoading,i=t.dragEnter,a=t.height,c=t.width,s=t.alt,l=this.props,p=l.config,f=p.popupClassName,d=p.uploadCallback,g=p.uploadEnabled,h=p.urlEnabled,y=p.previewImage,m=p.inputAccept,v=p.alt,b=l.doCollapse,S=l.translations;return r.a.createElement("div",{className:u()("rdw-image-modal",f),onClick:this.stopPropagation},r.a.createElement("div",{className:"rdw-image-modal-header"},g&&d&&r.a.createElement("span",{onClick:this.showImageUploadOption,className:"rdw-image-modal-header-option"},S["components.controls.image.fileUpload"],r.a.createElement("span",{className:u()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":n})})),h&&r.a.createElement("span",{onClick:this.showImageURLOption,className:"rdw-image-modal-header-option"},S["components.controls.image.byURL"],r.a.createElement("span",{className:u()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":!n})}))),n?r.a.createElement("div",{onClick:this.fileUploadClick},r.a.createElement("div",{onDragEnter:this.onDragEnter,onDragOver:this.stopPropagation,onDrop:this.onImageDrop,className:u()("rdw-image-modal-upload-option",{"rdw-image-modal-upload-option-highlighted":i})},r.a.createElement("label",{htmlFor:"file",className:"rdw-image-modal-upload-option-label"},y&&e?r.a.createElement("img",{src:e,alt:e,className:"rdw-image-modal-upload-option-image-preview"}):e||S["components.controls.image.dropFileText"])),r.a.createElement("input",{type:"file",id:"file",accept:m,onChange:this.selectImage,className:"rdw-image-modal-upload-option-input"})):r.a.createElement("div",{className:"rdw-image-modal-url-section"},r.a.createElement("input",{className:"rdw-image-modal-url-input",placeholder:S["components.controls.image.enterlink"],name:"imgSrc",onChange:this.updateValue,onBlur:this.updateValue,value:e}),r.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),v.present&&r.a.createElement("div",{className:"rdw-image-modal-size"},r.a.createElement("span",{className:"rdw-image-modal-alt-lbl"},"Alt Text"),r.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:s,name:"alt",className:"rdw-image-modal-alt-input",placeholder:"alt"}),r.a.createElement("span",{className:"rdw-image-mandatory-sign"},v.mandatory&&"*")),r.a.createElement("div",{className:"rdw-image-modal-size"},"\u2195\xa0",r.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:a,name:"height",className:"rdw-image-modal-size-input",placeholder:"Height"}),r.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*"),"\xa0\u2194\xa0",r.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:c,name:"width",className:"rdw-image-modal-size-input",placeholder:"Width"}),r.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),r.a.createElement("span",{className:"rdw-image-modal-btn-section"},r.a.createElement("button",{className:"rdw-image-modal-btn",onClick:this.addImageFromState,disabled:!e||!a||!c||v.mandatory&&!s},S["generic.add"]),r.a.createElement("button",{className:"rdw-image-modal-btn",onClick:b},S["generic.cancel"])),o?r.a.createElement("div",{className:"rdw-image-modal-spinner"},r.a.createElement(Xe,null)):void 0)}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,o=e.className,i=e.title,a=t.expanded,c=t.onExpandEvent,s=t.translations;return r.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-image-control"},r.a.createElement(I,{className:u()(o),value:"unordered-list-item",onClick:c,title:i||s["components.controls.image.image"]},r.a.createElement("img",{src:n,alt:""})),a?this.renderAddImageModal():void 0)}}])&&tn(e.prototype,n),t}();on.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var rn=on;function an(t){return(an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cn(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function sn(t){return(sn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ln(t,e){return(ln=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var un=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==an(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,sn(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.addImage=function(t,e,o,r){var i=n.props,a=i.editorState,s=i.onChange,l={src:t,height:e,width:o};i.config.alt.present&&(l.alt=r);var u=a.getCurrentContent().createEntity("IMAGE","MUTABLE",l).getLastCreatedEntityKey();s(c.AtomicBlockUtils.insertAtomicBlock(a,u," ")),n.doCollapse()};var o=n.props.modalHandler;return n.state={expanded:!1},o.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ln(t,e)}(t,o.Component),e=t,(n=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state.expanded,i=e.component||rn;return r.a.createElement(i,{config:e,translations:n,onChange:this.addImage,expanded:o,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&cn(e.prototype,n),t}();function pn(t){var e=t.config,n=t.onChange,o=t.translations,i=e.icon,a=e.className,c=e.title;return r.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},r.a.createElement(I,{className:u()(a),onClick:n,title:c||o["components.controls.remove.remove"]},r.a.createElement("img",{src:i,alt:""})))}un.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var fn=un;n(31),pn.propTypes={onChange:a.a.func,config:a.a.object,translations:a.a.object};var dn=pn;function gn(t){return(gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hn(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function yn(t){return(yn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function mn(t,e){return(mn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var vn=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=function(t,e){return!e||"object"!==gn(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=yn(t)).call.apply(e,[this].concat(r)))).state={expanded:!1},n.onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.removeInlineStyles=function(){var t=n.props,e=t.editorState;(0,t.onChange)(n.removeAllInlineStyles(e))},n.removeAllInlineStyles=function(t){var e=t.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(n){e=c.Modifier.removeInlineStyle(e,t.getSelection(),n)}),S(Object(s.getSelectionCustomInlineStyle)(t,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),function(n,o){o&&(e=c.Modifier.removeInlineStyle(e,t.getSelection(),o))}),c.EditorState.push(t,e,"change-inline-style")},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&mn(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state.expanded,i=e.component||dn;return r.a.createElement(i,{config:e,translations:n,expanded:o,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&hn(e.prototype,n),t}();function bn(t){return(bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sn(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Mn(t){return(Mn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function wn(t,e){return(wn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}vn.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,config:a.a.object,translations:a.a.object,modalHandler:a.a.object},n(32);var Cn=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=function(t,e){return!e||"object"!==bn(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=Mn(t)).call.apply(e,[this].concat(r)))).onChange=function(t){(0,n.props.onChange)(t)},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wn(t,e)}(t,o.Component),e=t,(n=[{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,o=t.doExpand,i=t.onExpandEvent,a=t.doCollapse,c=t.currentState,s=c.undoDisabled,l=c.redoDisabled,p=t.translations,f=e.options,d=e.undo,g=e.redo,h=e.className,y=e.dropdownClassName,m=e.title;return r.a.createElement(P,{className:u()("rdw-history-dropdown",h),optionWrapperClassName:u()(y),expanded:n,doExpand:o,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-history-control",title:m||p["components.controls.history.history"]},r.a.createElement("img",{src:C(e),alt:""}),0<=f.indexOf("undo")&&r.a.createElement(H,{value:"undo",onClick:this.onChange,disabled:s,className:u()("rdw-history-dropdownoption",d.className),title:d.title||p["components.controls.history.undo"]},r.a.createElement("img",{src:d.icon,alt:""})),0<=f.indexOf("redo")&&r.a.createElement(H,{value:"redo",onClick:this.onChange,disabled:l,className:u()("rdw-history-dropdownoption",g.className),title:g.title||p["components.controls.history.redo"]},r.a.createElement("img",{src:g.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,o=e.undo,i=e.redo,a=e.className,c=t.currentState,s=c.undoDisabled,l=c.redoDisabled,p=t.translations;return r.a.createElement("div",{className:u()("rdw-history-wrapper",a),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&r.a.createElement(I,{value:"undo",onClick:this.onChange,className:u()(o.className),disabled:s,title:o.title||p["components.controls.history.undo"]},r.a.createElement("img",{src:o.icon,alt:""})),0<=n.indexOf("redo")&&r.a.createElement(I,{value:"redo",onClick:this.onChange,className:u()(i.className),disabled:l,title:i.title||p["components.controls.history.redo"]},r.a.createElement("img",{src:i.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Sn(e.prototype,n),t}();function kn(t){return(kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function En(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _n(t){return(_n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function jn(t,e){return(jn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Cn.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var xn=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==kn(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,_n(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.onChange=function(t){var e=n.props,o=e.editorState,r=e.onChange,i=c.EditorState[t](o);i&&r(i)},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})};var o={expanded:!(n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},r=e.editorState,i=e.modalHandler;return r&&(o.undoDisabled=0===r.getUndoStack().size,o.redoDisabled=0===r.getRedoStack().size),n.state=o,i.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jn(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&t.editorState!==e&&this.setState({undoDisabled:0===e.getUndoStack().size,redoDisabled:0===e.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,o=this.state,i=o.undoDisabled,a=o.redoDisabled,c=o.expanded,s=e.component||Cn;return r.a.createElement(s,{config:e,translations:n,currentState:{undoDisabled:i,redoDisabled:a},expanded:c,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&En(e.prototype,n),t}();xn.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Dn={inline:tt,blockType:ft,fontSize:wt,fontFamily:It,list:Yt,textAlign:$t,colorPicker:pe,link:xe,embedded:Fe,emoji:Je,image:fn,remove:vn,history:xn},Nn=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Ln=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function On(t){return String(t).replace(Nn,"").match(Ln)?t:"#"}function In(t){return(In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tn(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function An(t){return(An=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function zn(t,e){return(zn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Bn(t,e,n){t.findEntityRanges(function(t){var e=t.getEntity();return null!==e&&"LINK"===n.getEntity(e).getType()},e)}function Pn(t){var e,n,i=t.showOpenOptionOnHover;return n=e=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=function(t,e){return!e||"object"!==In(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=An(t)).call.apply(e,[this].concat(r)))).state={showPopOver:!1},n.openLink=function(){var t=n.props,e=t.entityKey,o=t.contentState.getEntity(e).getData().url,r=window.open(On(o),"blank");r&&r.focus()},n.toggleShowPopOver=function(){var t=!n.state.showPopOver;n.setState({showPopOver:t})},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&zn(t,e)}(t,o.Component),e=t,(n=[{key:"render",value:function(){var t=this.props,e=t.children,n=t.entityKey,o=t.contentState.getEntity(n).getData(),a=o.url,c=o.targetOption,s=this.state.showPopOver;return r.a.createElement("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver},r.a.createElement("a",{href:On(a),target:c},e),s&&i?r.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuMDcyIDBIOC45MTVhLjkyNS45MjUgMCAwIDAgMCAxLjg0OWgyLjkyNUw2Ljk2MSA2LjcyN2EuOTE4LjkxOCAwIDAgMC0uMjcuNjU0YzAgLjI0Ny4wOTUuNDguMjcuNjU0YS45MTguOTE4IDAgMCAwIC42NTQuMjcuOTE4LjkxOCAwIDAgMCAuNjUzLS4yN2w0Ljg4LTQuODh2Mi45MjZhLjkyNS45MjUgMCAwIDAgMS44NDggMFYuOTI0QS45MjUuOTI1IDAgMCAwIDE0LjA3MiAweiIvPjxwYXRoIGQ9Ik0xMC42MjMgMTMuNDExSDEuNTg1VjQuMzcyaDYuNzk4bDEuNTg0LTEuNTg0SC43OTJBLjc5Mi43OTIgMCAwIDAgMCAzLjU4djEwLjYyNGMwIC40MzcuMzU1Ljc5Mi43OTIuNzkyaDEwLjYyNGEuNzkyLjc5MiAwIDAgMCAuNzkyLS43OTJWNS4wMjlsLTEuNTg1IDEuNTg0djYuNzk4eiIvPjwvZz48L3N2Zz4=",alt:"",onClick:this.openLink,className:"rdw-link-decorator-icon"}):void 0)}}])&&Tn(e.prototype,n),t}(),e.propTypes={entityKey:a.a.string.isRequired,children:a.a.array,contentState:a.a.object},n}function Rn(t){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,Rn),this.getMentionComponent=function(){function t(t){var e=t.entityKey,o=t.children,i=t.contentState.getEntity(e).getData(),a=i.url,c=i.value;return r.a.createElement("a",{href:a||c,className:u()("rdw-mention-link",n)},o)}var n=e.className;return t.propTypes={entityKey:a.a.number,children:a.a.array,contentState:a.a.object},t},this.getMentionDecorator=function(){return{strategy:e.findMentionEntities,component:e.getMentionComponent()}},this.className=t}n(33),n(34),Rn.prototype.findMentionEntities=function(t,e,n){t.findEntityRanges(function(t){var e=t.getEntity();return null!==e&&"MENTION"===n.getEntity(e).getType()},e)};var Fn=Rn;function Un(t){return(Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Kn(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Yn(t){return(Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Hn(t,e){return(Hn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Qn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n(35);var Zn=function t(e){var n=this;Qn(this,t),this.findSuggestionEntities=function(t,e){if(n.config.getEditorState()){var o=n.config,r=o.separator,i=o.trigger,a=o.getSuggestions,c=(0,o.getEditorState)().getSelection();if(c.get("anchorKey")===t.get("key")&&c.get("anchorKey")===c.get("focusKey")){var s=t.getText(),l=(s=s.substr(0,c.get("focusOffset")===s.length-1?s.length:c.get("focusOffset")+1)).lastIndexOf(r+i),u=r+i;if((void 0===l||l<0)&&s[0]===i&&(l=0,u=i),0<=l){var p=s.substr(l+u.length,s.length);a().some(function(t){return!!t.value&&(n.config.caseSensitive?0<=t.value.indexOf(p):0<=t.value.toLowerCase().indexOf(p&&p.toLowerCase()))})&&e(0===l?0:l+1,s.length)}}}},this.getSuggestionComponent=function(){var t,e,n=this.config;return e=t=function(){function t(){var e,o;Qn(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(o=function(t,e){return!e||"object"!==Un(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=Yn(t)).call.apply(e,[this].concat(i)))).state={style:{left:15},activeOption:-1,showSuggestions:!0},o.onEditorKeyDown=function(t){var e=o.state.activeOption,n={};"ArrowDown"===t.key?(t.preventDefault(),e===o.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=e+1):"ArrowUp"===t.key?n.activeOption=e<=0?o.filteredSuggestions.length-1:e-1:"Escape"===t.key?(n.showSuggestions=!1,m()):"Enter"===t.key&&o.addMention(),o.setState(n)},o.onOptionMouseEnter=function(t){var e=t.target.getAttribute("data-index");o.setState({activeOption:e})},o.onOptionMouseLeave=function(){o.setState({activeOption:-1})},o.setSuggestionReference=function(t){o.suggestion=t},o.setDropdownReference=function(t){o.dropdown=t},o.closeSuggestionDropdown=function(){o.setState({showSuggestions:!1})},o.filteredSuggestions=[],o.filterSuggestions=function(t){var e=t.children[0].props.text.substr(1),r=n.getSuggestions();o.filteredSuggestions=r&&r.filter(function(t){return!e||0===e.length||(n.caseSensitive?0<=t.value.indexOf(e):0<=t.value.toLowerCase().indexOf(e&&e.toLowerCase()))})},o.addMention=function(){var t=o.state.activeOption,e=n.getEditorState(),r=n.onChange,i=n.separator,a=n.trigger,l=o.filteredSuggestions[t];l&&function(t,e,n,o,r){var i=r.value,a=r.url,l=t.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(o).concat(i),value:i,url:a}).getLastCreatedEntityKey(),u=Object(s.getSelectedBlock)(t).getText(),p=t.getSelection().focusOffset,f=(u.lastIndexOf(n+o,p)||0)+1,d=!1;u.length===f+1&&(p=u.length)," "===u[p]&&(d=!0);var g=t.getSelection().merge({anchorOffset:f,focusOffset:p}),h=c.EditorState.acceptSelection(t,g),y=c.Modifier.replaceText(h.getCurrentContent(),g,"".concat(o).concat(i),h.getCurrentInlineStyle(),l);h=c.EditorState.push(h,y,"insert-characters"),d||(g=h.getSelection().merge({anchorOffset:f+i.length+o.length,focusOffset:f+i.length+o.length}),h=c.EditorState.acceptSelection(h,g),y=c.Modifier.insertText(h.getCurrentContent(),g," ",h.getCurrentInlineStyle(),void 0)),e(c.EditorState.push(h,y,"insert-characters"))}(e,r,i,a,l)},o}var e,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Hn(t,e)}(t,o.Component),e=t,(i=[{key:"componentDidMount",value:function(){var t,e,o,r=n.getWrapperRef().getBoundingClientRect(),i=this.suggestion.getBoundingClientRect(),a=this.dropdown.getBoundingClientRect();r.width<i.left-r.left+a.width?e=15:t=15,r.bottom<a.bottom&&(o=0),this.setState({style:{left:t,right:e,bottom:o}}),h.registerCallBack(this.onEditorKeyDown),y(),n.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(t){this.props.children!==t.children&&(this.filterSuggestions(t),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){h.deregisterCallBack(this.onEditorKeyDown),m(),n.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var t=this,e=this.props.children,o=this.state,i=o.activeOption,a=o.showSuggestions,c=n.dropdownClassName,s=n.optionClassName;return r.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:n.modalHandler.onSuggestionClick,"aria-haspopup":"true","aria-label":"rdw-suggestion-popup"},r.a.createElement("span",null,e),a&&r.a.createElement("span",{className:u()("rdw-suggestion-dropdown",c),contentEditable:"false",suppressContentEditableWarning:!0,style:this.state.style,ref:this.setDropdownReference},this.filteredSuggestions.map(function(e,n){return r.a.createElement("span",{key:n,spellCheck:!1,onClick:t.addMention,"data-index":n,onMouseEnter:t.onOptionMouseEnter,onMouseLeave:t.onOptionMouseLeave,className:u()("rdw-suggestion-option",s,{"rdw-suggestion-option-active":n===i})},e.text)})))}}])&&Kn(e.prototype,i),t}(),t.propTypes={children:a.a.array},e}.bind(this),this.getSuggestionDecorator=function(){return{strategy:n.findSuggestionEntities,component:n.getSuggestionComponent()}};var i=e.separator,l=e.trigger,p=e.getSuggestions,f=e.onChange,d=e.getEditorState,g=e.getWrapperRef,v=e.caseSensitive,b=e.dropdownClassName,S=e.optionClassName,M=e.modalHandler;this.config={separator:i,trigger:l,getSuggestions:p,onChange:f,getEditorState:d,getWrapperRef:g,caseSensitive:v,dropdownClassName:b,optionClassName:S,modalHandler:M}},Wn=function(t){return[new Fn(t.mentionClassName).getMentionDecorator(),new Zn(t).getSuggestionDecorator()]};function Gn(t){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,Gn),this.getHashtagComponent=function(){function t(t){var e=t.children,o=e[0].props.text;return r.a.createElement("a",{href:o,className:u()("rdw-hashtag-link",n)},e)}var n=e.className;return t.propTypes={children:a.a.object},t},this.findHashtagEntities=function(t,n){for(var o=t.getText(),r=0,i=0;0<o.length&&0<=r;)if(o[0]===e.hashCharacter?(i=r=0,o=o.substr(e.hashCharacter.length)):0<=(r=o.indexOf(e.separator+e.hashCharacter))&&(o=o.substr(r+(e.separator+e.hashCharacter).length),i+=r+e.separator.length),0<=r){var a=0<=o.indexOf(e.separator)?o.indexOf(e.separator):o.length,c=o.substr(0,a);c&&0<c.length&&(n(i,i+c.length+e.hashCharacter.length),i+=e.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:e.findHashtagEntities,component:e.getHashtagComponent()}},this.className=t.className,this.hashCharacter=t.hashCharacter||"#",this.separator=t.separator||" "}function qn(t){var e=t.block,n=t.contentState.getEntity(e.getEntityAt(0)).getData(),o=n.src,i=n.height,a=n.width;return r.a.createElement("iframe",{height:i,width:a,src:o,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}n(36);var Vn=function(t){return new Gn(t).getHashtagDecorator()};qn.propTypes={block:a.a.object,contentState:a.a.object};var Jn=qn;function Xn(t){return(Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $n(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function to(t){return(to=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function eo(t,e){return(eo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n(37);var no=function(t){var e,n;return n=e=function(){function e(){var n,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(o=function(t,e){return!e||"object"!==Xn(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(n=to(e)).call.apply(n,[this].concat(i)))).state={hovered:!1},o.setEntityAlignmentLeft=function(){o.setEntityAlignment("left")},o.setEntityAlignmentRight=function(){o.setEntityAlignment("right")},o.setEntityAlignmentCenter=function(){o.setEntityAlignment("none")},o.setEntityAlignment=function(e){var n=o.props,r=n.block,i=n.contentState,a=r.getEntityAt(0);i.mergeEntityData(a,{alignment:e}),t.onChange(c.EditorState.push(t.getEditorState(),i,"change-block-data")),o.setState({dummy:!0})},o.toggleHovered=function(){var t=!o.state.hovered;o.setState({hovered:t})},o}var n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&eo(t,e)}(e,o.Component),n=e,(i=[{key:"renderAlignmentOptions",value:function(t){return r.a.createElement("div",{className:u()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":"right"===t})},r.a.createElement(I,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),r.a.createElement(I,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),r.a.createElement(I,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var e=this.props,n=e.block,o=e.contentState,i=this.state.hovered,a=t.isReadOnly,c=t.isImageAlignmentEnabled,s=o.getEntity(n.getEntityAt(0)).getData(),l=s.src,p=s.alignment,f=s.height,d=s.width,g=s.alt;return r.a.createElement("span",{onMouseEnter:this.toggleHovered,onMouseLeave:this.toggleHovered,className:u()("rdw-image-alignment",{"rdw-image-left":"left"===p,"rdw-image-right":"right"===p,"rdw-image-center":!p||"none"===p})},r.a.createElement("span",{className:"rdw-image-imagewrapper"},r.a.createElement("img",{src:l,alt:g,style:{height:f,width:d}}),!a()&&i&&c()?this.renderAlignmentOptions(p):void 0))}}])&&$n(n.prototype,i),e}(),e.propTypes={block:a.a.object,contentState:a.a.object},n},oo=function(t,e){return function(n){if("function"==typeof e){var o=e(n,t,t.getEditorState);if(o)return o}if("atomic"===n.getType()){var r=t.getEditorState().getCurrentContent().getEntity(n.getEntityAt(0));if(r&&"IMAGE"===r.type)return{component:no(t),editable:!1};if(r&&"EMBEDDED_LINK"===r.type)return{component:Jn,editable:!1}}}},ro={options:["inline","blockType","fontSize","fontFamily","list","textAlign","colorPicker","link","embedded","emoji","image","remove","history"],inline:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["bold","italic","underline","strikethrough","monospace","superscript","subscript"],bold:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuMjM2IDBjMS42NTIgMCAyLjk0LjI5OCAzLjg2Ni44OTMuOTI1LjU5NSAxLjM4OCAxLjQ4NSAxLjM4OCAyLjY2OSAwIC42MDEtLjE3MyAxLjEzOS0uNTE2IDEuNjEtLjM0My40NzQtLjg0NC44My0xLjQ5OSAxLjA2OC44NDMuMTY3IDEuNDc0LjUyMyAxLjg5NSAxLjA3MS40MTkuNTUuNjMgMS4xODMuNjMgMS45MDMgMCAxLjI0NS0uNDQ0IDIuMTg3LTEuMzMgMi44MjUtLjg4Ni42NDEtMi4xNDQuOTYxLTMuNzY5Ljk2MUgwdi0yLjE2N2gxLjQ5NFYyLjE2N0gwVjBoNi4yMzZ6TTQuMzA4IDUuNDQ2aDIuMDI0Yy43NTIgMCAxLjMzLS4xNDMgMS43MzQtLjQzLjQwNS0uMjg1LjYwOC0uNzAxLjYwOC0xLjI1IDAtLjYtLjIwNC0xLjA0NC0uNjEyLTEuMzMtLjQwOC0uMjg2LTEuMDE2LS40MjctMS44MjYtLjQyN0g0LjMwOHYzLjQzN3ptMCAxLjgwNFYxMWgyLjU5M2MuNzQ3IDAgMS4zMTQtLjE1MiAxLjcwNy0uNDUyLjM5LS4zLjU4OC0uNzQ1LjU4OC0xLjMzNCAwLS42MzYtLjE2OC0xLjEyNC0uNS0xLjQ2LS4zMzYtLjMzNS0uODY0LS41MDQtMS41ODItLjUwNEg0LjMwOHoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},italic:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTcgM1YyaDR2MUg5Ljc1M2wtMyAxMEg4djFINHYtMWgxLjI0N2wzLTEwSDd6Ii8+PC9zdmc+",className:void 0,title:void 0},underline:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTYuMDQ1IDJ2Ljk5Mkw0Ljc4NSAzdjUuMTcyYzAgLjg1OS4yNDMgMS41MTIuNzI3IDEuOTU3czEuMTI0LjY2OCAxLjkxOC42NjhjLjgzNiAwIDEuNTA5LS4yMjEgMi4wMTktLjY2NC41MTEtLjQ0Mi43NjYtMS4wOTYuNzY2LTEuOTYxVjNsLTEuMjYtLjAwOFYySDEzdi45OTJMMTEuNzM5IDN2NS4xNzJjMCAxLjIzNC0uMzk4IDIuMTgxLTEuMTk1IDIuODQtLjc5Ny42NTktMS44MzUuOTg4LTMuMTE0Ljk4OC0xLjI0MiAwLTIuMjQ4LS4zMjktMy4wMTctLjk4OC0uNzY5LS42NTktMS4xNTItMS42MDUtMS4xNTItMi44NFYzTDIgMi45OTJWMmg0LjA0NXpNMiAxM2gxMXYxSDJ6Ii8+PC9zdmc+",className:void 0,title:void 0},strikethrough:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4wNCA1Ljk1NGg2LjIxNWE3LjQxMiA3LjQxMiAwIDAgMC0uNzk1LS40MzggMTEuOTA3IDExLjkwNyAwIDAgMC0xLjQ0Ny0uNTU3Yy0xLjE4OC0uMzQ4LTEuOTY2LS43MTEtMi4zMzQtMS4wODgtLjM2OC0uMzc3LS41NTItLjc3LS41NTItMS4xODEgMC0uNDk1LjE4Ny0uOTA2LjU2LTEuMjMyLjM4LS4zMzEuODg3LS40OTcgMS41MjMtLjQ5Ny42OCAwIDEuMjY2LjI1NSAxLjc1Ny43NjcuMjk1LjMxNS41ODIuODkxLjg2MSAxLjczbC4xMTcuMDE2LjcwMy4wNS4xLS4wMjRjLjAyOC0uMTUyLjA0Mi0uMjc5LjA0Mi0uMzggMC0uMzM3LS4wMzktLjg1Mi0uMTE3LTEuNTQ0YTkuMzc0IDkuMzc0IDAgMCAwLS4xNzYtLjk5NUM5Ljg4LjM3OSA5LjM4NS4yNDQgOS4wMTcuMTc2IDguMzY1LjA3IDcuODk5LjAxNiA3LjYyLjAxNmMtMS40NSAwLTIuNTQ1LjM1Ny0zLjI4NyAxLjA3MS0uNzQ3LjcyLTEuMTIgMS41ODktMS4xMiAyLjYwNyAwIC41MTEuMTMzIDEuMDQuNCAxLjU4Ni4xMjkuMjUzLjI3LjQ3OC40MjcuNjc0ek04LjI4IDguMTE0Yy41NzUuMjM2Ljk1Ny40MzYgMS4xNDcuNTk5LjQ1MS40MS42NzcuODUyLjY3NyAxLjMyNCAwIC4zODMtLjEzLjc0NS0uMzkzIDEuMDg4LS4yNS4zMzgtLjU5LjU4LTEuMDIuNzI2YTMuNDE2IDMuNDE2IDAgMCAxLTEuMTYzLjIyOGMtLjQwNyAwLS43NzUtLjA2Mi0xLjEwNC0uMTg2YTIuNjk2IDIuNjk2IDAgMCAxLS44NzgtLjQ4IDMuMTMzIDMuMTMzIDAgMCAxLS42Ny0uNzk0IDEuNTI3IDEuNTI3IDAgMCAxLS4xMDQtLjIyNyA1Ny41MjMgNTcuNTIzIDAgMCAwLS4xODgtLjQ3MyAyMS4zNzEgMjEuMzcxIDAgMCAwLS4yNTEtLjU5OWwtLjg1My4wMTd2LjM3MWwtLjAxNy4zMTNhOS45MiA5LjkyIDAgMCAwIDAgLjU3M2MuMDExLjI3LjAxNy43MDkuMDE3IDEuMzE2di4xMWMwIC4wNzkuMDIyLjE0LjA2Ny4xODUuMDgzLjA2OC4yODQuMTQ3LjYwMi4yMzdsMS4xNy4zMzdjLjQ1Mi4xMy45OTYuMTk0IDEuNjMyLjE5NC42ODYgMCAxLjI1Mi0uMDU5IDEuNjk4LS4xNzdhNC42OTQgNC42OTQgMCAwIDAgMS4yOC0uNTU3Yy40MDEtLjI1OS43MDUtLjQ4Ni45MTEtLjY4My4yNjgtLjI3Ni40NjYtLjU2OC41OTQtLjg3OGE0Ljc0IDQuNzQgMCAwIDAgLjM0My0xLjc4OGMwLS4yOTgtLjAyLS41NTctLjA1OC0uNzc2SDguMjgxek0xNC45MTQgNi41N2EuMjYuMjYgMCAwIDAtLjE5My0uMDc2SC4yNjhhLjI2LjI2IDAgMCAwLS4xOTMuMDc2LjI2NC4yNjQgMCAwIDAtLjA3NS4xOTR2LjU0YzAgLjA3OS4wMjUuMTQzLjA3NS4xOTRhLjI2LjI2IDAgMCAwIC4xOTMuMDc2SDE0LjcyYS4yNi4yNiAwIDAgMCAuMTkzLS4wNzYuMjY0LjI2NCAwIDAgMCAuMDc1LS4xOTR2LS41NGEuMjY0LjI2NCAwIDAgMC0uMDc1LS4xOTR6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},monospace:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzQ0NCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS4wMjEgMi45MDZjLjE4NiAxLjIxOS4zNzIgMS41LjM3MiAyLjcxOUMxLjM5MyA2LjM3NSAwIDcuMDMxIDAgNy4wMzF2LjkzOHMxLjM5My42NTYgMS4zOTMgMS40MDZjMCAxLjIxOS0uMTg2IDEuNS0uMzcyIDIuNzE5Qy43NDMgMTQuMDYzIDEuNzY0IDE1IDIuNjkzIDE1aDEuOTV2LTEuODc1cy0xLjY3Mi4xODgtMS42NzItLjkzOGMwLS44NDMuMTg2LS44NDMuMzcyLTIuNzE4LjA5My0uODQ0LS40NjQtMS41LTEuMDIyLTEuOTY5LjU1OC0uNDY5IDEuMTE1LTEuMDMxIDEuMDIyLTEuODc1QzMuMDY0IDMuNzUgMi45NyAzLjc1IDIuOTcgMi45MDZjMC0xLjEyNSAxLjY3Mi0xLjAzMSAxLjY3Mi0xLjAzMVYwaC0xLjk1QzEuNjcgMCAuNzQzLjkzOCAxLjAyIDIuOTA2ek0xMS45NzkgMi45MDZjLS4xODYgMS4yMTktLjM3MiAxLjUtLjM3MiAyLjcxOSAwIC43NSAxLjM5MyAxLjQwNiAxLjM5MyAxLjQwNnYuOTM4cy0xLjM5My42NTYtMS4zOTMgMS40MDZjMCAxLjIxOS4xODYgMS41LjM3MiAyLjcxOS4yNzggMS45NjktLjc0MyAyLjkwNi0xLjY3MiAyLjkwNmgtMS45NXYtMS44NzVzMS42NzIuMTg4IDEuNjcyLS45MzhjMC0uODQzLS4xODYtLjg0My0uMzcyLTIuNzE4LS4wOTMtLjg0NC40NjQtMS41IDEuMDIyLTEuOTY5LS41NTgtLjQ2OS0xLjExNS0xLjAzMS0xLjAyMi0xLjg3NS4xODYtMS44NzUuMzcyLTEuODc1LjM3Mi0yLjcxOSAwLTEuMTI1LTEuNjcyLTEuMDMxLTEuNjcyLTEuMDMxVjBoMS45NWMxLjAyMiAwIDEuOTUuOTM4IDEuNjcyIDIuOTA2eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},superscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMzA1IDEwLjE2NUwxMS44NjUgMTVIOS4wNTdsLTMuMTkyLTMuNTM2TDIuNzQ2IDE1SDBsNC41MjMtNC44MzVMLjIxOCA1LjYwM2gyLjc3TDUuOTg2IDguOTEgOS4wMSA1LjYwM2gyLjY0OWwtNC4zNTQgNC41NjJ6bTYuMjM0LTMuMjY5bDEuODc5LTEuMzA2Yy42NC0uNDE2IDEuMDYyLS44MDEgMS4yNjQtMS4xNTcuMjAxLS4zNTYuMzAyLS43MzguMzAyLTEuMTQ4IDAtLjY2OS0uMjM3LTEuMjEtLjcxLTEuNjItLjQ3NC0uNDExLTEuMDk3LS42MTctMS44NjgtLjYxNy0uNzQ0IDAtMS4zNC4yMDgtMS43ODUuNjI0LS40NDcuNDE2LS42NyAxLjA0My0uNjcgMS44ODFoMS40MzZjMC0uNS4wOTQtLjg0Ni4yODEtMS4wMzguMTg4LS4xOTEuNDQ1LS4yODcuNzcyLS4yODdzLjU4NS4wOTcuNzc3LjI5MmMuMTkuMTk1LjI4Ni40MzcuMjg2LjcyNiAwIC4yOS0uMDg5LjU1LS4yNjYuNzg1cy0uNjcuNjI4LTEuNDc5IDEuMTg0Yy0uNjkxLjQ3Ny0xLjYyNy45MjctMS45MDggMS4zNWwuMDE0IDEuNTY5SDE3VjYuODk2aC0zLjQ2MXoiLz48L3N2Zz4=",className:void 0,title:void 0},subscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjg2NiAxMS42NDZIOS4wNkw1Ljg2NyA3Ljk0MmwtMy4xMjEgMy43MDRIMGw0LjUyNC01LjA2NEwuMjE4IDEuODA0aDIuNzdsMyAzLjQ2NCAzLjAyMy0zLjQ2NGgyLjY1TDcuMzA2IDYuNTgybDQuNTYgNS4wNjR6bTEuNzI1IDIuMDU4bDEuODI3LTEuMzY4Yy42NC0uNDM1IDEuMDYyLS44NCAxLjI2NC0xLjIxMi4yMDItLjM3Mi4zMDItLjc3My4zMDItMS4yMDIgMC0uNy0uMjM3LTEuMjY2LS43MS0xLjY5Ni0uNDc0LS40MzEtMS4wOTctLjY0Ni0xLjg2OS0uNjQ2LS43NDQgMC0xLjM0LjIxOC0xLjc4NS42NTMtLjQ0Ni40MzYtLjY3IDEuMDkyLS42NyAxLjk3aDEuNDM2YzAtLjUyNC4wOTQtLjg4Ni4yODEtMS4wODcuMTg4LS4yLjQ0NS0uMzAxLjc3Mi0uMzAxcy41ODYuMTAyLjc3Ny4zMDZjLjE5LjIwNC4yODYuNDU4LjI4Ni43NiAwIC4zMDMtLjA4OC41NzctLjI2Ni44MjItLjE3Ny4yNDUtLjY3LjY1OC0xLjQ3OCAxLjI0LS42OTIuNS0xLjYyOC45NzEtMS45MSAxLjQxM0wxMS44NjQgMTVIMTd2LTEuMjk2aC0zLjQxeiIvPjwvc3ZnPg==",className:void 0,title:void 0}},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontSize:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuOTIxIDMuMTE5YS40MjcuNDI3IDAgMCAwIC4zMzUuMTY0aC45N2EuNDI2LjQyNiAwIDAgMCAuMzA0LS4xMy40NDEuNDQxIDAgMCAwIC4xMjUtLjMxbC4wMDItMi40MWEuNDM0LjQzNCAwIDAgMC0uNDMtLjQzMkguNDNBLjQzNC40MzQgMCAwIDAgMCAuNDR2Mi40MDZjMCAuMjQyLjE5Mi40MzguNDMuNDM4aC45N2MuMTMgMCAuMjU0LS4wNi4zMzUtLjE2NWwuNzMtLjkzSDUuNTR2MTEuMzZjMCAuMjQxLjE5Mi40MzcuNDMuNDM3aDEuNzE3Yy4yMzcgMCAuNDMtLjE5Ni40My0uNDM3VjIuMTg4aDMuMDdsLjczNC45MzF6TTEzLjg5OCAxMS4yNjNhLjQyNS40MjUgMCAwIDAtLjQ4Mi0uMTQ2bC0uNTQ3LjE5NFY5LjYxN2EuNDQyLjQ0MiAwIDAgMC0uMTI2LS4zMS40MjYuNDI2IDAgMCAwLS4zMDQtLjEyN2gtLjQyOWEuNDM0LjQzNCAwIDAgMC0uNDMuNDM3djEuNjk0bC0uNTQ3LS4xOTRhLjQyNS40MjUgMCAwIDAtLjQ4MS4xNDYuNDQ0LjQ0NCAwIDAgMC0uMDE2LjUxMmwxLjMzMiAyLjAxN2EuNDI3LjQyNyAwIDAgMCAuNzEzIDBsMS4zMzMtMi4wMTdhLjQ0NC40NDQgMCAwIDAtLjAxNi0uNTEyeiIvPjwvZz48L3N2Zz4=",options:[8,9,10,11,12,14,16,18,24,30,36,48,60,72,96],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontFamily:{options:["Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},list:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["unordered","ordered","indent","outdent"],unordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS43MiAzLjQyN2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3LjAxIDEuNzIuMDFDLjc3LjAwOCAwIC43NzUgMCAxLjcxNWMwIC45NC43NzQgMS43MTEgMS43MiAxLjcxMXptMC0yLjYyNWMuNTEgMCAuOTIyLjQxMi45MjIuOTE0YS45Mi45MiAwIDAgMS0xLjg0MiAwIC45Mi45MiAwIDAgMSAuOTItLjkxNHpNMS43MiA4LjcwM2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3IDUuMjg3IDEuNzIgNS4yODdDLjc3IDUuMjg3IDAgNi4wNTIgMCA2Ljk5NXMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjJjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAwIDEtMS44NDIgMGMwLS41MDUuNDE1LS45MTQuOTItLjkxNHpNMS43MiAxMy45ODJjLjk1MSAwIDEuNzIyLS43NjggMS43MjItMS43MDggMC0uOTQzLS43NzQtMS43MDgtMS43MjEtMS43MDgtLjk0NyAwLTEuNzIxLjc2OC0xLjcyMSAxLjcwOHMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjVjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAxIDEtMS44NDIgMCAuOTIuOTIgMCAwIDEgLjkyLS45MTR6TTUuNzQ0IDIuMTE1aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OS40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDcuMzk0aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOThINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OC40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDEyLjY3aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjQuNC40IDAgMCAwIC40MDIuMzk4eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},ordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4yMDIgMS40NjZoOC4xNWMuMzM4IDAgLjYxMi0uMzIyLjYxMi0uNzIgMC0uMzk3LS4yNzQtLjcyLS42MTItLjcyaC04LjE1Yy0uMzM4IDAtLjYxMS4zMjMtLjYxMS43MiAwIC4zOTguMjczLjcyLjYxLjcyek0xMi4zNTIgNS43ODNoLTguMTVjLS4zMzggMC0uNjExLjMyMi0uNjExLjcyIDAgLjM5Ny4yNzMuNzIuNjEuNzJoOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5OC0uMjc0LS43Mi0uNjEyLS43MnpNMTIuMzUyIDExLjU0aC04LjE1Yy0uMzM4IDAtLjYxMS4zMjItLjYxMS43MiAwIC4zOTYuMjczLjcxOS42MS43MTloOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5Ny0uMjc0LS43Mi0uNjEyLS43MnpNLjc2NyAxLjI0OXYxLjgwMmMwIC4xOTUuMTM2LjM0My4zMTUuMzQzLjE3NiAwIC4zMTUtLjE1LjMxNS0uMzQzVi4zNTZjMC0uMTktLjEzMy0uMzM5LS4zMDItLjMzOS0uMTQ4IDAtLjIyMy4xMTgtLjI0Ny4xNTZhLjIyOC4yMjggMCAwIDAtLjAwMy4wMDVMLjU3OS42MjFhLjQ3NC40NzQgMCAwIDAtLjA5OC4yNzNjMCAuMTk0LjEyOC4zNTEuMjg2LjM1NXpNLjM1MiA4LjE5SDEuNTVjLjE1NyAwIC4yODUtLjE2Mi4yODUtLjM2MiAwLS4xOTgtLjEyOC0uMzU5LS4yODUtLjM1OUguNjh2LS4wMDZjMC0uMTA3LjIxLS4yODEuMzc4LS40MjIuMzM2LS4yNzguNzUzLS42MjUuNzUzLTEuMjI2IDAtLjU3LS4zNzYtMS0uODc0LTEtLjQ3NyAwLS44MzYuMzg1LS44MzYuODk3IDAgLjI5Ny4xNjQuNDAyLjMwNS40MDIuMiAwIC4zMjEtLjE3Ni4zMjEtLjM0NiAwLS4xMDYuMDIzLS4yMjguMjA0LS4yMjguMjQzIDAgLjI1LjI1NC4yNS4yODMgMCAuMjI4LS4yNTIuNDQyLS40OTUuNjQ5LS4zMDEuMjU1LS42NDIuNTQ0LS42NDIuOTkydi4zODRjMCAuMjA1LjE1OS4zNDMuMzA4LjM0M3pNMS43NyAxMC41NDNjMC0uNTkyLS4yOTYtLjkzMS0uODE0LS45MzEtLjY4IDAtLjg1OS41Ny0uODU5Ljg3MiAwIC4zNTEuMjIyLjM5LjMxOC4zOS4xODUgMCAuMzEtLjE0OC4zMS0uMzY2IDAtLjA4NC4wMjYtLjE4MS4yMjQtLjE4MS4xNDIgMCAuMi4wMjQuMi4yNjcgMCAuMjM3LS4wNDMuMjYzLS4yMTMuMjYzLS4xNjQgMC0uMjg4LjE1Mi0uMjg4LjM1NCAwIC4yLjEyNS4zNS4yOTEuMzUuMjI1IDAgLjI3LjEwOC4yNy4yODN2LjA3NWMwIC4yOTQtLjA5Ny4zNS0uMjc3LjM1LS4yNDggMC0uMjY3LS4xNS0uMjY3LS4xOTcgMC0uMTc0LS4wOTgtLjM1LS4zMTctLjM1LS4xOTIgMC0uMzA3LjE0MS0uMzA3LjM3OCAwIC40My4zMTMuODg4Ljg5NS44ODguNTY0IDAgLjkwMS0uNC45MDEtMS4wN3YtLjA3NGMwLS4yNzQtLjA3NC0uNTAyLS4yMTQtLjY2Ni4wOTYtLjE2My4xNDgtLjM4LjE0OC0uNjM1eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},indent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS43MTYgMy4yMTFIMTd2MS4xOTdINS43MTZ6TTAgLjAyaDE3djEuMTk3SDB6TTAgMTIuNzgzaDE3djEuMTk3SDB6TTUuNzE2IDkuNTkzSDE3djEuMTk3SDUuNzE2ek01LjcxNiA2LjQwMkgxN3YxLjE5N0g1LjcxNnpNLjE4NyA5LjQ5MUwyLjUyIDcgLjE4NyA0LjUwOXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},outdent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS4zOTYgMy4xOTNoMTAuNTczVjQuMzlINS4zOTZ6TS4wMzkuMDAzaDE1LjkzVjEuMkguMDM5ek0uMDM5IDEyLjc2NmgxNS45M3YxLjE5N0guMDM5ek01LjM5NiA5LjU3NWgxMC41NzN2MS4xOTdINS4zOTZ6TTUuMzk2IDYuMzg0aDEwLjU3M3YxLjE5N0g1LjM5NnpNMi4xODcgNC40OTFMMCA2Ljk4M2wyLjE4NyAyLjQ5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},title:void 0},textAlign:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["left","center","right","justify"],left:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNOC40OTMgMTQuODg3SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4IDEwLjE2MkguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1M2gxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUzek04LjQ5MyA1LjQzNUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOC43MDlILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTJoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},center:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNTU2IDE0Ljg4N0gzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTggMTAuMTYySC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUzaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6TTExLjU1NiA1LjQzNUgzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTguNzA5SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTJ6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},right:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjE4IDE0Ljg4N0g2LjQ1YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOCAxMC4xNjJILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTNoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1M3pNMTQuNjE4IDUuNDM1SDYuNDVhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4LjcwOUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1MmgxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyeiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},justify:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjIgMTQuODg4SC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgMTAuMTYySC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgNS40MzZILjMyNWEuMzI2LjMyNiAwIDAgMSAwLS42NTJIMTQuNjJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42Mi43MUguMzI1YS4zMjYuMzI2IDAgMCAxIDAtLjY1M0gxNC42MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},title:void 0},colorPicker:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNDA2LjU4NWExLjk5OCAxLjk5OCAwIDAgMC0yLjgyNSAwbC0uNTQuNTRhLjc0MS43NDEgMCAxIDAtMS4wNDggMS4wNDhsLjE3NS4xNzUtNS44MjYgNS44MjUtMi4wMjIgMi4wMjNhLjkxLjkxIDAgMCAwLS4yNjYuNjAybC0uMDA1LjEwOHYuMDAybC0uMDgxIDEuODI5YS4zMDIuMzAyIDAgMCAwIC4zMDIuMzE2aC4wMTNsLjk3LS4wNDQuNTkyLS4wMjYuMjY4LS4wMTJjLjI5Ny0uMDEzLjU3OS0uMTM3Ljc5LS4zNDdsNy43Ny03Ljc3LjE0Ni4xNDRhLjc0Ljc0IDAgMCAwIDEuMDQ4IDBjLjI5LS4yOS4yOS0uNzU5IDAtMS4wNDhsLjU0LS41NGMuNzgtLjc4Ljc4LTIuMDQ0IDAtMi44MjV6TTguNzk1IDcuMzMzbC0yLjczLjUxNSA0LjQ1Mi00LjQ1MiAxLjEwOCAxLjEwNy0yLjgzIDIuODN6TTIuMDggMTMuNjczYy0xLjE0OCAwLTIuMDguMjk1LTIuMDguNjYgMCAuMzYzLjkzMi42NTggMi4wOC42NTggMS4xNSAwIDIuMDgtLjI5NCAyLjA4LS42NTkgMC0uMzY0LS45My0uNjU5LTIuMDgtLjY1OXoiLz48L2c+PC9zdmc+",className:void 0,component:void 0,popupClassName:void 0,colors:["rgb(97,189,109)","rgb(26,188,156)","rgb(84,172,210)","rgb(44,130,201)","rgb(147,101,184)","rgb(71,85,119)","rgb(204,204,204)","rgb(65,168,95)","rgb(0,168,133)","rgb(61,142,185)","rgb(41,105,176)","rgb(85,57,130)","rgb(40,50,78)","rgb(0,0,0)","rgb(247,218,100)","rgb(251,160,38)","rgb(235,107,86)","rgb(226,80,65)","rgb(163,143,132)","rgb(239,239,239)","rgb(255,255,255)","rgb(250,197,28)","rgb(243,121,52)","rgb(209,72,65)","rgb(184,49,47)","rgb(124,112,107)","rgb(209,213,216)"],title:void 0},link:{inDropdown:!1,className:void 0,component:void 0,popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzLjk2Ny45NUEzLjIyNiAzLjIyNiAwIDAgMCAxMS42Ny4wMDJjLS44NyAwLTEuNjg2LjMzNy0yLjI5Ny45NDhMNy4xMDUgMy4yMThBMy4yNDcgMy4yNDcgMCAwIDAgNi4yNCA2LjI0YTMuMjI1IDMuMjI1IDAgMCAwLTMuMDIyLjg2NUwuOTUgOS4zNzNhMy4yNTMgMy4yNTMgMCAwIDAgMCA0LjU5NCAzLjIyNiAzLjIyNiAwIDAgMCAyLjI5Ny45NDhjLjg3IDAgMS42ODYtLjMzNiAyLjI5OC0uOTQ4TDcuODEyIDExLjdhMy4yNDcgMy4yNDcgMCAwIDAgLjg2NS0zLjAyMyAzLjIyNSAzLjIyNSAwIDAgMCAzLjAyMi0uODY1bDIuMjY4LTIuMjY3YTMuMjUyIDMuMjUyIDAgMCAwIDAtNC41OTV6TTcuMTA1IDEwLjk5M0w0LjgzNyAxMy4yNmEyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NSAyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LS42NTUgMi4yNTIgMi4yNTIgMCAwIDEgMC0zLjE4bDIuMjY4LTIuMjY4YTIuMjMyIDIuMjMyIDAgMCAxIDEuNTktLjY1NWMuNDMgMCAuODQxLjEyIDEuMTk1LjM0M0w0Ljc3MiA5LjQzOGEuNS41IDAgMSAwIC43MDcuNzA3bDEuOTM5LTEuOTM4Yy41NDUuODY4LjQ0MiAyLjAzLS4zMTMgMi43ODV6bTYuMTU1LTYuMTU1bC0yLjI2OCAyLjI2N2EyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NWMtLjQzMSAwLS44NDEtLjEyLTEuMTk1LS4zNDNsMS45MzgtMS45MzhhLjUuNSAwIDEgMC0uNzA3LS43MDdMNy40OTkgNi43MWEyLjI1MiAyLjI1MiAwIDAgMSAuMzEzLTIuNzg1bDIuMjY3LTIuMjY4YTIuMjMzIDIuMjMzIDAgMCAxIDEuNTktLjY1NSAyLjIzMyAyLjIzMyAwIDAgMSAyLjI0NiAyLjI0NWMwIC42MDMtLjIzMiAxLjE2OC0uNjU1IDEuNTl6IiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",className:void 0,title:void 0},unlink:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTMuOTU2IDEuMDM3YTMuNTUgMy41NSAwIDAgMC01LjAxNCAwTDYuNDM2IDMuNTQ0YS41NDUuNTQ1IDAgMSAwIC43Ny43N2wyLjUwOC0yLjUwNmEyLjQzOCAyLjQzOCAwIDAgMSAxLjczNS0uNzE1Yy42NTggMCAxLjI3NS4yNTQgMS43MzYuNzE1LjQ2LjQ2MS43MTUgMS4wNzguNzE1IDEuNzM2IDAgLjY1OC0uMjU0IDEuMjc0LS43MTUgMS43MzVMOS45MDcgOC41NThhMi40NTggMi40NTggMCAwIDEtMy40NzIgMCAuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3MSAzLjUzNCAzLjUzNCAwIDAgMCAyLjUwNyAxLjAzN2MuOTA4IDAgMS44MTYtLjM0NiAyLjUwNy0xLjAzN2wzLjI3OC0zLjI3OGEzLjUyIDMuNTIgMCAwIDAgMS4wMzUtMi41MDdjMC0uOTUtLjM2Ny0xLjg0LTEuMDM1LTIuNTA3eiIvPjxwYXRoIGQ9Ik03LjQgMTEuMDY1bC0yLjEyMiAyLjEyYTIuNDM3IDIuNDM3IDAgMCAxLTEuNzM1LjcxNiAyLjQzNyAyLjQzNyAwIDAgMS0xLjczNi0uNzE1IDIuNDU3IDIuNDU3IDAgMCAxIDAtMy40NzFsMy4wODYtMy4wODZhMi40MzggMi40MzggMCAwIDEgMS43MzUtLjcxNWMuNjU4IDAgMS4yNzUuMjU0IDEuNzM2LjcxNWEuNTQ1LjU0NSAwIDEgMCAuNzcxLS43NzEgMy41NSAzLjU1IDAgMCAwLTUuMDE0IDBMMS4wMzYgOC45NDRBMy41MiAzLjUyIDAgMCAwIDAgMTEuNDVjMCAuOTUuMzY3IDEuODQgMS4wMzUgMi41MDdhMy41MiAzLjUyIDAgMCAwIDIuNTA2IDEuMDM1Yy45NSAwIDEuODQtLjM2OCAyLjUwNy0xLjAzNWwyLjEyMi0yLjEyMWEuNTQ1LjU0NSAwIDAgMC0uNzcxLS43NzF6TTkuMjc0IDEyLjAwMmEuNTQ2LjU0NiAwIDAgMC0uNTQ2LjU0NXYxLjYzN2EuNTQ2LjU0NiAwIDAgMCAxLjA5MSAwdi0xLjYzN2EuNTQ1LjU0NSAwIDAgMC0uNTQ1LS41NDV6TTExLjIzIDExLjYxNmEuNTQ1LjU0NSAwIDEgMC0uNzcyLjc3MmwxLjE1NyAxLjE1NmEuNTQzLjU0MyAwIDAgMCAuNzcxIDAgLjU0NS41NDUgMCAwIDAgMC0uNzdsLTEuMTU2LTEuMTU4ek0xMi41MzcgOS44MkgxMC45YS41NDYuNTQ2IDAgMCAwIDAgMS4wOTFoMS42MzdhLjU0Ni41NDYgMCAwIDAgMC0xLjA5ek00LjkxIDMuNTQ3YS41NDYuNTQ2IDAgMCAwIC41NDUtLjU0NVYxLjM2NmEuNTQ2LjU0NiAwIDAgMC0xLjA5IDB2MS42MzZjMCAuMzAxLjI0NC41NDUuNTQ1LjU0NXpNMi44ODggMy45MzNhLjU0My41NDMgMCAwIDAgLjc3MSAwIC41NDUuNTQ1IDAgMCAwIDAtLjc3MUwyLjUwMiAyLjAwNWEuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3bDEuMTU3IDEuMTU4ek0xLjYyOCA1LjczaDEuNjM2YS41NDYuNTQ2IDAgMCAwIDAtMS4wOTJIMS42MjhhLjU0Ni41NDYgMCAwIDAgMCAxLjA5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},linkCallback:void 0},emoji:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHZpZXdCb3g9IjE1LjcyOSAyMi4wODIgMTcgMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI5LjcwOCAyNS4xMDRjLTMuMDIxLTMuMDIyLTcuOTM3LTMuMDIyLTEwLjk1OCAwLTMuMDIxIDMuMDItMy4wMiA3LjkzNiAwIDEwLjk1OCAzLjAyMSAzLjAyIDcuOTM3IDMuMDIgMTAuOTU4LS4wMDEgMy4wMi0zLjAyMSAzLjAyLTcuOTM2IDAtMTAuOTU3em0tLjg0NSAxMC4xMTJhNi41NiA2LjU2IDAgMCAxLTkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAtOS4yNjcgNi41NiA2LjU2IDAgMCAxIDkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAgOS4yNjd6bS03LjUyNC02LjczYS45MDYuOTA2IDAgMSAxIDEuODExIDAgLjkwNi45MDYgMCAwIDEtMS44MTEgMHptNC4xMDYgMGEuOTA2LjkwNiAwIDEgMSAxLjgxMiAwIC45MDYuOTA2IDAgMCAxLTEuODEyIDB6bTIuMTQxIDMuNzA4Yy0uNTYxIDEuMjk4LTEuODc1IDIuMTM3LTMuMzQ4IDIuMTM3LTEuNTA1IDAtMi44MjctLjg0My0zLjM2OS0yLjE0N2EuNDM4LjQzOCAwIDAgMSAuODEtLjMzNmMuNDA1Ljk3NiAxLjQxIDEuNjA3IDIuNTU5IDEuNjA3IDEuMTIzIDAgMi4xMjEtLjYzMSAyLjU0NC0xLjYwOGEuNDM4LjQzOCAwIDAgMSAuODA0LjM0N3oiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,emojis:["\ud83d\ude00","\ud83d\ude01","\ud83d\ude02","\ud83d\ude03","\ud83d\ude09","\ud83d\ude0b","\ud83d\ude0e","\ud83d\ude0d","\ud83d\ude17","\ud83e\udd17","\ud83e\udd14","\ud83d\ude23","\ud83d\ude2b","\ud83d\ude34","\ud83d\ude0c","\ud83e\udd13","\ud83d\ude1b","\ud83d\ude1c","\ud83d\ude20","\ud83d\ude07","\ud83d\ude37","\ud83d\ude08","\ud83d\udc7b","\ud83d\ude3a","\ud83d\ude38","\ud83d\ude39","\ud83d\ude3b","\ud83d\ude3c","\ud83d\ude3d","\ud83d\ude40","\ud83d\ude48","\ud83d\ude49","\ud83d\ude4a","\ud83d\udc7c","\ud83d\udc6e","\ud83d\udd75","\ud83d\udc82","\ud83d\udc73","\ud83c\udf85","\ud83d\udc78","\ud83d\udc70","\ud83d\udc72","\ud83d\ude4d","\ud83d\ude47","\ud83d\udeb6","\ud83c\udfc3","\ud83d\udc83","\u26f7","\ud83c\udfc2","\ud83c\udfcc","\ud83c\udfc4","\ud83d\udea3","\ud83c\udfca","\u26f9","\ud83c\udfcb","\ud83d\udeb4","\ud83d\udc6b","\ud83d\udcaa","\ud83d\udc48","\ud83d\udc49","\ud83d\udc46","\ud83d\udd95","\ud83d\udc47","\ud83d\udd96","\ud83e\udd18","\ud83d\udd90","\ud83d\udc4c","\ud83d\udc4d","\ud83d\udc4e","\u270a","\ud83d\udc4a","\ud83d\udc4f","\ud83d\ude4c","\ud83d\ude4f","\ud83d\udc35","\ud83d\udc36","\ud83d\udc07","\ud83d\udc25","\ud83d\udc38","\ud83d\udc0c","\ud83d\udc1b","\ud83d\udc1c","\ud83d\udc1d","\ud83c\udf49","\ud83c\udf44","\ud83c\udf54","\ud83c\udf64","\ud83c\udf68","\ud83c\udf6a","\ud83c\udf82","\ud83c\udf70","\ud83c\udf7e","\ud83c\udf77","\ud83c\udf78","\ud83c\udf7a","\ud83c\udf0d","\ud83d\ude91","\u23f0","\ud83c\udf19","\ud83c\udf1d","\ud83c\udf1e","\u2b50","\ud83c\udf1f","\ud83c\udf20","\ud83c\udf28","\ud83c\udf29","\u26c4","\ud83d\udd25","\ud83c\udf84","\ud83c\udf88","\ud83c\udf89","\ud83c\udf8a","\ud83c\udf81","\ud83c\udf97","\ud83c\udfc0","\ud83c\udfc8","\ud83c\udfb2","\ud83d\udd07","\ud83d\udd08","\ud83d\udce3","\ud83d\udd14","\ud83c\udfb5","\ud83c\udfb7","\ud83d\udcb0","\ud83d\udd8a","\ud83d\udcc5","\u2705","\u274e","\ud83d\udcaf"],title:void 0},embedded:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzA4IDYuNjE1YS40MzYuNDM2IDAgMCAwLS41NDMuMjkxbC0xLjgzIDYuMDQ1YS40MzYuNDM2IDAgMCAwIC44MzMuMjUyTDcgNy4xNmEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHpNOC45MzEgNi42MTVhLjQzNi40MzYgMCAwIDAtLjU0My4yOTFsLTEuODMgNi4wNDVhLjQzNi40MzYgMCAwIDAgLjgzNC4yNTJsMS44My02LjA0NGEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHoiLz48cGF0aCBkPSJNMTYuNTY0IDBILjQzNkEuNDM2LjQzNiAwIDAgMCAwIC40MzZ2MTYuMTI4YzAgLjI0LjE5NS40MzYuNDM2LjQzNmgxNi4xMjhjLjI0IDAgLjQzNi0uMTk1LjQzNi0uNDM2Vi40MzZBLjQzNi40MzYgMCAwIDAgMTYuNTY0IDB6TTMuNDg3Ljg3MmgxMC4wMjZ2MS43NDNIMy40ODdWLjg3MnptLTIuNjE1IDBoMS43NDN2MS43NDNILjg3MlYuODcyem0xNS4yNTYgMTUuMjU2SC44NzJWMy40ODhoMTUuMjU2djEyLjY0em0wLTEzLjUxM2gtMS43NDNWLjg3MmgxLjc0M3YxLjc0M3oiLz48Y2lyY2xlIGN4PSI5My44NjciIGN5PSIyNDUuMDY0IiByPSIxMy4xMjgiIHRyYW5zZm9ybT0ibWF0cml4KC4wMzMyIDAgMCAuMDMzMiAwIDApIi8+PGNpcmNsZSBjeD0iOTMuODY3IiBjeT0iMzYwLjU5MiIgcj0iMTMuMTI4IiB0cmFuc2Zvcm09Im1hdHJpeCguMDMzMiAwIDAgLjAzMzIgMCAwKSIvPjxwYXRoIGQ9Ik0xNC4yNTQgMTIuNjQxSDEwLjJhLjQzNi40MzYgMCAwIDAgMCAuODcyaDQuMDU0YS40MzYuNDM2IDAgMCAwIDAtLjg3MnoiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,embedCallback:void 0,defaultSize:{height:"auto",width:"auto"},title:void 0},image:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNzQxIDBILjI2Qy4xMTYgMCAwIC4xMzYgMCAuMzA0djEzLjM5MmMwIC4xNjguMTE2LjMwNC4yNTkuMzA0SDE0Ljc0Yy4xNDMgMCAuMjU5LS4xMzYuMjU5LS4zMDRWLjMwNEMxNSAuMTM2IDE0Ljg4NCAwIDE0Ljc0MSAwem0tLjI1OCAxMy4zOTFILjUxN1YuNjFoMTMuOTY2VjEzLjM5eiIvPjxwYXRoIGQ9Ik00LjEzOCA2LjczOGMuNzk0IDAgMS40NC0uNzYgMS40NC0xLjY5NXMtLjY0Ni0xLjY5NS0xLjQ0LTEuNjk1Yy0uNzk0IDAtMS40NC43Ni0xLjQ0IDEuNjk1IDAgLjkzNC42NDYgMS42OTUgMS40NCAxLjY5NXptMC0yLjc4MWMuNTA5IDAgLjkyMy40ODcuOTIzIDEuMDg2IDAgLjU5OC0uNDE0IDEuMDg2LS45MjMgMS4wODYtLjUwOSAwLS45MjMtLjQ4Ny0uOTIzLTEuMDg2IDAtLjU5OS40MTQtMS4wODYuOTIzLTEuMDg2ek0xLjgxIDEyLjE3NGMuMDYgMCAuMTIyLS4wMjUuMTcxLS4wNzZMNi4yIDcuNzI4bDIuNjY0IDMuMTM0YS4yMzIuMjMyIDAgMCAwIC4zNjYgMCAuMzQzLjM0MyAwIDAgMCAwLS40M0w3Ljk4NyA4Ljk2OWwyLjM3NC0zLjA2IDIuOTEyIDMuMTQyYy4xMDYuMTEzLjI3LjEwNS4zNjYtLjAyYS4zNDMuMzQzIDAgMCAwLS4wMTYtLjQzbC0zLjEwNC0zLjM0N2EuMjQ0LjI0NCAwIDAgMC0uMTg2LS4wOC4yNDUuMjQ1IDAgMCAwLS4xOC4xTDcuNjIyIDguNTM3IDYuMzk0IDcuMDk0YS4yMzIuMjMyIDAgMCAwLS4zNTQtLjAxM2wtNC40IDQuNTZhLjM0My4zNDMgMCAwIDAtLjAyNC40My4yNDMuMjQzIDAgMCAwIC4xOTQuMTAzeiIvPjwvZz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,urlEnabled:!0,uploadEnabled:!0,previewImage:!1,alignmentEnabled:!0,uploadCallback:void 0,inputAccept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",alt:{present:!1,mandatory:!1},defaultSize:{height:"auto",width:"auto"},title:void 0},remove:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOC4xIDE0bDYuNC03LjJjLjYtLjcuNi0xLjgtLjEtMi41bC0yLjctMi43Yy0uMy0uNC0uOC0uNi0xLjMtLjZIOC42Yy0uNSAwLTEgLjItMS40LjZMLjUgOS4yYy0uNi43LS42IDEuOS4xIDIuNWwyLjcgMi43Yy4zLjQuOC42IDEuMy42SDE2di0xSDguMXptLTEuMy0uMXMwLS4xIDAgMGwtMi43LTIuN2MtLjQtLjQtLjQtLjkgMC0xLjNMNy41IDZoLTFsLTMgMy4zYy0uNi43LS42IDEuNy4xIDIuNEw1LjkgMTRINC42Yy0uMiAwLS40LS4xLS42LS4yTDEuMiAxMWMtLjMtLjMtLjMtLjggMC0xLjFMNC43IDZoMS44TDEwIDJoMUw3LjUgNmwzLjEgMy43LTMuNSA0Yy0uMS4xLS4yLjEtLjMuMnoiLz48L3N2Zz4=",className:void 0,component:void 0,title:void 0},history:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["undo","redo"],undo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcgMTQuODc1YzIuNjcyIDAgNC44NDYtMi4xNDUgNC44NDYtNC43ODEgMC0yLjYzNy0yLjE3NC00Ljc4MS00Ljg0Ni00Ljc4MVY4LjVMMS42MTUgNC4yNSA3IDB2My4xODhjMy44NiAwIDcgMy4wOTggNyA2LjkwNlMxMC44NiAxNyA3IDE3cy03LTMuMDk4LTctNi45MDZoMi4xNTRjMCAyLjYzNiAyLjE3NCA0Ljc4MSA0Ljg0NiA0Ljc4MXoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},redo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNTA0IDEzLjk3N2E0LjQ5NyA0LjQ5NyAwIDAgMS00LjQ5Mi00LjQ5MiA0LjQ5NyA0LjQ5NyAwIDAgMSA0LjQ5Mi00LjQ5M3YyLjk5NWw0Ljk5LTMuOTkzTDYuNTA0IDB2Mi45OTVhNi40OTYgNi40OTYgMCAwIDAtNi40ODggNi40OWMwIDMuNTc4IDIuOTEgNi40OSA2LjQ4OCA2LjQ5YTYuNDk2IDYuNDk2IDAgMCAwIDYuNDg3LTYuNDloLTEuOTk2YTQuNDk3IDQuNDk3IDAgMCAxLTQuNDkxIDQuNDkyeiIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+",className:void 0,title:void 0},title:void 0}},io={en:{"generic.add":"Add","generic.cancel":"Cancel","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Block Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Color Picker","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Highlight","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Embedded Link","components.controls.embedded.enterlink":"Enter link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Font","components.controls.fontsize.fontsize":"Font Size","components.controls.history.history":"History","components.controls.history.undo":"Undo","components.controls.history.redo":"Redo","components.controls.image.image":"Image","components.controls.image.fileUpload":"File Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop the file or click to upload","components.controls.inline.bold":"Bold","components.controls.inline.italic":"Italic","components.controls.inline.underline":"Underline","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Link Title","components.controls.link.linkTarget":"Link Target","components.controls.link.linkTargetOption":"Open link in new window","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"List","components.controls.list.unordered":"Unordered","components.controls.list.ordered":"Ordered","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Remove","components.controls.textalign.textalign":"Text Align","components.controls.textalign.left":"Left","components.controls.textalign.center":"Center","components.controls.textalign.right":"Right","components.controls.textalign.justify":"Justify"},fr:{"generic.add":"Ok","generic.cancel":"Annuler","components.controls.blocktype.h1":"Titre 1","components.controls.blocktype.h2":"Titre 2","components.controls.blocktype.h3":"Titre 3","components.controls.blocktype.h4":"Titre 4","components.controls.blocktype.h5":"Titre 5","components.controls.blocktype.h6":"Titre 6","components.controls.blocktype.blockquote":"Citation","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Type bloc","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Palette de couleur","components.controls.colorpicker.text":"Texte","components.controls.colorpicker.background":"Fond","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Lien iFrame","components.controls.embedded.enterlink":"Entrer le lien","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Police","components.controls.fontsize.fontsize":"Taille de police","components.controls.history.history":"Historique","components.controls.history.undo":"Pr\xe9c\xe9dent","components.controls.history.redo":"Suivant","components.controls.image.image":"Image","components.controls.image.fileUpload":"T\xe9l\xe9chargement","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Glisser une image ou cliquer pour t\xe9l\xe9charger","components.controls.inline.bold":"Gras","components.controls.inline.italic":"Italique","components.controls.inline.underline":"Souligner","components.controls.inline.strikethrough":"Barrer","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Exposant","components.controls.inline.subscript":"Indice","components.controls.link.linkTitle":"Titre du lien","components.controls.link.linkTarget":"Cible du lien","components.controls.link.linkTargetOption":"Ouvrir le lien dans une nouvelle fen\xeatre","components.controls.link.link":"Lier","components.controls.link.unlink":"D\xe9lier","components.controls.list.list":"Liste","components.controls.list.unordered":"D\xe9sordonn\xe9e","components.controls.list.ordered":"Ordonn\xe9e","components.controls.list.indent":"Augmenter le retrait","components.controls.list.outdent":"Diminuer le retrait","components.controls.remove.remove":"Supprimer","components.controls.textalign.textalign":"Alignement du texte","components.controls.textalign.left":"Gauche","components.controls.textalign.center":"Centre","components.controls.textalign.right":"Droite","components.controls.textalign.justify":"Justifier"},zh:{"generic.add":"\u6dfb\u52a0","generic.cancel":"\u53d6\u6d88","components.controls.blocktype.h1":"\u6807\u98981","components.controls.blocktype.h2":"\u6807\u98982","components.controls.blocktype.h3":"\u6807\u98983","components.controls.blocktype.h4":"\u6807\u98984","components.controls.blocktype.h5":"\u6807\u98985","components.controls.blocktype.h6":"\u6807\u98986","components.controls.blocktype.blockquote":"\u5f15\u7528","components.controls.blocktype.code":"\u6e90\u7801","components.controls.blocktype.blocktype":"\u6837\u5f0f","components.controls.blocktype.normal":"\u6b63\u6587","components.controls.colorpicker.colorpicker":"\u9009\u8272\u5668","components.controls.colorpicker.text":"\u6587\u5b57","components.controls.colorpicker.background":"\u80cc\u666f","components.controls.embedded.embedded":"\u5185\u5d4c","components.controls.embedded.embeddedlink":"\u5185\u5d4c\u7f51\u9875","components.controls.embedded.enterlink":"\u8f93\u5165\u7f51\u9875\u5730\u5740","components.controls.emoji.emoji":"\u8868\u60c5\u7b26\u53f7","components.controls.fontfamily.fontfamily":"\u5b57\u4f53","components.controls.fontsize.fontsize":"\u5b57\u53f7","components.controls.history.history":"\u5386\u53f2","components.controls.history.undo":"\u64a4\u9500","components.controls.history.redo":"\u6062\u590d","components.controls.image.image":"\u56fe\u7247","components.controls.image.fileUpload":"\u6765\u81ea\u6587\u4ef6","components.controls.image.byURL":"\u5728\u7ebf\u56fe\u7247","components.controls.image.dropFileText":"\u70b9\u51fb\u6216\u8005\u62d6\u62fd\u6587\u4ef6\u4e0a\u4f20","components.controls.inline.bold":"\u7c97\u4f53","components.controls.inline.italic":"\u659c\u4f53","components.controls.inline.underline":"\u4e0b\u5212\u7ebf","components.controls.inline.strikethrough":"\u5220\u9664\u7ebf","components.controls.inline.monospace":"\u7b49\u5bbd\u5b57\u4f53","components.controls.inline.superscript":"\u4e0a\u6807","components.controls.inline.subscript":"\u4e0b\u6807","components.controls.link.linkTitle":"\u8d85\u94fe\u63a5","components.controls.link.linkTarget":"\u8f93\u5165\u94fe\u63a5\u5730\u5740","components.controls.link.linkTargetOption":"\u5728\u65b0\u7a97\u53e3\u4e2d\u6253\u5f00\u94fe\u63a5","components.controls.link.link":"\u94fe\u63a5","components.controls.link.unlink":"\u5220\u9664\u94fe\u63a5","components.controls.list.list":"\u5217\u8868","components.controls.list.unordered":"\u9879\u76ee\u7b26\u53f7","components.controls.list.ordered":"\u7f16\u53f7","components.controls.list.indent":"\u589e\u52a0\u7f29\u8fdb\u91cf","components.controls.list.outdent":"\u51cf\u5c11\u7f29\u8fdb\u91cf","components.controls.remove.remove":"\u6e05\u9664\u683c\u5f0f","components.controls.textalign.textalign":"\u6587\u672c\u5bf9\u9f50","components.controls.textalign.left":"\u6587\u672c\u5de6\u5bf9\u9f50","components.controls.textalign.center":"\u5c45\u4e2d","components.controls.textalign.right":"\u6587\u672c\u53f3\u5bf9\u9f50","components.controls.textalign.justify":"\u4e24\u7aef\u5bf9\u9f50"},ru:{"generic.add":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c","generic.cancel":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","components.controls.blocktype.h1":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 1","components.controls.blocktype.h2":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 2","components.controls.blocktype.h3":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 3","components.controls.blocktype.h4":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 4","components.controls.blocktype.h5":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 5","components.controls.blocktype.h6":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 6","components.controls.blocktype.blockquote":"\u0426\u0438\u0442\u0430\u0442\u0430","components.controls.blocktype.code":"\u041a\u043e\u0434","components.controls.blocktype.blocktype":"\u0424\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","components.controls.blocktype.normal":"\u041e\u0431\u044b\u0447\u043d\u044b\u0439","components.controls.colorpicker.colorpicker":"\u0412\u044b\u0431\u043e\u0440 \u0446\u0432\u0435\u0442\u0430","components.controls.colorpicker.text":"\u0422\u0435\u043a\u0441\u0442","components.controls.colorpicker.background":"\u0424\u043e\u043d","components.controls.embedded.embedded":"\u0412\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u0435","components.controls.embedded.embeddedlink":"\u0421\u0441\u044b\u043b\u043a\u0430 \u0432 iFrame","components.controls.embedded.enterlink":"\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443","components.controls.emoji.emoji":"\u042d\u043c\u043e\u0434\u0437\u0438","components.controls.fontfamily.fontfamily":"\u0428\u0440\u0438\u0444\u0442","components.controls.fontsize.fontsize":"\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430","components.controls.history.history":"\u0418\u0441\u0442\u043e\u0440\u0438\u044f","components.controls.history.undo":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","components.controls.history.redo":"\u0412\u0435\u0440\u043d\u0443\u0442\u044c","components.controls.image.image":"\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435","components.controls.image.fileUpload":"\u0424\u0430\u0439\u043b\u044b","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"\u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u0432 \u044d\u0442\u0443 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0438\u043b\u0438 \u043a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438","components.controls.inline.bold":"\u0416\u0438\u0440\u043d\u044b\u0439","components.controls.inline.italic":"\u041a\u0443\u0440\u0441\u0438\u0432","components.controls.inline.underline":"\u041f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435","components.controls.inline.strikethrough":"\u0417\u0430\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"\u0412\u0435\u0440\u0445\u043d\u0438\u0439 \u0438\u043d\u0434\u0435\u043a\u0441","components.controls.inline.subscript":"\u041d\u0438\u0436\u043d\u0438\u0439 \u0438\u043d\u0434\u0435\u043a\u0441","components.controls.link.linkTitle":"\u0422\u0435\u043a\u0441\u0442","components.controls.link.linkTarget":"\u0410\u0434\u0440\u0435\u0441 \u0441\u0441\u044b\u043b\u043a\u0438","components.controls.link.linkTargetOption":"\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432 \u043d\u043e\u0432\u043e\u043c \u043e\u043a\u043d\u0435","components.controls.link.link":"\u0421\u0441\u044b\u043b\u043a\u0430","components.controls.link.unlink":"\u0423\u0431\u0440\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443","components.controls.list.list":"\u0421\u043f\u0438\u0441\u043e\u043a","components.controls.list.unordered":"\u041d\u0435\u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u044b\u0439","components.controls.list.ordered":"\u0423\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u044b\u0439","components.controls.list.indent":"\u041e\u0442\u0441\u0442\u0443\u043f","components.controls.list.outdent":"\u0412\u044b\u0441\u0442\u0443\u043f","components.controls.remove.remove":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c","components.controls.textalign.textalign":"\u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u0430","components.controls.textalign.left":"\u0421\u043b\u0435\u0432\u0430","components.controls.textalign.center":"\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443","components.controls.textalign.right":"\u0421\u043f\u0440\u0430\u0432\u0430","components.controls.textalign.justify":"\u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0442\u044c"},pt:{"generic.add":"Ok","generic.cancel":"Cancelar","components.controls.blocktype.h1":"T\xedtulo 1","components.controls.blocktype.h2":"T\xedtulo 2","components.controls.blocktype.h3":"T\xedtulo 3","components.controls.blocktype.h4":"T\xedtulo 4","components.controls.blocktype.h5":"T\xedtulo 5","components.controls.blocktype.h6":"T\xedtulo 6","components.controls.blocktype.blockquote":"Cita\xe7\xe3o","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Estilo","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Paleta de cores","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Fundo","components.controls.embedded.embedded":"Embarcado","components.controls.embedded.embeddedlink":"Link embarcado","components.controls.embedded.enterlink":"Coloque o link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonte","components.controls.fontsize.fontsize":"Tamanho da Fonte","components.controls.history.history":"Hist\xf3rico","components.controls.history.undo":"Desfazer","components.controls.history.redo":"Refazer","components.controls.image.image":"Imagem","components.controls.image.fileUpload":"Carregar arquivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arraste uma imagem aqui ou clique para carregar","components.controls.inline.bold":"Negrito","components.controls.inline.italic":"It\xe1lico","components.controls.inline.underline":"Sublinhado","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobrescrito","components.controls.inline.subscript":"Subscrito","components.controls.link.linkTitle":"T\xedtulo do link","components.controls.link.linkTarget":"Alvo do link","components.controls.link.linkTargetOption":"Abrir link em outra janela","components.controls.link.link":"Adicionar Link","components.controls.link.unlink":"Remover link","components.controls.list.list":"Lista","components.controls.list.unordered":"Sem orden\xe7\xe3o","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Aumentar recuo","components.controls.list.outdent":"Diminuir recuo","components.controls.remove.remove":"Remover","components.controls.textalign.textalign":"Alinhamento do texto","components.controls.textalign.left":"\xc0 Esquerda","components.controls.textalign.center":"Centralizado","components.controls.textalign.right":"\xc0 Direita","components.controls.textalign.justify":"Justificado"},ko:{"generic.add":"\uc785\ub825","generic.cancel":"\ucde8\uc18c","components.controls.blocktype.h1":"\uc81c\ubaa91","components.controls.blocktype.h2":"\uc81c\ubaa92","components.controls.blocktype.h3":"\uc81c\ubaa93","components.controls.blocktype.h4":"\uc81c\ubaa94","components.controls.blocktype.h5":"\uc81c\ubaa95","components.controls.blocktype.h6":"\uc81c\ubaa96","components.controls.blocktype.blockquote":"\uc778\uc6a9","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"\ube14\ub85d","components.controls.blocktype.normal":"\ud45c\uc900","components.controls.colorpicker.colorpicker":"\uc0c9\uc0c1 \uc120\ud0dd","components.controls.colorpicker.text":"\uae00\uaf34\uc0c9","components.controls.colorpicker.background":"\ubc30\uacbd\uc0c9","components.controls.embedded.embedded":"\uc784\ubca0\ub4dc","components.controls.embedded.embeddedlink":"\uc784\ubca0\ub4dc \ub9c1\ud06c","components.controls.embedded.enterlink":"\uc8fc\uc18c\ub97c \uc785\ub825\ud558\uc138\uc694","components.controls.emoji.emoji":"\uc774\ubaa8\uc9c0","components.controls.fontfamily.fontfamily":"\uae00\uaf34","components.controls.fontsize.fontsize":"\uae00\uaf34 \ud06c\uae30","components.controls.history.history":"\ud788\uc2a4\ud1a0\ub9ac","components.controls.history.undo":"\uc2e4\ud589 \ucde8\uc18c","components.controls.history.redo":"\ub2e4\uc2dc \uc2e4\ud589","components.controls.image.image":"\uc774\ubbf8\uc9c0","components.controls.image.fileUpload":"\ud30c\uc77c \uc5c5\ub85c\ub4dc","components.controls.image.byURL":"\uc8fc\uc18c","components.controls.image.dropFileText":"\ud074\ub9ad\ud558\uac70\ub098 \ud30c\uc77c\uc744 \ub4dc\ub86d\ud558\uc5ec \uc5c5\ub85c\ub4dc\ud558\uc138\uc694","components.controls.inline.bold":"\uad75\uac8c","components.controls.inline.italic":"\uae30\uc6b8\uc784\uaf34","components.controls.inline.underline":"\ubc11\uc904","components.controls.inline.strikethrough":"\ucde8\uc18c\uc120","components.controls.inline.monospace":"\uace0\uc815 \ub108\ube44","components.controls.inline.superscript":"\uc704 \ucca8\uc790","components.controls.inline.subscript":"\uc544\ub798 \ucca8\uc790","components.controls.link.linkTitle":"\ub9c1\ud06c \uc81c\ubaa9","components.controls.link.linkTarget":"\ub9c1\ud06c \ud0c0\uac9f","components.controls.link.linkTargetOption":"\uc0c8\ucc3d\uc73c\ub85c \uc5f4\uae30","components.controls.link.link":"\ub9c1\ud06c","components.controls.link.unlink":"\ub9c1\ud06c \uc81c\uac70","components.controls.list.list":"\ub9ac\uc2a4\ud2b8","components.controls.list.unordered":"\uc77c\ubc18 \ub9ac\uc2a4\ud2b8","components.controls.list.ordered":"\uc21c\uc11c \ub9ac\uc2a4\ud2b8","components.controls.list.indent":"\ub4e4\uc5ec\uc4f0\uae30","components.controls.list.outdent":"\ub0b4\uc5b4\uc4f0\uae30","components.controls.remove.remove":"\uc0ad\uc81c","components.controls.textalign.textalign":"\ud14d\uc2a4\ud2b8 \uc815\ub82c","components.controls.textalign.left":"\uc67c\ucabd","components.controls.textalign.center":"\uc911\uc559","components.controls.textalign.right":"\uc624\ub978\ucabd","components.controls.textalign.justify":"\uc591\ucabd"},it:{"generic.add":"Aggiungi","generic.cancel":"Annulla","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Citazione","components.controls.blocktype.code":"Codice","components.controls.blocktype.blocktype":"Stili","components.controls.blocktype.normal":"Normale","components.controls.colorpicker.colorpicker":"Colore testo","components.controls.colorpicker.text":"Testo","components.controls.colorpicker.background":"Evidenziazione","components.controls.embedded.embedded":"Incorpora","components.controls.embedded.embeddedlink":"Incorpora link","components.controls.embedded.enterlink":"Inserisci link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Carattere","components.controls.fontsize.fontsize":"Dimensione carattere","components.controls.history.history":"Modifiche","components.controls.history.undo":"Annulla","components.controls.history.redo":"Ripristina","components.controls.image.image":"Immagine","components.controls.image.fileUpload":"Carica immagine","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Trascina il file o clicca per caricare","components.controls.inline.bold":"Grassetto","components.controls.inline.italic":"Corsivo","components.controls.inline.underline":"Sottolineato","components.controls.inline.strikethrough":"Barrato","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Apice","components.controls.inline.subscript":"Pedice","components.controls.link.linkTitle":"Testo","components.controls.link.linkTarget":"Link","components.controls.link.linkTargetOption":"Apri link in una nuova finestra","components.controls.link.link":"Inserisci link","components.controls.link.unlink":"Rimuovi link","components.controls.list.list":"Lista","components.controls.list.unordered":"Elenco puntato","components.controls.list.ordered":"Elenco numerato","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Rimuovi formattazione","components.controls.textalign.textalign":"Allineamento del testo","components.controls.textalign.left":"Allinea a sinistra","components.controls.textalign.center":"Allinea al centro","components.controls.textalign.right":"Allinea a destra","components.controls.textalign.justify":"Giustifica"},nl:{"generic.add":"Toevoegen","generic.cancel":"Annuleren","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Blocktype","components.controls.blocktype.normal":"Normaal","components.controls.colorpicker.colorpicker":"Kleurkiezer","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Achtergrond","components.controls.embedded.embedded":"Ingevoegd","components.controls.embedded.embeddedlink":"Ingevoegde link","components.controls.embedded.enterlink":"Voeg link toe","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Lettertype","components.controls.fontsize.fontsize":"Lettergrootte","components.controls.history.history":"Geschiedenis","components.controls.history.undo":"Ongedaan maken","components.controls.history.redo":"Opnieuw","components.controls.image.image":"Afbeelding","components.controls.image.fileUpload":"Bestand uploaden","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop het bestand hier of klik om te uploaden","components.controls.inline.bold":"Dikgedrukt","components.controls.inline.italic":"Schuingedrukt","components.controls.inline.underline":"Onderstrepen","components.controls.inline.strikethrough":"Doorstrepen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Linktitel","components.controls.link.linkTarget":"Link bestemming","components.controls.link.linkTargetOption":"Open link in een nieuw venster","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"Lijst","components.controls.list.unordered":"Ongeordend","components.controls.list.ordered":"Geordend","components.controls.list.indent":"Inspringen","components.controls.list.outdent":"Inspringen verkleinen","components.controls.remove.remove":"Verwijderen","components.controls.textalign.textalign":"Tekst uitlijnen","components.controls.textalign.left":"Links","components.controls.textalign.center":"Gecentreerd","components.controls.textalign.right":"Rechts","components.controls.textalign.justify":"Uitgelijnd"},de:{"generic.add":"Hinzuf\xfcgen","generic.cancel":"Abbrechen","components.controls.blocktype.h1":"\xdcberschrift 1","components.controls.blocktype.h2":"\xdcberschrift 2","components.controls.blocktype.h3":"\xdcberschrift 3","components.controls.blocktype.h4":"\xdcberschrift 4","components.controls.blocktype.h5":"\xdcberschrift 5","components.controls.blocktype.h6":"\xdcberschrift 6","components.controls.blocktype.blockquote":"Zitat","components.controls.blocktype.code":"Quellcode","components.controls.blocktype.blocktype":"Blocktyp","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farbauswahl","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Hintergrund","components.controls.embedded.embedded":"Eingebettet","components.controls.embedded.embeddedlink":"Eingebetteter Link","components.controls.embedded.enterlink":"Link eingeben","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Schriftart","components.controls.fontsize.fontsize":"Schriftgr\xf6\xdfe","components.controls.history.history":"Historie","components.controls.history.undo":"Zur\xfccknehmen","components.controls.history.redo":"Wiederholen","components.controls.image.image":"Bild","components.controls.image.fileUpload":"Datei-Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Dateien ziehen und ablegen, oder klicken zum Hochladen","components.controls.inline.bold":"Fett","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Unterstreichen","components.controls.inline.strikethrough":"Durchstreichen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hochgestellt","components.controls.inline.subscript":"Tiefgestellt","components.controls.link.linkTitle":"Link-Titel","components.controls.link.linkTarget":"Link-Ziel","components.controls.link.linkTargetOption":"Link in neuem Fenster \xf6ffnen","components.controls.link.link":"Link","components.controls.link.unlink":"Aufheben","components.controls.list.list":"Liste","components.controls.list.unordered":"Aufz\xe4hlung","components.controls.list.ordered":"Nummerierte Liste","components.controls.list.indent":"Einzug vergr\xf6\xdfern","components.controls.list.outdent":"Einzug reduzieren","components.controls.remove.remove":"Entfernen","components.controls.textalign.textalign":"Textausrichtung","components.controls.textalign.left":"Linksb\xfcndig","components.controls.textalign.center":"Zentrieren","components.controls.textalign.right":"Rechtsb\xfcndig","components.controls.textalign.justify":"Blocksatz"},da:{"generic.add":"Tilf\xf8j","generic.cancel":"Annuller","components.controls.blocktype.h1":"Overskrift 1","components.controls.blocktype.h2":"Overskrift 2","components.controls.blocktype.h3":"Overskrift 3","components.controls.blocktype.h4":"Overskrift 4","components.controls.blocktype.h5":"Overskrift 5","components.controls.blocktype.h6":"Overskrift 6","components.controls.blocktype.blockquote":"Blokcitat","components.controls.blocktype.code":"Kode","components.controls.blocktype.blocktype":"Blok Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farver","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Baggrund","components.controls.embedded.embedded":"Indlejre","components.controls.embedded.embeddedlink":"Indlejre Link","components.controls.embedded.enterlink":"Indtast link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonttype","components.controls.fontsize.fontsize":"Fontst\xf8rrelser","components.controls.history.history":"Historie","components.controls.history.undo":"Fortryd","components.controls.history.redo":"Gendan","components.controls.image.image":"Billede","components.controls.image.fileUpload":"Filoverf\xf8rsel","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop filen eller klik for at uploade","components.controls.inline.bold":"Fed","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Understrege","components.controls.inline.strikethrough":"Gennemstreget","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"H\xe6vet","components.controls.inline.subscript":"S\xe6nket","components.controls.link.linkTitle":"Link Titel","components.controls.link.linkTarget":"Link M\xe5l","components.controls.link.linkTargetOption":"\xc5bn link i nyt vindue","components.controls.link.link":"Link","components.controls.link.unlink":"Fjern link","components.controls.list.list":"Liste","components.controls.list.unordered":"Uordnet","components.controls.list.ordered":"Ordnet","components.controls.list.indent":"Indrykning","components.controls.list.outdent":"Udrykning","components.controls.remove.remove":"Fjern","components.controls.textalign.textalign":"Tekstjustering","components.controls.textalign.left":"Venstre","components.controls.textalign.center":"Center","components.controls.textalign.right":"H\xf8jre","components.controls.textalign.justify":"Margener"},zh_tw:{"generic.add":"\u65b0\u589e","generic.cancel":"\u53d6\u6d88","components.controls.blocktype.h1":"\u6a19\u984c1","components.controls.blocktype.h2":"\u6a19\u984c2","components.controls.blocktype.h3":"\u6a19\u984c3","components.controls.blocktype.h4":"\u6a19\u984c4","components.controls.blocktype.h5":"\u6a19\u984c5","components.controls.blocktype.h6":"\u6a19\u984c6","components.controls.blocktype.blockquote":"\u5f15\u7528","components.controls.blocktype.code":"\u7a0b\u5f0f\u78bc","components.controls.blocktype.blocktype":"\u6a23\u5f0f","components.controls.blocktype.normal":"\u6b63\u6587","components.controls.colorpicker.colorpicker":"\u9078\u8272\u5668","components.controls.colorpicker.text":"\u6587\u5b57","components.controls.colorpicker.background":"\u80cc\u666f","components.controls.embedded.embedded":"\u5167\u5d4c","components.controls.embedded.embeddedlink":"\u5167\u5d4c\u7db2\u9801","components.controls.embedded.enterlink":"\u8f38\u5165\u7db2\u9801\u5730\u5740","components.controls.emoji.emoji":"\u8868\u60c5\u7b26\u865f","components.controls.fontfamily.fontfamily":"\u5b57\u9ad4","components.controls.fontsize.fontsize":"\u5b57\u9ad4\u5927\u5c0f","components.controls.history.history":"\u6b77\u53f2\u7d00\u9304","components.controls.history.undo":"\u5fa9\u539f","components.controls.history.redo":"\u91cd\u505a","components.controls.image.image":"\u5716\u7247","components.controls.image.fileUpload":"\u6a94\u6848\u4e0a\u50b3","components.controls.image.byURL":"\u7db2\u5740","components.controls.image.dropFileText":"\u9ede\u64ca\u6216\u62d6\u66f3\u6a94\u6848\u4e0a\u50b3","components.controls.inline.bold":"\u7c97\u9ad4","components.controls.inline.italic":"\u659c\u9ad4","components.controls.inline.underline":"\u5e95\u7dda","components.controls.inline.strikethrough":"\u522a\u9664\u7dda","components.controls.inline.monospace":"\u7b49\u5bec\u5b57\u9ad4","components.controls.inline.superscript":"\u4e0a\u6a19","components.controls.inline.subscript":"\u4e0b\u6a19","components.controls.link.linkTitle":"\u8d85\u9023\u7d50","components.controls.link.linkTarget":"\u8f38\u5165\u9023\u7d50\u4f4d\u5740","components.controls.link.linkTargetOption":"\u5728\u65b0\u8996\u7a97\u6253\u958b\u9023\u7d50","components.controls.link.link":"\u9023\u7d50","components.controls.link.unlink":"\u522a\u9664\u9023\u7d50","components.controls.list.list":"\u5217\u8868","components.controls.list.unordered":"\u9805\u76ee\u7b26\u865f","components.controls.list.ordered":"\u7de8\u865f","components.controls.list.indent":"\u589e\u52a0\u7e2e\u6392","components.controls.list.outdent":"\u6e1b\u5c11\u7e2e\u6392","components.controls.remove.remove":"\u6e05\u9664\u683c\u5f0f","components.controls.textalign.textalign":"\u6587\u5b57\u5c0d\u9f4a","components.controls.textalign.left":"\u6587\u5b57\u5411\u5de6\u5c0d\u9f4a","components.controls.textalign.center":"\u6587\u5b57\u7f6e\u4e2d","components.controls.textalign.right":"\u6587\u5b57\u5411\u53f3\u5c0d\u9f4a","components.controls.textalign.justify":"\u5169\u7aef\u5c0d\u9f4a"},pl:{"generic.add":"Dodaj","generic.cancel":"Anuluj","components.controls.blocktype.h1":"Nag\u0142\xf3wek 1","components.controls.blocktype.h2":"Nag\u0142\xf3wek 2","components.controls.blocktype.h3":"Nag\u0142\xf3wek 3","components.controls.blocktype.h4":"Nag\u0142\xf3wek 4","components.controls.blocktype.h5":"Nag\u0142\xf3wek 5","components.controls.blocktype.h6":"Nag\u0142\xf3wek 6","components.controls.blocktype.blockquote":"Cytat","components.controls.blocktype.code":"Kod","components.controls.blocktype.blocktype":"Format","components.controls.blocktype.normal":"Normalny","components.controls.colorpicker.colorpicker":"Kolor","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"T\u0142o","components.controls.embedded.embedded":"Osad\u017a","components.controls.embedded.embeddedlink":"Osad\u017a odno\u015bnik","components.controls.embedded.enterlink":"Wprowad\u017a odno\u015bnik","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Kr\xf3j czcionki","components.controls.fontsize.fontsize":"Rozmiar czcionki","components.controls.history.history":"Historia","components.controls.history.undo":"Cofnij","components.controls.history.redo":"Pon\xf3w","components.controls.image.image":"Obrazek","components.controls.image.fileUpload":"Prze\u015blij plik","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Upu\u015b\u0107 plik lub kliknij, aby przes\u0142a\u0107","components.controls.inline.bold":"Pogrubienie","components.controls.inline.italic":"Kursywa","components.controls.inline.underline":"Podkre\u015blenie","components.controls.inline.strikethrough":"Przekre\u015blenie","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Indeks g\xf3rny","components.controls.inline.subscript":"Indeks dolny","components.controls.link.linkTitle":"Tytu\u0142 odno\u015bnika","components.controls.link.linkTarget":"Adres odno\u015bnika","components.controls.link.linkTargetOption":"Otw\xf3rz odno\u015bnik w nowej karcie","components.controls.link.link":"Wstaw odno\u015bnik","components.controls.link.unlink":"Usu\u0144 odno\u015bnik","components.controls.list.list":"Lista","components.controls.list.unordered":"Lista nieuporz\u0105dkowana","components.controls.list.ordered":"Lista uporz\u0105dkowana","components.controls.list.indent":"Zwi\u0119ksz wci\u0119cie","components.controls.list.outdent":"Zmniejsz wci\u0119cie","components.controls.remove.remove":"Usu\u0144","components.controls.textalign.textalign":"Wyr\xf3wnaj tekst","components.controls.textalign.left":"Do lewej","components.controls.textalign.center":"Do \u015brodka","components.controls.textalign.right":"Do prawej","components.controls.textalign.justify":"Wyjustuj"},es:{"generic.add":"A\xf1adir","generic.cancel":"Cancelar","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"C\xf3digo","components.controls.blocktype.blocktype":"Tipo de bloque","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Seleccionar color","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Subrayado","components.controls.embedded.embedded":"Adjuntar","components.controls.embedded.embeddedlink":"Adjuntar Link","components.controls.embedded.enterlink":"Introducir link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fuente","components.controls.fontsize.fontsize":"Tama\xf1o de fuente","components.controls.history.history":"Hist\xf3rico","components.controls.history.undo":"Deshacer","components.controls.history.redo":"Rehacer","components.controls.image.image":"Imagen","components.controls.image.fileUpload":"Subir archivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arrastra el archivo o haz click para subirlo","components.controls.inline.bold":"Negrita","components.controls.inline.italic":"Cursiva","components.controls.inline.underline":"Subrayado","components.controls.inline.strikethrough":"Tachado","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobre\xedndice","components.controls.inline.subscript":"Sub\xedndice","components.controls.link.linkTitle":"T\xedtulo del enlace","components.controls.link.linkTarget":"Objetivo del enlace","components.controls.link.linkTargetOption":"Abrir en nueva ventana","components.controls.link.link":"Enlazar","components.controls.link.unlink":"Desenlazar","components.controls.list.list":"Lista","components.controls.list.unordered":"Desordenada","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Indentada","components.controls.list.outdent":"Dentada","components.controls.remove.remove":"Eliminar","components.controls.textalign.textalign":"Alineaci\xf3n del texto","components.controls.textalign.left":"Izquierda","components.controls.textalign.center":"Centrado","components.controls.textalign.right":"Derecha","components.controls.textalign.justify":"Justificado"},ja:{"generic.add":"\u8ffd\u52a0","generic.cancel":"\u30ad\u30e3\u30f3\u30bb\u30eb","components.controls.blocktype.h1":"\u898b\u51fa\u30571","components.controls.blocktype.h2":"\u898b\u51fa\u30572","components.controls.blocktype.h3":"\u898b\u51fa\u30573","components.controls.blocktype.h4":"\u898b\u51fa\u30574","components.controls.blocktype.h5":"\u898b\u51fa\u30575","components.controls.blocktype.h6":"\u898b\u51fa\u30576","components.controls.blocktype.blockquote":"\u5f15\u7528","components.controls.blocktype.code":"\u30b3\u30fc\u30c9","components.controls.blocktype.blocktype":"\u30b9\u30bf\u30a4\u30eb","components.controls.blocktype.normal":"\u6a19\u6e96\u30c6\u30ad\u30b9\u30c8","components.controls.colorpicker.colorpicker":"\u30c6\u30ad\u30b9\u30c8\u306e\u8272","components.controls.colorpicker.text":"\u30c6\u30ad\u30b9\u30c8","components.controls.colorpicker.background":"\u30cf\u30a4\u30e9\u30a4\u30c8","components.controls.embedded.embedded":"\u57cb\u3081\u8fbc\u307f","components.controls.embedded.embeddedlink":"\u57cb\u3081\u8fbc\u307f\u30ea\u30f3\u30af","components.controls.embedded.enterlink":"\u30ea\u30f3\u30af\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","components.controls.emoji.emoji":"\u7d75\u6587\u5b57","components.controls.fontfamily.fontfamily":"\u30d5\u30a9\u30f3\u30c8","components.controls.fontsize.fontsize":"\u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba","components.controls.history.history":"\u5c65\u6b74","components.controls.history.undo":"\u5143\u306b\u623b\u3059","components.controls.history.redo":"\u3084\u308a\u76f4\u3057","components.controls.image.image":"\u753b\u50cf","components.controls.image.fileUpload":"\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"\u3053\u3053\u306b\u753b\u50cf\u3092\u30c9\u30e9\u30c3\u30b0\u3059\u308b\u304b\u3001\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044","components.controls.inline.bold":"\u592a\u5b57","components.controls.inline.italic":"\u659c\u4f53","components.controls.inline.underline":"\u4e0b\u7dda","components.controls.inline.strikethrough":"\u53d6\u308a\u6d88\u3057\u7dda","components.controls.inline.monospace":"\u7b49\u5e45\u30d5\u30a9\u30f3\u30c8","components.controls.inline.superscript":"\u4e0a\u4ed8\u304d\u6587\u5b57","components.controls.inline.subscript":"\u4e0b\u4ed8\u304d\u6587\u5b57","components.controls.link.linkTitle":"\u30ea\u30f3\u30af\u30bf\u30a4\u30c8\u30eb","components.controls.link.linkTarget":"\u30ea\u30f3\u30af\u5bfe\u8c61","components.controls.link.linkTargetOption":"\u65b0\u3057\u3044\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u958b\u304f","components.controls.link.link":"\u30ea\u30f3\u30af","components.controls.link.unlink":"\u30ea\u30f3\u30af\u3092\u89e3\u9664","components.controls.list.list":"\u30ea\u30b9\u30c8","components.controls.list.unordered":"\u7b87\u6761\u66f8\u304d","components.controls.list.ordered":"\u756a\u53f7\u4ed8\u304d","components.controls.list.indent":"\u30a4\u30f3\u30c7\u30f3\u30c8\u5897","components.controls.list.outdent":"\u30a4\u30f3\u30c7\u30f3\u30c8\u6e1b","components.controls.remove.remove":"\u66f8\u5f0f\u3092\u30af\u30ea\u30a2","components.controls.textalign.textalign":"\u6574\u5217","components.controls.textalign.left":"\u5de6\u63c3\u3048","components.controls.textalign.center":"\u4e2d\u592e\u63c3\u3048","components.controls.textalign.right":"\u53f3\u63c3\u3048","components.controls.textalign.justify":"\u4e21\u7aef\u63c3\u3048"}};function ao(t){return(ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function co(){return(co=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function so(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function lo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?so(Object(n),!0).forEach(function(e){uo(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function uo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function po(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function fo(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function go(t){return(go=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ho(t,e){return(ho=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n(38),n(39);var yo=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==ao(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,go(t).call(this,e))).onEditorBlur=function(){n.setState({editorFocused:!1})},n.onEditorFocus=function(t){var e=n.props.onFocus;n.setState({editorFocused:!0});var o=n.focusHandler.isEditorFocused();e&&o&&e(t)},n.onEditorMouseDown=function(){n.focusHandler.onEditorMouseDown()},n.keyBindingFn=function(t){if("Tab"!==t.key)return"ArrowUp"!==t.key&&"ArrowDown"!==t.key||v()&&t.preventDefault(),Object(c.getDefaultKeyBinding)(t);var e=n.props.onTab;if(!e||!e(t)){var o=Object(s.changeDepth)(n.state.editorState,t.shiftKey?-1:1,4);o&&o!==n.state.editorState&&(n.onChange(o),t.preventDefault())}return null},n.onToolbarFocus=function(t){var e=n.props.onFocus;e&&n.focusHandler.isToolbarFocused()&&e(t)},n.onWrapperBlur=function(t){var e=n.props.onBlur;e&&n.focusHandler.isEditorBlur(t)&&e(t,n.getEditorState())},n.onChange=function(t){var e=n.props,o=e.readOnly,r=e.onEditorStateChange;o||"atomic"===Object(s.getSelectedBlocksType)(t)&&t.getSelection().isCollapsed||(r&&r(t,n.props.wrapperId),M(n.props,"editorState")?n.afterChange(t):n.setState({editorState:t},n.afterChange(t)))},n.setWrapperReference=function(t){n.wrapper=t},n.setEditorReference=function(t){n.props.editorRef&&n.props.editorRef(t),n.editor=t},n.getCompositeDecorator=function(t){var e=[].concat(po(n.props.customDecorators),[{strategy:Bn,component:Pn({showOpenOptionOnHover:t.link.showOpenOptionOnHover})}]);return n.props.mention&&e.push.apply(e,po(Wn(lo({},n.props.mention,{onChange:n.onChange,getEditorState:n.getEditorState,getSuggestions:n.getSuggestions,getWrapperRef:n.getWrapperRef,modalHandler:n.modalHandler})))),n.props.hashtag&&e.push(Vn(n.props.hashtag)),new c.CompositeDecorator(e)},n.getWrapperRef=function(){return n.wrapper},n.getEditorState=function(){return n.state?n.state.editorState:null},n.getSuggestions=function(){return n.props.mention&&n.props.mention.suggestions},n.afterChange=function(t){setTimeout(function(){var e=n.props,o=e.onChange,r=e.onContentStateChange;o&&o(Object(c.convertToRaw)(t.getCurrentContent())),r&&r(Object(c.convertToRaw)(t.getCurrentContent()))})},n.isReadOnly=function(){return n.props.readOnly},n.isImageAlignmentEnabled=function(){return n.state.toolbar.image.alignmentEnabled},n.createEditorState=function(t){var e;if(M(n.props,"editorState"))n.props.editorState&&(e=c.EditorState.set(n.props.editorState,{decorator:t}));else if(M(n.props,"defaultEditorState"))n.props.defaultEditorState&&(e=c.EditorState.set(n.props.defaultEditorState,{decorator:t}));else if(M(n.props,"contentState")){if(n.props.contentState){var o=Object(c.convertFromRaw)(n.props.contentState);e=c.EditorState.createWithContent(o,t),e=c.EditorState.moveSelectionToEnd(e)}}else if(M(n.props,"defaultContentState")||M(n.props,"initialContentState")){var r=n.props.defaultContentState||n.props.initialContentState;r&&(r=Object(c.convertFromRaw)(r),e=c.EditorState.createWithContent(r,t),e=c.EditorState.moveSelectionToEnd(e))}return e=e||c.EditorState.createEmpty(t)},n.filterEditorProps=function(t){return e=t,n=["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","locale","localization","toolbarOnFocus","toolbar","toolbarCustomButtons","toolbarClassName","editorClassName","toolbarHidden","wrapperClassName","toolbarStyle","editorStyle","wrapperStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"],o=Object.keys(e).filter(function(t){return n.indexOf(t)<0}),r={},o&&0<o.length&&o.forEach(function(t){r[t]=e[t]}),r;var e,n,o,r},n.getStyleMap=function(t){return lo({},Object(s.getCustomStyleMap)(),{},t.customStyleMap)},n.changeEditorState=function(t){var e=Object(c.convertFromRaw)(t),o=n.state.editorState;return o=c.EditorState.push(o,e,"insert-characters"),o=c.EditorState.moveSelectionToEnd(o)},n.focusEditor=function(){setTimeout(function(){n.editor.focus()})},n.handleKeyCommand=function(t){var e=n.state,o=e.editorState,r=e.toolbar.inline;if(r&&0<=r.options.indexOf(t)){var i=c.RichUtils.handleKeyCommand(o,t);if(i)return n.onChange(i),!0}return!1},n.handleReturn=function(t){if(v())return!0;var e=n.state.editorState,o=Object(s.handleNewLine)(e,t);return!!o&&(n.onChange(o),!0)},n.handlePastedTextFn=function(t,e){var o=n.state.editorState,r=n.props,i=r.handlePastedText,a=r.stripPastedStyles;return i?i(t,e,o,n.onChange):!a&&function(t,e,n,o){var r=Object(s.getSelectedBlock)(n);if(r&&"code"===r.type){var i=c.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),t,n.getCurrentInlineStyle());return o(c.EditorState.push(n,i,"insert-characters")),!0}if(e){var a=_()(e),l=n.getCurrentContent();return a.entityMap.forEach(function(t,e){l=l.mergeEntityData(e,t)}),l=c.Modifier.replaceWithFragment(l,n.getSelection(),new j.List(a.contentBlocks)),o(c.EditorState.push(n,l,"insert-characters")),!0}return!1}(t,e,o,n.onChange)},n.preventDefault=function(t){"INPUT"===t.target.tagName||"LABEL"===t.target.tagName||"TEXTAREA"===t.target.tagName?n.focusHandler.onInputMouseDown():t.preventDefault()};var o=k(ro,e.toolbar),r=e.wrapperId?e.wrapperId:Math.floor(1e4*Math.random());n.wrapperId="rdw-wrapper-".concat(r),n.modalHandler=new p,n.focusHandler=new f,n.blockRendererFn=oo({isReadOnly:n.isReadOnly,isImageAlignmentEnabled:n.isImageAlignmentEnabled,getEditorState:n.getEditorState,onChange:n.onChange},e.customBlockRenderFunc),n.editorProps=n.filterEditorProps(e),n.customStyleMap=n.getStyleMap(e),n.compositeDecorator=n.getCompositeDecorator(o);var i=n.createEditorState(n.compositeDecorator);return Object(s.extractInlineStyle)(i),n.state={editorState:i,editorFocused:!1,toolbar:o},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ho(t,e)}(t,o.Component),e=t,(n=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(t){if(t!==this.props){var e={},n=this.props,o=n.editorState,r=n.contentState;if(!this.state.toolbar){var i=k(ro,i);e.toolbar=i}if(M(this.props,"editorState")&&o!==t.editorState)e.editorState=o?c.EditorState.set(o,{decorator:this.compositeDecorator}):c.EditorState.createEmpty(this.compositeDecorator);else if(M(this.props,"contentState")&&r!==t.contentState)if(r){var a=this.changeEditorState(r);a&&(e.editorState=a)}else e.editorState=c.EditorState.createEmpty(this.compositeDecorator);t.editorState===o&&t.contentState===r||Object(s.extractInlineStyle)(e.editorState),Object.keys(e).length&&this.setState(e),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}}},{key:"render",value:function(){var t=this.state,e=t.editorState,n=t.editorFocused,o=t.toolbar,i=this.props,a=i.locale,l=i.localization,p=l.locale,f=l.translations,d=i.toolbarCustomButtons,g=i.toolbarOnFocus,y=i.toolbarClassName,m=i.toolbarHidden,v=i.editorClassName,S=i.wrapperClassName,M=i.toolbarStyle,w=i.editorStyle,C=i.wrapperStyle,k=i.uploadCallback,E=i.ariaLabel,_={modalHandler:this.modalHandler,editorState:e,onChange:this.onChange,translations:lo({},io[a||p],{},f)},j=n||this.focusHandler.isInputFocused()||!g;return r.a.createElement("div",{id:this.wrapperId,className:u()(S,"rdw-editor-wrapper"),style:C,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper"},!m&&r.a.createElement("div",{className:u()("rdw-editor-toolbar",y),style:lo({visibility:j?"visible":"hidden"},M),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!n&&g).toString(),onFocus:this.onToolbarFocus},o.options.map(function(t,e){var n=Dn[t],i=o[t];return"image"===t&&k&&(i.uploadCallback=k),r.a.createElement(n,co({key:e},_,{config:i}))}),d&&d.map(function(t,e){return r.a.cloneElement(t,lo({key:e},_))})),r.a.createElement("div",{ref:this.setWrapperReference,className:u()(v,"rdw-editor-main"),style:w,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:h.onKeyDown,onMouseDown:this.onEditorMouseDown},r.a.createElement(c.Editor,co({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:e,onChange:this.onChange,blockStyleFn:b,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:E||"rdw-editor",blockRenderMap:s.blockRenderMap},this.editorProps))))}}])&&fo(e.prototype,n),t}();yo.propTypes={onChange:a.a.func,onEditorStateChange:a.a.func,onContentStateChange:a.a.func,initialContentState:a.a.object,defaultContentState:a.a.object,contentState:a.a.object,editorState:a.a.object,defaultEditorState:a.a.object,toolbarOnFocus:a.a.bool,spellCheck:a.a.bool,stripPastedStyles:a.a.bool,toolbar:a.a.object,toolbarCustomButtons:a.a.array,toolbarClassName:a.a.string,toolbarHidden:a.a.bool,locale:a.a.string,localization:a.a.object,editorClassName:a.a.string,wrapperClassName:a.a.string,toolbarStyle:a.a.object,editorStyle:a.a.object,wrapperStyle:a.a.object,uploadCallback:a.a.func,onFocus:a.a.func,onBlur:a.a.func,onTab:a.a.func,mention:a.a.object,hashtag:a.a.object,textAlignment:a.a.string,readOnly:a.a.bool,tabIndex:a.a.number,placeholder:a.a.string,ariaLabel:a.a.string,ariaOwneeID:a.a.string,ariaActiveDescendantID:a.a.string,ariaAutoComplete:a.a.string,ariaDescribedBy:a.a.string,ariaExpanded:a.a.string,ariaHasPopup:a.a.string,customBlockRenderFunc:a.a.func,wrapperId:a.a.number,customDecorators:a.a.array,editorRef:a.a.func,handlePastedText:a.a.func},yo.defaultProps={toolbarOnFocus:!1,toolbarHidden:!1,stripPastedStyles:!1,localization:{locale:"en",translations:{}},customDecorators:[]};var mo=yo;n.d(e,"Editor",function(){return mo})}],o.c=i,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=8);function o(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var r,i}(n(1),n(372),n(52))},479:function(t,e,n){t.exports=function(){"use strict";function t(t,e){if(t)for(var n in t)({}).hasOwnProperty.call(t,n)&&e(n,t[n])}var e={unstyled:"p","header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-five":"h5","header-six":"h6","unordered-list-item":"ul","ordered-list-item":"ol",blockquote:"blockquote",code:"pre"};function n(t){return t&&e[t]}function o(e){var n="";return t(e,function(t,e){e&&(n+=t+":"+e+";")}),n}function r(t){return!(!(t.entityRanges.length>0)||(e=t.text,void 0!==e&&null!==e&&0!==e.length&&0!==e.trim().length&&"atomic"!==t.type));var e}function i(t,e){var n={};return t.COLOR[e]&&(n.COLOR=t.COLOR[e]),t.BGCOLOR[e]&&(n.BGCOLOR=t.BGCOLOR[e]),t.FONTSIZE[e]&&(n.FONTSIZE=t.FONTSIZE[e]),t.FONTFAMILY[e]&&(n.FONTFAMILY=t.FONTFAMILY[e]),t.UNDERLINE[e]&&(n.UNDERLINE=!0),t.ITALIC[e]&&(n.ITALIC=!0),t.BOLD[e]&&(n.BOLD=!0),t.STRIKETHROUGH[e]&&(n.STRIKETHROUGH=!0),t.CODE[e]&&(n.CODE=!0),t.SUBSCRIPT[e]&&(n.SUBSCRIPT=!0),t.SUPERSCRIPT[e]&&(n.SUPERSCRIPT=!0),n}function a(t,e,n){var o=!0;return n>0&&n<t.length?e.forEach(function(e){o=o&&t[e][n]===t[e][n-1]}):o=!1,o}function c(t,e,n,o){var r=t[e];if("function"===typeof o){var i=o(r,n);if(i)return i}if("MENTION"===r.type)return'<a href="'+r.data.url+'" class="wysiwyg-mention" data-mention data-value="'+r.data.value+'">'+n+"</a>";if("LINK"===r.type){var a=r.data.targetOption||"_self";return'<a href="'+r.data.url+'" target="'+a+'">'+n+"</a>"}return"IMAGE"===r.type?'<img src="'+r.data.src+'" alt="'+r.data.alt+'" style="float:'+(r.data.alignment||"none")+";height: "+r.data.height+";width: "+r.data.width+'"/>':"EMBEDDED_LINK"===r.type?'<iframe width="'+r.data.width+'" height="'+r.data.height+'" src="'+r.data.src+'" frameBorder="0"></iframe>':n}function s(t,e,n,o){var r=[],c=t.text;if(c.length>0)for(var s=function(t){var e=t.text,n=t.inlineStyleRanges,o={BOLD:new Array(e.length),ITALIC:new Array(e.length),UNDERLINE:new Array(e.length),STRIKETHROUGH:new Array(e.length),CODE:new Array(e.length),SUPERSCRIPT:new Array(e.length),SUBSCRIPT:new Array(e.length),COLOR:new Array(e.length),BGCOLOR:new Array(e.length),FONTSIZE:new Array(e.length),FONTFAMILY:new Array(e.length),length:e.length};return n&&n.length>0&&n.forEach(function(t){for(var e=t.offset,n=e+t.length,r=e;r<n;r+=1)0===t.style.indexOf("color-")?o.COLOR[r]=t.style.substring(6):0===t.style.indexOf("bgcolor-")?o.BGCOLOR[r]=t.style.substring(8):0===t.style.indexOf("fontsize-")?o.FONTSIZE[r]=t.style.substring(9):0===t.style.indexOf("fontfamily-")?o.FONTFAMILY[r]=t.style.substring(11):o[t.style]&&(o[t.style][r]=!0)}),o}(t),l=void 0,u=n;u<o;u+=1)u!==n&&a(s,e,u)?(l.text.push(c[u]),l.end=u+1):(l={styles:i(s,u),text:[c[u]],start:u,end:u+1},r.push(l));return r}function l(e,n){var o=s(e,["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"],n.start,n.end),r="";return o.forEach(function(e){r+=function(e){var n=e.styles,o=function(t){if(t&&t.length>0){var e=t.map(function(t){switch(t){case"\n":return"<br>";case"&":return"&";case"<":return"<";case">":return">";default:return t}});return e.join("")}return""}(e.text);return t(n,function(t,e){o=function(t,e){return"BOLD"===t?"<strong>"+e+"</strong>":"ITALIC"===t?"<em>"+e+"</em>":"UNDERLINE"===t?"<ins>"+e+"</ins>":"STRIKETHROUGH"===t?"<del>"+e+"</del>":"CODE"===t?"<code>"+e+"</code>":"SUPERSCRIPT"===t?"<sup>"+e+"</sup>":"SUBSCRIPT"===t?"<sub>"+e+"</sub>":e}(t,o)}),o}(e)}),r=function(t,e){if(t&&(t.COLOR||t.BGCOLOR||t.FONTSIZE||t.FONTFAMILY)){var n='style="';return t.COLOR&&(n+="color: "+t.COLOR+";"),t.BGCOLOR&&(n+="background-color: "+t.BGCOLOR+";"),t.FONTSIZE&&(n+="font-size: "+t.FONTSIZE+(/^\d+$/.test(t.FONTSIZE)?"px":"")+";"),t.FONTFAMILY&&(n+="font-family: "+t.FONTFAMILY+";"),"<span "+(n+='"')+">"+e+"</span>"}return e}(n.styles,r)}function u(t,e,n,o){var r=[],i=function(t,e){var n=[],o=0,r=t.entityRanges.map(function(t){var e=t.offset,n=t.length,o=t.key;return{offset:e,length:n,key:o,type:"ENTITY"}});return(r=(r=r.concat(function(t,e){var n=[];if(e)for(var o=0,r=0,i=t,a=e.trigger||"#",c=e.separator||" ";i.length>0&&r>=0;)if(i[0]===a?(r=0,o=0,i=i.substr(a.length)):(r=i.indexOf(c+a))>=0&&(i=i.substr(r+(c+a).length),o+=r+c.length),r>=0){var s=i.indexOf(c)>=0?i.indexOf(c):i.length,l=i.substr(0,s);l&&l.length>0&&n.push({offset:o,length:l.length+a.length,type:"HASHTAG"}),o+=a.length}return n}(t.text,e))).sort(function(t,e){return t.offset-e.offset})).forEach(function(t){t.offset>o&&n.push({start:o,end:t.offset}),n.push({start:t.offset,end:t.offset+t.length,entityKey:t.key,type:t.type}),o=t.offset+t.length}),o<t.text.length&&n.push({start:o,end:t.text.length}),n}(t,n);return i.forEach(function(n,a){var u=function(t,e,n,o){var r=[];s(t,["COLOR","BGCOLOR","FONTSIZE","FONTFAMILY"],n.start,n.end).forEach(function(e){r.push(l(t,e))});var i=r.join("");return"ENTITY"===n.type?void 0!==n.entityKey&&null!==n.entityKey&&(i=c(e,n.entityKey,i,o)):"HASHTAG"===n.type&&(i='<a href="'+i+'" class="wysiwyg-hashtag">'+i+"</a>"),i}(t,e,n,o);0===a&&(u=function(t){if(t){for(var e=t,n=0;n<e.length&&" "===t[n];n+=1)e=e.replace(" "," ");return e}return t}(u)),a===i.length-1&&(u=function(t){if(t){for(var e=t,n=e.length-1;n>=0&&" "===e[n];n-=1)e=e.substring(0,n)+" "+e.substring(n+1);return e}return t}(u)),r.push(u)}),r.join("")}function p(t,e,r,i,a){var c=[],s=[],l=void 0;return t.forEach(function(t){var f=!1;if(l?l.type!==t.type?(c.push("</"+n(l.type)+">\n"),c.push("<"+n(t.type)+">\n")):l.depth===t.depth?s&&s.length>0&&(c.push(p(s,e,r,i,a)),s=[]):(f=!0,s.push(t)):c.push("<"+n(t.type)+">\n"),!f){c.push("<li");var d=o(t.data);d&&c.push(' style="'+d+'"'),i&&c.push(' dir = "auto"'),c.push(">"),c.push(u(t,e,r,a)),c.push("</li>\n"),l=t}}),s&&s.length>0&&c.push(p(s,e,r,i,a)),c.push("</"+n(l.type)+">\n"),c.join("")}return function(t,e,i,a){var s=[];if(t){var l=t.blocks,f=t.entityMap;if(l&&l.length>0){var d=[];if(l.forEach(function(t){if("unordered-list-item"===(h=t.type)||"ordered-list-item"===h)d.push(t);else{if(d.length>0){var l=p(d,f,e,a);s.push(l),d=[]}var g=function(t,e,i,a,s){var l=[];if(r(t))l.push(c(e,t.entityRanges[0].key,void 0,s));else{var p=n(t.type);if(p){l.push("<"+p);var f=o(t.data);f&&l.push(' style="'+f+'"'),a&&l.push(' dir = "auto"'),l.push(">"),l.push(u(t,e,i,s)),l.push("</"+p+">")}}return l.push("\n"),l.join("")}(t,f,e,i,a);s.push(g)}var h}),d.length>0){var g=p(d,f,e,i,a);s.push(g),d=[]}}}return s.join("")}}()},589:function(t,e,n){"use strict";var o=n(312),r=n(320),i=n(285).OrderedMap;t.exports=function(t){return t.first()instanceof o?function(t){var e,n={};return i(t.withMutations(function(t){t.forEach(function(o,i){var a=o.getKey(),c=o.getNextSiblingKey(),s=o.getPrevSiblingKey(),l=o.getChildKeys(),u=o.getParentKey(),p=r();if(n[a]=p,c&&(t.get(c)?t.setIn([c,"prevSibling"],p):t.setIn([a,"nextSibling"],null)),s&&(t.get(s)?t.setIn([s,"nextSibling"],p):t.setIn([a,"prevSibling"],null)),u&&t.get(u)){var f=t.get(u).getChildKeys();t.setIn([u,"children"],f.set(f.indexOf(o.getKey()),p))}else t.setIn([a,"parent"],null),e&&(t.setIn([e.getKey(),"nextSibling"],p),t.setIn([a,"prevSibling"],n[e.getKey()])),e=t.get(a);l.forEach(function(e){t.get(e)?t.setIn([e,"parent"],p):t.setIn([a,"children"],o.getChildKeys().filter(function(t){return t!==e}))})})}).toArray().map(function(t){return[n[t.getKey()],t.set("key",n[t.getKey()])]}))}(t):function(t){return i(t.toArray().map(function(t){var e=r();return[e,t.set("key",e)]}))}(t)}},590:function(t,e,n){"use strict";var o=n(311),r=n(374),i=n(287);function a(t,e,n){var a=e.getCharacterList(),c=n>0?a.get(n-1):void 0,s=n<a.count()?a.get(n):void 0,l=c?c.getEntity():void 0,u=s?s.getEntity():void 0;if(u&&u===l&&"MUTABLE"!==t.__get(u).getMutability()){for(var p,f=function(t,e,n){var o;return r(t,function(t,e){return t.getEntity()===e.getEntity()},function(t){return t.getEntity()===e},function(t,e){t<=n&&e>=n&&(o={start:t,end:e})}),"object"!==typeof o&&i(!1),o}(a,u,n),d=f.start,g=f.end;d<g;)p=a.get(d),a=a.set(d,o.applyEntity(p,null)),d++;return e.set("characterList",a)}return e}t.exports=function(t,e){var n=t.getBlockMap(),o=t.getEntityMap(),r={},i=e.getStartKey(),c=e.getStartOffset(),s=n.get(i),l=a(o,s,c);l!==s&&(r[i]=l);var u=e.getEndKey(),p=e.getEndOffset(),f=n.get(u);i===u&&(f=l);var d=a(o,f,p);return d!==f&&(r[u]=d),Object.keys(r).length?t.merge({blockMap:n.merge(r),selectionAfter:e}):t.set("selectionAfter",e)}},591:function(t,e,n){"use strict";t.exports=function(t,e,n){var o=t;if(n===o.count())e.forEach(function(t){o=o.push(t)});else if(0===n)e.reverse().forEach(function(t){o=o.unshift(t)});else{var r=o.slice(0,n),i=o.slice(n);o=r.concat(e,i).toList()}return o}},592:function(t,e,n){"use strict";var o=n(285).Map;t.exports=function(t,e,n){var r=e.getStartKey(),i=e.getEndKey(),a=t.getBlockMap(),c=a.toSeq().skipUntil(function(t,e){return e===r}).takeUntil(function(t,e){return e===i}).concat(o([[i,a.get(i)]])).map(n);return t.merge({blockMap:a.merge(c),selectionBefore:e,selectionAfter:e})}},593:function(t,e,n){"use strict";var o=n(312);t.exports=function(t,e){if(!(t instanceof o))return null;var n=t.getNextSiblingKey();if(n)return n;var r=t.getParentKey();if(!r)return null;for(var i=e.get(r);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?e.get(a):null}return i?i.getNextSiblingKey():null}},594:function(t,e,n){"use strict";t.exports=function(t){return Object.keys(t).map(function(e){return t[e]})}},595:function(t,e,n){"use strict";var o=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var r=o.prototype;return r.getType=function(){return this.get("type")},r.getMutability=function(){return this.get("mutability")},r.getData=function(){return this.get("data")},o}((0,n(285).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));t.exports=o},596:function(t,e,n){"use strict";var o=new RegExp("\r","g");t.exports=function(t){return t.replace(o,"")}},597:function(t,e,n){"use strict";t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},598:function(t,e,n){"use strict";var o=n(349);t.exports=function t(e){if(o(e)){var n=e,r=n.getAttribute("data-offset-key");if(r)return r;for(var i=0;i<n.childNodes.length;i++){var a=t(n.childNodes[i]);if(a)return a}}return null}},599:function(t,e,n){"use strict";t.exports=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}},600:function(t,e,n){"use strict";var o=n(601),r=n(291),i=n(602),a=n(603);t.exports=function(t){if(t._blockSelectEvents||t._latestEditorState!==t.props.editorState){if(t._blockSelectEvents){var e=t.props.editorState.getSelection();o.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(e.toJS())})}}else{var n=t.props.editorState,c=a(n,i(t)),s=c.selectionState;s!==n.getSelection()&&(n=c.needsRecovery?r.forceSelection(n,s):r.acceptSelection(n,s),t.update(n))}}},601:function(t,e,n){"use strict";t.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},602:function(t,e,n){"use strict";var o=n(287),r=n(375);t.exports=function(t){var e=t.editorContainer;return e||o(!1),r(e.firstChild)||o(!1),e.firstChild}},603:function(t,e,n){"use strict";var o=n(604);t.exports=function(t,e){var n=e.ownerDocument.defaultView.getSelection(),r=n.anchorNode,i=n.anchorOffset,a=n.focusNode,c=n.focusOffset;return 0===n.rangeCount||null==r||null==a?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:o(t,e,r,i,a,c)}},604:function(t,e,n){"use strict";var o=n(417),r=n(598),i=n(605),a=n(287),c=n(349),s=n(303);function l(t,e,n){var i=e,l=o(i);(null!=l||t&&(t===i||t.firstChild===i)||a(!1),t===i)&&(i=i.firstChild,c(i)||a(!1),"true"!==(i=i).getAttribute("data-contents")&&a(!1),n>0&&(n=i.childNodes.length));if(0===n){var p=null;if(null!=l)p=l;else{var f=function(t){for(;t.firstChild&&(c(t.firstChild)&&"true"===t.firstChild.getAttribute("data-blocks")||r(t.firstChild));)t=t.firstChild;return t}(i);p=s(r(f))}return{key:p,offset:0}}var d=i.childNodes[n-1],g=null,h=null;if(r(d)){var y=function(t){for(;t.lastChild&&(c(t.lastChild)&&"true"===t.lastChild.getAttribute("data-blocks")||r(t.lastChild));)t=t.lastChild;return t}(d);g=s(r(y)),h=u(y)}else g=s(l),h=u(d);return{key:g,offset:h}}function u(t){var e=t.textContent;return"\n"===e?0:e.length}t.exports=function(t,e,n,r,a,c){var u=n.nodeType===Node.TEXT_NODE,p=a.nodeType===Node.TEXT_NODE;if(u&&p)return{selectionState:i(t,s(o(n)),r,s(o(a)),c),needsRecovery:!1};var f=null,d=null,g=!0;return u?(f={key:s(o(n)),offset:r},d=l(e,a,c)):p?(d={key:s(o(a)),offset:c},f=l(e,n,r)):(f=l(e,n,r),d=l(e,a,c),n===a&&r===c&&(g=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(t,f.key,f.offset,d.key,d.offset),needsRecovery:g}}},605:function(t,e,n){"use strict";var o=n(329),r=n(303);t.exports=function(t,e,n,i,a){var c=r(t.getSelection());if(!e||!i)return c;var s=o.decode(e),l=s.blockKey,u=t.getBlockTree(l),p=u&&u.getIn([s.decoratorKey,"leaves",s.leafKey]),f=o.decode(i),d=f.blockKey,g=t.getBlockTree(d),h=g&&g.getIn([f.decoratorKey,"leaves",f.leafKey]);if(!p||!h)return c;var y=p.get("start"),m=h.get("start"),v=p?y+n:null,b=h?m+a:null;if(c.getAnchorKey()===l&&c.getAnchorOffset()===v&&c.getFocusKey()===d&&c.getFocusOffset()===b)return c;var S=!1;if(l===d){var M=p.get("end"),w=h.get("end");S=m===y&&w===M?a<n:m<y}else S=t.getCurrentContent().getBlockMap().keySeq().skipUntil(function(t){return t===l||t===d}).first()===d;return c.merge({anchorKey:l,anchorOffset:v,focusKey:d,focusOffset:b,isBackward:S})}},606:function(t,e,n){"use strict";t.exports={notEmptyKey:function(t){return null!=t&&""!=t}}},607:function(t,e,n){"use strict";var o=n(51);var r=n(907),i=n(1),a=n(287),c=n(608),s=n(908).setDraftEditorSelection,l=function(t){var e,n;function l(){for(var e,n,o,r,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return e=t.call.apply(t,[this].concat(a))||this,n=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e),r=void 0,(o="leaf")in n?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r,e}n=t,(e=l).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var u=l.prototype;return u._setSelection=function(){var t=this.props.selection;if(null!=t&&t.getHasFocus()){var e=this.props,n=e.block,o=e.start,r=e.text,i=n.getKey(),l=o+r.length;if(t.hasEdgeWithin(i,o,l)){var u=this.leaf;u||a(!1);var p,f=u.firstChild;f||a(!1),f.nodeType===Node.TEXT_NODE?p=f:c(f)?p=u:(p=f.firstChild)||a(!1),s(t,p,i,o,l)}}},u.shouldComponentUpdate=function(t){var e=this.leaf;return e||a(!1),e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection},u.componentDidUpdate=function(){this._setSelection()},u.componentDidMount=function(){this._setSelection()},u.render=function(){var t=this,e=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var a=this.props,c=a.customStyleMap,s=a.customStyleFn,l=a.offsetKey,u=a.styleSet,p=u.reduce(function(t,e){var n={},r=c[e];return void 0!==r&&t.textDecoration!==r.textDecoration&&(n.textDecoration=[t.textDecoration,r.textDecoration].join(" ").trim()),o(t,r,n)},{});if(s){var f=s(u,e);p=o(p,f)}return i.createElement("span",{"data-offset-key":l,ref:function(e){return t.leaf=e},style:p},i.createElement(r,null,n))},l}(i.Component);t.exports=l},608:function(t,e,n){"use strict";var o=n(349);t.exports=function(t){return!(!t||!t.ownerDocument)&&o(t)&&"BR"===t.nodeName}},609:function(t,e,n){"use strict";t.exports={initODS:function(){},handleExtensionCausedError:function(){}}},610:function(t,e,n){"use strict";t.exports=function(t){if("undefined"===typeof(t=t||("undefined"!==typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}},611:function(t,e,n){"use strict";var o=n(914);t.exports=function(t){var e=o(t);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}},612:function(t,e,n){"use strict";function o(){var t;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function r(){var t;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function i(){return{width:window.innerWidth||o(),height:window.innerHeight||r()}}i.withoutScrollbars=function(){return{width:o(),height:r()}},t.exports=i},613:function(t,e,n){"use strict";var o=n(51);function r(){return(r=o||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}var i=n(607),a=n(329),c=n(1),s=n(474),l=n(420),u=n(469),p=n(416),f=n(348),d=n(611),g=n(421),h=n(612),y=n(287),m=n(375),v=n(303),b=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},S=function(t){var e,n;function o(){for(var e,n,o,r,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return e=t.call.apply(t,[this].concat(a))||this,n=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e),r=void 0,(o="_node")in n?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r,e}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var S=o.prototype;return S.shouldComponentUpdate=function(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||b(t.selection,t.block.getKey())&&t.forceSelection},S.componentDidMount=function(){if(!this.props.preventScroll){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var n=this._node;if(null!=n){var o,r=l.getScrollParent(n),i=g(r);if(r===window){var a=d(n);(o=a.y+a.height-h().height)>0&&window.scrollTo(i.x,i.y+o+10)}else{m(n)||y(!1),(o=n.offsetHeight+n.offsetTop-(r.offsetTop+r.offsetHeight+i.y))>0&&s.setTop(r,s.getTop(r)+o+10)}}}}},S._renderChildren=function(){var t=this,e=this.props.block,n=e.getKey(),o=e.getText(),s=this.props.tree.size-1,l=b(this.props.selection,n);return this.props.tree.map(function(f,d){var g=f.get("leaves");if(0===g.size)return null;var h=g.size-1,y=g.map(function(r,u){var p=a.encode(n,d,u),f=r.get("start"),g=r.get("end");return c.createElement(i,{key:p,offsetKey:p,block:e,start:f,selection:l?t.props.selection:null,forceSelection:t.props.forceSelection,text:o.slice(f,g),styleSet:e.getInlineStyleAt(f),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:d===s&&u===h})}).toArray(),m=f.get("decoratorKey");if(null==m)return y;if(!t.props.decorator)return y;var b=v(t.props.decorator),S=b.getComponentForKey(m);if(!S)return y;var M=b.getPropsForKey(m),w=a.encode(n,d,0),C=g.first().get("start"),k=g.last().get("end"),E=o.slice(C,k),_=e.getEntityAt(f.get("start")),j=p.getHTMLDirIfDifferent(u.getDirection(E),t.props.direction),x={contentState:t.props.contentState,decoratedText:E,dir:j,start:C,end:k,blockKey:n,entityKey:_,offsetKey:w};return c.createElement(S,r({},M,x,{key:w}),y)}).toArray()},S.render=function(){var t=this,e=this.props,n=e.direction,o=e.offsetKey,r=f({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return c.createElement("div",{"data-offset-key":o,className:r,ref:function(e){return t._node=e}},this._renderChildren())},o}(c.Component);t.exports=S},614:function(t,e,n){"use strict";var o=n(920),r=n(921),i=n(615),a=new RegExp("\r\n","g"),c={"text/rtf":1,"text/html":1};function s(t){if("file"==t.kind)return t.getAsFile()}var l=function(){function t(t){this.data=t,this.types=t.types?r(t.types):[]}var e=t.prototype;return e.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(t){return c[t]})},e.getText=function(){var t;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(t=this.data.getData("text/plain")):t=this.data.getData("Text")),t?t.replace(a,"\n"):null},e.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.isLink=function(){return this.types.some(function(t){return-1!=t.indexOf("Url")||-1!=t.indexOf("text/uri-list")||t.indexOf("text/x-moz-url")})},e.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.isImage=function(){var t=this.types.some(function(t){return-1!=t.indexOf("application/x-moz-file")});if(t)return!0;for(var e=this.getFiles(),n=0;n<e.length;n++){var r=e[n].type;if(!o.isImage(r))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(s).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},e.hasFiles=function(){return this.getFiles().length>0},t}();t.exports=l},615:function(t,e,n){"use strict";function o(t){return function(){return t}}var r=function(){};r.thatReturns=o,r.thatReturnsFalse=o(!1),r.thatReturnsTrue=o(!0),r.thatReturnsNull=o(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},616:function(t,e,n){"use strict";(function(e){var o=n(287),r=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0},a=5e3;t.exports=function(t,n){var c=0,s=[];t.forEach(function(l){!function(t,n){if(e.FileReader&&(!t.type||t.type in i)){if(""===t.type){var a="";return r.test(t.name)&&(a=t.name.replace(r,"")),void n(a)}var c=new FileReader;c.onload=function(){var t=c.result;"string"!==typeof t&&o(!1),n(t)},c.onerror=function(){n("")},c.readAsText(t)}else n("")}(l,function(e){c++,e&&s.push(e.slice(0,a)),c==t.length&&n(s.join("\r"))})})}}).call(this,n(106))},617:function(t,e,n){"use strict";var o=n(413);t.exports=function(t){var e=t.getSelection();return e.isCollapsed()?null:o(t.getCurrentContent(),e)}},618:function(t,e,n){"use strict";var o=n(291),r=n(350),i=n(475),a=n(376);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),n=t.getCurrentContent(),o=e.getAnchorKey(),a=e.getAnchorOffset(),c=n.getBlockForKey(o).getText()[a-1];return i(t,c?r.getUTF16Length(c,0):1)},"backward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return o.push(t,e.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},619:function(t,e,n){"use strict";var o=n(304),r=n(287);var i=o.isBrowser("Chrome")?function(t){for(var e=t.cloneRange(),n=[],o=t.endContainer;null!=o;o=o.parentNode){var i=o===t.commonAncestorContainer;i?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var a,c=Array.from(e.getClientRects());if(n.push(c),i)return n.reverse(),(a=[]).concat.apply(a,n);e.setEndBefore(o)}r(!1)}:function(t){return Array.from(t.getClientRects())};t.exports=i},620:function(t,e,n){"use strict";var o="\\s|(?![_])"+n(941).getPunctuation(),r=new RegExp("^(?:"+o+")*(?:['\u2018\u2019]|(?!"+o+").)*(?:(?!"+o+").)"),i=new RegExp("(?:(?!"+o+").)(?:['\u2018\u2019]|(?!"+o+").)*(?:"+o+")*$");function a(t,e){var n=e?i.exec(t):r.exec(t);return n?n[0]:t}var c={getBackward:function(t){return a(t,!0)},getForward:function(t){return a(t,!1)}};t.exports=c},621:function(t,e,n){"use strict";n(476);t.exports=function(t,e){var n,o=t.getSelection(),r=o.getStartKey(),i=o.getStartOffset(),a=t.getCurrentContent(),c=r;return e>a.getBlockForKey(r).getText().length-i?(c=a.getKeyAfter(r),n=0):n=i+e,o.merge({focusKey:c,focusOffset:n})}},622:function(t,e,n){"use strict";var o;function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){i(t,e,n[e])})}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(311),c=n(347),s=n(312),l=n(470),u=n(414),p=n(951),f=n(348),d=n(320),g=n(623),h=n(336),y=n(285),m=y.List,v=y.Map,b=y.OrderedSet,S=n(952),M=n(608),w=n(375),C=n(953),k=h("draft_tree_data_support"),E=new RegExp("\r","g"),_=new RegExp("\n","g"),j=new RegExp("^\n","g"),x=new RegExp(" ","g"),D=new RegExp(" ?","g"),N=new RegExp("​?","g"),L=["bold","bolder","500","600","700","800","900"],O=["light","lighter","normal","100","200","300","400"],I=["className","href","rel","target","title"],T=["alt","className","height","src","width"],A=(i(o={},f("public/DraftStyleDefault/depth0"),0),i(o,f("public/DraftStyleDefault/depth1"),1),i(o,f("public/DraftStyleDefault/depth2"),2),i(o,f("public/DraftStyleDefault/depth3"),3),i(o,f("public/DraftStyleDefault/depth4"),4),o),z=v({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),B=function(t){if(w(t)&&t.style.fontFamily.includes("monospace"))return"CODE";return null},P=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(A).some(function(n){t.classList.contains(n)&&(e=A[n])}),e},R=function(t){if(!S(t))return!1;var e=t;if(!e.href||"http:"!==e.protocol&&"https:"!==e.protocol&&"mailto:"!==e.protocol&&"tel:"!==e.protocol)return!1;try{new p(e.href);return!0}catch(n){return!1}},F=function(t){if(!C(t))return!1;var e=t;return!(!e.attributes.getNamedItem("src")||!e.attributes.getNamedItem("src").value)},U=function(t,e){if(!w(t))return e;var n=t,o=n.style.fontWeight,r=n.style.fontStyle,i=n.style.textDecoration;return e.withMutations(function(t){L.indexOf(o)>=0?t.add("BOLD"):O.indexOf(o)>=0&&t.remove("BOLD"),"italic"===r?t.add("ITALIC"):"normal"===r&&t.remove("ITALIC"),"underline"===i&&t.add("UNDERLINE"),"line-through"===i&&t.add("STRIKETHROUGH"),"none"===i&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))})},K=function(t){return"ul"===t||"ol"===t},Y=function(){function t(t,e){i(this,"characterList",m()),i(this,"currentBlockType","unstyled"),i(this,"currentDepth",0),i(this,"currentEntity",null),i(this,"currentText",""),i(this,"wrapper",null),i(this,"blockConfigs",[]),i(this,"contentBlocks",[]),i(this,"entityMap",u),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=t,this.disambiguate=e}var e=t.prototype;return e.clear=function(){this.characterList=m(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=u,this.wrapper=null,this.contentBlocks=[]},e.addDOMNode=function(t){var e;return this.contentBlocks=[],this.currentDepth=0,(e=this.blockConfigs).push.apply(e,this._toBlockConfigs([t],b())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},e.getContentBlocks=function(){return 0===this.contentBlocks.length&&(k?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},e._makeBlockConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=r({key:t.key||d(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:m(),prevSibling:null,nextSibling:null,childConfigs:[]},t);return this.characterList=m(),this.currentBlockType="unstyled",this.currentText="",e},e._toBlockConfigs=function(t,e){for(var n=[],o=0;o<t.length;o++){var r=t[o],i=r.nodeName.toLowerCase();if("body"===i||K(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,c=this.wrapper;K(i)&&(this.wrapper=i,K(c)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(r.childNodes),e)),this.currentDepth=a,this.wrapper=c}else{var s=this.blockTypeMap.get(i);if(void 0===s)if("#text"!==i)if("br"!==i)if(F(r))this._addImgNode(r,e);else if(R(r))this._addAnchorNode(r,n,e);else{var l=e;z.has(i)&&(l=l.add(z.get(i))),l=U(r,l);var u=B(r);null!=u&&(l=l.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(r.childNodes),l))}else this._addBreakNode(r,e);else this._addTextNode(r,e);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var p=this.currentDepth,f=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!==typeof s&&(s=this.disambiguate(i,this.wrapper)||s[0]||"unstyled"),!k&&w(r)&&("unordered-list-item"===s||"ordered-list-item"===s)){var g=r;this.currentDepth=P(g,this.currentDepth)}var h=d(),y=this._toBlockConfigs(Array.from(r.childNodes),e);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:y,type:s})),this.currentDepth=p,this.wrapper=f}}}return n},e._appendText=function(t,e){var n;this.currentText+=t;var o=a.create({style:e,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(t.length).fill(o))},e._trimCurrentText=function(){var t=this.currentText.length,e=t-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,o=this.characterList.findEntry(function(t){return null!==t.getEntity()});(e=void 0!==o?Math.min(e,o[0]):e)>(n=void 0!==(o=this.characterList.reverse().findEntry(function(t){return null!==t.getEntity()}))?Math.max(n,t-o[0]):n)?(this.currentText="",this.characterList=m()):(this.currentText=this.currentText.slice(e,n),this.characterList=this.characterList.slice(e,n))},e._addTextNode=function(t,e){var n=t.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(j,"")).replace(_," ")),this._appendText(n,e)},e._addBreakNode=function(t,e){M(t)&&this._appendText("\n",e)},e._addImgNode=function(t,e){if(C(t)){var n=t,o={};T.forEach(function(t){var e=n.getAttribute(t);e&&(o[t]=e)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",o),h("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("\ud83d\udcf7",e):this._appendText("\ud83d\udcf7",e),this.currentEntity=null}},e._addAnchorNode=function(t,e,n){if(S(t)){var o=t,r={};I.forEach(function(t){var e=o.getAttribute(t);e&&(r[t]=e)}),r.url=new p(o.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",r||{}),e.push.apply(e,this._toBlockConfigs(Array.from(t.childNodes),n)),this.currentEntity=null}},e._toContentBlocks=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.length-1,o=0;o<=n;o++){var i=t[o];i.parent=e,i.prevSibling=o>0?t[o-1].key:null,i.nextSibling=o<n?t[o+1].key:null,i.children=m(i.childConfigs.map(function(t){return t.key})),this.contentBlocks.push(new s(r({},i))),this._toContentBlocks(i.childConfigs,i.key)}},e._hoistContainersInBlockConfigs=function(t){var e=this;return m(t).flatMap(function(t){return"unstyled"!==t.type||""!==t.text?[t]:e._hoistContainersInBlockConfigs(t.childConfigs)})},e._toFlatContentBlocks=function(t){var e=this;this._hoistContainersInBlockConfigs(t).forEach(function(t){var n=e._extractTextFromBlockConfigs(t.childConfigs),o=n.text,i=n.characterList;e.contentBlocks.push(new c(r({},t,{text:t.text+o,characterList:t.characterList.concat(i)})))})},e._extractTextFromBlockConfigs=function(t){for(var e=t.length-1,n="",o=m(),r=0;r<=e;r++){var i=t[r];n+=i.text,o=o.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",o=o.push(o.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,o=o.concat(a.characterList)}return{text:n,characterList:o}},t}();t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,o=e(t=t.trim().replace(E,"").replace(x," ").replace(D,"").replace(N,""));if(!o)return null;var r=function(t){var e={};return t.mapKeys(function(t,n){var o=[n.element];void 0!==n.aliasedElements&&o.push.apply(o,n.aliasedElements),o.forEach(function(n){void 0===e[n]?e[n]=t:"string"===typeof e[n]?e[n]=[e[n],t]:e[n].push(t)})}),v(e)}(n);return new Y(r,function(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null}).addDOMNode(o).getContentBlocks()}},623:function(t,e,n){"use strict";var o=n(304),r=n(287),i=o.isBrowser("IE <= 9");t.exports=function(t){var e,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement||r(!1),e.documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n}},624:function(t,e,n){"use strict";var o=n(302),r=n(291),i=n(954),a=n(303),c={currentBlockContainsLink:function(t){var e=t.getSelection(),n=t.getCurrentContent(),o=n.getEntityMap();return n.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some(function(t){var e=t.getEntity();return!!e&&"LINK"===o.__get(e).getType()})},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e,n){switch(e){case"bold":return c.toggleInlineStyle(t,"BOLD");case"italic":return c.toggleInlineStyle(t,"ITALIC");case"underline":return c.toggleInlineStyle(t,"UNDERLINE");case"code":return c.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return c.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return c.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=o.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),n=r.push(t,e,"insert-characters");return r.forceSelection(n,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var n=t.getCurrentContent(),o=e.getStartKey(),i=n.getBlockBefore(o);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),s=n.merge({blockMap:a,selectionAfter:e});if(s!==n)return r.push(t,s,"remove-range")}var l=c.tryToRemoveBlockStyle(t);return l?r.push(t,l,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var n=t.getCurrentContent(),i=e.getStartKey(),a=n.getBlockForKey(i).getLength();if(e.getStartOffset()<a)return null;var c=n.getBlockAfter(i);if(!c||"atomic"!==c.getType())return null;var s=e.merge({focusKey:c.getKey(),focusOffset:c.getLength()}),l=o.removeRange(n,s,"forward");return l!==n?r.push(t,l,"remove-range"):null},onTab:function(t,e,n){var o=e.getSelection(),a=o.getAnchorKey();if(a!==o.getFocusKey())return e;var c=e.getCurrentContent(),s=c.getBlockForKey(a),l=s.getType();if("unordered-list-item"!==l&&"ordered-list-item"!==l)return e;t.preventDefault();var u=s.getDepth();if(!t.shiftKey&&u===n)return e;var p=i(c,o,t.shiftKey?-1:1,n);return r.push(e,p,"adjust-depth")},toggleBlockType:function(t,e){var n=t.getSelection(),i=n.getStartKey(),c=n.getEndKey(),s=t.getCurrentContent(),l=n;if(i!==c&&0===n.getEndOffset()){var u=a(s.getBlockBefore(c));c=u.getKey(),l=l.merge({anchorKey:i,anchorOffset:n.getStartOffset(),focusKey:c,focusOffset:u.getLength(),isBackward:!1})}if(s.getBlockMap().skipWhile(function(t,e){return e!==i}).reverse().skipWhile(function(t,e){return e!==c}).some(function(t){return"atomic"===t.getType()}))return t;var p=s.getBlockForKey(i).getType()===e?"unstyled":e;return r.push(t,o.setBlockType(s,l,p),"change-block-type")},toggleCode:function(t){var e=t.getSelection(),n=e.getAnchorKey(),o=e.getFocusKey();return e.isCollapsed()||n!==o?c.toggleBlockType(t,"code-block"):c.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,e){var n=t.getSelection(),i=t.getCurrentInlineStyle();if(n.isCollapsed())return r.setInlineStyleOverride(t,i.has(e)?i.remove(e):i.add(e));var a,c=t.getCurrentContent();return a=i.has(e)?o.removeInlineStyle(c,n,e):o.applyInlineStyle(c,n,e),r.push(t,a,"change-inline-style")},toggleLink:function(t,e,n){var i=o.applyEntity(t.getCurrentContent(),e,n);return r.push(t,i,"apply-entity")},tryToRemoveBlockStyle:function(t){var e=t.getSelection(),n=e.getAnchorOffset();if(e.isCollapsed()&&0===n){var r=e.getAnchorKey(),i=t.getCurrentContent(),a=i.getBlockForKey(r).getType(),c=i.getBlockBefore(r);if("code-block"===a&&c&&"code-block"===c.getType()&&0!==c.getLength())return null;if("unstyled"!==a)return o.setBlockType(i,e,"unstyled")}return null}};t.exports=c},625:function(t,e,n){"use strict";var o=n(477),r=n(419),i=n(304),a=i.isPlatform("Mac OS X"),c=a&&i.isBrowser("Firefox < 29"),s=o.hasCommandModifier,l=o.isCtrlKeyCommand;function u(t){return a&&t.altKey||l(t)}t.exports=function(t){switch(t.keyCode){case 66:return s(t)?"bold":null;case 68:return l(t)?"delete":null;case 72:return l(t)?"backspace":null;case 73:return s(t)?"italic":null;case 74:return s(t)?"code":null;case 75:return a&&l(t)?"secondary-cut":null;case 77:case 79:return l(t)?"split-block":null;case 84:return a&&l(t)?"transpose-characters":null;case 85:return s(t)?"underline":null;case 87:return a&&l(t)?"backspace-word":null;case 89:return l(t)?a?"secondary-paste":"redo":null;case 90:return function(t){return s(t)?t.shiftKey?"redo":"undo":null}(t)||null;case r.RETURN:return"split-block";case r.DELETE:return function(t){return!a&&t.shiftKey?null:u(t)?"delete-word":"delete"}(t);case r.BACKSPACE:return function(t){return s(t)&&a?"backspace-to-start-of-line":u(t)?"backspace-word":"backspace"}(t);case r.LEFT:return c&&s(t)?"move-selection-to-start-of-block":null;case r.RIGHT:return c&&s(t)?"move-selection-to-end-of-block":null;default:return null}}},626:function(t,e,n){"use strict";var o={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}};t.exports=o},877:function(t,e,n){"use strict";function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){r(t,e,n[e])})}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(373),a=n(311),c=n(347),s=n(312),l=n(302),u=n(291),p=n(320),f=n(336),d=n(285),g=n(892),h=f("draft_tree_data_support"),y=h?s:c,m=d.List,v=d.Repeat,b={insertAtomicBlock:function(t,e,n){var r=t.getCurrentContent(),c=t.getSelection(),s=l.removeRange(r,c,"backward"),f=s.getSelectionAfter(),d=l.splitBlock(s,f),g=d.getSelectionAfter(),b=l.setBlockType(d,g,"atomic"),S=a.create({entity:e}),M={key:p(),type:"atomic",text:n,characterList:m(v(S,n.length))},w={key:p(),type:"unstyled"};h&&(M=o({},M,{nextSibling:w.key}),w=o({},w,{prevSibling:M.key}));var C=[new y(M),new y(w)],k=i.createFromArray(C),E=l.replaceWithFragment(b,g,k),_=E.merge({selectionBefore:c,selectionAfter:E.getSelectionAfter().set("hasFocus",!0)});return u.push(t,_,"insert-fragment")},moveAtomicBlock:function(t,e,n,o){var r,i=t.getCurrentContent(),a=t.getSelection();if("before"===o||"after"===o){var c=i.getBlockForKey("before"===o?n.getStartKey():n.getEndKey());r=g(i,e,c,o)}else{var s=l.removeRange(i,n,"backward"),p=s.getSelectionAfter(),f=s.getBlockForKey(p.getFocusKey());if(0===p.getStartOffset())r=g(s,e,f,"before");else if(p.getEndOffset()===f.getLength())r=g(s,e,f,"after");else{var d=l.splitBlock(s,p),h=d.getSelectionAfter(),y=d.getBlockForKey(h.getFocusKey());r=g(d,e,y,"before")}}var m=r.merge({selectionBefore:a,selectionAfter:r.getSelectionAfter().set("hasFocus",!0)});return u.push(t,m,"move-block")}};t.exports=b},878:function(t,e,n){"use strict";var o=n(311),r=n(285).Map,i={add:function(t,e,n){return a(t,e,n,!0)},remove:function(t,e,n){return a(t,e,n,!1)}};function a(t,e,n,i){var a=t.getBlockMap(),c=e.getStartKey(),s=e.getStartOffset(),l=e.getEndKey(),u=e.getEndOffset(),p=a.skipUntil(function(t,e){return e===c}).takeUntil(function(t,e){return e===l}).concat(r([[l,a.get(l)]])).map(function(t,e){var r,a;c===l?(r=s,a=u):(r=e===c?s:0,a=e===l?u:t.getLength());for(var p,f=t.getCharacterList();r<a;)p=f.get(r),f=f.set(r,i?o.applyStyle(p,n):o.removeStyle(p,n)),r++;return t.set("characterList",f)});return t.merge({blockMap:a.merge(p),selectionBefore:e,selectionAfter:e})}t.exports=i},879:function(t,e,n){"use strict";var o=n(880),r=n(285);t.exports=function(t,e,n){var i=t.getBlockMap(),a=e.getStartKey(),c=e.getStartOffset(),s=e.getEndKey(),l=e.getEndOffset(),u=i.skipUntil(function(t,e){return e===a}).takeUntil(function(t,e){return e===s}).toOrderedMap().merge(r.OrderedMap([[s,i.get(s)]])).map(function(t,e){var r=e===a?c:0,i=e===s?l:t.getLength();return o(t,r,i,n)});return t.merge({blockMap:i.merge(u),selectionBefore:e,selectionAfter:e})}},880:function(t,e,n){"use strict";var o=n(311);t.exports=function(t,e,n,r){for(var i=e,a=t.getCharacterList();i<n;)a=a.set(i,o.applyEntity(a.get(i),r)),i++;return t.set("characterList",a)}},881:function(t,e,n){"use strict";var o=n(882),r=n(883),i=n(287);function a(t,e,n,a,c,s,l){var u=n.getStartOffset(),p=n.getEndOffset(),f=t.__get(c).getMutability(),d=l?u:p;if("MUTABLE"===f)return n;var g=r(e,c).filter(function(t){return d<=t.end&&d>=t.start});1!=g.length&&i(!1);var h=g[0];if("IMMUTABLE"===f)return n.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1});s||(l?p=h.end:u=h.start);var y=o.getRemovalRange(u,p,e.getText().slice(h.start,h.end),h.start,a);return n.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}t.exports=function(t,e,n,o,r){var i=o.getStartOffset(),c=o.getEndOffset(),s=e.getEntityAt(i),l=n.getEntityAt(c-1);if(!s&&!l)return o;var u=o;if(s&&s===l)u=a(t,e,u,r,s,!0,!0);else if(s&&l){var p=a(t,e,u,r,s,!1,!0),f=a(t,n,u,r,l,!1,!1);u=u.merge({anchorOffset:p.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var d=a(t,e,u,r,s,!1,!0);u=u.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(l){var g=a(t,n,u,r,l,!1,!1);u=u.merge({focusOffset:g.getEndOffset(),isBackward:!1})}return u}},882:function(t,e,n){"use strict";t.exports={getRemovalRange:function(t,e,n,o,r){var i=n.split(" ");i=i.map(function(t,e){if("forward"===r){if(e>0)return" "+t}else if(e<i.length-1)return t+" ";return t});for(var a,c=o,s=null,l=null,u=0;u<i.length;u++){if(t<(a=c+i[u].length)&&c<e)null!==s?l=a:(s=c,l=a);else if(null!==s)break;c=a}var p=o+n.length,f=s===o,d=l===p;return(!f&&d||f&&!d)&&("forward"===r?l!==p&&l++:s!==o&&s--),{start:s,end:l}}}},883:function(t,e,n){"use strict";var o=n(287);t.exports=function(t,e){var n=[];return t.findEntityRanges(function(t){return t.getEntity()===e},function(t,e){n.push({start:t,end:e})}),n.length||o(!1),n}},884:function(t,e,n){"use strict";var o=n(373),r=n(312),i=n(285),a=n(591),c=n(287),s=n(589),l=i.List,u=function(t,e,n,i,a,c){var s=n.first()instanceof r,u=[],p=i.size,f=n.get(a),d=i.first(),g=i.last(),h=g.getLength(),y=g.getKey(),m=s&&(!f.getChildKeys().isEmpty()||!d.getChildKeys().isEmpty());n.forEach(function(t,e){e===a?(m?u.push(t):u.push(function(t,e,n){var o=t.getText(),r=t.getCharacterList(),i=o.slice(0,e),a=r.slice(0,e),c=n.first();return t.merge({text:i+c.getText(),characterList:a.concat(c.getCharacterList()),type:i?t.getType():c.getType(),data:c.getData()})}(t,c,i)),i.slice(m?0:1,p-1).forEach(function(t){return u.push(t)}),u.push(function(t,e,n){var o=t.getText(),r=t.getCharacterList(),i=o.length,a=o.slice(e,i),c=r.slice(e,i),s=n.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(c),data:s.getData()})}(t,c,i))):u.push(t)});var v=o.createFromArray(u);return s&&(v=function(t,e,n,o){return t.withMutations(function(e){var r=n.getKey(),i=o.getKey(),a=n.getNextSiblingKey(),c=n.getParentKey(),s=function(t,e){var n=t.getKey(),o=t,r=[];for(e.get(n)&&r.push(n);o&&o.getNextSiblingKey();){var i=o.getNextSiblingKey();if(!i)break;r.push(i),o=e.get(i)}return r}(o,t),u=s[s.length-1];if(e.get(i)?(e.setIn([r,"nextSibling"],i),e.setIn([i,"prevSibling"],r)):(e.setIn([r,"nextSibling"],o.getNextSiblingKey()),e.setIn([o.getNextSiblingKey(),"prevSibling"],r)),e.setIn([u,"nextSibling"],a),a&&e.setIn([a,"prevSibling"],u),s.forEach(function(t){return e.setIn([t,"parent"],c)}),c){var p=t.get(c).getChildKeys(),f=p.indexOf(r)+1,d=p.toArray();d.splice.apply(d,[f,0].concat(s)),e.setIn([c,"children"],l(d))}})}(v,0,f,d)),t.merge({blockMap:v,selectionBefore:e,selectionAfter:e.merge({anchorKey:y,anchorOffset:h,focusKey:y,focusOffset:h,isBackward:!1})})};t.exports=function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";e.isCollapsed()||c(!1);var i=t.getBlockMap(),l=s(n),p=e.getStartKey(),f=e.getStartOffset(),d=i.get(p);return d instanceof r&&(d.getChildKeys().isEmpty()||c(!1)),1===l.size?function(t,e,n,o,r,i){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(r),l=s.getText(),u=s.getCharacterList(),p=r,f=i+o.getText().length,d=null;switch(c){case"MERGE_OLD_DATA_TO_NEW_DATA":d=o.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":d=o.getData()}var g=s.getType();l&&"unstyled"===g&&(g=o.getType());var h=s.merge({text:l.slice(0,i)+o.getText()+l.slice(i),characterList:a(u,o.getCharacterList(),i),type:g,data:d});return t.merge({blockMap:n.set(r,h),selectionBefore:e,selectionAfter:e.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})}(t,e,i,l.first(),p,f,o):u(t,e,i,l,p,f)}},885:function(t,e,n){"use strict";var o=n(285),r=n(591),i=n(287),a=o.Repeat;t.exports=function(t,e,n,o){e.isCollapsed()||i(!1);var c=null;if(null!=n&&(c=n.length),null==c||0===c)return t;var s=t.getBlockMap(),l=e.getStartKey(),u=e.getStartOffset(),p=s.get(l),f=p.getText(),d=p.merge({text:f.slice(0,u)+n+f.slice(u,p.getLength()),characterList:r(p.getCharacterList(),a(o,c).toList(),u)}),g=u+c;return t.merge({blockMap:s.set(l,d),selectionAfter:e.merge({anchorOffset:g,focusOffset:g})})}},886:function(t,e,n){"use strict";var o=n(312),r=n(593),i=n(285),a=(i.List,i.Map),c=function(t,e,n){if(t){var o=e.get(t);o&&e.set(t,n(o))}},s=function(t,e){var n=[];if(!t)return n;for(var o=e.get(t);o&&o.getParentKey();){var r=o.getParentKey();r&&n.push(r),o=r?e.get(r):null}return n},l=function(t,e,n){if(!t)return null;for(var o=n.get(t.getKey()).getNextSiblingKey();o&&!e.get(o);)o=n.get(o).getNextSiblingKey()||null;return o},u=function(t,e,n){if(!t)return null;for(var o=n.get(t.getKey()).getPrevSiblingKey();o&&!e.get(o);)o=n.get(o).getPrevSiblingKey()||null;return o},p=function(t,e,n,o){return t.withMutations(function(i){if(c(e.getKey(),i,function(t){return t.merge({nextSibling:l(t,i,o),prevSibling:u(t,i,o)})}),c(n.getKey(),i,function(t){return t.merge({nextSibling:l(t,i,o),prevSibling:u(t,i,o)})}),s(e.getKey(),o).forEach(function(t){return c(t,i,function(t){return t.merge({children:t.getChildKeys().filter(function(t){return i.get(t)}),nextSibling:l(t,i,o),prevSibling:u(t,i,o)})})}),c(e.getNextSiblingKey(),i,function(t){return t.merge({prevSibling:e.getPrevSiblingKey()})}),c(e.getPrevSiblingKey(),i,function(t){return t.merge({nextSibling:l(t,i,o)})}),c(n.getNextSiblingKey(),i,function(t){return t.merge({prevSibling:u(t,i,o)})}),c(n.getPrevSiblingKey(),i,function(t){return t.merge({nextSibling:n.getNextSiblingKey()})}),s(n.getKey(),o).forEach(function(t){c(t,i,function(t){return t.merge({children:t.getChildKeys().filter(function(t){return i.get(t)}),nextSibling:l(t,i,o),prevSibling:u(t,i,o)})})}),function(t,e){var n=[];if(!t)return n;for(var o=r(t,e);o&&e.get(o);){var i=e.get(o);n.push(o),o=i.getParentKey()?r(i,e):null}return n}(n,o).forEach(function(t){return c(t,i,function(t){return t.merge({nextSibling:l(t,i,o),prevSibling:u(t,i,o)})})}),null==t.get(e.getKey())&&null!=t.get(n.getKey())&&n.getParentKey()===e.getKey()&&null==n.getPrevSiblingKey()){var a=e.getPrevSiblingKey();c(n.getKey(),i,function(t){return t.merge({prevSibling:a})}),c(a,i,function(t){return t.merge({nextSibling:n.getKey()})});var p=a?t.get(a):null,f=p?p.getParentKey():null;if(e.getChildKeys().forEach(function(t){c(t,i,function(t){return t.merge({parent:f})})}),null!=f){var d=t.get(f);c(f,i,function(t){return t.merge({children:d.getChildKeys().concat(e.getChildKeys())})})}c(e.getChildKeys().find(function(e){return null===t.get(e).getNextSiblingKey()}),i,function(t){return t.merge({nextSibling:e.getNextSiblingKey()})})}})},f=function(t,e,n){if(0===e)for(;e<n;)t=t.shift(),e++;else if(n===t.count())for(;n>e;)t=t.pop(),n--;else{var o=t.slice(0,e),r=t.slice(n);t=o.concat(r).toList()}return t};t.exports=function(t,e){if(e.isCollapsed())return t;var n,i=t.getBlockMap(),c=e.getStartKey(),l=e.getStartOffset(),u=e.getEndKey(),d=e.getEndOffset(),g=i.get(c),h=i.get(u),y=g instanceof o,m=[];if(y){var v=h.getChildKeys(),b=s(u,i);h.getNextSiblingKey()&&(m=m.concat(b)),v.isEmpty()||(m=m.concat(b.concat([u]))),m=m.concat(s(r(h,i),i))}n=g===h?f(g.getCharacterList(),l,d):g.getCharacterList().slice(0,l).concat(h.getCharacterList().slice(d));var S=g.merge({text:g.getText().slice(0,l)+h.getText().slice(d),characterList:n}),M=y&&0===l&&0===d&&h.getParentKey()===c&&null==h.getPrevSiblingKey()?a([[c,null]]):i.toSeq().skipUntil(function(t,e){return e===c}).takeUntil(function(t,e){return e===u}).filter(function(t,e){return-1===m.indexOf(e)}).concat(a([[u,null]])).map(function(t,e){return e===c?S:null}),w=i.merge(M).filter(function(t){return!!t});return y&&g!==h&&(w=p(w,g,h,i)),t.merge({blockMap:w,selectionBefore:e,selectionAfter:e.merge({anchorKey:c,anchorOffset:l,focusKey:c,focusOffset:l,isBackward:!1})})}},887:function(t,e,n){"use strict";var o=n(312),r=n(320),i=n(285),a=n(287),c=n(592),s=i.List,l=i.Map,u=function(t,e,n){if(t){var o=e.get(t);o&&e.set(t,n(o))}};t.exports=function(t,e){e.isCollapsed()||a(!1);var n=e.getAnchorKey(),i=t.getBlockMap(),p=i.get(n),f=p.getText();if(!f){var d=p.getType();if("unordered-list-item"===d||"ordered-list-item"===d)return c(t,e,function(t){return t.merge({type:"unstyled",depth:0})})}var g=e.getAnchorOffset(),h=p.getCharacterList(),y=r(),m=p instanceof o,v=p.merge({text:f.slice(0,g),characterList:h.slice(0,g)}),b=v.merge({key:y,text:f.slice(g),characterList:h.slice(g),data:l()}),S=i.toSeq().takeUntil(function(t){return t===p}),M=i.toSeq().skipUntil(function(t){return t===p}).rest(),w=S.concat([[n,v],[y,b]],M).toOrderedMap();return m&&(p.getChildKeys().isEmpty()||a(!1),w=function(t,e,n){return t.withMutations(function(t){var o=e.getKey(),r=n.getKey();u(e.getParentKey(),t,function(t){var e=t.getChildKeys(),n=e.indexOf(o)+1,i=e.toArray();return i.splice(n,0,r),t.merge({children:s(i)})}),u(e.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:r})}),u(o,t,function(t){return t.merge({nextSibling:r})}),u(r,t,function(t){return t.merge({prevSibling:o})})})}(w,v,b)),t.merge({blockMap:w,selectionBefore:e,selectionAfter:e.merge({anchorKey:y,anchorOffset:0,focusKey:y,focusOffset:0,isBackward:!1})})}},888:function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=n(374),i=n(594),a=n(285),c=a.List,s=a.Repeat,l=a.Record,u=function(){return!0},p=l({start:null,end:null}),f=l({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(t,e,n){var o=e.getLength();if(!o)return c.of(new f({start:0,end:0,decoratorKey:null,leaves:c.of(new p({start:0,end:0}))}));var i=[],a=n?n.getDecorations(e,t):c(s(null,o)),l=e.getCharacterList();return r(a,h,u,function(t,e){i.push(new f({start:t,end:e,decoratorKey:a.get(t),leaves:g(l.slice(t,e).toList(),t)}))}),c(i)},fromJS:function(t){var e=t.leaves,n=function(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,["leaves"]);return new f(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}({},n,{leaves:null!=e?c(Array.isArray(e)?e:i(e)).map(function(t){return p(t)}):null}))}};function g(t,e){var n=[],o=t.map(function(t){return t.getStyle()}).toList();return r(o,h,u,function(t,o){n.push(new p({start:t+e,end:o+e}))}),c(n)}function h(t,e){return t===e}t.exports=d},889:function(t,e,n){"use strict";t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})}},890:function(t,e,n){"use strict";var o,r=n(891),i=n(285),a=n(303),c=i.OrderedMap,s={getDirectionMap:function(t,e){o?o.reset():o=new r;var n=t.getBlockMap(),s=n.valueSeq().map(function(t){return a(o).getDirection(t.getText())}),l=c(n.keySeq().zip(s));return null!=e&&i.is(e,l)?e:l}};t.exports=s},891:function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=n(469),i=n(416),a=n(287),c=function(){function t(t){o(this,"_defaultDir",void 0),o(this,"_lastDir",void 0),t?i.isStrong(t)||a(!1):t=i.getGlobalDir(),this._defaultDir=t,this.reset()}var e=t.prototype;return e.reset=function(){this._lastDir=this._defaultDir},e.getDirection=function(t){return this._lastDir=r.getDirection(t,this._lastDir),this._lastDir},t}();t.exports=c},892:function(t,e,n){"use strict";var o=n(312),r=n(593),i=n(285),a=n(287),c=i.OrderedMap,s=i.List,l=function(t,e,n){if(t){var o=e.get(t);o&&e.set(t,n(o))}},u=function(t,e,n,o,r){if(!r)return t;var i="after"===o,a=e.getKey(),c=n.getKey(),u=e.getParentKey(),p=e.getNextSiblingKey(),f=e.getPrevSiblingKey(),d=n.getParentKey(),g=i?n.getNextSiblingKey():c,h=i?c:n.getPrevSiblingKey();return t.withMutations(function(t){l(u,t,function(t){var e=t.getChildKeys();return t.merge({children:e.delete(e.indexOf(a))})}),l(f,t,function(t){return t.merge({nextSibling:p})}),l(p,t,function(t){return t.merge({prevSibling:f})}),l(g,t,function(t){return t.merge({prevSibling:a})}),l(h,t,function(t){return t.merge({nextSibling:a})}),l(d,t,function(t){var e=t.getChildKeys(),n=e.indexOf(c),o=i?n+1:0!==n?n-1:0,r=e.toArray();return r.splice(o,0,a),t.merge({children:s(r)})}),l(a,t,function(t){return t.merge({nextSibling:g,prevSibling:h,parent:d})})})};t.exports=function(t,e,n,i){"replace"===i&&a(!1);var s=n.getKey(),l=e.getKey();l===s&&a(!1);var p=t.getBlockMap(),f=e instanceof o,d=[e],g=p.delete(l);f&&(d=[],g=p.withMutations(function(t){var n=e.getNextSiblingKey(),o=r(e,t);t.toSeq().skipUntil(function(t){return t.getKey()===l}).takeWhile(function(t){var e=t.getKey(),r=e===l,i=n&&e!==n,a=!n&&t.getParentKey()&&(!o||e!==o);return!!(r||i||a)}).forEach(function(e){d.push(e),t.delete(e.getKey())})}));var h=g.toSeq().takeUntil(function(t){return t===n}),y=g.toSeq().skipUntil(function(t){return t===n}).skip(1),m=d.map(function(t){return[t.getKey(),t]}),v=c();if("before"===i){var b=t.getBlockBefore(s);b&&b.getKey()===e.getKey()&&a(!1),v=h.concat([].concat(m,[[s,n]]),y).toOrderedMap()}else if("after"===i){var S=t.getBlockAfter(s);S&&S.getKey()===l&&a(!1),v=h.concat([[s,n]].concat(m),y).toOrderedMap()}return t.merge({blockMap:u(v,e,n,i,f),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:l,focusKey:l})})}},893:function(t,e,n){"use strict";var o=n(285).List,r=function(){function t(t){var e,n,o;o=void 0,(n="_decorators")in(e=this)?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,this._decorators=t.slice()}var e=t.prototype;return e.getDecorations=function(t,e){var n=Array(t.getText().length).fill(null);return this._decorators.forEach(function(o,r){var i=0;(0,o.strategy)(t,function(t,e){(function(t,e,n){for(var o=e;o<n;o++)if(null!=t[o])return!1;return!0})(n,t,e)&&(function(t,e,n,o){for(var r=e;r<n;r++)t[r]=o}(n,t,e,r+"."+i),i++)},e)}),o(n)},e.getComponentForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].component},e.getPropsForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].props},t}();t.exports=r},894:function(t,e,n){"use strict";(function(e){var o=n(51);function r(){return(r=o||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){c(t,e,n[e])})}return t}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var l=n(470),u=n(597),p=n(895),f=n(902),d=n(919),g=n(922),h=n(956),y=n(957),m=n(609),v=n(291),b=n(1),S=n(474),M=n(420),w=n(304),C=n(348),k=n(320),E=n(625),_=n(421),j=n(336),x=n(287),D=n(375),N=n(303),L=w.isBrowser("IE"),O=!L,I={edit:g,composite:p,drag:d,cut:null,render:null},T=!1,A=function(t){function e(){return t.apply(this,arguments)||this}s(e,t);var n=e.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var t=this.props.editor;t._latestEditorState=this.props.editorState,t._blockSelectEvents=!0},e}(b.Component),z=function(t){function n(e){var n;return c(a(n=t.call(this,e)||this),"_blockSelectEvents",void 0),c(a(n),"_clipboard",void 0),c(a(n),"_handler",void 0),c(a(n),"_dragCount",void 0),c(a(n),"_internalDrag",void 0),c(a(n),"_editorKey",void 0),c(a(n),"_placeholderAccessibilityID",void 0),c(a(n),"_latestEditorState",void 0),c(a(n),"_latestCommittedEditorState",void 0),c(a(n),"_pendingStateFromBeforeInput",void 0),c(a(n),"_onBeforeInput",void 0),c(a(n),"_onBlur",void 0),c(a(n),"_onCharacterData",void 0),c(a(n),"_onCompositionEnd",void 0),c(a(n),"_onCompositionStart",void 0),c(a(n),"_onCopy",void 0),c(a(n),"_onCut",void 0),c(a(n),"_onDragEnd",void 0),c(a(n),"_onDragOver",void 0),c(a(n),"_onDragStart",void 0),c(a(n),"_onDrop",void 0),c(a(n),"_onInput",void 0),c(a(n),"_onFocus",void 0),c(a(n),"_onKeyDown",void 0),c(a(n),"_onKeyPress",void 0),c(a(n),"_onKeyUp",void 0),c(a(n),"_onMouseDown",void 0),c(a(n),"_onMouseUp",void 0),c(a(n),"_onPaste",void 0),c(a(n),"_onSelect",void 0),c(a(n),"editor",void 0),c(a(n),"editorContainer",void 0),c(a(n),"focus",void 0),c(a(n),"blur",void 0),c(a(n),"setMode",void 0),c(a(n),"exitCurrentMode",void 0),c(a(n),"restoreEditorDOM",void 0),c(a(n),"setClipboard",void 0),c(a(n),"getClipboard",void 0),c(a(n),"getEditorKey",void 0),c(a(n),"update",void 0),c(a(n),"onDragEnter",void 0),c(a(n),"onDragLeave",void 0),c(a(n),"_handleEditorContainerRef",function(t){n.editorContainer=t,n.editor=null!==t?t.firstChild:null}),c(a(n),"focus",function(t){var e=n.props.editorState,o=e.getSelection().getHasFocus(),r=n.editor;if(r){var i=M.getScrollParent(r),a=t||_(i),c=a.x,s=a.y;D(r)||x(!1),r.focus(),i===window?window.scrollTo(c,s):S.setTop(i,s),o||n.update(v.forceSelection(e,e.getSelection()))}}),c(a(n),"blur",function(){var t=n.editor;t&&(D(t)||x(!1),t.blur())}),c(a(n),"setMode",function(t){var e=n.props,o=e.onPaste,r=e.onCut,a=e.onCopy,c=i({},I.edit);o&&(c.onPaste=o),r&&(c.onCut=r),a&&(c.onCopy=a);var s=i({},I,{edit:c});n._handler=s[t]}),c(a(n),"exitCurrentMode",function(){n.setMode("edit")}),c(a(n),"restoreEditorDOM",function(t){n.setState({contentsKey:n.state.contentsKey+1},function(){n.focus(t)})}),c(a(n),"setClipboard",function(t){n._clipboard=t}),c(a(n),"getClipboard",function(){return n._clipboard}),c(a(n),"update",function(t){n._latestEditorState=t,n.props.onChange(t)}),c(a(n),"onDragEnter",function(){n._dragCount++}),c(a(n),"onDragLeave",function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()}),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=e.editorKey||k(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=e.editorState,n._latestCommittedEditorState=e.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}s(n,t);var o=n.prototype;return o._buildHandler=function(t){var e=this;return function(n){if(!e.props.readOnly){var o=e._handler&&e._handler[t];o&&(h?h(function(){return o(e,n)}):o(e,n))}}},o._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},o._renderPlaceholder=function(){if(this._showPlaceholder()){var t={text:N(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return b.createElement(y,t)}return null},o._renderARIADescribedBy=function(){var t=this.props.ariaDescribedBy||"",e=this._showPlaceholder()?this._placeholderAccessibilityID:"";return t.replace("{{editor_id_placeholder}}",e)||void 0},o.render=function(){var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,o=t.blockStyleFn,a=t.customStyleFn,c=t.customStyleMap,s=t.editorState,l=t.preventScroll,p=t.readOnly,d=t.textAlignment,g=t.textDirectionality,h=C({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===d,"DraftEditor/alignRight":"right"===d,"DraftEditor/alignCenter":"center"===d}),y=this.props.role||"textbox",m="combobox"===y?!!this.props.ariaExpanded:null,v={blockRenderMap:e,blockRendererFn:n,blockStyleFn:o,customStyleMap:i({},u,c),customStyleFn:a,editorKey:this._editorKey,editorState:s,preventScroll:l,textDirectionality:g};return b.createElement("div",{className:h},this._renderPlaceholder(),b.createElement("div",{className:C("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},b.createElement("div",{"aria-activedescendant":p?null:this.props.ariaActiveDescendantID,"aria-autocomplete":p?null:this.props.ariaAutoComplete,"aria-controls":p?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":p?null:m,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":p?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:C({notranslate:!p,"public/DraftEditor/content":!0}),contentEditable:!p,"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:p?null:y,spellCheck:O&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},b.createElement(A,{editor:this,editorState:s}),b.createElement(f,r({},v,{key:"contents"+this.state.contentsKey})))))},o.componentDidMount=function(){this._blockSelectEvents=!1,!T&&j("draft_ods_enabled")&&(T=!0,m.initODS()),this.setMode("edit"),L&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):e.execCommand("AutoUrlDetect",!1,!1))},o.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},n}(b.Component);c(z,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:l,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:E,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),t.exports=z}).call(this,n(106))},895:function(t,e,n){"use strict";var o=n(896),r=n(302),i=n(329),a=n(291),c=n(419),s=n(304),l=n(600),u=n(602),p=n(603),f=n(472),d=n(303),g=s.isBrowser("IE"),h=!1,y=!1,m=null;var v={onCompositionStart:function(t){y=!0,function(t){m||(m=new o(u(t))).start()}(t)},onCompositionEnd:function(t){h=!1,y=!1,setTimeout(function(){h||v.resolveComposition(t)},20)},onSelect:l,onKeyDown:function(t,e){if(!y)return v.resolveComposition(t),void t._onKeyDown(e);e.which!==c.RIGHT&&e.which!==c.LEFT||e.preventDefault()},onKeyPress:function(t,e){e.which===c.RETURN&&e.preventDefault()},resolveComposition:function(t){if(!y){var e=d(m).stopAndFlushMutations();m=null,h=!0;var n=a.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),e.size){var o=n.getCurrentContent();e.forEach(function(t,e){var c=i.decode(e),s=c.blockKey,l=c.decoratorKey,u=c.leafKey,p=n.getBlockTree(s).getIn([l,"leaves",u]),d=p.start,g=p.end,h=n.getSelection().merge({anchorKey:s,focusKey:s,anchorOffset:d,focusOffset:g,isBackward:!1}),y=f(o,h),m=o.getBlockForKey(s).getInlineStyleAt(d);o=r.replaceText(o,h,t,m,y),n=a.set(n,{currentContent:o})});var c=p(n,u(t)).selectionState;t.restoreEditorDOM();var s=g?a.forceSelection(n,c):a.acceptSelection(n,c);t.update(a.push(s,o,"insert-characters"))}else t.update(n)}}};t.exports=v},896:function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=n(304),i=n(417),a=n(599),c=n(285),s=n(287),l=n(303),u=c.Map,p={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},f=r.isBrowser("IE <= 11"),d=function(){function t(t){var e=this;o(this,"observer",void 0),o(this,"container",void 0),o(this,"mutations",void 0),o(this,"onCharData",void 0),this.container=t,this.mutations=u();var n=a(t);n.MutationObserver&&!f?this.observer=new n.MutationObserver(function(t){return e.registerMutations(t)}):this.onCharData=function(t){t.target instanceof Node||s(!1),e.registerMutation({type:"characterData",target:t.target})}}var e=t.prototype;return e.start=function(){this.observer?this.observer.observe(this.container,p):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},e.stopAndFlushMutations=function(){var t=this.observer;t?(this.registerMutations(t.takeRecords()),t.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var e=this.mutations;return this.mutations=u(),e},e.registerMutations=function(t){for(var e=0;e<t.length;e++)this.registerMutation(t[e])},e.getMutationTextContent=function(t){var e=t.type,n=t.target,o=t.removedNodes;if("characterData"===e){if(""!==n.textContent)return f?n.textContent.replace("\n",""):n.textContent}else if("childList"===e){if(o&&o.length)return"";if(""!==n.textContent)return n.textContent}return null},e.registerMutation=function(t){var e=this.getMutationTextContent(t);if(null!=e){var n=l(i(t.target));this.mutations=this.mutations.set(n,e)}},t}();t.exports=d},897:function(t,e,n){"use strict";var o=n(898),r="Unknown",i={"Mac OS":"Mac OS X"};var a,c=(new o).getResult(),s=function(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[1]}}(c.browser.version),l={browserArchitecture:c.cpu.architecture||r,browserFullVersion:c.browser.version||r,browserMinorVersion:s.minor||r,browserName:c.browser.name||r,browserVersion:c.browser.major||r,deviceName:c.device.model||r,engineName:c.engine.name||r,engineVersion:c.engine.version||r,platformArchitecture:c.cpu.architecture||r,platformName:(a=c.os.name,i[a]||a||r),platformVersion:c.os.version||r,platformFullVersion:c.os.version||r};t.exports=l},898:function(t,e,n){var o;!function(r,i){"use strict";var a="model",c="name",s="type",l="vendor",u="version",p="mobile",f="tablet",d="smarttv",g=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},h=function(t,e){return"string"===typeof t&&-1!==y(e).indexOf(y(t))},y=function(t){return t.toLowerCase()},m=function(t,e){if("string"===typeof t)return t=t.replace(/^\s\s*/,"").replace(/\s\s*$/,""),"undefined"===typeof e?t:t.substring(0,255)},v=function(t,e){for(var n,o,r,i,a,c,s=0;s<e.length&&!a;){var l=e[s],u=e[s+1];for(n=o=0;n<l.length&&!a;)if(a=l[n++].exec(t))for(r=0;r<u.length;r++)c=a[++o],"object"===typeof(i=u[r])&&i.length>0?2===i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,c):this[i[0]]=i[1]:3===i.length?"function"!==typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=c?c.replace(i[1],i[2]):void 0:this[i[0]]=c?i[1].call(this,c,i[2]):void 0:4===i.length&&(this[i[0]]=c?i[3].call(this,c.replace(i[1],i[2])):void 0):this[i]=c||void 0;s+=2}},b=function(t,e){for(var n in e)if("object"===typeof e[n]&&e[n].length>0){for(var o=0;o<e[n].length;o++)if(h(e[n][o],t))return"?"===n?void 0:n}else if(h(e[n],t))return"?"===n?void 0:n;return t},S={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2000:"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"},M={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[u,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[u,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,u],[/opios[\/ ]+([\w\.]+)/i],[u,[c,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[u,[c,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[c,u],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[u,[c,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[u,[c,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[u,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[u,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[u,[c,"IE"]],[/yabrowser\/([\w\.]+)/i],[u,[c,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure Browser"],u],[/\bfocus\/([\w\.]+)/i],[u,[c,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[u,[c,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[u,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[u,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[u,[c,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[u,[c,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[u,[c,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 Browser"],u],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],u],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[c,u],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,"Facebook"],u],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[c,u],[/\bgsa\/([\w\.]+) .*safari\//i],[u,[c,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[u,[c,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,"Chrome WebView"],u],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[u,[c,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,u],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[u,[c,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[u,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[u,b,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,u],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],u],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[u,[c,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\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|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[c,u]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",y]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows (ce|mobile); ppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[["architecture",/ower/,"",y]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",y]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[l,"Samsung"],[s,f]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[a,[l,"Samsung"],[s,p]],[/\((ip(?:hone|od)[\w ]*);/i],[a,[l,"Apple"],[s,p]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[l,"Apple"],[s,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[l,"Huawei"],[s,f]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[a,[l,"Huawei"],[s,p]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[a,/_/g," "],[l,"Xiaomi"],[s,p]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[l,"Xiaomi"],[s,f]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[l,"OPPO"],[s,p]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[l,"Vivo"],[s,p]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[l,"Realme"],[s,p]],[/\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],[a,[l,"Motorola"],[s,p]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[l,"Motorola"],[s,f]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[l,"LG"],[s,f]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[l,"LG"],[s,p]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[l,"Lenovo"],[s,f]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[l,"Nokia"],[s,p]],[/(pixel c)\b/i],[a,[l,"Google"],[s,f]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[l,"Google"],[s,p]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[l,"Sony"],[s,p]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[l,"Sony"],[s,f]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[l,"OnePlus"],[s,p]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[l,"Amazon"],[s,f]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[l,"Amazon"],[s,p]],[/(playbook);[-\w\),; ]+(rim)/i],[a,l,[s,f]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[l,"BlackBerry"],[s,p]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[l,"ASUS"],[s,f]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[l,"ASUS"],[s,p]],[/(nexus 9)/i],[a,[l,"HTC"],[s,f]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[l,[a,/_/g," "],[s,p]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[l,"Acer"],[s,f]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[l,"Meizu"],[s,p]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[l,"Sharp"],[s,p]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[l,a,[s,p]],[/(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],[l,a,[s,f]],[/(surface duo)/i],[a,[l,"Microsoft"],[s,f]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[l,"Fairphone"],[s,p]],[/(u304aa)/i],[a,[l,"AT&T"],[s,p]],[/\bsie-(\w*)/i],[a,[l,"Siemens"],[s,p]],[/\b(rct\w+) b/i],[a,[l,"RCA"],[s,f]],[/\b(venue[\d ]{2,7}) b/i],[a,[l,"Dell"],[s,f]],[/\b(q(?:mv|ta)\w+) b/i],[a,[l,"Verizon"],[s,f]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[l,"Barnes & Noble"],[s,f]],[/\b(tm\d{3}\w+) b/i],[a,[l,"NuVision"],[s,f]],[/\b(k88) b/i],[a,[l,"ZTE"],[s,f]],[/\b(nx\d{3}j) b/i],[a,[l,"ZTE"],[s,p]],[/\b(gen\d{3}) b.+49h/i],[a,[l,"Swiss"],[s,p]],[/\b(zur\d{3}) b/i],[a,[l,"Swiss"],[s,f]],[/\b((zeki)?tb.*\b) b/i],[a,[l,"Zeki"],[s,f]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[l,"Dragon Touch"],a,[s,f]],[/\b(ns-?\w{0,9}) b/i],[a,[l,"Insignia"],[s,f]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[l,"NextBook"],[s,f]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[l,"Voice"],a,[s,p]],[/\b(lvtel\-)?(v1[12]) b/i],[[l,"LvTel"],a,[s,p]],[/\b(ph-1) /i],[a,[l,"Essential"],[s,p]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[l,"Envizen"],[s,f]],[/\b(trio[-\w\. ]+) b/i],[a,[l,"MachSpeed"],[s,f]],[/\btu_(1491) b/i],[a,[l,"Rotor"],[s,f]],[/(shield[\w ]+) b/i],[a,[l,"Nvidia"],[s,f]],[/(sprint) (\w+)/i],[l,a,[s,p]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[l,"Microsoft"],[s,p]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[l,"Zebra"],[s,f]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[l,"Zebra"],[s,p]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[l,a,[s,"console"]],[/droid.+; (shield) bui/i],[a,[l,"Nvidia"],[s,"console"]],[/(playstation [345portablevi]+)/i],[a,[l,"Sony"],[s,"console"]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[l,"Microsoft"],[s,"console"]],[/smart-tv.+(samsung)/i],[l,[s,d]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[l,"Samsung"],[s,d]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[l,"LG"],[s,d]],[/(apple) ?tv/i],[l,[a,"Apple TV"],[s,d]],[/crkey/i],[[a,"Chromecast"],[l,"Google"],[s,d]],[/droid.+aft(\w)( bui|\))/i],[a,[l,"Amazon"],[s,d]],[/\(dtv[\);].+(aquos)/i],[a,[l,"Sharp"],[s,d]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[l,m],[a,m],[s,d]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[s,d]],[/((pebble))app/i],[l,a,[s,"wearable"]],[/droid.+; (glass) \d/i],[a,[l,"Google"],[s,"wearable"]],[/droid.+; (wt63?0{2,3})\)/i],[a,[l,"Zebra"],[s,"wearable"]],[/(quest( 2)?)/i],[a,[l,"Facebook"],[s,"wearable"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[l,[s,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[a,[s,p]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[s,f]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[s,f]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[s,p]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[l,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[u,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[u,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[c,u],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[u,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,u],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[c,[u,b,S]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[c,"Windows"],[u,b,S]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[u,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,"Mac OS"],[u,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[u,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,u],[/\(bb(10);/i],[u,[c,"BlackBerry"]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[u,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[u,[c,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[u,[c,"webOS"]],[/crkey\/([\d\.]+)/i],[u,[c,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[c,"Chromium OS"],u],[/(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],[c,u],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],u],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[c,u]]},w=function t(e,n){if("object"===typeof e&&(n=e,e=void 0),!(this instanceof t))return new t(e,n).getResult();var o=e||("undefined"!==typeof r&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:""),i=n?function(t,e){var n={};for(var o in t)e[o]&&e[o].length%2===0?n[o]=e[o].concat(t[o]):n[o]=t[o];return n}(M,n):M;return this.getBrowser=function(){var t,e={};return e.name=void 0,e.version=void 0,v.call(e,o,i.browser),e.major="string"===typeof(t=e.version)?t.replace(/[^\d\.]/g,"").split(".")[0]:void 0,e},this.getCPU=function(){var t={architecture:void 0};return v.call(t,o,i.cpu),t},this.getDevice=function(){var t={vendor:void 0,model:void 0,type:void 0};return v.call(t,o,i.device),t},this.getEngine=function(){var t={name:void 0,version:void 0};return v.call(t,o,i.engine),t},this.getOS=function(){var t={name:void 0,version:void 0};return v.call(t,o,i.os),t},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 o},this.setUA=function(t){return o="string"===typeof t&&t.length>255?m(t,255):t,this},this.setUA(o),this};w.VERSION="0.7.31",w.BROWSER=g([c,u,"major"]),w.CPU=g(["architecture"]),w.DEVICE=g([a,l,s,"console",p,d,f,"wearable","embedded"]),w.ENGINE=w.OS=g([c,u]),"undefined"!==typeof e?("undefined"!==typeof t&&t.exports&&(e=t.exports=w),e.UAParser=w):n(471)?void 0===(o=function(){return w}.call(e,n,e,t))||(t.exports=o):"undefined"!==typeof r&&(r.UAParser=w);var C="undefined"!==typeof r&&(r.jQuery||r.Zepto);if(C&&!C.ua){var k=new w;C.ua=k.getResult(),C.ua.get=function(){return k.getUA()},C.ua.set=function(t){k.setUA(t);var e=k.getResult();for(var n in e)C.ua[n]=e[n]}}}("object"===typeof window?window:this)},899:function(t,e,n){"use strict";var o=n(287),r=/\./,i=/\|\|/,a=/\s+\-\s+/,c=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,s=/^(\d*)(.*)/;function l(t,e){var n=t.split(i);return n.length>1?n.some(function(t){return S.contains(t,e)}):function(t,e){var n=t.split(a);if(n.length>0&&n.length<=2||o(!1),1===n.length)return u(n[0],e);var r=n[0],i=n[1];return h(r)&&h(i)||o(!1),u(">="+r,e)&&u("<="+i,e)}(t=n[0].trim(),e)}function u(t,e){if(""===(t=t.trim()))return!0;var n=e.split(r),o=d(t),i=o.modifier,a=o.rangeComponents;switch(i){case"<":return p(n,a);case"<=":return function(t,e){var n=b(t,e);return-1===n||0===n}(n,a);case">=":return f(n,a);case">":return 1===b(n,a);case"~":case"~>":return function(t,e){var n=e.slice(),o=e.slice();o.length>1&&o.pop();var r=o.length-1,i=parseInt(o[r],10);g(i)&&(o[r]=i+1+"");return f(t,n)&&p(t,o)}(n,a);default:return function(t,e){return 0===b(t,e)}(n,a)}}function p(t,e){return-1===b(t,e)}function f(t,e){var n=b(t,e);return 1===n||0===n}function d(t){var e=t.split(r),n=e[0].match(c);return n||o(!1),{modifier:n[1],rangeComponents:[n[2]].concat(e.slice(1))}}function g(t){return!isNaN(t)&&isFinite(t)}function h(t){return!d(t).modifier}function y(t,e){for(var n=t.length;n<e;n++)t[n]="0"}function m(t,e){var n=t.match(s)[1],o=e.match(s)[1],r=parseInt(n,10),i=parseInt(o,10);return g(r)&&g(i)&&r!==i?v(r,i):v(t,e)}function v(t,e){return typeof t!==typeof e&&o(!1),t>e?1:t<e?-1:0}function b(t,e){for(var n=function(t,e){y(t=t.slice(),(e=e.slice()).length);for(var n=0;n<e.length;n++){var o=e[n].match(/^[x*]$/i);if(o&&(e[n]=t[n]="0","*"===o[0]&&n===e.length-1))for(var r=n;r<t.length;r++)t[r]="0"}return y(e,t.length),[t,e]}(t,e),o=n[0],r=n[1],i=0;i<r.length;i++){var a=m(o[i],r[i]);if(a)return a}return 0}var S={contains:function(t,e){return l(t.trim(),e.trim())}};t.exports=S},900:function(t,e,n){"use strict";var o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){if(!t)return null;var r={};for(var i in t)o.call(t,i)&&(r[i]=e.call(n,t[i],i,t));return r}},901:function(t,e,n){"use strict";t.exports=function(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}},902:function(t,e,n){"use strict";var o=n(336)("draft_tree_data_support");t.exports=n(o?903:917)},903:function(t,e,n){"use strict";var o=n(51);function r(){return(r=o||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}var i=n(904),a=n(329),c=n(1),s=n(303),l=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var l=o.prototype;return l.shouldComponentUpdate=function(t){var e=this.props.editorState,n=t.editorState;if(e.getDirectionMap()!==n.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var o=n.getNativelyRenderedContent(),r=e.isInCompositionMode(),i=n.isInCompositionMode();if(e===n||null!==o&&n.getCurrentContent()===o||r&&i)return!1;var a=e.getCurrentContent(),c=n.getCurrentContent(),s=e.getDecorator(),l=n.getDecorator();return r!==i||a!==c||s!==l||n.mustForceSelection()},l.render=function(){for(var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,o=t.blockStyleFn,l=t.customStyleMap,u=t.customStyleFn,p=t.editorState,f=t.editorKey,d=t.textDirectionality,g=p.getCurrentContent(),h=p.getSelection(),y=p.mustForceSelection(),m=p.getDecorator(),v=s(p.getDirectionMap()),b=[],S=g.getBlocksAsArray()[0];S;){var M=S.getKey(),w={blockRenderMap:e,blockRendererFn:n,blockStyleFn:o,contentState:g,customStyleFn:u,customStyleMap:l,decorator:m,editorKey:f,editorState:p,forceSelection:y,selection:h,block:S,direction:d||v.get(M),tree:p.getBlockTree(M)},C=(e.get(S.getType())||e.get("unstyled")).wrapper;b.push({block:c.createElement(i,r({key:M},w)),wrapperTemplate:C,key:M,offsetKey:a.encode(M,0,0)});var k=S.getNextSiblingKey();S=k?g.getBlockForKey(k):null}for(var E=[],_=0;_<b.length;){var j=b[_];if(j.wrapperTemplate){var x=[];do{x.push(b[_].block),_++}while(_<b.length&&b[_].wrapperTemplate===j.wrapperTemplate);var D=c.cloneElement(j.wrapperTemplate,{key:j.key+"-wrap","data-offset-key":j.offsetKey},x);E.push(D)}else E.push(j.block),_++}return c.createElement("div",{"data-contents":"true"},E)},o}(c.Component);t.exports=l},904:function(t,e,n){"use strict";var o=n(51);function r(){return(r=o||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=n(905),s=n(329),l=n(1),u=n(474),p=n(420),f=n(611),d=n(421),g=n(612),h=n(285),y=n(287),m=n(375),v=(h.List,function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e}),b=function(t,e){var n=e.get(t.getType())||e.get("unstyled"),o=n.wrapper;return{Element:n.element||e.get("unstyled").element,wrapperTemplate:o}},S=function(t,e){var n=e(t);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},M=function(t,e,n,o,r,a){var c={"data-block":!0,"data-editor":e,"data-offset-key":n,key:t.getKey(),ref:a},s=o(t);return s&&(c.className=s),void 0!==r.customEditable&&(c=i({},c,{contentEditable:r.customEditable,suppressContentEditableWarning:!0})),c},w=function(t){var e,n;function o(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return a(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(o))||this),"wrapperRef",l.createRef()),e}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var h=o.prototype;return h.shouldComponentUpdate=function(t){var e=this.props,n=e.block,o=e.direction,r=e.tree,i=!n.getChildKeys().isEmpty(),a=n!==t.block||r!==t.tree||o!==t.direction||v(t.selection,t.block.getKey())&&t.forceSelection;return i||a},h.componentDidMount=function(){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var o,r=p.getScrollParent(n),i=d(r);if(r===window){var a=f(n);(o=a.y+a.height-g().height)>0&&window.scrollTo(i.x,i.y+o+10)}else{m(n)||y(!1);var c=n;(o=c.offsetHeight+c.offsetTop-(r.offsetHeight+i.y))>0&&u.setTop(r,u.getTop(r)+o+10)}}}},h.render=function(){var t=this,e=this.props,n=e.block,a=e.blockRenderMap,u=e.blockRendererFn,p=e.blockStyleFn,f=e.contentState,d=e.decorator,g=e.editorKey,h=e.editorState,y=e.customStyleFn,m=e.customStyleMap,w=e.direction,C=e.forceSelection,k=e.selection,E=e.tree,_=null;n.children.size&&(_=n.children.reduce(function(e,n){var r=s.encode(n,0,0),c=f.getBlockForKey(n),d=S(c,u),y=d.CustomComponent||o,m=b(c,a),v=m.Element,w=m.wrapperTemplate,C=M(c,g,r,p,d,null),k=i({},t.props,{tree:h.getBlockTree(n),blockProps:d.customProps,offsetKey:r,block:c});return e.push(l.createElement(v,C,l.createElement(y,k))),!w||function(t,e){var n=t.getNextSiblingKey();return!!n&&e.getBlockForKey(n).getType()===t.getType()}(c,f)?e:(function(t,e,n){var o=[],r=!0,i=!1,a=void 0;try{for(var c,u=n.reverse()[Symbol.iterator]();!(r=(c=u.next()).done);r=!0){var p=c.value;if(p.type!==e)break;o.push(p)}}catch(g){i=!0,a=g}finally{try{r||null==u.return||u.return()}finally{if(i)throw a}}n.splice(n.indexOf(o[0]),o.length+1);var f=o.reverse(),d=f[0].key;n.push(l.cloneElement(t,{key:"".concat(d,"-wrap"),"data-offset-key":s.encode(d,0,0)},f))}(w,v,e),e)},[]));var j=n.getKey(),x=s.encode(j,0,0),D=S(n,u),N=D.CustomComponent,L=null!=N?l.createElement(N,r({},this.props,{tree:h.getBlockTree(j),blockProps:D.customProps,offsetKey:x,block:n})):l.createElement(c,{block:n,children:_,contentState:f,customStyleFn:y,customStyleMap:m,decorator:d,direction:w,forceSelection:C,hasSelection:v(k,j),selection:k,tree:E});if(n.getParentKey())return L;var O=b(n,a).Element,I=M(n,g,x,p,D,this.wrapperRef);return l.createElement(O,I,L)},o}(l.Component);t.exports=w},905:function(t,e,n){"use strict";var o=n(906),r=n(607),i=n(329),a=n(285),c=n(1),s=n(348),l=(a.List,function(t){var e,n;function a(){return t.apply(this,arguments)||this}return n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,a.prototype.render=function(){var t=this.props,e=t.block,n=t.contentState,a=t.customStyleFn,l=t.customStyleMap,u=t.decorator,p=t.direction,f=t.forceSelection,d=t.hasSelection,g=t.selection,h=t.tree,y=e.getKey(),m=e.getText(),v=h.size-1,b=this.props.children||h.map(function(t,s){var h=t.get("decoratorKey"),b=t.get("leaves"),S=b.size-1,M=b.map(function(t,n){var o=i.encode(y,s,n),u=t.get("start"),p=t.get("end");return c.createElement(r,{key:o,offsetKey:o,block:e,start:u,selection:d?g:null,forceSelection:f,text:m.slice(u,p),styleSet:e.getInlineStyleAt(u),customStyleMap:l,customStyleFn:a,isLast:h===v&&n===S})}).toArray();return h&&u?c.createElement(o,{block:e,children:M,contentState:n,decorator:u,decoratorKey:h,direction:p,leafSet:t,text:m,key:s}):M}).toArray();return c.createElement("div",{"data-offset-key":i.encode(y,0,0),className:s({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===p,"public/DraftStyleDefault/rtl":"RTL"===p})},b)},a}(c.Component));t.exports=l},906:function(t,e,n){"use strict";var o=n(51);function r(){return(r=o||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}var i=n(329),a=n(1),c=n(469),s=n(416),l=function(t){var e,n;function o(){return t.apply(this,arguments)||this}return n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,o.prototype.render=function(){var t=this.props,e=t.block,n=t.children,o=t.contentState,l=t.decorator,u=t.decoratorKey,p=t.direction,f=t.leafSet,d=t.text,g=e.getKey(),h=f.get("leaves"),y=l.getComponentForKey(u),m=l.getPropsForKey(u),v=i.encode(g,parseInt(u,10),0),b=d.slice(h.first().get("start"),h.last().get("end")),S=s.getHTMLDirIfDifferent(c.getDirection(b),p);return a.createElement(y,r({},m,{contentState:o,decoratedText:b,dir:S,key:v,entityKey:e.getEntityAt(f.get("start")),offsetKey:v}),n)},o}(a.Component);t.exports=l},907:function(t,e,n){"use strict";function o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(1),a=n(304),c=n(287),s=n(349),l=a.isBrowser("IE <= 11");var u=function(t){var e,n;function a(e){var n;return r(o(n=t.call(this,e)||this),"_forceFlag",void 0),r(o(n),"_node",void 0),n._forceFlag=!1,n}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var u=a.prototype;return u.shouldComponentUpdate=function(t){var e=this._node,n=""===t.children;s(e)||c(!1);var o=e;return n?!function(t){return l?"\n"===t.textContent:"BR"===t.tagName}(o):o.textContent!==t.children},u.componentDidMount=function(){this._forceFlag=!this._forceFlag},u.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},u.render=function(){var t,e=this;return""===this.props.children?this._forceFlag?(t=function(t){return e._node=t},l?i.createElement("span",{key:"A","data-text":"true",ref:t},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:t})):function(t){return l?i.createElement("span",{key:"B","data-text":"true",ref:t},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:t})}(function(t){return e._node=t}):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return e._node=t}},this.props.children)},a}(i.Component);t.exports=u},908:function(t,e,n){"use strict";var o=n(609),r=n(601),i=n(304),a=n(473),c=n(610),s=n(418),l=n(287),u=n(349),p=i.isBrowser("IE");function f(t,e){if(!t)return"[empty]";var n=function t(e,n){var o=void 0!==n?n(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return s(e).createTextNode("[text "+r+(o.length?" | "+o.join(", "):"")+"]")}var i=e.cloneNode();1===i.nodeType&&o.length&&i.setAttribute("data-labels",o.join(", "));var a=e.childNodes;for(var c=0;c<a.length;c++)i.appendChild(t(a[c],n));return i}(t,e);return n.nodeType===Node.TEXT_NODE?n.textContent:(u(n)||l(!1),n.outerHTML)}function d(t,e){for(var n=t,o=n;n;){if(u(n)&&o.hasAttribute("contenteditable"))return f(n,e);o=n=n.parentNode}return"Could not find contentEditable parent of node"}function g(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function h(t,e,n,o){var i=c();if(t.extend&&null!=e&&a(i,e)){n>g(e)&&r.logSelectionStateFailure({anonymizedDom:d(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(o.toJS())});var s=e===t.focusNode;try{t.rangeCount>0&&t.extend&&t.extend(e,n)}catch(u){throw r.logSelectionStateFailure({anonymizedDom:d(e,function(e){var n=[];return e===i&&n.push("active element"),e===t.anchorNode&&n.push("selection anchor node"),e===t.focusNode&&n.push("selection focus node"),n}),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:s,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:u?""+u:null,offset:n},null,2),selectionState:JSON.stringify(o.toJS(),null,2)}),u}}else if(e&&t.rangeCount>0){var l=t.getRangeAt(0);l.setEnd(e,n),t.addRange(l.cloneRange())}}function y(t,e,n,i){var a=s(e).createRange();if(n>g(e)&&(r.logSelectionStateFailure({anonymizedDom:d(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),o.handleExtensionCausedError()),a.setStart(e,n),p)try{t.addRange(a)}catch(c){0}else t.addRange(a)}t.exports={setDraftEditorSelection:function(t,e,n,o,r){var i=s(e);if(a(i.documentElement,e)){var c=i.defaultView.getSelection(),l=t.getAnchorKey(),u=t.getAnchorOffset(),p=t.getFocusKey(),f=t.getFocusOffset(),d=t.getIsBackward();if(!c.extend&&d){var g=l,m=u;l=p,u=f,p=g,f=m,d=!1}var v=l===n&&o<=u&&r>=u,b=p===n&&o<=f&&r>=f;if(v&&b)return c.removeAllRanges(),y(c,e,u-o,t),void h(c,e,f-o,t);if(d){if(b&&(c.removeAllRanges(),y(c,e,f-o,t)),v){var S=c.focusNode,M=c.focusOffset;c.removeAllRanges(),y(c,e,u-o,t),h(c,S,M,t)}}else v&&(c.removeAllRanges(),y(c,e,u-o,t)),b&&h(c,e,f-o,t)}},addFocusToSelection:h}},909:function(t,e,n){"use strict";var o=n(910);t.exports=function(t){return o(t)&&3==t.nodeType}},910:function(t,e,n){"use strict";t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"===typeof e.Node?t instanceof e.Node:"object"===typeof t&&"number"===typeof t.nodeType&&"string"===typeof t.nodeName))}},911:function(t,e,n){"use strict";var o=n(912),r=n(913);function i(t){return null==t?t:String(t)}t.exports=function(t,e){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(t,null)))return i(n.getPropertyValue(r(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(t,null))return i(n.getPropertyValue(r(e)));if("display"===e)return"none"}return t.currentStyle?i("float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[o(e)]):i(t.style&&t.style[o(e)])}},912:function(t,e,n){"use strict";var o=/-(.)/g;t.exports=function(t){return t.replace(o,function(t,e){return e.toUpperCase()})}},913:function(t,e,n){"use strict";var o=/([A-Z])/g;t.exports=function(t){return t.replace(o,"-$1").toLowerCase()}},914:function(t,e,n){"use strict";var o=n(473);t.exports=function(t){var e=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!o(e,t))return{left:0,right:0,top:0,bottom:0};var n=t.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}}},915:function(t,e,n){"use strict";var o="undefined"!==typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;t.exports=function(t){return(t=t||document).scrollingElement?t.scrollingElement:o||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}},916:function(t,e,n){"use strict";t.exports=function(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}},917:function(t,e,n){"use strict";var o=n(51);function r(){return(r=o||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=n(613),s=n(329),l=n(1),u=n(348),p=n(918),f=n(303),d=function(t,e,n,o){return u({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===t,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===t,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===e,"public/DraftStyleDefault/depth1":1===e,"public/DraftStyleDefault/depth2":2===e,"public/DraftStyleDefault/depth3":3===e,"public/DraftStyleDefault/depth4":e>=4,"public/DraftStyleDefault/listLTR":"LTR"===o,"public/DraftStyleDefault/listRTL":"RTL"===o})},g=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=o.prototype;return a.shouldComponentUpdate=function(t){var e=this.props.editorState,n=t.editorState;if(e.getDirectionMap()!==n.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var o=n.getNativelyRenderedContent(),r=e.isInCompositionMode(),i=n.isInCompositionMode();if(e===n||null!==o&&n.getCurrentContent()===o||r&&i)return!1;var a=e.getCurrentContent(),c=n.getCurrentContent(),s=e.getDecorator(),l=n.getDecorator();return r!==i||a!==c||s!==l||n.mustForceSelection()},a.render=function(){for(var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,o=t.blockStyleFn,a=t.customStyleMap,u=t.customStyleFn,g=t.editorState,h=t.editorKey,y=t.preventScroll,m=t.textDirectionality,v=g.getCurrentContent(),b=g.getSelection(),S=g.mustForceSelection(),M=g.getDecorator(),w=f(g.getDirectionMap()),C=v.getBlocksAsArray(),k=[],E=null,_=null,j=0;j<C.length;j++){var x=C[j],D=x.getKey(),N=x.getType(),L=n(x),O=void 0,I=void 0,T=void 0;L&&(O=L.component,I=L.props,T=L.editable);var A=m||w.get(D),z=s.encode(D,0,0),B={contentState:v,block:x,blockProps:I,blockStyleFn:o,customStyleMap:a,customStyleFn:u,decorator:M,direction:A,forceSelection:S,offsetKey:z,preventScroll:y,selection:b,tree:g.getBlockTree(D)},P=e.get(N)||e.get("unstyled"),R=P.wrapper,F=P.element||e.get("unstyled").element,U=x.getDepth(),K="";if(o&&(K=o(x)),"li"===F)K=p(K,d(N,U,_!==R||null===E||U>E,A));var Y=O||c,H={className:K,"data-block":!0,"data-editor":h,"data-offset-key":z,key:D};void 0!==T&&(H=i({},H,{contentEditable:T,suppressContentEditableWarning:!0}));var Q=l.createElement(F,H,l.createElement(Y,r({},B,{key:D})));k.push({block:Q,wrapperTemplate:R,key:D,offsetKey:z}),E=R?x.getDepth():null,_=R}for(var Z=[],W=0;W<k.length;){var G=k[W];if(G.wrapperTemplate){var q=[];do{q.push(k[W].block),W++}while(W<k.length&&k[W].wrapperTemplate===G.wrapperTemplate);var V=l.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},q);Z.push(V)}else Z.push(G.block),W++}return l.createElement("div",{"data-contents":"true"},Z)},o}(l.Component);t.exports=g},918:function(t,e,n){"use strict";t.exports=function(t){var e=t||"",n=arguments.length;if(n>1)for(var o=1;o<n;o++){var r=arguments[o];r&&(e=(e?e+" ":"")+r)}return e}},919:function(t,e,n){"use strict";var o=n(614),r=n(302),i=n(291),a=n(417),c=n(418),s=n(616),l=n(605),u=n(599),p=n(422),f=n(303);var d={onDragEnd:function(t){t.exitCurrentMode(),g(t)},onDrop:function(t,e){var n=new o(e.nativeEvent.dataTransfer),u=t._latestEditorState,d=function(t,e){var n=null,o=null,r=c(t.currentTarget);if("function"===typeof r.caretRangeFromPoint){var i=r.caretRangeFromPoint(t.x,t.y);n=i.startContainer,o=i.startOffset}else{if(!t.rangeParent)return null;n=t.rangeParent,o=t.rangeOffset}n=f(n),o=f(o);var s=f(a(n));return l(e,s,o,s,o)}(e.nativeEvent,u);if(e.preventDefault(),t._dragCount=0,t.exitCurrentMode(),null!=d){var y=n.getFiles();if(y.length>0){if(t.props.handleDroppedFiles&&p(t.props.handleDroppedFiles(d,y)))return;s(y,function(e){e&&t.update(h(u,d,e))})}else{var m=t._internalDrag?"internal":"external";t.props.handleDrop&&p(t.props.handleDrop(d,n,m))||(t._internalDrag?t.update(function(t,e){var n=r.moveText(t.getCurrentContent(),t.getSelection(),e);return i.push(t,n,"insert-fragment")}(u,d)):t.update(h(u,d,n.getText()))),g(t)}}}};function g(t){t._internalDrag=!1;var e=t.editorContainer;if(e){var n=new MouseEvent("mouseup",{view:u(e),bubbles:!0,cancelable:!0});e.dispatchEvent(n)}}function h(t,e,n){var o=r.insertText(t.getCurrentContent(),e,n,t.getCurrentInlineStyle());return i.push(t,o,"insert-fragment")}t.exports=d},920:function(t,e,n){"use strict";var o={isImage:function(t){return"image"===r(t)[0]},isJpeg:function(t){var e=r(t);return o.isImage(t)&&("jpeg"===e[1]||"pjpeg"===e[1])}};function r(t){return t.split("/")}t.exports=o},921:function(t,e,n){"use strict";var o=n(287);t.exports=function(t){return function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}(t)?Array.isArray(t)?t.slice():function(t){var e=t.length;if((Array.isArray(t)||"object"!==typeof t&&"function"!==typeof t)&&o(!1),"number"!==typeof e&&o(!1),0===e||e-1 in t||o(!1),"function"===typeof t.callee&&o(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(i){}for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}(t):[t]}},922:function(t,e,n){"use strict";var o=n(304),r=n(923),i=n(926),a=n(927),c=n(928),s=n(929),l=n(931),u=n(932),p=n(933),f=n(934),d=n(935),g=n(949),h=n(600),y=o.isBrowser("Chrome"),m=o.isBrowser("Firefox"),v=y||m?h:function(t){},b={onBeforeInput:r,onBlur:i,onCompositionStart:a,onCopy:c,onCut:s,onDragOver:l,onDragStart:u,onFocus:p,onInput:f,onKeyDown:d,onPaste:g,onSelect:h,onMouseUp:v,onKeyUp:v};t.exports=b},923:function(t,e,n){"use strict";var o=n(302),r=n(291),i=n(304),a=n(472),c=n(422),s=n(924),l=n(303),u=n(925),p="'",f="/",d=i.isBrowser("Firefox");function g(t,e,n,i,a){var c=o.replaceText(t.getCurrentContent(),t.getSelection(),e,n,i);return r.push(t,c,"insert-characters",a)}t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var n=t._latestEditorState,o=e.data;if(o)if(t.props.handleBeforeInput&&c(t.props.handleBeforeInput(o,n,e.timeStamp)))e.preventDefault();else{var i=n.getSelection(),h=i.getStartOffset(),y=i.getAnchorKey();if(!i.isCollapsed())return e.preventDefault(),void t.update(g(n,o,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));var m,v=g(n,o,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),b=!1;if(b||(b=s(t._latestCommittedEditorState)),!b){var S=n.getBlockTree(y),M=v.getBlockTree(y);b=S.size!==M.size||S.zip(M).some(function(t){var e=t[0],n=t[1],r=e.get("start"),i=r+(r>=h?o.length:0),a=e.get("end"),c=a+(a>=h?o.length:0),s=n.get("start"),l=n.get("end"),u=n.get("decoratorKey");return e.get("decoratorKey")!==u||e.get("leaves").size!==n.get("leaves").size||i!==s||c!==l||null!=u&&l-s!==a-r})}if(b||(m=o,b=d&&(m==p||m==f)),b||(b=l(v.getDirectionMap()).get(y)!==l(n.getDirectionMap()).get(y)),b)return e.preventDefault(),v=r.set(v,{forceSelection:!0}),void t.update(v);v=r.set(v,{nativelyRenderedContent:v.getCurrentContent()}),t._pendingStateFromBeforeInput=v,u(function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)})}}},924:function(t,e,n){"use strict";t.exports=function(t){var e=t.getSelection(),n=e.getAnchorKey(),o=t.getBlockTree(n),r=e.getStartOffset(),i=!1;return o.some(function(t){return r===t.get("start")?(i=!0,!0):r<t.get("end")&&t.get("leaves").some(function(t){var e=t.get("start");return r===e&&(i=!0,!0)})}),i}},925:function(t,e,n){"use strict";(function(e){n(515),t.exports=e.setImmediate}).call(this,n(106))},926:function(t,e,n){"use strict";var o=n(291),r=n(473),i=n(610);t.exports=function(t,e){var n=e.currentTarget.ownerDocument;if(!Boolean(t.props.preserveSelectionOnBlur)&&i(n)===n.body){var a=n.defaultView.getSelection(),c=t.editor;1===a.rangeCount&&r(c,a.anchorNode)&&r(c,a.focusNode)&&a.removeAllRanges()}var s=t._latestEditorState,l=s.getSelection();if(l.getHasFocus()){var u=l.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(e),t.update(o.acceptSelection(s,u))}}},927:function(t,e,n){"use strict";var o=n(291);t.exports=function(t,e){t.setMode("composite"),t.update(o.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)}},928:function(t,e,n){"use strict";var o=n(617);t.exports=function(t,e){t._latestEditorState.getSelection().isCollapsed()?e.preventDefault():t.setClipboard(o(t._latestEditorState))}},929:function(t,e,n){"use strict";var o=n(302),r=n(291),i=n(420),a=n(617),c=n(421),s=n(930);t.exports=function(t,e){var n,l=t._latestEditorState,u=l.getSelection(),p=e.target;if(u.isCollapsed())e.preventDefault();else{if(s(p)){var f=p;n=c(i.getScrollParent(f))}var d=a(l);t.setClipboard(d),t.setMode("cut"),setTimeout(function(){t.restoreEditorDOM(n),t.exitCurrentMode(),t.update(function(t){var e=o.removeRange(t.getCurrentContent(),t.getSelection(),"forward");return r.push(t,e,"remove-range")}(l))},0)}}},930:function(t,e,n){"use strict";t.exports=function(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){var e=t;if(!e.ownerDocument.defaultView)return e instanceof Node;if(e instanceof e.ownerDocument.defaultView.Node)return!0}return!1}},931:function(t,e,n){"use strict";t.exports=function(t,e){t.setMode("drag"),e.preventDefault()}},932:function(t,e,n){"use strict";t.exports=function(t){t._internalDrag=!0,t.setMode("drag")}},933:function(t,e,n){"use strict";var o=n(291),r=n(304);t.exports=function(t,e){var n=t._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(e),r.isBrowser("Chrome < 60.0.3081.0")?t.update(o.forceSelection(n,a)):t.update(o.acceptSelection(n,a))}}},934:function(t,e,n){"use strict";var o=n(302),r=n(329),i=n(291),a=n(304),c=n(606).notEmptyKey,s=n(417),l=n(618),u=n(303),p=a.isEngine("Gecko"),f="\n\n";t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var n=t.editor.ownerDocument.defaultView.getSelection(),a=n.anchorNode,d=n.isCollapsed,g=(null===a||void 0===a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null===a||void 0===a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!g){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var h=a.parentNode;if(null==h)return;a.nodeValue=h.textContent;for(var y=h.firstChild;null!=y;y=y.nextSibling)y!==a&&h.removeChild(y)}var m=a.textContent,v=t._latestEditorState,b=u(s(a)),S=r.decode(b),M=S.blockKey,w=S.decoratorKey,C=S.leafKey,k=v.getBlockTree(M).getIn([w,"leaves",C]),E=k.start,_=k.end,j=v.getCurrentContent(),x=j.getBlockForKey(M),D=x.getText().slice(E,_);if(m.endsWith(f)&&(m=m.slice(0,-1)),m!==D){var N,L,O,I,T=v.getSelection(),A=T.merge({anchorOffset:E,focusOffset:_,isBackward:!1}),z=x.getEntityAt(E),B=c(z)?j.getEntity(z):null,P="MUTABLE"===(null!=B?B.getMutability():null),R=P?"spellcheck-change":"apply-entity",F=o.replaceText(j,A,m,x.getInlineStyleAt(E),P?x.getEntityAt(E):null);if(p)N=n.anchorOffset,L=n.focusOffset,I=(O=E+Math.min(N,L))+Math.abs(N-L),N=O,L=I;else{var U=m.length-D.length;O=T.getStartOffset(),I=T.getEndOffset(),N=d?I+U:O,L=I+U}var K=F.merge({selectionBefore:j.getSelectionAfter(),selectionAfter:T.merge({anchorOffset:N,focusOffset:L})});t.update(i.push(v,K,R))}else{var Y=e.nativeEvent.inputType;if(Y){var H=function(t,e){switch(t){case"deleteContentBackward":return l(e)}return e}(Y,v);if(H!==v)return t.restoreEditorDOM(),void t.update(H)}}}}},935:function(t,e,n){"use strict";var o=n(302),r=n(291),i=n(477),a=n(419),c=n(937),s=n(304),l=n(422),u=n(938),p=n(940),f=n(942),d=n(943),g=n(944),h=n(945),y=n(618),m=n(946),v=n(947),b=n(948),S=i.isOptionKeyCommand,M=s.isBrowser("Chrome");t.exports=function(t,e){var n=e.which,i=t._latestEditorState;function s(n){var o=t.props[n];return!!o&&(o(e),!0)}switch(n){case a.RETURN:if(e.preventDefault(),t.props.handleReturn&&l(t.props.handleReturn(e,i)))return;break;case a.ESC:if(e.preventDefault(),s("onEscape"))return;break;case a.TAB:if(s("onTab"))return;break;case a.UP:if(s("onUpArrow"))return;break;case a.RIGHT:if(s("onRightArrow"))return;break;case a.DOWN:if(s("onDownArrow"))return;break;case a.LEFT:if(s("onLeftArrow"))return;break;case a.SPACE:M&&S(e)&&e.preventDefault()}var w=t.props.keyBindingFn(e);if(null!=w&&""!==w)if("undo"!==w){if(e.preventDefault(),!t.props.handleKeyCommand||!l(t.props.handleKeyCommand(w,i,e.timeStamp))){var C=function(t,e,n){switch(t){case"redo":return r.redo(e);case"delete":return m(e);case"delete-word":return f(e);case"backspace":return y(e);case"backspace-word":return p(e);case"backspace-to-start-of-line":return u(e,n);case"split-block":return d(e);case"transpose-characters":return v(e);case"move-selection-to-start-of-block":return h(e);case"move-selection-to-end-of-block":return g(e);case"secondary-cut":return c.cut(e);case"secondary-paste":return c.paste(e);default:return e}}(w,i,e);C!==i&&t.update(C)}}else b(e,i,t.update);else if(n===a.SPACE&&M&&S(e)){var k=o.replaceText(i.getCurrentContent(),i.getSelection(),"\xa0");t.update(r.push(i,k,"insert-characters"))}}},936:function(t,e,n){"use strict";var o=n(419);t.exports=function(t){return t.which===o.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}},937:function(t,e,n){"use strict";var o=n(302),r=n(291),i=n(413),a=n(303),c=null,s={cut:function(t){var e=t.getCurrentContent(),n=t.getSelection(),s=null;if(n.isCollapsed()){var l=n.getAnchorKey(),u=e.getBlockForKey(l).getLength();if(u===n.getAnchorOffset()){var p=e.getKeyAfter(l);if(null==p)return t;s=n.set("focusKey",p).set("focusOffset",0)}else s=n.set("focusOffset",u)}else s=n;s=a(s),c=i(e,s);var f=o.removeRange(e,s,"forward");return f===e?t:r.push(t,f,"remove-range")},paste:function(t){if(!c)return t;var e=o.replaceWithFragment(t.getCurrentContent(),t.getSelection(),c);return r.push(t,e,"insert-fragment")}};t.exports=s},938:function(t,e,n){"use strict";var o=n(291),r=n(939),i=n(604),a=n(475),c=n(376);t.exports=function(t,e){var n=c(t,function(t){var n=t.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return a(t,1);var o=e.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return o=r(o),i(t,null,o.endContainer,o.endOffset,o.startContainer,o.startOffset).selectionState},"backward");return n===t.getCurrentContent()?t:o.push(t,n,"remove-range")}},939:function(t,e,n){"use strict";var o=n(350),r=n(418),i=n(619),a=n(287);function c(t,e){for(var n=1/0,o=1/0,r=-1/0,i=-1/0,a=0;a<t.length;a++){var c=t[a];0!==c.width&&1!==c.width&&(n=Math.min(n,c.top),o=Math.min(o,c.bottom),r=Math.max(r,c.top),i=Math.max(i,c.bottom))}return r<=o&&r-n<e&&i-o<e}function s(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}t.exports=function(t){t.collapsed||a(!1);var e=(t=t.cloneRange()).startContainer;1!==e.nodeType&&(e=e.parentNode);var n=function(t){var e=getComputedStyle(t),n=r(t),o=n.createElement("div");o.style.fontFamily=e.fontFamily,o.style.fontSize=e.fontSize,o.style.fontStyle=e.fontStyle,o.style.fontWeight=e.fontWeight,o.style.lineHeight=e.lineHeight,o.style.position="absolute",o.textContent="M";var i=n.body;i||a(!1),i.appendChild(o);var c=o.getBoundingClientRect();return i.removeChild(o),c.height}(e),l=t.endContainer,u=t.endOffset;for(t.setStart(t.startContainer,0);c(i(t),n)&&(l=t.startContainer,u=t.startOffset,l.parentNode||a(!1),t.setStartBefore(l),1!==l.nodeType||"inline"===getComputedStyle(l).display););for(var p=l,f=u-1;;){for(var d=p.nodeValue,g=f;g>=0;g--)if(!(null!=d&&g>0&&o.isSurrogatePair(d,g-1))){if(t.setStart(p,g),!c(i(t),n))break;l=p,u=g}if(-1===g||0===p.childNodes.length)break;f=s(p=p.childNodes[g])}return t.setStart(l,u),t}},940:function(t,e,n){"use strict";var o=n(620),r=n(291),i=n(475),a=n(376);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),n=e.getStartOffset();if(0===n)return i(t,1);var r=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(r).getText().slice(0,n),c=o.getBackward(a);return i(t,c.length||1)},"backward");return e===t.getCurrentContent()?t:r.push(t,e,"remove-range")}},941:function(t,e,n){"use strict";t.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;\u30fb\u3001\u3002\u3008-\u3011\u3014-\u301f\uff1a-\uff1f\uff01-\uff0f\uff3b-\uff40\uff5b-\uff65\u2e2e\u061f\u066a-\u066c\u061b\u060c\u060d\ufd3e\ufd3f\u1801\u0964\u104a\u104b\u2010-\u2027\u2030-\u205e\xa1-\xb1\xb4-\xb8\xba\xbb\xbf]"}}},942:function(t,e,n){"use strict";var o=n(620),r=n(291),i=n(621),a=n(376);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),n=e.getStartOffset(),r=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(r).getText().slice(n),c=o.getForward(a);return i(t,c.length||1)},"forward");return e===t.getCurrentContent()?t:r.push(t,e,"remove-range")}},943:function(t,e,n){"use strict";var o=n(302),r=n(291);t.exports=function(t){var e=o.splitBlock(t.getCurrentContent(),t.getSelection());return r.push(t,e,"split-block")}},944:function(t,e,n){"use strict";var o=n(291);t.exports=function(t){var e=t.getSelection(),n=e.getEndKey(),r=t.getCurrentContent().getBlockForKey(n).getLength();return o.set(t,{selection:e.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})}},945:function(t,e,n){"use strict";var o=n(291);t.exports=function(t){var e=t.getSelection(),n=e.getStartKey();return o.set(t,{selection:e.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},946:function(t,e,n){"use strict";var o=n(291),r=n(350),i=n(621),a=n(376);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),n=t.getCurrentContent(),o=e.getAnchorKey(),a=e.getAnchorOffset(),c=n.getBlockForKey(o).getText()[a];return i(t,c?r.getUTF16Length(c,0):1)},"forward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return o.push(t,e.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},947:function(t,e,n){"use strict";var o=n(302),r=n(291),i=n(413);t.exports=function(t){var e=t.getSelection();if(!e.isCollapsed())return t;var n=e.getAnchorOffset();if(0===n)return t;var a,c,s=e.getAnchorKey(),l=t.getCurrentContent(),u=l.getBlockForKey(s).getLength();if(u<=1)return t;n===u?(a=e.set("anchorOffset",n-1),c=e):c=(a=e.set("focusOffset",n+1)).set("anchorOffset",n+1);var p=i(l,a),f=o.removeRange(l,a,"backward"),d=f.getSelectionAfter(),g=d.getAnchorOffset()-1,h=d.merge({anchorOffset:g,focusOffset:g}),y=o.replaceWithFragment(f,h,p),m=r.push(t,y,"insert-fragment");return r.acceptSelection(m,c)}},948:function(t,e,n){"use strict";var o=n(291);t.exports=function(t,e,n){var r=o.undo(e);if("spellcheck-change"!==e.getLastChangeType())t.preventDefault(),e.getNativelyRenderedContent()?(n(o.set(e,{nativelyRenderedContent:null})),setTimeout(function(){n(r)},0)):n(r);else{var i=r.getCurrentContent();n(o.set(r,{nativelyRenderedContent:i}))}}},949:function(t,e,n){"use strict";var o=n(373),r=n(311),i=n(614),a=n(302),c=n(950),s=n(291),l=n(624),u=n(472),p=n(616),f=n(422),d=n(955);function g(t,e,n){var o=a.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return s.push(t,o.set("entityMap",n),"insert-fragment")}t.exports=function(t,e){e.preventDefault();var n=new i(e.clipboardData);if(!n.isRichText()){var h=n.getFiles(),y=n.getText();if(h.length>0){if(t.props.handlePastedFiles&&f(t.props.handlePastedFiles(h)))return;return void p(h,function(e){if(e=e||y){var n=t._latestEditorState,i=d(e),p=r.create({style:n.getCurrentInlineStyle(),entity:u(n.getCurrentContent(),n.getSelection())}),f=l.getCurrentBlockType(n),g=c.processText(i,p,f),h=o.createFromArray(g),m=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);t.update(s.push(n,m,"insert-fragment"))}})}}var m=[],v=n.getText(),b=n.getHTML(),S=t._latestEditorState;if(t.props.formatPastedText){var M=t.props.formatPastedText(v,b);v=M.text,b=M.html}if(!t.props.handlePastedText||!f(t.props.handlePastedText(v,b,S))){if(v&&(m=d(v)),!t.props.stripPastedStyles){var w,C=t.getClipboard();if(!t.props.formatPastedText&&n.isRichText()&&C){if(-1!==(null===(w=b)||void 0===w?void 0:w.indexOf(t.getEditorKey()))||1===m.length&&1===C.size&&C.first().getText()===v)return void t.update(g(t._latestEditorState,C))}else if(C&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(t,e){return t.length===e.size&&e.valueSeq().every(function(e,n){return e.getText()===t[n]})}(m,C))return void t.update(g(t._latestEditorState,C));if(b){var k=c.processHTML(b,t.props.blockRenderMap);if(k){var E=k.contentBlocks,_=k.entityMap;if(E){var j=o.createFromArray(E);return void t.update(g(t._latestEditorState,j,_))}}}t.setClipboard(null)}if(m.length){var x=r.create({style:S.getCurrentInlineStyle(),entity:u(S.getCurrentContent(),S.getSelection())}),D=l.getCurrentBlockType(S),N=c.processText(m,x,D),L=o.createFromArray(N);t.update(g(t._latestEditorState,L))}}}},950:function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=n(347),i=n(312),a=n(622),c=n(320),s=n(623),l=n(336),u=n(285),p=n(596),f=u.List,d=u.Repeat,g=l("draft_tree_data_support"),h=g?i:r,y={processHTML:function(t,e){return a(t,s,e)},processText:function(t,e,n){return t.reduce(function(t,r,i){r=p(r);var a=c(),s={key:a,type:n,text:r,characterList:f(d(e,r.length))};if(g&&0!==i){var l=i-1;s=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}({},s,{prevSibling:(t[l]=t[l].merge({nextSibling:a})).getKey()})}return t.push(new h(s)),t},[])}};t.exports=y},951:function(t,e,n){"use strict";var o=function(){function t(t){var e,n,o;o=void 0,(n="_uri")in(e=this)?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,this._uri=t}return t.prototype.toString=function(){return this._uri},t}();t.exports=o},952:function(t,e,n){"use strict";var o=n(349);t.exports=function(t){return!(!t||!t.ownerDocument)&&o(t)&&"A"===t.nodeName}},953:function(t,e,n){"use strict";var o=n(349);t.exports=function(t){return!(!t||!t.ownerDocument)&&o(t)&&"IMG"===t.nodeName}},954:function(t,e,n){"use strict";t.exports=function(t,e,n,o){var r=e.getStartKey(),i=e.getEndKey(),a=t.getBlockMap(),c=a.toSeq().skipUntil(function(t,e){return e===r}).takeUntil(function(t,e){return e===i}).concat([[i,a.get(i)]]).map(function(t){var e=t.getDepth()+n;return e=Math.max(0,Math.min(e,o)),t.set("depth",e)});return a=a.merge(c),t.merge({blockMap:a,selectionBefore:e,selectionAfter:e})}},955:function(t,e,n){"use strict";var o=/\r\n?|\n/g;t.exports=function(t){return t.split(o)}},956:function(t,e,n){"use strict";var o=n(105).unstable_flushControlled;t.exports=o},957:function(t,e,n){"use strict";var o=n(1),r=n(348),i=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},a.render=function(){var t=this.props.editorState.getSelection().getHasFocus(),e=r({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":t});return o.createElement("div",{className:e},o.createElement("div",{className:r("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(o.Component);t.exports=i},958:function(t,e,n){},959:function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=n(347),i=n(312),a=n(626),c=n(960),s=n(961),l=n(287),u=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:s(t),entityRanges:c(t,e),data:t.getData().toObject()}},p=function(t,e,n,a){if(t instanceof r)n.push(u(t,e));else{t instanceof i||l(!1);var c=t.getParentKey(),s=a[t.getKey()]=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}({},u(t,e),{children:[]});c?a[c].children.push(s):n.push(s)}};t.exports=function(t){var e={entityMap:{},blocks:[]};return e=function(t,e){var n=e.entityMap,o=[],r={},i={},c=0;return t.getBlockMap().forEach(function(t){t.findEntityRanges(function(t){return null!==t.getEntity()},function(e){var o=t.getEntityAt(e),r=a.stringify(o);i[r]||(i[r]=o,n[r]="".concat(c),c++)}),p(t,n,o,r)}),{blocks:o,entityMap:n}}(t,e),e=function(t,e){var n=e.blocks,o=e.entityMap,r={};return Object.keys(o).forEach(function(e,n){var o=t.getEntity(a.unstringify(e));r[n]={type:o.getType(),mutability:o.getMutability(),data:o.getData()}}),{blocks:n,entityMap:r}}(t,e)}},960:function(t,e,n){"use strict";var o=n(626),r=n(350).strlen;t.exports=function(t,e){var n=[];return t.findEntityRanges(function(t){return!!t.getEntity()},function(i,a){var c=t.getText(),s=t.getEntityAt(i);n.push({offset:r(c.slice(0,i)),length:r(c.slice(i,a)),key:Number(e[o.stringify(s)])})}),n}},961:function(t,e,n){"use strict";var o=n(350),r=n(374),i=function(t,e){return t===e},a=function(t){return!!t},c=[];t.exports=function(t){var e=t.getCharacterList().map(function(t){return t.getStyle()}).toList(),n=e.flatten().toSet().map(function(n){return function(t,e,n){var c=[],s=e.map(function(t){return t.has(n)}).toList();return r(s,i,a,function(e,r){var i=t.getText();c.push({offset:o.strlen(i.slice(0,e)),length:o.strlen(i.slice(e,r)),style:n})}),c}(t,e,n)});return Array.prototype.concat.apply(c,n.toJS())}},962:function(t,e,n){"use strict";function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){r(t,e,n[e])})}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(347),a=n(312),c=n(468),s=n(414),l=n(963),u=(n(964),n(415)),p=n(965),f=n(966),d=n(967),g=n(320),h=n(336),y=n(285),m=n(287),v=h("draft_tree_data_support"),b=y.List,S=y.Map,M=y.OrderedMap,w=function(t,e){var n=t.key,o=t.type,r=t.data;return{text:t.text,depth:t.depth||0,type:o||"unstyled",key:n||g(),data:S(r),characterList:C(t,e)}},C=function(t,e){var n=t.text,r=t.entityRanges,i=t.inlineStyleRanges,a=r||[];return p(d(n,i||[]),f(n,a.filter(function(t){return e.hasOwnProperty(t.key)}).map(function(t){return o({},t,{key:e[t.key]})})))},k=function(t){return o({},t,{key:t.key||g()})},E=function(t,e,n){var r=e.map(function(t){return o({},t,{parentRef:n})});return t.concat(r.reverse())},_=function(t,e){var n=t.blocks.find(function(t){return Array.isArray(t.children)&&t.children.length>0}),r=v&&!n?l.fromRawStateToRawTreeState(t).blocks:t.blocks;return v?function(t,e){return t.map(k).reduce(function(n,r,i){Array.isArray(r.children)||m(!1);var c=r.children.map(k),s=new a(o({},w(r,e),{prevSibling:0===i?null:t[i-1].key,nextSibling:i===t.length-1?null:t[i+1].key,children:b(c.map(function(t){return t.key}))}));n=n.set(s.getKey(),s);for(var l=E([],c,s);l.length>0;){var u=l.pop(),p=u.parentRef,f=p.getChildKeys(),d=f.indexOf(u.key),g=Array.isArray(u.children);if(!g){g||m(!1);break}var h=u.children.map(k),y=new a(o({},w(u,e),{parent:p.getKey(),children:b(h.map(function(t){return t.key})),prevSibling:0===d?null:f.get(d-1),nextSibling:d===f.size-1?null:f.get(d+1)}));n=n.set(y.getKey(),y),l=E(l,h,y)}return n},M())}(r,e):function(t,e){return M(t.map(function(t){var n=new i(w(t,e));return[n.getKey(),n]}))}(n?l.fromRawTreeStateToRawState(t).blocks:r,e)};t.exports=function(t){Array.isArray(t.blocks)||m(!1);var e=function(t){var e=t.entityMap,n={};return Object.keys(e).forEach(function(t){var o=e[t],r=o.type,i=o.mutability,a=o.data;n[t]=s.__create(r,i,a||{})}),n}(t),n=_(t,e),o=n.isEmpty()?new u:u.createEmpty(n.first().getKey());return new c({blockMap:n,entityMap:e,selectionBefore:o,selectionAfter:o})}},963:function(t,e,n){"use strict";function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){r(t,e,n[e])})}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(320),a=n(287),c=function(t){if(!t||!t.type)return!1;var e=t.type;return"unordered-list-item"===e||"ordered-list-item"===e},s={fromRawTreeStateToRawState:function(t){var e=t.blocks,n=[];return Array.isArray(e)||a(!1),Array.isArray(e)&&e.length?(function(t,e){for(var n=[].concat(t).reverse();n.length;){var o=n.pop();e(o);var r=o.children;Array.isArray(r)||a(!1),n=n.concat([].concat(r.reverse()))}}(e,function(t){var e=o({},t);c(t)&&(e.depth=e.depth||0,function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(e){return e.type===t.type?o({},e,{depth:(t.depth||0)+1}):e}))}(t),null!=t.children&&t.children.length>0)||(delete e.children,n.push(e))}),t.blocks=n,o({},t,{blocks:n})):t},fromRawStateToRawTreeState:function(t){var e=[],n=[];return t.blocks.forEach(function(t){var r=c(t),a=t.depth||0,s=o({},t,{children:[]});if(r){var l=n[0];if(null==l&&0===a)e.push(s);else if(null==l||l.depth<a-1){var u={key:i(),text:"",depth:a-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(u),1===a?e.push(u):null!=l&&l.children.push(u),u.children.push(s)}else if(l.depth===a-1)l.children.push(s);else{for(;null!=l&&l.depth>=a;)n.shift(),l=n[0];a>0?l.children.push(s):e.push(s)}}else e.push(s)}),o({},t,{blocks:e})}};t.exports=s},964:function(t,e,n){"use strict";n(476);var o={isValidBlock:function(t,e){var n=t.getKey(),o=t.getParentKey();if(null!=o&&!e.get(o).getChildKeys().includes(n))return!1;if(!t.getChildKeys().map(function(t){return e.get(t)}).every(function(t){return t.getParentKey()===n}))return!1;var r=t.getPrevSiblingKey();if(null!=r&&e.get(r).getNextSiblingKey()!==n)return!1;var i=t.getNextSiblingKey();if(null!=i&&e.get(i).getPrevSiblingKey()!==n)return!1;return(null===i||null===r||r!==i)&&!(""!=t.text&&t.getChildKeys().size>0)},isConnectedTree:function(t){var e=t.toArray().filter(function(t){return null==t.getParentKey()&&null==t.getPrevSiblingKey()});if(1!==e.length)return!1;for(var n=0,o=e.shift().getKey(),r=[];null!=o;){var i=t.get(o),a=i.getChildKeys(),c=i.getNextSiblingKey();if(a.size>0){null!=c&&r.unshift(c);var s=a.map(function(e){return t.get(e)}).find(function(t){return null==t.getPrevSiblingKey()});if(null==s)return!1;o=s.getKey()}else o=null!=i.getNextSiblingKey()?i.getNextSiblingKey():r.shift();n++}return n===t.size},isValidTree:function(t){var e=this;return!!t.toArray().every(function(n){return e.isValidBlock(n,t)})&&this.isConnectedTree(t)}};t.exports=o},965:function(t,e,n){"use strict";var o=n(311),r=n(285).List;t.exports=function(t,e){var n=t.map(function(t,n){var r=e[n];return o.create({style:t,entity:r})});return r(n)}},966:function(t,e,n){"use strict";var o=n(350).substr;t.exports=function(t,e){var n=Array(t.length).fill(null);return e&&e.forEach(function(e){for(var r=o(t,0,e.offset).length,i=r+o(t,e.offset,e.length).length,a=r;a<i;a++)n[a]=e.key}),n}},967:function(t,e,n){"use strict";var o=n(350),r=n(285).OrderedSet,i=o.substr,a=r();t.exports=function(t,e){var n=Array(t.length).fill(a);return e&&e.forEach(function(e){for(var o=i(t,0,e.offset).length,r=o+i(t,e.offset,e.length).length;o<r;)n[o]=n[o].add(e.style),o++}),n}},968:function(t,e,n){"use strict";var o=n(969);t.exports=function(t){var e=t.getSelection();if(!e.rangeCount)return null;var n=e.getRangeAt(0),r=o(n),i=r.top,a=r.right,c=r.bottom,s=r.left;return 0===i&&0===a&&0===c&&0===s?null:r}},969:function(t,e,n){"use strict";var o=n(619);t.exports=function(t){var e=o(t),n=0,r=0,i=0,a=0;if(e.length){if(e.length>1&&0===e[0].width){var c=e[1];n=c.top,r=c.right,i=c.bottom,a=c.left}else{var s=e[0];n=s.top,r=s.right,i=s.bottom,a=s.left}for(var l=1;l<e.length;l++){var u=e[l];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),r=Math.max(r,u.right),i=Math.max(i,u.bottom),a=Math.min(a,u.left))}}return{top:n,right:r,bottom:i,left:a,width:r-a,height:i-n}}}}]);
//# sourceMappingURL=5.be1e02a6.chunk.js.map
|