You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
salary-management-oneself/public/js/libs/draft/Draft.min.js

14 lines
168 KiB
JavaScript

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**
* Draft v0.11.7
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("immutable"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["immutable","react","react-dom"],t):"object"==typeof exports?exports.Draft=t(require("immutable"),require("react"),require("react-dom")):e.Draft=t(e.Immutable,e.React,e.ReactDOM)}(window,(function(e,t,n){return i={},r.m=o=[function(t,n){t.exports=e},function(e,t,n){"use strict";e.exports=function(e,t){for(var n,r,o=arguments.length,i=new Array(2<o?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];if(!e)throw void 0===t?r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(n=0,(r=new Error(t.replace(/%s/g,(function(){return String(i[n++])})))).name="Invariant Violation"),r.framesToPop=1,r}},function(e,t,n){"use strict";function r(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(91),c=n(32),s=n(93),u=n(23),l=(n=n(0)).OrderedSet,f=n.Record,p=n.Stack,g=n.OrderedMap,d=n.List,h=f({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:p(),selection:null,treeMap:null,undoStack:p()}),y=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(c.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:p(),redoStack:p(),decorator:n||null,selection:u.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=e.decorator;e=o(o({},e),{},{treeMap:b(n,r),directionMap:s.getDirectionMap(n)});return new t(new h(e))},t.fromJS=function(e){return new t(new h(o(o({},e),{},{directionMap:null!=e.directionMap?g(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?l(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?c.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?p(e.redoStack.map((function(e){return c.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new u(e.selection):e.selection,treeMap:null!=e.treeMap?g(e.treeMap).map((function(e){return d(e).map((function(e){return a.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?p(e.undoStack.map((function(e){return c.fromJS(e)}))):e.undoStack,currentContent:c.fromJS(e.currentContent)})))},t.set=function(e,n){return new t(e.getImmutable().withMutations((function(t){var r,o,i,c,s,u,l,f,p=t.get("decorator"),g=p,d=(null===n.decorator?g=null:n.decorator&&(g=n.decorator),n.currentContent||e.getCurrentContent());if(g!==p)return c=t.get("treeMap"),p=g&&p?(s=(r=d).getBlockMap(),o=g,i=p,c.merge(s.toSeq().filter((function(e){return o.getDecorations(e,r)!==i.getDecorations(e,r)})).map((function(e){return a.generate(r,e,o)})))):b(d,g),void t.merge({decorator:g,treeMap:p,nativelyRenderedContent:null});d!==e.getCurrentContent()&&t.set("treeMap",(c=e,s=d.getBlockMap(),p=d.getEntityMap(),u=g,l=c.getCurrentContent().set("entityMap",p),f=l.getBlockMap(),c.getImmutable().get("treeMap").merge(s.toSeq().filter((function(e,t){return e!==f.get(t)})).map((function(e){return a.generate(l,e,u)}))))),t.merge(n)})))};var e=t.prototype;function t(e){i(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){if(null!=(o=this.getInlineStyleOverride()))return o;var e,t,n,r,o=this.getCurrentContent(),i=this.getSelection();return i.isCollapsed()?(t=o,r=(e=i).getStartKey(),e=e.getStartOffset(),n=t.getBlockForKey(r),0<e?n.getInlineStyleAt(e-1):n.getLength()?n.getInlineStyleAt(0):v(t,r)):(e=o,t=(n=i).getStartKey(),(n=n.getStartOffset())<(r=e.getBlockForKey(t)).getLength()?r.getInlineStyleAt(n):0<n?r.getInlineStyleAt(n-1):v(e,t))},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return m(e,t,!1)},t.forceSelection=function(e,t){return m(e,t=t.getHasFocus()?t:t.set("hasFocus",!0),!0)},t.moveSelectionToEnd=function(e){var n=(r=e.getCurrentContent().getLastBlock()).getKey(),r=r.getLength();return t.acceptSelection(e,new u({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}))},t.moveFocusToEnd=function(e){return e=t.moveSelectionToEnd(e),t.forceSelection(e,e.getSelection())},t.push=function(e,n,r){var o=!(3<arguments.length&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=s.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),c=e.getCurrentContent(),u=e.getUndoStack(),l=n;a!==c.getSelectionAfter()||function(e,t){return t!==(e=e.getLastChangeType())||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(u=u.push(c),l=l.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",c.getSelectionBefore())),a=e.getInlineStyleOverride(),-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(a=null),c={currentContent:l,directionMap:i,undoStack:u,redoStack:p(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:a};return t.set(e,c)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=s.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=s.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function m(e,t,n){return y.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function b(e,t){return e.getBlockMap().map((function(n){return a.generate(e,n,t)})).toOrderedMap()}function v(e,t){return(e=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first())?e.getInlineStyleAt(e.getLength()-1):l()}e.exports=y},function(e,t,n){"use strict";var r=n(6),o=n(81),i=n(82),a=n(84),c=n(21),s=n(0),u=n(87),l=n(88),f=n(1),p=n(44),g=n(42),d=n(89),h=n(90),y=s.OrderedSet,m={replaceText:function(e,t,n,o,i){return e=g(e,t),e=d(e,t),t=r.create({style:o||y(),entity:i||null}),l(e,e.getSelectionAfter(),n,t)},insertText:function(e,t,n,r,o){return t.isCollapsed()||f(!1),m.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=c(e,t);e=m.removeRange(e,t,"backward");return m.replaceWithFragment(e,n,r)},replaceWithFragment:function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";e=g(e,t),e=d(e,t);return u(e,e.getSelectionAfter(),n,r)},removeRange:function(e,t,n){i=(t=t.getIsBackward()?t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1}):t).getAnchorKey(),u=t.getFocusKey(),r=e.getBlockForKey(i),o=e.getBlockForKey(u);var r,o,i,c=t.getStartOffset(),s=t.getEndOffset();c=r.getEntityAt(c),s=o.getEntityAt(s-1);if(i===u&&c&&c===s)return i=a(e.getEntityMap(),r,o,t,n),d(e,i);var u=g(e,t);return d(u,t)},splitBlock:function(e,t){return e=g(e,t),e=d(e,t),h(e,e.getSelectionAfter())},applyInlineStyle:function(e,t,n){return o.add(e,t,n)},removeInlineStyle:function(e,t,n){return o.remove(e,t,n)},setBlockType:function(e,t,n){return p(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){return e=g(e,t),i(e,t,n)}};e.exports=m},function(e,t,n){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var r=n(100),o=n(103),i=n(104);n=n(105);function a(e,t,n,r){return e===n||!!n.startsWith(e)&&(n=n.slice(e.length),!!t&&(n=r?r(n):n,o.contains(n,t)))}function c(e){return"Windows"===r.platformName?e.replace(/^\s*NT/,""):e}e.exports=i({isBrowser:function(e){return a(r.browserName,r.browserFullVersion,e)},isBrowserArchitecture:function(e){return a(r.browserArchitecture,null,e)},isDevice:function(e){return a(r.deviceName,null,e)},isEngine:function(e){return a(r.engineName,r.engineVersion,e)},isPlatform:function(e){return a(r.platformName,r.platformFullVersion,e,c)},isPlatformArchitecture:function(e){return a(r.platformArchitecture,null,e)}},n)},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var o=(n=n(0)).Map,i=n.OrderedSet,a=(n=n.Record,i()),c={style:a,entity:null},s=new(n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(c=n).prototype=Object.create(t.prototype),r(c.prototype.constructor=c,t);var c=n.prototype;return c.getStyle=function(){return this.get("style")},c.getEntity=function(){return this.get("entity")},c.hasStyle=function(e){return this.getStyle().includes(e)},n.applyStyle=function(e,t){return e=e.set("style",e.getStyle().add(t)),n.create(e)},n.removeStyle=function(e,t){return e=e.set("style",e.getStyle().remove(t)),n.create(e)},n.applyEntity=function(e,t){return e=e.getEntity()===t?e:e.set("entity",t),n.create(e)},n.create=function(e){if(!e)return s;e=o({style:a,entity:null}).merge(e);var t=u.get(e);return t||(t=new n(e),u=u.set(e,t),t)},n.fromJS=function(e){var t=e.style;e=e.entity;return new n({style:Array.isArray(t)?i(t):t,entity:Array.isArray(e)?i(e):e})},n}(n(c))),u=o([[o(c),s]]);n.EMPTY=s,e.exports=n},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){return e.getStyle()===t.getStyle()}function i(e,t){return e.getEntity()===t.getEntity()}var a=n(6),c=n(18),s=(n=n(0)).List,u=n.Map,l=n.OrderedSet,f=n.Record,p=n.Repeat,g=l(),d={parent:null,characterList:s(),data:u(),depth:0,key:"",text:"",type:"unstyled",children:s(),prevSibling:null,nextSibling:null};n=function(e){var t;function n(){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=s(p(a.EMPTY,n.length))),e}(0<arguments.length&&void 0!==arguments[0]?arguments[0]:d))||this}t=e,(u=n).prototype=Object.create(t.prototype),r(u.prototype.constructor=u,t);var u=n.prototype;return u.getKey=function(){return this.get("key")},u.getType=function(){return this.get("type")},u.getText=function(){return this.get("text")},u.getCharacterList=function(){return this.get("characterList")},u.getLength=function(){return this.getText().length},u.getDepth=function(){return this.get("depth")},u.getData=function(){return this.get("data")},u.getInlineStyleAt=function(e){return(e=this.getCharacterList().get(e))?e.getStyle():g},u.getEntityAt=function(e){return(e=this.getCharacterList().get(e))?e.getEntity():null},u.getChildKeys=function(){return this.get("children")},u.getParentKey=function(){return this.get("parent")},u.getPrevSiblingKey=function(){return this.get("prevSibling")},u.getNextSiblingKey=function(){return this.get("nextSibling")},u.findStyleRanges=function(e,t){c(this.getCharacterList(),o,e,t)},u.findEntityRanges=function(e,t){c(this.getCharacterList(),i,e,t)},n}(f(d));e.exports=n},function(e,n){e.exports=t},function(e,t,n){"use strict";var r={},o=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||r.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*o).toString(32);return r[e]=!0,e}},function(e,t,n){"use strict";e.exports={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=(e=e.split("-").reverse())[0],n=e[1];return{blockKey:e.slice(2).reverse().join("-"),decoratorKey:parseInt(n,10),leafKey:parseInt(t,10)}}}},function(e,t,n){"use strict";e.exports=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX||!window.__DRAFT_GKX[e])}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var o=n(6),i=n(18),a=(n=n(0)).List,c=n.Map,s=n.OrderedSet,u=n.Record,l=n.Repeat,f=s();s=function(e){var t;function n(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(l(o.EMPTY,n.length))),e}(t))||this}t=e,(c=n).prototype=Object.create(t.prototype),r(c.prototype.constructor=c,t);var c=n.prototype;return c.getKey=function(){return this.get("key")},c.getType=function(){return this.get("type")},c.getText=function(){return this.get("text")},c.getCharacterList=function(){return this.get("characterList")},c.getLength=function(){return this.getText().length},c.getDepth=function(){return this.get("depth")},c.getData=function(){return this.get("data")},c.getInlineStyleAt=function(e){return(e=this.getCharacterList().get(e))?e.getStyle():f},c.getEntityAt=function(e){return(e=this.getCharacterList().get(e))?e.getEntity():null},c.findStyleRanges=function(e,t){i(this.getCharacterList(),p,e,t)},c.findEntityRanges=function(e,t){i(this.getCharacterList(),g,e,t)},n}(n=u({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:c()}));function p(e,t){return e.getStyle()===t.getStyle()}function g(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(e){return("object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(r):Array.prototype.map.call(arguments,r)).join(" ")}},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},r)).join("")?void 0:1}catch(e){return}}()?Object.assign:function(e,t){for(var n,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var s in n=Object(arguments[c]))o.call(n,s)&&(a[s]=n[s]);if(r)for(var u=r(n),l=0;l<u.length;l++)i.call(n,u[l])&&(a[u[l]]=n[u[l]])}return a}},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(1),o=/[\uD800-\uDFFF]/;function i(e){return 55296<=e&&e<=57343}function a(e){return o.test(e)}function c(e,t){return 1+i(e.charCodeAt(t))}function s(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!a(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+=c(e,o);if(r<=o)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=c(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;0<n&&i<r;n--)i+=c(e,i);return e.substring(o,i)}e.exports={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=c(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:c,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:i,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||r(!1),t+1===e.length)return!1;var n=e.charCodeAt(t);e=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=e&&e<=57343},strlen:function(e){if(!a(e))return e.length;for(var t=0,n=0;n<e.length;n+=c(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 s(e,t=t<n?t:n,r)},substr:s}},function(e,t,n){"use strict";var r=n(0).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,t,n,r){var o;e.size&&(o=0,e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,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 r=n(3),o=n(11)("draft_tree_data_support");e.exports=function(e,t,n){var i=e.getSelection(),a=e.getCurrentContent(),c=i,s=i.getAnchorKey(),u=i.getFocusKey(),l=a.getBlockForKey(s);if(o&&"forward"===n&&s!==u)return a;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return a;if(o&&i.getAnchorOffset()===a.getBlockForKey(s).getLength()&&(!(u=a.getBlockForKey(l.nextSibling))||0===u.getLength()))return a}else if(e.isSelectionAtStartOfContent())return a;if((c=t(e))===i)return a}return r.removeRange(a,c,n)}},function(e,t,n){"use strict";var r=n(41),o=n(42);e.exports=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),c=t.getEndOffset(),s=(t=(e=o(e,t).getBlockMap()).keySeq()).indexOf(n);t=t.indexOf(a)+1;return r(e.slice(s,t).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,c),characterList:o.slice(i,c)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:r.slice(0,c),characterList:o.slice(0,c)}):e})))}},function(e,t,n){"use strict";function r(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){var r,o;r=e,o=n[t=t],t in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var i=n(47),a=n(0),c=n(1),s=n(92),u=(0,a.Map)(),l=s();function f(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var p={getLastCreatedEntityKey:function(){return f("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),p.__getLastCreatedEntityKey()},create:function(e,t,n){return f("DraftEntity.create","contentState.createEntity"),p.__create(e,t,n)},add:function(e){return f("DraftEntity.add","contentState.addEntity"),p.__add(e)},get:function(e){return f("DraftEntity.get","contentState.getEntity"),p.__get(e)},__getAll:function(){return u},__loadWithEntities:function(e){u=e,l=s()},mergeData:function(e,t){return f("DraftEntity.mergeData","contentState.mergeEntityData"),p.__mergeData(e,t)},replaceData:function(e,t){return f("DraftEntity.replaceData","contentState.replaceEntityData"),p.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return l},__create:function(e,t,n){return p.__add(new i({type:e,mutability:t,data:n||{}}))},__add:function(e){return l=s(),u=u.set(l,e),l},__get:function(e){return(e=u.get(e))||c(!1),e},__mergeData:function(e,t){t=o(o({},(n=p.__get(e)).getData()),t);var n=n.set("data",t);return u=u.set(e,n),n},__replaceData:function(e,t){return t=p.__get(e).set("data",t),u=u.set(e,t),t}};e.exports=p},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(o=n).prototype=Object.create(t.prototype),r(o.prototype.constructor=o,t);var o=n.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r,o=this.getAnchorKey(),i=this.getFocusKey();if(o===i&&o===e)return a=this.getStartOffset(),r=this.getEndOffset(),t<=a&&a<=n||t<=r&&r<=n;if(e!==o&&e!==i)return!1;var a=e===o?this.getAnchorOffset():this.getFocusOffset();return t<=a&&a<=n},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.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(0).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),e.exports=n},function(e,t,n){"use strict";var r=n(1),o="LTR",i=null;function a(e){return e===o||"RTL"===e}function c(e){return a(e)||r(!1),e===o?"ltr":"rtl"}function s(e){i=e}e.exports={NEUTRAL:"NEUTRAL",LTR:o,RTL:"RTL",isStrong:a,getHTMLDir:c,getHTMLDirIfDifferent:function(e,t){return a(e)||r(!1),a(t)||r(!1),e===t?null:c(e)},setGlobalDir:s,initGlobalDir:function(){s(o)},getGlobalDir:function(){return i||this.initGlobalDir(),i||r(!1),i}}},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(e,t,n){"use strict";var r=n(27),o=n(50);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){return"auto"===(e=o.get(e,t))||"scroll"===e}var o={get:n(115),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 r=n(119),o=n(120);e.exports=function(e){var t=r(e.ownerDocument||e.document),n=(e.Window&&e instanceof e.Window&&(e=t),o(e)),i=(t=e===t?e.ownerDocument.documentElement:e,e.scrollWidth-t.clientWidth);e=e.scrollHeight-t.clientHeight;return n.x=Math.max(0,Math.min(n.x,i)),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){"use strict";function r(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){var r,o;r=e,o=n[t=t],t in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var a=n(17),c=n(6),s=n(12),u=n(7),l=n(22),f=n(23),p=n(9),g=n(46),d=n(11),h=n(0),y=n(48),m=h.List,b=(n=h.Record,h.Repeat),v=h.Map,S=h.OrderedMap,w=(h=n({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),d("draft_tree_data_support")?u:s);n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(r=n).prototype=Object.create(t.prototype),i(r.prototype.constructor=r,t);var r=n.prototype;return r.getEntityMap=function(){return l},r.getBlockMap=function(){return this.get("blockMap")},r.getSelectionBefore=function(){return this.get("selectionBefore")},r.getSelectionAfter=function(){return this.get("selectionAfter")},r.getBlockForKey=function(e){return this.getBlockMap().get(e)},r.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},r.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},r.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},r.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},r.getBlocksAsArray=function(){return this.getBlockMap().toArray()},r.getFirstBlock=function(){return this.getBlockMap().first()},r.getLastBlock=function(){return this.getBlockMap().last()},r.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},r.getLastCreatedEntityKey=function(){return l.__getLastCreatedEntityKey()},r.hasText=function(){var e=this.getBlockMap();return 1<e.size||0<escape(e.first().getText()).replace(/%u200B/g,"").length},r.createEntity=function(e,t,n){return l.__create(e,t,n),this},r.mergeEntityData=function(e,t){return l.__mergeData(e,t),this},r.replaceEntityData=function(e,t){return l.__replaceData(e,t),this},r.addEntity=function(e){return l.__add(e),this},r.getEntity=function(e){return l.__get(e)},r.getAllEntities=function(){return l.__getAll()},r.loadWithEntities=function(e){return l.__loadWithEntities(e)},n.createFromBlockArray=function(e,t){e=Array.isArray(e)?e:e.contentBlocks;var r=(e=a.createFromArray(e)).isEmpty()?new f:f.createEmpty(e.first().getKey());return new n({blockMap:e,entityMap:t||l,selectionBefore:r,selectionAfter:r})},n.createFromText=function(e){return e=e.split(1<arguments.length&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g).map((function(e){return e=y(e),new w({key:p(),text:e,type:"unstyled",characterList:m(b(c.EMPTY,e.length))})})),n.createFromBlockArray(e)},n.fromJS=function(e){return new n(o(o({},e),{},{blockMap:S(e.blockMap).map(n.createContentBlockFromJS),selectionBefore:new f(e.selectionBefore),selectionAfter:new f(e.selectionAfter)}))},n.createContentBlockFromJS=function(e){var t=e.characterList;return new w(o(o({},e),{},{data:v(e.data),characterList:null!=t?m((Array.isArray(t)?t:g(t)).map((function(e){return c.fromJS(e)}))):void 0}))},n}(h);e.exports=n},function(e,t,n){"use strict";var r=n(24),o=n(1),i=(n="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ","؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾"),a=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ--ℝℤΩℨK--ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA--zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+n+i+"]"),c=new RegExp("["+n+i+"]");function s(e){return null==(e=a.exec(e))?null:e[0]}function u(e){return null==(e=s(e))?r.NEUTRAL:c.exec(e)?r.RTL:r.LTR}function l(e,t){return t=t||r.NEUTRAL,e.length?(e=u(e))===r.NEUTRAL?t:e:t}function f(e,t){return t=t||r.getGlobalDir(),r.isStrong(t)||o(!1),l(e,t)}e.exports={firstStrongChar:s,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(8),o=n(13);n=(0,n(0).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(58).notEmptyKey;function o(e,t){return r(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){if(t.isCollapsed())return n=t.getAnchorKey(),0<(r=t.getAnchorOffset())&&(i=e.getBlockForKey(n).getEntityAt(r-1))===e.getBlockForKey(n).getEntityAt(r)?o(e.getEntityMap(),i):null;var n=t.getStartKey(),r=t.getStartOffset(),i=r===(t=e.getBlockForKey(n)).getLength()?null:t.getEntityAt(r);return o(e.getEntityMap(),i)}},function(e,t,n){"use strict";var r=n(113);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(39),e.exports=function(e,t){var n,r=e.getSelection(),o=(e=e.getCurrentContent(),r.getStartKey()),i=r.getStartOffset(),a=o,c=0;return i<t?null==(n=e.getKeyBefore(o))?a=o:c=e.getBlockForKey(a=n).getText().length:c=i-t,r.merge({focusKey:a,focusOffset:c,isBackward:!0})}},function(e,t,n){"use strict";n=n(67),e.exports=n},function(e,t,n){"use strict";var r=n(5),o=(n=n(142),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";var r=n(7),o=n(9),i=n(0).OrderedMap;e.exports=function(e){var t,n;return e.first()instanceof r?(n={},i(e.withMutations((function(e){e.forEach((function(r,i){var a=r.getKey(),c=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),u=r.getChildKeys(),l=r.getParentKey(),f=o();n[a]=f,c&&(e.get(c)?e.setIn([c,"prevSibling"],f):e.setIn([a,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],f):e.setIn([a,"prevSibling"],null)),l&&e.get(l)?(c=e.get(l).getChildKeys(),e.setIn([l,"children"],c.set(c.indexOf(r.getKey()),f))):(e.setIn([a,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],f),e.setIn([a,"prevSibling"],n[t.getKey()])),t=e.get(a)),u.forEach((function(t){e.get(t)?e.setIn([t,"parent"],f):e.setIn([a,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))):i(e.toArray().map((function(e){var t=o();return[t,e.set("key",t)]})))}},function(e,t,n){"use strict";var r=n(6),o=n(18),i=n(1);function a(e,t,n){var a,c,s,u=t.getCharacterList(),l=0<n?u.get(n-1):void 0,f=n<u.count()?u.get(n):void 0;l=l?l.getEntity():void 0;if((f=f?f.getEntity():void 0)&&f===l&&"MUTABLE"!==e.__get(f).getMutability()){a=f,c=n,o(u,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===a}),(function(e,t){e<=c&&c<=t&&(s={start:e,end:t})})),"object"!=typeof s&&i(!1);for(var p,g=(l=s).start,d=l.end;g<d;)p=u.get(g),u=u.set(g,r.applyEntity(p,null)),g++;return t.set("characterList",u)}return t}e.exports=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),c=t.getStartOffset(),s=((c=a(r,s=n.get(i),c))!==s&&(o[i]=c),t.getEndKey()),u=t.getEndOffset(),l=n.get(s);return(r=a(r,l=i===s?c:l,u))!==l&&(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 r=n(0).Map;e.exports=function(e,t,n){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap();n=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat(r([[i,a.get(i)]])).map(n);return e.merge({blockMap:a.merge(n),selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(7);e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;if(!(n=e.getParentKey()))return null;for(var o=t.get(n);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null}},function(e,t,n){"use strict";e.exports=function(e){return Object.keys(e).map((function(t){return e[t]}))}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(o=n).prototype=Object.create(t.prototype),r(o.prototype.constructor=o,t);var o=n.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},n}((0,n(0).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 r=n(15);e.exports=function e(t){if(r(t)){var n=t;if(t=n.getAttribute("data-offset-key"))return t;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}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 r=n(53),o=n(2),i=n(54),a=n(55);e.exports=function(e){var t,n,c;e._blockSelectEvents||e._latestEditorState!==e.props.editorState?e._blockSelectEvents&&(t=e.props.editorState.getSelection(),r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})):(t=e.props.editorState,(c=(n=a(t,i(e))).selectionState)!==t.getSelection()&&(t=n.needsRecovery?o.forceSelection(t,c):o.acceptSelection(t,c),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(1),o=n(19);e.exports=function(e){return(e=e.editorContainer)||r(!1),o(e.firstChild)||r(!1),e.firstChild}},function(e,t,n){"use strict";var r=n(56);e.exports=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),o=n.anchorNode,i=n.anchorOffset,a=n.focusNode,c=n.focusOffset;return 0===n.rangeCount||null==o||null==a?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,t,o,i,a,c)}},function(e,t,n){"use strict";var r=n(26),o=n(50),i=n(57),a=n(1),c=n(15),s=n(4);function u(e,t,n){var i=r(t);if(null!=i||e&&(e===t||e.firstChild===t)||a(!1),e===t&&(t=t.firstChild,c(t)||a(!1),"true"!==(t=t).getAttribute("data-contents")&&a(!1),0<n&&(n=t.childNodes.length)),0===n)return{key:null!=i?i:(e=function(e){for(;e.firstChild&&(c(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(t),s(o(e))),offset:0};var u;e=t.childNodes[n-1],t=null,n=null;return n=o(e)?(u=function(e){for(;e.lastChild&&(c(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(e),t=s(o(u)),l(u)):(t=s(i),l(e)),{key:t,offset:n}}function l(e){return"\n"===(e=e.textContent)?0:e.length}e.exports=function(e,t,n,o,a,c){var l=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:i(e,s(r(n)),o,s(r(a)),c),needsRecovery:!1};var p=null,g=null,d=!0;return l?(p={key:s(r(n)),offset:o},g=u(t,a,c)):f?(g={key:s(r(a)),offset:c},p=u(t,n,o)):(p=u(t,n,o),g=u(t,a,c),n===a&&o===c&&(d=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(e,p.key,p.offset,g.key,g.offset),needsRecovery:d}}},function(e,t,n){"use strict";var r=n(10),o=n(4);e.exports=function(e,t,n,i,a){var c=o(e.getSelection());if(!t||!i)return c;var s=(t=r.decode(t)).blockKey,u=(u=e.getBlockTree(s))&&u.getIn([t.decoratorKey,"leaves",t.leafKey]),l=(t=r.decode(i)).blockKey;i=(i=e.getBlockTree(l))&&i.getIn([t.decoratorKey,"leaves",t.leafKey]);if(!u||!i)return c;t=u.get("start");var f=i.get("start"),p=u?t+n:null,g=i?f+a:null;if(c.getAnchorKey()===s&&c.getAnchorOffset()===p&&c.getFocusKey()===l&&c.getFocusOffset()===g)return c;var d;return d=s===l?(u=u.get("end"),i=i.get("end"),f===t&&i===u?a<n:f<t):e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===l})).first()===l,c.merge({anchorKey:s,anchorOffset:p,focusKey:l,focusOffset:g,isBackward:d})}},function(e,t,n){"use strict";e.exports={notEmptyKey:function(e){return null!=e&&""!=e}}},function(e,t,n){"use strict";var r=n(14);function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var i=n(111),a=n(8),c=n(1),s=n(60),u=n(112).setDraftEditorSelection;n=function(e){var t;function n(){for(var t,n,r,o,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return o=void 0,(r="leaf")in(n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(a))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}t=e,(l=n).prototype=Object.create(t.prototype),o(l.prototype.constructor=l,t);var l=n.prototype;return l._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)||c(!1),(o=r.firstChild)||c(!1),o.nodeType===Node.TEXT_NODE?i=o:s(o)?i=r:(i=o.firstChild)||c(!1),u(a,i,t,e,n)))},l.shouldComponentUpdate=function(e){var t=this.leaf;return t||c(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},l.componentDidUpdate=function(){this._setSelection()},l.componentDidMount=function(){this._setSelection()},l.render=function(){var e,t=this,n=this.props.block,o=this.props.text,c=(e=(o.endsWith("\n")&&this.props.isLast&&(o+="\n"),this.props)).customStyleMap,s=e.customStyleFn,u=e.offsetKey,l=(e=e.styleSet).reduce((function(e,t){var n={};return void 0!==(t=c[t])&&e.textDecoration!==t.textDecoration&&(n.textDecoration=[e.textDecoration,t.textDecoration].join(" ").trim()),r(e,t,n)}),{});return s&&(s=s(e,n),l=r(l,s)),a.createElement("span",{"data-offset-key":u,ref:function(e){return t.leaf=e},style:l},a.createElement(i,null,o))},n}(a.Component);e.exports=n},function(e,t,n){"use strict";var r=n(15);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(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},function(e,t,n){"use strict";var r=n(118);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(14);function o(){return(o=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 i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}var c=n(59),s=n(10),u=n(8),l=n(37),f=n(29),p=n(33),g=n(24),d=n(13),h=n(63),y=n(30),m=n(64),b=n(1),v=n(19),S=n(4);n=function(e){var t;function n(){for(var t,n,r,o,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return o=void 0,(r="_node")in(n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(a))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}t=e,(r=n).prototype=Object.create(t.prototype),i(r.prototype.constructor=r,t);var r=n.prototype;return r.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||a(e.selection,e.block.getKey())&&e.forceSelection},r.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=f.getScrollParent(e),n=y(t),t===window?0<(r=(r=h(e)).y+r.height-m().height)&&window.scrollTo(n.x,n.y+r+10):(v(e)||b(!1),0<(r=e.offsetHeight+e.offsetTop-(t.offsetTop+t.offsetHeight+n.y))&&l.setTop(t,l.getTop(t)+r+10))))},r._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),i=this.props.tree.size-1,l=a(this.props.selection,n);return this.props.tree.map((function(a,f){if(0===(w=a.get("leaves")).size)return null;var d=w.size-1,h=w.map((function(o,a){var p=s.encode(n,f,a),g=o.get("start");o=o.get("end");return u.createElement(c,{key:p,offsetKey:p,block:t,start:g,selection:l?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(g,o),styleSet:t.getInlineStyleAt(g),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:f===i&&a===d})})).toArray();if(null==(b=a.get("decoratorKey")))return h;if(!e.props.decorator)return h;var y=(m=S(e.props.decorator)).getComponentForKey(b);if(!y)return h;var m=m.getPropsForKey(b),b=s.encode(n,f,0),v=w.first().get("start"),w=w.last().get("end"),x=r.slice(v,w),O=(a=t.getEntityAt(a.get("start")),g.getHTMLDirIfDifferent(p.getDirection(x),e.props.direction));x={contentState:e.props.contentState,decoratedText:x,dir:O,start:v,end:w,blockKey:n,entityKey:a,offsetKey:b};return u.createElement(y,o({},m,x,{key:b}),h)})).toArray()},r.render=function(){var e=this,t=(n=this.props).direction,n=n.offsetKey;t=d({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return u.createElement("div",{"data-offset-key":n,className:t,ref:function(t){return e._node=t}},this._renderChildren())},n}(u.Component);e.exports=n},function(e,t,n){"use strict";var r=n(124),o=n(125),i=n(67),a=new RegExp("\r\n","g"),c={"text/rtf":1,"text/html":1};function s(e){if("file"==e.kind)return e.getAsFile()}e.exports=function(){function e(e){this.data=e,this.types=e.types?o(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return c[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")?-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):this.data.getData("text/x-moz-url").split("\n")[0]:null},t.isImage=function(){if(this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")})))return!0;for(var e=this.getFiles(),t=0;t<e.length;t++){var n=e[t].type;if(!r.isImage(n))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(s).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(t){var r=n(1),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,n){var a=0,c=[];e.forEach((function(s){var u,l,f;s=s,u=function(t){a++,t&&c.push(t.slice(0,5e3)),a==e.length&&n(c.join("\r"))},!t.FileReader||s.type&&!(s.type in i)?u(""):""!==s.type?((l=new FileReader).onload=function(){var e=l.result;"string"!=typeof e&&r(!1),u(e)},l.onerror=function(){u("")},l.readAsText(s)):(f="",o.test(s.name)&&(f=s.name.replace(o,"")),u(f))}))}}).call(this,n(25))},function(e,t,n){"use strict";var r=n(21);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(2),o=n(16),i=n(38),a=n(20);e.exports=function(e){var t=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");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var r=n(5),o=n(1);n=r.isBrowser("Chrome");e.exports=n?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var i=r===e.commonAncestorContainer,a=(i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0),Array.from(t.getClientRects()));if(n.push(a),i)return n.reverse(),(a=[]).concat.apply(a,n);t.setEndBefore(r)}o(!1)}:function(e){return Array.from(e.getClientRects())}},function(e,t,n){"use strict";n="\\s|(?![_])"+n(147).getPunctuation();var r=new RegExp("^(?:"+n+")*(?:[']|(?!"+n+").)*(?:(?!"+n+").)"),o=new RegExp("(?:(?!"+n+").)(?:[']|(?!"+n+").)*(?:"+n+")*$");function i(e,t){return(t=(t?o:r).exec(e))?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(39),e.exports=function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getStartOffset(),i=r;e=t>(e=e.getCurrentContent()).getBlockForKey(r).getText().length-o?(i=e.getKeyAfter(r),0):o+t;return n.merge({focusKey:i,focusOffset:e})}},function(e,t,n){"use strict";function r(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return"ul"===e||"ol"===e}var c=n(6),s=n(12),u=n(7),l=n(34),f=n(22),p=n(157),g=n(13),d=n(9),h=n(75),y=n(11),m=n(0),b=m.List,v=m.Map,S=m.OrderedSet,w=n(158),x=n(60),O=n(19),k=n(159),C=y("draft_tree_data_support"),E=new RegExp("\r","g"),_=new RegExp("\n","g"),D=new RegExp("^\n","g"),K=new RegExp("&nbsp;","g"),T=new RegExp("&#13;?","g"),A=new RegExp("&#8203;?","g"),M=["bold","bolder","500","600","700","800","900"],B=["light","lighter","normal","100","200","300","400"],P=["className","href","rel","target","title"],j=["alt","className","height","src","width"],L=(i(m={},g("public/DraftStyleDefault/depth0"),0),i(m,g("public/DraftStyleDefault/depth1"),1),i(m,g("public/DraftStyleDefault/depth2"),2),i(m,g("public/DraftStyleDefault/depth3"),3),i(m,g("public/DraftStyleDefault/depth4"),4),m),R=v({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),F=function(){function e(e,t){i(this,"characterList",b()),i(this,"currentBlockType","unstyled"),i(this,"currentDepth",0),i(this,"currentEntity",null),i(this,"currentText",""),i(this,"wrapper",null),i(this,"blockConfigs",[]),i(this,"contentBlocks",[]),i(this,"entityMap",f),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=b(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=f,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],S())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(C?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=o({key:(e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).key||d(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:b(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=b(),this.currentBlockType="unstyled",this.currentText="",e},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o,i,c,s,u=e[r],l=u.nodeName.toLowerCase();"body"===l||a(l)?(this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig()),o=this.currentDepth,i=this.wrapper,a(l)&&(this.wrapper=l,a(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))?"#text"!==l?"br"!==l?function(e){return!!k(e)&&!(!e.attributes.getNamedItem("src")||!e.attributes.getNamedItem("src").value)}(u)?this._addImgNode(u,t):function(e){if(!w(e))return!1;if(!e.href||"http:"!==e.protocol&&"https:"!==e.protocol&&"mailto:"!==e.protocol&&"tel:"!==e.protocol)return!1;try{return new p(e.href),!0}catch(e){return!1}}(u)?this._addAnchorNode(u,n,t):(i=t,i=function(e,t){if(!O(e))return t;var n=e.style.fontWeight,r=e.style.fontStyle,o=e.style.textDecoration;return t.withMutations((function(e){0<=M.indexOf(n)?e.add("BOLD"):0<=B.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"))}))}(u,i=R.has(l)?i.add(R.get(l)):i),null!=(c=function(e){return O(e)&&e.style.fontFamily.includes("monospace")?"CODE":null}(u))&&(i=i.add(c)),n.push.apply(n,this._toBlockConfigs(Array.from(u.childNodes),i))):this._addBreakNode(u,t):this._addTextNode(u,t):(this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig()),c=this.currentDepth,s=this.wrapper,this.wrapper="pre"===l?"pre":this.wrapper,"string"!=typeof o&&(o=this.disambiguate(l,this.wrapper)||o[0]||"unstyled"),C||!O(u)||"unordered-list-item"!==o&&"ordered-list-item"!==o||(this.currentDepth=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(L).some((function(n){e.classList.contains(n)&&(t=L[n])})),t}(u,this.currentDepth)),l=d(),u=this._toBlockConfigs(Array.from(u.childNodes),t),this._trimCurrentText(),n.push(this._makeBlockConfig({key:l,childConfigs:u,type:o})),this.currentDepth=c,this.wrapper=s)}return n},t._appendText=function(e,t){this.currentText+=e;var n;t=c.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=b()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){""===(e=e.textContent).trim()&&"pre"!==this.wrapper&&(e=" "),"pre"!==this.wrapper&&(e=(e=e.replace(D,"")).replace(_," ")),this._appendText(e,t)},t._addBreakNode=function(e,t){x(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){var n,r;k(e)&&(n=e,r={},j.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),y("draftjs_fix_paste_for_img")&&"presentation"===n.getAttribute("role")||this._appendText("📷",t),this.currentEntity=null)},t._addAnchorNode=function(e,t,n){var r,o;w(e)&&(r=e,o={},P.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 i=e[r];i.parent=t,i.prevSibling=0<r?e[r-1].key:null,i.nextSibling=r<n?e[r+1].key:null,i.children=b(i.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new u(o({},i))),this._toContentBlocks(i.childConfigs,i.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return b(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=(r=t._extractTextFromBlockConfigs(e.childConfigs)).text,r=r.characterList;t.contentBlocks.push(new s(o(o({},e),{},{text:e.text+n,characterList:e.characterList.concat(r)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=b(),o=0;o<=t;o++){var i=(n+=(i=e[o]).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 t,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:l;if(!(t=(t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:h)(e=e.trim().replace(E,"").replace(K," ").replace(T,"").replace(A,""))))return null;r={},n.mapKeys((function(e,t){var n=[t.element];void 0!==t.aliasedElements&&n.push.apply(n,t.aliasedElements),n.forEach((function(t){void 0===r[t]?r[t]=e:"string"==typeof r[t]?r[t]=[r[t],e]:r[t].push(e)}))}));var r;e=v(r);return new F(e,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(t).getContentBlocks()}},function(e,t,n){"use strict";var r=n(5),o=n(1),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 r=n(3),o=n(2),i=n(160),a=n(4),c={currentBlockContainsLink:function(e){var t=e.getSelection(),n=(e=e.getCurrentContent()).getEntityMap();return e.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){return!!(e=e.getEntity())&&"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 c.toggleInlineStyle(e,"BOLD");case"italic":return c.toggleInlineStyle(e,"ITALIC");case"underline":return c.toggleInlineStyle(e,"UNDERLINE");case"code":return c.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return c.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return c.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null);e=o.push(e,t,"insert-characters");return o.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();return(r=n.getBlockBefore(r))&&"atomic"===r.getType()&&(r=n.getBlockMap().delete(r.getKey()),(r=n.merge({blockMap:r,selectionAfter:t}))!==n)?o.push(e,r,"remove-range"):(t=c.tryToRemoveBlockStyle(e))?o.push(e,t,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockForKey(i).getLength();return t.getStartOffset()<a?null:(a=n.getBlockAfter(i))&&"atomic"===a.getType()?(i=t.merge({focusKey:a.getKey(),focusOffset:a.getLength()}),(t=r.removeRange(n,i,"forward"))!==n?o.push(e,t,"remove-range"):null):null},onTab:function(e,t,n){var r=t.getSelection();if((a=r.getAnchorKey())!==r.getFocusKey())return t;var a,c=t.getCurrentContent(),s=(a=c.getBlockForKey(a)).getType();return"unordered-list-item"!==s&&"ordered-list-item"!==s?t:(e.preventDefault(),s=a.getDepth(),e.shiftKey||s!==n?(a=i(c,r,e.shiftKey?-1:1,n),o.push(t,a,"adjust-depth")):t)},toggleBlockType:function(e,t){var n,i=e.getSelection(),c=i.getStartKey(),s=i.getEndKey(),u=e.getCurrentContent(),l=i;return c!==s&&0===i.getEndOffset()&&(n=a(u.getBlockBefore(s)),s=n.getKey(),l=l.merge({anchorKey:c,anchorOffset:i.getStartOffset(),focusKey:s,focusOffset:n.getLength(),isBackward:!1})),u.getBlockMap().skipWhile((function(e,t){return t!==c})).reverse().skipWhile((function(e,t){return t!==s})).some((function(e){return"atomic"===e.getType()}))?e:(i=u.getBlockForKey(c).getType()===t?"unstyled":t,o.push(e,r.setBlockType(u,l,i),"change-block-type"))},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?c.toggleBlockType(e,"code-block"):c.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),i=e.getCurrentInlineStyle();if(n.isCollapsed())return o.setInlineStyleOverride(e,i.has(t)?i.remove(t):i.add(t));var a=e.getCurrentContent();i=i.has(t)?r.removeInlineStyle(a,n,t):r.applyInlineStyle(a,n,t);return o.push(e,i,"change-inline-style")},toggleLink:function(e,t,n){return t=r.applyEntity(e.getCurrentContent(),t,n),o.push(e,t,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){n=t.getAnchorKey();var o=(e=e.getCurrentContent()).getBlockForKey(n).getType();n=e.getBlockBefore(n);if("code-block"===o&&n&&"code-block"===n.getType()&&0!==n.getLength())return null;if("unstyled"!==o)return r.setBlockType(e,t,"unstyled")}return null}};e.exports=c},function(e,t,n){"use strict";var r=n(40),o=n(28),i=(n=n(5)).isPlatform("Mac OS X"),a=i&&n.isBrowser("Firefox < 29"),c=r.hasCommandModifier,s=r.isCtrlKeyCommand;function u(e){return i&&e.altKey||s(e)}e.exports=function(e){switch(e.keyCode){case 66:return c(e)?"bold":null;case 68:return s(e)?"delete":null;case 72:return s(e)?"backspace":null;case 73:return c(e)?"italic":null;case 74:return c(e)?"code":null;case 75:return i&&s(e)?"secondary-cut":null;case 77:case 79:return s(e)?"split-block":null;case 84:return i&&s(e)?"transpose-characters":null;case 85:return c(e)?"underline":null;case 87:return i&&s(e)?"backspace-word":null;case 89:return s(e)?i?"secondary-paste":"redo":null;case 90:return(c(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 c(t=e)&&i?"backspace-to-start-of-line":u(t)?"backspace-word":"backspace";case o.LEFT:return a&&c(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return a&&c(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";var r=n(80),o=n(17),i=n(6),a=n(96),c=n(12),s=n(32),u=n(34),l=n(49),f=n(97),p=n(65),g=n(22),d=n(3),h=n(47),y=n(2),m=n(40),b=n(165),v=n(76),S=n(23),w=n(166),x=n(169),O=n(9),k=n(77),C=n(175);n=n(74);e.exports={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:g,EntityInstance:h,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:c,ContentState:s,RawDraftContentState:b,SelectionState:S,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:d,RichUtils:v,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:l,convertFromHTML:n,convertFromRaw:x,convertToRaw:w,genKey:O,getDefaultKeyBinding:k,getVisibleSelectionRect:C}},function(e,t,n){"use strict";function r(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){var r,o;r=e,o=n[t=t],t in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var i=n(17),a=n(6),c=n(12),s=n(7),u=n(3),l=n(2),f=n(9),p=n(11),g=n(0),d=n(95),h=p("draft_tree_data_support"),y=h?s:c,m=g.List,b=g.Repeat;e.exports={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),c=e.getSelection(),s=(r=u.removeRange(r,c,"backward")).getSelectionAfter();s=(r=u.splitBlock(r,s)).getSelectionAfter(),r=u.setBlockType(r,s,"atomic"),t=a.create({entity:t}),t={key:f(),type:"atomic",text:n,characterList:m(b(t,n.length))},n={key:f(),type:"unstyled"},h&&(t=o(o({},t),{},{nextSibling:n.key}),n=o(o({},n),{},{prevSibling:t.key})),t=[new y(t),new y(n)],n=i.createFromArray(t),r=(t=u.replaceWithFragment(r,s,n)).merge({selectionBefore:c,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 r=n(6),o=n(0).Map;function i(e,t,n,i){var a=e.getBlockMap(),c=t.getStartKey(),s=t.getStartOffset(),u=t.getEndKey(),l=t.getEndOffset(),f=a.skipUntil((function(e,t){return t===c})).takeUntil((function(e,t){return t===u})).concat(o([[u,a.get(u)]])).map((function(e,t){for(var o,a,f=c===u?(o=s,l):(o=t===c?s:0,t===u?l:e.getLength()),p=e.getCharacterList();o<f;)a=p.get(o),p=p.set(o,i?r.applyStyle(a,n):r.removeStyle(a,n)),o++;return e.set("characterList",p)}));return e.merge({blockMap:a.merge(f),selectionBefore:t,selectionAfter:t})}e.exports={add:function(e,t,n){return i(e,t,n,!0)},remove:function(e,t,n){return i(e,t,n,!1)}}},function(e,t,n){"use strict";var r=n(83),o=n(0);e.exports=function(e,t,n){var i=e.getBlockMap(),a=t.getStartKey(),c=t.getStartOffset(),s=t.getEndKey(),u=t.getEndOffset(),l=i.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===s})).toOrderedMap().merge(o.OrderedMap([[s,i.get(s)]])).map((function(e,t){var o=t===a?c:0;t=t===s?u:e.getLength();return r(e,o,t,n)}));return e.merge({blockMap:i.merge(l),selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(6);e.exports=function(e,t,n,o){for(var i=t,a=e.getCharacterList();i<n;)a=a.set(i,r.applyEntity(a.get(i),o)),i++;return e.set("characterList",a)}},function(e,t,n){"use strict";var r=n(85),o=n(86),i=n(1);function a(e,t,n,a,c,s,u){var l=n.getStartOffset(),f=n.getEndOffset(),p=(e=e.__get(c).getMutability(),u?l:f);return"MUTABLE"===e?n:(1!=(c=o(t,c).filter((function(e){return p<=e.end&&p>=e.start}))).length&&i(!1),c=c[0],"IMMUTABLE"===e?n.merge({anchorOffset:c.start,focusOffset:c.end,isBackward:!1}):(s||(u?f=c.end:l=c.start),e=r.getRemovalRange(l,f,t.getText().slice(c.start,c.end),c.start,a),n.merge({anchorOffset:e.start,focusOffset:e.end,isBackward:!1})))}e.exports=function(e,t,n,r,o){var i,c,s=r.getStartOffset(),u=r.getEndOffset();s=t.getEntityAt(s),u=n.getEntityAt(u-1);return(s||u)&&(s&&s===u?r=a(e,t,r,o,s,!0,!0):s&&u?(i=a(e,t,r,o,s,!1,!0),c=a(e,n,r,o,u,!1,!1),r=r.merge({anchorOffset:i.getAnchorOffset(),focusOffset:c.getFocusOffset(),isBackward:!1})):s?(i=a(e,t,r,o,s,!1,!0),r=r.merge({anchorOffset:i.getStartOffset(),isBackward:!1})):u&&(c=a(e,n,r,o,u,!1,!1),r=r.merge({focusOffset:c.getEndOffset(),isBackward:!1}))),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})),c=r,s=null,u=null,l=0;l<a.length;l++){if(e<(i=c+a[l].length)&&c<t)null!==s||(s=c),u=i;else if(null!==s)break;c=i}var f=s===r,p=u===(n=r+n.length);return(!f&&p||f&&!p)&&("forward"===o?u!==n&&u++:s!==r&&s--),{start:s,end:u}}}},function(e,t,n){"use strict";var r=n(1);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 r=n(17),o=n(7),i=n(0),a=n(43),c=n(1),s=n(41),u=i.List,l=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()})},f=function(e,t,n){var r=e.getText(),o=(e=e.getCharacterList(),r.length);r=r.slice(t,o),e=e.slice(t,o);return(t=n.last()).merge({text:t.getText()+r,characterList:t.getCharacterList().concat(e),data:t.getData()})},p=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),c=n.getParentKey(),s=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}(r,e),l=s[s.length-1];t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),s.forEach((function(e){return t.setIn([e,"parent"],c)})),c&&(a=(i=e.get(c).getChildKeys()).indexOf(o)+1,(l=i.toArray()).splice.apply(l,[a,0].concat(s)),t.setIn([c,"children"],u(l)))}))};e.exports=function(e,t,n){var i,u,g,d,h,y,m,b=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",v=(t.isCollapsed()||c(!1),e.getBlockMap()),S=(n=s(n),t.getStartKey()),w=t.getStartOffset(),x=v.get(S);return x instanceof o&&(x.getChildKeys().isEmpty()||c(!1)),1===n.size?function(e,t,n,r,o,i){var c=6<arguments.length&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),u=s.getText(),l=s.getCharacterList(),f=o,p=i+r.getText().length,g=null;switch(c){case"MERGE_OLD_DATA_TO_NEW_DATA":g=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":g=r.getData()}return c=s.getType(),u&&"unstyled"===c&&(c=r.getType()),u=s.merge({text:u.slice(0,i)+r.getText()+u.slice(i),characterList:a(l,r.getCharacterList(),i),type:c,data:g}),e.merge({blockMap:n.set(o,u),selectionBefore:t,selectionAfter:t.merge({anchorKey:f,anchorOffset:p,focusKey:f,focusOffset:p,isBackward:!1})})}(e,t,v,n.first(),S,w,b):(x=e,b=t,i=n,u=S,g=w,t=(e=v).first()instanceof o,d=[],h=i.size,n=e.get(u),S=i.first(),v=(w=i.last()).getLength(),w=w.getKey(),y=t&&(!n.getChildKeys().isEmpty()||!S.getChildKeys().isEmpty()),e.forEach((function(e,t){t===u?(y?d.push(e):d.push(l(e,g,i)),i.slice(y?0:1,h-1).forEach((function(e){return d.push(e)})),d.push(f(e,g,i))):d.push(e)})),m=r.createFromArray(d),t&&(m=p(m,0,n,S)),x.merge({blockMap:m,selectionBefore:b,selectionAfter:b.merge({anchorKey:w,anchorOffset:v,focusKey:w,focusOffset:v,isBackward:!1})}))}},function(e,t,n){"use strict";var r=n(0),o=n(43),i=n(1),a=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||i(!1);var c=null;if(null==(c=null!=n?n.length:c)||0===c)return e;var s=e.getBlockMap(),u=t.getStartKey(),l=t.getStartOffset(),f=s.get(u),p=f.getText();n=f.merge({text:p.slice(0,l)+n+p.slice(l,f.getLength()),characterList:o(f.getCharacterList(),a(r,c).toList(),l)}),p=l+c;return e.merge({blockMap:s.set(u,n),selectionAfter:t.merge({anchorOffset:p,focusOffset:p})})}},function(e,t,n){"use strict";var r=n(7),o=n(45),i=((n=n(0)).List,n.Map),a=function(e,t,n){var r;!e||(r=t.get(e))&&t.set(e,n(r))},c=function(e,t){var n=[];if(!e)return n;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},s=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},u=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){if(t.isCollapsed())return e;var n,l,f,p,g=e.getBlockMap(),d=t.getStartKey(),h=t.getStartOffset(),y=t.getEndKey(),m=t.getEndOffset(),b=g.get(d),v=g.get(y),S=b instanceof r,w=[],x=(S&&(k=v.getChildKeys(),O=c(y,g),v.getNextSiblingKey()&&(w=w.concat(O)),w=(w=k.isEmpty()?w:w.concat(O.concat([y]))).concat(c(o(v,g),g))),k=b===v?function(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}(b.getCharacterList(),h,m):b.getCharacterList().slice(0,h).concat(v.getCharacterList().slice(m)),b.merge({text:b.getText().slice(0,h)+v.getText().slice(m),characterList:k})),O=S&&0===h&&0===m&&v.getParentKey()===d&&null==v.getPrevSiblingKey()?i([[d,null]]):g.toSeq().skipUntil((function(e,t){return t===d})).takeUntil((function(e,t){return t===y})).filter((function(e,t){return-1===w.indexOf(t)})).concat(i([[y,null]])).map((function(e,t){return t===d?x:null})),k=g.merge(O).filter((function(e){return!!e}));return S&&b!==v&&(l=b,f=v,p=g,k=(n=k).withMutations((function(e){var t,r,i,g;a(l.getKey(),e,(function(t){return t.merge({nextSibling:s(t,e,p),prevSibling:u(t,e,p)})})),a(f.getKey(),e,(function(t){return t.merge({nextSibling:s(t,e,p),prevSibling:u(t,e,p)})})),c(l.getKey(),p).forEach((function(t){return a(t,e,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return e.get(t)})),nextSibling:s(t,e,p),prevSibling:u(t,e,p)})}))})),a(l.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:l.getPrevSiblingKey()})})),a(l.getPrevSiblingKey(),e,(function(t){return t.merge({nextSibling:s(t,e,p)})})),a(f.getNextSiblingKey(),e,(function(t){return t.merge({prevSibling:u(t,e,p)})})),a(f.getPrevSiblingKey(),e,(function(e){return e.merge({nextSibling:f.getNextSiblingKey()})})),c(f.getKey(),p).forEach((function(t){a(t,e,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return e.get(t)})),nextSibling:s(t,e,p),prevSibling:u(t,e,p)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=o(e,t);r&&t.get(r);){var i=t.get(r);n.push(r),r=i.getParentKey()?o(i,t):null}return n}(f,p).forEach((function(t){return a(t,e,(function(t){return t.merge({nextSibling:s(t,e,p),prevSibling:u(t,e,p)})}))})),null==n.get(l.getKey())&&null!=n.get(f.getKey())&&f.getParentKey()===l.getKey()&&null==f.getPrevSiblingKey()&&(t=l.getPrevSiblingKey(),a(f.getKey(),e,(function(e){return e.merge({prevSibling:t})})),a(t,e,(function(e){return e.merge({nextSibling:f.getKey()})})),r=t?n.get(t):null,i=r?r.getParentKey():null,l.getChildKeys().forEach((function(t){a(t,e,(function(e){return e.merge({parent:i})}))})),null!=i&&(g=n.get(i),a(i,e,(function(e){return e.merge({children:g.getChildKeys().concat(l.getChildKeys())})}))),a(l.getChildKeys().find((function(e){return null===n.get(e).getNextSiblingKey()})),e,(function(e){return e.merge({nextSibling:l.getNextSiblingKey()})})))}))),e.merge({blockMap:k,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:h,focusKey:d,focusOffset:h,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(7),o=n(9),i=n(0),a=n(1),c=n(44),s=i.List,u=i.Map,l=function(e,t,n){var r;!e||(r=t.get(e))&&t.set(e,n(r))};e.exports=function(e,t){t.isCollapsed()||a(!1);var n=t.getAnchorKey(),i=(v=e.getBlockMap()).get(n);if(!(b=i.getText())&&("unordered-list-item"===(g=i.getType())||"ordered-list-item"===g))return c(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}));var f,p,g=t.getAnchorOffset(),d=i.getCharacterList(),h=o(),y=i instanceof r,m=i.merge({text:b.slice(0,g),characterList:d.slice(0,g)}),b=m.merge({key:h,text:b.slice(g),characterList:d.slice(g),data:u()}),v=(d=v.toSeq().takeUntil((function(e){return e===i})),g=v.toSeq().skipUntil((function(e){return e===i})).rest(),d.concat([[n,m],[h,b]],g).toOrderedMap());return y&&(i.getChildKeys().isEmpty()||a(!1),f=m,p=b,v=v.withMutations((function(e){var t=f.getKey(),n=p.getKey();l(f.getParentKey(),e,(function(e){var r,o=(r=e.getChildKeys()).indexOf(t)+1;return(r=r.toArray()).splice(o,0,n),e.merge({children:s(r)})})),l(f.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:n})})),l(t,e,(function(e){return e.merge({nextSibling:n})})),l(n,e,(function(e){return e.merge({prevSibling:t})}))}))),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:h,anchorOffset:0,focusKey:h,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";var r=["leaves"];function o(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){var r,o;r=e,o=n[t=t],t in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(){return!0}var c=n(18),s=n(46),u=(n=n(0)).List,l=n.Repeat,f=(n=n.Record)({start:null,end:null}),p=n({start:null,end:null,decoratorKey:null,leaves:null});function g(e,t){return e===t}e.exports={generate:function(e,t,n){var r=t.getLength();if(!r)return u.of(new p({start:0,end:0,decoratorKey:null,leaves:u.of(new f({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):u(l(null,r)),s=t.getCharacterList();return c(i,g,a,(function(e,t){var n,r;o.push(new p({start:e,end:t,decoratorKey:i.get(e),leaves:(t=s.slice(e,t).toList(),n=e,r=[],t=t.map((function(e){return e.getStyle()})).toList(),c(t,g,a,(function(e,t){r.push(new f({start:e+n,end:t+n}))})),u(r))}))})),u(o)},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,r);return new p(i(i({},e),{},{leaves:null!=t?u(Array.isArray(t)?t:s(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(94),i=n(0),a=n(4),c=i.OrderedMap;e.exports={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=(e=e.getBlockMap()).valueSeq().map((function(e){return a(r).getDirection(e.getText())}));e=c(e.keySeq().zip(n));return null!=t&&i.is(t,e)?t:e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(33),i=n(24),a=n(1);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 r=n(7),o=n(45),i=n(0),a=n(1),c=i.OrderedMap,s=i.List,u=function(e,t,n){var r;!e||(r=t.get(e))&&t.set(e,n(r))};e.exports=function(e,t,n,i){"replace"===i&&a(!1);var l,f=n.getKey(),p=t.getKey(),g=(p===f&&a(!1),e.getBlockMap()),d=t instanceof r,h=[t],y=g.delete(p),m=(g=(d&&(h=[],y=g.withMutations((function(e){var n=t.getNextSiblingKey(),r=o(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===p})).takeWhile((function(e){var t=e.getKey(),o=t===p,i=n&&t!==n;e=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||i||e)})).forEach((function(t){h.push(t),e.delete(t.getKey())}))}))),y.toSeq().takeUntil((function(e){return e===n}))),y=y.toSeq().skipUntil((function(e){return e===n})).skip(1),h.map((function(e){return[e.getKey(),e]}))),b=c();return"before"===i?((l=e.getBlockBefore(f))&&l.getKey()===t.getKey()&&a(!1),b=g.concat([].concat(m,[[f,n]]),y).toOrderedMap()):"after"===i&&((l=e.getBlockAfter(f))&&l.getKey()===p&&a(!1),b=g.concat([[f,n]].concat(m),y).toOrderedMap()),e.merge({blockMap:function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),c=n.getKey(),l=t.getParentKey(),f=t.getNextSiblingKey(),p=t.getPrevSiblingKey(),g=n.getParentKey(),d=i?n.getNextSiblingKey():c,h=i?c:n.getPrevSiblingKey();return e.withMutations((function(e){u(l,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),u(p,e,(function(e){return e.merge({nextSibling:f})})),u(f,e,(function(e){return e.merge({prevSibling:p})})),u(d,e,(function(e){return e.merge({prevSibling:a})})),u(h,e,(function(e){return e.merge({nextSibling:a})})),u(g,e,(function(e){var t,n=(t=e.getChildKeys()).indexOf(c);n=i?n+1:0!==n?n-1:0;return(t=t.toArray()).splice(n,0,a),e.merge({children:s(t)})})),u(a,e,(function(e){return e.merge({nextSibling:d,prevSibling:h,parent:g})}))}))}(b,t,n,i,d),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:p,focusKey:p})})}},function(e,t,n){"use strict";var r=n(0).List;e.exports=function(){function e(e){var t,n;n=void 0,(t="_decorators")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){if(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0}(n,e,t)){for(var r=n,a=t,c=o+"."+i,s=e;s<a;s++)r[s]=c;i++}}),t)})),r(n)},t.getComponentForKey=function(e){return e=parseInt(e.split(".")[0],10),this._decorators[e].component},t.getPropsForKey=function(e){return e=parseInt(e.split(".")[0],10),this._decorators[e].props},e}()},function(e,t,n){"use strict";(function(t){var r=n(14);function o(){return(o=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 i(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){e.prototype=Object.create(t.prototype),function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e.prototype.constructor=e,t)}var l=n(34),f=n(49),p=n(98),g=n(106),d=n(123),h=n(126),y=n(162),m=n(164),b=n(61),v=n(2),S=n(8),w=n(37),x=n(29),O=n(5),k=n(13),C=n(9),E=n(77),_=n(30),D=n(11),K=n(1),T=n(19),A=n(4),M=O.isBrowser("IE"),B=!M,P={edit:h,composite:p,drag:d,cut:null,render:null},j=!1,L=function(e){function t(){return e.apply(this,arguments)||this}u(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}(S.Component);O=function(e){function n(t){var n=e.call(this,t)||this;return s(c(n),"_blockSelectEvents",void 0),s(c(n),"_clipboard",void 0),s(c(n),"_handler",void 0),s(c(n),"_dragCount",void 0),s(c(n),"_internalDrag",void 0),s(c(n),"_editorKey",void 0),s(c(n),"_placeholderAccessibilityID",void 0),s(c(n),"_latestEditorState",void 0),s(c(n),"_latestCommittedEditorState",void 0),s(c(n),"_pendingStateFromBeforeInput",void 0),s(c(n),"_onBeforeInput",void 0),s(c(n),"_onBlur",void 0),s(c(n),"_onCharacterData",void 0),s(c(n),"_onCompositionEnd",void 0),s(c(n),"_onCompositionStart",void 0),s(c(n),"_onCopy",void 0),s(c(n),"_onCut",void 0),s(c(n),"_onDragEnd",void 0),s(c(n),"_onDragOver",void 0),s(c(n),"_onDragStart",void 0),s(c(n),"_onDrop",void 0),s(c(n),"_onInput",void 0),s(c(n),"_onFocus",void 0),s(c(n),"_onKeyDown",void 0),s(c(n),"_onKeyPress",void 0),s(c(n),"_onKeyUp",void 0),s(c(n),"_onMouseDown",void 0),s(c(n),"_onMouseUp",void 0),s(c(n),"_onPaste",void 0),s(c(n),"_onSelect",void 0),s(c(n),"editor",void 0),s(c(n),"editorContainer",void 0),s(c(n),"focus",void 0),s(c(n),"blur",void 0),s(c(n),"setMode",void 0),s(c(n),"exitCurrentMode",void 0),s(c(n),"restoreEditorDOM",void 0),s(c(n),"setClipboard",void 0),s(c(n),"getClipboard",void 0),s(c(n),"getEditorKey",void 0),s(c(n),"update",void 0),s(c(n),"onDragEnter",void 0),s(c(n),"onDragLeave",void 0),s(c(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),s(c(n),"focus",(function(e){var t,r,o=n.props.editorState,i=o.getSelection().getHasFocus(),a=n.editor;a&&(t=x.getScrollParent(a),r=(e=e||_(t)).x,e=e.y,T(a)||K(!1),a.focus(),t===window?window.scrollTo(r,e):w.setTop(t,e),i||n.update(v.forceSelection(o,o.getSelection())))})),s(c(n),"blur",(function(){var e=n.editor;e&&(T(e)||K(!1),e.blur())})),s(c(n),"setMode",(function(e){var t=(o=n.props).onPaste,r=o.onCut,o=o.onCopy,i=a({},P.edit);t&&(i.onPaste=t),r&&(i.onCut=r),o&&(i.onCopy=o),t=a(a({},P),{},{edit:i});n._handler=t[e]})),s(c(n),"exitCurrentMode",(function(){n.setMode("edit")})),s(c(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),s(c(n),"setClipboard",(function(e){n._clipboard=e})),s(c(n),"getClipboard",(function(){return n._clipboard})),s(c(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),s(c(n),"onDragEnter",(function(){n._dragCount++})),s(c(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||C(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}u(n,e);var r=n.prototype;return r._buildHandler=function(e){var t=this;return function(n){var r;t.props.readOnly||(r=t._handler&&t._handler[e])&&(y?y((function(){return r(t,n)})):r(t,n))}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){var e;return this._showPlaceholder()?(e={text:A(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID},S.createElement(m,e)):null},r._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},r.render=function(){var e=(p=this.props).blockRenderMap,t=p.blockRendererFn,n=p.blockStyleFn,r=p.customStyleFn,i=p.customStyleMap,c=p.editorState,s=p.preventScroll,u=p.readOnly,l=p.textAlignment,p=p.textDirectionality,d=(l=k({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===l,"DraftEditor/alignRight":"right"===l,"DraftEditor/alignCenter":"center"===l}),this.props.role||"textbox"),h="combobox"===d?!!this.props.ariaExpanded:null;e={blockRenderMap:e,blockRendererFn:t,blockStyleFn:n,customStyleMap:a(a({},f),i),customStyleFn:r,editorKey:this._editorKey,editorState:c,preventScroll:s,textDirectionality:p};return S.createElement("div",{className:l},this._renderPlaceholder(),S.createElement("div",{className:k("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},S.createElement("div",{"aria-activedescendant":u?null:this.props.ariaActiveDescendantID,"aria-autocomplete":u?null:this.props.ariaAutoComplete,"aria-controls":u?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":u?null:h,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":u?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:k({notranslate:!u,"public/DraftEditor/content":!0}),contentEditable:!u,"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:u?null:d,spellCheck:B&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},S.createElement(L,{editor:this,editorState:c}),S.createElement(g,o({},e,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!j&&D("draft_ods_enabled")&&(j=!0,b.initODS()),this.setMode("edit"),M&&(this.editor?this.editor.ownerDocument:t).execCommand("AutoUrlDetect",!1,!1)},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},n}(S.Component);s(O,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:l,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:E,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),e.exports=O}).call(this,n(25))},function(e,t,n){"use strict";var r=n(99),o=n(3),i=n(10),a=n(2),c=n(28),s=n(5),u=n(52),l=n(54),f=n(55),p=n(35),g=n(4),d=s.isBrowser("IE"),h=!1,y=!1,m=null,b={onCompositionStart:function(e){y=!0,e=e,m||(m=new r(l(e))).start()},onCompositionEnd:function(e){y=h=!1,setTimeout((function(){h||b.resolveComposition(e)}),20)},onSelect:u,onKeyDown:function(e,t){if(!y)return b.resolveComposition(e),void e._onKeyDown(t);t.which!==c.RIGHT&&t.which!==c.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===c.RETURN&&t.preventDefault()},resolveComposition:function(e){var t,n,r;y||(r=g(m).stopAndFlushMutations(),h=!(m=null),t=a.set(e._latestEditorState,{inCompositionMode:!1}),e.exitCurrentMode(),r.size?(n=t.getCurrentContent(),r.forEach((function(e,r){var c=(r=i.decode(r)).blockKey,s=r.decoratorKey,u=(r=r.leafKey,r=(s=t.getBlockTree(c).getIn([s,"leaves",r])).start,s=s.end,s=t.getSelection().merge({anchorKey:c,focusKey:c,anchorOffset:r,focusOffset:s,isBackward:!1}),p(n,s));c=n.getBlockForKey(c).getInlineStyleAt(r);n=o.replaceText(n,s,e,c,u),t=a.set(t,{currentContent:n})})),r=f(t,l(e)).selectionState,e.restoreEditorDOM(),r=d?a.forceSelection(t,r):a.acceptSelection(t,r),e.update(a.push(r,n,"insert-characters"))):e.update(t))}};e.exports=b},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(5),i=n(26),a=n(51),c=n(0),s=n(1),u=n(4),l=c.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))).MutationObserver&&!p?this.observer=new e.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||s(!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=((e=this.observer)?(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 r="Unknown",o={"Mac OS":"Mac OS X"},i=(i=(n=(new(n=n(101))).getResult()).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(e,t,n){var r;!function(o,i){"use strict";function a(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t}function c(e,t){return typeof e===m&&-1!==z(t).indexOf(z(e))}function s(e,t){if(typeof e===m)return e=e.replace(/^\s\s*/,g).replace(/\s\s*$/,g),typeof t==h?e:e.substring(0,255)}function u(e,t){for(var n,r,o,a,c,s=0;s<t.length&&!a;){for(var u=t[s],l=t[s+1],f=n=0;f<u.length&&!a;)if(a=u[f++].exec(e))for(r=0;r<l.length;r++)c=a[++n],typeof(o=l[r])===y&&0<o.length?2===o.length?typeof o[1]==d?this[o[0]]=o[1].call(this,c):this[o[0]]=o[1]:3===o.length?typeof o[1]!==d||o[1].exec&&o[1].test?this[o[0]]=c?c.replace(o[1],o[2]):i:this[o[0]]=c?o[1].call(this,c,o[2]):i:4===o.length&&(this[o[0]]=c?o[3].call(this,c.replace(o[1],o[2])):i):this[o]=c||i;s+=2}}function l(e,t){for(var n in t)if(typeof t[n]===y&&0<t[n].length){for(var r=0;r<t[n].length;r++)if(c(t[n][r],e))return"?"===n?i:n}else if(c(t[n],e))return"?"===n?i:n;return e}function f(e,t){if(typeof e===y&&(t=e,e=i),!(this instanceof f))return new f(e,t).getResult();var n=e||(typeof o!=h&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:g),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}(V,t):V;return this.getBrowser=function(){var e,t={};return t[v]=i,t[x]=i,u.call(t,n,r.browser),t.major=typeof(e=t.version)===m?e.replace(/[^\d\.]/g,g).split(".")[0]:i,t},this.getCPU=function(){var e={};return e[O]=i,u.call(e,n,r.cpu),e},this.getDevice=function(){var e={};return e[w]=i,e[b]=i,e[S]=i,u.call(e,n,r.device),e},this.getEngine=function(){var e={};return e[v]=i,e[x]=i,u.call(e,n,r.engine),e},this.getOS=function(){var e={};return e[v]=i,e[x]=i,u.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===m&&255<e.length?s(e,255):e,this},this.setUA(n),this}var p,g="",d="function",h="undefined",y="object",m="string",b="model",v="name",S="type",w="vendor",x="version",O="architecture",k="console",C="mobile",E="tablet",_="smarttv",D="wearable",K="embedded",T="Amazon",A="Apple",M="BlackBerry",B="Browser",P="Chrome",j="Firefox",L="Google",R="Microsoft",F="Motorola",N="Opera",I="Samsung",U="Sony",H="Zebra",W="Facebook",z=function(e){return e.toLowerCase()},q={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"},V={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[x,[v,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[x,[v,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[v,x],[/opios[\/ ]+([\w\.]+)/i],[x,[v,N+" Mini"]],[/\bopr\/([\w\.]+)/i],[x,[v,N]],[/(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],[v,x],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[x,[v,"UC"+B]],[/\bqbcore\/([\w\.]+)/i],[x,[v,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[x,[v,"WeChat"]],[/konqueror\/([\w\.]+)/i],[x,[v,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[x,[v,"IE"]],[/yabrowser\/([\w\.]+)/i],[x,[v,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[v,/(.+)/,"$1 Secure "+B],x],[/\bfocus\/([\w\.]+)/i],[x,[v,j+" Focus"]],[/\bopt\/([\w\.]+)/i],[x,[v,N+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[x,[v,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[x,[v,"Dolphin"]],[/coast\/([\w\.]+)/i],[x,[v,N+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[x,[v,"MIUI "+B]],[/fxios\/([-\w\.]+)/i],[x,[v,j]],[/\bqihu|(qi?ho?o?|360)browser/i],[[v,"360 "+B]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[v,/(.+)/,"$1 "+B],x],[/(comodo_dragon)\/([\w\.]+)/i],[[v,/_/g," "],x],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[v,x],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[v],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[v,W],x],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[v,x],[/\bgsa\/([\w\.]+) .*safari\//i],[x,[v,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[x,[v,P+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[v,P+" WebView"],x],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[x,[v,"Android "+B]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[v,x],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[x,[v,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[x,v],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[v,[x,l,{"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],[v,x],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[v,"Netscape"],x],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[x,[v,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],[v,x]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[O,"amd64"]],[/(ia32(?=;))/i],[[O,z]],[/((?:i[346]|x)86)[;\)]/i],[[O,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[O,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[O,"armhf"]],[/windows (ce|mobile); ppc;/i],[[O,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[O,/ower/,g,z]],[/(sun4\w)[;\)]/i],[[O,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[O,z]]],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],[b,[w,I],[S,E]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[b,[w,I],[S,C]],[/\((ip(?:hone|od)[\w ]*);/i],[b,[w,A],[S,C]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[b,[w,A],[S,E]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[b,[w,"Huawei"],[S,E]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[b,[w,"Huawei"],[S,C]],[/\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],[[b,/_/g," "],[w,"Xiaomi"],[S,C]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[b,/_/g," "],[w,"Xiaomi"],[S,E]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[b,[w,"OPPO"],[S,C]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[b,[w,"Vivo"],[S,C]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[b,[w,"Realme"],[S,C]],[/\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],[b,[w,F],[S,C]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[b,[w,F],[S,E]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[b,[w,"LG"],[S,E]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[b,[w,"LG"],[S,C]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[b,[w,"Lenovo"],[S,E]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[b,/_/g," "],[w,"Nokia"],[S,C]],[/(pixel c)\b/i],[b,[w,L],[S,E]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[b,[w,L],[S,C]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[b,[w,U],[S,C]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[b,"Xperia Tablet"],[w,U],[S,E]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[b,[w,"OnePlus"],[S,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[b,[w,T],[S,E]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[b,/(.+)/g,"Fire Phone $1"],[w,T],[S,C]],[/(playbook);[-\w\),; ]+(rim)/i],[b,w,[S,E]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[b,[w,M],[S,C]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[b,[w,"ASUS"],[S,E]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[b,[w,"ASUS"],[S,C]],[/(nexus 9)/i],[b,[w,"HTC"],[S,E]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[w,[b,/_/g," "],[S,C]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[b,[w,"Acer"],[S,E]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[b,[w,"Meizu"],[S,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[b,[w,"Sharp"],[S,C]],[/(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],[w,b,[S,C]],[/(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],[w,b,[S,E]],[/(surface duo)/i],[b,[w,R],[S,E]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[b,[w,"Fairphone"],[S,C]],[/(u304aa)/i],[b,[w,"AT&T"],[S,C]],[/\bsie-(\w*)/i],[b,[w,"Siemens"],[S,C]],[/\b(rct\w+) b/i],[b,[w,"RCA"],[S,E]],[/\b(venue[\d ]{2,7}) b/i],[b,[w,"Dell"],[S,E]],[/\b(q(?:mv|ta)\w+) b/i],[b,[w,"Verizon"],[S,E]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[b,[w,"Barnes & Noble"],[S,E]],[/\b(tm\d{3}\w+) b/i],[b,[w,"NuVision"],[S,E]],[/\b(k88) b/i],[b,[w,"ZTE"],[S,E]],[/\b(nx\d{3}j) b/i],[b,[w,"ZTE"],[S,C]],[/\b(gen\d{3}) b.+49h/i],[b,[w,"Swiss"],[S,C]],[/\b(zur\d{3}) b/i],[b,[w,"Swiss"],[S,E]],[/\b((zeki)?tb.*\b) b/i],[b,[w,"Zeki"],[S,E]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[w,"Dragon Touch"],b,[S,E]],[/\b(ns-?\w{0,9}) b/i],[b,[w,"Insignia"],[S,E]],[/\b((nxa|next)-?\w{0,9}) b/i],[b,[w,"NextBook"],[S,E]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[w,"Voice"],b,[S,C]],[/\b(lvtel\-)?(v1[12]) b/i],[[w,"LvTel"],b,[S,C]],[/\b(ph-1) /i],[b,[w,"Essential"],[S,C]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[b,[w,"Envizen"],[S,E]],[/\b(trio[-\w\. ]+) b/i],[b,[w,"MachSpeed"],[S,E]],[/\btu_(1491) b/i],[b,[w,"Rotor"],[S,E]],[/(shield[\w ]+) b/i],[b,[w,"Nvidia"],[S,E]],[/(sprint) (\w+)/i],[w,b,[S,C]],[/(kin\.[onetw]{3})/i],[[b,/\./g," "],[w,R],[S,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[b,[w,H],[S,E]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[b,[w,H],[S,C]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[w,b,[S,k]],[/droid.+; (shield) bui/i],[b,[w,"Nvidia"],[S,k]],[/(playstation [345portablevi]+)/i],[b,[w,U],[S,k]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[b,[w,R],[S,k]],[/smart-tv.+(samsung)/i],[w,[S,_]],[/hbbtv.+maple;(\d+)/i],[[b,/^/,"SmartTV"],[w,I],[S,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[w,"LG"],[S,_]],[/(apple) ?tv/i],[w,[b,A+" TV"],[S,_]],[/crkey/i],[[b,P+"cast"],[w,L],[S,_]],[/droid.+aft(\w)( bui|\))/i],[b,[w,T],[S,_]],[/\(dtv[\);].+(aquos)/i],[b,[w,"Sharp"],[S,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[w,s],[b,s],[S,_]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[S,_]],[/((pebble))app/i],[w,b,[S,D]],[/droid.+; (glass) \d/i],[b,[w,L],[S,D]],[/droid.+; (wt63?0{2,3})\)/i],[b,[w,H],[S,D]],[/(quest( 2)?)/i],[b,[w,W],[S,D]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[w,[S,K]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[b,[S,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[b,[S,E]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[S,E]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[S,C]],[/(android[-\w\. ]{0,9});.+buil/i],[b,[w,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[x,[v,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[x,[v,"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],[v,x],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[x,v]],os:[[/microsoft (windows) (vista|xp)/i],[v,x],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[v,[x,l,q]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,"Windows"],[x,l,q]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[x,/_/g,"."],[v,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[v,"Mac OS"],[x,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[x,v],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[v,x],[/\(bb(10);/i],[x,[v,M]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[x,[v,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[x,[v,j+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[x,[v,"webOS"]],[/crkey\/([\d\.]+)/i],[x,[v,P+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[v,"Chromium OS"],x],[/(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],[v,x],[/(sunos) ?([\w\.\d]*)/i],[[v,"Solaris"],x],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[v,x]]},G=(f.VERSION="0.7.31",f.BROWSER=a([v,x,"major"]),f.CPU=a([O]),f.DEVICE=a([b,w,S,k,C,_,E,D,K]),f.ENGINE=f.OS=a([v,x]),typeof t!=h?(t=typeof e!=h&&e.exports?e.exports=f:t).UAParser=f:"function"===d&&n(102)?(r=function(){return f}.call(t,n,t,e))===i||(e.exports=r):typeof o!=h&&(o.UAParser=f),typeof o!=h&&(o.jQuery||o.Zepto));G&&!G.ua&&(p=new f,G.ua=p.getResult(),G.ua.get=function(){return p.getUA()},G.ua.set=function(e){p.setUA(e);var t,n=p.getResult();for(t in n)G.ua[t]=n[t]})}("object"==typeof window?window:this)},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";var r=n(1),o=/\./,i=/\|\|/,a=/\s+\-\s+/,c=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,s=/^(\d*)(.*)/;function u(e,t){if(""===(e=e.trim()))return!0;var n=t.split(o),r=(e=(t=p(e)).modifier,t.rangeComponents);switch(e){case"<":return l(n,r);case"<=":return-1===(i=m(i=n,r))||0===i;case">=":return f(n,r);case">":return 1===m(n,r);case"~":case"~>":var i=n,a=r,c=a.slice(),s=(1<(a=a.slice()).length&&a.pop(),a.length-1),u=parseInt(a[s],10);return g(u)&&(a[s]=u+1+""),f(i,c)&&l(i,a);default:return 0===m(n,r)}}function l(e,t){return-1===m(e,t)}function f(e,t){return 1===(e=m(e,t))||0===e}function p(e){var t=(e=e.split(o))[0].match(c);return t||r(!1),{modifier:t[1],rangeComponents:[t[2]].concat(e.slice(1))}}function g(e){return!isNaN(e)&&isFinite(e)}function d(e){return!p(e).modifier}function h(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function y(e,t){return typeof e!=typeof t&&r(!1),t<e?1:e<t?-1:0}function m(e,t){for(var n,r,o,i=(e=function(e,t){h(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 h(t,e.length),[e,t]}(e,t))[0],a=e[1],c=0;c<a.length;c++){n=i[c],r=a[c],o=u=o=u=void 0,u=n.match(s)[1],o=r.match(s)[1],u=parseInt(u,10),o=parseInt(o,10);var u=g(u)&&g(o)&&u!==o?y(u,o):y(n,r);if(u)return u}return 0}var b={contains:function(e,t){return function(e,t){var n,o=e.split(i);return 1<o.length?o.some((function(e){return b.contains(e,t)})):(o=e=o[0].trim(),e=t,0<(o=o.split(a)).length&&o.length<=2||r(!1),1===o.length?u(o[0],e):(n=o[0],o=o[1],d(n)&&d(o)||r(!1),u(">="+n,e)&&u("<="+o,e)))}(e.trim(),t.trim())}};e.exports=b},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!e)return null;var o,i={};for(o in e)r.call(e,o)&&(i[o]=t.call(n,e[o],o,e));return i}},function(e,t,n){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){"use strict";var r=n(11)("draft_tree_data_support");e.exports=n(r?107:121)},function(e,t,n){"use strict";var r=n(14);function o(){return(o=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 i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var a=n(108),c=n(10),s=n(8),u=n(4);n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(r=n).prototype=Object.create(t.prototype),i(r.prototype.constructor=r,t);var r=n.prototype;return r.shouldComponentUpdate=function(e){var t=this.props.editorState;e=e.editorState;if(t.getDirectionMap()!==e.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==e.getSelection().getHasFocus())return!0;var n=e.getNativelyRenderedContent(),r=t.isInCompositionMode(),o=e.isInCompositionMode();if(t===e||null!==n&&e.getCurrentContent()===n||r&&o)return!1;n=t.getCurrentContent();var i=e.getCurrentContent(),a=(t=t.getDecorator(),e.getDecorator());return r!==o||n!==i||t!==a||e.mustForceSelection()},r.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,i=e.customStyleMap,l=e.customStyleFn,f=e.editorState,p=e.editorKey,g=e.textDirectionality,d=f.getCurrentContent(),h=f.getSelection(),y=f.mustForceSelection(),m=f.getDecorator(),b=u(f.getDirectionMap()),v=[],S=d.getBlocksAsArray()[0];S;){var w=S.getKey(),x={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,contentState:d,customStyleFn:l,customStyleMap:i,decorator:m,editorKey:p,editorState:f,forceSelection:y,selection:h,block:S,direction:g||b.get(w),tree:f.getBlockTree(w)},O=(t.get(S.getType())||t.get("unstyled")).wrapper;S=(x=(v.push({block:s.createElement(a,o({key:w},x)),wrapperTemplate:O,key:w,offsetKey:c.encode(w,0,0)}),S.getNextSiblingKey()))?d.getBlockForKey(x):null}for(var k=[],C=0;C<v.length;){var E=v[C];if(E.wrapperTemplate){for(var _=[];_.push(v[C].block),++C<v.length&&v[C].wrapperTemplate===E.wrapperTemplate;);var D=s.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},_);k.push(D)}else k.push(E.block),C++}return s.createElement("div",{"data-contents":"true"},k)},n}(s.Component);e.exports=n},function(e,t,n){"use strict";var r=n(14);function o(){return(o=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 i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function l(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 f(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}function p(e,t){var n=(e=t.get(e.getType())||t.get("unstyled")).wrapper;return{Element:e.element||t.get("unstyled").element,wrapperTemplate:n}}function g(e,t){return(t=t(e))?{CustomComponent:t.component,customProps:t.props,customEditable:t.editable}:{}}function d(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),void 0!==o.customEditable?c(c({},t),{},{contentEditable:o.customEditable,suppressContentEditableWarning:!0}):t}var h=n(109),y=n(10),m=n(8),b=n(37),v=n(29),S=n(63),w=n(30),x=n(64),O=n(0),k=n(1),C=n(19);O.List,n=function(e){var t;function n(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return s(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",m.createRef()),t}t=e,(r=n).prototype=Object.create(t.prototype),i(r.prototype.constructor=r,t);var r=n.prototype;return r.shouldComponentUpdate=function(e){var t=(r=this.props).block,n=r.direction,r=r.tree,o=!t.getChildKeys().isEmpty();t=t!==e.block||r!==e.tree||n!==e.direction||f(e.selection,e.block.getKey())&&e.forceSelection;return o||t},r.componentDidMount=function(){var e,t,n=this.props.selection,r=n.getEndKey();!n.getHasFocus()||r!==this.props.block.getKey()||(n=this.wrapperRef.current)&&(r=v.getScrollParent(n),e=w(r),r===window?0<(t=(t=S(n)).y+t.height-x().height)&&window.scrollTo(e.x,e.y+t+10):(C(n)||k(!1),0<(t=n.offsetHeight+n.offsetTop-(r.offsetHeight+e.y))&&b.setTop(r,b.getTop(r)+t+10)))},r.render=function(){var e=this,t=(C=this.props).block,r=C.blockRenderMap,i=C.blockRendererFn,a=C.blockStyleFn,s=C.contentState,l=C.decorator,b=C.editorKey,v=C.editorState,S=C.customStyleFn,w=C.customStyleMap,x=C.direction,O=C.forceSelection,k=C.selection,C=C.tree,E=null,_=(t.children.size&&(E=t.children.reduce((function(t,o){var l=y.encode(o,0,0),f=s.getBlockForKey(o),h=g(f,i),S=h.CustomComponent||n,w=(x=p(f,r)).Element,x=x.wrapperTemplate,O=d(f,b,l,a,h,null);o=c(c({},e.props),{},{tree:v.getBlockTree(o),blockProps:h.customProps,offsetKey:l,block:f});if(t.push(m.createElement(w,O,m.createElement(S,o))),!x||(h=s,(O=(l=f).getNextSiblingKey())&&h.getBlockForKey(O).getType()===l.getType()))return t;S=x;var k,C=w,E=[],_=u((o=t).reverse());try{for(_.s();!(k=_.n()).done;){var D=k.value;if(D.type!==C)break;E.push(D)}}catch(t){_.e(t)}finally{_.f()}return o.splice(o.indexOf(E[0]),E.length+1),h=(f=E.reverse())[0].key,o.push(m.cloneElement(S,{key:"".concat(h,"-wrap"),"data-offset-key":y.encode(h,0,0)},f)),t}),[])),t.getKey()),D=y.encode(_,0,0),K=g(t,i),T=null!=(T=K.CustomComponent)?m.createElement(T,o({},this.props,{tree:v.getBlockTree(_),blockProps:K.customProps,offsetKey:D,block:t})):m.createElement(h,{block:t,children:E,contentState:s,customStyleFn:S,customStyleMap:w,decorator:l,direction:x,forceSelection:O,hasSelection:f(k,_),selection:k,tree:C});return t.getParentKey()?T:(E=p(t,r).Element,S=d(t,b,D,a,K,this.wrapperRef),m.createElement(E,S,T))},n}(m.Component);e.exports=n},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var o=n(110),i=n(59),a=n(10),c=n(0),s=n(8),u=n(13);c.List,n=function(e){var t,n;function c(){return e.apply(this,arguments)||this}return n=e,(t=c).prototype=Object.create(n.prototype),r(t.prototype.constructor=t,n),c.prototype.render=function(){var e=(d=this.props).block,t=d.contentState,n=d.customStyleFn,r=d.customStyleMap,c=d.decorator,l=d.direction,f=d.forceSelection,p=d.hasSelection,g=d.selection,d=d.tree,h=e.getKey(),y=e.getText(),m=d.size-1;d=this.props.children||d.map((function(u,d){var b=u.get("decoratorKey"),v=(S=u.get("leaves")).size-1,S=S.map((function(t,o){var c=a.encode(h,d,o),u=t.get("start");t=t.get("end");return s.createElement(i,{key:c,offsetKey:c,block:e,start:u,selection:p?g:null,forceSelection:f,text:y.slice(u,t),styleSet:e.getInlineStyleAt(u),customStyleMap:r,customStyleFn:n,isLast:b===m&&o===v})})).toArray();return b&&c?s.createElement(o,{block:e,children:S,contentState:t,decorator:c,decoratorKey:b,direction:l,leafSet:u,text:y,key:d}):S})).toArray();return s.createElement("div",{"data-offset-key":a.encode(h,0,0),className:u({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===l,"public/DraftStyleDefault/rtl":"RTL"===l})},d)},c}(s.Component);e.exports=n},function(e,t,n){"use strict";var r=n(14);function o(){return(o=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 i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var a=n(10),c=n(8),s=n(33),u=n(24);n=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),i(t.prototype.constructor=t,n),r.prototype.render=function(){var e=(p=this.props).block,t=p.children,n=p.contentState,r=p.decorator,i=p.decoratorKey,l=p.direction,f=p.leafSet,p=p.text,g=e.getKey(),d=f.get("leaves"),h=r.getComponentForKey(i);r=r.getPropsForKey(i),g=a.encode(g,parseInt(i,10),0),i=p.slice(d.first().get("start"),d.last().get("end")),p=u.getHTMLDirIfDifferent(s.getDirection(i),l);return c.createElement(h,o({},r,{contentState:n,decoratedText:i,dir:p,key:g,entityKey:e.getEntityAt(f.get("start")),offsetKey:g}),t)},r}(c.Component);e.exports=n},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(8),c=n(5),s=n(1),u=n(15),l=c.isBrowser("IE <= 11");n=function(e){var t;function n(t){return i(r(t=e.call(this,t)||this),"_forceFlag",void 0),i(r(t),"_node",void 0),t._forceFlag=!1,t}t=e,(c=n).prototype=Object.create(t.prototype),o(c.prototype.constructor=c,t);var c=n.prototype;return c.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;return u(t)||s(!1),n?(n=t,!(l?"\n"===n.textContent:"BR"===n.tagName)):t.textContent!==e.children},c.componentDidMount=function(){this._forceFlag=!this._forceFlag},c.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},c.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},l?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},l?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 r=n(61),o=n(53),i=n(5),a=n(36),c=n(62),s=n(27),u=n(1),l=n(15),f=i.isBrowser("IE");function p(e,t){return e?(e=function e(t,n){var r,o=void 0!==n?n(t):[];if(t.nodeType===Node.TEXT_NODE)return r=t.textContent.length,s(t).createTextNode("[text "+r+(o.length?" | "+o.join(", "):"")+"]");var i=t.cloneNode();1===i.nodeType&&o.length&&i.setAttribute("data-labels",o.join(", "));for(var a=t.childNodes,c=0;c<a.length;c++)i.appendChild(e(a[c],n));return i}(e,t)).nodeType===Node.TEXT_NODE?e.textContent:(l(e)||u(!1),e.outerHTML):"[empty]"}function g(e,t){for(var n=e,r=n;n;){if(l(n)&&r.hasAttribute("contenteditable"))return p(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function d(e){return(null===e.nodeValue?e.childNodes:e.nodeValue).length}function h(e,t,n,r){var i=c();if(e.extend&&null!=t&&a(i,t)){n>d(t)&&o.logSelectionStateFailure({anonymizedDom:g(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var s=t===e.focusNode;try{0<e.rangeCount&&e.extend&&e.extend(t,n)}catch(a){throw o.logSelectionStateFailure({anonymizedDom:g(t,(function(t){var n=[];return t===i&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:s,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else t&&0<e.rangeCount&&((s=e.getRangeAt(0)).setEnd(t,n),e.addRange(s.cloneRange()))}function y(e,t,n,i){var a=s(t).createRange();if(n>d(t)&&(o.logSelectionStateFailure({anonymizedDom:g(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.handleExtensionCausedError()),a.setStart(t,n),f)try{e.addRange(a)}catch(e){}else e.addRange(a)}e.exports={setDraftEditorSelection:function(e,t,n,r,o){var i=s(t);if(a(i.documentElement,t)){i=i.defaultView.getSelection();var c=e.getAnchorKey(),u=e.getAnchorOffset(),l=e.getFocusKey(),f=e.getFocusOffset(),p=e.getIsBackward(),g=(!i.extend&&p&&(g=c,d=u,c=l,u=f,l=g,f=d,p=!1),c===n&&r<=u&&u<=o),d=l===n&&r<=f&&f<=o;if(g&&d)return i.removeAllRanges(),y(i,t,u-r,e),void h(i,t,f-r,e);p?(d&&(i.removeAllRanges(),y(i,t,f-r,e)),g&&(c=i.focusNode,l=i.focusOffset,i.removeAllRanges(),y(i,t,u-r,e),h(i,c,l,e))):(g&&(i.removeAllRanges(),y(i,t,u-r,e)),d&&h(i,t,f-r,e))}},addFocusToSelection:h}},function(e,t,n){"use strict";var r=n(114);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(116),o=n(117);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(36);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(14);function o(){return(o=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 i(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){var r,o;r=e,o=n[t=t],t in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=n(65),u=n(10),l=n(8),f=n(13),p=n(122),g=n(4);n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(r=n).prototype=Object.create(t.prototype),c(r.prototype.constructor=r,t);var r=n.prototype;return r.shouldComponentUpdate=function(e){var t=this.props.editorState;e=e.editorState;if(t.getDirectionMap()!==e.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==e.getSelection().getHasFocus())return!0;var n=e.getNativelyRenderedContent(),r=t.isInCompositionMode(),o=e.isInCompositionMode();if(t===e||null!==n&&e.getCurrentContent()===n||r&&o)return!1;n=t.getCurrentContent();var i=e.getCurrentContent(),a=(t=t.getDecorator(),e.getDecorator());return r!==o||n!==i||t!==a||e.mustForceSelection()},r.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,i=e.customStyleMap,c=e.customStyleFn,d=e.editorState,h=e.editorKey,y=e.preventScroll,m=e.textDirectionality,b=d.getCurrentContent(),v=d.getSelection(),S=d.mustForceSelection(),w=d.getDecorator(),x=g(d.getDirectionMap()),O=b.getBlocksAsArray(),k=[],C=null,E=null,_=0;_<O.length;_++){var D=O[_],K=D.getKey(),T=D.getType(),A=void 0,M=void 0,B=void 0,P=((P=n(D))&&(A=P.component,M=P.props,B=P.editable),m||x.get(K)),j=u.encode(K,0,0),L=(M={contentState:b,block:D,blockProps:M,blockStyleFn:r,customStyleMap:i,customStyleFn:c,decorator:w,direction:P,forceSelection:S,offsetKey:j,preventScroll:y,selection:v,tree:d.getBlockTree(K)},(R=t.get(T)||t.get("unstyled")).wrapper),R=R.element||t.get("unstyled").element,F=D.getDepth(),N="";T=(r&&(N=r(D)),"li"===R&&(N=p(N,f({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===T,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===T,"public/DraftStyleDefault/reset":E!==L||null===C||C<F,"public/DraftStyleDefault/depth0":0===F,"public/DraftStyleDefault/depth1":1===F,"public/DraftStyleDefault/depth2":2===F,"public/DraftStyleDefault/depth3":3===F,"public/DraftStyleDefault/depth4":4<=F,"public/DraftStyleDefault/listLTR":"LTR"===P,"public/DraftStyleDefault/listRTL":"RTL"===P}))),A||s),F={className:N,"data-block":!0,"data-editor":h,"data-offset-key":j,key:K},P=(void 0!==B&&(F=a(a({},F),{},{contentEditable:B,suppressContentEditableWarning:!0})),l.createElement(R,F,l.createElement(T,o({},M,{key:K}))));k.push({block:P,wrapperTemplate:L,key:K,offsetKey:j}),C=L?D.getDepth():null,E=L}for(var I=[],U=0;U<k.length;){var H=k[U];if(H.wrapperTemplate){for(var W=[];W.push(k[U].block),++U<k.length&&k[U].wrapperTemplate===H.wrapperTemplate;);var z=l.cloneElement(H.wrapperTemplate,{key:H.key+"-wrap","data-offset-key":H.offsetKey},W);I.push(z)}else I.push(H.block),U++}return l.createElement("div",{"data-contents":"true"},I)},n}(l.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 r=n(66),o=n(3),i=n(2),a=n(26),c=n(27),s=n(68),u=n(57),l=n(51),f=n(31),p=n(4);function g(e){var t;e._internalDrag=!1,(e=e.editorContainer)&&(t=new MouseEvent("mouseup",{view:l(e),bubbles:!0,cancelable:!0}),e.dispatchEvent(t))}function d(e,t,n){return t=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle()),i.push(e,t,"insert-fragment")}e.exports={onDragEnd:function(e){e.exitCurrentMode(),g(e)},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),l=e._latestEditorState,h=function(e,t){var n=null,r=null,o=c(e.currentTarget);if("function"==typeof o.caretRangeFromPoint)n=(o=o.caretRangeFromPoint(e.x,e.y)).startContainer,r=o.startOffset;else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}return n=p(n),r=p(r),o=p(a(n)),u(t,o,r,o,r)}(t.nativeEvent,l);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=h){if(0<(t=n.getFiles()).length)return e.props.handleDroppedFiles&&f(e.props.handleDroppedFiles(h,t))?void 0:void s(t,(function(t){t&&e.update(d(l,h,t))}));t=e._internalDrag?"internal":"external",e.props.handleDrop&&f(e.props.handleDrop(h,n,t))||(e._internalDrag?e.update(function(e,t){return t=o.moveText(e.getCurrentContent(),e.getSelection(),t),i.push(e,t,"insert-fragment")}(l,h)):e.update(d(l,h,n.getText()))),g(e)}}}},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 r=n(1);e.exports=function(e){if(!(o=e)||"object"!=typeof o&&"function"!=typeof o||!("length"in o)||"setInterval"in o||"number"==typeof o.nodeType||!(Array.isArray(o)||"callee"in o||"item"in o))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)&&r(!1),"number"!=typeof n&&r(!1),0===n||n-1 in t||r(!1),"function"==typeof t.callee&&r(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(e){}for(var o,i=Array(n),a=0;a<n;a++)i[a]=t[a];return i}},function(e,t,n){"use strict";var r=n(5),o=n(127),i=n(132),a=n(133),c=n(134),s=n(135),u=n(137),l=n(138),f=n(139),p=n(140),g=n(141),d=n(155),h=(n=n(52),r.isBrowser("Chrome"));r=r.isBrowser("Firefox"),h=h||r?n:function(e){};e.exports={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:c,onCut:s,onDragOver:u,onDragStart:l,onFocus:f,onInput:p,onKeyDown:g,onPaste:d,onSelect:n,onMouseUp:h,onKeyUp:h}},function(e,t,n){"use strict";var r=n(3),o=n(2),i=n(5),a=n(35),c=n(31),s=n(128),u=n(4),l=n(129),f=i.isBrowser("Firefox");function p(e,t,n,i,a){return t=r.replaceText(e.getCurrentContent(),e.getSelection(),t,n,i),o.push(e,t,"insert-characters",a)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&c(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var i=(y=n.getSelection()).getStartOffset(),g=y.getAnchorKey();if(!y.isCollapsed())return t.preventDefault(),void e.update(p(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));var d,h,y=p(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),m=!1;if((m=m||s(e._latestCommittedEditorState))||(h=n.getBlockTree(g),d=y.getBlockTree(g),m=h.size!==d.size||h.zip(d).some((function(e){var t=e[0],n=(e=e[1],t.get("start")),o=n+(i<=n?r.length:0),a=t.get("end"),c=a+(i<=a?r.length:0),s=e.get("start"),u=e.get("end"),l=e.get("decoratorKey");return t.get("decoratorKey")!==l||t.get("leaves").size!==e.get("leaves").size||o!==s||c!==u||null!=l&&u-s!=a-n}))),m||(h=r,m=f&&("'"==h||"/"==h)),m=m||u(y.getDirectionMap()).get(g)!==u(n.getDirectionMap()).get(g))return t.preventDefault(),y=o.set(y,{forceSelection:!0}),void e.update(y);y=o.set(y,{nativelyRenderedContent:y.getCurrentContent()}),e._pendingStateFromBeforeInput=y,l((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=(e=e.getBlockTree(n),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){return e=e.get("start"),r===e&&(o=!0)}))})),o}},function(e,t,n){"use strict";(function(t){n(130),e.exports=t.setImmediate}).call(this,n(25))},function(e,t,n){(function(e,t){!function(e,n){"use strict";var r,o,i,a,c,s,u,l;function f(e){delete o[e]}function p(e){if(i)setTimeout(p,0,e);else{var t=o[e];if(t){i=!0;try{var n=t,r=n.callback,a=n.args;switch(a.length){case 0:r();break;case 1:r(a[0]);break;case 2:r(a[0],a[1]);break;case 3:r(a[0],a[1],a[2]);break;default:r.apply(void 0,a)}}finally{f(e),i=!1}}}}e.setImmediate||(r=1,i=!(o={}),a=e.document,l=(l=Object.getPrototypeOf&&Object.getPrototypeOf(e))&&l.setTimeout?l:e,"[object process]"==={}.toString.call(e.process)?c=function(e){t.nextTick((function(){p(e)}))}:function(){var t,n;if(e.postMessage&&!e.importScripts)return t=!0,n=e.onmessage,e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}()?function(){function t(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(n)&&p(+t.data.slice(n.length))}var n="setImmediate$"+Math.random()+"$";e.addEventListener?e.addEventListener("message",t,!1):e.attachEvent("onmessage",t),c=function(t){e.postMessage(n+t,"*")}}():c=e.MessageChannel?((u=new MessageChannel).port1.onmessage=function(e){p(e.data)},function(e){u.port2.postMessage(e)}):a&&"onreadystatechange"in a.createElement("script")?(s=a.documentElement,function(e){var t=a.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,s.removeChild(t),t=null},s.appendChild(t)}):function(e){setTimeout(p,0,e)},l.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 o[r]={callback:e,args:t},c(r),r++},l.clearImmediate=f)}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(25),n(131))},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(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}var c,s=[],u=!1,l=-1;function f(){u&&c&&(u=!1,c.length?s=c.concat(s):l=-1,s.length&&p())}function p(){if(!u){for(var e=a(f),t=(u=!0,s.length);t;){for(c=s,s=[];++l<t;)c&&c[l].run();l=-1,t=s.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function d(){}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];s.push(new g(e,t)),1!==s.length||u||a(p)},g.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=d,e.addListener=d,e.once=d,e.off=d,e.removeListener=d,e.removeAllListeners=d,e.emit=d,e.prependListener=d,e.prependOnceListener=d,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 r=n(2),o=n(36),i=n(62);e.exports=function(e,t){var n=t.currentTarget.ownerDocument,a=(Boolean(e.props.preserveSelectionOnBlur)||i(n)!==n.body||(n=n.defaultView.getSelection(),a=e.editor,1===n.rangeCount&&o(a,n.anchorNode)&&o(a,n.focusNode)&&n.removeAllRanges()),e._latestEditorState);(n=a.getSelection()).getHasFocus()&&(n=n.set("hasFocus",!1),e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(a,n)))}},function(e,t,n){"use strict";var r=n(2);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(69);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},function(e,t,n){"use strict";var r=n(3),o=n(2),i=n(29),a=n(69),c=n(30),s=n(136);e.exports=function(e,t){var n,u=e._latestEditorState,l=u.getSelection(),f=t.target;l.isCollapsed()?t.preventDefault():(s(f)&&(n=c(i.getScrollParent(f))),l=a(u),e.setClipboard(l),e.setMode("cut"),setTimeout((function(){var t,i;e.restoreEditorDOM(n),e.exitCurrentMode(),e.update((t=u,i=r.removeRange(t.getCurrentContent(),t.getSelection(),"forward"),o.push(t,i,"remove-range")))}),0))}},function(e,t,n){"use strict";e.exports=function(e){if(!e||!("ownerDocument"in e))return!1;if("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 r=n(2),o=n(5);e.exports=function(e,t){var n=e._latestEditorState,i=n.getSelection();i.getHasFocus()||(i=i.set("hasFocus",!0),e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,i)):e.update(r.acceptSelection(n,i)))}},function(e,t,n){"use strict";var r=n(3),o=n(10),i=n(2),a=n(5),c=n(58).notEmptyKey,s=n(26),u=n(70),l=n(4),f=a.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(),a=n.anchorNode,p=n.isCollapsed,g=(null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!g){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var d=a.parentNode;if(null==d)return;a.nodeValue=d.textContent;for(var h=d.firstChild;null!=h;h=h.nextSibling)h!==a&&d.removeChild(h)}g=a.textContent;var y=e._latestEditorState,m=l(s(a)),b=(m=o.decode(m)).blockKey,v=m.decoratorKey,S=(m=m.leafKey,m=(v=y.getBlockTree(b).getIn([v,"leaves",m])).start,v=v.end,y.getCurrentContent()),w=(b=S.getBlockForKey(b)).getText().slice(m,v);if((g=g.endsWith("\n\n")?g.slice(0,-1):g)!==w){var x,O,k,C,E=y.getSelection(),_=(v=E.merge({anchorOffset:m,focusOffset:v,isBackward:!1}),b.getEntityAt(m)),D=(_="MUTABLE"===(null!=(_=c(_)?S.getEntity(_):null)?_.getMutability():null))?"spellcheck-change":"apply-entity";v=r.replaceText(S,v,g,b.getInlineStyleAt(m),_?b.getEntityAt(m):null),b=(C=f?(k=n.anchorOffset,C=n.focusOffset,O=(x=m+Math.min(k,C))+Math.abs(k-C),k=x,O):(_=g.length-w.length,x=E.getStartOffset(),O=E.getEndOffset(),k=p?O+_:x,O+_),v.merge({selectionBefore:S.getSelectionAfter(),selectionAfter:E.merge({anchorOffset:k,focusOffset:C})}));e.update(i.push(y,b,D))}else if((n=t.nativeEvent.inputType)&&(m=y,(g="deleteContentBackward"===n?u(m):m)!==y))return e.restoreEditorDOM(),void e.update(g)}}},function(e,t,n){"use strict";var r=n(3),o=n(2),i=n(40),a=n(28),c=n(143),s=n(5),u=n(31),l=n(144),f=n(146),p=n(148),g=n(149),d=n(150),h=n(151),y=n(70),m=n(152),b=n(153),v=n(154),S=i.isOptionKeyCommand,w=s.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;function s(n){return(n=e.props[n])&&(n(t),1)}switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&u(e.props.handleReturn(t,i)))return;break;case a.ESC:if(t.preventDefault(),s("onEscape"))return;break;case a.TAB:if(s("onTab"))return;break;case a.UP:if(s("onUpArrow"))return;break;case a.RIGHT:if(s("onRightArrow"))return;break;case a.DOWN:if(s("onDownArrow"))return;break;case a.LEFT:if(s("onLeftArrow"))return;break;case a.SPACE:w&&S(t)&&t.preventDefault()}var x=e.props.keyBindingFn(t);null!=x&&""!==x?"undo"!==x?(t.preventDefault(),e.props.handleKeyCommand&&u(e.props.handleKeyCommand(x,i,t.timeStamp))||(x=function(e,t,n){switch(e){case"redo":return o.redo(t);case"delete":return m(t);case"delete-word":return p(t);case"backspace":return y(t);case"backspace-word":return f(t);case"backspace-to-start-of-line":return l(t,n);case"split-block":return g(t);case"transpose-characters":return b(t);case"move-selection-to-start-of-block":return h(t);case"move-selection-to-end-of-block":return d(t);case"secondary-cut":return c.cut(t);case"secondary-paste":return c.paste(t);default:return t}}(x,i,t))!==i&&e.update(x)):v(t,i,e.update):n===a.SPACE&&w&&S(t)&&(x=r.replaceText(i.getCurrentContent(),i.getSelection()," "),e.update(o.push(i,x,"insert-characters")))}},function(e,t,n){"use strict";var r=n(28);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 r=n(3),o=n(2),i=n(21),a=n(4),c=null;e.exports={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),s=null;if(n.isCollapsed()){var u=n.getAnchorKey(),l=t.getBlockForKey(u).getLength();if(l===n.getAnchorOffset()){if(null==(u=t.getKeyAfter(u)))return e;s=n.set("focusKey",u).set("focusOffset",0)}else s=n.set("focusOffset",l)}else s=n;return s=a(s),c=i(t,s),(u=r.removeRange(t,s,"forward"))===t?e:o.push(e,u,"remove-range")},paste:function(e){if(!c)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),c);return o.push(e,t,"insert-fragment")}}},function(e,t,n){"use strict";var r=n(2),o=n(145),i=n(56),a=n(38),c=n(20);e.exports=function(e,t){var n=c(e,(function(e){var n=e.getSelection();return n.isCollapsed()&&0===n.getAnchorOffset()?a(e,1):(n=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0),n=o(n),i(e,null,n.endContainer,n.endOffset,n.startContainer,n.startOffset).selectionState)}),"backward");return n===e.getCurrentContent()?e:r.push(e,n,"remove-range")}},function(e,t,n){"use strict";var r=n(16),o=n(27),i=n(71),a=n(1);function c(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var c=e[a];0!==c.width&&1!==c.width&&(n=Math.min(n,c.top),r=Math.min(r,c.bottom),o=Math.max(o,c.top),i=Math.max(i,c.bottom))}return o<=r&&o-n<t&&i-r<t}e.exports=function(e){e.collapsed||a(!1);var t=(e=e.cloneRange()).startContainer,n=function(e){var t=getComputedStyle(e),n=(e=o(e)).createElement("div");return 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)||a(!1),t.appendChild(n),e=n.getBoundingClientRect(),t.removeChild(n),e.height}(t=1!==t.nodeType?t.parentNode:t),s=e.endContainer,u=e.endOffset;for(e.setStart(e.startContainer,0);c(i(e),n)&&(s=e.startContainer,u=e.startOffset,s.parentNode||a(!1),e.setStartBefore(s),1!==s.nodeType||"inline"===getComputedStyle(s).display););for(var l=s,f=u-1;;){for(var p=l.nodeValue,g=f;0<=g;g--)if(!(null!=p&&0<g&&r.isSurrogatePair(p,g-1))){if(e.setStart(l,g),!c(i(e),n))break;s=l,u=g}if(-1===g||0===l.childNodes.length)break;f=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}}(l=l.childNodes[g])}return e.setStart(s,u),e}},function(e,t,n){"use strict";var r=n(72),o=n(2),i=n(38),a=n(20);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(72),o=n(2),i=n(73),a=n(20);e.exports=function(e){var t=a(e,(function(e){var t=(n=e.getSelection()).getStartOffset(),n=n.getStartKey();n=e.getCurrentContent().getBlockForKey(n).getText().slice(t),t=r.getForward(n);return i(e,t.length||1)}),"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";var r=n(3),o=n(2);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 r=n(2);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(2);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(2),o=n(16),i=n(73),a=n(20);e.exports=function(e){var t=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");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(3),o=n(2),i=n(21);e.exports=function(e){if(!(n=e.getSelection()).isCollapsed())return e;if(0===(s=n.getAnchorOffset()))return e;var t=n.getAnchorKey();if((t=(c=e.getCurrentContent()).getBlockForKey(t).getLength())<=1)return e;t=s===t?(a=n.set("anchorOffset",s-1),n):(a=n.set("focusOffset",s+1)).set("anchorOffset",s+1);var n=i(c,a),a=(c=(s=r.removeRange(c,a,"backward")).getSelectionAfter()).getAnchorOffset()-1,c=c.merge({anchorOffset:a,focusOffset:a}),s=(a=r.replaceWithFragment(s,c,n),o.push(e,a,"insert-fragment"));return o.acceptSelection(s,t)}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t,n){var o,i=r.undo(t);if("spellcheck-change"===t.getLastChangeType())return o=i.getCurrentContent(),void n(r.set(i,{nativelyRenderedContent:o}));e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(i)}),0)):n(i)}},function(e,t,n){"use strict";var r=n(17),o=n(6),i=n(66),a=n(3),c=n(156),s=n(2),u=n(76),l=n(35),f=n(68),p=n(31),g=n(161);function d(e,t,n){return t=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t),s.push(e,t.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){if(t.preventDefault(),!(t=new i(t.clipboardData)).isRichText()){var n=t.getFiles(),h=t.getText();if(0<n.length)return e.props.handlePastedFiles&&p(e.props.handlePastedFiles(n))?void 0:void f(n,(function(t){var n,i,f;(t=t||h)&&(n=e._latestEditorState,t=g(t),i=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),f=u.getCurrentBlockType(n),t=c.processText(t,i,f),i=r.createFromArray(t),f=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),i),e.update(s.push(n,f,"insert-fragment")))}))}n=[];var y,m=t.getText(),b=t.getHTML(),v=e._latestEditorState;if(e.props.formatPastedText&&(m=(S=e.props.formatPastedText(m,b)).text,b=S.html),!e.props.handlePastedText||!p(e.props.handlePastedText(m,b,v))){if(m&&(n=g(m)),!e.props.stripPastedStyles){var S=e.getClipboard();if(!e.props.formatPastedText&&t.isRichText()&&S){if(-1!==(null==b?void 0:b.indexOf(e.getEditorKey()))||1===n.length&&1===S.size&&S.first().getText()===m)return void e.update(d(e._latestEditorState,S))}else if(S&&t.types.includes("com.apple.webarchive")&&!t.types.includes("text/html")&&(m=S,(y=n).length===m.size&&m.valueSeq().every((function(e,t){return e.getText()===y[t]}))))return void e.update(d(e._latestEditorState,S));if(b)if(t=c.processHTML(b,e.props.blockRenderMap)){m=t.contentBlocks,S=t.entityMap;if(m)return b=r.createFromArray(m),void e.update(d(e._latestEditorState,b,S))}e.setClipboard(null)}n.length&&(t=o.create({style:v.getCurrentInlineStyle(),entity:l(v.getCurrentContent(),v.getSelection())}),m=u.getCurrentBlockType(v),b=c.processText(n,t,m),S=r.createFromArray(b),e.update(d(e._latestEditorState,S)))}}},function(e,t,n){"use strict";function r(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){var r,o;r=e,o=n[t=t],t in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var i=n(12),a=n(7),c=n(74),s=n(9),u=n(75),l=n(11),f=n(0),p=n(48),g=f.List,d=f.Repeat,h=l("draft_tree_data_support"),y=h?a:i;e.exports={processHTML:function(e,t){return c(e,u,t)},processText:function(e,t,n){return e.reduce((function(e,r,i){r=p(r);var a=s();r={key:a,type:n,text:r,characterList:g(d(t,r.length))};return h&&0!==i&&(i=e[i-=1]=e[i].merge({nextSibling:a}),r=o(o({},r),{},{prevSibling:i.getKey()})),e.push(new y(r)),e}),[])}}},function(e,t,n){"use strict";e.exports=function(){function e(e){var t,n;n=void 0,(t="_uri")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._uri=e}return e.prototype.toString=function(){return this._uri},e}()},function(e,t,n){"use strict";var r=n(15);e.exports=function(e){return!(!e||!e.ownerDocument)&&r(e)&&"A"===e.nodeName}},function(e,t,n){"use strict";var r=n(15);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=(c=e.getBlockMap()).toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,c.get(i)]]).map((function(e){var t=e.getDepth()+n;t=Math.max(0,Math.min(t,r));return e.set("depth",t)})),c=c.merge(a);return e.merge({blockMap:c,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(163).unstable_flushControlled,e.exports=n},function(e,t){e.exports=n},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var o=n(8),i=n(13);n=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(a=n).prototype=Object.create(t.prototype),r(a.prototype.constructor=a,t);var a=n.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.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 r(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){var r,o;r=e,o=n[t=t],t in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:l(e),entityRanges:u(e,t),data:e.getData().toObject()}}var a=n(12),c=n(7),s=n(78),u=n(167),l=n(168),f=n(1),p=function(e,t,n,r){var s;e instanceof a?n.push(i(e,t)):(e instanceof c||f(!1),s=e.getParentKey(),e=r[e.getKey()]=o(o({},i(e,t)),{},{children:[]}),(s?r[s].children:n).push(e))};e.exports=function(e){var t,n,r,o,i,a,c,u,l={entityMap:{},blocks:[]};return t=l.entityMap,n=[],r={},o={},i=0,e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(n){n=e.getEntityAt(n);var r=s.stringify(n);o[r]||(o[r]=n,t[r]="".concat(i),i++)})),p(e,t,n,r)})),a=e,e=l={blocks:n,entityMap:t},c=l.blocks,e=l.entityMap,u={},Object.keys(e).forEach((function(e,t){e=a.getEntity(s.unstringify(e)),u[t]={type:e.getType(),mutability:e.getMutability(),data:e.getData()}})),{blocks:c,entityMap:u}}},function(e,t,n){"use strict";var r=n(78),o=n(16).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,a){var c=e.getText(),s=e.getEntityAt(i);n.push({offset:o(c.slice(0,i)),length:o(c.slice(i,a)),key:Number(t[r.stringify(s)])})})),n}},function(e,t,n){"use strict";var r=n(16),o=n(18),i=function(e,t){return e===t},a=function(e){return!!e},c=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return c=e,s=n,u=[],n=(n=t).map((function(e){return e.has(s)})).toList(),o(n,i,a,(function(e,t){var n=c.getText();u.push({offset:r.strlen(n.slice(0,e)),length:r.strlen(n.slice(e,t)),style:s})})),u;var c,s,u}));return Array.prototype.concat.apply(c,n.toJS())}},function(e,t,n){"use strict";function r(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){var r,o;r=e,o=n[t=t],t in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(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||b(),data:k(o),characterList:a(e,t)}}function a(e,t){var n=e.text,r=e.entityRanges;e=e.inlineStyleRanges,r=r||[];return h(m(n,e||[]),y(n,r.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return o(o({},e),{},{key:t[e.key]})}))))}function c(e){return o(o({},e),{},{key:e.key||b()})}function s(e,t,n){return t=t.map((function(e){return o(o({},e),{},{parentRef:n})})),e.concat(t.reverse())}var u=n(12),l=n(7),f=n(32),p=n(22),g=n(170),d=(n(171),n(23)),h=n(172),y=n(173),m=n(174),b=n(9),v=n(11),S=n(0),w=n(1),x=v("draft_tree_data_support"),O=S.List,k=S.Map,C=S.OrderedMap,E=function(e,t){return C(e.map((function(e){return[(e=new u(i(e,t))).getKey(),e]})))};e.exports=function(e){Array.isArray(e.blocks)||w(!1),t=e.entityMap,n={},Object.keys(t).forEach((function(e){var r=(i=t[e]).type,o=i.mutability,i=i.data;n[e]=p.__create(r,o,i||{})}));var t,n,r,a,u=n,h=(r=u,h=(e=e).blocks.find((function(e){return Array.isArray(e.children)&&0<e.children.length})),a=(x&&!h?g.fromRawStateToRawTreeState(e):e).blocks,x?function(e,t){return e.map(c).reduce((function(n,r,a){Array.isArray(r.children)||w(!1);for(var u=r.children.map(c),f=(r=new l(o(o({},i(r,t)),{},{prevSibling:0===a?null:e[a-1].key,nextSibling:a===e.length-1?null:e[a+1].key,children:O(u.map((function(e){return e.key})))})),n=n.set(r.getKey(),r),s([],u,r));0<f.length;){var p=f.pop(),g=p.parentRef,d=g.getChildKeys(),h=d.indexOf(p.key),y=Array.isArray(p.children);if(!y){w(!1);break}y=p.children.map(c),p=new l(o(o({},i(p,t)),{},{parent:g.getKey(),children:O(y.map((function(e){return e.key}))),prevSibling:0===h?null:d.get(h-1),nextSibling:h===d.size-1?null:d.get(h+1)})),n=n.set(p.getKey(),p),f=s(f,y,p)}return n}),C())}(a,r):E(h?g.fromRawTreeStateToRawState(e).blocks:a,r));e=h.isEmpty()?new d:d.createEmpty(h.first().getKey());return new f({blockMap:h,entityMap:u,selectionBefore:e,selectionAfter:e})}},function(e,t,n){"use strict";function r(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){var r,o;r=e,o=n[t=t],t in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e){return!(!e||!e.type||"unordered-list-item"!==(e=e.type)&&"ordered-list-item"!==e)}var a=n(9),c=n(1);e.exports={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];if(Array.isArray(t)||c(!1),!Array.isArray(t)||!t.length)return e;for(var r=function(e){var t,r=o({},e);i(e)&&(r.depth=r.depth||0,t=e,Array.isArray(t.children)&&(t.children=t.children.map((function(e){return e.type===t.type?o(o({},e),{},{depth:(t.depth||0)+1}):e}))),null!=e.children&&0<e.children.length)||(delete r.children,n.push(r))},a=[].concat(t).reverse();a.length;){var s=(r(s=a.pop()),s.children);Array.isArray(s)||c(!1),a=a.concat([].concat(s.reverse()))}return e.blocks=n,o(o({},e),{},{blocks:n})},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=i(e),c=e.depth||0,s=o(o({},e),{},{children:[]});if(r){var u=n[0];if(null==u&&0===c)t.push(s);else if(null==u||u.depth<c-1)r={key:a(),text:"",depth:c-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]},n.unshift(r),1===c?t.push(r):null!=u&&u.children.push(r),r.children.push(s);else if(u.depth===c-1)u.children.push(s);else{for(;null!=u&&u.depth>=c;)n.shift(),u=n[0];(0<c?u.children:t).push(s)}}else t.push(s)})),o(o({},e),{},{blocks:t})}}},function(e,t,n){"use strict";n(39),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;if(null!=(r=e.getPrevSiblingKey())&&t.get(r).getNextSiblingKey()!==n)return!1;var o=e.getNextSiblingKey();return(null==o||t.get(o).getPrevSiblingKey()===n)&&!(null!==o&&null!==r&&r===o||""!=e.text&&0<e.getChildKeys().size)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),c=i.getNextSiblingKey();if(0<a.size){if(null!=c&&o.unshift(c),null==(c=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}))))return!1;r=c.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}}},function(e,t,n){"use strict";var r=n(6),o=n(0).List;e.exports=function(e,t){return e=e.map((function(e,n){return n=t[n],r.create({style:e,entity:n})})),o(e)}},function(e,t,n){"use strict";var r=n(16).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,i=o+r(e,t.offset,t.length).length,a=o;a<i;a++)n[a]=t.key})),n}},function(e,t,n){"use strict";var r=n(16),o=(n=n(0).OrderedSet,r.substr),i=n();e.exports=function(e,t){var n=Array(e.length).fill(i);return t&&t.forEach((function(t){for(var r=o(e,0,t.offset).length,i=r+o(e,t.offset,t.length).length;r<i;)n[r]=n[r].add(t.style),r++})),n}},function(e,t,n){"use strict";var r=n(176);e.exports=function(e){if(!(e=e.getSelection()).rangeCount)return null;e=e.getRangeAt(0);var t=(e=r(e)).top,n=e.right,o=e.bottom,i=e.left;return 0===t&&0===n&&0===o&&0===i?null:e}},function(e,t,n){"use strict";var r=n(71);e.exports=function(e){var t=r(e),n=0,o=0,i=0,a=0;if(t.length){a=1<t.length&&0===t[0].width?(n=(e=t[1]).top,o=e.right,i=e.bottom,e.left):(n=(e=t[0]).top,o=e.right,i=e.bottom,e.left);for(var c=1;c<t.length;c++){var s=t[c];0!==s.height&&0!==s.width&&(n=Math.min(n,s.top),o=Math.max(o,s.right),i=Math.max(i,s.bottom),a=Math.min(a,s.left))}}return{top:n,right:o,bottom:i,left:a,width:o-a,height:i-n}}}],r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=79);function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i}));