(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[89333],{386010:(t,e,r)=>{function n(t){var e,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(r=n(t[e]))&&(o&&(o+=" "),o+=r);else for(e in t)t[e]&&(o&&(o+=" "),o+=e);return o}function o(){for(var t,e,r=0,o="";r<arguments.length;)(t=arguments[r++])&&(e=n(t))&&(o&&(o+=" "),o+=e);return o}r.r(e),r.d(e,{default:()=>o})},839080:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=i(r(667294)),o=i(r(386010));function i(t){return t&&t.__esModule?t:{default:t}}var a=function(t){var e=t.mention,r=t.children,o=t.className;return n.default.createElement("a",{href:e.link,className:o,spellCheck:!1},r)},u=function(t){var e=t.children,r=t.className;return n.default.createElement("span",{className:r,spellCheck:!1},e)};e.default=function(t){var e=t.entityKey,r=t.theme,i=void 0===r?{}:r,s=t.mentionComponent,c=t.children,l=t.decoratedText,f=t.className,p=t.contentState,h=(0,o.default)(i.mention,f),d=p.getEntity(e).getData().mention,g=s||(d.link?a:u);return n.default.createElement(g,{entityKey:e,mention:d,theme:i,className:h,decoratedText:l},c)}},835893:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n,o=r(667294),i=(n=o)&&n.__esModule?n:{default:n};e.default=function(t){var e=t.mention,r=t.theme,n=void 0===r?{}:r;return e.avatar?i.default.createElement("img",{src:e.avatar,className:n.mentionSuggestionsEntryAvatar,role:"presentation"}):null}},647711:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=i(r(667294)),o=i(r(835893));function i(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){var e=t.mention,r=t.theme,i=(t.isFocused,t.searchValue,function(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}(t,["mention","theme","isFocused","searchValue"]));return n.default.createElement("div",i,n.default.createElement(o.default,{mention:e,theme:r}),n.default.createElement("span",{className:r.mentionSuggestionsEntryText},e.name))}},33953:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=r(667294),i=u(o),a=u(r(45697));function u(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.onMouseUp=function(){r.mouseDown&&(r.props.onMentionSelect(r.props.mention),r.mouseDown=!1)},r.onMouseDown=function(t){t.preventDefault(),r.mouseDown=!0},r.onMouseEnter=function(){r.props.onMentionFocus(r.props.index)},r.mouseDown=!1,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"componentDidUpdate",value:function(){this.mouseDown=!1}},{key:"render",value:function(){var t=this.props,e=t.theme,r=void 0===e?{}:e,n=t.mention,o=t.searchValue,a=t.isFocused,u=t.id,s=a?r.mentionSuggestionsEntryFocused:r.mentionSuggestionsEntry,c=this.props.entryComponent;return i.default.createElement(c,{className:s,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onMouseEnter:this.onMouseEnter,role:"option",id:u,"aria-selected":a?"true":null,theme:r,mention:n,isFocused:a,searchValue:o})}}]),e}(o.Component);s.propTypes={entryComponent:a.default.any.isRequired,searchValue:a.default.string,onMentionSelect:a.default.func},e.default=s},251468:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MentionSuggestions=void 0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(667294),a=g(i),u=g(r(45697)),s=r(909041),c=g(r(103522)),l=g(r(33953)),f=g(r(746666)),p=g(r(976096)),h=g(r(969371)),d=g(r(647711));function g(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var m=e.MentionSuggestions=function(t){function e(){var t,r,n;y(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=v(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(i))),n.state={isActive:!1,focusedOptionIndex:0},n.componentDidUpdate=function(t,e){if(n.popover){var r=n.props.suggestions.length;if(r>0&&n.state.focusedOptionIndex>=r&&n.setState({focusedOptionIndex:r-1}),!n.props.store.getAllSearches().has(n.activeOffsetKey))return;var o=n.props.store.getPortalClientRect(n.activeOffsetKey),i=n.props.positionSuggestions({decoratorRect:o,prevProps:t,prevState:e,props:n.props,state:n.state,popover:n.popover});Object.keys(i).forEach((function(t){n.popover.style[t]=i[t]}))}},n.componentWillUnmount=function(){n.props.callbacks.onChange=void 0},n.onEditorStateChange=function(t){var e=n.props.store.getAllSearches();if(0===e.size)return t;var r=function(){return n.props.store.resetEscapedSearch(),n.closeDropdown(),t},o=t.getSelection(),i=o.getAnchorKey(),a=o.getAnchorOffset();if(!o.isCollapsed()||!o.getHasFocus())return r();var u=e.map((function(t){return(0,p.default)(t)})).filter((function(t){return t.blockKey===i})).map((function(e){var r=e.blockKey,n=e.decoratorKey;return t.getBlockTree(r).getIn([n])}));if(u.every((function(t){return void 0===t})))return r();var s=t.getCurrentContent().getPlainText(),l=u.filter((function(t){return void 0!==t})).map((function(t){var e=t.start,r=t.end;return 0===e&&a===n.props.mentionTrigger.length&&s.charAt(a)!==n.props.mentionTrigger&&new RegExp(String.raw({raw:""+(0,c.default)(n.props.mentionTrigger)}),"g").test(s)&&a<=r||a>e+n.props.mentionTrigger.length&&a<=r}));if(l.every((function(t){return!1===t})))return r();var f=n.activeOffsetKey;return n.activeOffsetKey=l.filter((function(t){return!0===t})).keySeq().first(),n.onSearchChange(t,o,n.activeOffsetKey,f),n.props.store.isEscaped(n.activeOffsetKey)||n.props.store.resetEscapedSearch(),!n.state.isActive&&!n.props.store.isEscaped(n.activeOffsetKey)&&n.props.suggestions.length>0&&n.openDropdown(),void 0!==n.lastSelectionIsInsideWord&&l.equals(n.lastSelectionIsInsideWord)||n.setState({focusedOptionIndex:0}),n.lastSelectionIsInsideWord=l,t},n.onSearchChange=function(t,e,r,o){var i=(0,h.default)(t,e,n.props.mentionTrigger).matchingString;n.lastSearchValue===i&&r===o||(n.lastSearchValue=i,n.props.onSearchChange({value:i}))},n.onDownArrow=function(t){t.preventDefault();var e=n.state.focusedOptionIndex+1;n.onMentionFocus(e>=n.props.suggestions.length?0:e)},n.onTab=function(t){t.preventDefault(),n.commitSelection()},n.onUpArrow=function(t){if(t.preventDefault(),n.props.suggestions.length>0){var e=n.state.focusedOptionIndex-1;n.onMentionFocus(e<0?n.props.suggestions.length-1:e)}},n.onEscape=function(t){t.preventDefault();var e=n.lastSelectionIsInsideWord.filter((function(t){return!0===t})).keySeq().first();n.props.store.escapeSearch(e),n.closeDropdown(),n.props.store.setEditorState(n.props.store.getEditorState())},n.onMentionSelect=function(t){if(t){n.props.onAddMention&&n.props.onAddMention(t),n.closeDropdown();var e=(0,f.default)(n.props.store.getEditorState(),t,n.props.mentionPrefix,n.props.mentionTrigger,n.props.entityMutability);n.props.store.setEditorState(e)}},n.onMentionFocus=function(t){var e="mention-option-"+n.key+"-"+t;n.props.ariaProps.ariaActiveDescendantID=e,n.setState({focusedOptionIndex:t}),n.props.store.setEditorState(n.props.store.getEditorState())},n.commitSelection=function(){return n.props.store.getIsOpened()?(n.onMentionSelect(n.props.suggestions[n.state.focusedOptionIndex]),"handled"):"not-handled"},n.openDropdown=function(){n.props.callbacks.handleReturn=n.commitSelection,n.props.callbacks.keyBindingFn=function(t){40===t.keyCode&&n.onDownArrow(t),38===t.keyCode&&n.onUpArrow(t),27===t.keyCode&&n.onEscape(t),9===t.keyCode&&n.onTab(t)};var t="mention-option-"+n.key+"-"+n.state.focusedOptionIndex;n.props.ariaProps.ariaActiveDescendantID=t,n.props.ariaProps.ariaOwneeID="mentions-list-"+n.key,n.props.ariaProps.ariaHasPopup="true",n.props.ariaProps.ariaExpanded=!0,n.setState({isActive:!0}),n.props.onOpen&&n.props.onOpen()},n.closeDropdown=function(){n.props.callbacks.handleReturn=void 0,n.props.callbacks.keyBindingFn=void 0,n.props.ariaProps.ariaHasPopup="false",n.props.ariaProps.ariaExpanded=!1,n.props.ariaProps.ariaActiveDescendantID=void 0,n.props.ariaProps.ariaOwneeID=void 0,n.setState({isActive:!1}),n.props.onClose&&n.props.onClose()},v(n,r)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"componentWillMount",value:function(){this.key=(0,s.genKey)(),this.props.callbacks.onChange=this.onEditorStateChange}},{key:"componentWillReceiveProps",value:function(t){0===t.suggestions.length&&this.state.isActive?this.closeDropdown():t.suggestions.length>0&&t.suggestions!==this.props.suggestions&&!this.state.isActive&&this.openDropdown()}},{key:"render",value:function(){var t=this;if(!this.state.isActive)return null;var e=this.props,r=e.entryComponent,o=e.popoverComponent,i=void 0===o?a.default.createElement("div",null):o,u=(e.onClose,e.onOpen,e.onAddMention,e.onSearchChange,e.suggestions,e.ariaProps,e.callbacks,e.theme),s=void 0===u?{}:u,c=(e.store,e.entityMutability,e.positionSuggestions,e.mentionTrigger,e.mentionPrefix,function(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}(e,["entryComponent","popoverComponent","onClose","onOpen","onAddMention","onSearchChange","suggestions","ariaProps","callbacks","theme","store","entityMutability","positionSuggestions","mentionTrigger","mentionPrefix"]));return a.default.cloneElement(i,n({},c,{className:s.mentionSuggestions,role:"listbox",id:"mentions-list-"+this.key,ref:function(e){t.popover=e}}),this.props.suggestions.map((function(e,n){return a.default.createElement(l.default,{key:null!=e.id?e.id:e.name,onMentionSelect:t.onMentionSelect,onMentionFocus:t.onMentionFocus,isFocused:t.state.focusedOptionIndex===n,mention:e,index:n,id:"mention-option-"+t.key+"-"+n,theme:s,searchValue:t.lastSearchValue,entryComponent:r||d.default})})))}}]),e}(i.Component);m.propTypes={entityMutability:u.default.oneOf(["SEGMENTED","IMMUTABLE","MUTABLE"]),entryComponent:u.default.func,onAddMention:u.default.func,suggestions:u.default.array},e.default=m},143111:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(667294),a=(n=i)&&n.__esModule?n:{default:n};var u=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.searchPortalRef=function(t){r.searchPortal=t},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"componentDidMount",value:function(){this.props.store.register(this.props.offsetKey),this.props.store.setIsOpened(!0),this.updatePortalClientRect(this.props),this.props.setEditorState(this.props.getEditorState())}},{key:"componentWillReceiveProps",value:function(t){this.updatePortalClientRect(t)}},{key:"componentWillUnmount",value:function(){this.props.store.unregister(this.props.offsetKey),this.props.store.setIsOpened(!1)}},{key:"updatePortalClientRect",value:function(t){var e=this;this.props.store.updatePortalClientRect(t.offsetKey,(function(){return e.searchPortal.getBoundingClientRect()}))}},{key:"render",value:function(){return a.default.createElement("span",{className:this.key,ref:this.searchPortalRef},this.props.children)}}]),e}(i.Component);e.default=u},316850:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default="[\\w-À-ÖØ-öø-ÿĀ-ňŊ-ſА-я぀-ゟ゠-ヿ㄰-㆏가-힣一-黿]*"},846888:(t,e,r)=>{var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o=r(251468);var i=m(r(667294)),a=r(143393),u=m(r(839080)),s=m(o),c=m(r(143111)),l=m(r(316850)),f=m(r(797553)),p=m(r(250556)),h=m({mention:"draftJsMentionPlugin__mention__29BEd"}),d=m({mentionSuggestions:"draftJsMentionPlugin__mentionSuggestions__2DWjA"}),g=m({mentionSuggestionsEntry:"draftJsMentionPlugin__mentionSuggestionsEntry__3mSwm",mentionSuggestionsEntryFocused:"draftJsMentionPlugin__mentionSuggestionsEntryFocused__3LcTd draftJsMentionPlugin__mentionSuggestionsEntry__3mSwm",mentionSuggestionsEntryText:"draftJsMentionPlugin__mentionSuggestionsEntryText__3Jobq",mentionSuggestionsEntryAvatar:"draftJsMentionPlugin__mentionSuggestionsEntryAvatar__1xgA9"}),y=m(r(33848)),v=m(r(578510));function m(t){return t&&t.__esModule?t:{default:t}}var _={mention:h.default.mention,mentionSuggestions:d.default.mentionSuggestions,mentionSuggestionsEntry:g.default.mentionSuggestionsEntry,mentionSuggestionsEntryFocused:g.default.mentionSuggestionsEntryFocused,mentionSuggestionsEntryText:g.default.mentionSuggestionsEntryText,mentionSuggestionsEntryAvatar:g.default.mentionSuggestionsEntryAvatar};e.ZP=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={keyBindingFn:void 0,handleKeyCommand:void 0,handleReturn:void 0,onChange:void 0},r={ariaHasPopup:"false",ariaExpanded:!1,ariaOwneeID:void 0,ariaActiveDescendantID:void 0},o=(0,a.Map)(),h=void 0,d=(0,a.Map)(),g=void 0,y={getEditorState:void 0,setEditorState:void 0,getPortalClientRect:function(t){return d.get(t)()},getAllSearches:function(){return o},isEscaped:function(t){return h===t},escapeSearch:function(t){h=t},resetEscapedSearch:function(){h=void 0},register:function(t){o=o.set(t,t)},updatePortalClientRect:function(t,e){d=d.set(t,e)},unregister:function(t){o=o.delete(t),d=d.delete(t)},getIsOpened:function(){return g},setIsOpened:function(t){g=t}},m=t.mentionPrefix,S=void 0===m?"":m,b=t.theme,w=void 0===b?_:b,E=t.positionSuggestions,k=void 0===E?v.default:E,C=t.mentionComponent,x=t.mentionSuggestionsComponent,O=void 0===x?s.default:x,D=t.entityMutability,M=void 0===D?"SEGMENTED":D,K=t.mentionTrigger,A=void 0===K?"@":K,T=t.mentionRegExp,I=void 0===T?l.default:T,B=t.supportWhitespace,P=void 0!==B&&B,R={ariaProps:r,callbacks:e,theme:w,store:y,entityMutability:M,positionSuggestions:k,mentionTrigger:A,mentionPrefix:S},L=function(t){return i.default.createElement(O,n({},t,R))},F=function(t){return i.default.createElement(u.default,n({},t,{theme:w,mentionComponent:C}))},j=function(t){return i.default.createElement(c.default,n({},t,{store:y}))};return{MentionSuggestions:L,decorators:[{strategy:(0,f.default)(A),component:F},{strategy:(0,p.default)(A,P,I),component:j}],getAccessibilityProps:function(){return{role:"combobox",ariaAutoComplete:"list",ariaHasPopup:r.ariaHasPopup,ariaExpanded:r.ariaExpanded,ariaActiveDescendantID:r.ariaActiveDescendantID,ariaOwneeID:r.ariaOwneeID}},initialize:function(t){var e=t.getEditorState,r=t.setEditorState;y.getEditorState=e,y.setEditorState=r},keyBindingFn:function(t){return e.keyBindingFn&&e.keyBindingFn(t)},handleReturn:function(t){return e.handleReturn&&e.handleReturn(t)},onChange:function(t){return e.onChange?e.onChange(t):t}}};y.default},797553:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n,o=r(1839),i=(n=o)&&n.__esModule?n:{default:n};e.default=function(t){return function(e,r,n){e.findEntityRanges((function(e){var r=e.getEntity();return null!==r&&n.getEntity(r).getType()===(0,i.default)(t)}),r)}}},250556:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n,o=r(103522),i=(n=o)&&n.__esModule?n:{default:n};e.default=function(t,e,r){var n=e?new RegExp((0,i.default)(t)+"("+r+"|\\s){0,}","g"):new RegExp("(\\s|^)"+(0,i.default)(t)+r,"g");return function(t,e){!function(t,e,r){var n=e.getText();e.findEntityRanges((function(t){return!t.getEntity()}),(function(e,o){for(var i=n.slice(e,o),a=void 0,u=void 0,s=t.lastIndex;null!==(a=t.exec(i))&&t.lastIndex!==s;)s=t.lastIndex,u=e+a.index,r(u,u+a[0].length)}))}(n,t,e)}}},746666:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=r(909041),o=a(r(969371)),i=a(r(1839));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,r,a,u){var s=t.getCurrentContent().createEntity((0,i.default)(a),u,{mention:e}).getLastCreatedEntityKey(),c=t.getSelection(),l=(0,o.default)(t,c,a),f=l.begin,p=l.end,h=c.merge({anchorOffset:f,focusOffset:p}),d=n.Modifier.replaceText(t.getCurrentContent(),h,""+r+e.name,null,s),g=h.getAnchorKey();t.getCurrentContent().getBlockForKey(g).getLength()===p&&(d=n.Modifier.insertText(d,d.getSelectionAfter()," "));var y=n.EditorState.push(t,d,"insert-mention");return n.EditorState.forceSelection(y,d.getSelectionAfter())}},976096:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(s){o=!0,i=s}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.default=function(t){var e=t.split("-"),n=r(e,3),o=n[0],i=n[1],a=n[2];return{blockKey:o,decoratorKey:parseInt(i,10),leafKey:parseInt(a,10)}}},33848:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){var r=t.toLowerCase(),n=e.filter((function(t){return!r||t.name.toLowerCase().indexOf(r)>-1})),o=n.length<5?n.length:5;return n.slice(0,o)}},969371:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n,o=r(731983),i=(n=o)&&n.__esModule?n:{default:n};e.default=function(t,e,r){var n=e.getAnchorKey(),o=e.getAnchorOffset(),a=t.getCurrentContent().getBlockForKey(n).getText();return(0,i.default)(a,o,r)}},731983:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){var n=t.substr(0,e),o=0===r.length?0:n.lastIndexOf(r),i=0===r.length?n:n.slice(o+r.length);return{begin:o,end:n.length,matchingString:i}}},1839:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return"@"===t?"mention":t+"mention"}},578510:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=function t(e){return e?"static"!==window.getComputedStyle(e).getPropertyValue("position")?e:t(e.parentElement):null};e.default=function(t){var e=t.decoratorRect,n=t.popover,o=t.state,i=t.props,a=r(n.parentElement),u={};if(a){u.scrollLeft=a.scrollLeft,u.scrollTop=a.scrollTop;var s=a.getBoundingClientRect();u.left=e.left-s.left,u.top=e.bottom-s.top}else u.scrollTop=window.pageYOffset||document.documentElement.scrollTop,u.scrollLeft=window.pageXOffset||document.documentElement.scrollLeft,u.top=e.bottom,u.left=e.left;var c=u.left+u.scrollLeft,l=u.top+u.scrollTop,f=void 0,p=void 0;return o.isActive&&(i.suggestions.length>0?(f="scale(1)",p="all 0.25s cubic-bezier(.3,1.2,.2,1)"):(f="scale(0)",p="all 0.35s cubic-bezier(.3,1,.2,1)")),{left:c+"px",top:l+"px",transform:f,transformOrigin:"1em 0%",transition:p}}},514842:(t,e,r)=>{var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(143393),a=(n=i)&&n.__esModule?n:{default:n};var u="-",s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.decorators=a.default.List(e)}return o(t,[{key:"getDecorations",value:function(t,e){var r=new Array(t.getText().length).fill(null);return this.decorators.forEach((function(n,o){n.getDecorations(t,e).forEach((function(t,e){t&&(r[e]=o+u+t)}))})),a.default.List(r)}},{key:"getComponentForKey",value:function(e){return this.getDecoratorForKey(e).getComponentForKey(t.getInnerKey(e))}},{key:"getPropsForKey",value:function(e){return this.getDecoratorForKey(e).getPropsForKey(t.getInnerKey(e))}},{key:"getDecoratorForKey",value:function(t){var e=t.split(u),r=Number(e[0]);return this.decorators.get(r)}}],[{key:"getInnerKey",value:function(t){return t.split(u).slice(1).join(u)}}]),t}();t.exports=s},100604:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n,o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=r(667294),a=(n=i)&&n.__esModule?n:{default:n},u=r(143393),s=r(909041);e.default=function(t,e,r){var n=(0,u.List)(t).map((function(t){var n=t.component;return o({},t,{component:function(t){return a.default.createElement(n,o({},t,{getEditorState:e,setEditorState:r}))}})})).toJS();return new s.CompositeDecorator(n)}},113532:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=r(909041);e.default={keyBindingFn:function(t){return(0,n.getDefaultKeyBinding)(t)}}},989795:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=r(909041);e.default={handleKeyCommand:function(t,e,r,o){var i=o.setEditorState,a=void 0;switch(t){case"backspace":case"backspace-word":case"backspace-to-start-of-line":a=n.RichUtils.onBackspace(e);break;case"delete":case"delete-word":case"delete-to-end-of-block":a=n.RichUtils.onDelete(e);break;default:return"not-handled"}return null!=a?(i(a),"handled"):"not-handled"}}},92690:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(667294),a=g(i),u=g(r(45697)),s=r(909041),c=r(143393),l=g(r(12295)),f=g(r(708449)),p=g(r(825980)),h=g(r(113532)),d=g(r(989795));function g(t){return t&&t.__esModule?t:{default:t}}function y(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function v(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}var m=function(t){var e=void 0;return null!=t.decorators?e=t.decorators:null!=t._decorators&&(e=t._decorators),null!=e.size?e.size:e.length},_=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return S.call(r),[r.props].concat(v(r.resolvePlugins())).forEach((function(t){"function"==typeof t.initialize&&t.initialize(r.getPluginMethods())})),l.default.forEach((function(t){r[t]=function(){var e;return(e=r.editor)[t].apply(e,arguments)}})),r.state={},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"componentWillMount",value:function(){var t=(0,p.default)(this.props,this.getEditorState,this.onChange),e=s.EditorState.set(this.props.editorState,{decorator:t});this.onChange((0,f.default)(e))}},{key:"componentWillReceiveProps",value:function(t){var e=this.props.editorState.getDecorator(),r=t.editorState.getDecorator();if(e&&!(e===r||e&&r&&m(e)===m(r))){var n=s.EditorState.set(t.editorState,{decorator:e});this.onChange((0,f.default)(n))}}},{key:"componentWillUnmount",value:function(){var t=this;this.resolvePlugins().forEach((function(e){e.willUnmount&&e.willUnmount({getEditorState:t.getEditorState,setEditorState:t.onChange})}))}},{key:"render",value:function(){var t=this,e=this.createPluginHooks(),r=this.resolveCustomStyleMap(),o=this.resolveAccessibilityProps(),i=this.resolveblockRenderMap();return a.default.createElement(s.Editor,n({},this.props,o,e,{readOnly:this.props.readOnly||this.state.readOnly,customStyleMap:r,blockRenderMap:i,onChange:this.onChange,editorState:this.props.editorState,ref:function(e){t.editor=e}}))}}]),e}(i.Component);_.propTypes={editorState:u.default.object.isRequired,onChange:u.default.func.isRequired,plugins:u.default.array,defaultKeyBindings:u.default.bool,defaultKeyCommands:u.default.bool,defaultBlockRenderMap:u.default.bool,customStyleMap:u.default.object,decorators:u.default.array},_.defaultProps={defaultBlockRenderMap:!0,defaultKeyBindings:!0,defaultKeyCommands:!0,customStyleMap:{},plugins:[],decorators:[]};var S=function(){var t=this;this.onChange=function(e){var r=e;t.resolvePlugins().forEach((function(e){e.onChange&&(r=e.onChange(r,t.getPluginMethods()))})),t.props.onChange&&t.props.onChange(r,t.getPluginMethods())},this.getPlugins=function(){return t.props.plugins.slice(0)},this.getProps=function(){return n({},t.props)},this.getReadOnly=function(){return t.props.readOnly},this.setReadOnly=function(e){e!==t.state.readOnly&&t.setState({readOnly:e})},this.getEditorRef=function(){return t.editor},this.getEditorState=function(){return t.props.editorState},this.getPluginMethods=function(){return{getPlugins:t.getPlugins,getProps:t.getProps,setEditorState:t.onChange,getEditorState:t.getEditorState,getReadOnly:t.getReadOnly,setReadOnly:t.setReadOnly,getEditorRef:t.getEditorRef}},this.createEventHooks=function(e,r){return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=[].slice.apply(o);return a.push(t.getPluginMethods()),r.some((function(t){return"function"==typeof t[e]&&!0===t[e].apply(t,v(a))}))}},this.createHandleHooks=function(e,r){return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=[].slice.apply(o);return a.push(t.getPluginMethods()),r.some((function(t){return"function"==typeof t[e]&&"handled"===t[e].apply(t,v(a))}))?"handled":"not-handled"}},this.createFnHooks=function(e,r){return function(){for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];var u=[].slice.apply(i);if(u.push(t.getPluginMethods()),"blockRendererFn"===e){var s={props:{}};return r.forEach((function(t){if("function"==typeof t[e]){var r=t[e].apply(t,v(u));if(null!=r){var o=r.props,i=y(r,["props"]),a=s,c=a.props,l=y(a,["props"]);s=n({},l,i,{props:n({},c,o)})}}})),!!s.component&&s}if("blockStyleFn"===e){var c=void 0;return r.forEach((function(t){if("function"==typeof t[e]){var r=t[e].apply(t,v(u));null!=r&&(c=(c?c+" ":"")+r)}})),c||""}var l=void 0,f=r.some((function(t){return"function"==typeof t[e]&&void 0!==(l=t[e].apply(t,v(u)))}));return!!f&&l}},this.createPluginHooks=function(){var e={},r=[],n=[],o=[],i=[t.props].concat(v(t.resolvePlugins()));return i.forEach((function(t){Object.keys(t).forEach((function(t){"onChange"!==t&&(-1===r.indexOf(t)&&-1===o.indexOf(t)&&(0===t.indexOf("on")?r.push(t):0===t.indexOf("handle")?n.push(t):t.length-2===t.indexOf("Fn")&&o.push(t)))}))})),r.forEach((function(r){e[r]=t.createEventHooks(r,i)})),n.forEach((function(r){e[r]=t.createHandleHooks(r,i)})),o.forEach((function(r){e[r]=t.createFnHooks(r,i)})),e},this.resolvePlugins=function(){var e=t.props.plugins.slice(0);return!0===t.props.defaultKeyBindings&&e.push(h.default),!0===t.props.defaultKeyCommands&&e.push(d.default),e},this.resolveCustomStyleMap=function(){return t.props.plugins.filter((function(t){return void 0!==t.customStyleMap})).map((function(t){return t.customStyleMap})).concat([t.props.customStyleMap]).reduce((function(t,e){return n({},t,e)}),{})},this.resolveblockRenderMap=function(){var e=t.props.plugins.filter((function(t){return void 0!==t.blockRenderMap})).reduce((function(t,e){return t.merge(e.blockRenderMap)}),(0,c.Map)({}));return t.props.defaultBlockRenderMap&&(e=s.DefaultDraftBlockRenderMap.merge(e)),t.props.blockRenderMap&&(e=e.merge(t.props.blockRenderMap)),e},this.resolveAccessibilityProps=function(){var e={};return[t.props].concat(v(t.resolvePlugins())).forEach((function(t){if("function"==typeof t.getAccessibilityProps){var r=t.getAccessibilityProps(),o={};void 0===e.ariaHasPopup?o.ariaHasPopup=r.ariaHasPopup:"true"===r.ariaHasPopup&&(o.ariaHasPopup="true"),void 0===e.ariaExpanded?o.ariaExpanded=r.ariaExpanded:!0===r.ariaExpanded&&(o.ariaExpanded=!0),e=n({},e,r,o)}})),e}};e.default=_},708449:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=r(909041);e.default=function(t){var e=t.getCurrentContent().getBlockMap(),r=e.last().getKey(),o=e.last().getLength(),i=new n.SelectionState({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o});return n.EditorState.acceptSelection(t,i)}},12295:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.default=["focus","blur","setMode","exitCurrentMode","restoreEditorDOM","setRenderGuard","removeRenderGuard","setClipboard","getClipboard","getEditorKey","update","onDragEnter","onDragLeave"]},825980:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=r(143393),o=a(r(100604)),i=a(r(514842));function a(t){return t&&t.__esModule?t:{default:t}}var u=function(t){return"function"==typeof t.getDecorations&&"function"==typeof t.getComponentForKey&&"function"==typeof t.getPropsForKey},s=function(t){var e=t.decorators,r=t.plugins;return(0,n.List)([{decorators:e}].concat(function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(r))).filter((function(t){return void 0!==t.decorators})).flatMap((function(t){return t.decorators}))};e.default=function(t,e,r){var n=s(t),a=(0,o.default)(n.filter((function(t){return!u(t)})),e,r),c=n.filter((function(t){return u(t)}));return new i.default(c.push(a))}},672586:(t,e,r)=>{e.ZP=void 0;var n=a(r(327817)),o=a(r(558299)),i=a(r(92690));function a(t){return t&&t.__esModule?t:{default:t}}e.ZP=i.default;n.default,o.default},558299:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];if(0===e.length)return function(t){return t};if(1===e.length)return e[0];var n=e[e.length-1];return function(){for(var t=n.apply(void 0,arguments),r=e.length-2;r>=0;r-=1){var o=e[r];t=o(t)}return t}}},327817:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=r(909041);e.default=function(t){return n.EditorState.createWithContent(n.ContentState.createFromText(t))}},819785:(t,e,r)=>{function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){o(t,e,r[e])}))}return t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(610329),a=r(704516),u=r(402641),s=r(767953),c=r(142307),l=r(314289),f=r(25027),p=r(168642),h=r(143393),d=r(861173),g=p("draft_tree_data_support"),y=g?s:u,v=h.List,m=h.Repeat,_={insertAtomicBlock:function(t,e,r){var o=t.getCurrentContent(),u=t.getSelection(),s=c.removeRange(o,u,"backward"),p=s.getSelectionAfter(),h=c.splitBlock(s,p),d=h.getSelectionAfter(),_=c.setBlockType(h,d,"atomic"),S=a.create({entity:e}),b={key:f(),type:"atomic",text:r,characterList:v(m(S,r.length))},w={key:f(),type:"unstyled"};g&&(b=n({},b,{nextSibling:w.key}),w=n({},w,{prevSibling:b.key}));var E=[new y(b),new y(w)],k=i.createFromArray(E),C=c.replaceWithFragment(_,d,k),x=C.merge({selectionBefore:u,selectionAfter:C.getSelectionAfter().set("hasFocus",!0)});return l.push(t,x,"insert-fragment")},moveAtomicBlock:function(t,e,r,n){var o,i=t.getCurrentContent(),a=t.getSelection();if("before"===n||"after"===n){var u=i.getBlockForKey("before"===n?r.getStartKey():r.getEndKey());o=d(i,e,u,n)}else{var s=c.removeRange(i,r,"backward"),f=s.getSelectionAfter(),p=s.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())o=d(s,e,p,"before");else if(f.getEndOffset()===p.getLength())o=d(s,e,p,"after");else{var h=c.splitBlock(s,f),g=h.getSelectionAfter(),y=h.getBlockForKey(g.getFocusKey());o=d(h,e,y,"before")}}var v=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return l.push(t,v,"move-block")}};t.exports=_},610329:(t,e,r)=>{var n=r(143393).OrderedMap,o={createFromArray:function(t){return n(t.map((function(t){return[t.getKey(),t]})))}};t.exports=o},534365:(t,e,r)=>{function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(629407),i=r(496495),a=r(143393),u=a.List,s=a.Repeat,c=a.Record,l=function(){return!0},f=c({start:null,end:null}),p=c({start:null,end:null,decoratorKey:null,leaves:null}),h={generate:function(t,e,r){var n=e.getLength();if(!n)return u.of(new p({start:0,end:0,decoratorKey:null,leaves:u.of(new f({start:0,end:0}))}));var i=[],a=r?r.getDecorations(e,t):u(s(null,n)),c=e.getCharacterList();return o(a,g,l,(function(t,e){i.push(new p({start:t,end:e,decoratorKey:a.get(t),leaves:d(c.slice(t,e).toList(),t)}))})),u(i)},fromJS:function(t){var e=t.leaves,r=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,["leaves"]);return new p(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){n(t,e,r[e])}))}return t}({},r,{leaves:null!=e?u(Array.isArray(e)?e:i(e)).map((function(t){return f(t)})):null}))}};function d(t,e){var r=[],n=t.map((function(t){return t.getStyle()})).toList();return o(n,g,l,(function(t,n){r.push(new f({start:t+e,end:n+e}))})),u(r)}function g(t,e){return t===e}t.exports=h},704516:(t,e,r)=>{var n=r(143393),o=n.Map,i=n.OrderedSet,a=n.Record,u=i(),s={style:u,entity:null},c=function(t){var e,r;function n(){return t.apply(this,arguments)||this}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var a=n.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(t){return this.getStyle().includes(t)},n.applyStyle=function(t,e){var r=t.set("style",t.getStyle().add(e));return n.create(r)},n.removeStyle=function(t,e){var r=t.set("style",t.getStyle().remove(e));return n.create(r)},n.applyEntity=function(t,e){var r=t.getEntity()===e?t:t.set("entity",e);return n.create(r)},n.create=function(t){if(!t)return l;var e=o({style:u,entity:null}).merge(t),r=f.get(e);if(r)return r;var i=new n(e);return f=f.set(e,i),i},n.fromJS=function(t){var e=t.style,r=t.entity;return new n({style:Array.isArray(e)?i(e):e,entity:Array.isArray(r)?i(r):r})},n}(a(s)),l=new c,f=o([[o(s),l]]);c.EMPTY=l,t.exports=c},225369:(t,e,r)=>{var n=r(143393).List,o=function(){function t(t){var e,r,n;n=void 0,(r="_decorators")in(e=this)?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,this._decorators=t.slice()}var e=t.prototype;return e.getDecorations=function(t,e){var r=Array(t.getText().length).fill(null);return this._decorators.forEach((function(n,o){var i=0;(0,n.strategy)(t,(function(t,e){(function(t,e,r){for(var n=e;n<r;n++)if(null!=t[n])return!1;return!0})(r,t,e)&&(!function(t,e,r,n){for(var o=e;o<r;o++)t[o]=n}(r,t,e,o+"."+i),i++)}),e)})),n(r)},e.getComponentForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].component},e.getPropsForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].props},t}();t.exports=o},402641:(t,e,r)=>{var n=r(704516),o=r(629407),i=r(143393),a=i.List,u=i.Map,s=i.OrderedSet,c=i.Record,l=i.Repeat,f=s(),p=c({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:u()}),h=function(t){var e,r;function i(e){return t.call(this,function(t){if(!t)return t;var e=t.characterList,r=t.text;return r&&!e&&(t.characterList=a(l(n.EMPTY,r.length))),t}(e))||this}r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var u=i.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(t){var e=this.getCharacterList().get(t);return e?e.getStyle():f},u.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},u.findStyleRanges=function(t,e){o(this.getCharacterList(),d,t,e)},u.findEntityRanges=function(t,e){o(this.getCharacterList(),g,t,e)},i}(p);function d(t,e){return t.getStyle()===e.getStyle()}function g(t,e){return t.getEntity()===e.getEntity()}t.exports=h},767953:(t,e,r)=>{var n=r(704516),o=r(629407),i=r(143393),a=i.List,u=i.Map,s=i.OrderedSet,c=i.Record,l=i.Repeat,f=s(),p={parent:null,characterList:a(),data:u(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},h=function(t,e){return t.getStyle()===e.getStyle()},d=function(t,e){return t.getEntity()===e.getEntity()},g=function(t){if(!t)return t;var e=t.characterList,r=t.text;return r&&!e&&(t.characterList=a(l(n.EMPTY,r.length))),t},y=function(t){var e,r;function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return t.call(this,g(e))||this}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i=n.prototype;return i.getKey=function(){return this.get("key")},i.getType=function(){return this.get("type")},i.getText=function(){return this.get("text")},i.getCharacterList=function(){return this.get("characterList")},i.getLength=function(){return this.getText().length},i.getDepth=function(){return this.get("depth")},i.getData=function(){return this.get("data")},i.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():f},i.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},i.getChildKeys=function(){return this.get("children")},i.getParentKey=function(){return this.get("parent")},i.getPrevSiblingKey=function(){return this.get("prevSibling")},i.getNextSiblingKey=function(){return this.get("nextSibling")},i.findStyleRanges=function(t,e){o(this.getCharacterList(),h,t,e)},i.findEntityRanges=function(t,e){o(this.getCharacterList(),d,t,e)},n}(c(p));t.exports=y},66912:(t,e,r)=>{function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){o(t,e,r[e])}))}return t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(610329),a=r(704516),u=r(402641),s=r(767953),c=r(482222),l=r(325110),f=r(25027),p=r(496495),h=r(168642),d=r(143393),g=r(855283),y=d.List,v=d.Record,m=d.Repeat,_=d.Map,S=d.OrderedMap,b=v({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),w=h("draft_tree_data_support")?s:u,E=function(t){var e,r;function o(){return t.apply(this,arguments)||this}r=t,(e=o).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var u=o.prototype;return u.getEntityMap=function(){return c},u.getBlockMap=function(){return this.get("blockMap")},u.getSelectionBefore=function(){return this.get("selectionBefore")},u.getSelectionAfter=function(){return this.get("selectionAfter")},u.getBlockForKey=function(t){return this.getBlockMap().get(t)},u.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil((function(e){return e===t})).skip(1).first()},u.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil((function(e){return e===t})).skip(1).first()},u.getBlockAfter=function(t){return this.getBlockMap().skipUntil((function(e,r){return r===t})).skip(1).first()},u.getBlockBefore=function(t){return this.getBlockMap().reverse().skipUntil((function(e,r){return r===t})).skip(1).first()},u.getBlocksAsArray=function(){return this.getBlockMap().toArray()},u.getFirstBlock=function(){return this.getBlockMap().first()},u.getLastBlock=function(){return this.getBlockMap().last()},u.getPlainText=function(t){return this.getBlockMap().map((function(t){return t?t.getText():""})).join(t||"\n")},u.getLastCreatedEntityKey=function(){return c.__getLastCreatedEntityKey()},u.hasText=function(){var t=this.getBlockMap();return t.size>1||escape(t.first().getText()).replace(/%u200B/g,"").length>0},u.createEntity=function(t,e,r){return c.__create(t,e,r),this},u.mergeEntityData=function(t,e){return c.__mergeData(t,e),this},u.replaceEntityData=function(t,e){return c.__replaceData(t,e),this},u.addEntity=function(t){return c.__add(t),this},u.getEntity=function(t){return c.__get(t)},u.getAllEntities=function(){return c.__getAll()},u.loadWithEntities=function(t){return c.__loadWithEntities(t)},o.createFromBlockArray=function(t,e){var r=Array.isArray(t)?t:t.contentBlocks,n=i.createFromArray(r),a=n.isEmpty()?new l:l.createEmpty(n.first().getKey());return new o({blockMap:n,entityMap:e||c,selectionBefore:a,selectionAfter:a})},o.createFromText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,r=t.split(e),n=r.map((function(t){return t=g(t),new w({key:f(),text:t,type:"unstyled",characterList:y(m(a.EMPTY,t.length))})}));return o.createFromBlockArray(n)},o.fromJS=function(t){return new o(n({},t,{blockMap:S(t.blockMap).map(o.createContentBlockFromJS),selectionBefore:new l(t.selectionBefore),selectionAfter:new l(t.selectionAfter)}))},o.createContentBlockFromJS=function(t){var e=t.characterList;return new w(n({},t,{data:_(t.data),characterList:null!=e?y((Array.isArray(e)?e:p(e)).map((function(t){return a.fromJS(t)}))):void 0}))},o}(b);t.exports=E},513483:(t,e,r)=>{var n=r(704516),o=r(143393).Map,i={add:function(t,e,r){return a(t,e,r,!0)},remove:function(t,e,r){return a(t,e,r,!1)}};function a(t,e,r,i){var a=t.getBlockMap(),u=e.getStartKey(),s=e.getStartOffset(),c=e.getEndKey(),l=e.getEndOffset(),f=a.skipUntil((function(t,e){return e===u})).takeUntil((function(t,e){return e===c})).concat(o([[c,a.get(c)]])).map((function(t,e){var o,a;u===c?(o=s,a=l):(o=e===u?s:0,a=e===c?l:t.getLength());for(var f,p=t.getCharacterList();o<a;)f=p.get(o),p=p.set(o,i?n.applyStyle(f,r):n.removeStyle(f,r)),o++;return t.set("characterList",p)}));return t.merge({blockMap:a.merge(f),selectionBefore:e,selectionAfter:e})}t.exports=i},777907:(t,e,r)=>{function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(977249),i=r(169270),a=r(548083),u=r(143393),s=r(152286),c=r(748899),l=u.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=o.isBrowser("IE <= 11"),h=function(){function t(t){var e=this;n(this,"observer",void 0),n(this,"container",void 0),n(this,"mutations",void 0),n(this,"onCharData",void 0),this.container=t,this.mutations=l();var r=a(t);r.MutationObserver&&!p?this.observer=new r.MutationObserver((function(t){return e.registerMutations(t)})):this.onCharData=function(t){t.target instanceof Node||s(!1),e.registerMutation({type:"characterData",target:t.target})}}var e=t.prototype;return e.start=function(){this.observer?this.observer.observe(this.container,f):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},e.stopAndFlushMutations=function(){var t=this.observer;t?(this.registerMutations(t.takeRecords()),t.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var e=this.mutations;return this.mutations=l(),e},e.registerMutations=function(t){for(var e=0;e<t.length;e++)this.registerMutation(t[e])},e.getMutationTextContent=function(t){var e=t.type,r=t.target,n=t.removedNodes;if("characterData"===e){if(""!==r.textContent)return p?r.textContent.replace("\n",""):r.textContent}else if("childList"===e){if(n&&n.length)return"";if(""!==r.textContent)return r.textContent}return null},e.registerMutation=function(t){var e=this.getMutationTextContent(t);if(null!=e){var r=c(i(t.target));this.mutations=this.mutations.set(r,e)}},t}();t.exports=h},600526:(t,e,r)=>{var n=r(667294),o=r(255484),i=(0,r(143393).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:n.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:n.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:n.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});t.exports=i},737619:t=>{t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},909041:(t,e,r)=>{var n=r(819785),o=r(610329),i=r(704516),a=r(225369),u=r(402641),s=r(66912),c=r(600526),l=r(737619),f=r(387210),p=r(937898),h=r(482222),d=r(142307),g=r(639006),y=r(314289),v=r(847387),m=r(870054),_=r(941947),S=r(325110),b=r(879981),w=r(399607),E=r(25027),k=r(441714),C=r(196629),x={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:h,EntityInstance:g,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:u,ContentState:s,RawDraftContentState:m,SelectionState:S,AtomicBlockUtils:n,KeyBindingUtil:v,Modifier:d,RichUtils:_,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:l,convertFromHTML:r(267841),convertFromRaw:w,convertToRaw:b,genKey:E,getDefaultKeyBinding:k,getVisibleSelectionRect:C};t.exports=x},387210:(t,e,r)=>{var n=r(727418);function o(){return(o=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){u(t,e,r[e])}))}return t}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var c=r(600526),l=r(737619),f=r(433418),p=r(487791),h=r(561494),d=r(519394),g=r(804083),y=r(528094),v=r(505880),m=r(314289),_=r(667294),S=r(292347),b=r(326499),w=r(977249),E=r(255484),k=r(25027),C=r(441714),x=r(422552),O=r(168642),D=r(152286),M=r(620717),K=r(748899),A=w.isBrowser("IE"),T=!A,I={edit:d,composite:f,drag:h,cut:null,render:null},B=!1,P=function(t){function e(){return t.apply(this,arguments)||this}s(e,t);var r=e.prototype;return r.render=function(){return null},r.componentDidMount=function(){this._update()},r.componentDidUpdate=function(){this._update()},r._update=function(){var t=this.props.editor;t._latestEditorState=this.props.editorState,t._blockSelectEvents=!0},e}(_.Component),R=function(t){function e(e){var r;return u(a(r=t.call(this,e)||this),"_blockSelectEvents",void 0),u(a(r),"_clipboard",void 0),u(a(r),"_handler",void 0),u(a(r),"_dragCount",void 0),u(a(r),"_internalDrag",void 0),u(a(r),"_editorKey",void 0),u(a(r),"_placeholderAccessibilityID",void 0),u(a(r),"_latestEditorState",void 0),u(a(r),"_latestCommittedEditorState",void 0),u(a(r),"_pendingStateFromBeforeInput",void 0),u(a(r),"_onBeforeInput",void 0),u(a(r),"_onBlur",void 0),u(a(r),"_onCharacterData",void 0),u(a(r),"_onCompositionEnd",void 0),u(a(r),"_onCompositionStart",void 0),u(a(r),"_onCopy",void 0),u(a(r),"_onCut",void 0),u(a(r),"_onDragEnd",void 0),u(a(r),"_onDragOver",void 0),u(a(r),"_onDragStart",void 0),u(a(r),"_onDrop",void 0),u(a(r),"_onInput",void 0),u(a(r),"_onFocus",void 0),u(a(r),"_onKeyDown",void 0),u(a(r),"_onKeyPress",void 0),u(a(r),"_onKeyUp",void 0),u(a(r),"_onMouseDown",void 0),u(a(r),"_onMouseUp",void 0),u(a(r),"_onPaste",void 0),u(a(r),"_onSelect",void 0),u(a(r),"editor",void 0),u(a(r),"editorContainer",void 0),u(a(r),"focus",void 0),u(a(r),"blur",void 0),u(a(r),"setMode",void 0),u(a(r),"exitCurrentMode",void 0),u(a(r),"restoreEditorDOM",void 0),u(a(r),"setClipboard",void 0),u(a(r),"getClipboard",void 0),u(a(r),"getEditorKey",void 0),u(a(r),"update",void 0),u(a(r),"onDragEnter",void 0),u(a(r),"onDragLeave",void 0),u(a(r),"_handleEditorContainerRef",(function(t){r.editorContainer=t,r.editor=null!==t?t.firstChild:null})),u(a(r),"focus",(function(t){var e=r.props.editorState,n=e.getSelection().getHasFocus(),o=r.editor;if(o){var i=b.getScrollParent(o),a=t||x(i),u=a.x,s=a.y;M(o)||D(!1),o.focus(),i===window?window.scrollTo(u,s):S.setTop(i,s),n||r.update(m.forceSelection(e,e.getSelection()))}})),u(a(r),"blur",(function(){var t=r.editor;t&&(M(t)||D(!1),t.blur())})),u(a(r),"setMode",(function(t){var e=r.props,n=e.onPaste,o=e.onCut,a=e.onCopy,u=i({},I.edit);n&&(u.onPaste=n),o&&(u.onCut=o),a&&(u.onCopy=a);var s=i({},I,{edit:u});r._handler=s[t]})),u(a(r),"exitCurrentMode",(function(){r.setMode("edit")})),u(a(r),"restoreEditorDOM",(function(t){r.setState({contentsKey:r.state.contentsKey+1},(function(){r.focus(t)}))})),u(a(r),"setClipboard",(function(t){r._clipboard=t})),u(a(r),"getClipboard",(function(){return r._clipboard})),u(a(r),"update",(function(t){r._latestEditorState=t,r.props.onChange(t)})),u(a(r),"onDragEnter",(function(){r._dragCount++})),u(a(r),"onDragLeave",(function(){r._dragCount--,0===r._dragCount&&r.exitCurrentMode()})),r._blockSelectEvents=!1,r._clipboard=null,r._handler=null,r._dragCount=0,r._editorKey=e.editorKey||k(),r._placeholderAccessibilityID="placeholder-"+r._editorKey,r._latestEditorState=e.editorState,r._latestCommittedEditorState=e.editorState,r._onBeforeInput=r._buildHandler("onBeforeInput"),r._onBlur=r._buildHandler("onBlur"),r._onCharacterData=r._buildHandler("onCharacterData"),r._onCompositionEnd=r._buildHandler("onCompositionEnd"),r._onCompositionStart=r._buildHandler("onCompositionStart"),r._onCopy=r._buildHandler("onCopy"),r._onCut=r._buildHandler("onCut"),r._onDragEnd=r._buildHandler("onDragEnd"),r._onDragOver=r._buildHandler("onDragOver"),r._onDragStart=r._buildHandler("onDragStart"),r._onDrop=r._buildHandler("onDrop"),r._onInput=r._buildHandler("onInput"),r._onFocus=r._buildHandler("onFocus"),r._onKeyDown=r._buildHandler("onKeyDown"),r._onKeyPress=r._buildHandler("onKeyPress"),r._onKeyUp=r._buildHandler("onKeyUp"),r._onMouseDown=r._buildHandler("onMouseDown"),r._onMouseUp=r._buildHandler("onMouseUp"),r._onPaste=r._buildHandler("onPaste"),r._onSelect=r._buildHandler("onSelect"),r.getEditorKey=function(){return r._editorKey},r.state={contentsKey:0},r}s(e,t);var n=e.prototype;return n._buildHandler=function(t){var e=this;return function(r){if(!e.props.readOnly){var n=e._handler&&e._handler[t];n&&(g?g((function(){return n(e,r)})):n(e,r))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var t={text:K(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return _.createElement(y,t)}return null},n._renderARIADescribedBy=function(){var t=this.props.ariaDescribedBy||"",e=this._showPlaceholder()?this._placeholderAccessibilityID:"";return t.replace("{{editor_id_placeholder}}",e)||void 0},n.render=function(){var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,a=t.customStyleFn,u=t.customStyleMap,s=t.editorState,c=t.preventScroll,f=t.readOnly,h=t.textAlignment,d=t.textDirectionality,g=E({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===h,"DraftEditor/alignRight":"right"===h,"DraftEditor/alignCenter":"center"===h}),y=this.props.role||"textbox",v="combobox"===y?!!this.props.ariaExpanded:null,m={blockRenderMap:e,blockRendererFn:r,blockStyleFn:n,customStyleMap:i({},l,u),customStyleFn:a,editorKey:this._editorKey,editorState:s,preventScroll:c,textDirectionality:d};return _.createElement("div",{className:g},this._renderPlaceholder(),_.createElement("div",{className:E("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},_.createElement("div",{"aria-activedescendant":f?null:this.props.ariaActiveDescendantID,"aria-autocomplete":f?null:this.props.ariaAutoComplete,"aria-controls":f?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":f?null:v,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":f?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:E({notranslate:!f,"public/DraftEditor/content":!0}),contentEditable:!f,"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:f?null:y,spellCheck:T&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},_.createElement(P,{editor:this,editorState:s}),_.createElement(p,o({},m,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!B&&O("draft_ods_enabled")&&(B=!0,v.initODS()),this.setMode("edit"),A&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):r.g.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},e}(_.Component);u(R,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:c,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:C,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),t.exports=R},937898:(t,e,r)=>{var n=r(727418);function o(){return(o=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=r(442282),s=r(822146),c=r(667294),l=r(292347),f=r(326499),p=r(30275),h=r(246232),d=r(255484),g=r(580386),y=r(422552),v=r(442620),m=r(152286),_=r(620717),S=r(748899),b=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},w=function(t){var e,r;function n(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return a(i(e=t.call.apply(t,[this].concat(n))||this),"_node",void 0),e}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var w=n.prototype;return w.shouldComponentUpdate=function(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||b(t.selection,t.block.getKey())&&t.forceSelection},w.componentDidMount=function(){if(!this.props.preventScroll){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var r=this._node;if(null!=r){var n,o=f.getScrollParent(r),i=y(o);if(o===window){var a=g(r);(n=a.y+a.height-v().height)>0&&window.scrollTo(i.x,i.y+n+10)}else{_(r)||m(!1),(n=r.offsetHeight+r.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&l.setTop(o,l.getTop(o)+n+10)}}}}},w._renderChildren=function(){var t=this,e=this.props.block,r=e.getKey(),n=e.getText(),i=this.props.tree.size-1,a=b(this.props.selection,r);return this.props.tree.map((function(l,f){var d=l.get("leaves");if(0===d.size)return null;var g=d.size-1,y=d.map((function(o,l){var p=s.encode(r,f,l),h=o.get("start"),d=o.get("end");return c.createElement(u,{key:p,offsetKey:p,block:e,start:h,selection:a?t.props.selection:null,forceSelection:t.props.forceSelection,text:n.slice(h,d),styleSet:e.getInlineStyleAt(h),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:f===i&&l===g})})).toArray(),v=l.get("decoratorKey");if(null==v)return y;if(!t.props.decorator)return y;var m=S(t.props.decorator),_=m.getComponentForKey(v);if(!_)return y;var b=m.getPropsForKey(v),w=s.encode(r,f,0),E=d.first().get("start"),k=d.last().get("end"),C=n.slice(E,k),x=e.getEntityAt(l.get("start")),O=h.getHTMLDirIfDifferent(p.getDirection(C),t.props.direction),D={contentState:t.props.contentState,decoratedText:C,dir:O,start:E,end:k,blockKey:r,entityKey:x,offsetKey:w};return c.createElement(_,o({},b,D,{key:w}),y)})).toArray()},w.render=function(){var t=this,e=this.props,r=e.direction,n=e.offsetKey,o=d({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===r,"public/DraftStyleDefault/rtl":"RTL"===r});return c.createElement("div",{"data-offset-key":n,className:o,ref:function(e){return t._node=e}},this._renderChildren())},n}(c.Component);t.exports=w},425821:(t,e,r)=>{var n=r(727418);function o(){return(o=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){u(t,e,r[e])}))}return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=r(859513),c=r(822146),l=r(667294),f=r(292347),p=r(326499),h=r(580386),d=r(422552),g=r(442620),y=r(143393),v=r(152286),m=r(620717),_=(y.List,function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e}),S=function(t,e){var r=e.get(t.getType())||e.get("unstyled"),n=r.wrapper;return{Element:r.element||e.get("unstyled").element,wrapperTemplate:n}},b=function(t,e){var r=e(t);return r?{CustomComponent:r.component,customProps:r.props,customEditable:r.editable}:{}},w=function(t,e,r,n,o,i){var u={"data-block":!0,"data-editor":e,"data-offset-key":r,key:t.getKey(),ref:i},s=n(t);return s&&(u.className=s),void 0!==o.customEditable&&(u=a({},u,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),u},E=function(t){var e,r;function n(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return u(i(e=t.call.apply(t,[this].concat(n))||this),"wrapperRef",l.createRef()),e}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var y=n.prototype;return y.shouldComponentUpdate=function(t){var e=this.props,r=e.block,n=e.direction,o=e.tree,i=!r.getChildKeys().isEmpty(),a=r!==t.block||o!==t.tree||n!==t.direction||_(t.selection,t.block.getKey())&&t.forceSelection;return i||a},y.componentDidMount=function(){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var r=this.wrapperRef.current;if(r){var n,o=p.getScrollParent(r),i=d(o);if(o===window){var a=h(r);(n=a.y+a.height-g().height)>0&&window.scrollTo(i.x,i.y+n+10)}else{m(r)||v(!1);var u=r;(n=u.offsetHeight+u.offsetTop-(o.offsetHeight+i.y))>0&&f.setTop(o,f.getTop(o)+n+10)}}}},y.render=function(){var t=this,e=this.props,r=e.block,i=e.blockRenderMap,u=e.blockRendererFn,f=e.blockStyleFn,p=e.contentState,h=e.decorator,d=e.editorKey,g=e.editorState,y=e.customStyleFn,v=e.customStyleMap,m=e.direction,E=e.forceSelection,k=e.selection,C=e.tree,x=null;r.children.size&&(x=r.children.reduce((function(e,r){var o=c.encode(r,0,0),s=p.getBlockForKey(r),h=b(s,u),y=h.CustomComponent||n,v=S(s,i),m=v.Element,_=v.wrapperTemplate,E=w(s,d,o,f,h,null),k=a({},t.props,{tree:g.getBlockTree(r),blockProps:h.customProps,offsetKey:o,block:s});return e.push(l.createElement(m,E,l.createElement(y,k))),!_||function(t,e){var r=t.getNextSiblingKey();return!!r&&e.getBlockForKey(r).getType()===t.getType()}(s,p)||function(t,e,r){var n=[],o=!0,i=!1,a=void 0;try{for(var u,s=r.reverse()[Symbol.iterator]();!(o=(u=s.next()).done);o=!0){var f=u.value;if(f.type!==e)break;n.push(f)}}catch(d){i=!0,a=d}finally{try{o||null==s.return||s.return()}finally{if(i)throw a}}r.splice(r.indexOf(n[0]),n.length+1);var p=n.reverse(),h=p[0].key;r.push(l.cloneElement(t,{key:"".concat(h,"-wrap"),"data-offset-key":c.encode(h,0,0)},p))}(_,m,e),e}),[]));var O=r.getKey(),D=c.encode(O,0,0),M=b(r,u),K=M.CustomComponent,A=null!=K?l.createElement(K,o({},this.props,{tree:g.getBlockTree(O),blockProps:M.customProps,offsetKey:D,block:r})):l.createElement(s,{block:r,children:x,contentState:p,customStyleFn:y,customStyleMap:v,decorator:h,direction:m,forceSelection:E,hasSelection:_(k,O),selection:k,tree:C});if(r.getParentKey())return A;var T=S(r,i).Element,I=w(r,d,D,f,M,this.wrapperRef);return l.createElement(T,I,A)},n}(l.Component);t.exports=E},433418:(t,e,r)=>{var n=r(777907),o=r(142307),i=r(822146),a=r(314289),u=r(272938),s=r(977249),c=r(114507),l=r(384907),f=r(501244),p=r(42128),h=r(748899),d=s.isBrowser("IE"),g=!1,y=!1,v=null;var m={onCompositionStart:function(t){y=!0,function(t){v||(v=new n(l(t))).start()}(t)},onCompositionEnd:function(t){g=!1,y=!1,setTimeout((function(){g||m.resolveComposition(t)}),20)},onSelect:c,onKeyDown:function(t,e){if(!y)return m.resolveComposition(t),void t._onKeyDown(e);e.which!==u.RIGHT&&e.which!==u.LEFT||e.preventDefault()},onKeyPress:function(t,e){e.which===u.RETURN&&e.preventDefault()},resolveComposition:function(t){if(!y){var e=h(v).stopAndFlushMutations();v=null,g=!0;var r=a.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),e.size){var n=r.getCurrentContent();e.forEach((function(t,e){var u=i.decode(e),s=u.blockKey,c=u.decoratorKey,l=u.leafKey,f=r.getBlockTree(s).getIn([c,"leaves",l]),h=f.start,d=f.end,g=r.getSelection().merge({anchorKey:s,focusKey:s,anchorOffset:h,focusOffset:d,isBackward:!1}),y=p(n,g),v=n.getBlockForKey(s).getInlineStyleAt(h);n=o.replaceText(n,g,t,v,y),r=a.set(r,{currentContent:n})}));var u=f(r,l(t)).selectionState;t.restoreEditorDOM();var s=d?a.forceSelection(r,u):a.acceptSelection(r,u);t.update(a.push(s,n,"insert-characters"))}else t.update(r)}}};t.exports=m},488795:(t,e,r)=>{var n=r(727418);function o(){return(o=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){a(t,e,r[e])}))}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=r(937898),s=r(822146),c=r(667294),l=r(255484),f=r(749127),p=r(748899),h=function(t,e,r,n){return l({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===t,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===t,"public/DraftStyleDefault/reset":r,"public/DraftStyleDefault/depth0":0===e,"public/DraftStyleDefault/depth1":1===e,"public/DraftStyleDefault/depth2":2===e,"public/DraftStyleDefault/depth3":3===e,"public/DraftStyleDefault/depth4":e>=4,"public/DraftStyleDefault/listLTR":"LTR"===n,"public/DraftStyleDefault/listRTL":"RTL"===n})},d=function(t){var e,r;function n(){return t.apply(this,arguments)||this}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var a=n.prototype;return a.shouldComponentUpdate=function(t){var e=this.props.editorState,r=t.editorState;if(e.getDirectionMap()!==r.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=r.isInCompositionMode();if(e===r||null!==n&&r.getCurrentContent()===n||o&&i)return!1;var a=e.getCurrentContent(),u=r.getCurrentContent(),s=e.getDecorator(),c=r.getDecorator();return o!==i||a!==u||s!==c||r.mustForceSelection()},a.render=function(){for(var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,a=t.customStyleMap,l=t.customStyleFn,d=t.editorState,g=t.editorKey,y=t.preventScroll,v=t.textDirectionality,m=d.getCurrentContent(),_=d.getSelection(),S=d.mustForceSelection(),b=d.getDecorator(),w=p(d.getDirectionMap()),E=m.getBlocksAsArray(),k=[],C=null,x=null,O=0;O<E.length;O++){var D=E[O],M=D.getKey(),K=D.getType(),A=r(D),T=void 0,I=void 0,B=void 0;A&&(T=A.component,I=A.props,B=A.editable);var P=v||w.get(M),R=s.encode(M,0,0),L={contentState:m,block:D,blockProps:I,blockStyleFn:n,customStyleMap:a,customStyleFn:l,decorator:b,direction:P,forceSelection:S,offsetKey:R,preventScroll:y,selection:_,tree:d.getBlockTree(M)},F=e.get(K)||e.get("unstyled"),j=F.wrapper,N=F.element||e.get("unstyled").element,z=D.getDepth(),U="";if(n&&(U=n(D)),"li"===N)U=f(U,h(K,z,x!==j||null===C||z>C,P));var H=T||u,q={className:U,"data-block":!0,"data-editor":g,"data-offset-key":R,key:M};void 0!==B&&(q=i({},q,{contentEditable:B,suppressContentEditableWarning:!0}));var W=c.createElement(N,q,c.createElement(H,o({},L,{key:M})));k.push({block:W,wrapperTemplate:j,key:M,offsetKey:R}),C=j?D.getDepth():null,x=j}for(var V=[],J=0;J<k.length;){var G=k[J];if(G.wrapperTemplate){var X=[];do{X.push(k[J].block),J++}while(J<k.length&&k[J].wrapperTemplate===G.wrapperTemplate);var Y=c.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},X);V.push(Y)}else V.push(G.block),J++}return c.createElement("div",{"data-contents":"true"},V)},n}(c.Component);t.exports=d},487791:(t,e,r)=>{var n=r(168642)("draft_tree_data_support");t.exports=r(n?769459:488795)},769459:(t,e,r)=>{var n=r(727418);function o(){return(o=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var i=r(425821),a=r(822146),u=r(667294),s=r(748899),c=function(t){var e,r;function n(){return t.apply(this,arguments)||this}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var c=n.prototype;return c.shouldComponentUpdate=function(t){var e=this.props.editorState,r=t.editorState;if(e.getDirectionMap()!==r.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=r.isInCompositionMode();if(e===r||null!==n&&r.getCurrentContent()===n||o&&i)return!1;var a=e.getCurrentContent(),u=r.getCurrentContent(),s=e.getDecorator(),c=r.getDecorator();return o!==i||a!==u||s!==c||r.mustForceSelection()},c.render=function(){for(var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,c=t.customStyleMap,l=t.customStyleFn,f=t.editorState,p=t.editorKey,h=t.textDirectionality,d=f.getCurrentContent(),g=f.getSelection(),y=f.mustForceSelection(),v=f.getDecorator(),m=s(f.getDirectionMap()),_=[],S=d.getBlocksAsArray()[0];S;){var b=S.getKey(),w={blockRenderMap:e,blockRendererFn:r,blockStyleFn:n,contentState:d,customStyleFn:l,customStyleMap:c,decorator:v,editorKey:p,editorState:f,forceSelection:y,selection:g,block:S,direction:h||m.get(b),tree:f.getBlockTree(b)},E=(e.get(S.getType())||e.get("unstyled")).wrapper;_.push({block:u.createElement(i,o({key:b},w)),wrapperTemplate:E,key:b,offsetKey:a.encode(b,0,0)});var k=S.getNextSiblingKey();S=k?d.getBlockForKey(k):null}for(var C=[],x=0;x<_.length;){var O=_[x];if(O.wrapperTemplate){var D=[];do{D.push(_[x].block),x++}while(x<_.length&&_[x].wrapperTemplate===O.wrapperTemplate);var M=u.cloneElement(O.wrapperTemplate,{key:O.key+"-wrap","data-offset-key":O.offsetKey},D);C.push(M)}else C.push(O.block),x++}return u.createElement("div",{"data-contents":"true"},C)},n}(u.Component);t.exports=c},603259:(t,e,r)=>{var n=r(727418);function o(){return(o=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var i=r(822146),a=r(667294),u=r(30275),s=r(246232),c=function(t){var e,r;function n(){return t.apply(this,arguments)||this}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n.prototype.render=function(){var t=this.props,e=t.block,r=t.children,n=t.contentState,c=t.decorator,l=t.decoratorKey,f=t.direction,p=t.leafSet,h=t.text,d=e.getKey(),g=p.get("leaves"),y=c.getComponentForKey(l),v=c.getPropsForKey(l),m=i.encode(d,parseInt(l,10),0),_=h.slice(g.first().get("start"),g.last().get("end")),S=s.getHTMLDirIfDifferent(u.getDirection(_),f);return a.createElement(y,o({},v,{contentState:n,decoratedText:_,dir:S,key:m,entityKey:e.getEntityAt(p.get("start")),offsetKey:m}),r)},n}(a.Component);t.exports=c},561494:(t,e,r)=>{var n=r(446123),o=r(142307),i=r(314289),a=r(169270),u=r(575795),s=r(21738),c=r(794486),l=r(548083),f=r(342177),p=r(748899);var h={onDragEnd:function(t){t.exitCurrentMode(),d(t)},onDrop:function(t,e){var r=new n(e.nativeEvent.dataTransfer),l=t._latestEditorState,h=function(t,e){var r=null,n=null,o=u(t.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(t.x,t.y);r=i.startContainer,n=i.startOffset}else{if(!t.rangeParent)return null;r=t.rangeParent,n=t.rangeOffset}r=p(r),n=p(n);var s=p(a(r));return c(e,s,n,s,n)}(e.nativeEvent,l);if(e.preventDefault(),t._dragCount=0,t.exitCurrentMode(),null!=h){var y=r.getFiles();if(y.length>0){if(t.props.handleDroppedFiles&&f(t.props.handleDroppedFiles(h,y)))return;s(y,(function(e){e&&t.update(g(l,h,e))}))}else{var v=t._internalDrag?"internal":"external";t.props.handleDrop&&f(t.props.handleDrop(h,r,v))||(t._internalDrag?t.update(function(t,e){var r=o.moveText(t.getCurrentContent(),t.getSelection(),e);return i.push(t,r,"insert-fragment")}(l,h)):t.update(g(l,h,r.getText()))),d(t)}}}};function d(t){t._internalDrag=!1;var e=t.editorContainer;if(e){var r=new MouseEvent("mouseup",{view:l(e),bubbles:!0,cancelable:!0});e.dispatchEvent(r)}}function g(t,e,r){var n=o.insertText(t.getCurrentContent(),e,r,t.getCurrentInlineStyle());return i.push(t,n,"insert-fragment")}t.exports=h},519394:(t,e,r)=>{var n=r(977249),o=r(426396),i=r(743421),a=r(506155),u=r(569328),s=r(273935),c=r(239499),l=r(980981),f=r(562186),p=r(429971),h=r(946397),d=r(206089),g=r(114507),y=n.isBrowser("Chrome"),v=n.isBrowser("Firefox"),m=y||v?g:function(t){},_={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:u,onCut:s,onDragOver:c,onDragStart:l,onFocus:f,onInput:p,onKeyDown:h,onPaste:d,onSelect:g,onMouseUp:m,onKeyUp:m};t.exports=_},804083:(t,e,r)=>{var n=r(973935).unstable_flushControlled;t.exports=n},442282:(t,e,r)=>{var n=r(727418);function o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(480052),u=r(667294),s=r(152286),c=r(916581),l=r(845412).setDraftEditorSelection,f=function(t){var e,r;function f(){for(var e,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return i(o(e=t.call.apply(t,[this].concat(n))||this),"leaf",void 0),e}r=t,(e=f).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var p=f.prototype;return p._setSelection=function(){var t=this.props.selection;if(null!=t&&t.getHasFocus()){var e=this.props,r=e.block,n=e.start,o=e.text,i=r.getKey(),a=n+o.length;if(t.hasEdgeWithin(i,n,a)){var u=this.leaf;u||s(!1);var f,p=u.firstChild;p||s(!1),p.nodeType===Node.TEXT_NODE?f=p:c(p)?f=u:(f=p.firstChild)||s(!1),l(t,f,i,n,a)}}},p.shouldComponentUpdate=function(t){var e=this.leaf;return e||s(!1),e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection},p.componentDidUpdate=function(){this._setSelection()},p.componentDidMount=function(){this._setSelection()},p.render=function(){var t=this,e=this.props.block,r=this.props.text;r.endsWith("\n")&&this.props.isLast&&(r+="\n");var o=this.props,i=o.customStyleMap,s=o.customStyleFn,c=o.offsetKey,l=o.styleSet,f=l.reduce((function(t,e){var r={},o=i[e];return void 0!==o&&t.textDecoration!==o.textDecoration&&(r.textDecoration=[t.textDecoration,o.textDecoration].join(" ").trim()),n(t,o,r)}),{});if(s){var p=s(l,e);f=n(f,p)}return u.createElement("span",{"data-offset-key":c,ref:function(e){return t.leaf=e},style:f},u.createElement(a,null,r))},f}(u.Component);t.exports=f},859513:(t,e,r)=>{var n=r(603259),o=r(442282),i=r(822146),a=r(143393),u=r(667294),s=r(255484),c=(a.List,function(t){var e,r;function a(){return t.apply(this,arguments)||this}return r=t,(e=a).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,a.prototype.render=function(){var t=this.props,e=t.block,r=t.contentState,a=t.customStyleFn,c=t.customStyleMap,l=t.decorator,f=t.direction,p=t.forceSelection,h=t.hasSelection,d=t.selection,g=t.tree,y=e.getKey(),v=e.getText(),m=g.size-1,_=this.props.children||g.map((function(t,s){var g=t.get("decoratorKey"),_=t.get("leaves"),S=_.size-1,b=_.map((function(t,r){var n=i.encode(y,s,r),l=t.get("start"),f=t.get("end");return u.createElement(o,{key:n,offsetKey:n,block:e,start:l,selection:h?d:null,forceSelection:p,text:v.slice(l,f),styleSet:e.getInlineStyleAt(l),customStyleMap:c,customStyleFn:a,isLast:g===m&&r===S})})).toArray();return g&&l?u.createElement(n,{block:e,children:b,contentState:r,decorator:l,decoratorKey:g,direction:f,leafSet:t,text:v,key:s}):b})).toArray();return u.createElement("div",{"data-offset-key":i.encode(y,0,0),className:s({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},_)},a}(u.Component));t.exports=c},528094:(t,e,r)=>{var n=r(667294),o=r(255484),i=function(t){var e,r;function i(){return t.apply(this,arguments)||this}r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var a=i.prototype;return a.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},a.render=function(){var t=this.props.editorState.getSelection().getHasFocus(),e=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":t});return n.createElement("div",{className:e},n.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(n.Component);t.exports=i},480052:(t,e,r)=>{function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(667294),a=r(977249),u=r(152286),s=r(684368),c=a.isBrowser("IE <= 11");var l=function(t){var e,r;function a(e){var r;return o(n(r=t.call(this,e)||this),"_forceFlag",void 0),o(n(r),"_node",void 0),r._forceFlag=!1,r}r=t,(e=a).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var l=a.prototype;return l.shouldComponentUpdate=function(t){var e=this._node,r=""===t.children;s(e)||u(!1);var n=e;return r?!function(t){return c?"\n"===t.textContent:"BR"===t.tagName}(n):n.textContent!==t.children},l.componentDidMount=function(){this._forceFlag=!this._forceFlag},l.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},l.render=function(){var t,e=this;return""===this.props.children?this._forceFlag?(t=function(t){return e._node=t},c?i.createElement("span",{key:"A","data-text":"true",ref:t},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:t})):function(t){return c?i.createElement("span",{key:"B","data-text":"true",ref:t},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:t})}((function(t){return e._node=t})):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return e._node=t}},this.props.children)},a}(i.Component);t.exports=l},505880:t=>{t.exports={initODS:function(){},handleExtensionCausedError:function(){}}},482222:(t,e,r)=>{function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(639006),i=r(143393),a=r(152286),u=r(376363),s=(0,i.Map)(),c=u();function l(t,e){console.warn("WARNING: "+t+' will be deprecated soon!\nPlease use "'+e+'" instead.')}var f={getLastCreatedEntityKey:function(){return l("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),f.__getLastCreatedEntityKey()},create:function(t,e,r){return l("DraftEntity.create","contentState.createEntity"),f.__create(t,e,r)},add:function(t){return l("DraftEntity.add","contentState.addEntity"),f.__add(t)},get:function(t){return l("DraftEntity.get","contentState.getEntity"),f.__get(t)},__getAll:function(){return s},__loadWithEntities:function(t){s=t,c=u()},mergeData:function(t,e){return l("DraftEntity.mergeData","contentState.mergeEntityData"),f.__mergeData(t,e)},replaceData:function(t,e){return l("DraftEntity.replaceData","contentState.replaceEntityData"),f.__replaceData(t,e)},__getLastCreatedEntityKey:function(){return c},__create:function(t,e,r){return f.__add(new o({type:t,mutability:e,data:r||{}}))},__add:function(t){return c=u(),s=s.set(c,t),c},__get:function(t){var e=s.get(t);return e||a(!1),e},__mergeData:function(t,e){var r=f.__get(t),o=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){n(t,e,r[e])}))}return t}({},r.getData(),e),i=r.set("data",o);return s=s.set(t,i),i},__replaceData:function(t,e){var r=f.__get(t).set("data",e);return s=s.set(t,r),r}};t.exports=f},639006:(t,e,r)=>{var n=function(t){var e,r;function n(){return t.apply(this,arguments)||this}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;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,r(143393).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));t.exports=n},705195:t=>{t.exports={getRemovalRange:function(t,e,r,n,o){var i=r.split(" ");i=i.map((function(t,e){if("forward"===o){if(e>0)return" "+t}else if(e<i.length-1)return t+" ";return t}));for(var a,u=n,s=null,c=null,l=0;l<i.length;l++){if(t<(a=u+i[l].length)&&u<e)null!==s||(s=u),c=a;else if(null!==s)break;u=a}var f=n+r.length,p=s===n,h=c===f;return(!p&&h||p&&!h)&&("forward"===o?c!==f&&c++:s!==n&&s--),{start:s,end:c}}}},297432:t=>{t.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},142307:(t,e,r)=>{var n=r(704516),o=r(513483),i=r(368750),a=r(581446),u=r(388687),s=r(143393),c=r(354542),l=r(18467),f=r(152286),p=r(157429),h=r(914017),d=r(254879),g=r(236043),y=s.OrderedSet,v={replaceText:function(t,e,r,o,i){var a=h(t,e),u=d(a,e),s=n.create({style:o||y(),entity:i||null});return l(u,u.getSelectionAfter(),r,s)},insertText:function(t,e,r,n,o){return e.isCollapsed()||f(!1),v.replaceText(t,e,r,n,o)},moveText:function(t,e,r){var n=u(t,e),o=v.removeRange(t,e,"backward");return v.replaceWithFragment(o,r,n)},replaceWithFragment:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=h(t,e),i=d(o,e);return c(i,i.getSelectionAfter(),r,n)},removeRange:function(t,e,r){var n,o,i,u;e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),n=e.getAnchorKey(),o=e.getFocusKey(),i=t.getBlockForKey(n),u=t.getBlockForKey(o);var s=e.getStartOffset(),c=e.getEndOffset(),l=i.getEntityAt(s),f=u.getEntityAt(c-1);if(n===o&&l&&l===f){var p=a(t.getEntityMap(),i,u,e,r);return d(t,p)}var g=h(t,e);return d(g,e)},splitBlock:function(t,e){var r=h(t,e),n=d(r,e);return g(n,n.getSelectionAfter())},applyInlineStyle:function(t,e,r){return o.add(t,e,r)},removeInlineStyle:function(t,e,r){return o.remove(t,e,r)},setBlockType:function(t,e,r){return p(t,e,(function(t){return t.merge({type:r,depth:0})}))},setBlockData:function(t,e,r){return p(t,e,(function(t){return t.merge({data:r})}))},mergeBlockData:function(t,e,r){return p(t,e,(function(t){return t.merge({data:t.getData().merge(r)})}))},applyEntity:function(t,e,r){var n=h(t,e);return i(n,e,r)}};t.exports=v},822146:t=>{var e="-",r={encode:function(t,r,n){return t+e+r+e+n},decode:function(t){var r=t.split(e).reverse(),n=r[0],o=r[1];return{blockKey:r.slice(2).reverse().join(e),decoratorKey:parseInt(o,10),leafKey:parseInt(n,10)}}};t.exports=r},345712:(t,e,r)=>{function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(402641),i=r(767953),a=r(267841),u=r(25027),s=r(169769),c=r(168642),l=r(143393),f=r(855283),p=l.List,h=l.Repeat,d=c("draft_tree_data_support"),g=d?i:o,y={processHTML:function(t,e){return a(t,s,e)},processText:function(t,e,r){return t.reduce((function(t,o,i){o=f(o);var a=u(),s={key:a,type:r,text:o,characterList:p(h(e,o.length))};if(d&&0!==i){var c=i-1;s=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){n(t,e,r[e])}))}return t}({},s,{prevSibling:(t[c]=t[c].merge({nextSibling:a})).getKey()})}return t.push(new g(s)),t}),[])}};t.exports=y},773932:(t,e,r)=>{var n="\\s|(?![_])"+r(590295).getPunctuation(),o=new RegExp("^(?:"+n+")*(?:"+"['‘’]|(?!"+n+").)*(?:(?!"+n+").)"),i=new RegExp("(?:(?!"+n+").)(?:"+"['‘’]|(?!"+n+").)*(?:"+n+")*$");function a(t,e){var r=e?i.exec(t):o.exec(t);return r?r[0]:t}var u={getBackward:function(t){return a(t,!0)},getForward:function(t){return a(t,!1)}};t.exports=u},886155:t=>{var e={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}};t.exports=e},468957:(t,e,r)=>{function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){o(t,e,r[e])}))}return t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(25027),a=r(152286),u=function(t){if(!t||!t.type)return!1;var e=t.type;return"unordered-list-item"===e||"ordered-list-item"===e},s={fromRawTreeStateToRawState:function(t){var e=t.blocks,r=[];return Array.isArray(e)||a(!1),Array.isArray(e)&&e.length?(function(t,e){for(var r=[].concat(t).reverse();r.length;){var n=r.pop();e(n);var o=n.children;Array.isArray(o)||a(!1),r=r.concat([].concat(o.reverse()))}}(e,(function(t){var e=n({},t);u(t)&&(e.depth=e.depth||0,function(t){Array.isArray(t.children)&&(t.children=t.children.map((function(e){return e.type===t.type?n({},e,{depth:(t.depth||0)+1}):e})))}(t),null!=t.children&&t.children.length>0)||(delete e.children,r.push(e))})),t.blocks=r,n({},t,{blocks:r})):t},fromRawStateToRawTreeState:function(t){var e=[],r=[];return t.blocks.forEach((function(t){var o=u(t),a=t.depth||0,s=n({},t,{children:[]});if(o){var c=r[0];if(null==c&&0===a)e.push(s);else if(null==c||c.depth<a-1){var l={key:i(),text:"",depth:a-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};r.unshift(l),1===a?e.push(l):null!=c&&c.children.push(l),l.children.push(s)}else if(c.depth===a-1)c.children.push(s);else{for(;null!=c&&c.depth>=a;)r.shift(),c=r[0];a>0?c.children.push(s):e.push(s)}}else e.push(s)})),n({},t,{blocks:e})}};t.exports=s},212119:(t,e,r)=>{r(153003);t.exports={isValidBlock:function(t,e){var r=t.getKey(),n=t.getParentKey();if(null!=n&&!e.get(n).getChildKeys().includes(r))return!1;if(!t.getChildKeys().map((function(t){return e.get(t)})).every((function(t){return t.getParentKey()===r})))return!1;var o=t.getPrevSiblingKey();if(null!=o&&e.get(o).getNextSiblingKey()!==r)return!1;var i=t.getNextSiblingKey();if(null!=i&&e.get(i).getPrevSiblingKey()!==r)return!1;return(null===i||null===o||o!==i)&&!(""!=t.text&&t.getChildKeys().size>0)},isConnectedTree:function(t){var e=t.toArray().filter((function(t){return null==t.getParentKey()&&null==t.getPrevSiblingKey()}));if(1!==e.length)return!1;for(var r=0,n=e.shift().getKey(),o=[];null!=n;){var i=t.get(n),a=i.getChildKeys(),u=i.getNextSiblingKey();if(a.size>0){null!=u&&o.unshift(u);var s=a.map((function(e){return t.get(e)})).find((function(t){return null==t.getPrevSiblingKey()}));if(null==s)return!1;n=s.getKey()}else n=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();r++}return r===t.size},isValidTree:function(t){var e=this;return!!t.toArray().every((function(r){return e.isValidBlock(r,t)}))&&this.isConnectedTree(t)}}},533337:(t,e,r)=>{var n,o=r(40398),i=r(143393),a=r(748899),u=i.OrderedMap,s={getDirectionMap:function(t,e){n?n.reset():n=new o;var r=t.getBlockMap(),s=r.valueSeq().map((function(t){return a(n).getDirection(t.getText())})),c=u(r.keySeq().zip(s));return null!=e&&i.is(e,c)?e:c}};t.exports=s},314289:(t,e,r)=>{function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){o(t,e,r[e])}))}return t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(534365),a=r(66912),u=r(533337),s=r(325110),c=r(143393),l=c.OrderedSet,f=c.Record,p=c.Stack,h=c.OrderedMap,d=c.List,g=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(){e.createEmpty=function(t){return this.createWithText("",t)},e.createWithText=function(t,r){return e.createWithContent(a.createFromText(t),r)},e.createWithContent=function(t,r){if(0===t.getBlockMap().count())return e.createEmpty(r);var n=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:p(),redoStack:p(),decorator:r||null,selection:s.createEmpty(n)})},e.create=function(t){var r=t.currentContent,o=n({},t,{treeMap:m(r,t.decorator),directionMap:u.getDirectionMap(r)});return new e(new g(o))},e.fromJS=function(t){return new e(new g(n({},t,{directionMap:null!=t.directionMap?h(t.directionMap):t.directionMap,inlineStyleOverride:null!=t.inlineStyleOverride?l(t.inlineStyleOverride):t.inlineStyleOverride,nativelyRenderedContent:null!=t.nativelyRenderedContent?a.fromJS(t.nativelyRenderedContent):t.nativelyRenderedContent,redoStack:null!=t.redoStack?p(t.redoStack.map((function(t){return a.fromJS(t)}))):t.redoStack,selection:null!=t.selection?new s(t.selection):t.selection,treeMap:null!=t.treeMap?h(t.treeMap).map((function(t){return d(t).map((function(t){return i.fromJS(t)}))})):t.treeMap,undoStack:null!=t.undoStack?p(t.undoStack.map((function(t){return a.fromJS(t)}))):t.undoStack,currentContent:a.fromJS(t.currentContent)})))},e.set=function(t,r){return new e(t.getImmutable().withMutations((function(e){var n=e.get("decorator"),o=n;null===r.decorator?o=null:r.decorator&&(o=r.decorator);var a=r.currentContent||t.getCurrentContent();if(o!==n){var u,s=e.get("treeMap");return u=o&&n?function(t,e,r,n,o){return r.merge(e.toSeq().filter((function(e){return n.getDecorations(e,t)!==o.getDecorations(e,t)})).map((function(e){return i.generate(t,e,n)})))}(a,a.getBlockMap(),s,o,n):m(a,o),void e.merge({decorator:o,treeMap:u,nativelyRenderedContent:null})}a!==t.getCurrentContent()&&e.set("treeMap",function(t,e,r,n){var o=t.getCurrentContent().set("entityMap",r),a=o.getBlockMap();return t.getImmutable().get("treeMap").merge(e.toSeq().filter((function(t,e){return t!==a.get(e)})).map((function(t){return i.generate(o,t,n)})))}(t,a.getBlockMap(),a.getEntityMap(),o)),e.merge(r)})))};var t=e.prototype;function e(t){o(this,"_immutable",void 0),this._immutable=t}return t.toJS=function(){return this.getImmutable().toJS()},t.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},t.getCurrentContent=function(){return this.getImmutable().get("currentContent")},t.getUndoStack=function(){return this.getImmutable().get("undoStack")},t.getRedoStack=function(){return this.getImmutable().get("redoStack")},t.getSelection=function(){return this.getImmutable().get("selection")},t.getDecorator=function(){return this.getImmutable().get("decorator")},t.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},t.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},t.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},t.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},t.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,r){return e.set(t,{inlineStyleOverride:r})},t.getCurrentInlineStyle=function(){var t=this.getInlineStyleOverride();if(null!=t)return t;var e=this.getCurrentContent(),r=this.getSelection();return r.isCollapsed()?function(t,e){var r=e.getStartKey(),n=e.getStartOffset(),o=t.getBlockForKey(r);if(n>0)return o.getInlineStyleAt(n-1);if(o.getLength())return o.getInlineStyleAt(0);return S(t,r)}(e,r):function(t,e){var r=e.getStartKey(),n=e.getStartOffset(),o=t.getBlockForKey(r);if(n<o.getLength())return o.getInlineStyleAt(n);if(n>0)return o.getInlineStyleAt(n-1);return S(t,r)}(e,r)},t.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(t,e){return v(t,e,!1)},e.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),v(t,e,!0)},e.moveSelectionToEnd=function(t){var r=t.getCurrentContent().getLastBlock(),n=r.getKey(),o=r.getLength();return e.acceptSelection(t,new s({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var r=e.moveSelectionToEnd(t);return e.forceSelection(r,r.getSelection())},e.push=function(t,r,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.getCurrentContent()===r)return t;var i=u.getDirectionMap(r,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:r,directionMap:i,lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),c=t.getUndoStack(),l=r;a!==s.getSelectionAfter()||_(t,n)?(c=c.push(s),l=l.set("selectionBefore",a)):"insert-characters"!==n&&"backspace-character"!==n&&"delete-character"!==n||(l=l.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride(),h=["adjust-depth","change-block-type","split-block"];-1===h.indexOf(n)&&(f=null);var d={currentContent:l,directionMap:i,undoStack:c,redoStack:p(),lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return e.set(t,d)},e.undo=function(t){if(!t.getAllowUndo())return t;var r=t.getUndoStack(),n=r.peek();if(!n)return t;var o=t.getCurrentContent(),i=u.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:i,undoStack:r.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var r=t.getRedoStack(),n=r.peek();if(!n)return t;var o=t.getCurrentContent(),i=u.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:r.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},t.getImmutable=function(){return this._immutable},e}();function v(t,e,r){return y.set(t,{selection:e,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function m(t,e){return t.getBlockMap().map((function(r){return i.generate(t,r,e)})).toOrderedMap()}function _(t,e){return e!==t.getLastChangeType()||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}function S(t,e){var r=t.getBlockMap().reverse().skipUntil((function(t,r){return r===e})).skip(1).skipUntil((function(t,e){return t.getLength()})).first();return r?r.getInlineStyleAt(r.getLength()-1):l()}t.exports=y},847387:(t,e,r)=>{var n=r(977249),o=r(117797),i=n.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return i&&t.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(t){return i?!!t.metaKey&&!t.altKey:a.isCtrlKeyCommand(t)},isSoftNewlineEvent:o};t.exports=a},870054:()=>{},941947:(t,e,r)=>{var n=r(142307),o=r(314289),i=r(501665),a=r(748899),u={currentBlockContainsLink:function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=r.getEntityMap();return r.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some((function(t){var e=t.getEntity();return!!e&&"LINK"===n.__get(e).getType()}))},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e,r){switch(e){case"bold":return u.toggleInlineStyle(t,"BOLD");case"italic":return u.toggleInlineStyle(t,"ITALIC");case"underline":return u.toggleInlineStyle(t,"UNDERLINE");case"code":return u.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return u.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return u.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=n.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),r=o.push(t,e,"insert-characters");return o.forceSelection(r,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var r=t.getCurrentContent(),n=e.getStartKey(),i=r.getBlockBefore(n);if(i&&"atomic"===i.getType()){var a=r.getBlockMap().delete(i.getKey()),s=r.merge({blockMap:a,selectionAfter:e});if(s!==r)return o.push(t,s,"remove-range")}var c=u.tryToRemoveBlockStyle(t);return c?o.push(t,c,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var r=t.getCurrentContent(),i=e.getStartKey(),a=r.getBlockForKey(i).getLength();if(e.getStartOffset()<a)return null;var u=r.getBlockAfter(i);if(!u||"atomic"!==u.getType())return null;var s=e.merge({focusKey:u.getKey(),focusOffset:u.getLength()}),c=n.removeRange(r,s,"forward");return c!==r?o.push(t,c,"remove-range"):null},onTab:function(t,e,r){var n=e.getSelection(),a=n.getAnchorKey();if(a!==n.getFocusKey())return e;var u=e.getCurrentContent(),s=u.getBlockForKey(a),c=s.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;t.preventDefault();var l=s.getDepth();if(!t.shiftKey&&l===r)return e;var f=i(u,n,t.shiftKey?-1:1,r);return o.push(e,f,"adjust-depth")},toggleBlockType:function(t,e){var r=t.getSelection(),i=r.getStartKey(),u=r.getEndKey(),s=t.getCurrentContent(),c=r;if(i!==u&&0===r.getEndOffset()){var l=a(s.getBlockBefore(u));u=l.getKey(),c=c.merge({anchorKey:i,anchorOffset:r.getStartOffset(),focusKey:u,focusOffset:l.getLength(),isBackward:!1})}if(s.getBlockMap().skipWhile((function(t,e){return e!==i})).reverse().skipWhile((function(t,e){return e!==u})).some((function(t){return"atomic"===t.getType()})))return t;var f=s.getBlockForKey(i).getType()===e?"unstyled":e;return o.push(t,n.setBlockType(s,c,f),"change-block-type")},toggleCode:function(t){var e=t.getSelection(),r=e.getAnchorKey(),n=e.getFocusKey();return e.isCollapsed()||r!==n?u.toggleBlockType(t,"code-block"):u.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,e){var r=t.getSelection(),i=t.getCurrentInlineStyle();if(r.isCollapsed())return o.setInlineStyleOverride(t,i.has(e)?i.remove(e):i.add(e));var a,u=t.getCurrentContent();return a=i.has(e)?n.removeInlineStyle(u,r,e):n.applyInlineStyle(u,r,e),o.push(t,a,"change-inline-style")},toggleLink:function(t,e,r){var i=n.applyEntity(t.getCurrentContent(),e,r);return o.push(t,i,"apply-entity")},tryToRemoveBlockStyle:function(t){var e=t.getSelection(),r=e.getAnchorOffset();if(e.isCollapsed()&&0===r){var o=e.getAnchorKey(),i=t.getCurrentContent(),a=i.getBlockForKey(o).getType(),u=i.getBlockBefore(o);if("code-block"===a&&u&&"code-block"===u.getType()&&0!==u.getLength())return null;if("unstyled"!==a)return n.setBlockType(i,e,"unstyled")}return null}};t.exports=u},683751:(t,e,r)=>{var n=r(142307),o=r(314289),i=r(388687),a=r(748899),u=null,s={cut:function(t){var e=t.getCurrentContent(),r=t.getSelection(),s=null;if(r.isCollapsed()){var c=r.getAnchorKey(),l=e.getBlockForKey(c).getLength();if(l===r.getAnchorOffset()){var f=e.getKeyAfter(c);if(null==f)return t;s=r.set("focusKey",f).set("focusOffset",0)}else s=r.set("focusOffset",l)}else s=r;s=a(s),u=i(e,s);var p=n.removeRange(e,s,"forward");return p===e?t:o.push(t,p,"remove-range")},paste:function(t){if(!u)return t;var e=n.replaceWithFragment(t.getCurrentContent(),t.getSelection(),u);return o.push(t,e,"insert-fragment")}};t.exports=s},325110:(t,e,r)=>{var n=function(t){var e,r;function n(){return t.apply(this,arguments)||this}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;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(t,e,r){var n=this.getAnchorKey(),o=this.getFocusKey();if(n===o&&n===t){var i=this.getStartOffset(),a=this.getEndOffset();return e<=i&&i<=r||e<=a&&a<=r}if(t!==n&&t!==o)return!1;var u=t===n?this.getAnchorOffset():this.getFocusOffset();return e<=u&&r>=u},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(t){return new n({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},n}((0,r(143393).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));t.exports=n},501665:t=>{t.exports=function(t,e,r,n){var o=e.getStartKey(),i=e.getEndKey(),a=t.getBlockMap(),u=a.toSeq().skipUntil((function(t,e){return e===o})).takeUntil((function(t,e){return e===i})).concat([[i,a.get(i)]]).map((function(t){var e=t.getDepth()+r;return e=Math.max(0,Math.min(e,n)),t.set("depth",e)}));return a=a.merge(u),t.merge({blockMap:a,selectionBefore:e,selectionAfter:e})}},902835:(t,e,r)=>{var n=r(704516);t.exports=function(t,e,r,o){for(var i=e,a=t.getCharacterList();i<r;)a=a.set(i,n.applyEntity(a.get(i),o)),i++;return t.set("characterList",a)}},368750:(t,e,r)=>{var n=r(902835),o=r(143393);t.exports=function(t,e,r){var i=t.getBlockMap(),a=e.getStartKey(),u=e.getStartOffset(),s=e.getEndKey(),c=e.getEndOffset(),l=i.skipUntil((function(t,e){return e===a})).takeUntil((function(t,e){return e===s})).toOrderedMap().merge(o.OrderedMap([[s,i.get(s)]])).map((function(t,e){var o=e===a?u:0,i=e===s?c:t.getLength();return n(t,o,i,r)}));return t.merge({blockMap:i.merge(l),selectionBefore:e,selectionAfter:e})}},879981:(t,e,r)=>{function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(402641),i=r(767953),a=r(886155),u=r(656265),s=r(631487),c=r(152286),l=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:s(t),entityRanges:u(t,e),data:t.getData().toObject()}},f=function(t,e,r,a){if(t instanceof o)r.push(l(t,e));else{t instanceof i||c(!1);var u=t.getParentKey(),s=a[t.getKey()]=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){n(t,e,r[e])}))}return t}({},l(t,e),{children:[]});u?a[u].children.push(s):r.push(s)}};t.exports=function(t){var e={entityMap:{},blocks:[]};return e=function(t,e){var r=e.entityMap,n=[],o={},i={},u=0;return t.getBlockMap().forEach((function(t){t.findEntityRanges((function(t){return null!==t.getEntity()}),(function(e){var n=t.getEntityAt(e),o=a.stringify(n);i[o]||(i[o]=n,r[o]="".concat(u),u++)})),f(t,r,n,o)})),{blocks:n,entityMap:r}}(t,e),e=function(t,e){var r=e.blocks,n=e.entityMap,o={};return Object.keys(n).forEach((function(e,r){var n=t.getEntity(a.unstringify(e));o[r]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}})),{blocks:r,entityMap:o}}(t,e)}},267841:(t,e,r)=>{var n;function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){i(t,e,r[e])}))}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(704516),u=r(402641),s=r(767953),c=r(600526),l=r(482222),f=r(275255),p=r(255484),h=r(25027),d=r(169769),g=r(168642),y=r(143393),v=y.List,m=y.Map,_=y.OrderedSet,S=r(278241),b=r(916581),w=r(620717),E=r(335039),k=g("draft_tree_data_support"),C=new RegExp("\r","g"),x=new RegExp("\n","g"),O=new RegExp("^\n","g"),D=new RegExp("&nbsp;","g"),M=new RegExp("&#13;?","g"),K=new RegExp("&#8203;?","g"),A=["bold","bolder","500","600","700","800","900"],T=["light","lighter","normal","100","200","300","400"],I=["className","href","rel","target","title"],B=["alt","className","height","src","width"],P=(i(n={},p("public/DraftStyleDefault/depth0"),0),i(n,p("public/DraftStyleDefault/depth1"),1),i(n,p("public/DraftStyleDefault/depth2"),2),i(n,p("public/DraftStyleDefault/depth3"),3),i(n,p("public/DraftStyleDefault/depth4"),4),n),R=m({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),L=function(t){var e={};return t.mapKeys((function(t,r){var n=[r.element];void 0!==r.aliasedElements&&n.push.apply(n,r.aliasedElements),n.forEach((function(r){void 0===e[r]?e[r]=t:"string"==typeof e[r]?e[r]=[e[r],t]:e[r].push(t)}))})),m(e)},F=function(t){if(w(t)&&t.style.fontFamily.includes("monospace"))return"CODE";return null},j=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(P).some((function(r){t.classList.contains(r)&&(e=P[r])})),e},N=function(t){if(!S(t))return!1;var e=t;if(!e.href||"http:"!==e.protocol&&"https:"!==e.protocol&&"mailto:"!==e.protocol&&"tel:"!==e.protocol)return!1;try{new f(e.href);return!0}catch(r){return!1}},z=function(t){if(!E(t))return!1;var e=t;return!(!e.attributes.getNamedItem("src")||!e.attributes.getNamedItem("src").value)},U=function(t,e){if(!w(t))return e;var r=t,n=r.style.fontWeight,o=r.style.fontStyle,i=r.style.textDecoration;return e.withMutations((function(t){A.indexOf(n)>=0?t.add("BOLD"):T.indexOf(n)>=0&&t.remove("BOLD"),"italic"===o?t.add("ITALIC"):"normal"===o&&t.remove("ITALIC"),"underline"===i&&t.add("UNDERLINE"),"line-through"===i&&t.add("STRIKETHROUGH"),"none"===i&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))}))},H=function(t){return"ul"===t||"ol"===t},q=function(){function t(t,e){i(this,"characterList",v()),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",l),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=t,this.disambiguate=e}var e=t.prototype;return e.clear=function(){this.characterList=v(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=l,this.wrapper=null,this.contentBlocks=[]},e.addDOMNode=function(t){var e;return this.contentBlocks=[],this.currentDepth=0,(e=this.blockConfigs).push.apply(e,this._toBlockConfigs([t],_())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},e.getContentBlocks=function(){return 0===this.contentBlocks.length&&(k?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},e._makeBlockConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key||h(),r=o({key:e,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:v(),prevSibling:null,nextSibling:null,childConfigs:[]},t);return this.characterList=v(),this.currentBlockType="unstyled",this.currentText="",r},e._toBlockConfigs=function(t,e){for(var r=[],n=0;n<t.length;n++){var o=t[n],i=o.nodeName.toLowerCase();if("body"===i||H(i)){this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var a=this.currentDepth,u=this.wrapper;H(i)&&(this.wrapper=i,H(u)&&this.currentDepth++),r.push.apply(r,this._toBlockConfigs(Array.from(o.childNodes),e)),this.currentDepth=a,this.wrapper=u}else{var s=this.blockTypeMap.get(i);if(void 0===s)if("#text"!==i)if("br"!==i)if(z(o))this._addImgNode(o,e);else if(N(o))this._addAnchorNode(o,r,e);else{var c=e;R.has(i)&&(c=c.add(R.get(i))),c=U(o,c);var l=F(o);null!=l&&(c=c.add(l)),r.push.apply(r,this._toBlockConfigs(Array.from(o.childNodes),c))}else this._addBreakNode(o,e);else this._addTextNode(o,e);else{this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var f=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof s&&(s=this.disambiguate(i,this.wrapper)||s[0]||"unstyled"),!k&&w(o)&&("unordered-list-item"===s||"ordered-list-item"===s)){var d=o;this.currentDepth=j(d,this.currentDepth)}var g=h(),y=this._toBlockConfigs(Array.from(o.childNodes),e);this._trimCurrentText(),r.push(this._makeBlockConfig({key:g,childConfigs:y,type:s})),this.currentDepth=f,this.wrapper=p}}}return r},e._appendText=function(t,e){var r;this.currentText+=t;var n=a.create({style:e,entity:this.currentEntity});this.characterList=(r=this.characterList).push.apply(r,Array(t.length).fill(n))},e._trimCurrentText=function(){var t=this.currentText.length,e=t-this.currentText.trimLeft().length,r=this.currentText.trimRight().length,n=this.characterList.findEntry((function(t){return null!==t.getEntity()}));(e=void 0!==n?Math.min(e,n[0]):e)>(r=void 0!==(n=this.characterList.reverse().findEntry((function(t){return null!==t.getEntity()})))?Math.max(r,t-n[0]):r)?(this.currentText="",this.characterList=v()):(this.currentText=this.currentText.slice(e,r),this.characterList=this.characterList.slice(e,r))},e._addTextNode=function(t,e){var r=t.textContent;""===r.trim()&&"pre"!==this.wrapper&&(r=" "),"pre"!==this.wrapper&&(r=(r=r.replace(O,"")).replace(x," ")),this._appendText(r,e)},e._addBreakNode=function(t,e){b(t)&&this._appendText("\n",e)},e._addImgNode=function(t,e){if(E(t)){var r=t,n={};B.forEach((function(t){var e=r.getAttribute(t);e&&(n[t]=e)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",n),g("draftjs_fix_paste_for_img")?"presentation"!==r.getAttribute("role")&&this._appendText("📷",e):this._appendText("📷",e),this.currentEntity=null}},e._addAnchorNode=function(t,e,r){if(S(t)){var n=t,o={};I.forEach((function(t){var e=n.getAttribute(t);e&&(o[t]=e)})),o.url=new f(n.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),e.push.apply(e,this._toBlockConfigs(Array.from(t.childNodes),r)),this.currentEntity=null}},e._toContentBlocks=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=t.length-1,n=0;n<=r;n++){var i=t[n];i.parent=e,i.prevSibling=n>0?t[n-1].key:null,i.nextSibling=n<r?t[n+1].key:null,i.children=v(i.childConfigs.map((function(t){return t.key}))),this.contentBlocks.push(new s(o({},i))),this._toContentBlocks(i.childConfigs,i.key)}},e._hoistContainersInBlockConfigs=function(t){var e=this;return v(t).flatMap((function(t){return"unstyled"!==t.type||""!==t.text?[t]:e._hoistContainersInBlockConfigs(t.childConfigs)}))},e._toFlatContentBlocks=function(t){var e=this;this._hoistContainersInBlockConfigs(t).forEach((function(t){var r=e._extractTextFromBlockConfigs(t.childConfigs),n=r.text,i=r.characterList;e.contentBlocks.push(new u(o({},t,{text:t.text+n,characterList:t.characterList.concat(i)})))}))},e._extractTextFromBlockConfigs=function(t){for(var e=t.length-1,r="",n=v(),o=0;o<=e;o++){var i=t[o];r+=i.text,n=n.concat(i.characterList),""!==r&&"unstyled"!==i.type&&(r+="\n",n=n.push(n.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);r+=a.text,n=n.concat(a.characterList)}return{text:r,characterList:n}},t}();t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,n=e(t=t.trim().replace(C,"").replace(D," ").replace(M,"").replace(K,""));if(!n)return null;var o=L(r),i=function(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null};return new q(o,i).addDOMNode(n).getContentBlocks()}},399607:(t,e,r)=>{function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){o(t,e,r[e])}))}return t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(402641),a=r(767953),u=r(66912),s=r(482222),c=r(468957),l=(r(212119),r(325110)),f=r(186019),p=r(267134),h=r(659672),d=r(25027),g=r(168642),y=r(143393),v=r(152286),m=g("draft_tree_data_support"),_=y.List,S=y.Map,b=y.OrderedMap,w=function(t,e){var r=t.key,n=t.type,o=t.data;return{text:t.text,depth:t.depth||0,type:n||"unstyled",key:r||d(),data:S(o),characterList:E(t,e)}},E=function(t,e){var r=t.text,o=t.entityRanges,i=t.inlineStyleRanges,a=o||[];return f(h(r,i||[]),p(r,a.filter((function(t){return e.hasOwnProperty(t.key)})).map((function(t){return n({},t,{key:e[t.key]})}))))},k=function(t){return n({},t,{key:t.key||d()})},C=function(t,e,r){var o=e.map((function(t){return n({},t,{parentRef:r})}));return t.concat(o.reverse())},x=function(t,e){var r=t.blocks.find((function(t){return Array.isArray(t.children)&&t.children.length>0})),o=m&&!r?c.fromRawStateToRawTreeState(t).blocks:t.blocks;return m?function(t,e){return t.map(k).reduce((function(r,o,i){Array.isArray(o.children)||v(!1);var u=o.children.map(k),s=new a(n({},w(o,e),{prevSibling:0===i?null:t[i-1].key,nextSibling:i===t.length-1?null:t[i+1].key,children:_(u.map((function(t){return t.key})))}));r=r.set(s.getKey(),s);for(var c=C([],u,s);c.length>0;){var l=c.pop(),f=l.parentRef,p=f.getChildKeys(),h=p.indexOf(l.key),d=Array.isArray(l.children);if(!d){d||v(!1);break}var g=l.children.map(k),y=new a(n({},w(l,e),{parent:f.getKey(),children:_(g.map((function(t){return t.key}))),prevSibling:0===h?null:p.get(h-1),nextSibling:h===p.size-1?null:p.get(h+1)}));r=r.set(y.getKey(),y),c=C(c,g,y)}return r}),b())}(o,e):function(t,e){return b(t.map((function(t){var r=new i(w(t,e));return[r.getKey(),r]})))}(r?c.fromRawTreeStateToRawState(t).blocks:o,e)};t.exports=function(t){Array.isArray(t.blocks)||v(!1);var e=function(t){var e=t.entityMap,r={};return Object.keys(e).forEach((function(t){var n=e[t],o=n.type,i=n.mutability,a=n.data;r[t]=s.__create(o,i,a||{})})),r}(t),r=x(t,e),n=r.isEmpty()?new l:l.createEmpty(r.first().getKey());return new u({blockMap:r,entityMap:e,selectionBefore:n,selectionAfter:n})}},186019:(t,e,r)=>{var n=r(704516),o=r(143393).List;t.exports=function(t,e){var r=t.map((function(t,r){var o=e[r];return n.create({style:t,entity:o})}));return o(r)}},267134:(t,e,r)=>{var n=r(830113).substr;t.exports=function(t,e){var r=Array(t.length).fill(null);return e&&e.forEach((function(e){for(var o=n(t,0,e.offset).length,i=o+n(t,e.offset,e.length).length,a=o;a<i;a++)r[a]=e.key})),r}},659672:(t,e,r)=>{var n=r(830113),o=r(143393).OrderedSet,i=n.substr,a=o();t.exports=function(t,e){var r=Array(t.length).fill(a);return e&&e.forEach((function(e){for(var n=i(t,0,e.offset).length,o=n+i(t,e.offset,e.length).length;n<o;)r[n]=r[n].add(e.style),n++})),r}},99407:t=>{t.exports={notEmptyKey:function(t){return null!=t&&""!=t}}},426396:(t,e,r)=>{var n=r(142307),o=r(314289),i=r(977249),a=r(42128),u=r(342177),s=r(940258),c=r(748899),l=r(758639),f=i.isBrowser("Firefox");function p(t,e,r,i,a){var u=n.replaceText(t.getCurrentContent(),t.getSelection(),e,r,i);return o.push(t,u,"insert-characters",a)}t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var r=t._latestEditorState,n=e.data;if(n)if(t.props.handleBeforeInput&&u(t.props.handleBeforeInput(n,r,e.timeStamp)))e.preventDefault();else{var i=r.getSelection(),h=i.getStartOffset(),d=i.getAnchorKey();if(!i.isCollapsed())return e.preventDefault(),void t.update(p(r,n,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!0));var g,y=p(r,n,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!1),v=!1;if(v||(v=s(t._latestCommittedEditorState)),!v){var m=r.getBlockTree(d),_=y.getBlockTree(d);v=m.size!==_.size||m.zip(_).some((function(t){var e=t[0],r=t[1],o=e.get("start"),i=o+(o>=h?n.length:0),a=e.get("end"),u=a+(a>=h?n.length:0),s=r.get("start"),c=r.get("end"),l=r.get("decoratorKey");return e.get("decoratorKey")!==l||e.get("leaves").size!==r.get("leaves").size||i!==s||u!==c||null!=l&&c-s!=a-o}))}if(v||(g=n,v=f&&("'"==g||"/"==g)),v||(v=c(y.getDirectionMap()).get(d)!==c(r.getDirectionMap()).get(d)),v)return e.preventDefault(),y=o.set(y,{forceSelection:!0}),void t.update(y);y=o.set(y,{nativelyRenderedContent:y.getCurrentContent()}),t._pendingStateFromBeforeInput=y,l((function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)}))}}},743421:(t,e,r)=>{var n=r(314289),o=r(522049),i=r(819362);t.exports=function(t,e){var r=e.currentTarget.ownerDocument;if(!Boolean(t.props.preserveSelectionOnBlur)&&i(r)===r.body){var a=r.defaultView.getSelection(),u=t.editor;1===a.rangeCount&&o(u,a.anchorNode)&&o(u,a.focusNode)&&a.removeAllRanges()}var s=t._latestEditorState,c=s.getSelection();if(c.getHasFocus()){var l=c.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(e),t.update(n.acceptSelection(s,l))}}},506155:(t,e,r)=>{var n=r(314289);t.exports=function(t,e){t.setMode("composite"),t.update(n.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)}},569328:(t,e,r)=>{var n=r(294882);t.exports=function(t,e){t._latestEditorState.getSelection().isCollapsed()?e.preventDefault():t.setClipboard(n(t._latestEditorState))}},273935:(t,e,r)=>{var n=r(142307),o=r(314289),i=r(326499),a=r(294882),u=r(422552),s=r(80809);t.exports=function(t,e){var r,c=t._latestEditorState,l=c.getSelection(),f=e.target;if(l.isCollapsed())e.preventDefault();else{if(s(f)){var p=f;r=u(i.getScrollParent(p))}var h=a(c);t.setClipboard(h),t.setMode("cut"),setTimeout((function(){t.restoreEditorDOM(r),t.exitCurrentMode(),t.update(function(t){var e=n.removeRange(t.getCurrentContent(),t.getSelection(),"forward");return o.push(t,e,"remove-range")}(c))}),0)}}},239499:t=>{t.exports=function(t,e){t.setMode("drag"),e.preventDefault()}},980981:t=>{t.exports=function(t){t._internalDrag=!0,t.setMode("drag")}},562186:(t,e,r)=>{var n=r(314289),o=r(977249);t.exports=function(t,e){var r=t._latestEditorState,i=r.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(e),o.isBrowser("Chrome < 60.0.3081.0")?t.update(n.forceSelection(r,a)):t.update(n.acceptSelection(r,a))}}},429971:(t,e,r)=>{var n=r(142307),o=r(822146),i=r(314289),a=r(977249),u=r(99407).notEmptyKey,s=r(169270),c=r(662800),l=r(748899),f=a.isEngine("Gecko");t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var r=t.editor.ownerDocument.defaultView.getSelection(),a=r.anchorNode,p=r.isCollapsed,h=(null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!h){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 g=d.firstChild;null!=g;g=g.nextSibling)g!==a&&d.removeChild(g)}var y=a.textContent,v=t._latestEditorState,m=l(s(a)),_=o.decode(m),S=_.blockKey,b=_.decoratorKey,w=_.leafKey,E=v.getBlockTree(S).getIn([b,"leaves",w]),k=E.start,C=E.end,x=v.getCurrentContent(),O=x.getBlockForKey(S),D=O.getText().slice(k,C);if(y.endsWith("\n\n")&&(y=y.slice(0,-1)),y!==D){var M,K,A,T,I=v.getSelection(),B=I.merge({anchorOffset:k,focusOffset:C,isBackward:!1}),P=O.getEntityAt(k),R=u(P)?x.getEntity(P):null,L="MUTABLE"===(null!=R?R.getMutability():null),F=L?"spellcheck-change":"apply-entity",j=n.replaceText(x,B,y,O.getInlineStyleAt(k),L?O.getEntityAt(k):null);if(f)M=r.anchorOffset,K=r.focusOffset,T=(A=k+Math.min(M,K))+Math.abs(M-K),M=A,K=T;else{var N=y.length-D.length;A=I.getStartOffset(),T=I.getEndOffset(),M=p?T+N:A,K=T+N}var z=j.merge({selectionBefore:x.getSelectionAfter(),selectionAfter:I.merge({anchorOffset:M,focusOffset:K})});t.update(i.push(v,z,F))}else{var U=e.nativeEvent.inputType;if(U){var H=function(t,e){switch(t){case"deleteContentBackward":return c(e)}return e}(U,v);if(H!==v)return t.restoreEditorDOM(),void t.update(H)}}}}},946397:(t,e,r)=>{var n=r(142307),o=r(314289),i=r(847387),a=r(272938),u=r(683751),s=r(977249),c=r(342177),l=r(649779),f=r(751050),p=r(313767),h=r(177978),d=r(867217),g=r(808425),y=r(662800),v=r(113998),m=r(753318),_=r(487051),S=i.isOptionKeyCommand,b=s.isBrowser("Chrome");t.exports=function(t,e){var r=e.which,i=t._latestEditorState;function s(r){var n=t.props[r];return!!n&&(n(e),!0)}switch(r){case a.RETURN:if(e.preventDefault(),t.props.handleReturn&&c(t.props.handleReturn(e,i)))return;break;case a.ESC:if(e.preventDefault(),s("onEscape"))return;break;case a.TAB:if(s("onTab"))return;break;case a.UP:if(s("onUpArrow"))return;break;case a.RIGHT:if(s("onRightArrow"))return;break;case a.DOWN:if(s("onDownArrow"))return;break;case a.LEFT:if(s("onLeftArrow"))return;break;case a.SPACE:b&&S(e)&&e.preventDefault()}var w=t.props.keyBindingFn(e);if(null!=w&&""!==w)if("undo"!==w){if(e.preventDefault(),!t.props.handleKeyCommand||!c(t.props.handleKeyCommand(w,i,e.timeStamp))){var E=function(t,e,r){switch(t){case"redo":return o.redo(e);case"delete":return v(e);case"delete-word":return p(e);case"backspace":return y(e);case"backspace-word":return f(e);case"backspace-to-start-of-line":return l(e,r);case"split-block":return h(e);case"transpose-characters":return m(e);case"move-selection-to-start-of-block":return g(e);case"move-selection-to-end-of-block":return d(e);case"secondary-cut":return u.cut(e);case"secondary-paste":return u.paste(e);default:return e}}(w,i,e);E!==i&&t.update(E)}}else _(e,i,t.update);else if(r===a.SPACE&&b&&S(e)){var k=n.replaceText(i.getCurrentContent(),i.getSelection()," ");t.update(o.push(i,k,"insert-characters"))}}},206089:(t,e,r)=>{var n=r(610329),o=r(704516),i=r(446123),a=r(142307),u=r(345712),s=r(314289),c=r(941947),l=r(42128),f=r(21738),p=r(342177),h=r(44300);function d(t,e,r){var n=a.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return s.push(t,n.set("entityMap",r),"insert-fragment")}t.exports=function(t,e){e.preventDefault();var r=new i(e.clipboardData);if(!r.isRichText()){var g=r.getFiles(),y=r.getText();if(g.length>0){if(t.props.handlePastedFiles&&p(t.props.handlePastedFiles(g)))return;return void f(g,(function(e){if(e=e||y){var r=t._latestEditorState,i=h(e),f=o.create({style:r.getCurrentInlineStyle(),entity:l(r.getCurrentContent(),r.getSelection())}),p=c.getCurrentBlockType(r),d=u.processText(i,f,p),g=n.createFromArray(d),v=a.replaceWithFragment(r.getCurrentContent(),r.getSelection(),g);t.update(s.push(r,v,"insert-fragment"))}}))}}var v=[],m=r.getText(),_=r.getHTML(),S=t._latestEditorState;if(t.props.formatPastedText){var b=t.props.formatPastedText(m,_);m=b.text,_=b.html}if(!t.props.handlePastedText||!p(t.props.handlePastedText(m,_,S))){if(m&&(v=h(m)),!t.props.stripPastedStyles){var w,E=t.getClipboard();if(!t.props.formatPastedText&&r.isRichText()&&E){if(-1!==(null===(w=_)||void 0===w?void 0:w.indexOf(t.getEditorKey()))||1===v.length&&1===E.size&&E.first().getText()===m)return void t.update(d(t._latestEditorState,E))}else if(E&&r.types.includes("com.apple.webarchive")&&!r.types.includes("text/html")&&function(t,e){return t.length===e.size&&e.valueSeq().every((function(e,r){return e.getText()===t[r]}))}(v,E))return void t.update(d(t._latestEditorState,E));if(_){var k=u.processHTML(_,t.props.blockRenderMap);if(k){var C=k.contentBlocks,x=k.entityMap;if(C){var O=n.createFromArray(C);return void t.update(d(t._latestEditorState,O,x))}}}t.setClipboard(null)}if(v.length){var D=o.create({style:S.getCurrentInlineStyle(),entity:l(S.getCurrentContent(),S.getSelection())}),M=c.getCurrentBlockType(S),K=u.processText(v,D,M),A=n.createFromArray(K);t.update(d(t._latestEditorState,A))}}}},114507:(t,e,r)=>{var n=r(297432),o=r(314289),i=r(384907),a=r(501244);t.exports=function(t){if(t._blockSelectEvents||t._latestEditorState!==t.props.editorState){if(t._blockSelectEvents){var e=t.props.editorState.getSelection();n.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(e.toJS())})}}else{var r=t.props.editorState,u=a(r,i(t)),s=u.selectionState;s!==r.getSelection()&&(r=u.needsRecovery?o.forceSelection(r,s):o.acceptSelection(r,s),t.update(r))}}},656265:(t,e,r)=>{var n=r(886155),o=r(830113).strlen;t.exports=function(t,e){var r=[];return t.findEntityRanges((function(t){return!!t.getEntity()}),(function(i,a){var u=t.getText(),s=t.getEntityAt(i);r.push({offset:o(u.slice(0,i)),length:o(u.slice(i,a)),key:Number(e[n.stringify(s)])})})),r}},631487:(t,e,r)=>{var n=r(830113),o=r(629407),i=function(t,e){return t===e},a=function(t){return!!t},u=[];t.exports=function(t){var e=t.getCharacterList().map((function(t){return t.getStyle()})).toList(),r=e.flatten().toSet().map((function(r){return function(t,e,r){var u=[],s=e.map((function(t){return t.has(r)})).toList();return o(s,i,a,(function(e,o){var i=t.getText();u.push({offset:n.strlen(i.slice(0,e)),length:n.strlen(i.slice(e,o)),style:r})})),u}(t,e,r)}));return Array.prototype.concat.apply(u,r.toJS())}},388182:(t,e,r)=>{var n=r(830113),o=r(575795),i=r(706092),a=r(152286);function u(t,e){for(var r=1/0,n=1/0,o=-1/0,i=-1/0,a=0;a<t.length;a++){var u=t[a];0!==u.width&&1!==u.width&&(r=Math.min(r,u.top),n=Math.min(n,u.bottom),o=Math.max(o,u.top),i=Math.max(i,u.bottom))}return o<=n&&o-r<e&&i-n<e}function s(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}t.exports=function(t){t.collapsed||a(!1);var e=(t=t.cloneRange()).startContainer;1!==e.nodeType&&(e=e.parentNode);var r=function(t){var e=getComputedStyle(t),r=o(t),n=r.createElement("div");n.style.fontFamily=e.fontFamily,n.style.fontSize=e.fontSize,n.style.fontStyle=e.fontStyle,n.style.fontWeight=e.fontWeight,n.style.lineHeight=e.lineHeight,n.style.position="absolute",n.textContent="M";var i=r.body;i||a(!1),i.appendChild(n);var u=n.getBoundingClientRect();return i.removeChild(n),u.height}(e),c=t.endContainer,l=t.endOffset;for(t.setStart(t.startContainer,0);u(i(t),r)&&(c=t.startContainer,l=t.startOffset,c.parentNode||a(!1),t.setStartBefore(c),1!==c.nodeType||"inline"===getComputedStyle(c).display););for(var f=c,p=l-1;;){for(var h=f.nodeValue,d=p;d>=0;d--)if(!(null!=h&&d>0&&n.isSurrogatePair(h,d-1))){if(t.setStart(f,d),!u(i(t),r))break;c=f,l=d}if(-1===d||0===f.childNodes.length)break;p=s(f=f.childNodes[d])}return t.setStart(c,l),t}},169270:(t,e,r)=>{var n=r(575795),o=r(693578);t.exports=function(t){for(var e=t;e&&e!==n(t).documentElement;){var r=o(e);if(null!=r)return r;e=e.parentNode}return null}},629407:t=>{t.exports=function(t,e,r,n){if(t.size){var o=0;t.reduce((function(t,i,a){return e(t,i)||(r(t)&&n(o,a),o=a),i})),r(t.last())&&n(o,t.count())}}},25027:t=>{var e={},r=Math.pow(2,24);t.exports=function(){for(var t;void 0===t||e.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(Math.random()*r).toString(32);return e[t]=!0,t}},581446:(t,e,r)=>{var n=r(705195),o=r(264994),i=r(152286);function a(t,e,r,a,u,s,c){var l=r.getStartOffset(),f=r.getEndOffset(),p=t.__get(u).getMutability(),h=c?l:f;if("MUTABLE"===p)return r;var d=o(e,u).filter((function(t){return h<=t.end&&h>=t.start}));1!=d.length&&i(!1);var g=d[0];if("IMMUTABLE"===p)return r.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});s||(c?f=g.end:l=g.start);var y=n.getRemovalRange(l,f,e.getText().slice(g.start,g.end),g.start,a);return r.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}t.exports=function(t,e,r,n,o){var i=n.getStartOffset(),u=n.getEndOffset(),s=e.getEntityAt(i),c=r.getEntityAt(u-1);if(!s&&!c)return n;var l=n;if(s&&s===c)l=a(t,e,l,o,s,!0,!0);else if(s&&c){var f=a(t,e,l,o,s,!1,!0),p=a(t,r,l,o,c,!1,!1);l=l.merge({anchorOffset:f.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(s){var h=a(t,e,l,o,s,!1,!0);l=l.merge({anchorOffset:h.getStartOffset(),isBackward:!1})}else if(c){var d=a(t,r,l,o,c,!1,!1);l=l.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return l}},384907:(t,e,r)=>{var n=r(152286),o=r(620717);t.exports=function(t){var e=t.editorContainer;return e||n(!1),o(e.firstChild)||n(!1),e.firstChild}},388687:(t,e,r)=>{var n=r(798555),o=r(914017);t.exports=function(t,e){var r=e.getStartKey(),i=e.getStartOffset(),a=e.getEndKey(),u=e.getEndOffset(),s=o(t,e).getBlockMap(),c=s.keySeq(),l=c.indexOf(r),f=c.indexOf(a)+1;return n(s.slice(l,f).map((function(t,e){var n=t.getText(),o=t.getCharacterList();return r===a?t.merge({text:n.slice(i,u),characterList:o.slice(i,u)}):e===r?t.merge({text:n.slice(i),characterList:o.slice(i)}):e===a?t.merge({text:n.slice(0,u),characterList:o.slice(0,u)}):t})))}},575795:t=>{t.exports=function(t){return t&&t.ownerDocument?t.ownerDocument:document}},441714:(t,e,r)=>{var n=r(847387),o=r(272938),i=r(977249),a=i.isPlatform("Mac OS X"),u=a&&i.isBrowser("Firefox < 29"),s=n.hasCommandModifier,c=n.isCtrlKeyCommand;function l(t){return a&&t.altKey||c(t)}t.exports=function(t){switch(t.keyCode){case 66:return s(t)?"bold":null;case 68:return c(t)?"delete":null;case 72:return c(t)?"backspace":null;case 73:return s(t)?"italic":null;case 74:return s(t)?"code":null;case 75:return a&&c(t)?"secondary-cut":null;case 77:case 79:return c(t)?"split-block":null;case 84:return a&&c(t)?"transpose-characters":null;case 85:return s(t)?"underline":null;case 87:return a&&c(t)?"backspace-word":null;case 89:return c(t)?a?"secondary-paste":"redo":null;case 90:return function(t){return s(t)?t.shiftKey?"redo":"undo":null}(t)||null;case o.RETURN:return"split-block";case o.DELETE:return function(t){return!a&&t.shiftKey?null:l(t)?"delete-word":"delete"}(t);case o.BACKSPACE:return function(t){return s(t)&&a?"backspace-to-start-of-line":l(t)?"backspace-word":"backspace"}(t);case o.LEFT:return u&&s(t)?"move-selection-to-start-of-block":null;case o.RIGHT:return u&&s(t)?"move-selection-to-end-of-block":null;default:return null}}},501244:(t,e,r)=>{var n=r(8101);t.exports=function(t,e){var r=e.ownerDocument.defaultView.getSelection(),o=r.anchorNode,i=r.anchorOffset,a=r.focusNode,u=r.focusOffset;return 0===r.rangeCount||null==o||null==a?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:n(t,e,o,i,a,u)}},8101:(t,e,r)=>{var n=r(169270),o=r(693578),i=r(794486),a=r(152286),u=r(684368),s=r(748899);function c(t,e,r){var i=e,c=n(i);(null!=c||t&&(t===i||t.firstChild===i)||a(!1),t===i)&&(i=i.firstChild,u(i)||a(!1),"true"!==(i=i).getAttribute("data-contents")&&a(!1),r>0&&(r=i.childNodes.length));if(0===r){var f=null;if(null!=c)f=c;else{var p=function(t){for(;t.firstChild&&(u(t.firstChild)&&"true"===t.firstChild.getAttribute("data-blocks")||o(t.firstChild));)t=t.firstChild;return t}(i);f=s(o(p))}return{key:f,offset:0}}var h=i.childNodes[r-1],d=null,g=null;if(o(h)){var y=function(t){for(;t.lastChild&&(u(t.lastChild)&&"true"===t.lastChild.getAttribute("data-blocks")||o(t.lastChild));)t=t.lastChild;return t}(h);d=s(o(y)),g=l(y)}else d=s(c),g=l(h);return{key:d,offset:g}}function l(t){var e=t.textContent;return"\n"===e?0:e.length}t.exports=function(t,e,r,o,a,u){var l=r.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:i(t,s(n(r)),o,s(n(a)),u),needsRecovery:!1};var p=null,h=null,d=!0;return l?(p={key:s(n(r)),offset:o},h=c(e,a,u)):f?(h={key:s(n(a)),offset:u},p=c(e,r,o)):(p=c(e,r,o),h=c(e,a,u),r===a&&o===u&&(d=!!r.firstChild&&"BR"!==r.firstChild.nodeName)),{selectionState:i(t,p.key,p.offset,h.key,h.offset),needsRecovery:d}}},42128:(t,e,r)=>{var n=r(99407).notEmptyKey;function o(t,e){return n(e)&&"MUTABLE"===t.__get(e).getMutability()?e:null}t.exports=function(t,e){var r;if(e.isCollapsed()){var n=e.getAnchorKey(),i=e.getAnchorOffset();return i>0?(r=t.getBlockForKey(n).getEntityAt(i-1))!==t.getBlockForKey(n).getEntityAt(i)?null:o(t.getEntityMap(),r):null}var a=e.getStartKey(),u=e.getStartOffset(),s=t.getBlockForKey(a);return r=u===s.getLength()?null:s.getEntityAt(u),o(t.getEntityMap(),r)}},294882:(t,e,r)=>{var n=r(388687);t.exports=function(t){var e=t.getSelection();return e.isCollapsed()?null:n(t.getCurrentContent(),e)}},39506:(t,e,r)=>{var n=r(767953);t.exports=function(t,e){if(!(t instanceof n))return null;var r=t.getNextSiblingKey();if(r)return r;var o=t.getParentKey();if(!o)return null;for(var i=e.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?e.get(a):null}return i?i.getNextSiblingKey():null}},496495:t=>{t.exports=function(t){return Object.keys(t).map((function(e){return t[e]}))}},898056:(t,e,r)=>{var n=r(706092);t.exports=function(t){var e=n(t),r=0,o=0,i=0,a=0;if(e.length){if(e.length>1&&0===e[0].width){var u=e[1];r=u.top,o=u.right,i=u.bottom,a=u.left}else{var s=e[0];r=s.top,o=s.right,i=s.bottom,a=s.left}for(var c=1;c<e.length;c++){var l=e[c];0!==l.height&&0!==l.width&&(r=Math.min(r,l.top),o=Math.max(o,l.right),i=Math.max(i,l.bottom),a=Math.min(a,l.left))}}return{top:r,right:o,bottom:i,left:a,width:o-a,height:i-r}}},706092:(t,e,r)=>{var n=r(977249),o=r(152286);var i=n.isBrowser("Chrome")?function(t){for(var e=t.cloneRange(),r=[],n=t.endContainer;null!=n;n=n.parentNode){var i=n===t.commonAncestorContainer;i?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var a,u=Array.from(e.getClientRects());if(r.push(u),i)return r.reverse(),(a=[]).concat.apply(a,r);e.setEndBefore(n)}o(!1)}:function(t){return Array.from(t.getClientRects())};t.exports=i},264994:(t,e,r)=>{var n=r(152286);t.exports=function(t,e){var r=[];return t.findEntityRanges((function(t){return t.getEntity()===e}),(function(t,e){r.push({start:t,end:e})})),r.length||n(!1),r}},169769:(t,e,r)=>{var n=r(977249),o=r(152286),i=n.isBrowser("IE <= 9");t.exports=function(t){var e,r=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),e.documentElement.innerHTML=t,r=e.getElementsByTagName("body")[0]),r}},693578:(t,e,r)=>{var n=r(684368);t.exports=function t(e){if(n(e)){var r=e,o=r.getAttribute("data-offset-key");if(o)return o;for(var i=0;i<r.childNodes.length;i++){var a=t(r.childNodes[i]);if(a)return a}}return null}},21738:(t,e,r)=>{var n=r(152286),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};t.exports=function(t,e){var a=0,u=[];t.forEach((function(s){!function(t,e){if(!r.g.FileReader||t.type&&!(t.type in i))return void e("");if(""===t.type){var a="";return o.test(t.name)&&(a=t.name.replace(o,"")),void e(a)}var u=new FileReader;u.onload=function(){var t=u.result;"string"!=typeof t&&n(!1),e(t)},u.onerror=function(){e("")},u.readAsText(t)}(s,(function(r){a++,r&&u.push(r.slice(0,5e3)),a==t.length&&e(u.join("\r"))}))}))}},794486:(t,e,r)=>{var n=r(822146),o=r(748899);t.exports=function(t,e,r,i,a){var u=o(t.getSelection());if(!e||!i)return u;var s=n.decode(e),c=s.blockKey,l=t.getBlockTree(c),f=l&&l.getIn([s.decoratorKey,"leaves",s.leafKey]),p=n.decode(i),h=p.blockKey,d=t.getBlockTree(h),g=d&&d.getIn([p.decoratorKey,"leaves",p.leafKey]);if(!f||!g)return u;var y=f.get("start"),v=g.get("start"),m=f?y+r:null,_=g?v+a:null;if(u.getAnchorKey()===c&&u.getAnchorOffset()===m&&u.getFocusKey()===h&&u.getFocusOffset()===_)return u;var S=!1;if(c===h){var b=f.get("end"),w=g.get("end");S=v===y&&w===b?a<r:v<y}else{S=t.getCurrentContent().getBlockMap().keySeq().skipUntil((function(t){return t===c||t===h})).first()===h}return u.merge({anchorKey:c,anchorOffset:m,focusKey:h,focusOffset:_,isBackward:S})}},196629:(t,e,r)=>{var n=r(898056);t.exports=function(t){var e=t.getSelection();if(!e.rangeCount)return null;var r=e.getRangeAt(0),o=n(r),i=o.top,a=o.right,u=o.bottom,s=o.left;return 0===i&&0===a&&0===u&&0===s?null:o}},548083:t=>{t.exports=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}},168642:t=>{t.exports=function(t){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[t]}},354542:(t,e,r)=>{var n=r(610329),o=r(767953),i=r(143393),a=r(340779),u=r(152286),s=r(798555),c=i.List,l=function(t,e,r,n,o,i){var u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=r.get(o),c=s.getText(),l=s.getCharacterList(),f=o,p=i+n.getText().length,h=null;switch(u){case"MERGE_OLD_DATA_TO_NEW_DATA":h=n.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":h=n.getData()}var d=s.getType();c&&"unstyled"===d&&(d=n.getType());var g=s.merge({text:c.slice(0,i)+n.getText()+c.slice(i),characterList:a(l,n.getCharacterList(),i),type:d,data:h});return t.merge({blockMap:r.set(o,g),selectionBefore:e,selectionAfter:e.merge({anchorKey:f,anchorOffset:p,focusKey:f,focusOffset:p,isBackward:!1})})},f=function(t,e,r,i,a,u){var s=r.first()instanceof o,l=[],f=i.size,p=r.get(a),h=i.first(),d=i.last(),g=d.getLength(),y=d.getKey(),v=s&&(!p.getChildKeys().isEmpty()||!h.getChildKeys().isEmpty());r.forEach((function(t,e){e===a?(v?l.push(t):l.push(function(t,e,r){var n=t.getText(),o=t.getCharacterList(),i=n.slice(0,e),a=o.slice(0,e),u=r.first();return t.merge({text:i+u.getText(),characterList:a.concat(u.getCharacterList()),type:i?t.getType():u.getType(),data:u.getData()})}(t,u,i)),i.slice(v?0:1,f-1).forEach((function(t){return l.push(t)})),l.push(function(t,e,r){var n=t.getText(),o=t.getCharacterList(),i=n.length,a=n.slice(e,i),u=o.slice(e,i),s=r.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(u),data:s.getData()})}(t,u,i))):l.push(t)}));var m=n.createFromArray(l);return s&&(m=function(t,e,r,n){return t.withMutations((function(e){var o=r.getKey(),i=n.getKey(),a=r.getNextSiblingKey(),u=r.getParentKey(),s=function(t,e){var r=t.getKey(),n=t,o=[];for(e.get(r)&&o.push(r);n&&n.getNextSiblingKey();){var i=n.getNextSiblingKey();if(!i)break;o.push(i),n=e.get(i)}return o}(n,t),l=s[s.length-1];if(e.get(i)?(e.setIn([o,"nextSibling"],i),e.setIn([i,"prevSibling"],o)):(e.setIn([o,"nextSibling"],n.getNextSiblingKey()),e.setIn([n.getNextSiblingKey(),"prevSibling"],o)),e.setIn([l,"nextSibling"],a),a&&e.setIn([a,"prevSibling"],l),s.forEach((function(t){return e.setIn([t,"parent"],u)})),u){var f=t.get(u).getChildKeys(),p=f.indexOf(o)+1,h=f.toArray();h.splice.apply(h,[p,0].concat(s)),e.setIn([u,"children"],c(h))}}))}(m,0,p,h)),t.merge({blockMap:m,selectionBefore:e,selectionAfter:e.merge({anchorKey:y,anchorOffset:g,focusKey:y,focusOffset:g,isBackward:!1})})};t.exports=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";e.isCollapsed()||u(!1);var i=t.getBlockMap(),a=s(r),c=e.getStartKey(),p=e.getStartOffset(),h=i.get(c);return h instanceof o&&(h.getChildKeys().isEmpty()||u(!1)),1===a.size?l(t,e,i,a.first(),c,p,n):f(t,e,i,a,c,p)}},340779:t=>{t.exports=function(t,e,r){var n=t;if(r===n.count())e.forEach((function(t){n=n.push(t)}));else if(0===r)e.reverse().forEach((function(t){n=n.unshift(t)}));else{var o=n.slice(0,r),i=n.slice(r);n=o.concat(e,i).toList()}return n}},18467:(t,e,r)=>{var n=r(143393),o=r(340779),i=r(152286),a=n.Repeat;t.exports=function(t,e,r,n){e.isCollapsed()||i(!1);var u=null;if(null!=r&&(u=r.length),null==u||0===u)return t;var s=t.getBlockMap(),c=e.getStartKey(),l=e.getStartOffset(),f=s.get(c),p=f.getText(),h=f.merge({text:p.slice(0,l)+r+p.slice(l,f.getLength()),characterList:o(f.getCharacterList(),a(n,u).toList(),l)}),d=l+u;return t.merge({blockMap:s.set(c,h),selectionAfter:e.merge({anchorOffset:d,focusOffset:d})})}},684368:t=>{t.exports=function(t){return!(!t||!t.ownerDocument)&&t.nodeType===Node.ELEMENT_NODE}},342177:t=>{t.exports=function(t){return"handled"===t||!0===t}},278241:(t,e,r)=>{var n=r(684368);t.exports=function(t){return!(!t||!t.ownerDocument)&&(n(t)&&"A"===t.nodeName)}},916581:(t,e,r)=>{var n=r(684368);t.exports=function(t){return!(!t||!t.ownerDocument)&&(n(t)&&"BR"===t.nodeName)}},620717:t=>{t.exports=function(t){return!(!t||!t.ownerDocument)&&(t.ownerDocument.defaultView?t instanceof t.ownerDocument.defaultView.HTMLElement:t instanceof HTMLElement)}},335039:(t,e,r)=>{var n=r(684368);t.exports=function(t){return!(!t||!t.ownerDocument)&&(n(t)&&"IMG"===t.nodeName)}},80809:t=>{t.exports=function(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){var e=t;if(!e.ownerDocument.defaultView)return e instanceof Node;if(e instanceof e.ownerDocument.defaultView.Node)return!0}return!1}},940258:t=>{t.exports=function(t){var e=t.getSelection(),r=e.getAnchorKey(),n=t.getBlockTree(r),o=e.getStartOffset(),i=!1;return n.some((function(t){return o===t.get("start")?(i=!0,!0):o<t.get("end")&&t.get("leaves").some((function(t){var e=t.get("start");return o===e&&(i=!0,!0)}))})),i}},117797:(t,e,r)=>{var n=r(272938);t.exports=function(t){return t.which===n.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}},649779:(t,e,r)=>{var n=r(314289),o=r(388182),i=r(8101),a=r(153268),u=r(14730);t.exports=function(t,e){var r=u(t,(function(t){var r=t.getSelection();if(r.isCollapsed()&&0===r.getAnchorOffset())return a(t,1);var n=e.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return n=o(n),i(t,null,n.endContainer,n.endOffset,n.startContainer,n.startOffset).selectionState}),"backward");return r===t.getCurrentContent()?t:n.push(t,r,"remove-range")}},751050:(t,e,r)=>{var n=r(773932),o=r(314289),i=r(153268),a=r(14730);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),r=e.getStartOffset();if(0===r)return i(t,1);var o=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(0,r),u=n.getBackward(a);return i(t,u.length||1)}),"backward");return e===t.getCurrentContent()?t:o.push(t,e,"remove-range")}},313767:(t,e,r)=>{var n=r(773932),o=r(314289),i=r(619417),a=r(14730);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),r=e.getStartOffset(),o=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(r),u=n.getForward(a);return i(t,u.length||1)}),"forward");return e===t.getCurrentContent()?t:o.push(t,e,"remove-range")}},177978:(t,e,r)=>{var n=r(142307),o=r(314289);t.exports=function(t){var e=n.splitBlock(t.getCurrentContent(),t.getSelection());return o.push(t,e,"split-block")}},867217:(t,e,r)=>{var n=r(314289);t.exports=function(t){var e=t.getSelection(),r=e.getEndKey(),o=t.getCurrentContent().getBlockForKey(r).getLength();return n.set(t,{selection:e.merge({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}),forceSelection:!0})}},808425:(t,e,r)=>{var n=r(314289);t.exports=function(t){var e=t.getSelection(),r=e.getStartKey();return n.set(t,{selection:e.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}},662800:(t,e,r)=>{var n=r(314289),o=r(830113),i=r(153268),a=r(14730);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=e.getAnchorKey(),a=e.getAnchorOffset(),u=r.getBlockForKey(n).getText()[a-1];return i(t,u?o.getUTF16Length(u,0):1)}),"backward");if(e===t.getCurrentContent())return t;var r=t.getSelection();return n.push(t,e.set("selectionBefore",r),r.isCollapsed()?"backspace-character":"remove-range")}},113998:(t,e,r)=>{var n=r(314289),o=r(830113),i=r(619417),a=r(14730);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=e.getAnchorKey(),a=e.getAnchorOffset(),u=r.getBlockForKey(n).getText()[a];return i(t,u?o.getUTF16Length(u,0):1)}),"forward");if(e===t.getCurrentContent())return t;var r=t.getSelection();return n.push(t,e.set("selectionBefore",r),r.isCollapsed()?"delete-character":"remove-range")}},753318:(t,e,r)=>{var n=r(142307),o=r(314289),i=r(388687);t.exports=function(t){var e=t.getSelection();if(!e.isCollapsed())return t;var r=e.getAnchorOffset();if(0===r)return t;var a,u,s=e.getAnchorKey(),c=t.getCurrentContent(),l=c.getBlockForKey(s).getLength();if(l<=1)return t;r===l?(a=e.set("anchorOffset",r-1),u=e):u=(a=e.set("focusOffset",r+1)).set("anchorOffset",r+1);var f=i(c,a),p=n.removeRange(c,a,"backward"),h=p.getSelectionAfter(),d=h.getAnchorOffset()-1,g=h.merge({anchorOffset:d,focusOffset:d}),y=n.replaceWithFragment(p,g,f),v=o.push(t,y,"insert-fragment");return o.acceptSelection(v,u)}},487051:(t,e,r)=>{var n=r(314289);t.exports=function(t,e,r){var o=n.undo(e);if("spellcheck-change"!==e.getLastChangeType())t.preventDefault(),e.getNativelyRenderedContent()?(r(n.set(e,{nativelyRenderedContent:null})),setTimeout((function(){r(o)}),0)):r(o);else{var i=o.getCurrentContent();r(n.set(o,{nativelyRenderedContent:i}))}}},157429:(t,e,r)=>{var n=r(143393).Map;t.exports=function(t,e,r){var o=e.getStartKey(),i=e.getEndKey(),a=t.getBlockMap(),u=a.toSeq().skipUntil((function(t,e){return e===o})).takeUntil((function(t,e){return e===i})).concat(n([[i,a.get(i)]])).map(r);return t.merge({blockMap:a.merge(u),selectionBefore:e,selectionAfter:e})}},861173:(t,e,r)=>{var n=r(767953),o=r(39506),i=r(143393),a=r(152286),u=i.OrderedMap,s=i.List,c=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}},l=function(t,e,r,n,o){if(!o)return t;var i="after"===n,a=e.getKey(),u=r.getKey(),l=e.getParentKey(),f=e.getNextSiblingKey(),p=e.getPrevSiblingKey(),h=r.getParentKey(),d=i?r.getNextSiblingKey():u,g=i?u:r.getPrevSiblingKey();return t.withMutations((function(t){c(l,t,(function(t){var e=t.getChildKeys();return t.merge({children:e.delete(e.indexOf(a))})})),c(p,t,(function(t){return t.merge({nextSibling:f})})),c(f,t,(function(t){return t.merge({prevSibling:p})})),c(d,t,(function(t){return t.merge({prevSibling:a})})),c(g,t,(function(t){return t.merge({nextSibling:a})})),c(h,t,(function(t){var e=t.getChildKeys(),r=e.indexOf(u),n=i?r+1:0!==r?r-1:0,o=e.toArray();return o.splice(n,0,a),t.merge({children:s(o)})})),c(a,t,(function(t){return t.merge({nextSibling:d,prevSibling:g,parent:h})}))}))};t.exports=function(t,e,r,i){"replace"===i&&a(!1);var s=r.getKey(),c=e.getKey();c===s&&a(!1);var f=t.getBlockMap(),p=e instanceof n,h=[e],d=f.delete(c);p&&(h=[],d=f.withMutations((function(t){var r=e.getNextSiblingKey(),n=o(e,t);t.toSeq().skipUntil((function(t){return t.getKey()===c})).takeWhile((function(t){var e=t.getKey(),o=e===c,i=r&&e!==r,a=!r&&t.getParentKey()&&(!n||e!==n);return!!(o||i||a)})).forEach((function(e){h.push(e),t.delete(e.getKey())}))})));var g=d.toSeq().takeUntil((function(t){return t===r})),y=d.toSeq().skipUntil((function(t){return t===r})).skip(1),v=h.map((function(t){return[t.getKey(),t]})),m=u();if("before"===i){var _=t.getBlockBefore(s);_&&_.getKey()===e.getKey()&&a(!1),m=g.concat([].concat(v,[[s,r]]),y).toOrderedMap()}else if("after"===i){var S=t.getBlockAfter(s);S&&S.getKey()===c&&a(!1),m=g.concat([[s,r]].concat(v),y).toOrderedMap()}return t.merge({blockMap:l(m,e,r,i,p),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:c,focusKey:c})})}},153268:(t,e,r)=>{r(153003);t.exports=function(t,e){var r=t.getSelection(),n=t.getCurrentContent(),o=r.getStartKey(),i=r.getStartOffset(),a=o,u=0;if(e>i){var s=n.getKeyBefore(o);if(null==s)a=o;else a=s,u=n.getBlockForKey(s).getText().length}else u=i-e;return r.merge({focusKey:a,focusOffset:u,isBackward:!0})}},619417:(t,e,r)=>{r(153003);t.exports=function(t,e){var r,n=t.getSelection(),o=n.getStartKey(),i=n.getStartOffset(),a=t.getCurrentContent(),u=o;return e>a.getBlockForKey(o).getText().length-i?(u=a.getKeyAfter(o),r=0):r=i+e,n.merge({focusKey:u,focusOffset:r})}},798555:(t,e,r)=>{var n=r(767953),o=r(25027),i=r(143393).OrderedMap;t.exports=function(t){return t.first()instanceof n?function(t){var e,r={};return i(t.withMutations((function(t){t.forEach((function(n,i){var a=n.getKey(),u=n.getNextSiblingKey(),s=n.getPrevSiblingKey(),c=n.getChildKeys(),l=n.getParentKey(),f=o();if(r[a]=f,u&&(t.get(u)?t.setIn([u,"prevSibling"],f):t.setIn([a,"nextSibling"],null)),s&&(t.get(s)?t.setIn([s,"nextSibling"],f):t.setIn([a,"prevSibling"],null)),l&&t.get(l)){var p=t.get(l).getChildKeys();t.setIn([l,"children"],p.set(p.indexOf(n.getKey()),f))}else t.setIn([a,"parent"],null),e&&(t.setIn([e.getKey(),"nextSibling"],f),t.setIn([a,"prevSibling"],r[e.getKey()])),e=t.get(a);c.forEach((function(e){t.get(e)?t.setIn([e,"parent"],f):t.setIn([a,"children"],n.getChildKeys().filter((function(t){return t!==e})))}))}))})).toArray().map((function(t){return[r[t.getKey()],t.set("key",r[t.getKey()])]})))}(t):function(t){return i(t.toArray().map((function(t){var e=o();return[e,t.set("key",e)]})))}(t)}},914017:(t,e,r)=>{var n=r(704516),o=r(629407),i=r(152286);function a(t,e,r){var a=e.getCharacterList(),u=r>0?a.get(r-1):void 0,s=r<a.count()?a.get(r):void 0,c=u?u.getEntity():void 0,l=s?s.getEntity():void 0;if(l&&l===c&&"MUTABLE"!==t.__get(l).getMutability()){for(var f,p=function(t,e,r){var n;return o(t,(function(t,e){return t.getEntity()===e.getEntity()}),(function(t){return t.getEntity()===e}),(function(t,e){t<=r&&e>=r&&(n={start:t,end:e})})),"object"!=typeof n&&i(!1),n}(a,l,r),h=p.start,d=p.end;h<d;)f=a.get(h),a=a.set(h,n.applyEntity(f,null)),h++;return e.set("characterList",a)}return e}t.exports=function(t,e){var r=t.getBlockMap(),n=t.getEntityMap(),o={},i=e.getStartKey(),u=e.getStartOffset(),s=r.get(i),c=a(n,s,u);c!==s&&(o[i]=c);var l=e.getEndKey(),f=e.getEndOffset(),p=r.get(l);i===l&&(p=c);var h=a(n,p,f);return h!==p&&(o[l]=h),Object.keys(o).length?t.merge({blockMap:r.merge(o),selectionAfter:e}):t.set("selectionAfter",e)}},254879:(t,e,r)=>{var n=r(767953),o=r(39506),i=r(143393),a=(i.List,i.Map),u=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}},s=function(t,e){var r=[];if(!t)return r;for(var n=e.get(t);n&&n.getParentKey();){var o=n.getParentKey();o&&r.push(o),n=o?e.get(o):null}return r},c=function(t,e,r){if(!t)return null;for(var n=r.get(t.getKey()).getNextSiblingKey();n&&!e.get(n);)n=r.get(n).getNextSiblingKey()||null;return n},l=function(t,e,r){if(!t)return null;for(var n=r.get(t.getKey()).getPrevSiblingKey();n&&!e.get(n);)n=r.get(n).getPrevSiblingKey()||null;return n},f=function(t,e,r,n){return t.withMutations((function(i){if(u(e.getKey(),i,(function(t){return t.merge({nextSibling:c(t,i,n),prevSibling:l(t,i,n)})})),u(r.getKey(),i,(function(t){return t.merge({nextSibling:c(t,i,n),prevSibling:l(t,i,n)})})),s(e.getKey(),n).forEach((function(t){return u(t,i,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return i.get(t)})),nextSibling:c(t,i,n),prevSibling:l(t,i,n)})}))})),u(e.getNextSiblingKey(),i,(function(t){return t.merge({prevSibling:e.getPrevSiblingKey()})})),u(e.getPrevSiblingKey(),i,(function(t){return t.merge({nextSibling:c(t,i,n)})})),u(r.getNextSiblingKey(),i,(function(t){return t.merge({prevSibling:l(t,i,n)})})),u(r.getPrevSiblingKey(),i,(function(t){return t.merge({nextSibling:r.getNextSiblingKey()})})),s(r.getKey(),n).forEach((function(t){u(t,i,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return i.get(t)})),nextSibling:c(t,i,n),prevSibling:l(t,i,n)})}))})),function(t,e){var r=[];if(!t)return r;for(var n=o(t,e);n&&e.get(n);){var i=e.get(n);r.push(n),n=i.getParentKey()?o(i,e):null}return r}(r,n).forEach((function(t){return u(t,i,(function(t){return t.merge({nextSibling:c(t,i,n),prevSibling:l(t,i,n)})}))})),null==t.get(e.getKey())&&null!=t.get(r.getKey())&&r.getParentKey()===e.getKey()&&null==r.getPrevSiblingKey()){var a=e.getPrevSiblingKey();u(r.getKey(),i,(function(t){return t.merge({prevSibling:a})})),u(a,i,(function(t){return t.merge({nextSibling:r.getKey()})}));var f=a?t.get(a):null,p=f?f.getParentKey():null;if(e.getChildKeys().forEach((function(t){u(t,i,(function(t){return t.merge({parent:p})}))})),null!=p){var h=t.get(p);u(p,i,(function(t){return t.merge({children:h.getChildKeys().concat(e.getChildKeys())})}))}u(e.getChildKeys().find((function(e){return null===t.get(e).getNextSiblingKey()})),i,(function(t){return t.merge({nextSibling:e.getNextSiblingKey()})}))}}))},p=function(t,e,r){if(0===e)for(;e<r;)t=t.shift(),e++;else if(r===t.count())for(;r>e;)t=t.pop(),r--;else{var n=t.slice(0,e),o=t.slice(r);t=n.concat(o).toList()}return t};t.exports=function(t,e){if(e.isCollapsed())return t;var r,i=t.getBlockMap(),u=e.getStartKey(),c=e.getStartOffset(),l=e.getEndKey(),h=e.getEndOffset(),d=i.get(u),g=i.get(l),y=d instanceof n,v=[];if(y){var m=g.getChildKeys(),_=s(l,i);g.getNextSiblingKey()&&(v=v.concat(_)),m.isEmpty()||(v=v.concat(_.concat([l]))),v=v.concat(s(o(g,i),i))}r=d===g?p(d.getCharacterList(),c,h):d.getCharacterList().slice(0,c).concat(g.getCharacterList().slice(h));var S=d.merge({text:d.getText().slice(0,c)+g.getText().slice(h),characterList:r}),b=y&&0===c&&0===h&&g.getParentKey()===u&&null==g.getPrevSiblingKey()?a([[u,null]]):i.toSeq().skipUntil((function(t,e){return e===u})).takeUntil((function(t,e){return e===l})).filter((function(t,e){return-1===v.indexOf(e)})).concat(a([[l,null]])).map((function(t,e){return e===u?S:null})),w=i.merge(b).filter((function(t){return!!t}));return y&&d!==g&&(w=f(w,d,g,i)),t.merge({blockMap:w,selectionBefore:e,selectionAfter:e.merge({anchorKey:u,anchorOffset:c,focusKey:u,focusOffset:c,isBackward:!1})})}},14730:(t,e,r)=>{var n=r(142307),o=r(168642)("draft_tree_data_support");t.exports=function(t,e,r){var i=t.getSelection(),a=t.getCurrentContent(),u=i,s=i.getAnchorKey(),c=i.getFocusKey(),l=a.getBlockForKey(s);if(o&&"forward"===r&&s!==c)return a;if(i.isCollapsed()){if("forward"===r){if(t.isSelectionAtEndOfContent())return a;if(o)if(i.getAnchorOffset()===a.getBlockForKey(s).getLength()){var f=a.getBlockForKey(l.nextSibling);if(!f||0===f.getLength())return a}}else if(t.isSelectionAtStartOfContent())return a;if((u=e(t))===i)return a}return n.removeRange(a,u,r)}},855283:t=>{var e=new RegExp("\r","g");t.exports=function(t){return t.replace(e,"")}},845412:(t,e,r)=>{var n=r(505880),o=r(297432),i=r(977249),a=r(522049),u=r(819362),s=r(575795),c=r(152286),l=r(684368),f=i.isBrowser("IE");function p(t,e){if(!t)return"[empty]";var r=h(t,e);return r.nodeType===Node.TEXT_NODE?r.textContent:(l(r)||c(!1),r.outerHTML)}function h(t,e){var r=void 0!==e?e(t):[];if(t.nodeType===Node.TEXT_NODE){var n=t.textContent.length;return s(t).createTextNode("[text "+n+(r.length?" | "+r.join(", "):"")+"]")}var o=t.cloneNode();1===o.nodeType&&r.length&&o.setAttribute("data-labels",r.join(", "));for(var i=t.childNodes,a=0;a<i.length;a++)o.appendChild(h(i[a],e));return o}function d(t,e){for(var r=t,n=r;r;){if(l(r)&&n.hasAttribute("contenteditable"))return p(r,e);n=r=r.parentNode}return"Could not find contentEditable parent of node"}function g(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function y(t,e,r,n){var i=u();if(t.extend&&null!=e&&a(i,e)){r>g(e)&&o.logSelectionStateFailure({anonymizedDom:d(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(n.toJS())});var s=e===t.focusNode;try{t.rangeCount>0&&t.extend&&t.extend(e,r)}catch(l){throw o.logSelectionStateFailure({anonymizedDom:d(e,(function(e){var r=[];return e===i&&r.push("active element"),e===t.anchorNode&&r.push("selection anchor node"),e===t.focusNode&&r.push("selection focus node"),r})),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:s,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:l?""+l:null,offset:r},null,2),selectionState:JSON.stringify(n.toJS(),null,2)}),l}}else if(e&&t.rangeCount>0){var c=t.getRangeAt(0);c.setEnd(e,r),t.addRange(c.cloneRange())}}function v(t,e,r,i){var a=s(e).createRange();if(r>g(e)&&(o.logSelectionStateFailure({anonymizedDom:d(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(i.toJS())}),n.handleExtensionCausedError()),a.setStart(e,r),f)try{t.addRange(a)}catch(u){0}else t.addRange(a)}t.exports={setDraftEditorSelection:function(t,e,r,n,o){var i=s(e);if(a(i.documentElement,e)){var u=i.defaultView.getSelection(),c=t.getAnchorKey(),l=t.getAnchorOffset(),f=t.getFocusKey(),p=t.getFocusOffset(),h=t.getIsBackward();if(!u.extend&&h){var d=c,g=l;c=f,l=p,f=d,p=g,h=!1}var m=c===r&&n<=l&&o>=l,_=f===r&&n<=p&&o>=p;if(m&&_)return u.removeAllRanges(),v(u,e,l-n,t),void y(u,e,p-n,t);if(h){if(_&&(u.removeAllRanges(),v(u,e,p-n,t)),m){var S=u.focusNode,b=u.focusOffset;u.removeAllRanges(),v(u,e,l-n,t),y(u,S,b,t)}}else m&&(u.removeAllRanges(),v(u,e,l-n,t)),_&&y(u,e,p-n,t)}},addFocusToSelection:y}},236043:(t,e,r)=>{var n=r(767953),o=r(25027),i=r(143393),a=r(152286),u=r(157429),s=i.List,c=i.Map,l=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}};t.exports=function(t,e){e.isCollapsed()||a(!1);var r=e.getAnchorKey(),i=t.getBlockMap(),f=i.get(r),p=f.getText();if(!p){var h=f.getType();if("unordered-list-item"===h||"ordered-list-item"===h)return u(t,e,(function(t){return t.merge({type:"unstyled",depth:0})}))}var d=e.getAnchorOffset(),g=f.getCharacterList(),y=o(),v=f instanceof n,m=f.merge({text:p.slice(0,d),characterList:g.slice(0,d)}),_=m.merge({key:y,text:p.slice(d),characterList:g.slice(d),data:c()}),S=i.toSeq().takeUntil((function(t){return t===f})),b=i.toSeq().skipUntil((function(t){return t===f})).rest(),w=S.concat([[r,m],[y,_]],b).toOrderedMap();return v&&(f.getChildKeys().isEmpty()||a(!1),w=function(t,e,r){return t.withMutations((function(t){var n=e.getKey(),o=r.getKey();l(e.getParentKey(),t,(function(t){var e=t.getChildKeys(),r=e.indexOf(n)+1,i=e.toArray();return i.splice(r,0,o),t.merge({children:s(i)})})),l(e.getNextSiblingKey(),t,(function(t){return t.merge({prevSibling:o})})),l(n,t,(function(t){return t.merge({nextSibling:o})})),l(o,t,(function(t){return t.merge({prevSibling:n})}))}))}(w,m,_)),t.merge({blockMap:w,selectionBefore:e,selectionAfter:e.merge({anchorKey:y,anchorOffset:0,focusKey:y,focusOffset:0,isBackward:!1})})}},44300:t=>{var e=/\r\n?|\n/g;t.exports=function(t){return t.split(e)}},376363:t=>{t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}},446123:(t,e,r)=>{var n=r(125668),o=r(921383),i=r(855577),a=new RegExp("\r\n","g"),u={"text/rtf":1,"text/html":1};function s(t){if("file"==t.kind)return t.getAsFile()}var c=function(){function t(t){this.data=t,this.types=t.types?o(t.types):[]}var e=t.prototype;return e.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(t){return u[t]}))},e.getText=function(){var t;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(t=this.data.getData("text/plain")):t=this.data.getData("Text")),t?t.replace(a,"\n"):null},e.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.isLink=function(){return this.types.some((function(t){return-1!=t.indexOf("Url")||-1!=t.indexOf("text/uri-list")||t.indexOf("text/x-moz-url")}))},e.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.isImage=function(){var t=this.types.some((function(t){return-1!=t.indexOf("application/x-moz-file")}));if(t)return!0;for(var e=this.getFiles(),r=0;r<e.length;r++){var o=e[r].type;if(!n.isImage(o))return!1}return!0},e.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},e.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(s).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},e.hasFiles=function(){return this.getFiles().length>0},t}();t.exports=c},272938:t=>{t.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},125668:t=>{var e={isImage:function(t){return"image"===r(t)[0]},isJpeg:function(t){var n=r(t);return e.isImage(t)&&("jpeg"===n[1]||"pjpeg"===n[1])}};function r(t){return t.split("/")}t.exports=e},292347:t=>{function e(t,e){return!!e&&(t===e.documentElement||t===e.body)}var r={getTop:function(t){var r=t.ownerDocument;return e(t,r)?r.body.scrollTop||r.documentElement.scrollTop:t.scrollTop},setTop:function(t,r){var n=t.ownerDocument;e(t,n)?n.body.scrollTop=n.documentElement.scrollTop=r:t.scrollTop=r},getLeft:function(t){var r=t.ownerDocument;return e(t,r)?r.body.scrollLeft||r.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,r){var n=t.ownerDocument;e(t,n)?n.body.scrollLeft=n.documentElement.scrollLeft=r:t.scrollLeft=r}};t.exports=r},326499:(t,e,r)=>{function n(t,e){var r=o.get(t,e);return"auto"===r||"scroll"===r}var o={get:r(955892),getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(n(t,"overflow")||n(t,"overflowY")||n(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}};t.exports=o},590295:t=>{t.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟：-？！-／［-｀｛-･⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},275255:t=>{var e=function(){function t(t){var e,r,n;n=void 0,(r="_uri")in(e=this)?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,this._uri=t}return t.prototype.toString=function(){return this._uri},t}();t.exports=e},30275:(t,e,r)=>{var n=r(246232),o=r(152286),i="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",a="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",u=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃǄ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ﬀ-ﬆﬓ-ﬗＡ-Ｚａ-ｚｦ-ｯｰｱ-ﾝﾞ-ﾟﾠ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ"+i+a+"]"),s=new RegExp("["+i+a+"]");function c(t){var e=u.exec(t);return null==e?null:e[0]}function l(t){var e=c(t);return null==e?n.NEUTRAL:s.exec(e)?n.RTL:n.LTR}function f(t,e){if(e=e||n.NEUTRAL,!t.length)return e;var r=l(t);return r===n.NEUTRAL?e:r}function p(t,e){return e||(e=n.getGlobalDir()),n.isStrong(e)||o(!1),f(t,e)}var h={firstStrongChar:c,firstStrongCharDir:l,resolveBlockDir:f,getDirection:p,isDirectionLTR:function(t,e){return p(t,e)===n.LTR},isDirectionRTL:function(t,e){return p(t,e)===n.RTL}};t.exports=h},246232:(t,e,r)=>{var n=r(152286),o="LTR",i=null;function a(t){return t===o||"RTL"===t}function u(t){return a(t)||n(!1),t===o?"ltr":"rtl"}function s(t){i=t}var c={NEUTRAL:"NEUTRAL",LTR:o,RTL:"RTL",isStrong:a,getHTMLDir:u,getHTMLDirIfDifferent:function(t,e){return a(t)||n(!1),a(e)||n(!1),t===e?null:u(t)},setGlobalDir:s,initGlobalDir:function(){s(o)},getGlobalDir:function(){return i||this.initGlobalDir(),i||n(!1),i}};t.exports=c},40398:(t,e,r)=>{function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(30275),i=r(246232),a=r(152286),u=function(){function t(t){n(this,"_defaultDir",void 0),n(this,"_lastDir",void 0),t?i.isStrong(t)||a(!1):t=i.getGlobalDir(),this._defaultDir=t,this.reset()}var e=t.prototype;return e.reset=function(){this._lastDir=this._defaultDir},e.getDirection=function(t){return this._lastDir=o.getDirection(t,this._lastDir),this._lastDir},t}();t.exports=u},830113:(t,e,r)=>{var n=r(152286),o=/[\uD800-\uDFFF]/;function i(t){return 55296<=t&&t<=57343}function a(t){return o.test(t)}function u(t,e){return 1+i(t.charCodeAt(e))}function s(t,e,r){if(e=e||0,r=void 0===r?1/0:r||0,!a(t))return t.substr(e,r);var n=t.length;if(n<=0||e>n||r<=0)return"";var o=0;if(e>0){for(;e>0&&o<n;e--)o+=u(t,o);if(o>=n)return""}else if(e<0){for(o=n;e<0&&0<o;e++)o-=u(t,o-1);o<0&&(o=0)}var i=n;if(r<n)for(i=o;r>0&&i<n;r--)i+=u(t,i);return t.substring(o,i)}var c={getCodePoints:function(t){for(var e=[],r=0;r<t.length;r+=u(t,r))e.push(t.codePointAt(r));return e},getUTF16Length:u,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:i,isSurrogatePair:function(t,e){if(0<=e&&e<t.length||n(!1),e+1===t.length)return!1;var r=t.charCodeAt(e),o=t.charCodeAt(e+1);return 55296<=r&&r<=56319&&56320<=o&&o<=57343},strlen:function(t){if(!a(t))return t.length;for(var e=0,r=0;r<t.length;r+=u(t,r))e++;return e},substring:function(t,e,r){(e=e||0)<0&&(e=0),(r=void 0===r?1/0:r||0)<0&&(r=0);var n=Math.abs(r-e);return s(t,e=e<r?e:r,n)},substr:s};t.exports=c},977249:(t,e,r)=>{var n=r(881523),o=r(747642),i=r(552914),a=r(687926);function u(t,e,r,n){if(t===r)return!0;if(!r.startsWith(t))return!1;var i=r.slice(t.length);return!!e&&(i=n?n(i):i,o.contains(i,e))}function s(t){return"Windows"===n.platformName?t.replace(/^\s*NT/,""):t}var c={isBrowser:function(t){return u(n.browserName,n.browserFullVersion,t)},isBrowserArchitecture:function(t){return u(n.browserArchitecture,null,t)},isDevice:function(t){return u(n.deviceName,null,t)},isEngine:function(t){return u(n.engineName,n.engineVersion,t)},isPlatform:function(t){return u(n.platformName,n.platformFullVersion,t,s)},isPlatformArchitecture:function(t){return u(n.platformArchitecture,null,t)}};t.exports=i(c,a)},881523:(t,e,r)=>{var n=r(42238),o="Unknown",i={"Mac OS":"Mac OS X"};var a,u=(new n).getResult(),s=function(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[1]}}(u.browser.version),c={browserArchitecture:u.cpu.architecture||o,browserFullVersion:u.browser.version||o,browserMinorVersion:s.minor||o,browserName:u.browser.name||o,browserVersion:u.browser.major||o,deviceName:u.device.model||o,engineName:u.engine.name||o,engineVersion:u.engine.version||o,platformArchitecture:u.cpu.architecture||o,platformName:(a=u.os.name,i[a]||a||o),platformVersion:u.os.version||o,platformFullVersion:u.os.version||o};t.exports=c},747642:(t,e,r)=>{var n=r(152286),o=/\./,i=/\|\|/,a=/\s+\-\s+/,u=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,s=/^(\d*)(.*)/;function c(t,e){var r=t.split(i);return r.length>1?r.some((function(t){return S.contains(t,e)})):function(t,e){var r=t.split(a);if(r.length>0&&r.length<=2||n(!1),1===r.length)return l(r[0],e);var o=r[0],i=r[1];return g(o)&&g(i)||n(!1),l(">="+o,e)&&l("<="+i,e)}(t=r[0].trim(),e)}function l(t,e){if(""===(t=t.trim()))return!0;var r,n=e.split(o),i=h(t),a=i.modifier,u=i.rangeComponents;switch(a){case"<":return f(n,u);case"<=":return-1===(r=_(n,u))||0===r;case">=":return p(n,u);case">":return function(t,e){return 1===_(t,e)}(n,u);case"~":case"~>":return function(t,e){var r=e.slice(),n=e.slice();n.length>1&&n.pop();var o=n.length-1,i=parseInt(n[o],10);d(i)&&(n[o]=i+1+"");return p(t,r)&&f(t,n)}(n,u);default:return function(t,e){return 0===_(t,e)}(n,u)}}function f(t,e){return-1===_(t,e)}function p(t,e){var r=_(t,e);return 1===r||0===r}function h(t){var e=t.split(o),r=e[0].match(u);return r||n(!1),{modifier:r[1],rangeComponents:[r[2]].concat(e.slice(1))}}function d(t){return!isNaN(t)&&isFinite(t)}function g(t){return!h(t).modifier}function y(t,e){for(var r=t.length;r<e;r++)t[r]="0"}function v(t,e){var r=t.match(s)[1],n=e.match(s)[1],o=parseInt(r,10),i=parseInt(n,10);return d(o)&&d(i)&&o!==i?m(o,i):m(t,e)}function m(t,e){return typeof t!=typeof e&&n(!1),t>e?1:t<e?-1:0}function _(t,e){for(var r=function(t,e){y(t=t.slice(),(e=e.slice()).length);for(var r=0;r<e.length;r++){var n=e[r].match(/^[x*]$/i);if(n&&(e[r]=t[r]="0","*"===n[0]&&r===e.length-1))for(var o=r;o<t.length;o++)t[o]="0"}return y(e,t.length),[t,e]}(t,e),n=r[0],o=r[1],i=0;i<o.length;i++){var a=v(n[i],o[i]);if(a)return a}return 0}var S={contains:function(t,e){return c(t.trim(),e.trim())}};t.exports=S},638565:t=>{var e=/-(.)/g;t.exports=function(t){return t.replace(e,(function(t,e){return e.toUpperCase()}))}},522049:(t,e,r)=>{var n=r(438042);t.exports=function t(e,r){return!(!e||!r)&&(e===r||!n(e)&&(n(r)?t(e,r.parentNode):"contains"in e?e.contains(r):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(r))))}},921383:(t,e,r)=>{var n=r(152286);t.exports=function(t){return function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}(t)?Array.isArray(t)?t.slice():function(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&n(!1),"number"!=typeof e&&n(!1),0===e||e-1 in t||n(!1),"function"==typeof t.callee&&n(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(i){}for(var r=Array(e),o=0;o<e;o++)r[o]=t[o];return r}(t):[t]}},255484:t=>{function e(t){return t.replace(/\//g,"-")}t.exports=function(t){return"object"==typeof t?Object.keys(t).filter((function(e){return t[e]})).map(e).join(" "):Array.prototype.map.call(arguments,e).join(" ")}},855577:t=>{function e(t){return function(){return t}}var r=function(){};r.thatReturns=e,r.thatReturnsFalse=e(!1),r.thatReturnsTrue=e(!0),r.thatReturnsNull=e(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},819362:t=>{t.exports=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}},497375:t=>{var e="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;t.exports=function(t){return(t=t||document).scrollingElement?t.scrollingElement:e||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}},580386:(t,e,r)=>{var n=r(561995);t.exports=function(t){var e=n(t);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}},561995:(t,e,r)=>{var n=r(522049);t.exports=function(t){var e=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!n(e,t))return{left:0,right:0,top:0,bottom:0};var r=t.getBoundingClientRect();return{left:Math.round(r.left)-e.clientLeft,right:Math.round(r.right)-e.clientLeft,top:Math.round(r.top)-e.clientTop,bottom:Math.round(r.bottom)-e.clientTop}}},422552:(t,e,r)=>{var n=r(497375),o=r(379954);t.exports=function(t){var e=n(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=e);var r=o(t),i=t===e?t.ownerDocument.documentElement:t,a=t.scrollWidth-i.clientWidth,u=t.scrollHeight-i.clientHeight;return r.x=Math.max(0,Math.min(r.x,a)),r.y=Math.max(0,Math.min(r.y,u)),r}},955892:(t,e,r)=>{var n=r(638565),o=r(389259);function i(t){return null==t?t:String(t)}t.exports=function(t,e){var r;if(window.getComputedStyle&&(r=window.getComputedStyle(t,null)))return i(r.getPropertyValue(o(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(r=document.defaultView.getComputedStyle(t,null))return i(r.getPropertyValue(o(e)));if("display"===e)return"none"}return t.currentStyle?i("float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[n(e)]):i(t.style&&t.style[n(e)])}},379954:t=>{t.exports=function(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}},442620:t=>{function e(){var t;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function r(){var t;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function n(){return{width:window.innerWidth||e(),height:window.innerHeight||r()}}n.withoutScrollbars=function(){return{width:e(),height:r()}},t.exports=n},389259:t=>{var e=/([A-Z])/g;t.exports=function(t){return t.replace(e,"-$1").toLowerCase()}},152286:t=>{var e=function(t){};t.exports=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(e(r),!t){var a;if(void 0===r)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;(a=new Error(r.replace(/%s/g,(function(){return String(o[u++])})))).name="Invariant Violation"}throw a.framesToPop=1,a}}},820101:t=>{t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},438042:(t,e,r)=>{var n=r(820101);t.exports=function(t){return n(t)&&3==t.nodeType}},749127:t=>{t.exports=function(t){var e=t||"",r=arguments.length;if(r>1)for(var n=1;n<r;n++){var o=arguments[n];o&&(e=(e?e+" ":"")+o)}return e}},552914:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t,r,n){if(!t)return null;var o={};for(var i in t)e.call(t,i)&&(o[i]=r.call(n,t[i],i,t));return o}},687926:t=>{t.exports=function(t){var e={};return function(r){return e.hasOwnProperty(r)||(e[r]=t.call(this,r)),e[r]}}},748899:t=>{t.exports=function(t){if(null!=t)return t;throw new Error("Got unexpected null or undefined")}},758639:(t,e,r)=>{r(324889),t.exports=r.g.setImmediate},153003:(t,e,r)=>{var n=r(855577);t.exports=n},143393:function(t){t.exports=function(){var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function r(t){return a(t)?t:J(t)}function n(t){return u(t)?t:G(t)}function o(t){return s(t)?t:X(t)}function i(t){return a(t)&&!c(t)?t:Y(t)}function a(t){return!(!t||!t[f])}function u(t){return!(!t||!t[p])}function s(t){return!(!t||!t[h])}function c(t){return u(t)||s(t)}function l(t){return!(!t||!t[d])}e(n,r),e(o,r),e(i,r),r.isIterable=a,r.isKeyed=u,r.isIndexed=s,r.isAssociative=c,r.isOrdered=l,r.Keyed=n,r.Indexed=o,r.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",d="@@__IMMUTABLE_ORDERED__@@",g="delete",y=5,v=1<<y,m=v-1,_={},S={value:!1},b={value:!1};function w(t){return t.value=!1,t}function E(t){t&&(t.value=!0)}function k(){}function C(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),o=0;o<r;o++)n[o]=t[o+e];return n}function x(t){return void 0===t.size&&(t.size=t.__iterate(D)),t.size}function O(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?x(t)+e:e}function D(){return!0}function M(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function K(t,e){return T(t,e,0)}function A(t,e){return T(t,e,e)}function T(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var I=0,B=1,P=2,R="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",F=R||L;function j(t){this.next=t}function N(t,e,r,n){var o=0===t?e:1===t?r:[e,r];return n?n.value=o:n={value:o,done:!1},n}function z(){return{value:void 0,done:!0}}function U(t){return!!W(t)}function H(t){return t&&"function"==typeof t.next}function q(t){var e=W(t);return e&&e.call(t)}function W(t){var e=t&&(R&&t[R]||t[L]);if("function"==typeof e)return e}function V(t){return t&&"number"==typeof t.length}function J(t){return null==t?at():a(t)?t.toSeq():ct(t)}function G(t){return null==t?at().toKeyedSeq():a(t)?u(t)?t.toSeq():t.fromEntrySeq():ut(t)}function X(t){return null==t?at():a(t)?u(t)?t.entrySeq():t.toIndexedSeq():st(t)}function Y(t){return(null==t?at():a(t)?u(t)?t.entrySeq():t:st(t)).toSetSeq()}j.prototype.toString=function(){return"[Iterator]"},j.KEYS=I,j.VALUES=B,j.ENTRIES=P,j.prototype.inspect=j.prototype.toSource=function(){return this.toString()},j.prototype[F]=function(){return this},e(J,r),J.of=function(){return J(arguments)},J.prototype.toSeq=function(){return this},J.prototype.toString=function(){return this.__toString("Seq {","}")},J.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},J.prototype.__iterate=function(t,e){return ft(this,t,e,!0)},J.prototype.__iterator=function(t,e){return pt(this,t,e,!0)},e(G,J),G.prototype.toKeyedSeq=function(){return this},e(X,J),X.of=function(){return X(arguments)},X.prototype.toIndexedSeq=function(){return this},X.prototype.toString=function(){return this.__toString("Seq [","]")},X.prototype.__iterate=function(t,e){return ft(this,t,e,!1)},X.prototype.__iterator=function(t,e){return pt(this,t,e,!1)},e(Y,J),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},J.isSeq=it,J.Keyed=G,J.Set=Y,J.Indexed=X;var $,Z,Q,tt="@@__IMMUTABLE_SEQ__@@";function et(t){this._array=t,this.size=t.length}function rt(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function nt(t){this._iterable=t,this.size=t.length||t.size}function ot(t){this._iterator=t,this._iteratorCache=[]}function it(t){return!(!t||!t[tt])}function at(){return $||($=new et([]))}function ut(t){var e=Array.isArray(t)?new et(t).fromEntrySeq():H(t)?new ot(t).fromEntrySeq():U(t)?new nt(t).fromEntrySeq():"object"==typeof t?new rt(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function st(t){var e=lt(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function ct(t){var e=lt(t)||"object"==typeof t&&new rt(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function lt(t){return V(t)?new et(t):H(t)?new ot(t):U(t)?new nt(t):void 0}function ft(t,e,r,n){var o=t._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var u=o[r?i-a:a];if(!1===e(u[1],n?u[0]:a,t))return a+1}return a}return t.__iterateUncached(e,r)}function pt(t,e,r,n){var o=t._cache;if(o){var i=o.length-1,a=0;return new j((function(){var t=o[r?i-a:a];return a++>i?z():N(e,n?t[0]:a-1,t[1])}))}return t.__iteratorUncached(e,r)}function ht(t,e){return e?dt(e,t,"",{"":t}):gt(t)}function dt(t,e,r,n){return Array.isArray(e)?t.call(n,r,X(e).map((function(r,n){return dt(t,r,n,e)}))):yt(e)?t.call(n,r,G(e).map((function(r,n){return dt(t,r,n,e)}))):e}function gt(t){return Array.isArray(t)?X(t).map(gt).toList():yt(t)?G(t).map(gt).toMap():t}function yt(t){return t&&(t.constructor===Object||void 0===t.constructor)}function vt(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function mt(t,e){if(t===e)return!0;if(!a(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||u(t)!==u(e)||s(t)!==s(e)||l(t)!==l(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!c(t);if(l(t)){var n=t.entries();return e.every((function(t,e){var o=n.next().value;return o&&vt(o[1],t)&&(r||vt(o[0],e))}))&&n.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var i=t;t=e,e=i}var f=!0,p=e.__iterate((function(e,n){if(r?!t.has(e):o?!vt(e,t.get(n,_)):!vt(t.get(n,_),e))return f=!1,!1}));return f&&t.size===p}function _t(t,e){if(!(this instanceof _t))return new _t(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Z)return Z;Z=this}}function St(t,e){if(!t)throw new Error(e)}function bt(t,e,r){if(!(this instanceof bt))return new bt(t,e,r);if(St(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),e<t&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(Q)return Q;Q=this}}function wt(){throw TypeError("Abstract")}function Et(){}function kt(){}function Ct(){}J.prototype[tt]=!0,e(et,X),et.prototype.get=function(t,e){return this.has(t)?this._array[O(this,t)]:e},et.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length-1,o=0;o<=n;o++)if(!1===t(r[e?n-o:o],o,this))return o+1;return o},et.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,o=0;return new j((function(){return o>n?z():N(t,o,r[e?n-o++:o++])}))},e(rt,G),rt.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},rt.prototype.has=function(t){return this._object.hasOwnProperty(t)},rt.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,o=n.length-1,i=0;i<=o;i++){var a=n[e?o-i:i];if(!1===t(r[a],a,this))return i+1}return i},rt.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,o=n.length-1,i=0;return new j((function(){var a=n[e?o-i:i];return i++>o?z():N(t,a,r[a])}))},rt.prototype[d]=!0,e(nt,X),nt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=q(this._iterable),n=0;if(H(r))for(var o;!(o=r.next()).done&&!1!==t(o.value,n++,this););return n},nt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=q(this._iterable);if(!H(r))return new j(z);var n=0;return new j((function(){var e=r.next();return e.done?e:N(t,n++,e.value)}))},e(ot,X),ot.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r,n=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===t(o[i],i++,this))return i;for(;!(r=n.next()).done;){var a=r.value;if(o[i]=a,!1===t(a,i++,this))break}return i},ot.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,o=0;return new j((function(){if(o>=n.length){var e=r.next();if(e.done)return e;n[o]=e.value}return N(t,o,n[o++])}))},e(_t,X),_t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},_t.prototype.get=function(t,e){return this.has(t)?this._value:e},_t.prototype.includes=function(t){return vt(this._value,t)},_t.prototype.slice=function(t,e){var r=this.size;return M(t,e,r)?this:new _t(this._value,A(e,r)-K(t,r))},_t.prototype.reverse=function(){return this},_t.prototype.indexOf=function(t){return vt(this._value,t)?0:-1},_t.prototype.lastIndexOf=function(t){return vt(this._value,t)?this.size:-1},_t.prototype.__iterate=function(t,e){for(var r=0;r<this.size;r++)if(!1===t(this._value,r,this))return r+1;return r},_t.prototype.__iterator=function(t,e){var r=this,n=0;return new j((function(){return n<r.size?N(t,n++,r._value):z()}))},_t.prototype.equals=function(t){return t instanceof _t?vt(this._value,t._value):mt(t)},e(bt,X),bt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},bt.prototype.get=function(t,e){return this.has(t)?this._start+O(this,t)*this._step:e},bt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},bt.prototype.slice=function(t,e){return M(t,e,this.size)?this:(t=K(t,this.size),(e=A(e,this.size))<=t?new bt(0,0):new bt(this.get(t,this._end),this.get(e,this._end),this._step))},bt.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},bt.prototype.lastIndexOf=function(t){return this.indexOf(t)},bt.prototype.__iterate=function(t,e){for(var r=this.size-1,n=this._step,o=e?this._start+r*n:this._start,i=0;i<=r;i++){if(!1===t(o,i,this))return i+1;o+=e?-n:n}return i},bt.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,o=e?this._start+r*n:this._start,i=0;return new j((function(){var a=o;return o+=e?-n:n,i>r?z():N(t,i++,a)}))},bt.prototype.equals=function(t){return t instanceof bt?this._start===t._start&&this._end===t._end&&this._step===t._step:mt(this,t)},e(wt,r),e(Et,wt),e(kt,wt),e(Ct,wt),wt.Keyed=Et,wt.Indexed=kt,wt.Set=Ct;var xt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function Ot(t){return t>>>1&1073741824|3221225471&t}function Dt(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)r^=t/=4294967295;return Ot(r)}if("string"===e)return t.length>jt?Mt(t):Kt(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return At(t);if("function"==typeof t.toString)return Kt(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function Mt(t){var e=Ut[t];return void 0===e&&(e=Kt(t),zt===Nt&&(zt=0,Ut={}),zt++,Ut[t]=e),e}function Kt(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return Ot(e)}function At(t){var e;if(Rt&&void 0!==(e=Pt.get(t)))return e;if(void 0!==(e=t[Ft]))return e;if(!It){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Ft]))return e;if(void 0!==(e=Bt(t)))return e}if(e=++Lt,1073741824&Lt&&(Lt=0),Rt)Pt.set(t,e);else{if(void 0!==Tt&&!1===Tt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(It)Object.defineProperty(t,Ft,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Ft]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Ft]=e}}return e}var Tt=Object.isExtensible,It=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function Bt(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}var Pt,Rt="function"==typeof WeakMap;Rt&&(Pt=new WeakMap);var Lt=0,Ft="__immutablehash__";"function"==typeof Symbol&&(Ft=Symbol(Ft));var jt=16,Nt=255,zt=0,Ut={};function Ht(t){St(t!==1/0,"Cannot perform this action with an infinite size.")}function qt(t){return null==t?oe():Wt(t)&&!l(t)?t:oe().withMutations((function(e){var r=n(t);Ht(r.size),r.forEach((function(t,r){return e.set(r,t)}))}))}function Wt(t){return!(!t||!t[Jt])}e(qt,Et),qt.prototype.toString=function(){return this.__toString("Map {","}")},qt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},qt.prototype.set=function(t,e){return ie(this,t,e)},qt.prototype.setIn=function(t,e){return this.updateIn(t,_,(function(){return e}))},qt.prototype.remove=function(t){return ie(this,t,_)},qt.prototype.deleteIn=function(t){return this.updateIn(t,(function(){return _}))},qt.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},qt.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=ye(this,br(t),e,r);return n===_?void 0:n},qt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):oe()},qt.prototype.merge=function(){return pe(this,void 0,arguments)},qt.prototype.mergeWith=function(e){return pe(this,e,t.call(arguments,1))},qt.prototype.mergeIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,oe(),(function(t){return"function"==typeof t.merge?t.merge.apply(t,r):r[r.length-1]}))},qt.prototype.mergeDeep=function(){return pe(this,he,arguments)},qt.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return pe(this,de(e),r)},qt.prototype.mergeDeepIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,oe(),(function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,r):r[r.length-1]}))},qt.prototype.sort=function(t){return Ue(lr(this,t))},qt.prototype.sortBy=function(t,e){return Ue(lr(this,e,t))},qt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},qt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new k)},qt.prototype.asImmutable=function(){return this.__ensureOwner()},qt.prototype.wasAltered=function(){return this.__altered},qt.prototype.__iterator=function(t,e){return new te(this,t,e)},qt.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate((function(e){return n++,t(e[1],e[0],r)}),e),n},qt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?ne(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},qt.isMap=Wt;var Vt,Jt="@@__IMMUTABLE_MAP__@@",Gt=qt.prototype;function Xt(t,e){this.ownerID=t,this.entries=e}function Yt(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function $t(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function Zt(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function Qt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function te(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&re(t._root)}function ee(t,e){return N(t,e[0],e[1])}function re(t,e){return{node:t,index:0,__prev:e}}function ne(t,e,r,n){var o=Object.create(Gt);return o.size=t,o._root=e,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function oe(){return Vt||(Vt=ne(0))}function ie(t,e,r){var n,o;if(t._root){var i=w(S),a=w(b);if(n=ae(t._root,t.__ownerID,0,void 0,e,r,i,a),!a.value)return t;o=t.size+(i.value?r===_?-1:1:0)}else{if(r===_)return t;o=1,n=new Xt(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=o,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?ne(o,n):oe()}function ae(t,e,r,n,o,i,a,u){return t?t.update(e,r,n,o,i,a,u):i===_?t:(E(u),E(a),new Qt(e,n,[o,i]))}function ue(t){return t.constructor===Qt||t.constructor===Zt}function se(t,e,r,n,o){if(t.keyHash===n)return new Zt(e,n,[t.entry,o]);var i,a=(0===r?t.keyHash:t.keyHash>>>r)&m,u=(0===r?n:n>>>r)&m;return new Yt(e,1<<a|1<<u,a===u?[se(t,e,r+y,n,o)]:(i=new Qt(e,n,o),a<u?[t,i]:[i,t]))}function ce(t,e,r,n){t||(t=new k);for(var o=new Qt(t,Dt(r),[r,n]),i=0;i<e.length;i++){var a=e[i];o=o.update(t,0,void 0,a[0],a[1])}return o}function le(t,e,r,n){for(var o=0,i=0,a=new Array(r),u=0,s=1,c=e.length;u<c;u++,s<<=1){var l=e[u];void 0!==l&&u!==n&&(o|=s,a[i++]=l)}return new Yt(t,o,a)}function fe(t,e,r,n,o){for(var i=0,a=new Array(v),u=0;0!==r;u++,r>>>=1)a[u]=1&r?e[i++]:void 0;return a[n]=o,new $t(t,i+1,a)}function pe(t,e,r){for(var o=[],i=0;i<r.length;i++){var u=r[i],s=n(u);a(u)||(s=s.map((function(t){return ht(t)}))),o.push(s)}return ge(t,e,o)}function he(t,e,r){return t&&t.mergeDeep&&a(e)?t.mergeDeep(e):vt(t,e)?t:e}function de(t){return function(e,r,n){if(e&&e.mergeDeepWith&&a(r))return e.mergeDeepWith(t,r);var o=t(e,r,n);return vt(e,o)?e:o}}function ge(t,e,r){return 0===(r=r.filter((function(t){return 0!==t.size}))).length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations((function(t){for(var n=e?function(r,n){t.update(n,_,(function(t){return t===_?r:e(t,r,n)}))}:function(e,r){t.set(r,e)},o=0;o<r.length;o++)r[o].forEach(n)})):t.constructor(r[0])}function ye(t,e,r,n){var o=t===_,i=e.next();if(i.done){var a=o?r:t,u=n(a);return u===a?t:u}St(o||t&&t.set,"invalid keyPath");var s=i.value,c=o?_:t.get(s,_),l=ye(c,e,r,n);return l===c?t:l===_?t.remove(s):(o?oe():t).set(s,l)}function ve(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function me(t,e,r,n){var o=n?t:C(t);return o[e]=r,o}function _e(t,e,r,n){var o=t.length+1;if(n&&e+1===o)return t[e]=r,t;for(var i=new Array(o),a=0,u=0;u<o;u++)u===e?(i[u]=r,a=-1):i[u]=t[u+a];return i}function Se(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var o=new Array(n),i=0,a=0;a<n;a++)a===e&&(i=1),o[a]=t[a+i];return o}Gt[Jt]=!0,Gt[g]=Gt.remove,Gt.removeIn=Gt.deleteIn,Xt.prototype.get=function(t,e,r,n){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(vt(r,o[i][0]))return o[i][1];return n},Xt.prototype.update=function(t,e,r,n,o,i,a){for(var u=o===_,s=this.entries,c=0,l=s.length;c<l&&!vt(n,s[c][0]);c++);var f=c<l;if(f?s[c][1]===o:u)return this;if(E(a),(u||!f)&&E(i),!u||1!==s.length){if(!f&&!u&&s.length>=be)return ce(t,s,n,o);var p=t&&t===this.ownerID,h=p?s:C(s);return f?u?c===l-1?h.pop():h[c]=h.pop():h[c]=[n,o]:h.push([n,o]),p?(this.entries=h,this):new Xt(t,h)}},Yt.prototype.get=function(t,e,r,n){void 0===e&&(e=Dt(r));var o=1<<((0===t?e:e>>>t)&m),i=this.bitmap;return 0==(i&o)?n:this.nodes[ve(i&o-1)].get(t+y,e,r,n)},Yt.prototype.update=function(t,e,r,n,o,i,a){void 0===r&&(r=Dt(n));var u=(0===e?r:r>>>e)&m,s=1<<u,c=this.bitmap,l=0!=(c&s);if(!l&&o===_)return this;var f=ve(c&s-1),p=this.nodes,h=l?p[f]:void 0,d=ae(h,t,e+y,r,n,o,i,a);if(d===h)return this;if(!l&&d&&p.length>=we)return fe(t,p,c,u,d);if(l&&!d&&2===p.length&&ue(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&ue(d))return d;var g=t&&t===this.ownerID,v=l?d?c:c^s:c|s,S=l?d?me(p,f,d,g):Se(p,f,g):_e(p,f,d,g);return g?(this.bitmap=v,this.nodes=S,this):new Yt(t,v,S)},$t.prototype.get=function(t,e,r,n){void 0===e&&(e=Dt(r));var o=(0===t?e:e>>>t)&m,i=this.nodes[o];return i?i.get(t+y,e,r,n):n},$t.prototype.update=function(t,e,r,n,o,i,a){void 0===r&&(r=Dt(n));var u=(0===e?r:r>>>e)&m,s=o===_,c=this.nodes,l=c[u];if(s&&!l)return this;var f=ae(l,t,e+y,r,n,o,i,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p<Ee)return le(t,c,p,u)}else p++;var h=t&&t===this.ownerID,d=me(c,u,f,h);return h?(this.count=p,this.nodes=d,this):new $t(t,p,d)},Zt.prototype.get=function(t,e,r,n){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(vt(r,o[i][0]))return o[i][1];return n},Zt.prototype.update=function(t,e,r,n,o,i,a){void 0===r&&(r=Dt(n));var u=o===_;if(r!==this.keyHash)return u?this:(E(a),E(i),se(this,t,e,r,[n,o]));for(var s=this.entries,c=0,l=s.length;c<l&&!vt(n,s[c][0]);c++);var f=c<l;if(f?s[c][1]===o:u)return this;if(E(a),(u||!f)&&E(i),u&&2===l)return new Qt(t,this.keyHash,s[1^c]);var p=t&&t===this.ownerID,h=p?s:C(s);return f?u?c===l-1?h.pop():h[c]=h.pop():h[c]=[n,o]:h.push([n,o]),p?(this.entries=h,this):new Zt(t,this.keyHash,h)},Qt.prototype.get=function(t,e,r,n){return vt(r,this.entry[0])?this.entry[1]:n},Qt.prototype.update=function(t,e,r,n,o,i,a){var u=o===_,s=vt(n,this.entry[0]);return(s?o===this.entry[1]:u)?this:(E(a),u?void E(i):s?t&&t===this.ownerID?(this.entry[1]=o,this):new Qt(t,this.keyHash,[n,o]):(E(i),se(this,t,e,Dt(n),[n,o])))},Xt.prototype.iterate=Zt.prototype.iterate=function(t,e){for(var r=this.entries,n=0,o=r.length-1;n<=o;n++)if(!1===t(r[e?o-n:n]))return!1},Yt.prototype.iterate=$t.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,o=r.length-1;n<=o;n++){var i=r[e?o-n:n];if(i&&!1===i.iterate(t,e))return!1}},Qt.prototype.iterate=function(t,e){return t(this.entry)},e(te,j),te.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,o=e.index++;if(n.entry){if(0===o)return ee(t,n.entry)}else if(n.entries){if(o<=(r=n.entries.length-1))return ee(t,n.entries[this._reverse?r-o:o])}else if(o<=(r=n.nodes.length-1)){var i=n.nodes[this._reverse?r-o:o];if(i){if(i.entry)return ee(t,i.entry);e=this._stack=re(i,e)}continue}e=this._stack=this._stack.__prev}return z()};var be=v/4,we=v/2,Ee=v/4;function ke(t){var e=Be();if(null==t)return e;if(Ce(t))return t;var r=o(t),n=r.size;return 0===n?e:(Ht(n),n>0&&n<v?Ie(0,n,y,null,new De(r.toArray())):e.withMutations((function(t){t.setSize(n),r.forEach((function(e,r){return t.set(r,e)}))})))}function Ce(t){return!(!t||!t[xe])}e(ke,kt),ke.of=function(){return this(arguments)},ke.prototype.toString=function(){return this.__toString("List [","]")},ke.prototype.get=function(t,e){if((t=O(this,t))>=0&&t<this.size){var r=Fe(this,t+=this._origin);return r&&r.array[t&m]}return e},ke.prototype.set=function(t,e){return Pe(this,t,e)},ke.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},ke.prototype.insert=function(t,e){return this.splice(t,0,e)},ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=y,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Be()},ke.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(r){je(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])}))},ke.prototype.pop=function(){return je(this,0,-1)},ke.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){je(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])}))},ke.prototype.shift=function(){return je(this,1)},ke.prototype.merge=function(){return Ne(this,void 0,arguments)},ke.prototype.mergeWith=function(e){return Ne(this,e,t.call(arguments,1))},ke.prototype.mergeDeep=function(){return Ne(this,he,arguments)},ke.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return Ne(this,de(e),r)},ke.prototype.setSize=function(t){return je(this,0,t)},ke.prototype.slice=function(t,e){var r=this.size;return M(t,e,r)?this:je(this,K(t,r),A(e,r))},ke.prototype.__iterator=function(t,e){var r=0,n=Te(this,e);return new j((function(){var e=n();return e===Ae?z():N(t,r++,e)}))},ke.prototype.__iterate=function(t,e){for(var r,n=0,o=Te(this,e);(r=o())!==Ae&&!1!==t(r,n++,this););return n},ke.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ie(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},ke.isList=Ce;var xe="@@__IMMUTABLE_LIST__@@",Oe=ke.prototype;function De(t,e){this.array=t,this.ownerID=e}Oe[xe]=!0,Oe[g]=Oe.remove,Oe.setIn=Gt.setIn,Oe.deleteIn=Oe.removeIn=Gt.removeIn,Oe.update=Gt.update,Oe.updateIn=Gt.updateIn,Oe.mergeIn=Gt.mergeIn,Oe.mergeDeepIn=Gt.mergeDeepIn,Oe.withMutations=Gt.withMutations,Oe.asMutable=Gt.asMutable,Oe.asImmutable=Gt.asImmutable,Oe.wasAltered=Gt.wasAltered,De.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&m;if(n>=this.array.length)return new De([],t);var o,i=0===n;if(e>0){var a=this.array[n];if((o=a&&a.removeBefore(t,e-y,r))===a&&i)return this}if(i&&!o)return this;var u=Le(this,t);if(!i)for(var s=0;s<n;s++)u.array[s]=void 0;return o&&(u.array[n]=o),u},De.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,o=r-1>>>e&m;if(o>=this.array.length)return this;if(e>0){var i=this.array[o];if((n=i&&i.removeAfter(t,e-y,r))===i&&o===this.array.length-1)return this}var a=Le(this,t);return a.array.splice(o+1),n&&(a.array[o]=n),a};var Me,Ke,Ae={};function Te(t,e){var r=t._origin,n=t._capacity,o=ze(n),i=t._tail;return a(t._root,t._level,0);function a(t,e,r){return 0===e?u(t,r):s(t,e,r)}function u(t,a){var u=a===o?i&&i.array:t&&t.array,s=a>r?0:r-a,c=n-a;return c>v&&(c=v),function(){if(s===c)return Ae;var t=e?--c:s++;return u&&u[t]}}function s(t,o,i){var u,s=t&&t.array,c=i>r?0:r-i>>o,l=1+(n-i>>o);return l>v&&(l=v),function(){for(;;){if(u){var t=u();if(t!==Ae)return t;u=null}if(c===l)return Ae;var r=e?--l:c++;u=a(s&&s[r],o-y,i+(r<<o))}}}}function Ie(t,e,r,n,o,i,a){var u=Object.create(Oe);return u.size=e-t,u._origin=t,u._capacity=e,u._level=r,u._root=n,u._tail=o,u.__ownerID=i,u.__hash=a,u.__altered=!1,u}function Be(){return Me||(Me=Ie(0,0,y))}function Pe(t,e,r){if((e=O(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?je(t,e).set(0,r):je(t,0,e+1).set(e,r)}));e+=t._origin;var n=t._tail,o=t._root,i=w(b);return e>=ze(t._capacity)?n=Re(n,t.__ownerID,0,e,r,i):o=Re(o,t.__ownerID,t._level,e,r,i),i.value?t.__ownerID?(t._root=o,t._tail=n,t.__hash=void 0,t.__altered=!0,t):Ie(t._origin,t._capacity,t._level,o,n):t}function Re(t,e,r,n,o,i){var a,u=n>>>r&m,s=t&&u<t.array.length;if(!s&&void 0===o)return t;if(r>0){var c=t&&t.array[u],l=Re(c,e,r-y,n,o,i);return l===c?t:((a=Le(t,e)).array[u]=l,a)}return s&&t.array[u]===o?t:(E(i),a=Le(t,e),void 0===o&&u===a.array.length-1?a.array.pop():a.array[u]=o,a)}function Le(t,e){return e&&t&&e===t.ownerID?t:new De(t?t.array.slice():[],e)}function Fe(t,e){if(e>=ze(t._capacity))return t._tail;if(e<1<<t._level+y){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&m],n-=y;return r}}function je(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new k,o=t._origin,i=t._capacity,a=o+e,u=void 0===r?i:r<0?i+r:o+r;if(a===o&&u===i)return t;if(a>=u)return t.clear();for(var s=t._level,c=t._root,l=0;a+l<0;)c=new De(c&&c.array.length?[void 0,c]:[],n),l+=1<<(s+=y);l&&(a+=l,o+=l,u+=l,i+=l);for(var f=ze(i),p=ze(u);p>=1<<s+y;)c=new De(c&&c.array.length?[c]:[],n),s+=y;var h=t._tail,d=p<f?Fe(t,u-1):p>f?new De([],n):h;if(h&&p>f&&a<i&&h.array.length){for(var g=c=Le(c,n),v=s;v>y;v-=y){var _=f>>>v&m;g=g.array[_]=Le(g.array[_],n)}g.array[f>>>y&m]=h}if(u<i&&(d=d&&d.removeAfter(n,0,u)),a>=p)a-=p,u-=p,s=y,c=null,d=d&&d.removeBefore(n,0,a);else if(a>o||p<f){for(l=0;c;){var S=a>>>s&m;if(S!==p>>>s&m)break;S&&(l+=(1<<s)*S),s-=y,c=c.array[S]}c&&a>o&&(c=c.removeBefore(n,s,a-l)),c&&p<f&&(c=c.removeAfter(n,s,p-l)),l&&(a-=l,u-=l)}return t.__ownerID?(t.size=u-a,t._origin=a,t._capacity=u,t._level=s,t._root=c,t._tail=d,t.__hash=void 0,t.__altered=!0,t):Ie(a,u,s,c,d)}function Ne(t,e,r){for(var n=[],i=0,u=0;u<r.length;u++){var s=r[u],c=o(s);c.size>i&&(i=c.size),a(s)||(c=c.map((function(t){return ht(t)}))),n.push(c)}return i>t.size&&(t=t.setSize(i)),ge(t,e,n)}function ze(t){return t<v?0:t-1>>>y<<y}function Ue(t){return null==t?We():He(t)?t:We().withMutations((function(e){var r=n(t);Ht(r.size),r.forEach((function(t,r){return e.set(r,t)}))}))}function He(t){return Wt(t)&&l(t)}function qe(t,e,r,n){var o=Object.create(Ue.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=r,o.__hash=n,o}function We(){return Ke||(Ke=qe(oe(),Be()))}function Ve(t,e,r){var n,o,i=t._map,a=t._list,u=i.get(e),s=void 0!==u;if(r===_){if(!s)return t;a.size>=v&&a.size>=2*i.size?(n=(o=a.filter((function(t,e){return void 0!==t&&u!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(n.__ownerID=o.__ownerID=t.__ownerID)):(n=i.remove(e),o=u===a.size-1?a.pop():a.set(u,void 0))}else if(s){if(r===a.get(u)[1])return t;n=i,o=a.set(u,[e,r])}else n=i.set(e,a.size),o=a.set(a.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=o,t.__hash=void 0,t):qe(n,o)}function Je(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Ge(t){this._iter=t,this.size=t.size}function Xe(t){this._iter=t,this.size=t.size}function Ye(t){this._iter=t,this.size=t.size}function $e(t){var e=mr(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=_r,e.__iterateUncached=function(e,r){var n=this;return t.__iterate((function(t,r){return!1!==e(r,t,n)}),r)},e.__iteratorUncached=function(e,r){if(e===P){var n=t.__iterator(e,r);return new j((function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(e===B?I:B,r)},e}function Ze(t,e,r){var n=mr(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,o){var i=t.get(n,_);return i===_?o:e.call(r,i,n,t)},n.__iterateUncached=function(n,o){var i=this;return t.__iterate((function(t,o,a){return!1!==n(e.call(r,t,o,a),o,i)}),o)},n.__iteratorUncached=function(n,o){var i=t.__iterator(P,o);return new j((function(){var o=i.next();if(o.done)return o;var a=o.value,u=a[0];return N(n,u,e.call(r,a[1],u,t),o)}))},n}function Qe(t,e){var r=mr(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=$e(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=_r,r.__iterate=function(e,r){var n=this;return t.__iterate((function(t,r){return e(t,r,n)}),!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function tr(t,e,r,n){var o=mr(t);return n&&(o.has=function(n){var o=t.get(n,_);return o!==_&&!!e.call(r,o,n,t)},o.get=function(n,o){var i=t.get(n,_);return i!==_&&e.call(r,i,n,t)?i:o}),o.__iterateUncached=function(o,i){var a=this,u=0;return t.__iterate((function(t,i,s){if(e.call(r,t,i,s))return u++,o(t,n?i:u-1,a)}),i),u},o.__iteratorUncached=function(o,i){var a=t.__iterator(P,i),u=0;return new j((function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,c=s[0],l=s[1];if(e.call(r,l,c,t))return N(o,n?c:u++,l,i)}}))},o}function er(t,e,r){var n=qt().asMutable();return t.__iterate((function(o,i){n.update(e.call(r,o,i,t),0,(function(t){return t+1}))})),n.asImmutable()}function rr(t,e,r){var n=u(t),o=(l(t)?Ue():qt()).asMutable();t.__iterate((function(i,a){o.update(e.call(r,i,a,t),(function(t){return(t=t||[]).push(n?[a,i]:i),t}))}));var i=vr(t);return o.map((function(e){return dr(t,i(e))}))}function nr(t,e,r,n){var o=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r|=0),M(e,r,o))return t;var i=K(e,o),a=A(r,o);if(i!=i||a!=a)return nr(t.toSeq().cacheResult(),e,r,n);var u,s=a-i;s==s&&(u=s<0?0:s);var c=mr(t);return c.size=0===u?u:t.size&&u||void 0,!n&&it(t)&&u>=0&&(c.get=function(e,r){return(e=O(this,e))>=0&&e<u?t.get(e+i,r):r}),c.__iterateUncached=function(e,r){var o=this;if(0===u)return 0;if(r)return this.cacheResult().__iterate(e,r);var a=0,s=!0,c=0;return t.__iterate((function(t,r){if(!s||!(s=a++<i))return c++,!1!==e(t,n?r:c-1,o)&&c!==u})),c},c.__iteratorUncached=function(e,r){if(0!==u&&r)return this.cacheResult().__iterator(e,r);var o=0!==u&&t.__iterator(e,r),a=0,s=0;return new j((function(){for(;a++<i;)o.next();if(++s>u)return z();var t=o.next();return n||e===B?t:N(e,s-1,e===I?void 0:t.value[1],t)}))},c}function or(t,e,r){var n=mr(t);return n.__iterateUncached=function(n,o){var i=this;if(o)return this.cacheResult().__iterate(n,o);var a=0;return t.__iterate((function(t,o,u){return e.call(r,t,o,u)&&++a&&n(t,o,i)})),a},n.__iteratorUncached=function(n,o){var i=this;if(o)return this.cacheResult().__iterator(n,o);var a=t.__iterator(P,o),u=!0;return new j((function(){if(!u)return z();var t=a.next();if(t.done)return t;var o=t.value,s=o[0],c=o[1];return e.call(r,c,s,i)?n===P?t:N(n,s,c,t):(u=!1,z())}))},n}function ir(t,e,r,n){var o=mr(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var u=!0,s=0;return t.__iterate((function(t,i,c){if(!u||!(u=e.call(r,t,i,c)))return s++,o(t,n?i:s-1,a)})),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var u=t.__iterator(P,i),s=!0,c=0;return new j((function(){var t,i,l;do{if((t=u.next()).done)return n||o===B?t:N(o,c++,o===I?void 0:t.value[1],t);var f=t.value;i=f[0],l=f[1],s&&(s=e.call(r,l,i,a))}while(s);return o===P?t:N(o,i,l,t)}))},o}function ar(t,e){var r=u(t),o=[t].concat(e).map((function(t){return a(t)?r&&(t=n(t)):t=r?ut(t):st(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===o.length)return t;if(1===o.length){var i=o[0];if(i===t||r&&u(i)||s(t)&&s(i))return i}var c=new et(o);return r?c=c.toKeyedSeq():s(t)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=o.reduce((function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}}),0),c}function ur(t,e,r){var n=mr(t);return n.__iterateUncached=function(n,o){var i=0,u=!1;function s(t,c){var l=this;t.__iterate((function(t,o){return(!e||c<e)&&a(t)?s(t,c+1):!1===n(t,r?o:i++,l)&&(u=!0),!u}),o)}return s(t,0),i},n.__iteratorUncached=function(n,o){var i=t.__iterator(n,o),u=[],s=0;return new j((function(){for(;i;){var t=i.next();if(!1===t.done){var c=t.value;if(n===P&&(c=c[1]),e&&!(u.length<e)||!a(c))return r?t:N(n,s++,c,t);u.push(i),i=c.__iterator(n,o)}else i=u.pop()}return z()}))},n}function sr(t,e,r){var n=vr(t);return t.toSeq().map((function(o,i){return n(e.call(r,o,i,t))})).flatten(!0)}function cr(t,e){var r=mr(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var o=this,i=0;return t.__iterate((function(t,n){return(!i||!1!==r(e,i++,o))&&!1!==r(t,i++,o)}),n),i},r.__iteratorUncached=function(r,n){var o,i=t.__iterator(B,n),a=0;return new j((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?N(r,a++,e):N(r,a++,o.value,o)}))},r}function lr(t,e,r){e||(e=Sr);var n=u(t),o=0,i=t.toSeq().map((function(e,n){return[n,e,o++,r?r(e,n,t):e]})).toArray();return i.sort((function(t,r){return e(t[3],r[3])||t[2]-r[2]})).forEach(n?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),n?G(i):s(t)?X(i):Y(i)}function fr(t,e,r){if(e||(e=Sr),r){var n=t.toSeq().map((function(e,n){return[e,r(e,n,t)]})).reduce((function(t,r){return pr(e,t[1],r[1])?r:t}));return n&&n[0]}return t.reduce((function(t,r){return pr(e,t,r)?r:t}))}function pr(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function hr(t,e,n){var o=mr(t);return o.size=new et(n).map((function(t){return t.size})).min(),o.__iterate=function(t,e){for(var r,n=this.__iterator(B,e),o=0;!(r=n.next()).done&&!1!==t(r.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=n.map((function(t){return t=r(t),q(o?t.reverse():t)})),a=0,u=!1;return new j((function(){var r;return u||(r=i.map((function(t){return t.next()})),u=r.some((function(t){return t.done}))),u?z():N(t,a++,e.apply(null,r.map((function(t){return t.value}))))}))},o}function dr(t,e){return it(t)?e:t.constructor(e)}function gr(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function yr(t){return Ht(t.size),x(t)}function vr(t){return u(t)?n:s(t)?o:i}function mr(t){return Object.create((u(t)?G:s(t)?X:Y).prototype)}function _r(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):J.prototype.cacheResult.call(this)}function Sr(t,e){return t>e?1:t<e?-1:0}function br(t){var e=q(t);if(!e){if(!V(t))throw new TypeError("Expected iterable or array-like: "+t);e=q(r(t))}return e}function wr(t,e){var r,n=function(i){if(i instanceof n)return i;if(!(this instanceof n))return new n(i);if(!r){r=!0;var a=Object.keys(t);xr(o,a),o.size=a.length,o._name=e,o._keys=a,o._defaultValues=t}this._map=qt(i)},o=n.prototype=Object.create(Er);return o.constructor=n,n}e(Ue,qt),Ue.of=function(){return this(arguments)},Ue.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ue.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},Ue.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):We()},Ue.prototype.set=function(t,e){return Ve(this,t,e)},Ue.prototype.remove=function(t){return Ve(this,t,_)},Ue.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ue.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],r)}),e)},Ue.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Ue.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?qe(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},Ue.isOrderedMap=He,Ue.prototype[d]=!0,Ue.prototype[g]=Ue.prototype.remove,e(Je,G),Je.prototype.get=function(t,e){return this._iter.get(t,e)},Je.prototype.has=function(t){return this._iter.has(t)},Je.prototype.valueSeq=function(){return this._iter.valueSeq()},Je.prototype.reverse=function(){var t=this,e=Qe(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Je.prototype.map=function(t,e){var r=this,n=Ze(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},Je.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?yr(this):0,function(o){return t(o,e?--r:r++,n)}),e)},Je.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(B,e),n=e?yr(this):0;return new j((function(){var o=r.next();return o.done?o:N(t,e?--n:n++,o.value,o)}))},Je.prototype[d]=!0,e(Ge,X),Ge.prototype.includes=function(t){return this._iter.includes(t)},Ge.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate((function(e){return t(e,n++,r)}),e)},Ge.prototype.__iterator=function(t,e){var r=this._iter.__iterator(B,e),n=0;return new j((function(){var e=r.next();return e.done?e:N(t,n++,e.value,e)}))},e(Xe,Y),Xe.prototype.has=function(t){return this._iter.includes(t)},Xe.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){return t(e,e,r)}),e)},Xe.prototype.__iterator=function(t,e){var r=this._iter.__iterator(B,e);return new j((function(){var e=r.next();return e.done?e:N(t,e.value,e.value,e)}))},e(Ye,G),Ye.prototype.entrySeq=function(){return this._iter.toSeq()},Ye.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){if(e){gr(e);var n=a(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}}),e)},Ye.prototype.__iterator=function(t,e){var r=this._iter.__iterator(B,e);return new j((function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){gr(n);var o=a(n);return N(t,o?n.get(0):n[0],o?n.get(1):n[1],e)}}}))},Ge.prototype.cacheResult=Je.prototype.cacheResult=Xe.prototype.cacheResult=Ye.prototype.cacheResult=_r,e(wr,Et),wr.prototype.toString=function(){return this.__toString(Cr(this)+" {","}")},wr.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},wr.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},wr.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=kr(this,oe()))},wr.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Cr(this));var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:kr(this,r)},wr.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:kr(this,e)},wr.prototype.wasAltered=function(){return this._map.wasAltered()},wr.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map((function(t,e){return r.get(e)})).__iterator(t,e)},wr.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map((function(t,e){return r.get(e)})).__iterate(t,e)},wr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?kr(this,e,t):(this.__ownerID=t,this._map=e,this)};var Er=wr.prototype;function kr(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function Cr(t){return t._name||t.constructor.name||"Record"}function xr(t,e){try{e.forEach(Or.bind(void 0,t))}catch(r){}}function Or(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){St(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Dr(t){return null==t?Pr():Mr(t)&&!l(t)?t:Pr().withMutations((function(e){var r=i(t);Ht(r.size),r.forEach((function(t){return e.add(t)}))}))}function Mr(t){return!(!t||!t[Ar])}Er[g]=Er.remove,Er.deleteIn=Er.removeIn=Gt.removeIn,Er.merge=Gt.merge,Er.mergeWith=Gt.mergeWith,Er.mergeIn=Gt.mergeIn,Er.mergeDeep=Gt.mergeDeep,Er.mergeDeepWith=Gt.mergeDeepWith,Er.mergeDeepIn=Gt.mergeDeepIn,Er.setIn=Gt.setIn,Er.update=Gt.update,Er.updateIn=Gt.updateIn,Er.withMutations=Gt.withMutations,Er.asMutable=Gt.asMutable,Er.asImmutable=Gt.asImmutable,e(Dr,Ct),Dr.of=function(){return this(arguments)},Dr.fromKeys=function(t){return this(n(t).keySeq())},Dr.prototype.toString=function(){return this.__toString("Set {","}")},Dr.prototype.has=function(t){return this._map.has(t)},Dr.prototype.add=function(t){return Ir(this,this._map.set(t,!0))},Dr.prototype.remove=function(t){return Ir(this,this._map.remove(t))},Dr.prototype.clear=function(){return Ir(this,this._map.clear())},Dr.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(t){for(var r=0;r<e.length;r++)i(e[r]).forEach((function(e){return t.add(e)}))})):this.constructor(e[0])},Dr.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return i(t)}));var r=this;return this.withMutations((function(t){r.forEach((function(r){e.every((function(t){return t.includes(r)}))||t.remove(r)}))}))},Dr.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return i(t)}));var r=this;return this.withMutations((function(t){r.forEach((function(r){e.some((function(t){return t.includes(r)}))&&t.remove(r)}))}))},Dr.prototype.merge=function(){return this.union.apply(this,arguments)},Dr.prototype.mergeWith=function(e){var r=t.call(arguments,1);return this.union.apply(this,r)},Dr.prototype.sort=function(t){return Rr(lr(this,t))},Dr.prototype.sortBy=function(t,e){return Rr(lr(this,e,t))},Dr.prototype.wasAltered=function(){return this._map.wasAltered()},Dr.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate((function(e,n){return t(n,n,r)}),e)},Dr.prototype.__iterator=function(t,e){return this._map.map((function(t,e){return e})).__iterator(t,e)},Dr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},Dr.isSet=Mr;var Kr,Ar="@@__IMMUTABLE_SET__@@",Tr=Dr.prototype;function Ir(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Br(t,e){var r=Object.create(Tr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Pr(){return Kr||(Kr=Br(oe()))}function Rr(t){return null==t?zr():Lr(t)?t:zr().withMutations((function(e){var r=i(t);Ht(r.size),r.forEach((function(t){return e.add(t)}))}))}function Lr(t){return Mr(t)&&l(t)}Tr[Ar]=!0,Tr[g]=Tr.remove,Tr.mergeDeep=Tr.merge,Tr.mergeDeepWith=Tr.mergeWith,Tr.withMutations=Gt.withMutations,Tr.asMutable=Gt.asMutable,Tr.asImmutable=Gt.asImmutable,Tr.__empty=Pr,Tr.__make=Br,e(Rr,Dr),Rr.of=function(){return this(arguments)},Rr.fromKeys=function(t){return this(n(t).keySeq())},Rr.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Rr.isOrderedSet=Lr;var Fr,jr=Rr.prototype;function Nr(t,e){var r=Object.create(jr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function zr(){return Fr||(Fr=Nr(We()))}function Ur(t){return null==t?Gr():Hr(t)?t:Gr().unshiftAll(t)}function Hr(t){return!(!t||!t[Wr])}jr[d]=!0,jr.__empty=zr,jr.__make=Nr,e(Ur,kt),Ur.of=function(){return this(arguments)},Ur.prototype.toString=function(){return this.__toString("Stack [","]")},Ur.prototype.get=function(t,e){var r=this._head;for(t=O(this,t);r&&t--;)r=r.next;return r?r.value:e},Ur.prototype.peek=function(){return this._head&&this._head.value},Ur.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,r=arguments.length-1;r>=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Jr(t,e)},Ur.prototype.pushAll=function(t){if(0===(t=o(t)).size)return this;Ht(t.size);var e=this.size,r=this._head;return t.reverse().forEach((function(t){e++,r={value:t,next:r}})),this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Jr(e,r)},Ur.prototype.pop=function(){return this.slice(1)},Ur.prototype.unshift=function(){return this.push.apply(this,arguments)},Ur.prototype.unshiftAll=function(t){return this.pushAll(t)},Ur.prototype.shift=function(){return this.pop.apply(this,arguments)},Ur.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gr()},Ur.prototype.slice=function(t,e){if(M(t,e,this.size))return this;var r=K(t,this.size);if(A(e,this.size)!==this.size)return kt.prototype.slice.call(this,t,e);for(var n=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=n,this._head=o,this.__hash=void 0,this.__altered=!0,this):Jr(n,o)},Ur.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Jr(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Ur.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&!1!==t(n.value,r++,this);)n=n.next;return r},Ur.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new j((function(){if(n){var e=n.value;return n=n.next,N(t,r++,e)}return z()}))},Ur.isStack=Hr;var qr,Wr="@@__IMMUTABLE_STACK__@@",Vr=Ur.prototype;function Jr(t,e,r,n){var o=Object.create(Vr);return o.size=t,o._head=e,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function Gr(){return qr||(qr=Jr(0))}function Xr(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}Vr[Wr]=!0,Vr.withMutations=Gt.withMutations,Vr.asMutable=Gt.asMutable,Vr.asImmutable=Gt.asImmutable,Vr.wasAltered=Gt.wasAltered,r.Iterator=j,Xr(r,{toArray:function(){Ht(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,r){t[r]=e})),t},toIndexedSeq:function(){return new Ge(this)},toJS:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJS?t.toJS():t})).__toJS()},toJSON:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t})).__toJS()},toKeyedSeq:function(){return new Je(this,!0)},toMap:function(){return qt(this.toKeyedSeq())},toObject:function(){Ht(this.size);var t={};return this.__iterate((function(e,r){t[r]=e})),t},toOrderedMap:function(){return Ue(this.toKeyedSeq())},toOrderedSet:function(){return Rr(u(this)?this.valueSeq():this)},toSet:function(){return Dr(u(this)?this.valueSeq():this)},toSetSeq:function(){return new Xe(this)},toSeq:function(){return s(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ur(u(this)?this.valueSeq():this)},toList:function(){return ke(u(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return dr(this,ar(this,t.call(arguments,0)))},includes:function(t){return this.some((function(e){return vt(e,t)}))},entries:function(){return this.__iterator(P)},every:function(t,e){Ht(this.size);var r=!0;return this.__iterate((function(n,o,i){if(!t.call(e,n,o,i))return r=!1,!1})),r},filter:function(t,e){return dr(this,tr(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},findEntry:function(t,e){var r;return this.__iterate((function(n,o,i){if(t.call(e,n,o,i))return r=[o,n],!1})),r},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return Ht(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Ht(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate((function(n){r?r=!1:e+=t,e+=null!=n?n.toString():""})),e},keys:function(){return this.__iterator(I)},map:function(t,e){return dr(this,Ze(this,t,e))},reduce:function(t,e,r){var n,o;return Ht(this.size),arguments.length<2?o=!0:n=e,this.__iterate((function(e,i,a){o?(o=!1,n=e):n=t.call(r,n,e,i,a)})),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return dr(this,Qe(this,!0))},slice:function(t,e){return dr(this,nr(this,t,e,!0))},some:function(t,e){return!this.every(tn(t),e)},sort:function(t){return dr(this,lr(this,t))},values:function(){return this.__iterator(B)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return x(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return er(this,t,e)},equals:function(t){return mt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new et(t._cache);var e=t.toSeq().map(Qr).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(tn(t),e)},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},first:function(){return this.find(D)},flatMap:function(t,e){return dr(this,sr(this,t,e))},flatten:function(t){return dr(this,ur(this,t,!0))},fromEntrySeq:function(){return new Ye(this)},get:function(t,e){return this.find((function(e,r){return vt(r,t)}),void 0,e)},getIn:function(t,e){for(var r,n=this,o=br(t);!(r=o.next()).done;){var i=r.value;if((n=n&&n.get?n.get(i,_):_)===_)return e}return n},groupBy:function(t,e){return rr(this,t,e)},has:function(t){return this.get(t,_)!==_},hasIn:function(t){return this.getIn(t,_)!==_},isSubset:function(t){return t="function"==typeof t.includes?t:r(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:r(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(Zr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return fr(this,t)},maxBy:function(t,e){return fr(this,e,t)},min:function(t){return fr(this,t?en(t):on)},minBy:function(t,e){return fr(this,e?en(e):on,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return dr(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return dr(this,ir(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(tn(t),e)},sortBy:function(t,e){return dr(this,lr(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return dr(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return dr(this,or(this,t,e))},takeUntil:function(t,e){return this.takeWhile(tn(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=an(this))}});var Yr=r.prototype;Yr[f]=!0,Yr[F]=Yr.values,Yr.__toJS=Yr.toArray,Yr.__toStringMapper=rn,Yr.inspect=Yr.toSource=function(){return this.toString()},Yr.chain=Yr.flatMap,Yr.contains=Yr.includes,function(){try{Object.defineProperty(Yr,"length",{get:function(){if(!r.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),Xr(n,{flip:function(){return dr(this,$e(this))},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey((function(e){return vt(e,t)}))},lastKeyOf:function(t){return this.findLastKey((function(e){return vt(e,t)}))},mapEntries:function(t,e){var r=this,n=0;return dr(this,this.toSeq().map((function(o,i){return t.call(e,[i,o],n++,r)})).fromEntrySeq())},mapKeys:function(t,e){var r=this;return dr(this,this.toSeq().flip().map((function(n,o){return t.call(e,n,o,r)})).flip())}});var $r=n.prototype;function Zr(t,e){return e}function Qr(t,e){return[e,t]}function tn(t){return function(){return!t.apply(this,arguments)}}function en(t){return function(){return-t.apply(this,arguments)}}function rn(t){return"string"==typeof t?JSON.stringify(t):t}function nn(){return C(arguments)}function on(t,e){return t<e?1:t>e?-1:0}function an(t){if(t.size===1/0)return 0;var e=l(t),r=u(t),n=e?1:0;return un(t.__iterate(r?e?function(t,e){n=31*n+sn(Dt(t),Dt(e))|0}:function(t,e){n=n+sn(Dt(t),Dt(e))|0}:e?function(t){n=31*n+Dt(t)|0}:function(t){n=n+Dt(t)|0}),n)}function un(t,e){return e=xt(e,3432918353),e=xt(e<<15|e>>>-15,461845907),e=xt(e<<13|e>>>-13,5),e=xt((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=Ot((e=xt(e^e>>>13,3266489909))^e>>>16)}function sn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return $r[p]=!0,$r[F]=Yr.entries,$r.__toJS=Yr.toObject,$r.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+rn(t)},Xr(o,{toKeyedSeq:function(){return new Je(this,!1)},filter:function(t,e){return dr(this,tr(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return dr(this,Qe(this,!1))},slice:function(t,e){return dr(this,nr(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=K(t,t<0?this.count():this.size);var n=this.slice(0,t);return dr(this,1===r?n:n.concat(C(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.toKeyedSeq().findLastKey(t,e);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(t){return dr(this,ur(this,t,!1))},get:function(t,e){return(t=O(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,r){return r===t}),void 0,e)},has:function(t){return(t=O(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return dr(this,cr(this,t))},interleave:function(){var t=[this].concat(C(arguments)),e=hr(this.toSeq(),X.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),dr(this,r)},last:function(){return this.get(-1)},skipWhile:function(t,e){return dr(this,ir(this,t,e,!1))},zip:function(){return dr(this,hr(this,nn,[this].concat(C(arguments))))},zipWith:function(t){var e=C(arguments);return e[0]=this,dr(this,hr(this,t,e))}}),o.prototype[h]=!0,o.prototype[d]=!0,Xr(i,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Yr.includes,Xr(G,n.prototype),Xr(X,o.prototype),Xr(Y,i.prototype),Xr(Et,n.prototype),Xr(kt,o.prototype),Xr(Ct,i.prototype),{Iterable:r,Seq:J,Collection:wt,Map:qt,OrderedMap:Ue,List:ke,Stack:Ur,Set:Dr,OrderedSet:Rr,Record:wr,Range:bt,Repeat:_t,is:vt,fromJS:ht}}()},103522:(t,e,r)=>{var n=r(479833),o=/[\\^$.*+?()[\]{}|]/g,i=RegExp(o.source);t.exports=function(t){return(t=n(t))&&i.test(t)?t.replace(o,"\\$&"):t}},727418:t=>{var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(o){return!1}}()?Object.assign:function(t,i){for(var a,u,s=o(t),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))r.call(a,l)&&(s[l]=a[l]);if(e){u=e(a);for(var f=0;f<u.length;f++)n.call(a,u[f])&&(s[u[f]]=a[u[f]])}}return s}},324889:function(t,e,r){!function(t,e){if(!t.setImmediate){var r,n,o,i,a,u=1,s={},c=!1,l=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?r=function(t){process.nextTick((function(){h(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){h(t.data)},r=function(t){o.port2.postMessage(t)}):l&&"onreadystatechange"in l.createElement("script")?(n=l.documentElement,r=function(t){var e=l.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):r=function(t){setTimeout(h,0,t)}:(i="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(i)&&h(+e.data.slice(i.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),r=function(e){t.postMessage(i+e,"*")}),f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return s[u]=o,r(u),u++},f.clearImmediate=p}function p(t){delete s[t]}function h(t){if(c)setTimeout(h,0,t);else{var e=s[t];if(e){c=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(void 0,r)}}(e)}finally{p(t),c=!1}}}}}("undefined"==typeof self?void 0===r.g?this:r.g:self)}}]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/89333-9ee92a2bc835e6ae.mjs.map