vendor: 45,422 bytes, line 1
1(self.webpackChunkmyklopos=self.webpackChunkmyklopos||[]).push([[68393],{85889(t,e,r){"use strict";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){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 o=r(95748),a=r(23018),u=r(56840),s=r(65224),c=r(49938),l=r(12242),f=r(6991),p=r(47282),h=r(77337),g=r(46059),d=p("draft_tree_data_support"),y=d?s:u,v=h.List,_=h.Repeat,m={insertAtomicBlock:function(t,e,r){var i=t.getCurrentContent(),u=t.getSelection(),s=c.removeRange(i,u,"backward"),p=s.getSelectionAfter(),h=c.splitBlock(s,p),g=h.getSelectionAfter(),m=c.setBlockType(h,g,"atomic"),S=a.create({entity:e}),b={key:f(),type:"atomic",text:r,characterList:v(_(S,r.length))},k={key:f(),type:"unstyled"};d&&(b=n({},b,{nextSibling:k.key}),k=n({},k,{prevSibling:b.key}));var w=[new y(b),new y(k)],C=o.createFromArray(w),x=c.replaceWithFragment(m,g,C),E=x.merge({selectionBefore:u,selectionAfter:x.getSelectionAfter().set("hasFocus",!0)});return l.push(t,E,"insert-fragment")},moveAtomicBlock:function(t,e,r,n){var i,o=t.getCurrentContent(),a=t.getSelection();if("before"===n||"after"===n){var u=o.getBlockForKey("before"===n?r.getStartKey():r.getEndKey());i=g(o,e,u,n)}else{var s=c.removeRange(o,r,"backward"),f=s.getSelectionAfter(),p=s.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())i=g(s,e,p,"before");else if(f.getEndOffset()===p.getLength())i=g(s,e,p,"after");else{var h=c.splitBlock(s,f),d=h.getSelectionAfter(),y=h.getBlockForKey(d.getFocusKey());i=g(h,e,y,"before")}}var v=i.merge({selectionBefore:a,selectionAfter:i.getSelectionAfter().set("hasFocus",!0)});return l.push(t,v,"move-block")}};t.exports=m},95748(t,e,r){"use strict";var n=r(77337).OrderedMap,i={createFromArray:function(t){return n(t.map(function(t){return[t.getKey(),t]}))}};t.exports=i},19981(t,e,r){"use strict";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 i=r(18227),o=r(679),a=r(77337),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 o=[],a=r?r.getDecorations(e,t):u(s(null,n)),c=e.getCharacterList();return i(a,d,l,function(t,e){o.push(new p({start:t,end:e,decoratorKey:a.get(t),leaves:g(c.slice(t,e).toList(),t)}))}),u(o)},fromJS:function(t){var e=t.leaves,r=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,["leaves"]);return new p(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}({},r,{leaves:null!=e?u(Array.isArray(e)?e:o(e)).map(function(t){return f(t)}):null}))}};function g(t,e){var r=[],n=t.map(function(t){return t.getStyle()}).toList();return i(n,d,l,function(t,n){r.push(new f({start:t+e,end:n+e}))}),u(r)}function d(t,e){return t===e}t.exports=h},23018(t,e,r){"use strict";var n=r(77337),i=n.Map,o=n.OrderedSet,a=n.Record,u=o(),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=i({style:u,entity:null}).merge(t),r=f.get(e);if(r)return r;var o=new n(e);return f=f.set(e,o),o},n.fromJS=function(t){var e=t.style,r=t.entity;return new n({style:Array.isArray(e)?o(e):e,entity:Array.isArray(r)?o(r):r})},n}(a(s)),l=new c,f=i([[i(s),l]]);c.EMPTY=l,t.exports=c},69083(t,e,r){"use strict";var n=r(77337).List,i=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,i){var o=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 i=e;i<r;i++)t[i]=n}(r,t,e,i+"."+o),o++)},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=i},56840(t,e,r){"use strict";var n=r(23018),i=r(18227),o=r(77337),a=o.List,u=o.Map,s=o.OrderedSet,c=o.Record,l=o.Repeat,f=s(),p=c({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:u()}),h=function(t){var e,r;function o(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=o).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var u=o.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){i(this.getCharacterList(),g,t,e)},u.findEntityRanges=function(t,e){i(this.getCharacterList(),d,t,e)},o}(p);function g(t,e){return t.getStyle()===e.getStyle()}function d(t,e){return t.getEntity()===e.getEntity()}t.exports=h},65224(t,e,r){"use strict";var n=r(23018),i=r(18227),o=r(77337),a=o.List,u=o.Map,s=o.OrderedSet,c=o.Record,l=o.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()},g=function(t,e){return t.getEntity()===e.getEntity()},d=function(t){var e,r;function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;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=o).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var u=o.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.getChildKeys=function(){return this.get("children")},u.getParentKey=function(){return this.get("parent")},u.getPrevSiblingKey=function(){return this.get("prevSibling")},u.getNextSiblingKey=function(){return this.get("nextSibling")},u.findStyleRanges=function(t,e){i(this.getCharacterList(),h,t,e)},u.findEntityRanges=function(t,e){i(this.getCharacterList(),g,t,e)},o}(c(p));t.exports=d},97656(t,e,r){"use strict";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){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 o=r(95748),a=r(23018),u=r(56840),s=r(65224),c=r(11608),l=r(91381),f=r(6991),p=r(679),h=r(47282),g=r(77337),d=r(91721),y=g.List,v=g.Record,_=g.Repeat,m=g.Map,S=g.OrderedMap,b=v({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),k=h("draft_tree_data_support")?s:u,w=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 u=i.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)},i.createFromBlockArray=function(t,e){var r=Array.isArray(t)?t:t.contentBlocks,n=o.createFromArray(r),a=n.isEmpty()?new l:l.createEmpty(n.first().getKey());return new i({blockMap:n,entityMap:e||c,selectionBefore:a,selectionAfter:a})},i.createFromText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,r=t.split(e).map(function(t){return t=d(t),new k({key:f(),text:t,type:"unstyled",characterList:y(_(a.EMPTY,t.length))})});return i.createFromBlockArray(r)},i.fromJS=function(t){return new i(n({},t,{blockMap:S(t.blockMap).map(i.createContentBlockFromJS),selectionBefore:new l(t.selectionBefore),selectionAfter:new l(t.selectionAfter)}))},i.createContentBlockFromJS=function(t){var e=t.characterList;return new k(n({},t,{data:m(t.data),characterList:null!=e?y((Array.isArray(e)?e:p(e)).map(function(t){return a.fromJS(t)})):void 0}))},i}(b);t.exports=w},94092(t,e,r){"use strict";var n=r(23018),i=r(77337).Map,o={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,o){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(i([[c,a.get(c)]])).map(function(t,e){var i,a;u===c?(i=s,a=l):(i=e===u?s:0,a=e===c?l:t.getLength());for(var f,p=t.getCharacterList();i<a;)f=p.get(i),p=p.set(i,o?n.applyStyle(f,r):n.removeStyle(f,r)),i++;return t.set("characterList",p)});return t.merge({blockMap:a.merge(f),selectionBefore:e,selectionAfter:e})}t.exports=o},47378(t,e,r){"use strict";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 i=r(14134),o=r(88372),a=r(35389),u=r(77337),s=r(90646),c=r(56408),l=u.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=i.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(o(t.target));this.mutations=this.mutations.set(r,e)}},t}();t.exports=h},13387(t,e,r){"use strict";var n=r(96540),i=r(98003),o=(0,r(77337).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:i("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:n.createElement("ol",{className:i("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:n.createElement("pre",{className:i("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});t.exports=o},87918(t){"use strict";t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},35143(t,e,r){"use strict";var n=r(85889),i=r(95748),o=r(23018),a=r(69083),u=r(56840),s=r(97656),c=r(13387),l=r(87918),f=r(63299),p=r(81124),h=r(11608),g=r(49938),d=r(5407),y=r(12242),v=r(59414),_=r(66429),m=r(7018),S=r(91381),b=r(7470),k=r(50428),w=r(6991),C=r(57811),x=r(30894),E={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:h,EntityInstance:d,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:u,ContentState:s,RawDraftContentState:_,SelectionState:S,AtomicBlockUtils:n,KeyBindingUtil:v,Modifier:g,RichUtils:m,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:l,convertFromHTML:r(24712),convertFromRaw:k,convertToRaw:b,genKey:w,getDefaultKeyBinding:C,getVisibleSelectionRect:x};t.exports=E},63299(t,e,r){"use strict";var n=r(45228);function i(){return i=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},i.apply(this,arguments)}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){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(13387),l=r(87918),f=r(13136),p=r(79777),h=r(42474),g=r(97784),d=r(74576),y=r(49884),v=r(953),_=r(12242),m=r(96540),S=r(93529),b=r(2935),k=r(14134),w=r(98003),C=r(6991),x=r(57811),E=r(97392),O=r(47282),K=r(90646),D=r(55291),M=r(56408),T=k.isBrowser("IE"),A=!T,I={edit:g,composite:f,drag:h,cut:null,render:null},B=!1,L=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}(m.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(),i=r.editor;if(i){var o=b.getScrollParent(i),a=t||E(o),u=a.x,s=a.y;D(i)||K(!1),i.focus(),o===window?window.scrollTo(u,s):S.setTop(o,s),n||r.update(_.forceSelection(e,e.getSelection()))}}),u(a(r),"blur",function(){var t=r.editor;t&&(D(t)||K(!1),t.blur())}),u(a(r),"setMode",function(t){var e=r.props,n=e.onPaste,i=e.onCut,a=e.onCopy,u=o({},I.edit);n&&(u.onPaste=n),i&&(u.onCut=i),a&&(u.onCopy=a);var s=o({},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||C(),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&&(d?d(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:M(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return m.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,g=t.textDirectionality,d=w({"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,_={blockRenderMap:e,blockRendererFn:r,blockStyleFn:n,customStyleMap:o({},l,u),customStyleFn:a,editorKey:this._editorKey,editorState:s,preventScroll:c,textDirectionality:g};return m.createElement("div",{className:d},this._renderPlaceholder(),m.createElement("div",{className:w("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},m.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:w({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:A&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},m.createElement(L,{editor:this,editorState:s}),m.createElement(p,i({},_,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!B&&O("draft_ods_enabled")&&(B=!0,v.initODS()),this.setMode("edit"),T&&(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}(m.Component);u(R,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:c,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:x,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),t.exports=R},81124(t,e,r){"use strict";var n=r(45228);function i(){return i=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},i.apply(this,arguments)}var o=r(55203),a=r(3885),u=r(96540),s=r(93529),c=r(2935),l=r(68307),f=r(55822),p=r(98003),h=r(78527),g=r(97392),d=r(41401),y=r(90646),v=r(55291),_=r(56408),m=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},S=function(t){var e,r;function n(){for(var e,r,n,i,o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];return e=t.call.apply(t,[this].concat(a))||this,r=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e),i=void 0,(n="_node")in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,e}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var S=n.prototype;return S.shouldComponentUpdate=function(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||m(t.selection,t.block.getKey())&&t.forceSelection},S.componentDidMount=function(){if(!this.props.preventScroll){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var r=this._node;if(null!=r){var n,i=c.getScrollParent(r),o=g(i);if(i===window){var a=h(r);(n=a.y+a.height-d().height)>0&&window.scrollTo(o.x,o.y+n+10)}else{v(r)||y(!1),(n=r.offsetHeight+r.offsetTop-(i.offsetTop+i.offsetHeight+o.y))>0&&s.setTop(i,s.getTop(i)+n+10)}}}}},S._renderChildren=function(){var t=this,e=this.props.block,r=e.getKey(),n=e.getText(),s=this.props.tree.size-1,c=m(this.props.selection,r);return this.props.tree.map(function(p,h){var g=p.get("leaves");if(0===g.size)return null;var d=g.size-1,y=g.map(function(i,l){var f=a.encode(r,h,l),p=i.get("start"),g=i.get("end");return u.createElement(o,{key:f,offsetKey:f,block:e,start:p,selection:c?t.props.selection:null,forceSelection:t.props.forceSelection,text:n.slice(p,g),styleSet:e.getInlineStyleAt(p),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:h===s&&l===d})}).toArray(),v=p.get("decoratorKey");if(null==v)return y;if(!t.props.decorator)return y;var m=_(t.props.decorator),S=m.getComponentForKey(v);if(!S)return y;var b=m.getPropsForKey(v),k=a.encode(r,h,0),w=g.first().get("start"),C=g.last().get("end"),x=n.slice(w,C),E=e.getEntityAt(p.get("start")),O=f.getHTMLDirIfDifferent(l.getDirection(x),t.props.direction),K={contentState:t.props.contentState,decoratedText:x,dir:O,start:w,end:C,blockKey:r,entityKey:E,offsetKey:k};return u.createElement(S,i({},b,K,{key:k}),y)}).toArray()},S.render=function(){var t=this,e=this.props,r=e.direction,n=e.offsetKey,i=p({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===r,"public/DraftStyleDefault/rtl":"RTL"===r});return u.createElement("div",{"data-offset-key":n,className:i,ref:function(e){return t._node=e}},this._renderChildren())},n}(u.Component);t.exports=S},22784(t,e,r){"use strict";var n=r(45228);function i(){return i=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},i.apply(this,arguments)}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){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(84379),s=r(3885),c=r(96540),l=r(93529),f=r(2935),p=r(78527),h=r(97392),g=r(41401),d=r(77337),y=r(90646),v=r(55291),_=(d.List,function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e}),m=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}},S=function(t,e){var r=e(t);return r?{CustomComponent:r.component,customProps:r.props,customEditable:r.editable}:{}},b=function(t,e,r,n,i,a){var u={"data-block":!0,"data-editor":e,"data-offset-key":r,key:t.getKey(),ref:a},s=n(t);return s&&(u.className=s),void 0!==i.customEditable&&(u=o({},u,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),u},k=function(t){var e,r;function n(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return a(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(n))||this),"wrapperRef",c.createRef()),e}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var d=n.prototype;return d.shouldComponentUpdate=function(t){var e=this.props,r=e.block,n=e.direction,i=e.tree,o=!r.getChildKeys().isEmpty(),a=r!==t.block||i!==t.tree||n!==t.direction||_(t.selection,t.block.getKey())&&t.forceSelection;return o||a},d.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,i=f.getScrollParent(r),o=h(i);if(i===window){var a=p(r);(n=a.y+a.height-g().height)>0&&window.scrollTo(o.x,o.y+n+10)}else{v(r)||y(!1);var u=r;(n=u.offsetHeight+u.offsetTop-(i.offsetHeight+o.y))>0&&l.setTop(i,l.getTop(i)+n+10)}}}},d.render=function(){var t=this,e=this.props,r=e.block,a=e.blockRenderMap,l=e.blockRendererFn,f=e.blockStyleFn,p=e.contentState,h=e.decorator,g=e.editorKey,d=e.editorState,y=e.customStyleFn,v=e.customStyleMap,k=e.direction,w=e.forceSelection,C=e.selection,x=e.tree,E=null;r.children.size&&(E=r.children.reduce(function(e,r){var i=s.encode(r,0,0),u=p.getBlockForKey(r),h=S(u,l),y=h.CustomComponent||n,v=m(u,a),_=v.Element,k=v.wrapperTemplate,w=b(u,g,i,f,h,null),C=o({},t.props,{tree:d.getBlockTree(r),blockProps:h.customProps,offsetKey:i,block:u});return e.push(c.createElement(_,w,c.createElement(y,C))),!k||function(t,e){var r=t.getNextSiblingKey();return!!r&&e.getBlockForKey(r).getType()===t.getType()}(u,p)||function(t,e,r){var n=[],i=!0,o=!1,a=void 0;try{for(var u,l=r.reverse()[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var f=u.value;if(f.type!==e)break;n.push(f)}}catch(t){o=!0,a=t}finally{try{i||null==l.return||l.return()}finally{if(o)throw a}}r.splice(r.indexOf(n[0]),n.length+1);var p=n.reverse(),h=p[0].key;r.push(c.cloneElement(t,{key:"".concat(h,"-wrap"),"data-offset-key":s.encode(h,0,0)},p))}(k,_,e),e},[]));var O=r.getKey(),K=s.encode(O,0,0),D=S(r,l),M=D.CustomComponent,T=null!=M?c.createElement(M,i({},this.props,{tree:d.getBlockTree(O),blockProps:D.customProps,offsetKey:K,block:r})):c.createElement(u,{block:r,children:E,contentState:p,customStyleFn:y,customStyleMap:v,decorator:h,direction:k,forceSelection:w,hasSelection:_(C,O),selection:C,tree:x});if(r.getParentKey())return T;var A=m(r,a).Element,I=b(r,g,K,f,D,this.wrapperRef);return c.createElement(A,I,T)},n}(c.Component);t.exports=k},13136(t,e,r){"use strict";var n=r(47378),i=r(49938),o=r(3885),a=r(12242),u=r(45852),s=r(14134),c=r(16207),l=r(63564),f=r(80120),p=r(9927),h=r(56408),g=s.isBrowser("IE"),d=!1,y=!1,v=null;var _={onCompositionStart:function(t){y=!0,function(t){v||(v=new n(l(t))).start()}(t)},onCompositionEnd:function(t){d=!1,y=!1,setTimeout(function(){d||_.resolveComposition(t)},20)},onSelect:c,onKeyDown:function(t,e){if(!y)return _.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,d=!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=o.decode(e),s=u.blockKey,c=u.decoratorKey,l=u.leafKey,f=r.getBlockTree(s).getIn([c,"leaves",l]),h=f.start,g=f.end,d=r.getSelection().merge({anchorKey:s,focusKey:s,anchorOffset:h,focusOffset:g,isBackward:!1}),y=p(n,d),v=n.getBlockForKey(s).getInlineStyleAt(h);n=i.replaceText(n,d,t,v,y),r=a.set(r,{currentContent:n})});var u=f(r,l(t)).selectionState;t.restoreEditorDOM();var s=g?a.forceSelection(r,u):a.acceptSelection(r,u);t.update(a.push(s,n,"insert-characters"))}else t.update(r)}}};t.exports=_},93659(t,e,r){"use strict";var n=r(45228);function i(){return i=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},i.apply(this,arguments)}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){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(81124),s=r(3885),c=r(96540),l=r(98003),f=r(50798),p=r(56408),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})},g=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(),i=e.isInCompositionMode(),o=r.isInCompositionMode();if(e===r||null!==n&&r.getCurrentContent()===n||i&&o)return!1;var a=e.getCurrentContent(),u=r.getCurrentContent(),s=e.getDecorator(),c=r.getDecorator();return i!==o||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,g=t.editorState,d=t.editorKey,y=t.preventScroll,v=t.textDirectionality,_=g.getCurrentContent(),m=g.getSelection(),S=g.mustForceSelection(),b=g.getDecorator(),k=p(g.getDirectionMap()),w=_.getBlocksAsArray(),C=[],x=null,E=null,O=0;O<w.length;O++){var K=w[O],D=K.getKey(),M=K.getType(),T=r(K),A=void 0,I=void 0,B=void 0;T&&(A=T.component,I=T.props,B=T.editable);var L=v||k.get(D),R=s.encode(D,0,0),F={contentState:_,block:K,blockProps:I,blockStyleFn:n,customStyleMap:a,customStyleFn:l,decorator:b,direction:L,forceSelection:S,offsetKey:R,preventScroll:y,selection:m,tree:g.getBlockTree(D)},N=e.get(M)||e.get("unstyled"),z=N.wrapper,P=N.element||e.get("unstyled").element,j=K.getDepth(),U="";if(n&&(U=n(K)),"li"===P)U=f(U,h(M,j,E!==z||null===x||j>x,L));var q=A||u,H={className:U,"data-block":!0,"data-editor":d,"data-offset-key":R,key:D};void 0!==B&&(H=o({},H,{contentEditable:B,suppressContentEditableWarning:!0}));var W=c.createElement(P,H,c.createElement(q,i({},F,{key:D})));C.push({block:W,wrapperTemplate:z,key:D,offsetKey:R}),x=z?K.getDepth():null,E=z}for(var J=[],V=0;V<C.length;){var G=C[V];if(G.wrapperTemplate){var X=[];do{X.push(C[V].block),V++}while(V<C.length&&C[V].wrapperTemplate===G.wrapperTemplate);var Y=c.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},X);J.push(Y)}else J.push(G.block),V++}return c.createElement("div",{"data-contents":"true"},J)},n}(c.Component);t.exports=g},79777(t,e,r){"use strict";var n=r(47282)("draft_tree_data_support");t.exports=r(n?71803:93659)},71803(t,e,r){"use strict";var n=r(45228);function i(){return i=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},i.apply(this,arguments)}var o=r(22784),a=r(3885),u=r(96540),s=r(56408),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(),i=e.isInCompositionMode(),o=r.isInCompositionMode();if(e===r||null!==n&&r.getCurrentContent()===n||i&&o)return!1;var a=e.getCurrentContent(),u=r.getCurrentContent(),s=e.getDecorator(),c=r.getDecorator();return i!==o||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,g=f.getCurrentContent(),d=f.getSelection(),y=f.mustForceSelection(),v=f.getDecorator(),_=s(f.getDirectionMap()),m=[],S=g.getBlocksAsArray()[0];S;){var b=S.getKey(),k={blockRenderMap:e,blockRendererFn:r,blockStyleFn:n,contentState:g,customStyleFn:l,customStyleMap:c,decorator:v,editorKey:p,editorState:f,forceSelection:y,selection:d,block:S,direction:h||_.get(b),tree:f.getBlockTree(b)},w=(e.get(S.getType())||e.get("unstyled")).wrapper;m.push({block:u.createElement(o,i({key:b},k)),wrapperTemplate:w,key:b,offsetKey:a.encode(b,0,0)});var C=S.getNextSiblingKey();S=C?g.getBlockForKey(C):null}for(var x=[],E=0;E<m.length;){var O=m[E];if(O.wrapperTemplate){var K=[];do{K.push(m[E].block),E++}while(E<m.length&&m[E].wrapperTemplate===O.wrapperTemplate);var D=u.cloneElement(O.wrapperTemplate,{key:O.key+"-wrap","data-offset-key":O.offsetKey},K);x.push(D)}else x.push(O.block),E++}return u.createElement("div",{"data-contents":"true"},x)},n}(u.Component);t.exports=c},71988(t,e,r){"use strict";var n=r(45228);function i(){return i=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},i.apply(this,arguments)}var o=r(3885),a=r(96540),u=r(68307),s=r(55822),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,g=e.getKey(),d=p.get("leaves"),y=c.getComponentForKey(l),v=c.getPropsForKey(l),_=o.encode(g,parseInt(l,10),0),m=h.slice(d.first().get("start"),d.last().get("end")),S=s.getHTMLDirIfDifferent(u.getDirection(m),f);return a.createElement(y,i({},v,{contentState:n,decoratedText:m,dir:S,key:_,entityKey:e.getEntityAt(p.get("start")),offsetKey:_}),r)},n}(a.Component);t.exports=c},42474(t,e,r){"use strict";var n=r(92395),i=r(49938),o=r(12242),a=r(88372),u=r(19677),s=r(723),c=r(79450),l=r(35389),f=r(73680),p=r(56408);var h={onDragEnd:function(t){t.exitCurrentMode(),g(t)},onDrop:function(t,e){var r=new n(e.nativeEvent.dataTransfer),l=t._latestEditorState,h=function(t,e){var r=null,n=null,i=u(t.currentTarget);if("function"==typeof i.caretRangeFromPoint){var o=i.caretRangeFromPoint(t.x,t.y);r=o.startContainer,n=o.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(d(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=i.moveText(t.getCurrentContent(),t.getSelection(),e);return o.push(t,r,"insert-fragment")}(l,h)):t.update(d(l,h,r.getText()))),g(t)}}}};function g(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 d(t,e,r){var n=i.insertText(t.getCurrentContent(),e,r,t.getCurrentInlineStyle());return o.push(t,n,"insert-fragment")}t.exports=h},97784(t,e,r){"use strict";var n=r(14134),i=r(73722),o=r(18058),a=r(87141),u=r(3694),s=r(73919),c=r(16127),l=r(74861),f=r(44447),p=r(5091),h=r(48136),g=r(72208),d=r(16207),y=n.isBrowser("Chrome"),v=n.isBrowser("Firefox"),_=y||v?d:function(t){},m={onBeforeInput:i,onBlur:o,onCompositionStart:a,onCopy:u,onCut:s,onDragOver:c,onDragStart:l,onFocus:f,onInput:p,onKeyDown:h,onPaste:g,onSelect:d,onMouseUp:_,onKeyUp:_};t.exports=m},74576(t,e,r){"use strict";var n=r(40961).unstable_flushControlled;t.exports=n},55203(t,e,r){"use strict";var n=r(45228);var i=r(16268),o=r(96540),a=r(90646),u=r(12623),s=r(94660).setDraftEditorSelection,c=function(t){var e,r;function c(){for(var e,r,n,i,o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];return e=t.call.apply(t,[this].concat(a))||this,r=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e),i=void 0,(n="leaf")in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,e}r=t,(e=c).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var l=c.prototype;return l._setSelection=function(){var t=this.props.selection;if(null!=t&&t.getHasFocus()){var e=this.props,r=e.block,n=e.start,i=e.text,o=r.getKey(),c=n+i.length;if(t.hasEdgeWithin(o,n,c)){var l=this.leaf;l||a(!1);var f,p=l.firstChild;p||a(!1),p.nodeType===Node.TEXT_NODE?f=p:u(p)?f=l:(f=p.firstChild)||a(!1),s(t,f,o,n,c)}}},l.shouldComponentUpdate=function(t){var e=this.leaf;return e||a(!1),e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection},l.componentDidUpdate=function(){this._setSelection()},l.componentDidMount=function(){this._setSelection()},l.render=function(){var t=this,e=this.props.block,r=this.props.text;r.endsWith("\n")&&this.props.isLast&&(r+="\n");var a=this.props,u=a.customStyleMap,s=a.customStyleFn,c=a.offsetKey,l=a.styleSet,f=l.reduce(function(t,e){var r={},i=u[e];return void 0!==i&&t.textDecoration!==i.textDecoration&&(r.textDecoration=[t.textDecoration,i.textDecoration].join(" ").trim()),n(t,i,r)},{});if(s){var p=s(l,e);f=n(f,p)}return o.createElement("span",{"data-offset-key":c,ref:function(e){return t.leaf=e},style:f},o.createElement(i,null,r))},c}(o.Component);t.exports=c},84379(t,e,r){"use strict";var n=r(71988),i=r(55203),o=r(3885),a=r(77337),u=r(96540),s=r(98003),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,g=t.selection,d=t.tree,y=e.getKey(),v=e.getText(),_=d.size-1,m=this.props.children||d.map(function(t,s){var d=t.get("decoratorKey"),m=t.get("leaves"),S=m.size-1,b=m.map(function(t,r){var n=o.encode(y,s,r),l=t.get("start"),f=t.get("end");return u.createElement(i,{key:n,offsetKey:n,block:e,start:l,selection:h?g:null,forceSelection:p,text:v.slice(l,f),styleSet:e.getInlineStyleAt(l),customStyleMap:c,customStyleFn:a,isLast:d===_&&r===S})}).toArray();return d&&l?u.createElement(n,{block:e,children:b,contentState:r,decorator:l,decoratorKey:d,direction:f,leafSet:t,text:v,key:s}):b}).toArray();return u.createElement("div",{"data-offset-key":o.encode(y,0,0),className:s({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},m)},a}(u.Component));t.exports=c},49884(t,e,r){"use strict";var n=r(96540),i=r(98003),o=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 a=o.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=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/has
1Focus":t});return n.createElement("div",{className:e},n.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},o}(n.Component);t.exports=o},16268(t,e,r){"use strict";function n(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 o=r(96540),a=r(14134),u=r(90646),s=r(93816),c=a.isBrowser("IE <= 11");var l=function(t){var e,r;function a(e){var r;return i(n(r=t.call(this,e)||this),"_forceFlag",void 0),i(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?o.createElement("span",{key:"A","data-text":"true",ref:t},"\n"):o.createElement("br",{key:"A","data-text":"true",ref:t})):function(t){return c?o.createElement("span",{key:"B","data-text":"true",ref:t},"\n"):o.createElement("br",{key:"B","data-text":"true",ref:t})}(function(t){return e._node=t}):o.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return e._node=t}},this.props.children)},a}(o.Component);t.exports=l},953(t){"use strict";t.exports={initODS:function(){},handleExtensionCausedError:function(){}}},11608(t,e,r){"use strict";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 i=r(5407),o=r(77337),a=r(90646),u=r(24809),s=(0,o.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 i({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),i=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}({},r.getData(),e),o=r.set("data",i);return s=s.set(t,o),o},__replaceData:function(t,e){var r=f.__get(t).set("data",e);return s=s.set(t,r),r}};t.exports=f},5407(t,e,r){"use strict";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 i=n.prototype;return i.getType=function(){return this.get("type")},i.getMutability=function(){return this.get("mutability")},i.getData=function(){return this.get("data")},n}((0,r(77337).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));t.exports=n},68382(t){"use strict";t.exports={getRemovalRange:function(t,e,r,n,i){var o=r.split(" ");
vendor: 135,462 bytes, line 1
1o=o.map(function(t,e){if("forward"===i){if(e>0)return" "+t}else if(e<o.length-1)return t+" ";return t});for(var a,u=n,s=null,c=null,l=0;l<o.length;l++){if(t<(a=u+o[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"===i?c!==f&&c++:s!==n&&s--),{start:s,end:c}}}},67204(t){"use strict";t.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},49938(t,e,r){"use strict";var n=r(23018),i=r(94092),o=r(16416),a=r(80508),u=r(30866),s=r(77337),c=r(19127),l=r(3136),f=r(90646),p=r(5462),h=r(86044),g=r(54435),d=r(53222),y=s.OrderedSet,v={replaceText:function(t,e,r,i,o){var a=h(t,e),u=g(a,e),s=n.create({style:i||y(),entity:o||null});return l(u,u.getSelectionAfter(),r,s)},insertText:function(t,e,r,n,i){return e.isCollapsed()||f(!1),v.replaceText(t,e,r,n,i)},moveText:function(t,e,r){var n=u(t,e),i=v.removeRange(t,e,"backward");return v.replaceWithFragment(i,r,n)},replaceWithFragment:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",i=h(t,e),o=g(i,e);return c(o,o.getSelectionAfter(),r,n)},removeRange:function(t,e,r){var n,i,o,u;e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),n=e.getAnchorKey(),i=e.getFocusKey(),o=t.getBlockForKey(n),u=t.getBlockForKey(i);var s=e.getStartOffset(),c=e.getEndOffset(),l=o.getEntityAt(s),f=u.getEntityAt(c-1);if(n===i&&l&&l===f){var p=a(t.getEntityMap(),o,u,e,r);return g(t,p)}var d=h(t,e);return g(d,e)},splitBlock:function(t,e){var r=h(t,e),n=g(r,e);return d(n,n.getSelectionAfter())},applyInlineStyle:function(t,e,r){return i.add(t,e,r)},removeInlineStyle:function(t,e,r){return i.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 o(n,e,r)}};t.exports=v},3885(t){"use strict";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],i=r[1];return{blockKey:r.slice(2).reverse().join(e),decoratorKey:parseInt(i,10),leafKey:parseInt(n,10)}}};t.exports=r},50046(t,e,r){"use strict";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 i=r(56840),o=r(65224),a=r(24712),u=r(6991),s=r(19248),c=r(47282),l=r(77337),f=r(91721),p=l.List,h=l.Repeat,g=c("draft_tree_data_support"),d=g?o:i,y={processHTML:function(t,e){return a(t,s,e)},processText:function(t,e,r){return t.reduce(function(t,i,o){i=f(i);var a=u(),s={key:a,type:r,text:i,characterList:p(h(e,i.length))};if(g&&0!==o){var c=o-1;s=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}({},s,{prevSibling:(t[c]=t[c].merge({nextSibling:a})).getKey()})}return t.push(new d(s)),t},[])}};t.exports=y},73998(t,e,r){"use strict";var n="['ââ]",i="\\s|(?![_])"+r(77405).getPunctuation(),o=new RegExp("^(?:"+i+")*(?:"+n+"|(?!"+i+").)*(?:(?!"+i+").)"),a=new RegExp("(?:(?!"+i+").)(?:"+n+"|(?!"+i+").)*(?:"+i+")*$");function u(t,e){var r=e?a.exec(t):o.exec(t);return r?r[0]:t}var s={getBackward:function(t){return u(t,!0)},getForward:function(t){return u(t,!1)}};t.exports=s},91439(t){"use strict";var e={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}};t.exports=e},62396(t,e,r){"use strict";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){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 o=r(6991),a=r(90646),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 i=n.children;Array.isArray(i)||a(!1),r=r.concat([].concat(i.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 i=u(t),a=t.depth||0,s=n({},t,{children:[]});if(i){var c=r[0];if(null==c&&0===a)e.push(s);else if(null==c||c.depth<a-1){var l={key:o(),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},72490(t,e,r){"use strict";r(14594);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 i=t.getPrevSiblingKey();if(null!=i&&e.get(i).getNextSiblingKey()!==r)return!1;var o=t.getNextSiblingKey();if(null!=o&&e.get(o).getPrevSiblingKey()!==r)return!1;return(null===o||null===i||i!==o)&&!(""!=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(),i=[];null!=n;){var o=t.get(n),a=o.getChildKeys(),u=o.getNextSiblingKey();if(a.size>0){null!=u&&i.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!=o.getNextSiblingKey()?o.getNextSiblingKey():i.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)}}},3914(t,e,r){"use strict";var n,i=r(61708),o=r(77337),a=r(56408),u=o.OrderedMap,s={getDirectionMap:function(t,e){n?n.reset():n=new i;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&&o.is(e,c)?e:c}};t.exports=s},12242(t,e,r){"use strict";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){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 o=r(19981),a=r(97656),u=r(3914),s=r(91381),c=r(77337),l=c.OrderedSet,f=c.Record,p=c.Stack,h=c.OrderedMap,g=c.List,d=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,i=n({},t,{treeMap:_(r,t.decorator),directionMap:u.getDirectionMap(r)});return new e(new d(i))},e.fromJS=function(t){return new e(new d(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 g(t).map(function(t){return o.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"),i=n;null===r.decorator?i=null:r.decorator&&(i=r.decorator);var a=r.currentContent||t.getCurrentContent();if(i!==n){var u,s=e.get("treeMap");return u=i&&n?function(t,e,r,n,i){return r.merge(e.toSeq().filter(function(e){return n.getDecorations(e,t)!==i.getDecorations(e,t)}).map(function(e){return o.generate(t,e,n)}))}(a,a.getBlockMap(),s,i,n):_(a,i),void e.merge({decorator:i,treeMap:u,nativelyRenderedContent:null})}a!==t.getCurrentContent()&&e.set("treeMap",function(t,e,r,n){var i=t.getCurrentContent().set("entityMap",r),a=i.getBlockMap(),u=t.getImmutable().get("treeMap");return u.merge(e.toSeq().filter(function(t,e){return t!==a.get(e)}).map(function(t){return o.generate(i,t,n)}))}(t,a.getBlockMap(),a.getEntityMap(),i)),e.merge(r)}))};var t=e.prototype;function e(t){i(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(),i=t.getBlockForKey(r);if(n>0)return i.getInlineStyleAt(n-1);if(i.getLength())return i.getInlineStyleAt(0);return m(t,r)}(e,r):function(t,e){var r=e.getStartKey(),n=e.getStartOffset(),i=t.getBlockForKey(r);if(n<i.getLength())return i.getInlineStyleAt(n);if(n>0)return i.getInlineStyleAt(n-1);return m(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(),i=r.getLength();return e.acceptSelection(t,new s({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}))},e.moveFocusToEnd=function(t){var r=e.moveSelectionToEnd(t);return e.forceSelection(r,r.getSelection())},e.push=function(t,r,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.getCurrentContent()===r)return t;var o=u.getDirectionMap(r,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:r,directionMap:o,lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),c=t.getUndoStack(),l=r;a!==s.getSelectionAfter()||function(t,e){var r=t.getLastChangeType();return e!==r||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}(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();-1===["adjust-depth","change-block-type","split-block"].indexOf(n)&&(f=null);var h={currentContent:l,directionMap:o,undoStack:c,redoStack:p(),lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:i,inlineStyleOverride:f};return e.set(t,h)},e.undo=function(t){if(!t.getAllowUndo())return t;var r=t.getUndoStack(),n=r.peek();if(!n)return t;var i=t.getCurrentContent(),o=u.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:o,undoStack:r.shift(),redoStack:t.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var r=t.getRedoStack(),n=r.peek();if(!n)return t;var i=t.getCurrentContent(),o=u.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:o,undoStack:t.getUndoStack().push(i),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 _(t,e){return t.getBlockMap().map(function(r){return o.generate(t,r,e)}).toOrderedMap()}function m(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},59414(t,e,r){"use strict";var n=r(14134),i=r(83174),o=n.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return o&&t.altKey},usesMacOSHeuristics:function(){return o},hasCommandModifier:function(t){return o?!!t.metaKey&&!t.altKey:a.isCtrlKeyCommand(t)},isSoftNewlineEvent:i};t.exports=a},66429(){},7018(t,e,r){"use strict";var n=r(49938),i=r(12242),o=r(60286),a=r(56408),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=i.push(t,e,"insert-characters");return i.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(),o=r.getBlockBefore(n);if(o&&"atomic"===o.getType()){var a=r.getBlockMap().delete(o.getKey()),s=r.merge({blockMap:a,selectionAfter:e});if(s!==r)return i.push(t,s,"remove-range")}var c=u.tryToRemoveBlockStyle(t);return c?i.push(t,c,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var r=t.getCurrentContent(),o=e.getStartKey(),a=r.getBlockForKey(o).getLength();if(e.getStartOffset()<a)return null;var u=r.getBlockAfter(o);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?i.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=o(u,n,t.shiftKey?-1:1,r);return i.push(e,f,"adjust-depth")},toggleBlockType:function(t,e){var r=t.getSelection(),o=r.getStartKey(),u=r.getEndKey(),s=t.getCurrentContent(),c=r;if(o!==u&&0===r.getEndOffset()){var l=a(s.getBlockBefore(u));u=l.getKey(),c=c.merge({anchorKey:o,anchorOffset:r.getStartOffset(),focusKey:u,focusOffset:l.getLength(),isBackward:!1})}if(s.getBlockMap().skipWhile(function(t,e){return e!==o}).reverse().skipWhile(function(t,e){return e!==u}).some(function(t){return"atomic"===t.getType()}))return t;var f=s.getBlockForKey(o).getType()===e?"unstyled":e;return i.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(),o=t.getCurrentInlineStyle();if(r.isCollapsed())return i.setInlineStyleOverride(t,o.has(e)?o.remove(e):o.add(e));var a,u=t.getCurrentContent();return a=o.has(e)?n.removeInlineStyle(u,r,e):n.applyInlineStyle(u,r,e),i.push(t,a,"change-inline-style")},toggleLink:function(t,e,r){var o=n.applyEntity(t.getCurrentContent(),e,r);return i.push(t,o,"apply-entity")},tryToRemoveBlockStyle:function(t){var e=t.getSelection(),r=e.getAnchorOffset();if(e.isCollapsed()&&0===r){var i=e.getAnchorKey(),o=t.getCurrentContent(),a=o.getBlockForKey(i).getType(),u=o.getBlockBefore(i);if("code-block"===a&&u&&"code-block"===u.getType()&&0!==u.getLength())return null;if("unstyled"!==a)return n.setBlockType(o,e,"unstyled")}return null}};t.exports=u},45170(t,e,r){"use strict";var n=r(49938),i=r(12242),o=r(30866),a=r(56408),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=o(e,s);var p=n.removeRange(e,s,"forward");return p===e?t:i.push(t,p,"remove-range")},paste:function(t){if(!u)return t;var e=n.replaceWithFragment(t.getCurrentContent(),t.getSelection(),u);return i.push(t,e,"insert-fragment")}};t.exports=s},91381(t,e,r){"use strict";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 i=n.prototype;return i.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},i.getAnchorKey=function(){return this.get("anchorKey")},i.getAnchorOffset=function(){return this.get("anchorOffset")},i.getFocusKey=function(){return this.get("focusKey")},i.getFocusOffset=function(){return this.get("focusOffset")},i.getIsBackward=function(){return this.get("isBackward")},i.getHasFocus=function(){return this.get("hasFocus")},i.hasEdgeWithin=function(t,e,r){var n=this.getAnchorKey(),i=this.getFocusKey();if(n===i&&n===t){var o=this.getStartOffset(),a=this.getEndOffset();return e<=o&&o<=r||e<=a&&a<=r}if(t!==n&&t!==i)return!1;var u=t===n?this.getAnchorOffset():this.getFocusOffset();return e<=u&&r>=u},i.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},i.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},i.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},i.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},i.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(77337).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));t.exports=n},60286(t){"use strict";t.exports=function(t,e,r,n){var i=e.getStartKey(),o=e.getEndKey(),a=t.getBlockMap(),u=a.toSeq().skipUntil(function(t,e){return e===i}).takeUntil(function(t,e){return e===o}).concat([[o,a.get(o)]]).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})}},41952(t,e,r){"use strict";var n=r(23018);t.exports=function(t,e,r,i){for(var o=e,a=t.getCharacterList();o<r;)a=a.set(o,n.applyEntity(a.get(o),i)),o++;return t.set("characterList",a)}},16416(t,e,r){"use strict";var n=r(41952),i=r(77337);t.exports=function(t,e,r){var o=t.getBlockMap(),a=e.getStartKey(),u=e.getStartOffset(),s=e.getEndKey(),c=e.getEndOffset(),l=o.skipUntil(function(t,e){return e===a}).takeUntil(function(t,e){return e===s}).toOrderedMap().merge(i.OrderedMap([[s,o.get(s)]])).map(function(t,e){var i=e===a?u:0,o=e===s?c:t.getLength();return n(t,i,o,r)});return t.merge({blockMap:o.merge(l),selectionBefore:e,selectionAfter:e})}},7470(t,e,r){"use strict";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 i=r(56840),o=r(65224),a=r(91439),u=r(77862),s=r(20702),c=r(90646),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 i)r.push(l(t,e));else{t instanceof o||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]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),i.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=[],i={},o={},u=0;return t.getBlockMap().forEach(function(t){t.findEntityRanges(function(t){return null!==t.getEntity()},function(e){var n=t.getEntityAt(e),i=a.stringify(n);o[i]||(o[i]=n,r[i]="".concat(u),u++)}),f(t,r,n,i)}),{blocks:n,entityMap:r}}(t,e),e=function(t,e){var r=e.blocks,n=e.entityMap,i={};return Object.keys(n).forEach(function(e,r){var n=t.getEntity(a.unstringify(e));i[r]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{blocks:r,entityMap:i}}(t,e),e}},24712(t,e,r){"use strict";var n;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){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 a=r(23018),u=r(56840),s=r(65224),c=r(13387),l=r(11608),f=r(25324),p=r(98003),h=r(6991),g=r(19248),d=r(47282),y=r(77337),v=y.List,_=y.Map,m=y.OrderedSet,S=r(20316),b=r(12623),k=r(55291),w=r(7296),C=d("draft_tree_data_support"),x=new RegExp("\r","g"),E=new RegExp("\n","g"),O=new RegExp("^\n","g"),K=new RegExp(" ","g"),D=new RegExp(" ?","g"),M=new RegExp("​?","g"),T=["bold","bolder","500","600","700","800","900"],A=["light","lighter","normal","100","200","300","400"],I=["className","href","rel","target","title"],B=["alt","className","height","src","width"],L=(o(n={},p("public/DraftStyleDefault/depth0"),0),o(n,p("public/DraftStyleDefault/depth1"),1),o(n,p("public/DraftStyleDefault/depth2"),2),o(n,p("public/DraftStyleDefault/depth3"),3),o(n,p("public/DraftStyleDefault/depth4"),4),n),R=_({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),F=function(t){if(k(t)&&t.style.fontFamily.includes("monospace"))return"CODE";return null},N=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(L).some(function(r){t.classList.contains(r)&&(e=L[r])}),e},z=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(t){return!1}},P=function(t){if(!w(t))return!1;var e=t;return!(!e.attributes.getNamedItem("src")||!e.attributes.getNamedItem("src").value)},j=function(t,e){if(!k(t))return e;var r=t,n=r.style.fontWeight,i=r.style.fontStyle,o=r.style.textDecoration;return e.withMutations(function(t){T.indexOf(n)>=0?t.add("BOLD"):A.indexOf(n)>=0&&t.remove("BOLD"),"italic"===i?t.add("ITALIC"):"normal"===i&&t.remove("ITALIC"),"underline"===o&&t.add("UNDERLINE"),"line-through"===o&&t.add("STRIKETHROUGH"),"none"===o&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))})},U=function(t){return"ul"===t||"ol"===t},q=function(){function t(t,e){o(this,"characterList",v()),o(this,"currentBlockType","unstyled"),o(this,"currentDepth",0),o(this,"currentEntity",null),o(this,"currentText",""),o(this,"wrapper",null),o(this,"blockConfigs",[]),o(this,"contentBlocks",[]),o(this,"entityMap",l),o(this,"blockTypeMap",void 0),o(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],m())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},e.getContentBlocks=function(){return 0===this.contentBlocks.length&&(C?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=i({key:t.key||h(),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="",e},e._toBlockConfigs=function(t,e){for(var r=[],n=0;n<t.length;n++){var i=t[n],o=i.nodeName.toLowerCase();if("body"===o||U(o)){this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var a=this.currentDepth,u=this.wrapper;U(o)&&(this.wrapper=o,U(u)&&this.currentDepth++),r.push.apply(r,this._toBlockConfigs(Array.from(i.childNodes),e)),this.currentDepth=a,this.wrapper=u}else{var s=this.blockTypeMap.get(o);if(void 0===s)if("#text"!==o)if("br"!==o)if(P(i))this._addImgNode(i,e);else if(z(i))this._addAnchorNode(i,r,e);else{var c=e;R.has(o)&&(c=c.add(R.get(o))),c=j(i,c);var l=F(i);null!=l&&(c=c.add(l)),r.push.apply(r,this._toBlockConfigs(Array.from(i.childNodes),c))}else this._addBreakNode(i,e);else this._addTextNode(i,e);else{this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var f=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===o?"pre":this.wrapper,"string"!=typeof s&&(s=this.disambiguate(o,this.wrapper)||s[0]||"unstyled"),!C&&k(i)&&("unordered-list-item"===s||"ordered-list-item"===s)){var g=i;this.currentDepth=N(g,this.currentDepth)}var d=h(),y=this._toBlockConfigs(Array.from(i.childNodes),e);this._trimCurrentText(),r.push(this._makeBlockConfig({key:d,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(E," ")),this._appendText(r,e)},e._addBreakNode=function(t,e){b(t)&&this._appendText("\n",e)},e._addImgNode=function(t,e){if(w(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),d("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,i={};I.forEach(function(t){var e=n.getAttribute(t);e&&(i[t]=e)}),i.url=new f(n.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",i||{}),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 o=t[n];o.parent=e,o.prevSibling=n>0?t[n-1].key:null,o.nextSibling=n<r?t[n+1].key:null,o.children=v(o.childConfigs.map(function(t){return t.key})),this.contentBlocks.push(new s(i({},o))),this._toContentBlocks(o.childConfigs,o.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,o=r.characterList;e.contentBlocks.push(new u(i({},t,{text:t.text+n,characterList:t.characterList.concat(o)})))})},e._extractTextFromBlockConfigs=function(t){for(var e=t.length-1,r="",n=v(),i=0;i<=e;i++){var o=t[i];r+=o.text,n=n.concat(o.characterList),""!==r&&"unstyled"!==o.type&&(r+="\n",n=n.push(n.last()));var a=this._extractTextFromBlockConfigs(o.childConfigs);r+=a.text,n=n.concat(a.characterList)}return{text:r,characterList:n}},t}();t.exports=function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:g)(t=t.trim().replace(x,"").replace(K," ").replace(D,"").replace(M,""));if(!r)return null;var n=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)})}),_(e)}(e);return new q(n,function(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null}).addDOMNode(r).getContentBlocks()}},50428(t,e,r){"use strict";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){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 o=r(56840),a=r(65224),u=r(97656),s=r(11608),c=r(62396),l=(r(72490),r(91381)),f=r(40803),p=r(52401),h=r(33830),g=r(6991),d=r(47282),y=r(77337),v=r(90646),_=d("draft_tree_data_support"),m=y.List,S=y.Map,b=y.OrderedMap,k=function(t,e){var r=t.key,n=t.type,i=t.data;return{text:t.text,depth:t.depth||0,type:n||"unstyled",key:r||g(),data:S(i),characterList:w(t,e)}},w=function(t,e){var r=t.text,i=t.entityRanges,o=t.inlineStyleRanges,a=i||[];return f(h(r,o||[]),p(r,a.filter(function(t){return e.hasOwnProperty(t.key)}).map(function(t){return n({},t,{key:e[t.key]})})))},C=function(t){return n({},t,{key:t.key||g()})},x=function(t,e,r){var i=e.map(function(t){return n({},t,{parentRef:r})});return t.concat(i.reverse())},E=function(t,e){var r=t.blocks.find(function(t){return Array.isArray(t.children)&&t.children.length>0}),i=_&&!r?c.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!_)return function(t,e){return b(t.map(function(t){var r=new o(k(t,e));return[r.getKey(),r]}))}(r?c.fromRawTreeStateToRawState(t).blocks:i,e);var u=function(t,e){return t.map(C).reduce(function(r,i,o){Array.isArray(i.children)||v(!1);var u=i.children.map(C),s=new a(n({},k(i,e),{prevSibling:0===o?null:t[o-1].key,nextSibling:o===t.length-1?null:t[o+1].key,children:m(u.map(function(t){return t.key}))}));r=r.set(s.getKey(),s);for(var c=x([],u,s);c.length>0;){var l=c.pop(),f=l.parentRef,p=f.getChildKeys(),h=p.indexOf(l.key),g=Array.isArray(l.children);if(!g){g||v(!1);break}var d=l.children.map(C),y=new a(n({},k(l,e),{parent:f.getKey(),children:m(d.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=x(c,d,y)}return r},b())}(i,e);return u};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],i=n.type,o=n.mutability,a=n.data;r[t]=s.__create(i,o,a||{})}),r}(t),r=E(t,e),n=r.isEmpty()?new l:l.createEmpty(r.first().getKey());return new u({blockMap:r,entityMap:e,selectionBefore:n,selectionAfter:n})}},40803(t,e,r){"use strict";var n=r(23018),i=r(77337).List;t.exports=function(t,e){var r=t.map(function(t,r){var i=e[r];return n.create({style:t,entity:i})});return i(r)}},52401(t,e,r){"use strict";var n=r(50580).substr;t.exports=function(t,e){var r=Array(t.length).fill(null);return e&&e.forEach(function(e){for(var i=n(t,0,e.offset).length,o=i+n(t,e.offset,e.length).length,a=i;a<o;a++)r[a]=e.key}),r}},33830(t,e,r){"use strict";var n=r(50580),i=r(77337).OrderedSet,o=n.substr,a=i();t.exports=function(t,e){var r=Array(t.length).fill(a);return e&&e.forEach(function(e){for(var n=o(t,0,e.offset).length,i=n+o(t,e.offset,e.length).length;n<i;)r[n]=r[n].add(e.style),n++}),r}},51103(t){"use strict";t.exports={notEmptyKey:function(t){return null!=t&&""!=t}}},73722(t,e,r){"use strict";var n=r(49938),i=r(12242),o=r(14134),a=r(9927),u=r(73680),s=r(17759),c=r(56408),l=r(19765),f=o.isBrowser("Firefox");function p(t,e,r,o,a){var u=n.replaceText(t.getCurrentContent(),t.getSelection(),e,r,o);return i.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 o=r.getSelection(),h=o.getStartOffset(),g=o.getAnchorKey();if(!o.isCollapsed())return e.preventDefault(),void t.update(p(r,n,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!0));var d,y=p(r,n,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!1),v=!1;if(v||(v=s(t._latestCommittedEditorState)),!v){var _=r.getBlockTree(g),m=y.getBlockTree(g);v=_.size!==m.size||_.zip(m).some(function(t){var e=t[0],r=t[1],i=e.get("start"),o=i+(i>=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||o!==s||u!==c||null!=l&&c-s!==a-i})}if(v||(d=n,v=f&&("'"==d||"/"==d)),v||(v=c(y.getDirectionMap()).get(g)!==c(r.getDirectionMap()).get(g)),v)return e.preventDefault(),y=i.set(y,{forceSelection:!0}),void t.update(y);y=i.set(y,{nativelyRenderedContent:y.getCurrentContent()}),t._pendingStateFromBeforeInput=y,l(function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)})}}},18058(t,e,r){"use strict";var n=r(12242),i=r(4909),o=r(69758);t.exports=function(t,e){var r=e.currentTarget.ownerDocument;if(!Boolean(t.props.preserveSelectionOnBlur)&&o(r)===r.body){var a=r.defaultView.getSelection(),u=t.editor;1===a.rangeCount&&i(u,a.anchorNode)&&i(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))}}},87141(t,e,r){"use strict";var n=r(12242);t.exports=function(t,e){t.setMode("composite"),t.update(n.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)}},3694(t,e,r){"use strict";var n=r(31296);t.exports=function(t,e){t._latestEditorState.getSelection().isCollapsed()?e.preventDefault():t.setClipboard(n(t._latestEditorState))}},73919(t,e,r){"use strict";var n=r(49938),i=r(12242),o=r(2935),a=r(31296),u=r(97392),s=r(64316);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(o.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 i.push(t,e,"remove-range")}(c))},0)}}},16127(t){"use strict";t.exports=function(t,e){t.setMode("drag"),e.preventDefault()}},74861(t){"use strict";t.exports=function(t){t._internalDrag=!0,t.setMode("drag")}},44447(t,e,r){"use strict";var n=r(12242),i=r(14134);t.exports=function(t,e){var r=t._latestEditorState,o=r.getSelection();if(!o.getHasFocus()){var a=o.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(e),i.isBrowser("Chrome < 60.0.3081.0")?t.update(n.forceSelection(r,a)):t.update(n.acceptSelection(r,a))}}},5091(t,e,r){"use strict";var n=r(49938),i=r(3885),o=r(12242),a=r(14134),u=r(51103).notEmptyKey,s=r(88372),c=r(47381),l=r(56408),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 g=a.parentNode;if(null==g)return;a.nodeValue=g.textContent;for(var d=g.firstChild;null!=d;d=d.nextSibling)d!==a&&g.removeChild(d)}var y=a.textContent,v=t._latestEditorState,_=l(s(a)),m=i.decode(_),S=m.blockKey,b=m.decoratorKey,k=m.leafKey,w=v.getBlockTree(S).getIn([b,"leaves",k]),C=w.start,x=w.end,E=v.getCurrentContent(),O=E.getBlockForKey(S),K=O.getText().slice(C,x);if(y.endsWith("\n\n")&&(y=y.slice(0,-1)),y!==K){var D,M,T,A,I=v.getSelection(),B=I.merge({anchorOffset:C,focusOffset:x,isBackward:!1}),L=O.getEntityAt(C),R=u(L)?E.getEntity(L):null,F="MUTABLE"===(null!=R?R.getMutability():null),N=F?"spellcheck-change":"apply-entity",z=n.replaceText(E,B,y,O.getInlineStyleAt(C),F?O.getEntityAt(C):null);if(f)D=r.anchorOffset,M=r.focusOffset,A=(T=C+Math.min(D,M))+Math.abs(D-M),D=T,M=A;else{var P=y.length-K.length;T=I.getStartOffset(),A=I.getEndOffset(),D=p?A+P:T,M=A+P}var j=z.merge({selectionBefore:E.getSelectionAfter(),selectionAfter:I.merge({anchorOffset:D,focusOffset:M})});t.update(o.push(v,j,N))}else{var U=e.nativeEvent.inputType;if(U){var q=function(t,e){return"deleteContentBackward"===t?c(e):e}(U,v);if(q!==v)return t.restoreEditorDOM(),void t.update(q)}}}}},48136(t,e,r){"use strict";var n=r(49938),i=r(12242),o=r(59414),a=r(45852),u=r(45170),s=r(14134),c=r(73680),l=r(88771),f=r(94143),p=r(70525),h=r(64071),g=r(15169),d=r(20070),y=r(47381),v=r(2383),_=r(25935),m=r(8976),S=o.isOptionKeyCommand,b=s.isBrowser("Chrome");t.exports=function(t,e){var r=e.which,o=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,o)))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 k=t.props.keyBindingFn(e);if(null!=k&&""!==k)if("undo"!==k){if(e.preventDefault(),!t.props.handleKeyCommand||!c(t.props.handleKeyCommand(k,o,e.timeStamp))){var w=function(t,e,r){switch(t){case"redo":return i.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 _(e);case"move-selection-to-start-of-block":return d(e);case"move-selection-to-end-of-block":return g(e);case"secondary-cut":return u.cut(e);case"secondary-paste":return u.paste(e);default:return e}}(k,o,e);w!==o&&t.update(w)}}else m(e,o,t.update);else if(r===a.SPACE&&b&&S(e)){var C=n.replaceText(o.getCurrentContent(),o.getSelection(),"Â ");t.update(i.push(o,C,"insert-characters"))}}},72208(t,e,r){"use strict";var n=r(95748),i=r(23018),o=r(92395),a=r(49938),u=r(50046),s=r(12242),c=r(7018),l=r(9927),f=r(723),p=r(73680),h=r(73676);function g(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 o(e.clipboardData);if(!r.isRichText()){var d=r.getFiles(),y=r.getText();if(d.length>0){if(t.props.handlePastedFiles&&p(t.props.handlePastedFiles(d)))return;return void f(d,function(e){if(e=e||y){var r=t._latestEditorState,o=h(e),f=i.create({style:r.getCurrentInlineStyle(),entity:l(r.getCurrentContent(),r.getSelection())}),p=c.getCurrentBlockType(r),g=u.processText(o,f,p),d=n.createFromArray(g),v=a.replaceWithFragment(r.getCurrentContent(),r.getSelection(),d);t.update(s.push(r,v,"insert-fragment"))}})}}var v=[],_=r.getText(),m=r.getHTML(),S=t._latestEditorState;if(t.props.formatPastedText){var b=t.props.formatPastedText(_,m);_=b.text,m=b.html}if(!t.props.handlePastedText||!p(t.props.handlePastedText(_,m,S))){if(_&&(v=h(_)),!t.props.stripPastedStyles){var k,w=t.getClipboard();if(!t.props.formatPastedText&&r.isRichText()&&w){if(-1!==(null===(k=m)||void 0===k?void 0:k.indexOf(t.getEditorKey()))||1===v.length&&1===w.size&&w.first().getText()===_)return void t.update(g(t._latestEditorState,w))}else if(w&&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,w))return void t.update(g(t._latestEditorState,w));if(m){var C=u.processHTML(m,t.props.blockRenderMap);if(C){var x=C.contentBlocks,E=C.entityMap;if(x){var O=n.createFromArray(x);return void t.update(g(t._latestEditorState,O,E))}}}t.setClipboard(null)}if(v.length){var K=i.create({style:S.getCurrentInlineStyle(),entity:l(S.getCurrentContent(),S.getSelection())}),D=c.getCurrentBlockType(S),M=u.processText(v,K,D),T=n.createFromArray(M);t.update(g(t._latestEditorState,T))}}}},16207(t,e,r){"use strict";var n=r(67204),i=r(12242),o=r(63564),a=r(80120);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,o(t)),s=u.selectionState;s!==r.getSelection()&&(r=u.needsRecovery?i.forceSelection(r,s):i.acceptSelection(r,s),t.update(r))}}},77862(t,e,r){"use strict";var n=r(91439),i=r(50580).strlen;t.exports=function(t,e){var r=[];return t.findEntityRanges(function(t){return!!t.getEntity()},function(o,a){var u=t.getText(),s=t.getEntityAt(o);r.push({offset:i(u.slice(0,o)),length:i(u.slice(o,a)),key:Number(e[n.stringify(s)])})}),r}},20702(t,e,r){"use strict";var n=r(50580),i=r(18227),o=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 i(s,o,a,function(e,i){var o=t.getText();u.push({offset:n.strlen(o.slice(0,e)),length:n.strlen(o.slice(e,i)),style:r})}),u}(t,e,r)});return Array.prototype.concat.apply(u,r.toJS())}},85989(t,e,r){"use strict";var n=r(50580),i=r(19677),o=r(25377),a=r(90646);function u(t,e){for(var r=1/0,n=1/0,i=-1/0,o=-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),i=Math.max(i,u.top),o=Math.max(o,u.bottom))}return i<=n&&i-r<e&&o-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=i(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 o=r.body;o||a(!1),o.appendChild(n);var u=n.getBoundingClientRect();return o.removeChild(n),u.height}(e),c=t.endContainer,l=t.endOffset;for(t.setStart(t.startContainer,0);u(o(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,g=p;g>=0;g--)if(!(null!=h&&g>0&&n.isSurrogatePair(h,g-1))){if(t.setStart(f,g),!u(o(t),r))break;c=f,l=g}if(-1===g||0===f.childNodes.length)break;p=s(f=f.childNodes[g])}return t.setStart(c,l),t}},88372(t,e,r){"use strict";var n=r(19677),i=r(74453);t.exports=function(t){for(var e=t;e&&e!==n(t).documentElement;){var r=i(e);if(null!=r)return r;e=e.parentNode}return null}},18227(t){"use strict";t.exports=function(t,e,r,n){if(t.size){var i=0;t.reduce(function(t,o,a){return e(t,o)||(r(t)&&n(i,a),i=a),o}),r(t.last())&&n(i,t.count())}}},6991(t){"use strict";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}},80508(t,e,r){"use strict";var n=r(68382),i=r(69311),o=r(90646);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 g=i(e,u).filter(function(t){return h<=t.end&&h>=t.start});1!=g.length&&o(!1);var d=g[0];if("IMMUTABLE"===p)return r.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});s||(c?f=d.end:l=d.start);var y=n.getRemovalRange(l,f,e.getText().slice(d.start,d.end),d.start,a);return r.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}t.exports=function(t,e,r,n,i){var o=n.getStartOffset(),u=n.getEndOffset(),s=e.getEntityAt(o),c=r.getEntityAt(u-1);if(!s&&!c)return n;var l=n;if(s&&s===c)l=a(t,e,l,i,s,!0,!0);else if(s&&c){var f=a(t,e,l,i,s,!1,!0),p=a(t,r,l,i,c,!1,!1);l=l.merge({anchorOffset:f.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(s){var h=a(t,e,l,i,s,!1,!0);l=l.merge({anchorOffset:h.getStartOffset(),isBackward:!1})}else if(c){var g=a(t,r,l,i,c,!1,!1);l=l.merge({focusOffset:g.getEndOffset(),isBackward:!1})}return l}},63564(t,e,r){"use strict";var n=r(90646),i=r(55291);t.exports=function(t){var e=t.editorContainer;return e||n(!1),i(e.firstChild)||n(!1),e.firstChild}},30866(t,e,r){"use strict";var n=r(53310),i=r(86044);t.exports=function(t,e){var r=e.getStartKey(),o=e.getStartOffset(),a=e.getEndKey(),u=e.getEndOffset(),s=i(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(),i=t.getCharacterList();return r===a?t.merge({text:n.slice(o,u),characterList:i.slice(o,u)}):e===r?t.merge({text:n.slice(o),characterList:i.slice(o)}):e===a?t.merge({text:n.slice(0,u),characterList:i.slice(0,u)}):t}))}},19677(t){"use strict";t.exports=function(t){return t&&t.ownerDocument?t.ownerDocument:document}},57811(t,e,r){"use strict";var n=r(59414),i=r(45852),o=r(14134),a=o.isPlatform("Mac OS X"),u=a&&o.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 i.RETURN:return"split-block";case i.DELETE:return function(t){return!a&&t.shiftKey?null:l(t)?"delete-word":"delete"}(t);case i.BACKSPACE:return function(t){return s(t)&&a?"backspace-to-start-of-line":l(t)?"backspace-word":"backspace"}(t);case i.LEFT:return u&&s(t)?"move-selection-to-start-of-block":null;case i.RIGHT:return u&&s(t)?"move-selection-to-end-of-block":null;default:return null}}},80120(t,e,r){"use strict";var n=r(29215);t.exports=function(t,e){var r=e.ownerDocument.defaultView.getSelection(),i=r.anchorNode,o=r.anchorOffset,a=r.focusNode,u=r.focusOffset;return 0===r.rangeCount||null==i||null==a?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:n(t,e,i,o,a,u)}},29215(t,e,r){"use strict";var n=r(88372),i=r(74453),o=r(79450),a=r(90646),u=r(93816),s=r(56408);function c(t,e,r){var o=e,c=n(o);(null!=c||t&&(t===o||t.firstChild===o)||a(!1),t===o)&&(o=o.firstChild,u(o)||a(!1),"true"!==(o=o).getAttribute("data-contents")&&a(!1),r>0&&(r=o.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")||i(t.firstChild));)t=t.firstChild;return t}(o);f=s(i(p))}return{key:f,offset:0}}var h=o.childNodes[r-1],g=null,d=null;if(i(h)){var y=function(t){for(;t.lastChild&&(u(t.lastChild)&&"true"===t.lastChild.getAttribute("data-blocks")||i(t.lastChild));)t=t.lastChild;return t}(h);g=s(i(y)),d=l(y)}else g=s(c),d=l(h);return{key:g,offset:d}}function l(t){var e=t.textContent;return"\n"===e?0:e.length}t.exports=function(t,e,r,i,a,u){var l=r.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:o(t,s(n(r)),i,s(n(a)),u),needsRecovery:!1};var p=null,h=null,g=!0;return l?(p={key:s(n(r)),offset:i},h=c(e,a,u)):f?(h={key:s(n(a)),offset:u},p=c(e,r,i)):(p=c(e,r,i),h=c(e,a,u),r===a&&i===u&&(g=!!r.firstChild&&"BR"!==r.firstChild.nodeName)),{selectionState:o(t,p.key,p.offset,h.key,h.offset),needsRecovery:g}}},9927(t,e,r){"use strict";var n=r(51103).notEmptyKey;function i(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(),o=e.getAnchorOffset();return o>0?(r=t.getBlockForKey(n).getEntityAt(o-1))!==t.getBlockForKey(n).getEntityAt(o)?null:i(t.getEntityMap(),r):null}var a=e.getStartKey(),u=e.getStartOffset(),s=t.getBlockForKey(a);return r=u===s.getLength()?null:s.getEntityAt(u),i(t.getEntityMap(),r)}},31296(t,e,r){"use strict";var n=r(30866);t.exports=function(t){var e=t.getSelection();return e.isCollapsed()?null:n(t.getCurrentContent(),e)}},7376(t,e,r){"use strict";var n=r(65224);t.exports=function(t,e){if(!(t instanceof n))return null;var r=t.getNextSiblingKey();if(r)return r;var i=t.getParentKey();if(!i)return null;for(var o=e.get(i);o&&!o.getNextSiblingKey();){var a=o.getParentKey();o=a?e.get(a):null}return o?o.getNextSiblingKey():null}},679(t){"use strict";t.exports=function(t){return Object.keys(t).map(function(e){return t[e]})}},64658(t,e,r){"use strict";var n=r(25377);t.exports=function(t){var e=n(t),r=0,i=0,o=0,a=0;if(e.length){if(e.length>1&&0===e[0].width){var u=e[1];r=u.top,i=u.right,o=u.bottom,a=u.left}else{var s=e[0];r=s.top,i=s.right,o=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),i=Math.max(i,l.right),o=Math.max(o,l.bottom),a=Math.min(a,l.left))}}return{top:r,right:i,bottom:o,left:a,width:i-a,height:o-r}}},25377(t,e,r){"use strict";var n=r(14134),i=r(90646);var o=n.isBrowser("Chrome")?function(t){for(var e=t.cloneRange(),r=[],n=t.endContainer;null!=n;n=n.parentNode){var o=n===t.commonAncestorContainer;o?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var a,u=Array.from(e.getClientRects());if(r.push(u),o)return r.reverse(),(a=[]).concat.apply(a,r);e.setEndBefore(n)}i(!1)}:function(t){return Array.from(t.getClientRects())};t.exports=o},69311(t,e,r){"use strict";var n=r(90646);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}},19248(t,e,r){"use strict";var n=r(14134),i=r(90646),o=n.isBrowser("IE <= 9");t.exports=function(t){var e,r=null;return!o&&document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement||i(!1),e.documentElement.innerHTML=t,r=e.getElementsByTagName("body")[0]),r}},74453(t,e,r){"use strict";var n=r(93816);t.exports=function t(e){if(n(e)){var r=e,i=r.getAttribute("data-offset-key");if(i)return i;for(var o=0;o<r.childNodes.length;o++){var a=t(r.childNodes[o]);if(a)return a}}return null}},723(t,e,r){"use strict";var n=r(90646),i=/\.textClipping$/,o={"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 o))return void e("");if(""===t.type){var a="";return i.test(t.name)&&(a=t.name.replace(i,"")),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"))})})}},79450(t,e,r){"use strict";var n=r(3885),i=r(56408);t.exports=function(t,e,r,o,a){var u=i(t.getSelection());if(!e||!o)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(o),h=p.blockKey,g=t.getBlockTree(h),d=g&&g.getIn([p.decoratorKey,"leaves",p.leafKey]);if(!f||!d)return u;var y=f.get("start"),v=d.get("start"),_=f?y+r:null,m=d?v+a:null;if(u.getAnchorKey()===c&&u.getAnchorOffset()===_&&u.getFocusKey()===h&&u.getFocusOffset()===m)return u;var S=!1;if(c===h){var b=f.get("end"),k=d.get("end");S=v===y&&k===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:_,focusKey:h,focusOffset:m,isBackward:S})}},30894(t,e,r){"use strict";var n=r(64658);t.exports=function(t){var e=t.getSelection();if(!e.rangeCount)return null;var r=e.getRangeAt(0),i=n(r),o=i.top,a=i.right,u=i.bottom,s=i.left;return 0===o&&0===a&&0===u&&0===s?null:i}},35389(t){"use strict";t.exports=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}},47282(t){"use strict";t.exports=function(t){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[t]}},19127(t,e,r){"use strict";var n=r(95748),i=r(65224),o=r(77337),a=r(56269),u=r(90646),s=r(53310),c=o.List,l=function(t,e,r,o,a,u){var s=r.first()instanceof i,l=[],f=o.size,p=r.get(a),h=o.first(),g=o.last(),d=g.getLength(),y=g.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(),i=t.getCharacterList(),o=n.slice(0,e),a=i.slice(0,e),u=r.first();return t.merge({text:o+u.getText(),characterList:a.concat(u.getCharacterList()),type:o?t.getType():u.getType(),data:u.getData()})}(t,u,o)),o.slice(v?0:1,f-1).forEach(function(t){return l.push(t)}),l.push(function(t,e,r){var n=t.getText(),i=t.getCharacterList(),o=n.length,a=n.slice(e,o),u=i.slice(e,o),s=r.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(u),data:s.getData()})}(t,u,o))):l.push(t)});var _=n.createFromArray(l);return s&&(_=function(t,e,r,n){return t.withMutations(function(e){var i=r.getKey(),o=n.getKey(),a=r.getNextSiblingKey(),u=r.getParentKey(),s=function(t,e){var r=t.getKey(),n=t,i=[];for(e.get(r)&&i.push(r);n&&n.getNextSiblingKey();){var o=n.getNextSiblingKey();if(!o)break;i.push(o),n=e.get(o)}return i}(n,t),l=s[s.length-1];if(e.get(o)?(e.setIn([i,"nextSibling"],o),e.setIn([o,"prevSibling"],i)):(e.setIn([i,"nextSibling"],n.getNextSiblingKey()),e.setIn([n.getNextSiblingKey(),"prevSibling"],i)),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(i)+1,h=f.toArray();h.splice.apply(h,[p,0].concat(s)),e.setIn([u,"children"],c(h))}})}(_,0,p,h)),t.merge({blockMap:_,selectionBefore:e,selectionAfter:e.merge({anchorKey:y,anchorOffset:d,focusKey:y,focusOffset:d,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 o=t.getBlockMap(),c=s(r),f=e.getStartKey(),p=e.getStartOffset(),h=o.get(f);return h instanceof i&&(h.getChildKeys().isEmpty()||u(!1)),1===c.size?function(t,e,r,n,i,o){var u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=r.get(i),c=s.getText(),l=s.getCharacterList(),f=i,p=o+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 g=s.getType();c&&"unstyled"===g&&(g=n.getType());var d=s.merge({text:c.slice(0,o)+n.getText()+c.slice(o),characterList:a(l,n.getCharacterList(),o),type:g,data:h});return t.merge({blockMap:r.set(i,d),selectionBefore:e,selectionAfter:e.merge({anchorKey:f,anchorOffset:p,focusKey:f,focusOffset:p,isBackward:!1})})}(t,e,o,c.first(),f,p,n):l(t,e,o,c,f,p)}},56269(t){"use strict";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 i=n.slice(0,r),o=n.slice(r);n=i.concat(e,o).toList()}return n}},3136(t,e,r){"use strict";var n=r(77337),i=r(56269),o=r(90646),a=n.Repeat;t.exports=function(t,e,r,n){e.isCollapsed()||o(!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:i(f.getCharacterList(),a(n,u).toList(),l)}),g=l+u;return t.merge({blockMap:s.set(c,h),selectionAfter:e.merge({anchorOffset:g,focusOffset:g})})}},93816(t){"use strict";t.exports=function(t){return!(!t||!t.ownerDocument)&&t.nodeType===Node.ELEMENT_NODE}},73680(t){"use strict";t.exports=function(t){return"handled"===t||!0===t}},20316(t,e,r){"use strict";var n=r(93816);t.exports=function(t){return!(!t||!t.ownerDocument)&&(n(t)&&"A"===t.nodeName)}},12623(t,e,r){"use strict";var n=r(93816);t.exports=function(t){return!(!t||!t.ownerDocument)&&(n(t)&&"BR"===t.nodeName)}},55291(t){"use strict";t.exports=function(t){return!(!t||!t.ownerDocument)&&(t.ownerDocument.defaultView?t instanceof t.ownerDocument.defaultView.HTMLElement:t instanceof HTMLElement)}},7296(t,e,r){"use strict";var n=r(93816);t.exports=function(t){return!(!t||!t.ownerDocument)&&(n(t)&&"IMG"===t.nodeName)}},64316(t){"use strict";t.exports=function(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){var e=t;if(!e.ownerDocument.defaultView)return e instanceof Node;if(e instanceof e.ownerDocument.defaultView.Node)return!0}return!1}},17759(t){"use strict";t.exports=function(t){var e=t.getSelection(),r=e.getAnchorKey(),n=t.getBlockTree(r),i=e.getStartOffset(),o=!1;return n.some(function(t){return i===t.get("start")?(o=!0,!0):i<t.get("end")&&t.get("leaves").some(function(t){var e=t.get("start");return i===e&&(o=!0,!0)})}),o}},83174(t,e,r){"use strict";var n=r(45852);t.exports=function(t){return t.which===n.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}},88771(t,e,r){"use strict";var n=r(12242),i=r(85989),o=r(29215),a=r(58488),u=r(5188);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=i(n),o(t,null,n.endContainer,n.endOffset,n.startContainer,n.startOffset).selectionState},"backward");return r===t.getCurrentContent()?t:n.push(t,r,"remove-range")}},94143(t,e,r){"use strict";var n=r(73998),i=r(12242),o=r(58488),a=r(5188);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),r=e.getStartOffset();if(0===r)return o(t,1);var i=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(i).getText().slice(0,r),u=n.getBackward(a);return o(t,u.length||1)},"backward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}},70525(t,e,r){"use strict";var n=r(73998),i=r(12242),o=r(77800),a=r(5188);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),r=e.getStartOffset(),i=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(i).getText().slice(r),u=n.getForward(a);return o(t,u.length||1)},"forward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}},64071(t,e,r){"use strict";var n=r(49938),i=r(12242);t.exports=function(t){var e=n.splitBlock(t.getCurrentContent(),t.getSelection());return i.push(t,e,"split-block")}},15169(t,e,r){"use strict";var n=r(12242);t.exports=function(t){var e=t.getSelection(),r=e.getEndKey(),i=t.getCurrentContent().getBlockForKey(r).getLength();return n.set(t,{selection:e.merge({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}),forceSelection:!0})}},20070(t,e,r){"use strict";var n=r(12242);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})}},47381(t,e,r){"use strict";var n=r(12242),i=r(50580),o=r(58488),a=r(5188);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 o(t,u?i.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")}},2383(t,e,r){"use strict";var n=r(12242),i=r(50580),o=r(77800),a=r(5188);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 o(t,u?i.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")}},25935(t,e,r){"use strict";var n=r(49938),i=r(12242),o=r(30866);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=o(c,a),p=n.removeRange(c,a,"backward"),h=p.getSelectionAfter(),g=h.getAnchorOffset()-1,d=h.merge({anchorOffset:g,focusOffset:g}),y=n.replaceWithFragment(p,d,f),v=i.push(t,y,"insert-fragment");return i.acceptSelection(v,u)}},8976(t,e,r){"use strict";var n=r(12242);t.exports=function(t,e,r){var i=n.undo(e);if("spellcheck-change"!==e.getLastChangeType())t.preventDefault(),e.getNativelyRenderedContent()?(r(n.set(e,{nativelyRenderedContent:null})),setTimeout(function(){r(i)},0)):r(i);else{var o=i.getCurrentContent();r(n.set(i,{nativelyRenderedContent:o}))}}},5462(t,e,r){"use strict";var n=r(77337).Map;t.exports=function(t,e,r){var i=e.getStartKey(),o=e.getEndKey(),a=t.getBlockMap(),u=a.toSeq().skipUntil(function(t,e){return e===i}).takeUntil(function(t,e){return e===o}).concat(n([[o,a.get(o)]])).map(r);return t.merge({blockMap:a.merge(u),selectionBefore:e,selectionAfter:e})}},46059(t,e,r){"use strict";var n=r(65224),i=r(7376),o=r(77337),a=r(90646),u=o.OrderedMap,s=o.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,i){if(!i)return t;var o="after"===n,a=e.getKey(),u=r.getKey(),l=e.getParentKey(),f=e.getNextSiblingKey(),p=e.getPrevSiblingKey(),h=r.getParentKey(),g=o?r.getNextSiblingKey():u,d=o?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(g,t,function(t){return t.merge({prevSibling:a})}),c(d,t,function(t){return t.merge({nextSibling:a})}),c(h,t,function(t){var e=t.getChildKeys(),r=e.indexOf(u),n=o?r+1:0!==r?r-1:0,i=e.toArray();return i.splice(n,0,a),t.merge({children:s(i)})}),c(a,t,function(t){return t.merge({nextSibling:g,prevSibling:d,parent:h})})})};t.exports=function(t,e,r,o){"replace"===o&&a(!1);var s=r.getKey(),c=e.getKey();c===s&&a(!1);var f=t.getBlockMap(),p=e instanceof n,h=[e],g=f.delete(c);p&&(h=[],g=f.withMutations(function(t){var r=e.getNextSiblingKey(),n=i(e,t);t.toSeq().skipUntil(function(t){return t.getKey()===c}).takeWhile(function(t){var e=t.getKey(),i=e===c,o=r&&e!==r,a=!r&&t.getParentKey()&&(!n||e!==n);return!!(i||o||a)}).forEach(function(e){h.push(e),t.delete(e.getKey())})}));var d=g.toSeq().takeUntil(function(t){return t===r}),y=g.toSeq().skipUntil(function(t){return t===r}).skip(1),v=h.map(function(t){return[t.getKey(),t]}),_=u();if("before"===o){var m=t.getBlockBefore(s);m&&m.getKey()===e.getKey()&&a(!1),_=d.concat([].concat(v,[[s,r]]),y).toOrderedMap()}else if("after"===o){var S=t.getBlockAfter(s);S&&S.getKey()===c&&a(!1),_=d.concat([[s,r]].concat(v),y).toOrderedMap()}return t.merge({blockMap:l(_,e,r,o,p),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:c,focusKey:c})})}},58488(t,e,r){"use strict";r(14594);t.exports=function(t,e){var r=t.getSelection(),n=t.getCurrentContent(),i=r.getStartKey(),o=r.getStartOffset(),a=i,u=0;if(e>o){var s=n.getKeyBefore(i);if(null==s)a=i;else a=s,u=n.getBlockForKey(s).getText().length}else u=o-e;return r.merge({focusKey:a,focusOffset:u,isBackward:!0})}},77800(t,e,r){"use strict";r(14594);t.exports=function(t,e){var r,n=t.getSelection(),i=n.getStartKey(),o=n.getStartOffset(),a=t.getCurrentContent(),u=i;return e>a.getBlockForKey(i).getText().length-o?(u=a.getKeyAfter(i),r=0):r=o+e,n.merge({focusKey:u,focusOffset:r})}},53310(t,e,r){"use strict";var n=r(65224),i=r(6991),o=r(77337).OrderedMap;t.exports=function(t){return t.first()instanceof n?function(t){var e,r={};return o(t.withMutations(function(t){t.forEach(function(n,o){var a=n.getKey(),u=n.getNextSiblingKey(),s=n.getPrevSiblingKey(),c=n.getChildKeys(),l=n.getParentKey(),f=i();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 o(t.toArray().map(function(t){var e=i();return[e,t.set("key",e)]}))}(t)}},86044(t,e,r){"use strict";var n=r(23018),i=r(18227),o=r(90646);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 i(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&&o(!1),n}(a,l,r),h=p.start,g=p.end;h<g;)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(),i={},o=e.getStartKey(),u=e.getStartOffset(),s=r.get(o),c=a(n,s,u);c!==s&&(i[o]=c);var l=e.getEndKey(),f=e.getEndOffset(),p=r.get(l);o===l&&(p=c);var h=a(n,p,f);return h!==p&&(i[l]=h),Object.keys(i).length?t.merge({blockMap:r.merge(i),selectionAfter:e}):t.set("selectionAfter",e)}},54435(t,e,r){"use strict";var n=r(65224),i=r(7376),o=r(77337),a=(o.List,o.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 i=n.getParentKey();i&&r.push(i),n=i?e.get(i):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(o){if(u(e.getKey(),o,function(t){return t.merge({nextSibling:c(t,o,n),prevSibling:l(t,o,n)})}),u(r.getKey(),o,function(t){return t.merge({nextSibling:c(t,o,n),prevSibling:l(t,o,n)})}),s(e.getKey(),n).forEach(function(t){return u(t,o,function(t){return t.merge({children:t.getChildKeys().filter(function(t){return o.get(t)}),nextSibling:c(t,o,n),prevSibling:l(t,o,n)})})}),u(e.getNextSiblingKey(),o,function(t){return t.merge({prevSibling:e.getPrevSiblingKey()})}),u(e.getPrevSiblingKey(),o,function(t){return t.merge({nextSibling:c(t,o,n)})}),u(r.getNextSiblingKey(),o,function(t){return t.merge({prevSibling:l(t,o,n)})}),u(r.getPrevSiblingKey(),o,function(t){return t.merge({nextSibling:r.getNextSiblingKey()})}),s(r.getKey(),n).forEach(function(t){u(t,o,function(t){return t.merge({children:t.getChildKeys().filter(function(t){return o.get(t)}),nextSibling:c(t,o,n),prevSibling:l(t,o,n)})})}),function(t,e){var r=[];if(!t)return r;for(var n=i(t,e);n&&e.get(n);){var o=e.get(n);r.push(n),n=o.getParentKey()?i(o,e):null}return r}(r,n).forEach(function(t){return u(t,o,function(t){return t.merge({nextSibling:c(t,o,n),prevSibling:l(t,o,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(),o,function(t){return t.merge({prevSibling:a})}),u(a,o,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,o,function(t){return t.merge({parent:p})})}),null!=p){var h=t.get(p);u(p,o,function(t){return t.merge({children:h.getChildKeys().concat(e.getChildKeys())})})}u(e.getChildKeys().find(function(e){return null===t.get(e).getNextSiblingKey()}),o,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),i=t.slice(r);t=n.concat(i).toList()}return t};t.exports=function(t,e){if(e.isCollapsed())return t;var r,o=t.getBlockMap(),u=e.getStartKey(),c=e.getStartOffset(),l=e.getEndKey(),h=e.getEndOffset(),g=o.get(u),d=o.get(l),y=g instanceof n,v=[];if(y){var _=d.getChildKeys(),m=s(l,o);d.getNextSiblingKey()&&(v=v.concat(m)),_.isEmpty()||(v=v.concat(m.concat([l]))),v=v.concat(s(i(d,o),o))}r=g===d?p(g.getCharacterList(),c,h):g.getCharacterList().slice(0,c).concat(d.getCharacterList().slice(h));var S=g.merge({text:g.getText().slice(0,c)+d.getText().slice(h),characterList:r}),b=y&&0===c&&0===h&&d.getParentKey()===u&&null==d.getPrevSiblingKey()?a([[u,null]]):o.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}),k=o.merge(b).filter(function(t){return!!t});return y&&g!==d&&(k=f(k,g,d,o)),t.merge({blockMap:k,selectionBefore:e,selectionAfter:e.merge({anchorKey:u,anchorOffset:c,focusKey:u,focusOffset:c,isBackward:!1})})}},5188(t,e,r){"use strict";var n=r(49938),i=r(47282)("draft_tree_data_support");t.exports=function(t,e,r){var o=t.getSelection(),a=t.getCurrentContent(),u=o,s=o.getAnchorKey(),c=o.getFocusKey(),l=a.getBlockForKey(s);if(i&&"forward"===r&&s!==c)return a;if(o.isCollapsed()){if("forward"===r){if(t.isSelectionAtEndOfContent())return a;if(i)if(o.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))===o)return a}return n.removeRange(a,u,r)}},91721(t){"use strict";var e=new RegExp("\r","g");t.exports=function(t){return t.replace(e,"")}},94660(t,e,r){"use strict";var n=r(953),i=r(67204),o=r(14134),a=r(4909),u=r(69758),s=r(19677),c=r(90646),l=r(93816),f=o.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 i=t.cloneNode();1===i.nodeType&&r.length&&i.setAttribute("data-labels",r.join(", "));for(var o=t.childNodes,a=0;a<o.length;a++)i.appendChild(h(o[a],e));return i}function g(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 d(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function y(t,e,r,n){var o=u();if(t.extend&&null!=e&&a(o,e)){r>d(e)&&i.logSelectionStateFailure({anonymizedDom:g(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(a){throw i.logSelectionStateFailure({anonymizedDom:g(e,function(e){var r=[];return e===o&&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:o?o.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:a?""+a:null,offset:r},null,2),selectionState:JSON.stringify(n.toJS(),null,2)}),a}}else if(e&&t.rangeCount>0){var c=t.getRangeAt(0);c.setEnd(e,r),t.addRange(c.cloneRange())}}function v(t,e,r,o){var a=s(e).createRange();if(r>d(e)&&(i.logSelectionStateFailure({anonymizedDom:g(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(o.toJS())}),n.handleExtensionCausedError()),a.setStart(e,r),f)try{t.addRange(a)}catch(t){0}else t.addRange(a)}t.exports={setDraftEditorSelection:function(t,e,r,n,i){var o=s(e);if(a(o.documentElement,e)){var u=o.defaultView.getSelection(),c=t.getAnchorKey(),l=t.getAnchorOffset(),f=t.getFocusKey(),p=t.getFocusOffset(),h=t.getIsBackward();if(!u.extend&&h){var g=c,d=l;c=f,l=p,f=g,p=d,h=!1}var _=c===r&&n<=l&&i>=l,m=f===r&&n<=p&&i>=p;if(_&&m)return u.removeAllRanges(),v(u,e,l-n,t),void y(u,e,p-n,t);if(h){if(m&&(u.removeAllRanges(),v(u,e,p-n,t)),_){var S=u.focusNode,b=u.focusOffset;u.removeAllRanges(),v(u,e,l-n,t),y(u,S,b,t)}}else _&&(u.removeAllRanges(),v(u,e,l-n,t)),m&&y(u,e,p-n,t)}},addFocusToSelection:y}},53222(t,e,r){"use strict";var n=r(65224),i=r(6991),o=r(77337),a=r(90646),u=r(5462),s=o.List,c=o.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(),o=t.getBlockMap(),f=o.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 g=e.getAnchorOffset(),d=f.getCharacterList(),y=i(),v=f instanceof n,_=f.merge({text:p.slice(0,g),characterList:d.slice(0,g)}),m=_.merge({key:y,text:p.slice(g),characterList:d.slice(g),data:c()}),S=o.toSeq().takeUntil(function(t){return t===f}),b=o.toSeq().skipUntil(function(t){return t===f}).rest(),k=S.concat([[r,_],[y,m]],b).toOrderedMap();return v&&(f.getChildKeys().isEmpty()||a(!1),k=function(t,e,r){return t.withMutations(function(t){var n=e.getKey(),i=r.getKey();l(e.getParentKey(),t,function(t){var e=t.getChildKeys(),r=e.indexOf(n)+1,o=e.toArray();return o.splice(r,0,i),t.merge({children:s(o)})}),l(e.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:i})}),l(n,t,function(t){return t.merge({nextSibling:i})}),l(i,t,function(t){return t.merge({prevSibling:n})})})}(k,_,m)),t.merge({blockMap:k,selectionBefore:e,selectionAfter:e.merge({anchorKey:y,anchorOffset:0,focusKey:y,focusOffset:0,isBackward:!1})})}},73676(t){"use strict";var e=/\r\n?|\n/g;t.exports=function(t){return t.split(e)}},24809(t){"use strict";t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})}},77337(t){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function r(t){return a(t)?t:V(t)}function n(t){return u(t)?t:G(t)}function i(t){return s(t)?t:X(t)}function o(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[g])}e(n,r),e(i,r),e(o,r),r.isIterable=a,r.isKeyed=u,r.isIndexed=s,r.isAssociative=c,r.isOrdered=l,r.Keyed=n,r.Indexed=i,r.Set=o;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",g="@@__IMMUTABLE_ORDERED__@@",d="delete",y=5,v=1<<y,_=v-1,m={},S={value:!1},b={value:!1};function k(t){return t.value=!1,t}function w(t){t&&(t.value=!0)}function C(){}function x(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function E(t){return void 0===t.size&&(t.size=t.__iterate(K)),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?E(t)+e:e}function K(){return!0}function D(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function M(t,e){return A(t,e,0)}function T(t,e){return A(t,e,e)}function A(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,L=2,R="function"==typeof Symbol&&Symbol.iterator,F="@@iterator",N=R||F;function z(t){this.next=t}function P(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function j(){return{value:void 0,done:!0}}function U(t){return!!W(t)}function q(t){return t&&"function"==typeof t.next}function H(t){var e=W(t);return e&&e.call(t)}function W(t){var e=t&&(R&&t[R]||t[F]);if("function"==typeof e)return e}function J(t){return t&&"number"==typeof t.length}function V(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()}z.prototype.toString=function(){return"[Iterator]"},z.KEYS=I,z.VALUES=B,z.ENTRIES=L,z.prototype.inspect=z.prototype.toSource=function(){return this.toString()},z.prototype[N]=function(){return this},e(V,r),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(t,e){return ft(this,t,e,!0)},V.prototype.__iterator=function(t,e){return pt(this,t,e,!0)},e(G,V),G.prototype.toKeyedSeq=function(){return this},e(X,V),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,V),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},V.isSeq=ot,V.Keyed=G,V.Set=Y,V.Indexed=X;var $,Q,Z,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 it(t){this._iterator=t,this._iteratorCache=[]}function ot(t){return!(!t||!t[tt])}function at(){return $||($=new et([]))}function ut(t){var e=Array.isArray(t)?new et(t).fromEntrySeq():q(t)?new it(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 J(t)?new et(t):q(t)?new it(t):U(t)?new nt(t):void 0}function ft(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var u=i[r?o-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 i=t._cache;if(i){var o=i.length-1,a=0;return new z(function(){var t=i[r?o-a:a];return a++>o?j():P(e,n?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,r)}function ht(t,e){return e?gt(e,t,"",{"":t}):dt(t)}function gt(t,e,r,n){return Array.isArray(e)?t.call(n,r,X(e).map(function(r,n){return gt(t,r,n,e)})):yt(e)?t.call(n,r,G(e).map(function(r,n){return gt(t,r,n,e)})):e}function dt(t){return Array.isArray(t)?X(t).map(dt).toList():yt(t)?G(t).map(dt).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 _t(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 i=n.next().value;return i&&vt(i[1],t)&&(r||vt(i[0],e))})&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var f=!0,p=e.__iterate(function(e,n){if(r?!t.has(e):i?!vt(e,t.get(n,m)):!vt(t.get(n,m),e))return f=!1,!1});return f&&t.size===p}function mt(t,e){if(!(this instanceof mt))return new mt(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Q)return Q;Q=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(Z)return Z;Z=this}}function kt(){throw TypeError("Abstract")}function wt(){}function Ct(){}function xt(){}V.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,i=0;i<=n;i++)if(!1===t(r[e?n-i:i],i,this))return i+1;return i},et.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new z(function(){return i>n?j():P(t,i,r[e?n-i++:i++])})},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,i=n.length-1,o=0;o<=i;o++){var a=n[e?i-o:o];if(!1===t(r[a],a,this))return o+1}return o},rt.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new z(function(){var a=n[e?i-o:o];return o++>i?j():P(t,a,r[a])})},rt.prototype[g]=!0,e(nt,X),nt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=H(this._iterable),n=0;if(q(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,n++,this););return n},nt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=H(this._iterable);if(!q(r))return new z(j);var n=0;return new z(function(){var e=r.next();return e.done?e:P(t,n++,e.value)})},e(it,X),it.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r,n=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===t(i[o],o++,this))return o;for(;!(r=n.next()).done;){var a=r.value;if(i[o]=a,!1===t(a,o++,this))break}return o},it.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new z(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return P(t,i,n[i++])})},e(mt,X),mt.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},mt.prototype.get=function(t,e){return this.has(t)?this._value:e},mt.prototype.includes=function(t){return vt(this._value,t)},mt.prototype.slice=function(t,e){var r=this.size;return D(t,e,r)?this:new mt(this._value,T(e,r)-M(t,r))},mt.prototype.reverse=function(){return this},mt.prototype.indexOf=function(t){return vt(this._value,t)?0:-1},mt.prototype.lastIndexOf=function(t){return vt(this._value,t)?this.size:-1},mt.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},mt.prototype.__iterator=function(t,e){var r=this,n=0;return new z(function(){return n<r.size?P(t,n++,r._value):j()})},mt.prototype.equals=function(t){return t instanceof mt?vt(this._value,t._value):_t(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 D(t,e,this.size)?this:(t=M(t,this.size),(e=T(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,i=e?this._start+r*n:this._start,o=0;o<=r;o++){if(!1===t(i,o,this))return o+1;i+=e?-n:n}return o},bt.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new z(function(){var a=i;return i+=e?-n:n,o>r?j():P(t,o++,a)})},bt.prototype.equals=function(t){return t instanceof bt?this._start===t._start&&this._end===t._end&&this._step===t._step:_t(this,t)},e(kt,r),e(wt,kt),e(Ct,kt),e(xt,kt),kt.Keyed=wt,kt.Indexed=Ct,kt.Set=xt;var Et="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 Kt(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>zt?Dt(t):Mt(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return Tt(t);if("function"==typeof t.toString)return Mt(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function Dt(t){var e=Ut[t];return void 0===e&&(e=Mt(t),jt===Pt&&(jt=0,Ut={}),jt++,Ut[t]=e),e}function Mt(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return Ot(e)}function Tt(t){var e;if(Rt&&void 0!==(e=Lt.get(t)))return e;if(void 0!==(e=t[Nt]))return e;if(!It){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Nt]))return e;if(void 0!==(e=Bt(t)))return e}if(e=++Ft,1073741824&Ft&&(Ft=0),Rt)Lt.set(t,e);else{if(void 0!==At&&!1===At(t))throw new Error("Non-extensible objects are not allowed as keys.");if(It)Object.defineProperty(t,Nt,{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[Nt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Nt]=e}}return e}var At=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 Lt,Rt="function"==typeof WeakMap;Rt&&(Lt=new WeakMap);var Ft=0,Nt="__immutablehash__";"function"==typeof Symbol&&(Nt=Symbol(Nt));var zt=16,Pt=255,jt=0,Ut={};function qt(t){St(t!==1/0,"Cannot perform this action with an infinite size.")}function Ht(t){return null==t?ie():Wt(t)&&!l(t)?t:ie().withMutations(function(e){var r=n(t);qt(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function Wt(t){return!(!t||!t[Vt])}e(Ht,wt),Ht.prototype.toString=function(){return this.__toString("Map {","}")},Ht.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Ht.prototype.set=function(t,e){return oe(this,t,e)},Ht.prototype.setIn=function(t,e){return this.updateIn(t,m,function(){return e})},Ht.prototype.remove=function(t){return oe(this,t,m)},Ht.prototype.deleteIn=function(t){return this.updateIn(t,function(){return m})},Ht.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},Ht.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=ye(this,br(t),e,r);return n===m?void 0:n},Ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ie()},Ht.prototype.merge=function(){return pe(this,void 0,arguments)},Ht.prototype.mergeWith=function(e){return pe(this,e,t.call(arguments,1))},Ht.prototype.mergeIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,ie(),function(t){return"function"==typeof t.merge?t.merge.apply(t,r):r[r.length-1]})},Ht.prototype.mergeDeep=function(){return pe(this,he,arguments)},Ht.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return pe(this,ge(e),r)},Ht.prototype.mergeDeepIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,ie(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,r):r[r.length-1]})},Ht.prototype.sort=function(t){return Ue(lr(this,t))},Ht.prototype.sortBy=function(t,e){return Ue(lr(this,e,t))},Ht.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Ht.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new C)},Ht.prototype.asImmutable=function(){return this.__ensureOwner()},Ht.prototype.wasAltered=function(){return this.__altered},Ht.prototype.__iterator=function(t,e){return new te(this,t,e)},Ht.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},Ht.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)},Ht.isMap=Wt;var Jt,Vt="@@__IMMUTABLE_MAP__@@",Gt=Ht.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 Qt(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function Zt(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 P(t,e[0],e[1])}function re(t,e){return{node:t,index:0,__prev:e}}function ne(t,e,r,n){var i=Object.create(Gt);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function ie(){return Jt||(Jt=ne(0))}function oe(t,e,r){var n,i;if(t._root){var o=k(S),a=k(b);if(n=ae(t._root,t.__ownerID,0,void 0,e,r,o,a),!a.value)return t;i=t.size+(o.value?r===m?-1:1:0)}else{if(r===m)return t;i=1,n=new Xt(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?ne(i,n):ie()}function ae(t,e,r,n,i,o,a,u){return t?t.update(e,r,n,i,o,a,u):o===m?t:(w(u),w(a),new Zt(e,n,[i,o]))}function ue(t){return t.constructor===Zt||t.constructor===Qt}function se(t,e,r,n,i){if(t.keyHash===n)return new Qt(e,n,[t.entry,i]);var o,a=(0===r?t.keyHash:t.keyHash>>>r)&_,u=(0===r?n:n>>>r)&_;return new Yt(e,1<<a|1<<u,a===u?[se(t,e,r+y,n,i)]:(o=new Zt(e,n,i),a<u?[t,o]:[o,t]))}function ce(t,e,r,n){t||(t=new C);for(var i=new Zt(t,Kt(r),[r,n]),o=0;o<e.length;o++){var a=e[o];i=i.update(t,0,void 0,a[0],a[1])}return i}function le(t,e,r,n){for(var i=0,o=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&&(i|=s,a[o++]=l)}return new Yt(t,i,a)}function fe(t,e,r,n,i){for(var o=0,a=new Array(v),u=0;0!==r;u++,r>>>=1)a[u]=1&r?e[o++]:void 0;return a[n]=i,new $t(t,o+1,a)}function pe(t,e,r){for(var i=[],o=0;o<r.length;o++){var u=r[o],s=n(u);a(u)||(s=s.map(function(t){return ht(t)})),i.push(s)}return de(t,e,i)}function he(t,e,r){return t&&t.mergeDeep&&a(e)?t.mergeDeep(e):vt(t,e)?t:e}function ge(t){return function(e,r,n){if(e&&e.mergeDeepWith&&a(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return vt(e,i)?e:i}}function de(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,m,function(t){return t===m?r:e(t,r,n)})}:function(e,r){t.set(r,e)},i=0;i<r.length;i++)r[i].forEach(n)}):t.constructor(r[0])}function ye(t,e,r,n){var i=t===m,o=e.next();if(o.done){var a=i?r:t,u=n(a);return u===a?t:u}St(i||t&&t.set,"invalid keyPath");var s=o.value,c=i?m:t.get(s,m),l=ye(c,e,r,n);return l===c?t:l===m?t.remove(s):(i?ie():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 _e(t,e,r,n){var i=n?t:x(t);return i[e]=r,i}function me(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),a=0,u=0;u<i;u++)u===e?(o[u]=r,a=-1):o[u]=t[u+a];return o}function Se(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,a=0;a<n;a++)a===e&&(o=1),i[a]=t[a+o];return i}Gt[Vt]=!0,Gt[d]=Gt.remove,Gt.removeIn=Gt.deleteIn,Xt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(vt(r,i[o][0]))return i[o][1];return n},Xt.prototype.update=function(t,e,r,n,i,o,a){for(var u=i===m,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]===i:u)return this;if(w(a),(u||!f)&&w(o),!u||1!==s.length){if(!f&&!u&&s.length>=be)return ce(t,s,n,i);var p=t&&t===this.ownerID,h=p?s:x(s);return f?u?c===l-1?h.pop():h[c]=h.pop():h[c]=[n,i]:h.push([n,i]),p?(this.entries=h,this):new Xt(t,h)}},Yt.prototype.get=function(t,e,r,n){void 0===e&&(e=Kt(r));var i=1<<((0===t?e:e>>>t)&_),o=this.bitmap;return 0===(o&i)?n:this.nodes[ve(o&i-1)].get(t+y,e,r,n)},Yt.prototype.update=function(t,e,r,n,i,o,a){void 0===r&&(r=Kt(n));var u=(0===e?r:r>>>e)&_,s=1<<u,c=this.bitmap,l=0!==(c&s);if(!l&&i===m)return this;var f=ve(c&s-1),p=this.nodes,h=l?p[f]:void 0,g=ae(h,t,e+y,r,n,i,o,a);if(g===h)return this;if(!l&&g&&p.length>=ke)return fe(t,p,c,u,g);if(l&&!g&&2===p.length&&ue(p[1^f]))return p[1^f];if(l&&g&&1===p.length&&ue(g))return g;var d=t&&t===this.ownerID,v=l?g?c:c^s:c|s,S=l?g?_e(p,f,g,d):Se(p,f,d):me(p,f,g,d);return d?(this.bitmap=v,this.nodes=S,this):new Yt(t,v,S)},$t.prototype.get=function(t,e,r,n){void 0===e&&(e=Kt(r));var i=(0===t?e:e>>>t)&_,o=this.nodes[i];return o?o.get(t+y,e,r,n):n},$t.prototype.update=function(t,e,r,n,i,o,a){void 0===r&&(r=Kt(n));var u=(0===e?r:r>>>e)&_,s=i===m,c=this.nodes,l=c[u];if(s&&!l)return this;var f=ae(l,t,e+y,r,n,i,o,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p<we)return le(t,c,p,u)}else p++;var h=t&&t===this.ownerID,g=_e(c,u,f,h);return h?(this.count=p,this.nodes=g,this):new $t(t,p,g)},Qt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(vt(r,i[o][0]))return i[o][1];return n},Qt.prototype.update=function(t,e,r,n,i,o,a){void 0===r&&(r=Kt(n));var u=i===m;if(r!==this.keyHash)return u?this:(w(a),w(o),se(this,t,e,r,[n,i]));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]===i:u)return this;if(w(a),(u||!f)&&w(o),u&&2===l)return new Zt(t,this.keyHash,s[1^c]);var p=t&&t===this.ownerID,h=p?s:x(s);return f?u?c===l-1?h.pop():h[c]=h.pop():h[c]=[n,i]:h.push([n,i]),p?(this.entries=h,this):new Qt(t,this.keyHash,h)},Zt.prototype.get=function(t,e,r,n){return vt(r,this.entry[0])?this.entry[1]:n},Zt.prototype.update=function(t,e,r,n,i,o,a){var u=i===m,s=vt(n,this.entry[0]);return(s?i===this.entry[1]:u)?this:(w(a),u?void w(o):s?t&&t===this.ownerID?(this.entry[1]=i,this):new Zt(t,this.keyHash,[n,i]):(w(o),se(this,t,e,Kt(n),[n,i])))},Xt.prototype.iterate=Qt.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1},Yt.prototype.iterate=$t.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&!1===o.iterate(t,e))return!1}},Zt.prototype.iterate=function(t,e){return t(this.entry)},e(te,z),te.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return ee(t,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return ee(t,n.entries[this._reverse?r-i:i])}else if(i<=(r=n.nodes.length-1)){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return ee(t,o.entry);e=this._stack=re(o,e)}continue}e=this._stack=this._stack.__prev}return j()};var be=v/4,ke=v/2,we=v/4;function Ce(t){var e=Be();if(null==t)return e;if(xe(t))return t;var r=i(t),n=r.size;return 0===n?e:(qt(n),n>0&&n<v?Ie(0,n,y,null,new Ke(r.toArray())):e.withMutations(function(t){t.setSize(n),r.forEach(function(e,r){return t.set(r,e)})}))}function xe(t){return!(!t||!t[Ee])}e(Ce,Ct),Ce.of=function(){return this(arguments)},Ce.prototype.toString=function(){return this.__toString("List [","]")},Ce.prototype.get=function(t,e){if((t=O(this,t))>=0&&t<this.size){var r=Ne(this,t+=this._origin);return r&&r.array[t&_]}return e},Ce.prototype.set=function(t,e){return Le(this,t,e)},Ce.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},Ce.prototype.insert=function(t,e){return this.splice(t,0,e)},Ce.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()},Ce.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){ze(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},Ce.prototype.pop=function(){return ze(this,0,-1)},Ce.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){ze(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},Ce.prototype.shift=function(){return ze(this,1)},Ce.prototype.merge=function(){return Pe(this,void 0,arguments)},Ce.prototype.mergeWith=function(e){return Pe(this,e,t.call(arguments,1))},Ce.prototype.mergeDeep=function(){return Pe(this,he,arguments)},Ce.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return Pe(this,ge(e),r)},Ce.prototype.setSize=function(t){return ze(this,0,t)},Ce.prototype.slice=function(t,e){var r=this.size;return D(t,e,r)?this:ze(this,M(t,r),T(e,r))},Ce.prototype.__iterator=function(t,e){var r=0,n=Ae(this,e);return new z(function(){var e=n();return e===Te?j():P(t,r++,e)})},Ce.prototype.__iterate=function(t,e){for(var r,n=0,i=Ae(this,e);(r=i())!==Te&&!1!==t(r,n++,this););return n},Ce.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)},Ce.isList=xe;var Ee="@@__IMMUTABLE_LIST__@@",Oe=Ce.prototype;function Ke(t,e){this.array=t,this.ownerID=e}Oe[Ee]=!0,Oe[d]=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,Ke.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&_;if(n>=this.array.length)return new Ke([],t);var i,o=0===n;if(e>0){var a=this.array[n];if((i=a&&a.removeBefore(t,e-y,r))===a&&o)return this}if(o&&!i)return this;var u=Fe(this,t);if(!o)for(var s=0;s<n;s++)u.array[s]=void 0;return i&&(u.array[n]=i),u},Ke.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&_;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((n=o&&o.removeAfter(t,e-y,r))===o&&i===this.array.length-1)return this}var a=Fe(this,t);return a.array.splice(i+1),n&&(a.array[i]=n),a};var De,Me,Te={};function Ae(t,e){var r=t._origin,n=t._capacity,i=je(n),o=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===i?o&&o.array:t&&t.array,s=a>r?0:r-a,c=n-a;return c>v&&(c=v),function(){if(s===c)return Te;var t=e?--c:s++;return u&&u[t]}}function s(t,i,o){var u,s=t&&t.array,c=o>r?0:r-o>>i,l=1+(n-o>>i);return l>v&&(l=v),function(){for(;;){if(u){var t=u();if(t!==Te)return t;u=null}if(c===l)return Te;var r=e?--l:c++;u=a(s&&s[r],i-y,o+(r<<i))}}}}function Ie(t,e,r,n,i,o,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=i,u.__ownerID=o,u.__hash=a,u.__altered=!1,u}function Be(){return De||(De=Ie(0,0,y))}function Le(t,e,r){if((e=O(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?ze(t,e).set(0,r):ze(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=k(b);return e>=je(t._capacity)?n=Re(n,t.__ownerID,0,e,r,o):i=Re(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):Ie(t._origin,t._capacity,t._level,i,n):t}function Re(t,e,r,n,i,o){var a,u=n>>>r&_,s=t&&u<t.array.length;if(!s&&void 0===i)return t;if(r>0){var c=t&&t.array[u],l=Re(c,e,r-y,n,i,o);return l===c?t:((a=Fe(t,e)).array[u]=l,a)}return s&&t.array[u]===i?t:(w(o),a=Fe(t,e),void 0===i&&u===a.array.length-1?a.array.pop():a.array[u]=i,a)}function Fe(t,e){return e&&t&&e===t.ownerID?t:new Ke(t?t.array.slice():[],e)}function Ne(t,e){if(e>=je(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&_],n-=y;return r}}function ze(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new C,i=t._origin,o=t._capacity,a=i+e,u=void 0===r?o:r<0?o+r:i+r;if(a===i&&u===o)return t;if(a>=u)return t.clear();for(var s=t._level,c=t._root,l=0;a+l<0;)c=new Ke(c&&c.array.length?[void 0,c]:[],n),l+=1<<(s+=y);l&&(a+=l,i+=l,u+=l,o+=l);for(var f=je(o),p=je(u);p>=1<<s+y;)c=new Ke(c&&c.array.length?[c]:[],n),s+=y;var h=t._tail,g=p<f?Ne(t,u-1):p>f?new Ke([],n):h;if(h&&p>f&&a<o&&h.array.length){for(var d=c=Fe(c,n),v=s;v>y;v-=y){var m=f>>>v&_;d=d.array[m]=Fe(d.array[m],n)}d.array[f>>>y&_]=h}if(u<o&&(g=g&&g.removeAfter(n,0,u)),a>=p)a-=p,u-=p,s=y,c=null,g=g&&g.removeBefore(n,0,a);else if(a>i||p<f){for(l=0;c;){var S=a>>>s&_;if(S!==p>>>s&_)break;S&&(l+=(1<<s)*S),s-=y,c=c.array[S]}c&&a>i&&(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=g,t.__hash=void 0,t.__altered=!0,t):Ie(a,u,s,c,g)}function Pe(t,e,r){for(var n=[],o=0,u=0;u<r.length;u++){var s=r[u],c=i(s);c.size>o&&(o=c.size),a(s)||(c=c.map(function(t){return ht(t)})),n.push(c)}return o>t.size&&(t=t.setSize(o)),de(t,e,n)}function je(t){return t<v?0:t-1>>>y<<y}function Ue(t){return null==t?We():qe(t)?t:We().withMutations(function(e){var r=n(t);qt(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function qe(t){return Wt(t)&&l(t)}function He(t,e,r,n){var i=Object.create(Ue.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function We(){return Me||(Me=He(ie(),Be()))}function Je(t,e,r){var n,i,o=t._map,a=t._list,u=o.get(e),s=void 0!==u;if(r===m){if(!s)return t;a.size>=v&&a.size>=2*o.size?(n=(i=a.filter(function(t,e){return void 0!==t&&u!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=u===a.size-1?a.pop():a.set(u,void 0))}else if(s){if(r===a.get(u)[1])return t;n=o,i=a.set(u,[e,r])}else n=o.set(e,a.size),i=a.set(a.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):He(n,i)}function Ve(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=_r(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=mr,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===L){var n=t.__iterator(e,r);return new z(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 Qe(t,e,r){var n=_r(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,m);return o===m?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,a){return!1!==n(e.call(r,t,i,a),i,o)},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(L,i);return new z(function(){var i=o.next();if(i.done)return i;var a=i.value,u=a[0];return P(n,u,e.call(r,a[1],u,t),i)})},n}function Ze(t,e){var r=_r(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=mr,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 i=_r(t);return n&&(i.has=function(n){var i=t.get(n,m);return i!==m&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,m);return o!==m&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var a=this,u=0;return t.__iterate(function(t,o,s){if(e.call(r,t,o,s))return u++,i(t,n?o:u-1,a)},o),u},i.__iteratorUncached=function(i,o){var a=t.__iterator(L,o),u=0;return new z(function(){for(;;){var o=a.next();if(o.done)return o;var s=o.value,c=s[0],l=s[1];if(e.call(r,l,c,t))return P(i,n?c:u++,l,o)}})},i}function er(t,e,r){var n=Ht().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}function rr(t,e,r){var n=u(t),i=(l(t)?Ue():Ht()).asMutable();t.__iterate(function(o,a){i.update(e.call(r,o,a,t),function(t){return(t=t||[]).push(n?[a,o]:o),t})});var o=vr(t);return i.map(function(e){return gr(t,o(e))})}function nr(t,e,r,n){var i=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r|=0),D(e,r,i))return t;var o=M(e,i),a=T(r,i);if(o!=o||a!=a)return nr(t.toSeq().cacheResult(),e,r,n);var u,s=a-o;s==s&&(u=s<0?0:s);var c=_r(t);return c.size=0===u?u:t.size&&u||void 0,!n&&ot(t)&&u>=0&&(c.get=function(e,r){return(e=O(this,e))>=0&&e<u?t.get(e+o,r):r}),c.__iterateUncached=function(e,r){var i=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++<o))return c++,!1!==e(t,n?r:c-1,i)&&c!==u}),c},c.__iteratorUncached=function(e,r){if(0!==u&&r)return this.cacheResult().__iterator(e,r);var i=0!==u&&t.__iterator(e,r),a=0,s=0;return new z(function(){for(;a++<o;)i.next();if(++s>u)return j();var t=i.next();return n||e===B?t:P(e,s-1,e===I?void 0:t.value[1],t)})},c}function ir(t,e,r){var n=_r(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var a=0;return t.__iterate(function(t,i,u){return e.call(r,t,i,u)&&++a&&n(t,i,o)}),a},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var a=t.__iterator(L,i),u=!0;return new z(function(){if(!u)return j();var t=a.next();if(t.done)return t;var i=t.value,s=i[0],c=i[1];return e.call(r,c,s,o)?n===L?t:P(n,s,c,t):(u=!1,j())})},n}function or(t,e,r,n){var i=_r(t);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var u=!0,s=0;return t.__iterate(function(t,o,c){if(!u||!(u=e.call(r,t,o,c)))return s++,i(t,n?o:s-1,a)}),s},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var u=t.__iterator(L,o),s=!0,c=0;return new z(function(){var t,o,l;do{if((t=u.next()).done)return n||i===B?t:P(i,c++,i===I?void 0:t.value[1],t);var f=t.value;o=f[0],l=f[1],s&&(s=e.call(r,l,o,a))}while(s);return i===L?t:P(i,o,l,t)})},i}function ar(t,e){var r=u(t),i=[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===i.length)return t;if(1===i.length){var o=i[0];if(o===t||r&&u(o)||s(t)&&s(o))return o}var c=new et(i);return r?c=c.toKeyedSeq():s(t)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.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=_r(t);return n.__iterateUncached=function(n,i){var o=0,u=!1;function s(t,c){var l=this;t.__iterate(function(t,i){return(!e||c<e)&&a(t)?s(t,c+1):!1===n(t,r?i:o++,l)&&(u=!0),!u},i)}return s(t,0),o},n.__iteratorUncached=function(n,i){var o=t.__iterator(n,i),u=[],s=0;return new z(function(){for(;o;){var t=o.next();if(!1===t.done){var c=t.value;if(n===L&&(c=c[1]),e&&!(u.length<e)||!a(c))return r?t:P(n,s++,c,t);u.push(o),o=c.__iterator(n,i)}else o=u.pop()}return j()})},n}function sr(t,e,r){var n=vr(t);return t.toSeq().map(function(i,o){return n(e.call(r,i,o,t))}).flatten(!0)}function cr(t,e){var r=_r(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate(function(t,n){return(!o||!1!==r(e,o++,i))&&!1!==r(t,o++,i)},n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(B,n),a=0;return new z(function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?P(r,a++,e):P(r,a++,i.value,i)})},r}function lr(t,e,r){e||(e=Sr);var n=u(t),i=0,o=t.toSeq().map(function(e,n){return[n,e,i++,r?r(e,n,t):e]}).toArray();return o.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?G(o):s(t)?X(o):Y(o)}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 i=_r(t);return i.size=new et(n).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(B,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=n.map(function(t){return t=r(t),H(i?t.reverse():t)}),a=0,u=!1;return new z(function(){var r;return u||(r=o.map(function(t){return t.next()}),u=r.some(function(t){return t.done})),u?j():P(t,a++,e.apply(null,r.map(function(t){return t.value})))})},i}function gr(t,e){return ot(t)?e:t.constructor(e)}function dr(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function yr(t){return qt(t.size),E(t)}function vr(t){return u(t)?n:s(t)?i:o}function _r(t){return Object.create((u(t)?G:s(t)?X:Y).prototype)}function mr(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function Sr(t,e){return t>e?1:t<e?-1:0}function br(t){var e=H(t);if(!e){if(!J(t))throw new TypeError("Expected iterable or array-like: "+t);e=H(r(t))}return e}function kr(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var a=Object.keys(t);Er(i,a),i.size=a.length,i._name=e,i._keys=a,i._defaultValues=t}this._map=Ht(o)},i=n.prototype=Object.create(wr);return i.constructor=n,n}e(Ue,Ht),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 Je(this,t,e)},Ue.prototype.remove=function(t){return Je(this,t,m)},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?He(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},Ue.isOrderedMap=qe,Ue.prototype[g]=!0,Ue.prototype[d]=Ue.prototype.remove,e(Ve,G),Ve.prototype.get=function(t,e){return this._iter.get(t,e)},Ve.prototype.has=function(t){return this._iter.has(t)},Ve.prototype.valueSeq=function(){return this._iter.valueSeq()},Ve.prototype.reverse=function(){var t=this,e=Ze(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Ve.prototype.map=function(t,e){var r=this,n=Qe(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},Ve.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(i){return t(i,e?--r:r++,n)}),e)},Ve.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 z(function(){var i=r.next();return i.done?i:P(t,e?--n:n++,i.value,i)})},Ve.prototype[g]=!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 z(function(){var e=r.next();return e.done?e:P(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 z(function(){var e=r.next();return e.done?e:P(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){dr(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 z(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){dr(n);var i=a(n);return P(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},Ge.prototype.cacheResult=Ve.prototype.cacheResult=Xe.prototype.cacheResult=Ye.prototype.cacheResult=mr,e(kr,wt),kr.prototype.toString=function(){return this.__toString(xr(this)+" {","}")},kr.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},kr.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},kr.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=Cr(this,ie()))},kr.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+xr(this));var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:Cr(this,r)},kr.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:Cr(this,e)},kr.prototype.wasAltered=function(){return this._map.wasAltered()},kr.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},kr.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},kr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?Cr(this,e,t):(this.__ownerID=t,this._map=e,this)};var wr=kr.prototype;function Cr(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function xr(t){return t._name||t.constructor.name||"Record"}function Er(t,e){try{e.forEach(Or.bind(void 0,t))}catch(t){}}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 Kr(t){return null==t?Lr():Dr(t)&&!l(t)?t:Lr().withMutations(function(e){var r=o(t);qt(r.size),r.forEach(function(t){return e.add(t)})})}function Dr(t){return!(!t||!t[Tr])}wr[d]=wr.remove,wr.deleteIn=wr.removeIn=Gt.removeIn,wr.merge=Gt.merge,wr.mergeWith=Gt.mergeWith,wr.mergeIn=Gt.mergeIn,wr.mergeDeep=Gt.mergeDeep,wr.mergeDeepWith=Gt.mergeDeepWith,wr.mergeDeepIn=Gt.mergeDeepIn,wr.setIn=Gt.setIn,wr.update=Gt.update,wr.updateIn=Gt.updateIn,wr.withMutations=Gt.withMutations,wr.asMutable=Gt.asMutable,wr.asImmutable=Gt.asImmutable,e(Kr,xt),Kr.of=function(){return this(arguments)},Kr.fromKeys=function(t){return this(n(t).keySeq())},Kr.prototype.toString=function(){return this.__toString("Set {","}")},Kr.prototype.has=function(t){return this._map.has(t)},Kr.prototype.add=function(t){return Ir(this,this._map.set(t,!0))},Kr.prototype.remove=function(t){return Ir(this,this._map.remove(t))},Kr.prototype.clear=function(){return Ir(this,this._map.clear())},Kr.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++)o(e[r]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},Kr.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return o(t)});var r=this;return this.withMutations(function(t){r.forEach(function(r){e.every(function(t){return t.includes(r)})||t.remove(r)})})},Kr.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return o(t)});var r=this;return this.withMutations(function(t){r.forEach(function(r){e.some(function(t){return t.includes(r)})&&t.remove(r)})})},Kr.prototype.merge=function(){return this.union.apply(this,arguments)},Kr.prototype.mergeWith=function(e){var r=t.call(arguments,1);return this.union.apply(this,r)},Kr.prototype.sort=function(t){return Rr(lr(this,t))},Kr.prototype.sortBy=function(t,e){return Rr(lr(this,e,t))},Kr.prototype.wasAltered=function(){return this._map.wasAltered()},Kr.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},Kr.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},Kr.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)},Kr.isSet=Dr;var Mr,Tr="@@__IMMUTABLE_SET__@@",Ar=Kr.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(Ar);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Lr(){return Mr||(Mr=Br(ie()))}function Rr(t){return null==t?jr():Fr(t)?t:jr().withMutations(function(e){var r=o(t);qt(r.size),r.forEach(function(t){return e.add(t)})})}function Fr(t){return Dr(t)&&l(t)}Ar[Tr]=!0,Ar[d]=Ar.remove,Ar.mergeDeep=Ar.merge,Ar.mergeDeepWith=Ar.mergeWith,Ar.withMutations=Gt.withMutations,Ar.asMutable=Gt.asMutable,Ar.asImmutable=Gt.asImmutable,Ar.__empty=Lr,Ar.__make=Br,e(Rr,Kr),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=Fr;var Nr,zr=Rr.prototype;function Pr(t,e){var r=Object.create(zr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function jr(){return Nr||(Nr=Pr(We()))}function Ur(t){return null==t?Gr():qr(t)?t:Gr().unshiftAll(t)}function qr(t){return!(!t||!t[Wr])}zr[g]=!0,zr.__empty=jr,zr.__make=Pr,e(Ur,Ct),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):Vr(t,e)},Ur.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;qt(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):Vr(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(D(t,e,this.size))return this;var r=M(t,this.size);if(T(e,this.size)!==this.size)return Ct.prototype.slice.call(this,t,e);for(var n=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=n,this._head=i,this.__hash=void 0,this.__altered=!0,this):Vr(n,i)},Ur.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Vr(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 z(function(){if(n){var e=n.value;return n=n.next,P(t,r++,e)}return j()})},Ur.isStack=qr;var Hr,Wr="@@__IMMUTABLE_STACK__@@",Jr=Ur.prototype;function Vr(t,e,r,n){var i=Object.create(Jr);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Gr(){return Hr||(Hr=Vr(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}Jr[Wr]=!0,Jr.withMutations=Gt.withMutations,Jr.asMutable=Gt.asMutable,Jr.asImmutable=Gt.asImmutable,Jr.wasAltered=Gt.wasAltered,r.Iterator=z,Xr(r,{toArray:function(){qt(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 Ve(this,!0)},toMap:function(){return Ht(this.toKeyedSeq())},toObject:function(){qt(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 Kr(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 Ce(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 gr(this,ar(this,t.call(arguments,0)))},includes:function(t){return this.some(function(e){return vt(e,t)})},entries:function(){return this.__iterator(L)},every:function(t,e){qt(this.size);var r=!0;return this.__iterate(function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1}),r},filter:function(t,e){return gr(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,i,o){if(t.call(e,n,i,o))return r=[i,n],!1}),r},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return qt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){qt(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 gr(this,Qe(this,t,e))},reduce:function(t,e,r){var n,i;return qt(this.size),arguments.length<2?i=!0:n=e,this.__iterate(function(e,o,a){i?(i=!1,n=e):n=t.call(r,n,e,o,a)}),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return gr(this,Ze(this,!0))},slice:function(t,e){return gr(this,nr(this,t,e,!0))},some:function(t,e){return!this.every(tn(t),e)},sort:function(t){return gr(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 E(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return er(this,t,e)},equals:function(t){return _t(this,t)},entrySeq:function(){var t=this;if(t._cache)return new et(t._cache);var e=t.toSeq().map(Zr).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(K)},flatMap:function(t,e){return gr(this,sr(this,t,e))},flatten:function(t){return gr(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,i=br(t);!(r=i.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,m):m)===m)return e}return n},groupBy:function(t,e){return rr(this,t,e)},has:function(t){return this.get(t,m)!==m},hasIn:function(t){return this.getIn(t,m)!==m},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(Qr).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 gr(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return gr(this,or(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(tn(t),e)},sortBy:function(t,e){return gr(this,lr(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return gr(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return gr(this,ir(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[N]=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 gr(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 gr(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return gr(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var $r=n.prototype;function Qr(t,e){return e}function Zr(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 x(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(Kt(t),Kt(e))|0}:function(t,e){n=n+sn(Kt(t),Kt(e))|0}:e?function(t){n=31*n+Kt(t)|0}:function(t){n=n+Kt(t)|0}),n)}function un(t,e){return e=Et(e,3432918353),e=Et(e<<15|e>>>-15,461845907),e=Et(e<<13|e>>>-13,5),e=Et((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=Ot((e=Et(e^e>>>13,3266489909))^e>>>16)}function sn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return $r[p]=!0,$r[N]=Yr.entries,$r.__toJS=Yr.toObject,$r.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+rn(t)},Xr(i,{toKeyedSeq:function(){return new Ve(this,!1)},filter:function(t,e){return gr(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 gr(this,Ze(this,!1))},slice:function(t,e){return gr(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=M(t,t<0?this.count():this.size);var n=this.slice(0,t);return gr(this,1===r?n:n.concat(x(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 gr(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 gr(this,cr(this,t))},interleave:function(){var t=[this].concat(x(arguments)),e=hr(this.toSeq(),X.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),gr(this,r)},last:function(){return this.get(-1)},skipWhile:function(t,e){return gr(this,or(this,t,e,!1))},zip:function(){return gr(this,hr(this,nn,[this].concat(x(arguments))))},zipWith:function(t){var e=x(arguments);return e[0]=this,gr(this,hr(this,t,e))}}),i.prototype[h]=!0,i.prototype[g]=!0,Xr(o,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=Yr.includes,Xr(G,n.prototype),Xr(X,i.prototype),Xr(Y,o.prototype),Xr(wt,n.prototype),Xr(Ct,i.prototype),Xr(xt,o.prototype),{Iterable:r,Seq:V,Collection:kt,Map:Ht,OrderedMap:Ue,List:Ce,Stack:Ur,Set:Kr,OrderedSet:
1Rr,Record:kr,Range:bt,Repeat:mt,is:vt,fromJS:ht}}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.