;/*FB_PKG_DELIM*/

__d("CometFeedSeeMoreAnchorEntityRenderer",["react","react-strict-dom"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");a=function(){return i.jsx(d("react-strict-dom").html.a,{"data-testid":void 0,tabIndex:-1})};g["default"]=a}),98);
__d("CometFocusedStoryDialogLauncherContext",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h||d("react");b={current:new Set()};c=a.createContext({onDialogCloseHandlers:b,onDialogOpenHandlers:b});g["default"]=c}),98);
__d("CometGenericCommentDisableNotice_commentDisableNotice.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometGenericCommentDisableNotice_commentDisableNotice",selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"notice_message",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"CometTextWithEntitiesRelay_textWithEntities"}],storageKey:null}],type:"GeneralCommentDisableNotice",abstractKey:null};e.exports=a}),null);
__d("CometGenericCommentDisableNotice.react",["CometGenericCommentDisableNotice_commentDisableNotice.graphql","CometRelay","CometTextWithEntitiesRelay.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var e=d("react-compiler-runtime").c(4),f=a.commentDisableNotice,g=a.renderers;a=a.transforms;f=d("CometRelay").useFragment(h!==void 0?h:h=b("CometGenericCommentDisableNotice_commentDisableNotice.graphql"),f);f=f.notice_message;if(f==null)return null;var i;e[0]!==f||e[1]!==g||e[2]!==a?(i=j.jsx(c("CometTextWithEntitiesRelay.react"),{renderers:g,textWithEntities:f,transforms:a}),e[0]=f,e[1]=g,e[2]=a,e[3]=i):i=e[3];return i}g["default"]=a}),98);
__d("CometGenericCommentDisableNotice_commentDisableNotice$normalization.graphql",["CometTextWithEntitiesRelay_textWithEntities$normalization.graphql"],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"CometGenericCommentDisableNotice_commentDisableNotice$normalization",selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"notice_message",plural:!1,selections:[{args:null,fragment:b("CometTextWithEntitiesRelay_textWithEntities$normalization.graphql"),kind:"FragmentSpread"}],storageKey:null}]};e.exports=a}),null);
__d("CometHighlightTransform",["baseTextTransformAllStrings","escapeRegex","react","react-strict-dom"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={color:{color:"x1fey0fg",$$css:!0},highlight:{backgroundColor:"xv78j7m",$$css:!0},searchedTermHighlight:{backgroundColor:"xtvsq51",borderTopStartRadius:"x8u2fvd",borderTopEndRadius:"x1ht7hnu",borderBottomEndRadius:"x1quq95r",borderBottomStartRadius:"x5yzy4c",color:"xmorvov",fontWeight:"x1s688f",paddingStart:"x1t2a60a",paddingEnd:"x1mpkggp",paddingLeft:null,paddingRight:null,paddingTop:"x4p5aij",paddingBottom:"x1j85h84",$$css:!0}};function a(a){a=a===void 0?{}:a;var b=a.matchSubstrings,d=b===void 0?!1:b;b=a.matches;b=b===void 0?[]:b;var e=a.colorText,f=e===void 0?!1:e;e=a.highlightCommentSearchedTerms;var g=e===void 0?!1:e,h=0,i=b.map(function(a){return a.trim()}).filter(Boolean);return function(a){return c("baseTextTransformAllStrings")(a,function(a,b){return k(i,d,a,b+":"+String(h++),f,g)})}}function k(a,b,e,f,g,h){g===void 0&&(g=!1);h===void 0&&(h=!1);var k=[];l(e);return i.jsx(d("react-strict-dom").html.span,{children:k},"highlight_container_"+f);function l(e,m){m===void 0&&(m=0);if(e.length===0)return;var n=null,o=null;a.forEach(function(a){var d;if(b)d=e.search(new RegExp(c("escapeRegex")(a),"i"));else{var f="(\\s|$|^|["+c("escapeRegex")(",<>.?/;:'\"{}[]-_+=`~!@#$%^&*()")+"])";f=new RegExp(f+c("escapeRegex")(a)+f,"i");d=e.search(f);if(d>-1){f=e.match(f);f!=null&&(d+=f[0].search(new RegExp(c("escapeRegex")(a),"i")))}}d>-1&&(n==null||d<n||o!=null&&d===n&&a.length>o.length)&&(n=d,o=e.slice(d,d+a.length))});if(n!==null&&o!==null){var p=h?j.searchedTermHighlight:g?j.color:j.highlight;p=i.jsx(d("react-strict-dom").html.span,{style:p,children:o},"h_"+f+"_"+m);var q=i.jsx(d("react-strict-dom").html.span,{children:e.slice(0,n)},"bh_"+f+"_"+m);n>0&&k.push(q);k.push(p);q=e.slice(n+o.length);l(q,m+1)}else{p=i.jsx(d("react-strict-dom").html.span,{children:e},"rt_"+f+"_"+m);k=[].concat(k,[p])}}}k.displayName=k.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("CometKGTickerNodeEntityRenderer_entity.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:{mask:!1},name:"CometKGTickerNodeEntityRenderer_entity",selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ticker_symbol",storageKey:null}],type:"KGTickerNode",abstractKey:null};e.exports=a}),null);
__d("CometKGTickerNodeEntityRenderer",["fbt","CometKGTickerNodeEntityRenderer_entity.graphql","CometLink.react","react","react-strict-dom"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l={bold:{fontWeight:"x1s688f",$$css:!0}};i!==void 0?i:i=b("CometKGTickerNodeEntityRenderer_entity.graphql");a=function(a,b){a=b.name;b=b.ticker_symbol;return b==null?null:k.jsx(c("CometLink.react"),{href:null,label:h._(/*BTDS*/"__JHASH__fypl6F7aE5n__JHASH__",[h._param("company name",a)]),target:"_blank",children:k.jsxs(d("react-strict-dom").html.strong,{style:l.bold,children:["$",b]})})};e=a;g["default"]=e}),226);
__d("LexicalContentEditable",["cr:2483"],(function(a,b,c,d,e,f){e.exports=b("cr:2483")}),null);
__d("mlcEditableSubscription",[],(function(a,b,c,d,e,f){"use strict";function a(a){return{initialValueFn:function(){return a.isEditable()},subscribe:function(b){return a.registerEditableListener(b)}}}f["default"]=a}),66);
__d("useCometLexicalSubscription",["react","useUnsafeRef_DEPRECATED"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=i||d("react");var j=b.useLayoutEffect,k=b.useState;function a(a){var b=(h||(h=c("useUnsafeRef_DEPRECATED")))(a.initialValueFn()),d=k(b.current),e=d[0],f=d[1];j(function(){var c=a.initialValueFn,d=a.subscribe;c=c();b.current!==c&&(b.current=c,f(c));return d(function(a){b.current=a,f(a)})},[a]);return e}g["default"]=a}),98);
__d("CometLexicalContentEditable.react",["CometLexicalContentEditableCommands","Lexical","LexicalComposerContext","LexicalContentEditable","mlcEditableSubscription","react","react-compiler-runtime","stylex","useCometLexicalSubscription"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useLayoutEffect;b.useMemo;var m=b.useState,n={editor:{color:"xzsf02u",outline:"x1a2a7pz",position:"x1n2onr6",textAlign:"x14wi4xw",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(52),e,f,g,i,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C;b[0]!==a?(e=a.ariaAutoComplete,f=a.ariaDescribedBy,g=a.ariaExpanded,i=a.ariaLabel,o=a.ariaLabelledBy,p=a.ariaMultiline,q=a.ariaOwneeID,r=a.ariaRequired,s=a.autoCapitalize,t=a.autoComplete,u=a.autoCorrect,v=a.contentEditableRef,x=a.isInitiallyFocused,y=a.role,z=a.spellCheck,A=a.tabIndex,B=a.webDriverTestID,C=a.xstyle,w=babelHelpers.objectWithoutPropertiesLoose(a,["ariaAutoComplete","ariaDescribedBy","ariaExpanded","ariaLabel","ariaLabelledBy","ariaMultiline","ariaOwneeID","ariaRequired","autoCapitalize","autoComplete","autoCorrect","contentEditableRef","isInitiallyFocused","role","spellCheck","tabIndex","webDriverTestID","xstyle"]),b[0]=a,b[1]=e,b[2]=f,b[3]=g,b[4]=i,b[5]=o,b[6]=p,b[7]=q,b[8]=r,b[9]=s,b[10]=t,b[11]=u,b[12]=v,b[13]=w,b[14]=x,b[15]=y,b[16]=z,b[17]=A,b[18]=B,b[19]=C):(e=b[1],f=b[2],g=b[3],i=b[4],o=b[5],p=b[6],q=b[7],r=b[8],s=b[9],t=b[10],u=b[11],v=b[12],w=b[13],x=b[14],y=b[15],z=b[16],A=b[17],B=b[18],C=b[19]);var D=x===void 0?!1:x;a=y===void 0?"textbox":y;x=z===void 0?!1:z;y=d("LexicalComposerContext").useLexicalComposerContext();var E=y[0];z=m(void 0);y=z[0];var F=z[1];z=m(void 0);var G=z[0],H=z[1];b[20]!==E?(z=c("mlcEditableSubscription")(E),b[20]=E,b[21]=z):z=b[21];z=z;z=c("useCometLexicalSubscription")(z);var I,J;b[22]!==E?(I=function(){return E.registerCommand(d("CometLexicalContentEditableCommands").COMET_LEXICAL_ARIA_COMMAND,function(a){Object.prototype.hasOwnProperty.call(a,"activeDescendantID")&&F(a.activeDescendantID);Object.prototype.hasOwnProperty.call(a,"controlsID")&&H(a.controlsID);return!1},d("Lexical").COMMAND_PRIORITY_EDITOR)},J=[E],b[22]=E,b[23]=I,b[24]=J):(I=b[23],J=b[24]);l(I,J);b[25]!==E||b[26]!==D?(I=function(){D&&E.focus(function(){var a=document.activeElement,b=E.getRootElement();(!(b==null?void 0:b.contains(a))||b!=null||a==null)&&(b==null?void 0:b.focus({preventScroll:!0}))})},J=[E,D],b[25]=E,b[26]=D,b[27]=I,b[28]=J):(I=b[27],J=b[28]);k(I,J);J=(I=y)!=null?I:void 0;I=(y=G)!=null?y:void 0;if(b[29]!==i){G=(y=(G=i)==null?void 0:G.toString())!=null?y:void 0;b[29]=i;b[30]=G}else G=b[30];i=(y=r)!=null?y:void 0;r=(h||(h=c("stylex")))(n.editor,C)+" "+(z?"notranslate":"");b[31]!==e||b[32]!==f||b[33]!==g||b[34]!==o||b[35]!==p||b[36]!==q||b[37]!==s||b[38]!==t||b[39]!==u||b[40]!==v||b[41]!==w||b[42]!==a||b[43]!==x||b[44]!==J||b[45]!==I||b[46]!==G||b[47]!==i||b[48]!==r||b[49]!==A||b[50]!==B?(y=j.jsx(d("LexicalContentEditable").ContentEditable,babelHelpers["extends"]({ariaActiveDescendant:J,ariaAutoComplete:e,ariaControls:I,ariaDescribedBy:f,ariaExpanded:g,ariaLabel:G,ariaLabelledBy:o,ariaMultiline:p,ariaOwns:q,ariaRequired:i,autoCapitalize:s,autoComplete:t,autoCorrect:u,className:r,"data-testid":void 0,ref:v,role:a,spellCheck:x,suppressContentEditableWarning:!0,tabIndex:A},w)),b[31]=e,b[32]=f,b[33]=g,b[34]=o,b[35]=p,b[36]=q,b[37]=s,b[38]=t,b[39]=u,b[40]=v,b[41]=w,b[42]=a,b[43]=x,b[44]=J,b[45]=I,b[46]=G,b[47]=i,b[48]=r,b[49]=A,b[50]=B,b[51]=y):y=b[51];return y}g["default"]=a}),98);
__d("CometLexicalDelightNode",["CometLexicalEntityTextNode"],(function(a,b,c,d,e,f,g){"use strict";var h=function(b){babelHelpers.inheritsLoose(a,b);a.getType=function(){return"delight"};a.clone=function(b){return new a(b.__text,b.__styles,b.__campaignID,b.__delightAsset,b.__key)};a.importJSON=function(a){return i(a.text,a.styles,a.campaignID,a.delightAsset)};var c=a.prototype;c.exportJSON=function(){return babelHelpers["extends"]({},b.prototype.exportJSON.call(this),{campaignID:this.__campaignID,delightAsset:this.__delightAsset,styles:this.__styles,type:"delight",version:1})};function a(a,c,d,e,f){a=b.call(this,a,f)||this;a.__entityType="TextDelightCampaign";a.__styles=c;a.__campaignID=d;a.__delightAsset=e;return a}c.createDOM=function(a){a=b.prototype.createDOM.call(this,a);var c=this.__delightAsset.id,d=this.__styles,e=d.color;d=d["font-weight"];c!=null&&a.setAttribute("data-delight-asset",c);a.setAttribute("data-delight","true");e!=null&&d!=null&&(a.style.color=e,a.style.fontWeight=d);return a};c.getEntity=function(){return{__UFI__:!0,id:this.__campaignID,isWeak:!1,type:this.__entityType}};c.canInsertTextBefore=function(){return!1};c.canInsertTextAfter=function(){return!1};return a}(d("CometLexicalEntityTextNode").CometLexicalEntityTextNode);function i(a,b,c,d){return new h(a,b,c,d)}function a(a){return a instanceof h}g.CometLexicalDelightNode=h;g.$createLexicalDelightNode=i;g.$isLexicalDelightNode=a}),98);
__d("CometStickerPickerCardQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="10062074560472533"}),null);
__d("CometStickerPickerCardQuery$Parameters",["CometStickerPickerCardQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometStickerPickerCardQuery_facebookRelayOperation"),metadata:{},name:"CometStickerPickerCardQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("CometStickerPickerStickerSearchCard.entrypoint",["CometStickerPickerFlyoutTagSelectorRoot.entrypoint","JSResourceForInteraction","NestedRelayEntryPointBuilderUtils"],(function(a,b,c,d,e,f,g){"use strict";a=c("JSResourceForInteraction")("CometStickerPickerStickerSearchCard.react").__setRef("CometStickerPickerStickerSearchCard.entrypoint");b={getPreloadProps:function(a){var b=a.flyoutTagsCount,e=a.flyoutTagsCursor;a=a.stickerInterface;b={count:b,cursor:e};return{entryPoints:{flyoutTagSelectorEntrypointReference:d("NestedRelayEntryPointBuilderUtils").NestedRelayEntryPoint({entryPoint:c("CometStickerPickerFlyoutTagSelectorRoot.entrypoint"),entryPointParams:b})},extraProps:{stickerInterface:a}}},root:a};g["default"]=b}),98);
__d("CometStickerPickerCard.entrypoint",["CometStickerPickerCardQuery$Parameters","CometStickerPickerStickerSearchCard.entrypoint","JSResourceForInteraction","NestedRelayEntryPointBuilderUtils","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";a=c("JSResourceForInteraction")("CometStickerPickerCard.react").__setRef("CometStickerPickerCard.entrypoint");b={getPreloadProps:function(a){var b=a.feedbackID,e=a.stickerInterface;a=babelHelpers.objectWithoutPropertiesLoose(a,["feedbackID","stickerInterface"]);a=babelHelpers["extends"]({},a,{stickerInterface:e});a;return{entryPoints:{stickerSearchEntrypointReference:d("NestedRelayEntryPointBuilderUtils").NestedRelayEntryPoint({entryPoint:c("CometStickerPickerStickerSearchCard.entrypoint"),entryPointParams:a})},extraProps:{feedbackTargetID:b,stickerInterface:e},queries:{stickerPickerQueryReference:{parameters:c("CometStickerPickerCardQuery$Parameters"),variables:{feedbackID:b,scale:d("WebPixelRatio").get(),stickerInterface:e}}}}},root:a};g["default"]=b}),98);
__d("CometStickerPickerPopoverRoot.entrypoint",["CometStickerPickerCard.entrypoint","JSResourceForInteraction","NestedRelayEntryPointBuilderUtils"],(function(a,b,c,d,e,f,g){"use strict";a=c("JSResourceForInteraction")("CometStickerPickerPopoverRoot.react").__setRef("CometStickerPickerPopoverRoot.entrypoint");b={getPreloadProps:function(a){a=babelHelpers["extends"]({},a);a;return{entryPoints:{stickerPickerCardEntrypointReference:d("NestedRelayEntryPointBuilderUtils").NestedRelayEntryPoint({entryPoint:c("CometStickerPickerCard.entrypoint"),entryPointParams:a})}}},root:a};g["default"]=b}),98);
__d("CometStickerPickerCardPopoverRootWithPresetProps",["CometStickerPickerPopoverRoot.entrypoint","JSResourceForInteraction","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=c("JSResourceForInteraction")("logStickersFlyoutHasOpened").__setRef("CometStickerPickerCardPopoverRootWithPresetProps");a={props:{onVisibilityChange:function(a){a===!0&&c("promiseDone")(h.load().then(function(a){a()}))}},resource:c("CometStickerPickerPopoverRoot.entrypoint")};g["default"]=a}),98);
__d("CometTextDelightAnimationQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7198545340159758"}),null);
__d("CometTextDelightAnimationQuery$Parameters",["CometTextDelightAnimationQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometTextDelightAnimationQuery_facebookRelayOperation"),metadata:{},name:"CometTextDelightAnimationQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("CometTextDelightAnimation.entrypoint",["CometTextDelightAnimationQuery$Parameters","JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.id;return{queries:{CometTextDelightAnimationQueryRef:{parameters:c("CometTextDelightAnimationQuery$Parameters"),variables:{id:a}}}}},root:c("JSResourceForInteraction")("CometTextDelightAnimation.react").__setRef("CometTextDelightAnimation.entrypoint")};g["default"]=a}),98);
__d("CometTextDelightCampaignEntityRenderer_entity.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},b=[{kind:"Literal",name:"delight_surface",value:"COMMENT"}];return{argumentDefinitions:[],kind:"Fragment",metadata:{mask:!1},name:"CometTextDelightCampaignEntityRenderer_entity",selections:[{alias:null,args:null,concreteType:"TextDelightCampaign",kind:"LinkedField",name:"campaign",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:b,concreteType:"TextDelightStylePair",kind:"LinkedField",name:"delight_styles",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"style",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:'delight_styles(delight_surface:"COMMENT")'},{alias:null,args:b,concreteType:"DelightsAnimation",kind:"LinkedField",name:"delight_asset",plural:!1,selections:[a],storageKey:'delight_asset(delight_surface:"COMMENT")'}],storageKey:null}],type:"DelightAtRange",abstractKey:null}}();e.exports=a}),null);
__d("CometTextDelightCampaignEntityRenderer",["CometPlaceholder.react","CometPressableOverlay.react","CometRelay","CometTextDelightAnimation.entrypoint","CometTextDelightCampaignEntityRenderer_entity.graphql","PressableText.react","react","react-compiler-runtime","requireDeferred","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));a=i;a.useMemo;var k=a.useState,l=c("requireDeferred")("DelightsTextTriggerPostTappedFalcoEvent").__setRef("CometTextDelightCampaignEntityRenderer");function m(a){var b={color:"",fontWeight:""};a.forEach(function(a){var c=a.style;a=a.value;switch(c){case"color":b.color=(c=a)!=null?c:"";break;case"font-weight":b.fontWeight=(c=a)!=null?c:"";break}});return b}h!==void 0?h:h=b("CometTextDelightCampaignEntityRenderer_entity.graphql");function n(a){var b=d("react-compiler-runtime").c(37),e=a.entity;a=a.node;c("vulture")("QBqG5BGvk6ZBrHGdn71kE-ngCBQ=");var f=d("CometRelay").useRelayEnvironment(),g;b[0]!==f?(g={getEnvironment:function(){return f}},b[0]=f,b[1]=g):g=b[1];g=g;g=g;g=d("CometRelay").useEntryPointLoader(g,c("CometTextDelightAnimation.entrypoint"));var h=g[0],i=g[1];g=k(!1);var n=g[0],o=g[1];g=k(!1);var p=g[0],q=g[1];g=e.campaign;if(g==null||(g==null?void 0:g.id)==null)return a;var r=g.delight_asset;e=g.delight_styles;var s=g.id;if(e==null)return a;b[2]!==e?(g=m(e),b[2]=e,b[3]=g):g=b[3];e=g;b[4]===Symbol["for"]("react.memo_cache_sentinel")?(g=function(){return o(!1)},b[4]=g):g=b[4];g=g;var t;b[5]!==r||b[6]!==n||b[7]!==i?(t=function(){if(n||(r==null?void 0:r.id)==null)return;i({id:r.id});o(!0)},b[5]=r,b[6]=n,b[7]=i,b[8]=t):t=b[8];var u=t;b[9]===Symbol["for"]("react.memo_cache_sentinel")?(t={accessibilityRole:"button",link:null,preventDefault:!0},b[9]=t):t=b[9];t=t;var v;b[10]===Symbol["for"]("react.memo_cache_sentinel")?(v={className:"x1n2onr6"},b[10]=v):v=b[10];var w;b[11]!==s||b[12]!==r||b[13]!==u?(w=function(){l.onReady(function(a){return a.log(function(){return{campaign_id:s}})}),r!=null&&u()},b[11]=s,b[12]=r,b[13]=u,b[14]=w):w=b[14];var x,y;b[15]===Symbol["for"]("react.memo_cache_sentinel")?(y=function(){return q(!0)},x=function(){return q(!1)},b[15]=x,b[16]=y):(x=b[15],y=b[16]);b[17]!==a||b[18]!==e?(y=j.jsx("span",{onMouseEnter:y,onMouseLeave:x,style:e,children:a}),b[17]=a,b[18]=e,b[19]=y):y=b[19];b[20]!==y||b[21]!==w?(x=j.jsx(c("PressableText.react"),babelHelpers["extends"]({},t,{onPress:w,children:y})),b[20]=y,b[21]=w,b[22]=x):x=b[22];b[23]===Symbol["for"]("react.memo_cache_sentinel")?(a={bottom:2,left:4,right:4,top:2},b[23]=a):a=b[23];b[24]!==p?(e=j.jsx(c("CometPressableOverlay.react"),{hovered:p,offset:a,radius:4}),b[24]=p,b[25]=e):e=b[25];b[26]!==x||b[27]!==e?(t=j.jsxs("span",babelHelpers["extends"]({},v,{children:[x,e]})),b[26]=x,b[27]=e,b[28]=t):t=b[28];b[29]!==h||b[30]!==n?(y=n&&h!=null&&j.jsx(d("CometRelay").EntryPointContainer,{entryPointReference:h,props:{onRepeatEnd:g}}),b[29]=h,b[30]=n,b[31]=y):y=b[31];b[32]!==y?(w=j.jsx(c("CometPlaceholder.react"),{fallback:null,children:y}),b[32]=y,b[33]=w):w=b[33];b[34]!==t||b[35]!==w?(a=j.jsxs(j.Fragment,{children:[t,w]}),b[34]=t,b[35]=w,b[36]=a):a=b[36];return a}e=function(a,b){return j.jsx(n,{entity:b,node:a})};f=e;g["default"]=f}),98);
__d("CometUFICommentBodyTextWithEntities_textWithEntities.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometUFICommentBodyTextWithEntities_textWithEntities",selections:[{args:null,kind:"FragmentSpread",name:"CometTextWithEntitiesRelay_textWithEntities"}],type:"TextWithEntities",abstractKey:null};e.exports=a}),null);
__d("useCometUFICommentBodyTransforms",["CometEmojiTransform","CometEmoticonTransform","CometHighlightTransform","CometLineBreakTransform","CometSearchMatchedTermsContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useContext,j=b.useMemo,k=[c("CometEmoticonTransform")(),c("CometEmojiTransform")(),c("CometLineBreakTransform")];function a(a){var b=i(c("CometSearchMatchedTermsContext"));return j(function(){var d=b==null?void 0:b.focusedCommentId;d!=null?d=b!=null&&b.matches.length>0&&d===a?c("CometHighlightTransform")({highlightCommentSearchedTerms:b.searchLocation==="COMMENT_SEARCH",matches:b.matches,matchSubstrings:!0}):null:d=b!=null&&b.matches.length>0?c("CometHighlightTransform")({highlightCommentSearchedTerms:b.searchLocation==="COMMENT_SEARCH",matches:b.matches,matchSubstrings:b.searchLocation==="COMMENT_SEARCH"}):null;return[].concat(k,[d]).filter(Boolean)},[a,b])}g["default"]=a}),98);
__d("CometUFICommentBodyTextWithEntities.react",["CometFeedSeeMoreAnchorEntityRenderer","CometHovercardEntityRenderer","CometKGTickerNodeEntityRenderer","CometLinkedEntityRenderer","CometRelay","CometShortenedExternalUrlEntityRenderer","CometTextDelightCampaignEntityRenderer","CometTextWithEntitiesRelay.react","CometUFICommentBodyTextWithEntities_textWithEntities.graphql","CometVideoTimeIndexEntityRenderer","cr:6969","react","react-compiler-runtime","useCometUFICommentBodyTransforms","useRadicalUFIClickInteractionLogging"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={"*":[c("CometLinkedEntityRenderer")],Event:[c("CometHovercardEntityRenderer")],ExternalUrl:[c("CometShortenedExternalUrlEntityRenderer")],Group:[c("CometHovercardEntityRenderer")],KGTickerNode:[c("CometKGTickerNodeEntityRenderer")],Page:[c("CometHovercardEntityRenderer")],SeeMoreTruncation:[c("CometFeedSeeMoreAnchorEntityRenderer")],TextDelightCampaign:[c("CometTextDelightCampaignEntityRenderer")],User:[c("CometHovercardEntityRenderer")],VideoTimeIndex:[c("CometVideoTimeIndexEntityRenderer")],XFBWorkCustomEmoji:[b("cr:6969")].filter(Boolean)};function a(a){var e=d("react-compiler-runtime").c(9),f=a.commentId,g=a.shouldTruncate,i=a.textWithEntities;a=a.withParagraphs;a=a===void 0?!0:a;i=d("CometRelay").useFragment(h!==void 0?h:h=b("CometUFICommentBodyTextWithEntities_textWithEntities.graphql"),i);f=c("useCometUFICommentBodyTransforms")(f);var l;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(l={clickInteractionSource:"comment_see_more"},e[0]=l):l=e[0];l=c("useRadicalUFIClickInteractionLogging")(null,l);if(i==null)return null;var m=g?420:void 0,n=g?3:void 0;g=g?"see-more":void 0;var o;e[1]!==l||e[2]!==m||e[3]!==n||e[4]!==g||e[5]!==i||e[6]!==f||e[7]!==a?(o=j.jsx(c("CometTextWithEntitiesRelay.react"),{maxLength:m,maxLines:n,onToggleExpanded:l,renderers:k,textWithEntities:i,transforms:f,truncationStyle:g,withLineBreaks:!0,withParagraphs:a}),e[1]=l,e[2]=m,e[3]=n,e[4]=g,e[5]=i,e[6]=f,e[7]=a,e[8]=o):o=e[8];return o}g["default"]=a}),98);
__d("CometUFIComposerActionButton.react",["FDSIcon.react","FDSTooltip.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");b=i.forwardRef(a);function a(a,b){var e=d("react-compiler-runtime").c(16),f,g,h,j,k;e[0]!==a?(j=a.color,k=a.disabled,f=a.icon,g=a.label,h=babelHelpers.objectWithoutPropertiesLoose(a,["color","disabled","icon","label"]),e[0]=a,e[1]=f,e[2]=g,e[3]=h,e[4]=j,e[5]=k):(f=e[1],g=e[2],h=e[3],j=e[4],k=e[5]);a=j===void 0?"secondary":j;j=k===void 0?!1:k;e[6]!==a||e[7]!==j||e[8]!==f||e[9]!==g||e[10]!==h||e[11]!==b?(k=i.jsx(c("FDSIcon.react"),babelHelpers["extends"]({},h,{"aria-label":g,color:a,disabled:j,icon:f,ref:b})),e[6]=a,e[7]=j,e[8]=f,e[9]=g,e[10]=h,e[11]=b,e[12]=k):k=e[12];e[13]!==g||e[14]!==k?(a=i.jsx(c("FDSTooltip.react"),{position:"above",tooltip:g,children:k}),e[13]=g,e[14]=k,e[15]=a):a=e[15];return a}e=b;g["default"]=e}),98);
__d("CometUFIComposerEmojiPluginInner.react",["CometLexicalEmojiNode","react","react-compiler-runtime","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect,j=c("requireDeferred")("getUpgradedCometEmojiComposerHandler").__setRef("CometUFIComposerEmojiPluginInner.react");function a(a){var b=d("react-compiler-runtime").c(4);a=a.pluginProps;var e=a.editor,f=c("useDeferredModuleOnReady")(j),g;b[0]!==e||b[1]!==f?(a=function(){if(f!=null)return f(e,d("CometLexicalEmojiNode").UFI_EMOJI_SIZE)},g=[e,f],b[0]=e,b[1]=f,b[2]=a,b[3]=g):(a=b[2],g=b[3]);i(a,g);return null}g["default"]=a}),98);
__d("CometUFIComposerPluginsContext",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h||d("react");b=a.createContext({isComposerFocused:!1,openPopoverCount:0,openPopoverCountChange:function(){},setComposerFocusState:function(){}});g["default"]=b}),98);
__d("CometUFIComposerPrefillMentionPluginUtils",["CometLexicalGenericEntityNode","FBLogger","Lexical","LexicalText"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){var e=d("LexicalText").$rootTextContent();a=d("LexicalText").$isRootTextContentEmpty(a.isComposing());var f=!1;d("Lexical").$getRoot().getAllTextNodes().forEach(function(a){d("CometLexicalGenericEntityNode").$isCometLexicalGenericEntityNode(a)&&a.getTextContent()===e.trim()&&(f=!0)});if(!a&&!f)return;a=d("Lexical").$getRoot();var g=a.getFirstChild();if(d("Lexical").$isElementNode(g))g.clear();else if(g===null)g=d("Lexical").$createParagraphNode(),a.append(g);else{c("FBLogger")("UFILexicalComposer").mustfix("Prefill mentions plugin found a non-block first node. This should not happen.");return}a=h(b.getType());a=d("CometLexicalGenericEntityNode").$createCometLexicalGenericEntityNode({id:b.getUniqueID(),text:b.getTitle(),type:a,uri:b.getURI()});g.append(a);b=new(d("Lexical").TextNode)(" ");a.insertAfter(b);b.select()}function h(a){switch(a){case"Actor":case"Application":case"CMSObject":case"Doc":case"Event":case"FundraiserPersonForPerson":case"FundraiserPersonToCharity":case"GeneralGroupContextualProfile":case"Group":case"GroupAnonAuthorProfile":case"GroupCommerceProductItem":case"GroupRule":case"InstantArticle":case"KnowledgeNote":case"Menu":case"Note":case"Page":case"Photo":case"ProductItem":case"ReducedMessagingActor":case"Story":case"User":case"Video":case"VideoList":case"WorkKnowledgeCollection":return a;default:c("FBLogger")("UFILexicalPlugin").mustfix("PrefillMention unexpected command entity type %s",a);return"Actor"}}g.$addMentionIfEditorIsEmptyAndDoesNotHaveMention=a}),98);
__d("CometUFIComposerPreviewArea.react",["ix","FDSCircleButton.react","fbicon","react","react-compiler-runtime","useTriggerAccessibilityAlert"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));i.useCallback;function a(a){var b=d("react-compiler-runtime").c(27),e,f,g,i,k,l,m;b[0]!==a?(e=a.children,f=a.isDisabled,g=a.label,i=a.onRemove,l=a.removeAnnouncement,m=a.testid,k=babelHelpers.objectWithoutPropertiesLoose(a,["children","isDisabled","label","onRemove","removeAnnouncement","testid"]),b[0]=a,b[1]=e,b[2]=f,b[3]=g,b[4]=i,b[5]=k,b[6]=l,b[7]=m):(e=b[1],f=b[2],g=b[3],i=b[4],k=b[5],l=b[6],m=b[7]);var n=c("useTriggerAccessibilityAlert")();b[8]!==i||b[9]!==l||b[10]!==n?(a=function(){i(),l!=null&&n(l)},b[8]=i,b[9]=l,b[10]=n,b[11]=a):a=b[11];a=a;var o;b[12]===Symbol["for"]("react.memo_cache_sentinel")?(o="x1qjc9v5 x2bj2ny x1q0q8m5 x1qhh985 xu3j5b3 xcfux6l x26u7qi xm0m39n x13fuv20 x972fbf x9f619 x78zum5 x1q0g3np x1iyjqo2 xs83m0k xat24cr x11i5rnm x1mh8g0r x1xmf6yo x16suv20 xeuugli x1y1aw1k xwib8y2 x4uap5 xkhd6sd x1n2onr6 x1ja2u2z",b[12]=o):o=b[12];var p;b[13]===Symbol["for"]("react.memo_cache_sentinel")?(p={className:"x193iq5w xurb0ha x1sxyh0"},b[13]=p):p=b[13];b[14]!==e?(p=j.jsx("div",babelHelpers["extends"]({},p,{children:e})),b[14]=e,b[15]=p):p=b[15];b[16]===Symbol["for"]("react.memo_cache_sentinel")?(e={className:"x1sxyh0"},b[16]=e):e=b[16];var q;b[17]===Symbol["for"]("react.memo_cache_sentinel")?(q=d("fbicon")._(h("478231"),12),b[17]=q):q=b[17];b[18]!==f||b[19]!==g||b[20]!==a?(e=j.jsx("div",babelHelpers["extends"]({},e,{children:j.jsx(c("FDSCircleButton.react"),{disabled:f,icon:q,label:g,onPress:a,size:24,testid:void 0})})),b[18]=f,b[19]=g,b[20]=a,b[21]=e):e=b[21];b[22]!==k||b[23]!==p||b[24]!==e||b[25]!==m?(q=j.jsxs("div",babelHelpers["extends"]({},k,{className:o,"data-testid":void 0,children:[p,e]})),b[22]=k,b[23]=p,b[24]=e,b[25]=m,b[26]=q):q=b[26];return q}g["default"]=a}),98);
__d("CometUFIEmoticonsComposerPluginInner.react",["react","react-compiler-runtime","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect,j=c("requireDeferred")("getUpgradedCometUFIEmoticonsComposerHandler").__setRef("CometUFIEmoticonsComposerPluginInner.react");function a(a){var b=d("react-compiler-runtime").c(4);a=a.pluginProps;var e=a.editor,f=c("useDeferredModuleOnReady")(j),g;b[0]!==e||b[1]!==f?(a=function(){if(f!=null)return f(e)},g=[e,f],b[0]=e,b[1]=f,b[2]=a,b[3]=g):(a=b[2],g=b[3]);i(a,g);return null}g["default"]=a}),98);
__d("CometUFIEntryPointPopoverComposerAction.react",["CometUFIComposerActionButton.react","CometUFIComposerPluginsContext","FDSEntryPointPopoverTrigger.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;b.useCallback;var j=b.useContext,k=b.useState;function a(a){var b=d("react-compiler-runtime").c(18),e=a.additionalOnPress,f=a.entryPointParams,g=a.fallback,h=a.highlightIcon,l=a.icon,m=a.imperativeRef,n=a.label,o=a.onVisibilityChange,p=a.otherProps,q=a.popoverEntryPoint;a=a.tracePolicy;var r=h===void 0?!1:h;h=k(!1);var s=h[0],t=h[1];h=j(c("CometUFIComposerPluginsContext"));var u=h.openPopoverCountChange;b[0]!==o||b[1]!==u?(h=function(a){u(a),t(a),o&&o(a)},b[0]=o,b[1]=u,b[2]=h):h=b[2];h=h;var v;b[3]!==e||b[4]!==r||b[5]!==l||b[6]!==n||b[7]!==s?(v=function(a,b,d,f,g,h){return i.jsx(c("CometUFIComposerActionButton.react"),{color:s?"highlight":r?"highlight":void 0,icon:l,label:n,onHoverIn:f,onHoverOut:g,onPress:function(){b(),e==null?void 0:e()},onPressIn:h,ref:a})},b[3]=e,b[4]=r,b[5]=l,b[6]=n,b[7]=s,b[8]=v):v=b[8];var w;b[9]!==h||b[10]!==f||b[11]!==g||b[12]!==m||b[13]!==p||b[14]!==q||b[15]!==v||b[16]!==a?(w=i.jsx(c("FDSEntryPointPopoverTrigger.react"),{align:"end",entryPointParams:f,fallback:g,imperativeRef:m,onVisibilityChange:h,otherProps:p,popoverEntryPoint:q,position:"above",preloadTrigger:"button",tracePolicy:a,children:v}),b[9]=h,b[10]=f,b[11]=g,b[12]=m,b[13]=p,b[14]=q,b[15]=v,b[16]=a,b[17]=w):w=b[17];return w}g["default"]=a}),98);
__d("CometUFIGIFComposerPreviewArea.react",["fbt","CometImage.react","CometUFIComposerPreviewArea.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));i.useCallback;var k={previewImage:{borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",display:"x1lliihq",height:"xt7dq6l",maxWidth:"x193iq5w",$$css:!0}},l=80;function m(a){return a.attachment&&a.attachment.__type==="GIF"?a.attachment.data:null}function a(a){var b=d("react-compiler-runtime").c(13),e=a.composerState,f=a.removeAttachment;b[0]!==e?(a=m(e),b[0]=e,b[1]=a):a=b[1];e=a;b[2]!==f?(a=function(){f()},b[2]=f,b[3]=a):a=b[3];a=a;if(e==null)return null;var g=e.media.preview,i=g.height;g=g.width;i>l&&(g=g*(l/i),i=l);var n;b[4]===Symbol["for"]("react.memo_cache_sentinel")?(n=h._(/*BTDS*/"__JHASH__13djPeJ1ib___JHASH__"),b[4]=n):n=b[4];var o;b[5]===Symbol["for"]("react.memo_cache_sentinel")?(o=h._(/*BTDS*/"__JHASH__4txhVGGxooX__JHASH__"),b[5]=o):o=b[5];var p;b[6]!==e.media.preview.url||b[7]!==i||b[8]!==g?(p=j.jsx(c("CometImage.react"),{height:i,src:e.media.preview.url,width:g,xstyle:k.previewImage}),b[6]=e.media.preview.url,b[7]=i,b[8]=g,b[9]=p):p=b[9];b[10]!==a||b[11]!==p?(e=j.jsx(c("CometUFIComposerPreviewArea.react"),{label:n,onRemove:a,removeAnnouncement:o,children:p}),b[10]=a,b[11]=p,b[12]=e):e=b[12];return e}g["default"]=a}),226);
__d("useCometUFIGIFAttachmentMapper",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect;function a(a){var b=d("react-compiler-runtime").c(3),c,e;b[0]!==a?(c=function(){return a(j)},e=[a],b[0]=a,b[1]=c,b[2]=e):(c=b[1],e=b[2]);i(c,e)}function j(a){return a.__type==="GIF"?{link:{external:{url:a.data.source.url}}}:null}g["default"]=a}),98);
__d("CometUFIGIFComposerPluginInner.react",["CometUFIGIFComposerPreviewArea.react","react","react-compiler-runtime","useCometUFIGIFAttachmentMapper"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(4);a=a.pluginProps;var e=a.addAttachmentMapper,f=a.composerState;a=a.removeAttachment;c("useCometUFIGIFAttachmentMapper")(e);b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e={className:"x1iyjqo2"},b[0]=e):e=b[0];b[1]!==f||b[2]!==a?(e=i.jsx("div",babelHelpers["extends"]({},e,{children:i.jsx(c("CometUFIGIFComposerPreviewArea.react"),{composerState:f,removeAttachment:a})})),b[1]=f,b[2]=a,b[3]=e):e=b[3];return e}g["default"]=a}),98);
__d("CometUFIHashtagComposerPluginInner.react",["react","react-compiler-runtime","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect,j=c("requireDeferred")("getUpgradedCometHashtagComposerHandler").__setRef("CometUFIHashtagComposerPluginInner.react");function a(a){var b=d("react-compiler-runtime").c(4);a=a.pluginProps;var e=a.editor,f=c("useDeferredModuleOnReady")(j),g;b[0]!==e||b[1]!==f?(a=function(){if(f!=null)return f(e)},g=[e,f],b[0]=e,b[1]=f,b[2]=a,b[3]=g):(a=b[2],g=b[3]);i(a,g);return null}g["default"]=a}),98);
__d("CometUFILazyPopoverComposerAction.react",["CometUFIComposerActionButton.react","CometUFIComposerPluginsContext","FDSLazyPopoverTrigger.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;b.useCallback;var j=b.useContext,k=b.useState;function a(a){var b=d("react-compiler-runtime").c(14),e=a.fallback,f=a.icon,g=a.label,h=a.popoverProps,l=a.popoverResource,m=a.position;a=a.tracePolicy;m=m===void 0?"above":m;var n=k(!1),o=n[0],p=n[1];n=j(c("CometUFIComposerPluginsContext"));var q=n.openPopoverCountChange;b[0]!==q?(n=function(a){p(a),q(a)},b[0]=q,b[1]=n):n=b[1];n=n;var r;b[2]!==f||b[3]!==g||b[4]!==o?(r=function(a,b,d,e,h,j,k,l){return i.jsx(c("CometUFIComposerActionButton.react"),{"aria-expanded":l,color:o?"highlight":void 0,icon:f,label:g,onHoverIn:e,onHoverOut:h,onPress:b,onPressIn:j,ref:a})},b[2]=f,b[3]=g,b[4]=o,b[5]=r):r=b[5];var s;b[6]!==e||b[7]!==n||b[8]!==h||b[9]!==l||b[10]!==m||b[11]!==r||b[12]!==a?(s=i.jsx(c("FDSLazyPopoverTrigger.react"),{align:"end",fallback:e,onVisibilityChange:n,popoverProps:h,popoverResource:l,position:m,preloadTrigger:"button",tracePolicy:a,children:r}),b[6]=e,b[7]=n,b[8]=h,b[9]=l,b[10]=m,b[11]=r,b[12]=a,b[13]=s):s=b[13];return s}g["default"]=a}),98);
__d("CometUFIInsertAvatarStickerComposerActionForLexical.react",["fbt","ix","CometUFILazyPopoverComposerAction.react","FDSPopoverLoadingState.react","JSResourceForInteraction","fbicon","gkx","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));j.useMemo;var l=c("JSResourceForInteraction")("CometUFIAvatarPopoverForLexical.react").__setRef("CometUFIInsertAvatarStickerComposerActionForLexical.react"),m={popoverFallback:{minHeight:"xmaeki8",$$css:!0}},n=h._(/*BTDS*/"__JHASH__7qcLMMiNzAP__JHASH__");function a(a){var b=d("react-compiler-runtime").c(9),e=a.displayUpgradeToStyle2,f=a.hasAvatar,g=a.pluginProps;a=a.postID;var h;b[0]!==e||b[1]!==f||b[2]!==g||b[3]!==a?(h={displayUpgradeToStyle2:e,hasAvatar:f,label:n,pluginProps:g,postID:a},b[0]=e,b[1]=f,b[2]=g,b[3]=a,b[4]=h):h=b[4];e=h;f=e;b[5]===Symbol["for"]("react.memo_cache_sentinel")?(g=k.jsx(c("FDSPopoverLoadingState.react"),{withArrow:!0,xstyle:m.popoverFallback}),a=d("fbicon")._(i("393983"),16),b[5]=g,b[6]=a):(g=b[5],a=b[6]);b[7]!==f?(h=k.jsx(c("CometUFILazyPopoverComposerAction.react"),{fallback:g,icon:a,label:n,popoverProps:f,popoverResource:l,tracePolicy:c("gkx")("21050")?"gemini.avatarpicker":"comet.avatarpicker"}),b[7]=f,b[8]=h):h=b[8];return h}g["default"]=a}),226);
__d("CometUFIInsertEmojiComposerActionForLexical.react",["fbt","ix","CometUFILazyPopoverComposerAction.react","FDSPopoverLoadingState.react","JSResourceForInteraction","fbicon","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));j.useMemo;var l=c("JSResourceForInteraction")("CometUFIEmojiPickerPopoverForLexical.react").__setRef("CometUFIInsertEmojiComposerActionForLexical.react"),m={popoverFallback:{minHeight:"x1or5b8i",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(7);a=a.pluginProps;var e;b[0]!==a?(e={pluginProps:a},b[0]=a,b[1]=e):e=b[1];a=e;e=a;var f,g;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(a=k.jsx(c("FDSPopoverLoadingState.react"),{withArrow:!0,xstyle:m.popoverFallback}),f=d("fbicon")._(i("642536"),16),g=h._(/*BTDS*/"__JHASH__LfwC8ZO2FKZ__JHASH__"),b[2]=a,b[3]=f,b[4]=g):(a=b[2],f=b[3],g=b[4]);b[5]!==e?(a=k.jsx(c("CometUFILazyPopoverComposerAction.react"),{fallback:a,icon:f,label:g,popoverProps:e,popoverResource:l}),b[5]=e,b[6]=a):a=b[6];return a}g["default"]=a}),226);
__d("CometUFIInsertGIFComposerActionForLexical.react",["fbt","ix","CometUFILazyPopoverComposerAction.react","FDSPopoverLoadingState.react","JSResourceForInteraction","fbicon","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));j.useMemo;var l=c("JSResourceForInteraction")("CometUFIGIFPickerPopoverForLexical.react").__setRef("CometUFIInsertGIFComposerActionForLexical.react"),m={popoverFallback:{minHeight:"x1qq0ucp",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(7);a=a.pluginProps;var e;b[0]!==a?(e={pluginProps:a},b[0]=a,b[1]=e):e=b[1];a=e;e=a;var f,g;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(a=k.jsx(c("FDSPopoverLoadingState.react"),{withArrow:!0,xstyle:m.popoverFallback}),f=d("fbicon")._(i("687980"),16),g=h._(/*BTDS*/"__JHASH__0y5M5k0_laI__JHASH__"),b[2]=a,b[3]=f,b[4]=g):(a=b[2],f=b[3],g=b[4]);b[5]!==e?(a=k.jsx(c("CometUFILazyPopoverComposerAction.react"),{fallback:a,icon:f,label:g,popoverProps:e,popoverResource:l}),b[5]=e,b[6]=a):a=b[6];return a}g["default"]=a}),226);
__d("CometUFIInsertStickerComposerActionForLexical.react",["fbt","ix","CometStickerPickerCardPopoverRootWithPresetProps","CometUFIEntryPointPopoverComposerAction.react","FDSPopoverLoadingState.react","fbicon","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));j.useCallback;b=274;var l=Math.floor(b/4),m={popover:{height:"x1hie0zf",maxHeight:"x1q80e4b",width:"xlro9se",$$css:!0},popoverFallback:{minHeight:"xny7s23",$$css:!0}},n=10;function a(a){var b=d("react-compiler-runtime").c(13),e=a.pluginProps;a=a.feedbackID;var f=e.setComposerState,g=e.editor;b[0]!==g||b[1]!==f?(e=function(a){var b=a.stickerID;a=function(a){return babelHelpers["extends"]({},a,{attachment:{__type:"Sticker",id:b},updateSource:"InsertStickerButton"})};f(a);g.focus()},b[0]=g,b[1]=f,b[2]=e):e=b[2];e=e;var j;b[3]!==a?(j={feedbackID:a,flyoutTagsCount:n,stickerInterface:"COMMENTS"},b[3]=a,b[4]=j):j=b[4];var o,p;b[5]===Symbol["for"]("react.memo_cache_sentinel")?(a=k.jsx(c("FDSPopoverLoadingState.react"),{withArrow:!0,xstyle:m.popoverFallback}),o=d("fbicon")._(i("687986"),16),p=h._(/*BTDS*/"__JHASH__OBILv6wtRcM__JHASH__"),b[5]=a,b[6]=o,b[7]=p):(a=b[5],o=b[6],p=b[7]);var q;b[8]!==e?(q={isSecureThread:!1,onSelect:e,stickerHeight:l,stickerWidth:l,xstyle:m.popover},b[8]=e,b[9]=q):q=b[9];b[10]!==j||b[11]!==q?(e=k.jsx(c("CometUFIEntryPointPopoverComposerAction.react"),babelHelpers["extends"]({},c("CometStickerPickerCardPopoverRootWithPresetProps").props,{entryPointParams:j,fallback:a,icon:o,label:p,otherProps:q,popoverEntryPoint:c("CometStickerPickerCardPopoverRootWithPresetProps").resource})),b[10]=j,b[11]=q,b[12]=e):e=b[12];return e}g["default"]=a}),226);
__d("CometUFILiveTypingBroadcastComposerPluginInner.react",["react","react-compiler-runtime","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("requireDeferred")("CometUFILiveTypingBroadcastComposerUpgradedPlugin.react").__setRef("CometUFILiveTypingBroadcastComposerPluginInner.react");function a(a){var b=d("react-compiler-runtime").c(6),e=a.pluginProps,f=a.feedback,g=a.groupID;a=a.relayEnvironment;var h=c("useDeferredModuleOnReady")(j),k;b[0]!==h||b[1]!==f||b[2]!==g||b[3]!==e||b[4]!==a?(k=h!=null?i.jsx(h,{feedback:f,groupID:g,pluginProps:e,relayEnvironment:a}):null,b[0]=h,b[1]=f,b[2]=g,b[3]=e,b[4]=a,b[5]=k):k=b[5];return k}g["default"]=a}),98);
__d("CometUFIMediaUploadComposerActionForLexical.react",["fbt","ix","CometUFIComposerActionButton.react","UFICommentFileInputAcceptValues","fbicon","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));b=j;b.useCallback;var l=b.useRef,m=b.useState;function a(a){var b=d("react-compiler-runtime").c(16),e=a.pluginProps;a=e.fileIsHoveringOverDropTarget;var f=e.mediaUploadError!==null,g=l(null),j=m(!1),n=j[0],o=j[1];b[0]===Symbol["for"]("react.memo_cache_sentinel")?(j=function(){var a;o(!0);(a=g.current)==null?void 0:a.click()},b[0]=j):j=b[0];j=j;n=n?"highlight":f&&!a?"negative":"secondary";var p;b[1]!==a?(p=a?d("fbicon")._(i("568448"),16):d("fbicon")._(i("550098"),16),b[1]=a,b[2]=p):p=b[2];b[3]!==f?(a=f?h._(/*BTDS*/"__JHASH__CeSJQ_Q7OSE__JHASH__"):h._(/*BTDS*/"__JHASH__acZ_gpYQ5VM__JHASH__"),b[3]=f,b[4]=a):a=b[4];b[5]===Symbol["for"]("react.memo_cache_sentinel")?(f=function(){return o(!1)},b[5]=f):f=b[5];b[6]!==n||b[7]!==p||b[8]!==a?(f=k.jsx(c("CometUFIComposerActionButton.react"),{color:n,icon:p,label:a,onFocusIn:f,onPress:j}),b[6]=n,b[7]=p,b[8]=a,b[9]=f):f=b[9];b[10]===Symbol["for"]("react.memo_cache_sentinel")?(j={className:"x1s85apg"},b[10]=j):j=b[10];b[11]!==e.setComposerState?(n=k.jsx("input",babelHelpers["extends"]({accept:c("UFICommentFileInputAcceptValues").both},j,{onChange:function(a){var b=a.target.files.item(0);a=e.setComposerState;a(function(){return{attachment:{__type:"Media",reference:{__type:"File",file:b}}}});o(!1)},ref:g,type:"file"})),b[11]=e.setComposerState,b[12]=n):n=b[12];b[13]!==f||b[14]!==n?(p=k.jsxs(k.Fragment,{children:[f,n]}),b[13]=f,b[14]=n,b[15]=p):p=b[15];return p}g["default"]=a}),226);
__d("CometUFIMediaUploadProgressBar.react",["FDSProgressStepper.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(4),e=a.label;a=a.value;var f;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(f={className:"x1iyjqo2 x1xmf6yo x1e56ztr x1emribx"},b[0]=f):f=b[0];b[1]!==e||b[2]!==a?(f=i.jsx("div",babelHelpers["extends"]({},f,{children:i.jsx(c("FDSProgressStepper.react"),{"aria-label":e,step:a,totalSteps:100})})),b[1]=e,b[2]=a,b[3]=f):f=b[3];return f}g["default"]=a}),98);
__d("CometUFIMediaUploadPlaceholder.react",["fbt","CometUFIComposerPreviewArea.react","CometUFIMediaUploadProgressBar.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));i.useCallback;function a(a){var b=d("react-compiler-runtime").c(8),e=a.setComposerState;b[0]!==e?(a=function(){e(k)},b[0]=e,b[1]=a):a=b[1];a=a;var f;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(f={className:"x1iyjqo2"},b[2]=f):f=b[2];var g;b[3]===Symbol["for"]("react.memo_cache_sentinel")?(g=h._(/*BTDS*/"__JHASH__M0Eks8PkfAq__JHASH__"),b[3]=g):g=b[3];var i;b[4]===Symbol["for"]("react.memo_cache_sentinel")?(i=h._(/*BTDS*/"__JHASH__81fyxam2HzN__JHASH__"),b[4]=i):i=b[4];var l;b[5]===Symbol["for"]("react.memo_cache_sentinel")?(l=j.jsx(c("CometUFIMediaUploadProgressBar.react"),{label:h._(/*BTDS*/"__JHASH__AoQAbcMN3Ju__JHASH__",[h._param("value","0")]),value:0}),b[5]=l):l=b[5];b[6]!==a?(f=j.jsx("div",babelHelpers["extends"]({},f,{children:j.jsx(c("CometUFIComposerPreviewArea.react"),{label:g,onRemove:a,removeAnnouncement:i,children:l})})),b[6]=a,b[7]=f):f=b[7];return f}function k(){return{attachment:null}}g["default"]=a}),226);
__d("checkIfCometUFIComposerStateHasMediaAttachment",[],(function(a,b,c,d,e,f){"use strict";function a(a){return((a=a.attachment)==null?void 0:a.__type)==="Media"}f["default"]=a}),66);
__d("useCometUFIMediaUploadDragAndDrop",["react","react-compiler-runtime","useCometLexicalFileDragAndDrop"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useCallback;function i(a,b){a(function(){return{attachment:{__type:"Media",reference:{__type:"File",file:b}}}})}function a(a){var b=d("react-compiler-runtime").c(9),e=a.editor,f=a.isMimeTypeAcceptable,g=a.setComposerState,h=a.setFileIsHoveringOverDropTarget;b[0]!==h?(a=function(a,b){h(b)},b[0]=h,b[1]=a):a=b[1];a=a;var j;b[2]!==g?(j=function(a){a.length>0&&i(g,a[0])},b[2]=g,b[3]=j):j=b[3];j=j;var k;b[4]!==e||b[5]!==f||b[6]!==a||b[7]!==j?(k={editor:e,isMimeTypeAcceptable:f,onHover:a,onSubmit:j},b[4]=e,b[5]=f,b[6]=a,b[7]=j,b[8]=k):k=b[8];c("useCometLexicalFileDragAndDrop")(k)}g["default"]=a}),98);
__d("useCometUFIPreventCommitWhenUploadingFile",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect;function a(a){var b=d("react-compiler-runtime").c(4),c=a.addCommitListener,e=a.composerState,f;b[0]!==c||b[1]!==e.attachment?(a=function(){return c(function(){var a=e.attachment;return(a==null?void 0:a.__type)==="Media"&&(a==null?void 0:a.reference.__type)!=="UploadedFile"?"block-commit":"continue-commit"})},f=[c,e.attachment],b[0]=c,b[1]=e.attachment,b[2]=a,b[3]=f):(a=b[2],f=b[3]);i(a,f)}g["default"]=a}),98);
__d("cometUFIMediaUploadComposerPluginSupportedTypes",[],(function(a,b,c,d,e,f){"use strict";a=["photo","video"];b=a;f["default"]=b}),66);
__d("useIsMimeTypeAcceptable",["cometIsMimeTypeForMedia","cometUFIMediaUploadComposerPluginSupportedTypes","react"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useCallback;function a(){return i}function i(a){if(a.kind!=="file")return!1;for(var b=c("cometUFIMediaUploadComposerPluginSupportedTypes"),e=Array.isArray(b),f=0,b=e?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=b.length)break;g=b[f++]}else{f=b.next();if(f.done)break;g=f.value}g=g;bb9:switch(g){case"photo":if(d("cometIsMimeTypeForMedia").isMimeTypeForPhoto(a.type))return!0;break bb9;case"video":if(d("cometIsMimeTypeForMedia").isMimeTypeForVideo(a.type))return!0;break bb9;default:}}return!1}g["default"]=a}),98);
__d("CometUFIMediaUploadComposerPluginInner.react",["CometPlaceholder.react","CometUFIMediaUploadPlaceholder.react","JSResourceForInteraction","checkIfCometUFIComposerStateHasMediaAttachment","lazyLoadComponent","react","react-compiler-runtime","useCometUFIMediaUploadDragAndDrop","useCometUFIPreventCommitWhenUploadingFile","useIsMimeTypeAcceptable"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("lazyLoadComponent")(c("JSResourceForInteraction")("CometUFIMediaUploadUpgradedPlugin.experimental.react").__setRef("CometUFIMediaUploadComposerPluginInner.react"));function a(a){var b=d("react-compiler-runtime").c(17),e=a.feedback,f=a.pluginProps;a=a.shouldCondenseVideoPreview;var g=f.addCommitListener,h=f.composerState,k=f.editor,l=f.setComposerState,m=f.setFileIsHoveringOverDropTarget,n=c("useIsMimeTypeAcceptable")(),o=c("checkIfCometUFIComposerStateHasMediaAttachment")(h),p;b[0]!==k||b[1]!==n||b[2]!==l||b[3]!==m?(p={editor:k,isMimeTypeAcceptable:n,setComposerState:l,setFileIsHoveringOverDropTarget:m},b[0]=k,b[1]=n,b[2]=l,b[3]=m,b[4]=p):p=b[4];c("useCometUFIMediaUploadDragAndDrop")(p);b[5]!==g||b[6]!==h?(k={addCommitListener:g,composerState:h},b[5]=g,b[6]=h,b[7]=k):k=b[7];c("useCometUFIPreventCommitWhenUploadingFile")(k);if(o){b[8]!==l?(n=i.jsx(c("CometUFIMediaUploadPlaceholder.react"),{setComposerState:l}),b[8]=l,b[9]=n):n=b[9];b[10]!==e||b[11]!==f||b[12]!==a?(m=i.jsx(j,{feedback:e,pluginProps:f,shouldCondenseVideoPreview:a}),b[10]=e,b[11]=f,b[12]=a,b[13]=m):m=b[13];b[14]!==n||b[15]!==m?(p=i.jsx(c("CometPlaceholder.react"),{fallback:n,children:m}),b[14]=n,b[15]=m,b[16]=p):p=b[16];return p}else return null}g["default"]=a}),98);
__d("CometUFIStickersComposerPreviewArea.react",["fbt","CometUFIComposerPreviewArea.react","FBLogger","FDSProgressIndicator.react","react","react-compiler-runtime","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));i.useCallback;var k=c("requireDeferred")("CometUFIStickersComposerUpgradedPreviewContent.react").__setRef("CometUFIStickersComposerPreviewArea.react");function l(a){return a.attachment&&a.attachment.__type==="Sticker"?a.attachment.id:null}function a(a){var b=d("react-compiler-runtime").c(16),e=a.composerState,f=a.removeAttachment;b[0]!==e?(a=l(e),b[0]=e,b[1]=a):a=b[1];e=a;a=c("useDeferredModuleOnReady")(k);var g;b[2]!==f?(g=function(){f()},b[2]=f,b[3]=g):g=b[3];g=g;var i;b[4]!==f?(i=function(a){f(),c("FBLogger")("ufi2").catching(a).mustfix("Encountered an error while rendering a sticker.")},b[4]=f,b[5]=i):i=b[5];i=i;var m;b[6]===Symbol["for"]("react.memo_cache_sentinel")?(m=j.jsx(c("FDSProgressIndicator.react"),{size:"small"}),b[6]=m):m=b[6];m=m;if(e==null)return null;var n;b[7]===Symbol["for"]("react.memo_cache_sentinel")?(n=h._(/*BTDS*/"__JHASH__erNszf5-rZl__JHASH__"),b[7]=n):n=b[7];var o;b[8]===Symbol["for"]("react.memo_cache_sentinel")?(o=h._(/*BTDS*/"__JHASH__F2-tZW9Afnl__JHASH__"),b[8]=o):o=b[8];b[9]!==a||b[10]!==e||b[11]!==i?(m=a==null?m:j.jsx(a,{loadingIndicatorElement:m,onError:i,stickerId:e}),b[9]=a,b[10]=e,b[11]=i,b[12]=m):m=b[12];b[13]!==g||b[14]!==m?(a=j.jsx(c("CometUFIComposerPreviewArea.react"),{label:n,onRemove:g,removeAnnouncement:o,testid:void 0,children:m}),b[13]=g,b[14]=m,b[15]=a):a=b[15];return a}g["default"]=a}),226);
__d("useCometUFIStickersAttachmentMapper",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect;function a(a){var b=d("react-compiler-runtime").c(3),c,e;b[0]!==a?(c=function(){return a(j)},e=[a],b[0]=a,b[1]=c,b[2]=e):(c=b[1],e=b[2]);i(c,e)}function j(a){return a.__type==="Sticker"?{media:{id:a.id}}:null}g["default"]=a}),98);
__d("CometUFIStickersComposerPluginInner.react",["CometUFIStickersComposerPreviewArea.react","react","react-compiler-runtime","useCometUFIStickersAttachmentMapper"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(4);a=a.pluginProps;var e=a.addAttachmentMapper,f=a.composerState;a=a.removeAttachment;c("useCometUFIStickersAttachmentMapper")(e);b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e={className:"x1iyjqo2"},b[0]=e):e=b[0];b[1]!==f||b[2]!==a?(e=i.jsx("div",babelHelpers["extends"]({},e,{children:i.jsx(c("CometUFIStickersComposerPreviewArea.react"),{composerState:f,removeAttachment:a})})),b[1]=f,b[2]=a,b[3]=e):e=b[3];return e}g["default"]=a}),98);
__d("useCometLexicalEmptyListeners",["LexicalText","react","react-compiler-runtime","useUnsafeRef_DEPRECATED"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");var j=e.useCallback,k=e.useLayoutEffect,l=e.useMemo,m=e.useState;function a(a){var b=d("react-compiler-runtime").c(5),c,e;b[0]!==a?(e=!0,a(function(a){e=a})(),b[0]=a,b[1]=e):e=b[1];c=e;c=m(c);var f=c[0],g=c[1],h;b[2]!==a?(c=function(){return a(function(a){return g(a)})},h=[a],b[2]=a,b[3]=c,b[4]=h):(c=b[3],h=b[4]);k(c,h);return f}function b(a){var b=l(function(){return new Set()},[]),e=(h||(h=c("useUnsafeRef_DEPRECATED")))(a.getEditorState().read(d("LexicalText").$isRootTextContentEmptyCurry(a.isComposing()))),f=j(function(a){var c=Array.from(b);for(var d=0;d<c.length;d++)c[d](a)},[b]),g=j(function(){var b=a.getEditorState().read(d("LexicalText").$isRootTextContentEmptyCurry(a.isComposing()));e.current!==b&&(e.current=b,f(b))},[a,f]);k(function(){return a.registerUpdateListener(g)},[a,g]);return j(function(a){b.add(a);a(e.current);return function(){b["delete"](a)}},[b])}g.useCometLexicalIsEmpty=a;g.useCometLexicalEmptyListeners=b}),98);
__d("useCometUFILexicalEmptyListeners",["react","react-compiler-runtime","useCometLexicalEmptyListeners"],(function(a,b,c,d,e,f,g){"use strict";var h;c=h||d("react");var i=c.useCallback,j=c.useLayoutEffect,k=c.useState;function a(a){var b=d("react-compiler-runtime").c(5),c,e;b[0]!==a?(e=!0,a(function(a){e=a})(),b[0]=a,b[1]=e):e=b[1];c=e;c=k(c);var f=c[0],g=c[1],h;b[2]!==a?(c=function(){return a(function(a){return g(a)})},h=[a],b[2]=a,b[3]=c,b[4]=h):(c=b[3],h=b[4]);j(c,h);return f}function b(a,b){var c=d("useCometLexicalEmptyListeners").useCometLexicalEmptyListeners(a);return i(function(a){var d=function(c){c=c&&b.attachment==null;a(c)};return c(d)},[c,b.attachment])}g.useCometUFILexicalIsEmpty=a;g.useCometUFILexicalEmptyListeners=b}),98);
__d("CometUFIWriteToComposerPluginInner",["CometUFIConversationGuideContext","Lexical","react","react-compiler-runtime","useCometUFILexicalEmptyListeners"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");b.useCallback;var i=b.useContext,j=b.useLayoutEffect;function a(a){var b=d("react-compiler-runtime").c(29);a=a.pluginProps;var e=a.addEmptyListener,f=a.editor,g=a.setComposerState;a=i(c("CometUFIConversationGuideContext"));var h=a.onComposerEmptyStateChange,k=a.setAddGiphyStickerToComposer,l=a.setAddStickerToComposer,m=a.setGetIsComposerEmpty,n=a.setWriteToComposer,o=a.unsetAddGiphyStickerToComposer,p=a.unsetAddStickerToComposer,q=a.unsetWriteToComposer,r=d("useCometUFILexicalEmptyListeners").useCometUFILexicalIsEmpty(e);b[0]!==r||b[1]!==h?(a=function(){h(r)},e=[r,h],b[0]=r,b[1]=h,b[2]=a,b[3]=e):(a=b[2],e=b[3]);j(a,e);b[4]!==r?(a=function(){return r},b[4]=r,b[5]=a):a=b[5];var s=a;b[6]!==s||b[7]!==m?(e=function(){m(function(){return s})},a=[s,m],b[6]=s,b[7]=m,b[8]=e,b[9]=a):(e=b[8],a=b[9]);j(e,a);b[10]!==f?(e=function(a){f.focus(function(){f.update(function(){var b=d("Lexical").$getSelection();d("Lexical").$isRangeSelection(b)&&b.insertText(a)})})},b[10]=f,b[11]=e):e=b[11];var t=e;b[12]!==f||b[13]!==g?(a=function(a){var b=function(b){return babelHelpers["extends"]({},b,{attachment:{__type:"Sticker",id:a},updateSource:"ConversationGuide"})};g(b);f.focus()},b[12]=f,b[13]=g,b[14]=a):a=b[14];var u=a;b[15]!==f||b[16]!==g?(e=function(a){var b={cursor:"",media:{preview:{durationMs:0,height:40,label:"",sizeBytes:0,url:a,width:40}},platformFBID:"",resultID:"",source:{durationMs:0,gifSource:"GIPHY",height:40,mimeType:"",sizeBytes:0,tags:[],title:"",url:a,width:40},type:0};a=function(a){return babelHelpers["extends"]({},a,{attachment:{__type:"GIF",data:b},updateSource:"ConversationGuide"})};g(a);f.focus()},b[15]=f,b[16]=g,b[17]=e):e=b[17];var v=e;b[18]!==v||b[19]!==u||b[20]!==k||b[21]!==l||b[22]!==n||b[23]!==o||b[24]!==p||b[25]!==q||b[26]!==t?(a=function(){n(t);l(u);k(v);return function(){q(),p(),o()}},e=[n,q,t,l,u,p,k,o,v],b[18]=v,b[19]=u,b[20]=k,b[21]=l,b[22]=n,b[23]=o,b[24]=p,b[25]=q,b[26]=t,b[27]=e,b[28]=a):(e=b[27],a=b[28]);j(a,e);return null}g["default"]=a}),98);
__d("CometWallConstants",[],(function(a,b,c,d,e,f){a=Object.freeze({COMMENT_MAX_LENGTH:8e3});f["default"]=a}),66);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<ade89b4c0d385e653e37c4869859836c>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("Lexical.prod",[],(function $module_Lexical_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";var _P,_I;function t(t){var n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams();r.append("code",t);for(var _len=arguments.length,e=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){e[_key-1]=arguments[_key];}for(var _i2=0;_i2<e.length;_i2++){var _t2=e[_i2];r.append("v",_t2);}throw n.search=r.toString(),Error("Minified Lexical error #"+t+"; visit "+n.toString()+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");}var e="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,n=e&&"documentMode"in document?document.documentMode:null,r=e&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),i=e&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),o=!(!e||!("InputEvent"in window)||n)&&"getTargetRanges"in new window.InputEvent("input"),s=e&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),l=e&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,c=e&&/Android/.test(navigator.userAgent),a=e&&/^(?=.*Chrome).*/i.test(navigator.userAgent),u=e&&c&&a,f=e&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!a;function d(){var e=[];for(var _len2=arguments.length,t=new Array(_len2),_key2=0;_key2<_len2;_key2++){t[_key2]=arguments[_key2];}for(var _i3=0;_i3<t.length;_i3++){var _n2=t[_i3];if(_n2&&"string"==typeof _n2){for(var _iterator=_n2.matchAll(/\S+/g),_isArray=Array.isArray(_iterator),_i4=0,_iterator=_isArray?_iterator:_iterator[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref2;if(_isArray){if(_i4>=_iterator.length)break;_ref2=_iterator[_i4++];}else{_i4=_iterator.next();if(_i4.done)break;_ref2=_i4.value;}var _ref3=_ref2;var _t3=_ref3[0];e.push(_t3);}}}return e;}var h=0,g=1,p=2,_=128,m=1,y=2,x=3,C=4,S=5,T=6,v=s||l||f?" ":"​",N="\n\n",k=i?" ":v,b="֑-߿יִ-﷽ﹰ-ﻼ",E="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-",w=new RegExp("^[^"+E+"]*["+b+"]"),O=new RegExp("^[^"+b+"]*["+E+"]"),M={bold:1,capitalize:1024,code:16,highlight:_,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},A={directionless:1,unmergeable:2},D={center:2,end:6,justify:4,left:1,right:3,start:5},P=(_P={},_P[y]="center",_P[T]="end",_P[C]="justify",_P[m]="left",_P[x]="right",_P[S]="start",_P),L={normal:0,segmented:2,token:1},I=(_I={},_I[h]="normal",_I[p]="segmented",_I[g]="token",_I),F="$";function R(t,e,n,r,i,o){var s=t.getFirstChild();for(;null!==s;){var _t4=s.__key;s.__parent===e&&($r(s)&&R(s,_t4,n,r,i,o),n.has(_t4)||o["delete"](_t4),i.push(_t4)),s=s.getNextSibling();}}var B=!1,z=0;function W(t){z=t.timeStamp;}function $(t,e,n){var r="BR"===t.nodeName,i=e.__lexicalLineBreak;return i&&(t===i||r&&t.previousSibling===i)||r&&void 0!==vi(t,n);}function K(t,e,n){var r=po(oo(n));var i=null,o=null;null!==r&&r.anchorNode===t&&(i=r.anchorOffset,o=r.focusOffset);var s=t.nodeValue;null!==s&&Ri(e,s,i,o,!1);}function U(t,e,n){if(Kn(t)){var _e2=t.anchor.getNode();if(_e2.is(n)&&t.format!==_e2.getFormat())return!1;}return di(e)&&n.isAttached();}function J(t,e,n,r){for(var _i5=t;_i5&&!Oo(_i5);_i5=Zi(_i5)){var _t5=vi(_i5,e);if(void 0!==_t5){var _e3=Si(_t5,n);if(_e3)return Jr(_e3)||!mo(_i5)?void 0:[_i5,_e3];}else if(_i5===r)return[r,wi(n)];}}function j(t,e,n){B=!0;var r=performance.now()-z>100;try{Rr(t,function(){var o=ir()||function(t){return t.getEditorState().read(function(){var t=ir();return null!==t?t.clone():null;});}(t),s=new Map(),l=t.getRootElement(),c=t._editorState,a=t._blockCursorElement;var u=!1,f="";for(var _n3=0;_n3<e.length;_n3++){var _d=e[_n3],_h=_d.type,_g=_d.target,_p=J(_g,t,c,l);if(!_p)continue;var _2=_p[0],_m=_p[1];if("characterData"===_h)r&&Dn(_m)&&di(_g)&&U(o,_g,_m)&&K(_g,_m,t);else if("childList"===_h){u=!0;var _e4=_d.addedNodes;for(var _n5=0;_n5<_e4.length;_n5++){var _r3=_e4[_n5],_o2=Ti(_r3),_s2=_r3.parentNode;if(null!=_s2&&_r3!==a&&null===_o2&&!$(_r3,_s2,t)){if(i){var _t6=(mo(_r3)?_r3.innerText:null)||_r3.nodeValue;_t6&&(f+=_t6);}_s2.removeChild(_r3);}}var _n4=_d.removedNodes,_r2=_n4.length;if(_r2>0){var _e5=0;for(var _i6=0;_i6<_r2;_i6++){var _r4=_n4[_i6];($(_r4,_g,t)||a===_r4)&&(_g.appendChild(_r4),_e5++);}_r2!==_e5&&s.set(_2,_m);}}}if(s.size>0){for(var _iterator2=s,_isArray2=Array.isArray(_iterator2),_i7=0,_iterator2=_isArray2?_iterator2:_iterator2[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref5;if(_isArray2){if(_i7>=_iterator2.length)break;_ref5=_iterator2[_i7++];}else{_i7=_iterator2.next();if(_i7.done)break;_ref5=_i7.value;}var _ref6=_ref5;var _e6=_ref6[0];var _n6=_ref6[1];_n6.reconcileObservedMutation(_e6,t);}}var d=n.takeRecords();if(d.length>0){for(var _e7=0;_e7<d.length;_e7++){var _n7=d[_e7],_r5=_n7.addedNodes,_i8=_n7.target;for(var _e8=0;_e8<_r5.length;_e8++){var _n8=_r5[_e8],_o3=_n8.parentNode;null==_o3||"BR"!==_n8.nodeName||$(_n8,_i8,t)||_o3.removeChild(_n8);}}n.takeRecords();}null!==o&&(u&&Oi(o),i&&qi(t)&&o.insertRawText(f));});}finally{B=!1;}}function V(t){var e=t._observer;if(null!==e){j(t,e.takeRecords(),e);}}function H(t){!function(t){0===z&&oo(t).addEventListener("textInput",W,!0);}(t),t._observer=new MutationObserver(function(e,n){j(t,e,n);});}function Y(t){return t;}var q=function q(t,e){this.key=t,this.parse=e.parse.bind(e),this.unparse=(e.unparse||Y).bind(e),this.isEqual=(e.isEqual||Object.is).bind(e),this.defaultValue=this.parse(void 0);};function G(t,e,n){if(n===void 0){n="latest";}var r=("latest"===n?t.getLatest():t).__state;return r?r.getValue(e):e.defaultValue;}var X=function(){function X(t,e,n,r,i){if(e===void 0){e=new Map();}if(n===void 0){n=void 0;}if(r===void 0){r=new Map();}if(i===void 0){i=void 0;}this.node=t,this.sharedConfigMap=e,this.unknownState=n,this.knownState=r;var o=void 0!==i?i:function(t,e,n){var r=n.size;if(e)for(var _i9 in e){var _e9=t.get(_i9);_e9&&n.has(_e9)||r++;}return r;}(e,n,r);this.size=o;}var _proto=X.prototype;_proto.getValue=function getValue(t){var e=this.knownState.get(t);if(void 0!==e)return e;this.sharedConfigMap.set(t.key,t);var n=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){var _e10=this.unknownState[t.key];void 0!==_e10&&(n=t.parse(_e10)),this.updateFromKnown(t,n);}return n;};_proto.getInternalState=function getInternalState(){return[this.unknownState,this.knownState];};_proto.toJSON=function toJSON(){var _ref9;var t=babelHelpers["extends"]({},this.unknownState);for(var _iterator3=this.knownState,_isArray3=Array.isArray(_iterator3),_i10=0,_iterator3=_isArray3?_iterator3:_iterator3[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref8;if(_isArray3){if(_i10>=_iterator3.length)break;_ref8=_iterator3[_i10++];}else{_i10=_iterator3.next();if(_i10.done)break;_ref8=_i10.value;}var _ref10=_ref8;var _e11=_ref10[0];var _n9=_ref10[1];_e11.isEqual(_n9,_e11.defaultValue)?delete t[_e11.key]:t[_e11.key]=_e11.unparse(_n9);}return Q(t)?(_ref9={},_ref9[F]=t,_ref9):{};};_proto.getWritable=function getWritable(t){if(this.node===t)return this;var e=new Map(this.knownState),n=Q(r=this.unknownState)&&babelHelpers["extends"]({},r);var r;if(n){for(var _iterator4=e.keys(),_isArray4=Array.isArray(_iterator4),_i11=0,_iterator4=_isArray4?_iterator4:_iterator4[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref11;if(_isArray4){if(_i11>=_iterator4.length)break;_ref11=_iterator4[_i11++];}else{_i11=_iterator4.next();if(_i11.done)break;_ref11=_i11.value;}var _t7=_ref11;delete n[_t7.key];}}return new X(t,this.sharedConfigMap,Q(n),e,this.size);};_proto.updateFromKnown=function updateFromKnown(t,e){var n=t.key;this.sharedConfigMap.set(n,t);var r=this.knownState,i=this.unknownState;r.has(t)||i&&n in i||this.size++,r.set(t,e);};_proto.updateFromUnknown=function updateFromUnknown(t,e){var n=this.sharedConfigMap.get(t);n?this.updateFromKnown(n,n.parse(e)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=e);};_proto.updateFromJSON=function updateFromJSON(t){var e=this.knownState;for(var _iterator5=e.keys(),_isArray5=Array.isArray(_iterator5),_i12=0,_iterator5=_isArray5?_iterator5:_iterator5[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref12;if(_isArray5){if(_i12>=_iterator5.length)break;_ref12=_iterator5[_i12++];}else{_i12=_iterator5.next();if(_i12.done)break;_ref12=_i12.value;}var _t8=_ref12;e.set(_t8,_t8.defaultValue);}if(this.size=e.size,this.unknownState={},t){var _arr=Object.entries(t);for(var _i13=0;_i13<_arr.length;_i13++){var _ref14=_arr[_i13];var _e12=_ref14[0];var _n10=_ref14[1];this.updateFromUnknown(_e12,_n10);}}this.unknownState=Q(this.unknownState);};return X;}();function Q(t){if(t)for(var _e13 in t){return t;}}function Z(t){var e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new X(e);return e.__state=n,n;}function tt(t,e){var n=t.__mode,r=t.__format,i=t.__style,o=e.__mode,s=e.__format,l=e.__style,c=t.__state,a=e.__state;return(null===n||n===o)&&(null===r||r===s)&&(null===i||i===l)&&(null===t.__state||c===a||function(t,e){if(t===e)return!0;if(t&&e&&t.size!==e.size)return!1;var n=new Set(),r=function r(t,e){for(var _iterator6=t.knownState,_isArray6=Array.isArray(_iterator6),_i14=0,_iterator6=_isArray6?_iterator6:_iterator6[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref16;if(_isArray6){if(_i14>=_iterator6.length)break;_ref16=_iterator6[_i14++];}else{_i14=_iterator6.next();if(_i14.done)break;_ref16=_i14.value;}var _ref17=_ref16;var _r6=_ref17[0];var _i15=_ref17[1];if(n.has(_r6.key))continue;n.add(_r6.key);var _t9=e?e.getValue(_r6):_r6.defaultValue;if(_t9!==_i15&&!_r6.isEqual(_t9,_i15))return!0;}return!1;},i=function i(t,e){var r=t.unknownState,i=e?e.unknownState:void 0;if(r){var _arr2=Object.entries(r);for(var _i16=0;_i16<_arr2.length;_i16++){var _ref19=_arr2[_i16];var _t10=_ref19[0];var _e14=_ref19[1];if(!n.has(_t10)&&(n.add(_t10),_e14!==(i?i[_t10]:void 0)))return!0;}}return!1;};return!(t&&r(t,e)||e&&r(e,t)||t&&i(t,e)||e&&i(e,t));}(c,a));}function et(t,e){var n=t.mergeWithSibling(e),r=kr()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n;}function nt(t){var e,n,r=t;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(e=r.getPreviousSibling())&&Dn(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(""!==e.__text){if(tt(e,r)){r=et(e,r);break;}break;}e.remove();}for(;null!==(n=r.getNextSibling())&&Dn(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(tt(r,n)){r=et(r,n);break;}break;}n.remove();}}else r.remove();}function rt(t){return it(t.anchor),it(t.focus),t;}function it(t){for(;"element"===t.type;){var _e15=t.getNode(),_n11=t.offset;var _r7=void 0,_i17=void 0;if(_n11===_e15.getChildrenSize()?(_r7=_e15.getChildAtIndex(_n11-1),_i17=!0):(_r7=_e15.getChildAtIndex(_n11),_i17=!1),Dn(_r7)){t.set(_r7.__key,_i17?_r7.getTextContentSize():0,"text",!0);break;}if(!$r(_r7))break;t.set(_r7.__key,_i17?_r7.getChildrenSize():0,"element",!0);}}var ot,st,lt,ct,at,ut,ft,dt,ht,gt,pt="",_t="",mt=null,yt="",xt="",Ct=!1,St=!1,Tt=null;function vt(t,e){var n=ft.get(t);if(null!==e){var _n12=Wt(t);_n12.parentNode===e&&e.removeChild(_n12);}if(dt.has(t)||st._keyToDOMMap["delete"](t),$r(n)){var _t11=It(n,ft);Nt(_t11,0,_t11.length-1,null);}void 0!==n&&Vi(gt,lt,ct,n,"destroyed");}function Nt(t,e,n,r){var i=e;for(;i<=n;++i){var _e16=t[i];void 0!==_e16&&vt(_e16,r);}}function kt(t,e){t.setProperty("text-align",e);}var bt="40px";function Et(t,e){var n=ot.theme.indent;if("string"==typeof n){var _r8=t.classList.contains(n);e>0&&!_r8?t.classList.add(n):e<1&&_r8&&t.classList.remove(n);}var r=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||bt;t.style.setProperty("padding-inline-start",0===e?"":"calc("+e+" * "+r+")");}function wt(t,e){var n=t.style;0===e?kt(n,""):1===e?kt(n,"left"):2===e?kt(n,"center"):3===e?kt(n,"right"):4===e?kt(n,"justify"):5===e?kt(n,"start"):6===e&&kt(n,"end");}function Ot(e,n){var r=dt.get(e);void 0===r&&t(60);var i=r.createDOM(ot,st);if(function(t,e,n){var r=n._keyToDOMMap;(function(t,e,n){var r="__lexicalKey_"+e._key;t[r]=n;})(e,n,t),r.set(t,e);}(e,i,st),Dn(r)?i.setAttribute("data-lexical-text","true"):Jr(r)&&i.setAttribute("data-lexical-decorator","true"),$r(r)){var _t12=r.__indent,_e17=r.__size;if(0!==_t12&&Et(i,_t12),0!==_e17){var _t13=_e17-1;!function(t,e,n,r){var i=_t;_t="",Mt(t,n,0,e,n.getDOMSlot(r)),Pt(n,r),_t=i;}(It(r,dt),_t13,r,i);}var _n13=r.__format;0!==_n13&&wt(i,_n13),r.isInline()||Dt(null,r,i),Xi(r)&&(pt+=N,xt+=N);}else{var _t14=r.getTextContent();if(Jr(r)){var _t15=r.decorate(st,ot);null!==_t15&&Rt(e,_t15),i.contentEditable="false";}else Dn(r)&&(r.isDirectionless()||(_t+=_t14));pt+=_t14,xt+=_t14;}return null!==n&&n.insertChild(i),Vi(gt,lt,ct,r,"created"),i;}function Mt(t,e,n,r,i){var o=pt;pt="";var s=n;for(;s<=r;++s){Ot(t[s],i);var _e18=dt.get(t[s]);null!==_e18&&Dn(_e18)&&(null===mt&&(mt=_e18.getFormat()),""===yt&&(yt=_e18.getStyle()));}Xi(e)&&(pt+=N);i.element.__lexicalTextContent=pt,pt=o+pt;}function At(t,e){if(t){var _n14=t.__last;if(_n14){var _t16=e.get(_n14);if(_t16)return gn(_t16)?"line-break":Jr(_t16)&&_t16.isInline()?"decorator":null;}return"empty";}return null;}function Dt(t,e,n){var r=At(t,ft),i=At(e,dt);r!==i&&e.getDOMSlot(n).setManagedLineBreak(i);}function Pt(t,e){var n=e.__lexicalDirTextContent||"",r=e.__lexicalDir||"";if(n!==_t||r!==Tt){var _n15=""===_t,_i18=_n15?Tt:function(t){if(w.test(t))return"rtl";if(O.test(t))return"ltr";return null;}(_t);if(_i18!==r){var _o4=e.classList,_s3=ot.theme;var _l=null!==r?_s3[r]:void 0,_c=null!==_i18?_s3[_i18]:void 0;if(void 0!==_l){if("string"==typeof _l){var _t17=d(_l);_l=_s3[r]=_t17;}_o4.remove.apply(_o4,_l);}if(null===_i18||_n15&&"ltr"===_i18)e.removeAttribute("dir");else{if(void 0!==_c){if("string"==typeof _c){var _t18=d(_c);_c=_s3[_i18]=_t18;}void 0!==_c&&_o4.add.apply(_o4,_c);}e.dir=_i18;}if(!St){t.getWritable().__dir=_i18;}}Tt=_i18,e.__lexicalDirTextContent=_t,e.__lexicalDir=_i18;}}function Lt(e,n,r){var i=_t;var o;_t="",mt=null,yt="",function(e,n,r){var i=pt,o=e.__size,s=n.__size;pt="";var l=r.element;if(1===o&&1===s){var _t19=e.__first,_r9=n.__first;if(_t19===_r9)Ft(_t19,l);else{var _e19=Wt(_t19),_n16=Ot(_r9,null);try{l.replaceChild(_n16,_e19);}catch(i){if("object"==typeof i&&null!=i){var _o5=i.toString()+" Parent: "+l.tagName+", new child: {tag: "+_n16.tagName+" key: "+_r9+"}, old child: {tag: "+_e19.tagName+", key: "+_t19+"}.";throw new Error(_o5);}throw i;}vt(_t19,null);}var _i19=dt.get(_r9);Dn(_i19)&&(null===mt&&(mt=_i19.getFormat()),""===yt&&(yt=_i19.getStyle()));}else{var _i20=It(e,ft),_c2=It(n,dt);if(_i20.length!==o&&t(227),_c2.length!==s&&t(228),0===o)0!==s&&Mt(_c2,n,0,s-1,r);else if(0===s){if(0!==o){var _t20=null==r.after&&null==r.before&&null==r.element.__lexicalLineBreak;Nt(_i20,0,o-1,_t20?null:l),_t20&&(l.textContent="");}}else!function(t,e,n,r,i,o){var s=r-1,l=i-1;var c,a,u=o.getFirstChild(),f=0,d=0;for(;f<=s&&d<=l;){var _t21=e[f],_r10=n[d];if(_t21===_r10)u=Bt(Ft(_r10,o.element)),f++,d++;else{void 0===c&&(c=new Set(e)),void 0===a&&(a=new Set(n));var _i22=a.has(_t21),_s4=c.has(_r10);if(_i22){if(_s4){var _t22=Qi(st,_r10);_t22===u?u=Bt(Ft(_r10,o.element)):(o.withBefore(u).insertChild(_t22),Ft(_r10,o.element)),f++,d++;}else Ot(_r10,o.withBefore(u)),d++;}else u=Bt(Wt(_t21)),vt(_t21,o.element),f++;}var _i21=dt.get(_r10);null!==_i21&&Dn(_i21)&&(null===mt&&(mt=_i21.getFormat()),""===yt&&(yt=_i21.getStyle()));}var h=f>s,g=d>l;if(h&&!g){var _e20=n[l+1],_r11=void 0===_e20?null:st.getElementByKey(_e20);Mt(n,t,d,l,o.withBefore(_r11));}else g&&!h&&Nt(e,f,s,o.element);}(n,_i20,_c2,o,s,r);}Xi(n)&&(pt+=N);l.__lexicalTextContent=pt,pt=i+pt;}(e,n,n.getDOMSlot(r)),Pt(n,r),o=n,null==mt||mt===o.__textFormat||St||o.setTextFormat(mt),function(t){""===yt||yt===t.__textStyle||St||t.setTextStyle(yt);}(n),_t=i;}function It(e,n){var r=[];var i=e.__first;for(;null!==i;){var _e21=n.get(i);void 0===_e21&&t(101),r.push(i),i=_e21.__next;}return r;}function Ft(e,n){var r=ft.get(e);var i=dt.get(e);void 0!==r&&void 0!==i||t(61);var o=Ct||ut.has(e)||at.has(e),s=Qi(st,e);if(r===i&&!o){if($r(r)){var _t23=s.__lexicalTextContent;void 0!==_t23&&(pt+=_t23,xt+=_t23);var _e22=s.__lexicalDirTextContent;void 0!==_e22&&(_t+=_e22);}else{var _t24=r.getTextContent();Dn(r)&&!r.isDirectionless()&&(_t+=_t24),xt+=_t24,pt+=_t24;}return s;}if(r!==i&&o&&Vi(gt,lt,ct,i,"updated"),i.updateDOM(r,s,ot)){var _r12=Ot(e,null);return null===n&&t(62),n.replaceChild(_r12,s),vt(e,null),_r12;}if($r(r)&&$r(i)){var _t25=i.__indent;_t25!==r.__indent&&Et(s,_t25);var _e23=i.__format;_e23!==r.__format&&wt(s,_e23),o&&(Lt(r,i,s),Vr(i)||i.isInline()||Dt(r,i,s)),Xi(i)&&(pt+=N,xt+=N);}else{var _t26=i.getTextContent();if(Jr(i)){var _t27=i.decorate(st,ot);null!==_t27&&Rt(e,_t27);}else Dn(i)&&!i.isDirectionless()&&(_t+=_t26);pt+=_t26,xt+=_t26;}if(!St&&Vr(i)&&i.__cachedText!==xt){var _t28=i.getWritable();_t28.__cachedText=xt,i=_t28;}return s;}function Rt(t,e){var n=st._pendingDecorators;var r=st._decorators;if(null===n){if(r[t]===e)return;n=ki(st);}n[t]=e;}function Bt(t){var e=t.nextSibling;return null!==e&&e===st._blockCursorElement&&(e=e.nextSibling),e;}function zt(t,e,n,r,i,o){pt="",xt="",_t="",Ct=2===r,Tt=null,st=n,ot=n._config,lt=n._nodes,ct=st._listeners.mutation,at=i,ut=o,ft=t._nodeMap,dt=e._nodeMap,St=e._readOnly,ht=new Map(n._keyToDOMMap);var s=new Map();return gt=s,Ft("root",null),st=void 0,lt=void 0,at=void 0,ut=void 0,ft=void 0,dt=void 0,ot=void 0,ht=void 0,gt=void 0,s;}function Wt(e){var n=ht.get(e);return void 0===n&&t(75,e),n;}function $t(t){return{};}var Kt={},Ut={},Jt={},jt={},Vt={},Ht={},Yt={},qt={},Gt={},Xt={},Qt={},Zt={},te={},ee={},ne={},re={},ie={},oe={},se={},le={},ce={},ae={},ue={},fe={},de={},he={},ge={},pe={},_e={},me={},ye={},xe={},Ce={},Se={},Te={},ve={},Ne={},ke={},be={},Ee={},we={},Oe={},Me={},Ae={},De={},Pe=Object.freeze({}),Le=[["keydown",function(t,e){if(Ie=t.timeStamp,Fe=t.key,e.isComposing())return;var n=t.key,o=t.shiftKey,s=t.ctrlKey,l=t.metaKey,c=t.altKey;if(Gi(e,ne,t))return;if(null==n)return;if(Je&&Ki(Fe))return Rr(e,function(){tn(e,je);}),Je=!1,void(je="");if(function(t,e,n,r){return zi(t)&&!e&&!r&&!n;}(n,s,c,l))Gi(e,re,t);else if(function(t,e,n,r,i){return zi(t)&&!r&&!n&&(e||i);}(n,s,o,c,l))Gi(e,ie,t);else if(function(t,e,n,r){return Bi(t)&&!e&&!r&&!n;}(n,s,c,l))Gi(e,oe,t);else if(function(t,e,n,r,i){return Bi(t)&&!r&&!n&&(e||i);}(n,s,o,c,l))Gi(e,se,t);else if(function(t,e,n){return function(t){return"ArrowUp"===t;}(t)&&!e&&!n;}(n,s,l))Gi(e,le,t);else if(function(t,e,n){return function(t){return"ArrowDown"===t;}(t)&&!e&&!n;}(n,s,l))Gi(e,ce,t);else if(function(t,e){return $i(t)&&e;}(n,o))Ke=!0,Gi(e,ae,t);else if(function(t){return" "===t;}(n))Gi(e,ue,t);else if(function(t,e){return r&&e&&"o"===t.toLowerCase();}(n,s))t.preventDefault(),Ke=!0,Gi(e,Vt,!0);else if(function(t,e){return $i(t)&&!e;}(n,o))Ke=!1,Gi(e,ae,t);else if(function(t,e,n,i){if(r)return!e&&!n&&(Ki(t)||"h"===t.toLowerCase()&&i);if(i||e||n)return!1;return Ki(t);}(n,c,l,s))Ki(n)?Gi(e,fe,t):(t.preventDefault(),Gi(e,jt,!0));else if(function(t){return"Escape"===t;}(n))Gi(e,de,t);else if(function(t,e,n,i,o){if(r)return!(n||i||o)&&(Ui(t)||"d"===t.toLowerCase()&&e);if(e||i||o)return!1;return Ui(t);}(n,s,o,c,l))Ui(n)?Gi(e,he,t):(t.preventDefault(),Gi(e,jt,!1));else if(function(t,e,n){return Ki(t)&&(r?e:n);}(n,c,s))t.preventDefault(),Gi(e,Xt,!0);else if(function(t,e,n){return Ui(t)&&(r?e:n);}(n,c,s))t.preventDefault(),Gi(e,Xt,!1);else if(function(t,e){return r&&e&&Ki(t);}(n,l))t.preventDefault(),Gi(e,Qt,!0);else if(function(t,e){return r&&e&&Ui(t);}(n,l))t.preventDefault(),Gi(e,Qt,!1);else if(function(t,e,n,r){return"b"===t.toLowerCase()&&!e&&Wi(n,r);}(n,c,l,s))t.preventDefault(),Gi(e,Zt,"bold");else if(function(t,e,n,r){return"u"===t.toLowerCase()&&!e&&Wi(n,r);}(n,c,l,s))t.preventDefault(),Gi(e,Zt,"underline");else if(function(t,e,n,r){return"i"===t.toLowerCase()&&!e&&Wi(n,r);}(n,c,l,s))t.preventDefault(),Gi(e,Zt,"italic");else if(function(t,e,n,r){return"Tab"===t&&!e&&!n&&!r;}(n,c,s,l))Gi(e,ge,t);else if(function(t,e,n,r){return"z"===t.toLowerCase()&&!e&&Wi(n,r);}(n,o,l,s))t.preventDefault(),Gi(e,te,void 0);else if(function(t,e,n,i){if(r)return"z"===t.toLowerCase()&&n&&e;return"y"===t.toLowerCase()&&i||"z"===t.toLowerCase()&&i&&e;}(n,o,l,s))t.preventDefault(),Gi(e,ee,void 0);else{var _c3=e._editorState._selection;null===_c3||Kn(_c3)?!i&&Ji(n,l,s)&&(t.preventDefault(),Gi(e,ke,t)):!function(t,e,n,i){if(e)return!1;if("c"===t.toLowerCase())return r?n:i;return!1;}(n,o,l,s)?!function(t,e,n,i){if(e)return!1;if("x"===t.toLowerCase())return r?n:i;return!1;}(n,o,l,s)?Ji(n,l,s)&&(t.preventDefault(),Gi(e,ke,t)):(t.preventDefault(),Gi(e,Ne,t)):(t.preventDefault(),Gi(e,ve,t));}(function(t,e,n,r){return t||e||n||r;})(s,o,c,l)&&Gi(e,De,t);}],["pointerdown",function(t,e){var n=t.target,r=t.pointerType;yo(n)&&"touch"!==r&&0===t.button&&Rr(e,function(){oi(n)||($e=!0);});}],["compositionstart",function(t,e){Rr(e,function(){var n=ir();if(Kn(n)&&!e.isComposing()){var _r13=n.anchor,_i23=n.anchor.getNode();xi(_r13.key),(t.timeStamp<Ie+30||"element"===_r13.type||!n.isCollapsed()||_i23.getFormat()!==n.format||Dn(_i23)&&_i23.getStyle()!==n.style)&&Gi(e,Yt,k);}});}],["compositionend",function(t,e){i?Ue=!0:l||!s&&!f?Rr(e,function(){tn(e,t.data);}):(Je=!0,je=t.data);}],["input",function(t,e){t.stopPropagation(),Rr(e,function(){if(mo(t.target)&&oi(t.target))return;var n=ir(),r=t.data,c=Ze(t);if(null!=r&&Kn(n)&&Ye(n,c,r,t.timeStamp,!1)){Ue&&(tn(e,r),Ue=!1);var _c4=n.anchor.getNode(),_a=po(oo(e));if(null===_a)return;var _u=n.isBackward(),_d2=_u?n.anchor.offset:n.focus.offset,_h2=_u?n.focus.offset:n.anchor.offset;o&&!n.isCollapsed()&&Dn(_c4)&&null!==_a.anchorNode&&_c4.getTextContent().slice(0,_d2)+r+_c4.getTextContent().slice(_d2+_h2)===Ii(_a.anchorNode)||Gi(e,Yt,r);var _g2=r.length;i&&_g2>1&&"insertCompositionText"===t.inputType&&!e.isComposing()&&(n.anchor.offset-=_g2),s||l||f||!e.isComposing()||(Ie=0,xi(null));}else{Fi(!1,e,null!==r?r:void 0),Ue&&(tn(e,r||void 0),Ue=!1);}!function(){Tr();var t=kr();V(t);}();},{event:t}),Be=null;}],["click",function(t,e){Rr(e,function(){var n=ir(),r=po(oo(e)),i=or();if(r)if(Kn(n)){var _e24=n.anchor,_o6=_e24.getNode();if("element"===_e24.type&&0===_e24.offset&&n.isCollapsed()&&!Vr(_o6)&&1===Ei().getChildrenSize()&&_o6.getTopLevelElementOrThrow().isEmpty()&&null!==i&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(3===t.detail&&!n.isCollapsed()){if(_o6!==n.focus.getNode()){var _t29=function(t,e){var n=t;for(;n!==Ei()&&null!=n;){if(e(n))return n;n=n.getParent();}return null;}(_o6,function(t){return $r(t)&&!t.isInline();});$r(_t29)&&_t29.select(0);}}}else if("touch"===t.pointerType){var _n17=r.anchorNode;if(mo(_n17)||di(_n17)){Oi(rr(i,r,e,t));}}Gi(e,Jt,t);});}],["cut",Pe],["copy",Pe],["dragstart",Pe],["dragover",Pe],["dragend",Pe],["paste",Pe],["focus",Pe],["blur",Pe],["drop",Pe]];o&&Le.push(["beforeinput",function(e,n){return function(e,n){var r=e.inputType,o=Ze(e);if("deleteCompositionText"===r||i&&qi(n))return;if("insertCompositionText"===r)return;Rr(n,function(){var i=ir();if("deleteContentBackward"===r){if(null===i){var _t30=or();if(!Kn(_t30))return;Oi(_t30.clone());}if(Kn(i)){var _r14=i.anchor.key===i.focus.key;if(s=e.timeStamp,"MediaLast"===Fe&&s<Ie+30&&n.isComposing()&&_r14){if(xi(null),Ie=0,setTimeout(function(){Rr(n,function(){xi(null);});},30),Kn(i)){var _e25=i.anchor.getNode();_e25.markDirty(),Dn(_e25)||t(142),Qe(i,_e25);}}else{xi(null),e.preventDefault();var _t31=i.anchor.getNode(),_o7=_t31.getTextContent(),_s5=_t31.canInsertTextAfter(),_l2=0===i.anchor.offset&&i.focus.offset===_o7.length;var _c5=u&&_r14&&!_l2&&_s5;if(_c5&&i.isCollapsed()&&(_c5=!Jr(Yi(i.anchor,!0))),!_c5){Gi(n,jt,!0);var _t32=ir();u&&Kn(_t32)&&_t32.isCollapsed()&&(Ve=_t32,setTimeout(function(){return Ve=null;}));}}return;}}var s;if(!Kn(i))return;var c=e.data;null!==Be&&Fi(!1,n,Be),i.dirty&&null===Be||!i.isCollapsed()||Vr(i.anchor.getNode())||null===o||i.applyDOMRange(o),Be=null;var a=i.anchor,f=i.focus,d=a.getNode(),h=f.getNode();if("insertText"!==r&&"insertTranspose"!==r)switch(e.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Gi(n,Yt,e);break;case"insertFromComposition":xi(null),Gi(n,Yt,e);break;case"insertLineBreak":xi(null),Gi(n,Vt,!1);break;case"insertParagraph":xi(null),Ke&&!l?(Ke=!1,Gi(n,Vt,!1)):Gi(n,Ht,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Gi(n,qt,e);break;case"deleteByComposition":(function(t,e){return t!==e||$r(t)||$r(e)||!t.isToken()||!e.isToken();})(d,h)&&Gi(n,Gt,e);break;case"deleteByDrag":case"deleteByCut":Gi(n,Gt,e);break;case"deleteContent":Gi(n,jt,!1);break;case"deleteWordBackward":Gi(n,Xt,!0);break;case"deleteWordForward":Gi(n,Xt,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Gi(n,Qt,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Gi(n,Qt,!1);break;case"formatStrikeThrough":Gi(n,Zt,"strikethrough");break;case"formatBold":Gi(n,Zt,"bold");break;case"formatItalic":Gi(n,Zt,"italic");break;case"formatUnderline":Gi(n,Zt,"underline");break;case"historyUndo":Gi(n,te,void 0);break;case"historyRedo":Gi(n,ee,void 0);}else{if("\n"===c)e.preventDefault(),Gi(n,Vt,!1);else if(c===N)e.preventDefault(),Gi(n,Ht,void 0);else if(null==c&&e.dataTransfer){var _t33=e.dataTransfer.getData("text/plain");e.preventDefault(),i.insertRawText(_t33);}else null!=c&&Ye(i,o,c,e.timeStamp,!0)?(e.preventDefault(),Gi(n,Yt,c)):Be=c;Re=e.timeStamp;}});}(e,n);}]);var Ie=0,Fe=null,Re=0,Be=null;var ze=new WeakMap();var We=!1,$e=!1,Ke=!1,Ue=!1,Je=!1,je="",Ve=null,He=[0,"",0,"root",0];function Ye(t,e,n,r,i){var s=t.anchor,l=t.focus,c=s.getNode(),a=kr(),u=po(oo(a)),f=null!==u?u.anchorNode:null,d=s.key,h=a.getElementByKey(d),g=n.length;return d!==l.key||!Dn(c)||(!i&&(!o||Re<r+50)||c.isDirty()&&g<2||Di(n))&&s.offset!==l.offset&&!c.isComposing()||fi(c)||c.isDirty()&&g>1||(i||!o)&&null!==h&&!c.isComposing()&&f!==gi(h)||null!==u&&null!==e&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||c.getFormat()!==t.format||c.getStyle()!==t.style||function(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;var n=t.anchor.offset,r=e.getParentOrThrow(),i=e.isToken();return 0===n?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||i||function(t){var e=t.getPreviousSibling();return(Dn(e)||$r(e)&&e.isInline())&&!e.canInsertTextAfter();}(e):n===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||i);}(t,c);}function qe(t,e){return di(t)&&null!==t.nodeValue&&0!==e&&e!==t.nodeValue.length;}function Ge(e,n,r){var i=e.anchorNode,o=e.anchorOffset,s=e.focusNode,l=e.focusOffset;We&&(We=!1,qe(i,o)&&qe(s,l)&&!Ve)||Rr(n,function(){if(!r)return void Oi(null);if(!li(n,i,s))return;var c=ir();if(Ve&&Kn(c)&&c.isCollapsed()){var _t34=c.anchor,_e26=Ve.anchor;(_t34.key===_e26.key&&_t34.offset===_e26.offset+1||1===_t34.offset&&_e26.getNode().is(_t34.getNode().getPreviousSibling()))&&(c=Ve.clone(),Oi(c));}if(Ve=null,Kn(c)){var _r15=c.anchor,_i24=_r15.getNode();if(c.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(c.dirty=!0);var _o8=oo(n).event,_s6=_o8?_o8.timeStamp:performance.now(),_He=He,_l3=_He[0],_a2=_He[1],_u2=_He[2],_f=_He[3],_d3=_He[4],_h3=Ei(),_g3=!1===n.isComposing()&&""===_h3.getTextContent();if(_s6<_d3+200&&_r15.offset===_u2&&_r15.key===_f)Xe(c,_l3,_a2);else if("text"===_r15.type)Dn(_i24)||t(141),Qe(c,_i24);else if("element"===_r15.type&&!_g3){$r(_i24)||t(259);var _e27=_r15.getNode();_e27.isEmpty()?function(t,e){var n=e.getTextFormat(),r=e.getTextStyle();Xe(t,n,r);}(c,_e27):Xe(c,0,"");}}else{var _t35=_r15.key,_e28=c.focus.key,_n18=c.getNodes(),_i25=_n18.length,_s7=c.isBackward(),_a3=_s7?l:o,_u3=_s7?o:l,_f2=_s7?_e28:_t35,_d4=_s7?_t35:_e28;var _h4=2047,_g4=!1;for(var _t36=0;_t36<_i25;_t36++){var _e29=_n18[_t36],_r16=_e29.getTextContentSize();if(Dn(_e29)&&0!==_r16&&!(0===_t36&&_e29.__key===_f2&&_a3===_r16||_t36===_i25-1&&_e29.__key===_d4&&0===_u3)&&(_g4=!0,_h4&=_e29.getFormat(),0===_h4))break;}c.format=_g4?_h4:0;}}Gi(n,Kt,void 0);});}function Xe(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0);}function Qe(t,e){Xe(t,e.getFormat(),e.getStyle());}function Ze(t){if(!t.getTargetRanges)return null;var e=t.getTargetRanges();return 0===e.length?null:e[0];}function tn(t,e){var n=t._compositionKey;if(xi(null),null!==n&&null!=e){if(""===e){var _e30=Si(n),_r17=gi(t.getElementByKey(n));return void(null!==_r17&&null!==_r17.nodeValue&&Dn(_e30)&&Ri(_e30,_r17.nodeValue,null,null,!0));}if("\n"===e[e.length-1]){var _e31=ir();if(Kn(_e31)){var _n19=_e31.focus;return _e31.anchor.set(_n19.key,_n19.offset,_n19.type),void Gi(t,ae,null);}}}Fi(!0,t,e);}function en(t){var e=t.__lexicalEventHandles;return void 0===e&&(e=[],t.__lexicalEventHandles=e),e;}var nn=new Map();function rn(t){var e=_o(t.target);if(null===e)return;var n=ai(e.anchorNode);if(null===n)return;$e&&($e=!1,Rr(n,function(){var r=or(),i=e.anchorNode;if(mo(i)||di(i)){Oi(rr(r,e,n,t));}}));var r=Pi(n),i=r[r.length-1],o=i._key,s=nn.get(o),l=s||i;l!==n&&Ge(e,l,!1),Ge(e,n,!0),n!==i?nn.set(o,n):s&&nn["delete"](o);}function on(t){t._lexicalHandled=!0;}function sn(t){return!0===t._lexicalHandled;}var ln=function ln(){};function cn(e){var n=e.ownerDocument,r=ze.get(n);if(void 0===r)return void ln();var i=r-1;i>=0||t(164),ze.set(n,i),0===i&&n.removeEventListener("selectionchange",rn);var o=ui(e);ci(o)?(!function(t){if(null!==t._parentEditor){var _e32=Pi(t),_n20=_e32[_e32.length-1]._key;nn.get(_n20)===t&&nn["delete"](_n20);}else nn["delete"](t._key);}(o),e.__lexicalEditor=null):o&&t(198);var s=en(e);for(var _t37=0;_t37<s.length;_t37++){s[_t37]();}e.__lexicalEventHandles=[];}function an(t,e,n){Tr();var r=t.__key,i=t.getParent();if(null===i)return;var o=function(t){var e=ir();if(!Kn(e)||!$r(t))return e;var n=e.anchor,r=e.focus,i=n.getNode(),o=r.getNode();ro(i,t)&&n.set(t.__key,0,"element");ro(o,t)&&r.set(t.__key,0,"element");return e;}(t);var s=!1;if(Kn(o)&&e){var _e33=o.anchor,_n21=o.focus;_e33.key===r&&(cr(_e33,t,i,t.getPreviousSibling(),t.getNextSibling()),s=!0),_n21.key===r&&(cr(_n21,t,i,t.getPreviousSibling(),t.getNextSibling()),s=!0);}else Jn(o)&&e&&t.isSelected()&&t.selectPrevious();if(Kn(o)&&e&&!s){var _e34=t.getIndexWithinParent();mi(t),sr(o,i,_e34,-1);}else mi(t);n||lo(i)||i.canBeEmpty()||!i.isEmpty()||an(i,e),e&&o&&Vr(i)&&i.isEmpty()&&i.selectEnd();}var un=function(){un.getType=function getType(){t(64,this.name);};un.clone=function clone(e){t(65,this.name);};var _proto2=un.prototype;_proto2.afterCloneFrom=function afterCloneFrom(t){this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state;};function un(t){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),_i(this,t);}_proto2.getType=function getType(){return this.__type;};_proto2.isInline=function isInline(){t(137,this.constructor.name);};_proto2.isAttached=function isAttached(){var t=this.__key;for(;null!==t;){if("root"===t)return!0;var _e35=Si(t);if(null===_e35)break;t=_e35.__parent;}return!1;};_proto2.isSelected=function isSelected(t){var _this14=this;var e=t||ir();if(null==e)return!1;var n=e.getNodes().some(function(t){return t.__key===_this14.__key;});if(Dn(this))return n;if(Kn(e)&&"element"===e.anchor.type&&"element"===e.focus.type){if(e.isCollapsed())return!1;var _t38=this.getParent();if(Jr(this)&&this.isInline()&&_t38){var _n22=e.isBackward()?e.focus:e.anchor;if(_t38.is(_n22.getNode())&&_n22.offset===_t38.getChildrenSize()&&this.is(_t38.getLastChild()))return!1;}}return n;};_proto2.getKey=function getKey(){return this.__key;};_proto2.getIndexWithinParent=function getIndexWithinParent(){var t=this.getParent();if(null===t)return-1;var e=t.getFirstChild(),n=0;for(;null!==e;){if(this.is(e))return n;n++,e=e.getNextSibling();}return-1;};_proto2.getParent=function getParent(){var t=this.getLatest().__parent;return null===t?null:Si(t);};_proto2.getParentOrThrow=function getParentOrThrow(){var e=this.getParent();return null===e&&t(66,this.__key),e;};_proto2.getTopLevelElement=function getTopLevelElement(){var e=this;for(;null!==e;){var _n23=e.getParent();if(lo(_n23))return $r(e)||e===this&&Jr(e)||t(194),e;e=_n23;}return null;};_proto2.getTopLevelElementOrThrow=function getTopLevelElementOrThrow(){var e=this.getTopLevelElement();return null===e&&t(67,this.__key),e;};_proto2.getParents=function getParents(){var t=[];var e=this.getParent();for(;null!==e;){t.push(e),e=e.getParent();}return t;};_proto2.getParentKeys=function getParentKeys(){var t=[];var e=this.getParent();for(;null!==e;){t.push(e.__key),e=e.getParent();}return t;};_proto2.getPreviousSibling=function getPreviousSibling(){var t=this.getLatest().__prev;return null===t?null:Si(t);};_proto2.getPreviousSiblings=function getPreviousSiblings(){var t=[],e=this.getParent();if(null===e)return t;var n=e.getFirstChild();for(;null!==n&&!n.is(this);){t.push(n),n=n.getNextSibling();}return t;};_proto2.getNextSibling=function getNextSibling(){var t=this.getLatest().__next;return null===t?null:Si(t);};_proto2.getNextSiblings=function getNextSiblings(){var t=[];var e=this.getNextSibling();for(;null!==e;){t.push(e),e=e.getNextSibling();}return t;};_proto2.getCommonAncestor=function getCommonAncestor(t){var e=$r(this)?this:this.getParent(),n=$r(t)?t:t.getParent(),r=e&&n?ls(e,n):null;return r?r.commonAncestor:null;};_proto2.is=function is(t){return null!=t&&this.__key===t.__key;};_proto2.isBefore=function isBefore(e){var n=ls(this,e);return null!==n&&("descendant"===n.type||("branch"===n.type?-1===is(n):("same"!==n.type&&"ancestor"!==n.type&&t(279),!1)));};_proto2.isParentOf=function isParentOf(t){var e=ls(this,t);return null!==e&&"ancestor"===e.type;};_proto2.getNodesBetween=function getNodesBetween(e){var n=this.isBefore(e),r=[],i=new Set();var o=this;for(;null!==o;){var _s8=o.__key;if(i.has(_s8)||(i.add(_s8),r.push(o)),o===e)break;var _l4=$r(o)?n?o.getFirstChild():o.getLastChild():null;if(null!==_l4){o=_l4;continue;}var _c6=n?o.getNextSibling():o.getPreviousSibling();if(null!==_c6){o=_c6;continue;}var _a4=o.getParentOrThrow();if(i.has(_a4.__key)||r.push(_a4),_a4===e)break;var _u4=null,_f3=_a4;do{if(null===_f3&&t(68),_u4=n?_f3.getNextSibling():_f3.getPreviousSibling(),_f3=_f3.getParent(),null===_f3)break;null!==_u4||i.has(_f3.__key)||r.push(_f3);}while(null===_u4);o=_u4;}return n||r.reverse(),r;};_proto2.isDirty=function isDirty(){var t=kr()._dirtyLeaves;return null!==t&&t.has(this.__key);};_proto2.getLatest=function getLatest(){var e=Si(this.__key);return null===e&&t(113),e;};_proto2.getWritable=function getWritable(){Tr();var t=Nr(),e=kr(),n=t._nodeMap,r=this.__key,i=this.getLatest(),o=e._cloneNotNeeded,s=ir();if(null!==s&&s.setCachedNodes(null),o.has(r))return yi(i),i;var l=Eo(i);return o.add(r),yi(l),n.set(r,l),l;};_proto2.getTextContent=function getTextContent(){return"";};_proto2.getTextContentSize=function getTextContentSize(){return this.getTextContent().length;};_proto2.createDOM=function createDOM(e,n){t(70);};_proto2.updateDOM=function updateDOM(e,n,r){t(71);};_proto2.exportDOM=function exportDOM(t){return{element:this.createDOM(t._config,t)};};_proto2.exportJSON=function exportJSON(){var t=this.__state?this.__state.toJSON():void 0;return babelHelpers["extends"]({type:this.__type,version:1},t);};un.importJSON=function importJSON(e){t(18,this.name);};_proto2.updateFromJSON=function updateFromJSON(t){return function(t,e){var n=t.getWritable();return(e||n.__state)&&Z(t).updateFromJSON(e),n;}(this,t.$);};un.transform=function transform(){return null;};_proto2.remove=function remove(t){an(this,!0,t);};_proto2.replace=function replace(e,n){Tr();var r=ir();null!==r&&(r=r.clone()),uo(this,e);var i=this.getLatest(),o=this.__key,s=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),a=c.__size;mi(l);var u=i.getPreviousSibling(),f=i.getNextSibling(),d=i.__prev,h=i.__next,g=i.__parent;if(an(i,!1,!0),null===u)c.__first=s;else{u.getWritable().__next=s;}if(l.__prev=d,null===f)c.__last=s;else{f.getWritable().__prev=s;}if(l.__next=h,l.__parent=g,c.__size=a,n&&($r(this)&&$r(l)||t(139),this.getChildren().forEach(function(t){l.append(t);})),Kn(r)){Oi(r);var _t39=r.anchor,_e36=r.focus;_t39.key===o&&Wn(_t39,l),_e36.key===o&&Wn(_e36,l);}return Ci()===o&&xi(s),l;};_proto2.insertAfter=function insertAfter(t,e){if(e===void 0){e=!0;}Tr(),uo(this,t);var n=this.getWritable(),r=t.getWritable(),i=r.getParent(),o=ir();var s=!1,l=!1;if(null!==i){var _e37=t.getIndexWithinParent();if(mi(r),Kn(o)){var _t40=i.__key,_n24=o.anchor,_r18=o.focus;s="element"===_n24.type&&_n24.key===_t40&&_n24.offset===_e37+1,l="element"===_r18.type&&_r18.key===_t40&&_r18.offset===_e37+1;}}var c=this.getNextSibling(),a=this.getParentOrThrow().getWritable(),u=r.__key,f=n.__next;if(null===c)a.__last=u;else{c.getWritable().__prev=u;}if(a.__size++,n.__next=u,r.__next=f,r.__prev=n.__key,r.__parent=n.__parent,e&&Kn(o)){var _t41=this.getIndexWithinParent();sr(o,a,_t41+1);var _e38=a.__key;s&&o.anchor.set(_e38,_t41+2,"element"),l&&o.focus.set(_e38,_t41+2,"element");}return t;};_proto2.insertBefore=function insertBefore(t,e){if(e===void 0){e=!0;}Tr(),uo(this,t);var n=this.getWritable(),r=t.getWritable(),i=r.__key;mi(r);var o=this.getPreviousSibling(),s=this.getParentOrThrow().getWritable(),l=n.__prev,c=this.getIndexWithinParent();if(null===o)s.__first=i;else{o.getWritable().__next=i;}s.__size++,n.__prev=i,r.__prev=l,r.__next=n.__key,r.__parent=n.__parent;var a=ir();if(e&&Kn(a)){sr(a,this.getParentOrThrow(),c);}return t;};_proto2.isParentRequired=function isParentRequired(){return!1;};_proto2.createParentElementNode=function createParentElementNode(){return ti();};_proto2.selectStart=function selectStart(){return this.selectPrevious();};_proto2.selectEnd=function selectEnd(){return this.selectNext(0,0);};_proto2.selectPrevious=function selectPrevious(t,e){Tr();var n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if($r(n))return n.select();if(!Dn(n)){var _t42=n.getIndexWithinParent()+1;return r.select(_t42,_t42);}return n.select(t,e);};_proto2.selectNext=function selectNext(t,e){Tr();var n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if($r(n))return n.select(0,0);if(!Dn(n)){var _t43=n.getIndexWithinParent();return r.select(_t43,_t43);}return n.select(t,e);};_proto2.markDirty=function markDirty(){this.getWritable();};_proto2.reconcileObservedMutation=function reconcileObservedMutation(t,e){this.markDirty();};return un;}();var fn=function(_un){babelHelpers.inheritsLoose(fn,_un);fn.getType=function getType(){return"linebreak";};fn.clone=function clone(t){return new fn(t.__key);};function fn(t){return _un.call(this,t)||this;}var _proto3=fn.prototype;_proto3.getTextContent=function getTextContent(){return"\n";};_proto3.createDOM=function createDOM(){return document.createElement("br");};_proto3.updateDOM=function updateDOM(){return!1;};_proto3.isInline=function isInline(){return!0;};fn.importDOM=function importDOM(){return{br:function br(t){return function(t){var e=t.parentElement;if(null!==e&&So(e)){var _n25=e.firstChild;if(_n25===t||_n25.nextSibling===t&&pn(_n25)){var _n26=e.lastChild;if(_n26===t||_n26.previousSibling===t&&pn(_n26))return!0;}}return!1;}(t)||function(t){var e=t.parentElement;if(null!==e&&So(e)){var _n27=e.firstChild;if(_n27===t||_n27.nextSibling===t&&pn(_n27))return!1;var _r19=e.lastChild;if(_r19===t||_r19.previousSibling===t&&pn(_r19))return!0;}return!1;}(t)?null:{conversion:dn,priority:0};}};};fn.importJSON=function importJSON(t){return hn().updateFromJSON(t);};return fn;}(un);function dn(t){return{node:hn()};}function hn(){return ao(new fn());}function gn(t){return t instanceof fn;}function pn(t){return di(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"");}function _n(t,e){return 16&e?"code":e&_?"mark":32&e?"sub":64&e?"sup":null;}function mn(t,e){return 1&e?"strong":2&e?"em":"span";}function yn(t,e,n,r,i){var o=r.classList;var s=ji(i,"base");void 0!==s&&o.add.apply(o,s),s=ji(i,"underlineStrikethrough");var l=!1;var c=8&e&&4&e;void 0!==s&&(8&n&&4&n?(l=!0,c||o.add.apply(o,s)):c&&o.remove.apply(o,s));for(var _t44 in M){var _r20=M[_t44];if(s=ji(i,_t44),void 0!==s)if(n&_r20){if(l&&("underline"===_t44||"strikethrough"===_t44)){e&_r20&&o.remove.apply(o,s);continue;}e&_r20&&(!c||"underline"!==_t44)&&"strikethrough"!==_t44||o.add.apply(o,s);}else e&_r20&&o.remove.apply(o,s);}}function xn(t,e,n){var r=e.firstChild,o=n.isComposing(),s=t+(o?v:"");if(null==r)e.textContent=s;else{var _t45=r.nodeValue;if(_t45!==s)if(o||i){var _ref20=function(t,e){var n=t.length,r=e.length;var i=0,o=0;for(;i<n&&i<r&&t[i]===e[i];){i++;}for(;o+i<n&&o+i<r&&t[n-o-1]===e[r-o-1];){o++;}return[i,n-i-o,e.slice(i,r-o)];}(_t45,s),_e39=_ref20[0],_n28=_ref20[1],_i26=_ref20[2];0!==_n28&&r.deleteData(_e39,_n28),r.insertData(_e39,_i26);}else r.nodeValue=s;}}function Cn(t,e,n,r,i,o){xn(i,t,e);var s=o.theme.text;void 0!==s&&yn(0,0,r,t,s);}function Sn(t,e){var n=document.createElement(e);return n.appendChild(t),n;}var Tn=function(_un2){babelHelpers.inheritsLoose(Tn,_un2);Tn.getType=function getType(){return"text";};Tn.clone=function clone(t){return new Tn(t.__text,t.__key);};var _proto4=Tn.prototype;_proto4.afterCloneFrom=function afterCloneFrom(t){_un2.prototype.afterCloneFrom.call(this,t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail;};function Tn(t,e){var _this;if(t===void 0){t="";}_this=_un2.call(this,e)||this,_this.__text=t,_this.__format=0,_this.__style="",_this.__mode=0,_this.__detail=0;return _this;}_proto4.getFormat=function getFormat(){return this.getLatest().__format;};_proto4.getDetail=function getDetail(){return this.getLatest().__detail;};_proto4.getMode=function getMode(){var t=this.getLatest();return I[t.__mode];};_proto4.getStyle=function getStyle(){return this.getLatest().__style;};_proto4.isToken=function isToken(){return 1===this.getLatest().__mode;};_proto4.isComposing=function isComposing(){return this.__key===Ci();};_proto4.isSegmented=function isSegmented(){return 2===this.getLatest().__mode;};_proto4.isDirectionless=function isDirectionless(){return!!(1&this.getLatest().__detail);};_proto4.isUnmergeable=function isUnmergeable(){return!!(2&this.getLatest().__detail);};_proto4.hasFormat=function hasFormat(t){var e=M[t];return!!(this.getFormat()&e);};_proto4.isSimpleText=function isSimpleText(){return"text"===this.__type&&0===this.__mode;};_proto4.getTextContent=function getTextContent(){return this.getLatest().__text;};_proto4.getFormatFlags=function getFormatFlags(t,e){return pi(this.getLatest().__format,t,e);};_proto4.canHaveFormat=function canHaveFormat(){return!0;};_proto4.isInline=function isInline(){return!0;};_proto4.createDOM=function createDOM(t,e){var n=this.__format,r=_n(0,n),i=mn(0,n),o=null===r?i:r,s=document.createElement(o);var l=s;this.hasFormat("code")&&s.setAttribute("spellcheck","false"),null!==r&&(l=document.createElement(i),s.appendChild(l));Cn(l,this,0,n,this.__text,t);var c=this.__style;return""!==c&&(s.style.cssText=c),s;};_proto4.updateDOM=function updateDOM(e,n,r){var i=this.__text,o=e.__format,s=this.__format,l=_n(0,o),c=_n(0,s),a=mn(0,o),u=mn(0,s);if((null===l?a:l)!==(null===c?u:c))return!0;if(l===c&&a!==u){var _e40=n.firstChild;null==_e40&&t(48);var _o9=document.createElement(u);return Cn(_o9,this,0,s,i,r),n.replaceChild(_o9,_e40),!1;}var f=n;null!==c&&null!==l&&(f=n.firstChild,null==f&&t(49)),xn(i,f,this);var d=r.theme.text;void 0!==d&&o!==s&&yn(0,o,s,f,d);var h=e.__style,g=this.__style;return h!==g&&(n.style.cssText=g),!1;};Tn.importDOM=function importDOM(){return{"#text":function text(){return{conversion:En,priority:0};},b:function b(){return{conversion:Nn,priority:0};},code:function code(){return{conversion:Mn,priority:0};},em:function em(){return{conversion:Mn,priority:0};},i:function i(){return{conversion:Mn,priority:0};},mark:function mark(){return{conversion:Mn,priority:0};},s:function s(){return{conversion:Mn,priority:0};},span:function span(){return{conversion:vn,priority:0};},strong:function strong(){return{conversion:Mn,priority:0};},sub:function sub(){return{conversion:Mn,priority:0};},sup:function sup(){return{conversion:Mn,priority:0};},u:function u(){return{conversion:Mn,priority:0};}};};Tn.importJSON=function importJSON(t){return An().updateFromJSON(t);};_proto4.updateFromJSON=function updateFromJSON(t){return _un2.prototype.updateFromJSON.call(this,t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style);};_proto4.exportDOM=function exportDOM(e){var _un2$prototype$export=_un2.prototype.exportDOM.call(this,e),n=_un2$prototype$export.element;return mo(n)||t(132),n.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(n=Sn(n,"b")),this.hasFormat("italic")&&(n=Sn(n,"i")),this.hasFormat("strikethrough")&&(n=Sn(n,"s")),this.hasFormat("underline")&&(n=Sn(n,"u")),{element:n};};_proto4.exportJSON=function exportJSON(){return babelHelpers["extends"]({detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent()},_un2.prototype.exportJSON.call(this));};_proto4.selectionTransform=function selectionTransform(t,e){};_proto4.setFormat=function setFormat(t){var e=this.getWritable();return e.__format="string"==typeof t?M[t]:t,e;};_proto4.setDetail=function setDetail(t){var e=this.getWritable();return e.__detail="string"==typeof t?A[t]:t,e;};_proto4.setStyle=function setStyle(t){var e=this.getWritable();return e.__style=t,e;};_proto4.toggleFormat=function toggleFormat(t){var e=pi(this.getFormat(),t,null);return this.setFormat(e);};_proto4.toggleDirectionless=function toggleDirectionless(){var t=this.getWritable();return t.__detail^=1,t;};_proto4.toggleUnmergeable=function toggleUnmergeable(){var t=this.getWritable();return t.__detail^=2,t;};_proto4.setMode=function setMode(t){var e=L[t];if(this.__mode===e)return this;var n=this.getWritable();return n.__mode=e,n;};_proto4.setTextContent=function setTextContent(t){if(this.__text===t)return this;var e=this.getWritable();return e.__text=t,e;};_proto4.select=function select(t,e){Tr();var n=t,r=e;var i=ir(),o=this.getTextContent(),s=this.__key;if("string"==typeof o){var _t46=o.length;void 0===n&&(n=_t46),void 0===r&&(r=_t46);}else n=0,r=0;if(!Kn(i))return tr(s,n,s,r,"text","text");{var _t47=Ci();_t47!==i.anchor.key&&_t47!==i.focus.key||xi(s),i.setTextNodeRange(this,n,this,r);}return i;};_proto4.selectStart=function selectStart(){return this.select(0,0);};_proto4.selectEnd=function selectEnd(){var t=this.getTextContentSize();return this.select(t,t);};_proto4.spliceText=function spliceText(t,e,n,r){var i=this.getWritable(),o=i.__text,s=n.length;var l=t;l<0&&(l=s+l,l<0&&(l=0));var c=ir();if(r&&Kn(c)){var _e41=t+s;c.setTextNodeRange(i,_e41,i,_e41);}var a=o.slice(0,l)+n+o.slice(l+e);return i.__text=a,i;};_proto4.canInsertTextBefore=function canInsertTextBefore(){return!0;};_proto4.canInsertTextAfter=function canInsertTextAfter(){return!0;};_proto4.splitText=function splitText(){Tr();var e=this.getLatest(),n=e.getTextContent();if(""===n)return[];var r=e.__key,i=Ci(),o=n.length;for(var _len3=arguments.length,t=new Array(_len3),_key3=0;_key3<_len3;_key3++){t[_key3]=arguments[_key3];}t.sort(function(t,e){return t-e;}),t.push(o);var s=[],l=t.length;for(var _e42=0,_r21=0;_e42<o&&_r21<=l;_r21++){var _i27=t[_r21];_i27>_e42&&(s.push(n.slice(_e42,_i27)),_e42=_i27);}var c=s.length;if(1===c)return[e];var a=s[0],u=e.getParent();var f;var d=e.getFormat(),h=e.getStyle(),g=e.__detail;var p=!1,_=null,m=null;var y=ir();if(Kn(y)){var _ref21=y.isBackward()?[y.focus,y.anchor]:[y.anchor,y.focus],_t48=_ref21[0],_e43=_ref21[1];"text"===_t48.type&&_t48.key===r&&(_=_t48),"text"===_e43.type&&_e43.key===r&&(m=_e43);}e.isSegmented()?(f=An(a),f.__format=d,f.__style=h,f.__detail=g,p=!0):(f=e.getWritable(),f.__text=a);var x=[f];for(var _t49=1;_t49<c;_t49++){var _e44=An(s[_t49]);_e44.__format=d,_e44.__style=h,_e44.__detail=g;var _n29=_e44.__key;i===r&&xi(_n29),x.push(_e44);}var C=_?_.offset:null,S=m?m.offset:null;var T=0;for(var _i28=0;_i28<x.length;_i28++){var _t51=x[_i28];if(!_&&!m)break;var _e46=T+_t51.getTextContentSize();if(null!==_&&null!==C&&C<=_e46&&C>=T&&(_.set(_t51.getKey(),C-T,"text"),C<_e46&&(_=null)),null!==m&&null!==S&&S<=_e46&&S>=T){m.set(_t51.getKey(),S-T,"text");break;}T=_e46;}if(null!==u){!function(t){var e=t.getPreviousSibling(),n=t.getNextSibling();null!==e&&yi(e);null!==n&&yi(n);}(this);var _t50=u.getWritable(),_e45=this.getIndexWithinParent();p?(_t50.splice(_e45,0,x),this.remove()):_t50.splice(_e45,1,x),Kn(y)&&sr(y,u,_e45,c-1);}return x;};_proto4.mergeWithSibling=function mergeWithSibling(e){var n=e===this.getPreviousSibling();n||e===this.getNextSibling()||t(50);var r=this.__key,i=e.__key,o=this.__text,s=o.length;Ci()===i&&xi(r);var l=ir();if(Kn(l)){var _t52=l.anchor,_o10=l.focus;null!==_t52&&_t52.key===i&&ar(_t52,n,r,e,s),null!==_o10&&_o10.key===i&&ar(_o10,n,r,e,s);}var c=e.__text,a=n?c+o:o+c;this.setTextContent(a);var u=this.getWritable();return e.remove(),u;};_proto4.isTextEntity=function isTextEntity(){return!1;};return Tn;}(un);function vn(t){return{forChild:Pn(t.style),node:null};}function Nn(t){var e=t,n="normal"===e.style.fontWeight;return{forChild:Pn(e.style,n?void 0:"bold"),node:null};}var kn=new WeakMap();function bn(t){if(!mo(t))return!1;if("PRE"===t.nodeName)return!0;var e=t.style.whiteSpace;return"string"==typeof e&&e.startsWith("pre");}function En(e){var n=e;null===e.parentElement&&t(129);var r=n.textContent||"";if(null!==function(t){var e,n=t.parentNode;var r=[t];for(;null!==n&&void 0===(e=kn.get(n))&&!bn(n);){r.push(n),n=n.parentNode;}var i=void 0===e?n:e;for(var _t53=0;_t53<r.length;_t53++){kn.set(r[_t53],i);}return i;}(n)){var _t54=r.split(/(\r?\n|\t)/),_e47=[],_n30=_t54.length;for(var _r22=0;_r22<_n30;_r22++){var _n31=_t54[_r22];"\n"===_n31||"\r\n"===_n31?_e47.push(hn()):"\t"===_n31?_e47.push(In()):""!==_n31&&_e47.push(An(_n31));}return{node:_e47};}if(r=r.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===r)return{node:null};if(" "===r[0]){var _t55=n,_e48=!0;for(;null!==_t55&&null!==(_t55=wn(_t55,!1));){var _n32=_t55.textContent||"";if(_n32.length>0){/[ \t\n]$/.test(_n32)&&(r=r.slice(1)),_e48=!1;break;}}_e48&&(r=r.slice(1));}if(" "===r[r.length-1]){var _t56=n,_e49=!0;for(;null!==_t56&&null!==(_t56=wn(_t56,!0));){if((_t56.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){_e49=!1;break;}}_e49&&(r=r.slice(0,r.length-1));}return""===r?{node:null}:{node:An(r)};}function wn(t,e){var n=t;for(;;){var _t57=void 0;for(;null===(_t57=e?n.nextSibling:n.previousSibling);){var _t58=n.parentElement;if(null===_t58)return null;n=_t58;}if(n=_t57,mo(n)){var _t59=n.style.display;if(""===_t59&&!Co(n)||""!==_t59&&!_t59.startsWith("inline"))return null;}var _r23=n;for(;null!==(_r23=e?n.firstChild:n.lastChild);){n=_r23;}if(di(n))return n;if("BR"===n.nodeName)return null;}}var On={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Mn(t){var e=On[t.nodeName.toLowerCase()];return void 0===e?{node:null}:{forChild:Pn(t.style,e),node:null};}function An(t){if(t===void 0){t="";}return ao(new Tn(t));}function Dn(t){return t instanceof Tn;}function Pn(t,e){var n=t.fontWeight,r=t.textDecoration.split(" "),i="700"===n||"bold"===n,o=r.includes("line-through"),s="italic"===t.fontStyle,l=r.includes("underline"),c=t.verticalAlign;return function(t){return Dn(t)?(i&&!t.hasFormat("bold")&&t.toggleFormat("bold"),o&&!t.hasFormat("strikethrough")&&t.toggleFormat("strikethrough"),s&&!t.hasFormat("italic")&&t.toggleFormat("italic"),l&&!t.hasFormat("underline")&&t.toggleFormat("underline"),"sub"!==c||t.hasFormat("subscript")||t.toggleFormat("subscript"),"super"!==c||t.hasFormat("superscript")||t.toggleFormat("superscript"),e&&!t.hasFormat(e)&&t.toggleFormat(e),t):t;};}var Ln=function(_Tn){babelHelpers.inheritsLoose(Ln,_Tn);Ln.getType=function getType(){return"tab";};Ln.clone=function clone(t){return new Ln(t.__key);};function Ln(t){var _this2;_this2=_Tn.call(this,"\t",t)||this,_this2.__detail=2;return _this2;}Ln.importDOM=function importDOM(){return null;};var _proto5=Ln.prototype;_proto5.createDOM=function createDOM(t){var e=_Tn.prototype.createDOM.call(this,t),n=ji(t.theme,"tab");if(void 0!==n){var _e$classList;(_e$classList=e.classList).add.apply(_e$classList,n);}return e;};Ln.importJSON=function importJSON(t){return In().updateFromJSON(t);};_proto5.setTextContent=function setTextContent(e){return"\t"!==e&&""!==e&&t(126),_Tn.prototype.setTextContent.call(this,e);};_proto5.setDetail=function setDetail(e){return 2!==e&&t(127),this;};_proto5.setMode=function setMode(e){return"normal"!==e&&t(128),this;};_proto5.canInsertTextBefore=function canInsertTextBefore(){return!1;};_proto5.canInsertTextAfter=function canInsertTextAfter(){return!1;};return Ln;}(Tn);function In(){return ao(new Ln());}function Fn(t){return t instanceof Ln;}var Rn=function(){function Rn(t,e,n){this._selection=null,this.key=t,this.offset=e,this.type=n;}var _proto6=Rn.prototype;_proto6.is=function is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type;};_proto6.isBefore=function isBefore(t){if(this.key===t.key)return this.offset<t.offset;return rs(ms(cs(this,"next")),ms(cs(t,"next")))<0;};_proto6.getNode=function getNode(){var e=Si(this.key);return null===e&&t(20),e;};_proto6.set=function set(t,e,n,r){var i=this._selection,o=this.key;r&&this.key===t&&this.offset===e&&this.type===n||(this.key=t,this.offset=e,this.type=n,Sr()||(Ci()===o&&xi(t),null!==i&&(i.setCachedNodes(null),i.dirty=!0)));};return Rn;}();function Bn(t,e,n){return new Rn(t,e,n);}function zn(t,e){var n=e.__key,r=t.offset,i="element";if(Dn(e)){i="text";var _t60=e.getTextContentSize();r>_t60&&(r=_t60);}else if(!$r(e)){var _t61=e.getNextSibling();if(Dn(_t61))n=_t61.__key,r=0,i="text";else{var _t62=e.getParent();_t62&&(n=_t62.__key,r=e.getIndexWithinParent()+1);}}t.set(n,r,i);}function Wn(t,e){if($r(e)){var _n33=e.getLastDescendant();$r(_n33)||Dn(_n33)?zn(t,_n33):zn(t,e);}else zn(t,e);}var $n=function(){function $n(t){this._cachedNodes=null,this._nodes=t,this.dirty=!1;}var _proto7=$n.prototype;_proto7.getCachedNodes=function getCachedNodes(){return this._cachedNodes;};_proto7.setCachedNodes=function setCachedNodes(t){this._cachedNodes=t;};_proto7.is=function is(t){if(!Jn(t))return!1;var e=this._nodes,n=t._nodes;return e.size===n.size&&Array.from(e).every(function(t){return n.has(t);});};_proto7.isCollapsed=function isCollapsed(){return!1;};_proto7.isBackward=function isBackward(){return!1;};_proto7.getStartEndPoints=function getStartEndPoints(){return null;};_proto7.add=function add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null;};_proto7["delete"]=function _delete(t){this.dirty=!0,this._nodes["delete"](t),this._cachedNodes=null;};_proto7.clear=function clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null;};_proto7.has=function has(t){return this._nodes.has(t);};_proto7.clone=function clone(){return new $n(new Set(this._nodes));};_proto7.extract=function extract(){return this.getNodes();};_proto7.insertRawText=function insertRawText(t){};_proto7.insertText=function insertText(){};_proto7.insertNodes=function insertNodes(t){var e=this.getNodes(),n=e.length,r=e[n-1];var i;if(Dn(r))i=r.select();else{var _t63=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(_t63,_t63);}i.insertNodes(t);for(var _t64=0;_t64<n;_t64++){e[_t64].remove();}};_proto7.getNodes=function getNodes(){var t=this._cachedNodes;if(null!==t)return t;var e=this._nodes,n=[];for(var _iterator7=e,_isArray7=Array.isArray(_iterator7),_i29=0,_iterator7=_isArray7?_iterator7:_iterator7[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref22;if(_isArray7){if(_i29>=_iterator7.length)break;_ref22=_iterator7[_i29++];}else{_i29=_iterator7.next();if(_i29.done)break;_ref22=_i29.value;}var _t65=_ref22;var _e50=Si(_t65);null!==_e50&&n.push(_e50);}return Sr()||(this._cachedNodes=n),n;};_proto7.getTextContent=function getTextContent(){var t=this.getNodes();var e="";for(var _n34=0;_n34<t.length;_n34++){e+=t[_n34].getTextContent();}return e;};_proto7.deleteNodes=function deleteNodes(){var t=this.getNodes();if((ir()||or())===this&&t[0]){var _e51=Jo(t[0],"next");us(es(_e51,_e51));}for(var _iterator8=t,_isArray8=Array.isArray(_iterator8),_i30=0,_iterator8=_isArray8?_iterator8:_iterator8[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref23;if(_isArray8){if(_i30>=_iterator8.length)break;_ref23=_iterator8[_i30++];}else{_i30=_iterator8.next();if(_i30.done)break;_ref23=_i30.value;}var _e52=_ref23;_e52.remove();}};return $n;}();function Kn(t){return t instanceof Un;}var Un=function(){function Un(t,e,n,r){this.anchor=t,this.focus=e,t._selection=this,e._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1;}var _proto8=Un.prototype;_proto8.getCachedNodes=function getCachedNodes(){return this._cachedNodes;};_proto8.setCachedNodes=function setCachedNodes(t){this._cachedNodes=t;};_proto8.is=function is(t){return!!Kn(t)&&this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style;};_proto8.isCollapsed=function isCollapsed(){return this.anchor.is(this.focus);};_proto8.getNodes=function getNodes(){var t=this._cachedNodes;if(null!==t)return t;var e=function(t){var e=[],_t$getTextSlices=t.getTextSlices(),n=_t$getTextSlices[0],r=_t$getTextSlices[1];n&&e.push(n.caret.origin);var i=new Set(),o=new Set();for(var _iterator9=t,_isArray9=Array.isArray(_iterator9),_i31=0,_iterator9=_isArray9?_iterator9:_iterator9[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref24;if(_isArray9){if(_i31>=_iterator9.length)break;_ref24=_iterator9[_i31++];}else{_i31=_iterator9.next();if(_i31.done)break;_ref24=_i31.value;}var _n37=_ref24;if(Wo(_n37)){var _t67=_n37.origin;0===e.length?i.add(_t67):(o.add(_t67),e.push(_t67));}else{var _t68=_n37.origin;$r(_t68)&&o.has(_t68)||e.push(_t68);}}r&&e.push(r.caret.origin);if(zo(t.focus)&&$r(t.focus.origin)&&null===t.focus.getNodeAtCaret())for(var _n35=Yo(t.focus.origin,"previous");Wo(_n35)&&i.has(_n35.origin)&&!_n35.origin.isEmpty()&&_n35.origin.is(e[e.length-1]);_n35=Go(_n35)){i["delete"](_n35.origin),e.pop();}for(;e.length>1;){var _t66=e[e.length-1];if(!$r(_t66)||o.has(_t66)||_t66.isEmpty()||i.has(_t66))break;e.pop();}if(0===e.length&&t.isCollapsed()){var _n36=ms(t.anchor),_r24=ms(t.anchor.getFlipped()),_i32=function _i32(t){return Bo(t)?t.origin:t.getNodeAtCaret();},_o11=_i32(_n36)||_i32(_r24)||(t.anchor.getNodeAtCaret()?_n36.origin:_r24.origin);e.push(_o11);}return e;}(Cs(ds(this),"next"));return Sr()||(this._cachedNodes=e),e;};_proto8.setTextNodeRange=function setTextNodeRange(t,e,n,r){this.anchor.set(t.__key,e,"text"),this.focus.set(n.__key,r,"text");};_proto8.getTextContent=function getTextContent(){var t=this.getNodes();if(0===t.length)return"";var e=t[0],n=t[t.length-1],r=this.anchor,i=this.focus,o=r.isBefore(i),_Vn=Vn(this),s=_Vn[0],l=_Vn[1];var c="",a=!0;for(var _u5=0;_u5<t.length;_u5++){var _f4=t[_u5];if($r(_f4)&&!_f4.isInline())a||(c+="\n"),a=!_f4.isEmpty();else if(a=!1,Dn(_f4)){var _t69=_f4.getTextContent();_f4===e?_f4===n?"element"===r.type&&"element"===i.type&&i.offset!==r.offset||(_t69=s<l?_t69.slice(s,l):_t69.slice(l,s)):_t69=o?_t69.slice(s):_t69.slice(l):_f4===n&&(_t69=o?_t69.slice(0,l):_t69.slice(0,s)),c+=_t69;}else!Jr(_f4)&&!gn(_f4)||_f4===n&&this.isCollapsed()||(c+=_f4.getTextContent());}return c;};_proto8.applyDOMRange=function applyDOMRange(t){var e=kr(),n=e.getEditorState()._selection,r=Zn(t.startContainer,t.startOffset,t.endContainer,t.endOffset,e,n);if(null===r)return;var i=r[0],o=r[1];this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(o.key,o.offset,o.type,!0),rt(this);};_proto8.clone=function clone(){var t=this.anchor,e=this.focus;return new Un(Bn(t.key,t.offset,t.type),Bn(e.key,e.offset,e.type),this.format,this.style);};_proto8.toggleFormat=function toggleFormat(t){this.format=pi(this.format,t,null),this.dirty=!0;};_proto8.setStyle=function setStyle(t){this.style=t,this.dirty=!0;};_proto8.hasFormat=function hasFormat(t){var e=M[t];return!!(this.format&e);};_proto8.insertRawText=function insertRawText(t){var e=t.split(/(\r?\n|\t)/),n=[],r=e.length;for(var _t70=0;_t70<r;_t70++){var _r25=e[_t70];"\n"===_r25||"\r\n"===_r25?n.push(hn()):"\t"===_r25?n.push(In()):n.push(An(_r25));}this.insertNodes(n);};_proto8.insertText=function insertText(e){var n=this.anchor,r=this.focus,i=this.format,o=this.style;var s=n,l=r;!this.isCollapsed()&&r.isBefore(n)&&(s=r,l=n),"element"===s.type&&function(t,e,n,r){var i=t.getNode(),o=i.getChildAtIndex(t.offset),s=An(),l=Vr(i)?ti().append(s):s;s.setFormat(n),s.setStyle(r),null===o?i.append(l):o.insertBefore(l),t.is(e)&&e.set(s.__key,0,"text"),t.set(s.__key,0,"text");}(s,l,i,o),"element"===l.type&&as(l,ms(cs(l,"next")));var c=s.offset;var a=l.offset;var u=this.getNodes(),f=u.length;var d=u[0];Dn(d)||t(26);var h=d.getTextContent().length,g=d.getParentOrThrow();var p=u[f-1];if(1===f&&"element"===l.type&&(a=h,l.set(s.key,a,"text")),this.isCollapsed()&&c===h&&(d.isSegmented()||d.isToken()||!d.canInsertTextAfter()||!g.canInsertTextAfter()&&null===d.getNextSibling())){var _t71=d.getNextSibling();if(Dn(_t71)&&_t71.canInsertTextBefore()&&!fi(_t71)||(_t71=An(),_t71.setFormat(i),_t71.setStyle(o),g.canInsertTextAfter()?d.insertAfter(_t71):g.insertAfter(_t71)),_t71.select(0,0),d=_t71,""!==e)return void this.insertText(e);}else if(this.isCollapsed()&&0===c&&(d.isSegmented()||d.isToken()||!d.canInsertTextBefore()||!g.canInsertTextBefore()&&null===d.getPreviousSibling())){var _t72=d.getPreviousSibling();if(Dn(_t72)&&!fi(_t72)||(_t72=An(),_t72.setFormat(i),g.canInsertTextBefore()?d.insertBefore(_t72):g.insertBefore(_t72)),_t72.select(),d=_t72,""!==e)return void this.insertText(e);}else if(d.isSegmented()&&c!==h){var _t73=An(d.getTextContent());_t73.setFormat(i),d.replace(_t73),d=_t73;}else if(!this.isCollapsed()&&""!==e){var _t74=p.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||$r(_t74)&&(!_t74.canInsertTextBefore()||!_t74.canInsertTextAfter()))return this.insertText(""),Qn(this.anchor,this.focus,null),void this.insertText(e);}if(1===f){if(d.isToken()){var _t76=An(e);return _t76.select(),void d.replace(_t76);}var _t75=d.getFormat(),_n38=d.getStyle();if(c!==a||_t75===i&&_n38===o){if(Fn(d)){var _t77=An(e);return _t77.setFormat(i),_t77.setStyle(o),_t77.select(),void d.replace(_t77);}}else{if(""!==d.getTextContent()){var _t78=An(e);if(_t78.setFormat(i),_t78.setStyle(o),_t78.select(),0===c)d.insertBefore(_t78,!1);else{var _d$splitText=d.splitText(c),_e53=_d$splitText[0];_e53.insertAfter(_t78,!1);}return void(_t78.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length));}d.setFormat(i),d.setStyle(o);}var _r26=a-c;d=d.spliceText(c,_r26,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(d.isComposing()?this.anchor.offset-=e.length:(this.format=_t75,this.style=_n38));}else{var _t79=new Set([].concat(d.getParentKeys(),p.getParentKeys())),_n39=$r(d)?d:d.getParentOrThrow();var _r27=$r(p)?p:p.getParentOrThrow(),_i33=p;if(!_n39.is(_r27)&&_r27.isInline())do{_i33=_r27,_r27=_r27.getParentOrThrow();}while(_r27.isInline());if("text"===l.type&&(0!==a||""===p.getTextContent())||"element"===l.type&&p.getIndexWithinParent()<a){if(Dn(p)&&!p.isToken()&&a!==p.getTextContentSize()){if(p.isSegmented()){var _t80=An(p.getTextContent());p.replace(_t80),p=_t80;}Vr(l.getNode())||"text"!==l.type||(p=p.spliceText(0,a,"")),_t79.add(p.__key);}else{var _t81=p.getParentOrThrow();_t81.canBeEmpty()||1!==_t81.getChildrenSize()?p.remove():_t81.remove();}}else _t79.add(p.__key);var _o12=_r27.getChildren(),_s9=new Set(u),_g5=_n39.is(_r27),_3=_n39.isInline()&&null===d.getNextSibling()?_n39:d;for(var _t82=_o12.length-1;_t82>=0;_t82--){var _e54=_o12[_t82];if(_e54.is(d)||$r(_e54)&&_e54.isParentOf(d))break;_e54.isAttached()&&(!_s9.has(_e54)||_e54.is(_i33)?_g5||_3.insertAfter(_e54,!1):_e54.remove());}if(!_g5){var _e55=_r27,_n40=null;for(;null!==_e55;){var _r28=_e55.getChildren(),_i34=_r28.length;(0===_i34||_r28[_i34-1].is(_n40))&&(_t79["delete"](_e55.__key),_n40=_e55),_e55=_e55.getParent();}}if(d.isToken()){if(c===h)d.select();else{var _t83=An(e);_t83.select(),d.replace(_t83);}}else d=d.spliceText(c,h-c,e,!0),""===d.getTextContent()?d.remove():d.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length);for(var _e56=1;_e56<f;_e56++){var _n41=u[_e56],_r29=_n41.__key;_t79.has(_r29)||_n41.remove();}}};_proto8.removeText=function removeText(){var t=ir()===this;fs(this,_s(ds(this))),t&&ir()!==this&&Oi(this);};_proto8.formatText=function formatText(t,e){var _d$splitText2,_$splitText;if(e===void 0){e=null;}if(this.isCollapsed())return this.toggleFormat(t),void xi(null);var n=this.getNodes(),r=[];for(var _iterator10=n,_isArray10=Array.isArray(_iterator10),_i35=0,_iterator10=_isArray10?_iterator10:_iterator10[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref25;if(_isArray10){if(_i35>=_iterator10.length)break;_ref25=_iterator10[_i35++];}else{_i35=_iterator10.next();if(_i35.done)break;_ref25=_i35.value;}var _t85=_ref25;Dn(_t85)&&r.push(_t85);}var i=function i(e){n.forEach(function(n){if($r(n)){var _r30=n.getFormatFlags(t,e);n.setTextFormat(_r30);}});},o=r.length;if(0===o)return this.toggleFormat(t),xi(null),void i(e);var s=this.anchor,l=this.focus,c=this.isBackward(),a=c?l:s,u=c?s:l;var f=0,d=r[0],h="element"===a.type?0:a.offset;if("text"===a.type&&h===d.getTextContentSize()&&(f=1,d=r[1],h=0),null==d)return;var g=d.getFormatFlags(t,e);i(g);var p=o-1;var _=r[p];var m="text"===u.type?u.offset:_.getTextContentSize();if(d.is(_)){if(h===m)return;if(fi(d)||0===h&&m===d.getTextContentSize())d.setFormat(g);else{var _t84=d.splitText(h,m),_e57=0===h?_t84[0]:_t84[1];_e57.setFormat(g),"text"===a.type&&a.set(_e57.__key,0,"text"),"text"===u.type&&u.set(_e57.__key,m-h,"text");}return void(this.format=g);}0===h||fi(d)||((_d$splitText2=d.splitText(h),d=_d$splitText2[1],_d$splitText2),h=0),d.setFormat(g);var y=_.getFormatFlags(t,g);m>0&&(m===_.getTextContentSize()||fi(_)||(_$splitText=_.splitText(m),_=_$splitText[0],_$splitText),_.setFormat(y));for(var _e58=f+1;_e58<p;_e58++){var _n42=r[_e58],_i36=_n42.getFormatFlags(t,y);_n42.setFormat(_i36);}"text"===a.type&&a.set(d.__key,h,"text"),"text"===u.type&&u.set(_.__key,m,"text"),this.format=g|y;};_proto8.insertNodes=function insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();var _n43=ir();return Kn(_n43)||t(134),_n43.insertNodes(e);}var n=(this.isBackward()?this.focus:this.anchor).getNode(),r=vo(n,To),i=e[e.length-1];if($r(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else{var _t86=dr(this);r.splice(_t86,0,e),i.selectEnd();}return;}if(!e.some(function(t){return($r(t)||Jr(t))&&!t.isInline();})){$r(r)||t(211,n.constructor.name,n.getType());var _o13=dr(this);return r.splice(_o13,0,e),void i.selectEnd();}var o=function(t){var e=ti();var n=null;for(var _r31=0;_r31<t.length;_r31++){var _i37=t[_r31],_o14=gn(_i37);if(_o14||Jr(_i37)&&_i37.isInline()||$r(_i37)&&_i37.isInline()||Dn(_i37)||_i37.isParentRequired()){if(null===n&&(n=_i37.createParentElementNode(),e.append(n),_o14))continue;null!==n&&n.append(_i37);}else e.append(_i37),n=null;}return e;}(e),s=o.getLastDescendant(),l=o.getChildren(),c=!$r(r)||!r.isEmpty()?this.insertParagraph():null,a=l[l.length-1];var u=l[0];var f;$r(f=u)&&To(f)&&!f.isEmpty()&&$r(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&($r(r)||t(211,n.constructor.name,n.getType()),r.append.apply(r,u.getChildren()),u=l[1]),u&&(null===r&&t(212,n.constructor.name,n.getType()),function(e,n){var r=n.getParentOrThrow().getLastChild();var i=n;var o=[n];for(;i!==r;){i.getNextSibling()||t(140),i=i.getNextSibling(),o.push(i);}var s=e;for(var _i38=0;_i38<o.length;_i38++){var _t87=o[_i38];s=s.insertAfter(_t87);}}(r,u));var d=vo(s,To);c&&$r(d)&&(c.canMergeWhenEmpty()||To(a))&&(d.append.apply(d,c.getChildren()),c.remove()),$r(r)&&r.isEmpty()&&r.remove(),s.selectEnd();var h=$r(r)?r.getLastChild():null;gn(h)&&d!==r&&h.remove();};_proto8.insertParagraph=function insertParagraph(){if("root"===this.anchor.key){var _t88=ti();return Ei().splice(this.anchor.offset,0,[_t88]),_t88.select(),_t88;}var e=dr(this),n=vo(this.anchor.getNode(),To);$r(n)||t(213);var r=n.getChildAtIndex(e),i=r?[r].concat(r.getNextSiblings()):[],o=n.insertNewAfter(this,!1);return o?(o.append.apply(o,i),o.selectStart(),o):null;};_proto8.insertLineBreak=function insertLineBreak(t){var e=hn();if(this.insertNodes([e]),t){var _t89=e.getParentOrThrow(),_n44=e.getIndexWithinParent();_t89.select(_n44,_n44);}};_proto8.extract=function extract(){var t=this.getNodes(),e=t.length,n=e-1,r=this.anchor,i=this.focus;var o=t[0],s=t[n];var _Vn2=Vn(this),l=_Vn2[0],c=_Vn2[1];if(0===e)return[];if(1===e){if(Dn(o)&&!this.isCollapsed()){var _t90=l>c?c:l,_e59=l>c?l:c,_n45=o.splitText(_t90,_e59),_r32=0===_t90?_n45[0]:_n45[1];return null!=_r32?[_r32]:[];}return[o];}var a=r.isBefore(i);if(Dn(o)){var _o$splitText;var _e60=a?l:c;_e60===o.getTextContentSize()?t.shift():0!==_e60&&((_o$splitText=o.splitText(_e60),o=_o$splitText[1],_o$splitText),t[0]=o);}if(Dn(s)){var _s$splitText;var _e61=s.getTextContent().length,_r33=a?c:l;0===_r33?t.pop():_r33!==_e61&&((_s$splitText=s.splitText(_r33),s=_s$splitText[0],_s$splitText),t[n]=s);}return t;};_proto8.modify=function modify(t,e,n){if(gr(this,t,e,n))return;var r="move"===t,i=kr(),o=po(oo(i));if(!o)return;var s=i._blockCursorElement,l=i._rootElement,c=this.focus.getNode();if(null===l||null===s||!$r(c)||c.isInline()||c.canBeEmpty()||go(s,i,l),this.dirty){var _t91=Qi(i,this.anchor.key),_e62=Qi(i,this.focus.key);"text"===this.anchor.type&&(_t91=gi(_t91)),"text"===this.focus.type&&(_e62=gi(_e62)),_t91&&_e62&&ur(o,_t91,this.anchor.offset,_e62,this.focus.offset);}if(function(t,e,n,r){t.modify(e,n,r);}(o,t,e?"backward":"forward",n),o.rangeCount>0){var _t92=o.getRangeAt(0),_n46=this.anchor.getNode(),_i39=Vr(_n46)?_n46:so(_n46);if(this.applyDOMRange(_t92),this.dirty=!0,!r){var _n47=this.getNodes(),_r34=[];var _s10=!1;for(var _t93=0;_t93<_n47.length;_t93++){var _e63=_n47[_t93];ro(_e63,_i39)?_r34.push(_e63):_s10=!0;}if(_s10&&_r34.length>0)if(e){var _t94=_r34[0];$r(_t94)?_t94.selectStart():_t94.getParentOrThrow().selectStart();}else{var _t95=_r34[_r34.length-1];$r(_t95)?_t95.selectEnd():_t95.getParentOrThrow().selectEnd();}o.anchorNode===_t92.startContainer&&o.anchorOffset===_t92.startOffset||function(t){var e=t.focus,n=t.anchor,r=n.key,i=n.offset,o=n.type;n.set(e.key,e.offset,e.type,!0),e.set(r,i,o,!0);}(this);}}"lineboundary"===n&&gr(this,t,e,n,"decorators");};_proto8.forwardDeletion=function forwardDeletion(t,e,n){if(!n&&("element"===t.type&&$r(e)&&t.offset===e.getChildrenSize()||"text"===t.type&&t.offset===e.getTextContentSize())){var _t96=e.getParent(),_n48=e.getNextSibling()||(null===_t96?null:_t96.getNextSibling());if($r(_n48)&&_n48.isShadowRoot())return!0;}return!1;};_proto8.deleteCharacter=function deleteCharacter(t){var e=this.isCollapsed();if(this.isCollapsed()){var _e64=this.anchor;var _n49=_e64.getNode();if(this.forwardDeletion(_e64,_n49,t))return;var _r35=Zo(cs(_e64,t?"previous":"next"));if(_r35.getTextSlices().every(function(t){return null===t||0===t.distance;})){var _t97={type:"initial"};for(var _iterator11=_r35.iterNodeCarets("shadowRoot"),_isArray11=Array.isArray(_iterator11),_i41=0,_iterator11=_isArray11?_iterator11:_iterator11[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref26;if(_isArray11){if(_i41>=_iterator11.length)break;_ref26=_iterator11[_i41++];}else{_i41=_iterator11.next();if(_i41.done)break;_ref26=_i41.value;}var _e66=_ref26;if(Wo(_e66)){if(_e66.origin.isInline());else{if(_e66.origin.isShadowRoot()){if("merge-block"===_t97.type)break;if($r(_r35.anchor.origin)&&_r35.anchor.origin.isEmpty()){var _t99=ms(_e66);fs(this,es(_t99,_t99)),_r35.anchor.origin.remove();}return;}"merge-next-block"!==_t97.type&&"merge-block"!==_t97.type||(_t97={block:_t97.block,caret:_e66,type:"merge-block"});}}else{if("merge-block"===_t97.type)break;if(zo(_e66)){if($r(_e66.origin)){if(_e66.origin.isInline()){if(!_e66.origin.isParentOf(_r35.anchor.origin))break;}else _t97={block:_e66.origin,type:"merge-next-block"};continue;}if(Jr(_e66.origin)){if(_e66.origin.isIsolated());else if("merge-next-block"===_t97.type&&(_e66.origin.isKeyboardSelectable()||!_e66.origin.isInline())&&$r(_r35.anchor.origin)&&_r35.anchor.origin.isEmpty()){_r35.anchor.origin.remove();var _t100=nr();_t100.add(_e66.origin.getKey()),Oi(_t100);}else _e66.origin.remove();return;}break;}}}if("merge-block"===_t97.type){var _t98=_t97,_e65=_t98.caret,_n50=_t98.block;return fs(this,es(!_e65.origin.isEmpty()&&_n50.isEmpty()?hs(Jo(_n50,_e65.direction)):_r35.anchor,_e65)),this.removeText();}}var _i40=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&0===_e64.offset&&Hn(this,_e64.getNode()))return;}else{var _r36="text"===_i40.type?_i40.getNode():null;if(_n49="text"===_e64.type?_e64.getNode():null,null!==_r36&&_r36.isSegmented()){var _e67=_i40.offset,_o15=_r36.getTextContentSize();if(_r36.is(_n49)||t&&_e67!==_o15||!t&&0!==_e67)return void qn(_r36,t,_e67);}else if(null!==_n49&&_n49.isSegmented()){var _i42=_e64.offset,_o16=_n49.getTextContentSize();if(_n49.is(_r36)||t&&0!==_i42||!t&&_i42!==_o16)return void qn(_n49,t,_i42);}!function(t,e){var n=t.anchor,r=t.focus,i=n.getNode(),o=r.getNode();if(i===o&&"text"===n.type&&"text"===r.type){var _t101=n.offset,_o17=r.offset,_s11=_t101<_o17,_l5=_s11?_t101:_o17,_c7=_s11?_o17:_t101,_a5=_c7-1;if(_l5!==_a5){(function(t){return!(Di(t)||Yn(t));})(i.getTextContent().slice(_l5,_c7))&&(e?r.set(r.key,_a5,r.type):n.set(n.key,_a5,n.type));}}}(this,t);}}if(this.removeText(),t&&!e&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){var _t102=this.anchor.getNode();_t102.isEmpty()&&Vr(_t102.getParent())&&null===_t102.getPreviousSibling()&&Hn(this,_t102);}};_proto8.deleteLine=function deleteLine(t){this.isCollapsed()&&this.modify("extend",t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):this.removeText();};_proto8.deleteWord=function deleteWord(t){if(this.isCollapsed()){var _e68=this.anchor,_n51=_e68.getNode();if(this.forwardDeletion(_e68,_n51,t))return;this.modify("extend",t,"word");}this.removeText();};_proto8.isBackward=function isBackward(){return this.focus.isBefore(this.anchor);};_proto8.getStartEndPoints=function getStartEndPoints(){return[this.anchor,this.focus];};return Un;}();function Jn(t){return t instanceof $n;}function jn(t){var e=t.offset;if("text"===t.type)return e;var n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0;}function Vn(t){var e=t.getStartEndPoints();if(null===e)return[0,0];var n=e[0],r=e[1];return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[jn(n),jn(r)];}function Hn(t,e){for(var _n52=e;_n52;_n52=_n52.getParent()){if($r(_n52)){if(_n52.collapseAtStart(t))return!0;if(lo(_n52))break;}if(_n52.getPreviousSibling())break;}return!1;}var Yn=function(){try{var _t103=new RegExp("\\p{Emoji}","u"),_e69=_t103.test.bind(_t103);if(_e69("❤️")&&_e69("#️⃣")&&_e69("👍"))return _e69;}catch(t){}return function(){return!1;};}();function qn(t,e,n){var r=t,i=r.getTextContent().split(/(?=\s)/g),o=i.length;var s=0,l=0;for(var _t104=0;_t104<o;_t104++){var _r37=_t104===o-1;if(l=s,s+=i[_t104].length,e&&s===n||s>n||_r37){i.splice(_t104,1),_r37&&(l=void 0);break;}}var c=i.join("").trim();""===c?r.remove():(r.setTextContent(c),r.select(l,l));}function Gn(e,n,r,i){var o,s=n;if(mo(e)){var _l6=!1;var _c8=e.childNodes,_a6=_c8.length,_u6=i._blockCursorElement;s===_a6&&(_l6=!0,s=_a6-1);var _f5=_c8[s],_d5=!1;if(_f5===_u6)_f5=_c8[s+1],_d5=!0;else if(null!==_u6){var _t105=_u6.parentNode;if(e===_t105){n>Array.prototype.indexOf.call(_t105.children,_u6)&&s--;}}if(o=Mi(_f5),Dn(o))s=Ai(o,_l6);else{var _c9=Mi(e);if(null===_c9)return null;if($r(_c9)){var _u7$resolveChildIndex;var _a7=i.getElementByKey(_c9.getKey());null===_a7&&t(214);var _u7=_c9.getDOMSlot(_a7);(_u7$resolveChildIndex=_u7.resolveChildIndex(_c9,_a7,e,n),_c9=_u7$resolveChildIndex[0],s=_u7$resolveChildIndex[1],_u7$resolveChildIndex),$r(_c9)||t(215),_l6&&s>=_c9.getChildrenSize()&&(s=Math.max(0,_c9.getChildrenSize()-1));var _f6=_c9.getChildAtIndex(s);if($r(_f6)&&function(t,e,n){var r=t.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode();}(_f6,0,r)){var _t106=_l6?_f6.getLastDescendant():_f6.getFirstDescendant();null===_t106?_c9=_f6:(_f6=_t106,_c9=$r(_f6)?_f6:_f6.getParentOrThrow()),s=0;}Dn(_f6)?(o=_f6,_c9=null,s=Ai(_f6,_l6)):_f6!==_c9&&_l6&&!_d5&&($r(_c9)||t(216),s=Math.min(_c9.getChildrenSize(),s+1));}else{var _t107=_c9.getIndexWithinParent();s=0===n&&Jr(_c9)&&Mi(e)===_c9?_t107:_t107+1,_c9=_c9.getParentOrThrow();}if($r(_c9))return Bn(_c9.__key,s,"element");}}else o=Mi(e);return Dn(o)?Bn(o.__key,s,"text"):null;}function Xn(t,e,n){var r=t.offset,i=t.getNode();if(0===r){var _r38=i.getPreviousSibling(),_o18=i.getParent();if(e){if((n||!e)&&null===_r38&&$r(_o18)&&_o18.isInline()){var _e70=_o18.getPreviousSibling();Dn(_e70)&&t.set(_e70.__key,_e70.getTextContent().length,"text");}}else $r(_r38)&&!n&&_r38.isInline()?t.set(_r38.__key,_r38.getChildrenSize(),"element"):Dn(_r38)&&t.set(_r38.__key,_r38.getTextContent().length,"text");}else if(r===i.getTextContent().length){var _r39=i.getNextSibling(),_o19=i.getParent();if(e&&$r(_r39)&&_r39.isInline())t.set(_r39.__key,0,"element");else if((n||e)&&null===_r39&&$r(_o19)&&_o19.isInline()&&!_o19.canInsertTextAfter()){var _e71=_o19.getNextSibling();Dn(_e71)&&t.set(_e71.__key,0,"text");}}}function Qn(t,e,n){if("text"===t.type&&"text"===e.type){var _r40=t.isBefore(e),_i43=t.is(e);Xn(t,_r40,_i43),Xn(e,!_r40,_i43),_i43&&e.set(t.key,t.offset,t.type);var _o20=kr();if(_o20.isComposing()&&_o20._compositionKey!==t.key&&Kn(n)){var _r41=n.anchor,_i44=n.focus;t.set(_r41.key,_r41.offset,_r41.type,!0),e.set(_i44.key,_i44.offset,_i44.type,!0);}}}function Zn(t,e,n,r,i,o){if(null===t||null===n||!li(i,t,n))return null;var s=Gn(t,e,Kn(o)?o.anchor:null,i);if(null===s)return null;var l=Gn(n,r,Kn(o)?o.focus:null,i);if(null===l)return null;if("element"===s.type&&"element"===l.type){var _e72=Mi(t),_r42=Mi(n);if(Jr(_e72)&&Jr(_r42))return null;}return Qn(s,l,o),[s,l];}function tr(t,e,n,r,i,o){var s=Nr(),l=new Un(Bn(t,e,i),Bn(n,r,o),0,"");return l.dirty=!0,s._selection=l,l;}function er(){var t=Bn("root",0,"element"),e=Bn("root",0,"element");return new Un(t,e,0,"");}function nr(){return new $n(new Set());}function rr(t,e,n,r){var i=n._window;if(null===i)return null;var o=r||i.event,s=o?o.type:void 0,l="selectionchange"===s,c=!B&&(l||"beforeinput"===s||"compositionstart"===s||"compositionend"===s||"click"===s&&o&&3===o.detail||"drop"===s||void 0===s);var a,u,f,d;if(Kn(t)&&!c)return t.clone();if(null===e)return null;if(a=e.anchorNode,u=e.focusNode,f=e.anchorOffset,d=e.focusOffset,l&&Kn(t)&&!li(n,a,u))return t.clone();var h=Zn(a,f,u,d,n,t);if(null===h)return null;var g=h[0],p=h[1];return new Un(g,p,Kn(t)?t.format:0,Kn(t)?t.style:"");}function ir(){return Nr()._selection;}function or(){return kr()._editorState._selection;}function sr(t,e,n,r){if(r===void 0){r=1;}var i=t.anchor,o=t.focus,s=i.getNode(),l=o.getNode();if(!e.is(s)&&!e.is(l))return;var c=e.__key;if(t.isCollapsed()){var _e73=i.offset;if(n<=_e73&&r>0||n<_e73&&r<0){var _n53=Math.max(0,_e73+r);i.set(c,_n53,"element"),o.set(c,_n53,"element"),lr(t);}}else{var _s12=t.isBackward(),_l7=_s12?o:i,_a8=_l7.getNode(),_u8=_s12?i:o,_f7=_u8.getNode();if(e.is(_a8)){var _t108=_l7.offset;(n<=_t108&&r>0||n<_t108&&r<0)&&_l7.set(c,Math.max(0,_t108+r),"element");}if(e.is(_f7)){var _t109=_u8.offset;(n<=_t109&&r>0||n<_t109&&r<0)&&_u8.set(c,Math.max(0,_t109+r),"element");}}lr(t);}function lr(t){var e=t.anchor,n=e.offset,r=t.focus,i=r.offset,o=e.getNode(),s=r.getNode();if(t.isCollapsed()){if(!$r(o))return;var _t110=o.getChildrenSize(),_i45=n>=_t110,_s13=_i45?o.getChildAtIndex(_t110-1):o.getChildAtIndex(n);if(Dn(_s13)){var _t111=0;_i45&&(_t111=_s13.getTextContentSize()),e.set(_s13.__key,_t111,"text"),r.set(_s13.__key,_t111,"text");}}else{if($r(o)){var _t112=o.getChildrenSize(),_r43=n>=_t112,_i46=_r43?o.getChildAtIndex(_t112-1):o.getChildAtIndex(n);if(Dn(_i46)){var _t113=0;_r43&&(_t113=_i46.getTextContentSize()),e.set(_i46.__key,_t113,"text");}}if($r(s)){var _t114=s.getChildrenSize(),_e74=i>=_t114,_n54=_e74?s.getChildAtIndex(_t114-1):s.getChildAtIndex(i);if(Dn(_n54)){var _t115=0;_e74&&(_t115=_n54.getTextContentSize()),r.set(_n54.__key,_t115,"text");}}}}function cr(t,e,n,r,i){var o=null,s=0,l=null;null!==r?(o=r.__key,Dn(r)?(s=r.getTextContentSize(),l="text"):$r(r)&&(s=r.getChildrenSize(),l="element")):null!==i&&(o=i.__key,Dn(i)?l="text":$r(i)&&(l="element")),null!==o&&null!==l?t.set(o,s,l):(s=e.getIndexWithinParent(),-1===s&&(s=n.getChildrenSize()),t.set(n.__key,s,"element"));}function ar(t,e,n,r,i){"text"===t.type?t.set(n,t.offset+(e?0:i),"text"):t.offset>r.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element");}function ur(t,e,n,r,i){try{t.setBaseAndExtent(e,n,r,i);}catch(t){}}function fr(t,e,n,r,i,o,s){var l=r.anchorNode,c=r.focusNode,a=r.anchorOffset,u=r.focusOffset,f=document.activeElement;if(i.has("collaboration")&&f!==o||null!==f&&si(f))return;if(!Kn(e))return void(null!==t&&li(n,l,c)&&r.removeAllRanges());var d=e.anchor,h=e.focus,g=d.key,p=h.key,_=Qi(n,g),m=Qi(n,p),y=d.offset,x=h.offset,C=e.format,S=e.style,T=e.isCollapsed();var v=_,N=m,k=!1;if("text"===d.type){v=gi(_);var _t116=d.getNode();k=_t116.getFormat()!==C||_t116.getStyle()!==S;}else Kn(t)&&"text"===t.anchor.type&&(k=!0);var b,E,w,O,M;if(("text"===h.type&&(N=gi(m)),null!==v&&null!==N)&&(T&&(null===t||k||Kn(t)&&(t.format!==C||t.style!==S))&&(b=C,E=S,w=y,O=g,M=performance.now(),He=[b,E,w,O,M]),a!==y||u!==x||l!==v||c!==N||"Range"===r.type&&T||(null!==f&&o.contains(f)||o.focus({preventScroll:!0}),"element"===d.type))){if(ur(r,v,y,N,x),!i.has("skip-scroll-into-view")&&e.isCollapsed()&&null!==o&&o===document.activeElement){var _t117=Kn(e)&&"element"===e.anchor.type?v.childNodes[y]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==_t117){var _e75;if(_t117 instanceof Text){var _n55=document.createRange();_n55.selectNode(_t117),_e75=_n55.getBoundingClientRect();}else _e75=_t117.getBoundingClientRect();!function(t,e,n){var r=to(n),i=io(r);if(null===r||null===i)return;var o=e.top,s=e.bottom,l=0,c=0,a=n;for(;null!==a;){var _e76=a===r.body;if(_e76)l=0,c=oo(t).innerHeight;else{var _t118=a.getBoundingClientRect();l=_t118.top,c=_t118.bottom;}var _n56=0;if(o<l?_n56=-(l-o):s>c&&(_n56=s-c),0!==_n56)if(_e76)i.scrollBy(0,_n56);else{var _t119=a.scrollTop;a.scrollTop+=_n56;var _e77=a.scrollTop-_t119;o-=_e77,s-=_e77;}if(_e76)break;a=Zi(a);}}(n,_e75,o);}}We=!0;}}function dr(e){var n=e;e.isCollapsed()||n.removeText();var r=ir();Kn(r)&&(n=r),Kn(n)||t(161);var i=n.anchor;var o=i.getNode(),s=i.offset;for(;!To(o);){var _hr;var _t120=o;if((_hr=hr(o,s),o=_hr[0],s=_hr[1],_hr),_t120.is(o))break;}return s;}function hr(t,e){var n=t.getParent();if(!n){var _t121=ti();return Ei().append(_t121),_t121.select(),[Ei(),0];}if(Dn(t)){var _r44=t.splitText(e);if(0===_r44.length)return[n,t.getIndexWithinParent()];var _i47=0===e?0:1;return[n,_r44[0].getIndexWithinParent()+_i47];}if(!$r(t)||0===e)return[n,t.getIndexWithinParent()];var r=t.getChildAtIndex(e);if(r){var _n57=new Un(Bn(t.__key,e,"element"),Bn(t.__key,e,"element"),0,""),_i48=t.insertNewAfter(_n57);_i48&&_i48.append.apply(_i48,[r].concat(r.getNextSiblings()));}return[n,t.getIndexWithinParent()+1];}function gr(t,e,n,r,i){if(i===void 0){i="decorators-and-blocks";}if("move"===e&&"character"===r&&!t.isCollapsed()){var _ref27=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus],_e78=_ref27[0],_r45=_ref27[1];return _r45.set(_e78.key,_e78.offset,_e78.type),!0;}var o=cs(t.focus,n?"previous":"next"),s="lineboundary"===r,l="move"===e;var c=o,a="decorators-and-blocks"===i;if(!ys(c)){for(var _iterator12=c,_isArray12=Array.isArray(_iterator12),_i49=0,_iterator12=_isArray12?_iterator12:_iterator12[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref28;if(_isArray12){if(_i49>=_iterator12.length)break;_ref28=_iterator12[_i49++];}else{_i49=_iterator12.next();if(_i49.done)break;_ref28=_i49.value;}var _t123=_ref28;a=!1;var _e79=_t123.origin;if(!Jr(_e79)||_e79.isIsolated()||(c=_t123,!s||!_e79.isInline()))break;}if(a){for(var _iterator13=Zo(o).iterNodeCarets("extend"===e?"shadowRoot":"root"),_isArray13=Array.isArray(_iterator13),_i50=0,_iterator13=_isArray13?_iterator13:_iterator13[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref29;if(_isArray13){if(_i50>=_iterator13.length)break;_ref29=_iterator13[_i50++];}else{_i50=_iterator13.next();if(_i50.done)break;_ref29=_i50.value;}var _t122=_ref29;if(Wo(_t122))_t122.origin.isInline()||(c=_t122);else{if($r(_t122.origin))continue;Jr(_t122.origin)&&!_t122.origin.isInline()&&(c=_t122);}break;}}}if(c===o)return!1;if(l&&!s&&Jr(c.origin)&&c.origin.isKeyboardSelectable()){var _t124=nr();return _t124.add(c.origin.getKey()),Oi(_t124),!0;}return c=ms(c),l&&as(t.anchor,c),as(t.focus,c),a||!s;}var pr=null,_r=null,mr=!1,yr=!1,xr=0;var Cr={characterData:!0,childList:!0,subtree:!0};function Sr(){return mr||null!==pr&&pr._readOnly;}function Tr(){mr&&t(13);}function vr(){xr>99&&t(14);}function Nr(){return null===pr&&t(195,br()),pr;}function kr(){return null===_r&&t(196,br()),_r;}function br(){var t=0;var e=new Set(),n=ni.version;if("undefined"!=typeof window){for(var _iterator14=document.querySelectorAll("[contenteditable]"),_isArray14=Array.isArray(_iterator14),_i51=0,_iterator14=_isArray14?_iterator14:_iterator14[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref30;if(_isArray14){if(_i51>=_iterator14.length)break;_ref30=_iterator14[_i51++];}else{_i51=_iterator14.next();if(_i51.done)break;_ref30=_i51.value;}var _r46=_ref30;var _i52=ui(_r46);if(ci(_i52))t++;else if(_i52){var _t125=String(_i52.constructor.version||"<0.17.1");_t125===n&&(_t125+=" (separately built, likely a bundler configuration issue)"),e.add(_t125);}}}var r=" Detected on the page: "+t+" compatible editor(s) with version "+n;return e.size&&(r+=" and incompatible editors with versions "+Array.from(e).join(", ")),r;}function Er(){return _r;}function wr(e,n,r){var i=n.__type,o=function(e,n){var r=e._nodes.get(n);void 0===r&&t(30,n);return r;}(e,i);var s=r.get(i);void 0===s&&(s=Array.from(o.transforms),r.set(i,s));var l=s.length;for(var _t126=0;_t126<l&&(s[_t126](n),n.isAttached());_t126++){;}}function Or(t,e){return void 0!==t&&t.__key!==e&&t.isAttached();}function Mr(t,e){if(!e)return;var n=t._updateTags;var r=e;Array.isArray(e)||(r=[e]);for(var _iterator15=r,_isArray15=Array.isArray(_iterator15),_i53=0,_iterator15=_isArray15?_iterator15:_iterator15[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref31;if(_isArray15){if(_i53>=_iterator15.length)break;_ref31=_iterator15[_i53++];}else{_i53=_iterator15.next();if(_i53.done)break;_ref31=_i53.value;}var _t127=_ref31;n.add(_t127);}}function Ar(e,n){var r=e.type,i=n.get(r);void 0===i&&t(17,r);var o=i.klass;e.type!==o.getType()&&t(18,o.name);var s=o.importJSON(e),l=e.children;if($r(s)&&Array.isArray(l))for(var _t128=0;_t128<l.length;_t128++){var _e80=Ar(l[_t128],n);s.append(_e80);}return s;}function Dr(t,e,n){var r=pr,i=mr,o=_r;pr=e,mr=!0,_r=t;try{return n();}finally{pr=r,mr=i,_r=o;}}function Pr(t,e){var n=t._pendingEditorState,r=t._rootElement,i=t._headless||null===r;if(null===n)return;var o=t._editorState,s=o._selection,l=n._selection,c=0!==t._dirtyType,a=pr,u=mr,f=_r,h=t._updating,g=t._observer;var p=null;if(t._pendingEditorState=null,t._editorState=n,!i&&c&&null!==g){_r=t,pr=n,mr=!1,t._updating=!0;try{var _e81=t._dirtyType,_r47=t._dirtyElements,_i54=t._dirtyLeaves;g.disconnect(),p=zt(o,n,t,_e81,_r47,_i54);}catch(e){if(e instanceof Error&&t._onError(e),yr)throw e;return ei(t,null,r,n),H(t),t._dirtyType=2,yr=!0,Pr(t,o),void(yr=!1);}finally{g.observe(r,Cr),t._updating=h,pr=a,mr=u,_r=f;}}n._readOnly||(n._readOnly=!0);var _=t._dirtyLeaves,m=t._dirtyElements,y=t._normalizedNodes,x=t._updateTags,C=t._deferred;c&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set(),t._dirtyElements=new Map(),t._normalizedNodes=new Set(),t._updateTags=new Set()),function(t,e){var n=t._decorators;var r=t._pendingDecorators||n;var i=e._nodeMap;var o;for(o in r){i.has(o)||(r===n&&(r=ki(t)),delete r[o]);}}(t,n);var S=i?null:po(oo(t));if(t._editable&&null!==S&&(c||null===l||l.dirty)&&null!==r&&!x.has("skip-dom-selection")){_r=t,pr=n;try{if(null!==g&&g.disconnect(),c||null===l||l.dirty){var _e82=t._blockCursorElement;null!==_e82&&go(_e82,t,r),fr(s,l,t,S,x,r);}!function(t,e,n){var r=t._blockCursorElement;if(Kn(n)&&n.isCollapsed()&&"element"===n.anchor.type&&e.contains(document.activeElement)){var _i55=n.anchor,_o21=_i55.getNode(),_s14=_i55.offset;var _l8=!1,_c10=null;if(_s14===_o21.getChildrenSize()){ho(_o21.getChildAtIndex(_s14-1))&&(_l8=!0);}else{var _e83=_o21.getChildAtIndex(_s14);if(null!==_e83&&ho(_e83)){var _n58=_e83.getPreviousSibling();(null===_n58||ho(_n58))&&(_l8=!0,_c10=t.getElementByKey(_e83.__key));}}if(_l8){var _n59=t.getElementByKey(_o21.__key);return null===r&&(t._blockCursorElement=r=function(t){var e=t.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");var r=e.blockCursor;if(void 0!==r){var _n$classList;if("string"==typeof r){var _t129=d(r);r=e.blockCursor=_t129;}void 0!==r&&(_n$classList=n.classList).add.apply(_n$classList,r);}return n;}(t._config)),e.style.caretColor="transparent",void(null===_c10?_n59.appendChild(r):_n59.insertBefore(r,_c10));}}null!==r&&go(r,t,e);}(t,r,l);}finally{null!==g&&g.observe(r,Cr),_r=f,pr=a;}}null!==p&&function(t,e,n,r,i){var o=Array.from(t._listeners.mutation),s=o.length;for(var _t130=0;_t130<s;_t130++){var _o$_t=o[_t130],_s15=_o$_t[0],_l9=_o$_t[1],_c11=e.get(_l9);void 0!==_c11&&_s15(_c11,{dirtyLeaves:r,prevEditorState:i,updateTags:n});}}(t,p,x,_,o),Kn(l)||null===l||null!==s&&s.is(l)||t.dispatchCommand(Kt,void 0);var T=t._pendingDecorators;null!==T&&(t._decorators=T,t._pendingDecorators=null,Lr("decorator",t,!0,T)),function(t,e,n){var r=bi(e),i=bi(n);r!==i&&Lr("textcontent",t,!0,i);}(t,e||o,n),Lr("update",t,!0,{dirtyElements:m,dirtyLeaves:_,editorState:n,mutatedNodes:p,normalizedNodes:y,prevEditorState:e||o,tags:x}),function(t,e){if(t._deferred=[],0!==e.length){var _n60=t._updating;t._updating=!0;try{for(var _t131=0;_t131<e.length;_t131++){e[_t131]();}}finally{t._updating=_n60;}}}(t,C),function(t){var e=t._updates;if(0!==e.length){var _n61=e.shift();if(_n61){var _e84=_n61[0],_r48=_n61[1];Fr(t,_e84,_r48);}}}(t);}function Lr(t,e,n){var i=e._updating;e._updating=n;try{var _n62=Array.from(e._listeners[t]);for(var _len4=arguments.length,r=new Array(_len4>3?_len4-3:0),_key4=3;_key4<_len4;_key4++){r[_key4-3]=arguments[_key4];}for(var _t132=0;_t132<_n62.length;_t132++){_n62[_t132].apply(null,r);}}finally{e._updating=i;}}function Ir(e,n){var r=e._updates;var i=n||!1;for(;0!==r.length;){var _n63=r.shift();if(_n63){var _r49=_n63[0],_o22=_n63[1];var _s16=void 0;if(void 0!==_o22){if(_s16=_o22.onUpdate,_o22.skipTransforms&&(i=!0),_o22.discrete){var _n64=e._pendingEditorState;null===_n64&&t(191),_n64._flushSync=!0;}_s16&&e._deferred.push(_s16),Mr(e,_o22.tag);}_r49();}}return i;}function Fr(e,n,r){var i=e._updateTags;var o,s=!1,l=!1;void 0!==r&&(o=r.onUpdate,Mr(e,r.tag),s=r.skipTransforms||!1,l=r.discrete||!1),o&&e._deferred.push(o);var c=e._editorState;var a=e._pendingEditorState,u=!1;(null===a||a._readOnly)&&(a=e._pendingEditorState=Hr(a||c),u=!0),a._flushSync=l;var f=pr,d=mr,h=_r,g=e._updating;pr=a,mr=!1,e._updating=!0,_r=e;var p=e._headless||null===e.getRootElement();try{u&&(p?null!==c._selection&&(a._selection=c._selection.clone()):a._selection=function(t,e){var n=t.getEditorState()._selection,r=po(oo(t));return Kn(n)||null==n?rr(n,r,t,e):n.clone();}(e,r&&r.event||null));var _i56=e._compositionKey;n(),s=Ir(e,s),function(t,e){var n=e.getEditorState()._selection,r=t._selection;if(Kn(r)){var _t133=r.anchor,_e85=r.focus;var _i57;if("text"===_t133.type&&(_i57=_t133.getNode(),_i57.selectionTransform(n,r)),"text"===_e85.type){var _t134=_e85.getNode();_i57!==_t134&&_t134.selectionTransform(n,r);}}}(a,e),0!==e._dirtyType&&(s?function(t,e){var n=e._dirtyLeaves,r=t._nodeMap;for(var _iterator16=n,_isArray16=Array.isArray(_iterator16),_i58=0,_iterator16=_isArray16?_iterator16:_iterator16[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref32;if(_isArray16){if(_i58>=_iterator16.length)break;_ref32=_iterator16[_i58++];}else{_i58=_iterator16.next();if(_i58.done)break;_ref32=_i58.value;}var _t135=_ref32;var _e86=r.get(_t135);Dn(_e86)&&_e86.isAttached()&&_e86.isSimpleText()&&!_e86.isUnmergeable()&&nt(_e86);}}(a,e):function(t,e){var n=e._dirtyLeaves,r=e._dirtyElements,i=t._nodeMap,o=Ci(),s=new Map();var l=n,c=l.size,a=r,u=a.size;for(;c>0||u>0;){if(c>0){e._dirtyLeaves=new Set();for(var _iterator17=l,_isArray17=Array.isArray(_iterator17),_i59=0,_iterator17=_isArray17?_iterator17:_iterator17[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref33;if(_isArray17){if(_i59>=_iterator17.length)break;_ref33=_iterator17[_i59++];}else{_i59=_iterator17.next();if(_i59.done)break;_ref33=_i59.value;}var _t136=_ref33;var _r50=i.get(_t136);Dn(_r50)&&_r50.isAttached()&&_r50.isSimpleText()&&!_r50.isUnmergeable()&&nt(_r50),void 0!==_r50&&Or(_r50,o)&&wr(e,_r50,s),n.add(_t136);}if(l=e._dirtyLeaves,c=l.size,c>0){xr++;continue;}}e._dirtyLeaves=new Set(),e._dirtyElements=new Map(),a["delete"]("root")&&a.set("root",!0);for(var _iterator18=a,_isArray18=Array.isArray(_iterator18),_i60=0,_iterator18=_isArray18?_iterator18:_iterator18[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref34;if(_isArray18){if(_i60>=_iterator18.length)break;_ref34=_iterator18[_i60++];}else{_i60=_iterator18.next();if(_i60.done)break;_ref34=_i60.value;}var _t137=_ref34;var _n65=_t137[0],_l10=_t137[1];if(r.set(_n65,_l10),!_l10)continue;var _c12=i.get(_n65);void 0!==_c12&&Or(_c12,o)&&wr(e,_c12,s);}l=e._dirtyLeaves,c=l.size,a=e._dirtyElements,u=a.size,xr++;}e._dirtyLeaves=n,e._dirtyElements=r;}(a,e),Ir(e),function(t,e,n,r){var i=t._nodeMap,o=e._nodeMap,s=[];for(var _iterator19=r,_isArray19=Array.isArray(_iterator19),_i61=0,_iterator19=_isArray19?_iterator19:_iterator19[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref36;if(_isArray19){if(_i61>=_iterator19.length)break;_ref36=_iterator19[_i61++];}else{_i61=_iterator19.next();if(_i61.done)break;_ref36=_i61.value;}var _ref38=_ref36;var _t138=_ref38[0];var _e87=o.get(_t138);void 0!==_e87&&(_e87.isAttached()||($r(_e87)&&R(_e87,_t138,i,o,s,r),i.has(_t138)||r["delete"](_t138),s.push(_t138)));}for(var _i62=0;_i62<s.length;_i62++){var _t139=s[_i62];o["delete"](_t139);}for(var _iterator20=n,_isArray20=Array.isArray(_iterator20),_i63=0,_iterator20=_isArray20?_iterator20:_iterator20[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref37;if(_isArray20){if(_i63>=_iterator20.length)break;_ref37=_iterator20[_i63++];}else{_i63=_iterator20.next();if(_i63.done)break;_ref37=_i63.value;}var _t140=_ref37;var _e88=o.get(_t140);void 0===_e88||_e88.isAttached()||(i.has(_t140)||n["delete"](_t140),o["delete"](_t140));}}(c,a,e._dirtyLeaves,e._dirtyElements));_i56!==e._compositionKey&&(a._flushSync=!0);var _o23=a._selection;if(Kn(_o23)){var _e89=a._nodeMap,_n66=_o23.anchor.key,_r51=_o23.focus.key;void 0!==_e89.get(_n66)&&void 0!==_e89.get(_r51)||t(19);}else Jn(_o23)&&0===_o23._nodes.size&&(a._selection=null);}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=c,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set(),e._dirtyElements.clear(),void Pr(e);}finally{pr=f,mr=d,_r=h,e._updating=g,xr=0;}var _=0!==e._dirtyType||e._deferred.length>0||function(t,e){var n=e.getEditorState()._selection,r=t._selection;if(null!==r){if(r.dirty||!r.is(n))return!0;}else if(null!==n)return!0;return!1;}(a,e);_?a._flushSync?(a._flushSync=!1,Pr(e)):u&&ii(function(){Pr(e);}):(a._flushSync=!1,u&&(i.clear(),e._deferred=[],e._pendingEditorState=null));}function Rr(t,e,n){_r===t&&void 0===n?e():Fr(t,e,n);}var Br=function(){function Br(t,e,n){this.element=t,this.before=e||null,this.after=n||null;}var _proto9=Br.prototype;_proto9.withBefore=function withBefore(t){return new Br(this.element,t,this.after);};_proto9.withAfter=function withAfter(t){return new Br(this.element,this.before,t);};_proto9.withElement=function withElement(t){return this.element===t?this:new Br(t,this.before,this.after);};_proto9.insertChild=function insertChild(e){var n=this.before||this.getManagedLineBreak();return null!==n&&n.parentElement!==this.element&&t(222),this.element.insertBefore(e,n),this;};_proto9.removeChild=function removeChild(e){return e.parentElement!==this.element&&t(223),this.element.removeChild(e),this;};_proto9.replaceChild=function replaceChild(e,n){return n.parentElement!==this.element&&t(224),this.element.replaceChild(e,n),this;};_proto9.getFirstChild=function getFirstChild(){var t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t;};_proto9.getManagedLineBreak=function getManagedLineBreak(){return this.element.__lexicalLineBreak||null;};_proto9.setManagedLineBreak=function setManagedLineBreak(t){if(null===t)this.removeManagedLineBreak();else{var _e90="decorator"===t&&(l||s);this.insertManagedLineBreak(_e90);}};_proto9.removeManagedLineBreak=function removeManagedLineBreak(){var t=this.getManagedLineBreak();if(t){var _e91=this.element,_n67="IMG"===t.nodeName?t.nextSibling:null;_n67&&_e91.removeChild(_n67),_e91.removeChild(t),_e91.__lexicalLineBreak=void 0;}};_proto9.insertManagedLineBreak=function insertManagedLineBreak(t){var e=this.getManagedLineBreak();if(e){if(t===("IMG"===e.nodeName))return;this.removeManagedLineBreak();}var n=this.element,r=this.before,i=document.createElement("br");if(n.insertBefore(i,r),t){var _t141=document.createElement("img");_t141.setAttribute("data-lexical-linebreak","true"),_t141.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",_t141.alt="",n.insertBefore(_t141,i),n.__lexicalLineBreak=_t141;}else n.__lexicalLineBreak=i;};_proto9.getFirstChildOffset=function getFirstChildOffset(){var t=0;for(var _e92=this.after;null!==_e92;_e92=_e92.previousSibling){t++;}return t;};_proto9.resolveChildIndex=function resolveChildIndex(t,e,n,r){if(n===this.element){var _e93=this.getFirstChildOffset();return[t,Math.min(_e93+t.getChildrenSize(),Math.max(_e93,r))];}var i=zr(e,n);i.push(r);var o=zr(e,this.element);var s=t.getIndexWithinParent();for(var _t142=0;_t142<o.length;_t142++){var _e94=i[_t142],_n68=o[_t142];if(void 0===_e94||_e94<_n68)break;if(_e94>_n68){s+=1;break;}}return[t.getParentOrThrow(),s];};return Br;}();function zr(e,n){var r=[];var i=n;for(;i!==e&&null!==i;i=n.parentNode){var _t143=0;for(var _e95=i.previousSibling;null!==_e95;_e95=_e95.previousSibling){_t143++;}r.push(_t143);}return i!==e&&t(225),r.reverse();}var Wr=function(_un3){babelHelpers.inheritsLoose(Wr,_un3);function Wr(t){var _this3;_this3=_un3.call(this,t)||this,_this3.__first=null,_this3.__last=null,_this3.__size=0,_this3.__format=0,_this3.__style="",_this3.__indent=0,_this3.__dir=null,_this3.__textFormat=0,_this3.__textStyle="";return _this3;}var _proto10=Wr.prototype;_proto10.afterCloneFrom=function afterCloneFrom(t){_un3.prototype.afterCloneFrom.call(this,t),this.__first=t.__first,this.__last=t.__last,this.__size=t.__size,this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle;};_proto10.getFormat=function getFormat(){return this.getLatest().__format;};_proto10.getFormatType=function getFormatType(){var t=this.getFormat();return P[t]||"";};_proto10.getStyle=function getStyle(){return this.getLatest().__style;};_proto10.getIndent=function getIndent(){return this.getLatest().__indent;};_proto10.getChildren=function getChildren(){var t=[];var e=this.getFirstChild();for(;null!==e;){t.push(e),e=e.getNextSibling();}return t;};_proto10.getChildrenKeys=function getChildrenKeys(){var t=[];var e=this.getFirstChild();for(;null!==e;){t.push(e.__key),e=e.getNextSibling();}return t;};_proto10.getChildrenSize=function getChildrenSize(){return this.getLatest().__size;};_proto10.isEmpty=function isEmpty(){return 0===this.getChildrenSize();};_proto10.isDirty=function isDirty(){var t=kr()._dirtyElements;return null!==t&&t.has(this.__key);};_proto10.isLastChild=function isLastChild(){var t=this.getLatest(),e=this.getParentOrThrow().getLastChild();return null!==e&&e.is(t);};_proto10.getAllTextNodes=function getAllTextNodes(){var t=[];var e=this.getFirstChild();for(;null!==e;){if(Dn(e)&&t.push(e),$r(e)){var _n69=e.getAllTextNodes();t.push.apply(t,_n69);}e=e.getNextSibling();}return t;};_proto10.getFirstDescendant=function getFirstDescendant(){var t=this.getFirstChild();for(;$r(t);){var _e96=t.getFirstChild();if(null===_e96)break;t=_e96;}return t;};_proto10.getLastDescendant=function getLastDescendant(){var t=this.getLastChild();for(;$r(t);){var _e97=t.getLastChild();if(null===_e97)break;t=_e97;}return t;};_proto10.getDescendantByIndex=function getDescendantByIndex(t){var e=this.getChildren(),n=e.length;if(t>=n){var _t144=e[n-1];return $r(_t144)&&_t144.getLastDescendant()||_t144||null;}var r=e[t];return $r(r)&&r.getFirstDescendant()||r||null;};_proto10.getFirstChild=function getFirstChild(){var t=this.getLatest().__first;return null===t?null:Si(t);};_proto10.getFirstChildOrThrow=function getFirstChildOrThrow(){var e=this.getFirstChild();return null===e&&t(45,this.__key),e;};_proto10.getLastChild=function getLastChild(){var t=this.getLatest().__last;return null===t?null:Si(t);};_proto10.getLastChildOrThrow=function getLastChildOrThrow(){var e=this.getLastChild();return null===e&&t(96,this.__key),e;};_proto10.getChildAtIndex=function getChildAtIndex(t){var e=this.getChildrenSize();var n,r;if(t<e/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=t;){if(r===t)return n;n=n.getNextSibling(),r++;}return null;}for(n=this.getLastChild(),r=e-1;null!==n&&r>=t;){if(r===t)return n;n=n.getPreviousSibling(),r--;}return null;};_proto10.getTextContent=function getTextContent(){var t="";var e=this.getChildren(),n=e.length;for(var _r52=0;_r52<n;_r52++){var _i64=e[_r52];t+=_i64.getTextContent(),$r(_i64)&&_r52!==n-1&&!_i64.isInline()&&(t+=N);}return t;};_proto10.getTextContentSize=function getTextContentSize(){var t=0;var e=this.getChildren(),n=e.length;for(var _r53=0;_r53<n;_r53++){var _i65=e[_r53];t+=_i65.getTextContentSize(),$r(_i65)&&_r53!==n-1&&!_i65.isInline()&&(t+=2);}return t;};_proto10.getDirection=function getDirection(){return this.getLatest().__dir;};_proto10.getTextFormat=function getTextFormat(){return this.getLatest().__textFormat;};_proto10.hasFormat=function hasFormat(t){if(""!==t){var _e98=D[t];return!!(this.getFormat()&_e98);}return!1;};_proto10.hasTextFormat=function hasTextFormat(t){var e=M[t];return!!(this.getTextFormat()&e);};_proto10.getFormatFlags=function getFormatFlags(t,e){return pi(this.getLatest().__textFormat,t,e);};_proto10.getTextStyle=function getTextStyle(){return this.getLatest().__textStyle;};_proto10.select=function select(t,e){Tr();var n=ir();var r=t,i=e;var o=this.getChildrenSize();if(!this.canBeEmpty())if(0===t&&0===e){var _t145=this.getFirstChild();if(Dn(_t145)||$r(_t145))return _t145.select(0,0);}else if(!(void 0!==t&&t!==o||void 0!==e&&e!==o)){var _t146=this.getLastChild();if(Dn(_t146)||$r(_t146))return _t146.select();}void 0===r&&(r=o),void 0===i&&(i=o);var s=this.__key;return Kn(n)?(n.anchor.set(s,r,"element"),n.focus.set(s,i,"element"),n.dirty=!0,n):tr(s,r,s,i,"element","element");};_proto10.selectStart=function selectStart(){var t=this.getFirstDescendant();return t?t.selectStart():this.select();};_proto10.selectEnd=function selectEnd(){var t=this.getLastDescendant();return t?t.selectEnd():this.select();};_proto10.clear=function clear(){var t=this.getWritable();return this.getChildren().forEach(function(t){return t.remove();}),t;};_proto10.append=function append(){for(var _len5=arguments.length,t=new Array(_len5),_key5=0;_key5<_len5;_key5++){t[_key5]=arguments[_key5];}return this.splice(this.getChildrenSize(),0,t);};_proto10.setDirection=function setDirection(t){var e=this.getWritable();return e.__dir=t,e;};_proto10.setFormat=function setFormat(t){return this.getWritable().__format=""!==t?D[t]:0,this;};_proto10.setStyle=function setStyle(t){return this.getWritable().__style=t||"",this;};_proto10.setTextFormat=function setTextFormat(t){var e=this.getWritable();return e.__textFormat=t,e;};_proto10.setTextStyle=function setTextStyle(t){var e=this.getWritable();return e.__textStyle=t,e;};_proto10.setIndent=function setIndent(t){return this.getWritable().__indent=t,this;};_proto10.splice=function splice(e,n,r){var i=r.length,o=this.getChildrenSize(),s=this.getWritable();e+n<=o||t(226,String(e),String(n),String(o));var l=s.__key,c=[],a=[],u=this.getChildAtIndex(e+n);var f=null,d=o-n+i;if(0!==e)if(e===o)f=this.getLastChild();else{var _t147=this.getChildAtIndex(e);null!==_t147&&(f=_t147.getPreviousSibling());}if(n>0){var _e99=null===f?this.getFirstChild():f.getNextSibling();for(var _r54=0;_r54<n;_r54++){null===_e99&&t(100);var _n70=_e99.getNextSibling(),_r55=_e99.__key;mi(_e99.getWritable()),a.push(_r55),_e99=_n70;}}var h=f;for(var _e100=0;_e100<i;_e100++){var _n71=r[_e100];null!==h&&_n71.is(h)&&(f=h=h.getPreviousSibling());var _i66=_n71.getWritable();_i66.__parent===l&&d--,mi(_i66);var _o24=_n71.__key;if(null===h)s.__first=_o24,_i66.__prev=null;else{var _t148=h.getWritable();_t148.__next=_o24,_i66.__prev=_t148.__key;}_n71.__key===l&&t(76),_i66.__parent=l,c.push(_o24),h=_n71;}if(e+n===o){if(null!==h){h.getWritable().__next=null,s.__last=h.__key;}}else if(null!==u){var _t149=u.getWritable();if(null!==h){var _e101=h.getWritable();_t149.__prev=h.__key,_e101.__next=u.__key;}else _t149.__prev=null;}if(s.__size=d,a.length){var _t150=ir();if(Kn(_t150)){var _e102=new Set(a),_n72=new Set(c),_r56=_t150.anchor,_i67=_t150.focus;Kr(_r56,_e102,_n72)&&cr(_r56,_r56.getNode(),this,f,u),Kr(_i67,_e102,_n72)&&cr(_i67,_i67.getNode(),this,f,u),0!==d||this.canBeEmpty()||lo(this)||this.remove();}}return s;};_proto10.getDOMSlot=function getDOMSlot(t){return new Br(t);};_proto10.exportDOM=function exportDOM(t){var _un3$prototype$export=_un3.prototype.exportDOM.call(this,t),e=_un3$prototype$export.element;if(mo(e)){var _t151=this.getIndent();_t151>0&&(e.style.paddingInlineStart=40*_t151+"px");var _n73=this.getDirection();_n73&&(e.dir=_n73);}return{element:e};};_proto10.exportJSON=function exportJSON(){var t=babelHelpers["extends"]({children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent()},_un3.prototype.exportJSON.call(this)),e=this.getTextFormat(),n=this.getTextStyle();return 0!==e&&(t.textFormat=e),""!==n&&(t.textStyle=n),t;};_proto10.updateFromJSON=function updateFromJSON(t){return _un3.prototype.updateFromJSON.call(this,t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"");};_proto10.insertNewAfter=function insertNewAfter(t,e){return null;};_proto10.canIndent=function canIndent(){return!0;};_proto10.collapseAtStart=function collapseAtStart(t){return!1;};_proto10.excludeFromCopy=function excludeFromCopy(t){return!1;};_proto10.canReplaceWith=function canReplaceWith(t){return!0;};_proto10.canInsertAfter=function canInsertAfter(t){return!0;};_proto10.canBeEmpty=function canBeEmpty(){return!0;};_proto10.canInsertTextBefore=function canInsertTextBefore(){return!0;};_proto10.canInsertTextAfter=function canInsertTextAfter(){return!0;};_proto10.isInline=function isInline(){return!1;};_proto10.isShadowRoot=function isShadowRoot(){return!1;};_proto10.canMergeWith=function canMergeWith(t){return!1;};_proto10.extractWithChild=function extractWithChild(t,e,n){return!1;};_proto10.canMergeWhenEmpty=function canMergeWhenEmpty(){return!1;};_proto10.reconcileObservedMutation=function reconcileObservedMutation(t,e){var n=this.getDOMSlot(t);var r=n.getFirstChild();for(var _t152=this.getFirstChild();_t152;_t152=_t152.getNextSibling()){var _i68=e.getElementByKey(_t152.getKey());null!==_i68&&(null==r?(n.insertChild(_i68),r=_i68):r!==_i68&&n.replaceChild(_i68,r),r=r.nextSibling);}};return Wr;}(un);function $r(t){return t instanceof Wr;}function Kr(t,e,n){var r=t.getNode();for(;r;){var _t153=r.__key;if(e.has(_t153)&&!n.has(_t153))return!0;r=r.getParent();}return!1;}var Ur=function(_un4){babelHelpers.inheritsLoose(Ur,_un4);function Ur(){return _un4.apply(this,arguments)||this;}var _proto11=Ur.prototype;_proto11.decorate=function decorate(e,n){t(47);};_proto11.isIsolated=function isIsolated(){return!1;};_proto11.isInline=function isInline(){return!0;};_proto11.isKeyboardSelectable=function isKeyboardSelectable(){return!0;};return Ur;}(un);function Jr(t){return t instanceof Ur;}var jr=function(_Wr){babelHelpers.inheritsLoose(jr,_Wr);jr.getType=function getType(){return"root";};jr.clone=function clone(){return new jr();};function jr(){var _this4;_this4=_Wr.call(this,"root")||this,_this4.__cachedText=null;return _this4;}var _proto12=jr.prototype;_proto12.getTopLevelElementOrThrow=function getTopLevelElementOrThrow(){t(51);};_proto12.getTextContent=function getTextContent(){var t=this.__cachedText;return!Sr()&&0!==kr()._dirtyType||null===t?_Wr.prototype.getTextContent.call(this):t;};_proto12.remove=function remove(){t(52);};_proto12.replace=function replace(e){t(53);};_proto12.insertBefore=function insertBefore(e){t(54);};_proto12.insertAfter=function insertAfter(e){t(55);};_proto12.updateDOM=function updateDOM(t,e){return!1;};_proto12.splice=function splice(e,n,r){for(var _iterator21=r,_isArray21=Array.isArray(_iterator21),_i69=0,_iterator21=_isArray21?_iterator21:_iterator21[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref39;if(_isArray21){if(_i69>=_iterator21.length)break;_ref39=_iterator21[_i69++];}else{_i69=_iterator21.next();if(_i69.done)break;_ref39=_i69.value;}var _e103=_ref39;$r(_e103)||Jr(_e103)||t(282);}return _Wr.prototype.splice.call(this,e,n,r);};jr.importJSON=function importJSON(t){return Ei().updateFromJSON(t);};_proto12.collapseAtStart=function collapseAtStart(){return!0;};return jr;}(Wr);function Vr(t){return t instanceof jr;}function Hr(t){return new Gr(new Map(t._nodeMap));}function Yr(){return new Gr(new Map([["root",new jr()]]));}function qr(e){var n=e.exportJSON(),r=e.constructor;if(n.type!==r.getType()&&t(130,r.name),$r(e)){var _i70=n.children;Array.isArray(_i70)||t(59,r.name);var _o25=e.getChildren();for(var _t154=0;_t154<_o25.length;_t154++){var _e104=qr(_o25[_t154]);_i70.push(_e104);}}return n;}var Gr=function(){function Gr(t,e){this._nodeMap=t,this._selection=e||null,this._flushSync=!1,this._readOnly=!1;}var _proto13=Gr.prototype;_proto13.isEmpty=function isEmpty(){return 1===this._nodeMap.size&&null===this._selection;};_proto13.read=function read(t,e){return Dr(e&&e.editor||null,this,t);};_proto13.clone=function clone(t){var e=new Gr(this._nodeMap,void 0===t?this._selection:t);return e._readOnly=!0,e;};_proto13.toJSON=function toJSON(){return Dr(null,this,function(){return{root:qr(Ei())};});};return Gr;}();var Xr=function(_Wr2){babelHelpers.inheritsLoose(Xr,_Wr2);function Xr(){return _Wr2.apply(this,arguments)||this;}Xr.getType=function getType(){return"artificial";};var _proto14=Xr.prototype;_proto14.createDOM=function createDOM(t){return document.createElement("div");};return Xr;}(Wr);var Qr=function(_Wr3){babelHelpers.inheritsLoose(Qr,_Wr3);function Qr(){return _Wr3.apply(this,arguments)||this;}Qr.getType=function getType(){return"paragraph";};Qr.clone=function clone(t){return new Qr(t.__key);};var _proto15=Qr.prototype;_proto15.createDOM=function createDOM(t){var e=document.createElement("p"),n=ji(t.theme,"paragraph");if(void 0!==n){var _e$classList2;(_e$classList2=e.classList).add.apply(_e$classList2,n);}return e;};_proto15.updateDOM=function updateDOM(t,e,n){return!1;};Qr.importDOM=function importDOM(){return{p:function p(t){return{conversion:Zr,priority:0};}};};_proto15.exportDOM=function exportDOM(t){var _Wr3$prototype$export=_Wr3.prototype.exportDOM.call(this,t),e=_Wr3$prototype$export.element;if(mo(e)){this.isEmpty()&&e.append(document.createElement("br"));var _t155=this.getFormatType();e.style.textAlign=_t155;}return{element:e};};Qr.importJSON=function importJSON(t){return ti().updateFromJSON(t);};_proto15.exportJSON=function exportJSON(){return babelHelpers["extends"]({},_Wr3.prototype.exportJSON.call(this),{textFormat:this.getTextFormat(),textStyle:this.getTextStyle()});};_proto15.insertNewAfter=function insertNewAfter(t,e){var n=ti();n.setTextFormat(t.format),n.setTextStyle(t.style);var r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,e),n;};_proto15.collapseAtStart=function collapseAtStart(){var t=this.getChildren();if(0===t.length||Dn(t[0])&&""===t[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0;}return!1;};return Qr;}(Wr);function Zr(t){var e=ti();return t.style&&(e.setFormat(t.style.textAlign),wo(t,e)),{node:e};}function ti(){return ao(new Qr());}function ei(t,e,n,r){var i=t._keyToDOMMap;i.clear(),t._editorState=Yr(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set(),t._dirtyElements.clear(),t._normalizedNodes=new Set(),t._updateTags=new Set(),t._updates=[],t._blockCursorElement=null;var o=t._observer;null!==o&&(o.disconnect(),t._observer=null),null!==e&&(e.textContent=""),null!==n&&(n.textContent="",i.set("root",n));}var ni=function(){function ni(t,e,n,r,i,o,s,l){this._createEditorArgs=l,this._parentEditor=e,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map(),this._updates=[],this._updating=!1,this._listeners={decorator:new Set(),editable:new Set(),mutation:new Map(),root:new Set(),textcontent:new Set(),update:new Set()},this._commands=new Map(),this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set(),this._dirtyLeaves=new Set(),this._dirtyElements=new Map(),this._normalizedNodes=new Set(),this._updateTags=new Set(),this._observer=null,this._key=Li(),this._onError=i,this._htmlConversions=o,this._editable=s,this._headless=null!==e&&e._headless,this._window=null,this._blockCursorElement=null;}var _proto16=ni.prototype;_proto16.isComposing=function isComposing(){return null!=this._compositionKey;};_proto16.registerUpdateListener=function registerUpdateListener(t){var e=this._listeners.update;return e.add(t),function(){e["delete"](t);};};_proto16.registerEditableListener=function registerEditableListener(t){var e=this._listeners.editable;return e.add(t),function(){e["delete"](t);};};_proto16.registerDecoratorListener=function registerDecoratorListener(t){var e=this._listeners.decorator;return e.add(t),function(){e["delete"](t);};};_proto16.registerTextContentListener=function registerTextContentListener(t){var e=this._listeners.textcontent;return e.add(t),function(){e["delete"](t);};};_proto16.registerRootListener=function registerRootListener(t){var _this15=this;var e=this._listeners.root;return t(this._rootElement,null),e.add(t),function(){t(null,_this15._rootElement),e["delete"](t);};};_proto16.registerCommand=function registerCommand(e,n,r){void 0===r&&t(35);var i=this._commands;i.has(e)||i.set(e,[new Set(),new Set(),new Set(),new Set(),new Set()]);var o=i.get(e);void 0===o&&t(36,String(e));var s=o[r];return s.add(n),function(){s["delete"](n),o.every(function(t){return 0===t.size;})&&i["delete"](e);};};_proto16.registerMutationListener=function registerMutationListener(t,e,n){var r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;i.set(e,r);var o=n&&n.skipInitialization;return void 0!==o&&o||this.initializeMutationListener(e,r),function(){i["delete"](e);};};_proto16.getRegisteredNode=function getRegisteredNode(e){var n=this._nodes.get(e.getType());return void 0===n&&t(37,e.name),n;};_proto16.resolveRegisteredNodeAfterReplacements=function resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;){t=this.getRegisteredNode(t.replaceWithKlass);}return t;};_proto16.initializeMutationListener=function initializeMutationListener(t,e){var n=this._editorState,r=bo(n).get(e.getType());if(!r)return;var i=new Map();for(var _iterator22=r.keys(),_isArray22=Array.isArray(_iterator22),_i71=0,_iterator22=_isArray22?_iterator22:_iterator22[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref40;if(_isArray22){if(_i71>=_iterator22.length)break;_ref40=_iterator22[_i71++];}else{_i71=_iterator22.next();if(_i71.done)break;_ref40=_i71.value;}var _t156=_ref40;i.set(_t156,"created");}i.size>0&&t(i,{dirtyLeaves:new Set(),prevEditorState:n,updateTags:new Set(["registerMutationListener"])});};_proto16.registerNodeTransformToKlass=function registerNodeTransformToKlass(t,e){var n=this.getRegisteredNode(t);return n.transforms.add(e),n;};_proto16.registerNodeTransform=function registerNodeTransform(t,e){var n=this.registerNodeTransformToKlass(t,e),r=[n],i=n.replaceWithKlass;if(null!=i){var _t157=this.registerNodeTransformToKlass(i,e);r.push(_t157);}return function(t,e){var n=bo(t.getEditorState()),r=[];for(var _iterator23=e,_isArray23=Array.isArray(_iterator23),_i72=0,_iterator23=_isArray23?_iterator23:_iterator23[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref41;if(_isArray23){if(_i72>=_iterator23.length)break;_ref41=_iterator23[_i72++];}else{_i72=_iterator23.next();if(_i72.done)break;_ref41=_i72.value;}var _t160=_ref41;var _e106=n.get(_t160);_e106&&r.push(_e106);}if(0===r.length)return;t.update(function(){for(var _i73=0;_i73<r.length;_i73++){var _t158=r[_i73];for(var _iterator24=_t158.keys(),_isArray24=Array.isArray(_iterator24),_i74=0,_iterator24=_isArray24?_iterator24:_iterator24[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref42;if(_isArray24){if(_i74>=_iterator24.length)break;_ref42=_iterator24[_i74++];}else{_i74=_iterator24.next();if(_i74.done)break;_ref42=_i74.value;}var _e105=_ref42;var _t159=Si(_e105);_t159&&_t159.markDirty();}}},null===t._pendingEditorState?{tag:"history-merge"}:void 0);}(this,r.map(function(t){return t.klass.getType();})),function(){r.forEach(function(t){return t.transforms["delete"](e);});};};_proto16.hasNode=function hasNode(t){return this._nodes.has(t.getType());};_proto16.hasNodes=function hasNodes(t){return t.every(this.hasNode.bind(this));};_proto16.dispatchCommand=function dispatchCommand(t,e){return Gi(this,t,e);};_proto16.getDecorators=function getDecorators(){return this._decorators;};_proto16.getRootElement=function getRootElement(){return this._rootElement;};_proto16.getKey=function getKey(){return this._key;};_proto16.setRootElement=function setRootElement(t){var e=this._rootElement;if(t!==e){var _e$classList3;var _n74=ji(this._config.theme,"root"),_r57=this._pendingEditorState||this._editorState;if(this._rootElement=t,ei(this,e,t,_r57),null!==e&&(this._config.disableEvents||cn(e),null!=_n74&&(_e$classList3=e.classList).remove.apply(_e$classList3,_n74)),null!==t){var _t$classList;var _e107=io(t),_r58=t.style;_r58.userSelect="text",_r58.whiteSpace="pre-wrap",_r58.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=_e107,this._dirtyType=2,H(this),this._updateTags.add("history-merge"),Pr(this),this._config.disableEvents||function(t,e){var n=t.ownerDocument,r=ze.get(n);(void 0===r||r<1)&&n.addEventListener("selectionchange",rn),ze.set(n,(r||0)+1),t.__lexicalEditor=e;var i=en(t);var _loop=function _loop(_n75){var _Le$_n=Le[_n75],r=_Le$_n[0],o=_Le$_n[1],s="function"==typeof o?function(t){sn(t)||(on(t),(e.isEditable()||"click"===r)&&o(t,e));}:function(t){if(sn(t))return;on(t);var n=e.isEditable();switch(r){case"cut":return n&&Gi(e,Ne,t);case"copy":return Gi(e,ve,t);case"paste":return n&&Gi(e,qt,t);case"dragstart":return n&&Gi(e,Ce,t);case"dragover":return n&&Gi(e,Se,t);case"dragend":return n&&Gi(e,Te,t);case"focus":return n&&Gi(e,Me,t);case"blur":return n&&Gi(e,Ae,t);case"drop":return n&&Gi(e,ye,t);}};t.addEventListener(r,s),i.push(function(){t.removeEventListener(r,s);});};for(var _n75=0;_n75<Le.length;_n75++){_loop(_n75);}}(t,this),null!=_n74&&(_t$classList=t.classList).add.apply(_t$classList,_n74);}else this._window=null,this._updateTags.add("history-merge"),Pr(this);Lr("root",this,!1,t,e);}};_proto16.getElementByKey=function getElementByKey(t){return this._keyToDOMMap.get(t)||null;};_proto16.getEditorState=function getEditorState(){return this._editorState;};_proto16.setEditorState=function setEditorState(e,n){e.isEmpty()&&t(38);var r=e;r._readOnly&&(r=Hr(e),r._selection=e._selection?e._selection.clone():null),V(this);var i=this._pendingEditorState,o=this._updateTags,s=void 0!==n?n.tag:null;null===i||i.isEmpty()||(null!=s&&o.add(s),Pr(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=s&&o.add(s),this._updating||Pr(this);};_proto16.parseEditorState=function parseEditorState(t,e){return function(t,e,n){var r=Yr(),i=pr,o=mr,s=_r,l=e._dirtyElements,c=e._dirtyLeaves,a=e._cloneNotNeeded,u=e._dirtyType;e._dirtyElements=new Map(),e._dirtyLeaves=new Set(),e._cloneNotNeeded=new Set(),e._dirtyType=0,pr=r,mr=!1,_r=e;try{var _i75=e._nodes;Ar(t.root,_i75),n&&n(),r._readOnly=!0;}catch(t){t instanceof Error&&e._onError(t);}finally{e._dirtyElements=l,e._dirtyLeaves=c,e._cloneNotNeeded=a,e._dirtyType=u,pr=i,mr=o,_r=s;}return r;}("string"==typeof t?JSON.parse(t):t,this,e);};_proto16.read=function read(t){return Pr(this),this.getEditorState().read(t,{editor:this});};_proto16.update=function update(t,e){!function(t,e,n){t._updating?t._updates.push([e,n]):Fr(t,e,n);}(this,t,e);};_proto16.focus=function focus(t,e){if(e===void 0){e={};}var n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Rr(this,function(){var r=ir(),i=Ei();null!==r?r.dirty=!0:0!==i.getChildrenSize()&&("rootStart"===e.defaultSelection?i.selectStart():i.selectEnd()),eo("focus"),no(function(){n.removeAttribute("autocapitalize"),t&&t();});}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"));};_proto16.blur=function blur(){var t=this._rootElement;null!==t&&t.blur();var e=po(this._window);null!==e&&e.removeAllRanges();};_proto16.isEditable=function isEditable(){return this._editable;};_proto16.setEditable=function setEditable(t){this._editable!==t&&(this._editable=t,Lr("editable",this,!0,t));};_proto16.toJSON=function toJSON(){return{editorState:this._editorState.toJSON()};};return ni;}();ni.version="0.29.0+prod.cjs";var ri=1;var ii="function"==typeof queueMicrotask?queueMicrotask:function(t){Promise.resolve().then(t);};function oi(t){return Jr(Ni(t));}function si(t){var e=document.activeElement;if(!mo(e))return!1;var n=e.nodeName;return Jr(Ni(t))&&("INPUT"===n||"TEXTAREA"===n||"true"===e.contentEditable&&null==ui(e));}function li(t,e,n){var r=t.getRootElement();try{return null!==r&&r.contains(e)&&r.contains(n)&&null!==e&&!si(e)&&ai(e)===t;}catch(t){return!1;}}function ci(t){return t instanceof ni;}function ai(t){var e=t;for(;null!=e;){var _t161=ui(e);if(ci(_t161))return _t161;e=Zi(e);}return null;}function ui(t){return t?t.__lexicalEditor:null;}function fi(t){return t.isToken()||t.isSegmented();}function di(t){return yo(t)&&3===t.nodeType;}function hi(t){return yo(t)&&9===t.nodeType;}function gi(t){var e=t;for(;null!=e;){if(di(e))return e;e=e.firstChild;}return null;}function pi(t,e,n){var r=M[e];if(null!==n&&(t&r)==(n&r))return t;var i=t^r;return"subscript"===e?i&=~M.superscript:"superscript"===e?i&=~M.subscript:"lowercase"===e?(i&=~M.uppercase,i&=~M.capitalize):"uppercase"===e?(i&=~M.lowercase,i&=~M.capitalize):"capitalize"===e&&(i&=~M.lowercase,i&=~M.uppercase),i;}function _i(t,e){if(null!=e)return void(t.__key=e);Tr(),vr();var n=kr(),r=Nr(),i=""+ri++;r._nodeMap.set(i,t),$r(t)?n._dirtyElements.set(i,!0):n._dirtyLeaves.add(i),n._cloneNotNeeded.add(i),n._dirtyType=1,t.__key=i;}function mi(t){var e=t.getParent();if(null!==e){var _n76=t.getWritable(),_r59=e.getWritable(),_i76=t.getPreviousSibling(),_o26=t.getNextSibling();if(null===_i76){if(null!==_o26){var _t162=_o26.getWritable();_r59.__first=_o26.__key,_t162.__prev=null;}else _r59.__first=null;}else{var _t163=_i76.getWritable();if(null!==_o26){var _e108=_o26.getWritable();_e108.__prev=_t163.__key,_t163.__next=_e108.__key;}else _t163.__next=null;_n76.__prev=null;}if(null===_o26){if(null!==_i76){var _t164=_i76.getWritable();_r59.__last=_i76.__key,_t164.__next=null;}else _r59.__last=null;}else{var _t165=_o26.getWritable();if(null!==_i76){var _e109=_i76.getWritable();_e109.__next=_t165.__key,_t165.__prev=_e109.__key;}else _t165.__prev=null;_n76.__next=null;}_r59.__size--,_n76.__parent=null;}}function yi(t){vr();var e=t.getLatest(),n=e.__parent,r=Nr(),i=kr(),o=r._nodeMap,s=i._dirtyElements;null!==n&&function(t,e,n){var r=t;for(;null!==r;){if(n.has(r))return;var _t166=e.get(r);if(void 0===_t166)break;n.set(r,!1),r=_t166.__parent;}}(n,o,s);var l=e.__key;i._dirtyType=1,$r(t)?s.set(l,!0):i._dirtyLeaves.add(l);}function xi(t){Tr();var e=kr(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,null!==n){var _t167=Si(n);null!==_t167&&_t167.getWritable();}if(null!==t){var _e110=Si(t);null!==_e110&&_e110.getWritable();}}}function Ci(){if(Sr())return null;return kr()._compositionKey;}function Si(t,e){var n=(e||Nr())._nodeMap.get(t);return void 0===n?null:n;}function Ti(t,e){var n=vi(t,kr());return void 0!==n?Si(n,e):null;}function vi(t,e){return t["__lexicalKey_"+e._key];}function Ni(t,e){var n=t;for(;null!=n;){var _t168=Ti(n,e);if(null!==_t168)return _t168;n=Zi(n);}return null;}function ki(t){var e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n;}function bi(t){return t.read(function(){return Ei().getTextContent();});}function Ei(){return wi(Nr());}function wi(t){return t._nodeMap.get("root");}function Oi(t){Tr();var e=Nr();null!==t&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t;}function Mi(t){var e=kr(),n=function(t,e){var n=t;for(;null!=n;){var _t169=vi(n,e);if(void 0!==_t169)return _t169;n=Zi(n);}return null;}(t,e);if(null===n){return t===e.getRootElement()?Si("root"):null;}return Si(n);}function Ai(t,e){return e?t.getTextContentSize():0;}function Di(t){return /[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t);}function Pi(t){var e=[];var n=t;for(;null!==n;){e.push(n),n=n._parentEditor;}return e;}function Li(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5);}function Ii(t){return di(t)?t.nodeValue:null;}function Fi(t,e,n){var r=po(oo(e));if(null===r)return;var i=r.anchorNode;var o=r.anchorOffset,s=r.focusOffset;if(null!==i){var _e111=Ii(i);var _r60=Ni(i);if(null!==_e111&&Dn(_r60)){if(_e111===v&&n){var _t170=n.length;_e111=n,o=_t170,s=_t170;}null!==_e111&&Ri(_r60,_e111,o,s,t);}}}function Ri(t,e,n,r,i){var o=t;if(o.isAttached()&&(i||!o.isDirty())){var _c13=o.isComposing();var _a9=e;(_c13||i)&&e[e.length-1]===v&&(_a9=e.slice(0,-1));var _u9=o.getTextContent();if(i||_a9!==_u9){if(""===_a9){if(xi(null),s||l||f)o.remove();else{var _t171=kr();setTimeout(function(){_t171.update(function(){o.isAttached()&&o.remove();});},20);}return;}var _e112=o.getParent(),_i77=or(),_u10=o.getTextContentSize(),_d6=Ci(),_h5=o.getKey();if(o.isToken()||null!==_d6&&_h5===_d6&&!_c13||Kn(_i77)&&(null!==_e112&&!_e112.canInsertTextBefore()&&0===_i77.anchor.offset||_i77.anchor.key===t.__key&&0===_i77.anchor.offset&&!o.canInsertTextBefore()&&!_c13||_i77.focus.key===t.__key&&_i77.focus.offset===_u10&&!o.canInsertTextAfter()&&!_c13))return void o.markDirty();var _g6=ir();if(!Kn(_g6)||null===n||null===r)return void o.setTextContent(_a9);if(_g6.setTextNodeRange(o,n,o,r),o.isSegmented()){var _t172=An(o.getTextContent());o.replace(_t172),o=_t172;}o.setTextContent(_a9);}}}function Bi(t){return"ArrowLeft"===t;}function zi(t){return"ArrowRight"===t;}function Wi(t,e){return r?t:e;}function $i(t){return"Enter"===t;}function Ki(t){return"Backspace"===t;}function Ui(t){return"Delete"===t;}function Ji(t,e,n){return"a"===t.toLowerCase()&&Wi(e,n);}function ji(t,e){void 0===t.__lexicalClassNameCache&&(t.__lexicalClassNameCache={});var n=t.__lexicalClassNameCache,r=n[e];if(void 0!==r)return r;var i=t[e];if("string"==typeof i){var _t173=d(i);return n[e]=_t173,_t173;}return i;}function Vi(e,n,r,i,o){if(0===r.size)return;var s=i.__type,l=i.__key,c=n.get(s);void 0===c&&t(33,s);var a=c.klass;var u=e.get(a);void 0===u&&(u=new Map(),e.set(a,u));var f=u.get(l),d="destroyed"===f&&"created"===o;(void 0===f||d)&&u.set(l,d?"updated":o);}function Hi(t,e,n){var r=t.getParent();var i=n,o=t;return null!==r&&(e&&0===n?(i=o.getIndexWithinParent(),o=r):e||n!==o.getChildrenSize()||(i=o.getIndexWithinParent()+1,o=r)),o.getChildAtIndex(e?i-1:i);}function Yi(t,e){var n=t.offset;if("element"===t.type){return Hi(t.getNode(),e,n);}{var _r61=t.getNode();if(e&&0===n||!e&&n===_r61.getTextContentSize()){var _t174=e?_r61.getPreviousSibling():_r61.getNextSibling();return null===_t174?Hi(_r61.getParentOrThrow(),e,_r61.getIndexWithinParent()+(e?0:1)):_t174;}}return null;}function qi(t){var e=oo(t).event,n=e&&e.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n;}function Gi(t,e,n){return function(t,e,n){var r=Pi(t);for(var _i78=4;_i78>=0;_i78--){for(var _o27=0;_o27<r.length;_o27++){var _s17=r[_o27],_l11=_s17._commands.get(e);if(void 0!==_l11){var _e113=_l11[_i78];if(void 0!==_e113){var _ret=function(){var r=Array.from(_e113),i=r.length;var o=!1;if(Rr(_s17,function(){for(var _e114=0;_e114<i;_e114++){if(r[_e114](n,t))return void(o=!0);}}),o)return{v:o};}();if(typeof _ret==="object")return _ret.v;}}}}return!1;}(t,e,n);}function Xi(t){return!Vr(t)&&!t.isLastChild()&&!t.isInline();}function Qi(e,n){var r=e._keyToDOMMap.get(n);return void 0===r&&t(75,n),r;}function Zi(t){var e=t.assignedSlot||t.parentElement;return xo(e)?e.host:e;}function to(t){return hi(t)?t:mo(t)?t.ownerDocument:null;}function eo(t){Tr();kr()._updateTags.add(t);}function no(t){Tr();kr()._deferred.push(t);}function ro(t,e){var n=t.getParent();for(;null!==n;){if(n.is(e))return!0;n=n.getParent();}return!1;}function io(t){var e=to(t);return e?e.defaultView:null;}function oo(e){var n=e._window;return null===n&&t(78),n;}function so(t){var e=t.getParentOrThrow();for(;null!==e;){if(lo(e))return e;e=e.getParentOrThrow();}return e;}function lo(t){return Vr(t)||$r(t)&&t.isShadowRoot();}function co(t){var e=t.constructor.clone(t);return _i(e,null),e;}function ao(e){var n=kr(),r=e.constructor.getType(),i=n._nodes.get(r);void 0===i&&t(200,e.constructor.name,r);var o=i.replace,s=i.replaceWithKlass;if(null!==o){var _n77=o(e),_i79=_n77.constructor;return null!==s?_n77 instanceof s||t(201,s.name,s.getType(),_i79.name,_i79.getType(),e.constructor.name,r):_n77 instanceof e.constructor&&_i79!==e.constructor||t(202,_i79.name,_i79.getType(),e.constructor.name,r),_n77.__key===e.__key&&t(203,e.constructor.name,r,_i79.name,_i79.getType()),_n77;}return e;}function uo(e,n){!Vr(e.getParent())||$r(n)||Jr(n)||t(99);}function fo(e){var n=Si(e);return null===n&&t(63,e),n;}function ho(t){return(Jr(t)||$r(t)&&!t.canBeEmpty())&&!t.isInline();}function go(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;var r=t.parentElement;null!==r&&r.removeChild(t);}function po(t){return e?(t||window).getSelection():null;}function _o(t){var e=io(t);return e?e.getSelection():null;}function mo(t){return yo(t)&&1===t.nodeType;}function yo(t){return"object"==typeof t&&null!==t&&"nodeType"in t&&"number"==typeof t.nodeType;}function xo(t){return yo(t)&&11===t.nodeType;}function Co(t){var e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==t.nodeName.match(e);}function So(t){var e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==t.nodeName.match(e);}function To(t){if(Jr(t)&&!t.isInline())return!0;if(!$r(t)||lo(t))return!1;var e=t.getFirstChild(),n=null===e||gn(e)||Dn(e)||e.isInline();return!t.isInline()&&!1!==t.canBeEmpty()&&n;}function vo(t,e){var n=t;for(;null!==n&&null!==n.getParent()&&!e(n);){n=n.getParentOrThrow();}return e(n)?n:null;}var No=new WeakMap(),ko=new Map();function bo(e){if(!e._readOnly&&e.isEmpty())return ko;e._readOnly||t(192);var n=No.get(e);return n||(n=function(t){var e=new Map();for(var _iterator25=t._nodeMap,_isArray25=Array.isArray(_iterator25),_i80=0,_iterator25=_isArray25?_iterator25:_iterator25[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref44;if(_isArray25){if(_i80>=_iterator25.length)break;_ref44=_iterator25[_i80++];}else{_i80=_iterator25.next();if(_i80.done)break;_ref44=_i80.value;}var _ref45=_ref44;var _n78=_ref45[0];var _r62=_ref45[1];var _t175=_r62.__type;var _i81=e.get(_t175);_i81||(_i81=new Map(),e.set(_t175,_i81)),_i81.set(_n78,_r62);}return e;}(e),No.set(e,n)),n;}function Eo(t){var e=t.constructor.clone(t);return e.afterCloneFrom(t),e;}function wo(t,e){var n=(parseInt(t.style.paddingInlineStart,10)||0)/40;e.setIndent(n);}function Oo(t){return!0===t.__lexicalUnmanaged;}var Mo={next:"previous",previous:"next"};var Ao=function(){function Ao(t){this.origin=t;}var _proto17=Ao.prototype;_proto17[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]=function(){return ns({hasNext:zo,initial:this.getAdjacentCaret(),map:function map(t){return t;},step:function step(t){return t.getAdjacentCaret();}});};_proto17.getAdjacentCaret=function getAdjacentCaret(){return Jo(this.getNodeAtCaret(),this.direction);};_proto17.getSiblingCaret=function getSiblingCaret(){return Jo(this.origin,this.direction);};_proto17.remove=function remove(){var t=this.getNodeAtCaret();return t&&t.remove(),this;};_proto17.replaceOrInsert=function replaceOrInsert(t,e){var n=this.getNodeAtCaret();return t.is(this.origin)||t.is(n)||(null===n?this.insert(t):n.replace(t,e)),this;};_proto17.splice=function splice(e,n,r){if(r===void 0){r="next";}var i=r===this.direction?n:Array.from(n).reverse();var o=this;var s=this.getParentAtCaret(),l=new Map();for(var _t176=o.getAdjacentCaret();null!==_t176&&l.size<e;_t176=_t176.getAdjacentCaret()){var _e115=_t176.origin.getWritable();l.set(_e115.getKey(),_e115);}for(var _iterator26=i,_isArray26=Array.isArray(_iterator26),_i82=0,_iterator26=_isArray26?_iterator26:_iterator26[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref46;if(_isArray26){if(_i82>=_iterator26.length)break;_ref46=_iterator26[_i82++];}else{_i82=_iterator26.next();if(_i82.done)break;_ref46=_i82.value;}var _e116=_ref46;if(l.size>0){var _n79=o.getNodeAtCaret();if(_n79){if(l["delete"](_n79.getKey()),l["delete"](_e116.getKey()),_n79.is(_e116)||o.origin.is(_e116));else{var _t177=_e116.getParent();_t177&&_t177.is(s)&&_e116.remove(),_n79.replace(_e116);}}else null===_n79&&t(263,Array.from(l).join(" "));}else o.insert(_e116);o=Jo(_e116,this.direction);}for(var _iterator27=l.values(),_isArray27=Array.isArray(_iterator27),_i83=0,_iterator27=_isArray27?_iterator27:_iterator27[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref47;if(_isArray27){if(_i83>=_iterator27.length)break;_ref47=_iterator27[_i83++];}else{_i83=_iterator27.next();if(_i83.done)break;_ref47=_i83.value;}var _t178=_ref47;_t178.remove();}return this;};return Ao;}();var Do=function(_Ao){babelHelpers.inheritsLoose(Do,_Ao);function Do(){var _temp,_this5;for(var _len6=arguments.length,args=new Array(_len6),_key6=0;_key6<_len6;_key6++){args[_key6]=arguments[_key6];}return(_temp=_this5=_Ao.call.apply(_Ao,[this].concat(args))||this,_this5.type="child",_temp)||babelHelpers.assertThisInitialized(_this5);}var _proto18=Do.prototype;_proto18.getLatest=function getLatest(){var t=this.origin.getLatest();return t===this.origin?this:Yo(t,this.direction);};_proto18.getParentCaret=function getParentCaret(t){if(t===void 0){t="root";}return Jo(Io(this.getParentAtCaret(),t),this.direction);};_proto18.getFlipped=function getFlipped(){var t=Lo(this.direction);return Jo(this.getNodeAtCaret(),t)||Yo(this.origin,t);};_proto18.getParentAtCaret=function getParentAtCaret(){return this.origin;};_proto18.getChildCaret=function getChildCaret(){return this;};_proto18.isSameNodeCaret=function isSameNodeCaret(t){return t instanceof Do&&this.direction===t.direction&&this.origin.is(t.origin);};_proto18.isSamePointCaret=function isSamePointCaret(t){return this.isSameNodeCaret(t);};return Do;}(Ao);var Po={root:Vr,shadowRoot:lo};function Lo(t){return Mo[t];}function Io(t,e){if(e===void 0){e="root";}return Po[e](t)?null:t;}var Fo=function(_Ao2){babelHelpers.inheritsLoose(Fo,_Ao2);function Fo(){var _temp2,_this6;for(var _len7=arguments.length,args=new Array(_len7),_key7=0;_key7<_len7;_key7++){args[_key7]=arguments[_key7];}return(_temp2=_this6=_Ao2.call.apply(_Ao2,[this].concat(args))||this,_this6.type="sibling",_temp2)||babelHelpers.assertThisInitialized(_this6);}var _proto19=Fo.prototype;_proto19.getLatest=function getLatest(){var t=this.origin.getLatest();return t===this.origin?this:Jo(t,this.direction);};_proto19.getSiblingCaret=function getSiblingCaret(){return this;};_proto19.getParentAtCaret=function getParentAtCaret(){return this.origin.getParent();};_proto19.getChildCaret=function getChildCaret(){return $r(this.origin)?Yo(this.origin,this.direction):null;};_proto19.getParentCaret=function getParentCaret(t){if(t===void 0){t="root";}return Jo(Io(this.getParentAtCaret(),t),this.direction);};_proto19.getFlipped=function getFlipped(){var t=Lo(this.direction);return Jo(this.getNodeAtCaret(),t)||Yo(this.origin.getParentOrThrow(),t);};_proto19.isSamePointCaret=function isSamePointCaret(t){return t instanceof Fo&&this.direction===t.direction&&this.origin.is(t.origin);};_proto19.isSameNodeCaret=function isSameNodeCaret(t){return(t instanceof Fo||t instanceof Ro)&&this.direction===t.direction&&this.origin.is(t.origin);};return Fo;}(Ao);var Ro=function(_Ao3){babelHelpers.inheritsLoose(Ro,_Ao3);function Ro(t,e){var _temp3,_this7;(_temp3=_this7=_Ao3.call(this,t)||this,_this7.type="text",_temp3),_this7.offset=e;return _this7;}var _proto20=Ro.prototype;_proto20.getLatest=function getLatest(){var t=this.origin.getLatest();return t===this.origin?this:jo(t,this.direction,this.offset);};_proto20.getParentAtCaret=function getParentAtCaret(){return this.origin.getParent();};_proto20.getChildCaret=function getChildCaret(){return null;};_proto20.getParentCaret=function getParentCaret(t){if(t===void 0){t="root";}return Jo(Io(this.getParentAtCaret(),t),this.direction);};_proto20.getFlipped=function getFlipped(){return jo(this.origin,Lo(this.direction),this.offset);};_proto20.isSamePointCaret=function isSamePointCaret(t){return t instanceof Ro&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset;};_proto20.isSameNodeCaret=function isSameNodeCaret(t){return(t instanceof Fo||t instanceof Ro)&&this.direction===t.direction&&this.origin.is(t.origin);};_proto20.getSiblingCaret=function getSiblingCaret(){return Jo(this.origin,this.direction);};return Ro;}(Ao);function Bo(t){return t instanceof Ro;}function zo(t){return t instanceof Fo;}function Wo(t){return t instanceof Do;}var $o={next:function(_Ro){babelHelpers.inheritsLoose(_class,_Ro);function _class(){var _temp4,_this8;for(var _len8=arguments.length,args=new Array(_len8),_key8=0;_key8<_len8;_key8++){args[_key8]=arguments[_key8];}return(_temp4=_this8=_Ro.call.apply(_Ro,[this].concat(args))||this,_this8.direction="next",_temp4)||babelHelpers.assertThisInitialized(_this8);}var _proto21=_class.prototype;_proto21.getNodeAtCaret=function getNodeAtCaret(){return this.origin.getNextSibling();};_proto21.insert=function insert(t){return this.origin.insertAfter(t),this;};return _class;}(Ro),previous:function(_Ro2){babelHelpers.inheritsLoose(_class3,_Ro2);function _class3(){var _temp5,_this9;for(var _len9=arguments.length,args=new Array(_len9),_key9=0;_key9<_len9;_key9++){args[_key9]=arguments[_key9];}return(_temp5=_this9=_Ro2.call.apply(_Ro2,[this].concat(args))||this,_this9.direction="previous",_temp5)||babelHelpers.assertThisInitialized(_this9);}var _proto22=_class3.prototype;_proto22.getNodeAtCaret=function getNodeAtCaret(){return this.origin.getPreviousSibling();};_proto22.insert=function insert(t){return this.origin.insertBefore(t),this;};return _class3;}(Ro)},Ko={next:function(_Fo){babelHelpers.inheritsLoose(_class5,_Fo);function _class5(){var _temp6,_this10;for(var _len10=arguments.length,args=new Array(_len10),_key10=0;_key10<_len10;_key10++){args[_key10]=arguments[_key10];}return(_temp6=_this10=_Fo.call.apply(_Fo,[this].concat(args))||this,_this10.direction="next",_temp6)||babelHelpers.assertThisInitialized(_this10);}var _proto23=_class5.prototype;_proto23.getNodeAtCaret=function getNodeAtCaret(){return this.origin.getNextSibling();};_proto23.insert=function insert(t){return this.origin.insertAfter(t),this;};return _class5;}(Fo),previous:function(_Fo2){babelHelpers.inheritsLoose(_class7,_Fo2);function _class7(){var _temp7,_this11;for(var _len11=arguments.length,args=new Array(_len11),_key11=0;_key11<_len11;_key11++){args[_key11]=arguments[_key11];}return(_temp7=_this11=_Fo2.call.apply(_Fo2,[this].concat(args))||this,_this11.direction="previous",_temp7)||babelHelpers.assertThisInitialized(_this11);}var _proto24=_class7.prototype;_proto24.getNodeAtCaret=function getNodeAtCaret(){return this.origin.getPreviousSibling();};_proto24.insert=function insert(t){return this.origin.insertBefore(t),this;};return _class7;}(Fo)},Uo={next:function(_Do){babelHelpers.inheritsLoose(_class9,_Do);function _class9(){var _temp8,_this12;for(var _len12=arguments.length,args=new Array(_len12),_key12=0;_key12<_len12;_key12++){args[_key12]=arguments[_key12];}return(_temp8=_this12=_Do.call.apply(_Do,[this].concat(args))||this,_this12.direction="next",_temp8)||babelHelpers.assertThisInitialized(_this12);}var _proto25=_class9.prototype;_proto25.getNodeAtCaret=function getNodeAtCaret(){return this.origin.getFirstChild();};_proto25.insert=function insert(t){return this.origin.splice(0,0,[t]),this;};return _class9;}(Do),previous:function(_Do2){babelHelpers.inheritsLoose(_class11,_Do2);function _class11(){var _temp9,_this13;for(var _len13=arguments.length,args=new Array(_len13),_key13=0;_key13<_len13;_key13++){args[_key13]=arguments[_key13];}return(_temp9=_this13=_Do2.call.apply(_Do2,[this].concat(args))||this,_this13.direction="previous",_temp9)||babelHelpers.assertThisInitialized(_this13);}var _proto26=_class11.prototype;_proto26.getNodeAtCaret=function getNodeAtCaret(){return this.origin.getLastChild();};_proto26.insert=function insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this;};return _class11;}(Do)};function Jo(t,e){return t?new Ko[e](t):null;}function jo(t,e,n){return t?new $o[e](t,Vo(t,n)):null;}function Vo(e,n){var r=e.getTextContentSize(),i="next"===n?r:"previous"===n?0:n;return i>=0&&i<=r||t(274,String(n),String(r)),i;}function Ho(t,e){return new Qo(t,e);}function Yo(t,e){return $r(t)?new Uo[e](t):null;}function qo(t){return t&&t.getChildCaret()||t;}function Go(t){return t&&qo(t.getAdjacentCaret());}var _Symbol$iterator=typeof Symbol==="function"?Symbol.iterator:"@@iterator";var Xo=function(){function Xo(t,e,n){this.type="node-caret-range";this.anchor=t,this.focus=e,this.direction=n;}var _proto27=Xo.prototype;_proto27.getLatest=function getLatest(){var t=this.anchor.getLatest(),e=this.focus.getLatest();return t===this.anchor&&e===this.focus?this:new Xo(t,e,this.direction);};_proto27.isCollapsed=function isCollapsed(){return this.anchor.isSamePointCaret(this.focus);};_proto27.getTextSlices=function getTextSlices(){var _this16=this;var t=function t(_t179){var e=_this16[_t179].getLatest();return Bo(e)?function(t,e){var n=t.direction,r=t.origin,i=Vo(r,"focus"===e?Lo(n):n);return Ho(t,i-t.offset);}(e,_t179):null;},e=t("anchor"),n=t("focus");if(e&&n){var _t180=e.caret,_r63=n.caret;if(_t180.isSameNodeCaret(_r63))return[Ho(_t180,_r63.offset-_t180.offset),null];}return[e,n];};_proto27.iterNodeCarets=function iterNodeCarets(t){if(t===void 0){t="root";}var e=Bo(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=Bo(n),i=function i(e){return e.isSameNodeCaret(n)?null:Go(e)||e.getParentCaret(t);};return ns({hasNext:function hasNext(t){return null!==t&&!(r&&n.isSameNodeCaret(t));},initial:e.isSameNodeCaret(n)?null:i(e),map:function map(t){return t;},step:i});};_proto27[_Symbol$iterator]=function(){return this.iterNodeCarets("root");};return Xo;}();var Qo=function(){function Qo(t,e){this.type="slice";this.caret=t,this.distance=e;}var _proto28=Qo.prototype;_proto28.getSliceIndices=function getSliceIndices(){var t=this.distance,e=this.caret.offset,n=e+t;return n<e?[n,e]:[e,n];};_proto28.getTextContent=function getTextContent(){var _this$getSliceIndices=this.getSliceIndices(),t=_this$getSliceIndices[0],e=_this$getSliceIndices[1];return this.caret.origin.getTextContent().slice(t,e);};_proto28.getTextContentSize=function getTextContentSize(){return Math.abs(this.distance);};_proto28.removeTextSlice=function removeTextSlice(){var _this$caret=this.caret,t=_this$caret.origin,e=_this$caret.direction,_this$getSliceIndices2=this.getSliceIndices(),n=_this$getSliceIndices2[0],r=_this$getSliceIndices2[1],i=t.getTextContent();return jo(t.setTextContent(i.slice(0,n)+i.slice(r)),e,n);};return Qo;}();function Zo(t){return es(t,Jo(Ei(),t.direction));}function ts(t){return es(t,t);}function es(e,n){return e.direction!==n.direction&&t(265),new Xo(e,n,e.direction);}function ns(t){var _ref48;var e=t.initial,n=t.hasNext,r=t.step,i=t.map;var o=e;return _ref48={},_ref48[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]=function(){return this;},_ref48.next=function next(){if(!n(o))return{done:!0,value:void 0};var t={done:!1,value:i(o)};return o=r(o),t;},_ref48;}function rs(e,n){var r=ls(e.origin,n.origin);switch(null===r&&t(275,e.origin.getKey(),n.origin.getKey()),r.type){case"same":{var _t181="text"===e.type,_r64="text"===n.type;return _t181&&_r64?function(t,e){return Math.sign(t-e);}(e.offset,n.offset):e.type===n.type?0:_t181?-1:_r64?1:"child"===e.type?-1:1;}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===n.type?1:-1;case"branch":return is(r);}}function is(t){var e=t.a,n=t.b,r=e.__key,i=n.__key;var o=e,s=n;for(;o&&s;o=o.getNextSibling(),s=s.getNextSibling()){if(o.__key===i)return-1;if(s.__key===r)return 1;}return null===o?1:-1;}function os(t,e){return e.is(t);}function ss(t){return $r(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()];}function ls(e,n){if(e.is(n))return{commonAncestor:e,type:"same"};var r=new Map();for(var _ss=ss(e),_t182=_ss[0],_n80=_ss[1];_t182;_n80=_t182,_t182=_t182.getParent()){r.set(_t182,_n80);}for(var _ss2=ss(n),_i84=_ss2[0],_o28=_ss2[1];_i84;_o28=_i84,_i84=_i84.getParent()){var _s18=r.get(_i84);if(void 0!==_s18)return null===_s18?(os(e,_i84)||t(276),{commonAncestor:_i84,type:"ancestor"}):null===_o28?(os(n,_i84)||t(277),{commonAncestor:_i84,type:"descendant"}):(($r(_s18)||os(e,_s18))&&($r(_o28)||os(n,_o28))&&_i84.is(_s18.getParent())&&_i84.is(_o28.getParent())||t(278),{a:_s18,b:_o28,commonAncestor:_i84,type:"branch"});}return null;}function cs(e,n){var r=e.type,i=e.key,o=e.offset,s=fo(e.key);return"text"===r?(Dn(s)||t(266,s.getType(),i),jo(s,n,o)):($r(s)||t(267,s.getType(),i),Ss(s,e.offset,n));}function as(e,n){var r=n.origin,i=n.direction,o="next"===i;Bo(n)?e.set(r.getKey(),n.offset,"text"):zo(n)?Dn(r)?e.set(r.getKey(),Vo(r,i),"text"):e.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+(o?1:0),"element"):(Wo(n)&&$r(r)||t(268),e.set(r.getKey(),o?0:r.getChildrenSize(),"element"));}function us(t){var e=ir(),n=Kn(e)?e:er();return fs(n,t),Oi(n),n;}function fs(t,e){as(t.anchor,e.anchor),as(t.focus,e.focus);}function ds(t){var e=t.anchor,n=t.focus,r=cs(e,"next"),i=cs(n,"next"),o=rs(r,i)<=0?"next":"previous";return es(xs(r,o),xs(i,o));}function hs(t){var e=t.direction,n=t.origin,r=Jo(n,Lo(e)).getNodeAtCaret();return r?Jo(r,e):Yo(n.getParentOrThrow(),e);}function gs(t,e){if(e===void 0){e="root";}var n=[t];for(var _r65=Wo(t)?t.getParentCaret(e):t.getSiblingCaret();null!==_r65;_r65=_r65.getParentCaret(e)){n.push(hs(_r65));}return n;}function ps(t){return!!t&&t.origin.isAttached();}function _s(e,n){if(n===void 0){n="removeEmptySlices";}if(e.isCollapsed())return e;var r="root",i="next";var o=n;var s=Cs(e,i),l=gs(s.anchor,r),c=gs(s.focus.getFlipped(),r),a=new Set(),u=[];for(var _iterator28=s.iterNodeCarets(r),_isArray28=Array.isArray(_iterator28),_i85=0,_iterator28=_isArray28?_iterator28:_iterator28[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref49;if(_isArray28){if(_i85>=_iterator28.length)break;_ref49=_iterator28[_i85++];}else{_i85=_iterator28.next();if(_i85.done)break;_ref49=_i85.value;}var _t184=_ref49;if(Wo(_t184))a.add(_t184.origin.getKey());else if(zo(_t184)){var _e118=_t184.origin;$r(_e118)&&!a.has(_e118.getKey())||u.push(_e118);}}for(var _i86=0;_i86<u.length;_i86++){var _t185=u[_i86];_t185.remove();}for(var _iterator29=s.getTextSlices(),_isArray29=Array.isArray(_iterator29),_i87=0,_iterator29=_isArray29?_iterator29:_iterator29[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref50;if(_isArray29){if(_i87>=_iterator29.length)break;_ref50=_iterator29[_i87++];}else{_i87=_iterator29.next();if(_i87.done)break;_ref50=_i87.value;}var _t186=_ref50;if(!_t186)continue;var _e119=_t186.caret.origin,_n81=_e119.getTextContentSize(),_r67=hs(Jo(_e119,i)),_s19=_e119.getMode();if(Math.abs(_t186.distance)===_n81&&"removeEmptySlices"===o||"token"===_s19&&0!==_t186.distance)_r67.remove();else if(0!==_t186.distance){o="removeEmptySlices";var _e120=_t186.removeTextSlice();var _n82=_t186.caret.origin;if("segmented"===_s19){var _t187=_e120.origin,_n83=An(_t187.getTextContent()).setStyle(_t187.getStyle()).setFormat(_t187.getFormat());_r67.replaceOrInsert(_n83),_e120=jo(_n83,i,_e120.offset);}_n82.is(l[0].origin)&&(l[0]=_e120),_n82.is(c[0].origin)&&(c[0]=_e120.getFlipped());}}var f,d;for(var _iterator30=l,_isArray30=Array.isArray(_iterator30),_i88=0,_iterator30=_isArray30?_iterator30:_iterator30[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref51;if(_isArray30){if(_i88>=_iterator30.length)break;_ref51=_iterator30[_i88++];}else{_i88=_iterator30.next();if(_i88.done)break;_ref51=_i88.value;}var _t188=_ref51;if(ps(_t188)){f=ms(_t188);break;}}for(var _iterator31=c,_isArray31=Array.isArray(_iterator31),_i89=0,_iterator31=_isArray31?_iterator31:_iterator31[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref52;if(_isArray31){if(_i89>=_iterator31.length)break;_ref52=_iterator31[_i89++];}else{_i89=_iterator31.next();if(_i89.done)break;_ref52=_i89.value;}var _t189=_ref52;if(ps(_t189)){d=ms(_t189);break;}}var h=function(t,e,n){if(!t||!e)return null;var r=t.getParentAtCaret(),i=e.getParentAtCaret();if(!r||!i)return null;var o=r.getParents().reverse();o.push(r);var s=i.getParents().reverse();s.push(i);var l=Math.min(o.length,s.length);var c;for(c=0;c<l&&o[c]===s[c];c++){;}var a=function a(t,e){var n;for(var _r66=c;_r66<t.length;_r66++){var _i90=t[_r66];if(lo(_i90))return;!n&&e(_i90)&&(n=_i90);}return n;},u=a(o,To),f=u&&a(s,function(t){return n.has(t.getKey())&&To(t);});return u&&f?[u,f]:null;}(f,d,a);if(h){var _t183=h[0],_e117=h[1];Yo(_t183,"previous").splice(0,_e117.getChildren()),_e117.remove();}var g=[f,d].concat(l,c).find(ps);if(g){return ts(xs(ms(g),e.direction));}t(269,JSON.stringify(l.map(function(t){return t.origin.__key;})));}function ms(t){var e=function(t){var e=t;for(;Wo(e);){var _t190=Go(e);if(!Wo(_t190))break;e=_t190;}return e;}(t.getLatest()),n=e.direction;if(Dn(e.origin))return Bo(e)?e:jo(e.origin,n,n);var r=e.getAdjacentCaret();return zo(r)&&Dn(r.origin)?jo(r.origin,n,Lo(n)):e;}function ys(t){return Bo(t)&&t.offset!==Vo(t.origin,t.direction);}function xs(t,e){return t.direction===e?t:t.getFlipped();}function Cs(t,e){return t.direction===e?t:es(xs(t.focus,e),xs(t.anchor,e));}function Ss(t,e,n){var r=Yo(t,"next");for(var _t191=0;_t191<e;_t191++){var _t192=r.getAdjacentCaret();if(null===_t192)break;r=_t192;}return xs(r,n);}function Ts(e){var n=e.origin,r=e.offset,i=e.direction;if(r===Vo(n,i))return e.getSiblingCaret();if(r===Vo(n,Lo(i)))return hs(e.getSiblingCaret());var _n$splitText=n.splitText(r),o=_n$splitText[0];return Dn(o)||t(281),xs(Jo(o,"next"),i);}function vs(t,e){return!0;}exports.$addUpdateTag=eo,exports.$applyNodeReplacement=ao,exports.$caretFromPoint=cs,exports.$caretRangeFromSelection=ds,exports.$cloneWithProperties=Eo,exports.$comparePointCaretNext=rs,exports.$copyNode=co,exports.$createLineBreakNode=hn,exports.$createNodeSelection=nr,exports.$createParagraphNode=ti,exports.$createPoint=Bn,exports.$createRangeSelection=er,exports.$createRangeSelectionFromDom=function(t,e){return rr(null,t,e,null);},exports.$createTabNode=In,exports.$createTextNode=An,exports.$extendCaretToRange=Zo,exports.$getAdjacentChildCaret=Go,exports.$getAdjacentNode=Yi,exports.$getAdjacentSiblingOrParentSiblingCaret=function(t,e){if(e===void 0){e="root";}var n=0,r=t,i=Go(r);for(;null===i;){if(n--,i=r.getParentCaret(e),!i)return null;r=i,i=Go(r);}return i&&[i,n];},exports.$getCaretInDirection=xs,exports.$getCaretRange=es,exports.$getCaretRangeInDirection=Cs,exports.$getCharacterOffsets=Vn,exports.$getChildCaret=Yo,exports.$getChildCaretAtIndex=Ss,exports.$getChildCaretOrSelf=qo,exports.$getCollapsedCaretRange=ts,exports.$getCommonAncestor=ls,exports.$getCommonAncestorResultBranchOrder=is,exports.$getEditor=function(){return kr();},exports.$getNearestNodeFromDOMNode=Ni,exports.$getNearestRootOrShadowRoot=so,exports.$getNodeByKey=Si,exports.$getNodeByKeyOrThrow=fo,exports.$getPreviousSelection=or,exports.$getRoot=Ei,exports.$getSelection=ir,exports.$getSiblingCaret=Jo,exports.$getState=G,exports.$getStateChange=function(t,e,n){var r=G(t,n,"direct"),i=G(e,n,"direct");return n.isEqual(r,i)?null:[r,i];},exports.$getTextContent=function(){var t=ir();return null===t?"":t.getTextContent();},exports.$getTextNodeOffset=Vo,exports.$getTextPointCaret=jo,exports.$getTextPointCaretSlice=Ho,exports.$getWritableNodeState=Z,exports.$hasAncestor=ro,exports.$hasUpdateTag=function(t){return kr()._updateTags.has(t);},exports.$insertNodes=function(t){var e=ir()||or();null===e&&(e=Ei().selectEnd()),e.insertNodes(t);},exports.$isBlockElementNode=function(t){return $r(t)&&!t.isInline();},exports.$isChildCaret=Wo,exports.$isDecoratorNode=Jr,exports.$isElementNode=$r,exports.$isExtendableTextPointCaret=ys,exports.$isInlineElementOrDecoratorNode=function(t){return $r(t)&&t.isInline()||Jr(t)&&t.isInline();},exports.$isLeafNode=function(t){return Dn(t)||gn(t)||Jr(t);},exports.$isLineBreakNode=gn,exports.$isNodeCaret=function(t){return t instanceof Ao;},exports.$isNodeSelection=Jn,exports.$isParagraphNode=function(t){return t instanceof Qr;},exports.$isRangeSelection=Kn,exports.$isRootNode=Vr,exports.$isRootOrShadowRoot=lo,exports.$isSiblingCaret=zo,exports.$isTabNode=Fn,exports.$isTextNode=Dn,exports.$isTextPointCaret=Bo,exports.$isTextPointCaretSlice=function(t){return t instanceof Qo;},exports.$isTokenOrSegmented=fi,exports.$nodesOfType=function(t){var e=t.getType(),n=Nr();if(n._readOnly){var _t193=bo(n).get(e);return _t193?Array.from(_t193.values()):[];}var r=n._nodeMap,i=[];for(var _iterator32=r,_isArray32=Array.isArray(_iterator32),_i91=0,_iterator32=_isArray32?_iterator32:_iterator32[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref54;if(_isArray32){if(_i91>=_iterator32.length)break;_ref54=_iterator32[_i91++];}else{_i91=_iterator32.next();if(_i91.done)break;_ref54=_i91.value;}var _ref55=_ref54;var _n84=_ref55[1];_n84 instanceof t&&_n84.__type===e&&_n84.isAttached()&&i.push(_n84);}return i;},exports.$normalizeCaret=ms,exports.$normalizeSelection__EXPERIMENTAL=rt,exports.$onUpdate=no,exports.$parseSerializedNode=function(t){return Ar(t,kr()._nodes);},exports.$removeTextFromCaretRange=_s,exports.$rewindSiblingCaret=hs,exports.$selectAll=function(t){var e=Ei();if(Kn(t)){var _e121=t.anchor,_n85=t.focus,_r68=_e121.getNode().getTopLevelElementOrThrow().getParentOrThrow();return _e121.set(_r68.getKey(),0,"element"),_n85.set(_r68.getKey(),_r68.getChildrenSize(),"element"),rt(t),t;}{var _t194=e.select(0,e.getChildrenSize());return Oi(rt(_t194)),_t194;}},exports.$setCompositionKey=xi,exports.$setPointFromCaret=as,exports.$setSelection=Oi,exports.$setSelectionFromCaretRange=us,exports.$setState=function(t,e,n){var r;if(Tr(),"function"==typeof n){var _i92=t.getLatest(),_o29=G(_i92,e);if(r=n(_o29),e.isEqual(_o29,r))return _i92;}else r=n;var i=t.getWritable();return Z(i).updateFromKnown(e,r),i;},exports.$splitAtPointCaretNext=function(t,_temp10){var _ref56=_temp10===void 0?{}:_temp10,_ref56$$copyElementNo=_ref56.$copyElementNode,e=_ref56$$copyElementNo===void 0?co:_ref56$$copyElementNo,_ref56$$splitTextPoin=_ref56.$splitTextPointCaretNext,n=_ref56$$splitTextPoin===void 0?Ts:_ref56$$splitTextPoin,_ref56$rootMode=_ref56.rootMode,r=_ref56$rootMode===void 0?"shadowRoot":_ref56$rootMode,_ref56$$shouldSplit=_ref56.$shouldSplit,i=_ref56$$shouldSplit===void 0?vs:_ref56$$shouldSplit;if(Bo(t))return n(t);var o=t.getParentCaret(r);if(o){var _n86=o.origin;if(Wo(t)&&(!_n86.canBeEmpty()||!i(_n86,"first")))return hs(o);var _r69=function(t){var e=[];for(var _n87=t.getAdjacentCaret();_n87;_n87=_n87.getAdjacentCaret()){e.push(_n87.origin);}return e;}(t);(_r69.length>0||_n86.canBeEmpty()&&i(_n86,"last"))&&o.insert(e(_n86).splice(0,0,_r69));}return o;},exports.$splitNode=function(e,n){var r=e.getChildAtIndex(n);null==r&&(r=e),lo(e)&&t(102);var i=function i(e){var n=e.getParentOrThrow(),o=lo(n),s=e!==r||o?co(e):e;if(o)return $r(e)&&$r(s)||t(133),e.insertAfter(s),[e,s,s];{var _i94=i(n),_t195=_i94[0],_r70=_i94[1],_o30=_i94[2],_l12=e.getNextSiblings();return _o30.append.apply(_o30,[s].concat(_l12)),[_t195,_r70,s];}},_i93=i(r),o=_i93[0],s=_i93[1];return[o,s];},exports.$updateRangeSelectionFromCaretRange=fs,exports.ArtificialNode__DO_NOT_USE=Xr,exports.BLUR_COMMAND=Ae,exports.CAN_REDO_COMMAND=we,exports.CAN_UNDO_COMMAND=Oe,exports.CLEAR_EDITOR_COMMAND=be,exports.CLEAR_HISTORY_COMMAND=Ee,exports.CLICK_COMMAND=Jt,exports.COMMAND_PRIORITY_CRITICAL=4,exports.COMMAND_PRIORITY_EDITOR=0,exports.COMMAND_PRIORITY_HIGH=3,exports.COMMAND_PRIORITY_LOW=1,exports.COMMAND_PRIORITY_NORMAL=2,exports.CONTROLLED_TEXT_INSERTION_COMMAND=Yt,exports.COPY_COMMAND=ve,exports.CUT_COMMAND=Ne,exports.DELETE_CHARACTER_COMMAND=jt,exports.DELETE_LINE_COMMAND=Qt,exports.DELETE_WORD_COMMAND=Xt,exports.DRAGEND_COMMAND=Te,exports.DRAGOVER_COMMAND=Se,exports.DRAGSTART_COMMAND=Ce,exports.DROP_COMMAND=ye,exports.DecoratorNode=Ur,exports.ElementNode=Wr,exports.FOCUS_COMMAND=Me,exports.FORMAT_ELEMENT_COMMAND=xe,exports.FORMAT_TEXT_COMMAND=Zt,exports.INDENT_CONTENT_COMMAND=_e,exports.INSERT_LINE_BREAK_COMMAND=Vt,exports.INSERT_PARAGRAPH_COMMAND=Ht,exports.INSERT_TAB_COMMAND=pe,exports.INTERNAL_$isBlock=To,exports.IS_ALL_FORMATTING=2047,exports.IS_BOLD=1,exports.IS_CODE=16,exports.IS_HIGHLIGHT=_,exports.IS_ITALIC=2,exports.IS_STRIKETHROUGH=4,exports.IS_SUBSCRIPT=32,exports.IS_SUPERSCRIPT=64,exports.IS_UNDERLINE=8,exports.KEY_ARROW_DOWN_COMMAND=ce,exports.KEY_ARROW_LEFT_COMMAND=oe,exports.KEY_ARROW_RIGHT_COMMAND=re,exports.KEY_ARROW_UP_COMMAND=le,exports.KEY_BACKSPACE_COMMAND=fe,exports.KEY_DELETE_COMMAND=he,exports.KEY_DOWN_COMMAND=ne,exports.KEY_ENTER_COMMAND=ae,exports.KEY_ESCAPE_COMMAND=de,exports.KEY_MODIFIER_COMMAND=De,exports.KEY_SPACE_COMMAND=ue,exports.KEY_TAB_COMMAND=ge,exports.LineBreakNode=fn,exports.MOVE_TO_END=ie,exports.MOVE_TO_START=se,exports.NODE_STATE_KEY="$",exports.OUTDENT_CONTENT_COMMAND=me,exports.PASTE_COMMAND=qt,exports.ParagraphNode=Qr,exports.REDO_COMMAND=ee,exports.REMOVE_TEXT_COMMAND=Gt,exports.RootNode=jr,exports.SELECTION_CHANGE_COMMAND=Kt,exports.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND=Ut,exports.SELECT_ALL_COMMAND=ke,exports.TEXT_TYPE_TO_FORMAT=M,exports.TabNode=Ln,exports.TextNode=Tn,exports.UNDO_COMMAND=te,exports.createCommand=$t,exports.createEditor=function(t){var e=t||{},n=Er(),r=e.theme||{},i=void 0===t?n:e.parentEditor||null,o=e.disableEvents||!1,s=Yr(),l=e.namespace||(null!==i?i._config.namespace:Li()),c=e.editorState,a=[jr,Tn,fn,Ln,Qr,Xr].concat(e.nodes||[]),u=e.onError,f=e.html,d=void 0===e.editable||e.editable;var h;if(void 0===t&&null!==n)h=n._nodes;else{h=new Map();for(var _t196=0;_t196<a.length;_t196++){var _e122=a[_t196],_n88=null,_r71=null;if("function"!=typeof _e122){var _t197=_e122;_e122=_t197.replace,_n88=_t197["with"],_r71=_t197.withKlass||null;}var _i95=_e122.getType(),_o31=_e122.transform(),_s20=new Set();null!==_o31&&_s20.add(_o31),h.set(_i95,{exportDOM:f&&f["export"]?f["export"].get(_e122):void 0,klass:_e122,replace:_n88,replaceWithKlass:_r71,transforms:_s20});}}var g=new ni(s,i,h,{disableEvents:o,namespace:l,theme:r},u||console.error,function(t,e){var n=new Map(),r=new Set(),i=function i(t){Object.keys(t).forEach(function(e){var r=n.get(e);void 0===r&&(r=[],n.set(e,r)),r.push(t[e]);});};return t.forEach(function(t){var e=t.klass.importDOM;if(null==e||r.has(e))return;r.add(e);var n=e.call(t.klass);null!==n&&i(n);}),e&&i(e),n;}(h,f?f["import"]:void 0),d,t);return void 0!==c&&(g._pendingEditorState=c,g._dirtyType=2),g;},exports.createState=function(t,e){return new q(t,e);},exports.flipDirection=Lo,exports.getDOMOwnerDocument=to,exports.getDOMSelection=po,exports.getDOMSelectionFromTarget=_o,exports.getDOMTextNode=gi,exports.getEditorPropertyFromDOMNode=ui,exports.getNearestEditorFromDOMNode=ai,exports.isBlockDomNode=So,exports.isCurrentlyReadOnlyMode=Sr,exports.isDOMDocumentNode=hi,exports.isDOMNode=yo,exports.isDOMTextNode=di,exports.isDOMUnmanaged=Oo,exports.isDocumentFragment=xo,exports.isHTMLAnchorElement=function(t){return mo(t)&&"A"===t.tagName;},exports.isHTMLElement=mo,exports.isInlineDomNode=Co,exports.isLexicalEditor=ci,exports.isSelectionCapturedInDecoratorInput=si,exports.isSelectionWithinEditor=li,exports.makeStepwiseIterator=ns,exports.resetRandomKey=function(){ri=1;},exports.setDOMUnmanaged=function(t){t.__lexicalUnmanaged=!0;},exports.setNodeIndentFromDOM=wo;}),null);
__d("LexicalClipboard",["cr:862"],(function(a,b,c,d,e,f){e.exports=b("cr:862")}),null);
__d("LexicalHtml",["cr:1497"],(function(a,b,c,d,e,f){e.exports=b("cr:1497")}),null);
__d("LexicalSelection",["cr:2180"],(function(a,b,c,d,e,f){e.exports=b("cr:2180")}),null);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<c0b1be0694efe803444c989ea6d9c321>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("LexicalClipboard.prod",["Lexical","LexicalHtml","LexicalSelection","LexicalUtils"],(function $module_LexicalClipboard_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";function r(e){var n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams();o.append("code",e);for(var _len=arguments.length,t=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){t[_key-1]=arguments[_key];}for(var _e of t){o.append("v",_e);}throw n.search=o.toString(),Error("Minified Lexical error #"+e+"; visit "+n.toString()+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");}function i(t,n){if(n===void 0){n=require("Lexical").$getSelection();}return null==n&&r(166),require("Lexical").$isRangeSelection(n)&&n.isCollapsed()||0===n.getNodes().length?"":require("LexicalHtml").$generateHtmlFromNodes(t,n);}function l(e,t){if(t===void 0){t=require("Lexical").$getSelection();}return null==t&&r(166),require("Lexical").$isRangeSelection(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(c(e,t));}function s(e,t,n){e.dispatchCommand(require("Lexical").SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,{nodes:t,selection:n})||n.insertNodes(t);}function a(e,n,i,l){if(l===void 0){l=[];}var s=null===n||i.isSelected(n);var c=require("Lexical").$isElementNode(i)&&i.excludeFromCopy("html");var d=i;if(null!==n){var _e2=require("Lexical").$cloneWithProperties(i);_e2=require("Lexical").$isTextNode(_e2)&&null!==n?require("LexicalSelection").$sliceSelectedTextNodeContent(n,_e2):_e2,d=_e2;}var u=require("Lexical").$isElementNode(d)?d.getChildren():[],p=function(e){var t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&r(58,n.name),require("Lexical").$isElementNode(e)){var _e3=t.children;Array.isArray(_e3)||r(59,n.name);}return t;}(d);if(require("Lexical").$isTextNode(d)){var _e4=d.__text;_e4.length>0?p.text=_e4:s=!1;}for(var _t=0;_t<u.length;_t++){var _r=u[_t],_l=a(e,n,_r,p.children);!s&&require("Lexical").$isElementNode(i)&&_l&&i.extractWithChild(_r,n,"clone")&&(s=!0);}if(s&&!c)l.push(p);else if(Array.isArray(p.children))for(var _e5=0;_e5<p.children.length;_e5++){var _t2=p.children[_e5];l.push(_t2);}return s;}function c(e,t){var n=[],r=require("Lexical").$getRoot().getChildren();for(var _o=0;_o<r.length;_o++){a(e,t,r[_o],n);}return{namespace:e._config.namespace,nodes:n};}function d(e){var n=[];for(var _r2=0;_r2<e.length;_r2++){var _i=e[_r2],_l2=require("Lexical").$parseSerializedNode(_i);require("Lexical").$isTextNode(_l2)&&require("LexicalSelection").$addNodeStyle(_l2),n.push(_l2);}return n;}var u=null;function p(e,t,n){if(void 0===n){var _t3=require("Lexical").getDOMSelection(e._window);if(!_t3)return!1;var _r3=_t3.anchorNode,_i2=_t3.focusNode;if(null!==_r3&&null!==_i2&&!require("Lexical").isSelectionWithinEditor(e,_r3,_i2))return!1;var _l3=require("Lexical").$getSelection();if(null===_l3)return!1;n=g(_l3);}t.preventDefault();var r=t.clipboardData;return null!==r&&(x(r,n),!0);}var f=[["text/html",i],["application/x-lexical-editor",l]];function g(e){if(e===void 0){e=require("Lexical").$getSelection();}var t={"text/plain":e?e.getTextContent():""};if(e){var _n=require("Lexical").$getEditor();for(var _ref of f){var _o2=_ref[0];var _r4=_ref[1];var _i3=_r4(_n,e);null!==_i3&&(t[_o2]=_i3);}}return t;}function x(e,t){for(var _n2 in t){var _o3=t[_n2];void 0!==_o3&&e.setData(_n2,_o3);}}exports.$generateJSONFromSelectedNodes=c,exports.$generateNodesFromSerializedNodes=d,exports.$getClipboardDataFromSelection=g,exports.$getHtmlContent=i,exports.$getLexicalContent=l,exports.$insertDataTransferForPlainText=function(e,t){var n=e.getData("text/plain")||e.getData("text/uri-list");null!=n&&t.insertRawText(n);},exports.$insertDataTransferForRichText=function(t,n,r){var i=t.getData("application/x-lexical-editor");if(i)try{var _e6=JSON.parse(i);if(_e6.namespace===r._config.namespace&&Array.isArray(_e6.nodes)){return s(r,d(_e6.nodes),n);}}catch(e){}var l=t.getData("text/html"),a=t.getData("text/plain");if(l&&a!==l)try{var _t4=new DOMParser().parseFromString(function(e){if(window.trustedTypes&&window.trustedTypes.createPolicy){return window.trustedTypes.createPolicy("Lexical",{createHTML:function createHTML(e){return e;}}).createHTML(e);}return e;}(l),"text/html");return s(r,require("LexicalHtml").$generateNodesFromDOM(r,_t4),n);}catch(e){}var c=a||t.getData("text/uri-list");if(null!=c)if(require("Lexical").$isRangeSelection(n)){var _e7=c.split(/(\r?\n|\t)/);""===_e7[_e7.length-1]&&_e7.pop();for(var _t5=0;_t5<_e7.length;_t5++){var _n3=require("Lexical").$getSelection();if(require("Lexical").$isRangeSelection(_n3)){var _r5=_e7[_t5];"\n"===_r5||"\r\n"===_r5?_n3.insertParagraph():"\t"===_r5?_n3.insertNodes([require("Lexical").$createTabNode()]):_n3.insertText(_r5);}}}else n.insertRawText(c);},exports.$insertGeneratedNodes=s,exports.copyToClipboard=async function(e,t,r){if(null!==u)return!1;if(null!==t)return new Promise(function(n,o){e.update(function(){n(p(e,t,r));});});var i=e.getRootElement(),l=e._window||window,s=window.document,a=require("Lexical").getDOMSelection(l);if(null===i||null===a)return!1;var c=s.createElement("span");c.style.cssText="position: fixed; top: -1000px;",c.append(s.createTextNode("#")),i.append(c);var d=new Range();return d.setStart(c,0),d.setEnd(c,1),a.removeAllRanges(),a.addRange(d),new Promise(function(t,i){var l=e.registerCommand(require("Lexical").COPY_COMMAND,function(o){return require("LexicalUtils").objectKlassEquals(o,ClipboardEvent)&&(l(),null!==u&&(window.clearTimeout(u),u=null),t(p(e,o,r))),!0;},require("Lexical").COMMAND_PRIORITY_CRITICAL);u=window.setTimeout(function(){l(),u=null,t(!1);},50),s.execCommand("copy"),c.remove();});},exports.setLexicalClipboardDataTransfer=x;}),null);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<4670fbc257dcd2d65343092e21d4918e>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("LexicalContentEditable.prod",["LexicalComposerContext","LexicalText","LexicalUtils","react"],(function $module_LexicalContentEditable_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";var _require_closure_react;var t=_require_closure_react||(_require_closure_react=require("react")),a=_require_closure_react;var n="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function o(_ref,q){var e=_ref.editor,i=_ref.ariaActiveDescendant,r=_ref.ariaAutoComplete,o=_ref.ariaControls,l=_ref.ariaDescribedBy,s=_ref.ariaErrorMessage,d=_ref.ariaExpanded,u=_ref.ariaInvalid,c=_ref.ariaLabel,f=_ref.ariaLabelledBy,b=_ref.ariaMultiline,m=_ref.ariaOwns,x=_ref.ariaRequired,E=_ref.autoCapitalize,p=_ref.className,v=_ref.id,_ref$role=_ref.role,C=_ref$role===void 0?"textbox":_ref$role,_ref$spellCheck=_ref.spellCheck,w=_ref$spellCheck===void 0?!0:_ref$spellCheck,y=_ref.style,L=_ref.tabIndex,g=_ref["data-testid"],h=babelHelpers.objectWithoutPropertiesLoose(_ref,["editor","ariaActiveDescendant","ariaAutoComplete","ariaControls","ariaDescribedBy","ariaErrorMessage","ariaExpanded","ariaInvalid","ariaLabel","ariaLabelledBy","ariaMultiline","ariaOwns","ariaRequired","autoCapitalize","className","id","role","spellCheck","style","tabIndex","data-testid"]);var _t$useState=t.useState(e.isEditable()),R=_t$useState[0],j=_t$useState[1],S=t.useCallback(function(t){t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null);},[e]),D=t.useMemo(function(){return function(){for(var _len=arguments.length,e=new Array(_len),_key=0;_key<_len;_key++){e[_key]=arguments[_key];}return function(t){e.forEach(function(e){"function"==typeof e?e(t):null!=e&&(e.current=t);});};}(q,S);},[S,q]);return n(function(){return j(e.isEditable()),e.registerEditableListener(function(e){j(e);});},[e]),a.jsx("div",babelHelpers["extends"]({"aria-activedescendant":R?i:void 0,"aria-autocomplete":R?r:"none","aria-controls":R?o:void 0,"aria-describedby":l},null!=s?{"aria-errormessage":s}:{},{"aria-expanded":R&&"combobox"===C?!!d:void 0},null!=u?{"aria-invalid":u}:{},{"aria-label":c,"aria-labelledby":f,"aria-multiline":b,"aria-owns":R?m:void 0,"aria-readonly":!R||void 0,"aria-required":x,autoCapitalize:E,className:p,contentEditable:R,"data-testid":g,id:v,ref:D,role:R?C:void 0,spellCheck:w,style:y,tabIndex:L},h));}var l=t.forwardRef(o);function s(e){return e.getEditorState().read(require("LexicalText").$canShowPlaceholderCurry(e.isComposing()));}var d=t.forwardRef(u);function u(t,i){var r=t.placeholder,n=babelHelpers.objectWithoutPropertiesLoose(t,["placeholder"]),_e$useLexicalComposer=require("LexicalComposerContext").useLexicalComposerContext(),o=_e$useLexicalComposer[0];return a.jsxs(a.Fragment,{children:[a.jsx(l,babelHelpers["extends"]({editor:o},n,{ref:i})),null!=r&&a.jsx(c,{editor:o,content:r})]});}function c(_ref2){var e=_ref2.content,i=_ref2.editor;var o=function(e){var _t$useState3=t.useState(function(){return s(e);}),a=_t$useState3[0],i=_t$useState3[1];return n(function(){function t(){var t=s(e);i(t);}return t(),require("LexicalUtils").mergeRegister(e.registerUpdateListener(function(){t();}),e.registerEditableListener(function(){t();}));},[e]),a;}(i),_t$useState2=t.useState(i.isEditable()),l=_t$useState2[0],d=_t$useState2[1];if(t.useLayoutEffect(function(){return d(i.isEditable()),i.registerEditableListener(function(e){d(e);});},[i]),!o)return null;var u=null;return"function"==typeof e?u=e(l):null!==e&&(u=e),null===u?null:a.jsx("div",{"aria-hidden":!0,children:u});}exports.ContentEditable=d,exports.ContentEditableElement=l;}),null);
__d("LexicalDragon",["cr:2903"],(function(a,b,c,d,e,f){e.exports=b("cr:2903")}),null);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<60e3b97f2fc9020a9a039979d05e2681>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("LexicalDragon.prod",["Lexical"],(function $module_LexicalDragon_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";exports.registerDragonSupport=function(t){var n=window.location.origin,o=function o(_o){if(_o.origin!==n)return;var i=t.getRootElement();if(document.activeElement!==i)return;var s=_o.data;if("string"==typeof s){var _n;try{_n=JSON.parse(s);}catch(e){return;}if(_n&&"nuanria_messaging"===_n.protocol&&"request"===_n.type){var _i=_n.payload;if(_i&&"makeChanges"===_i.functionId){var _n2=_i.args;if(_n2){var _i2=_n2[0],_s=_n2[1],r=_n2[2],a=_n2[3],c=_n2[4],g=_n2[5];t.update(function(){var t=require("Lexical").$getSelection();if(require("Lexical").$isRangeSelection(t)){var _n3=t.anchor;var _g=_n3.getNode(),d=0,u=0;if(require("Lexical").$isTextNode(_g)&&_i2>=0&&_s>=0&&(d=_i2,u=_i2+_s,t.setTextNodeRange(_g,d,_g,u)),d===u&&""===r||(t.insertRawText(r),_g=_n3.getNode()),require("Lexical").$isTextNode(_g)){d=a,u=a+c;var _e=_g.getTextContentSize();d=d>_e?_e:d,u=u>_e?_e:u,t.setTextNodeRange(_g,d,_g,u);}_o.stopImmediatePropagation();}});}}}}};return window.addEventListener("message",o,!0),function(){window.removeEventListener("message",o,!0);};};}),null);
__d("LexicalErrorBoundary",["cr:2260"],(function(a,b,c,d,e,f){e.exports=b("cr:2260")}),null);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<b2f48e2032aa0eb243a6f844b4c56d3f>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("LexicalErrorBoundary.prod",["react"],(function $module_LexicalErrorBoundary_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";var _require_closure_react;var r=_require_closure_react||(_require_closure_react=require("react")),e=_require_closure_react;function t(r){var e=Object.create(null);if(r)for(var t in r){e[t]=r[t];}return e["default"]=r,e;}var n=t(r);function o(r,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,e){return r.__proto__=e,r;},o(r,e);}var a={error:null},i=function(r){var e,t;function i(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++){n[o]=arguments[o];}return(e=r.call.apply(r,[this].concat(n))||this).state=a,e.resetErrorBoundary=function(){for(var r,t=arguments.length,n=new Array(t),o=0;o<t;o++){n[o]=arguments[o];}null==e.props.onReset||(r=e.props).onReset.apply(r,n),e.reset();},e;}t=r,(e=i).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),i.getDerivedStateFromError=function(r){return{error:r};};var l=i.prototype;return l.reset=function(){this.setState(a);},l.componentDidCatch=function(r,e){var t,n;null==(t=(n=this.props).onError)||t.call(n,r,e);},l.componentDidUpdate=function(r,e){var t,n,o,a,i=this.state.error,l=this.props.resetKeys;null!==i&&null!==e.error&&(void 0===(o=r.resetKeys)&&(o=[]),void 0===(a=l)&&(a=[]),o.length!==a.length||o.some(function(r,e){return!Object.is(r,a[e]);}))&&(null==(t=(n=this.props).onResetKeysChange)||t.call(n,r.resetKeys,l),this.reset());},l.render=function(){var r=this.state.error,e=this.props,t=e.fallbackRender,o=e.FallbackComponent,a=e.fallback;if(null!==r){var i={error:r,resetErrorBoundary:this.resetErrorBoundary};if(n.isValidElement(a))return a;if("function"==typeof t)return t(i);if(o)return n.createElement(o,i);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop");}return this.props.children;},i;}(n.Component);exports.LexicalErrorBoundary=function(_ref){var r=_ref.children,t=_ref.onError;return e.jsx(i,{fallback:e.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:r});};}),null);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<c0b0c1ef6bc1e0ee5dc26b14935cb9c7>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("LexicalHashtag.prod",["Lexical","LexicalUtils"],(function $module_LexicalHashtag_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";var r=function(_t$TextNode){babelHelpers.inheritsLoose(r,_t$TextNode);function r(){return _t$TextNode.apply(this,arguments)||this;}r.getType=function getType(){return"hashtag";};r.clone=function clone(e){return new r(e.__text,e.__key);};var _proto=r.prototype;_proto.createDOM=function createDOM(t){var r=_t$TextNode.prototype.createDOM.call(this,t);return require("LexicalUtils").addClassNamesToElement(r,t.theme.hashtag),r;};r.importJSON=function importJSON(e){return a().updateFromJSON(e);};_proto.canInsertTextBefore=function canInsertTextBefore(){return!1;};_proto.isTextEntity=function isTextEntity(){return!0;};return r;}(require("Lexical").TextNode);function a(e){if(e===void 0){e="";}return require("Lexical").$applyNodeReplacement(new r(e));}exports.$createHashtagNode=a,exports.$isHashtagNode=function(e){return e instanceof r;},exports.HashtagNode=r;}),null);
__d("LexicalHistory",["cr:2904"],(function(a,b,c,d,e,f){e.exports=b("cr:2904")}),null);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<fb95e3fe1d6b4442f33ad7ac3b975fea>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("LexicalHistory.prod",["Lexical","LexicalUtils"],(function $module_LexicalHistory_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";function n(t,n,r,o,i){if(null===t||0===r.size&&0===o.size&&!i)return 0;var s=n._selection,c=t._selection;if(i)return 1;if(!(require("Lexical").$isRangeSelection(s)&&require("Lexical").$isRangeSelection(c)&&c.isCollapsed()&&s.isCollapsed()))return 0;var a=function(t,n,r){var o=t._nodeMap,i=[];for(var _iterator=n,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var _t=_ref;var _e=o.get(_t);void 0!==_e&&i.push(_e);}for(var _iterator2=r,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_iterator2[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref3;if(_isArray2){if(_i2>=_iterator2.length)break;_ref3=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref3=_i2.value;}var _ref4=_ref3;var _t2=_ref4[0];var _n=_ref4[1];if(!_n)continue;var _r=o.get(_t2);void 0===_r||require("Lexical").$isRootNode(_r)||i.push(_r);}return i;}(n,r,o);if(0===a.length)return 0;if(a.length>1){var _r2=n._nodeMap,_o=_r2.get(s.anchor.key),_i3=_r2.get(c.anchor.key);return _o&&_i3&&!t._nodeMap.has(_o.__key)&&require("Lexical").$isTextNode(_o)&&1===_o.__text.length&&1===s.anchor.offset?2:0;}var u=a[0],d=t._nodeMap.get(u.__key);if(!require("Lexical").$isTextNode(d)||!require("Lexical").$isTextNode(u)||d.__mode!==u.__mode)return 0;var l=d.__text,_=u.__text;if(l===_)return 0;var f=s.anchor,p=c.anchor;if(f.key!==p.key||"text"!==f.type)return 0;var C=f.offset,h=p.offset,O=_.length-l.length;return 1===O&&h===C-1?2:-1===O&&h===C+1?3:-1===O&&h===C?4:0;}function r(t,r){var o=Date.now(),i=0;return function(s,c,a,u,d,l){var _=Date.now();if(l.has("historic"))return i=0,o=_,2;var f=n(s,c,u,d,t.isComposing()),p=function(){var n=null===a||a.editor===t,p=l.has("history-push");if(!p&&n&&l.has("history-merge"))return 0;if(null===s)return 1;var C=c._selection;if(!(u.size>0||d.size>0))return null!==C?0:2;if(!1===p&&0!==f&&f===i&&_<o+r&&n)return 0;if(1===u.size){if(function(t,n,r){var o=n._nodeMap.get(t),i=r._nodeMap.get(t),s=n._selection,c=r._selection;return!(require("Lexical").$isRangeSelection(s)&&require("Lexical").$isRangeSelection(c)&&"element"===s.anchor.type&&"element"===s.focus.type&&"text"===c.anchor.type&&"text"===c.focus.type||!require("Lexical").$isTextNode(o)||!require("Lexical").$isTextNode(i)||o.__parent!==i.__parent)&&JSON.stringify(n.read(function(){return o.exportJSON();}))===JSON.stringify(r.read(function(){return i.exportJSON();}));}(Array.from(u)[0],s,c))return 0;}return 1;}();return o=_,i=f,p;};}function o(t){t.undoStack=[],t.redoStack=[],t.current=null;}exports.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]};},exports.registerHistory=function(n,i,s){var _require_Lexical;var c=r(n,s);return require("LexicalUtils").mergeRegister(n.registerCommand((_require_Lexical=require("Lexical")).UNDO_COMMAND,function(){return function(t,n){var r=n.redoStack,o=n.undoStack;if(0!==o.length){var _i4=n.current,_s=o.pop();null!==_i4&&(r.push(_i4),t.dispatchCommand(require("Lexical").CAN_REDO_COMMAND,!0)),0===o.length&&t.dispatchCommand(require("Lexical").CAN_UNDO_COMMAND,!1),n.current=_s||null,_s&&_s.editor.setEditorState(_s.editorState,{tag:"historic"});}}(n,i),!0;},_require_Lexical.COMMAND_PRIORITY_EDITOR),n.registerCommand(_require_Lexical.REDO_COMMAND,function(){return function(t,n){var r=n.redoStack,o=n.undoStack;if(0!==r.length){var _i5=n.current;null!==_i5&&(o.push(_i5),t.dispatchCommand(require("Lexical").CAN_UNDO_COMMAND,!0));var _s2=r.pop();0===r.length&&t.dispatchCommand(require("Lexical").CAN_REDO_COMMAND,!1),n.current=_s2||null,_s2&&_s2.editor.setEditorState(_s2.editorState,{tag:"historic"});}}(n,i),!0;},_require_Lexical.COMMAND_PRIORITY_EDITOR),n.registerCommand(_require_Lexical.CLEAR_EDITOR_COMMAND,function(){return o(i),!1;},_require_Lexical.COMMAND_PRIORITY_EDITOR),n.registerCommand(_require_Lexical.CLEAR_HISTORY_COMMAND,function(){return o(i),n.dispatchCommand(require("Lexical").CAN_REDO_COMMAND,!1),n.dispatchCommand(require("Lexical").CAN_UNDO_COMMAND,!1),!0;},_require_Lexical.COMMAND_PRIORITY_EDITOR),n.registerUpdateListener(function(_ref5){var t=_ref5.editorState,r=_ref5.prevEditorState,o=_ref5.dirtyLeaves,s=_ref5.dirtyElements,a=_ref5.tags;var u=i.current,d=i.redoStack,l=i.undoStack,_=null===u?null:u.editorState;if(null!==u&&t===_)return;var f=c(r,t,u,o,s,a);if(1===f)0!==d.length&&(i.redoStack=[],n.dispatchCommand(require("Lexical").CAN_REDO_COMMAND,!1)),null!==u&&(l.push(babelHelpers["extends"]({},u)),n.dispatchCommand(require("Lexical").CAN_UNDO_COMMAND,!0));else if(2===f)return;i.current={editor:n,editorState:t};}));};}),null);
__d("LexicalHistoryPlugin",["cr:293"],(function(a,b,c,d,e,f){e.exports=b("cr:293")}),null);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<19e769cca68da303f1374637e6c662ca>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("LexicalHistoryPlugin.prod",["LexicalComposerContext","LexicalHistory","react"],(function $module_LexicalHistoryPlugin_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";var _require_closure_react;var r=_require_closure_react||(_require_closure_react=require("react"));exports.createEmptyHistoryState=require("LexicalHistory").createEmptyHistoryState,exports.HistoryPlugin=function(_ref){var o=_ref.delay,s=_ref.externalHistoryState;var _e$useLexicalComposer=require("LexicalComposerContext").useLexicalComposerContext(),i=_e$useLexicalComposer[0];return function(e,o,s){if(s===void 0){s=1e3;}var i=r.useMemo(function(){return o||require("LexicalHistory").createEmptyHistoryState();},[o]);r.useEffect(function(){return require("LexicalHistory").registerHistory(e,i,s);},[s,e,i]);}(i,s,o),null;};}),null);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<d6964f621fb939956fc352fe520af3e4>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("LexicalHtml.prod",["Lexical","LexicalSelection","LexicalUtils"],(function $module_LexicalHtml_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";function o(l,i,r,s){if(s===void 0){s=null;}var c=null===s||i.isSelected(s);var d=require("Lexical").$isElementNode(i)&&i.excludeFromCopy("html");var u=i;if(null!==s){var _n=require("Lexical").$cloneWithProperties(i);_n=require("Lexical").$isTextNode(_n)&&null!==s?require("LexicalSelection").$sliceSelectedTextNodeContent(s,_n):_n,u=_n;}var a=require("Lexical").$isElementNode(u)?u.getChildren():[],f=l._nodes.get(u.getType());var m;m=f&&void 0!==f.exportDOM?f.exportDOM(l,u):u.exportDOM(l);var _m=m,h=_m.element,p=_m.after;if(!h)return!1;var g=document.createDocumentFragment();for(var _e=0;_e<a.length;_e++){var _n2=a[_e],_r=o(l,_n2,g,s);!c&&require("Lexical").$isElementNode(i)&&_r&&i.extractWithChild(_n2,s,"html")&&(c=!0);}if(c&&!d){if((require("LexicalUtils").isHTMLElement(h)||require("Lexical").isDocumentFragment(h))&&h.append(g),r.append(h),p){var _e2=p.call(u,h);_e2&&(require("Lexical").isDocumentFragment(h)?h.replaceChildren(_e2):h.replaceWith(_e2));}}else r.append(g);return c;}var l=new Set(["STYLE","SCRIPT"]);function i(e,o,s,c,d,u){var _f;if(d===void 0){d=new Map();}var a=[];if(l.has(e.nodeName))return a;var f=null;var m=function(e,n){var t=e.nodeName,o=n._htmlConversions.get(t.toLowerCase());var l=null;if(void 0!==o){for(var _iterator=o,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var _n3=_ref;var _t=_n3(e);null!==_t&&(null===l||(l.priority||0)<=(_t.priority||0))&&(l=_t);}}return null!==l?l.conversion:null;}(e,o),h=m?m(e):null;var p=null;if(null!==h){p=h.after;var _n4=h.node;if(f=Array.isArray(_n4)?_n4[_n4.length-1]:_n4,null!==f){var _a;for(var _iterator2=d,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_iterator2[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref3;if(_isArray2){if(_i2>=_iterator2.length)break;_ref3=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref3=_i2.value;}var _ref4=_ref3;var _e3=_ref4[1];if(f=_e3(f,u),!f)break;}f&&(_a=a).push.apply(_a,Array.isArray(_n4)?_n4:[f]);}null!=h.forChild&&d.set(e.nodeName,h.forChild);}var g=e.childNodes;var N=[];var $=(null==f||!require("Lexical").$isRootOrShadowRoot(f))&&(null!=f&&require("Lexical").$isBlockElementNode(f)||c);for(var _e4=0;_e4<g.length;_e4++){var _N;(_N=N).push.apply(_N,i(g[_e4],o,s,$,new Map(d),f));}return null!=p&&(N=p(N)),require("LexicalUtils").isBlockDomNode(e)&&(N=r(e,N,$?function(){var e=new(require("Lexical").ArtificialNode__DO_NOT_USE)();return s.push(e),e;}:require("Lexical").$createParagraphNode)),null==f?N.length>0?a=a.concat(N):require("LexicalUtils").isBlockDomNode(e)&&function(e){if(null==e.nextSibling||null==e.previousSibling)return!1;return require("Lexical").isInlineDomNode(e.nextSibling)&&require("Lexical").isInlineDomNode(e.previousSibling);}(e)&&(a=a.concat(require("Lexical").$createLineBreakNode())):require("Lexical").$isElementNode(f)&&(_f=f).append.apply(_f,N),a;}function r(e,n,o){var l=e.style.textAlign,i=[];var r=[];for(var _e5=0;_e5<n.length;_e5++){var s=n[_e5];if(require("Lexical").$isBlockElementNode(s))l&&!s.getFormat()&&s.setFormat(l),i.push(s);else if(r.push(s),_e5===n.length-1||_e5<n.length-1&&require("Lexical").$isBlockElementNode(n[_e5+1])){var _e6=o();_e6.setFormat(l),_e6.append.apply(_e6,r),i.push(_e6),r=[];}}return i;}exports.$generateHtmlFromNodes=function(e,n){if("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");var l=document.createElement("div"),i=require("Lexical").$getRoot().getChildren();for(var _t2=0;_t2<i.length;_t2++){o(e,i[_t2],l,n);}return l.innerHTML;},exports.$generateNodesFromDOM=function(e,n){var o=n.body?n.body.childNodes:[];var r=[];var s=[];for(var _n5=0;_n5<o.length;_n5++){var _t3=o[_n5];if(!l.has(_t3.nodeName)){var _n6=i(_t3,e,s,!1);null!==_n6&&(r=r.concat(_n6));}}return function(e){for(var _iterator3=e,_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_iterator3[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref5;if(_isArray3){if(_i3>=_iterator3.length)break;_ref5=_iterator3[_i3++];}else{_i3=_iterator3.next();if(_i3.done)break;_ref5=_i3.value;}var _n7=_ref5;_n7.getNextSibling()instanceof require("Lexical").ArtificialNode__DO_NOT_USE&&_n7.insertAfter(require("Lexical").$createLineBreakNode());}for(var _iterator4=e,_isArray4=Array.isArray(_iterator4),_i4=0,_iterator4=_isArray4?_iterator4:_iterator4[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref6;if(_isArray4){if(_i4>=_iterator4.length)break;_ref6=_iterator4[_i4++];}else{_i4=_iterator4.next();if(_i4.done)break;_ref6=_i4.value;}var _n8=_ref6;var _e7=_n8.getChildren();for(var _iterator5=_e7,_isArray5=Array.isArray(_iterator5),_i5=0,_iterator5=_isArray5?_iterator5:_iterator5[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref7;if(_isArray5){if(_i5>=_iterator5.length)break;_ref7=_iterator5[_i5++];}else{_i5=_iterator5.next();if(_i5.done)break;_ref7=_i5.value;}var _t4=_ref7;_n8.insertBefore(_t4);}_n8.remove();}}(s),r;};}),null);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<6f2aede42ac05ef0db099575756c2091>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("LexicalLink.prod",["Lexical","LexicalUtils"],(function $module_LexicalLink_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";var r=new Set(["http:","https:","mailto:","sms:","tel:"]);var n=function(_e$ElementNode){babelHelpers.inheritsLoose(n,_e$ElementNode);n.getType=function getType(){return"link";};n.clone=function clone(t){return new n(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__key);};function n(t,e,r){var _this;if(t===void 0){t="";}if(e===void 0){e={};}_this=_e$ElementNode.call(this,r)||this;var _e=e,_e$target=_e.target,_n=_e$target===void 0?null:_e$target,_e$rel=_e.rel,i=_e$rel===void 0?null:_e$rel,_e$title=_e.title,s=_e$title===void 0?null:_e$title;_this.__url=t,_this.__target=_n,_this.__rel=i,_this.__title=s;return _this;}var _proto=n.prototype;_proto.createDOM=function createDOM(e){var r=document.createElement("a");return r.href=this.sanitizeUrl(this.__url),null!==this.__target&&(r.target=this.__target),null!==this.__rel&&(r.rel=this.__rel),null!==this.__title&&(r.title=this.__title),require("LexicalUtils").addClassNamesToElement(r,e.theme.link),r;};_proto.updateDOM=function updateDOM(e,r,n){if(require("LexicalUtils").isHTMLAnchorElement(r)){var _t=this.__url,_n3=this.__target,_i=this.__rel,_s=this.__title;_t!==e.__url&&(r.href=_t),_n3!==e.__target&&(_n3?r.target=_n3:r.removeAttribute("target")),_i!==e.__rel&&(_i?r.rel=_i:r.removeAttribute("rel")),_s!==e.__title&&(_s?r.title=_s:r.removeAttribute("title"));}return!1;};n.importDOM=function importDOM(){return{a:function a(t){return{conversion:i,priority:1};}};};n.importJSON=function importJSON(t){return s().updateFromJSON(t);};_proto.updateFromJSON=function updateFromJSON(t){return _e$ElementNode.prototype.updateFromJSON.call(this,t).setURL(t.url).setRel(t.rel||null).setTarget(t.target||null).setTitle(t.title||null);};_proto.sanitizeUrl=function sanitizeUrl(t){try{var _e2=new URL(t);if(!r.has(_e2.protocol))return"about:blank";}catch(e){return t;}return t;};_proto.exportJSON=function exportJSON(){return babelHelpers["extends"]({},_e$ElementNode.prototype.exportJSON.call(this),{rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()});};_proto.getURL=function getURL(){return this.getLatest().__url;};_proto.setURL=function setURL(t){var e=this.getWritable();return e.__url=t,e;};_proto.getTarget=function getTarget(){return this.getLatest().__target;};_proto.setTarget=function setTarget(t){var e=this.getWritable();return e.__target=t,e;};_proto.getRel=function getRel(){return this.getLatest().__rel;};_proto.setRel=function setRel(t){var e=this.getWritable();return e.__rel=t,e;};_proto.getTitle=function getTitle(){return this.getLatest().__title;};_proto.setTitle=function setTitle(t){var e=this.getWritable();return e.__title=t,e;};_proto.insertNewAfter=function insertNewAfter(t,e){if(e===void 0){e=!0;}var r=s(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,e),r;};_proto.canInsertTextBefore=function canInsertTextBefore(){return!1;};_proto.canInsertTextAfter=function canInsertTextAfter(){return!1;};_proto.canBeEmpty=function canBeEmpty(){return!1;};_proto.isInline=function isInline(){return!0;};_proto.extractWithChild=function extractWithChild(t,r,n){if(!require("Lexical").$isRangeSelection(r))return!1;var i=r.anchor.getNode(),s=r.focus.getNode();return this.isParentOf(i)&&this.isParentOf(s)&&r.getTextContent().length>0;};_proto.isEmailURI=function isEmailURI(){return this.__url.startsWith("mailto:");};_proto.isWebSiteURI=function isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://");};return n;}(require("Lexical").ElementNode);function i(e){var r=null;if(require("LexicalUtils").isHTMLAnchorElement(e)){var _t2=e.textContent;(null!==_t2&&""!==_t2||e.children.length>0)&&(r=s(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}));}return{node:r};}function s(t,r){if(t===void 0){t="";}return require("Lexical").$applyNodeReplacement(new n(t,r));}function l(t){return t instanceof n;}var o=function(_n2){babelHelpers.inheritsLoose(o,_n2);function o(t,e,r){var _this2;if(t===void 0){t="";}if(e===void 0){e={};}_this2=_n2.call(this,t,e,r)||this,_this2.__isUnlinked=void 0!==e.isUnlinked&&null!==e.isUnlinked&&e.isUnlinked;return _this2;}o.getType=function getType(){return"autolink";};o.clone=function clone(t){return new o(t.__url,{isUnlinked:t.__isUnlinked,rel:t.__rel,target:t.__target,title:t.__title},t.__key);};var _proto2=o.prototype;_proto2.getIsUnlinked=function getIsUnlinked(){return this.__isUnlinked;};_proto2.setIsUnlinked=function setIsUnlinked(t){var e=this.getWritable();return e.__isUnlinked=t,e;};_proto2.createDOM=function createDOM(t){return this.__isUnlinked?document.createElement("span"):_n2.prototype.createDOM.call(this,t);};_proto2.updateDOM=function updateDOM(t,e,r){return _n2.prototype.updateDOM.call(this,t,e,r)||t.__isUnlinked!==this.__isUnlinked;};o.importJSON=function importJSON(t){return u().updateFromJSON(t);};_proto2.updateFromJSON=function updateFromJSON(t){return _n2.prototype.updateFromJSON.call(this,t).setIsUnlinked(t.isUnlinked||!1);};o.importDOM=function importDOM(){return null;};_proto2.exportJSON=function exportJSON(){return babelHelpers["extends"]({},_n2.prototype.exportJSON.call(this),{isUnlinked:this.__isUnlinked});};_proto2.insertNewAfter=function insertNewAfter(t,r){if(r===void 0){r=!0;}var n=this.getParentOrThrow().insertNewAfter(t,r);if(require("Lexical").$isElementNode(n)){var _t3=u(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return n.append(_t3),_t3;}return null;};return o;}(n);function u(t,r){if(t===void 0){t="";}return require("Lexical").$applyNodeReplacement(new o(t,r));}function a(t){return t instanceof o;}var c=require("Lexical").createCommand("TOGGLE_LINK_COMMAND");function _(t,r){if("element"===t.type){var _n4=t.getNode();require("Lexical").$isElementNode(_n4)||function(t){var r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams();n.append("code",t);for(var _len=arguments.length,e=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){e[_key-1]=arguments[_key];}for(var _i2=0;_i2<e.length;_i2++){var _t4=e[_i2];n.append("v",_t4);}throw r.search=n.toString(),Error("Minified Lexical error #"+t+"; visit "+r.toString()+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");}(252);return _n4.getChildren()[t.offset+r]||null;}return null;}function g(r,n){if(n===void 0){n={};}var _n5=n,i=_n5.target,o=_n5.title,u=void 0===n.rel?"noreferrer":n.rel,c=require("Lexical").$getSelection();if(!require("Lexical").$isRangeSelection(c))return;var g=c.extract();if(null===r)return void g.forEach(function(e){var r=require("LexicalUtils").$findMatchingParent(e,function(t){return!a(t)&&l(t);});if(r){var _t5=r.getChildren();for(var _e3=0;_e3<_t5.length;_e3++){r.insertBefore(_t5[_e3]);}r.remove();}});var h=new Set(),f=function f(t){h.has(t.getKey())||(h.add(t.getKey()),t.setURL(r),void 0!==i&&t.setTarget(i),void 0!==u&&t.setRel(u),void 0!==o&&t.setTitle(o));};if(1===g.length){var _t6=d(g[0],l);if(null!==_t6)return f(_t6);}!function(t){var r=require("Lexical").$getSelection();if(!require("Lexical").$isRangeSelection(r))return t();var n=require("Lexical").$normalizeSelection__EXPERIMENTAL(r),i=n.isBackward(),s=_(n.anchor,i?-1:0),l=_(n.focus,i?0:-1),o=t();if(s||l){var _t7=require("Lexical").$getSelection();if(require("Lexical").$isRangeSelection(_t7)){var _r=_t7.clone();if(s){var _t8=s.getParent();_t8&&_r.anchor.set(_t8.getKey(),s.getIndexWithinParent()+(i?1:0),"element");}if(l){var _t9=l.getParent();_t9&&_r.focus.set(_t9.getKey(),l.getIndexWithinParent()+(i?0:1),"element");}require("Lexical").$setSelection(require("Lexical").$normalizeSelection__EXPERIMENTAL(_r));}}}(function(){var t=null;for(var _iterator=g,_isArray=Array.isArray(_iterator),_i3=0,_iterator=_isArray?_iterator:_iterator[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref;if(_isArray){if(_i3>=_iterator.length)break;_ref=_iterator[_i3++];}else{_i3=_iterator.next();if(_i3.done)break;_ref=_i3.value;}var _n6=_ref;if(!_n6.isAttached())continue;var _c=d(_n6,l);if(_c){f(_c);continue;}if(require("Lexical").$isElementNode(_n6)){if(!_n6.isInline())continue;if(l(_n6)){if(!(a(_n6)||null!==t&&t.getParentOrThrow().isParentOf(_n6))){f(_n6),t=_n6;continue;}for(var _iterator2=_n6.getChildren(),_isArray2=Array.isArray(_iterator2),_i4=0,_iterator2=_isArray2?_iterator2:_iterator2[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref2;if(_isArray2){if(_i4>=_iterator2.length)break;_ref2=_iterator2[_i4++];}else{_i4=_iterator2.next();if(_i4.done)break;_ref2=_i4.value;}var _t10=_ref2;_n6.insertBefore(_t10);}_n6.remove();continue;}}var _2=_n6.getPreviousSibling();l(_2)&&_2.is(t)?_2.append(_n6):(t=s(r,{rel:u,target:i,title:o}),_n6.insertAfter(t),t.append(_n6));}});}var h=g;function d(t,e){var r=t;for(;null!==r&&null!==r.getParent()&&!e(r);){r=r.getParentOrThrow();}return e(r)?r:null;}exports.$createAutoLinkNode=u,exports.$createLinkNode=s,exports.$isAutoLinkNode=a,exports.$isLinkNode=l,exports.$toggleLink=g,exports.AutoLinkNode=o,exports.LinkNode=n,exports.TOGGLE_LINK_COMMAND=c,exports.toggleLink=h;}),null);
__d("LexicalOverflow",["cr:2908"],(function(a,b,c,d,e,f){e.exports=b("cr:2908")}),null);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<58fcd9a3137a00e5a426032cf21db44e>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("LexicalOverflow.prod",["Lexical"],(function $module_LexicalOverflow_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";var r=function(_e$ElementNode){babelHelpers.inheritsLoose(r,_e$ElementNode);function r(){return _e$ElementNode.apply(this,arguments)||this;}r.getType=function getType(){return"overflow";};r.clone=function clone(e){return new r(e.__key);};r.importJSON=function importJSON(e){return t().updateFromJSON(e);};r.importDOM=function importDOM(){return null;};var _proto=r.prototype;_proto.createDOM=function createDOM(e){var r=document.createElement("span"),t=e.theme.characterLimit;return"string"==typeof t&&(r.className=t),r;};_proto.updateDOM=function updateDOM(e,r){return!1;};_proto.insertNewAfter=function insertNewAfter(e,r){if(r===void 0){r=!0;}return this.getParentOrThrow().insertNewAfter(e,r);};_proto.excludeFromCopy=function excludeFromCopy(){return!0;};r.transform=function transform(){return function(e){n(e)||function(e){var t=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams();n.append("code",e);for(var _len=arguments.length,r=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){r[_key-1]=arguments[_key];}for(var _i=0;_i<r.length;_i++){var _e=r[_i];n.append("v",_e);}throw t.search=n.toString(),Error("Minified Lexical error #"+e+"; visit "+t.toString()+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");}(204),e.isEmpty()&&e.remove();};};return r;}(require("Lexical").ElementNode);function t(){return require("Lexical").$applyNodeReplacement(new r());}function n(e){return e instanceof r;}exports.$createOverflowNode=t,exports.$isOverflowNode=n,exports.OverflowNode=r;}),null);
__d("LexicalPlainText",["cr:2909"],(function(a,b,c,d,e,f){e.exports=b("cr:2909")}),null);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<b74b33b5702225ef1823dc1f3721fbce>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("LexicalPlainText.prod",["Lexical","LexicalClipboard","LexicalSelection","LexicalUtils"],(function $module_LexicalPlainText_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";var i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,o=i&&"documentMode"in document?document.documentMode:null,a=!(!i||!("InputEvent"in window)||o)&&"getTargetRanges"in new window.InputEvent("input"),s=i&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),l=i&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,R=i&&/^(?=.*Chrome).*/i.test(navigator.userAgent),c=i&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!R;function O(t,i){i.update(function(){if(null!==t){var _o=require("LexicalUtils").objectKlassEquals(t,KeyboardEvent)?null:t.clipboardData,_a=require("Lexical").$getSelection();if(null!==_a&&null!=_o){t.preventDefault();var _n=require("LexicalClipboard").$getHtmlContent(i);null!==_n&&_o.setData("text/html",_n),_o.setData("text/plain",_a.getTextContent());}}});}exports.registerPlainText=function(i){var _require_Lexical;return require("LexicalUtils").mergeRegister(i.registerCommand((_require_Lexical=require("Lexical")).DELETE_CHARACTER_COMMAND,function(e){var t=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(t)&&(t.deleteCharacter(e),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.DELETE_WORD_COMMAND,function(e){var t=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(t)&&(t.deleteWord(e),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.DELETE_LINE_COMMAND,function(e){var t=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(t)&&(t.deleteLine(e),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.CONTROLLED_TEXT_INSERTION_COMMAND,function(t){var n=require("Lexical").$getSelection();if(!require("Lexical").$isRangeSelection(n))return!1;if("string"==typeof t)n.insertText(t);else{var _r=t.dataTransfer;if(null!=_r)require("LexicalClipboard").$insertDataTransferForPlainText(_r,n);else{var _e=t.data;_e&&n.insertText(_e);}}return!0;},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.REMOVE_TEXT_COMMAND,function(){var e=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(e)&&(e.removeText(),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.INSERT_LINE_BREAK_COMMAND,function(e){var t=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(t)&&(t.insertLineBreak(e),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.INSERT_PARAGRAPH_COMMAND,function(){var e=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(e)&&(e.insertLineBreak(),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.KEY_ARROW_LEFT_COMMAND,function(e){var n=require("Lexical").$getSelection();if(!require("Lexical").$isRangeSelection(n))return!1;var i=e,o=i.shiftKey;return!!require("LexicalSelection").$shouldOverrideDefaultCharacterSelection(n,!0)&&(i.preventDefault(),require("LexicalSelection").$moveCharacter(n,o,!0),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.KEY_ARROW_RIGHT_COMMAND,function(e){var n=require("Lexical").$getSelection();if(!require("Lexical").$isRangeSelection(n))return!1;var i=e,o=i.shiftKey;return!!require("LexicalSelection").$shouldOverrideDefaultCharacterSelection(n,!1)&&(i.preventDefault(),require("LexicalSelection").$moveCharacter(n,o,!1),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.KEY_BACKSPACE_COMMAND,function(e){var t=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(t)&&(!l||"ko-KR"!==navigator.language)&&(e.preventDefault(),i.dispatchCommand(require("Lexical").DELETE_CHARACTER_COMMAND,!0));},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.KEY_DELETE_COMMAND,function(e){var t=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(t)&&(e.preventDefault(),i.dispatchCommand(require("Lexical").DELETE_CHARACTER_COMMAND,!1));},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.KEY_ENTER_COMMAND,function(e){var t=require("Lexical").$getSelection();if(!require("Lexical").$isRangeSelection(t))return!1;if(null!==e){if((l||s||c)&&a)return!1;e.preventDefault();}return i.dispatchCommand(require("Lexical").INSERT_LINE_BREAK_COMMAND,!1);},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.SELECT_ALL_COMMAND,function(){return require("Lexical").$selectAll(),!0;},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.COPY_COMMAND,function(e){var t=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(t)&&(O(e,i),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.CUT_COMMAND,function(e){var t=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(t)&&(function(e,t){O(e,t),t.update(function(){var e=require("Lexical").$getSelection();require("Lexical").$isRangeSelection(e)&&e.removeText();});}(e,i),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.PASTE_COMMAND,function(t){var o=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(o)&&(function(t,i){t.preventDefault(),i.update(function(){var i=require("Lexical").$getSelection(),o=require("LexicalUtils").objectKlassEquals(t,ClipboardEvent)?t.clipboardData:null;null!=o&&require("Lexical").$isRangeSelection(i)&&require("LexicalClipboard").$insertDataTransferForPlainText(o,i);},{tag:"paste"});}(t,i),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.DROP_COMMAND,function(e){var t=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(t)&&(e.preventDefault(),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),i.registerCommand(_require_Lexical.DRAGSTART_COMMAND,function(e){var t=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(t)&&(e.preventDefault(),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR));};}),null);
__d("LexicalPlainTextPlugin",["cr:739"],(function(a,b,c,d,e,f){e.exports=b("cr:739")}),null);
__d("useLexicalEditable",["cr:4793"],(function(a,b,c,d,e,f){e.exports=b("cr:4793")}),null);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<89e96e1cc6f39f64ea2a888425646cee>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("LexicalPlainTextPlugin.prod",["LexicalComposerContext","LexicalDragon","LexicalPlainText","LexicalText","LexicalUtils","ReactDOM","react","useLexicalEditable"],(function $module_LexicalPlainTextPlugin_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";var _require_closure_react;var o=_require_closure_react||(_require_closure_react=require("react")),c=_require_closure_react;var a="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect;function l(e){return e.getEditorState().read(require("LexicalText").$canShowPlaceholderCurry(e.isComposing()));}function d(_ref){var r=_ref.content;var _e$useLexicalComposer=require("LexicalComposerContext").useLexicalComposerContext(),i=_e$useLexicalComposer[0],c=function(e){var _o$useState=o.useState(function(){return l(e);}),t=_o$useState[0],r=_o$useState[1];return a(function(){function t(){var t=l(e);r(t);}return t(),require("LexicalUtils").mergeRegister(e.registerUpdateListener(function(){t();}),e.registerEditableListener(function(){t();}));},[e]),t;}(i),u=require("useLexicalEditable").useLexicalEditable();return c?"function"==typeof r?r(u):r:null;}exports.PlainTextPlugin=function(_ref2){var t=_ref2.contentEditable,_ref2$placeholder=_ref2.placeholder,r=_ref2$placeholder===void 0?null:_ref2$placeholder,l=_ref2.ErrorBoundary;var _e$useLexicalComposer2=require("LexicalComposerContext").useLexicalComposerContext(),x=_e$useLexicalComposer2[0],f=function(e,t){var _o$useState2=o.useState(function(){return e.getDecorators();}),r=_o$useState2[0],n=_o$useState2[1];return a(function(){return e.registerDecoratorListener(function(e){require("ReactDOM").flushSync(function(){n(e);});});},[e]),o.useEffect(function(){n(e.getDecorators());},[e]),o.useMemo(function(){var n=[],u=Object.keys(r);for(var _s=0;_s<u.length;_s++){var _a=u[_s],_l=c.jsx(t,{onError:function onError(t){return e._onError(t);},children:c.jsx(o.Suspense,{fallback:null,children:r[_a]})}),_d=e.getElementByKey(_a);null!==_d&&n.push(require("ReactDOM").createPortal(_l,_d,_a));}return n;},[t,r,e]);}(x,l);return function(e){a(function(){return require("LexicalUtils").mergeRegister(require("LexicalPlainText").registerPlainText(e),require("LexicalDragon").registerDragonSupport(e));},[e]);}(x),c.jsxs(c.Fragment,{children:[t,c.jsx(d,{content:r}),f]});};}),null);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<05fe1ad92769c11de41936418a9c3b88>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("LexicalSelection.prod",["Lexical"],(function $module_LexicalSelection_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";function t(e){for(var _len=arguments.length,t=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){t[_key-1]=arguments[_key];}var n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams();o.append("code",e);for(var _i=0;_i<t.length;_i++){var _e=t[_i];o.append("v",_e);}throw n.search=o.toString(),Error("Minified Lexical error #"+e+"; visit "+n.toString()+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");}var n=new Map();function o(e){var t=e;for(;null!=t;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild;}return null;}function s(e){var t=e.parentNode;if(null==t)throw new Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(e)];}function r(e){var t={};if(!e)return t;var n=e.split(";");for(var _iterator=n,_isArray=Array.isArray(_iterator),_i2=0,_iterator=_isArray?_iterator:_iterator[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref;if(_isArray){if(_i2>=_iterator.length)break;_ref=_iterator[_i2++];}else{_i2=_iterator.next();if(_i2.done)break;_ref=_i2.value;}var _e2=_ref;if(""!==_e2){var _e2$split=_e2.split(/:([^]+)/),_n=_e2$split[0],_o=_e2$split[1];_n&&_o&&(t[_n.trim()]=_o.trim());}}return t;}function i(e){var t=n.get(e);return void 0===t&&(t=r(e),n.set(e,t)),t;}function l(e){var t="";for(var _n2 in e){_n2&&(t+=_n2+": "+e[_n2]+";");}return t;}function c(t,n,o){var s=n.getNode(),r=o;if(require("Lexical").$isElementNode(s)){var _e3=s.getDescendantByIndex(n.offset);null!==_e3&&(s=_e3);}for(;r>0&&null!==s;){if(require("Lexical").$isElementNode(s)){var _e4=s.getLastDescendant();null!==_e4&&(s=_e4);}var _o2=s.getPreviousSibling(),_i3=0;if(null===_o2){var _e5=s.getParentOrThrow(),_t=_e5.getPreviousSibling();for(;null===_t;){if(_e5=_e5.getParent(),null===_e5){_o2=null;break;}_t=_e5.getPreviousSibling();}null!==_e5&&(_i3=_e5.isInline()?0:2,_o2=_t);}var _l=s.getTextContent();""===_l&&require("Lexical").$isElementNode(s)&&!s.isInline()&&(_l="\n\n");var _c=_l.length;if(!require("Lexical").$isTextNode(s)||r>=_c){var _t2=s.getParent();s.remove(),null==_t2||0!==_t2.getChildrenSize()||require("Lexical").$isRootNode(_t2)||_t2.remove(),r-=_c+_i3,s=_o2;}else{(function(){var o=s.getKey(),i=t.getEditorState().read(function(){var t=require("Lexical").$getNodeByKey(o);return require("Lexical").$isTextNode(t)&&t.isSimpleText()?t.getTextContent():null;}),f=_c-r,a=_l.slice(0,f);if(null!==i&&i!==_l){var _t3=require("Lexical").$getPreviousSelection();var _n3=s;if(s.isSimpleText())s.setTextContent(i);else{var _t4=require("Lexical").$createTextNode(i);s.replace(_t4),_n3=_t4;}if(require("Lexical").$isRangeSelection(_t3)&&_t3.isCollapsed()){var _e6=_t3.anchor.offset;_n3.select(_e6,_e6);}}else if(s.isSimpleText()){var _e7=n.key===o;var _t5=n.offset;_t5<r&&(_t5=_c);var _i4=_e7?_t5-r:0,_l2=_e7?_t5:f;if(_e7&&0===_i4){var _s$splitText=s.splitText(_i4,_l2),_e8=_s$splitText[0];_e8.remove();}else{var _s$splitText2=s.splitText(_i4,_l2),_e9=_s$splitText2[1];_e9.remove();}}else{var _t6=require("Lexical").$createTextNode(a);s.replace(_t6);}r=0;})();}}}function f(o,s){(require("Lexical").$isRangeSelection(o)?o.isCollapsed():require("Lexical").$isTextNode(o)||require("Lexical").$isElementNode(o))||t(280);var r=i(require("Lexical").$isRangeSelection(o)?o.style:require("Lexical").$isTextNode(o)?o.getStyle():o.getTextStyle()),c=Object.entries(s).reduce(function(e,_ref2){var t=_ref2[0],n=_ref2[1];return"function"==typeof n?e[t]=n(r[t],o):null===n?delete e[t]:e[t]=n,e;},babelHelpers["extends"]({},r)),f=l(c);require("Lexical").$isRangeSelection(o)||require("Lexical").$isTextNode(o)?o.setStyle(f):o.setTextStyle(f),n.set(f,c);}function a(t){var n=require("Lexical").$getSelection();if(!n)return;var o=new Map();if(require("Lexical").$isRangeSelection(n)){for(var _iterator2=require("Lexical").$caretRangeFromSelection(n).getTextSlices(),_isArray2=Array.isArray(_iterator2),_i5=0,_iterator2=_isArray2?_iterator2:_iterator2[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref3;if(_isArray2){if(_i5>=_iterator2.length)break;_ref3=_iterator2[_i5++];}else{_i5=_iterator2.next();if(_i5.done)break;_ref3=_i5.value;}var _t7=_ref3;_t7&&o.set(_t7.caret.origin.getKey(),_t7.getSliceIndices());}}var s=n.getNodes();for(var _iterator3=s,_isArray3=Array.isArray(_iterator3),_i6=0,_iterator3=_isArray3?_iterator3:_iterator3[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref4;if(_isArray3){if(_i6>=_iterator3.length)break;_ref4=_iterator3[_i6++];}else{_i6=_iterator3.next();if(_i6.done)break;_ref4=_i6.value;}var _n4=_ref4;if(!require("Lexical").$isTextNode(_n4)||!_n4.canHaveFormat())continue;var _ref5=(r=_n4,o.get(r.getKey())||[0,r.getTextContentSize()]),_s=_ref5[0],_i7=_ref5[1];if(_i7!==_s)if(require("Lexical").$isTokenOrSegmented(_n4)||0===_s&&_i7===_n4.getTextContentSize())t(_n4);else{t(_n4.splitText(_s,_i7)[0===_s?0:1]);}}var r;require("Lexical").$isRangeSelection(n)&&"text"===n.anchor.type&&"text"===n.focus.type&&n.anchor.key===n.focus.key&&d(n);}function d(e){if(e.isBackward()){var _t8=e.anchor,_n5=e.focus,_o3=_t8.key,_s2=_t8.offset,_r=_t8.type;_t8.set(_n5.key,_n5.offset,_n5.type),_n5.set(_o3,_s2,_r);}}function g(e,t){var n=e.getFormatType(),o=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),o!==t.getIndent()&&t.setIndent(o);}function u(e){return e.getNode().isAttached();}function p(t){var n=t;for(;null!==n&&!require("Lexical").$isRootOrShadowRoot(n);){var _e10=n.getLatest(),_t9=n.getParent();0===_e10.getChildrenSize()&&n.remove(!0),n=_t9;}}function h(n,o,s,r,i){if(i===void 0){i=null;}if(0===o.length)return;var l=o[0],c=new Map(),f=[];var a=require("Lexical").$isElementNode(l)?l:l.getParentOrThrow();a.isInline()&&(a=a.getParentOrThrow());var d=!1;for(;null!==a;){var _t10=a.getPreviousSibling();if(null!==_t10){a=_t10,d=!0;break;}if(a=a.getParentOrThrow(),require("Lexical").$isRootOrShadowRoot(a))break;}var g=new Set();for(var _t11=0;_t11<s;_t11++){var _n6=o[_t11];require("Lexical").$isElementNode(_n6)&&0===_n6.getChildrenSize()&&g.add(_n6.getKey());}var h=new Set();for(var _n7=0;_n7<s;_n7++){var _s3=o[_n7];var _i8=_s3.getParent();if(null!==_i8&&_i8.isInline()&&(_i8=_i8.getParent()),null!==_i8&&require("Lexical").$isLeafNode(_s3)&&!h.has(_s3.getKey())){var _t12=_i8.getKey();if(void 0===c.get(_t12)){(function(){var n=r();n.setFormat(_i8.getFormatType()),n.setIndent(_i8.getIndent()),f.push(n),c.set(_t12,n),_i8.getChildren().forEach(function(t){n.append(t),h.add(t.getKey()),require("Lexical").$isElementNode(t)&&t.getChildrenKeys().forEach(function(e){return h.add(e);});}),p(_i8);})();}}else if(g.has(_s3.getKey())){require("Lexical").$isElementNode(_s3)||t(179);var _n8=r();_n8.setFormat(_s3.getFormatType()),_n8.setIndent(_s3.getIndent()),f.push(_n8),_s3.remove(!0);}}if(null!==i)for(var _e11=0;_e11<f.length;_e11++){var _t13=f[_e11];i.append(_t13);}var $=null;if(require("Lexical").$isRootOrShadowRoot(a)){if(d){if(null!==i)a.insertAfter(i);else for(var _e12=f.length-1;_e12>=0;_e12--){var _t14=f[_e12];a.insertAfter(_t14);}}else{var _t15=a.getFirstChild();if(require("Lexical").$isElementNode(_t15)&&(a=_t15),null===_t15){if(i)a.append(i);else for(var _e13=0;_e13<f.length;_e13++){var _t16=f[_e13];a.append(_t16),$=_t16;}}else if(null!==i)_t15.insertBefore(i);else for(var _e14=0;_e14<f.length;_e14++){var _n9=f[_e14];_t15.insertBefore(_n9),$=_n9;}}}else if(i)a.insertAfter(i);else for(var _e15=f.length-1;_e15>=0;_e15--){var _t17=f[_e15];a.insertAfter(_t17),$=_t17;}var S=require("Lexical").$getPreviousSelection();require("Lexical").$isRangeSelection(S)&&u(S.anchor)&&u(S.focus)?require("Lexical").$setSelection(S.clone()):null!==$?$.selectEnd():n.dirty=!0;}function $(e,t,n,o){e.modify(t?"extend":"move",n,o);}function S(t){var n=t.anchor.getNode();return"rtl"===(require("Lexical").$isRootNode(n)?n:n.getParentOrThrow()).getDirection();}function y(e,t,n){var o=i(e.getStyle());return null!==o&&o[t]||n;}function m(e,t){var n=e;for(;null!==n&&null!==n.getParent()&&!t(n);){n=n.getParentOrThrow();}return t(n)?n:null;}var x=c;exports.$cloneWithProperties=require("Lexical").$cloneWithProperties,exports.$selectAll=require("Lexical").$selectAll,exports.$addNodeStyle=function(e){var t=e.getStyle(),o=r(t);n.set(t,o);},exports.$copyBlockFormatIndent=g,exports.$ensureForwardRangeSelection=d,exports.$forEachSelectedTextNode=a,exports.$getSelectionStyleValueForProperty=function(t,n,o){if(o===void 0){o="";}var s=null;var r=t.getNodes(),l=t.anchor,c=t.focus,f=t.isBackward(),a=f?c.offset:l.offset,d=f?c.getNode():l.getNode();if(require("Lexical").$isRangeSelection(t)&&t.isCollapsed()&&""!==t.style){var _e16=i(t.style);if(null!==_e16&&n in _e16)return _e16[n];}for(var _t18=0;_t18<r.length;_t18++){var _i9=r[_t18];if((0===_t18||0!==a||!_i9.is(d))&&require("Lexical").$isTextNode(_i9)){var _e17=y(_i9,n,o);if(null===s)s=_e17;else if(s!==_e17){s="";break;}}}return null===s?o:s;},exports.$isAtNodeEnd=function(n){if("text"===n.type)return n.offset===n.getNode().getTextContentSize();var o=n.getNode();return require("Lexical").$isElementNode(o)||t(177),n.offset===o.getChildrenSize();},exports.$isParentElementRTL=S,exports.$moveCaretSelection=$,exports.$moveCharacter=function(e,t,n){var o=S(e);$(e,t,n?!o:o,"character");},exports.$patchStyleText=function(t,n){if(require("Lexical").$isRangeSelection(t)&&t.isCollapsed()){f(t,n);var _o4=t.anchor.getNode();require("Lexical").$isElementNode(_o4)&&_o4.isEmpty()&&f(_o4,n);}a(function(e){f(e,n);});},exports.$setBlocksType=function(t,n,o){if(o===void 0){o=g;}if(null===t)return;var s=t.getStartEndPoints(),r=new Map();var i=null;if(s){var _t19=s[0],_n10=s[1];i=require("Lexical").$createRangeSelection(),i.anchor.set(_t19.key,_t19.offset,_t19.type),i.focus.set(_n10.key,_n10.offset,_n10.type);var _o5=m(_t19.getNode(),require("Lexical").INTERNAL_$isBlock),_l3=m(_n10.getNode(),require("Lexical").INTERNAL_$isBlock);require("Lexical").$isElementNode(_o5)&&r.set(_o5.getKey(),_o5),require("Lexical").$isElementNode(_l3)&&r.set(_l3.getKey(),_l3);}for(var _iterator4=t.getNodes(),_isArray4=Array.isArray(_iterator4),_i10=0,_iterator4=_isArray4?_iterator4:_iterator4[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref6;if(_isArray4){if(_i10>=_iterator4.length)break;_ref6=_iterator4[_i10++];}else{_i10=_iterator4.next();if(_i10.done)break;_ref6=_i10.value;}var _n11=_ref6;require("Lexical").$isElementNode(_n11)&&require("Lexical").INTERNAL_$isBlock(_n11)&&r.set(_n11.getKey(),_n11);}for(var _iterator5=r,_isArray5=Array.isArray(_iterator5),_i11=0,_iterator5=_isArray5?_iterator5:_iterator5[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref8;if(_isArray5){if(_i11>=_iterator5.length)break;_ref8=_iterator5[_i11++];}else{_i11=_iterator5.next();if(_i11.done)break;_ref8=_i11.value;}var _ref9=_ref8;var _e18=_ref9[0];var _t20=_ref9[1];var _s4=n();o(_t20,_s4),_t20.replace(_s4,!0),i&&(_e18===i.anchor.key&&i.anchor.set(_s4.getKey(),i.anchor.offset,i.anchor.type),_e18===i.focus.key&&i.focus.set(_s4.getKey(),i.focus.offset,i.focus.type));}i&&t.is(require("Lexical").$getSelection())&&require("Lexical").$setSelection(i);},exports.$shouldOverrideDefaultCharacterSelection=function(t,n){var o=require("Lexical").$caretFromPoint(t.focus,n?"previous":"next");if(require("Lexical").$isExtendableTextPointCaret(o))return!1;for(var _iterator6=require("Lexical").$extendCaretToRange(o),_isArray6=Array.isArray(_iterator6),_i12=0,_iterator6=_isArray6?_iterator6:_iterator6[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref10;if(_isArray6){if(_i12>=_iterator6.length)break;_ref10=_iterator6[_i12++];}else{_i12=_iterator6.next();if(_i12.done)break;_ref10=_i12.value;}var _t21=_ref10;if(require("Lexical").$isChildCaret(_t21))return!_t21.origin.isInline();if(!require("Lexical").$isElementNode(_t21.origin)){if(require("Lexical").$isDecoratorNode(_t21.origin))return!0;break;}}return!1;},exports.$sliceSelectedTextNodeContent=function(t,n){var o=t.getStartEndPoints();if(n.isSelected(t)&&!n.isSegmented()&&!n.isToken()&&null!==o){var _s5=o[0],_r2=o[1],_i13=t.isBackward(),_l4=_s5.getNode(),_c2=_r2.getNode(),_f=n.is(_l4),_a=n.is(_c2);if(_f||_a){var _e$$getCharacterOffse=require("Lexical").$getCharacterOffsets(t),_o6=_e$$getCharacterOffse[0],_s6=_e$$getCharacterOffse[1],_r3=_l4.is(_c2),_f2=n.is(_i13?_c2:_l4),_a2=n.is(_i13?_l4:_c2);var _d,_g=0;if(_r3)_g=_o6>_s6?_s6:_o6,_d=_o6>_s6?_o6:_s6;else if(_f2){_g=_i13?_s6:_o6,_d=void 0;}else if(_a2){_g=0,_d=_i13?_o6:_s6;}return n.__text=n.__text.slice(_g,_d),n;}}return n;},exports.$trimTextContentFromAnchor=c,exports.$wrapNodes=function(t,n,o){if(o===void 0){o=null;}var s=t.getStartEndPoints(),r=s?s[0]:null,i=t.getNodes(),l=i.length;if(null!==r&&(0===l||1===l&&"element"===r.type&&0===r.getNode().getChildrenSize())){var _e19="text"===r.type?r.getNode().getParentOrThrow():r.getNode(),_t22=_e19.getChildren();var _s7=n();return _s7.setFormat(_e19.getFormatType()),_s7.setIndent(_e19.getIndent()),_t22.forEach(function(e){return _s7.append(e);}),o&&(_s7=o.append(_s7)),void _e19.replace(_s7);}var c=null,f=[];for(var _s8=0;_s8<l;_s8++){var _r4=i[_s8];require("Lexical").$isRootOrShadowRoot(_r4)?(h(t,f,f.length,n,o),f=[],c=_r4):null===c||null!==c&&require("Lexical").$hasAncestor(_r4,c)?f.push(_r4):(h(t,f,f.length,n,o),f=[_r4]);}h(t,f,f.length,n,o);},exports.createDOMRange=function(t,n,r,i,l){var _s9,_s10;var c=n.getKey(),f=i.getKey(),a=document.createRange();var d=t.getElementByKey(c),g=t.getElementByKey(f),u=r,p=l;if(require("Lexical").$isTextNode(n)&&(d=o(d)),require("Lexical").$isTextNode(i)&&(g=o(g)),void 0===n||void 0===i||null===d||null===g)return null;"BR"===d.nodeName&&(_s9=s(d),d=_s9[0],u=_s9[1],_s9),"BR"===g.nodeName&&(_s10=s(g),g=_s10[0],p=_s10[1],_s10);var h=d.firstChild;d===g&&null!=h&&"BR"===h.nodeName&&0===u&&0===p&&(p=1);try{a.setStart(d,u),a.setEnd(g,p);}catch(e){return null;}return!a.collapsed||u===p&&c===f||(a.setStart(g,p),a.setEnd(d,u)),a;},exports.createRectsFromDOMRange=function(e,t){var n=e.getRootElement();if(null===n)return[];var o=n.getBoundingClientRect(),s=getComputedStyle(n),r=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),i=Array.from(t.getClientRects());var l,c=i.length;i.sort(function(e,t){var n=e.top-t.top;return Math.abs(n)<=3?e.left-t.left:n;});for(var _e20=0;_e20<c;_e20++){var _t23=i[_e20],_n12=l&&l.top<=_t23.top&&l.top+l.height>_t23.top&&l.left+l.width>_t23.left,_s11=_t23.width+r===o.width;_n12||_s11?(i.splice(_e20--,1),c--):l=_t23;}return i;},exports.getCSSFromStyleObject=l,exports.getStyleObjectFromCSS=i,exports.trimTextContentFromAnchor=x;}),null);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<11e47f5cf9c98286de8ad8417ba25dfb>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("LexicalText.prod",["Lexical"],(function $module_LexicalText_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";function e(){return require("Lexical").$getRoot().getTextContent();}function n(t,n){if(n===void 0){n=!0;}if(t)return!1;var r=e();return n&&(r=r.trim()),""===r;}function r(e){if(!n(e,!1))return!1;var r=require("Lexical").$getRoot().getChildren(),o=r.length;if(o>1)return!1;for(var _e=0;_e<o;_e++){var _n=r[_e];if(require("Lexical").$isDecoratorNode(_n))return!1;if(require("Lexical").$isElementNode(_n)){if(!require("Lexical").$isParagraphNode(_n))return!1;if(0!==_n.__indent)return!1;var _r=_n.getChildren(),_o=_r.length;for(var _n2=0;_n2<_o;_n2++){var _n3=_r[_e];if(!require("Lexical").$isTextNode(_n3))return!1;}}}return!0;}function o(t){var n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams();r.append("code",t);for(var _len=arguments.length,e=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){e[_key-1]=arguments[_key];}for(var _i=0;_i<e.length;_i++){var _t=e[_i];r.append("v",_t);}throw n.search=r.toString(),Error("Minified Lexical error #"+t+"; visit "+n.toString()+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");}exports.$canShowPlaceholder=r,exports.$canShowPlaceholderCurry=function(t){return function(){return r(t);};},exports.$findTextIntersectionFromCharacters=function(e,n){var r=e.getFirstChild(),o=0;t:for(;null!==r;){if(require("Lexical").$isElementNode(r)){var _t2=r.getFirstChild();if(null!==_t2){r=_t2;continue;}}else if(require("Lexical").$isTextNode(r)){var _t3=r.getTextContentSize();if(o+_t3>n)return{node:r,offset:n-o};o+=_t3;}var _e2=r.getNextSibling();if(null!==_e2){r=_e2;continue;}var i=r.getParent();for(;null!==i;){var _t4=i.getNextSibling();if(null!==_t4){r=_t4;continue t;}i=i.getParent();}break;}return null;},exports.$isRootTextContentEmpty=n,exports.$isRootTextContentEmptyCurry=function(t,e){return function(){return n(t,e);};},exports.$rootTextContent=e,exports.registerLexicalTextEntity=function(e,n,r,i){var s=function s(t){return t instanceof r;},l=function l(e){var n=require("Lexical").$createTextNode(e.getTextContent());n.setFormat(e.getFormat()),e.replace(n);};return[e.registerNodeTransform(require("Lexical").TextNode,function(e){if(!e.isSimpleText())return;var r,u=e.getPreviousSibling(),c=e.getTextContent(),f=e;if(require("Lexical").$isTextNode(u)){var _t5=u.getTextContent(),_r2=n(_t5+c);if(s(u)){if(null===_r2||0!==function(t){return t.getLatest().__mode;}(u))return void l(u);{var _n4=_r2.end-_t5.length;if(_n4>0){var _r3=_t5+c.slice(0,_n4);if(u.select(),u.setTextContent(_r3),_n4===c.length)e.remove();else{var _t6=c.slice(_n4);e.setTextContent(_t6);}return;}}}else if(null===_r2||_r2.start<_t5.length)return;}var d=0;for(;;){var _f$splitText,_f$splitText2;r=n(c);var _e3=void 0,a=null===r?"":c.slice(r.end);if(c=a,""===a){var _e4=f.getNextSibling();if(require("Lexical").$isTextNode(_e4)){a=f.getTextContent()+_e4.getTextContent();var _t7=n(a);if(null===_t7)return void(s(_e4)?l(_e4):_e4.markDirty());if(0!==_t7.start)return;}}if(null===r)return;if(0===r.start&&require("Lexical").$isTextNode(u)&&u.isTextEntity()){d+=r.end;continue;}0===r.start?(_f$splitText=f.splitText(r.end),_e3=_f$splitText[0],f=_f$splitText[1],_f$splitText):(_f$splitText2=f.splitText(r.start+d,r.end+d),_e3=_f$splitText2[1],f=_f$splitText2[2],_f$splitText2),void 0===_e3&&o(165,"nodeToReplace");var x=i(_e3);if(x.setFormat(_e3.getFormat()),_e3.replace(x),null==f)return;d=0,u=x;}}),e.registerNodeTransform(r,function(e){var r=e.getTextContent(),o=n(r);if(null===o||0!==o.start)return void l(e);if(r.length>o.end)return void e.splitText(o.end);var i=e.getPreviousSibling();require("Lexical").$isTextNode(i)&&i.isTextEntity()&&(l(i),l(e));var u=e.getNextSibling();require("Lexical").$isTextNode(u)&&u.isTextEntity()&&(l(u),s(e)&&l(e));})];};}),null);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<44b127cd61500927eec2a6ba6bfe2f33>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("LexicalUtils.prod",["Lexical","LexicalSelection"],(function $module_LexicalUtils_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";function n(e){var n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams();o.append("code",e);for(var _len=arguments.length,t=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){t[_key-1]=arguments[_key];}for(var _i=0;_i<t.length;_i++){var _e=t[_i];o.append("v",_e);}throw n.search=o.toString(),Error("Minified Lexical error #"+e+"; visit "+n.toString()+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");}var o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,r=o&&"documentMode"in document?document.documentMode:null,i=o&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),s=o&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),l=!(!o||!("InputEvent"in window)||r)&&"getTargetRanges"in new window.InputEvent("input"),a=o&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),c=o&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,u=o&&/Android/.test(navigator.userAgent),d=o&&/^(?=.*Chrome).*/i.test(navigator.userAgent),g=o&&u&&d,f=o&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!d;function p(){var t=[];for(var _len2=arguments.length,e=new Array(_len2),_key2=0;_key2<_len2;_key2++){e[_key2]=arguments[_key2];}for(var _i2=0;_i2<e.length;_i2++){var _n=e[_i2];if(_n&&"string"==typeof _n){for(var _iterator=_n.matchAll(/\S+/g),_isArray=Array.isArray(_iterator),_i3=0,_iterator=_isArray?_iterator:_iterator[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref2;if(_isArray){if(_i3>=_iterator.length)break;_ref2=_iterator[_i3++];}else{_i3=_iterator.next();if(_i3.done)break;_ref2=_i3.value;}var _ref3=_ref2;var _e2=_ref3[0];t.push(_e2);}}}return t;}function m(){for(var _len3=arguments.length,e=new Array(_len3),_key3=0;_key3<_len3;_key3++){e[_key3]=arguments[_key3];}return function(){for(var _t=e.length-1;_t>=0;_t--){e[_t]();}e.length=0;};}function h(e){return e+"px";}var $={attributes:!0,characterData:!0,childList:!0,subtree:!0};function x(o,r,i){var s=null,l=null,a=null,c=[];var u=document.createElement("div");function d(){null===s&&n(182),null===l&&n(183);var _l$getBoundingClientR=l.getBoundingClientRect(),e=_l$getBoundingClientR.left,a=_l$getBoundingClientR.top,d=require("LexicalSelection").createRectsFromDOMRange(o,r);var g,f;u.isConnected||(f=u,(g=l).insertBefore(f,g.firstChild));var p=!1;for(var _t2=0;_t2<d.length;_t2++){var _n2=d[_t2],_o=c[_t2]||document.createElement("div"),_r=_o.style;"absolute"!==_r.position&&(_r.position="absolute",p=!0);var _i4=h(_n2.left-e);_r.left!==_i4&&(_r.left=_i4,p=!0);var _s=h(_n2.top-a);_r.top!==_s&&(_o.style.top=_s,p=!0);var _l=h(_n2.width);_r.width!==_l&&(_o.style.width=_l,p=!0);var _g=h(_n2.height);_r.height!==_g&&(_o.style.height=_g,p=!0),_o.parentNode!==u&&(u.append(_o),p=!0),c[_t2]=_o;}for(;c.length>d.length;){c.pop();}p&&i(c);}function g(){l=null,s=null,null!==a&&a.disconnect(),a=null,u.remove();for(var _i5=0;_i5<c.length;_i5++){var _e3=c[_i5];_e3.remove();}c=[];}u.style.position="relative";var f=o.registerRootListener(function t(){var n=o.getRootElement();if(null===n)return g();var r=n.parentElement;if(!require("Lexical").isHTMLElement(r))return g();g(),s=n,l=r,a=new MutationObserver(function(e){var n=o.getRootElement(),r=n&&n.parentElement;if(n!==s||r!==l)return t();for(var _iterator2=e,_isArray2=Array.isArray(_iterator2),_i6=0,_iterator2=_isArray2?_iterator2:_iterator2[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref4;if(_isArray2){if(_i6>=_iterator2.length)break;_ref4=_iterator2[_i6++];}else{_i6=_iterator2.next();if(_i6.done)break;_ref4=_i6.value;}var _t3=_ref4;if(!u.contains(_t3.target))return d();}}),a.observe(r,$),d();});return function(){f(),g();};}function C(t,n,o){if("text"!==t.type&&require("Lexical").$isElementNode(n)){var _e4=n.getDOMSlot(o);return[_e4.element,_e4.getFirstChildOffset()+t.offset];}return[require("Lexical").getDOMTextNode(o)||o,t.offset];}function S(t,n){var o=null,r=null,i=null,s=null,l=null,a=null,c=function c(){};function u(u){u.read(function(){var u=require("Lexical").$getSelection();if(!require("Lexical").$isRangeSelection(u))return o=null,i=null,s=null,a=null,c(),void(c=function c(){});var d=u.anchor,g=u.focus,f=d.getNode(),p=f.getKey(),m=d.offset,$=g.getNode(),S=$.getKey(),E=g.offset,v=t.getElementByKey(p),N=t.getElementByKey(S),w=null===o||v!==r||m!==i||p!==o.getKey(),y=null===s||N!==l||E!==a||S!==s.getKey();if((w||y)&&null!==v&&null!==N){var _e5=function(e,t,n,o,r,i,s){var l=(e._window?e._window.document:document).createRange();return i.isBefore(n)?(l.setStart.apply(l,C(r,i,s)),l.setEnd.apply(l,C(t,n,o))):(l.setStart.apply(l,C(t,n,o)),l.setEnd.apply(l,C(r,i,s))),l;}(t,d,f,v,g,$,N);c(),c=x(t,_e5,function(e){if(void 0===n){for(var _iterator3=e,_isArray3=Array.isArray(_iterator3),_i7=0,_iterator3=_isArray3?_iterator3:_iterator3[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref5;if(_isArray3){if(_i7>=_iterator3.length)break;_ref5=_iterator3[_i7++];}else{_i7=_iterator3.next();if(_i7.done)break;_ref5=_i7.value;}var _t4=_ref5;var _e6=_t4.style;"Highlight"!==_e6.background&&(_e6.background="Highlight"),"HighlightText"!==_e6.color&&(_e6.color="HighlightText"),_e6.marginTop!==h(-1.5)&&(_e6.marginTop=h(-1.5)),_e6.paddingTop!==h(4)&&(_e6.paddingTop=h(4)),_e6.paddingBottom!==h(0)&&(_e6.paddingBottom=h(0));}}else n(e);});}o=f,r=v,i=m,s=$,l=N,a=E;});}return u(t.getEditorState()),m(t.registerUpdateListener(function(_ref6){var e=_ref6.editorState;return u(e);}),function(){c();});}var E=l,v=o,N=u,w=g,y=i,A=f,R=d,P=s,b=c,I=a;function L(e,t){for(var _iterator4=t,_isArray4=Array.isArray(_iterator4),_i8=0,_iterator4=_isArray4?_iterator4:_iterator4[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref7;if(_isArray4){if(_i8>=_iterator4.length)break;_ref7=_iterator4[_i8++];}else{_i8=_iterator4.next();if(_i8.done)break;_ref7=_i8.value;}var _n3=_ref7;if(e.type.startsWith(_n3))return!0;}return!1;}function T(e,t){return M("next",e,t);}function M(t,n,o){var r=require("Lexical").$getRoot(),i=n||r,s=require("Lexical").$isElementNode(i)?require("Lexical").$getChildCaret(i,t):require("Lexical").$getSiblingCaret(i,t),l=_(i),a=o?require("Lexical").$getAdjacentChildCaret(require("Lexical").$getChildCaretOrSelf(require("Lexical").$getSiblingCaret(o,t))):function(t,n){var o=K(require("Lexical").$getSiblingCaret(t,n));return o&&o[0];}(i,t);var c=l;return require("Lexical").makeStepwiseIterator({hasNext:function hasNext(e){return null!==e;},initial:s,map:function map(e){return{depth:c,node:e.origin};},step:function step(t){if(t.isSameNodeCaret(a))return null;require("Lexical").$isChildCaret(t)&&c++;var n=K(t);return!n||n[0].isSameNodeCaret(a)?null:(c+=n[1],n[0]);}});}function _(e){var t=-1;for(var _n4=e;null!==_n4;_n4=_n4.getParent()){t++;}return t;}function O(e,t){return M("previous",e,t);}var D=function D(t,n){var o=t;for(;o!==require("Lexical").$getRoot()&&null!=o;){if(n(o))return o;o=o.getParent();}return null;};function F(t,o,r){var i=require("Lexical").$getCaretInDirection(o,"next");for(var _t5=i;_t5;_t5=require("Lexical").$splitAtPointCaretNext(_t5,r)){i=_t5;}return require("Lexical").$isTextPointCaret(i)&&n(283),i.insert(t.isInline()?require("Lexical").$createParagraphNode().append(t):t),require("Lexical").$getCaretInDirection(require("Lexical").$getSiblingCaret(t.getLatest(),"next"),o.direction);}var B=!(P||!v)&&void 0;function k(t,n,o){var r=!1;var _loop=function _loop(){if(_isArray5){if(_i9>=_iterator5.length)return"break";_ref8=_iterator5[_i9++];}else{_i9=_iterator5.next();if(_i9.done)return"break";_ref8=_i9.value;}var i=_ref8;n(i)?null!==o&&o(i):(r=!0,require("Lexical").$isElementNode(i)&&k(i,n,o||function(e){return i.insertAfter(e);}),i.remove());};for(var _iterator5=j(t),_isArray5=Array.isArray(_iterator5),_i9=0,_iterator5=_isArray5?_iterator5:_iterator5[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref8;var _ret=_loop();if(_ret==="break")break;}return r;}function j(t){return H(require("Lexical").$getChildCaret(t,"previous"));}function H(t){return require("Lexical").makeStepwiseIterator({hasNext:require("Lexical").$isSiblingCaret,initial:t.getAdjacentCaret(),map:function map(e){return e.origin.getLatest();},step:function step(e){return e.getAdjacentCaret();}});}function K(t,n){if(n===void 0){n="root";}var o=0,r=t,i=require("Lexical").$getAdjacentChildCaret(r);for(;null===i;){if(o--,i=r.getParentCaret(n),!i)return null;r=i,i=require("Lexical").$getAdjacentChildCaret(r);}return i&&[i,o];}exports.$splitNode=require("Lexical").$splitNode,exports.isBlockDomNode=require("Lexical").isBlockDomNode,exports.isHTMLAnchorElement=require("Lexical").isHTMLAnchorElement,exports.isHTMLElement=require("Lexical").isHTMLElement,exports.isInlineDomNode=require("Lexical").isInlineDomNode,exports.$descendantsMatching=function(t,n){var o=[],r=Array.from(t).reverse();for(var _t6=r.pop();void 0!==_t6;_t6=r.pop()){if(n(_t6))o.push(_t6);else if(require("Lexical").$isElementNode(_t6)){for(var _iterator6=j(_t6),_isArray6=Array.isArray(_iterator6),_i10=0,_iterator6=_isArray6?_iterator6:_iterator6[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref9;if(_isArray6){if(_i10>=_iterator6.length)break;_ref9=_iterator6[_i10++];}else{_i10=_iterator6.next();if(_i10.done)break;_ref9=_i10.value;}var _e7=_ref9;r.push(_e7);}}}return o;},exports.$dfs=function(e,t){return Array.from(T(e,t));},exports.$dfsIterator=T,exports.$filter=function(e,t){var n=[];for(var _o2=0;_o2<e.length;_o2++){var _r2=t(e[_o2]);null!==_r2&&n.push(_r2);}return n;},exports.$findMatchingParent=D,exports.$firstToLastIterator=function(t){return H(require("Lexical").$getChildCaret(t,"next"));},exports.$getAdjacentCaret=function(e){return e?e.getAdjacentCaret():null;},exports.$getAdjacentSiblingOrParentSiblingCaret=K,exports.$getDepth=_,exports.$getNearestBlockElementAncestorOrThrow=function(t){var o=D(t,function(t){return require("Lexical").$isElementNode(t)&&!t.isInline();});return require("Lexical").$isElementNode(o)||n(4,t.__key),o;},exports.$getNearestNodeOfType=function(e,t){var n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent();}return null;},exports.$getNextRightPreorderNode=function(t){var n=K(require("Lexical").$getChildCaretOrSelf(require("Lexical").$getSiblingCaret(t,"previous")),"root");return n&&n[0].origin;},exports.$getNextSiblingOrParentSibling=function(t){var n=K(require("Lexical").$getSiblingCaret(t,"next"));return n&&[n[0].origin,n[1]];},exports.$insertFirst=function(t,n){require("Lexical").$getChildCaret(t,"next").insert(n);},exports.$insertNodeToNearestRoot=function(t){var n=require("Lexical").$getSelection()||require("Lexical").$getPreviousSelection();var o;if(require("Lexical").$isRangeSelection(n))o=require("Lexical").$caretFromPoint(n.focus,"next");else{if(null!=n){var _t7=n.getNodes(),_r3=_t7[_t7.length-1];_r3&&(o=require("Lexical").$getSiblingCaret(_r3,"next"));}o=o||require("Lexical").$getChildCaret(require("Lexical").$getRoot(),"previous").getFlipped().insert(require("Lexical").$createParagraphNode());}var r=F(t,o),i=require("Lexical").$getAdjacentChildCaret(r),s=require("Lexical").$isChildCaret(i)?require("Lexical").$normalizeCaret(i):r;return require("Lexical").$setSelectionFromCaretRange(require("Lexical").$getCollapsedCaretRange(s)),t.getLatest();},exports.$insertNodeToNearestRootAtCaret=F,exports.$isEditorIsNestedEditor=function(e){return null!==e._parentEditor;},exports.$lastToFirstIterator=j,exports.$restoreEditorState=function(t,n){var o=new Map(),r=t._pendingEditorState;for(var _iterator7=n._nodeMap,_isArray7=Array.isArray(_iterator7),_i11=0,_iterator7=_isArray7?_iterator7:_iterator7[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref11;if(_isArray7){if(_i11>=_iterator7.length)break;_ref11=_iterator7[_i11++];}else{_i11=_iterator7.next();if(_i11.done)break;_ref11=_i11.value;}var _ref12=_ref11;var _t8=_ref12[0];var _r4=_ref12[1];o.set(_t8,require("Lexical").$cloneWithProperties(_r4));}r&&(r._nodeMap=o),t._dirtyType=2;var i=n._selection;require("Lexical").$setSelection(null===i?null:i.clone());},exports.$reverseDfs=function(e,t){return Array.from(O(e,t));},exports.$reverseDfsIterator=O,exports.$unwrapAndFilterDescendants=function(e,t){return k(e,t,null);},exports.$unwrapNode=function(t){require("Lexical").$rewindSiblingCaret(require("Lexical").$getSiblingCaret(t,"next")).splice(1,t.getChildren());},exports.$wrapNodeInElement=function(e,t){var n=t();return e.replace(n),n.append(e),n;},exports.CAN_USE_BEFORE_INPUT=E,exports.CAN_USE_DOM=v,exports.IS_ANDROID=N,exports.IS_ANDROID_CHROME=w,exports.IS_APPLE=y,exports.IS_APPLE_WEBKIT=A,exports.IS_CHROME=R,exports.IS_FIREFOX=P,exports.IS_IOS=b,exports.IS_SAFARI=I,exports.addClassNamesToElement=function(e){var _e$classList;for(var _len4=arguments.length,t=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++){t[_key4-1]=arguments[_key4];}var n=p.apply(void 0,t);n.length>0&&(_e$classList=e.classList).add.apply(_e$classList,n);},exports.calculateZoomLevel=function(e){var t=1;if(function(){if(void 0===B){var _e8=document.createElement("div");_e8.style.cssText="position: absolute; opacity: 0; width: 100px; left: -1000px;",document.body.appendChild(_e8);var _t9=_e8.getBoundingClientRect();_e8.style.setProperty("zoom","2"),B=_e8.getBoundingClientRect().width===_t9.width,document.body.removeChild(_e8);}return B;}())for(;e;){t*=Number(window.getComputedStyle(e).getPropertyValue("zoom")),e=e.parentElement;}return t;},exports.isMimeType=L,exports.makeStateWrapper=function(t){var n=function n(_n5){return require("Lexical").$getState(_n5,t);},o=function o(n,_o3){return require("Lexical").$setState(n,t,_o3);};return{$get:n,$set:o,accessors:[n,o],makeGetterMethod:function makeGetterMethod(){return function(){return n(this);};},makeSetterMethod:function makeSetterMethod(){return function(e){return o(this,e);};},stateConfig:t};},exports.markSelection=S,exports.mediaFileReader=function(e,t){var n=e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();return new Promise(function(e,o){var r=[],i=function i(){var _n$next=n.next(),s=_n$next.done,l=_n$next.value;if(s)return e(r);var a=new FileReader();a.addEventListener("error",o),a.addEventListener("load",function(){var e=a.result;"string"==typeof e&&r.push({file:l,result:e}),i();}),L(l,t)?a.readAsDataURL(l):i();};i();});},exports.mergeRegister=m,exports.objectKlassEquals=function(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name;},exports.positionNodeOnRange=x,exports.registerNestedElementResolver=function(e,t,n,o){var r=function r(e){return e instanceof t;};return e.registerNodeTransform(t,function(e){var t=function(e){var t=e.getChildren();for(var _e9=0;_e9<t.length;_e9++){var _n6=t[_e9];if(r(_n6))return null;}var n=e,o=e;for(;null!==n;){if(o=n,n=n.getParent(),r(n))return{child:o,parent:n};}return null;}(e);if(null!==t){var _r5=t.child,_i12=t.parent;if(_r5.is(e)){o(_i12,e);var _t10=_r5.getNextSiblings(),_s2=_t10.length;if(_i12.insertAfter(_r5),0!==_s2){var _e10=n(_i12);_r5.insertAfter(_e10);for(var _n7=0;_n7<_s2;_n7++){_e10.append(_t10[_n7]);}}_i12.canBeEmpty()||0!==_i12.getChildrenSize()||_i12.remove();}}});},exports.removeClassNamesFromElement=function(e){var _e$classList2;for(var _len5=arguments.length,t=new Array(_len5>1?_len5-1:0),_key5=1;_key5<_len5;_key5++){t[_key5-1]=arguments[_key5];}var n=p.apply(void 0,t);n.length>0&&(_e$classList2=e.classList).remove.apply(_e$classList2,n);},exports.selectionAlwaysOnDisplay=function(e){var t=null;var n=function n(){var n=getSelection(),o=n&&n.anchorNode,r=e.getRootElement();null!==o&&null!==r&&r.contains(o)?null!==t&&(t(),t=null):null===t&&(t=S(e));};return document.addEventListener("selectionchange",n),function(){null!==t&&t(),document.removeEventListener("selectionchange",n);};};}),null);
__d("MLCInstrumentationPluginDeferred__INTERNAL.react",["react","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("requireDeferred")("MLCInstrumentationPlugin__INTERNAL.react").__setRef("MLCInstrumentationPluginDeferred__INTERNAL.react");function a(a){var b=c("useDeferredModuleOnReady")(j);return b==null?null:i.jsx(b,babelHelpers["extends"]({},a))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("cometLexicalBaseTheme",[],(function(a,b,c,d,e,f,g){"use strict";a={ltr:"xdpxx8g",rtl:"x1hr2gdg"};b=a;g["default"]=b}),98);
__d("cometUFIComposerAssociateReplyWithParentPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerAssociateReplyWithParentPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerAssociateReplyWithParentPlugin",abstractKey:null};e.exports=a}),null);
__d("cometUFIComposerAssociateReplyWithParentPlugin",["cometUFIComposerAssociateReplyWithParentPlugin_plugin.graphql","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useLayoutEffect;h!==void 0?h:h=b("cometUFIComposerAssociateReplyWithParentPlugin_plugin.graphql");function k(a){var b=d("react-compiler-runtime").c(4);a=a.pluginProps;var c=a.addCommandListener,e=a.setComposerState,f;b[0]!==c||b[1]!==e?(a=function(){c(function(a){if(a.__type==="SetReplyAssociation"){var b=a.commentAssociatedWithReply;e(function(){return{commentAssociatedWithReply:b}});return"handled"}return"not-handled"})},f=[c,e],b[0]=c,b[1]=e,b[2]=a,b[3]=f):(a=b[2],f=b[3]);j(a,f);return null}function a(a){return{above:null,action:null,below:k,id:"associate_reply",inside:null,props:{}}}g["default"]=a}),98);
__d("cometUFIComposerAssociateReplyWithParentPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerAssociateReplyWithParentPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null);
__d("cometUFIComposerAvatarPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerAvatarPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerAvatarPlugin",abstractKey:null};e.exports=a}),null);
__d("cometUFIComposerAvatarPlugin_pluginData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"cometUFIComposerAvatarPlugin_pluginData"};e.exports=a}),null);
__d("cometUFIComposerAvatarPlugin",["fbt","CometRelay","CometUFIComposerPreviewArea.react","CometUFIInsertAvatarStickerComposerActionForLexical.react","FBLogger","FDSProgressIndicator.react","cometUFIComposerAvatarPlugin_plugin.graphql","cometUFIComposerAvatarPlugin_pluginData.graphql","gkx","react","react-compiler-runtime","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;e.useCallback;var m=e.useEffect,n=c("requireDeferred")("CometUFIStickersComposerUpgradedPreviewContent.react").__setRef("cometUFIComposerAvatarPlugin"),o=c("gkx")("1315"),p=c("gkx")("4088");function q(a){return a.attachment&&a.attachment.__type==="AvatarSticker"?a.attachment.id:null}i!==void 0?i:i=b("cometUFIComposerAvatarPlugin_plugin.graphql");function r(a){var b=d("react-compiler-runtime").c(18);a=a.pluginProps;var e=a.addAttachmentMapper,f=a.composerState,g=a.setComposerState;b[0]!==f?(a=q(f),b[0]=f,b[1]=a):a=b[1];f=a;b[2]!==g?(a=function(){g(u)},b[2]=g,b[3]=a):a=b[3];a=a;var i;b[4]!==g?(i=function(a){g(t),c("FBLogger")("UFIOutlinePlugin").catching(a).mustfix("Encountered an error while rendering a sticker.")},b[4]=g,b[5]=i):i=b[5];i=i;var j=c("useDeferredModuleOnReady")(n),k,o;b[6]!==e?(k=function(){return e(s)},o=[e],b[6]=e,b[7]=k,b[8]=o):(k=b[7],o=b[8]);m(k,o);b[9]===Symbol["for"]("react.memo_cache_sentinel")?(k=l.jsx(c("FDSProgressIndicator.react"),{size:"small"}),b[9]=k):k=b[9];o=k;b[10]===Symbol["for"]("react.memo_cache_sentinel")?(k={className:"x1iyjqo2"},b[10]=k):k=b[10];b[11]!==j||b[12]!==f||b[13]!==a||b[14]!==i?(o=f!=null?l.jsx(c("CometUFIComposerPreviewArea.react"),{label:h._(/*BTDS*/"__JHASH__jXDc8myLwdK__JHASH__"),onRemove:a,removeAnnouncement:h._(/*BTDS*/"__JHASH__uFeYqds_zv-__JHASH__"),children:j==null?o:l.jsx(j,{loadingIndicatorElement:o,onError:i,stickerId:f})}):null,b[11]=j,b[12]=f,b[13]=a,b[14]=i,b[15]=o):o=b[15];b[16]!==o?(j=l.jsx("div",babelHelpers["extends"]({},k,{children:o})),b[16]=o,b[17]=j):j=b[17];return j}function s(a){return a.__type==="AvatarSticker"?{media:{id:a.id}}:null}function t(){return{attachment:null}}function u(){return{attachment:null}}function v(a){a=a.pluginProps;a=a.composerState;return!a||!a.attachment?c("CometUFIInsertAvatarStickerComposerActionForLexical.react"):null}function a(a){a=a.fragmentKey;a=d("CometRelay").readInlineData(j!==void 0?j:j=b("cometUFIComposerAvatarPlugin_pluginData.graphql"),a);var c=o&&p&&(a==null?void 0:a.avatar_style_version)==="STYLE_1";return{above:null,action:v,below:r,id:"avatars",inside:null,props:{displayUpgradeToStyle2:c,hasAvatar:(c=a.has_avatar)!=null?c:!1,postID:a.feedback_id}}}g["default"]=a}),226);
__d("cometUFIComposerAvatarPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerAvatarPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null);
__d("cometUFIComposerCommentCharacterLimitPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerCommentCharacterLimitPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerCommentCharacterLimitPlugin",abstractKey:null};e.exports=a}),null);
__d("errorDesc",["fbt","invariant"],(function(a,b,c,d,e,f,g,h,i){"use strict";function a(a){i(0,3625)}a.withParams=function(a,b){i(0,3625)};a._=function(a,b){return a(h,b)};b=a;g["default"]=b}),98);
__d("errorSummary",["fbt","invariant"],(function(a,b,c,d,e,f,g,h,i){"use strict";function a(a){i(0,771)}a._=function(a){return a(h)};g["default"]=a}),98);
__d("cometUFIComposerCommentCharacterLimitPlugin",["errorCode","errorDesc","CometWallConstants","FDSText.react","MLCCharacterLimitCountPlugin.react","cometUFIComposerCommentCharacterLimitPlugin_plugin.graphql","errorSummary","lengthInUTF8Bytes","react","useCometAlertDialog"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useEffect,o=e.useRef,p=e.useState;j!==void 0?j:j=b("cometUFIComposerCommentCharacterLimitPlugin_plugin.graphql");function q(a){var b=a.pluginProps.addCommitListener,d=c("useCometAlertDialog")(),e=o(0);a=p(0);var f=a[0],g=a[1];a=m(function(a){a<=0?(e.current=-a,g(-a)):(e.current=0,g(0))},[]);n(function(){return b(function(){if(e.current>0){var a=1446011,b=c("errorSummary")._(function(a){return a._(/*BTDS*/"__JHASH__-9OUlbx_liT__JHASH__")}),f=i._(function(a,b){return a._(/*BTDS*/"__JHASH__4q0AqGCyxkY__JHASH__")},{});a!=null&&b!=null&&f!=null&&d({body:f,title:b});return"block-commit"}return"continue-commit"})},[b,d]);return l.jsxs(l.Fragment,{children:[l.jsx(c("MLCCharacterLimitCountPlugin.react"),{limit:c("CometWallConstants").COMMENT_MAX_LENGTH,onChange:a,strlen:c("lengthInUTF8Bytes")}),f>0&&l.jsx(c("FDSText.react"),{color:"negative",testid:void 0,type:"body3",children:-f})]})}q.displayName=q.name+" [from "+f.id+"]";function a(){return{above:null,action:null,below:null,id:"comment_COMMENT_MAX_LENGTH",inside:q,props:{}}}g["default"]=a}),226);
__d("cometUFIComposerCommentCharacterLimitPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerCommentCharacterLimitPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null);
__d("cometUFIComposerEmojiPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerEmojiPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerEmojiPlugin",abstractKey:null};e.exports=a}),null);
__d("cometUFIComposerEmojiPlugin_pluginData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"cometUFIComposerEmojiPlugin_pluginData"};e.exports=a}),null);
__d("cometUFIComposerEmojiPlugin",["CometRelay","CometUFIComposerEmojiPluginInner.react","CometUFIInsertEmojiComposerActionForLexical.react","cometUFIComposerEmojiPlugin_plugin.graphql","cometUFIComposerEmojiPlugin_pluginData.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;h!==void 0?h:h=b("cometUFIComposerEmojiPlugin_plugin.graphql");function a(a){a=a.fragmentKey;a=d("CometRelay").readInlineData(i!==void 0?i:i=b("cometUFIComposerEmojiPlugin_pluginData.graphql"),a);a={size:(a=a.emoji_size)!=null?a:16};return{above:null,action:function(){return c("CometUFIInsertEmojiComposerActionForLexical.react")},below:c("CometUFIComposerEmojiPluginInner.react"),id:"emoji",inside:null,props:a}}g["default"]=a}),98);
__d("cometUFIComposerEmojiPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerEmojiPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null);
__d("cometUFIComposerEmoticonPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerEmoticonPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerEmoticonPlugin",abstractKey:null};e.exports=a}),null);
__d("cometUFIComposerEmoticonPlugin_pluginData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"cometUFIComposerEmoticonPlugin_pluginData"};e.exports=a}),null);
__d("cometUFIComposerEmoticonPlugin",["CometRelay","CometUFIEmoticonsComposerPluginInner.react","cometUFIComposerEmoticonPlugin_plugin.graphql","cometUFIComposerEmoticonPlugin_pluginData.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;h!==void 0?h:h=b("cometUFIComposerEmoticonPlugin_plugin.graphql");function a(a){a=a.fragmentKey;a=d("CometRelay").readInlineData(i!==void 0?i:i=b("cometUFIComposerEmoticonPlugin_pluginData.graphql"),a);return{above:null,action:null,below:c("CometUFIEmoticonsComposerPluginInner.react"),id:"emoticons",inside:null,props:{size:(a=a.emoji_size)!=null?a:16}}}g["default"]=a}),98);
__d("cometUFIComposerEmoticonPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerEmoticonPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null);
__d("cometUFIComposerGIFPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerGIFPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerGIFPlugin",abstractKey:null};e.exports=a}),null);
__d("cometUFIComposerGIFPlugin_pluginData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"cometUFIComposerGIFPlugin_pluginData"};e.exports=a}),null);
__d("cometUFIComposerGIFPlugin",["CometRelay","CometUFIGIFComposerPluginInner.react","CometUFIInsertGIFComposerActionForLexical.react","cometUFIComposerGIFPlugin_plugin.graphql","cometUFIComposerGIFPlugin_pluginData.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;h!==void 0?h:h=b("cometUFIComposerGIFPlugin_plugin.graphql");function j(a){a=a.pluginProps;a=a.composerState;return!a||!a.attachment?c("CometUFIInsertGIFComposerActionForLexical.react"):null}function a(a){a=a.fragmentKey;a=d("CometRelay").readInlineData(i!==void 0?i:i=b("cometUFIComposerGIFPlugin_pluginData.graphql"),a);return{above:null,action:j,below:c("CometUFIGIFComposerPluginInner.react"),id:"gifs",inside:null,props:{ftentidentifier:a.feedback_id}}}g["default"]=a}),98);
__d("cometUFIComposerGIFPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerGIFPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null);
__d("cometUFIComposerHashtagPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerHashtagPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerHashtagPlugin",abstractKey:null};e.exports=a}),null);
__d("cometUFIComposerHashtagPlugin",["CometUFIHashtagComposerPluginInner.react","cometUFIComposerHashtagPlugin_plugin.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;h!==void 0?h:h=b("cometUFIComposerHashtagPlugin_plugin.graphql");function a(a){return{above:null,action:null,below:c("CometUFIHashtagComposerPluginInner.react"),id:"hashtag",inside:null,props:{}}}g["default"]=a}),98);
__d("cometUFIComposerHashtagPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerHashtagPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null);
__d("cometUFIComposerLiveTypingBroadcastPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerLiveTypingBroadcastPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerLiveTypingBroadcastPlugin",abstractKey:null};e.exports=a}),null);
__d("cometUFIComposerLiveTypingBroadcastPlugin_pluginData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"cometUFIComposerLiveTypingBroadcastPlugin_pluginData"};e.exports=a}),null);
__d("cometUFIComposerLiveTypingBroadcastPlugin",["CometRelay","CometUFILiveTypingBroadcastComposerPluginInner.react","cometUFIComposerLiveTypingBroadcastPlugin_plugin.graphql","cometUFIComposerLiveTypingBroadcastPlugin_pluginData.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;h!==void 0?h:h=b("cometUFIComposerLiveTypingBroadcastPlugin_plugin.graphql");function a(a){var e=a.environment;a=a.fragmentKey;a=d("CometRelay").readInlineData(i!==void 0?i:i=b("cometUFIComposerLiveTypingBroadcastPlugin_pluginData.graphql"),a);a={id:a.feedback_id,viewer_actor:a.viewer_actor};return{above:null,action:null,below:c("CometUFILiveTypingBroadcastComposerPluginInner.react"),id:"typing_broadcast",inside:null,props:{feedback:a,relayEnvironment:e}}}g["default"]=a}),98);
__d("cometUFIComposerLiveTypingBroadcastPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerLiveTypingBroadcastPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null);
__d("cometUFIComposerMediaUploadPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerMediaUploadPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerMediaUploadPlugin",abstractKey:null};e.exports=a}),null);
__d("cometUFIComposerMediaUploadPlugin_pluginData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"cometUFIComposerMediaUploadPlugin_pluginData"};e.exports=a}),null);
__d("cometUFIComposerMediaUploadPlugin",["CometRelay","CometUFIMediaUploadComposerActionForLexical.react","CometUFIMediaUploadComposerPluginInner.react","cometUFIComposerMediaUploadPlugin_plugin.graphql","cometUFIComposerMediaUploadPlugin_pluginData.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;h!==void 0?h:h=b("cometUFIComposerMediaUploadPlugin_plugin.graphql");function j(a){a=a.pluginProps;a=a.composerState;return a.attachment!=null?null:c("CometUFIMediaUploadComposerActionForLexical.react")}function a(a){a=a.fragmentKey;a=d("CometRelay").readInlineData(i!==void 0?i:i=b("cometUFIComposerMediaUploadPlugin_pluginData.graphql"),a);var e={viewer_actor:a.viewer_actor};a=(a=a.should_condense_video_preview)!=null?a:!1;return{above:null,action:j,below:c("CometUFIMediaUploadComposerPluginInner.react"),id:"media_upload",inside:null,props:{feedback:e,shouldCondenseVideoPreview:a}}}g["default"]=a}),98);
__d("cometUFIComposerMediaUploadPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerMediaUploadPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null);
__d("cometUFIComposerMentionsPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerMentionsPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerMentionsPlugin",abstractKey:null};e.exports=a}),null);
__d("cometUFIComposerMentionsPlugin_pluginData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"cometUFIComposerMentionsPlugin_pluginData"};e.exports=a}),null);
__d("cometUFIComposerMentionsPlugin",["CometRelay","cometUFIComposerMentionsPlugin_plugin.graphql","cometUFIComposerMentionsPlugin_pluginData.graphql","react","react-compiler-runtime","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react"),l=c("requireDeferred")("createUpgradedUFI2MentionsComposerPluginForLexical").__setRef("cometUFIComposerMentionsPlugin");h!==void 0?h:h=b("cometUFIComposerMentionsPlugin_plugin.graphql");function m(a){var b=d("react-compiler-runtime").c(4),e=a.pluginProps,f=a.config;a=a.upgradedPluginDeferred_FOR_DRAFTJS_AND_OUTLINE;a=c("useDeferredModuleOnReady")(a);if(a==null)return null;else{var g;b[0]!==a||b[1]!==f||b[2]!==e?(g=k.jsx(a,{config:f,pluginProps:e}),b[0]=a,b[1]=f,b[2]=e,b[3]=g):g=b[3];return g}}function a(a){a=a.fragmentKey;a=d("CometRelay").readInlineData(i!==void 0?i:i=b("cometUFIComposerMentionsPlugin_pluginData.graphql"),a);var c=a.context_id;a=a.post_id;return{above:null,action:null,below:m,id:"mentions",inside:null,props:{config:{contextID:c,groupID:null,postID:a},upgradedPluginDeferred_FOR_DRAFTJS_AND_OUTLINE:l}}}g["default"]=a}),98);
__d("cometUFIComposerMentionsPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerMentionsPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null);
__d("cometUFIComposerPrefillMentionPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerPrefillMentionPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerPrefillMentionPlugin",abstractKey:null};e.exports=a}),null);
__d("cometUFIComposerPrefillMentionPlugin",["CometUFIComposerPrefillMentionPluginUtils","cometUFIComposerPrefillMentionPlugin_plugin.graphql","react","react-compiler-runtime","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useLayoutEffect,k=c("requireDeferred")("UFIODSLogger").__setRef("cometUFIComposerPrefillMentionPlugin");h!==void 0?h:h=b("cometUFIComposerPrefillMentionPlugin_plugin.graphql");function l(a){var b=d("react-compiler-runtime").c(7);a=a.pluginProps;var c=a.addCommandListener,e=a.editor;a=a.setComposerState;var f;b[0]!==c||b[1]!==e?(f=function(){c(function(a){if(a.__type==="PrefillMention"){k.onReady(m);e.update(function(){d("CometUFIComposerPrefillMentionPluginUtils").$addMentionIfEditorIsEmptyAndDoesNotHaveMention(e,a.mentionableEntity)});return"handled"}return"not-handled"})},b[0]=c,b[1]=e,b[2]=f):f=b[2];var g;b[3]!==c||b[4]!==e||b[5]!==a?(g=[c,e,a],b[3]=c,b[4]=e,b[5]=a,b[6]=g):g=b[6];j(f,g);return null}function m(a){a.bump("prefill_mention_plugin.prefill_requested.with_implementation","relay")}function a(a){return{above:null,action:null,below:l,id:"prefill_mentions",inside:null,props:Object.freeze({})}}g["default"]=a}),98);
__d("cometUFIComposerPrefillMentionPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerPrefillMentionPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null);
__d("cometUFIComposerSetReplyClickedPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerSetReplyClickedPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerSetReplyClickedPlugin",abstractKey:null};e.exports=a}),null);
__d("cometUFIComposerSetReplyClickedPlugin",["cometUFIComposerSetReplyClickedPlugin_plugin.graphql","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useLayoutEffect;h!==void 0?h:h=b("cometUFIComposerSetReplyClickedPlugin_plugin.graphql");function k(a){var b=d("react-compiler-runtime").c(4);a=a.pluginProps;var c=a.addCommandListener,e=a.setComposerState,f;b[0]!==c||b[1]!==e?(a=function(){c(function(a){if(a.__type==="SetReplyClicked"){e(l);return"handled"}return"not-handled"})},f=[c,e],b[0]=c,b[1]=e,b[2]=a,b[3]=f):(a=b[2],f=b[3]);j(a,f);return null}function l(){return{replyTargetClicked:!0}}function a(a){return{above:null,action:null,below:k,id:"set_reply_clicked",inside:null,props:{}}}g["default"]=a}),98);
__d("cometUFIComposerSetReplyClickedPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerSetReplyClickedPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null);
__d("cometUFIComposerStateSnapshotPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerStateSnapshotPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerStateSnapshotPlugin",abstractKey:null};e.exports=a}),null);
__d("getComposerStateSnapshotterForLexical",["CometLruCache","memoizeWithArgsWeak"],(function(a,b,c,d,e,f,g){"use strict";var h=d("CometLruCache").create(20);function i(a,b){return JSON.stringify({commentID:(b=b)!=null?b:"",feedbackID:a})}function a(a,b){var c=i(a,b);return{clear:function(){h["delete"](c)},get:function(){return h.get(c)},set:function(a){h.set(c,a)}}}b=c("memoizeWithArgsWeak")(a);g["default"]=b}),98);
__d("useFocusedStoryDialogLaunchHandlers",["CometFocusedStoryDialogLauncherContext","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");b.useCallback;var i=b.useContext;function a(){var a=d("react-compiler-runtime").c(7),b=i(c("CometFocusedStoryDialogLauncherContext")),e=b.onDialogCloseHandlers,f=b.onDialogOpenHandlers;a[0]!==f?(b=function(a){f.current.add(a);return{dispose:function(){f.current["delete"](a)}}},a[0]=f,a[1]=b):b=a[1];b=b;var g;a[2]!==e?(g=function(a){e.current.add(a);return{dispose:function(){e.current["delete"](a)}}},a[2]=e,a[3]=g):g=a[3];g=g;var h;a[4]!==g||a[5]!==b?(h=[b,g],a[4]=g,a[5]=b,a[6]=h):h=a[6];return h}g["default"]=a}),98);
__d("cometUFIComposerStateSnapshotPlugin",["FBLogger","cometUFIComposerStateSnapshotPlugin_plugin.graphql","getComposerStateSnapshotterForLexical","react","react-compiler-runtime","useFocusedStoryDialogLaunchHandlers"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");e.useCallback;var j=e.useEffect,k=e.useRef;h!==void 0?h:h=b("cometUFIComposerStateSnapshotPlugin_plugin.graphql");function l(a){var b=d("react-compiler-runtime").c(32);a=a.pluginProps;var e=a.addCommandListener,f=a.addCommitListener,g=a.composerState,h=a.editor,i=a.setComposerState;a=g.commentID;var l=g.feedbackID;a=(a=a)!=null?a:null;var m;b[0]!==l||b[1]!==a?(m=c("getComposerStateSnapshotterForLexical")(l,a),b[0]=l,b[1]=a,b[2]=m):m=b[2];var n=m,o=k(!1),p=k(!1),q=k(null);if(b[3]!==h){l=h.getEditorState();a=k;m=l.isEmpty()?null:l;b[3]=h;b[4]=a;b[5]=m}else a=b[4],m=b[5];var r=a(m);l=c("useFocusedStoryDialogLaunchHandlers")();var s=l[0],t=l[1];b[6]!==h||b[7]!==i||b[8]!==n?(a=function(){var a=n.get();if(a!=null){var b=a.state;b.editor;var d=babelHelpers.objectWithoutPropertiesLoose(b,["editor"]);b=a.editorState;if(b.isEmpty()){c("FBLogger")("UFILexicalComposer").mustfix("Snapshot plugin attempted to restore an empty Outline EditorState");return}i(function(){return d});h.setEditorState(a.editorState)}},b[6]=h,b[7]=i,b[8]=n,b[9]=a):a=b[9];var u=a;b[10]!==g||b[11]!==h||b[12]!==n?(m=function(a){a=a===void 0?!1:a;var b=r.current;b!==null&&(h.getRootElement()==null||a)&&!p.current&&n.set({editorState:b,state:g})},b[10]=g,b[11]=h,b[12]=n,b[13]=m):m=b[13];var v=m;b[14]===Symbol["for"]("react.memo_cache_sentinel")?(l=function(){p.current=!0,window.clearTimeout(q.current),q.current=window.setTimeout(function(){p.current=!1},0)},b[14]=l):l=b[14];var w=l;b[15]!==u||b[16]!==v||b[17]!==t||b[18]!==s?(a=function(){o.current||(u(),o.current=!0);var a=s(function(){return v(!0)}),b=t(u);return function(){v(),a==null?void 0:a.dispose(),b==null?void 0:b.dispose()}},m=[u,v,t,s],b[15]=u,b[16]=v,b[17]=t,b[18]=s,b[19]=m,b[20]=a):(m=b[19],a=b[20]);j(a,m);b[21]!==h?(l=function(){return h.registerUpdateListener(function(a){a=a.editorState;h.getRootElement()!==null&&!a.isEmpty()&&(r.current=a)})},a=[h],b[21]=h,b[22]=l,b[23]=a):(l=b[22],a=b[23]);j(l,a);b[24]!==f||b[25]!==n?(m=function(){return f(function(){w();n.clear();return"continue-commit"})},l=[n,f,w],b[24]=f,b[25]=n,b[26]=m,b[27]=l):(m=b[26],l=b[27]);j(m,l);b[28]!==e||b[29]!==n?(a=function(){return e(function(a){if(a.__type==="BeforeFinishEdit"){w();n.clear();return"handled"}return"not-handled"})},m=[e,w,n],b[28]=e,b[29]=n,b[30]=a,b[31]=m):(a=b[30],m=b[31]);j(a,m);return null}function a(a){return{above:null,action:null,below:l,id:"statesnapshot",inside:null,props:Object.freeze({})}}g["default"]=a}),98);
__d("cometUFIComposerStateSnapshotPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerStateSnapshotPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null);
__d("cometUFIComposerStickersPlugin_next_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerStickersPlugin_next_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CometComposerCometizedStickersPlugin",abstractKey:null};e.exports=a}),null);
__d("cometUFIComposerStickersPlugin_next_pluginData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"cometUFIComposerStickersPlugin_next_pluginData"};e.exports=a}),null);
__d("cometUFIComposerStickersPlugin.next",["CometRelay","CometUFIInsertStickerComposerActionForLexical.react","CometUFIStickersComposerPluginInner.react","cometUFIComposerStickersPlugin_next_plugin.graphql","cometUFIComposerStickersPlugin_next_pluginData.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;h!==void 0?h:h=b("cometUFIComposerStickersPlugin_next_plugin.graphql");function j(a){a=a.pluginProps;a=a.composerState;return!a||!a.attachment?c("CometUFIInsertStickerComposerActionForLexical.react"):null}function a(a){var e=a.environment;a=a.fragmentKey;a=d("CometRelay").readInlineData(i!==void 0?i:i=b("cometUFIComposerStickersPlugin_next_pluginData.graphql"),a);return a.feedback_id==null?null:{above:null,action:j,below:c("CometUFIStickersComposerPluginInner.react"),id:"stickers",inside:null,props:{environment:e,feedbackID:a.feedback_id,targetID:a.owning_profile_id}}}g["default"]=a}),98);
__d("cometUFIComposerStickersPlugin_next_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerStickersPlugin_next_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null);
__d("cometUFIComposerWriteToComposerPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerWriteToComposerPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerWriteToComposerPlugin",abstractKey:null};e.exports=a}),null);
__d("cometUFIComposerWriteToComposerPlugin",["CometUFIWriteToComposerPluginInner","cometUFIComposerWriteToComposerPlugin_plugin.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;h!==void 0?h:h=b("cometUFIComposerWriteToComposerPlugin_plugin.graphql");function a(a){return{above:null,action:null,below:null,id:"write_to_composer",inside:c("CometUFIWriteToComposerPluginInner"),props:{}}}g["default"]=a}),98);
__d("cometUFIComposerWriteToComposerPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerWriteToComposerPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null);
__d("getPrivacyAwareEditorState",["Lexical"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return{nodes:h(a),selection:j(a)}}function h(a){var b=[],c=["key","type","detail","format","mode","children","parent","first","last","size","next","prev"];for(var a=a._nodeMap,d=Array.isArray(a),e=0,a=d?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=a.length)break;f=a[e++]}else{e=a.next();if(e.done)break;f=e.value}f=f;f[0];f=f[1];var g={};for(var h=0;h<c.length;h++){var j=c[h],k="__"+j;k=f[k];if(k==null||i(j,k))continue;g[j]=k}b.push(g)}return b}function i(a,b){var c=new Set(["detail","format"]);if(c.has(a)&&b===0)return!0;return a==="mode"&&b==="normal"?!0:!1}function j(a){a=a._selection;if(!d("Lexical").$isRangeSelection(a))return null;var b=a.anchor;a=a.focus;return{anchor:{key:b.key,offset:b.offset,type:b.type},focus:{key:a.key,offset:a.offset,type:a.type}}}g["default"]=a}),98);
__d("mlcErrorHandler__INTERNAL",["getPrivacyAwareEditorState"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d){var e=document.activeElement,f=null;e!=null&&(f={activeElement:e.nodeName,rootSelected:e===b.getRootElement()});e=window.event;var g=null;e!=null&&(g={altKey:e.altKey,ctrlKey:e.ctrlKey,data:e.data,inputType:e.inputType,isComposing:e.isComposing,keyCode:e.keyCode,metaKey:e.metaKey,shiftKey:e.shiftKey,type:e.type});e=null;try{e=c("getPrivacyAwareEditorState")(b.getEditorState())}catch(a){}d(JSON.stringify({activeElement:f,editorState:e,error:a,event:g}))}g["default"]=a}),98);
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 *
 * @fullSyntaxTransform
 * @es6-async_DO_NOT_USE
 * @generated SignedSource<<718fac6d3d7bc22d160c15bbc54a2b1a>>
 * @noflow
 * @nolint
 * @oncall lexical_web_text_editor
 * @preserve-invariant-messages
 * @preserve-whitespace
 * @preventMunge
 */__d("useLexicalEditable.prod",["LexicalComposerContext","react"],(function $module_useLexicalEditable_prod(global,require,requireDynamic,requireLazy,module,exports){

"use strict";var _require_closure_react;var t=_require_closure_react||(_require_closure_react=require("react"));var n="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function i(e){return{initialValueFn:function initialValueFn(){return e.isEditable();},subscribe:function subscribe(t){return e.registerEditableListener(t);}};}exports.useLexicalEditable=function(){return function(i){var _e$useLexicalComposer=require("LexicalComposerContext").useLexicalComposerContext(),r=_e$useLexicalComposer[0],u=t.useMemo(function(){return i(r);},[r,i]),_t$useState=t.useState(function(){return u.initialValueFn();}),o=_t$useState[0],s=_t$useState[1],c=t.useRef(o);return n(function(){var e=u.initialValueFn,t=u.subscribe,n=e();return c.current!==n&&(c.current=n,s(n)),t(function(e){c.current=e,s(e);});},[u,i]),o;}(i);};}),null);
__d("useLexicalInitializeEditor__DEPRECATED",["Lexical","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useLayoutEffect;function a(a){i(function(){a.update(function(){var b=d("Lexical").$getRoot();if(b.isEmpty()){var c=d("Lexical").$createParagraphNode();b.append(c);b=document.activeElement;(d("Lexical").$getSelection()!==null||b!==null&&b===a.getRootElement())&&c.select()}})},[a])}g["default"]=a}),98);