@innovaccer/rich-text-editor 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/dist/rich-text-editor.js +2 -2
- package/package.json +1 -1
package/dist/rich-text-editor.js
CHANGED
|
@@ -46,7 +46,7 @@ module.exports=function(n){var r={};function o(e){var t;return(r[e]||(t=r[e]={i:
|
|
|
46
46
|
object-assign
|
|
47
47
|
(c) Sindre Sorhus
|
|
48
48
|
@license MIT
|
|
49
|
-
*/var c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(Object.assign){var e=new String("abc");if(e[5]="de","5"!==Object.getOwnPropertyNames(e)[0]){for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r,o=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"===o.join(""))return r={},"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")?1:void 0}}}catch(e){}}()?Object.assign:function(e,t){for(var n,r=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))u.call(n,i)&&(r[i]=n[i]);if(c)for(var a=c(n),s=0;s<a.length;s++)l.call(n,a[s])&&(r[a[s]]=n[a[s]])}return r}},function(e,t,n){"use strict";var o=n(12),i=n(26),n=n(6),a=n.List,r=n.Map,s=n.OrderedSet,c=n.Record,u=n.Repeat,l=s(),n=c({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:r()}),s=function(r){var e;function t(e){return r.call(this,((e=e)&&(t=e.characterList,(n=e.text)&&!t&&(e.characterList=a(u(o.EMPTY,n.length)))),e))||this;var t,n}e=r,(n=t).prototype=Object.create(e.prototype),(n.prototype.constructor=n).__proto__=e;var n=t.prototype;return n.getKey=function(){return this.get("key")},n.getType=function(){return this.get("type")},n.getText=function(){return this.get("text")},n.getCharacterList=function(){return this.get("characterList")},n.getLength=function(){return this.getText().length},n.getDepth=function(){return this.get("depth")},n.getData=function(){return this.get("data")},n.getInlineStyleAt=function(e){e=this.getCharacterList().get(e);return e?e.getStyle():l},n.getEntityAt=function(e){e=this.getCharacterList().get(e);return e?e.getEntity():null},n.findStyleRanges=function(e,t){i(this.getCharacterList(),f,e,t)},n.findEntityRanges=function(e,t){i(this.getCharacterList(),p,e,t)},t}(n);function f(e,t){return e.getStyle()===t.getStyle()}function p(e,t){return e.getEntity()===t.getEntity()}e.exports=s},function(e,t,n){"use strict";function r(e){return e.replace(/\//g,"-")}e.exports=function(t){return("object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).map(r):Array.prototype.map.call(arguments,r)).join(" ")}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}},function(e,t,n){"use strict";var r=n(7),o=55296,i=57343,a=/[\uD800-\uDFFF]/;function s(e){return o<=e&&e<=i}function c(e){return a.test(e)}function u(e,t){return 1+s(e.charCodeAt(t))}function l(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!c(e))return e.substr(t,n);var r=e.length;if(r<=0||r<t||n<=0)return"";var o=0;if(0<t){for(;0<t&&o<r;t--)o+=u(e,o);if(r<=o)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=u(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;0<n&&i<r;n--)i+=u(e,i);return e.substring(o,i)}e.exports={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=u(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:u,hasSurrogateUnit:c,isCodeUnitInSurrogateRange:s,isSurrogatePair:function(e,t){var n;return 0<=t&&t<e.length||r(!1),t+1!==e.length&&(n=e.charCodeAt(t),e=e.charCodeAt(t+1),o<=n&&n<=56319&&56320<=e&&e<=i)},strlen:function(e){if(!c(e))return e.length;for(var t=0,n=0;n<e.length;n+=u(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return l(e,t=t<n?t:n,r)},substr:l}},function(e,t){e.exports=ReactDOM},function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(R,e,t){"use strict";t.r(e),t.d(e,"Collection",function(){return u}),t.d(e,"Iterable",function(){return Cr}),t.d(e,"List",function(){return gn}),t.d(e,"Map",function(){return Yt}),t.d(e,"OrderedMap",function(){return N}),t.d(e,"OrderedSet",function(){return pr}),t.d(e,"Range",function(){return $n}),t.d(e,"Record",function(){return A}),t.d(e,"Repeat",function(){return _r}),t.d(e,"Seq",function(){return C}),t.d(e,"Set",function(){return qn}),t.d(e,"Stack",function(){return An}),t.d(e,"fromJS",function(){return wr}),t.d(e,"get",function(){return mt}),t.d(e,"getIn",function(){return Zn}),t.d(e,"has",function(){return gt}),t.d(e,"hasIn",function(){return Xn}),t.d(e,"hash",function(){return k}),t.d(e,"is",function(){return x}),t.d(e,"isAssociative",function(){return Z}),t.d(e,"isCollection",function(){return l}),t.d(e,"isImmutable",function(){return p}),t.d(e,"isIndexed",function(){return s}),t.d(e,"isKeyed",function(){return c}),t.d(e,"isList",function(){return hn}),t.d(e,"isMap",function(){return Oe}),t.d(e,"isOrdered",function(){return d}),t.d(e,"isOrderedMap",function(){return xe}),t.d(e,"isOrderedSet",function(){return zn}),t.d(e,"isPlainObject",function(){return dt}),t.d(e,"isRecord",function(){return ne}),t.d(e,"isSeq",function(){return ee}),t.d(e,"isSet",function(){return Fn}),t.d(e,"isStack",function(){return Mn}),t.d(e,"isValueObject",function(){return ke}),t.d(e,"merge",function(){return Mt}),t.d(e,"mergeDeep",function(){return At}),t.d(e,"mergeDeepWith",function(){return Pt}),t.d(e,"mergeWith",function(){return Nt}),t.d(e,"remove",function(){return bt}),t.d(e,"removeIn",function(){return Ct}),t.d(e,"set",function(){return _t}),t.d(e,"setIn",function(){return St}),t.d(e,"update",function(){return xt}),t.d(e,"updateIn",function(){return wt}),t.d(e,"version",function(){return Er});var t="delete",_=5,w=1<<_,b=w-1,S={};function L(){return{value:!1}}function m(e){e&&(e.value=!0)}function F(){}function z(e){return void 0===e.size&&(e.size=e.__iterate(K)),e.size}function B(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295==n)return NaN;t=n}return t<0?z(e)+t:t}function K(){return!0}function H(e,t,n){return(0===e&&!V(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&n<=t)}function U(e,t){return W(e,t,0)}function q(e,t){return W(e,t,t)}function W(e,t,n){return void 0===e?n:V(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function V(e){return e<0||0===e&&1/e==-1/0}var G="@@__IMMUTABLE_ITERABLE__@@";function l(e){return Boolean(e&&e[G])}var Y="@@__IMMUTABLE_KEYED__@@";function c(e){return Boolean(e&&e[Y])}var $="@@__IMMUTABLE_INDEXED__@@";function s(e){return Boolean(e&&e[$])}function Z(e){return c(e)||s(e)}var u=function(e){return l(e)?e:C(e)},f=function(e){function t(e){return c(e)?e:ye(e)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(u),J=function(e){function t(e){return s(e)?e:O(e)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(u),X=function(e){function t(e){return l(e)&&!Z(e)?e:ge(e)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(u),Q=(u.Keyed=f,u.Indexed=J,u.Set=X,"@@__IMMUTABLE_SEQ__@@");function ee(e){return Boolean(e&&e[Q])}var te="@@__IMMUTABLE_RECORD__@@";function ne(e){return Boolean(e&&e[te])}function p(e){return l(e)||ne(e)}var re="@@__IMMUTABLE_ORDERED__@@";function d(e){return Boolean(e&&e[re])}var oe=0,h=1,y=2,ie="function"==typeof Symbol&&Symbol.iterator,ae="@@iterator",se=ie||ae,g=function(e){this.next=e};function v(e,t,n,r){e=0===e?t:1===e?n:[t,n];return r?r.value=e:r={value:e,done:!1},r}function E(){return{value:void 0,done:!0}}function ce(e){return Array.isArray(e)||fe(e)}function ue(e){return e&&"function"==typeof e.next}function le(e){var t=fe(e);return t&&t.call(e)}function fe(e){e=e&&(ie&&e[ie]||e[ae]);if("function"==typeof e)return e}g.prototype.toString=function(){return"[Iterator]"},g.KEYS=oe,g.VALUES=h,g.ENTRIES=y,g.prototype.inspect=g.prototype.toSource=function(){return this.toString()},g.prototype[se]=function(){return this};var pe=Object.prototype.hasOwnProperty;function de(e){return Array.isArray(e)||"string"==typeof e||e&&"object"==typeof e&&Number.isInteger(e.length)&&0<=e.length&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var he,C=function(e){function t(e){{if(null==e)return _e();if(p(e))return e.toSeq();var t=Ee(e);if(t)return function(e){var t=fe(e);return t&&t===e.entries}(e)?t.fromEntrySeq():function(e){var t=fe(e);return t&&t===e.keys}(e)?t.toSetSeq():t;if("object"!=typeof e)throw new TypeError("Expected Array or collection object of values, or keyed object: "+e);return new ve(e)}}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[t?r-++o:o++];if(!1===e(i[1],i[0],this))break}return o}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(t,n){var r,o,i=this._cache;return i?(r=i.length,o=0,new g(function(){var e;return o===r?E():(e=i[n?r-++o:o++],v(t,e[0],e[1]))})):this.__iteratorUncached(t,n)},t}(u),ye=function(e){function t(e){return null==e?_e().toKeyedSeq():l(e)?c(e)?e.toSeq():e.fromEntrySeq():ne(e)?e.toSeq():we(e)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.toKeyedSeq=function(){return this},t}(C),O=function(e){function t(e){return null==e?_e():l(e)?c(e)?e.entrySeq():e.toIndexedSeq():ne(e)?e.toSeq().entrySeq():Se(e)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(C),ge=function(e){function t(e){return(l(e)&&!Z(e)?e:O(e)).toSetSeq()}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(C),me=(C.isSeq=ee,C.Keyed=ye,C.Set=ge,C.Indexed=O,C.prototype[Q]=!0,function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.get=function(e,t){return this.has(e)?this._array[B(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,o=0;o!==r;){var i=t?r-++o:o++;if(!1===e(n[i],i,this))break}return o},t.prototype.__iterator=function(t,n){var r=this._array,o=r.length,i=0;return new g(function(){var e;return i===o?E():(e=n?o-++i:i++,v(t,e,r[e]))})},t}(O)),ve=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return pe.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[t?o-++i:i++];if(!1===e(n[a],a,this))break}return i},t.prototype.__iterator=function(t,n){var r=this._object,o=this._keys,i=o.length,a=0;return new g(function(){var e;return a===i?E():(e=o[n?i-++a:a++],v(t,e,r[e]))})},t}(ye),be=(ve.prototype[re]=!0,function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n,r=le(this._collection),o=0;if(ue(r))for(;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},t.prototype.__iteratorUncached=function(t,e){var n,r;return e?this.cacheResult().__iterator(t,e):ue(n=le(this._collection))?(r=0,new g(function(){var e=n.next();return e.done?e:v(t,r++,e.value)})):new g(E)},t}(O));function _e(){return he=he||new me([])}function we(e){var t=Ee(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new ve(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function Se(e){var t=Ee(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function Ee(e){return de(e)?new me(e):ce(e)?new be(e):void 0}var Ce="@@__IMMUTABLE_MAP__@@";function Oe(e){return Boolean(e&&e[Ce])}function xe(e){return Oe(e)&&d(e)}function ke(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function x(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(ke(e)&&ke(t)&&e.equals(t))}var De="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function je(e){return e>>>1&1073741824|3221225471&e}var Te=Object.prototype.valueOf;function k(e){if(null==e)return Ie(e);if("function"==typeof e.hashCode)return je(e.hashCode(e));var t=(e=e).valueOf!==Te&&"function"==typeof e.valueOf?e.valueOf(e):e;if(null==t)return Ie(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":var n=t;if(n!=n||n===1/0)return 0;var r=0|n;for(r!==n&&(r^=4294967295*n);4294967295<n;)r^=n/=4294967295;return je(r);case"string":return(t.length>Ke?function(e){var t=qe[e];void 0===t&&(t=Me(e),Ue===He&&(Ue=0,qe={}),Ue++,qe[e]=t);return t}:Me)(t);case"object":case"function":var o,i=t;if((!Le||void 0===(o=Re.get(i)))&&void 0===(o=i[Be])){if(!Ae){if(void 0!==(o=i.propertyIsEnumerable&&i.propertyIsEnumerable[Be]))return o;if(void 0!==(o=function(e){if(e&&0<e.nodeType)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(i)))return o}if(o=Pe(),Le)Re.set(i,o);else{if(void 0!==Ne&&!1===Ne(i))throw new Error("Non-extensible objects are not allowed as keys.");if(Ae)Object.defineProperty(i,Be,{enumerable:!1,configurable:!1,writable:!1,value:o});else if(void 0!==i.propertyIsEnumerable&&i.propertyIsEnumerable===i.constructor.prototype.propertyIsEnumerable)i.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},i.propertyIsEnumerable[Be]=o;else{if(void 0===i.nodeType)throw new Error("Unable to set a non-enumerable property on object.");i[Be]=o}}}return o;case"symbol":return void 0===(o=Fe[i=t])&&(o=Pe(),Fe[i]=o),o;default:if("function"==typeof t.toString)return Me(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function Ie(e){return null===e?1108378658:1108378659}function Me(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return je(t)}var Ne=Object.isExtensible,Ae=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Pe(){var e=++ze;return 1073741824&ze&&(ze=0),e}var Re,Le="function"==typeof WeakMap,Fe=(Le&&(Re=new WeakMap),Object.create(null)),ze=0,Be="__immutablehash__",Ke=("function"==typeof Symbol&&(Be=Symbol(Be)),16),He=255,Ue=0,qe={},We=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=Je(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Ze(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(n,e){var r=this;return this._iter.__iterate(function(e,t){return n(e,t,r)},e)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(ye),Ve=(We.prototype[re]=!0,function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(t,n){var r=this,o=0;return n&&z(this),this._iter.__iterate(function(e){return t(e,n?r.size-++o:o++,r)},n)},t.prototype.__iterator=function(t,n){var r=this,o=this._iter.__iterator(h,n),i=0;return n&&z(this),new g(function(){var e=o.next();return e.done?e:v(t,n?r.size-++i:i++,e.value,e)})},t}(O)),Ge=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},t.prototype.__iterator=function(t,e){var n=this._iter.__iterator(h,e);return new g(function(){var e=n.next();return e.done?e:v(t,e.value,e.value,e)})},t}(ge),Ye=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(n,e){var r=this;return this._iter.__iterate(function(e){var t;if(e)return at(e),t=l(e),n(t?e.get(1):e[1],t?e.get(0):e[0],r)},e)},t.prototype.__iterator=function(r,e){var o=this._iter.__iterator(h,e);return new g(function(){for(;;){var e=o.next();if(e.done)return e;var t,n=e.value;if(n)return at(n),t=l(n),v(r,t?n.get(0):n[0],t?n.get(1):n[1],e)}})},t}(ye);function $e(o){var e=r(o);return e._iter=o,e.size=o.size,e.flip=function(){return o},e.reverse=function(){var e=o.reverse.apply(this);return e.flip=function(){return o.reverse()},e},e.has=function(e){return o.includes(e)},e.includes=function(e){return o.has(e)},e.cacheResult=ct,e.__iterateUncached=function(n,e){var r=this;return o.__iterate(function(e,t){return!1!==n(t,e,r)},e)},e.__iteratorUncached=function(e,t){var n;return e===y?(n=o.__iterator(e,t),new g(function(){var e,t=n.next();return t.done||(e=t.value[0],t.value[0]=t.value[1],t.value[1]=e),t})):o.__iterator(e===h?oe:h,t)},e}function Ze(i,a,s){var e=r(i);return e.size=i.size,e.has=function(e){return i.has(e)},e.get=function(e,t){var n=i.get(e,S);return n===S?t:a.call(s,n,e,i)},e.__iterateUncached=function(r,e){var o=this;return i.__iterate(function(e,t,n){return!1!==r(a.call(s,e,t,n),t,o)},e)},e.__iteratorUncached=function(r,e){var o=i.__iterator(y,e);return new g(function(){var e,t,n=o.next();return n.done?n:(t=(e=n.value)[0],v(r,t,a.call(s,e[1],t,i),n))})},e}function Je(a,s){var c=this,e=r(a);return e._iter=a,e.size=a.size,e.reverse=function(){return a},a.flip&&(e.flip=function(){var e=$e(a);return e.reverse=function(){return a.flip()},e}),e.get=function(e,t){return a.get(s?e:-1-e,t)},e.has=function(e){return a.has(s?e:-1-e)},e.includes=function(e){return a.includes(e)},e.cacheResult=ct,e.__iterate=function(n,r){var o=this,i=0;return r&&z(a),a.__iterate(function(e,t){return n(e,s?t:r?o.size-++i:i++,o)},!r)},e.__iterator=function(n,r){var o=0,i=(r&&z(a),a.__iterator(y,!r));return new g(function(){var e,t=i.next();return t.done?t:(e=t.value,v(n,s?e[0]:r?c.size-++o:o++,e[1],t))})},e}function Xe(a,s,c,u){var e=r(a);return u&&(e.has=function(e){var t=a.get(e,S);return t!==S&&!!s.call(c,t,e,a)},e.get=function(e,t){var n=a.get(e,S);return n!==S&&s.call(c,n,e,a)?n:t}),e.__iterateUncached=function(r,e){var o=this,i=0;return a.__iterate(function(e,t,n){if(s.call(c,e,t,n))return i++,r(e,u?t:i-1,o)},e),i},e.__iteratorUncached=function(r,e){var o=a.__iterator(y,e),i=0;return new g(function(){for(;;){var e=o.next();if(e.done)return e;var t=e.value,n=t[0],t=t[1];if(s.call(c,t,n,a))return v(r,u?n:i++,t,e)}})},e}function Qe(s,e,t,c){var u,l,n=s.size;return H(e,t,n)?s:(u=U(e,n),n=q(t,n),u!=u||n!=n?Qe(s.toSeq().cacheResult(),e,t,c):((e=n-u)==e&&(l=e<0?0:e),(t=r(s)).size=0===l?l:s.size&&l||void 0,!c&&ee(s)&&0<=l&&(t.get=function(e,t){return 0<=(e=B(this,e))&&e<l?s.get(e+u,t):t}),t.__iterateUncached=function(n,e){var r,o,i,a=this;return 0===l?0:e?this.cacheResult().__iterate(n,e):(o=!(r=0),i=0,s.__iterate(function(e,t){if(!(o=o&&r++<u))return i++,!1!==n(e,c?t:i-1,a)&&i!==l}),i)},t.__iteratorUncached=function(t,e){var n,r,o;return 0!==l&&e?this.cacheResult().__iterator(t,e):0===l?new g(E):(n=s.__iterator(t,e),o=r=0,new g(function(){for(;r++<u;)n.next();var e;return++o>l?E():(e=n.next(),c||t===h||e.done?e:v(t,o-1,t===oe?void 0:e.value[1],e))}))},t))}function et(t,u,l,f){var e=r(t);return e.__iterateUncached=function(r,e){var o,i,a=this;return e?this.cacheResult().__iterate(r,e):(o=!0,i=0,t.__iterate(function(e,t,n){if(!(o=o&&u.call(l,e,t,n)))return i++,r(e,f?t:i-1,a)}),i)},e.__iteratorUncached=function(o,e){var i,a,s,c=this;return e?this.cacheResult().__iterator(o,e):(i=t.__iterator(y,e),a=!0,s=0,new g(function(){var e;do{if((e=i.next()).done)return f||o===h?e:v(o,s++,o===oe?void 0:e.value[1],e);var t=e.value,n=t[0],r=t[1]}while(a=a&&u.call(l,r,n,c));return o===y?e:v(o,n,r,e)}))},e}function tt(e,s,c){var u=r(e);return u.__iterateUncached=function(o,t){var i,a;return t?this.cacheResult().__iterate(o,t):(a=!1,function n(e,r){e.__iterate(function(e,t){return(!s||r<s)&&l(e)?n(e,r+1):(i++,!1===o(e,c?t:i-1,u)&&(a=!0)),!a},t)}(e,i=0),i)},u.__iteratorUncached=function(n,r){var o,i,a;return r?this.cacheResult().__iterator(n,r):(o=e.__iterator(n,r),i=[],a=0,new g(function(){for(;o;){var e=o.next();if(!1!==e.done)o=i.pop();else{var t=e.value;if(n===y&&(t=t[1]),s&&!(i.length<s)||!l(t))return c?e:v(n,a++,t,e);i.push(o),o=t.__iterator(n,r)}}return E()}))},u}function nt(n,r,o){r=r||ut;var e=c(n),i=0,a=n.toSeq().map(function(e,t){return[t,e,i++,o?o(e,t,n):e]}).valueSeq().toArray();return a.sort(function(e,t){return r(e[3],t[3])||e[2]-t[2]}).forEach(e?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),(e?ye:s(n)?O:ge)(a)}function rt(n,r,o){var e;return r=r||ut,o?(e=n.toSeq().map(function(e,t){return[e,o(e,t,n)]}).reduce(function(e,t){return ot(r,e[1],t[1])?t:e}))&&e[0]:n.reduce(function(e,t){return ot(r,e,t)?t:e})}function ot(e,t,n){e=e(n,t);return 0===e&&n!==t&&(null==n||n!=n)||0<e}function it(e,a,s,c){var e=r(e),t=new me(s).map(function(e){return e.size});return e.size=c?t.max():t.min(),e.__iterate=function(e,t){for(var n,r=this.__iterator(h,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},e.__iteratorUncached=function(t,n){var r=s.map(function(e){return e=u(e),le(n?e.reverse():e)}),o=0,i=!1;return new g(function(){var e;return i||(e=r.map(function(e){return e.next()}),i=c?e.every(function(e){return e.done}):e.some(function(e){return e.done})),i?E():v(t,o++,a.apply(null,e.map(function(e){return e.value})))})},e}function D(e,t){return e===t?e:ee(e)?t:e.constructor(t)}function at(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function st(e){return c(e)?f:s(e)?J:X}function r(e){return Object.create((c(e)?ye:s(e)?O:ge).prototype)}function ct(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):C.prototype.cacheResult.call(this)}function ut(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:t<e?1:e<t?-1:0}function j(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function lt(e,t){if(!e)throw new Error(t)}function T(e){lt(e!==1/0,"Cannot perform this action with an infinite size.")}function ft(e){if(de(e)&&"string"!=typeof e)return e;if(d(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}Ve.prototype.cacheResult=We.prototype.cacheResult=Ge.prototype.cacheResult=Ye.prototype.cacheResult=ct;var pt=Object.prototype.toString;function dt(e){if(!e||"object"!=typeof e||"[object Object]"!==pt.call(e))return!1;e=Object.getPrototypeOf(e);if(null===e)return!0;for(var t=e,n=Object.getPrototypeOf(e);null!==n;)t=n,n=Object.getPrototypeOf(t);return t===e}function ht(e){return"object"==typeof e&&(p(e)||Array.isArray(e)||dt(e))}function yt(t){try{return"string"==typeof t?JSON.stringify(t):String(t)}catch(e){return JSON.stringify(t)}}function gt(e,t){return p(e)?e.has(t):ht(e)&&pe.call(e,t)}function mt(e,t,n){return p(e)?e.get(t,n):gt(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function vt(e){if(Array.isArray(e))return j(e);var t,n={};for(t in e)pe.call(e,t)&&(n[t]=e[t]);return n}function bt(e,t){if(!ht(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(p(e)){if(e.remove)return e.remove(t);throw new TypeError("Cannot update immutable value without .remove() method: "+e)}var n;return pe.call(e,t)?(n=vt(e),Array.isArray(n)?n.splice(t,1):delete n[t],n):e}function _t(e,t,n){if(!ht(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(p(e)){if(e.set)return e.set(t,n);throw new TypeError("Cannot update immutable value without .set() method: "+e)}return pe.call(e,t)&&n===e[t]||((e=vt(e))[t]=n),e}function wt(e,t,n,r){r||(r=n,n=void 0);e=function e(t,n,r,o,i,a){var s=n===S;if(o===r.length)return(u=a(c=s?i:n))===c?n:u;if(!s&&!ht(n))throw new TypeError("Cannot update within non-data-structure value in path ["+r.slice(0,o).map(yt)+"]: "+n);var c=r[o];var u=s?S:mt(n,c,S);r=e(u===S?t:p(u),u,r,o+1,i,a);return r===u?n:r===S?bt(n,c):_t(s?t?I():{}:n,c,r)}(p(e),e,ft(t),0,n,r);return e===S?n:e}function St(e,t,n){return wt(e,t,S,function(){return n})}function Et(e,t){return St(this,e,t)}function Ct(e,t){return wt(e,t,function(){return S})}function Ot(e){return Ct(this,e)}function xt(e,t,n,r){return wt(e,[t],n,r)}function kt(e,t,n){return 1===arguments.length?e(this):xt(this,e,t,n)}function Dt(e,t,n){return wt(this,e,t,n)}function jt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return It(this,e)}function Tt(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return It(this,t,e)}function It(e,t,o){for(var n=[],r=0;r<t.length;r++){var i=f(t[r]);0!==i.size&&n.push(i)}return 0===n.length?e:0!==e.toSeq().size||e.__ownerID||1!==n.length?e.withMutations(function(r){for(var e=o?function(t,n){xt(r,n,S,function(e){return e===S?t:o(e,t,n)})}:function(e,t){r.set(t,e)},t=0;t<n.length;t++)n[t].forEach(e)}):e.constructor(n[0])}function Mt(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return Lt(e,t)}function Nt(e,t){for(var n=[],r=arguments.length-2;0<r--;)n[r]=arguments[r+2];return Lt(t,n,e)}function At(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return Rt(e,t)}function Pt(e,t){for(var n=[],r=arguments.length-2;0<r--;)n[r]=arguments[r+2];return Rt(t,n,e)}function Rt(e,t,n){return Lt(e,t,(o=n,function e(t,n,r){return ht(t)&&ht(n)&&function(e,t){return e=C(e),t=C(t),s(e)===s(t)&&c(e)===c(t)}(t,n)?Lt(t,[n],e):o?o(t,n,r):n}));var o}function Lt(r,e,o){if(!ht(r))throw new TypeError("Cannot merge into non-data-structure value: "+r);if(p(r))return"function"==typeof o&&r.mergeWith?r.mergeWith.apply(r,[o].concat(e)):(r.merge||r.concat).apply(r,e);for(var t=Array.isArray(r),i=r,n=t?J:f,a=t?function(e){(i=i===r?vt(i):i).push(e)}:function(e,t){var n=pe.call(i,t),e=n&&o?o(i[t],e,t):e;n&&e===i[t]||((i=i===r?vt(i):i)[t]=e)},s=0;s<e.length;s++)n(e[s]).forEach(a);return i}function Ft(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Rt(this,e)}function zt(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return Rt(this,t,e)}function Bt(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return wt(this,e,I(),function(e){return Lt(e,t)})}function Kt(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return wt(this,e,I(),function(e){return Rt(e,t)})}function Ht(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Ut(){return this.__ownerID?this:this.__ensureOwner(new F)}function qt(){return this.__ensureOwner()}function Wt(){return this.__altered}function Vt(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}var Gt,Yt=function(r){function e(t){return null==t?I():Oe(t)&&!d(t)?t:I().withMutations(function(n){var e=r(t);T(e.size),e.forEach(function(e,t){return n.set(t,e)})})}return r&&(e.__proto__=r),((e.prototype=Object.create(r&&r.prototype)).constructor=e).of=function(){for(var n=[],e=arguments.length;e--;)n[e]=arguments[e];return I().withMutations(function(e){for(var t=0;t<n.length;t+=2){if(n.length<=t+1)throw new Error("Missing value for key: "+n[t]);e.set(n[t],n[t+1])}})},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},e.prototype.set=function(e,t){return rn(this,e,t)},e.prototype.remove=function(e){return rn(this,e,S)},e.prototype.deleteAll=function(e){var n=u(e);return 0===n.size?this:this.withMutations(function(t){n.forEach(function(e){return t.remove(e)})})},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):I()},e.prototype.sort=function(e){return N(nt(this,e))},e.prototype.sortBy=function(e,t){return N(nt(this,t,e))},e.prototype.map=function(r,o){var i=this;return this.withMutations(function(n){n.forEach(function(e,t){n.set(t,r.call(o,e,t,i))})})},e.prototype.__iterator=function(e,t){return new Qt(this,e,t)},e.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},e.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?nn(this.size,this._root,e,this.__hash):0===this.size?I():(this.__ownerID=e,this.__altered=!1,this)},e}(f),i=(Yt.isMap=Oe,Yt.prototype),$t=(i[Ce]=!0,i[t]=i.remove,i.removeAll=i.deleteAll,i.setIn=Et,i.removeIn=i.deleteIn=Ot,i.update=kt,i.updateIn=Dt,i.merge=i.concat=jt,i.mergeWith=Tt,i.mergeDeep=Ft,i.mergeDeepWith=zt,i.mergeIn=Bt,i.mergeDeepIn=Kt,i.withMutations=Ht,i.wasAltered=Wt,i.asImmutable=qt,i["@@transducer/init"]=i.asMutable=Ut,i["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},i["@@transducer/result"]=function(e){return e.asImmutable()},function(e,t){this.ownerID=e,this.entries=t}),Zt=($t.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(x(n,o[i][0]))return o[i][1];return r},$t.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===S,c=this.entries,u=0,l=c.length;u<l&&!x(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(m(a),!s&&f||m(i),!s||1!==c.length){if(!f&&!s&&c.length>=ln){var p=e,d=c,a=r,i=o;p=p||new F;for(var h=new Xt(p,k(a),[a,i]),y=0;y<d.length;y++){var g=d[y];h=h.update(p,0,void 0,g[0],g[1])}return h}a=e&&e===this.ownerID,i=a?c:j(c);return f?s?u===l-1?i.pop():i[u]=i.pop():i[u]=[r,o]:i.push([r,o]),a?(this.entries=i,this):new $t(e,i)}},Vt.prototype.get=function(e,t,n,r){void 0===t&&(t=k(n));var o=1<<((0===e?t:t>>>e)&b),i=this.bitmap;return 0==(i&o)?r:this.nodes[cn(i&o-1)].get(e+_,t,n,r)},Vt.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=k(r));var s=(0===t?n:n>>>t)&b,c=1<<s,u=this.bitmap,l=0!=(u&c);if(!l&&o===S)return this;var f=cn(u&c-1),p=this.nodes,d=l?p[f]:void 0,t=on(d,e,t+_,n,r,o,i,a);if(t===d)return this;if(!l&&t&&p.length>=fn){for(var n=e,h=p,y=u,r=s,o=t,g=0,m=new Array(w),v=0;0!==y;v++,y>>>=1)m[v]=1&y?h[g++]:void 0;return m[r]=o,new Zt(n,g+1,m)}return l&&!t&&2===p.length&&an(p[1^f])?p[1^f]:l&&t&&1===p.length&&an(t)?t:(i=e&&e===this.ownerID,a=l?t?u:u^c:u|c,d=l?t?un(p,f,t,i):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(p,f,i):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}(p,f,t,i),i?(this.bitmap=a,this.nodes=d,this):new Vt(e,a,d))},function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}),Jt=(Zt.prototype.get=function(e,t,n,r){void 0===t&&(t=k(n));var o=this.nodes[(0===e?t:t>>>e)&b];return o?o.get(e+_,t,n,r):r},Zt.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=k(r));var s=(0===t?n:n>>>t)&b,c=this.nodes,u=c[s];if(o===S&&!u)return this;t=on(u,e,t+_,n,r,o,i,a);if(t===u)return this;n=this.count;if(u){if(!t&&--n<pn){for(var r=e,l=c,f=s,p=0,d=0,h=new Array(n),y=0,g=1,m=l.length;y<m;y++,g<<=1){var v=l[y];void 0!==v&&y!==f&&(p|=g,h[d++]=v)}return new Vt(r,p,h)}}else n++;o=e&&e===this.ownerID,i=un(c,s,t,o);return o?(this.count=n,this.nodes=i,this):new Zt(e,n,i)},function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}),Xt=(Jt.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(x(n,o[i][0]))return o[i][1];return r},Jt.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=k(r));var s=o===S;if(n!==this.keyHash)return s?this:(m(a),m(i),sn(this,e,t,n,[r,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!x(r,c[u][0]);u++);t=u<l;return(t?c[u][1]===o:s)?this:(m(a),!s&&t||m(i),s&&2===l?new Xt(e,this.keyHash,c[1^u]):(a=(n=e&&e===this.ownerID)?c:j(c),t?s?u===l-1?a.pop():a[u]=a.pop():a[u]=[r,o]:a.push([r,o]),n?(this.entries=a,this):new Jt(e,this.keyHash,a)))},function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}),Qt=(Xt.prototype.get=function(e,t,n,r){return x(n,this.entry[0])?this.entry[1]:r},Xt.prototype.update=function(e,t,n,r,o,i,a){var s=o===S,c=x(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(m(a),s?void m(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Xt(e,this.keyHash,[r,o]):(m(i),sn(this,e,t,k(r),[r,o])))},$t.prototype.iterate=Jt.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Vt.prototype.iterate=Zt.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Xt.prototype.iterate=function(e,t){return e(this.entry)},function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&tn(e._root)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,o=void 0;if(n.entry){if(0==r)return en(e,n.entry)}else if(n.entries){if(r<=(o=n.entries.length-1))return en(e,n.entries[this._reverse?o-r:r])}else if(r<=(o=n.nodes.length-1)){n=n.nodes[this._reverse?o-r:r];if(n){if(n.entry)return en(e,n.entry);t=this._stack=tn(n,t)}continue}t=this._stack=this._stack.__prev}return E()},t}(g));function en(e,t){return v(e,t[0],t[1])}function tn(e,t){return{node:e,index:0,__prev:t}}function nn(e,t,n,r){var o=Object.create(i);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function I(){return Gt=Gt||nn(0)}function rn(e,t,n){if(e._root){var r=L(),o=L(),i=on(e._root,e.__ownerID,0,void 0,t,n,r,o);if(!o.value)return e;o=e.size+(r.value?n===S?-1:1:0)}else{if(n===S)return e;o=1,i=new $t(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=i,e.__hash=void 0,e.__altered=!0,e):i?nn(o,i):I()}function on(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===S?e:(m(s),m(a),new Xt(t,r,[o,i]))}function an(e){return e.constructor===Xt||e.constructor===Jt}function sn(e,t,n,r,o){var i,a;return e.keyHash===r?new Jt(t,r,[e.entry,o]):(r=(i=(0===n?e.keyHash:e.keyHash>>>n)&b)==(a=(0===n?r:r>>>n)&b)?[sn(e,t,n+_,r,o)]:(n=new Xt(t,r,o),i<a?[e,n]:[n,e]),new Vt(t,1<<i|1<<a,r))}function cn(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e=(e+=e>>8)+(e>>16))}function un(e,t,n,r){r=r?e:j(e);return r[t]=n,r}var ln=w/4,fn=w/2,pn=w/4,dn="@@__IMMUTABLE_LIST__@@";function hn(e){return Boolean(e&&e[dn])}var yn,gn=function(o){function e(e){var t,r,n=wn();return null==e?n:hn(e)?e:(t=o(e),0===(r=t.size)?n:(T(r),0<r&&r<w?_n(0,r,_,null,new mn(t.toArray())):n.withMutations(function(n){n.setSize(r),t.forEach(function(e,t){return n.set(t,e)})})))}return o&&(e.__proto__=o),((e.prototype=Object.create(o&&o.prototype)).constructor=e).of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(e,t){var n;return 0<=(e=B(this,e))&&e<this.size?(n=Cn(this,e+=this._origin))&&n.array[e&b]:t},e.prototype.set=function(e,t){var n=this,r=e,o=t;if((r=B(n,r))!==r)return n;if(r>=n.size||r<0)return n.withMutations(function(e){r<0?On(e,r).set(0,o):On(e,0,r+1).set(r,o)});r+=n._origin;var e=n._tail,t=n._root,i=L();return r>=xn(n._capacity)?e=Sn(e,n.__ownerID,0,r,o,i):t=Sn(t,n.__ownerID,n._level,r,o,i),i.value?n.__ownerID?(n._root=t,n._tail=e,n.__hash=void 0,n.__altered=!0,n):_n(n._origin,n._capacity,n._level,t,e):n},e.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},e.prototype.insert=function(e,t){return this.splice(e,0,t)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=_,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):wn()},e.prototype.push=function(){var n=arguments,r=this.size;return this.withMutations(function(e){On(e,0,r+n.length);for(var t=0;t<n.length;t++)e.set(r+t,n[t])})},e.prototype.pop=function(){return On(this,0,-1)},e.prototype.unshift=function(){var n=arguments;return this.withMutations(function(e){On(e,-n.length);for(var t=0;t<n.length;t++)e.set(t,n[t])})},e.prototype.shift=function(){return On(this,1)},e.prototype.concat=function(){for(var e=arguments,n=[],t=0;t<arguments.length;t++){var r=e[t],r=o("string"!=typeof r&&ce(r)?r:[r]);0!==r.size&&n.push(r)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations(function(t){n.forEach(function(e){return e.forEach(function(e){return t.push(e)})})}):this.constructor(n[0])},e.prototype.setSize=function(e){return On(this,0,e)},e.prototype.map=function(n,r){var o=this;return this.withMutations(function(e){for(var t=0;t<o.size;t++)e.set(t,n.call(r,e.get(t),t,o))})},e.prototype.slice=function(e,t){var n=this.size;return H(e,t,n)?this:On(this,U(e,n),q(t,n))},e.prototype.__iterator=function(t,n){var r=n?this.size:0,o=bn(this,n);return new g(function(){var e=o();return e===vn?E():v(t,n?--r:r++,e)})},e.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,o=bn(this,t);(n=o())!==vn&&!1!==e(n,t?--r:r++,this););return r},e.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?_n(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?wn():(this.__ownerID=e,this.__altered=!1,this)},e}(J),M=(gn.isList=hn,gn.prototype),mn=(M[dn]=!0,M[t]=M.remove,M.merge=M.concat,M.setIn=Et,M.deleteIn=M.removeIn=Ot,M.update=kt,M.updateIn=Dt,M.mergeIn=Bt,M.mergeDeepIn=Kt,M.withMutations=Ht,M.wasAltered=Wt,M.asImmutable=qt,M["@@transducer/init"]=M.asMutable=Ut,M["@@transducer/step"]=function(e,t){return e.push(t)},M["@@transducer/result"]=function(e){return e.asImmutable()},function(e,t){this.array=e,this.ownerID=t}),vn=(mn.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&b;if(r>=this.array.length)return new mn([],e);var o=0==r;if(0<t){var i,a=this.array[r];if((i=a&&a.removeBefore(e,t-_,n))===a&&o)return this}if(o&&!i)return this;var s=En(this,e);if(!o)for(var c=0;c<r;c++)s.array[c]=void 0;return i&&(s.array[r]=i),s},mn.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r=n-1>>>t&b;if(r>=this.array.length)return this;if(0<t){var o,i=this.array[r];if((o=i&&i.removeAfter(e,t-_,n))===i&&r==this.array.length-1)return this}t=En(this,e);return t.array.splice(1+r),o&&(t.array[r]=o),t},{});function bn(e,h){var y=e._origin,g=e._capacity,m=xn(g),v=e._tail;return b(e._root,e._level,0);function b(e,t,n){var r,o,i,a,s,c,u,l,f,p,d;return 0===t?(s=e,o=(r=n)===m?v&&v.array:s&&s.array,i=y<r?0:y-r,w<(a=g-r)&&(a=w),function(){var e;return i===a?vn:(e=h?--a:i++,o&&o[e])}):(c=t,u=n,f=(s=e)&&s.array,p=y<u?0:y-u>>c,w<(d=1+(g-u>>c))&&(d=w),function(){for(;;){if(l){var e=l();if(e!==vn)return e;l=null}if(p===d)return vn;e=h?--d:p++;l=b(f&&f[e],c-_,u+(e<<c))}})}}function _n(e,t,n,r,o,i,a){var s=Object.create(M);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function wn(){return yn=yn||_n(0,0,_)}function Sn(e,t,n,r,o,i){var a,s,c=r>>>n&b,u=e&&c<e.array.length;return u||void 0!==o?0<n?(n=Sn(s=e&&e.array[c],t,n-_,r,o,i))===s?e:((a=En(e,t)).array[c]=n,a):u&&e.array[c]===o?e:(i&&m(i),a=En(e,t),void 0===o&&c==a.array.length-1?a.array.pop():a.array[c]=o,a):e}function En(e,t){return t&&e&&t===e.ownerID?e:new mn(e?e.array.slice():[],t)}function Cn(e,t){if(t>=xn(e._capacity))return e._tail;if(t<1<<e._level+_){for(var n=e._root,r=e._level;n&&0<r;)n=n.array[t>>>r&b],r-=_;return n}}function On(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new F,o=e._origin,i=e._capacity,a=o+t,t=void 0===n?i:n<0?i+n:o+n;if(a===o&&t===i)return e;if(t<=a)return e.clear();for(var s=e._level,c=e._root,u=0;a+u<0;)c=new mn(c&&c.array.length?[void 0,c]:[],r),u+=1<<(s+=_);u&&(a+=u,o+=u,t+=u,i+=u);for(var l=xn(i),f=xn(t);1<<s+_<=f;)c=new mn(c&&c.array.length?[c]:[],r),s+=_;var n=e._tail,p=f<l?Cn(e,t-1):l<f?new mn([],r):n;if(n&&l<f&&a<i&&n.array.length){for(var d=c=En(c,r),h=s;_<h;h-=_)var y=l>>>h&b,d=d.array[y]=En(d.array[y],r);d.array[l>>>_&b]=n}if(t<i&&(p=p&&p.removeAfter(r,0,t)),f<=a)a-=f,t-=f,s=_,c=null,p=p&&p.removeBefore(r,0,a);else if(o<a||f<l){for(u=0;c;){var g=a>>>s&b;if(g!=f>>>s&b)break;g&&(u+=(1<<s)*g),s-=_,c=c.array[g]}(c=c&&o<a?c.removeBefore(r,s,a-u):c)&&f<l&&(c=c.removeAfter(r,s,f-u)),u&&(a-=u,t-=u)}return e.__ownerID?(e.size=t-a,e._origin=a,e._capacity=t,e._level=s,e._root=c,e._tail=p,e.__hash=void 0,e.__altered=!0,e):_n(a,t,s,c,p)}function xn(e){return e<w?0:e-1>>>_<<_}var kn,N=function(e){function t(t){return null==t?jn():xe(t)?t:jn().withMutations(function(n){var e=f(t);T(e.size),e.forEach(function(e,t){return n.set(t,e)})})}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){e=this._map.get(e);return void 0!==e?this._list.get(e)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):jn()},t.prototype.set=function(e,t){return Tn(this,e,t)},t.prototype.remove=function(e){return Tn(this,e,S)},t.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){var t,n;return e===this.__ownerID?this:(t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e),e?Dn(t,n,e,this.__hash):0===this.size?jn():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this))},t}(Yt);function Dn(e,t,n,r){var o=Object.create(N.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function jn(){return kn=kn||Dn(I(),wn())}function Tn(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===S){if(!c)return e;a.size>=w&&a.size>=2*i.size?(r=(o=a.filter(function(e,t){return void 0!==e&&s!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e.__altered=!0,e):Dn(r,o)}N.isOrderedMap=xe,N.prototype[re]=!0,N.prototype[t]=N.prototype.remove;var In="@@__IMMUTABLE_STACK__@@";function Mn(e){return Boolean(e&&e[In])}var Nn,An=function(o){function e(e){return null==e?Rn():Mn(e)?e:Rn().pushAll(e)}return o&&(e.__proto__=o),((e.prototype=Object.create(o&&o.prototype)).constructor=e).of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(e,t){var n=this._head;for(e=B(this,e);n&&e--;)n=n.next;return n?n.value:t},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;0<=r;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Pn(t,n)},e.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;if(0===this.size&&Mn(e))return e;T(e.size);var t=this.size,n=this._head;return e.__iterate(function(e){t++,n={value:e,next:n}},!0),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Pn(t,n)},e.prototype.pop=function(){return this.slice(1)},e.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):Rn()},e.prototype.slice=function(e,t){if(H(e,t,this.size))return this;var n=U(e,this.size);if(q(t,this.size)!==this.size)return o.prototype.slice.call(this,e,t);for(var e=this.size-n,r=this._head;n--;)r=r.next;return this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Pn(e,r)},e.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Pn(this.size,this._head,e,this.__hash):0===this.size?Rn():(this.__ownerID=e,this.__altered=!1,this)},e.prototype.__iterate=function(n,e){var r=this;if(e)return new me(this.toArray()).__iterate(function(e,t){return n(e,t,r)},e);for(var t=0,o=this._head;o&&!1!==n(o.value,t++,this);)o=o.next;return t},e.prototype.__iterator=function(t,e){var n,r;return e?new me(this.toArray()).__iterator(t,e):(n=0,r=this._head,new g(function(){var e;return r?(e=r.value,r=r.next,v(t,n++,e)):E()}))},e}(J),a=(An.isStack=Mn,An.prototype);function Pn(e,t,n,r){var o=Object.create(a);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Rn(){return Nn=Nn||Pn(0)}a[In]=!0,a.shift=a.pop,a.unshift=a.push,a.unshiftAll=a.pushAll,a.withMutations=Ht,a.wasAltered=Wt,a.asImmutable=qt,a["@@transducer/init"]=a.asMutable=Ut,a["@@transducer/step"]=function(e,t){return e.unshift(t)},a["@@transducer/result"]=function(e){return e.asImmutable()};var Ln="@@__IMMUTABLE_SET__@@";function Fn(e){return Boolean(e&&e[Ln])}function zn(e){return Fn(e)&&d(e)}function Bn(n,e){var r,o,i,a,t;return n===e||!(!l(e)||void 0!==n.size&&void 0!==e.size&&n.size!==e.size||void 0!==n.__hash&&void 0!==e.__hash&&n.__hash!==e.__hash||c(n)!==c(e)||s(n)!==s(e)||d(n)!==d(e))&&(0===n.size&&0===e.size||(r=!Z(n),d(n)?(o=n.entries(),e.every(function(e,t){var n=o.next().value;return n&&x(n[1],e)&&(r||x(n[0],t))})&&o.next().done):(i=!1,void 0===n.size&&(void 0===e.size?"function"==typeof n.cacheResult&&n.cacheResult():(i=!0,t=n,n=e,e=t)),a=!0,t=e.__iterate(function(e,t){if(r?!n.has(e):i?!x(e,n.get(t,S)):!x(n.get(t,S),e))return a=!1}),a&&n.size===t)))}function Kn(t,n){function e(e){t.prototype[e]=n[e]}Object.keys(n).forEach(e),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(e)}function Hn(e){if(!e||"object"!=typeof e)return e;if(!l(e)){if(!ht(e))return e;e=C(e)}var n,t;return c(e)?(n={},e.__iterate(function(e,t){n[t]=Hn(e)}),n):(t=[],e.__iterate(function(e){t.push(Hn(e))}),t)}var Un,qn=function(r){function t(n){return null==n?Gn():Fn(n)&&!d(n)?n:Gn().withMutations(function(t){var e=r(n);T(e.size),e.forEach(function(e){return t.add(e)})})}return r&&(t.__proto__=r),((t.prototype=Object.create(r&&r.prototype)).constructor=t).of=function(){return this(arguments)},t.fromKeys=function(e){return this(f(e).keySeq())},t.intersect=function(e){return(e=u(e).toArray()).length?o.intersect.apply(t(e.pop()),e):Gn()},t.union=function(e){return(e=u(e).toArray()).length?o.union.apply(t(e.pop()),e):Gn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Wn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Wn(this,this._map.remove(e))},t.prototype.clear=function(){return Wn(this,this._map.clear())},t.prototype.map=function(n,r){var o=this,i=!1,e=Wn(this,this._map.mapEntries(function(e){var e=e[1],t=n.call(r,e,e,o);return t!==e&&(i=!0),[t,t]},r));return i?e:this},t.prototype.union=function(){for(var n=[],e=arguments.length;e--;)n[e]=arguments[e];return 0===(n=n.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations(function(t){for(var e=0;e<n.length;e++)r(n[e]).forEach(function(e){return t.add(e)})}):this.constructor(n[0])},t.prototype.intersect=function(){for(var e,n=[],t=arguments.length;t--;)n[t]=arguments[t];return 0===n.length?this:(n=n.map(function(e){return r(e)}),e=[],this.forEach(function(t){n.every(function(e){return e.includes(t)})||e.push(t)}),this.withMutations(function(t){e.forEach(function(e){t.remove(e)})}))},t.prototype.subtract=function(){for(var e,n=[],t=arguments.length;t--;)n[t]=arguments[t];return 0===n.length?this:(n=n.map(function(e){return r(e)}),e=[],this.forEach(function(t){n.some(function(e){return e.includes(t)})&&e.push(t)}),this.withMutations(function(t){e.forEach(function(e){t.remove(e)})}))},t.prototype.sort=function(e){return pr(nt(this,e))},t.prototype.sortBy=function(e,t){return pr(nt(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e){return t(e,e,n)},e)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){var t;return e===this.__ownerID?this:(t=this._map.__ensureOwner(e),e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this))},t}(X),o=(qn.isSet=Fn,qn.prototype);function Wn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Vn(e,t){var n=Object.create(o);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Gn(){return Un=Un||Vn(I())}o[Ln]=!0,o[t]=o.remove,o.merge=o.concat=o.union,o.withMutations=Ht,o.asImmutable=qt,o["@@transducer/init"]=o.asMutable=Ut,o["@@transducer/step"]=function(e,t){return e.add(t)},o["@@transducer/result"]=function(e){return e.asImmutable()},o.__empty=Gn,o.__make=Vn;var Yn,$n=function(e){function r(e,t,n){if(!(this instanceof r))return new r(e,t,n);if(lt(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Yn)return Yn;Yn=this}}return e&&(r.__proto__=e),((r.prototype=Object.create(e&&e.prototype)).constructor=r).prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},r.prototype.get=function(e,t){return this.has(e)?this._start+B(this,e)*this._step:t},r.prototype.includes=function(e){e=(e-this._start)/this._step;return 0<=e&&e<this.size&&e===Math.floor(e)},r.prototype.slice=function(e,t){return H(e,t,this.size)?this:(e=U(e,this.size),(t=q(t,this.size))<=e?new r(0,0):new r(this.get(e,this._end),this.get(t,this._end),this._step))},r.prototype.indexOf=function(e){e-=this._start;if(e%this._step==0){e=e/this._step;if(0<=e&&e<this.size)return e}return-1},r.prototype.lastIndexOf=function(e){return this.indexOf(e)},r.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,i=0;i!==n&&!1!==e(o,t?n-++i:i++,this);)o+=t?-r:r;return i},r.prototype.__iterator=function(t,n){var r=this.size,o=this._step,i=n?this._start+(r-1)*o:this._start,a=0;return new g(function(){var e;return a===r?E():(e=i,i+=n?-o:o,v(t,n?r-++a:a++,e))})},r.prototype.equals=function(e){return e instanceof r?this._start===e._start&&this._end===e._end&&this._step===e._step:Bn(this,e)},r}(O);function Zn(e,t,n){for(var r=ft(t),o=0;o!==r.length;)if((e=mt(e,r[o++],S))===S)return n;return e}function Jn(e,t){return Zn(this,e,t)}function Xn(e,t){return Zn(e,t,S)!==S}function Qn(){T(this.size);var n={};return this.__iterate(function(e,t){n[t]=e}),n}u.isIterable=l,u.isKeyed=c,u.isIndexed=s,u.isAssociative=Z,u.isOrdered=d,u.Iterator=g,Kn(u,{toArray:function(){T(this.size);var n=new Array(this.size||0),r=c(this),o=0;return this.__iterate(function(e,t){n[o++]=r?[t,e]:e}),n},toIndexedSeq:function(){return new Ve(this)},toJS:function(){return Hn(this)},toKeyedSeq:function(){return new We(this,!0)},toMap:function(){return Yt(this.toKeyedSeq())},toObject:Qn,toOrderedMap:function(){return N(this.toKeyedSeq())},toOrderedSet:function(){return pr(c(this)?this.valueSeq():this)},toSet:function(){return qn(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return An(c(this)?this.valueSeq():this)},toList:function(){return gn(c(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return D(this,function(e,t){var n=c(e);if(0===(t=[e].concat(t).map(function(e){return l(e)?n&&(e=f(e)):e=n?we(e):Se(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size})).length)return e;if(1===t.length){var r=t[0];if(r===e||n&&c(r)||s(e)&&s(r))return r}return r=new me(t),n?r=r.toKeyedSeq():s(e)||(r=r.toSetSeq()),(r=r.flatten(!0)).size=t.reduce(function(e,t){if(void 0!==e){t=t.size;if(void 0!==t)return e+t}},0),r}(this,e))},includes:function(t){return this.some(function(e){return x(e,t)})},entries:function(){return this.__iterator(y)},every:function(r,o){T(this.size);var i=!0;return this.__iterate(function(e,t,n){if(!r.call(o,e,t,n))return i=!1}),i},filter:function(e,t){return D(this,Xe(this,e,t,!0))},find:function(e,t,n){e=this.findEntry(e,t);return e?e[1]:n},forEach:function(e,t){return T(this.size),this.__iterate(t?e.bind(t):e)},join:function(t){T(this.size),t=void 0!==t?""+t:",";var n="",r=!0;return this.__iterate(function(e){r?r=!1:n+=t,n+=null!=e?e.toString():""}),n},keys:function(){return this.__iterator(oe)},map:function(e,t){return D(this,Ze(this,e,t))},reduce:function(e,t,n){return rr(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return rr(this,e,t,n,arguments.length<2,!0)},reverse:function(){return D(this,Je(this,!0))},slice:function(e,t){return D(this,Qe(this,e,t,!0))},some:function(e,t){return!this.every(ar(e),t)},sort:function(e){return D(this,nt(this,e))},values:function(){return this.__iterator(h)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return z(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return n=this,r=e,o=t,i=Yt().asMutable(),n.__iterate(function(e,t){i.update(r.call(o,e,t,n),0,function(e){return e+1})}),i.asImmutable();var n,r,o,i},equals:function(e){return Bn(this,e)},entrySeq:function(){var e,t=this;return t._cache?new me(t._cache):((e=t.toSeq().map(ir).toIndexedSeq()).fromEntrySeq=function(){return t.toSeq()},e)},filterNot:function(e,t){return this.filter(ar(e),t)},findEntry:function(r,o,e){var i=e;return this.__iterate(function(e,t,n){if(r.call(o,e,t,n))return!(i=[t,e])}),i},findKey:function(e,t){e=this.findEntry(e,t);return e&&e[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(K,null,e)},flatMap:function(e,t){return D(this,(r=e,o=t,i=st(n=this),n.toSeq().map(function(e,t){return i(r.call(o,e,t,n))}).flatten(!0)));var n,r,o,i},flatten:function(e){return D(this,tt(this,e,!0))},fromEntrySeq:function(){return new Ye(this)},get:function(n,e){return this.find(function(e,t){return x(t,n)},void 0,e)},getIn:Jn,groupBy:function(e,t){return o=e,i=t,a=c(r=this),s=(d(r)?N:Yt)().asMutable(),r.__iterate(function(t,n){s.update(o.call(i,t,n,r),function(e){return(e=e||[]).push(a?[n,t]:t),e})}),n=st(r),s.map(function(e){return D(r,n(e))}).asImmutable();var r,o,i,a,s,n},has:function(e){return this.get(e,S)!==S},hasIn:function(e){return Xn(this,e)},isSubset:function(t){return t="function"==typeof t.includes?t:u(t),this.every(function(e){return t.includes(e)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:u(e)).isSubset(this)},keyOf:function(t){return this.findKey(function(e){return x(e,t)})},keySeq:function(){return this.toSeq().map(or).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?sr(e):ur)},minBy:function(e,t){return rt(this,t?sr(t):ur,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return D(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(ar(e),t)},sortBy:function(e,t){return D(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return D(this,(s=e,c=t,(e=r(n=this)).__iterateUncached=function(r,e){var o,i=this;return e?this.cacheResult().__iterate(r,e):(o=0,n.__iterate(function(e,t,n){return s.call(c,e,t,n)&&++o&&r(e,t,i)}),o)},e.__iteratorUncached=function(r,e){var o,i,a=this;return e?this.cacheResult().__iterator(r,e):(o=n.__iterator(y,e),i=!0,new g(function(){var e,t,n;return i?(e=o.next()).done?e:(t=(n=e.value)[0],n=n[1],s.call(c,n,t,a)?r===y?e:v(r,t,n,e):(i=!1,E())):E()}))},e));var n,s,c},takeUntil:function(e,t){return this.takeWhile(ar(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=d(e),n=c(e),r=t?1:0;return function(e,t){return t=De(t,3432918353),t=De(t<<15|t>>>-15,461845907),t=De(t<<13|t>>>-13,5),t=De((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=je((t=De(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+lr(k(e),k(t))|0}:function(e,t){r=r+lr(k(e),k(t))|0}:t?function(e){r=31*r+k(e)|0}:function(e){r=r+k(e)|0}),r)}(this))}});var n=u.prototype,er=(n[G]=!0,n[se]=n.values,n.toJSON=n.toArray,n.__toStringMapper=yt,n.inspect=n.toSource=function(){return this.toString()},n.chain=n.flatMap,n.contains=n.includes,Kn(f,{flip:function(){return D(this,$e(this))},mapEntries:function(n,r){var o=this,i=0;return D(this,this.toSeq().map(function(e,t){return n.call(r,[t,e],i++,o)}).fromEntrySeq())},mapKeys:function(n,r){var o=this;return D(this,this.toSeq().flip().map(function(e,t){return n.call(r,e,t,o)}).flip())}}),f.prototype),tr=(er[Y]=!0,er[se]=n.entries,er.toJSON=Qn,er.__toStringMapper=function(e,t){return yt(t)+": "+yt(e)},Kn(J,{toKeyedSeq:function(){return new We(this,!1)},filter:function(e,t){return D(this,Xe(this,e,t,!1))},findIndex:function(e,t){e=this.findEntry(e,t);return e?e[0]:-1},indexOf:function(e){e=this.keyOf(e);return void 0===e?-1:e},lastIndexOf:function(e){e=this.lastKeyOf(e);return void 0===e?-1:e},reverse:function(){return D(this,Je(this,!1))},slice:function(e,t){return D(this,Qe(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=U(e,e<0?this.count():this.size);var r=this.slice(0,e);return D(this,1===n?r:r.concat(j(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){e=this.findLastEntry(e,t);return e?e[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return D(this,tt(this,e,!1))},get:function(n,e){return(n=B(this,n))<0||this.size===1/0||void 0!==this.size&&n>this.size?e:this.find(function(e,t){return t===n},void 0,e)},has:function(e){return 0<=(e=B(this,e))&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return D(this,(a=e,(e=r(i=this)).size=i.size&&2*i.size-1,e.__iterateUncached=function(t,e){var n=this,r=0;return i.__iterate(function(e){return(!r||!1!==t(a,r++,n))&&!1!==t(e,r++,n)},e),r},e.__iteratorUncached=function(e,t){var n,r=i.__iterator(h,t),o=0;return new g(function(){return(!n||o%2)&&(n=r.next()).done?n:o%2?v(e,o++,a):v(e,o++,n.value,n)})},e));var i,a},interleave:function(){var e=[this].concat(j(arguments)),t=it(this.toSeq(),O.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),D(this,n)},keySeq:function(){return $n(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return D(this,et(this,e,t,!1))},zip:function(){var e=[this].concat(j(arguments));return D(this,it(this,cr,e))},zipAll:function(){var e=[this].concat(j(arguments));return D(this,it(this,cr,e,!0))},zipWith:function(e){var t=j(arguments);return D(t[0]=this,it(this,e,t))}}),J.prototype),nr=(tr[$]=!0,tr[re]=!0,Kn(X,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),X.prototype);function rr(e,r,o,i,a,t){return T(e.size),e.__iterate(function(e,t,n){o=a?(a=!1,e):r.call(i,o,e,t,n)},t),o}function or(e,t){return t}function ir(e,t){return[t,e]}function ar(e){return function(){return!e.apply(this,arguments)}}function sr(e){return function(){return-e.apply(this,arguments)}}function cr(){return j(arguments)}function ur(e,t){return e<t?1:t<e?-1:0}function lr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}nr.has=n.includes,nr.contains=nr.includes,nr.keys=nr.values,Kn(ye,er),Kn(O,tr),Kn(ge,nr);var fr,pr=function(e){function t(n){return null==n?yr():zn(n)?n:yr().withMutations(function(t){var e=X(n);T(e.size),e.forEach(function(e){return t.add(e)})})}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).of=function(){return this(arguments)},t.fromKeys=function(e){return this(f(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(qn),dr=(pr.isOrderedSet=zn,pr.prototype);function hr(e,t){var n=Object.create(dr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function yr(){return fr=fr||hr(jn())}dr[re]=!0,dr.zip=tr.zip,dr.zipWith=tr.zipWith,dr.zipAll=tr.zipAll,dr.__empty=yr,dr.__make=hr;var A=function(a,s){var c,e=a;if(ne(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(p(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.");function u(e){var r=this;if(e instanceof u)return e;if(!(this instanceof u))return new u(e);if(!c){c=!0;var t=Object.keys(a),n=l._indices={};l._name=s,l._keys=t,l._defaultValues=a;for(var o=0;o<t.length;o++){var i=t[o];n[i]=o,l[i]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+mr(this)+' with property "'+i+'" since that property name is part of the Record API.'):function(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){lt(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}(l,i)}}return this.__ownerID=void 0,this._values=gn().withMutations(function(n){n.setSize(r._keys.length),f(e).forEach(function(e,t){n.set(r._indices[t],e===r._defaultValues[t]?void 0:e)})}),this}var l=u.prototype=Object.create(P);return l.constructor=u,s&&(u.displayName=s),u},P=(A.prototype.toString=function(){for(var e,t=mr(this)+" { ",n=this._keys,r=0,o=n.length;r!==o;r++)t+=(r?", ":"")+(e=n[r])+": "+yt(this.get(e));return t+" }"},A.prototype.equals=function(e){return this===e||ne(e)&&vr(this).equals(vr(e))},A.prototype.hashCode=function(){return vr(this).hashCode()},A.prototype.has=function(e){return this._indices.hasOwnProperty(e)},A.prototype.get=function(e,t){var n;return this.has(e)?(n=this._indices[e],void 0===(n=this._values.get(n))?this._defaultValues[e]:n):t},A.prototype.set=function(e,t){if(this.has(e)){e=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(e!==this._values&&!this.__ownerID)return gr(this,e)}return this},A.prototype.remove=function(e){return this.set(e)},A.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:gr(this,e)},A.prototype.wasAltered=function(){return this._values.wasAltered()},A.prototype.toSeq=function(){return vr(this)},A.prototype.toJS=function(){return Hn(this)},A.prototype.entries=function(){return this.__iterator(y)},A.prototype.__iterator=function(e,t){return vr(this).__iterator(e,t)},A.prototype.__iterate=function(e,t){return vr(this).__iterate(e,t)},A.prototype.__ensureOwner=function(e){var t;return e===this.__ownerID?this:(t=this._values.__ensureOwner(e),e?gr(this,t,e):(this.__ownerID=e,this._values=t,this))},A.isRecord=ne,A.getDescriptiveName=mr,A.prototype);function gr(e,t,n){e=Object.create(Object.getPrototypeOf(e));return e._values=t,e.__ownerID=n,e}function mr(e){return e.constructor.displayName||e.constructor.name||"Record"}function vr(t){return we(t._keys.map(function(e){return[e,t.get(e)]}))}P[te]=!0,P[t]=P.remove,P.deleteIn=P.removeIn=Ot,P.getIn=Jn,P.hasIn=n.hasIn,P.merge=jt,P.mergeWith=Tt,P.mergeIn=Bt,P.mergeDeep=Ft,P.mergeDeepWith=zt,P.mergeDeepIn=Kt,P.setIn=Et,P.update=kt,P.updateIn=Dt,P.withMutations=Ht,P.asMutable=Ut,P.asImmutable=qt,P[se]=P.entries,P.toJSON=P.toObject=n.toObject,P.inspect=P.toSource=function(){return this.toString()};var br,_r=function(e){function r(e,t){if(!(this instanceof r))return new r(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(br)return br;br=this}}return e&&(r.__proto__=e),((r.prototype=Object.create(e&&e.prototype)).constructor=r).prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},r.prototype.get=function(e,t){return this.has(e)?this._value:t},r.prototype.includes=function(e){return x(this._value,e)},r.prototype.slice=function(e,t){var n=this.size;return H(e,t,n)?this:new r(this._value,q(t,n)-U(e,n))},r.prototype.reverse=function(){return this},r.prototype.indexOf=function(e){return x(this._value,e)?0:-1},r.prototype.lastIndexOf=function(e){return x(this._value,e)?this.size:-1},r.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},r.prototype.__iterator=function(e,t){var n=this,r=this.size,o=0;return new g(function(){return o===r?E():v(e,t?r-++o:o++,n._value)})},r.prototype.equals=function(e){return e instanceof r?x(this._value,e._value):Bn(e)},r}(O);function wr(e,t){return function n(r,o,i,e,a,t){if("string"!=typeof i&&!p(i)&&(de(i)||ce(i)||dt(i))){if(~r.indexOf(i))throw new TypeError("Cannot convert circular structure to Immutable");r.push(i),a&&""!==e&&a.push(e);t=o.call(t,e,C(i).map(function(e,t){return n(r,o,e,t,a,i)}),a&&a.slice());return r.pop(),a&&a.pop(),t}return i}([],t||Sr,e,"",t&&2<t.length?[]:void 0,{"":e})}function Sr(e,t){return s(t)?t.toList():c(t)?t.toMap():t.toSet()}var Er="4.1.0",Cr=u;e.default={version:Er,Collection:u,Iterable:u,Seq:C,Map:Yt,OrderedMap:N,List:gn,Stack:An,Set:qn,OrderedSet:pr,Record:A,Range:$n,Repeat:_r,is:x,fromJS:wr,hash:k,isImmutable:p,isCollection:l,isKeyed:c,isIndexed:s,isAssociative:Z,isOrdered:d,isValueObject:ke,isPlainObject:dt,isSeq:ee,isList:hn,isMap:Oe,isOrderedMap:xe,isStack:Mn,isSet:Fn,isOrderedSet:zn,isRecord:ne,get:mt,getIn:Zn,has:gt,hasIn:Xn,merge:Mt,mergeDeep:At,mergeWith:Nt,mergeDeepWith:Pt,remove:bt,removeIn:Ct,set:_t,setIn:St,update:xt,updateIn:wt}},function(e,t,n){"use strict";var r=n(6).OrderedMap;e.exports={createFromArray:function(e){return r(e.map(function(e){return[e.getKey(),e]}))}}},function(e,t,n){"use strict";e.exports=function(e,r,o,i){var a;e.size&&(a=0,e.reduce(function(e,t,n){return r(e,t)||(o(e)&&i(a,n),a=n),t}),o(e.last())&&i(a,e.count()))}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},function(e,t,n){"use strict";var u=n(9),l=n(16)("draft_tree_data_support");e.exports=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=o.getBlockForKey(a);if(l&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(l)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){s=o.getBlockForKey(c.nextSibling);if(!s||0===s.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return u.removeRange(o,i,n)}},function(e,t,n){"use strict";var r=n(51),c=n(52);e.exports=function(e,t){var o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),e=c(e,t).getBlockMap(),t=e.keySeq(),n=t.indexOf(o),t=t.indexOf(a)+1;return r(e.slice(n,t).map(function(e,t){var n=e.getText(),r=e.getCharacterList();return o===a?e.merge({text:n.slice(i,s),characterList:r.slice(i,s)}):t===o?e.merge({text:n.slice(i),characterList:r.slice(i)}):t===a?e.merge({text:n.slice(0,s),characterList:r.slice(0,s)}):e}))}},function(e,t,n){"use strict";function r(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}var o=n(57),i=n(6),a=n(7),s=n(115),c=(0,i.Map)(),u=s();function l(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var f={getLastCreatedEntityKey:function(){return l("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),f.__getLastCreatedEntityKey()},create:function(e,t,n){return l("DraftEntity.create","contentState.createEntity"),f.__create(e,t,n)},add:function(e){return l("DraftEntity.add","contentState.addEntity"),f.__add(e)},get:function(e){return l("DraftEntity.get","contentState.getEntity"),f.__get(e)},__getAll:function(){return c},__loadWithEntities:function(e){c=e,u=s()},mergeData:function(e,t){return l("DraftEntity.mergeData","contentState.mergeEntityData"),f.__mergeData(e,t)},replaceData:function(e,t){return l("DraftEntity.replaceData","contentState.replaceEntityData"),f.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return u},__create:function(e,t,n){return f.__add(new o({type:e,mutability:t,data:n||{}}))},__add:function(e){return u=s(),c=c.set(u,e),u},__get:function(e){e=c.get(e);return e||a(!1),e},__mergeData:function(e,t){var n=f.__get(e),t=r({},n.getData(),t),n=n.set("data",t);return c=c.set(e,n),n},__replaceData:function(e,t){t=f.__get(e).set("data",t);return c=c.set(e,t),t}};e.exports=f},function(e,t,n){"use strict";n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(r=n).prototype=Object.create(t.prototype),(r.prototype.constructor=r).__proto__=t;var r=n.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(e,t,n){var r,o,i=this.getAnchorKey(),a=this.getFocusKey();return i===a&&i===e?(o=this.getStartOffset(),r=this.getEndOffset(),t<=o&&o<=n||t<=r&&r<=n):(e===i||e===a)&&(t<=(o=e===i?this.getAnchorOffset():this.getFocusOffset())&&o<=n)},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()},n.createEmpty=function(e){return new n({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},n}((0,n(6).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=n},function(e,t,n){"use strict";var r=n(7),o=null;function i(e){return"LTR"===e||"RTL"===e}function a(e){return i(e)||r(!1),"LTR"===e?"ltr":"rtl"}function s(e){o=e}e.exports={NEUTRAL:"NEUTRAL",LTR:"LTR",RTL:"RTL",isStrong:i,getHTMLDir:a,getHTMLDirIfDifferent:function(e,t){return i(e)||r(!1),i(t)||r(!1),e===t?null:a(e)},setGlobalDir:s,initGlobalDir:function(){s("LTR")},getGlobalDir:function(){return o||this.initGlobalDir(),o||r(!1),o}}},function(e,t,n){"use strict";var r=n(34),o=n(60);e.exports=function(e){for(var t=e;t&&t!==r(e).documentElement;){var n=o(t);if(null!=n)return n;t=t.parentNode}return null}},function(e,t,n){"use strict";e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},function(e,t,n){"use strict";e.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}},function(e,t,n){"use strict";function r(e,t){e=o.get(e,t);return"auto"===e||"scroll"===e}var o={get:n(138),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},function(e,t,n){"use strict";var o=n(142),i=n(143);e.exports=function(e){var t=o(e.ownerDocument||e.document),n=(e.Window&&e instanceof e.Window&&(e=t),i(e)),t=e===t?e.ownerDocument.documentElement:e,r=e.scrollWidth-t.clientWidth,e=e.scrollHeight-t.clientHeight;return n.x=Math.max(0,Math.min(n.x,r)),n.y=Math.max(0,Math.min(n.y,e)),n}},function(e,t,n){"use strict";e.exports=function(e){return"handled"===e||!0===e}},function(e,t,n){function o(e){var t;return(s[e]||(t=s[e]={i:e,l:!1,exports:{}},a[e].call(t.exports,t,t.exports,o),t.l=!0,t)).exports}var r,i,a,s;window,e.exports=(r=n(24),i=n(2),s={},o.m=a=[function(e,t){e.exports=r},function(e,t){e.exports=i},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var y=n(1),s=n(0),g=function(e,t,n){var r,e=e.textContent;return""===e.trim()?{chunk:(r=n,{text:" ",inlines:[new s.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:e,inlines:Array(e.length).fill(t),entities:Array(e.length).fill(n),blocks:[]}}},m=function(){return{text:"\n",inlines:[new s.OrderedSet],entities:new Array(1),blocks:[]}},v=function(){return{text:"",inlines:[],entities:[],blocks:[]}},b=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new s.Map({})}]}},_=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new s.Map({})}]}},w=function(e){return{text:"\r ",inlines:[new s.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new s.Map({})}]}},S=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},E=new s.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"]}}),C={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function O(e){return e.style.textAlign?new s.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new s.Map({"margin-left":e.style.marginLeft}):void 0}var x=function(e){var t,n=void 0;return e instanceof HTMLAnchorElement&&(t={},n=e.dataset&&void 0!==e.dataset.mention?(t.url=e.href,t.text=e.innerHTML,t.value=e.dataset.value,y.Entity.__create("MENTION","IMMUTABLE",t)):(t.url=e.getAttribute&&e.getAttribute("href")||e.href,t.title=e.innerHTML,t.targetOption=e.target,y.Entity.__create("LINK","MUTABLE",t))),n},c=(n.d(t,"default",function(){return r})," "),u=new RegExp(" ","g"),k=!0;function r(e,t){t=t,e=e.trim().replace(u,c),e=e,r=null,document.implementation&&document.implementation.createHTMLDocument&&((n=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,r=n.getElementsByTagName("body")[0]);var n,r,i,o,a,e=r?(k=!0,{chunk:function e(t,n,r,o,i,a){var s=t.nodeName.toLowerCase();if(a)if(f=a(s,t))return f=y.Entity.__create(f.type,f.mutability,f.data||{}),{chunk:w(f)};if("#text"===s&&"\n"!==t.textContent)return g(t,n,i);if("br"===s)return{chunk:m()};if("img"===s&&t instanceof HTMLImageElement)return(f={}).src=t.getAttribute&&t.getAttribute("src")||t.src,f.alt=t.alt,f.height=t.style.height,f.width=t.style.width,t.style.float&&(f.alignment=t.style.float),f=y.Entity.__create("IMAGE","MUTABLE",f),{chunk:w(f)};if("video"===s&&t instanceof HTMLVideoElement)return(f={}).src=t.getAttribute&&t.getAttribute("src")||t.src,f.alt=t.alt,f.height=t.style.height,f.width=t.style.width,t.style.float&&(f.alignment=t.style.float),f=y.Entity.__create("VIDEO","MUTABLE",f),{chunk:w(f)};if("iframe"===s&&t instanceof HTMLIFrameElement)return(f={}).src=t.getAttribute&&t.getAttribute("src")||t.src,f.height=t.height,f.width=t.width,f=y.Entity.__create("EMBEDDED_LINK","MUTABLE",f),{chunk:w(f)};var c,u,l,f=function(t,n){var e=E.filter(function(e){return e.element===t&&(!e.wrapper||e.wrapper===n)||e.wrapper===t||e.aliasedElements&&-1<e.aliasedElements.indexOf(t)}).keySeq().toSet().toArray();if(1===e.length)return e[0]}(s,o);f&&("ul"===s||"ol"===s?(o=s,r+=1):("unordered-list-item"!==f&&"ordered-list-item"!==f&&(o="",r=-1),k?(h=b(f,O(t)),k=!1):h=_(f,r,O(t)))),h=h||v(),f=t,c=n,(s=C[s])?l=c.add(s).toOrderedSet():f instanceof HTMLElement&&(u=f,l=(l=c).withMutations(function(e){var t=u.style.color,n=u.style.backgroundColor,r=u.style.fontSize,o=u.style.fontFamily.replace(/^"|"$/g,""),i=u.style.fontWeight,a=u.style.textDecoration,s=u.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),o&&e.add("fontfamily-".concat(o)),"bold"===i&&e.add(C.strong),"underline"===a&&e.add(C.ins),"italic"===s&&e.add(C.em)}).toOrderedSet()),n=l;for(var p=t.firstChild;p;)var d=e(p,n,r,o,x(p)||i,a).chunk,h=S(h,d),p=p.nextSibling;return{chunk:h}}(r,new s.OrderedSet,-1,"",void 0,t).chunk}):null;return e?(i=e.chunk,o=new s.OrderedMap({}),i.entities&&i.entities.forEach(function(e){e&&(o=o.set(e,y.Entity.__get(e)))}),a=0,{contentBlocks:i.text.split("\r").map(function(e,t){var n=a+e.length,r=i&&i.inlines.slice(a,n),o=i&&i.entities.slice(a,n),r=new s.List(r.map(function(e,t){e={style:e,entity:null};return o[t]&&(e.entity=o[t]),y.CharacterMetadata.create(e)}));return a=n,new y.ContentBlock({key:Object(y.genKey)(),type:i&&i.blocks[t]&&i.blocks[t].type||"unstyled",depth:i&&i.blocks[t]&&i.blocks[t].depth,data:i&&i.blocks[t]&&i.blocks[t].data||new s.Map({}),text:e,characterList:r})}),entityMap:o}):null}}],o.c=s,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__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(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=2))},function(e,t,n){"use strict";function o(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}var i=n(25),a=n(12),r=n(18),s=n(13),c=n(30),u=n(31),l=n(14),f=n(56),p=n(16),d=n(6),h=n(58),y=d.List,n=d.Record,g=d.Repeat,m=d.Map,v=d.OrderedMap,d=n({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),b=p("draft_tree_data_support")?s:r,n=function(e){var t;function r(){return e.apply(this,arguments)||this}t=e,(n=r).prototype=Object.create(t.prototype),(n.prototype.constructor=n).__proto__=t;var n=r.prototype;return n.getEntityMap=function(){return c},n.getBlockMap=function(){return this.get("blockMap")},n.getSelectionBefore=function(){return this.get("selectionBefore")},n.getSelectionAfter=function(){return this.get("selectionAfter")},n.getBlockForKey=function(e){return this.getBlockMap().get(e)},n.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},n.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},n.getBlockAfter=function(n){return this.getBlockMap().skipUntil(function(e,t){return t===n}).skip(1).first()},n.getBlockBefore=function(n){return this.getBlockMap().reverse().skipUntil(function(e,t){return t===n}).skip(1).first()},n.getBlocksAsArray=function(){return this.getBlockMap().toArray()},n.getFirstBlock=function(){return this.getBlockMap().first()},n.getLastBlock=function(){return this.getBlockMap().last()},n.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},n.getLastCreatedEntityKey=function(){return c.__getLastCreatedEntityKey()},n.hasText=function(){var e=this.getBlockMap();return 1<e.size||0<escape(e.first().getText()).replace(/%u200B/g,"").length},n.createEntity=function(e,t,n){return c.__create(e,t,n),this},n.mergeEntityData=function(e,t){return c.__mergeData(e,t),this},n.replaceEntityData=function(e,t){return c.__replaceData(e,t),this},n.addEntity=function(e){return c.__add(e),this},n.getEntity=function(e){return c.__get(e)},n.getAllEntities=function(){return c.__getAll()},n.loadWithEntities=function(e){return c.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var e=Array.isArray(e)?e:e.contentBlocks,e=i.createFromArray(e),n=e.isEmpty()?new u:u.createEmpty(e.first().getKey());return new r({blockMap:e,entityMap:t||c,selectionBefore:n,selectionAfter:n})},r.createFromText=function(e){e=e.split(1<arguments.length&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g).map(function(e){return e=h(e),new b({key:l(),text:e,type:"unstyled",characterList:y(g(a.EMPTY,e.length))})});return r.createFromBlockArray(e)},r.fromJS=function(e){return new r(o({},e,{blockMap:v(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new u(e.selectionBefore),selectionAfter:new u(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new b(o({},e,{data:m(e.data),characterList:null!=t?y((Array.isArray(t)?t:f(t)).map(function(e){return a.fromJS(e)})):void 0}))},r}(d);e.exports=n},function(e,t,n){"use strict";var r=n(32),o=n(7),n="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",i="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",a=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+n+i+"]"),s=new RegExp("["+n+i+"]");function c(e){e=a.exec(e);return null==e?null:e[0]}function u(e){e=c(e);return null==e?r.NEUTRAL:s.exec(e)?r.RTL:r.LTR}function l(e,t){return t=t||r.NEUTRAL,!e.length||(e=u(e))===r.NEUTRAL?t:e}function f(e,t){return t=t||r.getGlobalDir(),r.isStrong(t)||o(!1),l(e,t)}e.exports={firstStrongChar:c,firstStrongCharDir:u,resolveBlockDir:l,getDirection:f,isDirectionLTR:function(e,t){return f(e,t)===r.LTR},isDirectionRTL:function(e,t){return f(e,t)===r.RTL}}},function(e,t,n){"use strict";var r=n(0),o=n(19),n=(0,n(6).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:r.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:r.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:r.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=n},function(e,t,n){"use strict";var r=n(68).notEmptyKey;function i(e,t){return r(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n,r,o;return t.isCollapsed()?(n=t.getAnchorKey(),!(0<(r=t.getAnchorOffset()))||(o=e.getBlockForKey(n).getEntityAt(r-1))!==e.getBlockForKey(n).getEntityAt(r)?null:i(e.getEntityMap(),o)):(n=t.getStartKey(),o=(r=t.getStartOffset())===(t=e.getBlockForKey(n)).getLength()?null:t.getEntityAt(r),i(e.getEntityMap(),o))}},function(e,t,n){"use strict";var r=n(136);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";function r(e,t){return t&&(e===t.documentElement||e===t.body)}e.exports={getTop:function(e){var t=e.ownerDocument;return r(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;r(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return r(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;r(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}}},function(e,t,n){"use strict";n(47);e.exports=function(e,t){var n,r=e.getSelection(),e=e.getCurrentContent(),o=r.getStartKey(),i=r.getStartOffset(),a=o,s=0;return i<t?null==(n=e.getKeyBefore(o))?a=o:s=e.getBlockForKey(a=n).getText().length:s=i-t,r.merge({focusKey:a,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";n=n(77);e.exports=n},function(e,t,n){"use strict";var r=n(11),n=n(165),o=r.isPlatform("Mac OS X"),i={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return o&&e.altKey},usesMacOSHeuristics:function(){return o},hasCommandModifier:function(e){return o?!!e.metaKey&&!e.altKey:i.isCtrlKeyCommand(e)},isSoftNewlineEvent:n};e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeDecorator=t.renderNode=t.RawParser=t.createBlockRenderer=t.createStylesRenderer=void 0;var r=s(n(89)),o=s(n(217)),i=n(218),a=s(n(91)),n=s(n(228));function s(e){return e&&e.__esModule?e:{default:e}}t.createStylesRenderer=o.default,t.createBlockRenderer=n.default,t.RawParser=r.default,t.renderNode=i.renderNode,t.CompositeDecorator=a.default,t.default=i.render},function(e,t,n){"use strict";e.exports=n(229)},function(e,t,n){"use strict";var r=n(13),f=n(14),o=n(6).OrderedMap;e.exports=function(e){var u,l;return e.first()instanceof r?(l={},o(e.withMutations(function(c){c.forEach(function(e,t){var n=e.getKey(),r=e.getNextSiblingKey(),o=e.getPrevSiblingKey(),i=e.getChildKeys(),a=e.getParentKey(),s=f();l[n]=s,r&&(c.get(r)?c.setIn([r,"prevSibling"],s):c.setIn([n,"nextSibling"],null)),o&&(c.get(o)?c.setIn([o,"nextSibling"],s):c.setIn([n,"prevSibling"],null)),a&&c.get(a)?(r=c.get(a).getChildKeys(),c.setIn([a,"children"],r.set(r.indexOf(e.getKey()),s))):(c.setIn([n,"parent"],null),u&&(c.setIn([u.getKey(),"nextSibling"],s),c.setIn([n,"prevSibling"],l[u.getKey()])),u=c.get(n)),i.forEach(function(t){c.get(t)?c.setIn([t,"parent"],s):c.setIn([n,"children"],e.getChildKeys().filter(function(e){return e!==t}))})})}).toArray().map(function(e){return[l[e.getKey()],e.set("key",l[e.getKey()])]}))):o(e.toArray().map(function(e){var t=f();return[t,e.set("key",t)]}))}},function(e,t,n){"use strict";var p=n(12),d=n(26),h=n(7);function l(e,t,n){var r,o,i,a=t.getCharacterList(),s=0<n?a.get(n-1):void 0,c=n<a.count()?a.get(n):void 0,s=s?s.getEntity():void 0,c=c?c.getEntity():void 0;if(c&&c===s&&"MUTABLE"!==e.__get(c).getMutability()){r=c,o=n,d(a,function(e,t){return e.getEntity()===t.getEntity()},function(e){return e.getEntity()===r},function(e,t){e<=o&&o<=t&&(i={start:e,end:t})}),"object"!=typeof i&&h(!1);for(var u,s=i,l=s.start,f=s.end;l<f;)u=a.get(l),a=a.set(l,p.applyEntity(u,null)),l++;return t.set("characterList",a)}return t}e.exports=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),s=((a=l(r,s,a))!==s&&(o[i]=a),t.getEndKey()),c=t.getEndOffset(),u=n.get(s);return(r=l(r,u=i===s?a:u,c))!==u&&(o[s]=r),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=e;return n===r.count()?t.forEach(function(e){r=r.push(e)}):0===n?t.reverse().forEach(function(e){r=r.unshift(e)}):(e=r.slice(0,n),n=r.slice(n),r=e.concat(t,n).toList()),r}},function(e,t,n){"use strict";var a=n(6).Map;e.exports=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),n=i.toSeq().skipUntil(function(e,t){return t===r}).takeUntil(function(e,t){return t===o}).concat(a([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(n),selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var i=n(13);e.exports=function(e,t){if(!(e instanceof i))return null;var n=e.getNextSiblingKey();if(n)return n;n=e.getParentKey();if(!n)return null;for(var r=t.get(n);r&&!r.getNextSiblingKey();)var o=r.getParentKey(),r=o?t.get(o):null;return r?r.getNextSiblingKey():null}},function(e,t,n){"use strict";e.exports=function(t){return Object.keys(t).map(function(e){return t[e]})}},function(e,t,n){"use strict";n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(r=n).prototype=Object.create(t.prototype),(r.prototype.constructor=r).__proto__=t;var r=n.prototype;return r.getType=function(){return this.get("type")},r.getMutability=function(){return this.get("mutability")},r.getData=function(){return this.get("data")},n}((0,n(6).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=n},function(e,t,n){"use strict";var r=new RegExp("\r","g");e.exports=function(e){return e.replace(r,"")}},function(e,t,n){"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},function(e,t,n){"use strict";var i=n(20);e.exports=function e(t){if(i(t)){var n=t;if(t=n.getAttribute("data-offset-key"))return t;for(var r=0;r<n.childNodes.length;r++){var o=e(n.childNodes[r]);if(o)return o}}return null}},function(e,t,n){"use strict";e.exports=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}},function(e,t,n){"use strict";var o=n(63),i=n(8),a=n(64),s=n(65);e.exports=function(e){var t,n,r;e._blockSelectEvents||e._latestEditorState!==e.props.editorState?e._blockSelectEvents&&(t=e.props.editorState.getSelection(),o.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})):(t=e.props.editorState,(r=(n=s(t,a(e))).selectionState)!==t.getSelection()&&(t=n.needsRecovery?i.forceSelection(t,r):i.acceptSelection(t,r),e.update(t)))}},function(e,t,n){"use strict";e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},function(e,t,n){"use strict";var r=n(7),o=n(27);e.exports=function(e){return(e=e.editorContainer)||r(!1),o(e.firstChild)||r(!1),e.firstChild}},function(e,t,n){"use strict";var s=n(66);e.exports=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:s(e,t,r,o,i,a)}},function(e,t,n){"use strict";var f=n(33),i=n(60),p=n(67),a=n(7),s=n(20),d=n(10);function h(e,t,n){var r,o=f(t);return null!=o||e&&(e===t||e.firstChild===t)||a(!1),e===t&&(t=t.firstChild,s(t)||a(!1),"true"!==(t=t).getAttribute("data-contents")&&a(!1),0<n&&(n=t.childNodes.length)),0===n?{key:null!=o?o:(e=function(e){for(;e.firstChild&&(s(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||i(e.firstChild));)e=e.firstChild;return e}(t),d(i(e))),offset:0}:(e=t.childNodes[n-1],n=t=null,n=i(e)?(r=function(e){for(;e.lastChild&&(s(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||i(e.lastChild));)e=e.lastChild;return e}(e),t=d(i(r)),c(r)):(t=d(o),c(e)),{key:t,offset:n})}function c(e){e=e.textContent;return"\n"===e?0:e.length}e.exports=function(e,t,n,r,o,i){var a,s,c,u=n.nodeType===Node.TEXT_NODE,l=o.nodeType===Node.TEXT_NODE;return u&&l?{selectionState:p(e,d(f(n)),r,d(f(o)),i),needsRecovery:!1}:(c=!(s=a=null),u?(a={key:d(f(n)),offset:r},s=h(t,o,i)):l?(s={key:d(f(o)),offset:i},a=h(t,n,r)):(a=h(t,n,r),s=h(t,o,i),n===o&&r===i&&(c=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:p(e,a.key,a.offset,s.key,s.offset),needsRecovery:c})}},function(e,t,n){"use strict";var d=n(15),h=n(10);e.exports=function(e,t,n,r,o){var i,a,s,c,u,l,f,p=h(e.getSelection());return!(t&&r&&(t=d.decode(t),i=t.blockKey,l=(l=e.getBlockTree(i))&&l.getIn([t.decoratorKey,"leaves",t.leafKey]),t=d.decode(r),a=t.blockKey,r=(r=e.getBlockTree(a))&&r.getIn([t.decoratorKey,"leaves",t.leafKey]),l&&r&&(t=l.get("start"),s=r.get("start"),c=l?t+n:null,u=r?s+o:null,p.getAnchorKey()!==i||p.getAnchorOffset()!==c||p.getFocusKey()!==a||p.getFocusOffset()!==u)))?p:(f=!1,f=i===a?(l=l.get("end"),r=r.get("end"),s===t&&r===l?o<n:s<t):e.getCurrentContent().getBlockMap().keySeq().skipUntil(function(e){return e===i||e===a}).first()===a,p.merge({anchorKey:i,anchorOffset:c,focusKey:a,focusOffset:u,isBackward:f}))}},function(e,t,n){"use strict";e.exports={notEmptyKey:function(e){return null!=e&&""!=e}}},function(e,t,n){"use strict";var c=n(17);var u=n(134),l=n(0),f=n(7),p=n(70),d=n(135).setDraftEditorSelection,n=function(s){var e;function t(){for(var e,t,n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=s.call.apply(s,[this].concat(i))||this,t=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),r=void 0,(n="leaf")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}e=s,(n=t).prototype=Object.create(e.prototype),(n.prototype.constructor=n).__proto__=e;var n=t.prototype;return n._setSelection=function(){var e,t,n,r,o,i,a=this.props.selection;null!=a&&a.getHasFocus()&&(t=(n=this.props).block,e=n.start,n=n.text,t=t.getKey(),n=e+n.length,a.hasEdgeWithin(t,e,n)&&((r=this.leaf)||f(!1),(o=r.firstChild)||f(!1),o.nodeType===Node.TEXT_NODE?i=o:p(o)?i=r:(i=o.firstChild)||f(!1),d(a,i,t,e,n)))},n.shouldComponentUpdate=function(e){var t=this.leaf;return t||f(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},n.componentDidUpdate=function(){this._setSelection()},n.componentDidMount=function(){this._setSelection()},n.render=function(){var t=this,e=this.props.block,n=this.props.text,r=(n.endsWith("\n")&&this.props.isLast&&(n+="\n"),this.props),o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,r=r.styleSet,s=r.reduce(function(e,t){var n={},t=o[t];return void 0!==t&&e.textDecoration!==t.textDecoration&&(n.textDecoration=[e.textDecoration,t.textDecoration].join(" ").trim()),c(e,t,n)},{});return i&&(i=i(r,e),s=c(s,i)),l.createElement("span",{"data-offset-key":a,ref:function(e){return t.leaf=e},style:s},l.createElement(u,null,n))},t}(l.Component);e.exports=n},function(e,t,n){"use strict";var r=n(20);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"BR"===e.nodeName)}},function(e,t,n){"use strict";e.exports={initODS:function(){},handleExtensionCausedError:function(){}}},function(e,t,n){"use strict";e.exports=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}},function(e,t,n){"use strict";var r=n(141);e.exports=function(e){return{x:(e=r(e)).left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}},function(e,t,n){"use strict";function r(){var e;return(e=!(e=document.documentElement?document.documentElement.clientWidth:e)&&document.body?document.body.clientWidth:e)||0}function o(){var e;return(e=!(e=document.documentElement?document.documentElement.clientHeight:e)&&document.body?document.body.clientHeight:e)||0}function i(){return{width:window.innerWidth||r(),height:window.innerHeight||o()}}i.withoutScrollbars=function(){return{width:r(),height:o()}},e.exports=i},function(e,t,n){"use strict";var r=n(17);function m(){return(m=r||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function o(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}var v=n(69),b=n(15),_=n(0),i=n(45),a=n(36),w=n(41),S=n(32),c=n(19),u=n(73),l=n(37),f=n(74),p=n(7),d=n(27),E=n(10),n=function(s){var e;function t(){for(var e,t,n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=s.call.apply(s,[this].concat(i))||this,t=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),r=void 0,(n="_node")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}e=s,(n=t).prototype=Object.create(e.prototype),(n.prototype.constructor=n).__proto__=e;var n=t.prototype;return n.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||o(e.selection,e.block.getKey())&&e.forceSelection},n.componentDidMount=function(){var e,t,n,r;this.props.preventScroll||(t=(e=this.props.selection).getEndKey(),e.getHasFocus()&&t===this.props.block.getKey()&&null!=(e=this._node)&&(t=a.getScrollParent(e),n=l(t),t===window?0<(r=(r=u(e)).y+r.height-f().height)&&window.scrollTo(n.x,n.y+r+10):(d(e)||p(!1),0<(r=e.offsetHeight+e.offsetTop-(t.offsetTop+t.offsetHeight+n.y))&&i.setTop(t,i.getTop(t)+r+10))))},n._renderChildren=function(){var f=this,p=this.props.block,d=p.getKey(),h=p.getText(),y=this.props.tree.size-1,g=o(this.props.selection,d);return this.props.tree.map(function(e,o){var i,t,n,r,a,s,c,u,l=e.get("leaves");return 0===l.size?null:(i=l.size-1,t=l.map(function(e,t){var n=b.encode(d,o,t),r=e.get("start"),e=e.get("end");return _.createElement(v,{key:n,offsetKey:n,block:p,start:r,selection:g?f.props.selection:null,forceSelection:f.props.forceSelection,text:h.slice(r,e),styleSet:p.getInlineStyleAt(r),customStyleMap:f.props.customStyleMap,customStyleFn:f.props.customStyleFn,isLast:o===y&&t===i})}).toArray(),null!=(a=e.get("decoratorKey"))&&f.props.decorator&&(n=(r=E(f.props.decorator)).getComponentForKey(a))?(r=r.getPropsForKey(a),a=b.encode(d,o,0),s=l.first().get("start"),l=l.last().get("end"),u=h.slice(s,l),e=p.getEntityAt(e.get("start")),c=S.getHTMLDirIfDifferent(w.getDirection(u),f.props.direction),u={contentState:f.props.contentState,decoratedText:u,dir:c,start:s,end:l,blockKey:d,entityKey:e,offsetKey:a},_.createElement(n,m({},r,u,{key:a}),t)):t)}).toArray()},n.render=function(){var t=this,e=this.props,n=e.direction,e=e.offsetKey,n=c({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return _.createElement("div",{"data-offset-key":e,className:n,ref:function(e){return t._node=e}},this._renderChildren())},t}(_.Component);e.exports=n},function(e,t,n){"use strict";var o=n(147),r=n(148),i=n(77),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function c(e){if("file"==e.kind)return e.getAsFile()}e.exports=function(){function e(e){this.data=e,this.types=e.types?r(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return s[e]})},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(a,"\n"):null},t.getHTML=function(){if(this.data.getData)return this.types.length?-1!=this.types.indexOf("text/html")?this.data.getData("text/html"):void 0:this.data.getData("Text")},t.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},t.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},t.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(!e)for(var t=this.getFiles(),n=0;n<t.length;n++){var r=t[n].type;if(!o.isImage(r))return!1}return!0},t.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},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(c).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return 0<this.getFiles().length},e}()},function(e,t,n){"use strict";function r(e){return function(){return e}}function o(){}o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";!function(c){var u=n(7),l=/\.textClipping$/,f={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(o,i){var a=0,s=[];o.forEach(function(e){var t,n,r;e=e,t=function(e){a++,e&&s.push(e.slice(0,5e3)),a==o.length&&i(s.join("\r"))},c.FileReader&&(!e.type||e.type in f)?""===e.type?(n="",l.test(e.name)&&(n=e.name.replace(l,"")),t(n)):((r=new FileReader).onload=function(){var e=r.result;"string"!=typeof e&&u(!1),t(e)},r.onerror=function(){t("")},r.readAsText(e)):t("")})}}.call(this,n(23))},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},function(e,t,n){"use strict";var r=n(8),o=n(21),i=n(46),a=n(28);e.exports=function(e){var t,n=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),t=t.getAnchorOffset(),n=n.getBlockForKey(r).getText()[t-1];return i(e,n?o.getUTF16Length(n,0):1)},"backward");return n===e.getCurrentContent()?e:(t=e.getSelection(),r.push(e,n.set("selectionBefore",t),t.isCollapsed()?"backspace-character":"remove-range"))}},function(e,t,n){"use strict";var r=n(11),a=n(7),n=r.isBrowser("Chrome");e.exports=n?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer,i=(o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0),Array.from(t.getClientRects()));if(n.push(i),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}a(!1)}:function(e){return Array.from(e.getClientRects())}},function(e,t,n){"use strict";var n="\\s|(?![_])"+n(170).getPunctuation(),r=new RegExp("^(?:"+n+")*(?:['‘’]|(?!"+n+").)*(?:(?!"+n+").)"),o=new RegExp("(?:(?!"+n+").)(?:['‘’]|(?!"+n+").)*(?:"+n+")*$");function i(e,t){t=(t?o:r).exec(e);return t?t[0]:e}e.exports={getBackward:function(e){return i(e,!0)},getForward:function(e){return i(e,!1)}}},function(e,t,n){"use strict";n(47);e.exports=function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getStartOffset(),e=e.getCurrentContent(),i=r,e=t>e.getBlockForKey(r).getText().length-o?(i=e.getKeyAfter(r),0):o+t;return n.merge({focusKey:i,focusOffset:e})}},function(e,R,t){"use strict";function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);(r="function"==typeof Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})):r).forEach(function(e){o(t,e,n[e])})}return t}function o(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function f(e){return"ul"===e||"ol"===e}var r=t(12),a=t(18),s=t(13),c=t(42),n=t(30),p=t(180),u=t(19),d=t(14),l=t(85),h=t(16),y=t(6),g=y.List,m=y.Map,v=y.OrderedSet,b=t(181),_=t(70),w=t(27),S=t(182),E=h("draft_tree_data_support"),C=new RegExp("\r","g"),O=new RegExp("\n","g"),x=new RegExp("^\n","g"),k=new RegExp(" ","g"),D=new RegExp(" ?","g"),j=new RegExp("​?","g"),T=["bold","bolder","500","600","700","800","900"],I=["light","lighter","normal","100","200","300","400"],M=["className","href","rel","target","title"],N=["alt","className","height","src","width"],A=(o(y={},u("public/DraftStyleDefault/depth0"),0),o(y,u("public/DraftStyleDefault/depth1"),1),o(y,u("public/DraftStyleDefault/depth2"),2),o(y,u("public/DraftStyleDefault/depth3"),3),o(y,u("public/DraftStyleDefault/depth4"),4),y),P=m({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),L=function(){function e(e,t){o(this,"characterList",g()),o(this,"currentBlockType","unstyled"),o(this,"currentDepth",0),o(this,"currentEntity",null),o(this,"currentText",""),o(this,"wrapper",null),o(this,"blockConfigs",[]),o(this,"contentBlocks",[]),o(this,"entityMap",n),o(this,"blockTypeMap",void 0),o(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=g(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=n,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],v())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(E?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=i({key:e.key||d(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:g(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=g(),this.currentBlockType="unstyled",this.currentText="",e},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o,i,a,s,c,u=e[r],l=u.nodeName.toLowerCase();"body"===l||f(l)?(this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig()),o=this.currentDepth,i=this.wrapper,f(l)&&(this.wrapper=l,f(i)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(u.childNodes),t)),this.currentDepth=o,this.wrapper=i):void 0!==(o=this.blockTypeMap.get(l))?(this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig()),i=this.currentDepth,c=this.wrapper,this.wrapper="pre"===l?"pre":this.wrapper,"string"!=typeof o&&(o=this.disambiguate(l,this.wrapper)||o[0]||"unstyled"),E||!w(u)||"unordered-list-item"!==o&&"ordered-list-item"!==o||(this.currentDepth=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(A).some(function(e){t.classList.contains(e)&&(n=A[e])}),n}(u,this.currentDepth)),a=d(),s=this._toBlockConfigs(Array.from(u.childNodes),t),this._trimCurrentText(),n.push(this._makeBlockConfig({key:a,childConfigs:s,type:o})),this.currentDepth=i,this.wrapper=c):"#text"===l?this._addTextNode(u,t):"br"===l?this._addBreakNode(u,t):S(a=u)&&(a=a).attributes.getNamedItem("src")&&a.attributes.getNamedItem("src").value?this._addImgNode(u,t):!function(e){if(!b(e))return!1;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(e){return!1}}(u)?(s=t,s=function(e,t){var n,r,o;return w(e)?(n=e.style.fontWeight,r=e.style.fontStyle,o=e.style.textDecoration,t.withMutations(function(e){0<=T.indexOf(n)?e.add("BOLD"):0<=I.indexOf(n)&&e.remove("BOLD"),"italic"===r?e.add("ITALIC"):"normal"===r&&e.remove("ITALIC"),"underline"===o&&e.add("UNDERLINE"),"line-through"===o&&e.add("STRIKETHROUGH"),"none"===o&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))})):t}(u,s=P.has(l)?s.add(P.get(l)):s),null!=(c=function(e){if(w(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null}(u))&&(s=s.add(c)),n.push.apply(n,this._toBlockConfigs(Array.from(u.childNodes),s))):this._addAnchorNode(u,n,t)}return n},t._appendText=function(e,t){this.currentText+=e;var n,t=r.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(t))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry(function(e){return null!==e.getEntity()}),t=void 0!==r?Math.min(t,r[0]):t;(n=void 0!==(r=this.characterList.reverse().findEntry(function(e){return null!==e.getEntity()}))?Math.max(n,e-r[0]):n)<t?(this.currentText="",this.characterList=g()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){e=e.textContent;""===e.trim()&&"pre"!==this.wrapper&&(e=" "),"pre"!==this.wrapper&&(e=(e=e.replace(x,"")).replace(O," ")),this._appendText(e,t)},t._addBreakNode=function(e,t){_(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){var n,r;S(e)&&(n=e,r={},N.forEach(function(e){var t=n.getAttribute(e);t&&(r[e]=t)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),h("draftjs_fix_paste_for_img")&&"presentation"===n.getAttribute("role")||this._appendText("📷",t),this.currentEntity=null)},t._addAnchorNode=function(e,t,n){var r,o;b(e)&&(r=e,o={},M.forEach(function(e){var t=r.getAttribute(e);t&&(o[e]=t)}),o.url=new p(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null)},t._toContentBlocks=function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=0<r?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=g(o.childConfigs.map(function(e){return e.key})),this.contentBlocks.push(new s(i({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return g(e).flatMap(function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)})},t._toFlatContentBlocks=function(e){var r=this;this._hoistContainersInBlockConfigs(e).forEach(function(e){var t=r._extractTextFromBlockConfigs(e.childConfigs),n=t.text,t=t.characterList;r.contentBlocks.push(new a(i({},e,{text:e.text+n,characterList:e.characterList.concat(t)})))})},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=g(),o=0;o<=t;o++){var i=e[o],i=(n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last())),this._extractTextFromBlockConfigs(i.childConfigs));n+=i.text,r=r.concat(i.characterList)}return{text:n,characterList:r}},e}();e.exports=function(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:l,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:c,t=t(e=e.trim().replace(C,"").replace(k," ").replace(D,"").replace(j,""));return t?(r={},n.mapKeys(function(t,e){var n=[e.element];void 0!==e.aliasedElements&&n.push.apply(n,e.aliasedElements),n.forEach(function(e){void 0===r[e]?r[e]=t:"string"==typeof r[e]?r[e]=[r[e],t]:r[e].push(t)})}),e=m(r),new L(e,function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}).addDOMNode(t).getContentBlocks()):null}},function(e,t,n){"use strict";var r=n(11),o=n(7),i=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t,n){"use strict";var c=n(9),u=n(8),s=n(183),l=n(10),o={currentBlockContainsLink:function(e){var t=e.getSelection(),e=e.getCurrentContent(),n=e.getEntityMap();return e.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){e=e.getEntity();return!!e&&"LINK"===n.__get(e).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return o.toggleInlineStyle(e,"BOLD");case"italic":return o.toggleInlineStyle(e,"ITALIC");case"underline":return o.toggleInlineStyle(e,"UNDERLINE");case"code":return o.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return o.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return o.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=c.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),e=u.push(e,t,"insert-characters");return u.forceSelection(e,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),r=n.getBlockBefore(r);if(r&&"atomic"===r.getType()){r=n.getBlockMap().delete(r.getKey()),r=n.merge({blockMap:r,selectionAfter:t});if(r!==n)return u.push(e,r,"remove-range")}t=o.tryToRemoveBlockStyle(e);return t?u.push(e,t,"change-block-type"):null},onDelete:function(e){var t,n,r,o=e.getSelection();return o.isCollapsed()&&(t=e.getCurrentContent(),r=o.getStartKey(),n=t.getBlockForKey(r).getLength(),!(o.getStartOffset()<n)&&(n=t.getBlockAfter(r))&&"atomic"===n.getType()&&(r=o.merge({focusKey:n.getKey(),focusOffset:n.getLength()}),(o=c.removeRange(t,r,"forward"))!==t))?u.push(e,o,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),o=i.getBlockForKey(o),a=o.getType();if("unordered-list-item"!==a&&"ordered-list-item"!==a)return t;e.preventDefault();a=o.getDepth();return e.shiftKey||a!==n?(o=s(i,r,e.shiftKey?-1:1,n),u.push(t,o,"adjust-depth")):t},toggleBlockType:function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getEndKey(),a=e.getCurrentContent(),s=r;return o!==i&&0===r.getEndOffset()&&(n=l(a.getBlockBefore(i)),i=n.getKey(),s=s.merge({anchorKey:o,anchorOffset:r.getStartOffset(),focusKey:i,focusOffset:n.getLength(),isBackward:!1})),a.getBlockMap().skipWhile(function(e,t){return t!==o}).reverse().skipWhile(function(e,t){return t!==i}).some(function(e){return"atomic"===e.getType()})?e:(r=a.getBlockForKey(o).getType()===t?"unstyled":t,u.push(e,c.setBlockType(a,s,r),"change-block-type"))},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?o.toggleBlockType(e,"code-block"):o.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n,r=e.getSelection(),o=e.getCurrentInlineStyle();return r.isCollapsed()?u.setInlineStyleOverride(e,o.has(t)?o.remove(t):o.add(t)):(n=e.getCurrentContent(),o=o.has(t)?c.removeInlineStyle(n,r,t):c.applyInlineStyle(n,r,t),u.push(e,o,"change-inline-style"))},toggleLink:function(e,t,n){t=c.applyEntity(e.getCurrentContent(),t,n);return u.push(e,t,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var n=t.getAnchorKey(),e=e.getCurrentContent(),r=e.getBlockForKey(n).getType(),n=e.getBlockBefore(n);if("code-block"===r&&n&&"code-block"===n.getType()&&0!==n.getLength())return null;if("unstyled"!==r)return c.setBlockType(e,t,"unstyled")}return null}};e.exports=o},function(e,t,n){"use strict";var r=n(48),o=n(35),n=n(11),i=n.isPlatform("Mac OS X"),a=i&&n.isBrowser("Firefox < 29"),s=r.hasCommandModifier,c=r.isCtrlKeyCommand;function u(e){return i&&e.altKey||c(e)}e.exports=function(e){switch(e.keyCode){case 66:return s(e)?"bold":null;case 68:return c(e)?"delete":null;case 72:return c(e)?"backspace":null;case 73:return s(e)?"italic":null;case 74:return s(e)?"code":null;case 75:return i&&c(e)?"secondary-cut":null;case 77:case 79:return c(e)?"split-block":null;case 84:return i&&c(e)?"transpose-characters":null;case 85:return s(e)?"underline":null;case 87:return i&&c(e)?"backspace-word":null;case 89:return c(e)?i?"secondary-paste":"redo":null;case 90:return(s(n=e)?n.shiftKey?"redo":"undo":null)||null;case o.RETURN:return"split-block";case o.DELETE:return n=e,!i&&n.shiftKey?null:u(n)?"delete-word":"delete";case o.BACKSPACE:return s(t=e)&&i?"backspace-to-start-of-line":u(t)?"backspace-word":"backspace";case o.LEFT:return a&&s(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return a&&s(e)?"move-selection-to-end-of-block":null;default:return null}var t,n}},function(e,t,n){"use strict";e.exports={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=i(n(90)),c=i(n(215));function i(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function l(e,t,n){return a.default.ucs2.encode(e.slice(t,n))}function s(t,e){return e.forEach(function(e){t.push(e.offset),t.push(e.offset+e.length)}),t}r(f,[{key:"relevantStyles",value:function(t){return this.ranges.filter(function(e){return t>=e.offset&&t<e.offset+e.length}).map(function(e){return e.style})}},{key:"nodeIterator",value:function(o,e,i){var a=this,s=this.relevantIndexes.slice(this.relevantIndexes.indexOf(e),this.relevantIndexes.indexOf(i));return s.forEach(function(e,t){var n=a.relevantStyles(e),r=s[t+1]?s[t+1]-e:1,r=l(a.textArray,e,e+r);o.pushContent(r,n,a.flat),!s[t+1]&&e<i&&o.pushContent(l(a.textArray,e+1,i),a.relevantStyles(i-1),a.flat)}),o}},{key:"parse",value:function(e){var t=this,n=e.text,r=e.inlineStyleRanges,o=e.entityRanges,i=e.decoratorRanges,i=void 0===i?[]:i;this.textArray=a.default.ucs2.decode(n),this.ranges=r,this.iterator=0,this.relevantIndexes=function(e,t,n,r){var n=2<arguments.length&&void 0!==n?n:[],r=3<arguments.length&&void 0!==r?r:[],o=s(o=[],t);return o=s(o,n),(o=s(o,r)).push(0),o.push(e.length),o.filter(function(e,t,n){return n.indexOf(e)===t}).sort(function(e,t){return e-t})}(n,r,o,i);n=function(e,t,n,r){var t=1<arguments.length&&void 0!==t?t:[],o=n,i=r,a=0,n=[].concat(u(e),u(t)).sort(function(e,t){return e.offset-t.offset}),s=[];return n.length<1?s.push(new c.default({block:i,start:0,end:o.length})):(n.forEach(function(e){e.offset>a&&s.push(new c.default({block:i,start:a,end:e.offset})),s.push(new c.default({block:i,entity:e.key,decorator:e.component,decoratorProps:e.decoratorProps,decoratedText:e.component?l(o,e.offset,e.offset+e.length):void 0,start:e.offset,end:e.offset+e.length,contentState:e.contentState})),a=e.offset+e.length}),a<o.length&&s.push(new c.default({block:i,start:a,end:o.length}))),s}(o,i,this.textArray,e).map(function(e){return t.nodeIterator(e,e.start,e.end)});return new c.default({block:e,content:n})}}]);n=f;function f(e){e=e.flat,e=void 0!==e&&e;if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");this.flat=e}t.default=n},function(e,y,O){!function(e,t){var n,g,m,v,o,i,r,a,s,c,u,b,_;/*! https://mths.be/punycode v1.4.1 by @mathias */function w(e){throw new RangeError(c[e])}function l(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function f(e,t){var n=e.split("@"),r="",n=(1<n.length&&(r=n[0]+"@",e=n[1]),(e=e.replace(s,".")).split("."));return r+l(n,t).join(".")}function S(e){for(var t,n,r=[],o=0,i=e.length;o<i;)55296<=(t=e.charCodeAt(o++))&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function h(e){return l(e,function(e){var t="";return 65535<e&&(t+=_((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=_(e)}).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,n){var r=0;for(e=n?b(e/i):e>>1,e+=b(e/t);u*v>>1<e;r+=m)e=b(e/u);return b(r+(u+1)*e/(e+o))}function p(e){var t,n,r,o,i,a,s,c=[],u=e.length,l=0,f=128,p=72,d=e.lastIndexOf("-");for(d<0&&(d=0),n=0;n<d;++n)128<=e.charCodeAt(n)&&w("not-basic"),c.push(e.charCodeAt(n));for(r=0<d?d+1:0;r<u;){for(o=l,i=1,a=m;u<=r&&w("invalid-input"),s=e.charCodeAt(r++),(m<=(s=s-48<10?s-22:s-65<26?s-65:s-97<26?s-97:m)||s>b((g-l)/i))&&w("overflow"),l+=s*i,!(s<(s=a<=p?1:p+v<=a?v:a-p));a+=m)i>b(g/(s=m-s))&&w("overflow"),i*=s;p=C(l-o,t=c.length+1,0==o),b(l/t)>g-f&&w("overflow"),f+=b(l/t),l%=t,c.splice(l++,0,f)}return h(c)}function d(e){for(var t,n,r,o,i,a,s,c,u,l,f=[],p=(e=S(e)).length,d=128,h=72,y=t=0;y<p;++y)(s=e[y])<128&&f.push(_(s));for(n=r=f.length,r&&f.push("-");n<p;){for(o=g,y=0;y<p;++y)d<=(s=e[y])&&s<o&&(o=s);for(o-d>b((g-t)/(c=n+1))&&w("overflow"),t+=(o-d)*c,d=o,y=0;y<p;++y)if((s=e[y])<d&&++t>g&&w("overflow"),s==d){for(i=t,a=m;!(i<(u=a<=h?1:h+v<=a?v:a-h));a+=m)f.push(_(E(u+(l=i-u)%(u=m-u),0))),i=b(l/u);f.push(_(E(i,0))),h=C(t,c,n==r),t=0,++n}++t,++d}return f.join("")}y&&y.nodeType,e&&e.nodeType,(t="object"==typeof t&&t).global!==t&&t.window!==t&&t.self,g=2147483647,v=26,o=38,i=700,r=/^xn--/,a=/[^\x20-\x7E]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},u=(m=36)-1,b=Math.floor,_=String.fromCharCode,n={version:"1.4.1",ucs2:{decode:S,encode:h},decode:p,encode:d,toASCII:function(e){return f(e,function(e){return a.test(e)?"xn--"+d(e):e})},toUnicode:function(e){return f(e,function(e){return r.test(e)?p(e.slice(4).toLowerCase()):e})}},void 0!==(t=function(){return n}.call(y,O,y,e))&&(e.exports=t)}.call(this,O(214)(e),O(23))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0});(function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)})(i,[{key:"getDecorations",value:function(t,n){var c=Array(t.getText().length).fill(null);return this.decorators.forEach(function(e,a){var s=0;(0,e.strategy)(t,function(e,t){if(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return;return 1}(c,e,t)){for(var n=c,r=t,o=a+"."+s,i=e;i<r;i++)n[i]=o;s++}},n)}),c}},{key:"getComponentForKey",value:function(e){e=parseInt(e.split(".")[0],10);return this.decorators[e].component}},{key:"getPropsForKey",value:function(e){e=parseInt(e.split(".")[0],10);return this.decorators[e].props}}]);var o=i;function i(e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.decorators=e.slice()}t.default=o},function(e,t,n){e.exports=function(){"use strict";function o(e,t){if(e)for(var n in e)if({}.hasOwnProperty.call(e,n))t(n,e[n])}function t(e){if(e===undefined||e===null||e.length===0||e.trim().length===0)return true;return false}var n={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 l(e){return e&&n[e]}function f(e){var n="";o(e,function(e,t){if(t)n+="".concat(e,":").concat(t,";")});return n}function i(e,t){var n=[];if(t){var r=0;var o=0;var i=e;var a=t.trigger||"#";var s=t.separator||" ";for(;i.length>0&&o>=0;){if(i[0]===a){o=0;r=0;i=i.substr(a.length)}else{o=i.indexOf(s+a);if(o>=0){i=i.substr(o+(s+a).length);r+=o+s.length}}if(o>=0){var c=i.indexOf(s)>=0?i.indexOf(s):i.length;var u=i.substr(0,c);if(u&&u.length>0)n.push({offset:r,length:u.length+a.length,type:"HASHTAG"});r+=a.length}}}return n}function c(e,t){var n=[];var r=0;var o=e.entityRanges.map(function(e){var t=e.offset,n=e.length,r=e.key;return{offset:t,length:n,key:r,type:"ENTITY"}});o=o.concat(i(e.text,t));o=o.sort(function(e,t){return e.offset-t.offset});o.forEach(function(e){if(e.offset>r)n.push({start:r,end:e.offset});n.push({start:e.offset,end:e.offset+e.length,entityKey:e.key,type:e.type});r=e.offset+e.length});if(r<e.text.length)n.push({start:r,end:e.text.length});return n}function u(e){if(e.entityRanges.length>0&&(t(e.text)||e.type==="atomic"))return true;return false}function p(e){var t=e.text,n=e.inlineStyleRanges;var o={BOLD:new Array(t.length),ITALIC:new Array(t.length),UNDERLINE:new Array(t.length),STRIKETHROUGH:new Array(t.length),CODE:new Array(t.length),SUPERSCRIPT:new Array(t.length),SUBSCRIPT:new Array(t.length),COLOR:new Array(t.length),BGCOLOR:new Array(t.length),FONTSIZE:new Array(t.length),FONTFAMILY:new Array(t.length),length:t.length};if(n&&n.length>0)n.forEach(function(e){var t=e.offset;var n=t+e.length;for(var r=t;r<n;r+=1)if(e.style.indexOf("color-")===0)o.COLOR[r]=e.style.substring(6);else if(e.style.indexOf("bgcolor-")===0)o.BGCOLOR[r]=e.style.substring(8);else if(e.style.indexOf("fontsize-")===0)o.FONTSIZE[r]=e.style.substring(9);else if(e.style.indexOf("fontfamily-")===0)o.FONTFAMILY[r]=e.style.substring(11);else if(o[e.style])o[e.style][r]=true});return o}function d(e,t){var n={};if(e.COLOR[t])n.COLOR=e.COLOR[t];if(e.BGCOLOR[t])n.BGCOLOR=e.BGCOLOR[t];if(e.FONTSIZE[t])n.FONTSIZE=e.FONTSIZE[t];if(e.FONTFAMILY[t])n.FONTFAMILY=e.FONTFAMILY[t];if(e.UNDERLINE[t])n.UNDERLINE=true;if(e.ITALIC[t])n.ITALIC=true;if(e.BOLD[t])n.BOLD=true;if(e.STRIKETHROUGH[t])n.STRIKETHROUGH=true;if(e.CODE[t])n.CODE=true;if(e.SUBSCRIPT[t])n.SUBSCRIPT=true;if(e.SUPERSCRIPT[t])n.SUPERSCRIPT=true;return n}function h(t,e,n){var r=true;if(n>0&&n<t.length)e.forEach(function(e){r=r&&t[e][n]===t[e][n-1]});else r=false;return r}function a(e,t){if(e==="BOLD")return"<strong>".concat(t,"</strong>");if(e==="ITALIC")return"<em>".concat(t,"</em>");if(e==="UNDERLINE")return"<ins>".concat(t,"</ins>");if(e==="STRIKETHROUGH")return"<del>".concat(t,"</del>");if(e==="CODE")return"<code>".concat(t,"</code>");if(e==="SUPERSCRIPT")return"<sup>".concat(t,"</sup>");if(e==="SUBSCRIPT")return"<sub>".concat(t,"</sub>");return t}function s(e){if(e&&e.length>0){var t=e.map(function(e){switch(e){case"\n":return"<br>";case"&":return"&";case"<":return"<";case">":return">";default:return e}});return t.join("")}return""}function y(e,t){if(e&&(e.COLOR||e.BGCOLOR||e.FONTSIZE||e.FONTFAMILY)){var n='style="';if(e.COLOR)n+="color: ".concat(e.COLOR,";");if(e.BGCOLOR)n+="background-color: ".concat(e.BGCOLOR,";");if(e.FONTSIZE)n+="font-size: ".concat(e.FONTSIZE).concat(/^\d+$/.test(e.FONTSIZE)?"px":"",";");if(e.FONTFAMILY)n+="font-family: ".concat(e.FONTFAMILY,";");n+='"';return"<span ".concat(n,">").concat(t,"</span>")}return t}function g(e,t,n,r){var o=e[t];if(typeof r==="function"){var i=r(o,n);if(i)return i}if(o.type==="MENTION")return'<a href="'.concat(o.data.url,'" class="wysiwyg-mention" data-mention data-value="').concat(o.data.value,'">').concat(n,"</a>");if(o.type==="LINK"){var a=o.data.targetOption||"_self";return'<a href="'.concat(o.data.url,'" target="').concat(a,'">').concat(n,"</a>")}if(o.type==="IMAGE"){var s=o.data.alignment;if(s&&s.length)return'<div style="text-align:'.concat(s,';"><img src="').concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/></div>');return'<img src="'.concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/>')}if(o.type==="EMBEDDED_LINK")return'<iframe width="'.concat(o.data.width,'" height="').concat(o.data.height,'" src="').concat(o.data.src,'" frameBorder="0"></iframe>');return n}function m(e,t,n,r){var o=[];var i=Array.from(e.text);if(i.length>0){var a=p(e);var s;for(var c=n;c<r;c+=1)if(c!==n&&h(a,t,c)){s.text.push(i[c]);s.end=c+1}else{s={styles:d(a,c),text:[i[c]],start:c,end:c+1};o.push(s)}}return o}function v(e){if(e){var t=e;for(var n=0;n<t.length;n+=1)if(e[n]===" ")t=t.replace(" "," ");else break;return t}return e}function b(e){if(e){var t=e;for(var n=t.length-1;n>=0;n-=1)if(t[n]===" ")t="".concat(t.substring(0,n)," ").concat(t.substring(n+1));else break;return t}return e}function _(e){var t=e.styles,n=e.text;var r=s(n);o(t,function(e,t){r=a(e,r)});return r}function w(e,t){var n=m(e,["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"],t.start,t.end);var r="";n.forEach(function(e){r+=_(e)});r=y(t.styles,r);return r}function S(t,e,n,r){var o=[];var i=m(t,["COLOR","BGCOLOR","FONTSIZE","FONTFAMILY"],n.start,n.end);i.forEach(function(e){o.push(w(t,e))});var a=o.join("");if(n.type==="ENTITY"){if(n.entityKey!==undefined&&n.entityKey!==null)a=g(e,n.entityKey,a,r)}else if(n.type==="HASHTAG")a='<a href="'.concat(a,'" class="wysiwyg-hashtag">').concat(a,"</a>");return a}function E(r,o,e,i){var a=[];var s=c(r,e);s.forEach(function(e,t){var n=S(r,o,e,i);if(t===0)n=v(n);if(t===s.length-1)n=b(n);a.push(n)});return a.join("")}function C(e,t,n,r,o){var i=[];if(u(e))i.push(g(t,e.entityRanges[0].key,undefined,o));else{var a=l(e.type);if(a){i.push("<".concat(a));var s=f(e.data);if(s)i.push(' style="'.concat(s,'"'));if(r)i.push(' dir = "auto"');i.push(">");i.push(E(e,t,n,o));i.push("</".concat(a,">"))}}i.push("\n");return i.join("")}function O(e){return e==="unordered-list-item"||e==="ordered-list-item"}function x(e,r,o,i,a){var s=[];var c=[];var u;e.forEach(function(e){var t=false;if(!u)s.push("<".concat(l(e.type),">\n"));else if(u.type!==e.type){s.push("</".concat(l(u.type),">\n"));s.push("<".concat(l(e.type),">\n"))}else if(u.depth===e.depth){if(c&&c.length>0){s.push(x(c,r,o,i,a));c=[]}}else{t=true;c.push(e)}if(!t){s.push("<li");var n=f(e.data);if(n)s.push(' style="'.concat(n,'"'));if(i)s.push(' dir = "auto"');s.push(">");s.push(E(e,r,o,a));s.push("</li>\n");u=e}});if(c&&c.length>0)s.push(x(c,r,o,i,a));s.push("</".concat(l(u.type),">\n"));return s.join("")}function e(e,r,o,i){var a=[];if(e){var t=e.blocks,s=e.entityMap;if(t&&t.length>0){var c=[];t.forEach(function(e){if(O(e.type))c.push(e);else{if(c.length>0){var t=x(c,s,r,i);a.push(t);c=[]}var n=C(e,s,r,o,i);a.push(n)}});if(c.length>0){var n=x(c,s,r,o,i);a.push(n);c=[]}}}return a.join("")}return e}()},function(e,t,r){"use strict";function o(n){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(e){n[e]=t[e]})}),n}function s(e){return Object.prototype.toString.call(e)}function c(e){return"[object Function]"===s(e)}function u(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var i={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var a={"http:":{validate:function(e,t,n){e=e.slice(t);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(e)?e.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);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(r)||3<=t&&":"===e[t-3]||3<=t&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length}},"mailto:":{validate:function(e,t,n){e=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(e)?e.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]",f="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(){return function(e,t){t.normalize(e)}}function d(o){var t=o.re=r(204)(o.__opts__),e=o.__tlds__.slice();function n(e){return e.replace("%TLDS%",t.src_tlds)}o.onCompile(),o.__tlds_replaced__||e.push(l),e.push(t.src_xn),t.src_tlds=e.join("|"),t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");var i=[];function a(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}o.__compiled__={},Object.keys(o.__schemas__).forEach(function(e){var t,n,r=o.__schemas__[e];null!==r&&(o.__compiled__[e]=t={validate:null,link:null},"[object Object]"===s(r)?("[object RegExp]"===s(r.validate)?t.validate=(n=r.validate,function(e,t){e=e.slice(t);return n.test(e)?e.match(n)[0].length:0}):c(r.validate)?t.validate=r.validate:a(e,r),c(r.normalize)?t.normalize=r.normalize:r.normalize?a(e,r):t.normalize=p()):"[object String]"===s(r)?i.push(e):a(e,r))}),i.forEach(function(e){o.__compiled__[o.__schemas__[e]]&&(o.__compiled__[e].validate=o.__compiled__[o.__schemas__[e]].validate,o.__compiled__[e].normalize=o.__compiled__[o.__schemas__[e]].normalize)}),o.__compiled__[""]={validate:null,normalize:p()};var e=Object.keys(o.__compiled__).filter(function(e){return 0<e.length&&o.__compiled__[e]}).map(u).join("|");o.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+e+")","i"),o.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+e+")","ig"),o.re.pretest=RegExp("("+o.re.schema_test.source+")|("+o.re.host_fuzzy_test.source+")|@","i"),(e=o).__index__=-1,e.__text_cache__=""}function n(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function h(e,t){t=new n(e,t);return e.__compiled__[t.schema].normalize(t,e),t}function y(e,t){if(!(this instanceof y))return new y(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||i.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=o({},i,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=o({},a,e),this.__compiled__={},this.__tlds__=f,this.__tlds_replaced__=!1,this.re={},d(this)}y.prototype.add=function(e,t){return this.__schemas__[e]=t,d(this),this},y.prototype.set=function(e){return this.__opts__=o(this.__opts__,e),this},y.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i;if(this.re.schema_test.test(e))for((o=this.re.schema_search).lastIndex=0;null!==(t=o.exec(e));)if(n=this.testSchemaAt(e,t[2],o.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(i=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||i<this.__index__)&&null!==(i=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(r=i.index+i[1].length,(this.__index__<0||r<this.__index__)&&(this.__schema__="",this.__index__=r,this.__last_index__=i.index+i[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=e.indexOf("@")&&null!==(i=e.match(this.re.email_fuzzy))&&(r=i.index+i[1].length,i=i.index+i[0].length,(this.__index__<0||r<this.__index__||r===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=r,this.__last_index__=i)),0<=this.__index__},y.prototype.pretest=function(e){return this.re.pretest.test(e)},y.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},y.prototype.match=function(e){for(var t=0,n=[],r=(0<=this.__index__&&this.__text_cache__===e&&(n.push(h(this,t)),t=this.__last_index__),t?e.slice(t):e);this.test(r);)n.push(h(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},y.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),d(this)):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,d(this)),this},y.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},y.prototype.onCompile=function(){},e.exports=y},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=n(231)},function(e,t,n){"use strict";function a(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}var s=n(25),c=n(12),r=n(18),o=n(13),u=n(9),l=n(8),f=n(14),i=n(16),p=n(6),d=n(118),h=i("draft_tree_data_support"),y=h?o:r,g=p.List,m=p.Repeat;e.exports={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),r=u.removeRange(r,o,"backward"),i=r.getSelectionAfter(),r=u.splitBlock(r,i),i=r.getSelectionAfter(),r=u.setBlockType(r,i,"atomic"),t=c.create({entity:t}),t={key:f(),type:"atomic",text:n,characterList:g(m(t,n.length))},n={key:f(),type:"unstyled"},t=(h&&(t=a({},t,{nextSibling:n.key}),n=a({},n,{prevSibling:t.key})),[new y(t),new y(n)]),n=s.createFromArray(t),t=u.replaceWithFragment(r,i,n),r=t.merge({selectionBefore:o,selectionAfter:t.getSelectionAfter().set("hasFocus",!0)});return l.push(e,r,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection(),i=(r="before"===r||"after"===r?(o=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey()),d(i,t,o,r)):(r=(o=u.removeRange(i,n,"backward")).getSelectionAfter(),i=o.getBlockForKey(r.getFocusKey()),0===r.getStartOffset()?d(o,t,i,"before"):r.getEndOffset()===i.getLength()?d(o,t,i,"after"):(i=(n=u.splitBlock(o,r)).getSelectionAfter(),o=n.getBlockForKey(i.getFocusKey()),d(n,t,o,"before")))).merge({selectionBefore:a,selectionAfter:r.getSelectionAfter().set("hasFocus",!0)});return l.push(e,i,"move-block")}}},function(e,t,n){"use strict";var p=n(12),o=n(6).Map;function r(e,t,a,s){var n=e.getBlockMap(),c=t.getStartKey(),u=t.getStartOffset(),l=t.getEndKey(),f=t.getEndOffset(),r=n.skipUntil(function(e,t){return t===c}).takeUntil(function(e,t){return t===l}).concat(o([[l,n.get(l)]])).map(function(e,t){for(var n,r,o=c===l?(n=u,f):(n=t===c?u:0,t===l?f:e.getLength()),i=e.getCharacterList();n<o;)r=i.get(n),i=i.set(n,s?p.applyStyle(r,a):p.removeStyle(r,a)),n++;return e.set("characterList",i)});return e.merge({blockMap:n.merge(r),selectionBefore:t,selectionAfter:t})}e.exports={add:function(e,t,n){return r(e,t,n,!0)},remove:function(e,t,n){return r(e,t,n,!1)}}},function(e,t,n){"use strict";var u=n(106),l=n(6);e.exports=function(e,t,r){var n=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=n.skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===a}).toOrderedMap().merge(l.OrderedMap([[a,n.get(a)]])).map(function(e,t){var n=t===o?i:0,t=t===a?s:e.getLength();return u(e,n,t,r)});return e.merge({blockMap:n.merge(c),selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var a=n(12);e.exports=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,a.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)}},function(e,t,n){"use strict";var l=n(108),f=n(109),p=n(7);function d(e,t,n,r,o,i,a){var s=n.getStartOffset(),c=n.getEndOffset(),e=e.__get(o).getMutability(),u=a?s:c;if("MUTABLE"===e)return n;o=f(t,o).filter(function(e){return u<=e.end&&u>=e.start}),1!=o.length&&p(!1),o=o[0];if("IMMUTABLE"===e)return n.merge({anchorOffset:o.start,focusOffset:o.end,isBackward:!1});i||(a?c=o.end:s=o.start);e=l.getRemovalRange(s,c,t.getText().slice(o.start,o.end),o.start,r);return n.merge({anchorOffset:e.start,focusOffset:e.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i,a,s,c=r.getStartOffset(),u=r.getEndOffset(),c=t.getEntityAt(c),u=n.getEntityAt(u-1);return c||u?(i=r,c&&c===u?i=d(e,t,i,o,c,!0,!0):c&&u?(a=d(e,t,i,o,c,!1,!0),s=d(e,n,i,o,u,!1,!1),i=i.merge({anchorOffset:a.getAnchorOffset(),focusOffset:s.getFocusOffset(),isBackward:!1})):c?(a=d(e,t,i,o,c,!1,!0),i=i.merge({anchorOffset:a.getStartOffset(),isBackward:!1})):u&&(s=d(e,n,i,o,u,!1,!1),i=i.merge({focusOffset:s.getEndOffset(),isBackward:!1})),i):r}},function(e,t,n){"use strict";e.exports={getRemovalRange:function(e,t,n,r,o){for(var i,a=(a=n.split(" ")).map(function(e,t){if("forward"===o){if(0<t)return" "+e}else if(t<a.length-1)return e+" ";return e}),s=r,c=null,u=null,l=0;l<a.length;l++){if(e<(i=s+a[l].length)&&s<t)u=(null!==c||(c=s),i);else if(null!==c)break;s=i}var n=r+n.length,f=c===r,p=u===n;return(!f&&p||f&&!p)&&("forward"===o?u!==n&&u++:c!==r&&c--),{start:c,end:u}}}},function(e,t,n){"use strict";var r=n(7);e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return e.getEntity()===t},function(e,t){n.push({start:e,end:t})}),n.length||r(!1),n}},function(e,t,n){"use strict";var y=n(25),g=n(13),r=n(6),m=n(53),v=n(7),b=n(51),l=r.List,_=function(e,t,n){var r=e.getText(),o=e.getCharacterList(),r=r.slice(0,t),o=o.slice(0,t),t=n.first();return e.merge({text:r+t.getText(),characterList:o.concat(t.getCharacterList()),type:(r?e:t).getType(),data:t.getData()})},w=function(e,t,n){var r=e.getText(),e=e.getCharacterList(),o=r.length,r=r.slice(t,o),e=e.slice(t,o),t=n.last();return t.merge({text:t.getText()+r,characterList:t.getCharacterList().concat(e),data:t.getData()})},S=function(s,e,c,u){return s.withMutations(function(t){var e=c.getKey(),n=u.getKey(),r=c.getNextSiblingKey(),o=c.getParentKey(),i=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(u,s),a=i[i.length-1];t.get(n)?(t.setIn([e,"nextSibling"],n),t.setIn([n,"prevSibling"],e)):(t.setIn([e,"nextSibling"],u.getNextSiblingKey()),t.setIn([u.getNextSiblingKey(),"prevSibling"],e)),t.setIn([a,"nextSibling"],r),r&&t.setIn([r,"prevSibling"],a),i.forEach(function(e){return t.setIn([e,"parent"],o)}),o&&(r=(n=s.get(o).getChildKeys()).indexOf(e)+1,(a=n.toArray()).splice.apply(a,[r,0].concat(i)),t.setIn([o,"children"],l(a)))})};e.exports=function(e,t,n){var r,o,i,a,s,c,u,l=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",f=(t.isCollapsed()||v(!1),e.getBlockMap()),n=b(n),p=t.getStartKey(),d=t.getStartOffset(),h=f.get(p);return h instanceof g&&(h.getChildKeys().isEmpty()||v(!1)),1===n.size?function(e,t,n,r,o,i){var a=6<arguments.length&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),c=s.getText(),u=s.getCharacterList(),l=o,f=i+r.getText().length,p=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":p=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":p=r.getData()}a=s.getType(),c&&"unstyled"===a&&(a=r.getType()),c=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:m(u,r.getCharacterList(),i),type:a,data:p});return e.merge({blockMap:n.set(o,c),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:f,focusKey:l,focusOffset:f,isBackward:!1})})}(e,t,f,n.first(),p,d,l):(h=e,l=t,r=n,o=p,i=d,t=(e=f).first()instanceof g,a=[],s=r.size,n=e.get(o),p=r.first(),d=r.last(),f=d.getLength(),d=d.getKey(),c=t&&(!n.getChildKeys().isEmpty()||!p.getChildKeys().isEmpty()),e.forEach(function(e,t){t!==o?a.push(e):(a.push(c?e:_(e,i,r)),r.slice(c?0:1,s-1).forEach(function(e){return a.push(e)}),a.push(w(e,i,r)))}),u=y.createFromArray(a),t&&(u=S(u,e,n,p)),h.merge({blockMap:u,selectionBefore:l,selectionAfter:l.merge({anchorKey:d,anchorOffset:f,focusKey:d,focusOffset:f,isBackward:!1})}))}},function(e,t,n){"use strict";var r=n(6),l=n(53),f=n(7),p=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||f(!1);var o,i,a,s,c,u=null;return null==(u=null!=n?n.length:u)||0===u?e:(o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),c=(s=o.get(i)).getText(),n=s.merge({text:c.slice(0,a)+n+c.slice(a,s.getLength()),characterList:l(s.getCharacterList(),p(r,u).toList(),a)}),c=a+u,e.merge({blockMap:o.set(i,n),selectionAfter:t.merge({anchorOffset:c,focusOffset:c})}))}},function(e,t,n){"use strict";function v(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;t<n;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e}var b=n(13),_=n(55),n=n(6),w=(n.List,n.Map),S=function(e,t,n){var r;!e||(r=t.get(e))&&t.set(e,n(r))},E=function(e,t){var n=[];if(e)for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},C=function(e,t){var n=[];if(e)for(var r=_(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?_(o,t):null}return n},O=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},x=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r};e.exports=function(e,t){var n,r,o,i,a,s,c,u,l,f,p,d,h,y,g,m;return t.isCollapsed()?e:(n=e.getBlockMap(),r=t.getStartKey(),o=t.getStartOffset(),i=t.getEndKey(),a=t.getEndOffset(),s=n.get(r),c=n.get(i),u=s instanceof b,l=[],u&&(d=c.getChildKeys(),p=E(i,n),c.getNextSiblingKey()&&(l=l.concat(p)),l=(l=d.isEmpty()?l:l.concat(p.concat([i]))).concat(E(_(c,n),n))),d=s===c?v(s.getCharacterList(),o,a):s.getCharacterList().slice(0,o).concat(c.getCharacterList().slice(a)),f=s.merge({text:s.getText().slice(0,o)+c.getText().slice(a),characterList:d}),p=u&&0===o&&0===a&&c.getParentKey()===r&&null==c.getPrevSiblingKey()?w([[r,null]]):n.toSeq().skipUntil(function(e,t){return t===r}).takeUntil(function(e,t){return t===i}).filter(function(e,t){return-1===l.indexOf(t)}).concat(w([[i,null]])).map(function(e,t){return t===r?f:null}),d=n.merge(p).filter(function(e){return!!e}),u&&s!==c&&(y=s,g=c,m=n,d=(h=d).withMutations(function(t){var n,e,r,o;S(y.getKey(),t,function(e){return e.merge({nextSibling:O(e,t,m),prevSibling:x(e,t,m)})}),S(g.getKey(),t,function(e){return e.merge({nextSibling:O(e,t,m),prevSibling:x(e,t,m)})}),E(y.getKey(),m).forEach(function(e){return S(e,t,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return t.get(e)}),nextSibling:O(e,t,m),prevSibling:x(e,t,m)})})}),S(y.getNextSiblingKey(),t,function(e){return e.merge({prevSibling:y.getPrevSiblingKey()})}),S(y.getPrevSiblingKey(),t,function(e){return e.merge({nextSibling:O(e,t,m)})}),S(g.getNextSiblingKey(),t,function(e){return e.merge({prevSibling:x(e,t,m)})}),S(g.getPrevSiblingKey(),t,function(e){return e.merge({nextSibling:g.getNextSiblingKey()})}),E(g.getKey(),m).forEach(function(e){S(e,t,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return t.get(e)}),nextSibling:O(e,t,m),prevSibling:x(e,t,m)})})}),C(g,m).forEach(function(e){return S(e,t,function(e){return e.merge({nextSibling:O(e,t,m),prevSibling:x(e,t,m)})})}),null==h.get(y.getKey())&&null!=h.get(g.getKey())&&g.getParentKey()===y.getKey()&&null==g.getPrevSiblingKey()&&(n=y.getPrevSiblingKey(),S(g.getKey(),t,function(e){return e.merge({prevSibling:n})}),S(n,t,function(e){return e.merge({nextSibling:g.getKey()})}),e=n?h.get(n):null,r=e?e.getParentKey():null,y.getChildKeys().forEach(function(e){S(e,t,function(e){return e.merge({parent:r})})}),null!=r&&(o=h.get(r),S(r,t,function(e){return e.merge({children:o.getChildKeys().concat(y.getChildKeys())})})),S(y.getChildKeys().find(function(e){return null===h.get(e).getNextSiblingKey()}),t,function(e){return e.merge({nextSibling:y.getNextSiblingKey()})}))})),e.merge({blockMap:d,selectionBefore:t,selectionAfter:t.merge({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1})}))}},function(e,t,n){"use strict";var d=n(13),h=n(14),r=n(6),y=n(7),g=n(54),m=r.List,v=r.Map,b=function(e,t,n){var r;!e||(r=t.get(e))&&t.set(e,n(r))};e.exports=function(e,t){t.isCollapsed()||y(!1);var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return g(e,t,function(e){return e.merge({type:"unstyled",depth:0})})}var s,c,a=t.getAnchorOffset(),u=o.getCharacterList(),l=h(),f=o instanceof d,p=o.merge({text:i.slice(0,a),characterList:u.slice(0,a)}),i=p.merge({key:l,text:i.slice(a),characterList:u.slice(a),data:v()}),u=r.toSeq().takeUntil(function(e){return e===o}),a=r.toSeq().skipUntil(function(e){return e===o}).rest(),r=u.concat([[n,p],[l,i]],a).toOrderedMap();return f&&(o.getChildKeys().isEmpty()||y(!1),s=p,c=i,r=r.withMutations(function(e){var r=s.getKey(),o=c.getKey();b(s.getParentKey(),e,function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,t=t.toArray();return t.splice(n,0,o),e.merge({children:m(t)})}),b(s.getNextSiblingKey(),e,function(e){return e.merge({prevSibling:o})}),b(r,e,function(e){return e.merge({nextSibling:o})}),b(o,e,function(e){return e.merge({prevSibling:r})})})),e.merge({blockMap:r,selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:0,focusKey:l,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";function r(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}function s(){return!0}var c=n(26),o=n(56),n=n(6),u=n.List,l=n.Repeat,n=n.Record,f=n({start:null,end:null}),p=n({start:null,end:null,decoratorKey:null,leaves:null});function d(e,t){return e===t}e.exports={generate:function(e,t,n){var o,i,a,r=t.getLength();return r?(o=[],i=n?n.getDecorations(t,e):u(l(null,r)),a=t.getCharacterList(),c(i,d,s,function(e,t){var n,r;o.push(new p({start:e,end:t,decoratorKey:i.get(e),leaves:(t=a.slice(e,t).toList(),n=e,r=[],t=t.map(function(e){return e.getStyle()}).toList(),c(t,d,s,function(e,t){r.push(new f({start:e+n,end:t+n}))}),u(r))}))}),u(o)):u.of(new p({start:0,end:0,decoratorKey:null,leaves:u.of(new f({start:0,end:0}))}))},fromJS:function(e){var t=e.leaves,e=function(e,t){if(null==e)return{};for(var n,r={},o=Object.keys(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,["leaves"]);return new p(r({},e,{leaves:null!=t?u(Array.isArray(t)?t:o(t)).map(function(e){return f(e)}):null}))}}},function(e,t,n){"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})}},function(e,t,n){"use strict";var r,o=n(117),i=n(6),a=n(10),s=i.OrderedMap;e.exports={getDirectionMap:function(e,t){r?r.reset():r=new o;var e=e.getBlockMap(),n=e.valueSeq().map(function(e){return a(r).getDirection(e.getText())}),e=s(e.keySeq().zip(n));return null!=t&&i.is(t,e)?t:e}}},function(e,t,n){"use strict";function r(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var o=n(41),i=n(32),a=n(7),n=function(){function e(e){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),e?i.isStrong(e)||a(!1):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=o.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=n},function(e,t,n){"use strict";var S=n(13),E=n(55),r=n(6),C=n(7),O=r.OrderedMap,x=r.List,k=function(e,t,n){var r;!e||(r=t.get(e))&&t.set(e,n(r))};e.exports=function(e,n,t,r){"replace"===r&&C(!1);var o,i,a,s,c,u,l,f,p,d,h=t.getKey(),y=n.getKey(),g=(y===h&&C(!1),e.getBlockMap()),m=n instanceof S,v=[n],b=g.delete(y),g=(m&&(v=[],b=g.withMutations(function(t){var o=n.getNextSiblingKey(),i=E(n,t);t.toSeq().skipUntil(function(e){return e.getKey()===y}).takeWhile(function(e){var t=e.getKey(),n=t===y,r=o&&t!==o,e=!o&&e.getParentKey()&&(!i||t!==i);return!!(n||r||e)}).forEach(function(e){v.push(e),t.delete(e.getKey())})})),b.toSeq().takeUntil(function(e){return e===t})),b=b.toSeq().skipUntil(function(e){return e===t}).skip(1),_=v.map(function(e){return[e.getKey(),e]}),w=O();return"before"===r?((o=e.getBlockBefore(h))&&o.getKey()===n.getKey()&&C(!1),w=g.concat([].concat(_,[[h,t]]),b).toOrderedMap()):"after"===r&&((o=e.getBlockAfter(h))&&o.getKey()===y&&C(!1),w=g.concat([[h,t]].concat(_),b).toOrderedMap()),e.merge({blockMap:(o=w,g=n,h=t,_=r,m?(i="after"===_,a=g.getKey(),s=h.getKey(),c=g.getParentKey(),u=g.getNextSiblingKey(),l=g.getPrevSiblingKey(),f=h.getParentKey(),p=i?h.getNextSiblingKey():s,d=i?s:h.getPrevSiblingKey(),o.withMutations(function(e){k(c,e,function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})}),k(l,e,function(e){return e.merge({nextSibling:u})}),k(u,e,function(e){return e.merge({prevSibling:l})}),k(p,e,function(e){return e.merge({prevSibling:a})}),k(d,e,function(e){return e.merge({nextSibling:a})}),k(f,e,function(e){var t=e.getChildKeys(),n=t.indexOf(s),n=i?n+1:0!==n?n-1:0,t=t.toArray();return t.splice(n,0,a),e.merge({children:x(t)})}),k(a,e,function(e){return e.merge({nextSibling:p,prevSibling:d,parent:f})})})):o),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:y,focusKey:y})})}},function(e,t,n){"use strict";var r=n(6).List,n=function(){function e(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(t,n){var c=Array(t.getText().length).fill(null);return this._decorators.forEach(function(e,a){var s=0;(0,e.strategy)(t,function(e,t){if(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return;return 1}(c,e,t)){for(var n=c,r=t,o=a+"."+s,i=e;i<r;i++)n[i]=o;s++}},n)}),r(c)},t.getComponentForKey=function(e){e=parseInt(e.split(".")[0],10);return this._decorators[e].component},t.getPropsForKey=function(e){e=parseInt(e.split(".")[0],10);return this._decorators[e].props},e}();e.exports=n},function(A,e,P){"use strict";!function(r){var e=P(17);function p(){return(p=e||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);(r="function"==typeof Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})):r).forEach(function(e){i(t,e,n[e])})}return t}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function a(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}var t=P(42),h=P(59),n=P(121),y=P(129),s=P(146),c=P(149),u=P(185),l=P(186),f=P(71),g=P(8),m=P(0),v=P(45),b=P(36),_=P(11),w=P(19),S=P(14),E=P(87),C=P(37),O=P(16),x=P(7),k=P(27),D=P(10),j=_.isBrowser("IE"),T=!j,I={edit:c,composite:n,drag:s,cut:null,render:null},M=!1,N=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(m.Component),_=function(t){function e(e){var a=t.call(this,e)||this;return i(o(a),"_blockSelectEvents",void 0),i(o(a),"_clipboard",void 0),i(o(a),"_handler",void 0),i(o(a),"_dragCount",void 0),i(o(a),"_internalDrag",void 0),i(o(a),"_editorKey",void 0),i(o(a),"_placeholderAccessibilityID",void 0),i(o(a),"_latestEditorState",void 0),i(o(a),"_latestCommittedEditorState",void 0),i(o(a),"_pendingStateFromBeforeInput",void 0),i(o(a),"_onBeforeInput",void 0),i(o(a),"_onBlur",void 0),i(o(a),"_onCharacterData",void 0),i(o(a),"_onCompositionEnd",void 0),i(o(a),"_onCompositionStart",void 0),i(o(a),"_onCopy",void 0),i(o(a),"_onCut",void 0),i(o(a),"_onDragEnd",void 0),i(o(a),"_onDragOver",void 0),i(o(a),"_onDragStart",void 0),i(o(a),"_onDrop",void 0),i(o(a),"_onInput",void 0),i(o(a),"_onFocus",void 0),i(o(a),"_onKeyDown",void 0),i(o(a),"_onKeyPress",void 0),i(o(a),"_onKeyUp",void 0),i(o(a),"_onMouseDown",void 0),i(o(a),"_onMouseUp",void 0),i(o(a),"_onPaste",void 0),i(o(a),"_onSelect",void 0),i(o(a),"editor",void 0),i(o(a),"editorContainer",void 0),i(o(a),"focus",void 0),i(o(a),"blur",void 0),i(o(a),"setMode",void 0),i(o(a),"exitCurrentMode",void 0),i(o(a),"restoreEditorDOM",void 0),i(o(a),"setClipboard",void 0),i(o(a),"getClipboard",void 0),i(o(a),"getEditorKey",void 0),i(o(a),"update",void 0),i(o(a),"onDragEnter",void 0),i(o(a),"onDragLeave",void 0),i(o(a),"_handleEditorContainerRef",function(e){a.editorContainer=e,a.editor=null!==e?e.firstChild:null}),i(o(a),"focus",function(e){var t,n,r=a.props.editorState,o=r.getSelection().getHasFocus(),i=a.editor;i&&(t=b.getScrollParent(i),n=(e=e||C(t)).x,e=e.y,k(i)||x(!1),i.focus(),t===window?window.scrollTo(n,e):v.setTop(t,e),o||a.update(g.forceSelection(r,r.getSelection())))}),i(o(a),"blur",function(){var e=a.editor;e&&(k(e)||x(!1),e.blur())}),i(o(a),"setMode",function(e){var t=a.props,n=t.onPaste,r=t.onCut,t=t.onCopy,o=d({},I.edit),n=(n&&(o.onPaste=n),r&&(o.onCut=r),t&&(o.onCopy=t),d({},I,{edit:o}));a._handler=n[e]}),i(o(a),"exitCurrentMode",function(){a.setMode("edit")}),i(o(a),"restoreEditorDOM",function(e){a.setState({contentsKey:a.state.contentsKey+1},function(){a.focus(e)})}),i(o(a),"setClipboard",function(e){a._clipboard=e}),i(o(a),"getClipboard",function(){return a._clipboard}),i(o(a),"update",function(e){a._latestEditorState=e,a.props.onChange(e)}),i(o(a),"onDragEnter",function(){a._dragCount++}),i(o(a),"onDragLeave",function(){a._dragCount--,0===a._dragCount&&a.exitCurrentMode()}),a._blockSelectEvents=!1,a._clipboard=null,a._handler=null,a._dragCount=0,a._editorKey=e.editorKey||S(),a._placeholderAccessibilityID="placeholder-"+a._editorKey,a._latestEditorState=e.editorState,a._latestCommittedEditorState=e.editorState,a._onBeforeInput=a._buildHandler("onBeforeInput"),a._onBlur=a._buildHandler("onBlur"),a._onCharacterData=a._buildHandler("onCharacterData"),a._onCompositionEnd=a._buildHandler("onCompositionEnd"),a._onCompositionStart=a._buildHandler("onCompositionStart"),a._onCopy=a._buildHandler("onCopy"),a._onCut=a._buildHandler("onCut"),a._onDragEnd=a._buildHandler("onDragEnd"),a._onDragOver=a._buildHandler("onDragOver"),a._onDragStart=a._buildHandler("onDragStart"),a._onDrop=a._buildHandler("onDrop"),a._onInput=a._buildHandler("onInput"),a._onFocus=a._buildHandler("onFocus"),a._onKeyDown=a._buildHandler("onKeyDown"),a._onKeyPress=a._buildHandler("onKeyPress"),a._onKeyUp=a._buildHandler("onKeyUp"),a._onMouseDown=a._buildHandler("onMouseDown"),a._onMouseUp=a._buildHandler("onMouseUp"),a._onPaste=a._buildHandler("onPaste"),a._onSelect=a._buildHandler("onSelect"),a.getEditorKey=function(){return a._editorKey},a.state={contentsKey:0},a}a(e,t);var n=e.prototype;return n._buildHandler=function(n){var r=this;return function(e){var t;r.props.readOnly||(t=r._handler&&r._handler[n])&&(u?u(function(){return t(r,e)}):t(r,e))}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){var e;return this._showPlaceholder()?(e={text:D(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID},m.createElement(l,e)):null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,s=e.preventScroll,c=e.readOnly,u=e.textAlignment,e=e.textDirectionality,u=w({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),l=this.props.role||"textbox",f="combobox"===l?!!this.props.ariaExpanded:null,t={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:d({},h,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:e};return m.createElement("div",{className:u},this._renderPlaceholder(),m.createElement("div",{className:w("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},m.createElement("div",{"aria-activedescendant":c?null:this.props.ariaActiveDescendantID,"aria-autocomplete":c?null:this.props.ariaAutoComplete,"aria-controls":c?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":c?null:f,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":c?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:w({notranslate:!c,"public/DraftEditor/content":!0}),contentEditable:!c,"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:c?null:l,spellCheck:T&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},m.createElement(N,{editor:this,editorState:a}),m.createElement(y,p({},t,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!M&&O("draft_ods_enabled")&&(M=!0,f.initODS()),this.setMode("edit"),j&&(this.editor?this.editor.ownerDocument:r).execCommand("AutoUrlDetect",!1,!1)},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},e}(m.Component);i(_,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:t,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:E,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),A.exports=_}.call(this,P(23))},function(e,t,n){"use strict";var r=n(122),s=n(9),c=n(15),u=n(8),o=n(35),i=n(11),a=n(62),l=n(64),f=n(65),p=n(43),d=n(10),h=i.isBrowser("IE"),y=!1,g=!1,m=null;var v={onCompositionStart:function(e){g=!0,e=e,m||(m=new r(l(e))).start()},onCompositionEnd:function(e){g=y=!1,setTimeout(function(){y||v.resolveComposition(e)},20)},onSelect:a,onKeyDown:function(e,t){g?t.which!==o.RIGHT&&t.which!==o.LEFT||t.preventDefault():(v.resolveComposition(e),e._onKeyDown(t))},onKeyPress:function(e,t){t.which===o.RETURN&&t.preventDefault()},resolveComposition:function(e){var i,a,t;g||(t=d(m).stopAndFlushMutations(),y=!(m=null),i=u.set(e._latestEditorState,{inCompositionMode:!1}),e.exitCurrentMode(),t.size?(a=i.getCurrentContent(),t.forEach(function(e,t){var t=c.decode(t),n=t.blockKey,r=t.decoratorKey,t=t.leafKey,r=i.getBlockTree(n).getIn([r,"leaves",t]),t=r.start,r=r.end,r=i.getSelection().merge({anchorKey:n,focusKey:n,anchorOffset:t,focusOffset:r,isBackward:!1}),o=p(a,r),n=a.getBlockForKey(n).getInlineStyleAt(t);a=s.replaceText(a,r,e,n,o),i=u.set(i,{currentContent:a})}),t=f(i,l(e)).selectionState,e.restoreEditorDOM(),t=h?u.forceSelection(i,t):u.acceptSelection(i,t),e.update(u.push(t,a,"insert-characters"))):e.update(i))}};e.exports=v},function(e,t,n){"use strict";function r(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var o=n(11),i=n(33),a=n(61),s=n(6),c=n(7),u=n(10),l=s.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=o.isBrowser("IE <= 11");e.exports=function(){function e(e){var t=this,e=(r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=e,this.mutations=l(),a(e));e.MutationObserver&&!p?this.observer=new e.MutationObserver(function(e){return t.registerMutations(e)}):this.onCharData=function(e){e.target instanceof Node||c(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,f):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer,e=(e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData),this.mutations);return this.mutations=l(),e},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,e=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return p?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(e&&e.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);null!=t&&(e=u(i(e.target)),this.mutations=this.mutations.set(e,t))},e}()},function(e,t,n){"use strict";var n=n(124),r="Unknown",o={"Mac OS":"Mac OS X"};var n=(new n).getResult(),i=(i=n.browser.version)?{major:(i=i.split("."))[0],minor:i[1]}:{major:"",minor:""},o={browserArchitecture:n.cpu.architecture||r,browserFullVersion:n.browser.version||r,browserMinorVersion:i.minor||r,browserName:n.browser.name||r,browserVersion:n.browser.major||r,deviceName:n.device.model||r,engineName:n.engine.name||r,engineVersion:n.engine.version||r,platformArchitecture:n.cpu.architecture||r,platformName:(i=n.os.name,o[i]||i||r),platformVersion:n.os.version||r,platformFullVersion:n.os.version||r};e.exports=o},function(F,z,B){var K;!function(o,f){"use strict";function e(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t}function i(e,t){return typeof e===h&&-1!==A(t).indexOf(A(e))}function a(e,t){if(typeof e===h)return e=e.replace(/^\s\s*/,u).replace(/\s\s*$/,u),typeof t==l?e:e.substring(0,255)}function s(e,t){for(var n,r,o,i,a,s=0;s<t.length&&!i;){for(var c=t[s],u=t[s+1],l=n=0;l<c.length&&!i;)if(i=c[l++].exec(e))for(r=0;r<u.length;r++)a=i[++n],typeof(o=u[r])===d&&0<o.length?2===o.length?typeof o[1]==p?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3===o.length?typeof o[1]!==p||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[1],o[2]):f:this[o[0]]=a?o[1].call(this,a,o[2]):f:4===o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):f):this[o]=a||f;s+=2}}function t(e,t){for(var n in t)if(typeof t[n]===d&&0<t[n].length){for(var r=0;r<t[n].length;r++)if(i(t[n][r],e))return"?"===n?f:n}else if(i(t[n],e))return"?"===n?f:n;return e}function c(e,t){var n,r;return typeof e===d&&(t=e,e=f),this instanceof c?(n=e||(typeof o!=l&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:u),r=t?function(e,t){var n,r={};for(n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r}(L,t):L,this.getBrowser=function(){var e,t={};return t.name=f,t[v]=f,s.call(t,n,r.browser),t.major=typeof(e=t.version)===h?e.replace(/[^\d\.]/g,u).split(".")[0]:f,t},this.getCPU=function(){var e={};return e[b]=f,s.call(e,n,r.cpu),e},this.getDevice=function(){var e={};return e[m]=f,e[y]=f,e.type=f,s.call(e,n,r.device),e},this.getEngine=function(){var e={};return e.name=f,e[v]=f,s.call(e,n,r.engine),e},this.getOS=function(){var e={};return e.name=f,e[v]=f,s.call(e,n,r.os),e},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 n},this.setUA=function(e){return n=typeof e===h&&255<e.length?a(e,255):e,this},this.setUA(n),this):new c(e,t).getResult()}var r,u="",p="function",l="undefined",d="object",h="string",y="model",n="name",g="type",m="vendor",v="version",b="architecture",_="console",w="mobile",S="tablet",E="smarttv",C="wearable",O="Amazon",x="BlackBerry",k="Browser",D="Chrome",j="Firefox",T="Google",I="Microsoft",M="Opera",N="Samsung",A=function(e){return e.toLowerCase()},R={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},L={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[n,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[n,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[n,v],[/opios[\/ ]+([\w\.]+)/i],[v,[n,M+" Mini"]],[/\bopr\/([\w\.]+)/i],[v,[n,M]],[/(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],[n,v],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[n,"UC"+k]],[/\bqbcore\/([\w\.]+)/i],[v,[n,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[v,[n,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[n,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[n,"IE"]],[/yabrowser\/([\w\.]+)/i],[v,[n,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[n,/(.+)/,"$1 Secure "+k],v],[/\bfocus\/([\w\.]+)/i],[v,[n,j+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[n,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[n,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[n,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[n,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[n,"MIUI "+k]],[/fxios\/([-\w\.]+)/i],[v,[n,j]],[/\bqihu|(qi?ho?o?|360)browser/i],[[n,"360 "+k]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[n,/(.+)/,"$1 "+k],v],[/(comodo_dragon)\/([\w\.]+)/i],[[n,/_/g," "],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[n,v],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[n],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[n,"Facebook"],v],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[n,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[n,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[n,D+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[n,D+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[n,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[n,v],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[v,[n,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[v,n],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[n,[v,t,{"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],[n,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[n,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[n,j+" 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],[n,v]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[b,"amd64"]],[/(ia32(?=;))/i],[[b,A]],[/((?:i[346]|x)86)[;\)]/i],[[b,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[b,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[b,"armhf"]],[/windows (ce|mobile); ppc;/i],[[b,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[b,/ower/,u,A]],[/(sun4\w)[;\)]/i],[[b,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[b,A]]],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],[y,[m,N],[g,S]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[y,[m,N],[g,w]],[/\((ip(?:hone|od)[\w ]*);/i],[y,[m,"Apple"],[g,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[y,[m,"Apple"],[g,S]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[y,[m,"Huawei"],[g,S]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[y,[m,"Huawei"],[g,w]],[/\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],[[y,/_/g," "],[m,"Xiaomi"],[g,w]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[y,/_/g," "],[m,"Xiaomi"],[g,S]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[y,[m,"OPPO"],[g,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[y,[m,"Vivo"],[g,w]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[y,[m,"Realme"],[g,w]],[/\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],[y,[m,"Motorola"],[g,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[y,[m,"Motorola"],[g,S]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[y,[m,"LG"],[g,S]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[y,[m,"LG"],[g,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[y,[m,"Lenovo"],[g,S]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[y,/_/g," "],[m,"Nokia"],[g,w]],[/(pixel c)\b/i],[y,[m,T],[g,S]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[y,[m,T],[g,w]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[y,[m,"Sony"],[g,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[y,"Xperia Tablet"],[m,"Sony"],[g,S]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[y,[m,"OnePlus"],[g,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[y,[m,O],[g,S]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[y,/(.+)/g,"Fire Phone $1"],[m,O],[g,w]],[/(playbook);[-\w\),; ]+(rim)/i],[y,m,[g,S]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[y,[m,x],[g,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[y,[m,"ASUS"],[g,S]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[y,[m,"ASUS"],[g,w]],[/(nexus 9)/i],[y,[m,"HTC"],[g,S]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[m,[y,/_/g," "],[g,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[y,[m,"Acer"],[g,S]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[y,[m,"Meizu"],[g,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[y,[m,"Sharp"],[g,w]],[/(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],[m,y,[g,w]],[/(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],[m,y,[g,S]],[/(surface duo)/i],[y,[m,I],[g,S]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[y,[m,"Fairphone"],[g,w]],[/(u304aa)/i],[y,[m,"AT&T"],[g,w]],[/\bsie-(\w*)/i],[y,[m,"Siemens"],[g,w]],[/\b(rct\w+) b/i],[y,[m,"RCA"],[g,S]],[/\b(venue[\d ]{2,7}) b/i],[y,[m,"Dell"],[g,S]],[/\b(q(?:mv|ta)\w+) b/i],[y,[m,"Verizon"],[g,S]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[y,[m,"Barnes & Noble"],[g,S]],[/\b(tm\d{3}\w+) b/i],[y,[m,"NuVision"],[g,S]],[/\b(k88) b/i],[y,[m,"ZTE"],[g,S]],[/\b(nx\d{3}j) b/i],[y,[m,"ZTE"],[g,w]],[/\b(gen\d{3}) b.+49h/i],[y,[m,"Swiss"],[g,w]],[/\b(zur\d{3}) b/i],[y,[m,"Swiss"],[g,S]],[/\b((zeki)?tb.*\b) b/i],[y,[m,"Zeki"],[g,S]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],y,[g,S]],[/\b(ns-?\w{0,9}) b/i],[y,[m,"Insignia"],[g,S]],[/\b((nxa|next)-?\w{0,9}) b/i],[y,[m,"NextBook"],[g,S]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],y,[g,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],y,[g,w]],[/\b(ph-1) /i],[y,[m,"Essential"],[g,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[y,[m,"Envizen"],[g,S]],[/\b(trio[-\w\. ]+) b/i],[y,[m,"MachSpeed"],[g,S]],[/\btu_(1491) b/i],[y,[m,"Rotor"],[g,S]],[/(shield[\w ]+) b/i],[y,[m,"Nvidia"],[g,S]],[/(sprint) (\w+)/i],[m,y,[g,w]],[/(kin\.[onetw]{3})/i],[[y,/\./g," "],[m,I],[g,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[y,[m,"Zebra"],[g,S]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[y,[m,"Zebra"],[g,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,y,[g,_]],[/droid.+; (shield) bui/i],[y,[m,"Nvidia"],[g,_]],[/(playstation [345portablevi]+)/i],[y,[m,"Sony"],[g,_]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[y,[m,I],[g,_]],[/smart-tv.+(samsung)/i],[m,[g,E]],[/hbbtv.+maple;(\d+)/i],[[y,/^/,"SmartTV"],[m,N],[g,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,"LG"],[g,E]],[/(apple) ?tv/i],[m,[y,"Apple TV"],[g,E]],[/crkey/i],[[y,D+"cast"],[m,T],[g,E]],[/droid.+aft(\w)( bui|\))/i],[y,[m,O],[g,E]],[/\(dtv[\);].+(aquos)/i],[y,[m,"Sharp"],[g,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[m,a],[y,a],[g,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[g,E]],[/((pebble))app/i],[m,y,[g,C]],[/droid.+; (glass) \d/i],[y,[m,T],[g,C]],[/droid.+; (wt63?0{2,3})\)/i],[y,[m,"Zebra"],[g,C]],[/(quest( 2)?)/i],[y,[m,"Facebook"],[g,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[g,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[y,[g,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[y,[g,S]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[g,S]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[g,w]],[/(android[-\w\. ]{0,9});.+buil/i],[y,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[n,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[n,"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],[n,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,n]],os:[[/microsoft (windows) (vista|xp)/i],[n,v],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[n,[v,t,R]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[n,"Windows"],[v,t,R]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[n,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[n,"Mac OS"],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[v,n],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[n,v],[/\(bb(10);/i],[v,[n,x]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[n,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[n,j+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[n,"webOS"]],[/crkey\/([\d\.]+)/i],[v,[n,D+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[n,"Chromium OS"],v],[/(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],[n,v],[/(sunos) ?([\w\.\d]*)/i],[[n,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[n,v]]},P=(c.VERSION="0.7.31",c.BROWSER=e([n,v,"major"]),c.CPU=e([b]),c.DEVICE=e([y,m,g,_,w,E,S,C,"embedded"]),c.ENGINE=c.OS=e([n,v]),typeof z!=l?(z=typeof F!=l&&F.exports?F.exports=c:z).UAParser=c:"function"===p&&B(125)?(K=function(){return c}.call(z,B,z,F))!==f&&(F.exports=K):typeof o!=l&&(o.UAParser=c),typeof o!=l&&(o.jQuery||o.Zepto));P&&!P.ua&&(r=new c,P.ua=r.getResult(),P.ua.get=function(){return r.getUA()},P.ua.set=function(e){r.setUA(e);var t,n=r.getResult();for(t in n)P.ua[t]=n[t]})}("object"==typeof window?window:this)},function(t,e){!function(e){t.exports=e}.call(this,{})},function(e,t,n){"use strict";var o=n(7),u=/\./,i=/\|\|/,a=/\s+\-\s+/,r=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,l=/^(\d*)(.*)/;function s(e,t){var n,r=e.split(i);return 1<r.length?r.some(function(e){return b.contains(e,t)}):(r=e=r[0].trim(),e=t,0<(r=r.split(a)).length&&r.length<=2||o(!1),1===r.length?c(r[0],e):(n=r[0],r=r[1],y(n)&&y(r)||o(!1),c(">="+n,e)&&c("<="+r,e)))}function c(e,t){if(""===(e=e.trim()))return!0;var n=t.split(u),t=d(e),e=t.modifier,r=t.rangeComponents;switch(e){case"<":return f(n,r);case"<=":var o=n;return-1===(o=v(o,r))||0===o;case">=":return p(n,r);case">":return 1===v(n,r);case"~":case"~>":var o=n,i=r,a=i.slice(),s=(1<(i=i.slice()).length&&i.pop(),i.length-1),c=parseInt(i[s],10);return h(c)&&(i[s]=c+1+""),p(o,a)&&f(o,i);default:return 0===v(n,r)}}function f(e,t){return-1===v(e,t)}function p(e,t){e=v(e,t);return 1===e||0===e}function d(e){var e=e.split(u),t=e[0].match(r);return t||o(!1),{modifier:t[1],rangeComponents:[t[2]].concat(e.slice(1))}}function h(e){return!isNaN(e)&&isFinite(e)}function y(e){return!d(e).modifier}function g(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function m(e,t){return typeof e!=typeof t&&o(!1),t<e?1:e<t?-1:0}function v(e,t){for(var n,r,o,e=function(e,t){g(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return g(t,e.length),[e,t]}(e,t),i=e[0],a=e[1],s=0;s<a.length;s++){n=i[s],r=a[s],o=c=o=c=void 0,c=n.match(l)[1],o=r.match(l)[1],c=parseInt(c,10),o=parseInt(o,10);var c=h(c)&&h(o)&&c!==o?m(c,o):m(n,r);if(c)return c}return 0}var b={contains:function(e,t){return s(e.trim(),t.trim())}};e.exports=b},function(e,t,n){"use strict";var i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!e)return null;var r,o={};for(r in e)i.call(e,r)&&(o[r]=t.call(n,e[r],r,e));return o}},function(e,t,n){"use strict";e.exports=function(t){var n={};return function(e){return n.hasOwnProperty(e)||(n[e]=t.call(this,e)),n[e]}}},function(e,t,n){"use strict";var r=n(16)("draft_tree_data_support");e.exports=n(r?130:144)},function(e,t,n){"use strict";var r=n(17);function C(){return(C=r||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var O=n(131),x=n(15),k=n(0),D=n(10),n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(r=n).prototype=Object.create(t.prototype),(r.prototype.constructor=r).__proto__=t;var r=n.prototype;return r.shouldComponentUpdate=function(e){var t,n,r,o,i,a=this.props.editorState,e=e.editorState;return a.getDirectionMap()!==e.getDirectionMap()||(a.getSelection().getHasFocus()!==e.getSelection().getHasFocus()||(r=e.getNativelyRenderedContent(),t=a.isInCompositionMode(),n=e.isInCompositionMode(),!(a===e||null!==r&&e.getCurrentContent()===r||t&&n)&&(r=a.getCurrentContent(),o=e.getCurrentContent(),a=a.getDecorator(),i=e.getDecorator(),t!==n||r!==o||a!==i||e.mustForceSelection())))},r.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleMap,i=e.customStyleFn,a=e.editorState,s=e.editorKey,c=e.textDirectionality,u=a.getCurrentContent(),l=a.getSelection(),f=a.mustForceSelection(),p=a.getDecorator(),d=D(a.getDirectionMap()),h=[],y=u.getBlocksAsArray()[0];y;)var g=y.getKey(),m={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,contentState:u,customStyleFn:i,customStyleMap:o,decorator:p,editorKey:s,editorState:a,forceSelection:f,selection:l,block:y,direction:c||d.get(g),tree:a.getBlockTree(g)},v=(t.get(y.getType())||t.get("unstyled")).wrapper,m=(h.push({block:k.createElement(O,C({key:g},m)),wrapperTemplate:v,key:g,offsetKey:x.encode(g,0,0)}),y.getNextSiblingKey()),y=m?u.getBlockForKey(m):null;for(var b=[],_=0;_<h.length;){var w=h[_];if(w.wrapperTemplate){for(var S=[];S.push(h[_].block),++_<h.length&&h[_].wrapperTemplate===w.wrapperTemplate;);var E=k.cloneElement(w.wrapperTemplate,{key:w.key+"-wrap","data-offset-key":w.offsetKey},S);b.push(E)}else b.push(w.block),_++}return k.createElement("div",{"data-contents":"true"},b)},n}(k.Component);e.exports=n},function(e,t,n){"use strict";var r=n(17);function d(){return(d=r||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);(r="function"==typeof Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})):r).forEach(function(e){i(t,e,n[e])})}return t}function i(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function h(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}function C(e,t){var n=(e=t.get(e.getType())||t.get("unstyled")).wrapper;return{Element:e.element||t.get("unstyled").element,wrapperTemplate:n}}function O(e,t){return(t=t(e))?{CustomComponent:t.component,customProps:t.props,customEditable:t.editable}:{}}function x(e,t,n,r,o,i){return t={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:i},(n=r(e))&&(t.className=n),t=void 0!==o.customEditable?E({},t,{contentEditable:o.customEditable,suppressContentEditableWarning:!0}):t}var k=n(132),D=n(15),j=n(0),a=n(45),s=n(36),c=n(73),u=n(37),l=n(74),o=n(6),f=n(7),p=n(27),n=(o.List,function(o){var e;function S(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return i(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e=o.call.apply(o,[this].concat(n))||this),"wrapperRef",j.createRef()),e}e=o,(t=S).prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e;var t=S.prototype;return t.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,t=t.tree,o=!n.getChildKeys().isEmpty(),n=n!==e.block||t!==e.tree||r!==e.direction||h(e.selection,e.block.getKey())&&e.forceSelection;return o||n},t.componentDidMount=function(){var e,t,n=this.props.selection,r=n.getEndKey();!n.getHasFocus()||r!==this.props.block.getKey()||(n=this.wrapperRef.current)&&(r=s.getScrollParent(n),e=u(r),r===window?0<(t=(t=c(n)).y+t.height-l().height)&&window.scrollTo(e.x,e.y+t+10):(p(n)||f(!1),0<(t=n.offsetHeight+n.offsetTop-(r.offsetHeight+e.y))&&a.setTop(r,a.getTop(r)+t+10)))},t.render=function(){var y=this,e=this.props,t=e.block,g=e.blockRenderMap,m=e.blockRendererFn,v=e.blockStyleFn,b=e.contentState,n=e.decorator,_=e.editorKey,w=e.editorState,r=e.customStyleFn,o=e.customStyleMap,i=e.direction,a=e.forceSelection,s=e.selection,e=e.tree,c=null,u=(t.children.size&&(c=t.children.reduce(function(e,t){var n=D.encode(t,0,0),r=b.getBlockForKey(t),o=O(r,m),i=o.CustomComponent||S,a=C(r,g),s=a.Element,a=a.wrapperTemplate,c=x(r,_,n,v,o,null),t=E({},y.props,{tree:w.getBlockTree(t),blockProps:o.customProps,offsetKey:n,block:r});if(e.push(j.createElement(s,c,j.createElement(i,t))),a&&(o=b,!(c=(n=r).getNextSiblingKey())||o.getBlockForKey(c).getType()!==n.getType())){var i=a,u=s,t=e,l=[],f=!0,r=!1,o=void 0;try{for(var p,d=t.reverse()[Symbol.iterator]();!(f=(p=d.next()).done);f=!0){var h=p.value;if(h.type!==u)break;l.push(h)}}catch(e){r=!0,o=e}finally{try{f||null==d.return||d.return()}finally{if(r)throw o}}t.splice(t.indexOf(l[0]),l.length+1),r=l.reverse(),o=r[0].key,t.push(j.cloneElement(i,{key:"".concat(o,"-wrap"),"data-offset-key":D.encode(o,0,0)},r))}return e},[])),t.getKey()),l=D.encode(u,0,0),f=O(t,m),p=f.CustomComponent,p=null!=p?j.createElement(p,d({},this.props,{tree:w.getBlockTree(u),blockProps:f.customProps,offsetKey:l,block:t})):j.createElement(k,{block:t,children:c,contentState:b,customStyleFn:r,customStyleMap:o,decorator:n,direction:i,forceSelection:a,hasSelection:h(s,u),selection:s,tree:e});return t.getParentKey()?p:(c=C(t,g).Element,r=x(t,_,l,v,f,this.wrapperRef),j.createElement(c,r,p))},S}(j.Component));e.exports=n},function(e,t,n){"use strict";var m=n(133),v=n(69),b=n(15),r=n(6),_=n(0),o=n(19),n=(r.List,function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r.prototype.render=function(){var e=this.props,s=e.block,n=e.contentState,c=e.customStyleFn,u=e.customStyleMap,r=e.decorator,l=e.direction,f=e.forceSelection,p=e.hasSelection,d=e.selection,e=e.tree,h=s.getKey(),y=s.getText(),g=e.size-1,e=this.props.children||e.map(function(e,o){var i=e.get("decoratorKey"),t=e.get("leaves"),a=t.size-1,t=t.map(function(e,t){var n=b.encode(h,o,t),r=e.get("start"),e=e.get("end");return _.createElement(v,{key:n,offsetKey:n,block:s,start:r,selection:p?d:null,forceSelection:f,text:y.slice(r,e),styleSet:s.getInlineStyleAt(r),customStyleMap:u,customStyleFn:c,isLast:i===g&&t===a})}).toArray();return i&&r?_.createElement(m,{block:s,children:t,contentState:n,decorator:r,decoratorKey:i,direction:l,leafSet:e,text:y,key:o}):t}).toArray();return _.createElement("div",{"data-offset-key":b.encode(h,0,0),className:o({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===l,"public/DraftStyleDefault/rtl":"RTL"===l})},e)},r}(_.Component));e.exports=n},function(e,t,n){"use strict";var r=n(17);function f(){return(f=r||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var p=n(15),d=n(0),h=n(41),y=n(32),n=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r.prototype.render=function(){var e=this.props,t=e.block,n=e.children,r=e.contentState,o=e.decorator,i=e.decoratorKey,a=e.direction,s=e.leafSet,e=e.text,c=t.getKey(),u=s.get("leaves"),l=o.getComponentForKey(i),o=o.getPropsForKey(i),c=p.encode(c,parseInt(i,10),0),i=e.slice(u.first().get("start"),u.last().get("end")),e=y.getHTMLDirIfDifferent(h.getDirection(i),a);return d.createElement(l,f({},o,{contentState:r,decoratedText:i,dir:e,key:c,entityKey:t.getEntityAt(s.get("start")),offsetKey:c}),n)},r}(d.Component);e.exports=n},function(e,t,n){"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var a=n(0),r=n(11),s=n(7),c=n(20),u=r.isBrowser("IE <= 11");n=function(t){var e;function n(e){e=t.call(this,e)||this;return i(o(e),"_forceFlag",void 0),i(o(e),"_node",void 0),e._forceFlag=!1,e}e=t,(r=n).prototype=Object.create(e.prototype),(r.prototype.constructor=r).__proto__=e;var r=n.prototype;return r.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;c(t)||s(!1);return n?(n=t,!(u?"\n"===n.textContent:"BR"===n.tagName)):t.textContent!==e.children},r.componentDidMount=function(){this._forceFlag=!this._forceFlag},r.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},r.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},u?a.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):a.createElement("br",{key:"A","data-text":"true",ref:e})):(e=function(e){return t._node=e},u?a.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):a.createElement("br",{key:"B","data-text":"true",ref:e})):a.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},n}(a.Component);e.exports=n},function(e,t,n){"use strict";var i=n(71),s=n(63),r=n(11),d=n(44),c=n(72),h=n(34),o=n(7),a=n(20),u=r.isBrowser("IE");function l(e,t){return e?(e=function e(t,n){var r=void 0!==n?n(t):[];{var o;if(t.nodeType===Node.TEXT_NODE)return o=t.textContent.length,h(t).createTextNode("[text "+o+(r.length?" | "+r.join(", "):"")+"]")}var i=t.cloneNode();1===i.nodeType&&r.length&&i.setAttribute("data-labels",r.join(", "));var a=t.childNodes;for(var s=0;s<a.length;s++)i.appendChild(e(a[s],n));return i}(e,t)).nodeType===Node.TEXT_NODE?e.textContent:(a(e)||o(!1),e.outerHTML):"[empty]"}function f(e,t){for(var n=e,r=n;n;){if(a(n)&&r.hasAttribute("contenteditable"))return l(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function p(e){return(null===e.nodeValue?e.childNodes:e.nodeValue).length}function y(n,t,r,o){var i=c();if(n.extend&&null!=t&&d(i,t)){r>p(t)&&s.logSelectionStateFailure({anonymizedDom:f(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(o.toJS())});var a=t===n.focusNode;try{0<n.rangeCount&&n.extend&&n.extend(t,r)}catch(e){throw s.logSelectionStateFailure({anonymizedDom:f(t,function(e){var t=[];return e===i&&t.push("active element"),e===n.anchorNode&&t.push("selection anchor node"),e===n.focusNode&&t.push("selection focus node"),t}),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:t===n.focusNode,nodeWasFocus:a,selectionRangeCount:n.rangeCount,selectionAnchorNodeName:n.anchorNode?n.anchorNode.nodeName:null,selectionAnchorOffset:n.anchorOffset,selectionFocusNodeName:n.focusNode?n.focusNode.nodeName:null,selectionFocusOffset:n.focusOffset,message:e?""+e:null,offset:r},null,2),selectionState:JSON.stringify(o.toJS(),null,2)}),e}}else t&&0<n.rangeCount&&((a=n.getRangeAt(0)).setEnd(t,r),n.addRange(a.cloneRange()))}function g(e,t,n,r){var o=h(t).createRange();if(n>p(t)&&(s.logSelectionStateFailure({anonymizedDom:f(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),i.handleExtensionCausedError()),o.setStart(t,n),u)try{e.addRange(o)}catch(e){}else e.addRange(o)}e.exports={setDraftEditorSelection:function(e,t,n,r,o){var i,a,s,c,u,l,f,p=h(t);d(p.documentElement,t)&&(p=p.defaultView.getSelection(),f=e.getAnchorKey(),i=e.getAnchorOffset(),l=e.getFocusKey(),a=e.getFocusOffset(),s=e.getIsBackward(),!p.extend&&s&&(u=f,c=i,f=l,i=a,l=u,a=c,s=!1),u=l===n&&r<=a&&a<=o,(c=f===n&&r<=i&&i<=o)&&u?(p.removeAllRanges(),g(p,t,i-r,e),y(p,t,a-r,e)):s?(u&&(p.removeAllRanges(),g(p,t,a-r,e)),c&&(l=p.focusNode,f=p.focusOffset,p.removeAllRanges(),g(p,t,i-r,e),y(p,l,f,e))):(c&&(p.removeAllRanges(),g(p,t,i-r,e)),u&&y(p,t,a-r,e)))},addFocusToSelection:y}},function(e,t,n){"use strict";var r=n(137);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t,n){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";var r=n(139),o=n(140);function i(e){return null==e?e:String(e)}e.exports=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return i(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return i(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):i(e.style&&e.style[r(t)])}},function(e,t,n){"use strict";var r=/-(.)/g;e.exports=function(e){return e.replace(r,function(e,t){return t.toUpperCase()})}},function(e,t,n){"use strict";var r=/([A-Z])/g;e.exports=function(e){return e.replace(r,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(44);e.exports=function(e){var t=e.ownerDocument.documentElement;return"getBoundingClientRect"in e&&r(t,e)?(e=e.getBoundingClientRect(),{left:Math.round(e.left)-t.clientLeft,right:Math.round(e.right)-t.clientLeft,top:Math.round(e.top)-t.clientTop,bottom:Math.round(e.bottom)-t.clientTop}):{left:0,right:0,top:0,bottom:0}}},function(e,t,n){"use strict";var r="undefined"!=typeof navigator&&-1<navigator.userAgent.indexOf("AppleWebKit");e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:r||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t,n){"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t,n){"use strict";var r=n(17);function L(){return(L=r||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function F(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}var z=n(75),B=n(15),K=n(0),H=n(19),U=n(145),q=n(10),n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(r=n).prototype=Object.create(t.prototype),(r.prototype.constructor=r).__proto__=t;var r=n.prototype;return r.shouldComponentUpdate=function(e){var t,n,r,o,i,a=this.props.editorState,e=e.editorState;return a.getDirectionMap()!==e.getDirectionMap()||(a.getSelection().getHasFocus()!==e.getSelection().getHasFocus()||(r=e.getNativelyRenderedContent(),t=a.isInCompositionMode(),n=e.isInCompositionMode(),!(a===e||null!==r&&e.getCurrentContent()===r||t&&n)&&(r=a.getCurrentContent(),o=e.getCurrentContent(),a=a.getDecorator(),i=e.getDecorator(),t!==n||r!==o||a!==i||e.mustForceSelection())))},r.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleMap,i=e.customStyleFn,a=e.editorState,s=e.editorKey,c=e.preventScroll,u=e.textDirectionality,l=a.getCurrentContent(),f=a.getSelection(),p=a.mustForceSelection(),d=a.getDecorator(),h=q(a.getDirectionMap()),y=l.getBlocksAsArray(),g=[],m=null,v=null,b=0;b<y.length;b++){var _=y[b],w=_.getKey(),S=_.getType(),E=n(_),C=void 0,O=void 0,x=void 0,E=(E&&(C=E.component,O=E.props,x=E.editable),u||h.get(w)),k=B.encode(w,0,0),O={contentState:l,block:_,blockProps:O,blockStyleFn:r,customStyleMap:o,customStyleFn:i,decorator:d,direction:E,forceSelection:p,offsetKey:k,preventScroll:c,selection:f,tree:a.getBlockTree(w)},D=t.get(S)||t.get("unstyled"),j=D.wrapper,D=D.element||t.get("unstyled").element,T=_.getDepth(),I="",S=(r&&(I=r(_)),"li"===D&&(I=U(I,H({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===S,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===S,"public/DraftStyleDefault/reset":v!==j||null===m||m<T,"public/DraftStyleDefault/depth0":0===T,"public/DraftStyleDefault/depth1":1===T,"public/DraftStyleDefault/depth2":2===T,"public/DraftStyleDefault/depth3":3===T,"public/DraftStyleDefault/depth4":4<=T,"public/DraftStyleDefault/listLTR":"LTR"===E,"public/DraftStyleDefault/listRTL":"RTL"===E}))),C||z),T={className:I,"data-block":!0,"data-editor":s,"data-offset-key":k,key:w},E=(void 0!==x&&(T=F({},T,{contentEditable:x,suppressContentEditableWarning:!0})),K.createElement(D,T,K.createElement(S,L({},O,{key:w}))));g.push({block:E,wrapperTemplate:j,key:w,offsetKey:k}),m=j?_.getDepth():null,v=j}for(var M=[],N=0;N<g.length;){var A=g[N];if(A.wrapperTemplate){for(var P=[];P.push(g[N].block),++N<g.length&&g[N].wrapperTemplate===A.wrapperTemplate;);var R=K.cloneElement(A.wrapperTemplate,{key:A.key+"-wrap","data-offset-key":A.offsetKey},P);M.push(R)}else M.push(A.block),N++}return K.createElement("div",{"data-contents":"true"},M)},n}(K.Component);e.exports=n},function(e,t,n){"use strict";e.exports=function(e){var t=e||"",n=arguments.length;if(1<n)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}},function(e,t,n){"use strict";var i=n(76),a=n(9),s=n(8),c=n(33),u=n(34),l=n(78),f=n(67),r=n(61),p=n(38),d=n(10);function h(e){e._internalDrag=!1;var t,e=e.editorContainer;e&&(t=new MouseEvent("mouseup",{view:r(e),bubbles:!0,cancelable:!0}),e.dispatchEvent(t))}function y(e,t,n){t=a.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return s.push(e,t,"insert-fragment")}e.exports={onDragEnd:function(e){e.exitCurrentMode(),h(e)},onDrop:function(t,e){var n=new i(e.nativeEvent.dataTransfer),r=t._latestEditorState,o=function(e,t){var n=null,r=null,o=u(e.currentTarget);if("function"==typeof o.caretRangeFromPoint)o=o.caretRangeFromPoint(e.x,e.y),n=o.startContainer,r=o.startOffset;else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}return n=d(n),r=d(r),o=d(c(n)),f(t,o,r,o,r)}(e.nativeEvent,r);if(e.preventDefault(),t._dragCount=0,t.exitCurrentMode(),null!=o){e=n.getFiles();if(0<e.length)return t.props.handleDroppedFiles&&p(t.props.handleDroppedFiles(o,e))?void 0:void l(e,function(e){e&&t.update(y(r,o,e))});e=t._internalDrag?"internal":"external";t.props.handleDrop&&p(t.props.handleDrop(o,n,e))||(t._internalDrag?t.update(function(e,t){t=a.moveText(e.getCurrentContent(),e.getSelection(),t);return s.push(e,t,"insert-fragment")}(r,o)):t.update(y(r,o,n.getText()))),h(t)}}}},function(e,t,n){"use strict";var r={isImage:function(e){return"image"===o(e)[0]},isJpeg:function(e){var t=o(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function o(e){return e.split("/")}e.exports=r},function(e,t,n){"use strict";var a=n(7);e.exports=function(e){if(!(r=e)||"object"!=typeof r&&"function"!=typeof r||!("length"in r)||"setInterval"in r||"number"==typeof r.nodeType||!(Array.isArray(r)||"callee"in r||"item"in r))return[e];if(Array.isArray(e))return e.slice();var t=e,n=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&a(!1),"number"!=typeof n&&a(!1),0===n||n-1 in t||a(!1),"function"==typeof t.callee&&a(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(e){}for(var r,o=Array(n),i=0;i<n;i++)o[i]=t[i];return o}},function(e,t,n){"use strict";var r=n(11),o=n(150),i=n(155),a=n(156),s=n(157),c=n(158),u=n(160),l=n(161),f=n(162),p=n(163),d=n(164),h=n(178),n=n(62),y=r.isBrowser("Chrome"),r=r.isBrowser("Firefox"),y=y||r?n:function(e){};e.exports={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:s,onCut:c,onDragOver:u,onDragStart:l,onFocus:f,onInput:p,onKeyDown:d,onPaste:h,onSelect:n,onMouseUp:y,onKeyUp:y}},function(e,t,n){"use strict";var i=n(9),c=n(8),r=n(11),f=n(43),p=n(38),d=n(151),h=n(10),y=n(152),g="'",m="/",v=r.isBrowser("Firefox");function b(e,t,n,r,o){t=i.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return c.push(e,t,"insert-characters",o)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var u,n,r,o,i,a,s=e._latestEditorState,l=t.data;l&&(e.props.handleBeforeInput&&p(e.props.handleBeforeInput(l,s,t.timeStamp))?t.preventDefault():(r=s.getSelection(),u=r.getStartOffset(),n=r.getAnchorKey(),r.isCollapsed()?(r=b(s,l,s.getCurrentInlineStyle(),f(s.getCurrentContent(),s.getSelection()),!1),(i=(i=!1)||d(e._latestCommittedEditorState))||(a=s.getBlockTree(n),o=r.getBlockTree(n),i=a.size!==o.size||a.zip(o).some(function(e){var t=e[0],e=e[1],n=t.get("start"),r=n+(u<=n?l.length:0),o=t.get("end"),i=o+(u<=o?l.length:0),a=e.get("start"),s=e.get("end"),c=e.get("decoratorKey");return t.get("decoratorKey")!==c||t.get("leaves").size!==e.get("leaves").size||r!==a||i!==s||null!=c&&s-a!=o-n})),i||(a=l,i=v&&(a==g||a==m)),(i=i||h(r.getDirectionMap()).get(n)!==h(s.getDirectionMap()).get(n))?(t.preventDefault(),r=c.set(r,{forceSelection:!0}),e.update(r)):(r=c.set(r,{nativelyRenderedContent:r.getCurrentContent()}),e._pendingStateFromBeforeInput=r,y(function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))):(t.preventDefault(),e.update(b(s,l,s.getCurrentInlineStyle(),f(s.getCurrentContent(),s.getSelection()),!0)))))}},function(e,t,n){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),e=e.getBlockTree(n),r=t.getStartOffset(),o=!1;return e.some(function(e){return r===e.get("start")?o=!0:r<e.get("end")&&e.get("leaves").some(function(e){e=e.get("start");return r===e&&(o=!0)})}),o}},function(t,e,n){"use strict";!function(e){n(153),t.exports=e.setImmediate}.call(this,n(23))},function(e,t,n){!function(e,d){!function(n,i){"use strict";var r,a,s,o,c,u,t,e;function l(e){delete a[e]}function f(e){if(s)setTimeout(f,0,e);else{var t=a[e];if(t){s=!0;try{var n=t,r=n.callback,o=n.args;switch(o.length){case 0:r();break;case 1:r(o[0]);break;case 2:r(o[0],o[1]);break;case 3:r(o[0],o[1],o[2]);break;default:r.apply(i,o)}}finally{l(e),s=!1}}}}function p(){function e(e){e.source===n&&"string"==typeof e.data&&0===e.data.indexOf(t)&&f(+e.data.slice(t.length))}var t="setImmediate$"+Math.random()+"$";n.addEventListener?n.addEventListener("message",e,!1):n.attachEvent("onmessage",e),c=function(e){n.postMessage(t+e,"*")}}n.setImmediate||(r=1,s=!(a={}),o=n.document,e=(e=Object.getPrototypeOf&&Object.getPrototypeOf(n))&&e.setTimeout?e:n,"[object process]"==={}.toString.call(n.process)?c=function(e){d.nextTick(function(){f(e)})}:!function(){var e,t;if(n.postMessage&&!n.importScripts)return e=!0,t=n.onmessage,n.onmessage=function(){e=!1},n.postMessage("","*"),n.onmessage=t,e}()?c=n.MessageChannel?((t=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){t.port2.postMessage(e)}):o&&"onreadystatechange"in o.createElement("script")?(u=o.documentElement,function(e){var t=o.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,u.removeChild(t),t=null},u.appendChild(t)}):function(e){setTimeout(f,0,e)}:p(),e.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];return a[r]={callback:e,args:t},c(r),r++},e.clearImmediate=l)}("undefined"==typeof self?void 0===e?this:e:self)}.call(this,n(23),n(154))},function(e,t){var n,r,e=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return(n=setTimeout)(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}var s,c=[],u=!1,l=-1;function f(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&p())}function p(){if(!u){for(var e=a(f),t=(u=!0,c.length);t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,u=!1,!function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return(r=clearTimeout)(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function h(){}e.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new d(e,t)),1!==c.length||u||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=h,e.addListener=h,e.once=h,e.off=h,e.removeListener=h,e.removeAllListeners=h,e.emit=h,e.prependListener=h,e.prependOnceListener=h,e.listeners=function(e){return[]},e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}},function(e,t,n){"use strict";var o=n(8),i=n(44),a=n(72);e.exports=function(e,t){var n=t.currentTarget.ownerDocument,r=(Boolean(e.props.preserveSelectionOnBlur)||a(n)!==n.body||(n=n.defaultView.getSelection(),r=e.editor,1===n.rangeCount&&i(r,n.anchorNode)&&i(r,n.focusNode)&&n.removeAllRanges()),e._latestEditorState);(n=r.getSelection()).getHasFocus()&&(n=n.set("hasFocus",!1),e.props.onBlur&&e.props.onBlur(t),e.update(o.acceptSelection(r,n)))}},function(e,t,n){"use strict";var r=n(8);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},function(e,t,n){"use strict";var r=n(79);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},function(e,t,n){"use strict";var a=n(9),s=n(8),c=n(36),u=n(79),l=n(37),f=n(159);e.exports=function(n,e){var r,o=n._latestEditorState,t=o.getSelection(),i=e.target;t.isCollapsed()?e.preventDefault():(f(i)&&(r=l(c.getScrollParent(i))),t=u(o),n.setClipboard(t),n.setMode("cut"),setTimeout(function(){var e,t;n.restoreEditorDOM(r),n.exitCurrentMode(),n.update((e=o,t=a.removeRange(e.getCurrentContent(),e.getSelection(),"forward"),s.push(e,t,"remove-range")))},0))}},function(e,t,n){"use strict";e.exports=function(e){if(e&&"ownerDocument"in e&&"ownerDocument"in e){if(!e.ownerDocument.defaultView)return e instanceof Node;if(e instanceof e.ownerDocument.defaultView.Node)return!0}return!1}},function(e,t,n){"use strict";e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},function(e,t,n){"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},function(e,t,n){"use strict";var o=n(8),i=n(11);e.exports=function(e,t){var n=e._latestEditorState,r=n.getSelection();r.getHasFocus()||(r=r.set("hasFocus",!0),e.props.onFocus&&e.props.onFocus(t),i.isBrowser("Chrome < 60.0.3081.0")?e.update(o.forceSelection(n,r)):e.update(o.acceptSelection(n,r)))}},function(e,t,n){"use strict";var _=n(9),w=n(15),S=n(8),r=n(11),E=n(68).notEmptyKey,C=n(33),O=n(80),x=n(10),k=r.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var s=a.firstChild;null!=s;s=s.nextSibling)s!==r&&a.removeChild(s)}var i=r.textContent,c=e._latestEditorState,u=x(C(r)),u=w.decode(u),l=u.blockKey,f=u.decoratorKey,u=u.leafKey,f=c.getBlockTree(l).getIn([f,"leaves",u]),u=f.start,f=f.end,p=c.getCurrentContent(),l=p.getBlockForKey(l),d=l.getText().slice(u,f);if((i=i.endsWith("\n\n")?i.slice(0,-1):i)===d){t=t.nativeEvent.inputType;if(t){v=c;t="deleteContentBackward"===t?O(v):v;if(t!==c)return e.restoreEditorDOM(),void e.update(t)}}else{var h,y,g,m,v=c.getSelection(),t=v.merge({anchorOffset:u,focusOffset:f,isBackward:!1}),f=l.getEntityAt(u),f=E(f)?p.getEntity(f):null,f="MUTABLE"===(null!=f?f.getMutability():null),b=f?"spellcheck-change":"apply-entity",t=_.replaceText(p,t,i,l.getInlineStyleAt(u),f?l.getEntityAt(u):null),l=(m=k?(g=n.anchorOffset,m=n.focusOffset,y=(h=u+Math.min(g,m))+Math.abs(g-m),g=h,y):(f=i.length-d.length,h=v.getStartOffset(),y=v.getEndOffset(),g=o?y+f:h,y+f),t.merge({selectionBefore:p.getSelectionAfter(),selectionAfter:v.merge({anchorOffset:g,focusOffset:m})}));e.update(S.push(c,l,b))}}}},function(e,t,n){"use strict";var a=n(9),s=n(8),r=n(48),c=n(35),u=n(166),o=n(11),l=n(38),f=n(167),p=n(169),d=n(171),h=n(172),y=n(173),g=n(174),m=n(80),v=n(175),b=n(176),_=n(177),w=r.isOptionKeyCommand,S=o.isBrowser("Chrome");e.exports=function(t,n){var e=n.which,r=t._latestEditorState;function o(e){e=t.props[e];return e&&(e(n),1)}switch(e){case c.RETURN:if(n.preventDefault(),t.props.handleReturn&&l(t.props.handleReturn(n,r)))return;break;case c.ESC:if(n.preventDefault(),o("onEscape"))return;break;case c.TAB:if(o("onTab"))return;break;case c.UP:if(o("onUpArrow"))return;break;case c.RIGHT:if(o("onRightArrow"))return;break;case c.DOWN:if(o("onDownArrow"))return;break;case c.LEFT:if(o("onLeftArrow"))return;break;case c.SPACE:S&&w(n)&&n.preventDefault()}var i=t.props.keyBindingFn(n);null==i||""===i?e===c.SPACE&&S&&w(n)&&(e=a.replaceText(r.getCurrentContent(),r.getSelection()," "),t.update(s.push(r,e,"insert-characters"))):"undo"===i?_(n,r,t.update):(n.preventDefault(),t.props.handleKeyCommand&&l(t.props.handleKeyCommand(i,r,n.timeStamp))||(e=function(e,t,n){switch(e){case"redo":return s.redo(t);case"delete":return v(t);case"delete-word":return d(t);case"backspace":return m(t);case"backspace-word":return p(t);case"backspace-to-start-of-line":return f(t,n);case"split-block":return h(t);case"transpose-characters":return b(t);case"move-selection-to-start-of-block":return g(t);case"move-selection-to-end-of-block":return y(t);case"secondary-cut":return u.cut(t);case"secondary-paste":return u.paste(t);default:return t}}(i,r,n))!==r&&t.update(e))}},function(e,t,n){"use strict";var r=n(35);e.exports=function(e){return e.which===r.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}},function(e,t,n){"use strict";var a=n(9),s=n(8),c=n(29),u=n(10),l=null;e.exports={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){o=t.getKeyAfter(o);if(null==o)return e;r=n.set("focusKey",o).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=u(r),l=c(t,r);o=a.removeRange(t,r,"forward");return o===t?e:s.push(e,o,"remove-range")},paste:function(e){var t;return l?(t=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),l),s.push(e,t,"insert-fragment")):e}}},function(e,t,n){"use strict";var r=n(8),o=n(168),i=n(66),a=n(46),s=n(28);e.exports=function(e,n){var t=s(e,function(e){var t=e.getSelection();return t.isCollapsed()&&0===t.getAnchorOffset()?a(e,1):(t=n.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0),t=o(t),i(e,null,t.endContainer,t.endOffset,t.startContainer,t.startOffset).selectionState)},"backward");return t===e.getCurrentContent()?e:r.push(e,t,"remove-range")}},function(e,t,n){"use strict";var u=n(21),l=n(34),f=n(81),p=n(7);function d(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}e.exports=function(e){e.collapsed||p(!1);var t=(e=e.cloneRange()).startContainer,n=function(e){var t=getComputedStyle(e),n=(e=l(e)).createElement("div");n.style.fontFamily=t.fontFamily,n.style.fontSize=t.fontSize,n.style.fontStyle=t.fontStyle,n.style.fontWeight=t.fontWeight,n.style.lineHeight=t.lineHeight,n.style.position="absolute",n.textContent="M";(t=e.body)||p(!1),t.appendChild(n),e=n.getBoundingClientRect();return t.removeChild(n),e.height}(t=1!==t.nodeType?t.parentNode:t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);d(f(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||p(!1),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var s=i.nodeValue,c=a;0<=c;c--)if(!(null!=s&&0<c&&u.isSurrogatePair(s,c-1))){if(e.setStart(i,c),!d(f(e),n))break;r=i,o=c}if(-1===c||0===i.childNodes.length)break;a=function(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}(i=i.childNodes[c])}return e.setStart(r,o),e}},function(e,t,n){"use strict";var r=n(82),o=n(8),i=n(46),a=n(28);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset();return 0===n?i(e,1):(t=t.getStartKey(),t=e.getCurrentContent().getBlockForKey(t).getText().slice(0,n),n=r.getBackward(t),i(e,n.length||1))},"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(82),o=n(8),i=n(83),a=n(28);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset(),t=t.getStartKey(),t=e.getCurrentContent().getBlockForKey(t).getText().slice(n),n=r.getForward(t);return i(e,n.length||1)},"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";var r=n(9),o=n(8);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},function(e,t,n){"use strict";var o=n(8);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return o.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(8);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(8),o=n(21),i=n(83),a=n(28);e.exports=function(e){var t,n=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),t=t.getAnchorOffset(),n=n.getBlockForKey(r).getText()[t];return i(e,n?o.getUTF16Length(n,0):1)},"forward");return n===e.getCurrentContent()?e:(t=e.getSelection(),r.push(e,n.set("selectionBefore",t),t.isCollapsed()?"delete-character":"remove-range"))}},function(e,t,n){"use strict";var a=n(9),s=n(8),c=n(29);e.exports=function(e){var t,n,r,o,i=e.getSelection();return!i.isCollapsed()||0===(o=i.getAnchorOffset())||(t=i.getAnchorKey(),(t=(n=e.getCurrentContent()).getBlockForKey(t).getLength())<=1)?e:(t=o===t?(r=i.set("anchorOffset",o-1),i):(r=i.set("focusOffset",o+1)).set("anchorOffset",o+1),i=c(n,r),r=(n=(o=a.removeRange(n,r,"backward")).getSelectionAfter()).getAnchorOffset()-1,n=n.merge({anchorOffset:r,focusOffset:r}),r=a.replaceWithFragment(o,n,i),o=s.push(e,r,"insert-fragment"),s.acceptSelection(o,t))}},function(e,t,n){"use strict";var i=n(8);e.exports=function(e,t,n){var r,o=i.undo(t);"spellcheck-change"===t.getLastChangeType()?(r=o.getCurrentContent(),n(i.set(o,{nativelyRenderedContent:r}))):(e.preventDefault(),t.getNativelyRenderedContent()?(n(i.set(t,{nativelyRenderedContent:null})),setTimeout(function(){n(o)},0)):n(o))}},function(e,t,n){"use strict";var l=n(25),f=n(12),p=n(76),d=n(9),h=n(179),y=n(8),g=n(86),m=n(43),v=n(78),b=n(38),_=n(184);function w(e,t,n){t=d.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return y.push(e,t.set("entityMap",n),"insert-fragment")}e.exports=function(o,e){if(e.preventDefault(),!(e=new p(e.clipboardData)).isRichText()){var t=e.getFiles(),i=e.getText();if(0<t.length)return o.props.handlePastedFiles&&b(o.props.handlePastedFiles(t))?void 0:void v(t,function(e){var t,n,r;(e=e||i)&&(t=o._latestEditorState,e=_(e),n=f.create({style:t.getCurrentInlineStyle(),entity:m(t.getCurrentContent(),t.getSelection())}),r=g.getCurrentBlockType(t),e=h.processText(e,n,r),n=l.createFromArray(e),r=d.replaceWithFragment(t.getCurrentContent(),t.getSelection(),n),o.update(y.push(t,r,"insert-fragment")))})}var n,t=[],r=e.getText(),a=e.getHTML(),s=o._latestEditorState;if(o.props.formatPastedText&&(r=(u=o.props.formatPastedText(r,a)).text,a=u.html),!o.props.handlePastedText||!b(o.props.handlePastedText(r,a,s))){if(r&&(t=_(r)),!o.props.stripPastedStyles){var c,u=o.getClipboard();if(!o.props.formatPastedText&&e.isRichText()&&u){if(-1!==(null==(c=a)?void 0:c.indexOf(o.getEditorKey()))||1===t.length&&1===u.size&&u.first().getText()===r)return void o.update(w(o._latestEditorState,u))}else if(u&&e.types.includes("com.apple.webarchive")&&!e.types.includes("text/html")&&(c=u,(n=t).length===c.size&&c.valueSeq().every(function(e,t){return e.getText()===n[t]})))return void o.update(w(o._latestEditorState,u));if(a){var r=h.processHTML(a,o.props.blockRenderMap);if(r){var e=r.contentBlocks,u=r.entityMap;if(e)return a=l.createFromArray(e),void o.update(w(o._latestEditorState,a,u))}}o.setClipboard(null)}t.length&&(r=f.create({style:s.getCurrentInlineStyle(),entity:m(s.getCurrentContent(),s.getSelection())}),e=g.getCurrentBlockType(s),a=h.processText(t,r,e),u=l.createFromArray(a),o.update(w(o._latestEditorState,u)))}}},function(e,t,n){"use strict";function a(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}var r=n(18),o=n(13),i=n(84),s=n(14),c=n(85),u=n(16),l=n(6),f=n(58),p=l.List,d=l.Repeat,h=u("draft_tree_data_support"),y=h?o:r;e.exports={processHTML:function(e,t){return i(e,c,t)},processText:function(e,o,i){return e.reduce(function(e,t,n){t=f(t);var r=s(),t={key:r,type:i,text:t,characterList:p(d(o,t.length))};return h&&0!==n&&(t=a({},t,{prevSibling:(e[n=n-1]=e[n].merge({nextSibling:r})).getKey()})),e.push(new y(t)),e},[])}}},function(e,t,n){"use strict";var r=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();e.exports=r},function(e,t,n){"use strict";var r=n(20);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"A"===e.nodeName)}},function(e,t,n){"use strict";var r=n(20);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"IMG"===e.nodeName)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=(s=e.getBlockMap()).toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===i}).concat([[i,s.get(i)]]).map(function(e){var t=e.getDepth()+n,t=Math.max(0,Math.min(t,r));return e.set("depth",t)}),s=s.merge(a);return e.merge({blockMap:s,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=/\r\n?|\n/g;e.exports=function(e){return e.split(r)}},function(e,t,n){"use strict";n=n(22).unstable_flushControlled;e.exports=n},function(e,t,n){"use strict";var o=n(0),i=n(19),n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(r=n).prototype=Object.create(t.prototype),(r.prototype.constructor=r).__proto__=t;var r=n.prototype;return r.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},r.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),e=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return o.createElement("div",{className:e},o.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},n}(o.Component);e.exports=n},function(e,t,n){},function(e,t,n){"use strict";function i(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}function a(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:o(e),entityRanges:r(e,t),data:e.getData().toObject()}}var s=n(18),c=n(13),l=n(88),r=n(189),o=n(190),u=n(7),f=function(e,t,n,r){var o;e instanceof s?n.push(a(e,t)):(e instanceof c||u(!1),o=e.getParentKey(),e=r[e.getKey()]=i({},a(e,t),{children:[]}),(o?r[o].children:n).push(e))};e.exports=function(e){var r,t,o,i,a,n,s,c,u={entityMap:{},blocks:[]};return r=u.entityMap,t=[],o={},i={},a=0,e.getBlockMap().forEach(function(n){n.findEntityRanges(function(e){return null!==e.getEntity()},function(e){var e=n.getEntityAt(e),t=l.stringify(e);i[t]||(i[t]=e,r[t]="".concat(a),a++)}),f(n,r,t,o)}),n=e,e=u={blocks:t,entityMap:r},s=u.blocks,e=u.entityMap,c={},Object.keys(e).forEach(function(e,t){e=n.getEntity(l.unstringify(e));c[t]={type:e.getType(),mutability:e.getMutability(),data:e.getData()}}),u={blocks:s,entityMap:c}}},function(e,t,n){"use strict";var s=n(88),c=n(21).strlen;e.exports=function(o,i){var a=[];return o.findEntityRanges(function(e){return!!e.getEntity()},function(e,t){var n=o.getText(),r=o.getEntityAt(e);a.push({offset:c(n.slice(0,e)),length:c(n.slice(e,t)),key:Number(i[s.stringify(r)])})}),a}},function(e,t,n){"use strict";var a=n(21),s=n(26),c=function(e,t){return e===t},u=function(e){return!!e},r=[];e.exports=function(t){var n=t.getCharacterList().map(function(e){return e.getStyle()}).toList(),e=n.flatten().toSet().map(function(e){return r=t,o=e,i=[],e=(e=n).map(function(e){return e.has(o)}).toList(),s(e,c,u,function(e,t){var n=r.getText();i.push({offset:a.strlen(n.slice(0,e)),length:a.strlen(n.slice(e,t)),style:o})}),i;var r,o,i});return Array.prototype.concat.apply(r,e.toJS())}},function(e,t,n){"use strict";function p(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}function d(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||m(),data:E(o),characterList:i(e,t)}}function i(e,t){var n=e.text,r=e.entityRanges,e=e.inlineStyleRanges,r=r||[];return o(f(n,e||[]),a(n,r.filter(function(e){return t.hasOwnProperty(e.key)}).map(function(e){return p({},e,{key:t[e.key]})})))}function h(e){return p({},e,{key:e.key||m()})}function y(e,t,n){return t=t.map(function(e){return p({},e,{parentRef:n})}),e.concat(t.reverse())}var r=n(18),g=n(13),s=n(40),c=n(30),u=n(192),l=(n(193),n(31)),o=n(194),a=n(195),f=n(196),m=n(14),v=n(16),b=n(6),_=n(7),w=v("draft_tree_data_support"),S=b.List,E=b.Map,C=b.OrderedMap,O=function(l,f){return l.map(h).reduce(function(e,t,n){Array.isArray(t.children)||_(!1);for(var r=t.children.map(h),t=new g(p({},d(t,f),{prevSibling:0===n?null:l[n-1].key,nextSibling:n===l.length-1?null:l[n+1].key,children:S(r.map(function(e){return e.key}))})),o=(e=e.set(t.getKey(),t),y([],r,t));0<o.length;){var i=o.pop(),a=i.parentRef,s=a.getChildKeys(),c=s.indexOf(i.key),u=Array.isArray(i.children);if(!u){_(!1);break}u=i.children.map(h),i=new g(p({},d(i,f),{parent:a.getKey(),children:S(u.map(function(e){return e.key})),prevSibling:0===c?null:s.get(c-1),nextSibling:c===s.size-1?null:s.get(c+1)}));e=e.set(i.getKey(),i),o=y(o,u,i)}return e},C())},x=function(e,t){return C(e.map(function(e){e=new r(d(e,t));return[e.getKey(),e]}))};e.exports=function(e){Array.isArray(e.blocks)||_(!1);o=e.entityMap,i={},Object.keys(o).forEach(function(e){var t=o[e],n=t.type,r=t.mutability,t=t.data;i[e]=c.__create(n,r,t||{})});var o,i,t,n,r=i,a=(t=r,a=(e=e).blocks.find(function(e){return Array.isArray(e.children)&&0<e.children.length}),n=(w&&!a?u.fromRawStateToRawTreeState(e):e).blocks,w?O(n,t):x(a?u.fromRawTreeStateToRawState(e).blocks:n,t)),e=a.isEmpty()?new l:l.createEmpty(a.first().getKey());return new s({blockMap:a,entityMap:r,selectionBefore:e,selectionAfter:e})}},function(e,t,n){"use strict";function s(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}function c(e){return!(!e||!e.type)&&("unordered-list-item"===(e=e.type)||"ordered-list-item"===e)}var u=n(14),a=n(7);e.exports={fromRawTreeStateToRawState:function(e){var t=e.blocks,r=[];if(Array.isArray(t)||a(!1),!Array.isArray(t)||!t.length)return e;for(var n=function(e){var t,n=s({},e);c(e)&&(n.depth=n.depth||0,t=e,Array.isArray(t.children)&&(t.children=t.children.map(function(e){return e.type===t.type?s({},e,{depth:(t.depth||0)+1}):e})),null!=e.children&&0<e.children.length)||(delete n.children,r.push(n))},o=[].concat(t).reverse();o.length;){var i=o.pop(),i=(n(i),i.children);Array.isArray(i)||a(!1),o=o.concat([].concat(i.reverse()))}return e.blocks=r,s({},e,{blocks:r})},fromRawStateToRawTreeState:function(e){var i=[],a=[];return e.blocks.forEach(function(e){var t=c(e),n=e.depth||0,r=s({},e,{children:[]});if(t){var o=a[0];if(null==o&&0===n)i.push(r);else if(null==o||o.depth<n-1){t={key:u(),text:"",depth:n-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};a.unshift(t),1===n?i.push(t):null!=o&&o.children.push(t),t.children.push(r)}else if(o.depth===n-1)o.children.push(r);else{for(;null!=o&&o.depth>=n;)a.shift(),o=a[0];(0<n?o.children:i).push(r)}}else i.push(r)}),s({},e,{blocks:i})}}},function(e,t,n){"use strict";n(47);e.exports={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map(function(e){return t.get(e)}).every(function(e){return e.getParentKey()===n}))return!1;r=e.getPrevSiblingKey();if(null!=r&&t.get(r).getNextSiblingKey()!==n)return!1;var o=e.getNextSiblingKey();if(null!=o&&t.get(o).getPrevSiblingKey()!==n)return!1;return(null===o||null===r||r!==o)&&!(""!=e.text&&0<e.getChildKeys().size)},isConnectedTree:function(t){var e=t.toArray().filter(function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()});if(1!==e.length)return!1;for(var n=0,r=e.shift().getKey(),o=[];null!=r;){var i=t.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(0<a.size){null!=s&&o.unshift(s);s=a.map(function(e){return t.get(e)}).find(function(e){return null==e.getPrevSiblingKey()});if(null==s)return!1;r=s.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===t.size},isValidTree:function(t){var n=this;return!!t.toArray().every(function(e){return n.isValidBlock(e,t)})&&this.isConnectedTree(t)}}},function(e,t,n){"use strict";var r=n(12),o=n(6).List;e.exports=function(e,n){return e=e.map(function(e,t){t=n[t];return r.create({style:e,entity:t})}),o(e)}},function(e,t,n){"use strict";var a=n(21).substr;e.exports=function(o,e){var i=Array(o.length).fill(null);return e&&e.forEach(function(e){for(var t=a(o,0,e.offset).length,n=t+a(o,e.offset,e.length).length,r=t;r<n;r++)i[r]=e.key}),i}},function(e,t,n){"use strict";var r=n(21),n=n(6).OrderedSet,i=r.substr,a=n();e.exports=function(r,e){var o=Array(r.length).fill(a);return e&&e.forEach(function(e){for(var t=i(r,0,e.offset).length,n=t+i(r,e.offset,e.length).length;t<n;)o[t]=o[t].add(e.style),t++}),o}},function(e,t,n){"use strict";var i=n(198);e.exports=function(e){var t,n,r,o;return!(e=e.getSelection()).rangeCount||(e=e.getRangeAt(0),t=(e=i(e)).top,n=e.right,r=e.bottom,o=e.left,0===t&&0===n&&0===r&&0===o)?null:e}},function(e,t,n){"use strict";var c=n(81);e.exports=function(e){var t=c(e),n=0,r=0,o=0,i=0;if(t.length){i=(1<t.length&&0===t[0].width?(n=(e=t[1]).top,r=e.right,o=e.bottom,e):(n=(e=t[0]).top,r=e.right,o=e.bottom,e)).left;for(var a=1;a<t.length;a++){var s=t[a];0!==s.height&&0!==s.width&&(n=Math.min(n,s.top),r=Math.max(r,s.right),o=Math.max(o,s.bottom),i=Math.min(i,s.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}}},function(e,t,n){"use strict";var a=n(200);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a)throw(i=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")).name="Invariant Violation",i}function t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,r){"use strict";e.exports=function(e){var t={},n=(t.src_Any=r(205).source,t.src_Cc=r(206).source,t.src_Z=r(207).source,t.src_P=r(208).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),"[><|]");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.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]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t){e.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\u09FD\u0A76\u0AF0\u0C84\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-\u2E4E\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]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var n=n(216),i=(n=n)&&n.__esModule?n:{default:n};r(a,[{key:"getCurrentContent",value:function(){return this.content[this.content.length-1]}},{key:"addToCurrentContent",value:function(e){this.content[this.content.length-1]=this.content[this.content.length-1]+e}},{key:"handleFlatPush",value:function(e,t){var n=this.getCurrentContent();n instanceof a&&(0,i.default)(t,n.styles)?n.addToCurrentContent(e):(n=new a({styles:[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t)),content:[e]}),this.content.push(n))}},{key:"pushContent",value:function(e){var t,n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],o=2<arguments.length&&void 0!==arguments[2]&&arguments[2];return!r||r.length<1?"string"==typeof e&&"string"==typeof this.getCurrentContent()?this.addToCurrentContent(e):this.content.push(e):o?this.handleFlatPush(e,r):(r=r,t=(r=Array.isArray(r)?r:Array.from(r))[0],r=r.slice(1),(n=this.getCurrentContent())instanceof a&&n.style===t?n.pushContent(e,r,o):((n=new a({style:t})).pushContent(e,r,o),this.content.push(n))),this}}]);n=a;function a(e){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.content=e.content||[],this.start=void 0!==e.start?e.start:null,this.end=void 0!==e.end?e.end:null,this.entity=void 0!==e.entity?e.entity:null,this.decorator=void 0!==e.decorator?e.decorator:null,this.decoratorProps=e.decoratorProps||null,this.decoratedText=void 0!==e.decoratedText?e.decoratedText:null,this.contentState=e.contentState,this.style=e.style||null,this.styles=e.styles||null,this.block=e.block||{}}t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(o,i){return function(e,t,n){r=i;var r,t=t.map(function(e){return r[e]}).reduce(function(e,t){var n,r={};return void 0!==t&&t[n="text-decoration"in t?"text-decoration":"textDecoration"]!==e[n]&&(r[n]=[e[n],t[n]].join(" ").trim()),Object.assign(e,t,r)},{});return o(Object.assign({},{children:e},n,{style:t}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.render=t.renderNode=void 0;var m=r(n(89)),s=r(n(219)),v=r(n(220)),b=r(n(221)),_=r(n(222)),f=r(n(223)),w=r(n(224)),c=r(n(225));function r(e){return e&&e.__esModule?e:{default:e}}function u(e){function t(e){var t=i-e;for(o.length<t&&(t=o.length);0<t;--t){var n=r;(r=o.pop())[r.length-1].children=n}}var r=[],o=[],i=0;return e.forEach(function(e){i<e.depth?(o.push(r),r=[]):i>e.depth&&t(e.depth),i=e.depth,r.push(Object.assign({},e))}),0!==i&&t(0),r}function S(e,t,n,r,o){var i=r.prevType,a=r.prevDepth,s=r.prevKeys,r=r.prevData;0!==e.length&&((i=t[i]||t[o.blockFallback])?(t={depth:a,keys:s},r&&r.some(function(e){return!!e})&&(t.data=r),n.push(i(e,t))):n.push(e))}function E(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},a=arguments[4],s=5<arguments.length&&void 0!==arguments[5]?arguments[5]:{},c=Object.assign({},w.default,6<arguments.length&&void 0!==arguments[6]?arguments[6]:{}),u=[],l=[],f=null,p=0,d=[],h=[],y=!1,g=new m.default({flat:!!a});return e.forEach(function(e){var t,n;(0,v.default)(e,f,c)?!0===c.cleanup.split&&(y=!0):(t=g.parse(e),t=C(t,r,i,a,s,c,(0,b.default)()),(f&&f!==e.type||y)&&(S(l,o,u,{prevType:f,prevDepth:p,prevKeys:d,prevData:h},c),h=[],d=[],y=!(l=[])),e.children&&(n=E(e.children,r,o,i,a,s,c),t.push(n)),l.push(t),f=e.type,p=e.depth,d.push(e.key),h.push(e.data))}),S(l,o,u,{prevType:f,prevDepth:p,prevKeys:d,prevData:h},c),(0,_.default)(u,c)}var C=t.renderNode=function t(e,n,r,o,i,a,s){if(e.styles&&o)return o((0,_.default)(e.content,a),e.styles,{key:s()});var c=[],u=0;if(e.content.forEach(function(e){"string"==typeof e?c=(0,f.default)(e,c,u):(c[u+=1]=t(e,n,r,o,i,a,s),u+=1)}),e.style&&n[e.style])return n[e.style]((0,_.default)(c,a),{key:s()});if(null!==e.entity){var l=i[e.entity];if(l&&r[l.type])return r[l.type]((0,_.default)(c,a),l.data,{key:e.entity})}return null!==e.decorator?(l=[e.block.key,e.start,0].join("."),e.decorator(Object.assign({children:(0,_.default)(c,a),decoratedText:e.decoratedText,contentState:e.contentState,entityKey:e.entity,offsetKey:l,key:l},e.decoratorProps))):c};t.render=function(e){var t,n,r,o,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return e&&Array.isArray(e.blocks)?e.blocks.length?(t=i.inline,n=i.blocks,r=i.entities,o=i.styles,i=(i=i.decorators)?(0,c.default)(e,i,a):e.blocks,i=u(i),E(i,t,n,r,o,e.entityMap,a)):null:((0,s.default)("invalid raw object"),null)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){return!!(t.trim?e.trim():e)};t.default=function(e,t,n){var r,n=n.cleanup;return!(!n||o((r=e).text,n)||r.data&&Object.keys(r.data).length||r.entityRanges&&r.entityRanges.length)&&((!n.after||"all"===n.after||-1!==n.after.indexOf(t))&&(!(!n.except||-1!==n.except.indexOf(e.type))||!(!n.types||"all"!==n.types&&-1===n.types.indexOf(e.type))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(){var t=0;return function(){var e=t;return t+=1,e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){return Array.isArray(e)&&t.joinOutput?e.join(""):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t,n){var r=t;return t[n]?r[n]+=e:r[n]=e,r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={joinOutput:!1,cleanup:{after:["atomic"],types:["unstyled"],trim:!1,split:!0},blockFallback:"unstyled"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(90)),r=a(n(91)),i=a(n(226)),f=a(n(227));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return"function"==typeof e.getDecorations&&"function"==typeof e.getComponentForKey&&"function"==typeof e.getPropsForKey}var p=function(e,r){return e.forEach(function(e){var t=r.text.substring(0,e.offset),n=r.text.substring(e.offset,e.offset+e.length);e.offset=o.default.ucs2.decode(t).length,e.length=o.default.ucs2.decode(n).length}),e},d=function(e){var t=new r.default(e.filter(function(e){return!s(e)})),e=e.filter(s),e=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e),[t]);return new i.default(e)};t.default=function(e,c,u){var l=u.convertFromRaw&&u.convertFromRaw(e);return e.blocks.map(function(e){return e=e,t=c,r=l,n=(n=u||{}).createContentBlock,o=[],i=d(t),t=(n||f.default)(e),a=i.getDecorations(t,r),s=0,a.forEach(function(e,t){var n;e?(n=a[t=t+1])&&n===e||(o.push({offset:s,length:t-s,component:i.getComponentForKey(e),decoratorProps:i.getPropsForKey(e)||{},contentState:r}),s=t):s+=1}),Object.assign({},e,{decoratorRanges:p(o,e)});var t,r,n,o,i,a,s})}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0});function o(e){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.decorators=e}(function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)})(o,[{key:"getDecorations",value:function(t,r){var o=new Array(t.getText().length).fill(null);return this.decorators.forEach(function(e,n){e.getDecorations(t,r).forEach(function(e,t){e&&(o[t]=n+"-"+e)})}),o}},{key:"getComponentForKey",value:function(e){return this.getDecoratorForKey(e).getComponentForKey(o.getInnerKey(e))}},{key:"getPropsForKey",value:function(e){return this.getDecoratorForKey(e).getPropsForKey(o.getInnerKey(e))}},{key:"getDecoratorForKey",value:function(e){e=e.split("-"),e=Number(e[0]);return this.decorators[e]}}],[{key:"getInnerKey",value:function(e){return e.split("-").slice(1).join("-")}}]),t.default=o},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0});(function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)})(i,[{key:"get",value:function(e){return this[e]}},{key:"getText",value:function(){return this.text}},{key:"getType",value:function(){return this.type}},{key:"getKey",value:function(){return this.key}},{key:"getLength",value:function(){return this.text.length}},{key:"getDepth",value:function(){return this.depth}},{key:"getData",value:function(){return this.data}}]);var o=i;function i(e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");Object.assign(this,e)}t.default=function(e){return new o(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){e=e.keys;return t||(e?e.join(","):void 0)},u=function(r,o){return function(e,t,n){t=Object.assign({},t),n=i(t,n);return delete t.depth,delete t.keys,o.apply(void 0,[r,Object.assign({},t,{key:n})].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e)))}};t.default=function(c,t){var n={};return Object.keys(t).forEach(function(e){var s=t[e];s.wrapper?n[e]=function(e,t,n){return r=c,o=s,t=(e={children:e,props:t,key:n}).children,i=e.props,e=e.key,n=u(o.wrapper,r),a=u(o.element,r,!0),n(t.map(function(e,t){return a(e,{depth:i.depth},i.keys&&i.keys[t])}),i,e);var r,o,i,a}:n[e]=u(s.element,c)}),n}},function(R,L,e){"use strict";
|
|
49
|
+
*/var c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(Object.assign){var e=new String("abc");if(e[5]="de","5"!==Object.getOwnPropertyNames(e)[0]){for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r,o=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"===o.join(""))return r={},"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")?1:void 0}}}catch(e){}}()?Object.assign:function(e,t){for(var n,r=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))u.call(n,i)&&(r[i]=n[i]);if(c)for(var a=c(n),s=0;s<a.length;s++)l.call(n,a[s])&&(r[a[s]]=n[a[s]])}return r}},function(e,t,n){"use strict";var o=n(12),i=n(26),n=n(6),a=n.List,r=n.Map,s=n.OrderedSet,c=n.Record,u=n.Repeat,l=s(),n=c({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:r()}),s=function(r){var e;function t(e){return r.call(this,((e=e)&&(t=e.characterList,(n=e.text)&&!t&&(e.characterList=a(u(o.EMPTY,n.length)))),e))||this;var t,n}e=r,(n=t).prototype=Object.create(e.prototype),(n.prototype.constructor=n).__proto__=e;var n=t.prototype;return n.getKey=function(){return this.get("key")},n.getType=function(){return this.get("type")},n.getText=function(){return this.get("text")},n.getCharacterList=function(){return this.get("characterList")},n.getLength=function(){return this.getText().length},n.getDepth=function(){return this.get("depth")},n.getData=function(){return this.get("data")},n.getInlineStyleAt=function(e){e=this.getCharacterList().get(e);return e?e.getStyle():l},n.getEntityAt=function(e){e=this.getCharacterList().get(e);return e?e.getEntity():null},n.findStyleRanges=function(e,t){i(this.getCharacterList(),f,e,t)},n.findEntityRanges=function(e,t){i(this.getCharacterList(),p,e,t)},t}(n);function f(e,t){return e.getStyle()===t.getStyle()}function p(e,t){return e.getEntity()===t.getEntity()}e.exports=s},function(e,t,n){"use strict";function r(e){return e.replace(/\//g,"-")}e.exports=function(t){return("object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).map(r):Array.prototype.map.call(arguments,r)).join(" ")}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}},function(e,t,n){"use strict";var r=n(7),o=55296,i=57343,a=/[\uD800-\uDFFF]/;function s(e){return o<=e&&e<=i}function c(e){return a.test(e)}function u(e,t){return 1+s(e.charCodeAt(t))}function l(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!c(e))return e.substr(t,n);var r=e.length;if(r<=0||r<t||n<=0)return"";var o=0;if(0<t){for(;0<t&&o<r;t--)o+=u(e,o);if(r<=o)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=u(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;0<n&&i<r;n--)i+=u(e,i);return e.substring(o,i)}e.exports={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=u(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:u,hasSurrogateUnit:c,isCodeUnitInSurrogateRange:s,isSurrogatePair:function(e,t){var n;return 0<=t&&t<e.length||r(!1),t+1!==e.length&&(n=e.charCodeAt(t),e=e.charCodeAt(t+1),o<=n&&n<=56319&&56320<=e&&e<=i)},strlen:function(e){if(!c(e))return e.length;for(var t=0,n=0;n<e.length;n+=u(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return l(e,t=t<n?t:n,r)},substr:l}},function(e,t){e.exports=ReactDOM},function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(R,e,t){"use strict";t.r(e),t.d(e,"Collection",function(){return u}),t.d(e,"Iterable",function(){return Cr}),t.d(e,"List",function(){return gn}),t.d(e,"Map",function(){return Yt}),t.d(e,"OrderedMap",function(){return N}),t.d(e,"OrderedSet",function(){return pr}),t.d(e,"Range",function(){return $n}),t.d(e,"Record",function(){return A}),t.d(e,"Repeat",function(){return _r}),t.d(e,"Seq",function(){return C}),t.d(e,"Set",function(){return qn}),t.d(e,"Stack",function(){return An}),t.d(e,"fromJS",function(){return wr}),t.d(e,"get",function(){return mt}),t.d(e,"getIn",function(){return Zn}),t.d(e,"has",function(){return gt}),t.d(e,"hasIn",function(){return Xn}),t.d(e,"hash",function(){return k}),t.d(e,"is",function(){return x}),t.d(e,"isAssociative",function(){return Z}),t.d(e,"isCollection",function(){return l}),t.d(e,"isImmutable",function(){return p}),t.d(e,"isIndexed",function(){return s}),t.d(e,"isKeyed",function(){return c}),t.d(e,"isList",function(){return hn}),t.d(e,"isMap",function(){return Oe}),t.d(e,"isOrdered",function(){return d}),t.d(e,"isOrderedMap",function(){return xe}),t.d(e,"isOrderedSet",function(){return zn}),t.d(e,"isPlainObject",function(){return dt}),t.d(e,"isRecord",function(){return ne}),t.d(e,"isSeq",function(){return ee}),t.d(e,"isSet",function(){return Fn}),t.d(e,"isStack",function(){return Mn}),t.d(e,"isValueObject",function(){return ke}),t.d(e,"merge",function(){return Mt}),t.d(e,"mergeDeep",function(){return At}),t.d(e,"mergeDeepWith",function(){return Pt}),t.d(e,"mergeWith",function(){return Nt}),t.d(e,"remove",function(){return bt}),t.d(e,"removeIn",function(){return Ct}),t.d(e,"set",function(){return _t}),t.d(e,"setIn",function(){return St}),t.d(e,"update",function(){return xt}),t.d(e,"updateIn",function(){return wt}),t.d(e,"version",function(){return Er});var t="delete",_=5,w=1<<_,b=w-1,S={};function L(){return{value:!1}}function m(e){e&&(e.value=!0)}function F(){}function z(e){return void 0===e.size&&(e.size=e.__iterate(K)),e.size}function B(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295==n)return NaN;t=n}return t<0?z(e)+t:t}function K(){return!0}function H(e,t,n){return(0===e&&!V(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&n<=t)}function U(e,t){return W(e,t,0)}function q(e,t){return W(e,t,t)}function W(e,t,n){return void 0===e?n:V(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function V(e){return e<0||0===e&&1/e==-1/0}var G="@@__IMMUTABLE_ITERABLE__@@";function l(e){return Boolean(e&&e[G])}var Y="@@__IMMUTABLE_KEYED__@@";function c(e){return Boolean(e&&e[Y])}var $="@@__IMMUTABLE_INDEXED__@@";function s(e){return Boolean(e&&e[$])}function Z(e){return c(e)||s(e)}var u=function(e){return l(e)?e:C(e)},f=function(e){function t(e){return c(e)?e:ye(e)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(u),J=function(e){function t(e){return s(e)?e:O(e)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(u),X=function(e){function t(e){return l(e)&&!Z(e)?e:ge(e)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(u),Q=(u.Keyed=f,u.Indexed=J,u.Set=X,"@@__IMMUTABLE_SEQ__@@");function ee(e){return Boolean(e&&e[Q])}var te="@@__IMMUTABLE_RECORD__@@";function ne(e){return Boolean(e&&e[te])}function p(e){return l(e)||ne(e)}var re="@@__IMMUTABLE_ORDERED__@@";function d(e){return Boolean(e&&e[re])}var oe=0,h=1,y=2,ie="function"==typeof Symbol&&Symbol.iterator,ae="@@iterator",se=ie||ae,g=function(e){this.next=e};function v(e,t,n,r){e=0===e?t:1===e?n:[t,n];return r?r.value=e:r={value:e,done:!1},r}function E(){return{value:void 0,done:!0}}function ce(e){return Array.isArray(e)||fe(e)}function ue(e){return e&&"function"==typeof e.next}function le(e){var t=fe(e);return t&&t.call(e)}function fe(e){e=e&&(ie&&e[ie]||e[ae]);if("function"==typeof e)return e}g.prototype.toString=function(){return"[Iterator]"},g.KEYS=oe,g.VALUES=h,g.ENTRIES=y,g.prototype.inspect=g.prototype.toSource=function(){return this.toString()},g.prototype[se]=function(){return this};var pe=Object.prototype.hasOwnProperty;function de(e){return Array.isArray(e)||"string"==typeof e||e&&"object"==typeof e&&Number.isInteger(e.length)&&0<=e.length&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var he,C=function(e){function t(e){{if(null==e)return _e();if(p(e))return e.toSeq();var t=Ee(e);if(t)return function(e){var t=fe(e);return t&&t===e.entries}(e)?t.fromEntrySeq():function(e){var t=fe(e);return t&&t===e.keys}(e)?t.toSetSeq():t;if("object"!=typeof e)throw new TypeError("Expected Array or collection object of values, or keyed object: "+e);return new ve(e)}}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[t?r-++o:o++];if(!1===e(i[1],i[0],this))break}return o}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(t,n){var r,o,i=this._cache;return i?(r=i.length,o=0,new g(function(){var e;return o===r?E():(e=i[n?r-++o:o++],v(t,e[0],e[1]))})):this.__iteratorUncached(t,n)},t}(u),ye=function(e){function t(e){return null==e?_e().toKeyedSeq():l(e)?c(e)?e.toSeq():e.fromEntrySeq():ne(e)?e.toSeq():we(e)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.toKeyedSeq=function(){return this},t}(C),O=function(e){function t(e){return null==e?_e():l(e)?c(e)?e.entrySeq():e.toIndexedSeq():ne(e)?e.toSeq().entrySeq():Se(e)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(C),ge=function(e){function t(e){return(l(e)&&!Z(e)?e:O(e)).toSetSeq()}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(C),me=(C.isSeq=ee,C.Keyed=ye,C.Set=ge,C.Indexed=O,C.prototype[Q]=!0,function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.get=function(e,t){return this.has(e)?this._array[B(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,o=0;o!==r;){var i=t?r-++o:o++;if(!1===e(n[i],i,this))break}return o},t.prototype.__iterator=function(t,n){var r=this._array,o=r.length,i=0;return new g(function(){var e;return i===o?E():(e=n?o-++i:i++,v(t,e,r[e]))})},t}(O)),ve=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return pe.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[t?o-++i:i++];if(!1===e(n[a],a,this))break}return i},t.prototype.__iterator=function(t,n){var r=this._object,o=this._keys,i=o.length,a=0;return new g(function(){var e;return a===i?E():(e=o[n?i-++a:a++],v(t,e,r[e]))})},t}(ye),be=(ve.prototype[re]=!0,function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n,r=le(this._collection),o=0;if(ue(r))for(;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},t.prototype.__iteratorUncached=function(t,e){var n,r;return e?this.cacheResult().__iterator(t,e):ue(n=le(this._collection))?(r=0,new g(function(){var e=n.next();return e.done?e:v(t,r++,e.value)})):new g(E)},t}(O));function _e(){return he=he||new me([])}function we(e){var t=Ee(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new ve(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function Se(e){var t=Ee(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function Ee(e){return de(e)?new me(e):ce(e)?new be(e):void 0}var Ce="@@__IMMUTABLE_MAP__@@";function Oe(e){return Boolean(e&&e[Ce])}function xe(e){return Oe(e)&&d(e)}function ke(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function x(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(ke(e)&&ke(t)&&e.equals(t))}var De="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function je(e){return e>>>1&1073741824|3221225471&e}var Te=Object.prototype.valueOf;function k(e){if(null==e)return Ie(e);if("function"==typeof e.hashCode)return je(e.hashCode(e));var t=(e=e).valueOf!==Te&&"function"==typeof e.valueOf?e.valueOf(e):e;if(null==t)return Ie(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":var n=t;if(n!=n||n===1/0)return 0;var r=0|n;for(r!==n&&(r^=4294967295*n);4294967295<n;)r^=n/=4294967295;return je(r);case"string":return(t.length>Ke?function(e){var t=qe[e];void 0===t&&(t=Me(e),Ue===He&&(Ue=0,qe={}),Ue++,qe[e]=t);return t}:Me)(t);case"object":case"function":var o,i=t;if((!Le||void 0===(o=Re.get(i)))&&void 0===(o=i[Be])){if(!Ae){if(void 0!==(o=i.propertyIsEnumerable&&i.propertyIsEnumerable[Be]))return o;if(void 0!==(o=function(e){if(e&&0<e.nodeType)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(i)))return o}if(o=Pe(),Le)Re.set(i,o);else{if(void 0!==Ne&&!1===Ne(i))throw new Error("Non-extensible objects are not allowed as keys.");if(Ae)Object.defineProperty(i,Be,{enumerable:!1,configurable:!1,writable:!1,value:o});else if(void 0!==i.propertyIsEnumerable&&i.propertyIsEnumerable===i.constructor.prototype.propertyIsEnumerable)i.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},i.propertyIsEnumerable[Be]=o;else{if(void 0===i.nodeType)throw new Error("Unable to set a non-enumerable property on object.");i[Be]=o}}}return o;case"symbol":return void 0===(o=Fe[i=t])&&(o=Pe(),Fe[i]=o),o;default:if("function"==typeof t.toString)return Me(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function Ie(e){return null===e?1108378658:1108378659}function Me(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return je(t)}var Ne=Object.isExtensible,Ae=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Pe(){var e=++ze;return 1073741824&ze&&(ze=0),e}var Re,Le="function"==typeof WeakMap,Fe=(Le&&(Re=new WeakMap),Object.create(null)),ze=0,Be="__immutablehash__",Ke=("function"==typeof Symbol&&(Be=Symbol(Be)),16),He=255,Ue=0,qe={},We=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=Je(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Ze(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(n,e){var r=this;return this._iter.__iterate(function(e,t){return n(e,t,r)},e)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(ye),Ve=(We.prototype[re]=!0,function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(t,n){var r=this,o=0;return n&&z(this),this._iter.__iterate(function(e){return t(e,n?r.size-++o:o++,r)},n)},t.prototype.__iterator=function(t,n){var r=this,o=this._iter.__iterator(h,n),i=0;return n&&z(this),new g(function(){var e=o.next();return e.done?e:v(t,n?r.size-++i:i++,e.value,e)})},t}(O)),Ge=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},t.prototype.__iterator=function(t,e){var n=this._iter.__iterator(h,e);return new g(function(){var e=n.next();return e.done?e:v(t,e.value,e.value,e)})},t}(ge),Ye=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(n,e){var r=this;return this._iter.__iterate(function(e){var t;if(e)return at(e),t=l(e),n(t?e.get(1):e[1],t?e.get(0):e[0],r)},e)},t.prototype.__iterator=function(r,e){var o=this._iter.__iterator(h,e);return new g(function(){for(;;){var e=o.next();if(e.done)return e;var t,n=e.value;if(n)return at(n),t=l(n),v(r,t?n.get(0):n[0],t?n.get(1):n[1],e)}})},t}(ye);function $e(o){var e=r(o);return e._iter=o,e.size=o.size,e.flip=function(){return o},e.reverse=function(){var e=o.reverse.apply(this);return e.flip=function(){return o.reverse()},e},e.has=function(e){return o.includes(e)},e.includes=function(e){return o.has(e)},e.cacheResult=ct,e.__iterateUncached=function(n,e){var r=this;return o.__iterate(function(e,t){return!1!==n(t,e,r)},e)},e.__iteratorUncached=function(e,t){var n;return e===y?(n=o.__iterator(e,t),new g(function(){var e,t=n.next();return t.done||(e=t.value[0],t.value[0]=t.value[1],t.value[1]=e),t})):o.__iterator(e===h?oe:h,t)},e}function Ze(i,a,s){var e=r(i);return e.size=i.size,e.has=function(e){return i.has(e)},e.get=function(e,t){var n=i.get(e,S);return n===S?t:a.call(s,n,e,i)},e.__iterateUncached=function(r,e){var o=this;return i.__iterate(function(e,t,n){return!1!==r(a.call(s,e,t,n),t,o)},e)},e.__iteratorUncached=function(r,e){var o=i.__iterator(y,e);return new g(function(){var e,t,n=o.next();return n.done?n:(t=(e=n.value)[0],v(r,t,a.call(s,e[1],t,i),n))})},e}function Je(a,s){var c=this,e=r(a);return e._iter=a,e.size=a.size,e.reverse=function(){return a},a.flip&&(e.flip=function(){var e=$e(a);return e.reverse=function(){return a.flip()},e}),e.get=function(e,t){return a.get(s?e:-1-e,t)},e.has=function(e){return a.has(s?e:-1-e)},e.includes=function(e){return a.includes(e)},e.cacheResult=ct,e.__iterate=function(n,r){var o=this,i=0;return r&&z(a),a.__iterate(function(e,t){return n(e,s?t:r?o.size-++i:i++,o)},!r)},e.__iterator=function(n,r){var o=0,i=(r&&z(a),a.__iterator(y,!r));return new g(function(){var e,t=i.next();return t.done?t:(e=t.value,v(n,s?e[0]:r?c.size-++o:o++,e[1],t))})},e}function Xe(a,s,c,u){var e=r(a);return u&&(e.has=function(e){var t=a.get(e,S);return t!==S&&!!s.call(c,t,e,a)},e.get=function(e,t){var n=a.get(e,S);return n!==S&&s.call(c,n,e,a)?n:t}),e.__iterateUncached=function(r,e){var o=this,i=0;return a.__iterate(function(e,t,n){if(s.call(c,e,t,n))return i++,r(e,u?t:i-1,o)},e),i},e.__iteratorUncached=function(r,e){var o=a.__iterator(y,e),i=0;return new g(function(){for(;;){var e=o.next();if(e.done)return e;var t=e.value,n=t[0],t=t[1];if(s.call(c,t,n,a))return v(r,u?n:i++,t,e)}})},e}function Qe(s,e,t,c){var u,l,n=s.size;return H(e,t,n)?s:(u=U(e,n),n=q(t,n),u!=u||n!=n?Qe(s.toSeq().cacheResult(),e,t,c):((e=n-u)==e&&(l=e<0?0:e),(t=r(s)).size=0===l?l:s.size&&l||void 0,!c&&ee(s)&&0<=l&&(t.get=function(e,t){return 0<=(e=B(this,e))&&e<l?s.get(e+u,t):t}),t.__iterateUncached=function(n,e){var r,o,i,a=this;return 0===l?0:e?this.cacheResult().__iterate(n,e):(o=!(r=0),i=0,s.__iterate(function(e,t){if(!(o=o&&r++<u))return i++,!1!==n(e,c?t:i-1,a)&&i!==l}),i)},t.__iteratorUncached=function(t,e){var n,r,o;return 0!==l&&e?this.cacheResult().__iterator(t,e):0===l?new g(E):(n=s.__iterator(t,e),o=r=0,new g(function(){for(;r++<u;)n.next();var e;return++o>l?E():(e=n.next(),c||t===h||e.done?e:v(t,o-1,t===oe?void 0:e.value[1],e))}))},t))}function et(t,u,l,f){var e=r(t);return e.__iterateUncached=function(r,e){var o,i,a=this;return e?this.cacheResult().__iterate(r,e):(o=!0,i=0,t.__iterate(function(e,t,n){if(!(o=o&&u.call(l,e,t,n)))return i++,r(e,f?t:i-1,a)}),i)},e.__iteratorUncached=function(o,e){var i,a,s,c=this;return e?this.cacheResult().__iterator(o,e):(i=t.__iterator(y,e),a=!0,s=0,new g(function(){var e;do{if((e=i.next()).done)return f||o===h?e:v(o,s++,o===oe?void 0:e.value[1],e);var t=e.value,n=t[0],r=t[1]}while(a=a&&u.call(l,r,n,c));return o===y?e:v(o,n,r,e)}))},e}function tt(e,s,c){var u=r(e);return u.__iterateUncached=function(o,t){var i,a;return t?this.cacheResult().__iterate(o,t):(a=!1,function n(e,r){e.__iterate(function(e,t){return(!s||r<s)&&l(e)?n(e,r+1):(i++,!1===o(e,c?t:i-1,u)&&(a=!0)),!a},t)}(e,i=0),i)},u.__iteratorUncached=function(n,r){var o,i,a;return r?this.cacheResult().__iterator(n,r):(o=e.__iterator(n,r),i=[],a=0,new g(function(){for(;o;){var e=o.next();if(!1!==e.done)o=i.pop();else{var t=e.value;if(n===y&&(t=t[1]),s&&!(i.length<s)||!l(t))return c?e:v(n,a++,t,e);i.push(o),o=t.__iterator(n,r)}}return E()}))},u}function nt(n,r,o){r=r||ut;var e=c(n),i=0,a=n.toSeq().map(function(e,t){return[t,e,i++,o?o(e,t,n):e]}).valueSeq().toArray();return a.sort(function(e,t){return r(e[3],t[3])||e[2]-t[2]}).forEach(e?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),(e?ye:s(n)?O:ge)(a)}function rt(n,r,o){var e;return r=r||ut,o?(e=n.toSeq().map(function(e,t){return[e,o(e,t,n)]}).reduce(function(e,t){return ot(r,e[1],t[1])?t:e}))&&e[0]:n.reduce(function(e,t){return ot(r,e,t)?t:e})}function ot(e,t,n){e=e(n,t);return 0===e&&n!==t&&(null==n||n!=n)||0<e}function it(e,a,s,c){var e=r(e),t=new me(s).map(function(e){return e.size});return e.size=c?t.max():t.min(),e.__iterate=function(e,t){for(var n,r=this.__iterator(h,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},e.__iteratorUncached=function(t,n){var r=s.map(function(e){return e=u(e),le(n?e.reverse():e)}),o=0,i=!1;return new g(function(){var e;return i||(e=r.map(function(e){return e.next()}),i=c?e.every(function(e){return e.done}):e.some(function(e){return e.done})),i?E():v(t,o++,a.apply(null,e.map(function(e){return e.value})))})},e}function D(e,t){return e===t?e:ee(e)?t:e.constructor(t)}function at(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function st(e){return c(e)?f:s(e)?J:X}function r(e){return Object.create((c(e)?ye:s(e)?O:ge).prototype)}function ct(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):C.prototype.cacheResult.call(this)}function ut(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:t<e?1:e<t?-1:0}function j(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function lt(e,t){if(!e)throw new Error(t)}function T(e){lt(e!==1/0,"Cannot perform this action with an infinite size.")}function ft(e){if(de(e)&&"string"!=typeof e)return e;if(d(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}Ve.prototype.cacheResult=We.prototype.cacheResult=Ge.prototype.cacheResult=Ye.prototype.cacheResult=ct;var pt=Object.prototype.toString;function dt(e){if(!e||"object"!=typeof e||"[object Object]"!==pt.call(e))return!1;e=Object.getPrototypeOf(e);if(null===e)return!0;for(var t=e,n=Object.getPrototypeOf(e);null!==n;)t=n,n=Object.getPrototypeOf(t);return t===e}function ht(e){return"object"==typeof e&&(p(e)||Array.isArray(e)||dt(e))}function yt(t){try{return"string"==typeof t?JSON.stringify(t):String(t)}catch(e){return JSON.stringify(t)}}function gt(e,t){return p(e)?e.has(t):ht(e)&&pe.call(e,t)}function mt(e,t,n){return p(e)?e.get(t,n):gt(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function vt(e){if(Array.isArray(e))return j(e);var t,n={};for(t in e)pe.call(e,t)&&(n[t]=e[t]);return n}function bt(e,t){if(!ht(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(p(e)){if(e.remove)return e.remove(t);throw new TypeError("Cannot update immutable value without .remove() method: "+e)}var n;return pe.call(e,t)?(n=vt(e),Array.isArray(n)?n.splice(t,1):delete n[t],n):e}function _t(e,t,n){if(!ht(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(p(e)){if(e.set)return e.set(t,n);throw new TypeError("Cannot update immutable value without .set() method: "+e)}return pe.call(e,t)&&n===e[t]||((e=vt(e))[t]=n),e}function wt(e,t,n,r){r||(r=n,n=void 0);e=function e(t,n,r,o,i,a){var s=n===S;if(o===r.length)return(u=a(c=s?i:n))===c?n:u;if(!s&&!ht(n))throw new TypeError("Cannot update within non-data-structure value in path ["+r.slice(0,o).map(yt)+"]: "+n);var c=r[o];var u=s?S:mt(n,c,S);r=e(u===S?t:p(u),u,r,o+1,i,a);return r===u?n:r===S?bt(n,c):_t(s?t?I():{}:n,c,r)}(p(e),e,ft(t),0,n,r);return e===S?n:e}function St(e,t,n){return wt(e,t,S,function(){return n})}function Et(e,t){return St(this,e,t)}function Ct(e,t){return wt(e,t,function(){return S})}function Ot(e){return Ct(this,e)}function xt(e,t,n,r){return wt(e,[t],n,r)}function kt(e,t,n){return 1===arguments.length?e(this):xt(this,e,t,n)}function Dt(e,t,n){return wt(this,e,t,n)}function jt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return It(this,e)}function Tt(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return It(this,t,e)}function It(e,t,o){for(var n=[],r=0;r<t.length;r++){var i=f(t[r]);0!==i.size&&n.push(i)}return 0===n.length?e:0!==e.toSeq().size||e.__ownerID||1!==n.length?e.withMutations(function(r){for(var e=o?function(t,n){xt(r,n,S,function(e){return e===S?t:o(e,t,n)})}:function(e,t){r.set(t,e)},t=0;t<n.length;t++)n[t].forEach(e)}):e.constructor(n[0])}function Mt(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return Lt(e,t)}function Nt(e,t){for(var n=[],r=arguments.length-2;0<r--;)n[r]=arguments[r+2];return Lt(t,n,e)}function At(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return Rt(e,t)}function Pt(e,t){for(var n=[],r=arguments.length-2;0<r--;)n[r]=arguments[r+2];return Rt(t,n,e)}function Rt(e,t,n){return Lt(e,t,(o=n,function e(t,n,r){return ht(t)&&ht(n)&&function(e,t){return e=C(e),t=C(t),s(e)===s(t)&&c(e)===c(t)}(t,n)?Lt(t,[n],e):o?o(t,n,r):n}));var o}function Lt(r,e,o){if(!ht(r))throw new TypeError("Cannot merge into non-data-structure value: "+r);if(p(r))return"function"==typeof o&&r.mergeWith?r.mergeWith.apply(r,[o].concat(e)):(r.merge||r.concat).apply(r,e);for(var t=Array.isArray(r),i=r,n=t?J:f,a=t?function(e){(i=i===r?vt(i):i).push(e)}:function(e,t){var n=pe.call(i,t),e=n&&o?o(i[t],e,t):e;n&&e===i[t]||((i=i===r?vt(i):i)[t]=e)},s=0;s<e.length;s++)n(e[s]).forEach(a);return i}function Ft(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Rt(this,e)}function zt(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return Rt(this,t,e)}function Bt(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return wt(this,e,I(),function(e){return Lt(e,t)})}function Kt(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];return wt(this,e,I(),function(e){return Rt(e,t)})}function Ht(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Ut(){return this.__ownerID?this:this.__ensureOwner(new F)}function qt(){return this.__ensureOwner()}function Wt(){return this.__altered}function Vt(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}var Gt,Yt=function(r){function e(t){return null==t?I():Oe(t)&&!d(t)?t:I().withMutations(function(n){var e=r(t);T(e.size),e.forEach(function(e,t){return n.set(t,e)})})}return r&&(e.__proto__=r),((e.prototype=Object.create(r&&r.prototype)).constructor=e).of=function(){for(var n=[],e=arguments.length;e--;)n[e]=arguments[e];return I().withMutations(function(e){for(var t=0;t<n.length;t+=2){if(n.length<=t+1)throw new Error("Missing value for key: "+n[t]);e.set(n[t],n[t+1])}})},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},e.prototype.set=function(e,t){return rn(this,e,t)},e.prototype.remove=function(e){return rn(this,e,S)},e.prototype.deleteAll=function(e){var n=u(e);return 0===n.size?this:this.withMutations(function(t){n.forEach(function(e){return t.remove(e)})})},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):I()},e.prototype.sort=function(e){return N(nt(this,e))},e.prototype.sortBy=function(e,t){return N(nt(this,t,e))},e.prototype.map=function(r,o){var i=this;return this.withMutations(function(n){n.forEach(function(e,t){n.set(t,r.call(o,e,t,i))})})},e.prototype.__iterator=function(e,t){return new Qt(this,e,t)},e.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},e.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?nn(this.size,this._root,e,this.__hash):0===this.size?I():(this.__ownerID=e,this.__altered=!1,this)},e}(f),i=(Yt.isMap=Oe,Yt.prototype),$t=(i[Ce]=!0,i[t]=i.remove,i.removeAll=i.deleteAll,i.setIn=Et,i.removeIn=i.deleteIn=Ot,i.update=kt,i.updateIn=Dt,i.merge=i.concat=jt,i.mergeWith=Tt,i.mergeDeep=Ft,i.mergeDeepWith=zt,i.mergeIn=Bt,i.mergeDeepIn=Kt,i.withMutations=Ht,i.wasAltered=Wt,i.asImmutable=qt,i["@@transducer/init"]=i.asMutable=Ut,i["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},i["@@transducer/result"]=function(e){return e.asImmutable()},function(e,t){this.ownerID=e,this.entries=t}),Zt=($t.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(x(n,o[i][0]))return o[i][1];return r},$t.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===S,c=this.entries,u=0,l=c.length;u<l&&!x(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(m(a),!s&&f||m(i),!s||1!==c.length){if(!f&&!s&&c.length>=ln){var p=e,d=c,a=r,i=o;p=p||new F;for(var h=new Xt(p,k(a),[a,i]),y=0;y<d.length;y++){var g=d[y];h=h.update(p,0,void 0,g[0],g[1])}return h}a=e&&e===this.ownerID,i=a?c:j(c);return f?s?u===l-1?i.pop():i[u]=i.pop():i[u]=[r,o]:i.push([r,o]),a?(this.entries=i,this):new $t(e,i)}},Vt.prototype.get=function(e,t,n,r){void 0===t&&(t=k(n));var o=1<<((0===e?t:t>>>e)&b),i=this.bitmap;return 0==(i&o)?r:this.nodes[cn(i&o-1)].get(e+_,t,n,r)},Vt.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=k(r));var s=(0===t?n:n>>>t)&b,c=1<<s,u=this.bitmap,l=0!=(u&c);if(!l&&o===S)return this;var f=cn(u&c-1),p=this.nodes,d=l?p[f]:void 0,t=on(d,e,t+_,n,r,o,i,a);if(t===d)return this;if(!l&&t&&p.length>=fn){for(var n=e,h=p,y=u,r=s,o=t,g=0,m=new Array(w),v=0;0!==y;v++,y>>>=1)m[v]=1&y?h[g++]:void 0;return m[r]=o,new Zt(n,g+1,m)}return l&&!t&&2===p.length&&an(p[1^f])?p[1^f]:l&&t&&1===p.length&&an(t)?t:(i=e&&e===this.ownerID,a=l?t?u:u^c:u|c,d=l?t?un(p,f,t,i):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(p,f,i):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}(p,f,t,i),i?(this.bitmap=a,this.nodes=d,this):new Vt(e,a,d))},function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}),Jt=(Zt.prototype.get=function(e,t,n,r){void 0===t&&(t=k(n));var o=this.nodes[(0===e?t:t>>>e)&b];return o?o.get(e+_,t,n,r):r},Zt.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=k(r));var s=(0===t?n:n>>>t)&b,c=this.nodes,u=c[s];if(o===S&&!u)return this;t=on(u,e,t+_,n,r,o,i,a);if(t===u)return this;n=this.count;if(u){if(!t&&--n<pn){for(var r=e,l=c,f=s,p=0,d=0,h=new Array(n),y=0,g=1,m=l.length;y<m;y++,g<<=1){var v=l[y];void 0!==v&&y!==f&&(p|=g,h[d++]=v)}return new Vt(r,p,h)}}else n++;o=e&&e===this.ownerID,i=un(c,s,t,o);return o?(this.count=n,this.nodes=i,this):new Zt(e,n,i)},function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}),Xt=(Jt.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(x(n,o[i][0]))return o[i][1];return r},Jt.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=k(r));var s=o===S;if(n!==this.keyHash)return s?this:(m(a),m(i),sn(this,e,t,n,[r,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!x(r,c[u][0]);u++);t=u<l;return(t?c[u][1]===o:s)?this:(m(a),!s&&t||m(i),s&&2===l?new Xt(e,this.keyHash,c[1^u]):(a=(n=e&&e===this.ownerID)?c:j(c),t?s?u===l-1?a.pop():a[u]=a.pop():a[u]=[r,o]:a.push([r,o]),n?(this.entries=a,this):new Jt(e,this.keyHash,a)))},function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}),Qt=(Xt.prototype.get=function(e,t,n,r){return x(n,this.entry[0])?this.entry[1]:r},Xt.prototype.update=function(e,t,n,r,o,i,a){var s=o===S,c=x(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(m(a),s?void m(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Xt(e,this.keyHash,[r,o]):(m(i),sn(this,e,t,k(r),[r,o])))},$t.prototype.iterate=Jt.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Vt.prototype.iterate=Zt.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Xt.prototype.iterate=function(e,t){return e(this.entry)},function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&tn(e._root)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,o=void 0;if(n.entry){if(0==r)return en(e,n.entry)}else if(n.entries){if(r<=(o=n.entries.length-1))return en(e,n.entries[this._reverse?o-r:r])}else if(r<=(o=n.nodes.length-1)){n=n.nodes[this._reverse?o-r:r];if(n){if(n.entry)return en(e,n.entry);t=this._stack=tn(n,t)}continue}t=this._stack=this._stack.__prev}return E()},t}(g));function en(e,t){return v(e,t[0],t[1])}function tn(e,t){return{node:e,index:0,__prev:t}}function nn(e,t,n,r){var o=Object.create(i);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function I(){return Gt=Gt||nn(0)}function rn(e,t,n){if(e._root){var r=L(),o=L(),i=on(e._root,e.__ownerID,0,void 0,t,n,r,o);if(!o.value)return e;o=e.size+(r.value?n===S?-1:1:0)}else{if(n===S)return e;o=1,i=new $t(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=i,e.__hash=void 0,e.__altered=!0,e):i?nn(o,i):I()}function on(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===S?e:(m(s),m(a),new Xt(t,r,[o,i]))}function an(e){return e.constructor===Xt||e.constructor===Jt}function sn(e,t,n,r,o){var i,a;return e.keyHash===r?new Jt(t,r,[e.entry,o]):(r=(i=(0===n?e.keyHash:e.keyHash>>>n)&b)==(a=(0===n?r:r>>>n)&b)?[sn(e,t,n+_,r,o)]:(n=new Xt(t,r,o),i<a?[e,n]:[n,e]),new Vt(t,1<<i|1<<a,r))}function cn(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e=(e+=e>>8)+(e>>16))}function un(e,t,n,r){r=r?e:j(e);return r[t]=n,r}var ln=w/4,fn=w/2,pn=w/4,dn="@@__IMMUTABLE_LIST__@@";function hn(e){return Boolean(e&&e[dn])}var yn,gn=function(o){function e(e){var t,r,n=wn();return null==e?n:hn(e)?e:(t=o(e),0===(r=t.size)?n:(T(r),0<r&&r<w?_n(0,r,_,null,new mn(t.toArray())):n.withMutations(function(n){n.setSize(r),t.forEach(function(e,t){return n.set(t,e)})})))}return o&&(e.__proto__=o),((e.prototype=Object.create(o&&o.prototype)).constructor=e).of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(e,t){var n;return 0<=(e=B(this,e))&&e<this.size?(n=Cn(this,e+=this._origin))&&n.array[e&b]:t},e.prototype.set=function(e,t){var n=this,r=e,o=t;if((r=B(n,r))!==r)return n;if(r>=n.size||r<0)return n.withMutations(function(e){r<0?On(e,r).set(0,o):On(e,0,r+1).set(r,o)});r+=n._origin;var e=n._tail,t=n._root,i=L();return r>=xn(n._capacity)?e=Sn(e,n.__ownerID,0,r,o,i):t=Sn(t,n.__ownerID,n._level,r,o,i),i.value?n.__ownerID?(n._root=t,n._tail=e,n.__hash=void 0,n.__altered=!0,n):_n(n._origin,n._capacity,n._level,t,e):n},e.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},e.prototype.insert=function(e,t){return this.splice(e,0,t)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=_,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):wn()},e.prototype.push=function(){var n=arguments,r=this.size;return this.withMutations(function(e){On(e,0,r+n.length);for(var t=0;t<n.length;t++)e.set(r+t,n[t])})},e.prototype.pop=function(){return On(this,0,-1)},e.prototype.unshift=function(){var n=arguments;return this.withMutations(function(e){On(e,-n.length);for(var t=0;t<n.length;t++)e.set(t,n[t])})},e.prototype.shift=function(){return On(this,1)},e.prototype.concat=function(){for(var e=arguments,n=[],t=0;t<arguments.length;t++){var r=e[t],r=o("string"!=typeof r&&ce(r)?r:[r]);0!==r.size&&n.push(r)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations(function(t){n.forEach(function(e){return e.forEach(function(e){return t.push(e)})})}):this.constructor(n[0])},e.prototype.setSize=function(e){return On(this,0,e)},e.prototype.map=function(n,r){var o=this;return this.withMutations(function(e){for(var t=0;t<o.size;t++)e.set(t,n.call(r,e.get(t),t,o))})},e.prototype.slice=function(e,t){var n=this.size;return H(e,t,n)?this:On(this,U(e,n),q(t,n))},e.prototype.__iterator=function(t,n){var r=n?this.size:0,o=bn(this,n);return new g(function(){var e=o();return e===vn?E():v(t,n?--r:r++,e)})},e.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,o=bn(this,t);(n=o())!==vn&&!1!==e(n,t?--r:r++,this););return r},e.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?_n(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?wn():(this.__ownerID=e,this.__altered=!1,this)},e}(J),M=(gn.isList=hn,gn.prototype),mn=(M[dn]=!0,M[t]=M.remove,M.merge=M.concat,M.setIn=Et,M.deleteIn=M.removeIn=Ot,M.update=kt,M.updateIn=Dt,M.mergeIn=Bt,M.mergeDeepIn=Kt,M.withMutations=Ht,M.wasAltered=Wt,M.asImmutable=qt,M["@@transducer/init"]=M.asMutable=Ut,M["@@transducer/step"]=function(e,t){return e.push(t)},M["@@transducer/result"]=function(e){return e.asImmutable()},function(e,t){this.array=e,this.ownerID=t}),vn=(mn.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&b;if(r>=this.array.length)return new mn([],e);var o=0==r;if(0<t){var i,a=this.array[r];if((i=a&&a.removeBefore(e,t-_,n))===a&&o)return this}if(o&&!i)return this;var s=En(this,e);if(!o)for(var c=0;c<r;c++)s.array[c]=void 0;return i&&(s.array[r]=i),s},mn.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r=n-1>>>t&b;if(r>=this.array.length)return this;if(0<t){var o,i=this.array[r];if((o=i&&i.removeAfter(e,t-_,n))===i&&r==this.array.length-1)return this}t=En(this,e);return t.array.splice(1+r),o&&(t.array[r]=o),t},{});function bn(e,h){var y=e._origin,g=e._capacity,m=xn(g),v=e._tail;return b(e._root,e._level,0);function b(e,t,n){var r,o,i,a,s,c,u,l,f,p,d;return 0===t?(s=e,o=(r=n)===m?v&&v.array:s&&s.array,i=y<r?0:y-r,w<(a=g-r)&&(a=w),function(){var e;return i===a?vn:(e=h?--a:i++,o&&o[e])}):(c=t,u=n,f=(s=e)&&s.array,p=y<u?0:y-u>>c,w<(d=1+(g-u>>c))&&(d=w),function(){for(;;){if(l){var e=l();if(e!==vn)return e;l=null}if(p===d)return vn;e=h?--d:p++;l=b(f&&f[e],c-_,u+(e<<c))}})}}function _n(e,t,n,r,o,i,a){var s=Object.create(M);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function wn(){return yn=yn||_n(0,0,_)}function Sn(e,t,n,r,o,i){var a,s,c=r>>>n&b,u=e&&c<e.array.length;return u||void 0!==o?0<n?(n=Sn(s=e&&e.array[c],t,n-_,r,o,i))===s?e:((a=En(e,t)).array[c]=n,a):u&&e.array[c]===o?e:(i&&m(i),a=En(e,t),void 0===o&&c==a.array.length-1?a.array.pop():a.array[c]=o,a):e}function En(e,t){return t&&e&&t===e.ownerID?e:new mn(e?e.array.slice():[],t)}function Cn(e,t){if(t>=xn(e._capacity))return e._tail;if(t<1<<e._level+_){for(var n=e._root,r=e._level;n&&0<r;)n=n.array[t>>>r&b],r-=_;return n}}function On(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new F,o=e._origin,i=e._capacity,a=o+t,t=void 0===n?i:n<0?i+n:o+n;if(a===o&&t===i)return e;if(t<=a)return e.clear();for(var s=e._level,c=e._root,u=0;a+u<0;)c=new mn(c&&c.array.length?[void 0,c]:[],r),u+=1<<(s+=_);u&&(a+=u,o+=u,t+=u,i+=u);for(var l=xn(i),f=xn(t);1<<s+_<=f;)c=new mn(c&&c.array.length?[c]:[],r),s+=_;var n=e._tail,p=f<l?Cn(e,t-1):l<f?new mn([],r):n;if(n&&l<f&&a<i&&n.array.length){for(var d=c=En(c,r),h=s;_<h;h-=_)var y=l>>>h&b,d=d.array[y]=En(d.array[y],r);d.array[l>>>_&b]=n}if(t<i&&(p=p&&p.removeAfter(r,0,t)),f<=a)a-=f,t-=f,s=_,c=null,p=p&&p.removeBefore(r,0,a);else if(o<a||f<l){for(u=0;c;){var g=a>>>s&b;if(g!=f>>>s&b)break;g&&(u+=(1<<s)*g),s-=_,c=c.array[g]}(c=c&&o<a?c.removeBefore(r,s,a-u):c)&&f<l&&(c=c.removeAfter(r,s,f-u)),u&&(a-=u,t-=u)}return e.__ownerID?(e.size=t-a,e._origin=a,e._capacity=t,e._level=s,e._root=c,e._tail=p,e.__hash=void 0,e.__altered=!0,e):_n(a,t,s,c,p)}function xn(e){return e<w?0:e-1>>>_<<_}var kn,N=function(e){function t(t){return null==t?jn():xe(t)?t:jn().withMutations(function(n){var e=f(t);T(e.size),e.forEach(function(e,t){return n.set(t,e)})})}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){e=this._map.get(e);return void 0!==e?this._list.get(e)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):jn()},t.prototype.set=function(e,t){return Tn(this,e,t)},t.prototype.remove=function(e){return Tn(this,e,S)},t.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){var t,n;return e===this.__ownerID?this:(t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e),e?Dn(t,n,e,this.__hash):0===this.size?jn():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this))},t}(Yt);function Dn(e,t,n,r){var o=Object.create(N.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function jn(){return kn=kn||Dn(I(),wn())}function Tn(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===S){if(!c)return e;a.size>=w&&a.size>=2*i.size?(r=(o=a.filter(function(e,t){return void 0!==e&&s!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e.__altered=!0,e):Dn(r,o)}N.isOrderedMap=xe,N.prototype[re]=!0,N.prototype[t]=N.prototype.remove;var In="@@__IMMUTABLE_STACK__@@";function Mn(e){return Boolean(e&&e[In])}var Nn,An=function(o){function e(e){return null==e?Rn():Mn(e)?e:Rn().pushAll(e)}return o&&(e.__proto__=o),((e.prototype=Object.create(o&&o.prototype)).constructor=e).of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(e,t){var n=this._head;for(e=B(this,e);n&&e--;)n=n.next;return n?n.value:t},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;0<=r;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Pn(t,n)},e.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;if(0===this.size&&Mn(e))return e;T(e.size);var t=this.size,n=this._head;return e.__iterate(function(e){t++,n={value:e,next:n}},!0),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Pn(t,n)},e.prototype.pop=function(){return this.slice(1)},e.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):Rn()},e.prototype.slice=function(e,t){if(H(e,t,this.size))return this;var n=U(e,this.size);if(q(t,this.size)!==this.size)return o.prototype.slice.call(this,e,t);for(var e=this.size-n,r=this._head;n--;)r=r.next;return this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Pn(e,r)},e.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Pn(this.size,this._head,e,this.__hash):0===this.size?Rn():(this.__ownerID=e,this.__altered=!1,this)},e.prototype.__iterate=function(n,e){var r=this;if(e)return new me(this.toArray()).__iterate(function(e,t){return n(e,t,r)},e);for(var t=0,o=this._head;o&&!1!==n(o.value,t++,this);)o=o.next;return t},e.prototype.__iterator=function(t,e){var n,r;return e?new me(this.toArray()).__iterator(t,e):(n=0,r=this._head,new g(function(){var e;return r?(e=r.value,r=r.next,v(t,n++,e)):E()}))},e}(J),a=(An.isStack=Mn,An.prototype);function Pn(e,t,n,r){var o=Object.create(a);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Rn(){return Nn=Nn||Pn(0)}a[In]=!0,a.shift=a.pop,a.unshift=a.push,a.unshiftAll=a.pushAll,a.withMutations=Ht,a.wasAltered=Wt,a.asImmutable=qt,a["@@transducer/init"]=a.asMutable=Ut,a["@@transducer/step"]=function(e,t){return e.unshift(t)},a["@@transducer/result"]=function(e){return e.asImmutable()};var Ln="@@__IMMUTABLE_SET__@@";function Fn(e){return Boolean(e&&e[Ln])}function zn(e){return Fn(e)&&d(e)}function Bn(n,e){var r,o,i,a,t;return n===e||!(!l(e)||void 0!==n.size&&void 0!==e.size&&n.size!==e.size||void 0!==n.__hash&&void 0!==e.__hash&&n.__hash!==e.__hash||c(n)!==c(e)||s(n)!==s(e)||d(n)!==d(e))&&(0===n.size&&0===e.size||(r=!Z(n),d(n)?(o=n.entries(),e.every(function(e,t){var n=o.next().value;return n&&x(n[1],e)&&(r||x(n[0],t))})&&o.next().done):(i=!1,void 0===n.size&&(void 0===e.size?"function"==typeof n.cacheResult&&n.cacheResult():(i=!0,t=n,n=e,e=t)),a=!0,t=e.__iterate(function(e,t){if(r?!n.has(e):i?!x(e,n.get(t,S)):!x(n.get(t,S),e))return a=!1}),a&&n.size===t)))}function Kn(t,n){function e(e){t.prototype[e]=n[e]}Object.keys(n).forEach(e),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(e)}function Hn(e){if(!e||"object"!=typeof e)return e;if(!l(e)){if(!ht(e))return e;e=C(e)}var n,t;return c(e)?(n={},e.__iterate(function(e,t){n[t]=Hn(e)}),n):(t=[],e.__iterate(function(e){t.push(Hn(e))}),t)}var Un,qn=function(r){function t(n){return null==n?Gn():Fn(n)&&!d(n)?n:Gn().withMutations(function(t){var e=r(n);T(e.size),e.forEach(function(e){return t.add(e)})})}return r&&(t.__proto__=r),((t.prototype=Object.create(r&&r.prototype)).constructor=t).of=function(){return this(arguments)},t.fromKeys=function(e){return this(f(e).keySeq())},t.intersect=function(e){return(e=u(e).toArray()).length?o.intersect.apply(t(e.pop()),e):Gn()},t.union=function(e){return(e=u(e).toArray()).length?o.union.apply(t(e.pop()),e):Gn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Wn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Wn(this,this._map.remove(e))},t.prototype.clear=function(){return Wn(this,this._map.clear())},t.prototype.map=function(n,r){var o=this,i=!1,e=Wn(this,this._map.mapEntries(function(e){var e=e[1],t=n.call(r,e,e,o);return t!==e&&(i=!0),[t,t]},r));return i?e:this},t.prototype.union=function(){for(var n=[],e=arguments.length;e--;)n[e]=arguments[e];return 0===(n=n.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations(function(t){for(var e=0;e<n.length;e++)r(n[e]).forEach(function(e){return t.add(e)})}):this.constructor(n[0])},t.prototype.intersect=function(){for(var e,n=[],t=arguments.length;t--;)n[t]=arguments[t];return 0===n.length?this:(n=n.map(function(e){return r(e)}),e=[],this.forEach(function(t){n.every(function(e){return e.includes(t)})||e.push(t)}),this.withMutations(function(t){e.forEach(function(e){t.remove(e)})}))},t.prototype.subtract=function(){for(var e,n=[],t=arguments.length;t--;)n[t]=arguments[t];return 0===n.length?this:(n=n.map(function(e){return r(e)}),e=[],this.forEach(function(t){n.some(function(e){return e.includes(t)})&&e.push(t)}),this.withMutations(function(t){e.forEach(function(e){t.remove(e)})}))},t.prototype.sort=function(e){return pr(nt(this,e))},t.prototype.sortBy=function(e,t){return pr(nt(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e){return t(e,e,n)},e)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){var t;return e===this.__ownerID?this:(t=this._map.__ensureOwner(e),e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this))},t}(X),o=(qn.isSet=Fn,qn.prototype);function Wn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Vn(e,t){var n=Object.create(o);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Gn(){return Un=Un||Vn(I())}o[Ln]=!0,o[t]=o.remove,o.merge=o.concat=o.union,o.withMutations=Ht,o.asImmutable=qt,o["@@transducer/init"]=o.asMutable=Ut,o["@@transducer/step"]=function(e,t){return e.add(t)},o["@@transducer/result"]=function(e){return e.asImmutable()},o.__empty=Gn,o.__make=Vn;var Yn,$n=function(e){function r(e,t,n){if(!(this instanceof r))return new r(e,t,n);if(lt(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Yn)return Yn;Yn=this}}return e&&(r.__proto__=e),((r.prototype=Object.create(e&&e.prototype)).constructor=r).prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},r.prototype.get=function(e,t){return this.has(e)?this._start+B(this,e)*this._step:t},r.prototype.includes=function(e){e=(e-this._start)/this._step;return 0<=e&&e<this.size&&e===Math.floor(e)},r.prototype.slice=function(e,t){return H(e,t,this.size)?this:(e=U(e,this.size),(t=q(t,this.size))<=e?new r(0,0):new r(this.get(e,this._end),this.get(t,this._end),this._step))},r.prototype.indexOf=function(e){e-=this._start;if(e%this._step==0){e=e/this._step;if(0<=e&&e<this.size)return e}return-1},r.prototype.lastIndexOf=function(e){return this.indexOf(e)},r.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,i=0;i!==n&&!1!==e(o,t?n-++i:i++,this);)o+=t?-r:r;return i},r.prototype.__iterator=function(t,n){var r=this.size,o=this._step,i=n?this._start+(r-1)*o:this._start,a=0;return new g(function(){var e;return a===r?E():(e=i,i+=n?-o:o,v(t,n?r-++a:a++,e))})},r.prototype.equals=function(e){return e instanceof r?this._start===e._start&&this._end===e._end&&this._step===e._step:Bn(this,e)},r}(O);function Zn(e,t,n){for(var r=ft(t),o=0;o!==r.length;)if((e=mt(e,r[o++],S))===S)return n;return e}function Jn(e,t){return Zn(this,e,t)}function Xn(e,t){return Zn(e,t,S)!==S}function Qn(){T(this.size);var n={};return this.__iterate(function(e,t){n[t]=e}),n}u.isIterable=l,u.isKeyed=c,u.isIndexed=s,u.isAssociative=Z,u.isOrdered=d,u.Iterator=g,Kn(u,{toArray:function(){T(this.size);var n=new Array(this.size||0),r=c(this),o=0;return this.__iterate(function(e,t){n[o++]=r?[t,e]:e}),n},toIndexedSeq:function(){return new Ve(this)},toJS:function(){return Hn(this)},toKeyedSeq:function(){return new We(this,!0)},toMap:function(){return Yt(this.toKeyedSeq())},toObject:Qn,toOrderedMap:function(){return N(this.toKeyedSeq())},toOrderedSet:function(){return pr(c(this)?this.valueSeq():this)},toSet:function(){return qn(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return An(c(this)?this.valueSeq():this)},toList:function(){return gn(c(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return D(this,function(e,t){var n=c(e);if(0===(t=[e].concat(t).map(function(e){return l(e)?n&&(e=f(e)):e=n?we(e):Se(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size})).length)return e;if(1===t.length){var r=t[0];if(r===e||n&&c(r)||s(e)&&s(r))return r}return r=new me(t),n?r=r.toKeyedSeq():s(e)||(r=r.toSetSeq()),(r=r.flatten(!0)).size=t.reduce(function(e,t){if(void 0!==e){t=t.size;if(void 0!==t)return e+t}},0),r}(this,e))},includes:function(t){return this.some(function(e){return x(e,t)})},entries:function(){return this.__iterator(y)},every:function(r,o){T(this.size);var i=!0;return this.__iterate(function(e,t,n){if(!r.call(o,e,t,n))return i=!1}),i},filter:function(e,t){return D(this,Xe(this,e,t,!0))},find:function(e,t,n){e=this.findEntry(e,t);return e?e[1]:n},forEach:function(e,t){return T(this.size),this.__iterate(t?e.bind(t):e)},join:function(t){T(this.size),t=void 0!==t?""+t:",";var n="",r=!0;return this.__iterate(function(e){r?r=!1:n+=t,n+=null!=e?e.toString():""}),n},keys:function(){return this.__iterator(oe)},map:function(e,t){return D(this,Ze(this,e,t))},reduce:function(e,t,n){return rr(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return rr(this,e,t,n,arguments.length<2,!0)},reverse:function(){return D(this,Je(this,!0))},slice:function(e,t){return D(this,Qe(this,e,t,!0))},some:function(e,t){return!this.every(ar(e),t)},sort:function(e){return D(this,nt(this,e))},values:function(){return this.__iterator(h)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return z(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return n=this,r=e,o=t,i=Yt().asMutable(),n.__iterate(function(e,t){i.update(r.call(o,e,t,n),0,function(e){return e+1})}),i.asImmutable();var n,r,o,i},equals:function(e){return Bn(this,e)},entrySeq:function(){var e,t=this;return t._cache?new me(t._cache):((e=t.toSeq().map(ir).toIndexedSeq()).fromEntrySeq=function(){return t.toSeq()},e)},filterNot:function(e,t){return this.filter(ar(e),t)},findEntry:function(r,o,e){var i=e;return this.__iterate(function(e,t,n){if(r.call(o,e,t,n))return!(i=[t,e])}),i},findKey:function(e,t){e=this.findEntry(e,t);return e&&e[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(K,null,e)},flatMap:function(e,t){return D(this,(r=e,o=t,i=st(n=this),n.toSeq().map(function(e,t){return i(r.call(o,e,t,n))}).flatten(!0)));var n,r,o,i},flatten:function(e){return D(this,tt(this,e,!0))},fromEntrySeq:function(){return new Ye(this)},get:function(n,e){return this.find(function(e,t){return x(t,n)},void 0,e)},getIn:Jn,groupBy:function(e,t){return o=e,i=t,a=c(r=this),s=(d(r)?N:Yt)().asMutable(),r.__iterate(function(t,n){s.update(o.call(i,t,n,r),function(e){return(e=e||[]).push(a?[n,t]:t),e})}),n=st(r),s.map(function(e){return D(r,n(e))}).asImmutable();var r,o,i,a,s,n},has:function(e){return this.get(e,S)!==S},hasIn:function(e){return Xn(this,e)},isSubset:function(t){return t="function"==typeof t.includes?t:u(t),this.every(function(e){return t.includes(e)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:u(e)).isSubset(this)},keyOf:function(t){return this.findKey(function(e){return x(e,t)})},keySeq:function(){return this.toSeq().map(or).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return rt(this,e)},maxBy:function(e,t){return rt(this,t,e)},min:function(e){return rt(this,e?sr(e):ur)},minBy:function(e,t){return rt(this,t?sr(t):ur,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return D(this,et(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(ar(e),t)},sortBy:function(e,t){return D(this,nt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return D(this,(s=e,c=t,(e=r(n=this)).__iterateUncached=function(r,e){var o,i=this;return e?this.cacheResult().__iterate(r,e):(o=0,n.__iterate(function(e,t,n){return s.call(c,e,t,n)&&++o&&r(e,t,i)}),o)},e.__iteratorUncached=function(r,e){var o,i,a=this;return e?this.cacheResult().__iterator(r,e):(o=n.__iterator(y,e),i=!0,new g(function(){var e,t,n;return i?(e=o.next()).done?e:(t=(n=e.value)[0],n=n[1],s.call(c,n,t,a)?r===y?e:v(r,t,n,e):(i=!1,E())):E()}))},e));var n,s,c},takeUntil:function(e,t){return this.takeWhile(ar(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=d(e),n=c(e),r=t?1:0;return function(e,t){return t=De(t,3432918353),t=De(t<<15|t>>>-15,461845907),t=De(t<<13|t>>>-13,5),t=De((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=je((t=De(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+lr(k(e),k(t))|0}:function(e,t){r=r+lr(k(e),k(t))|0}:t?function(e){r=31*r+k(e)|0}:function(e){r=r+k(e)|0}),r)}(this))}});var n=u.prototype,er=(n[G]=!0,n[se]=n.values,n.toJSON=n.toArray,n.__toStringMapper=yt,n.inspect=n.toSource=function(){return this.toString()},n.chain=n.flatMap,n.contains=n.includes,Kn(f,{flip:function(){return D(this,$e(this))},mapEntries:function(n,r){var o=this,i=0;return D(this,this.toSeq().map(function(e,t){return n.call(r,[t,e],i++,o)}).fromEntrySeq())},mapKeys:function(n,r){var o=this;return D(this,this.toSeq().flip().map(function(e,t){return n.call(r,e,t,o)}).flip())}}),f.prototype),tr=(er[Y]=!0,er[se]=n.entries,er.toJSON=Qn,er.__toStringMapper=function(e,t){return yt(t)+": "+yt(e)},Kn(J,{toKeyedSeq:function(){return new We(this,!1)},filter:function(e,t){return D(this,Xe(this,e,t,!1))},findIndex:function(e,t){e=this.findEntry(e,t);return e?e[0]:-1},indexOf:function(e){e=this.keyOf(e);return void 0===e?-1:e},lastIndexOf:function(e){e=this.lastKeyOf(e);return void 0===e?-1:e},reverse:function(){return D(this,Je(this,!1))},slice:function(e,t){return D(this,Qe(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=U(e,e<0?this.count():this.size);var r=this.slice(0,e);return D(this,1===n?r:r.concat(j(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){e=this.findLastEntry(e,t);return e?e[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return D(this,tt(this,e,!1))},get:function(n,e){return(n=B(this,n))<0||this.size===1/0||void 0!==this.size&&n>this.size?e:this.find(function(e,t){return t===n},void 0,e)},has:function(e){return 0<=(e=B(this,e))&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return D(this,(a=e,(e=r(i=this)).size=i.size&&2*i.size-1,e.__iterateUncached=function(t,e){var n=this,r=0;return i.__iterate(function(e){return(!r||!1!==t(a,r++,n))&&!1!==t(e,r++,n)},e),r},e.__iteratorUncached=function(e,t){var n,r=i.__iterator(h,t),o=0;return new g(function(){return(!n||o%2)&&(n=r.next()).done?n:o%2?v(e,o++,a):v(e,o++,n.value,n)})},e));var i,a},interleave:function(){var e=[this].concat(j(arguments)),t=it(this.toSeq(),O.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),D(this,n)},keySeq:function(){return $n(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return D(this,et(this,e,t,!1))},zip:function(){var e=[this].concat(j(arguments));return D(this,it(this,cr,e))},zipAll:function(){var e=[this].concat(j(arguments));return D(this,it(this,cr,e,!0))},zipWith:function(e){var t=j(arguments);return D(t[0]=this,it(this,e,t))}}),J.prototype),nr=(tr[$]=!0,tr[re]=!0,Kn(X,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),X.prototype);function rr(e,r,o,i,a,t){return T(e.size),e.__iterate(function(e,t,n){o=a?(a=!1,e):r.call(i,o,e,t,n)},t),o}function or(e,t){return t}function ir(e,t){return[t,e]}function ar(e){return function(){return!e.apply(this,arguments)}}function sr(e){return function(){return-e.apply(this,arguments)}}function cr(){return j(arguments)}function ur(e,t){return e<t?1:t<e?-1:0}function lr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}nr.has=n.includes,nr.contains=nr.includes,nr.keys=nr.values,Kn(ye,er),Kn(O,tr),Kn(ge,nr);var fr,pr=function(e){function t(n){return null==n?yr():zn(n)?n:yr().withMutations(function(t){var e=X(n);T(e.size),e.forEach(function(e){return t.add(e)})})}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).of=function(){return this(arguments)},t.fromKeys=function(e){return this(f(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(qn),dr=(pr.isOrderedSet=zn,pr.prototype);function hr(e,t){var n=Object.create(dr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function yr(){return fr=fr||hr(jn())}dr[re]=!0,dr.zip=tr.zip,dr.zipWith=tr.zipWith,dr.zipAll=tr.zipAll,dr.__empty=yr,dr.__make=hr;var A=function(a,s){var c,e=a;if(ne(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(p(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.");function u(e){var r=this;if(e instanceof u)return e;if(!(this instanceof u))return new u(e);if(!c){c=!0;var t=Object.keys(a),n=l._indices={};l._name=s,l._keys=t,l._defaultValues=a;for(var o=0;o<t.length;o++){var i=t[o];n[i]=o,l[i]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+mr(this)+' with property "'+i+'" since that property name is part of the Record API.'):function(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){lt(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}(l,i)}}return this.__ownerID=void 0,this._values=gn().withMutations(function(n){n.setSize(r._keys.length),f(e).forEach(function(e,t){n.set(r._indices[t],e===r._defaultValues[t]?void 0:e)})}),this}var l=u.prototype=Object.create(P);return l.constructor=u,s&&(u.displayName=s),u},P=(A.prototype.toString=function(){for(var e,t=mr(this)+" { ",n=this._keys,r=0,o=n.length;r!==o;r++)t+=(r?", ":"")+(e=n[r])+": "+yt(this.get(e));return t+" }"},A.prototype.equals=function(e){return this===e||ne(e)&&vr(this).equals(vr(e))},A.prototype.hashCode=function(){return vr(this).hashCode()},A.prototype.has=function(e){return this._indices.hasOwnProperty(e)},A.prototype.get=function(e,t){var n;return this.has(e)?(n=this._indices[e],void 0===(n=this._values.get(n))?this._defaultValues[e]:n):t},A.prototype.set=function(e,t){if(this.has(e)){e=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(e!==this._values&&!this.__ownerID)return gr(this,e)}return this},A.prototype.remove=function(e){return this.set(e)},A.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:gr(this,e)},A.prototype.wasAltered=function(){return this._values.wasAltered()},A.prototype.toSeq=function(){return vr(this)},A.prototype.toJS=function(){return Hn(this)},A.prototype.entries=function(){return this.__iterator(y)},A.prototype.__iterator=function(e,t){return vr(this).__iterator(e,t)},A.prototype.__iterate=function(e,t){return vr(this).__iterate(e,t)},A.prototype.__ensureOwner=function(e){var t;return e===this.__ownerID?this:(t=this._values.__ensureOwner(e),e?gr(this,t,e):(this.__ownerID=e,this._values=t,this))},A.isRecord=ne,A.getDescriptiveName=mr,A.prototype);function gr(e,t,n){e=Object.create(Object.getPrototypeOf(e));return e._values=t,e.__ownerID=n,e}function mr(e){return e.constructor.displayName||e.constructor.name||"Record"}function vr(t){return we(t._keys.map(function(e){return[e,t.get(e)]}))}P[te]=!0,P[t]=P.remove,P.deleteIn=P.removeIn=Ot,P.getIn=Jn,P.hasIn=n.hasIn,P.merge=jt,P.mergeWith=Tt,P.mergeIn=Bt,P.mergeDeep=Ft,P.mergeDeepWith=zt,P.mergeDeepIn=Kt,P.setIn=Et,P.update=kt,P.updateIn=Dt,P.withMutations=Ht,P.asMutable=Ut,P.asImmutable=qt,P[se]=P.entries,P.toJSON=P.toObject=n.toObject,P.inspect=P.toSource=function(){return this.toString()};var br,_r=function(e){function r(e,t){if(!(this instanceof r))return new r(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(br)return br;br=this}}return e&&(r.__proto__=e),((r.prototype=Object.create(e&&e.prototype)).constructor=r).prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},r.prototype.get=function(e,t){return this.has(e)?this._value:t},r.prototype.includes=function(e){return x(this._value,e)},r.prototype.slice=function(e,t){var n=this.size;return H(e,t,n)?this:new r(this._value,q(t,n)-U(e,n))},r.prototype.reverse=function(){return this},r.prototype.indexOf=function(e){return x(this._value,e)?0:-1},r.prototype.lastIndexOf=function(e){return x(this._value,e)?this.size:-1},r.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},r.prototype.__iterator=function(e,t){var n=this,r=this.size,o=0;return new g(function(){return o===r?E():v(e,t?r-++o:o++,n._value)})},r.prototype.equals=function(e){return e instanceof r?x(this._value,e._value):Bn(e)},r}(O);function wr(e,t){return function n(r,o,i,e,a,t){if("string"!=typeof i&&!p(i)&&(de(i)||ce(i)||dt(i))){if(~r.indexOf(i))throw new TypeError("Cannot convert circular structure to Immutable");r.push(i),a&&""!==e&&a.push(e);t=o.call(t,e,C(i).map(function(e,t){return n(r,o,e,t,a,i)}),a&&a.slice());return r.pop(),a&&a.pop(),t}return i}([],t||Sr,e,"",t&&2<t.length?[]:void 0,{"":e})}function Sr(e,t){return s(t)?t.toList():c(t)?t.toMap():t.toSet()}var Er="4.1.0",Cr=u;e.default={version:Er,Collection:u,Iterable:u,Seq:C,Map:Yt,OrderedMap:N,List:gn,Stack:An,Set:qn,OrderedSet:pr,Record:A,Range:$n,Repeat:_r,is:x,fromJS:wr,hash:k,isImmutable:p,isCollection:l,isKeyed:c,isIndexed:s,isAssociative:Z,isOrdered:d,isValueObject:ke,isPlainObject:dt,isSeq:ee,isList:hn,isMap:Oe,isOrderedMap:xe,isStack:Mn,isSet:Fn,isOrderedSet:zn,isRecord:ne,get:mt,getIn:Zn,has:gt,hasIn:Xn,merge:Mt,mergeDeep:At,mergeWith:Nt,mergeDeepWith:Pt,remove:bt,removeIn:Ct,set:_t,setIn:St,update:xt,updateIn:wt}},function(e,t,n){"use strict";var r=n(6).OrderedMap;e.exports={createFromArray:function(e){return r(e.map(function(e){return[e.getKey(),e]}))}}},function(e,t,n){"use strict";e.exports=function(e,r,o,i){var a;e.size&&(a=0,e.reduce(function(e,t,n){return r(e,t)||(o(e)&&i(a,n),a=n),t}),o(e.last())&&i(a,e.count()))}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},function(e,t,n){"use strict";var u=n(9),l=n(16)("draft_tree_data_support");e.exports=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=o.getBlockForKey(a);if(l&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(l)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){s=o.getBlockForKey(c.nextSibling);if(!s||0===s.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return u.removeRange(o,i,n)}},function(e,t,n){"use strict";var r=n(51),c=n(52);e.exports=function(e,t){var o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),e=c(e,t).getBlockMap(),t=e.keySeq(),n=t.indexOf(o),t=t.indexOf(a)+1;return r(e.slice(n,t).map(function(e,t){var n=e.getText(),r=e.getCharacterList();return o===a?e.merge({text:n.slice(i,s),characterList:r.slice(i,s)}):t===o?e.merge({text:n.slice(i),characterList:r.slice(i)}):t===a?e.merge({text:n.slice(0,s),characterList:r.slice(0,s)}):e}))}},function(e,t,n){"use strict";function r(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}var o=n(57),i=n(6),a=n(7),s=n(115),c=(0,i.Map)(),u=s();function l(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var f={getLastCreatedEntityKey:function(){return l("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),f.__getLastCreatedEntityKey()},create:function(e,t,n){return l("DraftEntity.create","contentState.createEntity"),f.__create(e,t,n)},add:function(e){return l("DraftEntity.add","contentState.addEntity"),f.__add(e)},get:function(e){return l("DraftEntity.get","contentState.getEntity"),f.__get(e)},__getAll:function(){return c},__loadWithEntities:function(e){c=e,u=s()},mergeData:function(e,t){return l("DraftEntity.mergeData","contentState.mergeEntityData"),f.__mergeData(e,t)},replaceData:function(e,t){return l("DraftEntity.replaceData","contentState.replaceEntityData"),f.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return u},__create:function(e,t,n){return f.__add(new o({type:e,mutability:t,data:n||{}}))},__add:function(e){return u=s(),c=c.set(u,e),u},__get:function(e){e=c.get(e);return e||a(!1),e},__mergeData:function(e,t){var n=f.__get(e),t=r({},n.getData(),t),n=n.set("data",t);return c=c.set(e,n),n},__replaceData:function(e,t){t=f.__get(e).set("data",t);return c=c.set(e,t),t}};e.exports=f},function(e,t,n){"use strict";n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(r=n).prototype=Object.create(t.prototype),(r.prototype.constructor=r).__proto__=t;var r=n.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(e,t,n){var r,o,i=this.getAnchorKey(),a=this.getFocusKey();return i===a&&i===e?(o=this.getStartOffset(),r=this.getEndOffset(),t<=o&&o<=n||t<=r&&r<=n):(e===i||e===a)&&(t<=(o=e===i?this.getAnchorOffset():this.getFocusOffset())&&o<=n)},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()},n.createEmpty=function(e){return new n({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},n}((0,n(6).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=n},function(e,t,n){"use strict";var r=n(7),o=null;function i(e){return"LTR"===e||"RTL"===e}function a(e){return i(e)||r(!1),"LTR"===e?"ltr":"rtl"}function s(e){o=e}e.exports={NEUTRAL:"NEUTRAL",LTR:"LTR",RTL:"RTL",isStrong:i,getHTMLDir:a,getHTMLDirIfDifferent:function(e,t){return i(e)||r(!1),i(t)||r(!1),e===t?null:a(e)},setGlobalDir:s,initGlobalDir:function(){s("LTR")},getGlobalDir:function(){return o||this.initGlobalDir(),o||r(!1),o}}},function(e,t,n){"use strict";var r=n(34),o=n(60);e.exports=function(e){for(var t=e;t&&t!==r(e).documentElement;){var n=o(t);if(null!=n)return n;t=t.parentNode}return null}},function(e,t,n){"use strict";e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},function(e,t,n){"use strict";e.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}},function(e,t,n){"use strict";function r(e,t){e=o.get(e,t);return"auto"===e||"scroll"===e}var o={get:n(138),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},function(e,t,n){"use strict";var o=n(142),i=n(143);e.exports=function(e){var t=o(e.ownerDocument||e.document),n=(e.Window&&e instanceof e.Window&&(e=t),i(e)),t=e===t?e.ownerDocument.documentElement:e,r=e.scrollWidth-t.clientWidth,e=e.scrollHeight-t.clientHeight;return n.x=Math.max(0,Math.min(n.x,r)),n.y=Math.max(0,Math.min(n.y,e)),n}},function(e,t,n){"use strict";e.exports=function(e){return"handled"===e||!0===e}},function(e,t,n){function o(e){var t;return(s[e]||(t=s[e]={i:e,l:!1,exports:{}},a[e].call(t.exports,t,t.exports,o),t.l=!0,t)).exports}var r,i,a,s;window,e.exports=(r=n(24),i=n(2),s={},o.m=a=[function(e,t){e.exports=r},function(e,t){e.exports=i},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var y=n(1),s=n(0),g=function(e,t,n){var r,e=e.textContent;return""===e.trim()?{chunk:(r=n,{text:" ",inlines:[new s.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:e,inlines:Array(e.length).fill(t),entities:Array(e.length).fill(n),blocks:[]}}},m=function(){return{text:"\n",inlines:[new s.OrderedSet],entities:new Array(1),blocks:[]}},v=function(){return{text:"",inlines:[],entities:[],blocks:[]}},b=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new s.Map({})}]}},_=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new s.Map({})}]}},w=function(e){return{text:"\r ",inlines:[new s.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new s.Map({})}]}},S=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},E=new s.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"]}}),C={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function O(e){return e.style.textAlign?new s.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new s.Map({"margin-left":e.style.marginLeft}):void 0}var x=function(e){var t,n=void 0;return e instanceof HTMLAnchorElement&&(t={},n=e.dataset&&void 0!==e.dataset.mention?(t.url=e.href,t.text=e.innerHTML,t.value=e.dataset.value,y.Entity.__create("MENTION","IMMUTABLE",t)):(t.url=e.getAttribute&&e.getAttribute("href")||e.href,t.title=e.innerHTML,t.targetOption=e.target,y.Entity.__create("LINK","MUTABLE",t))),n},c=(n.d(t,"default",function(){return r})," "),u=new RegExp(" ","g"),k=!0;function r(e,t){t=t,e=e.trim().replace(u,c),e=e,r=null,document.implementation&&document.implementation.createHTMLDocument&&((n=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,r=n.getElementsByTagName("body")[0]);var n,r,i,o,a,e=r?(k=!0,{chunk:function e(t,n,r,o,i,a){var s=t.nodeName.toLowerCase();if(a)if(f=a(s,t))return f=y.Entity.__create(f.type,f.mutability,f.data||{}),{chunk:w(f)};if("#text"===s&&"\n"!==t.textContent)return g(t,n,i);if("br"===s)return{chunk:m()};if("img"===s&&t instanceof HTMLImageElement)return(f={}).src=t.getAttribute&&t.getAttribute("src")||t.src,f.alt=t.alt,f.height=t.style.height,f.width=t.style.width,t.style.float&&(f.alignment=t.style.float),f=y.Entity.__create("IMAGE","MUTABLE",f),{chunk:w(f)};if("video"===s&&t instanceof HTMLVideoElement)return(f={}).src=t.getAttribute&&t.getAttribute("src")||t.src,f.alt=t.alt,f.height=t.style.height,f.width=t.style.width,t.style.float&&(f.alignment=t.style.float),f=y.Entity.__create("VIDEO","MUTABLE",f),{chunk:w(f)};if("iframe"===s&&t instanceof HTMLIFrameElement)return(f={}).src=t.getAttribute&&t.getAttribute("src")||t.src,f.height=t.height,f.width=t.width,f=y.Entity.__create("EMBEDDED_LINK","MUTABLE",f),{chunk:w(f)};var c,u,l,f=function(t,n){var e=E.filter(function(e){return e.element===t&&(!e.wrapper||e.wrapper===n)||e.wrapper===t||e.aliasedElements&&-1<e.aliasedElements.indexOf(t)}).keySeq().toSet().toArray();if(1===e.length)return e[0]}(s,o);f&&("ul"===s||"ol"===s?(o=s,r+=1):("unordered-list-item"!==f&&"ordered-list-item"!==f&&(o="",r=-1),k?(h=b(f,O(t)),k=!1):h=_(f,r,O(t)))),h=h||v(),f=t,c=n,(s=C[s])?l=c.add(s).toOrderedSet():f instanceof HTMLElement&&(u=f,l=(l=c).withMutations(function(e){var t=u.style.color,n=u.style.backgroundColor,r=u.style.fontSize,o=u.style.fontFamily.replace(/^"|"$/g,""),i=u.style.fontWeight,a=u.style.textDecoration,s=u.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),o&&e.add("fontfamily-".concat(o)),"bold"===i&&e.add(C.strong),"underline"===a&&e.add(C.ins),"italic"===s&&e.add(C.em)}).toOrderedSet()),n=l;for(var p=t.firstChild;p;)var d=e(p,n,r,o,x(p)||i,a).chunk,h=S(h,d),p=p.nextSibling;return{chunk:h}}(r,new s.OrderedSet,-1,"",void 0,t).chunk}):null;return e?(i=e.chunk,o=new s.OrderedMap({}),i.entities&&i.entities.forEach(function(e){e&&(o=o.set(e,y.Entity.__get(e)))}),a=0,{contentBlocks:i.text.split("\r").map(function(e,t){var n=a+e.length,r=i&&i.inlines.slice(a,n),o=i&&i.entities.slice(a,n),r=new s.List(r.map(function(e,t){e={style:e,entity:null};return o[t]&&(e.entity=o[t]),y.CharacterMetadata.create(e)}));return a=n,new y.ContentBlock({key:Object(y.genKey)(),type:i&&i.blocks[t]&&i.blocks[t].type||"unstyled",depth:i&&i.blocks[t]&&i.blocks[t].depth,data:i&&i.blocks[t]&&i.blocks[t].data||new s.Map({}),text:e,characterList:r})}),entityMap:o}):null}}],o.c=s,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__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(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=2))},function(e,t,n){"use strict";function o(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}var i=n(25),a=n(12),r=n(18),s=n(13),c=n(30),u=n(31),l=n(14),f=n(56),p=n(16),d=n(6),h=n(58),y=d.List,n=d.Record,g=d.Repeat,m=d.Map,v=d.OrderedMap,d=n({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),b=p("draft_tree_data_support")?s:r,n=function(e){var t;function r(){return e.apply(this,arguments)||this}t=e,(n=r).prototype=Object.create(t.prototype),(n.prototype.constructor=n).__proto__=t;var n=r.prototype;return n.getEntityMap=function(){return c},n.getBlockMap=function(){return this.get("blockMap")},n.getSelectionBefore=function(){return this.get("selectionBefore")},n.getSelectionAfter=function(){return this.get("selectionAfter")},n.getBlockForKey=function(e){return this.getBlockMap().get(e)},n.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},n.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},n.getBlockAfter=function(n){return this.getBlockMap().skipUntil(function(e,t){return t===n}).skip(1).first()},n.getBlockBefore=function(n){return this.getBlockMap().reverse().skipUntil(function(e,t){return t===n}).skip(1).first()},n.getBlocksAsArray=function(){return this.getBlockMap().toArray()},n.getFirstBlock=function(){return this.getBlockMap().first()},n.getLastBlock=function(){return this.getBlockMap().last()},n.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},n.getLastCreatedEntityKey=function(){return c.__getLastCreatedEntityKey()},n.hasText=function(){var e=this.getBlockMap();return 1<e.size||0<escape(e.first().getText()).replace(/%u200B/g,"").length},n.createEntity=function(e,t,n){return c.__create(e,t,n),this},n.mergeEntityData=function(e,t){return c.__mergeData(e,t),this},n.replaceEntityData=function(e,t){return c.__replaceData(e,t),this},n.addEntity=function(e){return c.__add(e),this},n.getEntity=function(e){return c.__get(e)},n.getAllEntities=function(){return c.__getAll()},n.loadWithEntities=function(e){return c.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var e=Array.isArray(e)?e:e.contentBlocks,e=i.createFromArray(e),n=e.isEmpty()?new u:u.createEmpty(e.first().getKey());return new r({blockMap:e,entityMap:t||c,selectionBefore:n,selectionAfter:n})},r.createFromText=function(e){e=e.split(1<arguments.length&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g).map(function(e){return e=h(e),new b({key:l(),text:e,type:"unstyled",characterList:y(g(a.EMPTY,e.length))})});return r.createFromBlockArray(e)},r.fromJS=function(e){return new r(o({},e,{blockMap:v(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new u(e.selectionBefore),selectionAfter:new u(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new b(o({},e,{data:m(e.data),characterList:null!=t?y((Array.isArray(t)?t:f(t)).map(function(e){return a.fromJS(e)})):void 0}))},r}(d);e.exports=n},function(e,t,n){"use strict";var r=n(32),o=n(7),n="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",i="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",a=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+n+i+"]"),s=new RegExp("["+n+i+"]");function c(e){e=a.exec(e);return null==e?null:e[0]}function u(e){e=c(e);return null==e?r.NEUTRAL:s.exec(e)?r.RTL:r.LTR}function l(e,t){return t=t||r.NEUTRAL,!e.length||(e=u(e))===r.NEUTRAL?t:e}function f(e,t){return t=t||r.getGlobalDir(),r.isStrong(t)||o(!1),l(e,t)}e.exports={firstStrongChar:c,firstStrongCharDir:u,resolveBlockDir:l,getDirection:f,isDirectionLTR:function(e,t){return f(e,t)===r.LTR},isDirectionRTL:function(e,t){return f(e,t)===r.RTL}}},function(e,t,n){"use strict";var r=n(0),o=n(19),n=(0,n(6).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:r.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:r.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:r.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=n},function(e,t,n){"use strict";var r=n(68).notEmptyKey;function i(e,t){return r(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n,r,o;return t.isCollapsed()?(n=t.getAnchorKey(),!(0<(r=t.getAnchorOffset()))||(o=e.getBlockForKey(n).getEntityAt(r-1))!==e.getBlockForKey(n).getEntityAt(r)?null:i(e.getEntityMap(),o)):(n=t.getStartKey(),o=(r=t.getStartOffset())===(t=e.getBlockForKey(n)).getLength()?null:t.getEntityAt(r),i(e.getEntityMap(),o))}},function(e,t,n){"use strict";var r=n(136);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";function r(e,t){return t&&(e===t.documentElement||e===t.body)}e.exports={getTop:function(e){var t=e.ownerDocument;return r(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;r(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return r(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;r(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}}},function(e,t,n){"use strict";n(47);e.exports=function(e,t){var n,r=e.getSelection(),e=e.getCurrentContent(),o=r.getStartKey(),i=r.getStartOffset(),a=o,s=0;return i<t?null==(n=e.getKeyBefore(o))?a=o:s=e.getBlockForKey(a=n).getText().length:s=i-t,r.merge({focusKey:a,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";n=n(77);e.exports=n},function(e,t,n){"use strict";var r=n(11),n=n(165),o=r.isPlatform("Mac OS X"),i={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return o&&e.altKey},usesMacOSHeuristics:function(){return o},hasCommandModifier:function(e){return o?!!e.metaKey&&!e.altKey:i.isCtrlKeyCommand(e)},isSoftNewlineEvent:n};e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeDecorator=t.renderNode=t.RawParser=t.createBlockRenderer=t.createStylesRenderer=void 0;var r=s(n(89)),o=s(n(217)),i=n(218),a=s(n(91)),n=s(n(228));function s(e){return e&&e.__esModule?e:{default:e}}t.createStylesRenderer=o.default,t.createBlockRenderer=n.default,t.RawParser=r.default,t.renderNode=i.renderNode,t.CompositeDecorator=a.default,t.default=i.render},function(e,t,n){"use strict";e.exports=n(229)},function(e,t,n){"use strict";var r=n(13),f=n(14),o=n(6).OrderedMap;e.exports=function(e){var u,l;return e.first()instanceof r?(l={},o(e.withMutations(function(c){c.forEach(function(e,t){var n=e.getKey(),r=e.getNextSiblingKey(),o=e.getPrevSiblingKey(),i=e.getChildKeys(),a=e.getParentKey(),s=f();l[n]=s,r&&(c.get(r)?c.setIn([r,"prevSibling"],s):c.setIn([n,"nextSibling"],null)),o&&(c.get(o)?c.setIn([o,"nextSibling"],s):c.setIn([n,"prevSibling"],null)),a&&c.get(a)?(r=c.get(a).getChildKeys(),c.setIn([a,"children"],r.set(r.indexOf(e.getKey()),s))):(c.setIn([n,"parent"],null),u&&(c.setIn([u.getKey(),"nextSibling"],s),c.setIn([n,"prevSibling"],l[u.getKey()])),u=c.get(n)),i.forEach(function(t){c.get(t)?c.setIn([t,"parent"],s):c.setIn([n,"children"],e.getChildKeys().filter(function(e){return e!==t}))})})}).toArray().map(function(e){return[l[e.getKey()],e.set("key",l[e.getKey()])]}))):o(e.toArray().map(function(e){var t=f();return[t,e.set("key",t)]}))}},function(e,t,n){"use strict";var p=n(12),d=n(26),h=n(7);function l(e,t,n){var r,o,i,a=t.getCharacterList(),s=0<n?a.get(n-1):void 0,c=n<a.count()?a.get(n):void 0,s=s?s.getEntity():void 0,c=c?c.getEntity():void 0;if(c&&c===s&&"MUTABLE"!==e.__get(c).getMutability()){r=c,o=n,d(a,function(e,t){return e.getEntity()===t.getEntity()},function(e){return e.getEntity()===r},function(e,t){e<=o&&o<=t&&(i={start:e,end:t})}),"object"!=typeof i&&h(!1);for(var u,s=i,l=s.start,f=s.end;l<f;)u=a.get(l),a=a.set(l,p.applyEntity(u,null)),l++;return t.set("characterList",a)}return t}e.exports=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),s=((a=l(r,s,a))!==s&&(o[i]=a),t.getEndKey()),c=t.getEndOffset(),u=n.get(s);return(r=l(r,u=i===s?a:u,c))!==u&&(o[s]=r),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=e;return n===r.count()?t.forEach(function(e){r=r.push(e)}):0===n?t.reverse().forEach(function(e){r=r.unshift(e)}):(e=r.slice(0,n),n=r.slice(n),r=e.concat(t,n).toList()),r}},function(e,t,n){"use strict";var a=n(6).Map;e.exports=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),n=i.toSeq().skipUntil(function(e,t){return t===r}).takeUntil(function(e,t){return t===o}).concat(a([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(n),selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var i=n(13);e.exports=function(e,t){if(!(e instanceof i))return null;var n=e.getNextSiblingKey();if(n)return n;n=e.getParentKey();if(!n)return null;for(var r=t.get(n);r&&!r.getNextSiblingKey();)var o=r.getParentKey(),r=o?t.get(o):null;return r?r.getNextSiblingKey():null}},function(e,t,n){"use strict";e.exports=function(t){return Object.keys(t).map(function(e){return t[e]})}},function(e,t,n){"use strict";n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(r=n).prototype=Object.create(t.prototype),(r.prototype.constructor=r).__proto__=t;var r=n.prototype;return r.getType=function(){return this.get("type")},r.getMutability=function(){return this.get("mutability")},r.getData=function(){return this.get("data")},n}((0,n(6).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=n},function(e,t,n){"use strict";var r=new RegExp("\r","g");e.exports=function(e){return e.replace(r,"")}},function(e,t,n){"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},function(e,t,n){"use strict";var i=n(20);e.exports=function e(t){if(i(t)){var n=t;if(t=n.getAttribute("data-offset-key"))return t;for(var r=0;r<n.childNodes.length;r++){var o=e(n.childNodes[r]);if(o)return o}}return null}},function(e,t,n){"use strict";e.exports=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}},function(e,t,n){"use strict";var o=n(63),i=n(8),a=n(64),s=n(65);e.exports=function(e){var t,n,r;e._blockSelectEvents||e._latestEditorState!==e.props.editorState?e._blockSelectEvents&&(t=e.props.editorState.getSelection(),o.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})):(t=e.props.editorState,(r=(n=s(t,a(e))).selectionState)!==t.getSelection()&&(t=n.needsRecovery?i.forceSelection(t,r):i.acceptSelection(t,r),e.update(t)))}},function(e,t,n){"use strict";e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},function(e,t,n){"use strict";var r=n(7),o=n(27);e.exports=function(e){return(e=e.editorContainer)||r(!1),o(e.firstChild)||r(!1),e.firstChild}},function(e,t,n){"use strict";var s=n(66);e.exports=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:s(e,t,r,o,i,a)}},function(e,t,n){"use strict";var f=n(33),i=n(60),p=n(67),a=n(7),s=n(20),d=n(10);function h(e,t,n){var r,o=f(t);return null!=o||e&&(e===t||e.firstChild===t)||a(!1),e===t&&(t=t.firstChild,s(t)||a(!1),"true"!==(t=t).getAttribute("data-contents")&&a(!1),0<n&&(n=t.childNodes.length)),0===n?{key:null!=o?o:(e=function(e){for(;e.firstChild&&(s(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||i(e.firstChild));)e=e.firstChild;return e}(t),d(i(e))),offset:0}:(e=t.childNodes[n-1],n=t=null,n=i(e)?(r=function(e){for(;e.lastChild&&(s(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||i(e.lastChild));)e=e.lastChild;return e}(e),t=d(i(r)),c(r)):(t=d(o),c(e)),{key:t,offset:n})}function c(e){e=e.textContent;return"\n"===e?0:e.length}e.exports=function(e,t,n,r,o,i){var a,s,c,u=n.nodeType===Node.TEXT_NODE,l=o.nodeType===Node.TEXT_NODE;return u&&l?{selectionState:p(e,d(f(n)),r,d(f(o)),i),needsRecovery:!1}:(c=!(s=a=null),u?(a={key:d(f(n)),offset:r},s=h(t,o,i)):l?(s={key:d(f(o)),offset:i},a=h(t,n,r)):(a=h(t,n,r),s=h(t,o,i),n===o&&r===i&&(c=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:p(e,a.key,a.offset,s.key,s.offset),needsRecovery:c})}},function(e,t,n){"use strict";var d=n(15),h=n(10);e.exports=function(e,t,n,r,o){var i,a,s,c,u,l,f,p=h(e.getSelection());return!(t&&r&&(t=d.decode(t),i=t.blockKey,l=(l=e.getBlockTree(i))&&l.getIn([t.decoratorKey,"leaves",t.leafKey]),t=d.decode(r),a=t.blockKey,r=(r=e.getBlockTree(a))&&r.getIn([t.decoratorKey,"leaves",t.leafKey]),l&&r&&(t=l.get("start"),s=r.get("start"),c=l?t+n:null,u=r?s+o:null,p.getAnchorKey()!==i||p.getAnchorOffset()!==c||p.getFocusKey()!==a||p.getFocusOffset()!==u)))?p:(f=!1,f=i===a?(l=l.get("end"),r=r.get("end"),s===t&&r===l?o<n:s<t):e.getCurrentContent().getBlockMap().keySeq().skipUntil(function(e){return e===i||e===a}).first()===a,p.merge({anchorKey:i,anchorOffset:c,focusKey:a,focusOffset:u,isBackward:f}))}},function(e,t,n){"use strict";e.exports={notEmptyKey:function(e){return null!=e&&""!=e}}},function(e,t,n){"use strict";var c=n(17);var u=n(134),l=n(0),f=n(7),p=n(70),d=n(135).setDraftEditorSelection,n=function(s){var e;function t(){for(var e,t,n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=s.call.apply(s,[this].concat(i))||this,t=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),r=void 0,(n="leaf")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}e=s,(n=t).prototype=Object.create(e.prototype),(n.prototype.constructor=n).__proto__=e;var n=t.prototype;return n._setSelection=function(){var e,t,n,r,o,i,a=this.props.selection;null!=a&&a.getHasFocus()&&(t=(n=this.props).block,e=n.start,n=n.text,t=t.getKey(),n=e+n.length,a.hasEdgeWithin(t,e,n)&&((r=this.leaf)||f(!1),(o=r.firstChild)||f(!1),o.nodeType===Node.TEXT_NODE?i=o:p(o)?i=r:(i=o.firstChild)||f(!1),d(a,i,t,e,n)))},n.shouldComponentUpdate=function(e){var t=this.leaf;return t||f(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},n.componentDidUpdate=function(){this._setSelection()},n.componentDidMount=function(){this._setSelection()},n.render=function(){var t=this,e=this.props.block,n=this.props.text,r=(n.endsWith("\n")&&this.props.isLast&&(n+="\n"),this.props),o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,r=r.styleSet,s=r.reduce(function(e,t){var n={},t=o[t];return void 0!==t&&e.textDecoration!==t.textDecoration&&(n.textDecoration=[e.textDecoration,t.textDecoration].join(" ").trim()),c(e,t,n)},{});return i&&(i=i(r,e),s=c(s,i)),l.createElement("span",{"data-offset-key":a,ref:function(e){return t.leaf=e},style:s},l.createElement(u,null,n))},t}(l.Component);e.exports=n},function(e,t,n){"use strict";var r=n(20);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"BR"===e.nodeName)}},function(e,t,n){"use strict";e.exports={initODS:function(){},handleExtensionCausedError:function(){}}},function(e,t,n){"use strict";e.exports=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}},function(e,t,n){"use strict";var r=n(141);e.exports=function(e){return{x:(e=r(e)).left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}},function(e,t,n){"use strict";function r(){var e;return(e=!(e=document.documentElement?document.documentElement.clientWidth:e)&&document.body?document.body.clientWidth:e)||0}function o(){var e;return(e=!(e=document.documentElement?document.documentElement.clientHeight:e)&&document.body?document.body.clientHeight:e)||0}function i(){return{width:window.innerWidth||r(),height:window.innerHeight||o()}}i.withoutScrollbars=function(){return{width:r(),height:o()}},e.exports=i},function(e,t,n){"use strict";var r=n(17);function m(){return(m=r||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function o(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}var v=n(69),b=n(15),_=n(0),i=n(45),a=n(36),w=n(41),S=n(32),c=n(19),u=n(73),l=n(37),f=n(74),p=n(7),d=n(27),E=n(10),n=function(s){var e;function t(){for(var e,t,n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=s.call.apply(s,[this].concat(i))||this,t=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),r=void 0,(n="_node")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}e=s,(n=t).prototype=Object.create(e.prototype),(n.prototype.constructor=n).__proto__=e;var n=t.prototype;return n.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||o(e.selection,e.block.getKey())&&e.forceSelection},n.componentDidMount=function(){var e,t,n,r;this.props.preventScroll||(t=(e=this.props.selection).getEndKey(),e.getHasFocus()&&t===this.props.block.getKey()&&null!=(e=this._node)&&(t=a.getScrollParent(e),n=l(t),t===window?0<(r=(r=u(e)).y+r.height-f().height)&&window.scrollTo(n.x,n.y+r+10):(d(e)||p(!1),0<(r=e.offsetHeight+e.offsetTop-(t.offsetTop+t.offsetHeight+n.y))&&i.setTop(t,i.getTop(t)+r+10))))},n._renderChildren=function(){var f=this,p=this.props.block,d=p.getKey(),h=p.getText(),y=this.props.tree.size-1,g=o(this.props.selection,d);return this.props.tree.map(function(e,o){var i,t,n,r,a,s,c,u,l=e.get("leaves");return 0===l.size?null:(i=l.size-1,t=l.map(function(e,t){var n=b.encode(d,o,t),r=e.get("start"),e=e.get("end");return _.createElement(v,{key:n,offsetKey:n,block:p,start:r,selection:g?f.props.selection:null,forceSelection:f.props.forceSelection,text:h.slice(r,e),styleSet:p.getInlineStyleAt(r),customStyleMap:f.props.customStyleMap,customStyleFn:f.props.customStyleFn,isLast:o===y&&t===i})}).toArray(),null!=(a=e.get("decoratorKey"))&&f.props.decorator&&(n=(r=E(f.props.decorator)).getComponentForKey(a))?(r=r.getPropsForKey(a),a=b.encode(d,o,0),s=l.first().get("start"),l=l.last().get("end"),u=h.slice(s,l),e=p.getEntityAt(e.get("start")),c=S.getHTMLDirIfDifferent(w.getDirection(u),f.props.direction),u={contentState:f.props.contentState,decoratedText:u,dir:c,start:s,end:l,blockKey:d,entityKey:e,offsetKey:a},_.createElement(n,m({},r,u,{key:a}),t)):t)}).toArray()},n.render=function(){var t=this,e=this.props,n=e.direction,e=e.offsetKey,n=c({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return _.createElement("div",{"data-offset-key":e,className:n,ref:function(e){return t._node=e}},this._renderChildren())},t}(_.Component);e.exports=n},function(e,t,n){"use strict";var o=n(147),r=n(148),i=n(77),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function c(e){if("file"==e.kind)return e.getAsFile()}e.exports=function(){function e(e){this.data=e,this.types=e.types?r(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return s[e]})},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(a,"\n"):null},t.getHTML=function(){if(this.data.getData)return this.types.length?-1!=this.types.indexOf("text/html")?this.data.getData("text/html"):void 0:this.data.getData("Text")},t.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},t.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},t.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(!e)for(var t=this.getFiles(),n=0;n<t.length;n++){var r=t[n].type;if(!o.isImage(r))return!1}return!0},t.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},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(c).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return 0<this.getFiles().length},e}()},function(e,t,n){"use strict";function r(e){return function(){return e}}function o(){}o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";!function(c){var u=n(7),l=/\.textClipping$/,f={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(o,i){var a=0,s=[];o.forEach(function(e){var t,n,r;e=e,t=function(e){a++,e&&s.push(e.slice(0,5e3)),a==o.length&&i(s.join("\r"))},c.FileReader&&(!e.type||e.type in f)?""===e.type?(n="",l.test(e.name)&&(n=e.name.replace(l,"")),t(n)):((r=new FileReader).onload=function(){var e=r.result;"string"!=typeof e&&u(!1),t(e)},r.onerror=function(){t("")},r.readAsText(e)):t("")})}}.call(this,n(23))},function(e,t,n){"use strict";var r=n(29);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},function(e,t,n){"use strict";var r=n(8),o=n(21),i=n(46),a=n(28);e.exports=function(e){var t,n=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),t=t.getAnchorOffset(),n=n.getBlockForKey(r).getText()[t-1];return i(e,n?o.getUTF16Length(n,0):1)},"backward");return n===e.getCurrentContent()?e:(t=e.getSelection(),r.push(e,n.set("selectionBefore",t),t.isCollapsed()?"backspace-character":"remove-range"))}},function(e,t,n){"use strict";var r=n(11),a=n(7),n=r.isBrowser("Chrome");e.exports=n?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer,i=(o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0),Array.from(t.getClientRects()));if(n.push(i),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}a(!1)}:function(e){return Array.from(e.getClientRects())}},function(e,t,n){"use strict";var n="\\s|(?![_])"+n(170).getPunctuation(),r=new RegExp("^(?:"+n+")*(?:['‘’]|(?!"+n+").)*(?:(?!"+n+").)"),o=new RegExp("(?:(?!"+n+").)(?:['‘’]|(?!"+n+").)*(?:"+n+")*$");function i(e,t){t=(t?o:r).exec(e);return t?t[0]:e}e.exports={getBackward:function(e){return i(e,!0)},getForward:function(e){return i(e,!1)}}},function(e,t,n){"use strict";n(47);e.exports=function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getStartOffset(),e=e.getCurrentContent(),i=r,e=t>e.getBlockForKey(r).getText().length-o?(i=e.getKeyAfter(r),0):o+t;return n.merge({focusKey:i,focusOffset:e})}},function(e,R,t){"use strict";function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);(r="function"==typeof Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})):r).forEach(function(e){o(t,e,n[e])})}return t}function o(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function f(e){return"ul"===e||"ol"===e}var r=t(12),a=t(18),s=t(13),c=t(42),n=t(30),p=t(180),u=t(19),d=t(14),l=t(85),h=t(16),y=t(6),g=y.List,m=y.Map,v=y.OrderedSet,b=t(181),_=t(70),w=t(27),S=t(182),E=h("draft_tree_data_support"),C=new RegExp("\r","g"),O=new RegExp("\n","g"),x=new RegExp("^\n","g"),k=new RegExp(" ","g"),D=new RegExp(" ?","g"),j=new RegExp("​?","g"),T=["bold","bolder","500","600","700","800","900"],I=["light","lighter","normal","100","200","300","400"],M=["className","href","rel","target","title"],N=["alt","className","height","src","width"],A=(o(y={},u("public/DraftStyleDefault/depth0"),0),o(y,u("public/DraftStyleDefault/depth1"),1),o(y,u("public/DraftStyleDefault/depth2"),2),o(y,u("public/DraftStyleDefault/depth3"),3),o(y,u("public/DraftStyleDefault/depth4"),4),y),P=m({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),L=function(){function e(e,t){o(this,"characterList",g()),o(this,"currentBlockType","unstyled"),o(this,"currentDepth",0),o(this,"currentEntity",null),o(this,"currentText",""),o(this,"wrapper",null),o(this,"blockConfigs",[]),o(this,"contentBlocks",[]),o(this,"entityMap",n),o(this,"blockTypeMap",void 0),o(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=g(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=n,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],v())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(E?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=i({key:e.key||d(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:g(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=g(),this.currentBlockType="unstyled",this.currentText="",e},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o,i,a,s,c,u=e[r],l=u.nodeName.toLowerCase();"body"===l||f(l)?(this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig()),o=this.currentDepth,i=this.wrapper,f(l)&&(this.wrapper=l,f(i)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(u.childNodes),t)),this.currentDepth=o,this.wrapper=i):void 0!==(o=this.blockTypeMap.get(l))?(this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig()),i=this.currentDepth,c=this.wrapper,this.wrapper="pre"===l?"pre":this.wrapper,"string"!=typeof o&&(o=this.disambiguate(l,this.wrapper)||o[0]||"unstyled"),E||!w(u)||"unordered-list-item"!==o&&"ordered-list-item"!==o||(this.currentDepth=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(A).some(function(e){t.classList.contains(e)&&(n=A[e])}),n}(u,this.currentDepth)),a=d(),s=this._toBlockConfigs(Array.from(u.childNodes),t),this._trimCurrentText(),n.push(this._makeBlockConfig({key:a,childConfigs:s,type:o})),this.currentDepth=i,this.wrapper=c):"#text"===l?this._addTextNode(u,t):"br"===l?this._addBreakNode(u,t):S(a=u)&&(a=a).attributes.getNamedItem("src")&&a.attributes.getNamedItem("src").value?this._addImgNode(u,t):!function(e){if(!b(e))return!1;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(e){return!1}}(u)?(s=t,s=function(e,t){var n,r,o;return w(e)?(n=e.style.fontWeight,r=e.style.fontStyle,o=e.style.textDecoration,t.withMutations(function(e){0<=T.indexOf(n)?e.add("BOLD"):0<=I.indexOf(n)&&e.remove("BOLD"),"italic"===r?e.add("ITALIC"):"normal"===r&&e.remove("ITALIC"),"underline"===o&&e.add("UNDERLINE"),"line-through"===o&&e.add("STRIKETHROUGH"),"none"===o&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))})):t}(u,s=P.has(l)?s.add(P.get(l)):s),null!=(c=function(e){if(w(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null}(u))&&(s=s.add(c)),n.push.apply(n,this._toBlockConfigs(Array.from(u.childNodes),s))):this._addAnchorNode(u,n,t)}return n},t._appendText=function(e,t){this.currentText+=e;var n,t=r.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(t))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry(function(e){return null!==e.getEntity()}),t=void 0!==r?Math.min(t,r[0]):t;(n=void 0!==(r=this.characterList.reverse().findEntry(function(e){return null!==e.getEntity()}))?Math.max(n,e-r[0]):n)<t?(this.currentText="",this.characterList=g()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){e=e.textContent;""===e.trim()&&"pre"!==this.wrapper&&(e=" "),"pre"!==this.wrapper&&(e=(e=e.replace(x,"")).replace(O," ")),this._appendText(e,t)},t._addBreakNode=function(e,t){_(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){var n,r;S(e)&&(n=e,r={},N.forEach(function(e){var t=n.getAttribute(e);t&&(r[e]=t)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),h("draftjs_fix_paste_for_img")&&"presentation"===n.getAttribute("role")||this._appendText("📷",t),this.currentEntity=null)},t._addAnchorNode=function(e,t,n){var r,o;b(e)&&(r=e,o={},M.forEach(function(e){var t=r.getAttribute(e);t&&(o[e]=t)}),o.url=new p(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null)},t._toContentBlocks=function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=0<r?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=g(o.childConfigs.map(function(e){return e.key})),this.contentBlocks.push(new s(i({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return g(e).flatMap(function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)})},t._toFlatContentBlocks=function(e){var r=this;this._hoistContainersInBlockConfigs(e).forEach(function(e){var t=r._extractTextFromBlockConfigs(e.childConfigs),n=t.text,t=t.characterList;r.contentBlocks.push(new a(i({},e,{text:e.text+n,characterList:e.characterList.concat(t)})))})},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=g(),o=0;o<=t;o++){var i=e[o],i=(n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last())),this._extractTextFromBlockConfigs(i.childConfigs));n+=i.text,r=r.concat(i.characterList)}return{text:n,characterList:r}},e}();e.exports=function(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:l,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:c,t=t(e=e.trim().replace(C,"").replace(k," ").replace(D,"").replace(j,""));return t?(r={},n.mapKeys(function(t,e){var n=[e.element];void 0!==e.aliasedElements&&n.push.apply(n,e.aliasedElements),n.forEach(function(e){void 0===r[e]?r[e]=t:"string"==typeof r[e]?r[e]=[r[e],t]:r[e].push(t)})}),e=m(r),new L(e,function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}).addDOMNode(t).getContentBlocks()):null}},function(e,t,n){"use strict";var r=n(11),o=n(7),i=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t,n){"use strict";var c=n(9),u=n(8),s=n(183),l=n(10),o={currentBlockContainsLink:function(e){var t=e.getSelection(),e=e.getCurrentContent(),n=e.getEntityMap();return e.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){e=e.getEntity();return!!e&&"LINK"===n.__get(e).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return o.toggleInlineStyle(e,"BOLD");case"italic":return o.toggleInlineStyle(e,"ITALIC");case"underline":return o.toggleInlineStyle(e,"UNDERLINE");case"code":return o.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return o.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return o.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=c.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),e=u.push(e,t,"insert-characters");return u.forceSelection(e,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),r=n.getBlockBefore(r);if(r&&"atomic"===r.getType()){r=n.getBlockMap().delete(r.getKey()),r=n.merge({blockMap:r,selectionAfter:t});if(r!==n)return u.push(e,r,"remove-range")}t=o.tryToRemoveBlockStyle(e);return t?u.push(e,t,"change-block-type"):null},onDelete:function(e){var t,n,r,o=e.getSelection();return o.isCollapsed()&&(t=e.getCurrentContent(),r=o.getStartKey(),n=t.getBlockForKey(r).getLength(),!(o.getStartOffset()<n)&&(n=t.getBlockAfter(r))&&"atomic"===n.getType()&&(r=o.merge({focusKey:n.getKey(),focusOffset:n.getLength()}),(o=c.removeRange(t,r,"forward"))!==t))?u.push(e,o,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),o=i.getBlockForKey(o),a=o.getType();if("unordered-list-item"!==a&&"ordered-list-item"!==a)return t;e.preventDefault();a=o.getDepth();return e.shiftKey||a!==n?(o=s(i,r,e.shiftKey?-1:1,n),u.push(t,o,"adjust-depth")):t},toggleBlockType:function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getEndKey(),a=e.getCurrentContent(),s=r;return o!==i&&0===r.getEndOffset()&&(n=l(a.getBlockBefore(i)),i=n.getKey(),s=s.merge({anchorKey:o,anchorOffset:r.getStartOffset(),focusKey:i,focusOffset:n.getLength(),isBackward:!1})),a.getBlockMap().skipWhile(function(e,t){return t!==o}).reverse().skipWhile(function(e,t){return t!==i}).some(function(e){return"atomic"===e.getType()})?e:(r=a.getBlockForKey(o).getType()===t?"unstyled":t,u.push(e,c.setBlockType(a,s,r),"change-block-type"))},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?o.toggleBlockType(e,"code-block"):o.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n,r=e.getSelection(),o=e.getCurrentInlineStyle();return r.isCollapsed()?u.setInlineStyleOverride(e,o.has(t)?o.remove(t):o.add(t)):(n=e.getCurrentContent(),o=o.has(t)?c.removeInlineStyle(n,r,t):c.applyInlineStyle(n,r,t),u.push(e,o,"change-inline-style"))},toggleLink:function(e,t,n){t=c.applyEntity(e.getCurrentContent(),t,n);return u.push(e,t,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var n=t.getAnchorKey(),e=e.getCurrentContent(),r=e.getBlockForKey(n).getType(),n=e.getBlockBefore(n);if("code-block"===r&&n&&"code-block"===n.getType()&&0!==n.getLength())return null;if("unstyled"!==r)return c.setBlockType(e,t,"unstyled")}return null}};e.exports=o},function(e,t,n){"use strict";var r=n(48),o=n(35),n=n(11),i=n.isPlatform("Mac OS X"),a=i&&n.isBrowser("Firefox < 29"),s=r.hasCommandModifier,c=r.isCtrlKeyCommand;function u(e){return i&&e.altKey||c(e)}e.exports=function(e){switch(e.keyCode){case 66:return s(e)?"bold":null;case 68:return c(e)?"delete":null;case 72:return c(e)?"backspace":null;case 73:return s(e)?"italic":null;case 74:return s(e)?"code":null;case 75:return i&&c(e)?"secondary-cut":null;case 77:case 79:return c(e)?"split-block":null;case 84:return i&&c(e)?"transpose-characters":null;case 85:return s(e)?"underline":null;case 87:return i&&c(e)?"backspace-word":null;case 89:return c(e)?i?"secondary-paste":"redo":null;case 90:return(s(n=e)?n.shiftKey?"redo":"undo":null)||null;case o.RETURN:return"split-block";case o.DELETE:return n=e,!i&&n.shiftKey?null:u(n)?"delete-word":"delete";case o.BACKSPACE:return s(t=e)&&i?"backspace-to-start-of-line":u(t)?"backspace-word":"backspace";case o.LEFT:return a&&s(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return a&&s(e)?"move-selection-to-end-of-block":null;default:return null}var t,n}},function(e,t,n){"use strict";e.exports={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=i(n(90)),c=i(n(215));function i(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function l(e,t,n){return a.default.ucs2.encode(e.slice(t,n))}function s(t,e){return e.forEach(function(e){t.push(e.offset),t.push(e.offset+e.length)}),t}r(f,[{key:"relevantStyles",value:function(t){return this.ranges.filter(function(e){return t>=e.offset&&t<e.offset+e.length}).map(function(e){return e.style})}},{key:"nodeIterator",value:function(o,e,i){var a=this,s=this.relevantIndexes.slice(this.relevantIndexes.indexOf(e),this.relevantIndexes.indexOf(i));return s.forEach(function(e,t){var n=a.relevantStyles(e),r=s[t+1]?s[t+1]-e:1,r=l(a.textArray,e,e+r);o.pushContent(r,n,a.flat),!s[t+1]&&e<i&&o.pushContent(l(a.textArray,e+1,i),a.relevantStyles(i-1),a.flat)}),o}},{key:"parse",value:function(e){var t=this,n=e.text,r=e.inlineStyleRanges,o=e.entityRanges,i=e.decoratorRanges,i=void 0===i?[]:i;this.textArray=a.default.ucs2.decode(n),this.ranges=r,this.iterator=0,this.relevantIndexes=function(e,t,n,r){var n=2<arguments.length&&void 0!==n?n:[],r=3<arguments.length&&void 0!==r?r:[],o=s(o=[],t);return o=s(o,n),(o=s(o,r)).push(0),o.push(e.length),o.filter(function(e,t,n){return n.indexOf(e)===t}).sort(function(e,t){return e-t})}(n,r,o,i);n=function(e,t,n,r){var t=1<arguments.length&&void 0!==t?t:[],o=n,i=r,a=0,n=[].concat(u(e),u(t)).sort(function(e,t){return e.offset-t.offset}),s=[];return n.length<1?s.push(new c.default({block:i,start:0,end:o.length})):(n.forEach(function(e){e.offset>a&&s.push(new c.default({block:i,start:a,end:e.offset})),s.push(new c.default({block:i,entity:e.key,decorator:e.component,decoratorProps:e.decoratorProps,decoratedText:e.component?l(o,e.offset,e.offset+e.length):void 0,start:e.offset,end:e.offset+e.length,contentState:e.contentState})),a=e.offset+e.length}),a<o.length&&s.push(new c.default({block:i,start:a,end:o.length}))),s}(o,i,this.textArray,e).map(function(e){return t.nodeIterator(e,e.start,e.end)});return new c.default({block:e,content:n})}}]);n=f;function f(e){e=e.flat,e=void 0!==e&&e;if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");this.flat=e}t.default=n},function(e,y,O){!function(e,t){var n,g,m,v,o,i,r,a,s,c,u,b,_;/*! https://mths.be/punycode v1.4.1 by @mathias */function w(e){throw new RangeError(c[e])}function l(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function f(e,t){var n=e.split("@"),r="",n=(1<n.length&&(r=n[0]+"@",e=n[1]),(e=e.replace(s,".")).split("."));return r+l(n,t).join(".")}function S(e){for(var t,n,r=[],o=0,i=e.length;o<i;)55296<=(t=e.charCodeAt(o++))&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function h(e){return l(e,function(e){var t="";return 65535<e&&(t+=_((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=_(e)}).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,n){var r=0;for(e=n?b(e/i):e>>1,e+=b(e/t);u*v>>1<e;r+=m)e=b(e/u);return b(r+(u+1)*e/(e+o))}function p(e){var t,n,r,o,i,a,s,c=[],u=e.length,l=0,f=128,p=72,d=e.lastIndexOf("-");for(d<0&&(d=0),n=0;n<d;++n)128<=e.charCodeAt(n)&&w("not-basic"),c.push(e.charCodeAt(n));for(r=0<d?d+1:0;r<u;){for(o=l,i=1,a=m;u<=r&&w("invalid-input"),s=e.charCodeAt(r++),(m<=(s=s-48<10?s-22:s-65<26?s-65:s-97<26?s-97:m)||s>b((g-l)/i))&&w("overflow"),l+=s*i,!(s<(s=a<=p?1:p+v<=a?v:a-p));a+=m)i>b(g/(s=m-s))&&w("overflow"),i*=s;p=C(l-o,t=c.length+1,0==o),b(l/t)>g-f&&w("overflow"),f+=b(l/t),l%=t,c.splice(l++,0,f)}return h(c)}function d(e){for(var t,n,r,o,i,a,s,c,u,l,f=[],p=(e=S(e)).length,d=128,h=72,y=t=0;y<p;++y)(s=e[y])<128&&f.push(_(s));for(n=r=f.length,r&&f.push("-");n<p;){for(o=g,y=0;y<p;++y)d<=(s=e[y])&&s<o&&(o=s);for(o-d>b((g-t)/(c=n+1))&&w("overflow"),t+=(o-d)*c,d=o,y=0;y<p;++y)if((s=e[y])<d&&++t>g&&w("overflow"),s==d){for(i=t,a=m;!(i<(u=a<=h?1:h+v<=a?v:a-h));a+=m)f.push(_(E(u+(l=i-u)%(u=m-u),0))),i=b(l/u);f.push(_(E(i,0))),h=C(t,c,n==r),t=0,++n}++t,++d}return f.join("")}y&&y.nodeType,e&&e.nodeType,(t="object"==typeof t&&t).global!==t&&t.window!==t&&t.self,g=2147483647,v=26,o=38,i=700,r=/^xn--/,a=/[^\x20-\x7E]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},u=(m=36)-1,b=Math.floor,_=String.fromCharCode,n={version:"1.4.1",ucs2:{decode:S,encode:h},decode:p,encode:d,toASCII:function(e){return f(e,function(e){return a.test(e)?"xn--"+d(e):e})},toUnicode:function(e){return f(e,function(e){return r.test(e)?p(e.slice(4).toLowerCase()):e})}},void 0!==(t=function(){return n}.call(y,O,y,e))&&(e.exports=t)}.call(this,O(214)(e),O(23))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0});(function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)})(i,[{key:"getDecorations",value:function(t,n){var c=Array(t.getText().length).fill(null);return this.decorators.forEach(function(e,a){var s=0;(0,e.strategy)(t,function(e,t){if(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return;return 1}(c,e,t)){for(var n=c,r=t,o=a+"."+s,i=e;i<r;i++)n[i]=o;s++}},n)}),c}},{key:"getComponentForKey",value:function(e){e=parseInt(e.split(".")[0],10);return this.decorators[e].component}},{key:"getPropsForKey",value:function(e){e=parseInt(e.split(".")[0],10);return this.decorators[e].props}}]);var o=i;function i(e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.decorators=e.slice()}t.default=o},function(e,t,n){e.exports=function(){"use strict";function o(e,t){if(e)for(var n in e)if({}.hasOwnProperty.call(e,n))t(n,e[n])}function t(e){if(e===undefined||e===null||e.length===0||e.trim().length===0)return true;return false}var n={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 l(e){return e&&n[e]}function f(e){var n="";o(e,function(e,t){if(t)n+="".concat(e,":").concat(t,";")});return n}function i(e,t){var n=[];if(t){var r=0;var o=0;var i=e;var a=t.trigger||"#";var s=t.separator||" ";for(;i.length>0&&o>=0;){if(i[0]===a){o=0;r=0;i=i.substr(a.length)}else{o=i.indexOf(s+a);if(o>=0){i=i.substr(o+(s+a).length);r+=o+s.length}}if(o>=0){var c=i.indexOf(s)>=0?i.indexOf(s):i.length;var u=i.substr(0,c);if(u&&u.length>0)n.push({offset:r,length:u.length+a.length,type:"HASHTAG"});r+=a.length}}}return n}function c(e,t){var n=[];var r=0;var o=e.entityRanges.map(function(e){var t=e.offset,n=e.length,r=e.key;return{offset:t,length:n,key:r,type:"ENTITY"}});o=o.concat(i(e.text,t));o=o.sort(function(e,t){return e.offset-t.offset});o.forEach(function(e){if(e.offset>r)n.push({start:r,end:e.offset});n.push({start:e.offset,end:e.offset+e.length,entityKey:e.key,type:e.type});r=e.offset+e.length});if(r<e.text.length)n.push({start:r,end:e.text.length});return n}function u(e){if(e.entityRanges.length>0&&(t(e.text)||e.type==="atomic"))return true;return false}function p(e){var t=e.text,n=e.inlineStyleRanges;var o={BOLD:new Array(t.length),ITALIC:new Array(t.length),UNDERLINE:new Array(t.length),STRIKETHROUGH:new Array(t.length),CODE:new Array(t.length),SUPERSCRIPT:new Array(t.length),SUBSCRIPT:new Array(t.length),COLOR:new Array(t.length),BGCOLOR:new Array(t.length),FONTSIZE:new Array(t.length),FONTFAMILY:new Array(t.length),length:t.length};if(n&&n.length>0)n.forEach(function(e){var t=e.offset;var n=t+e.length;for(var r=t;r<n;r+=1)if(e.style.indexOf("color-")===0)o.COLOR[r]=e.style.substring(6);else if(e.style.indexOf("bgcolor-")===0)o.BGCOLOR[r]=e.style.substring(8);else if(e.style.indexOf("fontsize-")===0)o.FONTSIZE[r]=e.style.substring(9);else if(e.style.indexOf("fontfamily-")===0)o.FONTFAMILY[r]=e.style.substring(11);else if(o[e.style])o[e.style][r]=true});return o}function d(e,t){var n={};if(e.COLOR[t])n.COLOR=e.COLOR[t];if(e.BGCOLOR[t])n.BGCOLOR=e.BGCOLOR[t];if(e.FONTSIZE[t])n.FONTSIZE=e.FONTSIZE[t];if(e.FONTFAMILY[t])n.FONTFAMILY=e.FONTFAMILY[t];if(e.UNDERLINE[t])n.UNDERLINE=true;if(e.ITALIC[t])n.ITALIC=true;if(e.BOLD[t])n.BOLD=true;if(e.STRIKETHROUGH[t])n.STRIKETHROUGH=true;if(e.CODE[t])n.CODE=true;if(e.SUBSCRIPT[t])n.SUBSCRIPT=true;if(e.SUPERSCRIPT[t])n.SUPERSCRIPT=true;return n}function h(t,e,n){var r=true;if(n>0&&n<t.length)e.forEach(function(e){r=r&&t[e][n]===t[e][n-1]});else r=false;return r}function a(e,t){if(e==="BOLD")return"<strong>".concat(t,"</strong>");if(e==="ITALIC")return"<em>".concat(t,"</em>");if(e==="UNDERLINE")return"<ins>".concat(t,"</ins>");if(e==="STRIKETHROUGH")return"<del>".concat(t,"</del>");if(e==="CODE")return"<code>".concat(t,"</code>");if(e==="SUPERSCRIPT")return"<sup>".concat(t,"</sup>");if(e==="SUBSCRIPT")return"<sub>".concat(t,"</sub>");return t}function s(e){if(e&&e.length>0){var t=e.map(function(e){switch(e){case"\n":return"<br>";case"&":return"&";case"<":return"<";case">":return">";default:return e}});return t.join("")}return""}function y(e,t){if(e&&(e.COLOR||e.BGCOLOR||e.FONTSIZE||e.FONTFAMILY)){var n='style="';if(e.COLOR)n+="color: ".concat(e.COLOR,";");if(e.BGCOLOR)n+="background-color: ".concat(e.BGCOLOR,";");if(e.FONTSIZE)n+="font-size: ".concat(e.FONTSIZE).concat(/^\d+$/.test(e.FONTSIZE)?"px":"",";");if(e.FONTFAMILY)n+="font-family: ".concat(e.FONTFAMILY,";");n+='"';return"<span ".concat(n,">").concat(t,"</span>")}return t}function g(e,t,n,r){var o=e[t];if(typeof r==="function"){var i=r(o,n);if(i)return i}if(o.type==="MENTION")return'<a href="'.concat(o.data.url,'" class="wysiwyg-mention" data-mention data-value="').concat(o.data.value,'">').concat(n,"</a>");if(o.type==="LINK"){var a=o.data.targetOption||"_self";return'<a href="'.concat(o.data.url,'" target="').concat(a,'">').concat(n,"</a>")}if(o.type==="IMAGE"){var s=o.data.alignment;if(s&&s.length)return'<div style="text-align:'.concat(s,';"><img src="').concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/></div>');return'<img src="'.concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/>')}if(o.type==="EMBEDDED_LINK")return'<iframe width="'.concat(o.data.width,'" height="').concat(o.data.height,'" src="').concat(o.data.src,'" frameBorder="0"></iframe>');return n}function m(e,t,n,r){var o=[];var i=Array.from(e.text);if(i.length>0){var a=p(e);var s;for(var c=n;c<r;c+=1)if(c!==n&&h(a,t,c)){s.text.push(i[c]);s.end=c+1}else{s={styles:d(a,c),text:[i[c]],start:c,end:c+1};o.push(s)}}return o}function v(e){if(e){var t=e;for(var n=0;n<t.length;n+=1)if(e[n]===" ")t=t.replace(" "," ");else break;return t}return e}function b(e){if(e){var t=e;for(var n=t.length-1;n>=0;n-=1)if(t[n]===" ")t="".concat(t.substring(0,n)," ").concat(t.substring(n+1));else break;return t}return e}function _(e){var t=e.styles,n=e.text;var r=s(n);o(t,function(e,t){r=a(e,r)});return r}function w(e,t){var n=m(e,["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"],t.start,t.end);var r="";n.forEach(function(e){r+=_(e)});r=y(t.styles,r);return r}function S(t,e,n,r){var o=[];var i=m(t,["COLOR","BGCOLOR","FONTSIZE","FONTFAMILY"],n.start,n.end);i.forEach(function(e){o.push(w(t,e))});var a=o.join("");if(n.type==="ENTITY"){if(n.entityKey!==undefined&&n.entityKey!==null)a=g(e,n.entityKey,a,r)}else if(n.type==="HASHTAG")a='<a href="'.concat(a,'" class="wysiwyg-hashtag">').concat(a,"</a>");return a}function E(r,o,e,i){var a=[];var s=c(r,e);s.forEach(function(e,t){var n=S(r,o,e,i);if(t===0)n=v(n);if(t===s.length-1)n=b(n);a.push(n)});return a.join("")}function C(e,t,n,r,o){var i=[];if(u(e))i.push(g(t,e.entityRanges[0].key,undefined,o));else{var a=l(e.type);if(a){i.push("<".concat(a));var s=f(e.data);if(s)i.push(' style="'.concat(s,'"'));if(r)i.push(' dir = "auto"');i.push(">");i.push(E(e,t,n,o));i.push("</".concat(a,">"))}}i.push("\n");return i.join("")}function O(e){return e==="unordered-list-item"||e==="ordered-list-item"}function x(e,r,o,i,a){var s=[];var c=[];var u;e.forEach(function(e){var t=false;if(!u)s.push("<".concat(l(e.type),">\n"));else if(u.type!==e.type){s.push("</".concat(l(u.type),">\n"));s.push("<".concat(l(e.type),">\n"))}else if(u.depth===e.depth){if(c&&c.length>0){s.push(x(c,r,o,i,a));c=[]}}else{t=true;c.push(e)}if(!t){s.push("<li");var n=f(e.data);if(n)s.push(' style="'.concat(n,'"'));if(i)s.push(' dir = "auto"');s.push(">");s.push(E(e,r,o,a));s.push("</li>\n");u=e}});if(c&&c.length>0)s.push(x(c,r,o,i,a));s.push("</".concat(l(u.type),">\n"));return s.join("")}function e(e,r,o,i){var a=[];if(e){var t=e.blocks,s=e.entityMap;if(t&&t.length>0){var c=[];t.forEach(function(e){if(O(e.type))c.push(e);else{if(c.length>0){var t=x(c,s,r,i);a.push(t);c=[]}var n=C(e,s,r,o,i);a.push(n)}});if(c.length>0){var n=x(c,s,r,o,i);a.push(n);c=[]}}}return a.join("")}return e}()},function(e,t,r){"use strict";function o(n){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(e){n[e]=t[e]})}),n}function s(e){return Object.prototype.toString.call(e)}function c(e){return"[object Function]"===s(e)}function u(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var i={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var a={"http:":{validate:function(e,t,n){e=e.slice(t);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(e)?e.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);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(r)||3<=t&&":"===e[t-3]||3<=t&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length}},"mailto:":{validate:function(e,t,n){e=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(e)?e.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]",f="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(){return function(e,t){t.normalize(e)}}function d(o){var t=o.re=r(204)(o.__opts__),e=o.__tlds__.slice();function n(e){return e.replace("%TLDS%",t.src_tlds)}o.onCompile(),o.__tlds_replaced__||e.push(l),e.push(t.src_xn),t.src_tlds=e.join("|"),t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");var i=[];function a(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}o.__compiled__={},Object.keys(o.__schemas__).forEach(function(e){var t,n,r=o.__schemas__[e];null!==r&&(o.__compiled__[e]=t={validate:null,link:null},"[object Object]"===s(r)?("[object RegExp]"===s(r.validate)?t.validate=(n=r.validate,function(e,t){e=e.slice(t);return n.test(e)?e.match(n)[0].length:0}):c(r.validate)?t.validate=r.validate:a(e,r),c(r.normalize)?t.normalize=r.normalize:r.normalize?a(e,r):t.normalize=p()):"[object String]"===s(r)?i.push(e):a(e,r))}),i.forEach(function(e){o.__compiled__[o.__schemas__[e]]&&(o.__compiled__[e].validate=o.__compiled__[o.__schemas__[e]].validate,o.__compiled__[e].normalize=o.__compiled__[o.__schemas__[e]].normalize)}),o.__compiled__[""]={validate:null,normalize:p()};var e=Object.keys(o.__compiled__).filter(function(e){return 0<e.length&&o.__compiled__[e]}).map(u).join("|");o.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+e+")","i"),o.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+e+")","ig"),o.re.pretest=RegExp("("+o.re.schema_test.source+")|("+o.re.host_fuzzy_test.source+")|@","i"),(e=o).__index__=-1,e.__text_cache__=""}function n(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function h(e,t){t=new n(e,t);return e.__compiled__[t.schema].normalize(t,e),t}function y(e,t){if(!(this instanceof y))return new y(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||i.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=o({},i,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=o({},a,e),this.__compiled__={},this.__tlds__=f,this.__tlds_replaced__=!1,this.re={},d(this)}y.prototype.add=function(e,t){return this.__schemas__[e]=t,d(this),this},y.prototype.set=function(e){return this.__opts__=o(this.__opts__,e),this},y.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i;if(this.re.schema_test.test(e))for((o=this.re.schema_search).lastIndex=0;null!==(t=o.exec(e));)if(n=this.testSchemaAt(e,t[2],o.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(i=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||i<this.__index__)&&null!==(i=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(r=i.index+i[1].length,(this.__index__<0||r<this.__index__)&&(this.__schema__="",this.__index__=r,this.__last_index__=i.index+i[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=e.indexOf("@")&&null!==(i=e.match(this.re.email_fuzzy))&&(r=i.index+i[1].length,i=i.index+i[0].length,(this.__index__<0||r<this.__index__||r===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=r,this.__last_index__=i)),0<=this.__index__},y.prototype.pretest=function(e){return this.re.pretest.test(e)},y.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},y.prototype.match=function(e){for(var t=0,n=[],r=(0<=this.__index__&&this.__text_cache__===e&&(n.push(h(this,t)),t=this.__last_index__),t?e.slice(t):e);this.test(r);)n.push(h(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},y.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),d(this)):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,d(this)),this},y.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},y.prototype.onCompile=function(){},e.exports=y},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=n(231)},function(e,t,n){"use strict";function a(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}var s=n(25),c=n(12),r=n(18),o=n(13),u=n(9),l=n(8),f=n(14),i=n(16),p=n(6),d=n(118),h=i("draft_tree_data_support"),y=h?o:r,g=p.List,m=p.Repeat;e.exports={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),r=u.removeRange(r,o,"backward"),i=r.getSelectionAfter(),r=u.splitBlock(r,i),i=r.getSelectionAfter(),r=u.setBlockType(r,i,"atomic"),t=c.create({entity:t}),t={key:f(),type:"atomic",text:n,characterList:g(m(t,n.length))},n={key:f(),type:"unstyled"},t=(h&&(t=a({},t,{nextSibling:n.key}),n=a({},n,{prevSibling:t.key})),[new y(t),new y(n)]),n=s.createFromArray(t),t=u.replaceWithFragment(r,i,n),r=t.merge({selectionBefore:o,selectionAfter:t.getSelectionAfter().set("hasFocus",!0)});return l.push(e,r,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection(),i=(r="before"===r||"after"===r?(o=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey()),d(i,t,o,r)):(r=(o=u.removeRange(i,n,"backward")).getSelectionAfter(),i=o.getBlockForKey(r.getFocusKey()),0===r.getStartOffset()?d(o,t,i,"before"):r.getEndOffset()===i.getLength()?d(o,t,i,"after"):(i=(n=u.splitBlock(o,r)).getSelectionAfter(),o=n.getBlockForKey(i.getFocusKey()),d(n,t,o,"before")))).merge({selectionBefore:a,selectionAfter:r.getSelectionAfter().set("hasFocus",!0)});return l.push(e,i,"move-block")}}},function(e,t,n){"use strict";var p=n(12),o=n(6).Map;function r(e,t,a,s){var n=e.getBlockMap(),c=t.getStartKey(),u=t.getStartOffset(),l=t.getEndKey(),f=t.getEndOffset(),r=n.skipUntil(function(e,t){return t===c}).takeUntil(function(e,t){return t===l}).concat(o([[l,n.get(l)]])).map(function(e,t){for(var n,r,o=c===l?(n=u,f):(n=t===c?u:0,t===l?f:e.getLength()),i=e.getCharacterList();n<o;)r=i.get(n),i=i.set(n,s?p.applyStyle(r,a):p.removeStyle(r,a)),n++;return e.set("characterList",i)});return e.merge({blockMap:n.merge(r),selectionBefore:t,selectionAfter:t})}e.exports={add:function(e,t,n){return r(e,t,n,!0)},remove:function(e,t,n){return r(e,t,n,!1)}}},function(e,t,n){"use strict";var u=n(106),l=n(6);e.exports=function(e,t,r){var n=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=n.skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===a}).toOrderedMap().merge(l.OrderedMap([[a,n.get(a)]])).map(function(e,t){var n=t===o?i:0,t=t===a?s:e.getLength();return u(e,n,t,r)});return e.merge({blockMap:n.merge(c),selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var a=n(12);e.exports=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,a.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)}},function(e,t,n){"use strict";var l=n(108),f=n(109),p=n(7);function d(e,t,n,r,o,i,a){var s=n.getStartOffset(),c=n.getEndOffset(),e=e.__get(o).getMutability(),u=a?s:c;if("MUTABLE"===e)return n;o=f(t,o).filter(function(e){return u<=e.end&&u>=e.start}),1!=o.length&&p(!1),o=o[0];if("IMMUTABLE"===e)return n.merge({anchorOffset:o.start,focusOffset:o.end,isBackward:!1});i||(a?c=o.end:s=o.start);e=l.getRemovalRange(s,c,t.getText().slice(o.start,o.end),o.start,r);return n.merge({anchorOffset:e.start,focusOffset:e.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i,a,s,c=r.getStartOffset(),u=r.getEndOffset(),c=t.getEntityAt(c),u=n.getEntityAt(u-1);return c||u?(i=r,c&&c===u?i=d(e,t,i,o,c,!0,!0):c&&u?(a=d(e,t,i,o,c,!1,!0),s=d(e,n,i,o,u,!1,!1),i=i.merge({anchorOffset:a.getAnchorOffset(),focusOffset:s.getFocusOffset(),isBackward:!1})):c?(a=d(e,t,i,o,c,!1,!0),i=i.merge({anchorOffset:a.getStartOffset(),isBackward:!1})):u&&(s=d(e,n,i,o,u,!1,!1),i=i.merge({focusOffset:s.getEndOffset(),isBackward:!1})),i):r}},function(e,t,n){"use strict";e.exports={getRemovalRange:function(e,t,n,r,o){for(var i,a=(a=n.split(" ")).map(function(e,t){if("forward"===o){if(0<t)return" "+e}else if(t<a.length-1)return e+" ";return e}),s=r,c=null,u=null,l=0;l<a.length;l++){if(e<(i=s+a[l].length)&&s<t)u=(null!==c||(c=s),i);else if(null!==c)break;s=i}var n=r+n.length,f=c===r,p=u===n;return(!f&&p||f&&!p)&&("forward"===o?u!==n&&u++:c!==r&&c--),{start:c,end:u}}}},function(e,t,n){"use strict";var r=n(7);e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return e.getEntity()===t},function(e,t){n.push({start:e,end:t})}),n.length||r(!1),n}},function(e,t,n){"use strict";var y=n(25),g=n(13),r=n(6),m=n(53),v=n(7),b=n(51),l=r.List,_=function(e,t,n){var r=e.getText(),o=e.getCharacterList(),r=r.slice(0,t),o=o.slice(0,t),t=n.first();return e.merge({text:r+t.getText(),characterList:o.concat(t.getCharacterList()),type:(r?e:t).getType(),data:t.getData()})},w=function(e,t,n){var r=e.getText(),e=e.getCharacterList(),o=r.length,r=r.slice(t,o),e=e.slice(t,o),t=n.last();return t.merge({text:t.getText()+r,characterList:t.getCharacterList().concat(e),data:t.getData()})},S=function(s,e,c,u){return s.withMutations(function(t){var e=c.getKey(),n=u.getKey(),r=c.getNextSiblingKey(),o=c.getParentKey(),i=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(u,s),a=i[i.length-1];t.get(n)?(t.setIn([e,"nextSibling"],n),t.setIn([n,"prevSibling"],e)):(t.setIn([e,"nextSibling"],u.getNextSiblingKey()),t.setIn([u.getNextSiblingKey(),"prevSibling"],e)),t.setIn([a,"nextSibling"],r),r&&t.setIn([r,"prevSibling"],a),i.forEach(function(e){return t.setIn([e,"parent"],o)}),o&&(r=(n=s.get(o).getChildKeys()).indexOf(e)+1,(a=n.toArray()).splice.apply(a,[r,0].concat(i)),t.setIn([o,"children"],l(a)))})};e.exports=function(e,t,n){var r,o,i,a,s,c,u,l=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",f=(t.isCollapsed()||v(!1),e.getBlockMap()),n=b(n),p=t.getStartKey(),d=t.getStartOffset(),h=f.get(p);return h instanceof g&&(h.getChildKeys().isEmpty()||v(!1)),1===n.size?function(e,t,n,r,o,i){var a=6<arguments.length&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),c=s.getText(),u=s.getCharacterList(),l=o,f=i+r.getText().length,p=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":p=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":p=r.getData()}a=s.getType(),c&&"unstyled"===a&&(a=r.getType()),c=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:m(u,r.getCharacterList(),i),type:a,data:p});return e.merge({blockMap:n.set(o,c),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:f,focusKey:l,focusOffset:f,isBackward:!1})})}(e,t,f,n.first(),p,d,l):(h=e,l=t,r=n,o=p,i=d,t=(e=f).first()instanceof g,a=[],s=r.size,n=e.get(o),p=r.first(),d=r.last(),f=d.getLength(),d=d.getKey(),c=t&&(!n.getChildKeys().isEmpty()||!p.getChildKeys().isEmpty()),e.forEach(function(e,t){t!==o?a.push(e):(a.push(c?e:_(e,i,r)),r.slice(c?0:1,s-1).forEach(function(e){return a.push(e)}),a.push(w(e,i,r)))}),u=y.createFromArray(a),t&&(u=S(u,e,n,p)),h.merge({blockMap:u,selectionBefore:l,selectionAfter:l.merge({anchorKey:d,anchorOffset:f,focusKey:d,focusOffset:f,isBackward:!1})}))}},function(e,t,n){"use strict";var r=n(6),l=n(53),f=n(7),p=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||f(!1);var o,i,a,s,c,u=null;return null==(u=null!=n?n.length:u)||0===u?e:(o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),c=(s=o.get(i)).getText(),n=s.merge({text:c.slice(0,a)+n+c.slice(a,s.getLength()),characterList:l(s.getCharacterList(),p(r,u).toList(),a)}),c=a+u,e.merge({blockMap:o.set(i,n),selectionAfter:t.merge({anchorOffset:c,focusOffset:c})}))}},function(e,t,n){"use strict";function v(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;t<n;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e}var b=n(13),_=n(55),n=n(6),w=(n.List,n.Map),S=function(e,t,n){var r;!e||(r=t.get(e))&&t.set(e,n(r))},E=function(e,t){var n=[];if(e)for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},C=function(e,t){var n=[];if(e)for(var r=_(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?_(o,t):null}return n},O=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},x=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r};e.exports=function(e,t){var n,r,o,i,a,s,c,u,l,f,p,d,h,y,g,m;return t.isCollapsed()?e:(n=e.getBlockMap(),r=t.getStartKey(),o=t.getStartOffset(),i=t.getEndKey(),a=t.getEndOffset(),s=n.get(r),c=n.get(i),u=s instanceof b,l=[],u&&(d=c.getChildKeys(),p=E(i,n),c.getNextSiblingKey()&&(l=l.concat(p)),l=(l=d.isEmpty()?l:l.concat(p.concat([i]))).concat(E(_(c,n),n))),d=s===c?v(s.getCharacterList(),o,a):s.getCharacterList().slice(0,o).concat(c.getCharacterList().slice(a)),f=s.merge({text:s.getText().slice(0,o)+c.getText().slice(a),characterList:d}),p=u&&0===o&&0===a&&c.getParentKey()===r&&null==c.getPrevSiblingKey()?w([[r,null]]):n.toSeq().skipUntil(function(e,t){return t===r}).takeUntil(function(e,t){return t===i}).filter(function(e,t){return-1===l.indexOf(t)}).concat(w([[i,null]])).map(function(e,t){return t===r?f:null}),d=n.merge(p).filter(function(e){return!!e}),u&&s!==c&&(y=s,g=c,m=n,d=(h=d).withMutations(function(t){var n,e,r,o;S(y.getKey(),t,function(e){return e.merge({nextSibling:O(e,t,m),prevSibling:x(e,t,m)})}),S(g.getKey(),t,function(e){return e.merge({nextSibling:O(e,t,m),prevSibling:x(e,t,m)})}),E(y.getKey(),m).forEach(function(e){return S(e,t,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return t.get(e)}),nextSibling:O(e,t,m),prevSibling:x(e,t,m)})})}),S(y.getNextSiblingKey(),t,function(e){return e.merge({prevSibling:y.getPrevSiblingKey()})}),S(y.getPrevSiblingKey(),t,function(e){return e.merge({nextSibling:O(e,t,m)})}),S(g.getNextSiblingKey(),t,function(e){return e.merge({prevSibling:x(e,t,m)})}),S(g.getPrevSiblingKey(),t,function(e){return e.merge({nextSibling:g.getNextSiblingKey()})}),E(g.getKey(),m).forEach(function(e){S(e,t,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return t.get(e)}),nextSibling:O(e,t,m),prevSibling:x(e,t,m)})})}),C(g,m).forEach(function(e){return S(e,t,function(e){return e.merge({nextSibling:O(e,t,m),prevSibling:x(e,t,m)})})}),null==h.get(y.getKey())&&null!=h.get(g.getKey())&&g.getParentKey()===y.getKey()&&null==g.getPrevSiblingKey()&&(n=y.getPrevSiblingKey(),S(g.getKey(),t,function(e){return e.merge({prevSibling:n})}),S(n,t,function(e){return e.merge({nextSibling:g.getKey()})}),e=n?h.get(n):null,r=e?e.getParentKey():null,y.getChildKeys().forEach(function(e){S(e,t,function(e){return e.merge({parent:r})})}),null!=r&&(o=h.get(r),S(r,t,function(e){return e.merge({children:o.getChildKeys().concat(y.getChildKeys())})})),S(y.getChildKeys().find(function(e){return null===h.get(e).getNextSiblingKey()}),t,function(e){return e.merge({nextSibling:y.getNextSiblingKey()})}))})),e.merge({blockMap:d,selectionBefore:t,selectionAfter:t.merge({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1})}))}},function(e,t,n){"use strict";var d=n(13),h=n(14),r=n(6),y=n(7),g=n(54),m=r.List,v=r.Map,b=function(e,t,n){var r;!e||(r=t.get(e))&&t.set(e,n(r))};e.exports=function(e,t){t.isCollapsed()||y(!1);var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return g(e,t,function(e){return e.merge({type:"unstyled",depth:0})})}var s,c,a=t.getAnchorOffset(),u=o.getCharacterList(),l=h(),f=o instanceof d,p=o.merge({text:i.slice(0,a),characterList:u.slice(0,a)}),i=p.merge({key:l,text:i.slice(a),characterList:u.slice(a),data:v()}),u=r.toSeq().takeUntil(function(e){return e===o}),a=r.toSeq().skipUntil(function(e){return e===o}).rest(),r=u.concat([[n,p],[l,i]],a).toOrderedMap();return f&&(o.getChildKeys().isEmpty()||y(!1),s=p,c=i,r=r.withMutations(function(e){var r=s.getKey(),o=c.getKey();b(s.getParentKey(),e,function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,t=t.toArray();return t.splice(n,0,o),e.merge({children:m(t)})}),b(s.getNextSiblingKey(),e,function(e){return e.merge({prevSibling:o})}),b(r,e,function(e){return e.merge({nextSibling:o})}),b(o,e,function(e){return e.merge({prevSibling:r})})})),e.merge({blockMap:r,selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:0,focusKey:l,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";function r(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}function s(){return!0}var c=n(26),o=n(56),n=n(6),u=n.List,l=n.Repeat,n=n.Record,f=n({start:null,end:null}),p=n({start:null,end:null,decoratorKey:null,leaves:null});function d(e,t){return e===t}e.exports={generate:function(e,t,n){var o,i,a,r=t.getLength();return r?(o=[],i=n?n.getDecorations(t,e):u(l(null,r)),a=t.getCharacterList(),c(i,d,s,function(e,t){var n,r;o.push(new p({start:e,end:t,decoratorKey:i.get(e),leaves:(t=a.slice(e,t).toList(),n=e,r=[],t=t.map(function(e){return e.getStyle()}).toList(),c(t,d,s,function(e,t){r.push(new f({start:e+n,end:t+n}))}),u(r))}))}),u(o)):u.of(new p({start:0,end:0,decoratorKey:null,leaves:u.of(new f({start:0,end:0}))}))},fromJS:function(e){var t=e.leaves,e=function(e,t){if(null==e)return{};for(var n,r={},o=Object.keys(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,["leaves"]);return new p(r({},e,{leaves:null!=t?u(Array.isArray(t)?t:o(t)).map(function(e){return f(e)}):null}))}}},function(e,t,n){"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})}},function(e,t,n){"use strict";var r,o=n(117),i=n(6),a=n(10),s=i.OrderedMap;e.exports={getDirectionMap:function(e,t){r?r.reset():r=new o;var e=e.getBlockMap(),n=e.valueSeq().map(function(e){return a(r).getDirection(e.getText())}),e=s(e.keySeq().zip(n));return null!=t&&i.is(t,e)?t:e}}},function(e,t,n){"use strict";function r(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var o=n(41),i=n(32),a=n(7),n=function(){function e(e){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),e?i.isStrong(e)||a(!1):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=o.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=n},function(e,t,n){"use strict";var S=n(13),E=n(55),r=n(6),C=n(7),O=r.OrderedMap,x=r.List,k=function(e,t,n){var r;!e||(r=t.get(e))&&t.set(e,n(r))};e.exports=function(e,n,t,r){"replace"===r&&C(!1);var o,i,a,s,c,u,l,f,p,d,h=t.getKey(),y=n.getKey(),g=(y===h&&C(!1),e.getBlockMap()),m=n instanceof S,v=[n],b=g.delete(y),g=(m&&(v=[],b=g.withMutations(function(t){var o=n.getNextSiblingKey(),i=E(n,t);t.toSeq().skipUntil(function(e){return e.getKey()===y}).takeWhile(function(e){var t=e.getKey(),n=t===y,r=o&&t!==o,e=!o&&e.getParentKey()&&(!i||t!==i);return!!(n||r||e)}).forEach(function(e){v.push(e),t.delete(e.getKey())})})),b.toSeq().takeUntil(function(e){return e===t})),b=b.toSeq().skipUntil(function(e){return e===t}).skip(1),_=v.map(function(e){return[e.getKey(),e]}),w=O();return"before"===r?((o=e.getBlockBefore(h))&&o.getKey()===n.getKey()&&C(!1),w=g.concat([].concat(_,[[h,t]]),b).toOrderedMap()):"after"===r&&((o=e.getBlockAfter(h))&&o.getKey()===y&&C(!1),w=g.concat([[h,t]].concat(_),b).toOrderedMap()),e.merge({blockMap:(o=w,g=n,h=t,_=r,m?(i="after"===_,a=g.getKey(),s=h.getKey(),c=g.getParentKey(),u=g.getNextSiblingKey(),l=g.getPrevSiblingKey(),f=h.getParentKey(),p=i?h.getNextSiblingKey():s,d=i?s:h.getPrevSiblingKey(),o.withMutations(function(e){k(c,e,function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})}),k(l,e,function(e){return e.merge({nextSibling:u})}),k(u,e,function(e){return e.merge({prevSibling:l})}),k(p,e,function(e){return e.merge({prevSibling:a})}),k(d,e,function(e){return e.merge({nextSibling:a})}),k(f,e,function(e){var t=e.getChildKeys(),n=t.indexOf(s),n=i?n+1:0!==n?n-1:0,t=t.toArray();return t.splice(n,0,a),e.merge({children:x(t)})}),k(a,e,function(e){return e.merge({nextSibling:p,prevSibling:d,parent:f})})})):o),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:y,focusKey:y})})}},function(e,t,n){"use strict";var r=n(6).List,n=function(){function e(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(t,n){var c=Array(t.getText().length).fill(null);return this._decorators.forEach(function(e,a){var s=0;(0,e.strategy)(t,function(e,t){if(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return;return 1}(c,e,t)){for(var n=c,r=t,o=a+"."+s,i=e;i<r;i++)n[i]=o;s++}},n)}),r(c)},t.getComponentForKey=function(e){e=parseInt(e.split(".")[0],10);return this._decorators[e].component},t.getPropsForKey=function(e){e=parseInt(e.split(".")[0],10);return this._decorators[e].props},e}();e.exports=n},function(A,e,P){"use strict";!function(r){var e=P(17);function p(){return(p=e||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);(r="function"==typeof Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})):r).forEach(function(e){i(t,e,n[e])})}return t}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function a(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}var t=P(42),h=P(59),n=P(121),y=P(129),s=P(146),c=P(149),u=P(185),l=P(186),f=P(71),g=P(8),m=P(0),v=P(45),b=P(36),_=P(11),w=P(19),S=P(14),E=P(87),C=P(37),O=P(16),x=P(7),k=P(27),D=P(10),j=_.isBrowser("IE"),T=!j,I={edit:c,composite:n,drag:s,cut:null,render:null},M=!1,N=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(m.Component),_=function(t){function e(e){var a=t.call(this,e)||this;return i(o(a),"_blockSelectEvents",void 0),i(o(a),"_clipboard",void 0),i(o(a),"_handler",void 0),i(o(a),"_dragCount",void 0),i(o(a),"_internalDrag",void 0),i(o(a),"_editorKey",void 0),i(o(a),"_placeholderAccessibilityID",void 0),i(o(a),"_latestEditorState",void 0),i(o(a),"_latestCommittedEditorState",void 0),i(o(a),"_pendingStateFromBeforeInput",void 0),i(o(a),"_onBeforeInput",void 0),i(o(a),"_onBlur",void 0),i(o(a),"_onCharacterData",void 0),i(o(a),"_onCompositionEnd",void 0),i(o(a),"_onCompositionStart",void 0),i(o(a),"_onCopy",void 0),i(o(a),"_onCut",void 0),i(o(a),"_onDragEnd",void 0),i(o(a),"_onDragOver",void 0),i(o(a),"_onDragStart",void 0),i(o(a),"_onDrop",void 0),i(o(a),"_onInput",void 0),i(o(a),"_onFocus",void 0),i(o(a),"_onKeyDown",void 0),i(o(a),"_onKeyPress",void 0),i(o(a),"_onKeyUp",void 0),i(o(a),"_onMouseDown",void 0),i(o(a),"_onMouseUp",void 0),i(o(a),"_onPaste",void 0),i(o(a),"_onSelect",void 0),i(o(a),"editor",void 0),i(o(a),"editorContainer",void 0),i(o(a),"focus",void 0),i(o(a),"blur",void 0),i(o(a),"setMode",void 0),i(o(a),"exitCurrentMode",void 0),i(o(a),"restoreEditorDOM",void 0),i(o(a),"setClipboard",void 0),i(o(a),"getClipboard",void 0),i(o(a),"getEditorKey",void 0),i(o(a),"update",void 0),i(o(a),"onDragEnter",void 0),i(o(a),"onDragLeave",void 0),i(o(a),"_handleEditorContainerRef",function(e){a.editorContainer=e,a.editor=null!==e?e.firstChild:null}),i(o(a),"focus",function(e){var t,n,r=a.props.editorState,o=r.getSelection().getHasFocus(),i=a.editor;i&&(t=b.getScrollParent(i),n=(e=e||C(t)).x,e=e.y,k(i)||x(!1),i.focus(),t===window?window.scrollTo(n,e):v.setTop(t,e),o||a.update(g.forceSelection(r,r.getSelection())))}),i(o(a),"blur",function(){var e=a.editor;e&&(k(e)||x(!1),e.blur())}),i(o(a),"setMode",function(e){var t=a.props,n=t.onPaste,r=t.onCut,t=t.onCopy,o=d({},I.edit),n=(n&&(o.onPaste=n),r&&(o.onCut=r),t&&(o.onCopy=t),d({},I,{edit:o}));a._handler=n[e]}),i(o(a),"exitCurrentMode",function(){a.setMode("edit")}),i(o(a),"restoreEditorDOM",function(e){a.setState({contentsKey:a.state.contentsKey+1},function(){a.focus(e)})}),i(o(a),"setClipboard",function(e){a._clipboard=e}),i(o(a),"getClipboard",function(){return a._clipboard}),i(o(a),"update",function(e){a._latestEditorState=e,a.props.onChange(e)}),i(o(a),"onDragEnter",function(){a._dragCount++}),i(o(a),"onDragLeave",function(){a._dragCount--,0===a._dragCount&&a.exitCurrentMode()}),a._blockSelectEvents=!1,a._clipboard=null,a._handler=null,a._dragCount=0,a._editorKey=e.editorKey||S(),a._placeholderAccessibilityID="placeholder-"+a._editorKey,a._latestEditorState=e.editorState,a._latestCommittedEditorState=e.editorState,a._onBeforeInput=a._buildHandler("onBeforeInput"),a._onBlur=a._buildHandler("onBlur"),a._onCharacterData=a._buildHandler("onCharacterData"),a._onCompositionEnd=a._buildHandler("onCompositionEnd"),a._onCompositionStart=a._buildHandler("onCompositionStart"),a._onCopy=a._buildHandler("onCopy"),a._onCut=a._buildHandler("onCut"),a._onDragEnd=a._buildHandler("onDragEnd"),a._onDragOver=a._buildHandler("onDragOver"),a._onDragStart=a._buildHandler("onDragStart"),a._onDrop=a._buildHandler("onDrop"),a._onInput=a._buildHandler("onInput"),a._onFocus=a._buildHandler("onFocus"),a._onKeyDown=a._buildHandler("onKeyDown"),a._onKeyPress=a._buildHandler("onKeyPress"),a._onKeyUp=a._buildHandler("onKeyUp"),a._onMouseDown=a._buildHandler("onMouseDown"),a._onMouseUp=a._buildHandler("onMouseUp"),a._onPaste=a._buildHandler("onPaste"),a._onSelect=a._buildHandler("onSelect"),a.getEditorKey=function(){return a._editorKey},a.state={contentsKey:0},a}a(e,t);var n=e.prototype;return n._buildHandler=function(n){var r=this;return function(e){var t;r.props.readOnly||(t=r._handler&&r._handler[n])&&(u?u(function(){return t(r,e)}):t(r,e))}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){var e;return this._showPlaceholder()?(e={text:D(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID},m.createElement(l,e)):null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,s=e.preventScroll,c=e.readOnly,u=e.textAlignment,e=e.textDirectionality,u=w({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),l=this.props.role||"textbox",f="combobox"===l?!!this.props.ariaExpanded:null,t={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:d({},h,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:e};return m.createElement("div",{className:u},this._renderPlaceholder(),m.createElement("div",{className:w("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},m.createElement("div",{"aria-activedescendant":c?null:this.props.ariaActiveDescendantID,"aria-autocomplete":c?null:this.props.ariaAutoComplete,"aria-controls":c?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":c?null:f,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":c?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:w({notranslate:!c,"public/DraftEditor/content":!0}),contentEditable:!c,"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:c?null:l,spellCheck:T&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},m.createElement(N,{editor:this,editorState:a}),m.createElement(y,p({},t,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!M&&O("draft_ods_enabled")&&(M=!0,f.initODS()),this.setMode("edit"),j&&(this.editor?this.editor.ownerDocument:r).execCommand("AutoUrlDetect",!1,!1)},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},e}(m.Component);i(_,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:t,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:E,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),A.exports=_}.call(this,P(23))},function(e,t,n){"use strict";var r=n(122),s=n(9),c=n(15),u=n(8),o=n(35),i=n(11),a=n(62),l=n(64),f=n(65),p=n(43),d=n(10),h=i.isBrowser("IE"),y=!1,g=!1,m=null;var v={onCompositionStart:function(e){g=!0,e=e,m||(m=new r(l(e))).start()},onCompositionEnd:function(e){g=y=!1,setTimeout(function(){y||v.resolveComposition(e)},20)},onSelect:a,onKeyDown:function(e,t){g?t.which!==o.RIGHT&&t.which!==o.LEFT||t.preventDefault():(v.resolveComposition(e),e._onKeyDown(t))},onKeyPress:function(e,t){t.which===o.RETURN&&t.preventDefault()},resolveComposition:function(e){var i,a,t;g||(t=d(m).stopAndFlushMutations(),y=!(m=null),i=u.set(e._latestEditorState,{inCompositionMode:!1}),e.exitCurrentMode(),t.size?(a=i.getCurrentContent(),t.forEach(function(e,t){var t=c.decode(t),n=t.blockKey,r=t.decoratorKey,t=t.leafKey,r=i.getBlockTree(n).getIn([r,"leaves",t]),t=r.start,r=r.end,r=i.getSelection().merge({anchorKey:n,focusKey:n,anchorOffset:t,focusOffset:r,isBackward:!1}),o=p(a,r),n=a.getBlockForKey(n).getInlineStyleAt(t);a=s.replaceText(a,r,e,n,o),i=u.set(i,{currentContent:a})}),t=f(i,l(e)).selectionState,e.restoreEditorDOM(),t=h?u.forceSelection(i,t):u.acceptSelection(i,t),e.update(u.push(t,a,"insert-characters"))):e.update(i))}};e.exports=v},function(e,t,n){"use strict";function r(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var o=n(11),i=n(33),a=n(61),s=n(6),c=n(7),u=n(10),l=s.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=o.isBrowser("IE <= 11");e.exports=function(){function e(e){var t=this,e=(r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=e,this.mutations=l(),a(e));e.MutationObserver&&!p?this.observer=new e.MutationObserver(function(e){return t.registerMutations(e)}):this.onCharData=function(e){e.target instanceof Node||c(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,f):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer,e=(e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData),this.mutations);return this.mutations=l(),e},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,e=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return p?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(e&&e.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);null!=t&&(e=u(i(e.target)),this.mutations=this.mutations.set(e,t))},e}()},function(e,t,n){"use strict";var n=n(124),r="Unknown",o={"Mac OS":"Mac OS X"};var n=(new n).getResult(),i=(i=n.browser.version)?{major:(i=i.split("."))[0],minor:i[1]}:{major:"",minor:""},o={browserArchitecture:n.cpu.architecture||r,browserFullVersion:n.browser.version||r,browserMinorVersion:i.minor||r,browserName:n.browser.name||r,browserVersion:n.browser.major||r,deviceName:n.device.model||r,engineName:n.engine.name||r,engineVersion:n.engine.version||r,platformArchitecture:n.cpu.architecture||r,platformName:(i=n.os.name,o[i]||i||r),platformVersion:n.os.version||r,platformFullVersion:n.os.version||r};e.exports=o},function(B,K,H){var U;!function(o,f){"use strict";function e(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t}function R(e,t){return typeof e===l&&-1!==A(t).indexOf(A(e))}function i(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,c).replace(/\s\s*$/,c),typeof t==u?e:e.substring(0,350)}function a(e,t){for(var n,r,o,i,a,s=0;s<t.length&&!i;){for(var c=t[s],u=t[s+1],l=n=0;l<c.length&&!i;)if(i=c[l++].exec(e))for(r=0;r<u.length;r++)a=i[++n],typeof(o=u[r])===d&&0<o.length?2===o.length?typeof o[1]==p?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3===o.length?typeof o[1]!==p||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[1],o[2]):f:this[o[0]]=a?o[1].call(this,a,o[2]):f:4===o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):f):this[o]=a||f;s+=2}}function t(e,t){for(var n in t)if(typeof t[n]===d&&0<t[n].length){for(var r=0;r<t[n].length;r++)if(R(t[n][r],e))return"?"===n?f:n}else if(R(t[n],e))return"?"===n?f:n;return e}function s(e,t){var n,r;return typeof e===d&&(t=e,e=f),this instanceof s?(n=e||(typeof o!=u&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:c),r=t?function(e,t){var n,r={};for(n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r}(z,t):z,this.getBrowser=function(){var e,t={};return t.name=f,t[m]=f,a.call(t,n,r.browser),t.major=typeof(e=t.version)===l?e.replace(/[^\d\.]/g,c).split(".")[0]:f,t},this.getCPU=function(){var e={};return e[v]=f,a.call(e,n,r.cpu),e},this.getDevice=function(){var e={};return e[g]=f,e[h]=f,e.type=f,a.call(e,n,r.device),e},this.getEngine=function(){var e={};return e.name=f,e[m]=f,a.call(e,n,r.engine),e},this.getOS=function(){var e={};return e.name=f,e[m]=f,a.call(e,n,r.os),e},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 n},this.setUA=function(e){return n=typeof e===l&&350<e.length?i(e,350):e,this},this.setUA(n),this):new s(e,t).getResult()}var r,c="",p="function",u="undefined",d="object",l="string",h="model",n="name",y="type",g="vendor",m="version",v="architecture",b="console",_="mobile",w="tablet",S="smarttv",E="wearable",C="Amazon",L="BlackBerry",O="Browser",x="Chrome",k="Firefox",D="Google",j="Microsoft",T="Opera",I="Samsung",M="Sony",N="Xiaomi",A=function(e){return e.toLowerCase()},F={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},z={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[n,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[n,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[n,m],[/opios[\/ ]+([\w\.]+)/i],[m,[n,T+" Mini"]],[/\bopr\/([\w\.]+)/i],[m,[n,T]],[/(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|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[n,m],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[n,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[m,[n,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[m,[n,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[n,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[n,"IE"]],[/yabrowser\/([\w\.]+)/i],[m,[n,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[n,/(.+)/,"$1 Secure "+O],m],[/\bfocus\/([\w\.]+)/i],[m,[n,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[n,T+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[n,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[n,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[n,T+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[n,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[m,[n,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[n,"360 "+O]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[n,/(.+)/,"$1 "+O],m],[/(comodo_dragon)\/([\w\.]+)/i],[[n,/_/g," "],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[n,m],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[n],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[n,"Facebook"],m],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[n,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[n,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[n,x+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[n,x+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[n,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[n,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[n,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,n],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[n,[m,t,{"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],[n,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[n,"Netscape"],m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[n,k+" 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],[n,m]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,A]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows (ce|mobile); ppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[v,/ower/,c,A]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,A]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[h,[g,I],[y,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[h,[g,I],[y,_]],[/\((ip(?:hone|od)[\w ]*);/i],[h,[g,"Apple"],[y,_]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[h,[g,"Apple"],[y,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[h,[g,"Huawei"],[y,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[h,[g,"Huawei"],[y,_]],[/\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|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[h,/_/g," "],[g,N],[y,_]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[h,/_/g," "],[g,N],[y,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[h,[g,"OPPO"],[y,_]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[h,[g,"Vivo"],[y,_]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[h,[g,"Realme"],[y,_]],[/\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],[h,[g,"Motorola"],[y,_]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[h,[g,"Motorola"],[y,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[h,[g,"LG"],[y,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[h,[g,"LG"],[y,_]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[h,[g,"Lenovo"],[y,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[h,/_/g," "],[g,"Nokia"],[y,_]],[/(pixel c)\b/i],[h,[g,D],[y,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[h,[g,D],[y,_]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[h,[g,M],[y,_]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[h,"Xperia Tablet"],[g,M],[y,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[h,[g,"OnePlus"],[y,_]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[h,[g,C],[y,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[h,/(.+)/g,"Fire Phone $1"],[g,C],[y,_]],[/(playbook);[-\w\),; ]+(rim)/i],[h,g,[y,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[h,[g,L],[y,_]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[h,[g,"ASUS"],[y,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[h,[g,"ASUS"],[y,_]],[/(nexus 9)/i],[h,[g,"HTC"],[y,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[h,/_/g," "],[y,_]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[h,[g,"Acer"],[y,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[h,[g,"Meizu"],[y,_]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[h,[g,"Sharp"],[y,_]],[/(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],[g,h,[y,_]],[/(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],[g,h,[y,w]],[/(surface duo)/i],[h,[g,j],[y,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[h,[g,"Fairphone"],[y,_]],[/(u304aa)/i],[h,[g,"AT&T"],[y,_]],[/\bsie-(\w*)/i],[h,[g,"Siemens"],[y,_]],[/\b(rct\w+) b/i],[h,[g,"RCA"],[y,w]],[/\b(venue[\d ]{2,7}) b/i],[h,[g,"Dell"],[y,w]],[/\b(q(?:mv|ta)\w+) b/i],[h,[g,"Verizon"],[y,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[h,[g,"Barnes & Noble"],[y,w]],[/\b(tm\d{3}\w+) b/i],[h,[g,"NuVision"],[y,w]],[/\b(k88) b/i],[h,[g,"ZTE"],[y,w]],[/\b(nx\d{3}j) b/i],[h,[g,"ZTE"],[y,_]],[/\b(gen\d{3}) b.+49h/i],[h,[g,"Swiss"],[y,_]],[/\b(zur\d{3}) b/i],[h,[g,"Swiss"],[y,w]],[/\b((zeki)?tb.*\b) b/i],[h,[g,"Zeki"],[y,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],h,[y,w]],[/\b(ns-?\w{0,9}) b/i],[h,[g,"Insignia"],[y,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[h,[g,"NextBook"],[y,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],h,[y,_]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],h,[y,_]],[/\b(ph-1) /i],[h,[g,"Essential"],[y,_]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[h,[g,"Envizen"],[y,w]],[/\b(trio[-\w\. ]+) b/i],[h,[g,"MachSpeed"],[y,w]],[/\btu_(1491) b/i],[h,[g,"Rotor"],[y,w]],[/(shield[\w ]+) b/i],[h,[g,"Nvidia"],[y,w]],[/(sprint) (\w+)/i],[g,h,[y,_]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[g,j],[y,_]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[h,[g,"Zebra"],[y,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[h,[g,"Zebra"],[y,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,h,[y,b]],[/droid.+; (shield) bui/i],[h,[g,"Nvidia"],[y,b]],[/(playstation [345portablevi]+)/i],[h,[g,M],[y,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[h,[g,j],[y,b]],[/smart-tv.+(samsung)/i],[g,[y,S]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[g,I],[y,S]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,"LG"],[y,S]],[/(apple) ?tv/i],[g,[h,"Apple TV"],[y,S]],[/crkey/i],[[h,x+"cast"],[g,D],[y,S]],[/droid.+aft(\w)( bui|\))/i],[h,[g,C],[y,S]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[h,[g,"Sharp"],[y,S]],[/(bravia[\w ]+)( bui|\))/i],[h,[g,M],[y,S]],[/(mitv-\w{5}) bui/i],[h,[g,N],[y,S]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[g,i],[h,i],[y,S]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[y,S]],[/((pebble))app/i],[g,h,[y,E]],[/droid.+; (glass) \d/i],[h,[g,D],[y,E]],[/droid.+; (wt63?0{2,3})\)/i],[h,[g,"Zebra"],[y,E]],[/(quest( 2)?)/i],[h,[g,"Facebook"],[y,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[y,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[h,[y,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[h,[y,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[y,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[y,_]],[/(android[-\w\. ]{0,9});.+buil/i],[h,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[n,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[n,"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],[n,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,n]],os:[[/microsoft (windows) (vista|xp)/i],[n,m],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[n,[m,t,F]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[n,"Windows"],[m,t,F]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[n,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[n,"Mac OS"],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,n],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[n,m],[/\(bb(10);/i],[m,[n,L]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[n,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[n,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[n,"webOS"]],[/crkey\/([\d\.]+)/i],[m,[n,x+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[n,"Chromium OS"],m],[/(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],[n,m],[/(sunos) ?([\w\.\d]*)/i],[[n,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[n,m]]},P=(s.VERSION="0.7.32",s.BROWSER=e([n,m,"major"]),s.CPU=e([v]),s.DEVICE=e([h,g,y,b,_,S,w,E,"embedded"]),s.ENGINE=s.OS=e([n,m]),typeof K!=u?(K=typeof B!=u&&B.exports?B.exports=s:K).UAParser=s:"function"===p&&H(125)?(U=function(){return s}.call(K,H,K,B))!==f&&(B.exports=U):typeof o!=u&&(o.UAParser=s),typeof o!=u&&(o.jQuery||o.Zepto));P&&!P.ua&&(r=new s,P.ua=r.getResult(),P.ua.get=function(){return r.getUA()},P.ua.set=function(e){r.setUA(e);var t,n=r.getResult();for(t in n)P.ua[t]=n[t]})}("object"==typeof window?window:this)},function(t,e){!function(e){t.exports=e}.call(this,{})},function(e,t,n){"use strict";var o=n(7),u=/\./,i=/\|\|/,a=/\s+\-\s+/,r=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,l=/^(\d*)(.*)/;function s(e,t){var n,r=e.split(i);return 1<r.length?r.some(function(e){return b.contains(e,t)}):(r=e=r[0].trim(),e=t,0<(r=r.split(a)).length&&r.length<=2||o(!1),1===r.length?c(r[0],e):(n=r[0],r=r[1],y(n)&&y(r)||o(!1),c(">="+n,e)&&c("<="+r,e)))}function c(e,t){if(""===(e=e.trim()))return!0;var n=t.split(u),t=d(e),e=t.modifier,r=t.rangeComponents;switch(e){case"<":return f(n,r);case"<=":var o=n;return-1===(o=v(o,r))||0===o;case">=":return p(n,r);case">":return 1===v(n,r);case"~":case"~>":var o=n,i=r,a=i.slice(),s=(1<(i=i.slice()).length&&i.pop(),i.length-1),c=parseInt(i[s],10);return h(c)&&(i[s]=c+1+""),p(o,a)&&f(o,i);default:return 0===v(n,r)}}function f(e,t){return-1===v(e,t)}function p(e,t){e=v(e,t);return 1===e||0===e}function d(e){var e=e.split(u),t=e[0].match(r);return t||o(!1),{modifier:t[1],rangeComponents:[t[2]].concat(e.slice(1))}}function h(e){return!isNaN(e)&&isFinite(e)}function y(e){return!d(e).modifier}function g(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function m(e,t){return typeof e!=typeof t&&o(!1),t<e?1:e<t?-1:0}function v(e,t){for(var n,r,o,e=function(e,t){g(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return g(t,e.length),[e,t]}(e,t),i=e[0],a=e[1],s=0;s<a.length;s++){n=i[s],r=a[s],o=c=o=c=void 0,c=n.match(l)[1],o=r.match(l)[1],c=parseInt(c,10),o=parseInt(o,10);var c=h(c)&&h(o)&&c!==o?m(c,o):m(n,r);if(c)return c}return 0}var b={contains:function(e,t){return s(e.trim(),t.trim())}};e.exports=b},function(e,t,n){"use strict";var i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!e)return null;var r,o={};for(r in e)i.call(e,r)&&(o[r]=t.call(n,e[r],r,e));return o}},function(e,t,n){"use strict";e.exports=function(t){var n={};return function(e){return n.hasOwnProperty(e)||(n[e]=t.call(this,e)),n[e]}}},function(e,t,n){"use strict";var r=n(16)("draft_tree_data_support");e.exports=n(r?130:144)},function(e,t,n){"use strict";var r=n(17);function C(){return(C=r||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var O=n(131),x=n(15),k=n(0),D=n(10),n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(r=n).prototype=Object.create(t.prototype),(r.prototype.constructor=r).__proto__=t;var r=n.prototype;return r.shouldComponentUpdate=function(e){var t,n,r,o,i,a=this.props.editorState,e=e.editorState;return a.getDirectionMap()!==e.getDirectionMap()||(a.getSelection().getHasFocus()!==e.getSelection().getHasFocus()||(r=e.getNativelyRenderedContent(),t=a.isInCompositionMode(),n=e.isInCompositionMode(),!(a===e||null!==r&&e.getCurrentContent()===r||t&&n)&&(r=a.getCurrentContent(),o=e.getCurrentContent(),a=a.getDecorator(),i=e.getDecorator(),t!==n||r!==o||a!==i||e.mustForceSelection())))},r.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleMap,i=e.customStyleFn,a=e.editorState,s=e.editorKey,c=e.textDirectionality,u=a.getCurrentContent(),l=a.getSelection(),f=a.mustForceSelection(),p=a.getDecorator(),d=D(a.getDirectionMap()),h=[],y=u.getBlocksAsArray()[0];y;)var g=y.getKey(),m={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,contentState:u,customStyleFn:i,customStyleMap:o,decorator:p,editorKey:s,editorState:a,forceSelection:f,selection:l,block:y,direction:c||d.get(g),tree:a.getBlockTree(g)},v=(t.get(y.getType())||t.get("unstyled")).wrapper,m=(h.push({block:k.createElement(O,C({key:g},m)),wrapperTemplate:v,key:g,offsetKey:x.encode(g,0,0)}),y.getNextSiblingKey()),y=m?u.getBlockForKey(m):null;for(var b=[],_=0;_<h.length;){var w=h[_];if(w.wrapperTemplate){for(var S=[];S.push(h[_].block),++_<h.length&&h[_].wrapperTemplate===w.wrapperTemplate;);var E=k.cloneElement(w.wrapperTemplate,{key:w.key+"-wrap","data-offset-key":w.offsetKey},S);b.push(E)}else b.push(w.block),_++}return k.createElement("div",{"data-contents":"true"},b)},n}(k.Component);e.exports=n},function(e,t,n){"use strict";var r=n(17);function d(){return(d=r||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);(r="function"==typeof Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})):r).forEach(function(e){i(t,e,n[e])})}return t}function i(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function h(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}function C(e,t){var n=(e=t.get(e.getType())||t.get("unstyled")).wrapper;return{Element:e.element||t.get("unstyled").element,wrapperTemplate:n}}function O(e,t){return(t=t(e))?{CustomComponent:t.component,customProps:t.props,customEditable:t.editable}:{}}function x(e,t,n,r,o,i){return t={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:i},(n=r(e))&&(t.className=n),t=void 0!==o.customEditable?E({},t,{contentEditable:o.customEditable,suppressContentEditableWarning:!0}):t}var k=n(132),D=n(15),j=n(0),a=n(45),s=n(36),c=n(73),u=n(37),l=n(74),o=n(6),f=n(7),p=n(27),n=(o.List,function(o){var e;function S(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return i(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e=o.call.apply(o,[this].concat(n))||this),"wrapperRef",j.createRef()),e}e=o,(t=S).prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e;var t=S.prototype;return t.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,t=t.tree,o=!n.getChildKeys().isEmpty(),n=n!==e.block||t!==e.tree||r!==e.direction||h(e.selection,e.block.getKey())&&e.forceSelection;return o||n},t.componentDidMount=function(){var e,t,n=this.props.selection,r=n.getEndKey();!n.getHasFocus()||r!==this.props.block.getKey()||(n=this.wrapperRef.current)&&(r=s.getScrollParent(n),e=u(r),r===window?0<(t=(t=c(n)).y+t.height-l().height)&&window.scrollTo(e.x,e.y+t+10):(p(n)||f(!1),0<(t=n.offsetHeight+n.offsetTop-(r.offsetHeight+e.y))&&a.setTop(r,a.getTop(r)+t+10)))},t.render=function(){var y=this,e=this.props,t=e.block,g=e.blockRenderMap,m=e.blockRendererFn,v=e.blockStyleFn,b=e.contentState,n=e.decorator,_=e.editorKey,w=e.editorState,r=e.customStyleFn,o=e.customStyleMap,i=e.direction,a=e.forceSelection,s=e.selection,e=e.tree,c=null,u=(t.children.size&&(c=t.children.reduce(function(e,t){var n=D.encode(t,0,0),r=b.getBlockForKey(t),o=O(r,m),i=o.CustomComponent||S,a=C(r,g),s=a.Element,a=a.wrapperTemplate,c=x(r,_,n,v,o,null),t=E({},y.props,{tree:w.getBlockTree(t),blockProps:o.customProps,offsetKey:n,block:r});if(e.push(j.createElement(s,c,j.createElement(i,t))),a&&(o=b,!(c=(n=r).getNextSiblingKey())||o.getBlockForKey(c).getType()!==n.getType())){var i=a,u=s,t=e,l=[],f=!0,r=!1,o=void 0;try{for(var p,d=t.reverse()[Symbol.iterator]();!(f=(p=d.next()).done);f=!0){var h=p.value;if(h.type!==u)break;l.push(h)}}catch(e){r=!0,o=e}finally{try{f||null==d.return||d.return()}finally{if(r)throw o}}t.splice(t.indexOf(l[0]),l.length+1),r=l.reverse(),o=r[0].key,t.push(j.cloneElement(i,{key:"".concat(o,"-wrap"),"data-offset-key":D.encode(o,0,0)},r))}return e},[])),t.getKey()),l=D.encode(u,0,0),f=O(t,m),p=f.CustomComponent,p=null!=p?j.createElement(p,d({},this.props,{tree:w.getBlockTree(u),blockProps:f.customProps,offsetKey:l,block:t})):j.createElement(k,{block:t,children:c,contentState:b,customStyleFn:r,customStyleMap:o,decorator:n,direction:i,forceSelection:a,hasSelection:h(s,u),selection:s,tree:e});return t.getParentKey()?p:(c=C(t,g).Element,r=x(t,_,l,v,f,this.wrapperRef),j.createElement(c,r,p))},S}(j.Component));e.exports=n},function(e,t,n){"use strict";var m=n(133),v=n(69),b=n(15),r=n(6),_=n(0),o=n(19),n=(r.List,function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r.prototype.render=function(){var e=this.props,s=e.block,n=e.contentState,c=e.customStyleFn,u=e.customStyleMap,r=e.decorator,l=e.direction,f=e.forceSelection,p=e.hasSelection,d=e.selection,e=e.tree,h=s.getKey(),y=s.getText(),g=e.size-1,e=this.props.children||e.map(function(e,o){var i=e.get("decoratorKey"),t=e.get("leaves"),a=t.size-1,t=t.map(function(e,t){var n=b.encode(h,o,t),r=e.get("start"),e=e.get("end");return _.createElement(v,{key:n,offsetKey:n,block:s,start:r,selection:p?d:null,forceSelection:f,text:y.slice(r,e),styleSet:s.getInlineStyleAt(r),customStyleMap:u,customStyleFn:c,isLast:i===g&&t===a})}).toArray();return i&&r?_.createElement(m,{block:s,children:t,contentState:n,decorator:r,decoratorKey:i,direction:l,leafSet:e,text:y,key:o}):t}).toArray();return _.createElement("div",{"data-offset-key":b.encode(h,0,0),className:o({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===l,"public/DraftStyleDefault/rtl":"RTL"===l})},e)},r}(_.Component));e.exports=n},function(e,t,n){"use strict";var r=n(17);function f(){return(f=r||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var p=n(15),d=n(0),h=n(41),y=n(32),n=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r.prototype.render=function(){var e=this.props,t=e.block,n=e.children,r=e.contentState,o=e.decorator,i=e.decoratorKey,a=e.direction,s=e.leafSet,e=e.text,c=t.getKey(),u=s.get("leaves"),l=o.getComponentForKey(i),o=o.getPropsForKey(i),c=p.encode(c,parseInt(i,10),0),i=e.slice(u.first().get("start"),u.last().get("end")),e=y.getHTMLDirIfDifferent(h.getDirection(i),a);return d.createElement(l,f({},o,{contentState:r,decoratedText:i,dir:e,key:c,entityKey:t.getEntityAt(s.get("start")),offsetKey:c}),n)},r}(d.Component);e.exports=n},function(e,t,n){"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var a=n(0),r=n(11),s=n(7),c=n(20),u=r.isBrowser("IE <= 11");n=function(t){var e;function n(e){e=t.call(this,e)||this;return i(o(e),"_forceFlag",void 0),i(o(e),"_node",void 0),e._forceFlag=!1,e}e=t,(r=n).prototype=Object.create(e.prototype),(r.prototype.constructor=r).__proto__=e;var r=n.prototype;return r.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;c(t)||s(!1);return n?(n=t,!(u?"\n"===n.textContent:"BR"===n.tagName)):t.textContent!==e.children},r.componentDidMount=function(){this._forceFlag=!this._forceFlag},r.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},r.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},u?a.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):a.createElement("br",{key:"A","data-text":"true",ref:e})):(e=function(e){return t._node=e},u?a.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):a.createElement("br",{key:"B","data-text":"true",ref:e})):a.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},n}(a.Component);e.exports=n},function(e,t,n){"use strict";var i=n(71),s=n(63),r=n(11),d=n(44),c=n(72),h=n(34),o=n(7),a=n(20),u=r.isBrowser("IE");function l(e,t){return e?(e=function e(t,n){var r=void 0!==n?n(t):[];{var o;if(t.nodeType===Node.TEXT_NODE)return o=t.textContent.length,h(t).createTextNode("[text "+o+(r.length?" | "+r.join(", "):"")+"]")}var i=t.cloneNode();1===i.nodeType&&r.length&&i.setAttribute("data-labels",r.join(", "));var a=t.childNodes;for(var s=0;s<a.length;s++)i.appendChild(e(a[s],n));return i}(e,t)).nodeType===Node.TEXT_NODE?e.textContent:(a(e)||o(!1),e.outerHTML):"[empty]"}function f(e,t){for(var n=e,r=n;n;){if(a(n)&&r.hasAttribute("contenteditable"))return l(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function p(e){return(null===e.nodeValue?e.childNodes:e.nodeValue).length}function y(n,t,r,o){var i=c();if(n.extend&&null!=t&&d(i,t)){r>p(t)&&s.logSelectionStateFailure({anonymizedDom:f(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(o.toJS())});var a=t===n.focusNode;try{0<n.rangeCount&&n.extend&&n.extend(t,r)}catch(e){throw s.logSelectionStateFailure({anonymizedDom:f(t,function(e){var t=[];return e===i&&t.push("active element"),e===n.anchorNode&&t.push("selection anchor node"),e===n.focusNode&&t.push("selection focus node"),t}),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:t===n.focusNode,nodeWasFocus:a,selectionRangeCount:n.rangeCount,selectionAnchorNodeName:n.anchorNode?n.anchorNode.nodeName:null,selectionAnchorOffset:n.anchorOffset,selectionFocusNodeName:n.focusNode?n.focusNode.nodeName:null,selectionFocusOffset:n.focusOffset,message:e?""+e:null,offset:r},null,2),selectionState:JSON.stringify(o.toJS(),null,2)}),e}}else t&&0<n.rangeCount&&((a=n.getRangeAt(0)).setEnd(t,r),n.addRange(a.cloneRange()))}function g(e,t,n,r){var o=h(t).createRange();if(n>p(t)&&(s.logSelectionStateFailure({anonymizedDom:f(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),i.handleExtensionCausedError()),o.setStart(t,n),u)try{e.addRange(o)}catch(e){}else e.addRange(o)}e.exports={setDraftEditorSelection:function(e,t,n,r,o){var i,a,s,c,u,l,f,p=h(t);d(p.documentElement,t)&&(p=p.defaultView.getSelection(),f=e.getAnchorKey(),i=e.getAnchorOffset(),l=e.getFocusKey(),a=e.getFocusOffset(),s=e.getIsBackward(),!p.extend&&s&&(u=f,c=i,f=l,i=a,l=u,a=c,s=!1),u=l===n&&r<=a&&a<=o,(c=f===n&&r<=i&&i<=o)&&u?(p.removeAllRanges(),g(p,t,i-r,e),y(p,t,a-r,e)):s?(u&&(p.removeAllRanges(),g(p,t,a-r,e)),c&&(l=p.focusNode,f=p.focusOffset,p.removeAllRanges(),g(p,t,i-r,e),y(p,l,f,e))):(c&&(p.removeAllRanges(),g(p,t,i-r,e)),u&&y(p,t,a-r,e)))},addFocusToSelection:y}},function(e,t,n){"use strict";var r=n(137);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t,n){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";var r=n(139),o=n(140);function i(e){return null==e?e:String(e)}e.exports=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return i(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return i(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):i(e.style&&e.style[r(t)])}},function(e,t,n){"use strict";var r=/-(.)/g;e.exports=function(e){return e.replace(r,function(e,t){return t.toUpperCase()})}},function(e,t,n){"use strict";var r=/([A-Z])/g;e.exports=function(e){return e.replace(r,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(44);e.exports=function(e){var t=e.ownerDocument.documentElement;return"getBoundingClientRect"in e&&r(t,e)?(e=e.getBoundingClientRect(),{left:Math.round(e.left)-t.clientLeft,right:Math.round(e.right)-t.clientLeft,top:Math.round(e.top)-t.clientTop,bottom:Math.round(e.bottom)-t.clientTop}):{left:0,right:0,top:0,bottom:0}}},function(e,t,n){"use strict";var r="undefined"!=typeof navigator&&-1<navigator.userAgent.indexOf("AppleWebKit");e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:r||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t,n){"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t,n){"use strict";var r=n(17);function L(){return(L=r||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function F(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}var z=n(75),B=n(15),K=n(0),H=n(19),U=n(145),q=n(10),n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(r=n).prototype=Object.create(t.prototype),(r.prototype.constructor=r).__proto__=t;var r=n.prototype;return r.shouldComponentUpdate=function(e){var t,n,r,o,i,a=this.props.editorState,e=e.editorState;return a.getDirectionMap()!==e.getDirectionMap()||(a.getSelection().getHasFocus()!==e.getSelection().getHasFocus()||(r=e.getNativelyRenderedContent(),t=a.isInCompositionMode(),n=e.isInCompositionMode(),!(a===e||null!==r&&e.getCurrentContent()===r||t&&n)&&(r=a.getCurrentContent(),o=e.getCurrentContent(),a=a.getDecorator(),i=e.getDecorator(),t!==n||r!==o||a!==i||e.mustForceSelection())))},r.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleMap,i=e.customStyleFn,a=e.editorState,s=e.editorKey,c=e.preventScroll,u=e.textDirectionality,l=a.getCurrentContent(),f=a.getSelection(),p=a.mustForceSelection(),d=a.getDecorator(),h=q(a.getDirectionMap()),y=l.getBlocksAsArray(),g=[],m=null,v=null,b=0;b<y.length;b++){var _=y[b],w=_.getKey(),S=_.getType(),E=n(_),C=void 0,O=void 0,x=void 0,E=(E&&(C=E.component,O=E.props,x=E.editable),u||h.get(w)),k=B.encode(w,0,0),O={contentState:l,block:_,blockProps:O,blockStyleFn:r,customStyleMap:o,customStyleFn:i,decorator:d,direction:E,forceSelection:p,offsetKey:k,preventScroll:c,selection:f,tree:a.getBlockTree(w)},D=t.get(S)||t.get("unstyled"),j=D.wrapper,D=D.element||t.get("unstyled").element,T=_.getDepth(),I="",S=(r&&(I=r(_)),"li"===D&&(I=U(I,H({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===S,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===S,"public/DraftStyleDefault/reset":v!==j||null===m||m<T,"public/DraftStyleDefault/depth0":0===T,"public/DraftStyleDefault/depth1":1===T,"public/DraftStyleDefault/depth2":2===T,"public/DraftStyleDefault/depth3":3===T,"public/DraftStyleDefault/depth4":4<=T,"public/DraftStyleDefault/listLTR":"LTR"===E,"public/DraftStyleDefault/listRTL":"RTL"===E}))),C||z),T={className:I,"data-block":!0,"data-editor":s,"data-offset-key":k,key:w},E=(void 0!==x&&(T=F({},T,{contentEditable:x,suppressContentEditableWarning:!0})),K.createElement(D,T,K.createElement(S,L({},O,{key:w}))));g.push({block:E,wrapperTemplate:j,key:w,offsetKey:k}),m=j?_.getDepth():null,v=j}for(var M=[],N=0;N<g.length;){var A=g[N];if(A.wrapperTemplate){for(var P=[];P.push(g[N].block),++N<g.length&&g[N].wrapperTemplate===A.wrapperTemplate;);var R=K.cloneElement(A.wrapperTemplate,{key:A.key+"-wrap","data-offset-key":A.offsetKey},P);M.push(R)}else M.push(A.block),N++}return K.createElement("div",{"data-contents":"true"},M)},n}(K.Component);e.exports=n},function(e,t,n){"use strict";e.exports=function(e){var t=e||"",n=arguments.length;if(1<n)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}},function(e,t,n){"use strict";var i=n(76),a=n(9),s=n(8),c=n(33),u=n(34),l=n(78),f=n(67),r=n(61),p=n(38),d=n(10);function h(e){e._internalDrag=!1;var t,e=e.editorContainer;e&&(t=new MouseEvent("mouseup",{view:r(e),bubbles:!0,cancelable:!0}),e.dispatchEvent(t))}function y(e,t,n){t=a.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return s.push(e,t,"insert-fragment")}e.exports={onDragEnd:function(e){e.exitCurrentMode(),h(e)},onDrop:function(t,e){var n=new i(e.nativeEvent.dataTransfer),r=t._latestEditorState,o=function(e,t){var n=null,r=null,o=u(e.currentTarget);if("function"==typeof o.caretRangeFromPoint)o=o.caretRangeFromPoint(e.x,e.y),n=o.startContainer,r=o.startOffset;else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}return n=d(n),r=d(r),o=d(c(n)),f(t,o,r,o,r)}(e.nativeEvent,r);if(e.preventDefault(),t._dragCount=0,t.exitCurrentMode(),null!=o){e=n.getFiles();if(0<e.length)return t.props.handleDroppedFiles&&p(t.props.handleDroppedFiles(o,e))?void 0:void l(e,function(e){e&&t.update(y(r,o,e))});e=t._internalDrag?"internal":"external";t.props.handleDrop&&p(t.props.handleDrop(o,n,e))||(t._internalDrag?t.update(function(e,t){t=a.moveText(e.getCurrentContent(),e.getSelection(),t);return s.push(e,t,"insert-fragment")}(r,o)):t.update(y(r,o,n.getText()))),h(t)}}}},function(e,t,n){"use strict";var r={isImage:function(e){return"image"===o(e)[0]},isJpeg:function(e){var t=o(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function o(e){return e.split("/")}e.exports=r},function(e,t,n){"use strict";var a=n(7);e.exports=function(e){if(!(r=e)||"object"!=typeof r&&"function"!=typeof r||!("length"in r)||"setInterval"in r||"number"==typeof r.nodeType||!(Array.isArray(r)||"callee"in r||"item"in r))return[e];if(Array.isArray(e))return e.slice();var t=e,n=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&a(!1),"number"!=typeof n&&a(!1),0===n||n-1 in t||a(!1),"function"==typeof t.callee&&a(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(e){}for(var r,o=Array(n),i=0;i<n;i++)o[i]=t[i];return o}},function(e,t,n){"use strict";var r=n(11),o=n(150),i=n(155),a=n(156),s=n(157),c=n(158),u=n(160),l=n(161),f=n(162),p=n(163),d=n(164),h=n(178),n=n(62),y=r.isBrowser("Chrome"),r=r.isBrowser("Firefox"),y=y||r?n:function(e){};e.exports={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:s,onCut:c,onDragOver:u,onDragStart:l,onFocus:f,onInput:p,onKeyDown:d,onPaste:h,onSelect:n,onMouseUp:y,onKeyUp:y}},function(e,t,n){"use strict";var i=n(9),c=n(8),r=n(11),f=n(43),p=n(38),d=n(151),h=n(10),y=n(152),g="'",m="/",v=r.isBrowser("Firefox");function b(e,t,n,r,o){t=i.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return c.push(e,t,"insert-characters",o)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var u,n,r,o,i,a,s=e._latestEditorState,l=t.data;l&&(e.props.handleBeforeInput&&p(e.props.handleBeforeInput(l,s,t.timeStamp))?t.preventDefault():(r=s.getSelection(),u=r.getStartOffset(),n=r.getAnchorKey(),r.isCollapsed()?(r=b(s,l,s.getCurrentInlineStyle(),f(s.getCurrentContent(),s.getSelection()),!1),(i=(i=!1)||d(e._latestCommittedEditorState))||(a=s.getBlockTree(n),o=r.getBlockTree(n),i=a.size!==o.size||a.zip(o).some(function(e){var t=e[0],e=e[1],n=t.get("start"),r=n+(u<=n?l.length:0),o=t.get("end"),i=o+(u<=o?l.length:0),a=e.get("start"),s=e.get("end"),c=e.get("decoratorKey");return t.get("decoratorKey")!==c||t.get("leaves").size!==e.get("leaves").size||r!==a||i!==s||null!=c&&s-a!=o-n})),i||(a=l,i=v&&(a==g||a==m)),(i=i||h(r.getDirectionMap()).get(n)!==h(s.getDirectionMap()).get(n))?(t.preventDefault(),r=c.set(r,{forceSelection:!0}),e.update(r)):(r=c.set(r,{nativelyRenderedContent:r.getCurrentContent()}),e._pendingStateFromBeforeInput=r,y(function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))):(t.preventDefault(),e.update(b(s,l,s.getCurrentInlineStyle(),f(s.getCurrentContent(),s.getSelection()),!0)))))}},function(e,t,n){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),e=e.getBlockTree(n),r=t.getStartOffset(),o=!1;return e.some(function(e){return r===e.get("start")?o=!0:r<e.get("end")&&e.get("leaves").some(function(e){e=e.get("start");return r===e&&(o=!0)})}),o}},function(t,e,n){"use strict";!function(e){n(153),t.exports=e.setImmediate}.call(this,n(23))},function(e,t,n){!function(e,d){!function(n,i){"use strict";var r,a,s,o,c,u,t,e;function l(e){delete a[e]}function f(e){if(s)setTimeout(f,0,e);else{var t=a[e];if(t){s=!0;try{var n=t,r=n.callback,o=n.args;switch(o.length){case 0:r();break;case 1:r(o[0]);break;case 2:r(o[0],o[1]);break;case 3:r(o[0],o[1],o[2]);break;default:r.apply(i,o)}}finally{l(e),s=!1}}}}function p(){function e(e){e.source===n&&"string"==typeof e.data&&0===e.data.indexOf(t)&&f(+e.data.slice(t.length))}var t="setImmediate$"+Math.random()+"$";n.addEventListener?n.addEventListener("message",e,!1):n.attachEvent("onmessage",e),c=function(e){n.postMessage(t+e,"*")}}n.setImmediate||(r=1,s=!(a={}),o=n.document,e=(e=Object.getPrototypeOf&&Object.getPrototypeOf(n))&&e.setTimeout?e:n,"[object process]"==={}.toString.call(n.process)?c=function(e){d.nextTick(function(){f(e)})}:!function(){var e,t;if(n.postMessage&&!n.importScripts)return e=!0,t=n.onmessage,n.onmessage=function(){e=!1},n.postMessage("","*"),n.onmessage=t,e}()?c=n.MessageChannel?((t=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){t.port2.postMessage(e)}):o&&"onreadystatechange"in o.createElement("script")?(u=o.documentElement,function(e){var t=o.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,u.removeChild(t),t=null},u.appendChild(t)}):function(e){setTimeout(f,0,e)}:p(),e.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];return a[r]={callback:e,args:t},c(r),r++},e.clearImmediate=l)}("undefined"==typeof self?void 0===e?this:e:self)}.call(this,n(23),n(154))},function(e,t){var n,r,e=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return(n=setTimeout)(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}var s,c=[],u=!1,l=-1;function f(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&p())}function p(){if(!u){for(var e=a(f),t=(u=!0,c.length);t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,u=!1,!function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return(r=clearTimeout)(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function h(){}e.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new d(e,t)),1!==c.length||u||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=h,e.addListener=h,e.once=h,e.off=h,e.removeListener=h,e.removeAllListeners=h,e.emit=h,e.prependListener=h,e.prependOnceListener=h,e.listeners=function(e){return[]},e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}},function(e,t,n){"use strict";var o=n(8),i=n(44),a=n(72);e.exports=function(e,t){var n=t.currentTarget.ownerDocument,r=(Boolean(e.props.preserveSelectionOnBlur)||a(n)!==n.body||(n=n.defaultView.getSelection(),r=e.editor,1===n.rangeCount&&i(r,n.anchorNode)&&i(r,n.focusNode)&&n.removeAllRanges()),e._latestEditorState);(n=r.getSelection()).getHasFocus()&&(n=n.set("hasFocus",!1),e.props.onBlur&&e.props.onBlur(t),e.update(o.acceptSelection(r,n)))}},function(e,t,n){"use strict";var r=n(8);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},function(e,t,n){"use strict";var r=n(79);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},function(e,t,n){"use strict";var a=n(9),s=n(8),c=n(36),u=n(79),l=n(37),f=n(159);e.exports=function(n,e){var r,o=n._latestEditorState,t=o.getSelection(),i=e.target;t.isCollapsed()?e.preventDefault():(f(i)&&(r=l(c.getScrollParent(i))),t=u(o),n.setClipboard(t),n.setMode("cut"),setTimeout(function(){var e,t;n.restoreEditorDOM(r),n.exitCurrentMode(),n.update((e=o,t=a.removeRange(e.getCurrentContent(),e.getSelection(),"forward"),s.push(e,t,"remove-range")))},0))}},function(e,t,n){"use strict";e.exports=function(e){if(e&&"ownerDocument"in e&&"ownerDocument"in e){if(!e.ownerDocument.defaultView)return e instanceof Node;if(e instanceof e.ownerDocument.defaultView.Node)return!0}return!1}},function(e,t,n){"use strict";e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},function(e,t,n){"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},function(e,t,n){"use strict";var o=n(8),i=n(11);e.exports=function(e,t){var n=e._latestEditorState,r=n.getSelection();r.getHasFocus()||(r=r.set("hasFocus",!0),e.props.onFocus&&e.props.onFocus(t),i.isBrowser("Chrome < 60.0.3081.0")?e.update(o.forceSelection(n,r)):e.update(o.acceptSelection(n,r)))}},function(e,t,n){"use strict";var _=n(9),w=n(15),S=n(8),r=n(11),E=n(68).notEmptyKey,C=n(33),O=n(80),x=n(10),k=r.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var s=a.firstChild;null!=s;s=s.nextSibling)s!==r&&a.removeChild(s)}var i=r.textContent,c=e._latestEditorState,u=x(C(r)),u=w.decode(u),l=u.blockKey,f=u.decoratorKey,u=u.leafKey,f=c.getBlockTree(l).getIn([f,"leaves",u]),u=f.start,f=f.end,p=c.getCurrentContent(),l=p.getBlockForKey(l),d=l.getText().slice(u,f);if((i=i.endsWith("\n\n")?i.slice(0,-1):i)===d){t=t.nativeEvent.inputType;if(t){v=c;t="deleteContentBackward"===t?O(v):v;if(t!==c)return e.restoreEditorDOM(),void e.update(t)}}else{var h,y,g,m,v=c.getSelection(),t=v.merge({anchorOffset:u,focusOffset:f,isBackward:!1}),f=l.getEntityAt(u),f=E(f)?p.getEntity(f):null,f="MUTABLE"===(null!=f?f.getMutability():null),b=f?"spellcheck-change":"apply-entity",t=_.replaceText(p,t,i,l.getInlineStyleAt(u),f?l.getEntityAt(u):null),l=(m=k?(g=n.anchorOffset,m=n.focusOffset,y=(h=u+Math.min(g,m))+Math.abs(g-m),g=h,y):(f=i.length-d.length,h=v.getStartOffset(),y=v.getEndOffset(),g=o?y+f:h,y+f),t.merge({selectionBefore:p.getSelectionAfter(),selectionAfter:v.merge({anchorOffset:g,focusOffset:m})}));e.update(S.push(c,l,b))}}}},function(e,t,n){"use strict";var a=n(9),s=n(8),r=n(48),c=n(35),u=n(166),o=n(11),l=n(38),f=n(167),p=n(169),d=n(171),h=n(172),y=n(173),g=n(174),m=n(80),v=n(175),b=n(176),_=n(177),w=r.isOptionKeyCommand,S=o.isBrowser("Chrome");e.exports=function(t,n){var e=n.which,r=t._latestEditorState;function o(e){e=t.props[e];return e&&(e(n),1)}switch(e){case c.RETURN:if(n.preventDefault(),t.props.handleReturn&&l(t.props.handleReturn(n,r)))return;break;case c.ESC:if(n.preventDefault(),o("onEscape"))return;break;case c.TAB:if(o("onTab"))return;break;case c.UP:if(o("onUpArrow"))return;break;case c.RIGHT:if(o("onRightArrow"))return;break;case c.DOWN:if(o("onDownArrow"))return;break;case c.LEFT:if(o("onLeftArrow"))return;break;case c.SPACE:S&&w(n)&&n.preventDefault()}var i=t.props.keyBindingFn(n);null==i||""===i?e===c.SPACE&&S&&w(n)&&(e=a.replaceText(r.getCurrentContent(),r.getSelection()," "),t.update(s.push(r,e,"insert-characters"))):"undo"===i?_(n,r,t.update):(n.preventDefault(),t.props.handleKeyCommand&&l(t.props.handleKeyCommand(i,r,n.timeStamp))||(e=function(e,t,n){switch(e){case"redo":return s.redo(t);case"delete":return v(t);case"delete-word":return d(t);case"backspace":return m(t);case"backspace-word":return p(t);case"backspace-to-start-of-line":return f(t,n);case"split-block":return h(t);case"transpose-characters":return b(t);case"move-selection-to-start-of-block":return g(t);case"move-selection-to-end-of-block":return y(t);case"secondary-cut":return u.cut(t);case"secondary-paste":return u.paste(t);default:return t}}(i,r,n))!==r&&t.update(e))}},function(e,t,n){"use strict";var r=n(35);e.exports=function(e){return e.which===r.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}},function(e,t,n){"use strict";var a=n(9),s=n(8),c=n(29),u=n(10),l=null;e.exports={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){o=t.getKeyAfter(o);if(null==o)return e;r=n.set("focusKey",o).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=u(r),l=c(t,r);o=a.removeRange(t,r,"forward");return o===t?e:s.push(e,o,"remove-range")},paste:function(e){var t;return l?(t=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),l),s.push(e,t,"insert-fragment")):e}}},function(e,t,n){"use strict";var r=n(8),o=n(168),i=n(66),a=n(46),s=n(28);e.exports=function(e,n){var t=s(e,function(e){var t=e.getSelection();return t.isCollapsed()&&0===t.getAnchorOffset()?a(e,1):(t=n.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0),t=o(t),i(e,null,t.endContainer,t.endOffset,t.startContainer,t.startOffset).selectionState)},"backward");return t===e.getCurrentContent()?e:r.push(e,t,"remove-range")}},function(e,t,n){"use strict";var u=n(21),l=n(34),f=n(81),p=n(7);function d(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}e.exports=function(e){e.collapsed||p(!1);var t=(e=e.cloneRange()).startContainer,n=function(e){var t=getComputedStyle(e),n=(e=l(e)).createElement("div");n.style.fontFamily=t.fontFamily,n.style.fontSize=t.fontSize,n.style.fontStyle=t.fontStyle,n.style.fontWeight=t.fontWeight,n.style.lineHeight=t.lineHeight,n.style.position="absolute",n.textContent="M";(t=e.body)||p(!1),t.appendChild(n),e=n.getBoundingClientRect();return t.removeChild(n),e.height}(t=1!==t.nodeType?t.parentNode:t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);d(f(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||p(!1),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var s=i.nodeValue,c=a;0<=c;c--)if(!(null!=s&&0<c&&u.isSurrogatePair(s,c-1))){if(e.setStart(i,c),!d(f(e),n))break;r=i,o=c}if(-1===c||0===i.childNodes.length)break;a=function(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}(i=i.childNodes[c])}return e.setStart(r,o),e}},function(e,t,n){"use strict";var r=n(82),o=n(8),i=n(46),a=n(28);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset();return 0===n?i(e,1):(t=t.getStartKey(),t=e.getCurrentContent().getBlockForKey(t).getText().slice(0,n),n=r.getBackward(t),i(e,n.length||1))},"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(82),o=n(8),i=n(83),a=n(28);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset(),t=t.getStartKey(),t=e.getCurrentContent().getBlockForKey(t).getText().slice(n),n=r.getForward(t);return i(e,n.length||1)},"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";var r=n(9),o=n(8);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},function(e,t,n){"use strict";var o=n(8);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return o.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(8);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(8),o=n(21),i=n(83),a=n(28);e.exports=function(e){var t,n=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),t=t.getAnchorOffset(),n=n.getBlockForKey(r).getText()[t];return i(e,n?o.getUTF16Length(n,0):1)},"forward");return n===e.getCurrentContent()?e:(t=e.getSelection(),r.push(e,n.set("selectionBefore",t),t.isCollapsed()?"delete-character":"remove-range"))}},function(e,t,n){"use strict";var a=n(9),s=n(8),c=n(29);e.exports=function(e){var t,n,r,o,i=e.getSelection();return!i.isCollapsed()||0===(o=i.getAnchorOffset())||(t=i.getAnchorKey(),(t=(n=e.getCurrentContent()).getBlockForKey(t).getLength())<=1)?e:(t=o===t?(r=i.set("anchorOffset",o-1),i):(r=i.set("focusOffset",o+1)).set("anchorOffset",o+1),i=c(n,r),r=(n=(o=a.removeRange(n,r,"backward")).getSelectionAfter()).getAnchorOffset()-1,n=n.merge({anchorOffset:r,focusOffset:r}),r=a.replaceWithFragment(o,n,i),o=s.push(e,r,"insert-fragment"),s.acceptSelection(o,t))}},function(e,t,n){"use strict";var i=n(8);e.exports=function(e,t,n){var r,o=i.undo(t);"spellcheck-change"===t.getLastChangeType()?(r=o.getCurrentContent(),n(i.set(o,{nativelyRenderedContent:r}))):(e.preventDefault(),t.getNativelyRenderedContent()?(n(i.set(t,{nativelyRenderedContent:null})),setTimeout(function(){n(o)},0)):n(o))}},function(e,t,n){"use strict";var l=n(25),f=n(12),p=n(76),d=n(9),h=n(179),y=n(8),g=n(86),m=n(43),v=n(78),b=n(38),_=n(184);function w(e,t,n){t=d.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return y.push(e,t.set("entityMap",n),"insert-fragment")}e.exports=function(o,e){if(e.preventDefault(),!(e=new p(e.clipboardData)).isRichText()){var t=e.getFiles(),i=e.getText();if(0<t.length)return o.props.handlePastedFiles&&b(o.props.handlePastedFiles(t))?void 0:void v(t,function(e){var t,n,r;(e=e||i)&&(t=o._latestEditorState,e=_(e),n=f.create({style:t.getCurrentInlineStyle(),entity:m(t.getCurrentContent(),t.getSelection())}),r=g.getCurrentBlockType(t),e=h.processText(e,n,r),n=l.createFromArray(e),r=d.replaceWithFragment(t.getCurrentContent(),t.getSelection(),n),o.update(y.push(t,r,"insert-fragment")))})}var n,t=[],r=e.getText(),a=e.getHTML(),s=o._latestEditorState;if(o.props.formatPastedText&&(r=(u=o.props.formatPastedText(r,a)).text,a=u.html),!o.props.handlePastedText||!b(o.props.handlePastedText(r,a,s))){if(r&&(t=_(r)),!o.props.stripPastedStyles){var c,u=o.getClipboard();if(!o.props.formatPastedText&&e.isRichText()&&u){if(-1!==(null==(c=a)?void 0:c.indexOf(o.getEditorKey()))||1===t.length&&1===u.size&&u.first().getText()===r)return void o.update(w(o._latestEditorState,u))}else if(u&&e.types.includes("com.apple.webarchive")&&!e.types.includes("text/html")&&(c=u,(n=t).length===c.size&&c.valueSeq().every(function(e,t){return e.getText()===n[t]})))return void o.update(w(o._latestEditorState,u));if(a){var r=h.processHTML(a,o.props.blockRenderMap);if(r){var e=r.contentBlocks,u=r.entityMap;if(e)return a=l.createFromArray(e),void o.update(w(o._latestEditorState,a,u))}}o.setClipboard(null)}t.length&&(r=f.create({style:s.getCurrentInlineStyle(),entity:m(s.getCurrentContent(),s.getSelection())}),e=g.getCurrentBlockType(s),a=h.processText(t,r,e),u=l.createFromArray(a),o.update(w(o._latestEditorState,u)))}}},function(e,t,n){"use strict";function a(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}var r=n(18),o=n(13),i=n(84),s=n(14),c=n(85),u=n(16),l=n(6),f=n(58),p=l.List,d=l.Repeat,h=u("draft_tree_data_support"),y=h?o:r;e.exports={processHTML:function(e,t){return i(e,c,t)},processText:function(e,o,i){return e.reduce(function(e,t,n){t=f(t);var r=s(),t={key:r,type:i,text:t,characterList:p(d(o,t.length))};return h&&0!==n&&(t=a({},t,{prevSibling:(e[n=n-1]=e[n].merge({nextSibling:r})).getKey()})),e.push(new y(t)),e},[])}}},function(e,t,n){"use strict";var r=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();e.exports=r},function(e,t,n){"use strict";var r=n(20);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"A"===e.nodeName)}},function(e,t,n){"use strict";var r=n(20);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"IMG"===e.nodeName)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=(s=e.getBlockMap()).toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===i}).concat([[i,s.get(i)]]).map(function(e){var t=e.getDepth()+n,t=Math.max(0,Math.min(t,r));return e.set("depth",t)}),s=s.merge(a);return e.merge({blockMap:s,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=/\r\n?|\n/g;e.exports=function(e){return e.split(r)}},function(e,t,n){"use strict";n=n(22).unstable_flushControlled;e.exports=n},function(e,t,n){"use strict";var o=n(0),i=n(19),n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(r=n).prototype=Object.create(t.prototype),(r.prototype.constructor=r).__proto__=t;var r=n.prototype;return r.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},r.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),e=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return o.createElement("div",{className:e},o.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},n}(o.Component);e.exports=n},function(e,t,n){},function(e,t,n){"use strict";function i(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}function a(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:o(e),entityRanges:r(e,t),data:e.getData().toObject()}}var s=n(18),c=n(13),l=n(88),r=n(189),o=n(190),u=n(7),f=function(e,t,n,r){var o;e instanceof s?n.push(a(e,t)):(e instanceof c||u(!1),o=e.getParentKey(),e=r[e.getKey()]=i({},a(e,t),{children:[]}),(o?r[o].children:n).push(e))};e.exports=function(e){var r,t,o,i,a,n,s,c,u={entityMap:{},blocks:[]};return r=u.entityMap,t=[],o={},i={},a=0,e.getBlockMap().forEach(function(n){n.findEntityRanges(function(e){return null!==e.getEntity()},function(e){var e=n.getEntityAt(e),t=l.stringify(e);i[t]||(i[t]=e,r[t]="".concat(a),a++)}),f(n,r,t,o)}),n=e,e=u={blocks:t,entityMap:r},s=u.blocks,e=u.entityMap,c={},Object.keys(e).forEach(function(e,t){e=n.getEntity(l.unstringify(e));c[t]={type:e.getType(),mutability:e.getMutability(),data:e.getData()}}),u={blocks:s,entityMap:c}}},function(e,t,n){"use strict";var s=n(88),c=n(21).strlen;e.exports=function(o,i){var a=[];return o.findEntityRanges(function(e){return!!e.getEntity()},function(e,t){var n=o.getText(),r=o.getEntityAt(e);a.push({offset:c(n.slice(0,e)),length:c(n.slice(e,t)),key:Number(i[s.stringify(r)])})}),a}},function(e,t,n){"use strict";var a=n(21),s=n(26),c=function(e,t){return e===t},u=function(e){return!!e},r=[];e.exports=function(t){var n=t.getCharacterList().map(function(e){return e.getStyle()}).toList(),e=n.flatten().toSet().map(function(e){return r=t,o=e,i=[],e=(e=n).map(function(e){return e.has(o)}).toList(),s(e,c,u,function(e,t){var n=r.getText();i.push({offset:a.strlen(n.slice(0,e)),length:a.strlen(n.slice(e,t)),style:o})}),i;var r,o,i});return Array.prototype.concat.apply(r,e.toJS())}},function(e,t,n){"use strict";function p(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}function d(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||m(),data:E(o),characterList:i(e,t)}}function i(e,t){var n=e.text,r=e.entityRanges,e=e.inlineStyleRanges,r=r||[];return o(f(n,e||[]),a(n,r.filter(function(e){return t.hasOwnProperty(e.key)}).map(function(e){return p({},e,{key:t[e.key]})})))}function h(e){return p({},e,{key:e.key||m()})}function y(e,t,n){return t=t.map(function(e){return p({},e,{parentRef:n})}),e.concat(t.reverse())}var r=n(18),g=n(13),s=n(40),c=n(30),u=n(192),l=(n(193),n(31)),o=n(194),a=n(195),f=n(196),m=n(14),v=n(16),b=n(6),_=n(7),w=v("draft_tree_data_support"),S=b.List,E=b.Map,C=b.OrderedMap,O=function(l,f){return l.map(h).reduce(function(e,t,n){Array.isArray(t.children)||_(!1);for(var r=t.children.map(h),t=new g(p({},d(t,f),{prevSibling:0===n?null:l[n-1].key,nextSibling:n===l.length-1?null:l[n+1].key,children:S(r.map(function(e){return e.key}))})),o=(e=e.set(t.getKey(),t),y([],r,t));0<o.length;){var i=o.pop(),a=i.parentRef,s=a.getChildKeys(),c=s.indexOf(i.key),u=Array.isArray(i.children);if(!u){_(!1);break}u=i.children.map(h),i=new g(p({},d(i,f),{parent:a.getKey(),children:S(u.map(function(e){return e.key})),prevSibling:0===c?null:s.get(c-1),nextSibling:c===s.size-1?null:s.get(c+1)}));e=e.set(i.getKey(),i),o=y(o,u,i)}return e},C())},x=function(e,t){return C(e.map(function(e){e=new r(d(e,t));return[e.getKey(),e]}))};e.exports=function(e){Array.isArray(e.blocks)||_(!1);o=e.entityMap,i={},Object.keys(o).forEach(function(e){var t=o[e],n=t.type,r=t.mutability,t=t.data;i[e]=c.__create(n,r,t||{})});var o,i,t,n,r=i,a=(t=r,a=(e=e).blocks.find(function(e){return Array.isArray(e.children)&&0<e.children.length}),n=(w&&!a?u.fromRawStateToRawTreeState(e):e).blocks,w?O(n,t):x(a?u.fromRawTreeStateToRawState(e).blocks:n,t)),e=a.isEmpty()?new l:l.createEmpty(a.first().getKey());return new s({blockMap:a,entityMap:r,selectionBefore:e,selectionAfter:e})}},function(e,t,n){"use strict";function s(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}function c(e){return!(!e||!e.type)&&("unordered-list-item"===(e=e.type)||"ordered-list-item"===e)}var u=n(14),a=n(7);e.exports={fromRawTreeStateToRawState:function(e){var t=e.blocks,r=[];if(Array.isArray(t)||a(!1),!Array.isArray(t)||!t.length)return e;for(var n=function(e){var t,n=s({},e);c(e)&&(n.depth=n.depth||0,t=e,Array.isArray(t.children)&&(t.children=t.children.map(function(e){return e.type===t.type?s({},e,{depth:(t.depth||0)+1}):e})),null!=e.children&&0<e.children.length)||(delete n.children,r.push(n))},o=[].concat(t).reverse();o.length;){var i=o.pop(),i=(n(i),i.children);Array.isArray(i)||a(!1),o=o.concat([].concat(i.reverse()))}return e.blocks=r,s({},e,{blocks:r})},fromRawStateToRawTreeState:function(e){var i=[],a=[];return e.blocks.forEach(function(e){var t=c(e),n=e.depth||0,r=s({},e,{children:[]});if(t){var o=a[0];if(null==o&&0===n)i.push(r);else if(null==o||o.depth<n-1){t={key:u(),text:"",depth:n-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};a.unshift(t),1===n?i.push(t):null!=o&&o.children.push(t),t.children.push(r)}else if(o.depth===n-1)o.children.push(r);else{for(;null!=o&&o.depth>=n;)a.shift(),o=a[0];(0<n?o.children:i).push(r)}}else i.push(r)}),s({},e,{blocks:i})}}},function(e,t,n){"use strict";n(47);e.exports={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map(function(e){return t.get(e)}).every(function(e){return e.getParentKey()===n}))return!1;r=e.getPrevSiblingKey();if(null!=r&&t.get(r).getNextSiblingKey()!==n)return!1;var o=e.getNextSiblingKey();if(null!=o&&t.get(o).getPrevSiblingKey()!==n)return!1;return(null===o||null===r||r!==o)&&!(""!=e.text&&0<e.getChildKeys().size)},isConnectedTree:function(t){var e=t.toArray().filter(function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()});if(1!==e.length)return!1;for(var n=0,r=e.shift().getKey(),o=[];null!=r;){var i=t.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(0<a.size){null!=s&&o.unshift(s);s=a.map(function(e){return t.get(e)}).find(function(e){return null==e.getPrevSiblingKey()});if(null==s)return!1;r=s.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===t.size},isValidTree:function(t){var n=this;return!!t.toArray().every(function(e){return n.isValidBlock(e,t)})&&this.isConnectedTree(t)}}},function(e,t,n){"use strict";var r=n(12),o=n(6).List;e.exports=function(e,n){return e=e.map(function(e,t){t=n[t];return r.create({style:e,entity:t})}),o(e)}},function(e,t,n){"use strict";var a=n(21).substr;e.exports=function(o,e){var i=Array(o.length).fill(null);return e&&e.forEach(function(e){for(var t=a(o,0,e.offset).length,n=t+a(o,e.offset,e.length).length,r=t;r<n;r++)i[r]=e.key}),i}},function(e,t,n){"use strict";var r=n(21),n=n(6).OrderedSet,i=r.substr,a=n();e.exports=function(r,e){var o=Array(r.length).fill(a);return e&&e.forEach(function(e){for(var t=i(r,0,e.offset).length,n=t+i(r,e.offset,e.length).length;t<n;)o[t]=o[t].add(e.style),t++}),o}},function(e,t,n){"use strict";var i=n(198);e.exports=function(e){var t,n,r,o;return!(e=e.getSelection()).rangeCount||(e=e.getRangeAt(0),t=(e=i(e)).top,n=e.right,r=e.bottom,o=e.left,0===t&&0===n&&0===r&&0===o)?null:e}},function(e,t,n){"use strict";var c=n(81);e.exports=function(e){var t=c(e),n=0,r=0,o=0,i=0;if(t.length){i=(1<t.length&&0===t[0].width?(n=(e=t[1]).top,r=e.right,o=e.bottom,e):(n=(e=t[0]).top,r=e.right,o=e.bottom,e)).left;for(var a=1;a<t.length;a++){var s=t[a];0!==s.height&&0!==s.width&&(n=Math.min(n,s.top),r=Math.max(r,s.right),o=Math.max(o,s.bottom),i=Math.min(i,s.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}}},function(e,t,n){"use strict";var a=n(200);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a)throw(i=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")).name="Invariant Violation",i}function t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,r){"use strict";e.exports=function(e){var t={},n=(t.src_Any=r(205).source,t.src_Cc=r(206).source,t.src_Z=r(207).source,t.src_P=r(208).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),"[><|]");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.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]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t){e.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\u09FD\u0A76\u0AF0\u0C84\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-\u2E4E\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]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var n=n(216),i=(n=n)&&n.__esModule?n:{default:n};r(a,[{key:"getCurrentContent",value:function(){return this.content[this.content.length-1]}},{key:"addToCurrentContent",value:function(e){this.content[this.content.length-1]=this.content[this.content.length-1]+e}},{key:"handleFlatPush",value:function(e,t){var n=this.getCurrentContent();n instanceof a&&(0,i.default)(t,n.styles)?n.addToCurrentContent(e):(n=new a({styles:[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t)),content:[e]}),this.content.push(n))}},{key:"pushContent",value:function(e){var t,n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],o=2<arguments.length&&void 0!==arguments[2]&&arguments[2];return!r||r.length<1?"string"==typeof e&&"string"==typeof this.getCurrentContent()?this.addToCurrentContent(e):this.content.push(e):o?this.handleFlatPush(e,r):(r=r,t=(r=Array.isArray(r)?r:Array.from(r))[0],r=r.slice(1),(n=this.getCurrentContent())instanceof a&&n.style===t?n.pushContent(e,r,o):((n=new a({style:t})).pushContent(e,r,o),this.content.push(n))),this}}]);n=a;function a(e){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.content=e.content||[],this.start=void 0!==e.start?e.start:null,this.end=void 0!==e.end?e.end:null,this.entity=void 0!==e.entity?e.entity:null,this.decorator=void 0!==e.decorator?e.decorator:null,this.decoratorProps=e.decoratorProps||null,this.decoratedText=void 0!==e.decoratedText?e.decoratedText:null,this.contentState=e.contentState,this.style=e.style||null,this.styles=e.styles||null,this.block=e.block||{}}t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(o,i){return function(e,t,n){r=i;var r,t=t.map(function(e){return r[e]}).reduce(function(e,t){var n,r={};return void 0!==t&&t[n="text-decoration"in t?"text-decoration":"textDecoration"]!==e[n]&&(r[n]=[e[n],t[n]].join(" ").trim()),Object.assign(e,t,r)},{});return o(Object.assign({},{children:e},n,{style:t}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.render=t.renderNode=void 0;var m=r(n(89)),s=r(n(219)),v=r(n(220)),b=r(n(221)),_=r(n(222)),f=r(n(223)),w=r(n(224)),c=r(n(225));function r(e){return e&&e.__esModule?e:{default:e}}function u(e){function t(e){var t=i-e;for(o.length<t&&(t=o.length);0<t;--t){var n=r;(r=o.pop())[r.length-1].children=n}}var r=[],o=[],i=0;return e.forEach(function(e){i<e.depth?(o.push(r),r=[]):i>e.depth&&t(e.depth),i=e.depth,r.push(Object.assign({},e))}),0!==i&&t(0),r}function S(e,t,n,r,o){var i=r.prevType,a=r.prevDepth,s=r.prevKeys,r=r.prevData;0!==e.length&&((i=t[i]||t[o.blockFallback])?(t={depth:a,keys:s},r&&r.some(function(e){return!!e})&&(t.data=r),n.push(i(e,t))):n.push(e))}function E(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},a=arguments[4],s=5<arguments.length&&void 0!==arguments[5]?arguments[5]:{},c=Object.assign({},w.default,6<arguments.length&&void 0!==arguments[6]?arguments[6]:{}),u=[],l=[],f=null,p=0,d=[],h=[],y=!1,g=new m.default({flat:!!a});return e.forEach(function(e){var t,n;(0,v.default)(e,f,c)?!0===c.cleanup.split&&(y=!0):(t=g.parse(e),t=C(t,r,i,a,s,c,(0,b.default)()),(f&&f!==e.type||y)&&(S(l,o,u,{prevType:f,prevDepth:p,prevKeys:d,prevData:h},c),h=[],d=[],y=!(l=[])),e.children&&(n=E(e.children,r,o,i,a,s,c),t.push(n)),l.push(t),f=e.type,p=e.depth,d.push(e.key),h.push(e.data))}),S(l,o,u,{prevType:f,prevDepth:p,prevKeys:d,prevData:h},c),(0,_.default)(u,c)}var C=t.renderNode=function t(e,n,r,o,i,a,s){if(e.styles&&o)return o((0,_.default)(e.content,a),e.styles,{key:s()});var c=[],u=0;if(e.content.forEach(function(e){"string"==typeof e?c=(0,f.default)(e,c,u):(c[u+=1]=t(e,n,r,o,i,a,s),u+=1)}),e.style&&n[e.style])return n[e.style]((0,_.default)(c,a),{key:s()});if(null!==e.entity){var l=i[e.entity];if(l&&r[l.type])return r[l.type]((0,_.default)(c,a),l.data,{key:e.entity})}return null!==e.decorator?(l=[e.block.key,e.start,0].join("."),e.decorator(Object.assign({children:(0,_.default)(c,a),decoratedText:e.decoratedText,contentState:e.contentState,entityKey:e.entity,offsetKey:l,key:l},e.decoratorProps))):c};t.render=function(e){var t,n,r,o,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return e&&Array.isArray(e.blocks)?e.blocks.length?(t=i.inline,n=i.blocks,r=i.entities,o=i.styles,i=(i=i.decorators)?(0,c.default)(e,i,a):e.blocks,i=u(i),E(i,t,n,r,o,e.entityMap,a)):null:((0,s.default)("invalid raw object"),null)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){return!!(t.trim?e.trim():e)};t.default=function(e,t,n){var r,n=n.cleanup;return!(!n||o((r=e).text,n)||r.data&&Object.keys(r.data).length||r.entityRanges&&r.entityRanges.length)&&((!n.after||"all"===n.after||-1!==n.after.indexOf(t))&&(!(!n.except||-1!==n.except.indexOf(e.type))||!(!n.types||"all"!==n.types&&-1===n.types.indexOf(e.type))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(){var t=0;return function(){var e=t;return t+=1,e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){return Array.isArray(e)&&t.joinOutput?e.join(""):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t,n){var r=t;return t[n]?r[n]+=e:r[n]=e,r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={joinOutput:!1,cleanup:{after:["atomic"],types:["unstyled"],trim:!1,split:!0},blockFallback:"unstyled"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(90)),r=a(n(91)),i=a(n(226)),f=a(n(227));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return"function"==typeof e.getDecorations&&"function"==typeof e.getComponentForKey&&"function"==typeof e.getPropsForKey}var p=function(e,r){return e.forEach(function(e){var t=r.text.substring(0,e.offset),n=r.text.substring(e.offset,e.offset+e.length);e.offset=o.default.ucs2.decode(t).length,e.length=o.default.ucs2.decode(n).length}),e},d=function(e){var t=new r.default(e.filter(function(e){return!s(e)})),e=e.filter(s),e=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e),[t]);return new i.default(e)};t.default=function(e,c,u){var l=u.convertFromRaw&&u.convertFromRaw(e);return e.blocks.map(function(e){return e=e,t=c,r=l,n=(n=u||{}).createContentBlock,o=[],i=d(t),t=(n||f.default)(e),a=i.getDecorations(t,r),s=0,a.forEach(function(e,t){var n;e?(n=a[t=t+1])&&n===e||(o.push({offset:s,length:t-s,component:i.getComponentForKey(e),decoratorProps:i.getPropsForKey(e)||{},contentState:r}),s=t):s+=1}),Object.assign({},e,{decoratorRanges:p(o,e)});var t,r,n,o,i,a,s})}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0});function o(e){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.decorators=e}(function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)})(o,[{key:"getDecorations",value:function(t,r){var o=new Array(t.getText().length).fill(null);return this.decorators.forEach(function(e,n){e.getDecorations(t,r).forEach(function(e,t){e&&(o[t]=n+"-"+e)})}),o}},{key:"getComponentForKey",value:function(e){return this.getDecoratorForKey(e).getComponentForKey(o.getInnerKey(e))}},{key:"getPropsForKey",value:function(e){return this.getDecoratorForKey(e).getPropsForKey(o.getInnerKey(e))}},{key:"getDecoratorForKey",value:function(e){e=e.split("-"),e=Number(e[0]);return this.decorators[e]}}],[{key:"getInnerKey",value:function(e){return e.split("-").slice(1).join("-")}}]),t.default=o},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0});(function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)})(i,[{key:"get",value:function(e){return this[e]}},{key:"getText",value:function(){return this.text}},{key:"getType",value:function(){return this.type}},{key:"getKey",value:function(){return this.key}},{key:"getLength",value:function(){return this.text.length}},{key:"getDepth",value:function(){return this.depth}},{key:"getData",value:function(){return this.data}}]);var o=i;function i(e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");Object.assign(this,e)}t.default=function(e){return new o(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){e=e.keys;return t||(e?e.join(","):void 0)},u=function(r,o){return function(e,t,n){t=Object.assign({},t),n=i(t,n);return delete t.depth,delete t.keys,o.apply(void 0,[r,Object.assign({},t,{key:n})].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e)))}};t.default=function(c,t){var n={};return Object.keys(t).forEach(function(e){var s=t[e];s.wrapper?n[e]=function(e,t,n){return r=c,o=s,t=(e={children:e,props:t,key:n}).children,i=e.props,e=e.key,n=u(o.wrapper,r),a=u(o.element,r,!0),n(t.map(function(e,t){return a(e,{depth:i.depth},i.keys&&i.keys[t])}),i,e);var r,o,i,a}:n[e]=u(s.element,c)}),n}},function(R,L,e){"use strict";
|
|
50
50
|
/** @license React v16.14.0
|
|
51
51
|
* react-dom-server.browser.production.min.js
|
|
52
52
|
*
|
|
@@ -54,4 +54,4 @@ object-assign
|
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the MIT license found in the
|
|
56
56
|
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var E=e(17),C=e(0);function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var e="function"==typeof Symbol&&Symbol.for,s=e?Symbol.for("react.portal"):60106,c=e?Symbol.for("react.fragment"):60107,u=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,p=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,F=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,z=e?Symbol.for("react.suspense_list"):60120,B=e?Symbol.for("react.memo"):60115,K=e?Symbol.for("react.lazy"):60116,H=e?Symbol.for("react.block"):60121,U=e?Symbol.for("react.fundamental"):60117,q=e?Symbol.for("react.scope"):60119;function g(e){if(null!=e){if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case c:return"Fragment";case s:return"Portal";case l:return"Profiler";case u:return"StrictMode";case h:return"Suspense";case z:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case f:return"Context.Consumer";case p:return"Context.Provider";case d:var t=(t=e.render).displayName||t.name||"";return e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case B:return g(e.type);case H:return g(e.render);case K:if(e=1===e._status?e._result:null)return g(e)}}return null}var e=C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,W=(e.hasOwnProperty("ReactCurrentDispatcher")||(e.ReactCurrentDispatcher={current:null}),e.hasOwnProperty("ReactCurrentBatchConfig")||(e.ReactCurrentBatchConfig={suspense:null}),{});function m(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var y=new Uint16Array(16),t=0;t<15;t++)y[t]=t+1;y[15]=0;var V=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,G=Object.prototype.hasOwnProperty,Y={},$={};function Z(e){return G.call($,e)||!G.call(Y,e)&&(V.test(e)?$[e]=!0:void(Y[e]=!0))}function J(e,t,n,r){if(null==t||function(e,t,n,r){if(null===n||0!==n.type)switch(typeof t){case"function":case"symbol":return 1;case"boolean":return r?void 0:null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e;default:return}}(e,t,n,r))return 1;if(!r&&null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||t<1}}function n(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var x={},r=("children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){x[e]=new n(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];x[t]=new n(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){x[e]=new n(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){x[e]=new n(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){x[e]=new n(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){x[e]=new n(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){x[e]=new n(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){x[e]=new n(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){x[e]=new n(e,5,!1,e.toLowerCase(),null,!1)}),/[\-:]([a-z])/g);function o(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(r,o);x[t]=new n(t,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(r,o);x[t]=new n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(r,o);x[t]=new n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){x[e]=new n(e,1,!1,e.toLowerCase(),null,!1)}),x.xlinkHref=new n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){x[e]=new n(e,1,!1,e.toLowerCase(),null,!0)});var X=/["'&<>]/;function k(e){if("boolean"==typeof e||"number"==typeof e)return""+e;var t=X.exec(e=""+e);if(t){for(var n="",r=0,o=t.index;o<e.length;o++){switch(e.charCodeAt(o)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}r!==o&&(n+=e.substring(r,o)),r=o+1,n+=t}e=r!==o?n+e.substring(r,o):n}return e}var Q="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},v=null,i=null,a=null,b=!1,_=!1,w=null,S=0;function D(){if(null===v)throw Error(O(321));return v}function ee(){if(0<S)throw Error(O(312));return{memoizedState:null,queue:null,next:null}}function j(){return null===a?null===i?(b=!1,i=a=ee()):(b=!0,a=i):a=null===a.next?(b=!1,a.next=ee()):(b=!0,a.next),a}function te(e,t,n,r){for(;_;)_=!1,S+=1,a=null,n=e(t,r);return i=v=null,S=0,a=w=null,n}function ne(e,t){return"function"==typeof t?t(e):t}function re(e,t,n){if(v=D(),a=j(),b){var r=a.queue;if(t=r.dispatch,null===w||void 0===(n=w.get(r)))return[a.memoizedState,t];for(w.delete(r),r=a.memoizedState;r=e(r,n.action),null!==(n=n.next););return[a.memoizedState=r,t]}return e=e===ne?"function"==typeof t?t():t:void 0!==n?n(t):t,a.memoizedState=e,e=(e=a.queue={last:null,dispatch:null}).dispatch=function(e,t,n){if(!(S<25))throw Error(O(301));if(e===v)if(_=!0,e={action:n,next:null},null===w&&(w=new Map),void 0===(n=w.get(t)))w.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}.bind(null,v,e),[a.memoizedState,e]}function T(){}var I=0,oe={readContext:function(e){var t=I;return m(e,t),e[t]},useContext:function(e){D();var t=I;return m(e,t),e[t]},useMemo:function(e,t){if(v=D(),t=void 0===t?null:t,null!==(a=j())){var n=a.memoizedState;if(null!==n&&null!==t){e:{var r=n[1];if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!Q(t[o],r[o])){r=!1;break e}r=!0}}if(r)return n[0]}}return e=e(),a.memoizedState=[e,t],e},useReducer:re,useRef:function(e){v=D();var t=(a=j()).memoizedState;return null===t?a.memoizedState=e={current:e}:t},useState:function(e){return re(ne,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:T,useEffect:T,useDebugValue:T,useResponder:function(e,t){return{props:t,responder:e}},useDeferredValue:function(e){return D(),e},useTransition:function(){return D(),[function(e){e()},!1]}},ie="http://www.w3.org/1999/xhtml";function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var se={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ce=E({menuitem:!0},se),M={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ue=["Webkit","ms","Moz","O"],le=(Object.keys(M).forEach(function(t){ue.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),M[e]=M[t]})}),/([A-Z])/g),fe=/^ms-/,N=C.Children.toArray,A=e.ReactCurrentDispatcher,pe={listing:!0,pre:!0,textarea:!0},de=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,he={},P={};var ye=Object.prototype.hasOwnProperty,ge={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function me(e,t){if(void 0===e)throw Error(O(152,g(t)||"Component"))}function ve(d,h,y){function e(e,t){var n=t.prototype&&t.prototype.isReactComponent,r=function(e,t,n,r){if(r&&("object"==typeof(r=e.contextType)&&null!==r))return m(r,n),r[n];if(e=e.contextTypes){for(var o in n={},e)n[o]=t[o];t=n}else t=W;return t}(t,h,y,n),o=[],i=!1,a={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===o)return null},enqueueReplaceState:function(e,t){i=!0,o=[t]},enqueueSetState:function(e,t){if(null===o)return null;o.push(t)}};if(n){n=new t(e.props,r,a);"function"==typeof t.getDerivedStateFromProps&&null!=(c=t.getDerivedStateFromProps.call(null,e.props,n.state))&&(n.state=E({},n.state,c))}else if(v={},n=t(e.props,r,a),null==(n=te(t,e.props,n,r))||null==n.render)return void me(d=n,t);if(n.props=e.props,n.context=r,n.updater=a,void 0===(a=n.state)&&(n.state=a=null),"function"==typeof n.UNSAFE_componentWillMount||"function"==typeof n.componentWillMount)if("function"==typeof n.componentWillMount&&"function"!=typeof t.getDerivedStateFromProps&&n.componentWillMount(),"function"==typeof n.UNSAFE_componentWillMount&&"function"!=typeof t.getDerivedStateFromProps&&n.UNSAFE_componentWillMount(),o.length){var a=o,s=i,o=null,i=!1;if(s&&1===a.length)n.state=a[0];else{for(var c=s?a[0]:n.state,u=!0,s=s?1:0;s<a.length;s++){var l=a[s];null!=(l="function"==typeof l?l.call(n,c,e.props,r):l)&&(u?(u=!1,c=E({},c,l)):E(c,l))}n.state=c}}else o=null;if(me(d=n.render(),t),"function"==typeof n.getChildContext&&"object"==typeof(e=t.childContextTypes)){var f,p=n.getChildContext();for(f in p)if(!(f in e))throw Error(O(108,g(t)||"Unknown",f))}p&&(h=E({},h,p))}for(;C.isValidElement(d);){var t=d,n=t.type;if("function"!=typeof n)break;e(t,n)}return{child:d,context:h}}(e=_e.prototype).destroy=function(){var e;this.exhausted||(this.exhausted=!0,this.clearProviders(),e=this.threadID,y[e]=y[0],y[0]=e)},e.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,r=this.threadID,o=(m(n,r),n[r]);this.contextStack[t]=n,this.contextValueStack[t]=o,n[r]=e.props.value},e.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},e.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},e.read=function(e){if(this.exhausted)return null;var t=I,n=(I=this.threadID,A.current);A.current=oe;try{for(var r=[""],o=!1;r[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var i=this.threadID;y[i]=y[0],y[0]=i;break}var a=this.stack[this.stack.length-1];if(o||a.childIndex>=a.children.length){var s=a.footer;if(""!==s&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===a.type)this.currentSelectValue=null;else if(null!=a.type&&null!=a.type.type&&a.type.type.$$typeof===p)this.popProvider(a.type);else if(a.type===h){this.suspenseDepth--;var c=r.pop();if(o){var o=!1,u=a.fallbackFrame;if(!u)throw Error(O(303));this.stack.push(u),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=c}r[this.suspenseDepth]+=s}else{var l=a.children[a.childIndex++],f="";try{f+=this.render(l,a.context,a.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(O(294));throw e}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=f}}return r[0]}finally{A.current=n,I=t}},e.render=function(e,t,n){if("string"==typeof e||"number"==typeof e){if(""===(n=""+e))return"";if(!this.makeStaticMarkup){if(this.previousWasTextNode)return"\x3c!-- --\x3e"+k(n);this.previousWasTextNode=!0}return k(n)}if(e=(t=ve(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!C.isValidElement(e)){if(null==e||null==e.$$typeof)return e=N(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";if((n=e.$$typeof)===s)throw Error(O(257));throw Error(O(258,n.toString()))}var r,o=e.type;if("string"==typeof o)return this.renderDOM(e,t,n);switch(o){case u:case F:case l:case z:case c:return e=N(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case h:throw Error(O(294))}if("object"==typeof o&&null!==o)switch(o.$$typeof){case d:v={};var i=o.render(e.props,e.ref),i=te(o.render,e.props,i,e.ref);return i=N(i),this.stack.push({type:null,domNamespace:n,children:i,childIndex:0,context:t,footer:""}),"";case B:return e=[C.createElement(o.type,E({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case p:return n={type:e,domNamespace:n,children:o=N(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case f:o=e.type,i=e.props;var a=this.threadID;return m(o,a),o=N(i.children(o[a])),this.stack.push({type:e,domNamespace:n,children:o,childIndex:0,context:t,footer:""}),"";case U:throw Error(O(338));case K:switch(o=e.type,-1===(r=o)._status&&(r._status=0,i=(i=r._ctor)(),(r._result=i).then(function(e){0===r._status&&(e=e.default,r._status=1,r._result=e)},function(e){0===r._status&&(r._status=2,r._result=e)})),o._status){case 1:return e=[C.createElement(o._result,E({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw o._result;default:throw Error(O(295))}case q:throw Error(O(343))}throw Error(O(130,null==o?o:typeof o,""))},e.renderDOM=function(e,t,n){var r=e.type.toLowerCase();if(n===ie&&ae(r),!he.hasOwnProperty(r)){if(!de.test(r))throw Error(O(65,r));he[r]=!0}var o,i,a,s,c,u=e.props;if("input"===r)u=E({type:void 0},u,{defaultChecked:void 0,defaultValue:void 0,value:null!=u.value?u.value:u.defaultValue,checked:null!=u.checked?u.checked:u.defaultChecked});else if("textarea"===r){if(null==(l=u.value)){var l=u.defaultValue,f=u.children;if(null!=f){if(null!=l)throw Error(O(92));if(Array.isArray(f)){if(!(f.length<=1))throw Error(O(93));f=f[0]}l=""+f}null==l&&(l="")}u=E({},u,{value:void 0,children:""+l})}else if("select"===r)this.currentSelectValue=null!=u.value?u.value:u.defaultValue,u=E({},u,{value:void 0});else if("option"===r){var f=this.currentSelectValue,p=null==(p=u.children)?p:(o="",C.Children.forEach(p,function(e){null!=e&&(o+=e)}),o);if(null!=f){var d=null!=u.value?u.value+"":p;if(l=!1,Array.isArray(f)){for(var h=0;h<f.length;h++)if(""+f[h]===d){l=!0;break}}else l=""+f===d;u=E({selected:void 0,children:void 0},u,{selected:l,children:p})}}if(l=u){if(ce[r]&&(null!=l.children||null!=l.dangerouslySetInnerHTML))throw Error(O(137,r,""));if(null!=l.dangerouslySetInnerHTML){if(null!=l.children)throw Error(O(60));if(!("object"==typeof l.dangerouslySetInnerHTML&&"__html"in l.dangerouslySetInnerHTML))throw Error(O(61))}if(null!=l.style&&"object"!=typeof l.style)throw Error(O(62,""))}for(S in l=u,f=this.makeStaticMarkup,p=1===this.stack.length,d="<"+e.type,l)if(ye.call(l,S)){var y=l[S];if(null!=y){if("style"===S){var g,m,v,b,h=void 0,_="",w="";for(h in y)y.hasOwnProperty(h)&&(g=0===h.indexOf("--"),null!=(m=y[h])&&(_+=w+(b=g?h:(b=h,P.hasOwnProperty(b)?P[b]:(v=b.replace(le,"-$1").toLowerCase().replace(fe,"-ms-"),P[b]=v)))+":",w=h,_+=g=null==m||"boolean"==typeof m||""===m?"":g||"number"!=typeof m||0===m||M.hasOwnProperty(w)&&M[w]?(""+m).trim():m+"px",w=";"));y=_||null}h=null;e:if(m=l,-1===(g=r).indexOf("-"))g="string"==typeof m.is;else switch(g){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":g=!1;break e;default:g=!0}g?ge.hasOwnProperty(S)||(h=Z(h=S)&&null!=y?h+'="'+k(y)+'"':""):(i=S,a=y,c=s=void 0,s=x.hasOwnProperty(i)?x[i]:null,h=(c=(c="style"!==i)&&(null!==s?0===s.type:2<i.length&&("o"===i[0]||"O"===i[0])&&("n"===i[1]||"N"===i[1])))||J(i,a,s,!1)?"":null!==s?(i=s.attributeName,3===(c=s.type)||4===c&&!0===a?i+'=""':i+'="'+k(a=s.sanitizeURL?""+a:a)+'"'):Z(i)?i+'="'+k(a)+'"':""),h&&(d+=" "+h)}}f||p&&(d+=' data-reactroot=""');var S=d;l="",se.hasOwnProperty(r)?S+="/>":(S+=">",l="</"+e.type+">");e:{if(null!=(f=u.dangerouslySetInnerHTML)){if(null!=f.__html){f=f.__html;break e}}else if("string"==typeof(f=u.children)||"number"==typeof f){f=k(f);break e}f=null}return null!=f?(u=[],pe.hasOwnProperty(r)&&"\n"===f.charAt(0)&&(S+="\n"),S+=f):u=N(u.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ae(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:r,children:u,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,S};var be=_e,e={renderToString:function(e){e=new be(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new be(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(O(207))},renderToStaticNodeStream:function(){throw Error(O(208))},version:"16.14.0"};function _e(e,t){if(e=C.isValidElement(e)&&(e.type!==c||(e=e.props.children,C.isValidElement(e)))?[e]:N(e),e={type:null,domNamespace:ie,children:e,childIndex:0,context:W,footer:""},0===(n=y[0])){var n,r=y,o=2*(n=r.length);if(!(o<=65536))throw Error(O(304));var i=new Uint16Array(o);for(i.set(r),(y=i)[0]=n+1,r=n;r<o-1;r++)y[r]=r+1;y[o-1]=0}else y[0]=y[n];this.threadID=n,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}R.exports=e.default||e},function(e){e.exports=JSON.parse('{"name":"@innovaccer/rich-text-editor","version":"2.0.6","description":"A rich text on top of DraftJS.","main":"dist/rich-text-editor.js","module":"dist/rich-text-editor.js","author":"Innovaccer","devDependencies":{"@babel/core":"^7.7.4","@babel/plugin-proposal-class-properties":"^7.12.1","@babel/preset-env":"^7.7.4","@babel/preset-react":"^7.7.4","@babel/register":"^7.7.4","@innovaccer/design-system":"^2.13.3","@storybook/addon-docs":"6.5.10","@storybook/addon-essentials":"6.5.10","@storybook/react":"6.5.10","@storybook/storybook-deployer":"2.8.12","autoprefixer":"^9.7.3","babel-eslint":"^10.0.3","babel-loader":"^8.0.6","babel-plugin-transform-flow-strip-types":"^6.22.0","chai":"^4.2.0","cross-env":"^6.0.3","css-loader":"^3.2.1","draftjs-to-markdown":"^0.6.0","embed-video":"^2.0.4","enzyme":"^3.10.0","enzyme-adapter-react-16":"^1.15.1","eslint":"^6.7.2","eslint-config-airbnb":"^18.0.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-mocha":"^6.2.2","eslint-plugin-react":"^7.17.0","file-loader":"^5.0.2","flow-bin":"^0.113.0","gulp":"^4.0.2","gulp-clean":"^0.4.0","gulp-concat":"^2.6.1","gulp-postcss":"^9.0.0","gulp-sourcemaps":"^3.0.0","install":"^0.13.0","jsdom":"^16.4.0","mini-css-extract-plugin":"^0.8.0","mocha":"^6.2.2","postcss-color-mod-function":"^3.0.3","postcss-loader":"^3.0.0","precss":"^4.0.0","prettier":"^2.5.1","react":"^16.12.0","react-addons-test-utils":"^15.6.2","react-dom":"^16.12.0","react-test-renderer":"^16.12.0","rimraf":"^3.0.0","sinon":"^7.5.0","style-loader":"^1.0.1","uglifyjs-webpack-plugin":"^2.2.0","url-loader":"^3.0.0","webpack":"^4.41.2","webpack-bundle-analyzer":"^4.0.0","webpack-cli":"^3.3.10","webpack-s3-plugin":"^1.2.0-rc.0"},"dependencies":{"classnames":"^2.2.6","draft-js":"^0.11.7","draftjs-to-html":"^0.9.0","draftjs-utils":"^0.10.2","html-to-draftjs":"^1.5.0","immutable":"^4.0.0-rc.12","linkify-it":"^2.2.0","prop-types":"^15.7.2","redraft":"^0.10.2"},"peerDependencies":{"@innovaccer/design-system":"^2.13.3","react":"0.13.x || 0.14.x || ^15.0.0-0 || 15.x.x || ^16.0.0-0 || ^16.x.x","react-dom":"0.13.x || 0.14.x || ^15.0.0-0 || 15.x.x || ^16.0.0-0 || ^16.x.x"},"scripts":{"build:css":"cp ./node_modules/@innovaccer/design-system/css/dist/* dist/","build-css":"gulp --gulpfile config/gulpfile.js build","clean":"rimraf dist && rimraf public","build:webpack":"cross-env NODE_ENV=production webpack --mode production --config config/webpack.config.js","build":"npm run clean && npm run build-css && npm run build:webpack","test":"cross-env BABEL_ENV=test mocha --require config/test-compiler.js config/test-setup.js src/**/*Test.js","lint":"eslint src","lintdocs":"eslint docs/src","flow":"flow; test $? -eq 0 -o $? -eq 2","check":"npm run lint && npm run flow","storybook":"start-storybook -p 6006","build-storybook":"build-storybook","deploy-storybook":"storybook-to-ghpages","version":"./scripts/version.sh","prettier":"prettier --write \\"**/*.{js,jsx,ts,tsx,json,css}\\""},"license":"MIT"}')},function(R,e,o){"use strict";o.r(e),o.d(e,"Editor",function(){return ro}),o.d(e,"EditorPreview",function(){return Eo});var d=o(0),g=o.n(d),e=o(1),h=o.n(e),y=o(2),m=o(4),e=o(39),L=o.n(e),e=o(92),F=o.n(e),z=o(24),e=o(5),v=o.n(e);function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K(e,t,n){return t&&B(e.prototype,t),n&&B(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var H=K(function e(){var n=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(t){n.callBacks.forEach(function(e){e(t)})},this.init=function(e){e=document.getElementById(e);e&&e.addEventListener("click",function(){n.editorFlag=!0}),document&&(document.addEventListener("click",function(){n.editorFlag?n.editorFlag=!1:(n.closeAllModals(),n.suggestionCallback&&n.suggestionCallback())}),document.addEventListener("keydown",function(e){"Escape"===e.key&&n.closeAllModals()}))},this.onEditorClick=function(){n.closeModals(),!n.suggestionFlag&&n.suggestionCallback?n.suggestionCallback():n.suggestionFlag=!1},this.closeModals=function(e){n.closeAllModals(e)},this.registerCallBack=function(e){n.callBacks.push(e)},this.deregisterCallBack=function(t){n.callBacks=n.callBacks.filter(function(e){return e!==t})},this.setSuggestionCallback=function(e){n.suggestionCallback=e},this.removeSuggestionCallback=function(){n.suggestionCallback=void 0},this.onSuggestionClick=function(){n.suggestionFlag=!0}});function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q(e,t,n){return t&&U(e.prototype,t),n&&U(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var t,W=q(function e(){var t=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");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}}),n=[],b={onKeyDown:function(t){n.forEach(function(e){e(t)})},registerCallBack:function(e){n.push(e)},deregisterCallBack:function(t){n=n.filter(function(e){return e!==t})}},V=function(){t=!0},G=function(){t=!1},Y=function(){return t};function $(e){e=e.getData()&&e.getData().get("text-align");return e?"rdw-".concat(e,"-aligned-block"):""}function c(e,t){if(e)for(var n in e)!{}.hasOwnProperty.call(e,n)||t(n,e[n])}function i(e,t){var n=!1;if(e)for(var r in e)if({}.hasOwnProperty.call(e,r)&&t===r){n=!0;break}return n}function f(e){e.stopPropagation()}function Z(e,t,n){return e&&e.filter(function(e){return!t||0===t.length||(n?0<=e.value.indexOf(t):0<=e.value.toLowerCase().indexOf(t&&t.toLowerCase()))})}function J(e){return e[e.options[0]].icon}function s(e,n){var r;return e&&void 0===n?e:(r={},c(e,function(e,t){"[object Object]"===Object.prototype.toString.call(t)?r[e]=s(t,n[e]):r[e]=void 0!==n[e]?n[e]:t}),r)}function X(e){return(X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ee(e,t){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function te(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=a(n),t=(e=r?(e=a(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===X(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ee(t,e);var n,a=te(s);function s(){var i,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(i=a.call.apply(a,[this].concat(r))).onClick=function(){var e=i.props,t=e.disabled,n=e.onClick,e=e.value;t||n(e)},i.handleKeyDown=function(e){var t=new Set(["Enter","Space","Spacebar"," "]),n=i.props,r=n.disabled,o=n.onClick,n=n.value;r||t.has(e.key)&&(e.preventDefault(),o(n,e))},i}return t=s,(e=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.className,o=t.activeClassName,i=t.active,a=t.disabled,t=t["aria-label"],o=v()((u(e={},"Editor-option",!0),u(e,"Editor-option--active",i&&!o),u(e,"".concat(o),i&&o),u(e,"Editor-option--disabled",a),e),r);return g.a.createElement("div",{"aria-label":t,onKeyDown:this.handleKeyDown,tabIndex:0,className:o,onClick:this.onClick,"aria-selected":i},n)}}])&&Q(t.prototype,e),n&&Q(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component),_=(l.propTypes={onClick:h.a.func.isRequired,children:h.a.any,value:h.a.string,className:h.a.string,activeClassName:h.a.string,active:h.a.bool,disabled:h.a.bool,title:h.a.string,tabIndex:h.a.number},l.defaultProps={activeClassName:""},o(3));function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ie(e,t){return(ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ae(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=p(n),t=(e=r?(e=p(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ne(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ie(t,e);var n,r=ae(o);function o(e){var i;if(this instanceof o)return(i=r.call(this,e)).buttonRef=null,i.listRef=null,i.handleOutsideClick=function(e){i.listRef.current&&!i.listRef.current.contains(e.target)&&i.toggleExpansion()},i.onChange=function(e){var t=i.props.onChange;t&&t(e),i.toggleExpansion()},i.setHighlighted=function(e){i.setState({highlighted:e})},i.focusTrigger=function(){var e;null!=(e=i.buttonRef.current)&&e.focus()},i.focusTriggerOnClose=function(e){"Escape"!==e.key&&"Enter"!==e.key||(i.toggleExpansion(),i.focusTrigger())},i.toggleExpansion=function(){var e=i.props,t=e.doExpand,n=e.doCollapse;(e.expanded?n:t)()},i.handleExpand=function(e){i.props.onExpandEvent(e)},i.handleListKeyDown=function(e){e.preventDefault();var t,n=i.state.highlighted,r=i.props.children[1],o=e.key;"ArrowDown"===o||"ArrowUp"===o?(t=r.length-1,i.setState(function(e){return{highlighted:"ArrowDown"===o?Math.min(e.highlighted+1,t):Math.max(e.highlighted-1,0)}})):"Enter"===o&&(e=r[n].props.value,(r=i.props.onChange)&&r(e))},i.buttonRef=g.a.createRef(),i.listRef=g.a.createRef(),i.state={highlighted:-1},i;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.expanded;e.expanded&&!t&&(this.setState({highlighted:-1}),document.removeEventListener("keydown",this.focusTriggerOnClose),document.removeEventListener("click",this.handleOutsideClick)),!e.expanded&&t&&(document.addEventListener("keydown",this.focusTriggerOnClose),document.addEventListener("click",this.handleOutsideClick),this.setState({highlighted:0}),this.listRef.current.focus())}},{key:"render",value:function(){var n=this,e=this.props,t=e.expanded,r=e.children,o=e.className,i=e.optionWrapperClassName,a=e.triggerClassName,s=e.ariaLabel,e=(e.onExpandEvent,e.menu),c=this.state.highlighted,u=r.slice(1,r.length),l=v()((re(l={},"Editor-dropdown",!0),re(l,"Editor-dropdown--expanded",t),l),o);return g.a.createElement("div",{className:l},g.a.createElement(_.a,{ref:this.buttonRef,appearance:"transparent","aria-expanded":t,"aria-label":s||"Editor-dropdown",className:a,onClick:this.handleExpand},r[0],!e&&g.a.createElement(_.f,{name:"keyboard_arrow_down"})),t&&g.a.createElement("ul",{tabIndex:1,ref:this.listRef,onKeyDown:this.handleListKeyDown,className:v()("Editor-dropdown-optionWrapper",i),onClick:f},g.a.Children.map(u,function(e,t){return e&&g.a.cloneElement(e,{onSelect:n.onChange,highlighted:c===t,setHighlighted:n.setHighlighted,highlightedClassName:"Editor-dropdown-option--highlight",index:t})})))}}])&&oe(t.prototype,e),n&&oe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component);function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ue(e,t){return(ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function le(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=fe(n),t=(e=r?(e=fe(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===se(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function fe(e){return(fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}w.propTypes={children:h.a.any,onChange:h.a.func,className:h.a.string,expanded:h.a.bool,menu:h.a.bool,doExpand:h.a.func,doCollapse:h.a.func,onExpandEvent:h.a.func,optionWrapperClassName:h.a.string,triggerClassName:h.a.string,ariaLabel:h.a.string,title:h.a.string};var E=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ue(t,e);var n,a=le(s);function s(){var i,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(i=a.call.apply(a,[this].concat(r))).onClick=function(e){var t=i.props,n=t.onSelect,r=t.onClick,o=t.value;t.disabled||(n&&n(o),r&&(e.stopPropagation(),r(o)))},i.setHighlighted=function(){i.props.setHighlighted(i.props.index)},i.resetHighlighted=function(){(0,i.props.setHighlighted)(-1)},i}return t=s,(e=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.active,o=t.disabled,i=t.highlighted,a=t.className,s=t.isCheckbox,c=t.activeClassName,u=t.disabledClassName,t=t.highlightedClassName,c=v()((S(e={},"Editor-dropdown-option",!0),S(e,"Editor-dropdown-option--active ".concat(c),r&&!s),S(e,"".concat(t),i),S(e,"".concat(u),o),e),a);return g.a.createElement("li",{tabIndex:1,className:c,onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick},n)}}])&&ce(t.prototype,e),n&&ce(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component);function pe(e){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function de(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function he(e,t){return(he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ye(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ge(n),t=(e=r?(e=ge(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===pe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}E.propTypes={children:h.a.any,value:h.a.any,onClick:h.a.func,onSelect:h.a.func,setHighlighted:h.a.func,index:h.a.number,disabled:h.a.bool,active:h.a.bool,highlighted:h.a.bool,className:h.a.string,activeClassName:h.a.string,disabledClassName:h.a.string,highlightedClassName:h.a.string,title:h.a.string,isCheckbox:h.a.bool},E.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""};var me=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&he(t,e);var n,r=ye(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"renderInDropdown",value:function(){var e=this.props,i=e.config,t=e.expanded,n=e.doExpand,r=e.onExpandEvent,o=e.doCollapse,a=e.currentState,e=e.onChange,s=i.options.length-i.max;return g.a.createElement(_.n,{tooltip:"More formatting"},g.a.createElement(w,{onChange:e,expanded:t,doExpand:n,doCollapse:o,onExpandEvent:r,triggerClassName:"Editor-textDecoration-moreIcon",menu:!0},g.a.createElement(_.f,{name:"more_horizon",size:20}),i.options.slice(i.max,i.options.length).map(function(e,t){var n=!0===a[e]||"MONOSPACE"===e&&a.CODE,r=i[e],o=r.icon,r=(r.title,r.label);return g.a.createElement(E,{key:t,value:e,active:n,isCheckbox:1<s},1<s?g.a.createElement(_.b,{checked:n,label:r}):g.a.createElement(g.a.Fragment,null,g.a.createElement(_.f,{size:20,name:o,className:"mr-4",appearance:n?"white":"default"}),g.a.createElement(_.m,{appearance:n?"white":"default"},r)))})))}},{key:"render",value:function(){var e,t,n=this.props,i=n.config,a=n.currentState,s=n.onChange,n=n.className,r=i.options.length-i.max,o=i.max,c=v()((t=!0,(c="Editor-textDecoration")in(e={})?Object.defineProperty(e,c,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[c]=t,e),n);return g.a.createElement("div",{className:c},i.options.slice(0,o).map(function(e,t){var n=!0===a[e]||"MONOSPACE"===e&&a.CODE,r=i[e],o=r.title,r=r.icon;return g.a.createElement(_.n,{tooltip:o},g.a.createElement(l,{"aria-label":"".concat(e," button"),role:"button",tabIndex:0,key:t,value:e,onClick:s,active:n,className:"mr-2"},g.a.createElement(_.f,{name:r,size:20,appearance:n?"info":"default"})))}),0<r&&this.renderInDropdown())}}])&&de(t.prototype,e),n&&de(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component);function ve(e){return(ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _e(e,t){return(_e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function we(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Se(n),t=(e=r?(e=Se(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ve(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Se(e){return(Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}me.propTypes={expanded:h.a.bool,doExpand:h.a.func,doCollapse:h.a.func,onExpandEvent:h.a.func,config:h.a.object,onChange:h.a.func,currentState:h.a.object,className:h.a.string};e=function(e){var t=i;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_e(t,e);var n,r=we(i);function i(e){var o;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");(o=r.call(this,e)).expandCollapse=function(){o.setState(function(e){return{expanded:!e.expanded}})},o.toggleInlineStyle=function(e){var t=o.props,n=t.editorState,t=t.onChange,e=e.toUpperCase(),r=Object(m.getSelectionEntity)(n);if(r){r=n.getCurrentContent().getEntity(r).getType();if("MENTION"===r||"LINK"===r)return}r=y.RichUtils.toggleInlineStyle(n,e);r&&t(r)},o.changeKeys=function(e){var n;if(e)return n={},c(e,function(e,t){n["CODE"===e?"monospace":e.toLowerCase()]=t}),n},o.doExpand=function(){o.setState({expanded:!0})},o.doCollapse=function(){o.setState({expanded:!1})};var e=o.props,t=e.editorState;e.modalHandler;return o.state={currentStyles:t?o.changeKeys(Object(m.getSelectionInlineStyle)(t)):{}},o}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentStyles:this.changeKeys(Object(m.getSelectionInlineStyle)(t))})}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.className,n=this.state,r=n.expanded,n=n.currentStyles,o=t.component||me;return g.a.createElement(o,{config:t,currentState:n,expanded:r,onExpandEvent:this.expandCollapse,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle,className:e})}}])&&be(t.prototype,e),n&&be(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component);function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oe(e,t){return(Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xe(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ke(n),t=(e=r?(e=ke(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ee(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}e.propTypes={onChange:h.a.func.isRequired,editorState:h.a.object.isRequired,modalHandler:h.a.object,config:h.a.object,className:h.a.string};var r=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Oe(t,e);var n,r=xe(o);function o(e){if(this instanceof o)return(e=r.call(this,e)).getBlockTypes=function(){return[{label:"H1",size:"xxl",displayName:"Heading 1"},{label:"H2",size:"xl",displayName:"Heading 2"},{label:"H3",size:"l",displayName:"Heading 3"},{label:"H4",size:"m",displayName:"Heading 4"}]},e.state={blockTypes:e.getBlockTypes()},e;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"renderInDropdown",value:function(e){var t=this.props,n=t.config.icon,r=t.currentState.blockType,o=t.expanded,i=t.doExpand,a=t.onExpandEvent,s=t.doCollapse,c=t.onChange,t=t.className;return g.a.createElement("div",{className:t,"aria-label":"Editor-block-control"},g.a.createElement(_.n,{tooltip:"Text style"},g.a.createElement(w,{onChange:c,expanded:o,doExpand:i,doCollapse:s,onExpandEvent:a,triggerClassName:"Editor-heading-trigger"},g.a.createElement(_.f,{name:n,size:20}),e.map(function(e,t){return g.a.createElement(E,{index:t,active:r===e.label,value:e.label,key:t},g.a.createElement(_.e,{size:e.size,className:"Editor-heading-option",appearance:r===e.label?"white":"default"},e.displayName))}))))}},{key:"render",value:function(){var t=this.props.config,e=this.state.blockTypes.filter(function(e){e=e.label;return-1<t.options.indexOf(e)});return this.renderInDropdown(e)}}])&&Ce(t.prototype,e),n&&Ce(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component),De=(r.propTypes={expanded:h.a.bool,onExpandEvent:h.a.func,doExpand:h.a.func,doCollapse:h.a.func,onChange:h.a.func,config:h.a.object,currentState:h.a.object,className:h.a.string},r);function je(e){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ie(e,t){return(Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Me(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ne(n),t=(e=r?(e=Ne(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===je(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Ne(e){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r=function(e){var t=i;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ie(t,e);var n,r=Me(i);function i(e){var o;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");(o=r.call(this,e)).expandCollapse=function(){o.setState(function(e){return{expanded:!e.expanded}})},o.blocksTypes=[{label:"H1",style:"header-one"},{label:"H2",style:"header-two"},{label:"H3",style:"header-three"},{label:"H4",style:"header-four"}],o.doExpand=function(){o.setState({expanded:!0})},o.doCollapse=function(){o.setState({expanded:!1})},o.toggleBlockType=function(t){var e=o.blocksTypes.find(function(e){return e.label===t}).style,n=o.props,r=n.editorState,n=n.onChange,r=y.RichUtils.toggleBlockType(r,e);r&&n(r)};e=e.editorState;return o.state={expanded:!1,currentBlockType:e?Object(m.getSelectedBlocksType)(e):"unstyled"},o}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlockType:Object(m.getSelectedBlocksType)(t)})}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.className,n=this.state,r=n.expanded,o=n.currentBlockType,n=this.blocksTypes.find(function(e){return e.style===o});return g.a.createElement(De,{config:t,currentState:{blockType:n&&n.label},onChange:this.toggleBlockType,expanded:r,onExpandEvent:this.expandCollapse,doExpand:this.doExpand,doCollapse:this.doCollapse,className:e})}}])&&Te(t.prototype,e),n&&Te(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component),r.propTypes={onChange:h.a.func.isRequired,editorState:h.a.object,config:h.a.object,className:h.a.string};o(201);function Ae(e){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Re(e,t){return(Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Le(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Fe(n),t=(e=r?(e=Fe(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ae(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Fe(e){return(Fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ze=function(e){var t=a;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Re(t,e);var n,i=Le(a);function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).state={defaultFontSize:void 0},e}return t=a,(e=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");e&&0<e.length&&(e=(e=window.getComputedStyle(e[0]).getPropertyValue("font-size")).substring(0,e.length-2),this.setState({defaultFontSize:e}))}},{key:"renderCustomTrigger",value:function(){return g.a.createElement("div",null,"Riya")}},{key:"render",value:function(){var e=this.props,t=e.config,n=(t.icon,t.className),r=(t.dropdownClassName,t.options),t=(t.title,e.onChange),e=(e.expanded,e.doCollapse,e.onExpandEvent,e.doExpand,e.translations,this.props.currentState.fontSize),o=this.state.defaultFontSize,o=Number(o);e||r&&r.indexOf(o);return g.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},g.a.createElement(_.d,{className:v()("rdw-fontsize-dropdown",n),onChange:t,customTrigger:this.renderCustomTrigger,icon:"text_fields",placeholder:"",options:r.map(function(e){return{label:e,value:e,selected:14===e}})}))}}])&&Pe(t.prototype,e),n&&Pe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(d.Component);function Be(e){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function He(e,t){return(He=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ue(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=qe(n),t=(e=r?(e=qe(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Be(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ze.propTypes={expanded:h.a.bool,onExpandEvent:h.a.func,doExpand:h.a.func,doCollapse:h.a.func,onChange:h.a.func,config:h.a.object,currentState:h.a.object,translations:h.a.object};var We=function(e){var t=i;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&He(t,e);var n,o=Ue(i);function i(e){var r;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");(r=o.call(this,e)).onExpandEvent=function(){r.signalExpanded=!r.state.expanded},r.expandCollapse=function(){r.setState({expanded:r.signalExpanded}),r.signalExpanded=!1},r.doExpand=function(){r.setState({expanded:!0})},r.doCollapse=function(){r.setState({expanded:!1})},r.toggleFontSize=function(e){var t=r.props,n=t.editorState,t=t.onChange,n=Object(m.toggleCustomInlineStyle)(n,"fontSize",e);n&&t(n)};var t=e.editorState,e=e.modalHandler;return r.state={expanded:void 0,currentFontSize:t?Object(m.getSelectionCustomInlineStyle)(t,["FONTSIZE"]).FONTSIZE:void 0},e.registerCallBack(r.expandCollapse),r}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontSize:Object(m.getSelectionCustomInlineStyle)(t,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.translations,n=this.state,r=n.expanded,n=n.currentFontSize,o=t.component||ze,n=n&&Number(n.substring(9));return g.a.createElement(o,{config:t,fontSize:!0,translations:e,currentState:{fontSize:n},onChange:this.toggleFontSize,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ke(t.prototype,e),n&&Ke(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component);We.propTypes={onChange:h.a.func.isRequired,editorState:h.a.object,modalHandler:h.a.object,config:h.a.object,translations:h.a.object},o(202);function Ve(e){return(Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ye(e,t){return(Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $e(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ze(n),t=(e=r?(e=Ze(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ve(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Ze(e){return(Ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=function(e){var t=a;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ye(t,e);var n,i=$e(a);function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).state={defaultFontFamily:void 0},e}return t=a,(e=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");e&&0<e.length&&(e=window.getComputedStyle(e[0]).getPropertyValue("font-family"),this.setState({defaultFontFamily:e}))}},{key:"render",value:function(){var t=this.state.defaultFontFamily,e=this.props,n=e.config,r=n.className,o=n.dropdownClassName,i=n.options,n=n.title,a=e.translations,s=e.onChange,c=e.expanded,u=e.doCollapse,l=e.onExpandEvent,e=e.doExpand,f=this.props.currentState.fontFamily||i&&t&&i.some(function(e){return e.toLowerCase()===t.toLowerCase()})&&t;return g.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},g.a.createElement(w,{className:v()("rdw-fontfamily-dropdown",r),optionWrapperClassName:v()("rdw-fontfamily-optionwrapper",o),onChange:s,expanded:c,doExpand:e,doCollapse:u,onExpandEvent:l,title:n||a["components.controls.fontfamily.fontfamily"]},g.a.createElement("span",{className:"rdw-fontfamily-placeholder"},f||a["components.controls.fontfamily.fontfamily"]),i.map(function(e,t){return g.a.createElement(E,{active:f===e,value:e,key:t},e)})))}}])&&Ge(t.prototype,e),n&&Ge(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(d.Component),Je=(C.propTypes={expanded:h.a.bool,onExpandEvent:h.a.func,doExpand:h.a.func,doCollapse:h.a.func,onChange:h.a.func,config:h.a.object,currentState:h.a.object,translations:h.a.object},C);function Xe(e){return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function et(e,t){return(et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tt(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=nt(n),t=(e=r?(e=nt(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Xe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function nt(e){return(nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}C=function(e){var t=i;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&et(t,e);var n,o=tt(i);function i(e){var r;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");(r=o.call(this,e)).onExpandEvent=function(){r.signalExpanded=!r.state.expanded},r.expandCollapse=function(){r.setState({expanded:r.signalExpanded}),r.signalExpanded=!1},r.doExpand=function(){r.setState({expanded:!0})},r.doCollapse=function(){r.setState({expanded:!1})},r.toggleFontFamily=function(e){var t=r.props,n=t.editorState,t=t.onChange,n=Object(m.toggleCustomInlineStyle)(n,"fontFamily",e);n&&t(n)};var t=e.editorState,e=e.modalHandler;return r.state={expanded:void 0,currentFontFamily:t?Object(m.getSelectionCustomInlineStyle)(t,["FONTFAMILY"]).FONTFAMILY:void 0},e.registerCallBack(r.expandCollapse),r}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontFamily:Object(m.getSelectionCustomInlineStyle)(t,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.translations,n=this.state,r=n.expanded,n=n.currentFontFamily,o=t.component||Je,n=n&&n.substring(11);return g.a.createElement(o,{translations:e,config:t,currentState:{fontFamily:n},onChange:this.toggleFontFamily,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Qe(t.prototype,e),n&&Qe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component);function rt(e){return(rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function it(e,t){return(it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function at(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=st(n),t=(e=r?(e=st(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===rt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function st(e){return(st=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}C.propTypes={onChange:h.a.func.isRequired,editorState:h.a.object,modalHandler:h.a.object,config:h.a.object,translations:h.a.object};var ct=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&it(t,e);var n,a=at(s);function s(){var t,e=this,n=s;if(!(e instanceof n))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=a.call.apply(a,[this].concat(o))).options=["unordered","ordered"],t.toggleBlockType=function(e){(0,t.props.onChange)(e)},t}return t=s,(e=[{key:"render",value:function(){var e,t,n=this.props,r=n.config,o=n.currentState.listType,n=n.className,i=(r.options,r.unordered),r=r.ordered,a=v()((t=!0,(a="d-flex")in(e={})?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e),n);return g.a.createElement("div",{className:a},g.a.createElement(_.n,{tooltip:i.title},g.a.createElement(l,{value:"unordered",onClick:this.toggleBlockType,active:"unordered"===o,className:"mr-2"},g.a.createElement(_.f,{appearance:"unordered"===o?"info":"default",name:i.icon,size:20}))),g.a.createElement(_.n,{tooltip:r.title},g.a.createElement(l,{value:"ordered",onClick:this.toggleBlockType,active:"ordered"===o},g.a.createElement(_.f,{appearance:"ordered"===o?"info":"default",name:r.icon,size:20}))))}}])&&ot(t.prototype,e),n&&ot(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component);function ut(e){return(ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ft(e,t){return(ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pt(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=dt(n),t=(e=r?(e=dt(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ut(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function dt(e){return(dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ct.propTypes={expanded:h.a.bool,doExpand:h.a.func,doCollapse:h.a.func,onExpandEvent:h.a.func,config:h.a.object,onChange:h.a.func,currentState:h.a.object,className:h.a.string};var O=function(e){var t=i;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ft(t,e);var n,o=pt(i);function i(e){var r;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");(r=o.call(this,e)).onExpandEvent=function(){r.signalExpanded=!r.state.expanded},r.onChange=function(e){"unordered"===e?r.toggleBlockType("unordered-list-item"):"ordered"===e?r.toggleBlockType("ordered-list-item"):"indent"===e?r.adjustDepth(1):r.adjustDepth(-1)},r.expandCollapse=function(){r.setState({expanded:r.signalExpanded}),r.signalExpanded=!1},r.doExpand=function(){r.setState({expanded:!0})},r.doCollapse=function(){r.setState({expanded:!1})},r.toggleBlockType=function(e){var t=r.props,n=t.onChange,t=t.editorState,t=y.RichUtils.toggleBlockType(t,e);t&&n(t)},r.adjustDepth=function(e){var t=r.props,n=t.onChange,t=t.editorState,t=Object(m.changeDepth)(t,e,4);t&&n(t)},r.isIndentDisabled=function(){var e=r.props.editorState,t=r.state.currentBlock,e=Object(m.getBlockBeforeSelectedBlock)(e);return!e||!Object(m.isListBlock)(t)||e.get("type")!==t.get("type")||e.get("depth")<t.get("depth")},r.isOutdentDisabled=function(){var e=r.state.currentBlock;return!e||!Object(m.isListBlock)(e)||e.get("depth")<=0};var e=r.props,t=e.editorState,e=e.modalHandler;return r.state={expanded:!1,currentBlock:t?Object(m.getSelectedBlock)(t):void 0},e.registerCallBack(r.expandCollapse),r}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlock:Object(m.getSelectedBlock)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e,t=this.props,n=t.config,r=t.translations,t=t.className,o=this.state,i=o.expanded,o=o.currentBlock;return"unordered-list-item"===o.get("type")?e="unordered":"ordered-list-item"===o.get("type")&&(e="ordered"),g.a.createElement(ct,{config:n,translations:r,currentState:{listType:e},expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,className:t})}}])&<(t.prototype,e),n&<(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component);O.propTypes={onChange:h.a.func.isRequired,editorState:h.a.object.isRequired,modalHandler:h.a.object,config:h.a.object,translations:h.a.object,className:h.a.string},o(203);function ht(e){return(ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gt(e,t){return(gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function mt(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=vt(n),t=(e=r?(e=vt(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ht(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function vt(e){return(vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bt=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&>(t,e);var n,r=mt(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.left,o=t.center,i=t.right,a=t.justify,t=t.className,s=e.onChange,c=e.currentState.textAlignment,e=e.translations;return g.a.createElement("div",{className:v()("rdw-text-align-wrapper",t),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&g.a.createElement(l,{value:"left",className:v()(r.className),active:"left"===c,onClick:s,title:r.title||e["components.controls.textalign.left"]},g.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("center")&&g.a.createElement(l,{value:"center",className:v()(o.className),active:"center"===c,onClick:s,title:o.title||e["components.controls.textalign.center"]},g.a.createElement("img",{src:o.icon,alt:""})),0<=n.indexOf("right")&&g.a.createElement(l,{value:"right",className:v()(i.className),active:"right"===c,onClick:s,title:i.title||e["components.controls.textalign.right"]},g.a.createElement("img",{src:i.icon,alt:""})),0<=n.indexOf("justify")&&g.a.createElement(l,{value:"justify",className:v()(a.className),active:"justify"===c,onClick:s,title:a.title||e["components.controls.textalign.justify"]},g.a.createElement("img",{src:a.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,o=e.onExpandEvent,i=e.doCollapse,a=e.currentState.textAlignment,s=e.onChange,e=e.translations,c=t.options,u=t.left,l=t.center,f=t.right,p=t.justify,d=t.className,h=t.dropdownClassName,y=t.title;return g.a.createElement(w,{className:v()("rdw-text-align-dropdown",d),optionWrapperClassName:v()(h),onChange:s,expanded:n,doExpand:r,doCollapse:i,onExpandEvent:o,"aria-label":"rdw-textalign-control",title:y||e["components.controls.textalign.textalign"]},g.a.createElement("img",{src:a&&t[a]&&t[a].icon||J(t),alt:""}),0<=c.indexOf("left")&&g.a.createElement(E,{value:"left",active:"left"===a,className:v()("rdw-text-align-dropdownOption",u.className),title:u.title||e["components.controls.textalign.left"]},g.a.createElement("img",{src:u.icon,alt:""})),0<=c.indexOf("center")&&g.a.createElement(E,{value:"center",active:"center"===a,className:v()("rdw-text-align-dropdownOption",l.className),title:l.title||e["components.controls.textalign.center"]},g.a.createElement("img",{src:l.icon,alt:""})),0<=c.indexOf("right")&&g.a.createElement(E,{value:"right",active:"right"===a,className:v()("rdw-text-align-dropdownOption",f.className),title:f.title||e["components.controls.textalign.right"]},g.a.createElement("img",{src:f.icon,alt:""})),0<=c.indexOf("justify")&&g.a.createElement(E,{value:"justify",active:"justify"===a,className:v()("rdw-text-align-dropdownOption",p.className),title:p.title||e["components.controls.textalign.justify"]},g.a.createElement("img",{src:p.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&yt(t.prototype,e),n&&yt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component);function _t(e){return(_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function St(e,t){return(St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Et(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ct(n),t=(e=r?(e=Ct(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===_t(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Ct(e){return(Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}bt.propTypes={expanded:h.a.bool,doExpand:h.a.func,doCollapse:h.a.func,onExpandEvent:h.a.func,config:h.a.object,onChange:h.a.func,currentState:h.a.object,translations:h.a.object};var Ot=function(e){var t=i;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&St(t,e);var n,o=Et(i);function i(e){var r;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");(r=o.call(this,e)).onExpandEvent=function(){r.signalExpanded=!r.state.expanded},r.expandCollapse=function(){r.setState({expanded:r.signalExpanded}),r.signalExpanded=!1},r.doExpand=function(){r.setState({expanded:!0})},r.doCollapse=function(){r.setState({expanded:!1})},r.addBlockAlignmentData=function(e){var t=r.props,n=t.editorState,t=t.onChange;t(r.state.currentTextAlignment!==e?Object(m.setBlockData)(n,{"text-align":e}):Object(m.setBlockData)(n,{"text-align":void 0}))};e=r.props.modalHandler;return r.state={currentTextAlignment:void 0},e.registerCallBack(r.expandCollapse),r}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t!==e.editorState&&this.setState({currentTextAlignment:Object(m.getSelectedBlocksMetadata)(t).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.translations,n=this.state,r=n.expanded,n=n.currentTextAlignment,o=t.component||bt;return g.a.createElement(o,{config:t,translations:e,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:n},onChange:this.addBlockAlignmentData})}}])&&wt(t.prototype,e),n&&wt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component);function xt(e){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dt(e,t){return(Dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function jt(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Tt(n),t=(e=r?(e=Tt(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===xt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Tt(e){return(Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ot.propTypes={editorState:h.a.object.isRequired,onChange:h.a.func.isRequired,modalHandler:h.a.object,config:h.a.object,translations:h.a.object};var x=function(e){var t=i;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dt(t,e);var n,r=jt(i);function i(e){var o;if(this instanceof i)return(o=r.call(this,e)).onChange=function(e){var t=o.props,n=t.onChange;t.expanded&&n(o.state.currentStyle,e)},o.handleClick=function(e){var t=e.target.getAttribute("data-color");t&&(e.preventDefault(),e.stopPropagation(),o.onChange(t))},o.handleKeyDown=function(e){var t=e.target.getAttribute("data-color");t&&"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),o.onChange(t))},o.renderModal=function(){var e=o.props,t=e.config.colors,e=e.currentState,n=e.color,e=e.bgColor,r="color"===o.state.currentStyle?n:e;return g.a.createElement("div",{className:"Editor-colorPicker",onClick:o.handleClick,onKeyDown:o.handleKeyDown},t.map(function(e,t){return g.a.createElement("div",{className:"Editor-colorPicker-circleWrapper"},g.a.createElement("div",{ref:0===t?o.ref:null,"data-color":e,tabIndex:0,key:t,style:{backgroundColor:e},className:"Editor-colorPicker-circle","aria-selected":r===e}),r===e&&g.a.createElement(_.f,{name:"check",appearance:"white",className:"Editor-colorPicker-selectedCircle"}))}))},o.state={currentStyle:"color"},o.ref=g.a.createRef(),o;throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidUpdate",value:function(e){this.props.expanded&&!e.expanded&&(this.ref.current,this.setState({currentStyle:"color"}))}},{key:"render",value:function(){var e=this.props,t=e.expanded,n=e.onToggle,e=e.className,n=g.a.createElement(_.n,{tooltip:"Text color"},g.a.createElement(l,{tabIndex:0,"aria-label":"Font colors",onClick:n,active:t,activeClassName:"bg-secondary"},g.a.createElement(_.f,{name:"text_format",size:20})));return g.a.createElement("div",{className:e,"aria-haspopup":"true","aria-expanded":t},g.a.createElement(_.l,{trigger:n,position:"bottom-start",open:t},this.renderModal()))}}])&&kt(t.prototype,e),n&&kt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component),It=(x.propTypes={expanded:h.a.bool,onToggle:h.a.func,onChange:h.a.func,config:h.a.object,currentState:h.a.object,className:h.a.className},x);function Mt(e){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function At(e,t){return(At=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pt(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Rt(n),t=(e=r?(e=Rt(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Mt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Rt(e){return(Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&At(t,e);var n,r=Pt(o);function o(e){var i;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");(i=r.call(this,e)).state={expanded:!1,currentColor:"var(--text)",currentBgColor:void 0},i.expandCollapse=function(){i.setState({expanded:!1})},i.toggleColorPicker=function(){i.setState(function(e){return{expanded:!e.expanded}})},i.toggleColor=function(t,n){var e=i.props,r=e.editorState,o=e.onChange,e=Object(m.getSelectionEntity)(r);if(e){e=r.getCurrentContent().getEntity(e).getType();if("MENTION"===e||"LINK"===e)return}i.setState(function(){return{currentColor:n?"color-".concat(n):"color-var(--text)",currentBgColor:Object(m.getSelectionCustomInlineStyle)(r,["BGCOLOR"]).BGCOLOR,expanded:!1}},function(){var e=Object(m.toggleCustomInlineStyle)(r,t,n);e&&o(e)})};var t=e.editorState,e=e.modalHandler,n={expanded:!1,currentColor:void 0,currentBgColor:void 0};return t&&(n.currentColor=Object(m.getSelectionCustomInlineStyle)(t,["COLOR"]).COLOR||"color-var(--text)",n.currentBgColor=Object(m.getSelectionCustomInlineStyle)(t,["BGCOLOR"]).BGCOLOR),i.state=n,e.registerCallBack(i.expandCollapse),i}return t=o,(e=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.className,n=this.state,r=n.currentColor,o=n.currentBgColor,n=n.expanded,i=t.component||It,r=r&&r.substring(6),o=o&&o.substring(8);return g.a.createElement(i,{config:t,className:e,onChange:this.toggleColor,expanded:n,onToggle:this.toggleColorPicker,currentState:{color:r,bgColor:o}})}}])&&Nt(t.prototype,e),n&&Nt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component),Lt=(x.propTypes={onChange:h.a.func.isRequired,editorState:h.a.object.isRequired,modalHandler:h.a.object,config:h.a.object,className:h.a.string},o(93)),Lt=o.n(Lt);function Ft(e){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bt(e,t){return(Bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Kt(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ht(n),t=(e=r?(e=Ht(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ft(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Ht(e){return(Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bt(t,e);var n,a=Kt(s);function s(){var r,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(r=a.call.apply(a,[this].concat(o))).state={showModal:!1,editing:!1,linkTarget:"",linkTitle:"",linkTargetOption:r.props.config.defaultTargetOption},r.addLink=function(){var e=r.props.onChange,t=r.state;e("link",t.linkTitle,t.linkTarget,t.linkTargetOption)},r.updateValue=function(e){var t,n;r.setState((t={},n="".concat(e.target.name),e=e.target.value,n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t))},r.updateTargetOption=function(e){r.setState({linkTargetOption:e.target.checked?"_blank":"_self"})},r}return t=s,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.currentState,n=t.link,t=t.selectionText;e.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption}),!e.expanded&&this.props.expanded&&this.setState({showModal:!1,linkTarget:n&&n.target,linkTitle:n&&n.title||t,linkTargetOption:this.props.config.defaultTargetOption,editing:void 0!==n})}},{key:"renderAddLinkModal",value:function(){var e=this.props.onExpandEvent,t=this.state,n=t.linkTitle,r=t.linkTarget,t=t.editing?"Edit":"Insert";return g.a.createElement("div",{className:"px-6 mt-6 mb-5",onClick:f},g.a.createElement(_.m,{weight:"strong",size:"large"},t," link"),g.a.createElement(_.g,{icon:"insert_link",className:"mt-4",placeholder:"Paste a link to insert",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:r,autoComplete:"off",autoFocus:!0,onClick:f}),g.a.createElement(_.g,{icon:"text_fields",className:"my-5",placeholder:"Text to display",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:n,autoComplete:"off",onClick:f}),g.a.createElement("div",{className:"d-flex justify-content-end"},g.a.createElement(_.a,{onClick:e,className:"mr-4"},"Cancel"),g.a.createElement(_.a,{onClick:this.addLink,disabled:!r||!n,appearance:"primary"},t)))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,t=t.title,r=e.inDropdown,o=e.onExpandEvent,e=e.expanded,t=r?g.a.createElement(E,null,g.a.createElement(_.f,{size:20,name:n,className:"mr-4"}),g.a.createElement(_.m,null,t)):g.a.createElement(_.n,{tooltip:"Link"},g.a.createElement(l,{value:"unordered-list-item",onClick:o,"aria-haspopup":"true","aria-expanded":e,active:e,activeClassName:"bg-secondary"},g.a.createElement(_.f,{name:n,size:20})));return g.a.createElement("div",{"aria-haspopup":"true","aria-expanded":e},g.a.createElement(_.l,{trigger:t,position:r?"right":"bottom",open:e,onToggle:o},this.renderAddLinkModal()))}}])&&zt(t.prototype,e),n&&zt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component),Ut=(k.propTypes={expanded:h.a.bool,doExpand:h.a.func,doCollapse:h.a.func,onExpandEvent:h.a.func,config:h.a.object,onChange:h.a.func,currentState:h.a.object,inDropdown:h.a.boolean},k);function qt(e){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vt(e,t){return(Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gt(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Yt(n),t=(e=r?(e=Yt(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===qt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Yt(e){return(Yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $t(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Zt(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?$t(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):$t(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}function Jt(e){var t=Xt.match(e.target);return Zt(Zt({},e),{},{target:t&&t[0]&&t[0].url||e.target})}var Xt=Lt()(),k=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vt(t,e);var n,r=Gt(o);function o(e){var s;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");(s=r.call(this,e)).onExpandEvent=function(){var e=!s.state.expanded;s.setState({expanded:e}),e||s.props.onCloseLinkPopover()},s.onChange=function(e,t,n,r){var o=s.props.config.linkCallback;"link"===e?(e=(o||Jt)({title:t,target:n,targetOption:r}),s.addLink(e.title,e.target,e.targetOption)):s.removeLink()},s.getCurrentValues=function(){var e,t=s.props.editorState,n=s.state,r=n.currentEntity,n=(n.link,t.getCurrentContent()),o={};return r&&"LINK"===n.getEntity(r).get("type")&&(o.link={},e=r&&Object(m.getEntityRange)(t,r),o.link.target=r&&n.getEntity(r).get("data").url,o.link.targetOption=r&&n.getEntity(r).get("data").targetOption,o.link.title=e&&e.text),o.selectionText=Object(m.getSelectionText)(t),o},s.doExpand=function(){s.setState({expanded:!0})},s.expandCollapse=function(){s.setState({expanded:s.signalExpanded}),s.signalExpanded=!1},s.doCollapse=function(){s.setState({expanded:!1})},s.removeLink=function(){var e=s.props,t=e.editorState,e=e.onChange,n=s.state.currentEntity,r=t.getSelection();n&&(n=Object(m.getEntityRange)(t,n),r=r.getIsBackward()?r.merge({anchorOffset:n.end,focusOffset:n.start}):r.merge({anchorOffset:n.start,focusOffset:n.end}),e(y.RichUtils.toggleLink(t,r,null)))},s.addLink=function(e,t,n){var r=s.props,o=r.editorState,r=r.onChange,i=s.state.currentEntity,a=o.getSelection(),i=(i&&(i=Object(m.getEntityRange)(o,i),a=a.getIsBackward()?a.merge({anchorOffset:i.end,focusOffset:i.start}):a.merge({anchorOffset:i.start,focusOffset:i.end})),o.getCurrentContent().createEntity("LINK","MUTABLE",{url:t,targetOption:n,targetText:e}).getLastCreatedEntityKey()),t=y.Modifier.replaceText(o.getCurrentContent(),a,"".concat(e),null,i),n=y.EditorState.push(o,t,"insert-characters");a=n.getSelection().merge({anchorOffset:a.get("anchorOffset")+e.length,focusOffset:a.get("anchorOffset")+e.length}),n=y.EditorState.acceptSelection(n,a),t=y.Modifier.insertText(n.getCurrentContent(),a," ",n.getCurrentInlineStyle(),void 0),r(y.EditorState.push(n,t,"insert-characters")),s.props.onCloseLinkPopover(),s.doCollapse()};var e=s.props,t=e.editorState,e=e.linkPopoverOpen;return s.state={expanded:e,selectionText:void 0,link:void 0,currentEntity:t?Object(m.getSelectionEntity)(t):void 0},s}return t=o,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.editorState,t=t.linkPopoverOpen;n&&n!==e.editorState&&this.setState({currentEntity:Object(m.getSelectionEntity)(n)}),e.linkPopoverOpen!==t&&t&&this.setState({expanded:t})}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.inDropdown,n=this.state.expanded,r=this.getCurrentValues(),o=r.link,r=r.selectionText;return g.a.createElement(Ut,{config:t,expanded:n,inDropdown:e,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:o,selectionText:r},onChange:this.onChange})}}])&&Wt(t.prototype,e),n&&Wt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component),Lt=(k.propTypes={editorState:h.a.object.isRequired,onChange:h.a.func.isRequired,onCloseLinkPopover:h.a.func.isRequired,modalHandler:h.a.object,config:h.a.object,inDropdown:h.a.boolean,linkPopoverOpen:h.a.bool},k);function Qt(e){return(Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function en(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tn(e,t){return(tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nn(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=rn(n),t=(e=r?(e=rn(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Qt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function rn(e){return(rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}k=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tn(t,e);var n,r=nn(o);function o(e){var i;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");(i=r.call(this,e)).addLink=function(){var e=i.props,t=e.editorState,n=e.onChange,e=e.mention.trigger,e=void 0===e?"@":e,r=i.state.currentEntity,o=t.getSelection(),r=(r&&(r=Object(m.getEntityRange)(t,r),o=o.getIsBackward()?o.merge({anchorOffset:r.end,focusOffset:r.start}):o.merge({anchorOffset:r.start,focusOffset:r.end})),y.Modifier.replaceText(t.getCurrentContent(),o,"".concat(e),t.getCurrentInlineStyle(),void 0)),o=y.EditorState.push(t,r,"insert-characters");n(y.EditorState.push(o,r,"insert-characters"))};e=i.props.editorState;return i.state={selectionText:void 0,link:void 0,currentEntity:e?Object(m.getSelectionEntity)(e):void 0},i}return t=o,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentEntity:Object(m.getSelectionEntity)(t)})}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,t=t.title,r=e.mention.label;e.inDropdown;return g.a.createElement(_.n,{tooltip:r||t},g.a.createElement(l,{value:"unordered-list-item",onClick:this.addLink,className:"mr-2"},g.a.createElement(_.f,{name:n,size:20})))}}])&&en(t.prototype,e),n&&en(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component),k.propTypes={editorState:h.a.object.isRequired,onChange:h.a.func.isRequired,config:h.a.object,inDropdown:h.a.boolean};o(209);function on(e){return(on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function an(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sn(e,t){return(sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cn(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=un(n),t=(e=r?(e=un(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===on(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function un(e){return(un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var D=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sn(t,e);var n,a=cn(s);function s(){var r,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(r=a.call.apply(a,[this].concat(o))).state={embeddedLink:"",height:r.props.config.defaultSize.height,width:r.props.config.defaultSize.width},r.onChange=function(){var e=r.props.onChange,t=r.state;e(t.embeddedLink,t.height,t.width)},r.updateValue=function(e){var t,n;r.setState((t={},n="".concat(e.target.name),e=e.target.value,n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t))},r}return t=s,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.expanded,t=t.config;!n&&e.expanded&&(e=(n=t.defaultSize).height,t=n.width,this.setState({embeddedLink:"",height:e,width:t}))}},{key:"rendeEmbeddedLinkModal",value:function(){var e=this.state,t=e.embeddedLink,n=e.height,e=e.width,r=this.props,o=r.config.popupClassName,i=r.doCollapse,r=r.translations;return g.a.createElement("div",{className:v()("rdw-embedded-modal",o),onClick:f},g.a.createElement("div",{className:"rdw-embedded-modal-header"},g.a.createElement("span",{className:"rdw-embedded-modal-header-option"},r["components.controls.embedded.embeddedlink"],g.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),g.a.createElement("div",{className:"rdw-embedded-modal-link-section"},g.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},g.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:r["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:t,name:"embeddedLink"}),g.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),g.a.createElement("div",{className:"rdw-embedded-modal-size"},g.a.createElement("span",null,g.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:n,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),g.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),g.a.createElement("span",null,g.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:e,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),g.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),g.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},g.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!t||!n||!e},r["generic.add"]),g.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:i},r["generic.cancel"])))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,t=t.title,o=e.expanded,i=e.onExpandEvent,e=e.translations;return g.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":o,"aria-label":"rdw-embedded-control"},g.a.createElement(l,{className:v()(r),value:"unordered-list-item",onClick:i,title:t||e["components.controls.embedded.embedded"]},g.a.createElement("img",{src:n,alt:""})),o?this.rendeEmbeddedLinkModal():void 0)}}])&&an(t.prototype,e),n&&an(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component),ln=(D.propTypes={expanded:h.a.bool,onExpandEvent:h.a.func,onChange:h.a.func,config:h.a.object,translations:h.a.object,doCollapse:h.a.func},D);function fn(e){return(fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dn(e,t){return(dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function hn(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=yn(n),t=(e=r?(e=yn(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===fn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function yn(e){return(yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}D=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dn(t,e);var n,i=hn(s);function s(){var a,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(a=i.call.apply(i,[this].concat(r))).state={expanded:!1},a.onExpandEvent=function(){a.signalExpanded=!a.state.expanded},a.expandCollapse=function(){a.setState({expanded:a.signalExpanded}),a.signalExpanded=!1},a.doExpand=function(){a.setState({expanded:!0})},a.doCollapse=function(){a.setState({expanded:!1})},a.addEmbeddedLink=function(e,t,n){var r=a.props,o=r.editorState,i=r.onChange,r=r.config.embedCallback,r=r?r(e):e,e=o.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:r,height:t,width:n}).getLastCreatedEntityKey();i(y.AtomicBlockUtils.insertAtomicBlock(o,e," ")),a.doCollapse()},a}return t=s,(e=[{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 e=this.props,t=e.config,e=e.translations,n=this.state.expanded,r=t.component||ln;return g.a.createElement(r,{config:t,translations:e,onChange:this.addEmbeddedLink,expanded:n,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&pn(t.prototype,e),n&&pn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component),D.propTypes={editorState:h.a.object.isRequired,onChange:h.a.func.isRequired,modalHandler:h.a.object,config:h.a.object,translations:h.a.object};o(210);function gn(e){return(gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vn(e,t){return(vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function bn(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=_n(n),t=(e=r?(e=_n(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===gn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function _n(e){return(_n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vn(t,e);var n,a=bn(s);function s(){var t,e=this,n=s;if(!(e instanceof n))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=a.call.apply(a,[this].concat(o))).onChange=function(e){(0,t.props.onChange)(e.target.innerHTML)},t}return t=s,(e=[{key:"renderEmojiModal",value:function(){var n=this,e=this.props.config,t=e.popupClassName,e=e.emojis;return g.a.createElement("div",{className:v()("rdw-emoji-modal",t),onClick:f},e.map(function(e,t){return g.a.createElement("span",{key:t,className:"rdw-emoji-icon",alt:"",onClick:n.onChange},e)}))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,t=t.title,o=e.expanded,i=e.onExpandEvent,e=e.translations;return g.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":o,title:t||e["components.controls.emoji.emoji"]},g.a.createElement(l,{className:v()(r),value:"unordered-list-item",onClick:i},g.a.createElement("img",{src:n,alt:""})),o?this.renderEmojiModal():void 0)}}])&&mn(t.prototype,e),n&&mn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component),wn=(j.propTypes={expanded:h.a.bool,onExpandEvent:h.a.func,onChange:h.a.func,config:h.a.object,translations:h.a.object},j);function Sn(e){return(Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function En(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cn(e,t){return(Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function On(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=xn(n),t=(e=r?(e=xn(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Sn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function xn(e){return(xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}j=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Cn(t,e);var n,a=On(s);function s(){var r,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(r=a.call.apply(a,[this].concat(o))).state={expanded:!1},r.onExpandEvent=function(){r.signalExpanded=!r.state.expanded},r.expandCollapse=function(){r.setState({expanded:r.signalExpanded}),r.signalExpanded=!1},r.doExpand=function(){r.setState({expanded:!0})},r.doCollapse=function(){r.setState({expanded:!1})},r.addEmoji=function(e){var t=r.props,n=t.editorState,t=t.onChange,e=y.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),e,n.getCurrentInlineStyle());t(y.EditorState.push(n,e,"insert-characters")),r.doCollapse()},r}return t=s,(e=[{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 e=this.props,t=e.config,e=e.translations,n=this.state.expanded,r=t.component||wn;return g.a.createElement(r,{config:t,translations:e,onChange:this.addEmoji,expanded:n,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&En(t.prototype,e),n&&En(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component);function kn(e){return(kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jn(e,t){return(jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tn(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=In(n),t=(e=r?(e=In(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===kn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function In(e){return(In=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}j.propTypes={editorState:h.a.object.isRequired,onChange:h.a.func.isRequired,modalHandler:h.a.object,config:h.a.object,translations:h.a.object};var T=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jn(t,e);var n,r=Tn(o);function o(e){var i;if(this instanceof o)return(i=r.call(this,e)).inputRef=null,i.showImageUploadOption=function(){i.setState({uploadHighlighted:!0})},i.addImageFromState=function(){var e=i.state,t=e.imgSrc,e=e.alt,n=i.state,r=n.height,n=n.width,o=i.props.onChange;isNaN(r)||(r+="px"),isNaN(n)||(n+="px"),o(t,r,n,e)},i.showImageURLOption=function(){i.setState({uploadHighlighted:!1})},i.toggleShowImageLoading=function(){var e=!i.state.showImageLoading;i.setState({showImageLoading:e})},i.updateValue=function(e){var t,n;i.setState((t={},n="".concat(e.target.name),e=e.target.value,n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t))},i.selectImage=function(e){e.target.files&&0<e.target.files.length&&i.uploadImage(e.target.files[0]),e.target.value=null},i.uploadImage=function(e){i.toggleShowImageLoading(),(0,i.props.config.uploadCallback)(e).then(function(e){e=e.data;i.setState({showImageLoading:!1,dragEnter:!1,imgSrc:e.link||e.url},i.addImageFromState),i.fileUpload=!1}).catch(function(){i.setState({showImageLoading:!1,dragEnter:!1})})},i.fileUploadClick=function(e,t){i.inputRef.current&&t&&t.key&&i.inputRef.current.click(),i.fileUpload=!0},i.stopPropagation=function(e){i.fileUpload?i.fileUpload=!1:(e.preventDefault(),e.stopPropagation())},i.handleButtonClick=function(){i.inputRef&&i.inputRef.current&&i.inputRef.current.click()},i.inputRef=g.a.createRef(),i.state={imgSrc:"",dragEnter:!1,uploadHighlighted:i.props.config.uploadEnabled&&!!i.props.config.uploadCallback,showImageLoading:!1,height:i.props.config.defaultSize.height,width:i.props.config.defaultSize.width,alt:""},i;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.config;e.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback,showImageLoading:!1,height:t.defaultSize.height,width:t.defaultSize.width,alt:""}):t.uploadCallback===e.config.uploadCallback&&t.uploadEnabled===e.config.uploadEnabled||this.setState({uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback})}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=(t.className,t.title),t=t.inputAccept,o=e.expanded;return e.inDropdown?g.a.createElement(E,null,g.a.createElement("label",{htmlFor:"file",className:"Editor-insert-imageLabel"},g.a.createElement(_.f,{name:n,size:20,className:"mr-4"}),g.a.createElement(_.m,null,r)),g.a.createElement("input",{ref:this.inputRef,type:"file",id:"file",accept:t,onChange:this.selectImage,className:"Editor-insert-imageInput"})):g.a.createElement("div",{"aria-haspopup":"true","aria-expanded":o},g.a.createElement(_.n,{tooltip:r},g.a.createElement(l,{"aria-label":"add image",className:"mr-2",value:"unordered-list-item",onClick:this.fileUploadClick},g.a.createElement("span",null,g.a.createElement("label",{htmlFor:"file",className:"Editor-insert-imageLabel"},g.a.createElement(_.f,{name:n,size:20}))),g.a.createElement("input",{ref:this.inputRef,type:"file",id:"file",accept:t,onChange:this.selectImage,className:"Editor-insert-imageInput"}))))}}])&&Dn(t.prototype,e),n&&Dn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component),Mn=(T.propTypes={expanded:h.a.bool,onExpandEvent:h.a.func,doCollapse:h.a.func,onChange:h.a.func,config:h.a.object,translations:h.a.object,inDropdown:h.a.bool},T);function Nn(e){return(Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function An(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pn(e,t){return(Pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Rn(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ln(n),t=(e=r?(e=Ln(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Nn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Ln(e){return(Ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fn(e){var t=e.config,n=e.onChange,e=e.translations,r=t.icon,o=t.className,t=t.title;return g.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},g.a.createElement(l,{className:v()(o),onClick:n,title:t||e["components.controls.remove.remove"]},g.a.createElement("img",{src:r,alt:""})))}var T=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pn(t,e);var n,r=Rn(o);function o(e){var s;if(this instanceof o)return(s=r.call(this,e)).addImage=function(e,t,n,r){var o=s.props,i=o.editorState,a=o.onChange,e={src:e,height:t,width:n},t=(o.config.alt&&(e.alt=r),i.getCurrentContent().createEntity("IMAGE","MUTABLE",e).getLastCreatedEntityKey());a(y.AtomicBlockUtils.insertAtomicBlock(i,t," "))},s.state={expanded:!1},s;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"componentWillUnmount",value:function(){}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.inDropdown;return g.a.createElement(Mn,{config:t,inDropdown:e,onChange:this.addImage})}}])&&An(t.prototype,e),n&&An(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component),zn=(T.propTypes={editorState:h.a.object.isRequired,onChange:h.a.func.isRequired,config:h.a.object,inDropdown:h.a.bool},o(211),Fn.propTypes={onChange:h.a.func,config:h.a.object,translations:h.a.object},Fn);function Bn(e){return(Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hn(e,t){return(Hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Un(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=qn(n),t=(e=r?(e=qn(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Bn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function qn(e){return(qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wn=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hn(t,e);var n,a=Un(s);function s(){var n,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=a.call.apply(a,[this].concat(o))).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 e=n.props,t=e.editorState;(0,e.onChange)(n.removeAllInlineStyles(t))},n.removeAllInlineStyles=function(n){var r=n.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(e){r=y.Modifier.removeInlineStyle(r,n.getSelection(),e)}),c(Object(m.getSelectionCustomInlineStyle)(n,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),function(e,t){t&&(r=y.Modifier.removeInlineStyle(r,n.getSelection(),t))}),y.EditorState.push(n,r,"change-inline-style")},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n}return t=s,(e=[{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 e=this.props,t=e.config,e=e.translations,n=this.state.expanded,r=t.component||zn;return g.a.createElement(r,{config:t,translations:e,expanded:n,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&Kn(t.prototype,e),n&&Kn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component);Wn.propTypes={onChange:h.a.func.isRequired,editorState:h.a.object.isRequired,config:h.a.object,translations:h.a.object,modalHandler:h.a.object},o(212);function Vn(e){return(Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yn(e,t){return(Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $n(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Zn(n),t=(e=r?(e=Zn(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Vn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Zn(e){return(Zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jn=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yn(t,e);var n,a=$n(s);function s(){var t,e=this,n=s;if(!(e instanceof n))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=a.call.apply(a,[this].concat(o))).onChange=function(e){(0,t.props.onChange)(e)},t}return t=s,(e=[{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,o=e.onExpandEvent,i=e.doCollapse,a=e.currentState,s=a.undoDisabled,a=a.redoDisabled,e=e.translations,c=t.options,u=t.undo,l=t.redo,f=t.className,p=t.dropdownClassName,d=t.title;return g.a.createElement(w,{className:v()("rdw-history-dropdown",f),optionWrapperClassName:v()(p),expanded:n,doExpand:r,doCollapse:i,onExpandEvent:o,"aria-label":"rdw-history-control",title:d||e["components.controls.history.history"]},g.a.createElement("img",{src:J(t),alt:""}),0<=c.indexOf("undo")&&g.a.createElement(E,{value:"undo",onClick:this.onChange,disabled:s,className:v()("rdw-history-dropdownoption",u.className),title:u.title||e["components.controls.history.undo"]},g.a.createElement("img",{src:u.icon,alt:""})),0<=c.indexOf("redo")&&g.a.createElement(E,{value:"redo",onClick:this.onChange,disabled:a,className:v()("rdw-history-dropdownoption",l.className),title:l.title||e["components.controls.history.redo"]},g.a.createElement("img",{src:l.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.undo,o=t.redo,t=t.className,i=e.currentState,a=i.undoDisabled,i=i.redoDisabled,e=e.translations;return g.a.createElement("div",{className:v()("rdw-history-wrapper",t),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&g.a.createElement(l,{value:"undo",onClick:this.onChange,className:v()(r.className),disabled:a,title:r.title||e["components.controls.history.undo"]},g.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("redo")&&g.a.createElement(l,{value:"redo",onClick:this.onChange,className:v()(o.className),disabled:i,title:o.title||e["components.controls.history.redo"]},g.a.createElement("img",{src:o.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Gn(t.prototype,e),n&&Gn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component);function Xn(e){return(Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function er(e,t){return(er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tr(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=nr(n),t=(e=r?(e=nr(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Xn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function nr(e){return(nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Jn.propTypes={expanded:h.a.bool,doExpand:h.a.func,doCollapse:h.a.func,onExpandEvent:h.a.func,config:h.a.object,onChange:h.a.func,currentState:h.a.object,translations:h.a.object};var rr=function(e){var t=i;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&er(t,e);var n,o=tr(i);function i(e){var r;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");(r=o.call(this,e)).onExpandEvent=function(){r.signalExpanded=!r.state.expanded},r.onChange=function(e){var t=r.props,n=t.editorState,t=t.onChange,e=y.EditorState[e](n);e&&t(e)},r.doExpand=function(){r.setState({expanded:!0})},r.doCollapse=function(){r.setState({expanded:!1})};var t={expanded:!(r.expandCollapse=function(){r.setState({expanded:r.signalExpanded}),r.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},n=e.editorState,e=e.modalHandler;return n&&(t.undoDisabled=0===n.getUndoStack().size,t.redoDisabled=0===n.getRedoStack().size),r.state=t,e.registerCallBack(r.expandCollapse),r}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&e.editorState!==t&&this.setState({undoDisabled:0===t.getUndoStack().size,redoDisabled:0===t.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.translations,n=this.state,r=n.undoDisabled,o=n.redoDisabled,n=n.expanded,i=t.component||Jn;return g.a.createElement(i,{config:t,translations:e,currentState:{undoDisabled:r,redoDisabled:o},expanded:n,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&Qn(t.prototype,e),n&&Qn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component);function or(e){return(or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}rr.propTypes={onChange:h.a.func.isRequired,editorState:h.a.object,modalHandler:h.a.object,config:h.a.object,translations:h.a.object};var ir=["config","currentState","onChange"],ar=["config"];function sr(){return(sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function cr(e,t){if(null==e)return{};var n,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lr(e,t){return(lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fr(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=pr(n),t=(e=r?(e=pr(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===or(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function pr(e){return(pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dr=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lr(t,e);var n,r=fr(o);function o(e){var t;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");(t=r.call(this,e)).onExpandEvent=function(){t.setState({expanded:!t.state.expanded})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.onChange=function(e){t.doCollapse(),t.props.onChange(e)};e=t.props;e.editorState,e.modalHandler;return t.state={expanded:!1},t}return t=o,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler}},{key:"renderInDropdown",value:function(){var r=this,e=this.props,o=e.config,i=(e.currentState,e.onChange,cr(e,ir));this.state.expanded;return g.a.createElement(w,{expanded:this.state.expanded,doExpand:this.doExpand,doCollapse:this.doCollapse,onExpandEvent:this.onExpandEvent,menu:!0},g.a.createElement(_.f,{name:"more_horizon"}),o.options.slice(o.max,o.options.length).map(function(e,t){var n=o[e],e=hr[e];return g.a.createElement(e,sr({key:t,config:n,inDropdown:!0,onChange:r.onChange},i))}))}},{key:"render",value:function(){var o=this,e=this.props,i=e.config,a=cr(e,ar),e=i.max;return g.a.createElement("div",{className:"Editor-toolbar-insert"},i.options.slice(0,e).map(function(e,t){var n=i[e],r=hr[e];return(o.props.mention||"mention"!==e)&&n.isVisible?g.a.createElement(r,sr({key:t,config:n,inDropdown:!1},a)):null}))}}])&&ur(t.prototype,e),n&&ur(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component),hr=(dr.propTypes={onChange:h.a.func.isRequired,onCloseLinkPopover:h.a.func.isRequired,editorState:h.a.object.isRequired,modalHandler:h.a.object,config:h.a.object,mention:h.a.object,linkPopoverOpen:h.a.bool,translations:h.a.object},{textDecoration:e,heading:r,fontSize:We,insert:dr,fontFamily:C,list:O,textAlign:Ot,colorPicker:x,link:Lt,mention:k,embedded:D,emoji:j,image:T,remove:Wn,history:rr});function yr(e){return(yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mr(e,t){return(mr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function vr(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=br(n),t=(e=r?(e=br(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===yr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function br(e){return(br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _r(e,t,n){e.findEntityRanges(function(e){e=e.getEntity();return null!==e&&"LINK"===n.getEntity(e).getType()},t)}function wr(c){var e=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mr(t,e);var n,a=vr(s);function s(){var o,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(o=a.call.apply(a,[this].concat(r))).state={open:!1},o.onDeleteLink=function(e){e.preventDefault(),e.stopPropagation();var e=c.getEditorState(),t=e.getSelection(),n=o.props,r=n.contentState,n=n.entityKey,e=Object(m.getEntityRange)(e,n),t=t.getIsBackward()?t.merge({anchorOffset:e.end,focusOffset:e.start}):t.merge({anchorOffset:e.start,focusOffset:e.end}),n=y.Modifier.setBlockType(r,t,"unstyled"),n=y.Modifier.removeRange(n,t,"backward");c.onChange(y.EditorState.push(c.getEditorState(),n,"remove-range"))},o.onEditLink=function(e){e.preventDefault(),e.stopPropagation(),c.onEditLink(),o.setState({open:!1})},o.onToggle=function(e){o.setState({open:e})},o}return t=s,(e=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.entityKey,e=e.contentState.getEntity(n).getData().url,n=this.state.open,t=g.a.createElement("span",{contentEditable:"false",suppressContentEditableWarning:!0},g.a.createElement(_.m,{appearance:"link"},t));return g.a.createElement(_.l,{trigger:t,appendToBody:!0,open:n,onToggle:this.onToggle},g.a.createElement("div",{contentEditable:"false",suppressContentEditableWarning:!0,className:"d-flex pl-5 py-5 pr-4 align-items-center"},g.a.createElement(_.h,{href:e,target:"_new",className:"Editor-link"},e),g.a.createElement("span",{className:"Editor-seperator"}),g.a.createElement(_.a,{"aria-label":"Edit",onClick:this.onEditLink,appearance:"transparent",icon:"edit"}),g.a.createElement("span",{className:"Editor-seperator"}),g.a.createElement(_.a,{"aria-label":"Delete",onClick:this.onDeleteLink,appearance:"transparent",icon:"delete"})))}}])&&gr(t.prototype,e),n&&gr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component);return e.propTypes={entityKey:h.a.string.isRequired,children:h.a.array,contentState:h.a.object},e}function Sr(){return(Sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Er(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Cr(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Er(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Er(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}function Or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xr(e,t,n){return t&&Or(e.prototype,t),n&&Or(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var e=xr(function e(t){var i=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.first=function(e){return null!=e&&e.length?e[0]:void 0},this.getMentionComponent=function(){function e(e){var o=e.entityKey,t=e.children,e=e.contentState.getEntity(o).getData().value;return i.renderer?i.renderer(t):(e=Cr(Cr({type:"input",name:e,clearButton:!1},i.chipOptions),{},{label:t,className:"Editor-mention-chip"}),g.a.createElement(_.c,Sr({},e,{onClose:function(){var e=i.config,t=e.getEditorState(),n=t.getCurrentContent(),r=t.getSelection(),t=Object(m.getEntityRange)(t,o),r=r.getIsBackward()?r.merge({anchorOffset:t.end,focusOffset:t.start}):r.merge({anchorOffset:t.start,focusOffset:t.end+1}),t=y.Modifier.setBlockType(n,r,"unstyled"),t=y.Modifier.removeRange(t,r,"backward");e.onChange(y.EditorState.push(e.getEditorState(),t,"remove-range"))}})))}return e.propTypes={entityKey:h.a.number,children:h.a.array,contentState:h.a.object},e},this.getMentionDecorator=function(){return{strategy:i.findMentionEntities,component:i.getMentionComponent()}},this.config=t,this.chipOptions=t.chipOptions,this.renderer=t.renderer}),kr=(e.prototype.findMentionEntities=function(e,t,n){e.findEntityRanges(function(e){e=e.getEntity();return null!==e&&"MENTION"===n.getEntity(e).getType()},t)},e);function Dr(e){return(Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function jr(e,t){return(jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tr(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ir(n),t=(e=r?(e=Ir(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Dr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Ir(e){return(Ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nr(e,t,n){return t&&Mr(e.prototype,t),n&&Mr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pr(e){var t=e.block,t=(e=e.contentState.getEntity(t.getEntityAt(0)).getData()).src,n=e.height,e=e.width;return g.a.createElement("iframe",{height:n,width:e,src:t,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}var Rr=Nr(function e(t){var c=this,n=(Ar(this,e),this.findSuggestionEntities=function(e,t){var n,r,o,i,a,s;c.config.getEditorState()&&(n=(i=c.config).separator,r=i.trigger,o=i.getSuggestions,a=i.getEditorState,i=i.fetchSuggestions,(a=a().getSelection()).get("anchorKey")===e.get("key")&&a.get("anchorKey")===a.get("focusKey")&&(s=n+r,(void 0===(a=(e=(e=e.getText()).substr(0,a.get("focusOffset")===e.length-1?e.length:a.get("focusOffset")+1)).lastIndexOf(n+r))||a<0)&&e[0]===r&&(a=0,s=r),0<=a&&(i||0<Z(o(),e.substr(a+s.length,e.length),c.config.caseSensitive).length)&&t(0===a?0:a+1,e.length)))},this.getSuggestionComponent=function(){var e,l=this.config;return(e=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jr(t,e);var r=Tr(o);function o(){var u;Ar(this,o);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(u=r.call.apply(r,[this].concat(t))).state={style:{left:15},activeOption:-1,showSuggestions:!0,showLoader:!1},u.onEditorKeyDown=function(e){var t=u.state.activeOption,n={};"ArrowDown"===e.key?(e.preventDefault(),t===u.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=Number(t)+1):"ArrowUp"===e.key?n.activeOption=t<=0?u.filteredSuggestions.length-1:Number(t)-1:"Escape"===e.key?(n.showSuggestions=!1,G()):"Enter"===e.key&&u.addMention(),u.setState(n)},u.onOptionMouseEnter=function(e){e=e.target.getAttribute("data-index");u.setState({activeOption:e})},u.onOptionMouseLeave=function(){u.setState({activeOption:-1})},u.setSuggestionReference=function(e){u.suggestion=e},u.setDropdownReference=function(e){u.dropdown=e},u.closeSuggestionDropdown=function(){u.state.showSuggestions&&u.setState({showSuggestions:!1})},u.filteredSuggestions=[],u.filterSuggestions=function(e){var t=l.getSuggestions?l.getSuggestions():[];u.filteredSuggestions=Z(t,e,l.caseSensitive)},u.debouncedFetchSuggestion=function(n,e){var r,o=1<arguments.length&&void 0!==e?e:500;return function(){var e=arguments,t=this;clearTimeout(r),r=setTimeout(function(){return n.apply(t,e)},o)}}(function(e){l.fetchSuggestions(e).then(function(e){u.filteredSuggestions=e,u.setState({showSuggestions:0<e.length,showLoader:!1})})}),u.updateSuggestions=function(e){e=e.children[0].props.text.substr(1);l.fetchSuggestions?(u.setState({showLoader:!0}),u.debouncedFetchSuggestion(e)):u.filterSuggestions(e)},u.addMention=function(e){var t,n,r,o=u.state.activeOption,i=l.getEditorState(),a=l.onChange,s=l.separator,c=l.trigger,o=u.filteredSuggestions[o];o&&(i=i,a=a,s=s,c=c,e=e,t=(o=o).label,n=o.value,o=o.url,n=i.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(c).concat(n),value:n,url:o}).getLastCreatedEntityKey(),o=Object(m.getSelectedBlock)(i).getText(),r=i.getSelection().focusOffset,s=(o.lastIndexOf(s+c,r)||0)+1,c=!1," "===o[r=o.length===s+1?o.length:r]&&(c=!0),e&&(r=s+1),o=i.getSelection().merge({anchorOffset:s,focusOffset:r}),e=y.EditorState.acceptSelection(i,o),r=y.Modifier.replaceText(e.getCurrentContent(),o,"".concat(t),null,n),e=y.EditorState.push(e,r,"insert-characters"),c||(o=e.getSelection().merge({anchorOffset:s+t.length,focusOffset:s+t.length}),e=y.EditorState.acceptSelection(e,o),r=y.Modifier.insertText(e.getCurrentContent(),o," ",e.getCurrentInlineStyle(),void 0)),a(y.EditorState.push(e,r,"insert-characters")))},u.getOptionClass=function(e){var t,n=u.state.activeOption;return v()((I(t={},"Editor-dropdown-option",!0),I(t,"Editor-dropdown-option--highlight",e===n),t))},u.renderOption=function(e,t){var n,r=l.dropdownOptions,r=(void 0===r?{}:r).customOptionRenderer,o=e.icon,i=e.label;return r?(n=r(e,u.state.activeOption,t),g.a.cloneElement(n,{key:t,spellCheck:!1,onClick:function(e){u.addMention(e),n.props.onClick&&n.props.onClick()},"data-index":t,onMouseEnter:u.onOptionMouseEnter,onMouseLeave:u.onOptionMouseLeave})):g.a.createElement("span",{key:t,spellCheck:!1,onClick:function(){return u.addMention("onMouseSelect")},"data-index":t,onMouseEnter:u.onOptionMouseEnter,onMouseLeave:u.onOptionMouseLeave,className:u.getOptionClass(t)},o&&g.a.createElement(_.f,{name:o,className:"mr-4"}),g.a.createElement(_.m,null,i))},u}return Nr(o,[{key:"componentDidMount",value:function(){var e=this.suggestion.getBoundingClientRect(),t=e.left,e=e.top+25;this.setState({style:{left:t,top:e}}),b.registerCallBack(this.onEditorKeyDown),V(),l.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.updateSuggestions(this.props),this.setState({showSuggestions:!0}),document.addEventListener("scroll",this.closeSuggestionDropdown,{once:!0})}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&(this.updateSuggestions(this.props),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("scroll",this.closeSuggestionDropdown),b.deregisterCallBack(this.onEditorKeyDown),G(),l.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var e,n=this,t=this.props.children,r=this.state.showSuggestions,o=l.dropdownOptions,o=(void 0===o?{}:o).dropdownClassName,o=v()((I(e={},"Popover",!0),I(e,"".concat(o),void 0!==o),I(e,"Editor-mention-dropdown",!0),I(e,"position-fixed",!0),e));return g.a.createElement("span",{className:"Editor-mention-suggestion",ref:this.setSuggestionReference,onClick:l.modalHandler.onSuggestionClick,"aria-haspopup":"true"},g.a.createElement("span",null,t),r&&g.a.createElement("span",{className:o,style:this.state.style,contentEditable:"false",suppressContentEditableWarning:!0,ref:this.setDropdownReference},this.state.showLoader?g.a.createElement("span",{className:"Editor-dropdown-option"},g.a.createElement(_.j,{withImage:!1},g.a.createElement(_.k,{length:"large"}),g.a.createElement(_.k,{length:"large"}),g.a.createElement(_.k,{length:"large"}))):this.filteredSuggestions.map(function(e,t){return n.renderOption(e,t)})))}}]),o}(d.Component)).propTypes={children:h.a.array},e}.bind(this),this.getSuggestionDecorator=function(){return{strategy:c.findSuggestionEntities,component:c.getSuggestionComponent()}},t.separator),r=t.trigger,o=t.getSuggestions,i=t.onChange,a=t.getEditorState,s=t.getWrapperRef,u=t.caseSensitive,l=t.optionClassName,f=t.modalHandler,p=t.dropdownOptions,t=t.fetchSuggestions;this.config={separator:void 0===n?" ":n,trigger:void 0===r?"@":r,getSuggestions:o,onChange:i,getEditorState:a,getWrapperRef:s,caseSensitive:u,dropdownOptions:p,optionClassName:l,modalHandler:f,fetchSuggestions:t}}),Lr=function(e){return[new kr(e).getMentionDecorator(),new Rr(e).getSuggestionDecorator()]},Fr=(Pr.propTypes={block:h.a.object,contentState:h.a.object},Pr);function zr(e){return(zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Br(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kr(e,t){return(Kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Hr(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ur(n),t=(e=r?(e=Ur(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===zr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Ur(e){return(Ur=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qr=function(c){var e=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Kr(t,e);var n,a=Hr(s);function s(){var r,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(r=a.call.apply(a,[this].concat(o))).state={hovered:!1},r.setEntityAlignmentLeft=function(){r.setEntityAlignment("left")},r.setEntityAlignmentRight=function(){r.setEntityAlignment("right")},r.setEntityAlignmentCenter=function(){r.setEntityAlignment("center")},r.setEntityAlignment=function(e){var t=r.props,n=t.block,t=t.contentState,n=n.getEntityAt(0);t.mergeEntityData(n,{alignment:e}),c.onChange(y.EditorState.push(c.getEditorState(),t,"change-block-data"))},r.removeEntity=function(e){e.preventDefault(),e.stopPropagation();var e=r.props,t=e.block,e=e.contentState,t=t.getKey(),n=e.getKeyAfter(t),t=new y.SelectionState({anchorKey:t,anchorOffset:0,focusKey:n,focusOffset:0}),n=y.Modifier.setBlockType(e,t,"unstyled"),n=y.Modifier.removeRange(n,t,"backward");c.onChange(y.EditorState.push(c.getEditorState(),n,"remove-range"))},r.toggleHovered=function(){r.setState({hovered:!r.state.hovered})},r}return t=s,(e=[{key:"renderAlignmentOptions",value:function(){return g.a.createElement("div",{className:"Popover d-flex"},g.a.createElement("div",{onClick:this.setEntityAlignmentLeft,className:"Editor-image-options"},g.a.createElement(_.f,{name:"format_align_left",size:20})),g.a.createElement("div",{onClick:this.setEntityAlignmentCenter,className:"Editor-image-options"},g.a.createElement(_.f,{name:"format_align_center",size:20})),g.a.createElement("div",{onClick:this.setEntityAlignmentRight,className:"Editor-image-options"},g.a.createElement(_.f,{name:"format_align_right",size:20})),g.a.createElement("div",{onClick:this.removeEntity,className:"Editor-image-options"},g.a.createElement(_.f,{name:"delete",size:20})))}},{key:"render",value:function(){var e=this.props,t=e.block,e=e.contentState,n=this.state.hovered,r=c.isImageAlignmentEnabled,e=e.getEntity(t.getEntityAt(0)).getData(),t=e.src,o=e.alignment,i=e.height,a=e.width,e=e.alt,s=v()({"d-flex":!0,"justify-content-end":"right"===o,"justify-content-start":!o||"left"===o,"justify-content-center":"center"===o});return g.a.createElement("div",{onClick:this.toggleHovered,className:s},g.a.createElement("span",{className:"position-relative"},g.a.createElement("img",{src:t,alt:e,style:{height:i,width:a}}),n&&r()&&this.renderAlignmentOptions(o)))}}])&&Br(t.prototype,e),n&&Br(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component);return e.propTypes={block:h.a.object,contentState:h.a.object},e},Wr=function(n,r){return function(e){if("function"==typeof r){var t=r(e,n,n.getEditorState);if(t)return t}if("atomic"===e.getType()){t=n.getEditorState().getCurrentContent().getEntity(e.getEntityAt(0));if(t&&"IMAGE"===t.type)return{component:qr(n),editable:!1};if(t&&"EMBEDDED_LINK"===t.type)return{component:Fr,editable:!1}}}},Vr=["var(--text)","var(--secondary)","var(--success)","var(--primary)","var(--alert)","var(--accent1)"],Gr={options:["heading","textDecoration","colorPicker","list","insert"],textDecoration:{max:4,options:["bold","italic","underline","strikethrough"],bold:{icon:"format_bold",title:"Bold (command B)",label:"Bold"},italic:{icon:"format_italic",title:"Italic (command I)",label:"Italic"},underline:{icon:"format_underlined",title:"Underline (command U)",label:"Underline"},strikethrough:{icon:"strikethrough_s",title:"Strikethrough",label:"Strikethrough"}},heading:{icon:"text_fields",options:["H1","H2","H3","H4"]},list:{options:["unordered","ordered"],unordered:{icon:"format_list_bulleted",title:" Bulleted list"},ordered:{icon:"format_list_numbered",title:"Numbered list"}},colorPicker:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNDA2LjU4NWExLjk5OCAxLjk5OCAwIDAgMC0yLjgyNSAwbC0uNTQuNTRhLjc0MS43NDEgMCAxIDAtMS4wNDggMS4wNDhsLjE3NS4xNzUtNS44MjYgNS44MjUtMi4wMjIgMi4wMjNhLjkxLjkxIDAgMCAwLS4yNjYuNjAybC0uMDA1LjEwOHYuMDAybC0uMDgxIDEuODI5YS4zMDIuMzAyIDAgMCAwIC4zMDIuMzE2aC4wMTNsLjk3LS4wNDQuNTkyLS4wMjYuMjY4LS4wMTJjLjI5Ny0uMDEzLjU3OS0uMTM3Ljc5LS4zNDdsNy43Ny03Ljc3LjE0Ni4xNDRhLjc0Ljc0IDAgMCAwIDEuMDQ4IDBjLjI5LS4yOS4yOS0uNzU5IDAtMS4wNDhsLjU0LS41NGMuNzgtLjc4Ljc4LTIuMDQ0IDAtMi44MjV6TTguNzk1IDcuMzMzbC0yLjczLjUxNSA0LjQ1Mi00LjQ1MiAxLjEwOCAxLjEwNy0yLjgzIDIuODN6TTIuMDggMTMuNjczYy0xLjE0OCAwLTIuMDguMjk1LTIuMDguNjYgMCAuMzYzLjkzMi42NTggMi4wOC42NTggMS4xNSAwIDIuMDgtLjI5NCAyLjA4LS42NTkgMC0uMzY0LS45My0uNjU5LTIuMDgtLjY1OXoiLz48L2c+PC9zdmc+",colors:Vr},insert:{max:3,options:["image","mention","link"],image:{icon:"insert_photo",isVisible:!0,title:"Image",alt:"",defaultSize:{height:"100px",width:"300px"},inputAccept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",uploadCallback:function(e){return new Promise(function(t,n){var r=new FileReader;r.onload=function(e){return t({data:{link:r.result}})},r.onerror=function(e){return n(e)},r.readAsDataURL(e)})}},link:{isVisible:!0,icon:"insert_link",linkCallback:void 0,title:"Link"},mention:{isVisible:!0,icon:"alternate_email",title:"Personalization"}},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}},r={title:h.a.string,label:h.a.string},We={isVisible:h.a.bool,title:h.a.string,alt:h.a.string,uploadCallback:h.a.func,defaultSize:h.a.shape({height:h.a.string,width:h.a.string})},dr={isVisible:h.a.bool,title:h.a.string},C=h.a.shape({textDecoration:h.a.shape({max:h.a.number,bold:h.a.shape(r),italic:h.a.shape(r),underline:h.a.shape(r),strikethrough:h.a.shape(r)}),colorPicker:h.a.shape({colors:h.a.arrayOf(h.a.string)}),insert:h.a.shape({max:h.a.number,image:h.a.shape(We),link:h.a.shape(dr)})});o(213),o(94),o(95),o(96),o(97),o(98);o(99),o(100),o(101);function Yr(e){return(Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $r(){return($r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Zr(e){return function(e){if(Array.isArray(e))return Jr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var n;if(e)return"string"==typeof e?Jr(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jr(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xr(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xr(Object(n),!0).forEach(function(e){N(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eo(e,t){return(eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function to(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=no(n),t=(e=r?(e=no(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Yr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function no(e){return(no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eo(t,e);var n,r=to(o);function o(e){var a;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");(a=r.call(this,e)).onEditorBlur=function(){a.setState({editorFocused:!1})},a.onEditorFocus=function(e){var t=a.props.onFocus,n=(a.setState({editorFocused:!0}),a.focusHandler.isEditorFocused());t&&n&&t(e)},a.onEditorMouseDown=function(){a.focusHandler.onEditorMouseDown()},a.keyBindingFn=function(e){var t;if("Tab"===e.key)return n=a.props.onTab,(t=Object(m.changeDepth)(a.state.editorState,e.shiftKey?-1:1,4))&&t!==a.state.editorState&&(a.onChange(t),e.preventDefault()),n&&n(e,t),null;if("ArrowUp"!==e.key&&"ArrowDown"!==e.key||Y()&&e.preventDefault(),"Backspace"===e.key&&a.isEmptyListBlock()){var n=y.RichUtils.toggleBlockType(a.state.editorState);if(n)return a.onChange(n),a.setState({editorState:y.EditorState.moveFocusToEnd(y.EditorState.createEmpty())}),!0}return Object(y.getDefaultKeyBinding)(e)},a.onToolbarFocus=function(e){var t=a.props.onFocus;t&&a.focusHandler.isToolbarFocused()&&t(e)},a.onWrapperBlur=function(e){var t=a.props.onBlur;t&&a.focusHandler.isEditorBlur(e)&&t(e,a.getEditorState())},a.onChange=function(e,t){var n=a.props,r=n.readOnly,n=n.onEditorStateChange;r||"atomic"===Object(m.getSelectedBlocksType)(e)&&e.getSelection().isCollapsed||(n&&n(e,a.props.wrapperId),i(a.props,"editorState")?a.afterChange(e):a.setState({editorState:e},a.afterChange(e)))},a.setWrapperReference=function(e){a.wrapper=e},a.setEditorReference=function(e){a.props.editorRef&&a.props.editorRef(e),a.editor=e},a.onCloseLinkPopover=function(){a.setState({linkPopoverOpen:!1})},a.onEditLink=function(){a.setState(M(M({},a.state),{},{linkPopoverOpen:!0}))},a.getCompositeDecorator=function(e){var t=[{strategy:_r,component:wr({focusHandler:a.focusHandler,getEditorState:a.getEditorState,onChange:a.onChange,onEditLink:a.onEditLink})}];return a.props.mention&&t.push.apply(t,Zr(Lr(M(M({},a.props.mention),{},{onChange:a.onChange,getEditorState:a.getEditorState,getSuggestions:a.getSuggestions,getWrapperRef:a.getWrapperRef,modalHandler:a.modalHandler})))),new y.CompositeDecorator(t)},a.getWrapperRef=function(){return a.wrapper},a.getEditorState=function(){return a.state?a.state.editorState:null},a.getSuggestions=function(){return a.props.mention&&a.props.mention.suggestions},a.afterChange=function(t){setTimeout(function(){var e=a.props.onContentStateChange;e&&e(Object(y.convertToRaw)(t.getCurrentContent()))})},a.isReadOnly=function(){return a.props.readOnly},a.isImageAlignmentEnabled=function(){return a.state.toolbar.image.alignmentEnabled},a.createEditorState=function(e){var t,n;return i(a.props,"editorState")?a.props.editorState&&(t=y.EditorState.set(a.props.editorState,{decorator:e})):i(a.props,"defaultEditorState")?a.props.defaultEditorState&&(t=y.EditorState.set(a.props.defaultEditorState,{decorator:e})):i(a.props,"contentState")?a.props.contentState&&(n=Object(y.convertFromRaw)(a.props.contentState),t=y.EditorState.createWithContent(n,e),t=y.EditorState.moveSelectionToEnd(t)):i(a.props,"defaultContentState")&&(n=a.props.defaultContentState)&&(n=Object(y.convertFromRaw)(n),t=y.EditorState.createWithContent(n,e),t=y.EditorState.moveSelectionToEnd(t)),t=t||y.EditorState.createEmpty(e)},a.filterEditorProps=function(e){return t=e,n=["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","toolbar","toolbarCustomButtons","toolbarClassName","editorClassName","wrapperClassName","editorStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"],e=Object.keys(t).filter(function(e){return n.indexOf(e)<0}),r={},e&&0<e.length&&e.forEach(function(e){r[e]=t[e]}),r;var t,n,r},a.getStyleMap=function(e){return M(M({},Object(m.getCustomStyleMap)()),e.customStyleMap)},a.changeEditorState=function(e){var e=Object(y.convertFromRaw)(e),t=a.state.editorState,t=y.EditorState.push(t,e,"insert-characters");return y.EditorState.moveSelectionToEnd(t)},a.focusEditor=function(){setTimeout(function(){a.editor.focus()})},a.handleKeyCommand=function(e){var t=a.state,n=t.editorState,t=t.toolbar.textDecoration;if(t&&0<=t.options.indexOf(e)){t=y.RichUtils.handleKeyCommand(n,e);if(t)return a.onChange(t),!0}return!1},a.handleReturn=function(e){var t;return!!Y()||(t=a.state.editorState,!!(t=Object(m.handleNewLine)(t,e))&&(a.onChange(t),!0))},a.handlePastedTextFn=function(e,t){var n,r,o=a.state.editorState,i=a.props.handlePastedText;return i?i(e,t,o,a.onChange):(i=e,e=t,t=o,o=a.onChange,(r=Object(m.getSelectedBlock)(t))&&"code"===r.type?(r=y.Modifier.replaceText(t.getCurrentContent(),t.getSelection(),i,t.getCurrentInlineStyle()),o(y.EditorState.push(t,r,"insert-characters")),!0):!!e&&(i=L()(e),n=t.getCurrentContent(),i.entityMap.forEach(function(e,t){n=n.mergeEntityData(t,e)}),n=y.Modifier.replaceWithFragment(n,t.getSelection(),new z.List(i.contentBlocks)),o(y.EditorState.push(t,n,"insert-characters")),!0))},a.preventDefault=function(e){"INPUT"===e.target.tagName||"LABEL"===e.target.tagName||"TEXTAREA"===e.target.tagName?a.focusHandler.onInputMouseDown():e.preventDefault()},a.isEmptyListBlock=function(){var e=a.state.editorState.getCurrentContent();return!e.hasText()&&"unstyled"!==e.getBlockMap().first().getType()},a.blockRenderMap=y.DefaultDraftBlockRenderMap.merge(Object(z.Map)({"header-one":{wrapper:g.a.createElement(_.e,{size:"xxl"},a.props.children)},"header-two":{wrapper:g.a.createElement(_.e,{size:"xl"},a.props.children)},"header-three":{wrapper:g.a.createElement(_.e,{size:"l"},a.props.children)},"header-four":{wrapper:g.a.createElement(_.e,{size:"m"},a.props.children)},unstyled:{element:"p",wrapper:g.a.createElement("div",null,a.props.children)}}));var t=s(Gr,e.toolbar),n=e.wrapperId||Math.floor(1e4*Math.random()),n=(a.wrapperId="Editor-wrapper-".concat(n),a.modalHandler=new H,a.focusHandler=new W,a.blockRendererFn=Wr({isReadOnly:!0,isImageAlignmentEnabled:a.isImageAlignmentEnabled,getEditorState:a.getEditorState,onChange:a.onChange}),a.editorProps=a.filterEditorProps(e),a.customStyleMap=a.getStyleMap(e),a.compositeDecorator=a.getCompositeDecorator(t),a.createEditorState(a.compositeDecorator));return Object(m.extractInlineStyle)(n),a.state={editorState:n,toolbar:t,editorFocused:!1,linkPopoverOpen:!1},a}return t=o,(e=[{key:"componentDidMount",value:function(){this.props.autoFocus&&this.editor.focus(),this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o;e!==this.props&&(t={},n=(r=this.props).editorState,r=r.contentState,this.state.toolbar||(o=s(Gr,o),t.toolbar=o),i(this.props,"editorState")&&n!==e.editorState?t.editorState=n?y.EditorState.set(n,{decorator:this.compositeDecorator}):y.EditorState.createEmpty(this.compositeDecorator):i(this.props,"contentState")&&r!==e.contentState&&(r?(o=this.changeEditorState(r))&&(t.editorState=o):t.editorState=y.EditorState.createEmpty(this.compositeDecorator)),e.editorState===n&&e.contentState===r||Object(m.extractInlineStyle)(t.editorState),Object.keys(t).length&&this.setState(t),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props))}},{key:"render",value:function(){var e=this.state,t=e.editorState,r=(e.editorFocused,e.toolbar),e=this.props,n=e.toolbarClassName,o=e.editorClassName,i=e.wrapperClassName,a=e.editorStyle,s=e.ariaLabel,c=e.mention,u={linkPopoverOpen:this.state.linkPopoverOpen,onCloseLinkPopover:this.onCloseLinkPopover,modalHandler:this.modalHandler,editorState:t,onChange:this.onChange},e=v()(N({},"Editor-toolbar",!0),n),n=v()(N({},"Editor-wrapper",!0),i),i=v()((N(i={},"Editor",!0),N(i,"hide-placeholder",this.isEmptyListBlock()),i),o);return g.a.createElement("div",{id:this.wrapperId,className:n,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur},this.props.showToolbar&&g.a.createElement("div",{className:e,onMouseDown:this.preventDefault,"aria-label":"Editor-toolbar",onFocus:this.onToolbarFocus},r.options.map(function(e,t){var n=hr[e],e=r[e];return g.a.createElement(n,$r({key:t},u,{config:e,mention:c,className:"Editor-toolbar-options"}))})),g.a.createElement("div",{ref:this.setWrapperReference,className:i,style:a,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:b.onKeyDown,onMouseDown:this.onEditorMouseDown},g.a.createElement(y.Editor,$r({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:t,onChange:this.onChange,blockStyleFn:$,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:s,blockRenderMap:this.blockRenderMap},this.editorProps))))}}])&&Qr(t.prototype,e),n&&Qr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component),ro=(O.utils={EditorState:y.EditorState,ContentState:y.ContentState,RichUtils:y.RichUtils,convertFromRaw:y.convertFromRaw,convertToRaw:y.convertToRaw,htmlToState:function(e){var e=e.replaceAll('<p><br/></p><p id="RichTextEditor-Image"','<p id="RichTextEditor-Image"').replaceAll("<br/>",""),e=L()(e);if(e)return{contentState:e=y.ContentState.createFromBlockArray(e.contentBlocks),editorState:y.EditorState.createWithContent(e)}},stateToHTML:function(e){e=Object(y.convertToRaw)(e.getCurrentContent());return F()(e,{},!1,function(e){var t=e.type,e=e.data;if("IMAGE"===t)return t=e.alignment||"left",'\n <p style="justify-content:'.concat(t,'; display:flex">\n <img src="').concat(e.src,'" alt="').concat(e.alt,'" style="height: ').concat(e.height,";width: ").concat(e.width,'"/>\n </p>\n ')})}},O.propTypes={mention:h.a.shape({separator:h.a.string,trigger:h.a.string,chipOptions:h.a.object,dropdownOptions:h.a.shape({dropdownClassName:h.a.string,customOptionRenderer:h.a.func}),renderer:h.a.func,suggestions:h.a.shape({label:h.a.string,value:h.a.string,icon:h.a.string}),fetchSuggestions:h.a.func}),editorState:h.a.object,onEditorStateChange:h.a.func,defaultEditorState:h.a.object,onContentStateChange:h.a.func,defaultContentState:h.a.object,contentState:h.a.object,spellCheck:h.a.bool,toolbar:C,showToolbar:h.a.bool,editorClassName:h.a.string,wrapperClassName:h.a.string,toolbarClassName:h.a.string,editorStyle:h.a.object,onFocus:h.a.func,onBlur:h.a.func,onTab:h.a.func,textAlignment:h.a.oneOf(["left","right","center"]),readOnly:h.a.bool,autoFocus:h.a.bool,placeholder:h.a.string,ariaLabel:h.a.string,wrapperId:h.a.number,editorRef:h.a.func,handlePastedText:h.a.func},O.defaultProps={autoFocus:!0,showToolbar:!0},O),oo=o(49),io=o.n(oo),ao=o(50);function so(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function A(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){co(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 co(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uo(e){return function(e){if(Array.isArray(e))return lo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var n;if(e)return"string"==typeof e?lo(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lo(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fo(e,n){return g.a.createElement(g.a.Fragment,null,e.map(function(e,t){return g.a.createElement("li",{key:n[t]},e)}))}function po(e,r){return g.a.createElement(g.a.Fragment,null,e.map(function(e,t){var n=1<e.length&&e[1][0];return n&&n.includes("\n")?(n=n.split("\n"),g.a.createElement(_.i,{key:r[t]},n.map(function(e){return[e,g.a.createElement("br",null)]}))):e&&0===(null==(n=e[1])?void 0:n.length)?g.a.createElement("p",null,g.a.createElement("br",null)):g.a.createElement(_.i,{key:r[t]},e.map(function(e){return[e]}))}))}function ho(e,t){var n=void 0===(n=t.entities)?{}:n,r=void 0===(r=t.headings)?{}:r,o=void 0===(o=t.list)?{}:o,t=void 0===(t=t.colors)?[]:t,n=A(A({},_o),n),r=A(A({},vo),r),o=A(A({},bo),o),r=A(A(A({},wo),r),o),o=A(A({},go),So(t)),t={blocks:r,entities:n,styles:Object(oo.createStylesRenderer)(mo,o)};return io()(e,t,!1)}function P(e){var t=e.raw,n=e.entities,r=e.headings,o=e.list,e=e.colors;return(t=t&&ho(t,{entities:n,headings:r,list:o,colors:e}))?g.a.createElement(g.a.Fragment,null,t):null}var yo={paddingLeft:"1.5em",margin:"0px"},go={BOLD:{fontWeight:"bold"},ITALIC:{fontStyle:"italic"},UNDERLINE:{textDecoration:"underline"},STRIKETHROUGH:{textDecoration:"line-through"}},mo=function(e){var t=e.children,n=e.style,e=e.key;return g.a.createElement("span",{key:e,style:n},t)},vo={"header-one":function(e,t){var n=t.keys;return e.map(function(e,t){return g.a.createElement(_.e,{size:"xxl",key:n[t]},e)})},"header-two":function(e,t){var n=t.keys;return e.map(function(e,t){return g.a.createElement(_.e,{size:"xl",key:n[t]},e)})},"header-three":function(e,t){var n=t.keys;return e.map(function(e,t){return g.a.createElement(_.e,{size:"l",key:n[t]},e)})},"header-four":function(e,t){var n=t.keys;return e.map(function(e,t){return g.a.createElement(_.e,{size:"m",key:n[t]},e)})}},bo={"unordered-list-item":function(e,t){t=t.keys;return g.a.createElement("ul",{style:yo},fo(e,t))},"ordered-list-item":function(e,t){t=t.keys;return g.a.createElement("ol",{style:yo},fo(e,t))}},_o={LINK:function(e,t,n){n=n.key;return g.a.createElement(_.h,{key:n,href:t.url},e)},IMAGE:function(e,t){var n=t.src,r=t.alt,o=t.height,i=t.width,t=t.alignment;return g.a.createElement("p",{id:"RichTextEditor-Image",style:{justifyContent:t||"left",display:"flex"}},g.a.createElement("img",{src:n,alt:r,height:o,width:i}))},MENTION:function(e,t,n){n=n.key;return g.a.createElement("span",{name:t.value,className:"Chip--input Chip d-inline-flex mt-3",key:n},e)}},wo={unstyled:function(e,t,n){t=t.keys;return po(e,t)},atomic:function(e,t){return e[0]}},So=function(e){return[].concat(uo(Vr),uo(e)).reduce(function(e,t){var n="color-".concat(t),t={color:t};return A(A({},e),{},co({},n,t))},{})},Eo=(P.utils={convertToHTML:function(e){var t,n,r=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return(e=e&&ho(e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}))&&Object(ao.renderToStaticMarkup)(e)?(t=(n=o(230)).name,n=n.version,t="https://s3.us-east-1.amazonaws.com/webui-assets/".concat(t,"/v").concat(n,"/design-system.css"),n=r?'<link rel="stylesheet" href="'.concat(t,'">'):"","".concat(n," ").concat(Object(ao.renderToStaticMarkup)(e))):""}},P.propTypes={raw:h.a.object.isRequired,colors:h.a.arrayOf(h.a.string),list:h.a.object,headings:h.a.object,entities:h.a.object},P.defaultProps={entities:{},headings:{},list:{},colors:[]},P)}]);
|
|
57
|
+
*/var E=e(17),C=e(0);function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var e="function"==typeof Symbol&&Symbol.for,s=e?Symbol.for("react.portal"):60106,c=e?Symbol.for("react.fragment"):60107,u=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,p=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,F=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,z=e?Symbol.for("react.suspense_list"):60120,B=e?Symbol.for("react.memo"):60115,K=e?Symbol.for("react.lazy"):60116,H=e?Symbol.for("react.block"):60121,U=e?Symbol.for("react.fundamental"):60117,q=e?Symbol.for("react.scope"):60119;function g(e){if(null!=e){if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case c:return"Fragment";case s:return"Portal";case l:return"Profiler";case u:return"StrictMode";case h:return"Suspense";case z:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case f:return"Context.Consumer";case p:return"Context.Provider";case d:var t=(t=e.render).displayName||t.name||"";return e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case B:return g(e.type);case H:return g(e.render);case K:if(e=1===e._status?e._result:null)return g(e)}}return null}var e=C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,W=(e.hasOwnProperty("ReactCurrentDispatcher")||(e.ReactCurrentDispatcher={current:null}),e.hasOwnProperty("ReactCurrentBatchConfig")||(e.ReactCurrentBatchConfig={suspense:null}),{});function m(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var y=new Uint16Array(16),t=0;t<15;t++)y[t]=t+1;y[15]=0;var V=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,G=Object.prototype.hasOwnProperty,Y={},$={};function Z(e){return G.call($,e)||!G.call(Y,e)&&(V.test(e)?$[e]=!0:void(Y[e]=!0))}function J(e,t,n,r){if(null==t||function(e,t,n,r){if(null===n||0!==n.type)switch(typeof t){case"function":case"symbol":return 1;case"boolean":return r?void 0:null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e;default:return}}(e,t,n,r))return 1;if(!r&&null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||t<1}}function n(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var x={},r=("children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){x[e]=new n(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];x[t]=new n(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){x[e]=new n(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){x[e]=new n(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){x[e]=new n(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){x[e]=new n(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){x[e]=new n(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){x[e]=new n(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){x[e]=new n(e,5,!1,e.toLowerCase(),null,!1)}),/[\-:]([a-z])/g);function o(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(r,o);x[t]=new n(t,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(r,o);x[t]=new n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(r,o);x[t]=new n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){x[e]=new n(e,1,!1,e.toLowerCase(),null,!1)}),x.xlinkHref=new n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){x[e]=new n(e,1,!1,e.toLowerCase(),null,!0)});var X=/["'&<>]/;function k(e){if("boolean"==typeof e||"number"==typeof e)return""+e;var t=X.exec(e=""+e);if(t){for(var n="",r=0,o=t.index;o<e.length;o++){switch(e.charCodeAt(o)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}r!==o&&(n+=e.substring(r,o)),r=o+1,n+=t}e=r!==o?n+e.substring(r,o):n}return e}var Q="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},v=null,i=null,a=null,b=!1,_=!1,w=null,S=0;function D(){if(null===v)throw Error(O(321));return v}function ee(){if(0<S)throw Error(O(312));return{memoizedState:null,queue:null,next:null}}function j(){return null===a?null===i?(b=!1,i=a=ee()):(b=!0,a=i):a=null===a.next?(b=!1,a.next=ee()):(b=!0,a.next),a}function te(e,t,n,r){for(;_;)_=!1,S+=1,a=null,n=e(t,r);return i=v=null,S=0,a=w=null,n}function ne(e,t){return"function"==typeof t?t(e):t}function re(e,t,n){if(v=D(),a=j(),b){var r=a.queue;if(t=r.dispatch,null===w||void 0===(n=w.get(r)))return[a.memoizedState,t];for(w.delete(r),r=a.memoizedState;r=e(r,n.action),null!==(n=n.next););return[a.memoizedState=r,t]}return e=e===ne?"function"==typeof t?t():t:void 0!==n?n(t):t,a.memoizedState=e,e=(e=a.queue={last:null,dispatch:null}).dispatch=function(e,t,n){if(!(S<25))throw Error(O(301));if(e===v)if(_=!0,e={action:n,next:null},null===w&&(w=new Map),void 0===(n=w.get(t)))w.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}.bind(null,v,e),[a.memoizedState,e]}function T(){}var I=0,oe={readContext:function(e){var t=I;return m(e,t),e[t]},useContext:function(e){D();var t=I;return m(e,t),e[t]},useMemo:function(e,t){if(v=D(),t=void 0===t?null:t,null!==(a=j())){var n=a.memoizedState;if(null!==n&&null!==t){e:{var r=n[1];if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!Q(t[o],r[o])){r=!1;break e}r=!0}}if(r)return n[0]}}return e=e(),a.memoizedState=[e,t],e},useReducer:re,useRef:function(e){v=D();var t=(a=j()).memoizedState;return null===t?a.memoizedState=e={current:e}:t},useState:function(e){return re(ne,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:T,useEffect:T,useDebugValue:T,useResponder:function(e,t){return{props:t,responder:e}},useDeferredValue:function(e){return D(),e},useTransition:function(){return D(),[function(e){e()},!1]}},ie="http://www.w3.org/1999/xhtml";function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var se={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ce=E({menuitem:!0},se),M={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ue=["Webkit","ms","Moz","O"],le=(Object.keys(M).forEach(function(t){ue.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),M[e]=M[t]})}),/([A-Z])/g),fe=/^ms-/,N=C.Children.toArray,A=e.ReactCurrentDispatcher,pe={listing:!0,pre:!0,textarea:!0},de=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,he={},P={};var ye=Object.prototype.hasOwnProperty,ge={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function me(e,t){if(void 0===e)throw Error(O(152,g(t)||"Component"))}function ve(d,h,y){function e(e,t){var n=t.prototype&&t.prototype.isReactComponent,r=function(e,t,n,r){if(r&&("object"==typeof(r=e.contextType)&&null!==r))return m(r,n),r[n];if(e=e.contextTypes){for(var o in n={},e)n[o]=t[o];t=n}else t=W;return t}(t,h,y,n),o=[],i=!1,a={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===o)return null},enqueueReplaceState:function(e,t){i=!0,o=[t]},enqueueSetState:function(e,t){if(null===o)return null;o.push(t)}};if(n){n=new t(e.props,r,a);"function"==typeof t.getDerivedStateFromProps&&null!=(c=t.getDerivedStateFromProps.call(null,e.props,n.state))&&(n.state=E({},n.state,c))}else if(v={},n=t(e.props,r,a),null==(n=te(t,e.props,n,r))||null==n.render)return void me(d=n,t);if(n.props=e.props,n.context=r,n.updater=a,void 0===(a=n.state)&&(n.state=a=null),"function"==typeof n.UNSAFE_componentWillMount||"function"==typeof n.componentWillMount)if("function"==typeof n.componentWillMount&&"function"!=typeof t.getDerivedStateFromProps&&n.componentWillMount(),"function"==typeof n.UNSAFE_componentWillMount&&"function"!=typeof t.getDerivedStateFromProps&&n.UNSAFE_componentWillMount(),o.length){var a=o,s=i,o=null,i=!1;if(s&&1===a.length)n.state=a[0];else{for(var c=s?a[0]:n.state,u=!0,s=s?1:0;s<a.length;s++){var l=a[s];null!=(l="function"==typeof l?l.call(n,c,e.props,r):l)&&(u?(u=!1,c=E({},c,l)):E(c,l))}n.state=c}}else o=null;if(me(d=n.render(),t),"function"==typeof n.getChildContext&&"object"==typeof(e=t.childContextTypes)){var f,p=n.getChildContext();for(f in p)if(!(f in e))throw Error(O(108,g(t)||"Unknown",f))}p&&(h=E({},h,p))}for(;C.isValidElement(d);){var t=d,n=t.type;if("function"!=typeof n)break;e(t,n)}return{child:d,context:h}}(e=_e.prototype).destroy=function(){var e;this.exhausted||(this.exhausted=!0,this.clearProviders(),e=this.threadID,y[e]=y[0],y[0]=e)},e.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,r=this.threadID,o=(m(n,r),n[r]);this.contextStack[t]=n,this.contextValueStack[t]=o,n[r]=e.props.value},e.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},e.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},e.read=function(e){if(this.exhausted)return null;var t=I,n=(I=this.threadID,A.current);A.current=oe;try{for(var r=[""],o=!1;r[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var i=this.threadID;y[i]=y[0],y[0]=i;break}var a=this.stack[this.stack.length-1];if(o||a.childIndex>=a.children.length){var s=a.footer;if(""!==s&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===a.type)this.currentSelectValue=null;else if(null!=a.type&&null!=a.type.type&&a.type.type.$$typeof===p)this.popProvider(a.type);else if(a.type===h){this.suspenseDepth--;var c=r.pop();if(o){var o=!1,u=a.fallbackFrame;if(!u)throw Error(O(303));this.stack.push(u),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=c}r[this.suspenseDepth]+=s}else{var l=a.children[a.childIndex++],f="";try{f+=this.render(l,a.context,a.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(O(294));throw e}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=f}}return r[0]}finally{A.current=n,I=t}},e.render=function(e,t,n){if("string"==typeof e||"number"==typeof e){if(""===(n=""+e))return"";if(!this.makeStaticMarkup){if(this.previousWasTextNode)return"\x3c!-- --\x3e"+k(n);this.previousWasTextNode=!0}return k(n)}if(e=(t=ve(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!C.isValidElement(e)){if(null==e||null==e.$$typeof)return e=N(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";if((n=e.$$typeof)===s)throw Error(O(257));throw Error(O(258,n.toString()))}var r,o=e.type;if("string"==typeof o)return this.renderDOM(e,t,n);switch(o){case u:case F:case l:case z:case c:return e=N(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case h:throw Error(O(294))}if("object"==typeof o&&null!==o)switch(o.$$typeof){case d:v={};var i=o.render(e.props,e.ref),i=te(o.render,e.props,i,e.ref);return i=N(i),this.stack.push({type:null,domNamespace:n,children:i,childIndex:0,context:t,footer:""}),"";case B:return e=[C.createElement(o.type,E({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case p:return n={type:e,domNamespace:n,children:o=N(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case f:o=e.type,i=e.props;var a=this.threadID;return m(o,a),o=N(i.children(o[a])),this.stack.push({type:e,domNamespace:n,children:o,childIndex:0,context:t,footer:""}),"";case U:throw Error(O(338));case K:switch(o=e.type,-1===(r=o)._status&&(r._status=0,i=(i=r._ctor)(),(r._result=i).then(function(e){0===r._status&&(e=e.default,r._status=1,r._result=e)},function(e){0===r._status&&(r._status=2,r._result=e)})),o._status){case 1:return e=[C.createElement(o._result,E({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw o._result;default:throw Error(O(295))}case q:throw Error(O(343))}throw Error(O(130,null==o?o:typeof o,""))},e.renderDOM=function(e,t,n){var r=e.type.toLowerCase();if(n===ie&&ae(r),!he.hasOwnProperty(r)){if(!de.test(r))throw Error(O(65,r));he[r]=!0}var o,i,a,s,c,u=e.props;if("input"===r)u=E({type:void 0},u,{defaultChecked:void 0,defaultValue:void 0,value:null!=u.value?u.value:u.defaultValue,checked:null!=u.checked?u.checked:u.defaultChecked});else if("textarea"===r){if(null==(l=u.value)){var l=u.defaultValue,f=u.children;if(null!=f){if(null!=l)throw Error(O(92));if(Array.isArray(f)){if(!(f.length<=1))throw Error(O(93));f=f[0]}l=""+f}null==l&&(l="")}u=E({},u,{value:void 0,children:""+l})}else if("select"===r)this.currentSelectValue=null!=u.value?u.value:u.defaultValue,u=E({},u,{value:void 0});else if("option"===r){var f=this.currentSelectValue,p=null==(p=u.children)?p:(o="",C.Children.forEach(p,function(e){null!=e&&(o+=e)}),o);if(null!=f){var d=null!=u.value?u.value+"":p;if(l=!1,Array.isArray(f)){for(var h=0;h<f.length;h++)if(""+f[h]===d){l=!0;break}}else l=""+f===d;u=E({selected:void 0,children:void 0},u,{selected:l,children:p})}}if(l=u){if(ce[r]&&(null!=l.children||null!=l.dangerouslySetInnerHTML))throw Error(O(137,r,""));if(null!=l.dangerouslySetInnerHTML){if(null!=l.children)throw Error(O(60));if(!("object"==typeof l.dangerouslySetInnerHTML&&"__html"in l.dangerouslySetInnerHTML))throw Error(O(61))}if(null!=l.style&&"object"!=typeof l.style)throw Error(O(62,""))}for(S in l=u,f=this.makeStaticMarkup,p=1===this.stack.length,d="<"+e.type,l)if(ye.call(l,S)){var y=l[S];if(null!=y){if("style"===S){var g,m,v,b,h=void 0,_="",w="";for(h in y)y.hasOwnProperty(h)&&(g=0===h.indexOf("--"),null!=(m=y[h])&&(_+=w+(b=g?h:(b=h,P.hasOwnProperty(b)?P[b]:(v=b.replace(le,"-$1").toLowerCase().replace(fe,"-ms-"),P[b]=v)))+":",w=h,_+=g=null==m||"boolean"==typeof m||""===m?"":g||"number"!=typeof m||0===m||M.hasOwnProperty(w)&&M[w]?(""+m).trim():m+"px",w=";"));y=_||null}h=null;e:if(m=l,-1===(g=r).indexOf("-"))g="string"==typeof m.is;else switch(g){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":g=!1;break e;default:g=!0}g?ge.hasOwnProperty(S)||(h=Z(h=S)&&null!=y?h+'="'+k(y)+'"':""):(i=S,a=y,c=s=void 0,s=x.hasOwnProperty(i)?x[i]:null,h=(c=(c="style"!==i)&&(null!==s?0===s.type:2<i.length&&("o"===i[0]||"O"===i[0])&&("n"===i[1]||"N"===i[1])))||J(i,a,s,!1)?"":null!==s?(i=s.attributeName,3===(c=s.type)||4===c&&!0===a?i+'=""':i+'="'+k(a=s.sanitizeURL?""+a:a)+'"'):Z(i)?i+'="'+k(a)+'"':""),h&&(d+=" "+h)}}f||p&&(d+=' data-reactroot=""');var S=d;l="",se.hasOwnProperty(r)?S+="/>":(S+=">",l="</"+e.type+">");e:{if(null!=(f=u.dangerouslySetInnerHTML)){if(null!=f.__html){f=f.__html;break e}}else if("string"==typeof(f=u.children)||"number"==typeof f){f=k(f);break e}f=null}return null!=f?(u=[],pe.hasOwnProperty(r)&&"\n"===f.charAt(0)&&(S+="\n"),S+=f):u=N(u.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ae(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:r,children:u,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,S};var be=_e,e={renderToString:function(e){e=new be(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new be(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(O(207))},renderToStaticNodeStream:function(){throw Error(O(208))},version:"16.14.0"};function _e(e,t){if(e=C.isValidElement(e)&&(e.type!==c||(e=e.props.children,C.isValidElement(e)))?[e]:N(e),e={type:null,domNamespace:ie,children:e,childIndex:0,context:W,footer:""},0===(n=y[0])){var n,r=y,o=2*(n=r.length);if(!(o<=65536))throw Error(O(304));var i=new Uint16Array(o);for(i.set(r),(y=i)[0]=n+1,r=n;r<o-1;r++)y[r]=r+1;y[o-1]=0}else y[0]=y[n];this.threadID=n,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}R.exports=e.default||e},function(e){e.exports=JSON.parse('{"name":"@innovaccer/rich-text-editor","version":"2.0.7","description":"A rich text on top of DraftJS.","main":"dist/rich-text-editor.js","module":"dist/rich-text-editor.js","author":"Innovaccer","devDependencies":{"@babel/core":"^7.7.4","@babel/plugin-proposal-class-properties":"^7.12.1","@babel/preset-env":"^7.7.4","@babel/preset-react":"^7.7.4","@babel/register":"^7.7.4","@innovaccer/design-system":"^2.13.3","@storybook/addon-docs":"6.5.10","@storybook/addon-essentials":"6.5.10","@storybook/react":"6.5.10","@storybook/storybook-deployer":"2.8.12","autoprefixer":"^9.7.3","babel-eslint":"^10.0.3","babel-loader":"^8.0.6","babel-plugin-transform-flow-strip-types":"^6.22.0","chai":"^4.2.0","cross-env":"^6.0.3","css-loader":"^3.2.1","draftjs-to-markdown":"^0.6.0","embed-video":"^2.0.4","enzyme":"^3.10.0","enzyme-adapter-react-16":"^1.15.1","eslint":"^6.7.2","eslint-config-airbnb":"^18.0.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-mocha":"^6.2.2","eslint-plugin-react":"^7.17.0","file-loader":"^5.0.2","flow-bin":"^0.113.0","gulp":"^4.0.2","gulp-clean":"^0.4.0","gulp-concat":"^2.6.1","gulp-postcss":"^9.0.0","gulp-sourcemaps":"^3.0.0","install":"^0.13.0","jsdom":"^16.4.0","mini-css-extract-plugin":"^0.8.0","mocha":"^6.2.2","postcss-color-mod-function":"^3.0.3","postcss-loader":"^3.0.0","precss":"^4.0.0","prettier":"^2.5.1","react":"^16.12.0","react-addons-test-utils":"^15.6.2","react-dom":"^16.12.0","react-test-renderer":"^16.12.0","rimraf":"^3.0.0","sinon":"^7.5.0","style-loader":"^1.0.1","uglifyjs-webpack-plugin":"^2.2.0","url-loader":"^3.0.0","webpack":"^4.41.2","webpack-bundle-analyzer":"^4.0.0","webpack-cli":"^3.3.10","webpack-s3-plugin":"^1.2.0-rc.0"},"dependencies":{"classnames":"^2.2.6","draft-js":"^0.11.7","draftjs-to-html":"^0.9.0","draftjs-utils":"^0.10.2","html-to-draftjs":"^1.5.0","immutable":"^4.0.0-rc.12","linkify-it":"^2.2.0","prop-types":"^15.7.2","redraft":"^0.10.2"},"peerDependencies":{"@innovaccer/design-system":"^2.13.3","react":"0.13.x || 0.14.x || ^15.0.0-0 || 15.x.x || ^16.0.0-0 || ^16.x.x","react-dom":"0.13.x || 0.14.x || ^15.0.0-0 || 15.x.x || ^16.0.0-0 || ^16.x.x"},"scripts":{"build:css":"cp ./node_modules/@innovaccer/design-system/css/dist/* dist/","build-css":"gulp --gulpfile config/gulpfile.js build","clean":"rimraf dist && rimraf public","build:webpack":"cross-env NODE_ENV=production webpack --mode production --config config/webpack.config.js","build":"npm run clean && npm run build-css && npm run build:webpack","test":"cross-env BABEL_ENV=test mocha --require config/test-compiler.js config/test-setup.js src/**/*Test.js","lint":"eslint src","lintdocs":"eslint docs/src","flow":"flow; test $? -eq 0 -o $? -eq 2","check":"npm run lint && npm run flow","storybook":"start-storybook -p 6006","build-storybook":"build-storybook","deploy-storybook":"storybook-to-ghpages","version":"./scripts/version.sh","prettier":"prettier --write \\"**/*.{js,jsx,ts,tsx,json,css}\\""},"license":"MIT"}')},function(R,e,o){"use strict";o.r(e),o.d(e,"Editor",function(){return ro}),o.d(e,"EditorPreview",function(){return Eo});var d=o(0),g=o.n(d),e=o(1),h=o.n(e),y=o(2),m=o(4),e=o(39),L=o.n(e),e=o(92),F=o.n(e),z=o(24),e=o(5),v=o.n(e);function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K(e,t,n){return t&&B(e.prototype,t),n&&B(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var H=K(function e(){var n=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(t){n.callBacks.forEach(function(e){e(t)})},this.init=function(e){e=document.getElementById(e);e&&e.addEventListener("click",function(){n.editorFlag=!0}),document&&(document.addEventListener("click",function(){n.editorFlag?n.editorFlag=!1:(n.closeAllModals(),n.suggestionCallback&&n.suggestionCallback())}),document.addEventListener("keydown",function(e){"Escape"===e.key&&n.closeAllModals()}))},this.onEditorClick=function(){n.closeModals(),!n.suggestionFlag&&n.suggestionCallback?n.suggestionCallback():n.suggestionFlag=!1},this.closeModals=function(e){n.closeAllModals(e)},this.registerCallBack=function(e){n.callBacks.push(e)},this.deregisterCallBack=function(t){n.callBacks=n.callBacks.filter(function(e){return e!==t})},this.setSuggestionCallback=function(e){n.suggestionCallback=e},this.removeSuggestionCallback=function(){n.suggestionCallback=void 0},this.onSuggestionClick=function(){n.suggestionFlag=!0}});function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q(e,t,n){return t&&U(e.prototype,t),n&&U(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var t,W=q(function e(){var t=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");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}}),n=[],b={onKeyDown:function(t){n.forEach(function(e){e(t)})},registerCallBack:function(e){n.push(e)},deregisterCallBack:function(t){n=n.filter(function(e){return e!==t})}},V=function(){t=!0},G=function(){t=!1},Y=function(){return t};function $(e){e=e.getData()&&e.getData().get("text-align");return e?"rdw-".concat(e,"-aligned-block"):""}function c(e,t){if(e)for(var n in e)!{}.hasOwnProperty.call(e,n)||t(n,e[n])}function i(e,t){var n=!1;if(e)for(var r in e)if({}.hasOwnProperty.call(e,r)&&t===r){n=!0;break}return n}function f(e){e.stopPropagation()}function Z(e,t,n){return e&&e.filter(function(e){return!t||0===t.length||(n?0<=e.value.indexOf(t):0<=e.value.toLowerCase().indexOf(t&&t.toLowerCase()))})}function J(e){return e[e.options[0]].icon}function s(e,n){var r;return e&&void 0===n?e:(r={},c(e,function(e,t){"[object Object]"===Object.prototype.toString.call(t)?r[e]=s(t,n[e]):r[e]=void 0!==n[e]?n[e]:t}),r)}function X(e){return(X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ee(e,t){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function te(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=a(n),t=(e=r?(e=a(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===X(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ee(t,e);var n,a=te(s);function s(){var i,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(i=a.call.apply(a,[this].concat(r))).onClick=function(){var e=i.props,t=e.disabled,n=e.onClick,e=e.value;t||n(e)},i.handleKeyDown=function(e){var t=new Set(["Enter","Space","Spacebar"," "]),n=i.props,r=n.disabled,o=n.onClick,n=n.value;r||t.has(e.key)&&(e.preventDefault(),o(n,e))},i}return t=s,(e=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.className,o=t.activeClassName,i=t.active,a=t.disabled,t=t["aria-label"],o=v()((u(e={},"Editor-option",!0),u(e,"Editor-option--active",i&&!o),u(e,"".concat(o),i&&o),u(e,"Editor-option--disabled",a),e),r);return g.a.createElement("div",{"aria-label":t,onKeyDown:this.handleKeyDown,tabIndex:0,className:o,onClick:this.onClick,"aria-selected":i},n)}}])&&Q(t.prototype,e),n&&Q(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component),_=(l.propTypes={onClick:h.a.func.isRequired,children:h.a.any,value:h.a.string,className:h.a.string,activeClassName:h.a.string,active:h.a.bool,disabled:h.a.bool,title:h.a.string,tabIndex:h.a.number},l.defaultProps={activeClassName:""},o(3));function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ie(e,t){return(ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ae(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=p(n),t=(e=r?(e=p(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ne(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ie(t,e);var n,r=ae(o);function o(e){var i;if(this instanceof o)return(i=r.call(this,e)).buttonRef=null,i.listRef=null,i.handleOutsideClick=function(e){i.listRef.current&&!i.listRef.current.contains(e.target)&&i.toggleExpansion()},i.onChange=function(e){var t=i.props.onChange;t&&t(e),i.toggleExpansion()},i.setHighlighted=function(e){i.setState({highlighted:e})},i.focusTrigger=function(){var e;null!=(e=i.buttonRef.current)&&e.focus()},i.focusTriggerOnClose=function(e){"Escape"!==e.key&&"Enter"!==e.key||(i.toggleExpansion(),i.focusTrigger())},i.toggleExpansion=function(){var e=i.props,t=e.doExpand,n=e.doCollapse;(e.expanded?n:t)()},i.handleExpand=function(e){i.props.onExpandEvent(e)},i.handleListKeyDown=function(e){e.preventDefault();var t,n=i.state.highlighted,r=i.props.children[1],o=e.key;"ArrowDown"===o||"ArrowUp"===o?(t=r.length-1,i.setState(function(e){return{highlighted:"ArrowDown"===o?Math.min(e.highlighted+1,t):Math.max(e.highlighted-1,0)}})):"Enter"===o&&(e=r[n].props.value,(r=i.props.onChange)&&r(e))},i.buttonRef=g.a.createRef(),i.listRef=g.a.createRef(),i.state={highlighted:-1},i;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.expanded;e.expanded&&!t&&(this.setState({highlighted:-1}),document.removeEventListener("keydown",this.focusTriggerOnClose),document.removeEventListener("click",this.handleOutsideClick)),!e.expanded&&t&&(document.addEventListener("keydown",this.focusTriggerOnClose),document.addEventListener("click",this.handleOutsideClick),this.setState({highlighted:0}),this.listRef.current.focus())}},{key:"render",value:function(){var n=this,e=this.props,t=e.expanded,r=e.children,o=e.className,i=e.optionWrapperClassName,a=e.triggerClassName,s=e.ariaLabel,e=(e.onExpandEvent,e.menu),c=this.state.highlighted,u=r.slice(1,r.length),l=v()((re(l={},"Editor-dropdown",!0),re(l,"Editor-dropdown--expanded",t),l),o);return g.a.createElement("div",{className:l},g.a.createElement(_.a,{ref:this.buttonRef,appearance:"transparent","aria-expanded":t,"aria-label":s||"Editor-dropdown",className:a,onClick:this.handleExpand},r[0],!e&&g.a.createElement(_.f,{name:"keyboard_arrow_down"})),t&&g.a.createElement("ul",{tabIndex:1,ref:this.listRef,onKeyDown:this.handleListKeyDown,className:v()("Editor-dropdown-optionWrapper",i),onClick:f},g.a.Children.map(u,function(e,t){return e&&g.a.cloneElement(e,{onSelect:n.onChange,highlighted:c===t,setHighlighted:n.setHighlighted,highlightedClassName:"Editor-dropdown-option--highlight",index:t})})))}}])&&oe(t.prototype,e),n&&oe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component);function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ue(e,t){return(ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function le(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=fe(n),t=(e=r?(e=fe(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===se(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function fe(e){return(fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}w.propTypes={children:h.a.any,onChange:h.a.func,className:h.a.string,expanded:h.a.bool,menu:h.a.bool,doExpand:h.a.func,doCollapse:h.a.func,onExpandEvent:h.a.func,optionWrapperClassName:h.a.string,triggerClassName:h.a.string,ariaLabel:h.a.string,title:h.a.string};var E=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ue(t,e);var n,a=le(s);function s(){var i,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(i=a.call.apply(a,[this].concat(r))).onClick=function(e){var t=i.props,n=t.onSelect,r=t.onClick,o=t.value;t.disabled||(n&&n(o),r&&(e.stopPropagation(),r(o)))},i.setHighlighted=function(){i.props.setHighlighted(i.props.index)},i.resetHighlighted=function(){(0,i.props.setHighlighted)(-1)},i}return t=s,(e=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.active,o=t.disabled,i=t.highlighted,a=t.className,s=t.isCheckbox,c=t.activeClassName,u=t.disabledClassName,t=t.highlightedClassName,c=v()((S(e={},"Editor-dropdown-option",!0),S(e,"Editor-dropdown-option--active ".concat(c),r&&!s),S(e,"".concat(t),i),S(e,"".concat(u),o),e),a);return g.a.createElement("li",{tabIndex:1,className:c,onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick},n)}}])&&ce(t.prototype,e),n&&ce(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component);function pe(e){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function de(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function he(e,t){return(he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ye(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ge(n),t=(e=r?(e=ge(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===pe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}E.propTypes={children:h.a.any,value:h.a.any,onClick:h.a.func,onSelect:h.a.func,setHighlighted:h.a.func,index:h.a.number,disabled:h.a.bool,active:h.a.bool,highlighted:h.a.bool,className:h.a.string,activeClassName:h.a.string,disabledClassName:h.a.string,highlightedClassName:h.a.string,title:h.a.string,isCheckbox:h.a.bool},E.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""};var me=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&he(t,e);var n,r=ye(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"renderInDropdown",value:function(){var e=this.props,i=e.config,t=e.expanded,n=e.doExpand,r=e.onExpandEvent,o=e.doCollapse,a=e.currentState,e=e.onChange,s=i.options.length-i.max;return g.a.createElement(_.n,{tooltip:"More formatting"},g.a.createElement(w,{onChange:e,expanded:t,doExpand:n,doCollapse:o,onExpandEvent:r,triggerClassName:"Editor-textDecoration-moreIcon",menu:!0},g.a.createElement(_.f,{name:"more_horizon",size:20}),i.options.slice(i.max,i.options.length).map(function(e,t){var n=!0===a[e]||"MONOSPACE"===e&&a.CODE,r=i[e],o=r.icon,r=(r.title,r.label);return g.a.createElement(E,{key:t,value:e,active:n,isCheckbox:1<s},1<s?g.a.createElement(_.b,{checked:n,label:r}):g.a.createElement(g.a.Fragment,null,g.a.createElement(_.f,{size:20,name:o,className:"mr-4",appearance:n?"white":"default"}),g.a.createElement(_.m,{appearance:n?"white":"default"},r)))})))}},{key:"render",value:function(){var e,t,n=this.props,i=n.config,a=n.currentState,s=n.onChange,n=n.className,r=i.options.length-i.max,o=i.max,c=v()((t=!0,(c="Editor-textDecoration")in(e={})?Object.defineProperty(e,c,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[c]=t,e),n);return g.a.createElement("div",{className:c},i.options.slice(0,o).map(function(e,t){var n=!0===a[e]||"MONOSPACE"===e&&a.CODE,r=i[e],o=r.title,r=r.icon;return g.a.createElement(_.n,{tooltip:o},g.a.createElement(l,{"aria-label":"".concat(e," button"),role:"button",tabIndex:0,key:t,value:e,onClick:s,active:n,className:"mr-2"},g.a.createElement(_.f,{name:r,size:20,appearance:n?"info":"default"})))}),0<r&&this.renderInDropdown())}}])&&de(t.prototype,e),n&&de(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component);function ve(e){return(ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _e(e,t){return(_e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function we(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Se(n),t=(e=r?(e=Se(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ve(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Se(e){return(Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}me.propTypes={expanded:h.a.bool,doExpand:h.a.func,doCollapse:h.a.func,onExpandEvent:h.a.func,config:h.a.object,onChange:h.a.func,currentState:h.a.object,className:h.a.string};e=function(e){var t=i;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_e(t,e);var n,r=we(i);function i(e){var o;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");(o=r.call(this,e)).expandCollapse=function(){o.setState(function(e){return{expanded:!e.expanded}})},o.toggleInlineStyle=function(e){var t=o.props,n=t.editorState,t=t.onChange,e=e.toUpperCase(),r=Object(m.getSelectionEntity)(n);if(r){r=n.getCurrentContent().getEntity(r).getType();if("MENTION"===r||"LINK"===r)return}r=y.RichUtils.toggleInlineStyle(n,e);r&&t(r)},o.changeKeys=function(e){var n;if(e)return n={},c(e,function(e,t){n["CODE"===e?"monospace":e.toLowerCase()]=t}),n},o.doExpand=function(){o.setState({expanded:!0})},o.doCollapse=function(){o.setState({expanded:!1})};var e=o.props,t=e.editorState;e.modalHandler;return o.state={currentStyles:t?o.changeKeys(Object(m.getSelectionInlineStyle)(t)):{}},o}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentStyles:this.changeKeys(Object(m.getSelectionInlineStyle)(t))})}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.className,n=this.state,r=n.expanded,n=n.currentStyles,o=t.component||me;return g.a.createElement(o,{config:t,currentState:n,expanded:r,onExpandEvent:this.expandCollapse,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle,className:e})}}])&&be(t.prototype,e),n&&be(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component);function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oe(e,t){return(Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xe(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ke(n),t=(e=r?(e=ke(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ee(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}e.propTypes={onChange:h.a.func.isRequired,editorState:h.a.object.isRequired,modalHandler:h.a.object,config:h.a.object,className:h.a.string};var r=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Oe(t,e);var n,r=xe(o);function o(e){if(this instanceof o)return(e=r.call(this,e)).getBlockTypes=function(){return[{label:"H1",size:"xxl",displayName:"Heading 1"},{label:"H2",size:"xl",displayName:"Heading 2"},{label:"H3",size:"l",displayName:"Heading 3"},{label:"H4",size:"m",displayName:"Heading 4"}]},e.state={blockTypes:e.getBlockTypes()},e;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"renderInDropdown",value:function(e){var t=this.props,n=t.config.icon,r=t.currentState.blockType,o=t.expanded,i=t.doExpand,a=t.onExpandEvent,s=t.doCollapse,c=t.onChange,t=t.className;return g.a.createElement("div",{className:t,"aria-label":"Editor-block-control"},g.a.createElement(_.n,{tooltip:"Text style"},g.a.createElement(w,{onChange:c,expanded:o,doExpand:i,doCollapse:s,onExpandEvent:a,triggerClassName:"Editor-heading-trigger"},g.a.createElement(_.f,{name:n,size:20}),e.map(function(e,t){return g.a.createElement(E,{index:t,active:r===e.label,value:e.label,key:t},g.a.createElement(_.e,{size:e.size,className:"Editor-heading-option",appearance:r===e.label?"white":"default"},e.displayName))}))))}},{key:"render",value:function(){var t=this.props.config,e=this.state.blockTypes.filter(function(e){e=e.label;return-1<t.options.indexOf(e)});return this.renderInDropdown(e)}}])&&Ce(t.prototype,e),n&&Ce(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component),De=(r.propTypes={expanded:h.a.bool,onExpandEvent:h.a.func,doExpand:h.a.func,doCollapse:h.a.func,onChange:h.a.func,config:h.a.object,currentState:h.a.object,className:h.a.string},r);function je(e){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ie(e,t){return(Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Me(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ne(n),t=(e=r?(e=Ne(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===je(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Ne(e){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r=function(e){var t=i;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ie(t,e);var n,r=Me(i);function i(e){var o;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");(o=r.call(this,e)).expandCollapse=function(){o.setState(function(e){return{expanded:!e.expanded}})},o.blocksTypes=[{label:"H1",style:"header-one"},{label:"H2",style:"header-two"},{label:"H3",style:"header-three"},{label:"H4",style:"header-four"}],o.doExpand=function(){o.setState({expanded:!0})},o.doCollapse=function(){o.setState({expanded:!1})},o.toggleBlockType=function(t){var e=o.blocksTypes.find(function(e){return e.label===t}).style,n=o.props,r=n.editorState,n=n.onChange,r=y.RichUtils.toggleBlockType(r,e);r&&n(r)};e=e.editorState;return o.state={expanded:!1,currentBlockType:e?Object(m.getSelectedBlocksType)(e):"unstyled"},o}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlockType:Object(m.getSelectedBlocksType)(t)})}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.className,n=this.state,r=n.expanded,o=n.currentBlockType,n=this.blocksTypes.find(function(e){return e.style===o});return g.a.createElement(De,{config:t,currentState:{blockType:n&&n.label},onChange:this.toggleBlockType,expanded:r,onExpandEvent:this.expandCollapse,doExpand:this.doExpand,doCollapse:this.doCollapse,className:e})}}])&&Te(t.prototype,e),n&&Te(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component),r.propTypes={onChange:h.a.func.isRequired,editorState:h.a.object,config:h.a.object,className:h.a.string};o(201);function Ae(e){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Re(e,t){return(Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Le(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Fe(n),t=(e=r?(e=Fe(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ae(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Fe(e){return(Fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ze=function(e){var t=a;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Re(t,e);var n,i=Le(a);function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).state={defaultFontSize:void 0},e}return t=a,(e=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");e&&0<e.length&&(e=(e=window.getComputedStyle(e[0]).getPropertyValue("font-size")).substring(0,e.length-2),this.setState({defaultFontSize:e}))}},{key:"renderCustomTrigger",value:function(){return g.a.createElement("div",null,"Riya")}},{key:"render",value:function(){var e=this.props,t=e.config,n=(t.icon,t.className),r=(t.dropdownClassName,t.options),t=(t.title,e.onChange),e=(e.expanded,e.doCollapse,e.onExpandEvent,e.doExpand,e.translations,this.props.currentState.fontSize),o=this.state.defaultFontSize,o=Number(o);e||r&&r.indexOf(o);return g.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},g.a.createElement(_.d,{className:v()("rdw-fontsize-dropdown",n),onChange:t,customTrigger:this.renderCustomTrigger,icon:"text_fields",placeholder:"",options:r.map(function(e){return{label:e,value:e,selected:14===e}})}))}}])&&Pe(t.prototype,e),n&&Pe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(d.Component);function Be(e){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function He(e,t){return(He=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ue(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=qe(n),t=(e=r?(e=qe(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Be(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ze.propTypes={expanded:h.a.bool,onExpandEvent:h.a.func,doExpand:h.a.func,doCollapse:h.a.func,onChange:h.a.func,config:h.a.object,currentState:h.a.object,translations:h.a.object};var We=function(e){var t=i;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&He(t,e);var n,o=Ue(i);function i(e){var r;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");(r=o.call(this,e)).onExpandEvent=function(){r.signalExpanded=!r.state.expanded},r.expandCollapse=function(){r.setState({expanded:r.signalExpanded}),r.signalExpanded=!1},r.doExpand=function(){r.setState({expanded:!0})},r.doCollapse=function(){r.setState({expanded:!1})},r.toggleFontSize=function(e){var t=r.props,n=t.editorState,t=t.onChange,n=Object(m.toggleCustomInlineStyle)(n,"fontSize",e);n&&t(n)};var t=e.editorState,e=e.modalHandler;return r.state={expanded:void 0,currentFontSize:t?Object(m.getSelectionCustomInlineStyle)(t,["FONTSIZE"]).FONTSIZE:void 0},e.registerCallBack(r.expandCollapse),r}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontSize:Object(m.getSelectionCustomInlineStyle)(t,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.translations,n=this.state,r=n.expanded,n=n.currentFontSize,o=t.component||ze,n=n&&Number(n.substring(9));return g.a.createElement(o,{config:t,fontSize:!0,translations:e,currentState:{fontSize:n},onChange:this.toggleFontSize,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ke(t.prototype,e),n&&Ke(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component);We.propTypes={onChange:h.a.func.isRequired,editorState:h.a.object,modalHandler:h.a.object,config:h.a.object,translations:h.a.object},o(202);function Ve(e){return(Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ye(e,t){return(Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $e(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ze(n),t=(e=r?(e=Ze(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ve(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Ze(e){return(Ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=function(e){var t=a;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ye(t,e);var n,i=$e(a);function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).state={defaultFontFamily:void 0},e}return t=a,(e=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");e&&0<e.length&&(e=window.getComputedStyle(e[0]).getPropertyValue("font-family"),this.setState({defaultFontFamily:e}))}},{key:"render",value:function(){var t=this.state.defaultFontFamily,e=this.props,n=e.config,r=n.className,o=n.dropdownClassName,i=n.options,n=n.title,a=e.translations,s=e.onChange,c=e.expanded,u=e.doCollapse,l=e.onExpandEvent,e=e.doExpand,f=this.props.currentState.fontFamily||i&&t&&i.some(function(e){return e.toLowerCase()===t.toLowerCase()})&&t;return g.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},g.a.createElement(w,{className:v()("rdw-fontfamily-dropdown",r),optionWrapperClassName:v()("rdw-fontfamily-optionwrapper",o),onChange:s,expanded:c,doExpand:e,doCollapse:u,onExpandEvent:l,title:n||a["components.controls.fontfamily.fontfamily"]},g.a.createElement("span",{className:"rdw-fontfamily-placeholder"},f||a["components.controls.fontfamily.fontfamily"]),i.map(function(e,t){return g.a.createElement(E,{active:f===e,value:e,key:t},e)})))}}])&&Ge(t.prototype,e),n&&Ge(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(d.Component),Je=(C.propTypes={expanded:h.a.bool,onExpandEvent:h.a.func,doExpand:h.a.func,doCollapse:h.a.func,onChange:h.a.func,config:h.a.object,currentState:h.a.object,translations:h.a.object},C);function Xe(e){return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function et(e,t){return(et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tt(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=nt(n),t=(e=r?(e=nt(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Xe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function nt(e){return(nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}C=function(e){var t=i;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&et(t,e);var n,o=tt(i);function i(e){var r;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");(r=o.call(this,e)).onExpandEvent=function(){r.signalExpanded=!r.state.expanded},r.expandCollapse=function(){r.setState({expanded:r.signalExpanded}),r.signalExpanded=!1},r.doExpand=function(){r.setState({expanded:!0})},r.doCollapse=function(){r.setState({expanded:!1})},r.toggleFontFamily=function(e){var t=r.props,n=t.editorState,t=t.onChange,n=Object(m.toggleCustomInlineStyle)(n,"fontFamily",e);n&&t(n)};var t=e.editorState,e=e.modalHandler;return r.state={expanded:void 0,currentFontFamily:t?Object(m.getSelectionCustomInlineStyle)(t,["FONTFAMILY"]).FONTFAMILY:void 0},e.registerCallBack(r.expandCollapse),r}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontFamily:Object(m.getSelectionCustomInlineStyle)(t,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.translations,n=this.state,r=n.expanded,n=n.currentFontFamily,o=t.component||Je,n=n&&n.substring(11);return g.a.createElement(o,{translations:e,config:t,currentState:{fontFamily:n},onChange:this.toggleFontFamily,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Qe(t.prototype,e),n&&Qe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component);function rt(e){return(rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function it(e,t){return(it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function at(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=st(n),t=(e=r?(e=st(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===rt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function st(e){return(st=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}C.propTypes={onChange:h.a.func.isRequired,editorState:h.a.object,modalHandler:h.a.object,config:h.a.object,translations:h.a.object};var ct=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&it(t,e);var n,a=at(s);function s(){var t,e=this,n=s;if(!(e instanceof n))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=a.call.apply(a,[this].concat(o))).options=["unordered","ordered"],t.toggleBlockType=function(e){(0,t.props.onChange)(e)},t}return t=s,(e=[{key:"render",value:function(){var e,t,n=this.props,r=n.config,o=n.currentState.listType,n=n.className,i=(r.options,r.unordered),r=r.ordered,a=v()((t=!0,(a="d-flex")in(e={})?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e),n);return g.a.createElement("div",{className:a},g.a.createElement(_.n,{tooltip:i.title},g.a.createElement(l,{value:"unordered",onClick:this.toggleBlockType,active:"unordered"===o,className:"mr-2"},g.a.createElement(_.f,{appearance:"unordered"===o?"info":"default",name:i.icon,size:20}))),g.a.createElement(_.n,{tooltip:r.title},g.a.createElement(l,{value:"ordered",onClick:this.toggleBlockType,active:"ordered"===o},g.a.createElement(_.f,{appearance:"ordered"===o?"info":"default",name:r.icon,size:20}))))}}])&&ot(t.prototype,e),n&&ot(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component);function ut(e){return(ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ft(e,t){return(ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pt(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=dt(n),t=(e=r?(e=dt(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ut(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function dt(e){return(dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ct.propTypes={expanded:h.a.bool,doExpand:h.a.func,doCollapse:h.a.func,onExpandEvent:h.a.func,config:h.a.object,onChange:h.a.func,currentState:h.a.object,className:h.a.string};var O=function(e){var t=i;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ft(t,e);var n,o=pt(i);function i(e){var r;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");(r=o.call(this,e)).onExpandEvent=function(){r.signalExpanded=!r.state.expanded},r.onChange=function(e){"unordered"===e?r.toggleBlockType("unordered-list-item"):"ordered"===e?r.toggleBlockType("ordered-list-item"):"indent"===e?r.adjustDepth(1):r.adjustDepth(-1)},r.expandCollapse=function(){r.setState({expanded:r.signalExpanded}),r.signalExpanded=!1},r.doExpand=function(){r.setState({expanded:!0})},r.doCollapse=function(){r.setState({expanded:!1})},r.toggleBlockType=function(e){var t=r.props,n=t.onChange,t=t.editorState,t=y.RichUtils.toggleBlockType(t,e);t&&n(t)},r.adjustDepth=function(e){var t=r.props,n=t.onChange,t=t.editorState,t=Object(m.changeDepth)(t,e,4);t&&n(t)},r.isIndentDisabled=function(){var e=r.props.editorState,t=r.state.currentBlock,e=Object(m.getBlockBeforeSelectedBlock)(e);return!e||!Object(m.isListBlock)(t)||e.get("type")!==t.get("type")||e.get("depth")<t.get("depth")},r.isOutdentDisabled=function(){var e=r.state.currentBlock;return!e||!Object(m.isListBlock)(e)||e.get("depth")<=0};var e=r.props,t=e.editorState,e=e.modalHandler;return r.state={expanded:!1,currentBlock:t?Object(m.getSelectedBlock)(t):void 0},e.registerCallBack(r.expandCollapse),r}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlock:Object(m.getSelectedBlock)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e,t=this.props,n=t.config,r=t.translations,t=t.className,o=this.state,i=o.expanded,o=o.currentBlock;return"unordered-list-item"===o.get("type")?e="unordered":"ordered-list-item"===o.get("type")&&(e="ordered"),g.a.createElement(ct,{config:n,translations:r,currentState:{listType:e},expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,className:t})}}])&<(t.prototype,e),n&<(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component);O.propTypes={onChange:h.a.func.isRequired,editorState:h.a.object.isRequired,modalHandler:h.a.object,config:h.a.object,translations:h.a.object,className:h.a.string},o(203);function ht(e){return(ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gt(e,t){return(gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function mt(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=vt(n),t=(e=r?(e=vt(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ht(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function vt(e){return(vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bt=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&>(t,e);var n,r=mt(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.left,o=t.center,i=t.right,a=t.justify,t=t.className,s=e.onChange,c=e.currentState.textAlignment,e=e.translations;return g.a.createElement("div",{className:v()("rdw-text-align-wrapper",t),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&g.a.createElement(l,{value:"left",className:v()(r.className),active:"left"===c,onClick:s,title:r.title||e["components.controls.textalign.left"]},g.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("center")&&g.a.createElement(l,{value:"center",className:v()(o.className),active:"center"===c,onClick:s,title:o.title||e["components.controls.textalign.center"]},g.a.createElement("img",{src:o.icon,alt:""})),0<=n.indexOf("right")&&g.a.createElement(l,{value:"right",className:v()(i.className),active:"right"===c,onClick:s,title:i.title||e["components.controls.textalign.right"]},g.a.createElement("img",{src:i.icon,alt:""})),0<=n.indexOf("justify")&&g.a.createElement(l,{value:"justify",className:v()(a.className),active:"justify"===c,onClick:s,title:a.title||e["components.controls.textalign.justify"]},g.a.createElement("img",{src:a.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,o=e.onExpandEvent,i=e.doCollapse,a=e.currentState.textAlignment,s=e.onChange,e=e.translations,c=t.options,u=t.left,l=t.center,f=t.right,p=t.justify,d=t.className,h=t.dropdownClassName,y=t.title;return g.a.createElement(w,{className:v()("rdw-text-align-dropdown",d),optionWrapperClassName:v()(h),onChange:s,expanded:n,doExpand:r,doCollapse:i,onExpandEvent:o,"aria-label":"rdw-textalign-control",title:y||e["components.controls.textalign.textalign"]},g.a.createElement("img",{src:a&&t[a]&&t[a].icon||J(t),alt:""}),0<=c.indexOf("left")&&g.a.createElement(E,{value:"left",active:"left"===a,className:v()("rdw-text-align-dropdownOption",u.className),title:u.title||e["components.controls.textalign.left"]},g.a.createElement("img",{src:u.icon,alt:""})),0<=c.indexOf("center")&&g.a.createElement(E,{value:"center",active:"center"===a,className:v()("rdw-text-align-dropdownOption",l.className),title:l.title||e["components.controls.textalign.center"]},g.a.createElement("img",{src:l.icon,alt:""})),0<=c.indexOf("right")&&g.a.createElement(E,{value:"right",active:"right"===a,className:v()("rdw-text-align-dropdownOption",f.className),title:f.title||e["components.controls.textalign.right"]},g.a.createElement("img",{src:f.icon,alt:""})),0<=c.indexOf("justify")&&g.a.createElement(E,{value:"justify",active:"justify"===a,className:v()("rdw-text-align-dropdownOption",p.className),title:p.title||e["components.controls.textalign.justify"]},g.a.createElement("img",{src:p.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&yt(t.prototype,e),n&&yt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component);function _t(e){return(_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function St(e,t){return(St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Et(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ct(n),t=(e=r?(e=Ct(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===_t(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Ct(e){return(Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}bt.propTypes={expanded:h.a.bool,doExpand:h.a.func,doCollapse:h.a.func,onExpandEvent:h.a.func,config:h.a.object,onChange:h.a.func,currentState:h.a.object,translations:h.a.object};var Ot=function(e){var t=i;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&St(t,e);var n,o=Et(i);function i(e){var r;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");(r=o.call(this,e)).onExpandEvent=function(){r.signalExpanded=!r.state.expanded},r.expandCollapse=function(){r.setState({expanded:r.signalExpanded}),r.signalExpanded=!1},r.doExpand=function(){r.setState({expanded:!0})},r.doCollapse=function(){r.setState({expanded:!1})},r.addBlockAlignmentData=function(e){var t=r.props,n=t.editorState,t=t.onChange;t(r.state.currentTextAlignment!==e?Object(m.setBlockData)(n,{"text-align":e}):Object(m.setBlockData)(n,{"text-align":void 0}))};e=r.props.modalHandler;return r.state={currentTextAlignment:void 0},e.registerCallBack(r.expandCollapse),r}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t!==e.editorState&&this.setState({currentTextAlignment:Object(m.getSelectedBlocksMetadata)(t).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.translations,n=this.state,r=n.expanded,n=n.currentTextAlignment,o=t.component||bt;return g.a.createElement(o,{config:t,translations:e,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:n},onChange:this.addBlockAlignmentData})}}])&&wt(t.prototype,e),n&&wt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component);function xt(e){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dt(e,t){return(Dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function jt(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Tt(n),t=(e=r?(e=Tt(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===xt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Tt(e){return(Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ot.propTypes={editorState:h.a.object.isRequired,onChange:h.a.func.isRequired,modalHandler:h.a.object,config:h.a.object,translations:h.a.object};var x=function(e){var t=i;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dt(t,e);var n,r=jt(i);function i(e){var o;if(this instanceof i)return(o=r.call(this,e)).onChange=function(e){var t=o.props,n=t.onChange;t.expanded&&n(o.state.currentStyle,e)},o.handleClick=function(e){var t=e.target.getAttribute("data-color");t&&(e.preventDefault(),e.stopPropagation(),o.onChange(t))},o.handleKeyDown=function(e){var t=e.target.getAttribute("data-color");t&&"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),o.onChange(t))},o.renderModal=function(){var e=o.props,t=e.config.colors,e=e.currentState,n=e.color,e=e.bgColor,r="color"===o.state.currentStyle?n:e;return g.a.createElement("div",{className:"Editor-colorPicker",onClick:o.handleClick,onKeyDown:o.handleKeyDown},t.map(function(e,t){return g.a.createElement("div",{className:"Editor-colorPicker-circleWrapper"},g.a.createElement("div",{ref:0===t?o.ref:null,"data-color":e,tabIndex:0,key:t,style:{backgroundColor:e},className:"Editor-colorPicker-circle","aria-selected":r===e}),r===e&&g.a.createElement(_.f,{name:"check",appearance:"white",className:"Editor-colorPicker-selectedCircle"}))}))},o.state={currentStyle:"color"},o.ref=g.a.createRef(),o;throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidUpdate",value:function(e){this.props.expanded&&!e.expanded&&(this.ref.current,this.setState({currentStyle:"color"}))}},{key:"render",value:function(){var e=this.props,t=e.expanded,n=e.onToggle,e=e.className,n=g.a.createElement(_.n,{tooltip:"Text color"},g.a.createElement(l,{tabIndex:0,"aria-label":"Font colors",onClick:n,active:t,activeClassName:"bg-secondary"},g.a.createElement(_.f,{name:"text_format",size:20})));return g.a.createElement("div",{className:e,"aria-haspopup":"true","aria-expanded":t},g.a.createElement(_.l,{trigger:n,position:"bottom-start",open:t},this.renderModal()))}}])&&kt(t.prototype,e),n&&kt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component),It=(x.propTypes={expanded:h.a.bool,onToggle:h.a.func,onChange:h.a.func,config:h.a.object,currentState:h.a.object,className:h.a.className},x);function Mt(e){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function At(e,t){return(At=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pt(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Rt(n),t=(e=r?(e=Rt(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Mt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Rt(e){return(Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&At(t,e);var n,r=Pt(o);function o(e){var i;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");(i=r.call(this,e)).state={expanded:!1,currentColor:"var(--text)",currentBgColor:void 0},i.expandCollapse=function(){i.setState({expanded:!1})},i.toggleColorPicker=function(){i.setState(function(e){return{expanded:!e.expanded}})},i.toggleColor=function(t,n){var e=i.props,r=e.editorState,o=e.onChange,e=Object(m.getSelectionEntity)(r);if(e){e=r.getCurrentContent().getEntity(e).getType();if("MENTION"===e||"LINK"===e)return}i.setState(function(){return{currentColor:n?"color-".concat(n):"color-var(--text)",currentBgColor:Object(m.getSelectionCustomInlineStyle)(r,["BGCOLOR"]).BGCOLOR,expanded:!1}},function(){var e=Object(m.toggleCustomInlineStyle)(r,t,n);e&&o(e)})};var t=e.editorState,e=e.modalHandler,n={expanded:!1,currentColor:void 0,currentBgColor:void 0};return t&&(n.currentColor=Object(m.getSelectionCustomInlineStyle)(t,["COLOR"]).COLOR||"color-var(--text)",n.currentBgColor=Object(m.getSelectionCustomInlineStyle)(t,["BGCOLOR"]).BGCOLOR),i.state=n,e.registerCallBack(i.expandCollapse),i}return t=o,(e=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.className,n=this.state,r=n.currentColor,o=n.currentBgColor,n=n.expanded,i=t.component||It,r=r&&r.substring(6),o=o&&o.substring(8);return g.a.createElement(i,{config:t,className:e,onChange:this.toggleColor,expanded:n,onToggle:this.toggleColorPicker,currentState:{color:r,bgColor:o}})}}])&&Nt(t.prototype,e),n&&Nt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component),Lt=(x.propTypes={onChange:h.a.func.isRequired,editorState:h.a.object.isRequired,modalHandler:h.a.object,config:h.a.object,className:h.a.string},o(93)),Lt=o.n(Lt);function Ft(e){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bt(e,t){return(Bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Kt(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ht(n),t=(e=r?(e=Ht(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ft(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Ht(e){return(Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bt(t,e);var n,a=Kt(s);function s(){var r,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(r=a.call.apply(a,[this].concat(o))).state={showModal:!1,editing:!1,linkTarget:"",linkTitle:"",linkTargetOption:r.props.config.defaultTargetOption},r.addLink=function(){var e=r.props.onChange,t=r.state;e("link",t.linkTitle,t.linkTarget,t.linkTargetOption)},r.updateValue=function(e){var t,n;r.setState((t={},n="".concat(e.target.name),e=e.target.value,n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t))},r.updateTargetOption=function(e){r.setState({linkTargetOption:e.target.checked?"_blank":"_self"})},r}return t=s,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.currentState,n=t.link,t=t.selectionText;e.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption}),!e.expanded&&this.props.expanded&&this.setState({showModal:!1,linkTarget:n&&n.target,linkTitle:n&&n.title||t,linkTargetOption:this.props.config.defaultTargetOption,editing:void 0!==n})}},{key:"renderAddLinkModal",value:function(){var e=this.props.onExpandEvent,t=this.state,n=t.linkTitle,r=t.linkTarget,t=t.editing?"Edit":"Insert";return g.a.createElement("div",{className:"px-6 mt-6 mb-5",onClick:f},g.a.createElement(_.m,{weight:"strong",size:"large"},t," link"),g.a.createElement(_.g,{icon:"insert_link",className:"mt-4",placeholder:"Paste a link to insert",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:r,autoComplete:"off",autoFocus:!0,onClick:f}),g.a.createElement(_.g,{icon:"text_fields",className:"my-5",placeholder:"Text to display",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:n,autoComplete:"off",onClick:f}),g.a.createElement("div",{className:"d-flex justify-content-end"},g.a.createElement(_.a,{onClick:e,className:"mr-4"},"Cancel"),g.a.createElement(_.a,{onClick:this.addLink,disabled:!r||!n,appearance:"primary"},t)))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,t=t.title,r=e.inDropdown,o=e.onExpandEvent,e=e.expanded,t=r?g.a.createElement(E,null,g.a.createElement(_.f,{size:20,name:n,className:"mr-4"}),g.a.createElement(_.m,null,t)):g.a.createElement(_.n,{tooltip:"Link"},g.a.createElement(l,{value:"unordered-list-item",onClick:o,"aria-haspopup":"true","aria-expanded":e,active:e,activeClassName:"bg-secondary"},g.a.createElement(_.f,{name:n,size:20})));return g.a.createElement("div",{"aria-haspopup":"true","aria-expanded":e},g.a.createElement(_.l,{trigger:t,position:r?"right":"bottom",open:e,onToggle:o},this.renderAddLinkModal()))}}])&&zt(t.prototype,e),n&&zt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component),Ut=(k.propTypes={expanded:h.a.bool,doExpand:h.a.func,doCollapse:h.a.func,onExpandEvent:h.a.func,config:h.a.object,onChange:h.a.func,currentState:h.a.object,inDropdown:h.a.boolean},k);function qt(e){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vt(e,t){return(Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gt(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Yt(n),t=(e=r?(e=Yt(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===qt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Yt(e){return(Yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $t(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Zt(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?$t(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):$t(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}function Jt(e){var t=Xt.match(e.target);return Zt(Zt({},e),{},{target:t&&t[0]&&t[0].url||e.target})}var Xt=Lt()(),k=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vt(t,e);var n,r=Gt(o);function o(e){var s;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");(s=r.call(this,e)).onExpandEvent=function(){var e=!s.state.expanded;s.setState({expanded:e}),e||s.props.onCloseLinkPopover()},s.onChange=function(e,t,n,r){var o=s.props.config.linkCallback;"link"===e?(e=(o||Jt)({title:t,target:n,targetOption:r}),s.addLink(e.title,e.target,e.targetOption)):s.removeLink()},s.getCurrentValues=function(){var e,t=s.props.editorState,n=s.state,r=n.currentEntity,n=(n.link,t.getCurrentContent()),o={};return r&&"LINK"===n.getEntity(r).get("type")&&(o.link={},e=r&&Object(m.getEntityRange)(t,r),o.link.target=r&&n.getEntity(r).get("data").url,o.link.targetOption=r&&n.getEntity(r).get("data").targetOption,o.link.title=e&&e.text),o.selectionText=Object(m.getSelectionText)(t),o},s.doExpand=function(){s.setState({expanded:!0})},s.expandCollapse=function(){s.setState({expanded:s.signalExpanded}),s.signalExpanded=!1},s.doCollapse=function(){s.setState({expanded:!1})},s.removeLink=function(){var e=s.props,t=e.editorState,e=e.onChange,n=s.state.currentEntity,r=t.getSelection();n&&(n=Object(m.getEntityRange)(t,n),r=r.getIsBackward()?r.merge({anchorOffset:n.end,focusOffset:n.start}):r.merge({anchorOffset:n.start,focusOffset:n.end}),e(y.RichUtils.toggleLink(t,r,null)))},s.addLink=function(e,t,n){var r=s.props,o=r.editorState,r=r.onChange,i=s.state.currentEntity,a=o.getSelection(),i=(i&&(i=Object(m.getEntityRange)(o,i),a=a.getIsBackward()?a.merge({anchorOffset:i.end,focusOffset:i.start}):a.merge({anchorOffset:i.start,focusOffset:i.end})),o.getCurrentContent().createEntity("LINK","MUTABLE",{url:t,targetOption:n,targetText:e}).getLastCreatedEntityKey()),t=y.Modifier.replaceText(o.getCurrentContent(),a,"".concat(e),null,i),n=y.EditorState.push(o,t,"insert-characters");a=n.getSelection().merge({anchorOffset:a.get("anchorOffset")+e.length,focusOffset:a.get("anchorOffset")+e.length}),n=y.EditorState.acceptSelection(n,a),t=y.Modifier.insertText(n.getCurrentContent(),a," ",n.getCurrentInlineStyle(),void 0),r(y.EditorState.push(n,t,"insert-characters")),s.props.onCloseLinkPopover(),s.doCollapse()};var e=s.props,t=e.editorState,e=e.linkPopoverOpen;return s.state={expanded:e,selectionText:void 0,link:void 0,currentEntity:t?Object(m.getSelectionEntity)(t):void 0},s}return t=o,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.editorState,t=t.linkPopoverOpen;n&&n!==e.editorState&&this.setState({currentEntity:Object(m.getSelectionEntity)(n)}),e.linkPopoverOpen!==t&&t&&this.setState({expanded:t})}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.inDropdown,n=this.state.expanded,r=this.getCurrentValues(),o=r.link,r=r.selectionText;return g.a.createElement(Ut,{config:t,expanded:n,inDropdown:e,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:o,selectionText:r},onChange:this.onChange})}}])&&Wt(t.prototype,e),n&&Wt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component),Lt=(k.propTypes={editorState:h.a.object.isRequired,onChange:h.a.func.isRequired,onCloseLinkPopover:h.a.func.isRequired,modalHandler:h.a.object,config:h.a.object,inDropdown:h.a.boolean,linkPopoverOpen:h.a.bool},k);function Qt(e){return(Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function en(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tn(e,t){return(tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nn(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=rn(n),t=(e=r?(e=rn(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Qt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function rn(e){return(rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}k=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tn(t,e);var n,r=nn(o);function o(e){var i;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");(i=r.call(this,e)).addLink=function(){var e=i.props,t=e.editorState,n=e.onChange,e=e.mention.trigger,e=void 0===e?"@":e,r=i.state.currentEntity,o=t.getSelection(),r=(r&&(r=Object(m.getEntityRange)(t,r),o=o.getIsBackward()?o.merge({anchorOffset:r.end,focusOffset:r.start}):o.merge({anchorOffset:r.start,focusOffset:r.end})),y.Modifier.replaceText(t.getCurrentContent(),o,"".concat(e),t.getCurrentInlineStyle(),void 0)),o=y.EditorState.push(t,r,"insert-characters");n(y.EditorState.push(o,r,"insert-characters"))};e=i.props.editorState;return i.state={selectionText:void 0,link:void 0,currentEntity:e?Object(m.getSelectionEntity)(e):void 0},i}return t=o,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentEntity:Object(m.getSelectionEntity)(t)})}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,t=t.title,r=e.mention.label;e.inDropdown;return g.a.createElement(_.n,{tooltip:r||t},g.a.createElement(l,{value:"unordered-list-item",onClick:this.addLink,className:"mr-2"},g.a.createElement(_.f,{name:n,size:20})))}}])&&en(t.prototype,e),n&&en(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component),k.propTypes={editorState:h.a.object.isRequired,onChange:h.a.func.isRequired,config:h.a.object,inDropdown:h.a.boolean};o(209);function on(e){return(on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function an(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sn(e,t){return(sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cn(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=un(n),t=(e=r?(e=un(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===on(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function un(e){return(un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var D=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sn(t,e);var n,a=cn(s);function s(){var r,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(r=a.call.apply(a,[this].concat(o))).state={embeddedLink:"",height:r.props.config.defaultSize.height,width:r.props.config.defaultSize.width},r.onChange=function(){var e=r.props.onChange,t=r.state;e(t.embeddedLink,t.height,t.width)},r.updateValue=function(e){var t,n;r.setState((t={},n="".concat(e.target.name),e=e.target.value,n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t))},r}return t=s,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.expanded,t=t.config;!n&&e.expanded&&(e=(n=t.defaultSize).height,t=n.width,this.setState({embeddedLink:"",height:e,width:t}))}},{key:"rendeEmbeddedLinkModal",value:function(){var e=this.state,t=e.embeddedLink,n=e.height,e=e.width,r=this.props,o=r.config.popupClassName,i=r.doCollapse,r=r.translations;return g.a.createElement("div",{className:v()("rdw-embedded-modal",o),onClick:f},g.a.createElement("div",{className:"rdw-embedded-modal-header"},g.a.createElement("span",{className:"rdw-embedded-modal-header-option"},r["components.controls.embedded.embeddedlink"],g.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),g.a.createElement("div",{className:"rdw-embedded-modal-link-section"},g.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},g.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:r["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:t,name:"embeddedLink"}),g.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),g.a.createElement("div",{className:"rdw-embedded-modal-size"},g.a.createElement("span",null,g.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:n,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),g.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),g.a.createElement("span",null,g.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:e,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),g.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),g.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},g.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!t||!n||!e},r["generic.add"]),g.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:i},r["generic.cancel"])))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,t=t.title,o=e.expanded,i=e.onExpandEvent,e=e.translations;return g.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":o,"aria-label":"rdw-embedded-control"},g.a.createElement(l,{className:v()(r),value:"unordered-list-item",onClick:i,title:t||e["components.controls.embedded.embedded"]},g.a.createElement("img",{src:n,alt:""})),o?this.rendeEmbeddedLinkModal():void 0)}}])&&an(t.prototype,e),n&&an(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component),ln=(D.propTypes={expanded:h.a.bool,onExpandEvent:h.a.func,onChange:h.a.func,config:h.a.object,translations:h.a.object,doCollapse:h.a.func},D);function fn(e){return(fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dn(e,t){return(dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function hn(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=yn(n),t=(e=r?(e=yn(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===fn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function yn(e){return(yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}D=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dn(t,e);var n,i=hn(s);function s(){var a,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(a=i.call.apply(i,[this].concat(r))).state={expanded:!1},a.onExpandEvent=function(){a.signalExpanded=!a.state.expanded},a.expandCollapse=function(){a.setState({expanded:a.signalExpanded}),a.signalExpanded=!1},a.doExpand=function(){a.setState({expanded:!0})},a.doCollapse=function(){a.setState({expanded:!1})},a.addEmbeddedLink=function(e,t,n){var r=a.props,o=r.editorState,i=r.onChange,r=r.config.embedCallback,r=r?r(e):e,e=o.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:r,height:t,width:n}).getLastCreatedEntityKey();i(y.AtomicBlockUtils.insertAtomicBlock(o,e," ")),a.doCollapse()},a}return t=s,(e=[{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 e=this.props,t=e.config,e=e.translations,n=this.state.expanded,r=t.component||ln;return g.a.createElement(r,{config:t,translations:e,onChange:this.addEmbeddedLink,expanded:n,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&pn(t.prototype,e),n&&pn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component),D.propTypes={editorState:h.a.object.isRequired,onChange:h.a.func.isRequired,modalHandler:h.a.object,config:h.a.object,translations:h.a.object};o(210);function gn(e){return(gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vn(e,t){return(vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function bn(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=_n(n),t=(e=r?(e=_n(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===gn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function _n(e){return(_n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vn(t,e);var n,a=bn(s);function s(){var t,e=this,n=s;if(!(e instanceof n))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=a.call.apply(a,[this].concat(o))).onChange=function(e){(0,t.props.onChange)(e.target.innerHTML)},t}return t=s,(e=[{key:"renderEmojiModal",value:function(){var n=this,e=this.props.config,t=e.popupClassName,e=e.emojis;return g.a.createElement("div",{className:v()("rdw-emoji-modal",t),onClick:f},e.map(function(e,t){return g.a.createElement("span",{key:t,className:"rdw-emoji-icon",alt:"",onClick:n.onChange},e)}))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,t=t.title,o=e.expanded,i=e.onExpandEvent,e=e.translations;return g.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":o,title:t||e["components.controls.emoji.emoji"]},g.a.createElement(l,{className:v()(r),value:"unordered-list-item",onClick:i},g.a.createElement("img",{src:n,alt:""})),o?this.renderEmojiModal():void 0)}}])&&mn(t.prototype,e),n&&mn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component),wn=(j.propTypes={expanded:h.a.bool,onExpandEvent:h.a.func,onChange:h.a.func,config:h.a.object,translations:h.a.object},j);function Sn(e){return(Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function En(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cn(e,t){return(Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function On(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=xn(n),t=(e=r?(e=xn(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Sn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function xn(e){return(xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}j=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Cn(t,e);var n,a=On(s);function s(){var r,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(r=a.call.apply(a,[this].concat(o))).state={expanded:!1},r.onExpandEvent=function(){r.signalExpanded=!r.state.expanded},r.expandCollapse=function(){r.setState({expanded:r.signalExpanded}),r.signalExpanded=!1},r.doExpand=function(){r.setState({expanded:!0})},r.doCollapse=function(){r.setState({expanded:!1})},r.addEmoji=function(e){var t=r.props,n=t.editorState,t=t.onChange,e=y.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),e,n.getCurrentInlineStyle());t(y.EditorState.push(n,e,"insert-characters")),r.doCollapse()},r}return t=s,(e=[{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 e=this.props,t=e.config,e=e.translations,n=this.state.expanded,r=t.component||wn;return g.a.createElement(r,{config:t,translations:e,onChange:this.addEmoji,expanded:n,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&En(t.prototype,e),n&&En(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component);function kn(e){return(kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jn(e,t){return(jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tn(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=In(n),t=(e=r?(e=In(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===kn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function In(e){return(In=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}j.propTypes={editorState:h.a.object.isRequired,onChange:h.a.func.isRequired,modalHandler:h.a.object,config:h.a.object,translations:h.a.object};var T=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jn(t,e);var n,r=Tn(o);function o(e){var i;if(this instanceof o)return(i=r.call(this,e)).inputRef=null,i.showImageUploadOption=function(){i.setState({uploadHighlighted:!0})},i.addImageFromState=function(){var e=i.state,t=e.imgSrc,e=e.alt,n=i.state,r=n.height,n=n.width,o=i.props.onChange;isNaN(r)||(r+="px"),isNaN(n)||(n+="px"),o(t,r,n,e)},i.showImageURLOption=function(){i.setState({uploadHighlighted:!1})},i.toggleShowImageLoading=function(){var e=!i.state.showImageLoading;i.setState({showImageLoading:e})},i.updateValue=function(e){var t,n;i.setState((t={},n="".concat(e.target.name),e=e.target.value,n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t))},i.selectImage=function(e){e.target.files&&0<e.target.files.length&&i.uploadImage(e.target.files[0]),e.target.value=null},i.uploadImage=function(e){i.toggleShowImageLoading(),(0,i.props.config.uploadCallback)(e).then(function(e){e=e.data;i.setState({showImageLoading:!1,dragEnter:!1,imgSrc:e.link||e.url},i.addImageFromState),i.fileUpload=!1}).catch(function(){i.setState({showImageLoading:!1,dragEnter:!1})})},i.fileUploadClick=function(e,t){i.inputRef.current&&t&&t.key&&i.inputRef.current.click(),i.fileUpload=!0},i.stopPropagation=function(e){i.fileUpload?i.fileUpload=!1:(e.preventDefault(),e.stopPropagation())},i.handleButtonClick=function(){i.inputRef&&i.inputRef.current&&i.inputRef.current.click()},i.inputRef=g.a.createRef(),i.state={imgSrc:"",dragEnter:!1,uploadHighlighted:i.props.config.uploadEnabled&&!!i.props.config.uploadCallback,showImageLoading:!1,height:i.props.config.defaultSize.height,width:i.props.config.defaultSize.width,alt:""},i;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.config;e.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback,showImageLoading:!1,height:t.defaultSize.height,width:t.defaultSize.width,alt:""}):t.uploadCallback===e.config.uploadCallback&&t.uploadEnabled===e.config.uploadEnabled||this.setState({uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback})}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=(t.className,t.title),t=t.inputAccept,o=e.expanded;return e.inDropdown?g.a.createElement(E,null,g.a.createElement("label",{htmlFor:"file",className:"Editor-insert-imageLabel"},g.a.createElement(_.f,{name:n,size:20,className:"mr-4"}),g.a.createElement(_.m,null,r)),g.a.createElement("input",{ref:this.inputRef,type:"file",id:"file",accept:t,onChange:this.selectImage,className:"Editor-insert-imageInput"})):g.a.createElement("div",{"aria-haspopup":"true","aria-expanded":o},g.a.createElement(_.n,{tooltip:r},g.a.createElement(l,{"aria-label":"add image",className:"mr-2",value:"unordered-list-item",onClick:this.fileUploadClick},g.a.createElement("span",null,g.a.createElement("label",{htmlFor:"file",className:"Editor-insert-imageLabel"},g.a.createElement(_.f,{name:n,size:20}))),g.a.createElement("input",{ref:this.inputRef,type:"file",id:"file",accept:t,onChange:this.selectImage,className:"Editor-insert-imageInput"}))))}}])&&Dn(t.prototype,e),n&&Dn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component),Mn=(T.propTypes={expanded:h.a.bool,onExpandEvent:h.a.func,doCollapse:h.a.func,onChange:h.a.func,config:h.a.object,translations:h.a.object,inDropdown:h.a.bool},T);function Nn(e){return(Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function An(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pn(e,t){return(Pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Rn(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ln(n),t=(e=r?(e=Ln(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Nn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Ln(e){return(Ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fn(e){var t=e.config,n=e.onChange,e=e.translations,r=t.icon,o=t.className,t=t.title;return g.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},g.a.createElement(l,{className:v()(o),onClick:n,title:t||e["components.controls.remove.remove"]},g.a.createElement("img",{src:r,alt:""})))}var T=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pn(t,e);var n,r=Rn(o);function o(e){var s;if(this instanceof o)return(s=r.call(this,e)).addImage=function(e,t,n,r){var o=s.props,i=o.editorState,a=o.onChange,e={src:e,height:t,width:n},t=(o.config.alt&&(e.alt=r),i.getCurrentContent().createEntity("IMAGE","MUTABLE",e).getLastCreatedEntityKey());a(y.AtomicBlockUtils.insertAtomicBlock(i,t," "))},s.state={expanded:!1},s;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"componentWillUnmount",value:function(){}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.inDropdown;return g.a.createElement(Mn,{config:t,inDropdown:e,onChange:this.addImage})}}])&&An(t.prototype,e),n&&An(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component),zn=(T.propTypes={editorState:h.a.object.isRequired,onChange:h.a.func.isRequired,config:h.a.object,inDropdown:h.a.bool},o(211),Fn.propTypes={onChange:h.a.func,config:h.a.object,translations:h.a.object},Fn);function Bn(e){return(Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hn(e,t){return(Hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Un(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=qn(n),t=(e=r?(e=qn(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Bn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function qn(e){return(qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wn=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hn(t,e);var n,a=Un(s);function s(){var n,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=a.call.apply(a,[this].concat(o))).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 e=n.props,t=e.editorState;(0,e.onChange)(n.removeAllInlineStyles(t))},n.removeAllInlineStyles=function(n){var r=n.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(e){r=y.Modifier.removeInlineStyle(r,n.getSelection(),e)}),c(Object(m.getSelectionCustomInlineStyle)(n,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),function(e,t){t&&(r=y.Modifier.removeInlineStyle(r,n.getSelection(),t))}),y.EditorState.push(n,r,"change-inline-style")},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n}return t=s,(e=[{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 e=this.props,t=e.config,e=e.translations,n=this.state.expanded,r=t.component||zn;return g.a.createElement(r,{config:t,translations:e,expanded:n,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&Kn(t.prototype,e),n&&Kn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component);Wn.propTypes={onChange:h.a.func.isRequired,editorState:h.a.object.isRequired,config:h.a.object,translations:h.a.object,modalHandler:h.a.object},o(212);function Vn(e){return(Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yn(e,t){return(Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $n(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Zn(n),t=(e=r?(e=Zn(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Vn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Zn(e){return(Zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jn=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yn(t,e);var n,a=$n(s);function s(){var t,e=this,n=s;if(!(e instanceof n))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=a.call.apply(a,[this].concat(o))).onChange=function(e){(0,t.props.onChange)(e)},t}return t=s,(e=[{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,o=e.onExpandEvent,i=e.doCollapse,a=e.currentState,s=a.undoDisabled,a=a.redoDisabled,e=e.translations,c=t.options,u=t.undo,l=t.redo,f=t.className,p=t.dropdownClassName,d=t.title;return g.a.createElement(w,{className:v()("rdw-history-dropdown",f),optionWrapperClassName:v()(p),expanded:n,doExpand:r,doCollapse:i,onExpandEvent:o,"aria-label":"rdw-history-control",title:d||e["components.controls.history.history"]},g.a.createElement("img",{src:J(t),alt:""}),0<=c.indexOf("undo")&&g.a.createElement(E,{value:"undo",onClick:this.onChange,disabled:s,className:v()("rdw-history-dropdownoption",u.className),title:u.title||e["components.controls.history.undo"]},g.a.createElement("img",{src:u.icon,alt:""})),0<=c.indexOf("redo")&&g.a.createElement(E,{value:"redo",onClick:this.onChange,disabled:a,className:v()("rdw-history-dropdownoption",l.className),title:l.title||e["components.controls.history.redo"]},g.a.createElement("img",{src:l.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.undo,o=t.redo,t=t.className,i=e.currentState,a=i.undoDisabled,i=i.redoDisabled,e=e.translations;return g.a.createElement("div",{className:v()("rdw-history-wrapper",t),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&g.a.createElement(l,{value:"undo",onClick:this.onChange,className:v()(r.className),disabled:a,title:r.title||e["components.controls.history.undo"]},g.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("redo")&&g.a.createElement(l,{value:"redo",onClick:this.onChange,className:v()(o.className),disabled:i,title:o.title||e["components.controls.history.redo"]},g.a.createElement("img",{src:o.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Gn(t.prototype,e),n&&Gn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component);function Xn(e){return(Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function er(e,t){return(er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tr(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=nr(n),t=(e=r?(e=nr(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Xn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function nr(e){return(nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Jn.propTypes={expanded:h.a.bool,doExpand:h.a.func,doCollapse:h.a.func,onExpandEvent:h.a.func,config:h.a.object,onChange:h.a.func,currentState:h.a.object,translations:h.a.object};var rr=function(e){var t=i;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&er(t,e);var n,o=tr(i);function i(e){var r;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");(r=o.call(this,e)).onExpandEvent=function(){r.signalExpanded=!r.state.expanded},r.onChange=function(e){var t=r.props,n=t.editorState,t=t.onChange,e=y.EditorState[e](n);e&&t(e)},r.doExpand=function(){r.setState({expanded:!0})},r.doCollapse=function(){r.setState({expanded:!1})};var t={expanded:!(r.expandCollapse=function(){r.setState({expanded:r.signalExpanded}),r.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},n=e.editorState,e=e.modalHandler;return n&&(t.undoDisabled=0===n.getUndoStack().size,t.redoDisabled=0===n.getRedoStack().size),r.state=t,e.registerCallBack(r.expandCollapse),r}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&e.editorState!==t&&this.setState({undoDisabled:0===t.getUndoStack().size,redoDisabled:0===t.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,e=e.translations,n=this.state,r=n.undoDisabled,o=n.redoDisabled,n=n.expanded,i=t.component||Jn;return g.a.createElement(i,{config:t,translations:e,currentState:{undoDisabled:r,redoDisabled:o},expanded:n,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&Qn(t.prototype,e),n&&Qn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.Component);function or(e){return(or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}rr.propTypes={onChange:h.a.func.isRequired,editorState:h.a.object,modalHandler:h.a.object,config:h.a.object,translations:h.a.object};var ir=["config","currentState","onChange"],ar=["config"];function sr(){return(sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function cr(e,t){if(null==e)return{};var n,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lr(e,t){return(lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fr(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=pr(n),t=(e=r?(e=pr(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===or(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function pr(e){return(pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dr=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lr(t,e);var n,r=fr(o);function o(e){var t;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");(t=r.call(this,e)).onExpandEvent=function(){t.setState({expanded:!t.state.expanded})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.onChange=function(e){t.doCollapse(),t.props.onChange(e)};e=t.props;e.editorState,e.modalHandler;return t.state={expanded:!1},t}return t=o,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler}},{key:"renderInDropdown",value:function(){var r=this,e=this.props,o=e.config,i=(e.currentState,e.onChange,cr(e,ir));this.state.expanded;return g.a.createElement(w,{expanded:this.state.expanded,doExpand:this.doExpand,doCollapse:this.doCollapse,onExpandEvent:this.onExpandEvent,menu:!0},g.a.createElement(_.f,{name:"more_horizon"}),o.options.slice(o.max,o.options.length).map(function(e,t){var n=o[e],e=hr[e];return g.a.createElement(e,sr({key:t,config:n,inDropdown:!0,onChange:r.onChange},i))}))}},{key:"render",value:function(){var o=this,e=this.props,i=e.config,a=cr(e,ar),e=i.max;return g.a.createElement("div",{className:"Editor-toolbar-insert"},i.options.slice(0,e).map(function(e,t){var n=i[e],r=hr[e];return(o.props.mention||"mention"!==e)&&n.isVisible?g.a.createElement(r,sr({key:t,config:n,inDropdown:!1},a)):null}))}}])&&ur(t.prototype,e),n&&ur(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component),hr=(dr.propTypes={onChange:h.a.func.isRequired,onCloseLinkPopover:h.a.func.isRequired,editorState:h.a.object.isRequired,modalHandler:h.a.object,config:h.a.object,mention:h.a.object,linkPopoverOpen:h.a.bool,translations:h.a.object},{textDecoration:e,heading:r,fontSize:We,insert:dr,fontFamily:C,list:O,textAlign:Ot,colorPicker:x,link:Lt,mention:k,embedded:D,emoji:j,image:T,remove:Wn,history:rr});function yr(e){return(yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mr(e,t){return(mr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function vr(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=br(n),t=(e=r?(e=br(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===yr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function br(e){return(br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _r(e,t,n){e.findEntityRanges(function(e){e=e.getEntity();return null!==e&&"LINK"===n.getEntity(e).getType()},t)}function wr(c){var e=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mr(t,e);var n,a=vr(s);function s(){var o,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(o=a.call.apply(a,[this].concat(r))).state={open:!1},o.onDeleteLink=function(e){e.preventDefault(),e.stopPropagation();var e=c.getEditorState(),t=e.getSelection(),n=o.props,r=n.contentState,n=n.entityKey,e=Object(m.getEntityRange)(e,n),t=t.getIsBackward()?t.merge({anchorOffset:e.end,focusOffset:e.start}):t.merge({anchorOffset:e.start,focusOffset:e.end}),n=y.Modifier.setBlockType(r,t,"unstyled"),n=y.Modifier.removeRange(n,t,"backward");c.onChange(y.EditorState.push(c.getEditorState(),n,"remove-range"))},o.onEditLink=function(e){e.preventDefault(),e.stopPropagation(),c.onEditLink(),o.setState({open:!1})},o.onToggle=function(e){o.setState({open:e})},o}return t=s,(e=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.entityKey,e=e.contentState.getEntity(n).getData().url,n=this.state.open,t=g.a.createElement("span",{contentEditable:"false",suppressContentEditableWarning:!0},g.a.createElement(_.m,{appearance:"link"},t));return g.a.createElement(_.l,{trigger:t,appendToBody:!0,open:n,onToggle:this.onToggle},g.a.createElement("div",{contentEditable:"false",suppressContentEditableWarning:!0,className:"d-flex pl-5 py-5 pr-4 align-items-center"},g.a.createElement(_.h,{href:e,target:"_new",className:"Editor-link"},e),g.a.createElement("span",{className:"Editor-seperator"}),g.a.createElement(_.a,{"aria-label":"Edit",onClick:this.onEditLink,appearance:"transparent",icon:"edit"}),g.a.createElement("span",{className:"Editor-seperator"}),g.a.createElement(_.a,{"aria-label":"Delete",onClick:this.onDeleteLink,appearance:"transparent",icon:"delete"})))}}])&&gr(t.prototype,e),n&&gr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component);return e.propTypes={entityKey:h.a.string.isRequired,children:h.a.array,contentState:h.a.object},e}function Sr(){return(Sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Er(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Cr(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Er(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Er(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}function Or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xr(e,t,n){return t&&Or(e.prototype,t),n&&Or(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var e=xr(function e(t){var i=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.first=function(e){return null!=e&&e.length?e[0]:void 0},this.getMentionComponent=function(){function e(e){var o=e.entityKey,t=e.children,e=e.contentState.getEntity(o).getData().value;return i.renderer?i.renderer(t):(e=Cr(Cr({type:"input",name:e,clearButton:!1},i.chipOptions),{},{label:t,className:"Editor-mention-chip"}),g.a.createElement(_.c,Sr({},e,{onClose:function(){var e=i.config,t=e.getEditorState(),n=t.getCurrentContent(),r=t.getSelection(),t=Object(m.getEntityRange)(t,o),r=r.getIsBackward()?r.merge({anchorOffset:t.end,focusOffset:t.start}):r.merge({anchorOffset:t.start,focusOffset:t.end+1}),t=y.Modifier.setBlockType(n,r,"unstyled"),t=y.Modifier.removeRange(t,r,"backward");e.onChange(y.EditorState.push(e.getEditorState(),t,"remove-range"))}})))}return e.propTypes={entityKey:h.a.number,children:h.a.array,contentState:h.a.object},e},this.getMentionDecorator=function(){return{strategy:i.findMentionEntities,component:i.getMentionComponent()}},this.config=t,this.chipOptions=t.chipOptions,this.renderer=t.renderer}),kr=(e.prototype.findMentionEntities=function(e,t,n){e.findEntityRanges(function(e){e=e.getEntity();return null!==e&&"MENTION"===n.getEntity(e).getType()},t)},e);function Dr(e){return(Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function jr(e,t){return(jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tr(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ir(n),t=(e=r?(e=Ir(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Dr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Ir(e){return(Ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nr(e,t,n){return t&&Mr(e.prototype,t),n&&Mr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pr(e){var t=e.block,t=(e=e.contentState.getEntity(t.getEntityAt(0)).getData()).src,n=e.height,e=e.width;return g.a.createElement("iframe",{height:n,width:e,src:t,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}var Rr=Nr(function e(t){var c=this,n=(Ar(this,e),this.findSuggestionEntities=function(e,t){var n,r,o,i,a,s;c.config.getEditorState()&&(n=(i=c.config).separator,r=i.trigger,o=i.getSuggestions,a=i.getEditorState,i=i.fetchSuggestions,(a=a().getSelection()).get("anchorKey")===e.get("key")&&a.get("anchorKey")===a.get("focusKey")&&(s=n+r,(void 0===(a=(e=(e=e.getText()).substr(0,a.get("focusOffset")===e.length-1?e.length:a.get("focusOffset")+1)).lastIndexOf(n+r))||a<0)&&e[0]===r&&(a=0,s=r),0<=a&&(i||0<Z(o(),e.substr(a+s.length,e.length),c.config.caseSensitive).length)&&t(0===a?0:a+1,e.length)))},this.getSuggestionComponent=function(){var e,f=this.config;return(e=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jr(t,e);var r=Tr(o);function o(){var l;Ar(this,o);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(l=r.call.apply(r,[this].concat(t))).state={style:{left:15},activeOption:-1,showSuggestions:!0,showLoader:!1},l.onEditorKeyDown=function(e){var t=l.state.activeOption,n={};"ArrowDown"===e.key?(e.preventDefault(),t===l.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=Number(t)+1):"ArrowUp"===e.key?n.activeOption=t<=0?l.filteredSuggestions.length-1:Number(t)-1:"Escape"===e.key?(n.showSuggestions=!1,G()):"Enter"===e.key&&l.addMention(),l.setState(n)},l.onOptionMouseEnter=function(e){e=e.target.getAttribute("data-index");l.setState({activeOption:e})},l.onOptionMouseLeave=function(){l.setState({activeOption:-1})},l.setSuggestionReference=function(e){l.suggestion=e},l.setDropdownReference=function(e){l.dropdown=e},l.closeSuggestionDropdown=function(){l.state.showSuggestions&&l.setState({showSuggestions:!1})},l.filteredSuggestions=[],l.filterSuggestions=function(e){var t=f.getSuggestions?f.getSuggestions():[];l.filteredSuggestions=Z(t,e,f.caseSensitive)},l.debouncedFetchSuggestion=function(n,e){var r,o=1<arguments.length&&void 0!==e?e:500;return function(){var e=arguments,t=this;clearTimeout(r),r=setTimeout(function(){return n.apply(t,e)},o)}}(function(e){f.fetchSuggestions(e).then(function(e){l.filteredSuggestions=e,l.setState({showSuggestions:0<e.length,showLoader:!1})})}),l.updateSuggestions=function(e){e=e.children[0].props.text.substr(1);f.fetchSuggestions?(l.setState({showLoader:!0}),l.debouncedFetchSuggestion(e)):l.filterSuggestions(e)},l.addMention=function(e){var t,n,r,o=l.state.activeOption,i=f.getEditorState(),a=f.onChange,s=f.separator,c=f.trigger,o=l.filteredSuggestions[o],u=l.props.children[0].props.text.substr(1);o&&(i=i,a=a,s=s,c=c,e=e,u=u,t=(o=o).label,n=o.value,o=o.url,n=i.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(c).concat(n),value:n,url:o}).getLastCreatedEntityKey(),o=Object(m.getSelectedBlock)(i).getText(),r=i.getSelection().focusOffset,s=(o.lastIndexOf(s+c,r)||0)+1,c=!1," "===o[r=o.length===s+1?o.length:r]&&(c=!0),e&&(r=s+u.length+1),o=i.getSelection().merge({anchorOffset:s,focusOffset:r}),e=y.EditorState.acceptSelection(i,o),u=y.Modifier.replaceText(e.getCurrentContent(),o,"".concat(t),null,n),e=y.EditorState.push(e,u,"insert-characters"),c||(o=e.getSelection().merge({anchorOffset:s+t.length,focusOffset:s+t.length}),e=y.EditorState.acceptSelection(e,o),u=y.Modifier.insertText(e.getCurrentContent(),o," ",e.getCurrentInlineStyle(),void 0)),a(y.EditorState.push(e,u,"insert-characters")))},l.getOptionClass=function(e){var t,n=l.state.activeOption;return v()((I(t={},"Editor-dropdown-option",!0),I(t,"Editor-dropdown-option--highlight",e===n),t))},l.renderOption=function(e,t){var n,r=f.dropdownOptions,r=(void 0===r?{}:r).customOptionRenderer,o=e.icon,i=e.label;return r?(n=r(e,l.state.activeOption,t),g.a.cloneElement(n,{key:t,spellCheck:!1,onClick:function(e){l.addMention(e),n.props.onClick&&n.props.onClick()},"data-index":t,onMouseEnter:l.onOptionMouseEnter,onMouseLeave:l.onOptionMouseLeave})):g.a.createElement("span",{key:t,spellCheck:!1,onClick:function(){return l.addMention("onMouseSelect")},"data-index":t,onMouseEnter:l.onOptionMouseEnter,onMouseLeave:l.onOptionMouseLeave,className:l.getOptionClass(t)},o&&g.a.createElement(_.f,{name:o,className:"mr-4"}),g.a.createElement(_.m,null,i))},l}return Nr(o,[{key:"componentDidMount",value:function(){var e=this.suggestion.getBoundingClientRect(),t=e.left,e=e.top+25;this.setState({style:{left:t,top:e}}),b.registerCallBack(this.onEditorKeyDown),V(),f.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.updateSuggestions(this.props),this.setState({showSuggestions:!0}),document.addEventListener("scroll",this.closeSuggestionDropdown,{once:!0})}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&(this.updateSuggestions(this.props),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("scroll",this.closeSuggestionDropdown),b.deregisterCallBack(this.onEditorKeyDown),G(),f.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var e,n=this,t=this.props.children,r=this.state.showSuggestions,o=f.dropdownOptions,o=(void 0===o?{}:o).dropdownClassName,o=v()((I(e={},"Popover",!0),I(e,"".concat(o),void 0!==o),I(e,"Editor-mention-dropdown",!0),I(e,"position-fixed",!0),e));return g.a.createElement("span",{className:"Editor-mention-suggestion",ref:this.setSuggestionReference,onClick:f.modalHandler.onSuggestionClick,"aria-haspopup":"true"},g.a.createElement("span",null,t),r&&g.a.createElement("span",{className:o,style:this.state.style,contentEditable:"false",suppressContentEditableWarning:!0,ref:this.setDropdownReference},this.state.showLoader?g.a.createElement("span",{className:"Editor-dropdown-option"},g.a.createElement(_.j,{withImage:!1},g.a.createElement(_.k,{length:"large"}),g.a.createElement(_.k,{length:"large"}),g.a.createElement(_.k,{length:"large"}))):this.filteredSuggestions.map(function(e,t){return n.renderOption(e,t)})))}}]),o}(d.Component)).propTypes={children:h.a.array},e}.bind(this),this.getSuggestionDecorator=function(){return{strategy:c.findSuggestionEntities,component:c.getSuggestionComponent()}},t.separator),r=t.trigger,o=t.getSuggestions,i=t.onChange,a=t.getEditorState,s=t.getWrapperRef,u=t.caseSensitive,l=t.optionClassName,f=t.modalHandler,p=t.dropdownOptions,t=t.fetchSuggestions;this.config={separator:void 0===n?" ":n,trigger:void 0===r?"@":r,getSuggestions:o,onChange:i,getEditorState:a,getWrapperRef:s,caseSensitive:u,dropdownOptions:p,optionClassName:l,modalHandler:f,fetchSuggestions:t}}),Lr=function(e){return[new kr(e).getMentionDecorator(),new Rr(e).getSuggestionDecorator()]},Fr=(Pr.propTypes={block:h.a.object,contentState:h.a.object},Pr);function zr(e){return(zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Br(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kr(e,t){return(Kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Hr(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ur(n),t=(e=r?(e=Ur(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===zr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Ur(e){return(Ur=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qr=function(c){var e=function(e){var t=s;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Kr(t,e);var n,a=Hr(s);function s(){var r,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(r=a.call.apply(a,[this].concat(o))).state={hovered:!1},r.setEntityAlignmentLeft=function(){r.setEntityAlignment("left")},r.setEntityAlignmentRight=function(){r.setEntityAlignment("right")},r.setEntityAlignmentCenter=function(){r.setEntityAlignment("center")},r.setEntityAlignment=function(e){var t=r.props,n=t.block,t=t.contentState,n=n.getEntityAt(0);t.mergeEntityData(n,{alignment:e}),c.onChange(y.EditorState.push(c.getEditorState(),t,"change-block-data"))},r.removeEntity=function(e){e.preventDefault(),e.stopPropagation();var e=r.props,t=e.block,e=e.contentState,t=t.getKey(),n=e.getKeyAfter(t),t=new y.SelectionState({anchorKey:t,anchorOffset:0,focusKey:n,focusOffset:0}),n=y.Modifier.setBlockType(e,t,"unstyled"),n=y.Modifier.removeRange(n,t,"backward");c.onChange(y.EditorState.push(c.getEditorState(),n,"remove-range"))},r.toggleHovered=function(){r.setState({hovered:!r.state.hovered})},r}return t=s,(e=[{key:"renderAlignmentOptions",value:function(){return g.a.createElement("div",{className:"Popover d-flex"},g.a.createElement("div",{onClick:this.setEntityAlignmentLeft,className:"Editor-image-options"},g.a.createElement(_.f,{name:"format_align_left",size:20})),g.a.createElement("div",{onClick:this.setEntityAlignmentCenter,className:"Editor-image-options"},g.a.createElement(_.f,{name:"format_align_center",size:20})),g.a.createElement("div",{onClick:this.setEntityAlignmentRight,className:"Editor-image-options"},g.a.createElement(_.f,{name:"format_align_right",size:20})),g.a.createElement("div",{onClick:this.removeEntity,className:"Editor-image-options"},g.a.createElement(_.f,{name:"delete",size:20})))}},{key:"render",value:function(){var e=this.props,t=e.block,e=e.contentState,n=this.state.hovered,r=c.isImageAlignmentEnabled,e=e.getEntity(t.getEntityAt(0)).getData(),t=e.src,o=e.alignment,i=e.height,a=e.width,e=e.alt,s=v()({"d-flex":!0,"justify-content-end":"right"===o,"justify-content-start":!o||"left"===o,"justify-content-center":"center"===o});return g.a.createElement("div",{onClick:this.toggleHovered,className:s},g.a.createElement("span",{className:"position-relative"},g.a.createElement("img",{src:t,alt:e,style:{height:i,width:a}}),n&&r()&&this.renderAlignmentOptions(o)))}}])&&Br(t.prototype,e),n&&Br(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Component);return e.propTypes={block:h.a.object,contentState:h.a.object},e},Wr=function(n,r){return function(e){if("function"==typeof r){var t=r(e,n,n.getEditorState);if(t)return t}if("atomic"===e.getType()){t=n.getEditorState().getCurrentContent().getEntity(e.getEntityAt(0));if(t&&"IMAGE"===t.type)return{component:qr(n),editable:!1};if(t&&"EMBEDDED_LINK"===t.type)return{component:Fr,editable:!1}}}},Vr=["var(--text)","var(--secondary)","var(--success)","var(--primary)","var(--alert)","var(--accent1)"],Gr={options:["heading","textDecoration","colorPicker","list","insert"],textDecoration:{max:4,options:["bold","italic","underline","strikethrough"],bold:{icon:"format_bold",title:"Bold (command B)",label:"Bold"},italic:{icon:"format_italic",title:"Italic (command I)",label:"Italic"},underline:{icon:"format_underlined",title:"Underline (command U)",label:"Underline"},strikethrough:{icon:"strikethrough_s",title:"Strikethrough",label:"Strikethrough"}},heading:{icon:"text_fields",options:["H1","H2","H3","H4"]},list:{options:["unordered","ordered"],unordered:{icon:"format_list_bulleted",title:" Bulleted list"},ordered:{icon:"format_list_numbered",title:"Numbered list"}},colorPicker:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNDA2LjU4NWExLjk5OCAxLjk5OCAwIDAgMC0yLjgyNSAwbC0uNTQuNTRhLjc0MS43NDEgMCAxIDAtMS4wNDggMS4wNDhsLjE3NS4xNzUtNS44MjYgNS44MjUtMi4wMjIgMi4wMjNhLjkxLjkxIDAgMCAwLS4yNjYuNjAybC0uMDA1LjEwOHYuMDAybC0uMDgxIDEuODI5YS4zMDIuMzAyIDAgMCAwIC4zMDIuMzE2aC4wMTNsLjk3LS4wNDQuNTkyLS4wMjYuMjY4LS4wMTJjLjI5Ny0uMDEzLjU3OS0uMTM3Ljc5LS4zNDdsNy43Ny03Ljc3LjE0Ni4xNDRhLjc0Ljc0IDAgMCAwIDEuMDQ4IDBjLjI5LS4yOS4yOS0uNzU5IDAtMS4wNDhsLjU0LS41NGMuNzgtLjc4Ljc4LTIuMDQ0IDAtMi44MjV6TTguNzk1IDcuMzMzbC0yLjczLjUxNSA0LjQ1Mi00LjQ1MiAxLjEwOCAxLjEwNy0yLjgzIDIuODN6TTIuMDggMTMuNjczYy0xLjE0OCAwLTIuMDguMjk1LTIuMDguNjYgMCAuMzYzLjkzMi42NTggMi4wOC42NTggMS4xNSAwIDIuMDgtLjI5NCAyLjA4LS42NTkgMC0uMzY0LS45My0uNjU5LTIuMDgtLjY1OXoiLz48L2c+PC9zdmc+",colors:Vr},insert:{max:3,options:["image","mention","link"],image:{icon:"insert_photo",isVisible:!0,title:"Image",alt:"",defaultSize:{height:"100px",width:"300px"},inputAccept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",uploadCallback:function(e){return new Promise(function(t,n){var r=new FileReader;r.onload=function(e){return t({data:{link:r.result}})},r.onerror=function(e){return n(e)},r.readAsDataURL(e)})}},link:{isVisible:!0,icon:"insert_link",linkCallback:void 0,title:"Link"},mention:{isVisible:!0,icon:"alternate_email",title:"Personalization"}},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}},r={title:h.a.string,label:h.a.string},We={isVisible:h.a.bool,title:h.a.string,alt:h.a.string,uploadCallback:h.a.func,defaultSize:h.a.shape({height:h.a.string,width:h.a.string})},dr={isVisible:h.a.bool,title:h.a.string},C=h.a.shape({textDecoration:h.a.shape({max:h.a.number,bold:h.a.shape(r),italic:h.a.shape(r),underline:h.a.shape(r),strikethrough:h.a.shape(r)}),colorPicker:h.a.shape({colors:h.a.arrayOf(h.a.string)}),insert:h.a.shape({max:h.a.number,image:h.a.shape(We),link:h.a.shape(dr)})});o(213),o(94),o(95),o(96),o(97),o(98);o(99),o(100),o(101);function Yr(e){return(Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $r(){return($r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Zr(e){return function(e){if(Array.isArray(e))return Jr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var n;if(e)return"string"==typeof e?Jr(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jr(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xr(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xr(Object(n),!0).forEach(function(e){N(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eo(e,t){return(eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function to(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=no(n),t=(e=r?(e=no(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Yr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function no(e){return(no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){var t=o;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eo(t,e);var n,r=to(o);function o(e){var a;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");(a=r.call(this,e)).onEditorBlur=function(){a.setState({editorFocused:!1})},a.onEditorFocus=function(e){var t=a.props.onFocus,n=(a.setState({editorFocused:!0}),a.focusHandler.isEditorFocused());t&&n&&t(e)},a.onEditorMouseDown=function(){a.focusHandler.onEditorMouseDown()},a.keyBindingFn=function(e){var t;if("Tab"===e.key)return n=a.props.onTab,(t=Object(m.changeDepth)(a.state.editorState,e.shiftKey?-1:1,4))&&t!==a.state.editorState&&(a.onChange(t),e.preventDefault()),n&&n(e,t),null;if("ArrowUp"!==e.key&&"ArrowDown"!==e.key||Y()&&e.preventDefault(),"Backspace"===e.key&&a.isEmptyListBlock()){var n=y.RichUtils.toggleBlockType(a.state.editorState);if(n)return a.onChange(n),a.setState({editorState:y.EditorState.moveFocusToEnd(y.EditorState.createEmpty())}),!0}return Object(y.getDefaultKeyBinding)(e)},a.onToolbarFocus=function(e){var t=a.props.onFocus;t&&a.focusHandler.isToolbarFocused()&&t(e)},a.onWrapperBlur=function(e){var t=a.props.onBlur;t&&a.focusHandler.isEditorBlur(e)&&t(e,a.getEditorState())},a.onChange=function(e,t){var n=a.props,r=n.readOnly,n=n.onEditorStateChange;r||"atomic"===Object(m.getSelectedBlocksType)(e)&&e.getSelection().isCollapsed||(n&&n(e,a.props.wrapperId),i(a.props,"editorState")?a.afterChange(e):a.setState({editorState:e},a.afterChange(e)))},a.setWrapperReference=function(e){a.wrapper=e},a.setEditorReference=function(e){a.props.editorRef&&a.props.editorRef(e),a.editor=e},a.onCloseLinkPopover=function(){a.setState({linkPopoverOpen:!1})},a.onEditLink=function(){a.setState(M(M({},a.state),{},{linkPopoverOpen:!0}))},a.getCompositeDecorator=function(e){var t=[{strategy:_r,component:wr({focusHandler:a.focusHandler,getEditorState:a.getEditorState,onChange:a.onChange,onEditLink:a.onEditLink})}];return a.props.mention&&t.push.apply(t,Zr(Lr(M(M({},a.props.mention),{},{onChange:a.onChange,getEditorState:a.getEditorState,getSuggestions:a.getSuggestions,getWrapperRef:a.getWrapperRef,modalHandler:a.modalHandler})))),new y.CompositeDecorator(t)},a.getWrapperRef=function(){return a.wrapper},a.getEditorState=function(){return a.state?a.state.editorState:null},a.getSuggestions=function(){return a.props.mention&&a.props.mention.suggestions},a.afterChange=function(t){setTimeout(function(){var e=a.props.onContentStateChange;e&&e(Object(y.convertToRaw)(t.getCurrentContent()))})},a.isReadOnly=function(){return a.props.readOnly},a.isImageAlignmentEnabled=function(){return a.state.toolbar.image.alignmentEnabled},a.createEditorState=function(e){var t,n;return i(a.props,"editorState")?a.props.editorState&&(t=y.EditorState.set(a.props.editorState,{decorator:e})):i(a.props,"defaultEditorState")?a.props.defaultEditorState&&(t=y.EditorState.set(a.props.defaultEditorState,{decorator:e})):i(a.props,"contentState")?a.props.contentState&&(n=Object(y.convertFromRaw)(a.props.contentState),t=y.EditorState.createWithContent(n,e),t=y.EditorState.moveSelectionToEnd(t)):i(a.props,"defaultContentState")&&(n=a.props.defaultContentState)&&(n=Object(y.convertFromRaw)(n),t=y.EditorState.createWithContent(n,e),t=y.EditorState.moveSelectionToEnd(t)),t=t||y.EditorState.createEmpty(e)},a.filterEditorProps=function(e){return t=e,n=["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","toolbar","toolbarCustomButtons","toolbarClassName","editorClassName","wrapperClassName","editorStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"],e=Object.keys(t).filter(function(e){return n.indexOf(e)<0}),r={},e&&0<e.length&&e.forEach(function(e){r[e]=t[e]}),r;var t,n,r},a.getStyleMap=function(e){return M(M({},Object(m.getCustomStyleMap)()),e.customStyleMap)},a.changeEditorState=function(e){var e=Object(y.convertFromRaw)(e),t=a.state.editorState,t=y.EditorState.push(t,e,"insert-characters");return y.EditorState.moveSelectionToEnd(t)},a.focusEditor=function(){setTimeout(function(){a.editor.focus()})},a.handleKeyCommand=function(e){var t=a.state,n=t.editorState,t=t.toolbar.textDecoration;if(t&&0<=t.options.indexOf(e)){t=y.RichUtils.handleKeyCommand(n,e);if(t)return a.onChange(t),!0}return!1},a.handleReturn=function(e){var t;return!!Y()||(t=a.state.editorState,!!(t=Object(m.handleNewLine)(t,e))&&(a.onChange(t),!0))},a.handlePastedTextFn=function(e,t){var n,r,o=a.state.editorState,i=a.props.handlePastedText;return t.includes("<figure")?t:t.includes("DraftStyle")?null:i?i(e,t,o,a.onChange):(i=e,e=t,t=o,o=a.onChange,(r=Object(m.getSelectedBlock)(t))&&"code"===r.type?(r=y.Modifier.replaceText(t.getCurrentContent(),t.getSelection(),i,t.getCurrentInlineStyle()),o(y.EditorState.push(t,r,"insert-characters")),!0):!!e&&(i=L()(e),n=t.getCurrentContent(),i.entityMap.forEach(function(e,t){n=n.mergeEntityData(t,e)}),n=y.Modifier.replaceWithFragment(n,t.getSelection(),new z.List(i.contentBlocks)),o(y.EditorState.push(t,n,"insert-characters")),!0))},a.preventDefault=function(e){"INPUT"===e.target.tagName||"LABEL"===e.target.tagName||"TEXTAREA"===e.target.tagName?a.focusHandler.onInputMouseDown():e.preventDefault()},a.isEmptyListBlock=function(){var e=a.state.editorState.getCurrentContent();return!e.hasText()&&"unstyled"!==e.getBlockMap().first().getType()},a.blockRenderMap=y.DefaultDraftBlockRenderMap.merge(Object(z.Map)({"header-one":{wrapper:g.a.createElement(_.e,{size:"xxl"},a.props.children)},"header-two":{wrapper:g.a.createElement(_.e,{size:"xl"},a.props.children)},"header-three":{wrapper:g.a.createElement(_.e,{size:"l"},a.props.children)},"header-four":{wrapper:g.a.createElement(_.e,{size:"m"},a.props.children)},unstyled:{element:"p",wrapper:g.a.createElement("div",null,a.props.children)}}));var t=s(Gr,e.toolbar),n=e.wrapperId||Math.floor(1e4*Math.random()),n=(a.wrapperId="Editor-wrapper-".concat(n),a.modalHandler=new H,a.focusHandler=new W,a.blockRendererFn=Wr({isReadOnly:!0,isImageAlignmentEnabled:a.isImageAlignmentEnabled,getEditorState:a.getEditorState,onChange:a.onChange}),a.editorProps=a.filterEditorProps(e),a.customStyleMap=a.getStyleMap(e),a.compositeDecorator=a.getCompositeDecorator(t),a.createEditorState(a.compositeDecorator));return Object(m.extractInlineStyle)(n),a.state={editorState:n,toolbar:t,editorFocused:!1,linkPopoverOpen:!1},a}return t=o,(e=[{key:"componentDidMount",value:function(){this.props.autoFocus&&this.editor.focus(),this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o;e!==this.props&&(t={},n=(r=this.props).editorState,r=r.contentState,this.state.toolbar||(o=s(Gr,o),t.toolbar=o),i(this.props,"editorState")&&n!==e.editorState?t.editorState=n?y.EditorState.set(n,{decorator:this.compositeDecorator}):y.EditorState.createEmpty(this.compositeDecorator):i(this.props,"contentState")&&r!==e.contentState&&(r?(o=this.changeEditorState(r))&&(t.editorState=o):t.editorState=y.EditorState.createEmpty(this.compositeDecorator)),e.editorState===n&&e.contentState===r||Object(m.extractInlineStyle)(t.editorState),Object.keys(t).length&&this.setState(t),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props))}},{key:"render",value:function(){var e=this.state,t=e.editorState,r=(e.editorFocused,e.toolbar),e=this.props,n=e.toolbarClassName,o=e.editorClassName,i=e.wrapperClassName,a=e.editorStyle,s=e.ariaLabel,c=e.mention,u={linkPopoverOpen:this.state.linkPopoverOpen,onCloseLinkPopover:this.onCloseLinkPopover,modalHandler:this.modalHandler,editorState:t,onChange:this.onChange},e=v()(N({},"Editor-toolbar",!0),n),n=v()(N({},"Editor-wrapper",!0),i),i=v()((N(i={},"Editor",!0),N(i,"hide-placeholder",this.isEmptyListBlock()),i),o);return g.a.createElement("div",{id:this.wrapperId,className:n,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur},this.props.showToolbar&&g.a.createElement("div",{className:e,onMouseDown:this.preventDefault,"aria-label":"Editor-toolbar",onFocus:this.onToolbarFocus},r.options.map(function(e,t){var n=hr[e],e=r[e];return g.a.createElement(n,$r({key:t},u,{config:e,mention:c,className:"Editor-toolbar-options"}))})),g.a.createElement("div",{ref:this.setWrapperReference,className:i,style:a,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:b.onKeyDown,onMouseDown:this.onEditorMouseDown},g.a.createElement(y.Editor,$r({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:t,onChange:this.onChange,blockStyleFn:$,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,handlePastedText:this.handlePastedTextFn,ariaLabel:s,blockRenderMap:this.blockRenderMap},this.editorProps))))}}])&&Qr(t.prototype,e),n&&Qr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Component),ro=(O.utils={EditorState:y.EditorState,ContentState:y.ContentState,RichUtils:y.RichUtils,convertFromRaw:y.convertFromRaw,convertToRaw:y.convertToRaw,htmlToState:function(e){var e=e.replaceAll('<p><br/></p><p id="RichTextEditor-Image"','<p id="RichTextEditor-Image"').replaceAll("<br/>",""),e=L()(e);if(e)return{contentState:e=y.ContentState.createFromBlockArray(e.contentBlocks),editorState:y.EditorState.createWithContent(e)}},stateToHTML:function(e){e=Object(y.convertToRaw)(e.getCurrentContent());return F()(e,{},!1,function(e){var t=e.type,e=e.data;if("IMAGE"===t)return t=e.alignment||"left",'\n <p style="justify-content:'.concat(t,'; display:flex">\n <img src="').concat(e.src,'" alt="').concat(e.alt,'" style="height: ').concat(e.height,";width: ").concat(e.width,'"/>\n </p>\n ')})}},O.propTypes={mention:h.a.shape({separator:h.a.string,trigger:h.a.string,chipOptions:h.a.object,dropdownOptions:h.a.shape({dropdownClassName:h.a.string,customOptionRenderer:h.a.func}),renderer:h.a.func,suggestions:h.a.shape({label:h.a.string,value:h.a.string,icon:h.a.string}),fetchSuggestions:h.a.func}),editorState:h.a.object,onEditorStateChange:h.a.func,defaultEditorState:h.a.object,onContentStateChange:h.a.func,defaultContentState:h.a.object,contentState:h.a.object,spellCheck:h.a.bool,toolbar:C,showToolbar:h.a.bool,editorClassName:h.a.string,wrapperClassName:h.a.string,toolbarClassName:h.a.string,editorStyle:h.a.object,onFocus:h.a.func,onBlur:h.a.func,onTab:h.a.func,textAlignment:h.a.oneOf(["left","right","center"]),readOnly:h.a.bool,autoFocus:h.a.bool,placeholder:h.a.string,ariaLabel:h.a.string,wrapperId:h.a.number,editorRef:h.a.func,handlePastedText:h.a.func},O.defaultProps={autoFocus:!0,showToolbar:!0},O),oo=o(49),io=o.n(oo),ao=o(50);function so(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function A(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){co(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 co(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uo(e){return function(e){if(Array.isArray(e))return lo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var n;if(e)return"string"==typeof e?lo(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lo(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fo(e,n){return g.a.createElement(g.a.Fragment,null,e.map(function(e,t){return g.a.createElement("li",{key:n[t]},e)}))}function po(e,r){return g.a.createElement(g.a.Fragment,null,e.map(function(e,t){var n=1<e.length&&e[1][0];return n&&n.includes("\n")?(n=n.split("\n"),g.a.createElement(_.i,{key:r[t]},n.map(function(e){return[e,g.a.createElement("br",null)]}))):e&&0===(null==(n=e[1])?void 0:n.length)?g.a.createElement("p",null,g.a.createElement("br",null)):g.a.createElement(_.i,{key:r[t]},e.map(function(e){return[e]}))}))}function ho(e,t){var n=void 0===(n=t.entities)?{}:n,r=void 0===(r=t.headings)?{}:r,o=void 0===(o=t.list)?{}:o,t=void 0===(t=t.colors)?[]:t,n=A(A({},_o),n),r=A(A({},vo),r),o=A(A({},bo),o),r=A(A(A({},wo),r),o),o=A(A({},go),So(t)),t={blocks:r,entities:n,styles:Object(oo.createStylesRenderer)(mo,o)};return io()(e,t,!1)}function P(e){var t=e.raw,n=e.entities,r=e.headings,o=e.list,e=e.colors;return(t=t&&ho(t,{entities:n,headings:r,list:o,colors:e}))?g.a.createElement(g.a.Fragment,null,t):null}var yo={paddingLeft:"1.5em",margin:"0px"},go={BOLD:{fontWeight:"bold"},ITALIC:{fontStyle:"italic"},UNDERLINE:{textDecoration:"underline"},STRIKETHROUGH:{textDecoration:"line-through"}},mo=function(e){var t=e.children,n=e.style,e=e.key;return g.a.createElement("span",{key:e,style:n},t)},vo={"header-one":function(e,t){var n=t.keys;return e.map(function(e,t){return g.a.createElement(_.e,{size:"xxl",key:n[t]},e)})},"header-two":function(e,t){var n=t.keys;return e.map(function(e,t){return g.a.createElement(_.e,{size:"xl",key:n[t]},e)})},"header-three":function(e,t){var n=t.keys;return e.map(function(e,t){return g.a.createElement(_.e,{size:"l",key:n[t]},e)})},"header-four":function(e,t){var n=t.keys;return e.map(function(e,t){return g.a.createElement(_.e,{size:"m",key:n[t]},e)})}},bo={"unordered-list-item":function(e,t){t=t.keys;return g.a.createElement("ul",{style:yo},fo(e,t))},"ordered-list-item":function(e,t){t=t.keys;return g.a.createElement("ol",{style:yo},fo(e,t))}},_o={LINK:function(e,t,n){n=n.key;return g.a.createElement(_.h,{key:n,href:t.url},e)},IMAGE:function(e,t){var n=t.src,r=t.alt,o=t.height,i=t.width,t=t.alignment;return g.a.createElement("p",{id:"RichTextEditor-Image",style:{justifyContent:t||"left",display:"flex"}},g.a.createElement("img",{src:n,alt:r,height:o,width:i}))},MENTION:function(e,t,n){n=n.key;return g.a.createElement("span",{name:t.value,className:"Chip--input Chip d-inline-flex mt-3",key:n},e)}},wo={unstyled:function(e,t,n){t=t.keys;return po(e,t)},atomic:function(e,t){return e[0]}},So=function(e){return[].concat(uo(Vr),uo(e)).reduce(function(e,t){var n="color-".concat(t),t={color:t};return A(A({},e),{},co({},n,t))},{})},Eo=(P.utils={convertToHTML:function(e){var t,n,r=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return(e=e&&ho(e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}))&&Object(ao.renderToStaticMarkup)(e)?(t=(n=o(230)).name,n=n.version,t="https://s3.us-east-1.amazonaws.com/webui-assets/".concat(t,"/v").concat(n,"/design-system.css"),n=r?'<link rel="stylesheet" href="'.concat(t,'">'):"","".concat(n," ").concat(Object(ao.renderToStaticMarkup)(e))):""}},P.propTypes={raw:h.a.object.isRequired,colors:h.a.arrayOf(h.a.string),list:h.a.object,headings:h.a.object,entities:h.a.object},P.defaultProps={entities:{},headings:{},list:{},colors:[]},P)}]);
|