PageSourceSearch

https://www.theprose.com/_next/static/chunks/commons-7ccf3389-32baaffc3c61ced84d5b.js

js theprose.com collected 2026-09-24 09:25:43 UTC 28,577 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3448],{52461:function(t,e,n){var r,i=n(92573),o=n(90046),c=n(83946),a=o.OrderedMap,u={getDirectionMap:function(t,e){r?r.reset():r=new i;var n=t.getBlockMap(),u=n.valueSeq().map((function(t){return c(r).getDirection(t.getText())})),l=a(n.keySeq().zip(u));return null!=e&&o.is(e,l)?e:l}};t.exports=u},57077:function(t,e,n){function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(23593),c=n(45481),a=n(52461),u=n(24680),l=n(90046),s=l.OrderedSet,f=l.Record,g=l.Stack,h=l.OrderedMap,p=l.List,d=f({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:g(),selection:null,treeMap:null,undoStack:g()}),y=function(){e.createEmpty=function(t){return this.createWithText("",t)},e.createWithText=function(t,n){return e.createWithContent(c.createFromText(t),n)},e.createWithContent=function(t,n){if(0===t.getBlockMap().count())return e.createEmpty(n);var r=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:g(),redoStack:g(),decorator:n||null,selection:u.createEmpty(r)})},e.create=function(t){var n=t.currentContent,i=r({},t,{treeMap:k(n,t.decorator),directionMap:a.getDirectionMap(n)});return new e(new d(i))},e.fromJS=function(t){return new e(new d(r({},t,{directionMap:null!=t.directionMap?h(t.directionMap):t.directionMap,inlineStyleOverride:null!=t.inlineStyleOverride?s(t.inlineStyleOverride):t.inlineStyleOverride,nativelyRenderedContent:null!=t.nativelyRenderedContent?c.fromJS(t.nativelyRenderedContent):t.nativelyRenderedContent,redoStack:null!=t.redoStack?g(t.redoStack.map((function(t){return c.fromJS(t)}))):t.redoStack,selection:null!=t.selection?new u(t.selection):t.selection,treeMap:null!=t.treeMap?h(t.treeMap).map((function(t){return p(t).map((function(t){return o.fromJS(t)}))})):t.treeMap,undoStack:null!=t.undoStack?g(t.undoStack.map((function(t){return c.fromJS(t)}))):t.undoStack,currentContent:c.fromJS(t.currentContent)})))},e.set=function(t,n){return new e(t.getImmutable().withMutations((function(e){var r=e.get("decorator"),i=r;null===n.decorator?i=null:n.decorator&&(i=n.decorator);var c=n.currentContent||t.getCurrentContent();if(i!==r){var a,u=e.get("treeMap");return a=i&&r?function(t,e,n,r,i){return n.merge(e.toSeq().filter((function(e){return r.getDecorations(e,t)!==i.getDecorations(e,t)})).map((function(e){return o.generate(t,e,r)})))}(c,c.getBlockMap(),u,i,r):k(c,i),void e.merge({decorator:i,treeMap:a,nativelyRenderedContent:null})}c!==t.getCurrentContent()&&e.set("treeMap",function(t,e,n,r){var i=t.getCurrentContent().set("entityMap",n),c=i.getBlockMap();return t.getImmutable().get("treeMap").merge(e.toSeq().filter((function(t,e){return t!==c.get(e)})).map((function(t){return o.generate(i,t,r)})))}(t,c.getBlockMap(),c.getEntityMap(),i)),e.merge(n)})))};var t=e.prototype;function e(t){i(this,"_immutable",void 0),this._immutable=t}return t.toJS=function(){return this.getImmutable().toJS()},t.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},t.getCurrentContent=function(){return this.getImmutable().get("currentContent")},t.getUndoStack=function(){return this.getImmutable().get("undoStack")},t.getRedoStack=function(){return this.getImmutable().get("redoStack")},t.getSelection=function(){return this.getImmutable().get("selection")},t.getDecorator=function(){return this.getImmutable().get("decorator")},t.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},t.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},t.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},t.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},t.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,n){return e.set(t,{inlineStyleOverride:n})},t.getCurrentInlineStyle=function(){var t=this.getInlineStyleOverride();if(null!=t)return t;var e=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(t,e){var n=e.getStartKey(),r=e.getStartOffset(),i=t.getBlockForKey(n);if(r>0)return i.getInlineStyleAt(r-1);if(i.getLength())return i.getInlineStyleAt(0);return S(t,n)}(e,n):function(t,e){var n=e.getStartKey(),r=e.getStartOffset(),i=t.getBlockForKey(n);if(r<i.getLength())return i.getInlineStyleAt(r);if(r>0)return i.getInlineStyleAt(r-1);return S(t,n)}(e,n)},t.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();
1return this.getSelection().hasEdgeWithin(t,0,0)},t.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(t,e){return v(t,e,!1)},e.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),v(t,e,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),i=n.getLength();return e.acceptSelection(t,new u({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.getCurrentContent()===n)return t;var o=a.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:o,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var c=t.getSelection(),u=t.getCurrentContent(),l=t.getUndoStack(),s=n;c!==u.getSelectionAfter()||m(t,r)?(l=l.push(u),s=s.set("selectionBefore",c)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(s=s.set("selectionBefore",u.getSelectionBefore()));var f=t.getInlineStyleOverride(),h=["adjust-depth","change-block-type","split-block"];-1===h.indexOf(r)&&(f=null);var p={currentContent:s,directionMap:o,undoStack:l,redoStack:g(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:f};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=a.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:n.shift(),redoStack:t.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var i=t.getCurrentContent(),o=a.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:o,undoStack:t.getUndoStack().push(i),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},t.getImmutable=function(){return this._immutable},e}();function v(t,e,n){return y.set(t,{selection:e,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function k(t,e){return t.getBlockMap().map((function(n){return o.generate(t,n,e)})).toOrderedMap()}function m(t,e){return e!==t.getLastChangeType()||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}function S(t,e){var n=t.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).skipUntil((function(t,e){return t.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):s()}t.exports=y},40072:function(t,e,n){var r=n(85306),i=n(66731),o=r.isPlatform("Mac OS X"),c={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return o&&t.altKey},usesMacOSHeuristics:function(){return o},hasCommandModifier:function(t){return o?!!t.metaKey&&!t.altKey:c.isCtrlKeyCommand(t)},isSoftNewlineEvent:i};t.exports=c},81451:function(){},30509:function(t,e,n){var r=n(64702),i=n(57077),o=n(798),c=n(83946),a={currentBlockContainsLink:function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some((function(t){var e=t.getEntity();return!!e&&"LINK"===r.__get(e).getType()}))},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e,n){switch(e){case"bold":return a.toggleInlineStyle(t,"BOLD");case"italic":return a.toggleInlineStyle(t,"ITALIC");case"underline":return a.toggleInlineStyle(t,"UNDERLINE");case"code":return a.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return a.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return a.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=r.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),n=i.push(t,e,"insert-characters");return i.forceSelection(n,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var n=t.getCurrentContent(),r=e.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var c=n.getBlockMap().delete(o.getKey()),u=n.merge({blockMap:c,selectionAfter:e});if(u!==n)return i.push(t,u,"remove-range")}var l=a.tryToRemoveBlockStyle(t);return l?i.push(t,l,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var n=t.getCurrentContent(),o=e.getStartKey(),c=n.getBlockForKey(o).getLength();if(e.getStartOffset()<c)return null;
1var a=n.getBlockAfter(o);if(!a||"atomic"!==a.getType())return null;var u=e.merge({focusKey:a.getKey(),focusOffset:a.getLength()}),l=r.removeRange(n,u,"forward");return l!==n?i.push(t,l,"remove-range"):null},onTab:function(t,e,n){var r=e.getSelection(),c=r.getAnchorKey();if(c!==r.getFocusKey())return e;var a=e.getCurrentContent(),u=a.getBlockForKey(c),l=u.getType();if("unordered-list-item"!==l&&"ordered-list-item"!==l)return e;t.preventDefault();var s=u.getDepth();if(!t.shiftKey&&s===n)return e;var f=o(a,r,t.shiftKey?-1:1,n);return i.push(e,f,"adjust-depth")},toggleBlockType:function(t,e){var n=t.getSelection(),o=n.getStartKey(),a=n.getEndKey(),u=t.getCurrentContent(),l=n;if(o!==a&&0===n.getEndOffset()){var s=c(u.getBlockBefore(a));a=s.getKey(),l=l.merge({anchorKey:o,anchorOffset:n.getStartOffset(),focusKey:a,focusOffset:s.getLength(),isBackward:!1})}if(u.getBlockMap().skipWhile((function(t,e){return e!==o})).reverse().skipWhile((function(t,e){return e!==a})).some((function(t){return"atomic"===t.getType()})))return t;var f=u.getBlockForKey(o).getType()===e?"unstyled":e;return i.push(t,r.setBlockType(u,l,f),"change-block-type")},toggleCode:function(t){var e=t.getSelection(),n=e.getAnchorKey(),r=e.getFocusKey();return e.isCollapsed()||n!==r?a.toggleBlockType(t,"code-block"):a.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,e){var n=t.getSelection(),o=t.getCurrentInlineStyle();if(n.isCollapsed())return i.setInlineStyleOverride(t,o.has(e)?o.remove(e):o.add(e));var c,a=t.getCurrentContent();return c=o.has(e)?r.removeInlineStyle(a,n,e):r.applyInlineStyle(a,n,e),i.push(t,c,"change-inline-style")},toggleLink:function(t,e,n){var o=r.applyEntity(t.getCurrentContent(),e,n);return i.push(t,o,"apply-entity")},tryToRemoveBlockStyle:function(t){var e=t.getSelection(),n=e.getAnchorOffset();if(e.isCollapsed()&&0===n){var i=e.getAnchorKey(),o=t.getCurrentContent(),c=o.getBlockForKey(i).getType(),a=o.getBlockBefore(i);if("code-block"===c&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==c)return r.setBlockType(o,e,"unstyled")}return null}};t.exports=a},32633:function(t,e,n){var r=n(64702),i=n(57077),o=n(29845),c=n(83946),a=null,u={cut:function(t){var e=t.getCurrentContent(),n=t.getSelection(),u=null;if(n.isCollapsed()){var l=n.getAnchorKey(),s=e.getBlockForKey(l).getLength();if(s===n.getAnchorOffset()){var f=e.getKeyAfter(l);if(null==f)return t;u=n.set("focusKey",f).set("focusOffset",0)}else u=n.set("focusOffset",s)}else u=n;u=c(u),a=o(e,u);var g=r.removeRange(e,u,"forward");return g===e?t:i.push(t,g,"remove-range")},paste:function(t){if(!a)return t;var e=r.replaceWithFragment(t.getCurrentContent(),t.getSelection(),a);return i.push(t,e,"insert-fragment")}};t.exports=u},24680:function(t,e,n){var r=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__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(t,e,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===t){var o=this.getStartOffset(),c=this.getEndOffset();return e<=o&&o<=n||e<=c&&c<=n}if(t!==r&&t!==i)return!1;var a=t===r?this.getAnchorOffset():this.getFocusOffset();return e<=a&&n>=a},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(t){return new r({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,n(90046).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));t.exports=r},798:function(t){t.exports=function(t,e,n,r){var i=e.getStartKey(),o=e.getEndKey(),c=t.getBlockMap(),a=c.toSeq().skipUntil((function(t,e){return e===i})).takeUntil((function(t,e){return e===o})).concat([[o,c.get(o)]]).map((function(t){var e=t.getDepth()+n;return e=Math.max(0,Math.min(e,r)),t.set("depth",e)}));return c=c.merge(a),t.merge({blockMap:c,selectionBefore:e,selectionAfter:e})}},1655:function(t,e,n){var r=n(50490);t.exports=function(t,e,n,i){for(var o=e,c=t.getCharacterList();o<n;)c=c.set(o,r.applyEntity(c.get(o),i)),o++;return t.set("characterList",c)}},99717:function(t,e,n){var r=n(1655),i=n(90046);t.exports=function(t,e,n){var o=t.getBlockMap(),c=e.getStartKey(),a=e.getStartOffset(),u=e.getEndKey(),l=e.getEndOffset(),s=o.skipUntil((function(t,e){return e===c})).takeUntil((function(t,e){return e===u})).toOrderedMap().merge(i.OrderedMap([[u,o.get(u)]])).map((function(t,e){var i=e===c?a:0,o=e===u?l:t.getLength();return r(t,i,o,n)}));return t.merge({blockMap:o.merge(s),selectionBefore:e,selectionAfter:e})}},21694:function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(32104),o=n(76207),c=n(19532),a=n(17037),u=n(82e3),l=n(87081),s=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:u(t),entityRanges:a(t,e),data:t.getData().toObject()}},f=function(t,e,n,c){if(t instanceof i)n.push(s(t,e));else{t instanceof o||l(!1);var a=t.getParentKey(),u=c[t.getKey()]=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}
1)))),i.forEach((function(e){r(t,e,n[e])}))}return t}({},s(t,e),{children:[]});a?c[a].children.push(u):n.push(u)}};t.exports=function(t){var e={entityMap:{},blocks:[]};return e=function(t,e){var n=e.entityMap,r=[],i={},o={},a=0;return t.getBlockMap().forEach((function(t){t.findEntityRanges((function(t){return null!==t.getEntity()}),(function(e){var r=t.getEntityAt(e),i=c.stringify(r);o[i]||(o[i]=r,n[i]="".concat(a),a++)})),f(t,n,r,i)})),{blocks:r,entityMap:n}}(t,e),e=function(t,e){var n=e.blocks,r=e.entityMap,i={};return Object.keys(r).forEach((function(e,n){var r=t.getEntity(c.unstringify(e));i[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:i}}(t,e)}},29405:function(t,e,n){var r;function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=n(50490),a=n(32104),u=n(76207),l=n(67722),s=n(34688),f=n(66831),g=n(35935),h=n(60462),p=n(71539),d=n(6130),y=n(90046),v=y.List,k=y.Map,m=y.OrderedSet,S=n(80285),C=n(16959),b=n(85435),O=n(90132),B=d("draft_tree_data_support"),M=new RegExp("\r","g"),T=new RegExp("\n","g"),w=new RegExp("^\n","g"),K=new RegExp("&nbsp;","g"),E=new RegExp("&#13;?","g"),x=new RegExp("&#8203;?","g"),I=["bold","bolder","500","600","700","800","900"],A=["light","lighter","normal","100","200","300","400"],_=["className","href","rel","target","title"],L=["alt","className","height","src","width"],D=(o(r={},g("public/DraftStyleDefault/depth0"),0),o(r,g("public/DraftStyleDefault/depth1"),1),o(r,g("public/DraftStyleDefault/depth2"),2),o(r,g("public/DraftStyleDefault/depth3"),3),o(r,g("public/DraftStyleDefault/depth4"),4),r),R=k({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),F=function(t){var e={};return t.mapKeys((function(t,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===e[n]?e[n]=t:"string"===typeof e[n]?e[n]=[e[n],t]:e[n].push(t)}))})),k(e)},N=function(t){if(b(t)&&t.style.fontFamily.includes("monospace"))return"CODE";return null},j=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(D).some((function(n){t.classList.contains(n)&&(e=D[n])})),e},U=function(t){if(!S(t))return!1;var e=t;if(!e.href||"http:"!==e.protocol&&"https:"!==e.protocol&&"mailto:"!==e.protocol&&"tel:"!==e.protocol)return!1;try{new f(e.href);return!0}catch(n){return!1}},P=function(t){if(!O(t))return!1;var e=t;return!(!e.attributes.getNamedItem("src")||!e.attributes.getNamedItem("src").value)},H=function(t,e){if(!b(t))return e;var n=t,r=n.style.fontWeight,i=n.style.fontStyle,o=n.style.textDecoration;return e.withMutations((function(t){I.indexOf(r)>=0?t.add("BOLD"):A.indexOf(r)>=0&&t.remove("BOLD"),"italic"===i?t.add("ITALIC"):"normal"===i&&t.remove("ITALIC"),"underline"===o&&t.add("UNDERLINE"),"line-through"===o&&t.add("STRIKETHROUGH"),"none"===o&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))}))},W=function(t){return"ul"===t||"ol"===t},G=function(){function t(t,e){o(this,"characterList",v()),o(this,"currentBlockType","unstyled"),o(this,"currentDepth",0),o(this,"currentEntity",null),o(this,"currentText",""),o(this,"wrapper",null),o(this,"blockConfigs",[]),o(this,"contentBlocks",[]),o(this,"entityMap",s),o(this,"blockTypeMap",void 0),o(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=t,this.disambiguate=e}var e=t.prototype;return e.clear=function(){this.characterList=v(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=s,this.wrapper=null,this.contentBlocks=[]},e.addDOMNode=function(t){var e;return this.contentBlocks=[],this.currentDepth=0,(e=this.blockConfigs).push.apply(e,this._toBlockConfigs([t],m())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},e.getContentBlocks=function(){return 0===this.contentBlocks.length&&(B?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},e._makeBlockConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key||h(),n=i({key:e,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:v(),prevSibling:null,nextSibling:null,childConfigs:[]},t);return this.characterList=v(),this.currentBlockType="unstyled",this.currentText="",n},e._toBlockConfigs=function(t,e){for(var n=[],r=0;r<t.length;r++){var i=t[r],o=i.nodeName.toLowerCase();if("body"===o||W(o)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var c=this.currentDepth,a=this.wrapper;W(o)&&(this.wrapper=o,W(a)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),e)),this.currentDepth=c,this.wrapper=a}else{var u=this.blockTypeMap.get(o);if(void 0===u)if("#text"!==o)if("br"!==o)if(P(i))this._addImgNode(i,e);else if(U(i))this._addAnchorNode(i,n,e);else{var l=e;R.has(o)&&(l=l.add(R.get(o))),l=H(i,l);var s=N(i);null!=s&&(l=l.add(s)),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),l))}else this._addBreakNode(i,e);else this._addTextNode(i,e);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,g=this.wrapper;if(this.wrapper="pre"===o?"pre":this.wrapper,"string"!==typeof u&&(u=this.disambiguate(o,this.wrapper)||u[0]||"unstyled"),!B&&b(i)&&("unordered-list-item"===u||"ordered-list-item"===u)){var p=i;this.currentDepth=j(p,this.currentDepth)}var d=h(),y=this._toBlockConfigs(Array.from(i.childNodes),e);this._trimCurrentText(),n.push(this._makeBlockConfig({key:d,childConfigs:y,type:u})),this.currentDepth=f,this.wrapper=g}}}return n},e._appendText=function(t,e){var n;this.currentText+=t;var r=c.create({style:e,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(t.length).fill(r))},e._trimCurrentText=function(){var t=this.currentText.length,e=t-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(t){return null!==t.getEntity()}));(e=void 0!==r?Math.min(e,r[0]):e)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(t){return null!==t.getEntity()})))?Math.max(n,t-r[0]):n)?(this.currentText="",this.characterList=v()):(this.currentText=this.currentText.slice(e,n),this.characterList=this.characterList.slice(e,n))},e._addTextNode=function(t,e){var n=t.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(w,"")).replace(T," ")),this._appendText(n,e)},e._addBreakNode=function(t,e){C(t)&&this._appendText("\n",e)},e._addImgNode=function(t,e){if(O(t)){var n=t,r={};
1L.forEach((function(t){var e=n.getAttribute(t);e&&(r[t]=e)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),d("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("\ud83d\udcf7",e):this._appendText("\ud83d\udcf7",e),this.currentEntity=null}},e._addAnchorNode=function(t,e,n){if(S(t)){var r=t,i={};_.forEach((function(t){var e=r.getAttribute(t);e&&(i[t]=e)})),i.url=new f(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",i||{}),e.push.apply(e,this._toBlockConfigs(Array.from(t.childNodes),n)),this.currentEntity=null}},e._toContentBlocks=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.length-1,r=0;r<=n;r++){var o=t[r];o.parent=e,o.prevSibling=r>0?t[r-1].key:null,o.nextSibling=r<n?t[r+1].key:null,o.children=v(o.childConfigs.map((function(t){return t.key}))),this.contentBlocks.push(new u(i({},o))),this._toContentBlocks(o.childConfigs,o.key)}},e._hoistContainersInBlockConfigs=function(t){var e=this;return v(t).flatMap((function(t){return"unstyled"!==t.type||""!==t.text?[t]:e._hoistContainersInBlockConfigs(t.childConfigs)}))},e._toFlatContentBlocks=function(t){var e=this;this._hoistContainersInBlockConfigs(t).forEach((function(t){var n=e._extractTextFromBlockConfigs(t.childConfigs),r=n.text,o=n.characterList;e.contentBlocks.push(new a(i({},t,{text:t.text+r,characterList:t.characterList.concat(o)})))}))},e._extractTextFromBlockConfigs=function(t){for(var e=t.length-1,n="",r=v(),i=0;i<=e;i++){var o=t[i];n+=o.text,r=r.concat(o.characterList),""!==n&&"unstyled"!==o.type&&(n+="\n",r=r.push(r.last()));var c=this._extractTextFromBlockConfigs(o.childConfigs);n+=c.text,r=r.concat(c.characterList)}return{text:n,characterList:r}},t}();t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,r=e(t=t.trim().replace(M,"").replace(K," ").replace(E,"").replace(x,""));if(!r)return null;var i=F(n),o=function(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null};return new G(i,o).addDOMNode(r).getContentBlocks()}},73702:function(t,e,n){function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(32104),c=n(76207),a=n(45481),u=n(34688),l=n(92780),s=(n(99067),n(24680)),f=n(77157),g=n(89398),h=n(91239),p=n(60462),d=n(6130),y=n(90046),v=n(87081),k=d("draft_tree_data_support"),m=y.List,S=y.Map,C=y.OrderedMap,b=function(t,e){var n=t.key,r=t.type,i=t.data;return{text:t.text,depth:t.depth||0,type:r||"unstyled",key:n||p(),data:S(i),characterList:O(t,e)}},O=function(t,e){var n=t.text,i=t.entityRanges,o=t.inlineStyleRanges,c=i||[];return f(h(n,o||[]),g(n,c.filter((function(t){return e.hasOwnProperty(t.key)})).map((function(t){return r({},t,{key:e[t.key]})}))))},B=function(t){return r({},t,{key:t.key||p()})},M=function(t,e,n){var i=e.map((function(t){return r({},t,{parentRef:n})}));return t.concat(i.reverse())},T=function(t,e){var n=t.blocks.find((function(t){return Array.isArray(t.children)&&t.children.length>0})),i=k&&!n?l.fromRawStateToRawTreeState(t).blocks:t.blocks;return k?function(t,e){return t.map(B).reduce((function(n,i,o){Array.isArray(i.children)||v(!1);var a=i.children.map(B),u=new c(r({},b(i,e),{prevSibling:0===o?null:t[o-1].key,nextSibling:o===t.length-1?null:t[o+1].key,children:m(a.map((function(t){return t.key})))}));n=n.set(u.getKey(),u);for(var l=M([],a,u);l.length>0;){var s=l.pop(),f=s.parentRef,g=f.getChildKeys(),h=g.indexOf(s.key),p=Array.isArray(s.children);if(!p){p||v(!1);break}var d=s.children.map(B),y=new c(r({},b(s,e),{parent:f.getKey(),children:m(d.map((function(t){return t.key}))),prevSibling:0===h?null:g.get(h-1),nextSibling:h===g.size-1?null:g.get(h+1)}));n=n.set(y.getKey(),y),l=M(l,d,y)}return n}),C())}(i,e):function(t,e){return C(t.map((function(t){var n=new o(b(t,e));return[n.getKey(),n]})))}(n?l.fromRawTreeStateToRawState(t).blocks:i,e)};t.exports=function(t){Array.isArray(t.blocks)||v(!1);var e=function(t){var e=t.entityMap,n={};return Object.keys(e).forEach((function(t){var r=e[t],i=r.type,o=r.mutability,c=r.data;n[t]=u.__create(i,o,c||{})})),n}(t),n=T(t,e),r=n.isEmpty()?new s:s.createEmpty(n.first().getKey());return new a({blockMap:n,entityMap:e,selectionBefore:r,selectionAfter:r})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.