/*! For license information please see bundle.js.LICENSE.txt */ var draftUtils;(()=>{var e={5889:(e,t,n)=>{"use strict";function r(e){for(var t=1;t{"use strict";var r=n(9404).OrderedMap,i={createFromArray:function(e){return r(e.map((function(e){return[e.getKey(),e]})))}};e.exports=i},9981:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(8227),o=n(679),a=n(9404),u=a.List,l=a.Repeat,s=a.Record,c=function(){return!0},f=s({start:null,end:null}),d=s({start:null,end:null,decoratorKey:null,leaves:null}),p={generate:function(e,t,n){var r=t.getLength();if(!r)return u.of(new d({start:0,end:0,decoratorKey:null,leaves:u.of(new f({start:0,end:0}))}));var o=[],a=n?n.getDecorations(t,e):u(l(null,r)),s=t.getCharacterList();return i(a,h,c,(function(e,t){var n,r,l,p;o.push(new d({start:e,end:t,decoratorKey:a.get(e),leaves:(n=s.slice(e,t).toList(),r=e,l=[],p=n.map((function(e){return e.getStyle()})).toList(),i(p,h,c,(function(e,t){l.push(new f({start:e+r,end:t+r}))})),u(l))}))})),u(o)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,["leaves"]);return new d(function(e){for(var t=1;t{"use strict";var r=n(9404),i=r.Map,o=r.OrderedSet,a=r.Record,u=o(),l={style:u,entity:null},s=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return c;var t=i({style:u,entity:null}).merge(e),n=f.get(t);if(n)return n;var o=new r(t);return f=f.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?o(t):t,entity:Array.isArray(n)?o(n):n})},r}(a(l)),c=new s,f=i([[i(l),c]]);s.EMPTY=c,e.exports=s},9083:(e,t,n)=>{"use strict";var r=n(9404).List,i=function(){function e(e){var t,n;n=void 0,(t="_decorators")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,i){var o=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r{"use strict";var r=n(3018),i=n(8227),o=n(9404),a=o.List,u=o.Map,l=o.OrderedSet,s=o.Record,c=o.Repeat,f=l(),d=function(e){var t,n;function o(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(c(r.EMPTY,n.length))),e}(t))||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;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(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},u.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},u.findStyleRanges=function(e,t){i(this.getCharacterList(),p,e,t)},u.findEntityRanges=function(e,t){i(this.getCharacterList(),h,e,t)},o}(s({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:u()}));function p(e,t){return e.getStyle()===t.getStyle()}function h(e,t){return e.getEntity()===t.getEntity()}e.exports=d},5224:(e,t,n)=>{"use strict";var r=n(3018),i=n(8227),o=n(9404),a=o.List,u=o.Map,l=o.OrderedSet,s=o.Record,c=o.Repeat,f=l(),d={parent:null,characterList:a(),data:u(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},p=function(e,t){return e.getStyle()===t.getStyle()},h=function(e,t){return e.getEntity()===t.getEntity()},g=function(e){var t,n;function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(c(r.EMPTY,n.length))),e}(t))||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;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(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},u.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},u.getChildKeys=function(){return this.get("children")},u.getParentKey=function(){return this.get("parent")},u.getPrevSiblingKey=function(){return this.get("prevSibling")},u.getNextSiblingKey=function(){return this.get("nextSibling")},u.findStyleRanges=function(e,t){i(this.getCharacterList(),p,e,t)},u.findEntityRanges=function(e,t){i(this.getCharacterList(),h,e,t)},o}(s(d));e.exports=g},7656:(e,t,n)=>{"use strict";function r(e){for(var t=1;t1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},u.createEntity=function(e,t,n){return s.__create(e,t,n),this},u.mergeEntityData=function(e,t){return s.__mergeData(e,t),this},u.replaceEntityData=function(e,t){return s.__replaceData(e,t),this},u.addEntity=function(e){return s.__add(e),this},u.getEntity=function(e){return s.__get(e)},u.getAllEntities=function(){return s.__getAll()},u.loadWithEntities=function(e){return s.__loadWithEntities(e)},i.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,r=o.createFromArray(n),a=r.isEmpty()?new c:c.createEmpty(r.first().getKey());return new i({blockMap:r,entityMap:t||s,selectionBefore:a,selectionAfter:a})},i.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=g(e),new S({key:f(),text:e,type:"unstyled",characterList:v(m(a.EMPTY,e.length))})}));return i.createFromBlockArray(n)},i.fromJS=function(e){return new i(r({},e,{blockMap:_(e.blockMap).map(i.createContentBlockFromJS),selectionBefore:new c(e.selectionBefore),selectionAfter:new c(e.selectionAfter)}))},i.createContentBlockFromJS=function(e){var t=e.characterList;return new S(r({},e,{data:b(e.data),characterList:null!=t?v((Array.isArray(t)?t:d(t)).map((function(e){return a.fromJS(e)}))):void 0}))},i}(w);e.exports=k},4092:(e,t,n)=>{"use strict";var r=n(3018),i=n(9404).Map,o={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,o){var a=e.getBlockMap(),u=t.getStartKey(),l=t.getStartOffset(),s=t.getEndKey(),c=t.getEndOffset(),f=a.skipUntil((function(e,t){return t===u})).takeUntil((function(e,t){return t===s})).concat(i([[s,a.get(s)]])).map((function(e,t){var i,a;u===s?(i=l,a=c):(i=t===u?l:0,a=t===s?c:e.getLength());for(var f,d=e.getCharacterList();i{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(4134),o=n(8372),a=n(5389),u=n(9404),l=n(646),s=n(6408),c=u.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},d=i.isBrowser("IE <= 11"),p=function(){function e(e){var t=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=e,this.mutations=c();var n=a(e);n.MutationObserver&&!d?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||l(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,f):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=c(),t},t.registerMutations=function(e){for(var t=0;t{"use strict";var r=n(6540),i=n(8003),o=(0,n(9404).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:r.createElement("ul",{className:i("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:r.createElement("ol",{className:i("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:r.createElement("pre",{className:i("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=o},7918:e=>{"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},5143:(e,t,n)=>{"use strict";var r=n(5889),i=n(5748),o=n(3018),a=n(9083),u=n(6840),l=n(7656),s=n(3387),c=n(7918),f=n(3299),d=n(1124),p=n(1608),h=n(9938),g=n(5407),v=n(2242),y=n(9414),m=n(6429),b=n(7018),_=n(1381),w=n(7470),S=n(428),k=n(6991),x=n(7811),E=n(894),C={Editor:f,EditorBlock:d,EditorState:v,CompositeDecorator:a,Entity:p,EntityInstance:g,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:u,ContentState:l,RawDraftContentState:m,SelectionState:_,AtomicBlockUtils:r,KeyBindingUtil:y,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:s,DefaultDraftInlineStyle:c,convertFromHTML:n(4712),convertFromRaw:S,convertToRaw:w,genKey:k,getDefaultKeyBinding:x,getVisibleSelectionRect:E};e.exports=C},3299:(e,t,n)=>{"use strict";var r=n(5228);function i(){return i=r||function(e){for(var t=1;t{"use strict";var r=n(5228);function i(){return i=r||function(e){for(var t=1;t0&&window.scrollTo(o.x,o.y+r+10)}else y(n)||v(!1),(r=n.offsetHeight+n.offsetTop-(i.offsetTop+i.offsetHeight+o.y))>0&&l.setTop(i,l.getTop(i)+r+10)}}}},_._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),l=this.props.tree.size-1,s=b(this.props.selection,n);return this.props.tree.map((function(d,p){var h=d.get("leaves");if(0===h.size)return null;var g=h.size-1,v=h.map((function(i,c){var f=a.encode(n,p,c),d=i.get("start"),h=i.get("end");return u.createElement(o,{key:f,offsetKey:f,block:t,start:d,selection:s?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(d,h),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:p===l&&c===g})})).toArray(),y=d.get("decoratorKey");if(null==y)return v;if(!e.props.decorator)return v;var b=m(e.props.decorator),_=b.getComponentForKey(y);if(!_)return v;var w=b.getPropsForKey(y),S=a.encode(n,p,0),k=h.first().get("start"),x=h.last().get("end"),E=r.slice(k,x),C=t.getEntityAt(d.get("start")),O=f.getHTMLDirIfDifferent(c.getDirection(E),e.props.direction),D={contentState:e.props.contentState,decoratedText:E,dir:O,start:k,end:x,blockKey:n,entityKey:C,offsetKey:S};return u.createElement(_,i({},w,D,{key:S}),v)})).toArray()},_.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,i=d({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return u.createElement("div",{"data-offset-key":r,className:i,ref:function(t){return e._node=t}},this._renderChildren())},r}(u.Component);e.exports=_},2784:(e,t,n)=>{"use strict";var r=n(5228);function i(){return i=r||function(e){for(var t=1;t0&&window.scrollTo(o.x,o.y+r+10)}else{y(n)||v(!1);var u=n;(r=u.offsetHeight+u.offsetTop-(i.offsetHeight+o.y))>0&&c.setTop(i,c.getTop(i)+r+10)}}}},g.render=function(){var e=this,t=this.props,n=t.block,a=t.blockRenderMap,c=t.blockRendererFn,f=t.blockStyleFn,d=t.contentState,p=t.decorator,h=t.editorKey,g=t.editorState,v=t.customStyleFn,y=t.customStyleMap,S=t.direction,k=t.forceSelection,x=t.selection,E=t.tree,C=null;n.children.size&&(C=n.children.reduce((function(t,n){var i=l.encode(n,0,0),u=d.getBlockForKey(n),p=_(u,c),v=p.CustomComponent||r,y=b(u,a),m=y.Element,S=y.wrapperTemplate,k=w(u,h,i,f,p,null),x=o({},e.props,{tree:g.getBlockTree(n),blockProps:p.customProps,offsetKey:i,block:u});return t.push(s.createElement(m,k,s.createElement(v,x))),!S||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(u,d)||function(e,t,n){var r=[],i=!0,o=!1,a=void 0;try{for(var u,c=n.reverse()[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var f=u.value;if(f.type!==t)break;r.push(f)}}catch(e){o=!0,a=e}finally{try{i||null==c.return||c.return()}finally{if(o)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var d=r.reverse(),p=d[0].key;n.push(s.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":l.encode(p,0,0)},d))}(S,m,t),t}),[]));var O=n.getKey(),D=l.encode(O,0,0),T=_(n,c),M=T.CustomComponent,I=null!=M?s.createElement(M,i({},this.props,{tree:g.getBlockTree(O),blockProps:T.customProps,offsetKey:D,block:n})):s.createElement(u,{block:n,children:C,contentState:d,customStyleFn:v,customStyleMap:y,decorator:p,direction:S,forceSelection:k,hasSelection:m(x,O),selection:x,tree:E});if(n.getParentKey())return I;var K=b(n,a).Element,A=w(n,h,D,f,T,this.wrapperRef);return s.createElement(K,A,I)},r}(s.Component);e.exports=S},755:(e,t,n)=>{"use strict";var r=n(7378),i=n(9938),o=n(3885),a=n(2242),u=n(5852),l=n(4134),s=n(6207),c=n(3564),f=n(120),d=n(9927),p=n(6408),h=l.isBrowser("IE"),g=!1,v=!1,y=null,m={onCompositionStart:function(e){v=!0,function(e){y||(y=new r(c(e))).start()}(e)},onCompositionEnd:function(e){g=!1,v=!1,setTimeout((function(){g||m.resolveComposition(e)}),20)},onSelect:s,onKeyDown:function(e,t){if(!v)return m.resolveComposition(e),void e._onKeyDown(t);t.which!==u.RIGHT&&t.which!==u.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===u.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!v){var t=p(y).stopAndFlushMutations();y=null,g=!0;var n=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var u=o.decode(t),l=u.blockKey,s=u.decoratorKey,c=u.leafKey,f=n.getBlockTree(l).getIn([s,"leaves",c]),p=f.start,h=f.end,g=n.getSelection().merge({anchorKey:l,focusKey:l,anchorOffset:p,focusOffset:h,isBackward:!1}),v=d(r,g),y=r.getBlockForKey(l).getInlineStyleAt(p);r=i.replaceText(r,g,e,y,v),n=a.set(n,{currentContent:r})}));var u=f(n,c(e)).selectionState;e.restoreEditorDOM();var l=h?a.forceSelection(n,u):a.acceptSelection(n,u);e.update(a.push(l,r,"insert-characters"))}else e.update(n)}}};e.exports=m},3659:(e,t,n)=>{"use strict";var r=n(5228);function i(){return i=r||function(e){for(var t=1;t=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},h=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),i=t.isInCompositionMode(),o=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||i&&o)return!1;var a=t.getCurrentContent(),u=n.getCurrentContent(),l=t.getDecorator(),s=n.getDecorator();return i!==o||a!==u||l!==s||n.mustForceSelection()},a.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleMap,c=e.customStyleFn,h=e.editorState,g=e.editorKey,v=e.preventScroll,y=e.textDirectionality,m=h.getCurrentContent(),b=h.getSelection(),_=h.mustForceSelection(),w=h.getDecorator(),S=d(h.getDirectionMap()),k=m.getBlocksAsArray(),x=[],E=null,C=null,O=0;OE,N)));var H=K||u,q={className:U,"data-block":!0,"data-editor":g,"data-offset-key":P,key:T};void 0!==L&&(q=o({},q,{contentEditable:L,suppressContentEditableWarning:!0}));var W=s.createElement(F,q,s.createElement(H,i({},z,{key:T})));x.push({block:W,wrapperTemplate:B,key:T,offsetKey:P}),E=B?D.getDepth():null,C=B}for(var V=[],$=0;${"use strict";var r=n(7282)("draft_tree_data_support");e.exports=n(r?1803:3659)},1803:(e,t,n)=>{"use strict";var r=n(5228);function i(){return i=r||function(e){for(var t=1;t{"use strict";var r=n(5228);function i(){return i=r||function(e){for(var t=1;t{"use strict";var r=n(2395),i=n(9938),o=n(2242),a=n(8372),u=n(9677),l=n(723),s=n(9450),c=n(5389),f=n(3680),d=n(6408),p={onDragEnd:function(e){e.exitCurrentMode(),h(e)},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),c=e._latestEditorState,p=function(e,t){var n=null,r=null,i=u(e.currentTarget);if("function"==typeof i.caretRangeFromPoint){var o=i.caretRangeFromPoint(e.x,e.y);n=o.startContainer,r=o.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=d(n),r=d(r);var l=d(a(n));return s(t,l,r,l,r)}(t.nativeEvent,c);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=p){var v=n.getFiles();if(v.length>0){if(e.props.handleDroppedFiles&&f(e.props.handleDroppedFiles(p,v)))return;l(v,(function(t){t&&e.update(g(c,p,t))}))}else{var y=e._internalDrag?"internal":"external";e.props.handleDrop&&f(e.props.handleDrop(p,n,y))||(e._internalDrag?e.update(function(e,t){var n=i.moveText(e.getCurrentContent(),e.getSelection(),t);return o.push(e,n,"insert-fragment")}(c,p)):e.update(g(c,p,n.getText()))),h(e)}}}};function h(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:c(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function g(e,t,n){var r=i.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return o.push(e,r,"insert-fragment")}e.exports=p},7784:(e,t,n)=>{"use strict";var r=n(4134),i=n(3722),o=n(8058),a=n(7141),u=n(3694),l=n(3919),s=n(6127),c=n(4861),f=n(4447),d=n(5091),p=n(8136),h=n(2208),g=n(6207),v=r.isBrowser("Chrome"),y=r.isBrowser("Firefox"),m=v||y?g:function(e){},b={onBeforeInput:i,onBlur:o,onCompositionStart:a,onCopy:u,onCut:l,onDragOver:s,onDragStart:c,onFocus:f,onInput:d,onKeyDown:p,onPaste:h,onSelect:g,onMouseUp:m,onKeyUp:m};e.exports=b},4576:(e,t,n)=>{"use strict";var r=n(961).unstable_flushControlled;e.exports=r},5203:(e,t,n)=>{"use strict";var r=n(5228),i=n(6268),o=n(6540),a=n(646),u=n(2623),l=n(4660).setDraftEditorSelection,s=function(e){var t,n;function s(){for(var t,n,r,i,o=arguments.length,a=new Array(o),u=0;u{"use strict";var r=n(1988),i=n(5203),o=n(3885),a=n(9404),u=n(6540),l=n(8003),s=(a.List,function(e){var t,n;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.prototype.render=function(){var e=this.props,t=e.block,n=e.contentState,a=e.customStyleFn,s=e.customStyleMap,c=e.decorator,f=e.direction,d=e.forceSelection,p=e.hasSelection,h=e.selection,g=e.tree,v=t.getKey(),y=t.getText(),m=g.size-1,b=this.props.children||g.map((function(e,l){var g=e.get("decoratorKey"),b=e.get("leaves"),_=b.size-1,w=b.map((function(e,n){var r=o.encode(v,l,n),c=e.get("start"),f=e.get("end");return u.createElement(i,{key:r,offsetKey:r,block:t,start:c,selection:p?h:null,forceSelection:d,text:y.slice(c,f),styleSet:t.getInlineStyleAt(c),customStyleMap:s,customStyleFn:a,isLast:g===m&&n===_})})).toArray();return g&&c?u.createElement(r,{block:t,children:w,contentState:n,decorator:c,decoratorKey:g,direction:f,leafSet:e,text:y,key:l}):w})).toArray();return u.createElement("div",{"data-offset-key":o.encode(v,0,0),className:l({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},a}(u.Component));e.exports=s},9884:(e,t,n)=>{"use strict";var r=n(6540),i=n(8003),o=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=o.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},o}(r.Component);e.exports=o},6268:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(6540),a=n(4134),u=n(646),l=n(3816),s=a.isBrowser("IE <= 11"),c=function(e){var t,n;function a(t){var n;return i(r(n=e.call(this,t)||this),"_forceFlag",void 0),i(r(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=a.prototype;return c.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;l(t)||u(!1);var r=t;return n?!function(e){return s?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},c.componentDidMount=function(){this._forceFlag=!this._forceFlag},c.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},c.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},s?o.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):o.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return s?o.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):o.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):o.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},a}(o.Component);e.exports=c},3334:e=>{"use strict";e.exports={initODS:function(){},handleExtensionCausedError:function(){}}},1608:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(5407),o=n(9404),a=n(646),u=n(4809),l=(0,o.Map)(),s=u();function c(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var f={getLastCreatedEntityKey:function(){return c("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),f.__getLastCreatedEntityKey()},create:function(e,t,n){return c("DraftEntity.create","contentState.createEntity"),f.__create(e,t,n)},add:function(e){return c("DraftEntity.add","contentState.addEntity"),f.__add(e)},get:function(e){return c("DraftEntity.get","contentState.getEntity"),f.__get(e)},__getAll:function(){return l},__loadWithEntities:function(e){l=e,s=u()},mergeData:function(e,t){return c("DraftEntity.mergeData","contentState.mergeEntityData"),f.__mergeData(e,t)},replaceData:function(e,t){return c("DraftEntity.replaceData","contentState.replaceEntityData"),f.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return s},__create:function(e,t,n){return f.__add(new i({type:e,mutability:t,data:n||{}}))},__add:function(e){return s=u(),l=l.set(s,e),s},__get:function(e){var t=l.get(e);return t||a(!1),t},__mergeData:function(e,t){var n=f.__get(e),i=function(e){for(var t=1;t{"use strict";var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getType=function(){return this.get("type")},i.getMutability=function(){return this.get("mutability")},i.getData=function(){return this.get("data")},r}((0,n(9404).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=r},8382:e=>{"use strict";e.exports={getRemovalRange:function(e,t,n,r,i){var o=n.split(" ");o=o.map((function(e,t){if("forward"===i){if(t>0)return" "+e}else if(t{"use strict";e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},9938:(e,t,n)=>{"use strict";var r=n(3018),i=n(4092),o=n(6416),a=n(508),u=n(866),l=n(9404),s=n(9127),c=n(3136),f=n(646),d=n(5462),p=n(6044),h=n(4435),g=n(3222),v=l.OrderedSet,y={replaceText:function(e,t,n,i,o){var a=p(e,t),u=h(a,t),l=r.create({style:i||v(),entity:o||null});return c(u,u.getSelectionAfter(),n,l)},insertText:function(e,t,n,r,i){return t.isCollapsed()||f(!1),y.replaceText(e,t,n,r,i)},moveText:function(e,t,n){var r=u(e,t),i=y.removeRange(e,t,"backward");return y.replaceWithFragment(i,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",i=p(e,t),o=h(i,t);return s(o,o.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,i,o,u;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),i=t.getFocusKey(),o=e.getBlockForKey(r),u=e.getBlockForKey(i);var l=t.getStartOffset(),s=t.getEndOffset(),c=o.getEntityAt(l),f=u.getEntityAt(s-1);if(r===i&&c&&c===f){var d=a(e.getEntityMap(),o,u,t,n);return h(e,d)}var g=p(e,t);return h(g,t)},splitBlock:function(e,t){var n=p(e,t),r=h(n,t);return g(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return i.add(e,t,n)},removeInlineStyle:function(e,t,n){return i.remove(e,t,n)},setBlockType:function(e,t,n){return d(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return d(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return d(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=p(e,t);return o(r,t,n)}};e.exports=y},3885:e=>{"use strict";var t="-",n={encode:function(e,n,r){return e+t+n+t+r},decode:function(e){var n=e.split(t).reverse(),r=n[0],i=n[1];return{blockKey:n.slice(2).reverse().join(t),decoratorKey:parseInt(i,10),leafKey:parseInt(r,10)}}};e.exports=n},46:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(6840),o=n(5224),a=n(4712),u=n(6991),l=n(9248),s=n(7282),c=n(9404),f=n(1721),d=c.List,p=c.Repeat,h=s("draft_tree_data_support"),g=h?o:i,v={processHTML:function(e,t){return a(e,l,t)},processText:function(e,t,n){return e.reduce((function(e,i,o){i=f(i);var a=u(),l={key:a,type:n,text:i,characterList:d(p(t,i.length))};if(h&&0!==o){var s=o-1;l=function(e){for(var t=1;t{"use strict";var r="['‘’]",i="\\s|(?![_])"+n(7405).getPunctuation(),o=new RegExp("^(?:"+i+")*(?:"+r+"|(?!"+i+").)*(?:(?!"+i+").)"),a=new RegExp("(?:(?!"+i+").)(?:"+r+"|(?!"+i+").)*(?:"+i+")*$");function u(e,t){var n=t?a.exec(e):o.exec(e);return n?n[0]:e}var l={getBackward:function(e){return u(e,!0)},getForward:function(e){return u(e,!1)}};e.exports=l},1439:e=>{"use strict";var t={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=t},2396:(e,t,n)=>{"use strict";function r(e){for(var t=1;t0)||(delete c.children,n.push(c));var l=o.children;Array.isArray(l)||a(!1),i=i.concat([].concat(l.reverse()))}var s,c}(t),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var i=u(e),a=e.depth||0,l=r({},e,{children:[]});if(i){var s=n[0];if(null==s&&0===a)t.push(l);else if(null==s||s.depth=a;)n.shift(),s=n[0];a>0?s.children.push(l):t.push(l)}}else t.push(l)})),r({},e,{blocks:t})}};e.exports=l},2490:(e,t,n)=>{"use strict";n(4594),e.exports={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==n)return!1;var o=e.getNextSiblingKey();return(null==o||t.get(o).getPrevSiblingKey()===n)&&!(null!==o&&null!==i&&i===o||""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;for(var n=0,r=t.shift().getKey(),i=[];null!=r;){var o=e.get(r),a=o.getChildKeys(),u=o.getNextSiblingKey();if(a.size>0){null!=u&&i.unshift(u);var l=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==l)return!1;r=l.getKey()}else r=null!=o.getNextSiblingKey()?o.getNextSiblingKey():i.shift();n++}return n===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}}},3914:(e,t,n)=>{"use strict";var r,i=n(1708),o=n(9404),a=n(6408),u=o.OrderedMap,l={getDirectionMap:function(e,t){r?r.reset():r=new i;var n=e.getBlockMap(),l=n.valueSeq().map((function(e){return a(r).getDirection(e.getText())})),s=u(n.keySeq().zip(l));return null!=t&&o.is(t,s)?t:s}};e.exports=l},2242:(e,t,n)=>{"use strict";function r(e){for(var t=1;t0?i.getInlineStyleAt(r-1):i.getLength()?i.getInlineStyleAt(0):b(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);return r0?i.getInlineStyleAt(r-1):b(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return y(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),y(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),i=n.getLength();return t.acceptSelection(e,new l({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var o=u.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:o,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var a=e.getSelection(),l=e.getCurrentContent(),s=e.getUndoStack(),c=n;a!==l.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(s=s.push(l),c=c.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",l.getSelectionBefore()));var f=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(f=null);var p={currentContent:c,directionMap:o,undoStack:s,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:f};return t.set(e,p)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var i=e.getCurrentContent(),o=u.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:o,undoStack:n.shift(),redoStack:e.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var i=e.getCurrentContent(),o=u.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:o,undoStack:e.getUndoStack().push(i),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function y(e,t,n){return v.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function m(e,t){return e.getBlockMap().map((function(n){return o.generate(e,n,t)})).toOrderedMap()}function b(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):c()}e.exports=v},9414:(e,t,n)=>{"use strict";var r=n(4134),i=n(3174),o=r.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return o&&e.altKey},usesMacOSHeuristics:function(){return o},hasCommandModifier:function(e){return o?!!e.metaKey&&!e.altKey:a.isCtrlKeyCommand(e)},isSoftNewlineEvent:i};e.exports=a},6429:()=>{},7018:(e,t,n)=>{"use strict";var r=n(9938),i=n(2242),o=n(286),a=n(6408),u={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return u.toggleInlineStyle(e,"BOLD");case"italic":return u.toggleInlineStyle(e,"ITALIC");case"underline":return u.toggleInlineStyle(e,"UNDERLINE");case"code":return u.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return u.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return u.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=i.push(e,t,"insert-characters");return i.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var a=n.getBlockMap().delete(o.getKey()),l=n.merge({blockMap:a,selectionAfter:t});if(l!==n)return i.push(e,l,"remove-range")}var s=u.tryToRemoveBlockStyle(e);return s?i.push(e,s,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),o=t.getStartKey(),a=n.getBlockForKey(o).getLength();if(t.getStartOffset(){"use strict";var r=n(9938),i=n(2242),o=n(866),a=n(6408),u=null,l={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),l=null;if(n.isCollapsed()){var s=n.getAnchorKey(),c=t.getBlockForKey(s).getLength();if(c===n.getAnchorOffset()){var f=t.getKeyAfter(s);if(null==f)return e;l=n.set("focusKey",f).set("focusOffset",0)}else l=n.set("focusOffset",c)}else l=n;l=a(l),u=o(t,l);var d=r.removeRange(t,l,"forward");return d===t?e:i.push(e,d,"remove-range")},paste:function(e){if(!u)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),u);return i.push(e,t,"insert-fragment")}};e.exports=l},1381:(e,t,n)=>{"use strict";var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.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(e,t,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===e){var o=this.getStartOffset(),a=this.getEndOffset();return t<=o&&o<=n||t<=a&&a<=n}if(e!==r&&e!==i)return!1;var u=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=u&&n>=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()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,n(9404).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},286:e=>{"use strict";e.exports=function(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),u=a.toSeq().skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===o})).concat([[o,a.get(o)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(u),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},1952:(e,t,n)=>{"use strict";var r=n(3018);e.exports=function(e,t,n,i){for(var o=t,a=e.getCharacterList();o{"use strict";var r=n(1952),i=n(9404);e.exports=function(e,t,n){var o=e.getBlockMap(),a=t.getStartKey(),u=t.getStartOffset(),l=t.getEndKey(),s=t.getEndOffset(),c=o.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===l})).toOrderedMap().merge(i.OrderedMap([[l,o.get(l)]])).map((function(e,t){var i=t===a?u:0,o=t===l?s:e.getLength();return r(e,i,o,n)}));return e.merge({blockMap:o.merge(c),selectionBefore:t,selectionAfter:t})}},7470:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(6840),o=n(5224),a=n(1439),u=n(5481),l=n(702),s=n(646),c=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:l(e),entityRanges:u(e,t),data:e.getData().toObject()}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,u=[],l={},f={},d=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),i=a.stringify(r);f[i]||(f[i]=r,n[i]="".concat(d),d++)})),function(e,t,n,a){if(e instanceof i)n.push(c(e,t));else{e instanceof o||s(!1);var u=e.getParentKey(),l=a[e.getKey()]=function(e){for(var t=1;t{"use strict";var r;function i(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(N).some((function(n){e.classList.contains(n)&&(t=N[n])})),t},B=function(e){if(!_(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{return new f(t.href),!0}catch(e){return!1}},F=function(e){if(!k(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},j=function(e,t){if(!S(e))return t;var n=e,r=n.style.fontWeight,i=n.style.fontStyle,o=n.style.textDecoration;return t.withMutations((function(e){I.indexOf(r)>=0?e.add("BOLD"):K.indexOf(r)>=0&&e.remove("BOLD"),"italic"===i?e.add("ITALIC"):"normal"===i&&e.remove("ITALIC"),"underline"===o&&e.add("UNDERLINE"),"line-through"===o&&e.add("STRIKETHROUGH"),"none"===o&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},U=function(e){return"ul"===e||"ol"===e},H=function(){function e(e,t){o(this,"characterList",y()),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",c),o(this,"blockTypeMap",void 0),o(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=y(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=c,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],b())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(x?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i({key:e.key||p(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:y(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=y(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=y()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(O,"")).replace(C," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){w(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(k(e)){var n=e,r={};L.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),g("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(_(e)){var r=e,i={};A.forEach((function(e){var t=r.getAttribute(e);t&&(i[e]=t)})),i.url=new f(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",i||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r2&&void 0!==arguments[2]?arguments[2]:s,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:h)(e=e.trim().replace(E,"").replace(D," ").replace(T,"").replace(M,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),m(t)}(t);return new H(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()}},428:(e,t,n)=>{"use strict";function r(e){for(var t=1;t0})),i=m&&!n?s.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!m)return function(e,t){return w(e.map((function(e){var n=new o(S(e,t));return[n.getKey(),n]})))}(n?s.fromRawTreeStateToRawState(e).blocks:i,t);var u=function(e,t){return e.map(x).reduce((function(n,i,o){Array.isArray(i.children)||y(!1);var u=i.children.map(x),l=new a(r({},S(i,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:b(u.map((function(e){return e.key})))}));n=n.set(l.getKey(),l);for(var s=E([],u,l);s.length>0;){var c=s.pop(),f=c.parentRef,d=f.getChildKeys(),p=d.indexOf(c.key),h=Array.isArray(c.children);if(!h){h||y(!1);break}var g=c.children.map(x),v=new a(r({},S(c,t),{parent:f.getKey(),children:b(g.map((function(e){return e.key}))),prevSibling:0===p?null:d.get(p-1),nextSibling:p===d.size-1?null:d.get(p+1)}));n=n.set(v.getKey(),v),s=E(s,g,v)}return n}),w())}(i,t);return u}(e,t),i=n.isEmpty()?new c:c.createEmpty(n.first().getKey());return new u({blockMap:n,entityMap:t,selectionBefore:i,selectionAfter:i})}},803:(e,t,n)=>{"use strict";var r=n(3018),i=n(9404).List;e.exports=function(e,t){var n=e.map((function(e,n){var i=t[n];return r.create({style:e,entity:i})}));return i(n)}},2401:(e,t,n)=>{"use strict";var r=n(580).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var i=r(e,0,t.offset).length,o=i+r(e,t.offset,t.length).length,a=i;a{"use strict";var r=n(580),i=n(9404).OrderedSet,o=r.substr,a=i();e.exports=function(e,t){var n=Array(e.length).fill(a);return t&&t.forEach((function(t){for(var r=o(e,0,t.offset).length,i=r+o(e,t.offset,t.length).length;r{"use strict";e.exports={notEmptyKey:function(e){return null!=e&&""!=e}}},3722:(e,t,n)=>{"use strict";var r=n(9938),i=n(2242),o=n(4134),a=n(9927),u=n(3680),l=n(7759),s=n(6408),c=n(9765),f=o.isBrowser("Firefox");function d(e,t,n,o,a){var u=r.replaceText(e.getCurrentContent(),e.getSelection(),t,n,o);return i.push(e,u,"insert-characters",a)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&u(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),p=o.getStartOffset(),h=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(d(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));var g,v=d(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),y=!1;if(y||(y=l(e._latestCommittedEditorState)),!y){var m=n.getBlockTree(h),b=v.getBlockTree(h);y=m.size!==b.size||m.zip(b).some((function(e){var t=e[0],n=e[1],i=t.get("start"),o=i+(i>=p?r.length:0),a=t.get("end"),u=a+(a>=p?r.length:0),l=n.get("start"),s=n.get("end"),c=n.get("decoratorKey");return t.get("decoratorKey")!==c||t.get("leaves").size!==n.get("leaves").size||o!==l||u!==s||null!=c&&s-l!=a-i}))}if(y||(g=r,y=f&&("'"==g||"/"==g)),y||(y=s(v.getDirectionMap()).get(h)!==s(n.getDirectionMap()).get(h)),y)return t.preventDefault(),v=i.set(v,{forceSelection:!0}),void e.update(v);v=i.set(v,{nativelyRenderedContent:v.getCurrentContent()}),e._pendingStateFromBeforeInput=v,c((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}},8058:(e,t,n)=>{"use strict";var r=n(2242),i=n(4909),o=n(9758);e.exports=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&o(n)===n.body){var a=n.defaultView.getSelection(),u=e.editor;1===a.rangeCount&&i(u,a.anchorNode)&&i(u,a.focusNode)&&a.removeAllRanges()}var l=e._latestEditorState,s=l.getSelection();if(s.getHasFocus()){var c=s.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(l,c))}}},7141:(e,t,n)=>{"use strict";var r=n(2242);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},3694:(e,t,n)=>{"use strict";var r=n(1296);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},3919:(e,t,n)=>{"use strict";var r=n(9938),i=n(2242),o=n(2935),a=n(1296),u=n(7392),l=n(4316);e.exports=function(e,t){var n,s=e._latestEditorState,c=s.getSelection(),f=t.target;if(c.isCollapsed())t.preventDefault();else{if(l(f)){var d=f;n=u(o.getScrollParent(d))}var p=a(s);e.setClipboard(p),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return i.push(e,t,"remove-range")}(s))}),0)}}},6127:e=>{"use strict";e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},4861:e=>{"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},4447:(e,t,n)=>{"use strict";var r=n(2242),i=n(4134);e.exports=function(e,t){var n=e._latestEditorState,o=n.getSelection();if(!o.getHasFocus()){var a=o.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),i.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},5091:(e,t,n)=>{"use strict";var r=n(9938),i=n(3885),o=n(2242),a=n(4134),u=n(1103).notEmptyKey,l=n(8372),s=n(7381),c=n(6408),f=a.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),a=n.anchorNode,d=n.isCollapsed,p=(null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!p){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var h=a.parentNode;if(null==h)return;a.nodeValue=h.textContent;for(var g=h.firstChild;null!=g;g=g.nextSibling)g!==a&&h.removeChild(g)}var v=a.textContent,y=e._latestEditorState,m=c(l(a)),b=i.decode(m),_=b.blockKey,w=b.decoratorKey,S=b.leafKey,k=y.getBlockTree(_).getIn([w,"leaves",S]),x=k.start,E=k.end,C=y.getCurrentContent(),O=C.getBlockForKey(_),D=O.getText().slice(x,E);if(v.endsWith("\n\n")&&(v=v.slice(0,-1)),v!==D){var T,M,I,K,A=y.getSelection(),L=A.merge({anchorOffset:x,focusOffset:E,isBackward:!1}),N=O.getEntityAt(x),P=u(N)?C.getEntity(N):null,z="MUTABLE"===(null!=P?P.getMutability():null),R=z?"spellcheck-change":"apply-entity",B=r.replaceText(C,L,v,O.getInlineStyleAt(x),z?O.getEntityAt(x):null);if(f)T=n.anchorOffset,M=n.focusOffset,K=(I=x+Math.min(T,M))+Math.abs(T-M),T=I,M=K;else{var F=v.length-D.length;I=A.getStartOffset(),K=A.getEndOffset(),T=d?K+F:I,M=K+F}var j=B.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:A.merge({anchorOffset:T,focusOffset:M})});e.update(o.push(y,j,R))}else{var U=t.nativeEvent.inputType;if(U){var H=function(e,t){return"deleteContentBackward"===e?s(t):t}(U,y);if(H!==y)return e.restoreEditorDOM(),void e.update(H)}}}}},8136:(e,t,n)=>{"use strict";var r=n(9938),i=n(2242),o=n(9414),a=n(5852),u=n(5170),l=n(4134),s=n(3680),c=n(8771),f=n(4143),d=n(525),p=n(4071),h=n(5169),g=n(70),v=n(7381),y=n(2383),m=n(5935),b=n(8976),_=o.isOptionKeyCommand,w=l.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,o=e._latestEditorState;function l(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&s(e.props.handleReturn(t,o)))return;break;case a.ESC:if(t.preventDefault(),l("onEscape"))return;break;case a.TAB:if(l("onTab"))return;break;case a.UP:if(l("onUpArrow"))return;break;case a.RIGHT:if(l("onRightArrow"))return;break;case a.DOWN:if(l("onDownArrow"))return;break;case a.LEFT:if(l("onLeftArrow"))return;break;case a.SPACE:w&&_(t)&&t.preventDefault()}var S=e.props.keyBindingFn(t);if(null!=S&&""!==S)if("undo"!==S){if(t.preventDefault(),!e.props.handleKeyCommand||!s(e.props.handleKeyCommand(S,o,t.timeStamp))){var k=function(e,t,n){switch(e){case"redo":return i.redo(t);case"delete":return y(t);case"delete-word":return d(t);case"backspace":return v(t);case"backspace-word":return f(t);case"backspace-to-start-of-line":return c(t,n);case"split-block":return p(t);case"transpose-characters":return m(t);case"move-selection-to-start-of-block":return g(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return u.cut(t);case"secondary-paste":return u.paste(t);default:return t}}(S,o,t);k!==o&&e.update(k)}}else b(t,o,e.update);else if(n===a.SPACE&&w&&_(t)){var x=r.replaceText(o.getCurrentContent(),o.getSelection()," ");e.update(i.push(o,x,"insert-characters"))}}},2208:(e,t,n)=>{"use strict";var r=n(5748),i=n(3018),o=n(2395),a=n(9938),u=n(46),l=n(2242),s=n(7018),c=n(9927),f=n(723),d=n(3680),p=n(3676);function h(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return l.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new o(t.clipboardData);if(!n.isRichText()){var g=n.getFiles(),v=n.getText();if(g.length>0){if(e.props.handlePastedFiles&&d(e.props.handlePastedFiles(g)))return;return void f(g,(function(t){if(t=t||v){var n=e._latestEditorState,o=p(t),f=i.create({style:n.getCurrentInlineStyle(),entity:c(n.getCurrentContent(),n.getSelection())}),d=s.getCurrentBlockType(n),h=u.processText(o,f,d),g=r.createFromArray(h),y=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),g);e.update(l.push(n,y,"insert-fragment"))}}))}}var y=[],m=n.getText(),b=n.getHTML(),_=e._latestEditorState;if(e.props.formatPastedText){var w=e.props.formatPastedText(m,b);m=w.text,b=w.html}if(!e.props.handlePastedText||!d(e.props.handlePastedText(m,b,_))){if(m&&(y=p(m)),!e.props.stripPastedStyles){var S,k=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&k){if(-1!==(null===(S=b)||void 0===S?void 0:S.indexOf(e.getEditorKey()))||1===y.length&&1===k.size&&k.first().getText()===m)return void e.update(h(e._latestEditorState,k))}else if(k&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(y,k))return void e.update(h(e._latestEditorState,k));if(b){var x=u.processHTML(b,e.props.blockRenderMap);if(x){var E=x.contentBlocks,C=x.entityMap;if(E){var O=r.createFromArray(E);return void e.update(h(e._latestEditorState,O,C))}}}e.setClipboard(null)}if(y.length){var D=i.create({style:_.getCurrentInlineStyle(),entity:c(_.getCurrentContent(),_.getSelection())}),T=s.getCurrentBlockType(_),M=u.processText(y,D,T),I=r.createFromArray(M);e.update(h(e._latestEditorState,I))}}}},6207:(e,t,n)=>{"use strict";var r=n(7204),i=n(2242),o=n(3564),a=n(120);e.exports=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,u=a(n,o(e)),l=u.selectionState;l!==n.getSelection()&&(n=u.needsRecovery?i.forceSelection(n,l):i.acceptSelection(n,l),e.update(n))}}},5481:(e,t,n)=>{"use strict";var r=n(1439),i=n(580).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(o,a){var u=e.getText(),l=e.getEntityAt(o);n.push({offset:i(u.slice(0,o)),length:i(u.slice(o,a)),key:Number(t[r.stringify(l)])})})),n}},702:(e,t,n)=>{"use strict";var r=n(580),i=n(8227),o=function(e,t){return e===t},a=function(e){return!!e},u=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var u=[],l=t.map((function(e){return e.has(n)})).toList();return i(l,o,a,(function(t,i){var o=e.getText();u.push({offset:r.strlen(o.slice(0,t)),length:r.strlen(o.slice(t,i)),style:n})})),u}(e,t,n)}));return Array.prototype.concat.apply(u,n.toJS())}},5989:(e,t,n)=>{"use strict";var r=n(580),i=n(9677),o=n(5377),a=n(646);function u(e,t){for(var n=1/0,r=1/0,i=-1/0,o=-1/0,a=0;a=0;h--)if(!(null!=p&&h>0&&r.isSurrogatePair(p,h-1))){if(e.setStart(f,h),!u(o(e),n))break;s=f,c=h}if(-1===h||0===f.childNodes.length)break;d=l(f=f.childNodes[h])}return e.setStart(s,c),e}},8372:(e,t,n)=>{"use strict";var r=n(9677),i=n(4453);e.exports=function(e){for(var t=e;t&&t!==r(e).documentElement;){var n=i(t);if(null!=n)return n;t=t.parentNode}return null}},8227:e=>{"use strict";e.exports=function(e,t,n,r){if(e.size){var i=0;e.reduce((function(e,o,a){return t(e,o)||(n(e)&&r(i,a),i=a),o})),n(e.last())&&r(i,e.count())}}},6991:e=>{"use strict";var t={},n=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*n).toString(32);return t[e]=!0,e}},508:(e,t,n)=>{"use strict";var r=n(8382),i=n(9311),o=n(646);function a(e,t,n,a,u,l,s){var c=n.getStartOffset(),f=n.getEndOffset(),d=e.__get(u).getMutability(),p=s?c:f;if("MUTABLE"===d)return n;var h=i(t,u).filter((function(e){return p<=e.end&&p>=e.start}));1!=h.length&&o(!1);var g=h[0];if("IMMUTABLE"===d)return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});l||(s?f=g.end:c=g.start);var v=r.getRemovalRange(c,f,t.getText().slice(g.start,g.end),g.start,a);return n.merge({anchorOffset:v.start,focusOffset:v.end,isBackward:!1})}e.exports=function(e,t,n,r,i){var o=r.getStartOffset(),u=r.getEndOffset(),l=t.getEntityAt(o),s=n.getEntityAt(u-1);if(!l&&!s)return r;var c=r;if(l&&l===s)c=a(e,t,c,i,l,!0,!0);else if(l&&s){var f=a(e,t,c,i,l,!1,!0),d=a(e,n,c,i,s,!1,!1);c=c.merge({anchorOffset:f.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(l){var p=a(e,t,c,i,l,!1,!0);c=c.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(s){var h=a(e,n,c,i,s,!1,!1);c=c.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return c}},3564:(e,t,n)=>{"use strict";var r=n(646),i=n(5291);e.exports=function(e){var t=e.editorContainer;return t||r(!1),i(t.firstChild)||r(!1),t.firstChild}},866:(e,t,n)=>{"use strict";var r=n(3310),i=n(6044);e.exports=function(e,t){var n=t.getStartKey(),o=t.getStartOffset(),a=t.getEndKey(),u=t.getEndOffset(),l=i(e,t).getBlockMap(),s=l.keySeq(),c=s.indexOf(n),f=s.indexOf(a)+1;return r(l.slice(c,f).map((function(e,t){var r=e.getText(),i=e.getCharacterList();return n===a?e.merge({text:r.slice(o,u),characterList:i.slice(o,u)}):t===n?e.merge({text:r.slice(o),characterList:i.slice(o)}):t===a?e.merge({text:r.slice(0,u),characterList:i.slice(0,u)}):e})))}},9677:e=>{"use strict";e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},7811:(e,t,n)=>{"use strict";var r=n(9414),i=n(5852),o=n(4134),a=o.isPlatform("Mac OS X"),u=a&&o.isBrowser("Firefox < 29"),l=r.hasCommandModifier,s=r.isCtrlKeyCommand;function c(e){return a&&e.altKey||s(e)}e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return s(e)?"delete":null;case 72:return s(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return a&&s(e)?"secondary-cut":null;case 77:case 79:return s(e)?"split-block":null;case 84:return a&&s(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return a&&s(e)?"backspace-word":null;case 89:return s(e)?a?"secondary-paste":"redo":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case i.RETURN:return"split-block";case i.DELETE:return function(e){return!a&&e.shiftKey?null:c(e)?"delete-word":"delete"}(e);case i.BACKSPACE:return function(e){return l(e)&&a?"backspace-to-start-of-line":c(e)?"backspace-word":"backspace"}(e);case i.LEFT:return u&&l(e)?"move-selection-to-start-of-block":null;case i.RIGHT:return u&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},120:(e,t,n)=>{"use strict";var r=n(9215);e.exports=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),i=n.anchorNode,o=n.anchorOffset,a=n.focusNode,u=n.focusOffset;return 0===n.rangeCount||null==i||null==a?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,t,i,o,a,u)}},9215:(e,t,n)=>{"use strict";var r=n(8372),i=n(4453),o=n(9450),a=n(646),u=n(3816),l=n(6408);function s(e,t,n){var o=t,s=r(o);if(null!=s||e&&(e===o||e.firstChild===o)||a(!1),e===o&&(o=o.firstChild,u(o)||a(!1),"true"!==o.getAttribute("data-contents")&&a(!1),n>0&&(n=o.childNodes.length)),0===n){var f=null;if(null!=s)f=s;else{var d=function(e){for(;e.firstChild&&(u(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||i(e.firstChild));)e=e.firstChild;return e}(o);f=l(i(d))}return{key:f,offset:0}}var p=o.childNodes[n-1],h=null,g=null;if(i(p)){var v=function(e){for(;e.lastChild&&(u(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||i(e.lastChild));)e=e.lastChild;return e}(p);h=l(i(v)),g=c(v)}else h=l(s),g=c(p);return{key:h,offset:g}}function c(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,i,a,u){var c=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(c&&f)return{selectionState:o(e,l(r(n)),i,l(r(a)),u),needsRecovery:!1};var d=null,p=null,h=!0;return c?(d={key:l(r(n)),offset:i},p=s(t,a,u)):f?(p={key:l(r(a)),offset:u},d=s(t,n,i)):(d=s(t,n,i),p=s(t,a,u),n===a&&i===u&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:o(e,d.key,d.offset,p.key,p.offset),needsRecovery:h}}},9927:(e,t,n)=>{"use strict";var r=n(1103).notEmptyKey;function i(e,t){return r(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:i(e.getEntityMap(),n):null}var a=t.getStartKey(),u=t.getStartOffset(),l=e.getBlockForKey(a);return n=u===l.getLength()?null:l.getEntityAt(u),i(e.getEntityMap(),n)}},1296:(e,t,n)=>{"use strict";var r=n(866);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},7376:(e,t,n)=>{"use strict";var r=n(5224);e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var i=e.getParentKey();if(!i)return null;for(var o=t.get(i);o&&!o.getNextSiblingKey();){var a=o.getParentKey();o=a?t.get(a):null}return o?o.getNextSiblingKey():null}},679:e=>{"use strict";e.exports=function(e){return Object.keys(e).map((function(t){return e[t]}))}},4658:(e,t,n)=>{"use strict";var r=n(5377);e.exports=function(e){var t=r(e),n=0,i=0,o=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var u=t[1];n=u.top,i=u.right,o=u.bottom,a=u.left}else{var l=t[0];n=l.top,i=l.right,o=l.bottom,a=l.left}for(var s=1;s{"use strict";var r=n(4134),i=n(646),o=r.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,u=Array.from(t.getClientRects());if(n.push(u),o)return n.reverse(),(a=[]).concat.apply(a,n);t.setEndBefore(r)}i(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=o},9311:(e,t,n)=>{"use strict";var r=n(646);e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||r(!1),n}},9248:(e,t,n)=>{"use strict";var r=n(4134),i=n(646),o=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!o&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||i(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},4453:(e,t,n)=>{"use strict";var r=n(3816);e.exports=function e(t){if(r(t)){var n=t,i=n.getAttribute("data-offset-key");if(i)return i;for(var o=0;o{"use strict";var r=n(646),i=/\.textClipping$/,o={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var a=0,u=[];e.forEach((function(l){!function(e,t){if(!n.g.FileReader||e.type&&!(e.type in o))t("");else{if(""===e.type){var a="";return i.test(e.name)&&(a=e.name.replace(i,"")),void t(a)}var u=new FileReader;u.onload=function(){var e=u.result;"string"!=typeof e&&r(!1),t(e)},u.onerror=function(){t("")},u.readAsText(e)}}(l,(function(n){a++,n&&u.push(n.slice(0,5e3)),a==e.length&&t(u.join("\r"))}))}))}},9450:(e,t,n)=>{"use strict";var r=n(3885),i=n(6408);e.exports=function(e,t,n,o,a){var u=i(e.getSelection());if(!t||!o)return u;var l=r.decode(t),s=l.blockKey,c=e.getBlockTree(s),f=c&&c.getIn([l.decoratorKey,"leaves",l.leafKey]),d=r.decode(o),p=d.blockKey,h=e.getBlockTree(p),g=h&&h.getIn([d.decoratorKey,"leaves",d.leafKey]);if(!f||!g)return u;var v=f.get("start"),y=g.get("start"),m=f?v+n:null,b=g?y+a:null;if(u.getAnchorKey()===s&&u.getAnchorOffset()===m&&u.getFocusKey()===p&&u.getFocusOffset()===b)return u;var _=!1;if(s===p){var w=f.get("end"),S=g.get("end");_=y===v&&S===w?a{"use strict";var r=n(4658);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),i=r(n),o=i.top,a=i.right,u=i.bottom,l=i.left;return 0===o&&0===a&&0===u&&0===l?null:i}},5389:e=>{"use strict";e.exports=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}},7282:e=>{"use strict";e.exports=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX||!window.__DRAFT_GKX[e])}},9127:(e,t,n)=>{"use strict";var r=n(5748),i=n(5224),o=n(9404),a=n(6269),u=n(646),l=n(3310),s=o.List;e.exports=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||u(!1);var c=e.getBlockMap(),f=l(n),d=t.getStartKey(),p=t.getStartOffset(),h=c.get(d);return h instanceof i&&(h.getChildKeys().isEmpty()||u(!1)),1===f.size?function(e,t,n,r,i,o){var u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",l=n.get(i),s=l.getText(),c=l.getCharacterList(),f=i,d=o+r.getText().length,p=null;switch(u){case"MERGE_OLD_DATA_TO_NEW_DATA":p=r.getData().merge(l.getData());break;case"REPLACE_WITH_NEW_DATA":p=r.getData()}var h=l.getType();s&&"unstyled"===h&&(h=r.getType());var g=l.merge({text:s.slice(0,o)+r.getText()+s.slice(o),characterList:a(c,r.getCharacterList(),o),type:h,data:p});return e.merge({blockMap:n.set(i,g),selectionBefore:t,selectionAfter:t.merge({anchorKey:f,anchorOffset:d,focusKey:f,focusOffset:d,isBackward:!1})})}(e,t,c,f.first(),d,p,o):function(e,t,n,o,a,u){var l=n.first()instanceof i,c=[],f=o.size,d=n.get(a),p=o.first(),h=o.last(),g=h.getLength(),v=h.getKey(),y=l&&(!d.getChildKeys().isEmpty()||!p.getChildKeys().isEmpty());n.forEach((function(e,t){t===a?(y?c.push(e):c.push(function(e,t,n){var r=e.getText(),i=e.getCharacterList(),o=r.slice(0,t),a=i.slice(0,t),u=n.first();return e.merge({text:o+u.getText(),characterList:a.concat(u.getCharacterList()),type:o?e.getType():u.getType(),data:u.getData()})}(e,u,o)),o.slice(y?0:1,f-1).forEach((function(e){return c.push(e)})),c.push(function(e,t,n){var r=e.getText(),i=e.getCharacterList(),o=r.length,a=r.slice(t,o),u=i.slice(t,o),l=n.last();return l.merge({text:l.getText()+a,characterList:l.getCharacterList().concat(u),data:l.getData()})}(e,u,o))):c.push(e)}));var m=r.createFromArray(c);return l&&(m=function(e,t,n,r){return e.withMutations((function(t){var i=n.getKey(),o=r.getKey(),a=n.getNextSiblingKey(),u=n.getParentKey(),l=function(e,t){var n=e.getKey(),r=e,i=[];for(t.get(n)&&i.push(n);r&&r.getNextSiblingKey();){var o=r.getNextSiblingKey();if(!o)break;i.push(o),r=t.get(o)}return i}(r,e),c=l[l.length-1];if(t.get(o)?(t.setIn([i,"nextSibling"],o),t.setIn([o,"prevSibling"],i)):(t.setIn([i,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],i)),t.setIn([c,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],c),l.forEach((function(e){return t.setIn([e,"parent"],u)})),u){var f=e.get(u).getChildKeys(),d=f.indexOf(i)+1,p=f.toArray();p.splice.apply(p,[d,0].concat(l)),t.setIn([u,"children"],s(p))}}))}(m,0,d,p)),e.merge({blockMap:m,selectionBefore:t,selectionAfter:t.merge({anchorKey:v,anchorOffset:g,focusKey:v,focusOffset:g,isBackward:!1})})}(e,t,c,f,d,p)}},6269:e=>{"use strict";e.exports=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var i=r.slice(0,n),o=r.slice(n);r=i.concat(t,o).toList()}return r}},3136:(e,t,n)=>{"use strict";var r=n(9404),i=n(6269),o=n(646),a=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||o(!1);var u=null;if(null!=n&&(u=n.length),null==u||0===u)return e;var l=e.getBlockMap(),s=t.getStartKey(),c=t.getStartOffset(),f=l.get(s),d=f.getText(),p=f.merge({text:d.slice(0,c)+n+d.slice(c,f.getLength()),characterList:i(f.getCharacterList(),a(r,u).toList(),c)}),h=c+u;return e.merge({blockMap:l.set(s,p),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}},3816:e=>{"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}},3680:e=>{"use strict";e.exports=function(e){return"handled"===e||!0===e}},316:(e,t,n)=>{"use strict";var r=n(3816);e.exports=function(e){return!(!e||!e.ownerDocument)&&r(e)&&"A"===e.nodeName}},2623:(e,t,n)=>{"use strict";var r=n(3816);e.exports=function(e){return!(!e||!e.ownerDocument)&&r(e)&&"BR"===e.nodeName}},5291:e=>{"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},7296:(e,t,n)=>{"use strict";var r=n(3816);e.exports=function(e){return!(!e||!e.ownerDocument)&&r(e)&&"IMG"===e.nodeName}},4316:e=>{"use strict";e.exports=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},7759:e=>{"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),o=!1;return r.some((function(e){return i===e.get("start")?(o=!0,!0):i{"use strict";var r=n(5852);e.exports=function(e){return e.which===r.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}},8771:(e,t,n)=>{"use strict";var r=n(2242),i=n(5989),o=n(9215),a=n(8488),u=n(5188);e.exports=function(e,t){var n=u(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return a(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=i(r),o(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:r.push(e,n,"remove-range")}},4143:(e,t,n)=>{"use strict";var r=n(1617),i=n(2242),o=n(8488),a=n(5188);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return o(e,1);var i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(0,n),u=r.getBackward(a);return o(e,u.length||1)}),"backward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},525:(e,t,n)=>{"use strict";var r=n(1617),i=n(2242),o=n(7800),a=n(5188);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(n),u=r.getForward(a);return o(e,u.length||1)}),"forward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},4071:(e,t,n)=>{"use strict";var r=n(9938),i=n(2242);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return i.push(e,t,"split-block")}},5169:(e,t,n)=>{"use strict";var r=n(2242);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),i=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})}},70:(e,t,n)=>{"use strict";var r=n(2242);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},7381:(e,t,n)=>{"use strict";var r=n(2242),i=n(580),o=n(8488),a=n(5188);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),u=n.getBlockForKey(r).getText()[a-1];return o(e,u?i.getUTF16Length(u,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},2383:(e,t,n)=>{"use strict";var r=n(2242),i=n(580),o=n(7800),a=n(5188);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),u=n.getBlockForKey(r).getText()[a];return o(e,u?i.getUTF16Length(u,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},5935:(e,t,n)=>{"use strict";var r=n(9938),i=n(2242),o=n(866);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,u,l=t.getAnchorKey(),s=e.getCurrentContent(),c=s.getBlockForKey(l).getLength();if(c<=1)return e;n===c?(a=t.set("anchorOffset",n-1),u=t):u=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=o(s,a),d=r.removeRange(s,a,"backward"),p=d.getSelectionAfter(),h=p.getAnchorOffset()-1,g=p.merge({anchorOffset:h,focusOffset:h}),v=r.replaceWithFragment(d,g,f),y=i.push(e,v,"insert-fragment");return i.acceptSelection(y,u)}},8976:(e,t,n)=>{"use strict";var r=n(2242);e.exports=function(e,t,n){var i=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(i)}),0)):n(i);else{var o=i.getCurrentContent();n(r.set(i,{nativelyRenderedContent:o}))}}},5462:(e,t,n)=>{"use strict";var r=n(9404).Map;e.exports=function(e,t,n){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),u=a.toSeq().skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===o})).concat(r([[o,a.get(o)]])).map(n);return e.merge({blockMap:a.merge(u),selectionBefore:t,selectionAfter:t})}},6059:(e,t,n)=>{"use strict";var r=n(5224),i=n(7376),o=n(9404),a=n(646),u=o.OrderedMap,l=o.List,s=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},c=function(e,t,n,r,i){if(!i)return e;var o="after"===r,a=t.getKey(),u=n.getKey(),c=t.getParentKey(),f=t.getNextSiblingKey(),d=t.getPrevSiblingKey(),p=n.getParentKey(),h=o?n.getNextSiblingKey():u,g=o?u:n.getPrevSiblingKey();return e.withMutations((function(e){s(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),s(d,e,(function(e){return e.merge({nextSibling:f})})),s(f,e,(function(e){return e.merge({prevSibling:d})})),s(h,e,(function(e){return e.merge({prevSibling:a})})),s(g,e,(function(e){return e.merge({nextSibling:a})})),s(p,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(u),r=o?n+1:0!==n?n-1:0,i=t.toArray();return i.splice(r,0,a),e.merge({children:l(i)})})),s(a,e,(function(e){return e.merge({nextSibling:h,prevSibling:g,parent:p})}))}))};e.exports=function(e,t,n,o){"replace"===o&&a(!1);var l=n.getKey(),s=t.getKey();s===l&&a(!1);var f=e.getBlockMap(),d=t instanceof r,p=[t],h=f.delete(s);d&&(p=[],h=f.withMutations((function(e){var n=t.getNextSiblingKey(),r=i(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===s})).takeWhile((function(e){var t=e.getKey(),i=t===s,o=n&&t!==n,a=!n&&e.getParentKey()&&(!r||t!==r);return!!(i||o||a)})).forEach((function(t){p.push(t),e.delete(t.getKey())}))})));var g=h.toSeq().takeUntil((function(e){return e===n})),v=h.toSeq().skipUntil((function(e){return e===n})).skip(1),y=p.map((function(e){return[e.getKey(),e]})),m=u();if("before"===o){var b=e.getBlockBefore(l);b&&b.getKey()===t.getKey()&&a(!1),m=g.concat([].concat(y,[[l,n]]),v).toOrderedMap()}else if("after"===o){var _=e.getBlockAfter(l);_&&_.getKey()===s&&a(!1),m=g.concat([[l,n]].concat(y),v).toOrderedMap()}return e.merge({blockMap:c(m,t,n,o,d),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:s,focusKey:s})})}},8488:(e,t,n)=>{"use strict";n(4594),e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),i=n.getStartKey(),o=n.getStartOffset(),a=i,u=0;if(t>o){var l=r.getKeyBefore(i);null==l?a=i:(a=l,u=r.getBlockForKey(l).getText().length)}else u=o-t;return n.merge({focusKey:a,focusOffset:u,isBackward:!0})}},7800:(e,t,n)=>{"use strict";n(4594),e.exports=function(e,t){var n,r=e.getSelection(),i=r.getStartKey(),o=r.getStartOffset(),a=e.getCurrentContent(),u=i;return t>a.getBlockForKey(i).getText().length-o?(u=a.getKeyAfter(i),n=0):n=o+t,r.merge({focusKey:u,focusOffset:n})}},3310:(e,t,n)=>{"use strict";var r=n(5224),i=n(6991),o=n(9404).OrderedMap;e.exports=function(e){return e.first()instanceof r?function(e){var t,n={};return o(e.withMutations((function(e){e.forEach((function(r,o){var a=r.getKey(),u=r.getNextSiblingKey(),l=r.getPrevSiblingKey(),s=r.getChildKeys(),c=r.getParentKey(),f=i();if(n[a]=f,u&&(e.get(u)?e.setIn([u,"prevSibling"],f):e.setIn([a,"nextSibling"],null)),l&&(e.get(l)?e.setIn([l,"nextSibling"],f):e.setIn([a,"prevSibling"],null)),c&&e.get(c)){var d=e.get(c).getChildKeys();e.setIn([c,"children"],d.set(d.indexOf(r.getKey()),f))}else e.setIn([a,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],f),e.setIn([a,"prevSibling"],n[t.getKey()])),t=e.get(a);s.forEach((function(t){e.get(t)?e.setIn([t,"parent"],f):e.setIn([a,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return o(e.toArray().map((function(e){var t=i();return[t,e.set("key",t)]})))}(e)}},6044:(e,t,n)=>{"use strict";var r=n(3018),i=n(8227),o=n(646);function a(e,t,n){var a=t.getCharacterList(),u=n>0?a.get(n-1):void 0,l=n=n&&(r={start:e,end:t})})),"object"!=typeof r&&o(!1),r}(a,c,n),p=d.start,h=d.end;p{"use strict";var r=n(5224),i=n(7376),o=n(9404),a=(o.List,o.Map),u=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},l=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var i=r.getParentKey();i&&n.push(i),r=i?t.get(i):null}return n},s=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},c=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r};e.exports=function(e,t){if(t.isCollapsed())return e;var n,o=e.getBlockMap(),f=t.getStartKey(),d=t.getStartOffset(),p=t.getEndKey(),h=t.getEndOffset(),g=o.get(f),v=o.get(p),y=g instanceof r,m=[];if(y){var b=v.getChildKeys(),_=l(p,o);v.getNextSiblingKey()&&(m=m.concat(_)),b.isEmpty()||(m=m.concat(_.concat([p]))),m=m.concat(l(i(v,o),o))}n=g===v?function(e,t,n){if(0===t)for(;tt;)e=e.pop(),n--;else{var r=e.slice(0,t),i=e.slice(n);e=r.concat(i).toList()}return e}(g.getCharacterList(),d,h):g.getCharacterList().slice(0,d).concat(v.getCharacterList().slice(h));var w=g.merge({text:g.getText().slice(0,d)+v.getText().slice(h),characterList:n}),S=y&&0===d&&0===h&&v.getParentKey()===f&&null==v.getPrevSiblingKey()?a([[f,null]]):o.toSeq().skipUntil((function(e,t){return t===f})).takeUntil((function(e,t){return t===p})).filter((function(e,t){return-1===m.indexOf(t)})).concat(a([[p,null]])).map((function(e,t){return t===f?w:null})),k=o.merge(S).filter((function(e){return!!e}));return y&&g!==v&&(k=function(e,t,n,r){return e.withMutations((function(o){if(u(t.getKey(),o,(function(e){return e.merge({nextSibling:s(e,o,r),prevSibling:c(e,o,r)})})),u(n.getKey(),o,(function(e){return e.merge({nextSibling:s(e,o,r),prevSibling:c(e,o,r)})})),l(t.getKey(),r).forEach((function(e){return u(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:s(e,o,r),prevSibling:c(e,o,r)})}))})),u(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),u(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:s(e,o,r)})})),u(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:c(e,o,r)})})),u(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),l(n.getKey(),r).forEach((function(e){u(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:s(e,o,r),prevSibling:c(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=i(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?i(o,t):null}return n}(n,r).forEach((function(e){return u(e,o,(function(e){return e.merge({nextSibling:s(e,o,r),prevSibling:c(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var a=t.getPrevSiblingKey();u(n.getKey(),o,(function(e){return e.merge({prevSibling:a})})),u(a,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var f=a?e.get(a):null,d=f?f.getParentKey():null;if(t.getChildKeys().forEach((function(e){u(e,o,(function(e){return e.merge({parent:d})}))})),null!=d){var p=e.get(d);u(d,o,(function(e){return e.merge({children:p.getChildKeys().concat(t.getChildKeys())})}))}u(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))}(k,g,v,o)),e.merge({blockMap:k,selectionBefore:t,selectionAfter:t.merge({anchorKey:f,anchorOffset:d,focusKey:f,focusOffset:d,isBackward:!1})})}},5188:(e,t,n)=>{"use strict";var r=n(9938),i=n(7282)("draft_tree_data_support");e.exports=function(e,t,n){var o=e.getSelection(),a=e.getCurrentContent(),u=o,l=o.getAnchorKey(),s=o.getFocusKey(),c=a.getBlockForKey(l);if(i&&"forward"===n&&l!==s)return a;if(o.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return a;if(i&&o.getAnchorOffset()===a.getBlockForKey(l).getLength()){var f=a.getBlockForKey(c.nextSibling);if(!f||0===f.getLength())return a}}else if(e.isSelectionAtStartOfContent())return a;if((u=t(e))===o)return a}return r.removeRange(a,u,n)}},1721:e=>{"use strict";var t=new RegExp("\r","g");e.exports=function(e){return e.replace(t,"")}},4660:(e,t,n)=>{"use strict";var r=n(3334),i=n(7204),o=n(4134),a=n(4909),u=n(9758),l=n(9677),s=n(646),c=n(3816),f=o.isBrowser("IE");function d(e,t){if(!e)return"[empty]";var n=p(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(c(n)||s(!1),n.outerHTML)}function p(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return l(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var i=e.cloneNode();1===i.nodeType&&n.length&&i.setAttribute("data-labels",n.join(", "));for(var o=e.childNodes,a=0;ag(t)&&i.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var l=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw i.logSelectionStateFailure({anonymizedDom:h(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:l,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var s=e.getRangeAt(0);s.setEnd(t,n),e.addRange(s.cloneRange())}}function y(e,t,n,o){var a=l(t).createRange();if(n>g(t)&&(i.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(o.toJS())}),r.handleExtensionCausedError()),a.setStart(t,n),f)try{e.addRange(a)}catch(e){}else e.addRange(a)}e.exports={setDraftEditorSelection:function(e,t,n,r,i){var o=l(t);if(a(o.documentElement,t)){var u=o.defaultView.getSelection(),s=e.getAnchorKey(),c=e.getAnchorOffset(),f=e.getFocusKey(),d=e.getFocusOffset(),p=e.getIsBackward();if(!u.extend&&p){var h=s,g=c;s=f,c=d,f=h,d=g,p=!1}var m=s===n&&r<=c&&i>=c,b=f===n&&r<=d&&i>=d;if(m&&b)return u.removeAllRanges(),y(u,t,c-r,e),void v(u,t,d-r,e);if(p){if(b&&(u.removeAllRanges(),y(u,t,d-r,e)),m){var _=u.focusNode,w=u.focusOffset;u.removeAllRanges(),y(u,t,c-r,e),v(u,_,w,e)}}else m&&(u.removeAllRanges(),y(u,t,c-r,e)),b&&v(u,t,d-r,e)}},addFocusToSelection:v}},3222:(e,t,n)=>{"use strict";var r=n(5224),i=n(6991),o=n(9404),a=n(646),u=n(5462),l=o.List,s=o.Map,c=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var n=t.getAnchorKey(),o=e.getBlockMap(),f=o.get(n),d=f.getText();if(!d){var p=f.getType();if("unordered-list-item"===p||"ordered-list-item"===p)return u(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var h=t.getAnchorOffset(),g=f.getCharacterList(),v=i(),y=f instanceof r,m=f.merge({text:d.slice(0,h),characterList:g.slice(0,h)}),b=m.merge({key:v,text:d.slice(h),characterList:g.slice(h),data:s()}),_=o.toSeq().takeUntil((function(e){return e===f})),w=o.toSeq().skipUntil((function(e){return e===f})).rest(),S=_.concat([[n,m],[v,b]],w).toOrderedMap();return y&&(f.getChildKeys().isEmpty()||a(!1),S=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),i=n.getKey();c(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,o=t.toArray();return o.splice(n,0,i),e.merge({children:l(o)})})),c(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:i})})),c(r,e,(function(e){return e.merge({nextSibling:i})})),c(i,e,(function(e){return e.merge({prevSibling:r})}))}))}(S,m,b)),e.merge({blockMap:S,selectionBefore:t,selectionAfter:t.merge({anchorKey:v,anchorOffset:0,focusKey:v,focusOffset:0,isBackward:!1})})}},3676:e=>{"use strict";var t=/\r\n?|\n/g;e.exports=function(e){return e.split(t)}},4809:e=>{"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}},2395:(e,t,n)=>{"use strict";var r=n(2505),i=n(1864),o=n(9395),a=new RegExp("\r\n","g"),u={"text/rtf":1,"text/html":1};function l(e){if("file"==e.kind)return e.getAsFile()}var s=function(){function e(e){this.data=e,this.types=e.types?i(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return u[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(a,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=s},5852:e=>{"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},2505:e=>{"use strict";var t={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var r=n(e);return t.isImage(e)&&("jpeg"===r[1]||"pjpeg"===r[1])}};function n(e){return e.split("/")}e.exports=t},3529:e=>{"use strict";function t(e,t){return!!t&&(e===t.documentElement||e===t.body)}var n={getTop:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollTop||n.documentElement.scrollTop:e.scrollTop},setTop:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollTop=r.documentElement.scrollTop=n:e.scrollTop=n},getLeft:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollLeft||n.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:e.scrollLeft=n}};e.exports=n},2935:(e,t,n)=>{"use strict";function r(e,t){var n=i.get(e,t);return"auto"===n||"scroll"===n}var i={get:n(6892),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=i},7405:e=>{"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},5324:e=>{"use strict";var t=function(){function e(e){var t,n;n=void 0,(t="_uri")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();e.exports=t},8307:(e,t,n)=>{"use strict";var r=n(5822),i=n(646),o="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",a="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",u=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+o+a+"]"),l=new RegExp("["+o+a+"]");function s(e){var t=u.exec(e);return null==t?null:t[0]}function c(e){var t=s(e);return null==t?r.NEUTRAL:l.exec(t)?r.RTL:r.LTR}function f(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=c(e);return n===r.NEUTRAL?t:n}function d(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||i(!1),f(e,t)}var p={firstStrongChar:s,firstStrongCharDir:c,resolveBlockDir:f,getDirection:d,isDirectionLTR:function(e,t){return d(e,t)===r.LTR},isDirectionRTL:function(e,t){return d(e,t)===r.RTL}};e.exports=p},5822:(e,t,n)=>{"use strict";var r=n(646),i="LTR",o="RTL",a=null;function u(e){return e===i||e===o}function l(e){return u(e)||r(!1),e===i?"ltr":"rtl"}function s(e){a=e}var c={NEUTRAL:"NEUTRAL",LTR:i,RTL:o,isStrong:u,getHTMLDir:l,getHTMLDirIfDifferent:function(e,t){return u(e)||r(!1),u(t)||r(!1),e===t?null:l(e)},setGlobalDir:s,initGlobalDir:function(){s(i)},getGlobalDir:function(){return a||this.initGlobalDir(),a||r(!1),a}};e.exports=c},1708:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(8307),o=n(5822),a=n(646),u=function(){function e(e){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),e?o.isStrong(e)||a(!1):e=o.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=i.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=u},580:(e,t,n)=>{"use strict";var r=n(646),i=55296,o=57343,a=/[\uD800-\uDFFF]/;function u(e){return i<=e&&e<=o}function l(e){return a.test(e)}function s(e,t){return 1+u(e.charCodeAt(t))}function c(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!l(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var i=0;if(t>0){for(;t>0&&i=r)return""}else if(t<0){for(i=r;t<0&&00&&o{"use strict";var r=n(4534),i=n(953),o=n(3731),a=n(4793);function u(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,i.contains(o,t))}function l(e){return"Windows"===r.platformName?e.replace(/^\s*NT/,""):e}var s={isBrowser:function(e){return u(r.browserName,r.browserFullVersion,e)},isBrowserArchitecture:function(e){return u(r.browserArchitecture,null,e)},isDevice:function(e){return u(r.deviceName,null,e)},isEngine:function(e){return u(r.engineName,r.engineVersion,e)},isPlatform:function(e){return u(r.platformName,r.platformFullVersion,e,l)},isPlatformArchitecture:function(e){return u(r.platformArchitecture,null,e)}};e.exports=o(s,a)},4534:(e,t,n)=>{"use strict";var r,i="Unknown",o=(new(n(7232))).getResult(),a=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(o.browser.version),u={browserArchitecture:o.cpu.architecture||i,browserFullVersion:o.browser.version||i,browserMinorVersion:a.minor||i,browserName:o.browser.name||i,browserVersion:o.browser.major||i,deviceName:o.device.model||i,engineName:o.engine.name||i,engineVersion:o.engine.version||i,platformArchitecture:o.cpu.architecture||i,platformName:(r=o.os.name,{"Mac OS":"Mac OS X"}[r]||r||i),platformVersion:o.os.version||i,platformFullVersion:o.os.version||i};e.exports=u},953:(e,t,n)=>{"use strict";var r=n(646),i=/\./,o=/\|\|/,a=/\s+\-\s+/,u=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,l=/^(\d*)(.*)/;function s(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(i),o=d(e),a=o.modifier,u=o.rangeComponents;switch(a){case"<":return c(r,u);case"<=":return-1===(n=m(r,u))||0===n;case">=":return f(r,u);case">":return 1===m(r,u);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,o=parseInt(r[i],10);return p(o)&&(r[i]=o+1+""),f(e,n)&&c(e,r)}(r,u);default:return function(e,t){return 0===m(e,t)}(r,u)}}function c(e,t){return-1===m(e,t)}function f(e,t){var n=m(e,t);return 1===n||0===n}function d(e){var t=e.split(i),n=t[0].match(u);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function p(e){return!isNaN(e)&&isFinite(e)}function h(e){return!d(e).modifier}function g(e,t){for(var n=e.length;nt?1:e1?n.some((function(e){return b.contains(e,t)})):function(e,t){var n=e.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return s(n[0],t);var i=n[0],o=n[1];return h(i)&&h(o)||r(!1),s(">="+i,t)&&s("<="+o,t)}(e=n[0].trim(),t)}(e.trim(),t.trim())}};e.exports=b},8748:e=>{"use strict";var t=/-(.)/g;e.exports=function(e){return e.replace(t,(function(e,t){return t.toUpperCase()}))}},4909:(e,t,n)=>{"use strict";var r=n(5423);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},1864:(e,t,n)=>{"use strict";var r=n(646);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),i=0;i{"use strict";function t(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(t).join(" "):Array.prototype.map.call(arguments,t).join(" ")}},9395:e=>{"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},9758:e=>{"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},9824:e=>{"use strict";var t="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:t||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},8527:(e,t,n)=>{"use strict";var r=n(7078);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},7078:(e,t,n)=>{"use strict";var r=n(4909);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},7392:(e,t,n)=>{"use strict";var r=n(9824),i=n(7458);e.exports=function(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=i(e),o=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-o.clientWidth,u=e.scrollHeight-o.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,u)),n}},6892:(e,t,n)=>{"use strict";var r=n(8748),i=n(3998);function o(e){return null==e?e:String(e)}e.exports=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return o(n.getPropertyValue(i(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return o(n.getPropertyValue(i(t)));if("display"===t)return"none"}return e.currentStyle?o("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):o(e.style&&e.style[r(t)])}},7458:e=>{"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},1401:e=>{"use strict";function t(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function n(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function r(){return{width:window.innerWidth||t(),height:window.innerHeight||n()}}r.withoutScrollbars=function(){return{width:t(),height:n()}},e.exports=r},3998:e=>{"use strict";var t=/([A-Z])/g;e.exports=function(e){return e.replace(t,"-$1").toLowerCase()}},646:e=>{"use strict";e.exports=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i{"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},5423:(e,t,n)=>{"use strict";var r=n(5504);e.exports=function(e){return r(e)&&3==e.nodeType}},798:e=>{"use strict";e.exports=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r{"use strict";var t=Object.prototype.hasOwnProperty;e.exports=function(e,n,r){if(!e)return null;var i={};for(var o in e)t.call(e,o)&&(i[o]=n.call(r,e[o],o,e));return i}},4793:e=>{"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},6408:e=>{"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},9765:(e,t,n)=>{"use strict";n(2791),e.exports=n.g.setImmediate},4594:(e,t,n)=>{"use strict";var r=n(9395);e.exports=r},9404:function(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:$(e)}function r(e){return u(e)?e:Q(e)}function i(e){return l(e)?e:G(e)}function o(e){return a(e)&&!s(e)?e:J(e)}function a(e){return!(!e||!e[f])}function u(e){return!(!e||!e[d])}function l(e){return!(!e||!e[p])}function s(e){return u(e)||l(e)}function c(e){return!(!e||!e[h])}t(r,n),t(i,n),t(o,n),n.isIterable=a,n.isKeyed=u,n.isIndexed=l,n.isAssociative=s,n.isOrdered=c,n.Keyed=r,n.Indexed=i,n.Set=o;var f="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",v=5,y=1<>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?C(e)+t:t}function D(){return!0}function T(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function M(e,t){return K(e,t,0)}function I(e,t){return K(e,t,t)}function K(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var A=0,L=1,N=2,P="function"==typeof Symbol&&Symbol.iterator,z="@@iterator",R=P||z;function B(e){this.next=e}function F(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function j(){return{value:void 0,done:!0}}function U(e){return!!W(e)}function H(e){return e&&"function"==typeof e.next}function q(e){var t=W(e);return t&&t.call(e)}function W(e){var t=e&&(P&&e[P]||e[z]);if("function"==typeof t)return t}function V(e){return e&&"number"==typeof e.length}function $(e){return null==e?ae():a(e)?e.toSeq():function(e){var t=se(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function Q(e){return null==e?ae().toKeyedSeq():a(e)?u(e)?e.toSeq():e.fromEntrySeq():ue(e)}function G(e){return null==e?ae():a(e)?u(e)?e.entrySeq():e.toIndexedSeq():le(e)}function J(e){return(null==e?ae():a(e)?u(e)?e.entrySeq():e:le(e)).toSetSeq()}B.prototype.toString=function(){return"[Iterator]"},B.KEYS=A,B.VALUES=L,B.ENTRIES=N,B.prototype.inspect=B.prototype.toSource=function(){return this.toString()},B.prototype[R]=function(){return this},t($,n),$.of=function(){return $(arguments)},$.prototype.toSeq=function(){return this},$.prototype.toString=function(){return this.__toString("Seq {","}")},$.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},$.prototype.__iterate=function(e,t){return ce(this,e,t,!0)},$.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},t(Q,$),Q.prototype.toKeyedSeq=function(){return this},t(G,$),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(e,t){return ce(this,e,t,!1)},G.prototype.__iterator=function(e,t){return fe(this,e,t,!1)},t(J,$),J.of=function(){return J(arguments)},J.prototype.toSetSeq=function(){return this},$.isSeq=oe,$.Keyed=Q,$.Set=J,$.Indexed=G;var X,Y,Z,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function ie(e){this._iterator=e,this._iteratorCache=[]}function oe(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function ue(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():H(e)?new ie(e).fromEntrySeq():U(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=se(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function se(e){return V(e)?new te(e):H(e)?new ie(e):U(e)?new re(e):void 0}function ce(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var u=i[n?o-a:a];if(!1===t(u[1],r?u[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function fe(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new B((function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:F(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function de(e,t){return t?pe(t,e,"",{"":e}):he(e)}function pe(e,t,n,r){return Array.isArray(t)?e.call(r,n,G(t).map((function(n,r){return pe(e,n,r,t)}))):ge(t)?e.call(r,n,Q(t).map((function(n,r){return pe(e,n,r,t)}))):t}function he(e){return Array.isArray(e)?G(e).map(he).toList():ge(e)?Q(e).map(he).toMap():e}function ge(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ye(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||u(e)!==u(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!s(e);if(c(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&ve(i[1],e)&&(n||ve(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var f=!0,d=t.__iterate((function(t,r){if(n?!e.has(t):i?!ve(t,e.get(r,b)):!ve(e.get(r,b),t))return f=!1,!1}));return f&&e.size===d}function me(e,t){if(!(this instanceof me))return new me(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Y)return Y;Y=this}}function be(e,t){if(!e)throw new Error(t)}function _e(e,t,n){if(!(this instanceof _e))return new _e(e,t,n);if(be(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),tr?{value:void 0,done:!0}:F(e,i,n[t?r-i++:i++])}))},t(ne,Q),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new B((function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:F(e,a,n[a])}))},ne.prototype[h]=!0,t(re,G),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=q(this._iterable),r=0;if(H(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=q(this._iterable);if(!H(n))return new B(j);var r=0;return new B((function(){var t=n.next();return t.done?t:F(e,r++,t.value)}))},t(ie,G),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return F(e,i,r[i++])}))},t(me,G),me.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},me.prototype.get=function(e,t){return this.has(e)?this._value:t},me.prototype.includes=function(e){return ve(this._value,e)},me.prototype.slice=function(e,t){var n=this.size;return T(e,t,n)?this:new me(this._value,I(t,n)-M(e,n))},me.prototype.reverse=function(){return this},me.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},me.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},me.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},_e.prototype.get=function(e,t){return this.has(e)?this._start+O(this,e)*this._step:t},_e.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:F(e,o++,a)}))},_e.prototype.equals=function(e){return e instanceof _e?this._start===e._start&&this._end===e._end&&this._step===e._step:ye(this,e)},t(we,n),t(Se,we),t(ke,we),t(xe,we),we.Keyed=Se,we.Indexed=ke,we.Set=xe;var Ee="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ce(e){return e>>>1&1073741824|3221225471&e}function Oe(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ce(n)}if("string"===t)return e.length>Ne?function(e){var t=Re[e];return void 0===t&&(t=De(e),ze===Pe&&(ze=0,Re={}),ze++,Re[e]=t),t}(e):De(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Ke&&void 0!==(t=Ie.get(e)))return t;if(void 0!==(t=e[Le]))return t;if(!Me){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Le]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Ae,1073741824&Ae&&(Ae=0),Ke)Ie.set(e,t);else{if(void 0!==Te&&!1===Te(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Me)Object.defineProperty(e,Le,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Le]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Le]=t}}return t}(e);if("function"==typeof e.toString)return De(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function De(e){for(var t=0,n=0;n>>n)&m,u=(0===n?r:r>>>n)&m;return new Ve(t,1<>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function ft(e,t,n,r){var i=r?e:E(e);return i[t]=n,i}qe[He]=!0,qe[g]=qe.remove,qe.removeIn=qe.deleteIn,We.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=dt)return function(e,t,n,r){e||(e=new x);for(var i=new Ge(e,Oe(n),[n,r]),o=0;o>>e)&m),o=this.bitmap;return o&i?this.nodes[ct(o&i-1)].get(e+v,t,n,r):r},Ve.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Oe(r));var u=(0===t?n:n>>>t)&m,l=1<=pt)return function(e,t,n,r,i){for(var o=0,a=new Array(y),u=0;0!==n;u++,n>>>=1)a[u]=1&n?t[o++]:void 0;return a[r]=i,new $e(e,o+1,a)}(e,d,s,u,h);if(c&&!h&&2===d.length&&rt(d[1^f]))return d[1^f];if(c&&h&&1===d.length&&rt(h))return h;var g=e&&e===this.ownerID,_=c?h?s:s^l:s|l,w=c?h?ft(d,f,h,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&m,o=this.nodes[i];return o?o.get(e+v,t,n,r):r},$e.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Oe(r));var u=(0===t?n:n>>>t)&m,l=i===b,s=this.nodes,c=s[u];if(l&&!c)return this;var f=nt(c,e,t+v,n,r,i,o,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d0&&r=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?Tt(e,t).set(0,n):Tt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o=S(w);return t>=It(e._capacity)?r=Ct(r,e.__ownerID,0,t,n,o):i=Ct(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):xt(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},gt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},gt.prototype.insert=function(e,t){return this.splice(e,0,t)},gt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=v,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Et()},gt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Tt(n,0,t+e.length);for(var r=0;r>>t&m;if(r>=this.array.length)return new bt([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-v,n))===a&&o)return this}if(o&&!i)return this;var u=Ot(this,e);if(!o)for(var l=0;l>>t&m;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-v,n))===o&&i===this.array.length-1)return this}var a=Ot(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var _t,wt,St={};function kt(e,t){var n=e._origin,r=e._capacity,i=It(r),o=e._tail;return a(e._root,e._level,0);function a(e,u,l){return 0===u?function(e,a){var u=a===i?o&&o.array:e&&e.array,l=a>n?0:n-a,s=r-a;return s>y&&(s=y),function(){if(l===s)return St;var e=t?--s:l++;return u&&u[e]}}(e,l):function(e,i,o){var u,l=e&&e.array,s=o>n?0:n-o>>i,c=1+(r-o>>i);return c>y&&(c=y),function(){for(;;){if(u){var e=u();if(e!==St)return e;u=null}if(s===c)return St;var n=t?--c:s++;u=a(l&&l[n],i-v,o+(n<>>n&m,l=e&&u0){var s=e&&e.array[u],c=Ct(s,t,n-v,r,i,o);return c===s?e:((a=Ot(e,t)).array[u]=c,a)}return l&&e.array[u]===i?e:(k(o),a=Ot(e,t),void 0===i&&u===a.array.length-1?a.array.pop():a.array[u]=i,a)}function Ot(e,t){return t&&e&&t===e.ownerID?e:new bt(e?e.array.slice():[],t)}function Dt(e,t){if(t>=It(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&m],r-=v;return n}}function Tt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new x,i=e._origin,o=e._capacity,a=i+t,u=void 0===n?o:n<0?o+n:i+n;if(a===i&&u===o)return e;if(a>=u)return e.clear();for(var l=e._level,s=e._root,c=0;a+c<0;)s=new bt(s&&s.array.length?[void 0,s]:[],r),c+=1<<(l+=v);c&&(a+=c,i+=c,u+=c,o+=c);for(var f=It(o),d=It(u);d>=1<f?new bt([],r):p;if(p&&d>f&&av;y-=v){var b=f>>>y&m;g=g.array[b]=Ot(g.array[b],r)}g.array[f>>>v&m]=p}if(u=d)a-=d,u-=d,l=v,s=null,h=h&&h.removeBefore(r,0,a);else if(a>i||d>>l&m;if(_!==d>>>l&m)break;_&&(c+=(1<i&&(s=s.removeBefore(r,l,a-c)),s&&do&&(o=s.size),a(l)||(s=s.map((function(e){return de(e)}))),r.push(s)}return o>e.size&&(e=e.setSize(o)),lt(e,t,r)}function It(e){return e>>v<=y&&a.size>=2*o.size?(r=(i=a.filter((function(e,t){return void 0!==e&&u!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=u===a.size-1?a.pop():a.set(u,void 0))}else if(l){if(n===a.get(u)[1])return e;r=o,i=a.set(u,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Lt(r,i)}function zt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Rt(e){this._iter=e,this.size=e.size}function Bt(e){this._iter=e,this.size=e.size}function Ft(e){this._iter=e,this.size=e.size}function jt(e){var t=nn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=rn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===N){var r=e.__iterator(t,n);return new B((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===L?A:L,n)},t}function Ut(e,t,n){var r=nn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,b);return o===b?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate((function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(N,i);return new B((function(){var i=o.next();if(i.done)return i;var a=i.value,u=a[0];return F(r,u,t.call(n,a[1],u,e),i)}))},r}function Ht(e,t){var n=nn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=jt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=rn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function qt(e,t,n,r){var i=nn(e);return r&&(i.has=function(r){var i=e.get(r,b);return i!==b&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,b);return o!==b&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,u=0;return e.__iterate((function(e,o,l){if(t.call(n,e,o,l))return u++,i(e,r?o:u-1,a)}),o),u},i.__iteratorUncached=function(i,o){var a=e.__iterator(N,o),u=0;return new B((function(){for(;;){var o=a.next();if(o.done)return o;var l=o.value,s=l[0],c=l[1];if(t.call(n,c,s,e))return F(i,r?s:u++,c,o)}}))},i}function Wt(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),T(t,n,i))return e;var o=M(t,i),a=I(n,i);if(o!=o||a!=a)return Wt(e.toSeq().cacheResult(),t,n,r);var u,l=a-o;l==l&&(u=l<0?0:l);var s=nn(e);return s.size=0===u?u:e.size&&u||void 0,!r&&oe(e)&&u>=0&&(s.get=function(t,n){return(t=O(this,t))>=0&&tu)return{value:void 0,done:!0};var e=i.next();return r||t===L?e:F(t,l-1,t===A?void 0:e.value[1],e)}))},s}function Vt(e,t,n,r){var i=nn(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var u=!0,l=0;return e.__iterate((function(e,o,s){if(!u||!(u=t.call(n,e,o,s)))return l++,i(e,r?o:l-1,a)})),l},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var u=e.__iterator(N,o),l=!0,s=0;return new B((function(){var e,o,c;do{if((e=u.next()).done)return r||i===L?e:F(i,s++,i===A?void 0:e.value[1],e);var f=e.value;o=f[0],c=f[1],l&&(l=t.call(n,c,o,a))}while(l);return i===N?e:F(i,o,c,e)}))},i}function $t(e,t,n){var r=nn(e);return r.__iterateUncached=function(r,i){var o=0,u=!1;return function e(l,s){var c=this;l.__iterate((function(i,l){return(!t||s0}function Xt(e,t,r){var i=nn(e);return i.size=new te(r).map((function(e){return e.size})).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(L,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map((function(e){return e=n(e),q(i?e.reverse():e)})),a=0,u=!1;return new B((function(){var n;return u||(n=o.map((function(e){return e.next()})),u=n.some((function(e){return e.done}))),u?{value:void 0,done:!0}:F(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function Yt(e,t){return oe(e)?t:e.constructor(t)}function Zt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function en(e){return Be(e.size),C(e)}function tn(e){return u(e)?r:l(e)?i:o}function nn(e){return Object.create((u(e)?Q:l(e)?G:J).prototype)}function rn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):$.prototype.cacheResult.call(this)}function on(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):In(e,t)},Cn.prototype.pushAll=function(e){if(0===(e=i(e)).size)return this;Be(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):In(t,n)},Cn.prototype.pop=function(){return this.slice(1)},Cn.prototype.unshift=function(){return this.push.apply(this,arguments)},Cn.prototype.unshiftAll=function(e){return this.pushAll(e)},Cn.prototype.shift=function(){return this.pop.apply(this,arguments)},Cn.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):Kn()},Cn.prototype.slice=function(e,t){if(T(e,t,this.size))return this;var n=M(e,this.size);if(I(t,this.size)!==this.size)return ke.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):In(r,i)},Cn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?In(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Cn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Cn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new B((function(){if(r){var t=r.value;return r=r.next,F(e,n++,t)}return{value:void 0,done:!0}}))},Cn.isStack=On;var Dn,Tn="@@__IMMUTABLE_STACK__@@",Mn=Cn.prototype;function In(e,t,n,r){var i=Object.create(Mn);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Kn(){return Dn||(Dn=In(0))}function An(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Mn[Tn]=!0,Mn.withMutations=qe.withMutations,Mn.asMutable=qe.asMutable,Mn.asImmutable=qe.asImmutable,Mn.wasAltered=qe.wasAltered,n.Iterator=B,An(n,{toArray:function(){Be(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Rt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new zt(this,!0)},toMap:function(){return Fe(this.toKeyedSeq())},toObject:function(){Be(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Kt(this.toKeyedSeq())},toOrderedSet:function(){return _n(u(this)?this.valueSeq():this)},toSet:function(){return dn(u(this)?this.valueSeq():this)},toSetSeq:function(){return new Bt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Cn(u(this)?this.valueSeq():this)},toList:function(){return gt(u(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return Yt(this,function(e,t){var n=u(e),i=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?ue(e):le(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===i.length)return e;if(1===i.length){var o=i[0];if(o===e||n&&u(o)||l(e)&&l(o))return o}var s=new te(i);return n?s=s.toKeyedSeq():l(e)||(s=s.toSetSeq()),(s=s.flatten(!0)).size=i.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),s}(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(N)},every:function(e,t){Be(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1})),n},filter:function(e,t){return Yt(this,qt(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,i,o){if(e.call(t,r,i,o))return n=[i,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Be(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Be(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(A)},map:function(e,t){return Yt(this,Ut(this,e,t))},reduce:function(e,t,n){var r,i;return Be(this.size),arguments.length<2?i=!0:r=t,this.__iterate((function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Yt(this,Ht(this,!0))},slice:function(e,t){return Yt(this,Wt(this,e,t,!0))},some:function(e,t){return!this.every(Rn(e),t)},sort:function(e){return Yt(this,Qt(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return C(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Fe().asMutable();return e.__iterate((function(i,o){r.update(t.call(n,i,o,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return ye(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(zn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Rn(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(D)},flatMap:function(e,t){return Yt(this,function(e,t,n){var r=tn(e);return e.toSeq().map((function(i,o){return r(t.call(n,i,o,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Yt(this,$t(this,e,!0))},fromEntrySeq:function(){return new Ft(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,i=an(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,b):b)===b)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=u(e),i=(c(e)?Kt():Fe()).asMutable();e.__iterate((function(o,a){i.update(t.call(n,o,a,e),(function(e){return(e=e||[]).push(r?[a,o]:o),e}))}));var o=tn(e);return i.map((function(t){return Yt(e,o(t))}))}(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Pn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Gt(this,e)},maxBy:function(e,t){return Gt(this,t,e)},min:function(e){return Gt(this,e?Bn(e):Un)},minBy:function(e,t){return Gt(this,t?Bn(t):Un,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Yt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Yt(this,Vt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Rn(e),t)},sortBy:function(e,t){return Yt(this,Qt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Yt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Yt(this,function(e,t,n){var r=nn(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate((function(e,i,u){return t.call(n,e,i,u)&&++a&&r(e,i,o)})),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(N,i),u=!0;return new B((function(){if(!u)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,l=i[0],s=i[1];return t.call(n,s,l,o)?r===N?e:F(r,l,s,e):(u=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Rn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=c(e),n=u(e),r=t?1:0;return function(e,t){return t=Ee(t,3432918353),t=Ee(t<<15|t>>>-15,461845907),t=Ee(t<<13|t>>>-13,5),t=Ee((t=t+3864292196^e)^t>>>16,2246822507),Ce((t=Ee(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Hn(Oe(e),Oe(t))|0}:function(e,t){r=r+Hn(Oe(e),Oe(t))|0}:t?function(e){r=31*r+Oe(e)|0}:function(e){r=r+Oe(e)|0}),r)}(this))}});var Ln=n.prototype;Ln[f]=!0,Ln[R]=Ln.values,Ln.__toJS=Ln.toArray,Ln.__toStringMapper=Fn,Ln.inspect=Ln.toSource=function(){return this.toString()},Ln.chain=Ln.flatMap,Ln.contains=Ln.includes,function(){try{Object.defineProperty(Ln,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.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. "+e),this.size}}})}catch(e){}}(),An(r,{flip:function(){return Yt(this,jt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return Yt(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Yt(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var Nn=r.prototype;function Pn(e,t){return t}function zn(e,t){return[t,e]}function Rn(e){return function(){return!e.apply(this,arguments)}}function Bn(e){return function(){return-e.apply(this,arguments)}}function Fn(e){return"string"==typeof e?JSON.stringify(e):e}function jn(){return E(arguments)}function Un(e,t){return et?-1:0}function Hn(e,t){return e^t+2654435769+(e<<6)+(e>>2)}return Nn[d]=!0,Nn[R]=Ln.entries,Nn.__toJS=Ln.toObject,Nn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Fn(e)},An(i,{toKeyedSeq:function(){return new zt(this,!1)},filter:function(e,t){return Yt(this,qt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return Yt(this,Ht(this,!1))},slice:function(e,t){return Yt(this,Wt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=M(e,e<0?this.count():this.size);var r=this.slice(0,e);return Yt(this,1===n?r:r.concat(E(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return Yt(this,$t(this,e,!1))},get:function(e,t){return(e=O(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=O(this,e))>=0&&(void 0!==this.size?this.size===1/0||e{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,a,u=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l{"use strict";var r=n(6540),i=n(9982);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n