PageSourceSearch

https://paperpal.com/_next/static/chunks/6321.de8cf311b02a3ba3.js

js paperpal.com collected 2026-09-24 08:47:41 UTC 36,680 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6321],{1453:(e,t,n)=>{"use strict";n.d(t,{C1:()=>d,F4:()=>u,Fo:()=>p,QM:()=>c,rE:()=>g,rf:()=>h});var o=n(80263),r=n(4518),a=n(37786),i=n(53239),l=n(67106),s=n(16679);let u=[{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.ke.Enum.KEEP_WRITING,prompt:"Keep Writing",label:a.d7[a.ke.Enum.KEEP_WRITING],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,prompt:"Expand this text further based on the context of the input text",type:a.ke.Enum.EXPAND,label:a.d7[a.ke.Enum.EXPAND],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,prompt:"Write a counterargument",type:a.ke.Enum.COUNTERARGUMENT,label:a.d7[a.ke.Enum.COUNTERARGUMENT],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,prompt:"write a transition sentence that can be used after the input text",type:a.ke.Enum.TRANSITION,label:a.d7[a.ke.Enum.TRANSITION],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,prompt:"write an impact statement based on the context of the input text",type:a.ke.Enum.IMPACT,label:a.d7[a.ke.Enum.IMPACT],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})}],c=()=>{let{t:e}=(0,r.B)("edit-core");return(0,i.useMemo)(()=>{let t=(0,a.O)(e);return[{showInMenu:!0,showInToolBar:!0,fileRequired:!1,prompt:e("brainstorm_ideas","I need your assistance in brainstorming the topic of add topic. Give me brainstorming points from multiple different and discrete perspectives on the topic to form a holistic view. Help me deliberate on this topic in detail. Be descriptive in your response and use the most appropriate structure/format in generating your response."),highlightWords:[e("brainstorm_ideas_highlight","add topic")],type:a.ki.Enum.BRAINSTORM_IDEAS,label:t[a.ki.Enum.BRAINSTORM_IDEAS],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.ki.Enum.WRITE_PARAGRAPH,prompt:e("write_paragraph","Write a paragraph on add topic."),highlightWords:[e("write_paragraph_highlight","add topic")],label:t[a.ki.Enum.WRITE_PARAGRAPH],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!0,prompt:e("extract_key_takeaways","Extract key takeaways from the attached file "),highlightWords:[],type:a.ki.Enum.EXTRACT_KEY_TAKEAWAYS,label:t[a.ki.Enum.EXTRACT_KEY_TAKEAWAYS],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!0,type:a.ki.Enum.DRAFT_OUTLINE,prompt:e("draft_outline","Read attached notes and help me draft my paper outline"),highlightWords:[],label:t[a.ki.Enum.DRAFT_OUTLINE],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!0,type:a.ki.Enum.DRAFT_LITERATURE_REVIEW,prompt:e("draft_literature_review","Using the attached file as context, draft a sample Literature Review on the topic"),highlightWords:[],label:t[a.ki.Enum.DRAFT_LITERATURE_REVIEW],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!0,type:a.ki.Enum.WRITE_CONCLUSION,prompt:e("draft_conclusion","Draft a conclusion section based on the attached notes"),highlightWords:[],label:t[a.ki.Enum.WRITE_CONCLUSION],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.ki.Enum.WRITE_IDEA,prompt:e("write_idea","What more can I write on the topic of add topic."),highlightWords:[e("write_idea_highlight","add topic")],label:t[a.ki.Enum.WRITE_IDEA],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.ki.Enum.THESIS_STATEMENT,prompt:e("thesis_statement","Provide 5 suggestions for a strong thesis statement on add topic."),highlightWords:[e("thesis_statement_highlight","add topic")],label:t[a.ki.Enum.THESIS_STATEMENT],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,prompt:e("generate_survey","Help me draft a structured and hierarchical survey questionnaire on enter your survey topic with a suitable title"),highlightWords:[e("generate_survey_highlight","enter your survey topic")],type:a.ki.Enum.GENERATE_SURVEY,label:t[a.ki.Enum.GENERATE_SURVEY],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.ki.Enum.WRITE_EMAIL,prompt:e("write_email","Write a leave application email to my professor"),highlightWords:[],label:t[a.ki.Enum.WRITE_EMAIL],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})}]},[e])},d=()=>[{type:"draft_outline",label:"Outline",prompt:"Create a detailed outline. For each section and subsection, say what to write and roughly how long. Then, add a reading list of 10 key papers with authors, year, title and DOI. \n\nArticle type: [enter your article type] \n\nTopic: [describe your topic]",highlightWords:["[enter your article type]","[describe your topic]"]},{type:"draft_introduction",label:"Introduction",prompt:"Write a sample 500-750 word Introduction section for my paper. Cover why the topic matters and what is already known, state the research gap explicitly, and end with the aim and research questions. Cite every factual claim. \n\nTopic: [enter your topic]",highlightWords:["[enter your topic]"]},{type:"grant_proposal",label:"Grant Proposal",prompt:"Draft a Grant Proposal concept covering Significance & Impact, Specific Aims (2–3 measurable), Approach & Timeline, and Expected Outcomes & Risk Mitigation. Support every claim with a real source and follow the funder's actual proposal format where one exists. \n\nTopic: [enter your topic here] \n\nFunding Agency/Program: [list your funding agency here] ",highlightWords:["[enter your topic here]","[list your funding agency here]"]},{type:"case_report",label:"Case Report",prompt:"Draft a 1,000-word case report following the CARE reporting guidelines and covering the patient's presentation, timeline, diagnostic and therapeutic course, and outcomes, followed by a discu
1ssion of its significance in the current literature. Support every clinical claim with a real source, and follow the target journal's specific author guidelines where available \n\n Case/Condition: [describe the clinical condition briefly] \n\nTarget Journal: [name the target journal here] ",highlightWords:["[describe the clinical condition briefly]","[name the target journal here]"]}],p=[{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.Mm.Enum.KEEP_WRITING,prompt:"Write the next 3 sentences based on the context of the below input text. Only give the required output. Do not give any opening preamble statement or filler text.",label:a.GU[a.Mm.Enum.KEEP_WRITING],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.Mm.Enum.EXPLAIN_THIS,prompt:"explain the text in simple words",label:a.GU[a.Mm.Enum.EXPLAIN_THIS],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.Mm.Enum.EXPAND_ON_THIS,prompt:"Expand on this text in 1-2 paragraphs",label:a.GU[a.Mm.Enum.EXPAND_ON_THIS],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.Mm.Enum.SUMMARIZE_TEXT,prompt:"generate a concise summarize of this text",label:a.G
1U[a.Mm.Enum.SUMMARIZE_TEXT],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.Mm.Enum.PROBLEM_STATEMENT,prompt:"generate potential problem statements based on the given context",label:a.GU[a.Mm.Enum.PROBLEM_STATEMENT],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.Mm.Enum.IMPACT_STATEMENT,prompt:"write an implication statement strictly based on the context of the input text",label:a.GU[a.Mm.Enum.IMPACT_STATEMENT],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.Mm.Enum.SUPPORTIGN_STATEMENT,prompt:"generate potential supporting statements based on the input text",label:a.GU[a.Mm.Enum.SUPPORTIGN_STATEMENT],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.Mm.Enum.CONNECTING_SENTENCE,prompt:"suggest potential connecting statements to improve the flow and connection between the given text",label:a.G
1U[a.Mm.Enum.CONNECTING_SENTENCE],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.Mm.Enum.SUGGEST_OBJECTIVE,prompt:"suggest some aim/objective statements strictly within the context of the below text",label:a.GU[a.Mm.Enum.SUGGEST_OBJECTIVE],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.Mm.Enum.WRITE_INTRODUCTION,prompt:"write an introduction section based on the context of the given text",label:a.GU[a.Mm.Enum.WRITE_INTRODUCTION],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.Mm.Enum.CONCLUDING_STATEMENT,prompt:"write a concluding paragraph/closing statements strictly based on the given context",label:a.GU[a.Mm.Enum.CONCLUDING_STATEMENT],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})}],h=()=>{let{t:e}=(0,r.B)("edit-core"),t=(0,a.un)(e),n=(0,a.eJ)(e);return[{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.xW.Enum.EXPAND_FURTHUR,prompt:n[a.xW.Enum.EXPAND_FURTHUR],label:t[a.xW.Enum.EXPAND_FURTHUR],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.xW.Enum.MAKE_CONCISE,prompt:n[a.xW.Enum.MAKE_CONCISE],label:t[a.xW.Enum.MAKE_CONCISE],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.xW.Enum.MAKE_PROFESSIONAL,prompt:n[a.xW.Enum.MAKE_PROFESSIONAL],label:t[a.xW.Enum.MAKE_PROFESSIONAL],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.xW.Enum.EXPLAIN_THIS,prompt:n[a.xW.Enum.EXPLAIN_THIS],label:t[a.xW.Enum.EXPLAIN_THIS],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.xW.Enum.CONTRAST_THIS,prompt:n[a.xW.Enum.CONTRAST_THIS],label:t[a.xW.Enum.CONTRAST_THIS],icon:(0,o.jsx)(l.I,{name:"Pen",variant:"regular"})}]},m=(0,s.I4)("div",{color:s.w4.colors.green9}),f=(0,s.I4)("div",{color:s.w4.colors.blue12}),g=()=>{let{t:e}=(0,r.B)("edit-core"),t=(0,a.un)(e),n=h();return[{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.fs.Enum.ACCEPT_OUTCOME,prompt:"Accept",label:t[a.fs.Enum.ACCEPT_OUTCOME],icon:(0,o.jsx)(m,{children:(0,o.jsx)(l.I,{name:"circleCheck",variant:"solid"})})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.fs.Enum.RETRY,prompt:"Retry",label:t[a.fs.Enum.RETRY],icon:(0,o.jsx)(l.I,{name:"arrowRotateRight",variant:"regular"})},{showInMenu:!0,showInToolBar:!0,fileRequired:!1,type:a.fs.Enum.DISCARD,prompt:"Discard",label:t[a.fs.Enum.DISCARD],icon:(0,o.jsx)(f,{children:(0,o.jsx)(l.I,{name:"faClose",variant:"regular"})})},...n]}},15760:(e,t,n)=>{"use strict";n.d(t,{f:()=>I});var o=n(80263),r=n(19653),a=n(53239);let i=()=>{let[e,t]=(0,a.useState)(!0),[n,o]=(0,a.useState)(null);return(0,a.useEffect)(()=>{"loading"===document.readyState&&console.warn("OverleafEditorDetector: Unexpected: DOM still loading when React mounted"),(async()=>{try{let e=await u();o(e)}catch(e){console.error("OverleafEditorDetector: Detection failed:",e),o({isOverleaf:!1,confidence:"low",signals:{hasProjectUrl:!1,isOverleafDomain:!1,codeMirror:{v5:!1,v6:!1,anyVersion:!1},hasOverleafUI:!1,hasLatexContext:!1}})}finally{t(!1)}})()},[]),{isEditorDetectionLoading:e,editorDetectionState:n}};function l(){return!!(document.querySelector(".lt-overleaf-toolbar")||document.querySelector("main#ide-root")||document.querySelector(".editor[ng-controller='IdeController']")||document.querySelector("source-editor#editor")||document.querySelector(".ide-react-editor-panel")||document.querySelector(".ol-cm-spelling-error")||document.querySelector("input[name='editor'][value='cm6']")||document.querySelector("input[name='editor'][value='rich-text']"))}function s(){let e=document.body.textContent||"";return/\\documentclass|\\usepackage|\\begin\{document\}|\\maketitle/i.test(e)||/\\section|\\subsection|\\chapter|\\bibliography/i.test(e)||!!document.querySelector("script[type='text/latex']")||/\.tex$|latex|bibtex/i.test(document.title)}async function u(){try{let e=/\/project\/[a-z0-9]+(\/|\?|$|#)/i.test(window.location.href),t=/^(.*\.)?overleaf\.com$/i.test(window.location.hostname);if(t&&e)return{isOverleaf:!0,confidence:"high",signals:{hasProjectUrl:e,isOverleafDomain:t,codeMirror:{v5:!1,v6:!1,anyVersion:!1},hasOverleafUI:!1,hasLatexContext:!1}};let n=async()=>{let e=!!document.querySelector("div.CodeMirror"),t=!!document.querySelector(".cm-editor .cm
1-content");if(t||e)return{v5:e,v6:t,anyVersion:e||t};let n=150;for(let e=0;e<12;e++){await new Promise(e=>setTimeout(e,n));let e=!!document.querySelector(".cm-editor .cm-content"),t=!!document.querySelector("div.CodeMirror");if(e||t)return{v5:t,v6:e,anyVersion:t||e};n=Math.min(1.5*n,400)}return{v5:!1,v6:!1,anyVersion:!1}},o=await n(),r=e&&(o.v6&&l()||o.v6&&s());return!r&&o.v5&&console.warn("OverleafEditorDetector: Detected CodeMirror v5 with project URL on: ".concat(window.location.hostname)),{isOverleaf:r,confidence:r?"high":"low",signals:{hasProjectUrl:e,isOverleafDomain:t,codeMirror:o,hasOverleafUI:l(),hasLatexContext:s()}}}catch(e){return console.error("OverleafEditorDetector: Error in detectOverleaf on ".concat(window.location.hostname,":"),e),{isOverleaf:!1,confidence:"low",signals:{hasProjectUrl:!1,isOverleafDomain:!1,codeMirror:{v5:!1,v6:!1,anyVersion:!1},hasOverleafUI:!1,hasLatexContext:!1}}}}var c=n(4230),d=function(e){return e.ChatGPT="ChatGPT",e.GoogleDoc="GoogleDoc",e.Notion="Notion",e.Overleaf="Overleaf",e.Unknown="Unknown",e}({}),p=n(37786),h=n(16679),m=n(67106),f=n(92137),g=n(16755),E=n(84577),y=n(91280),w=n(54541),x=n(29404);let I=e=>{let{contextText:t,contextType:n,isPromptModal:l,setContextType:s,isMobileWeb:u,isExtension:h,domainConfig:I,disableCurrentDocument:T,hideFileAttachmentOption:b,isOnDashboard:v,isUngated:S,disableFileAttachementOption:A=!1,shouldShowPaywall:C=!1,featureName:k,onSignupClick:D}=e,_=(0,a.useRef)(null),[j,O]=(0,a.useState)(!1),[N,P]=(0,a.useState)(!1),B=(0,r.Ut)(c.A9.Enum.WRITE),{editorDetectionState:W}=i(),L=h&&((null==I?void 0:I.name)===d.Overleaf||(null==W?void 0:W.isOverleaf)),U=(0,a.useMemo)(()=>h&&(null==I?void 0:I.name)===d.GoogleDoc,[h,I]),{files:q,removeFile:G,maxFiles:H,restrictionErrorMessage:K,setRestrictionErrorMessage:F}=(0,g.v)(),V=(0,a.useMemo)(()=>q?Object.values(q):[],[q]);return(0,a.useEffect)(()=>{n&&_.current&&_.current.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},[n]),(0,o.jsxs)(o.Fragment,{children:[!l&&!b&&(0,o.jsx)(E._,{isPopupOpen:j,contextType:n,setIsPopupOpen:O,isMobileWeb:u,uploadFileTooltip:p.HR,handleViewRecentClick:()=>{O(!1),P(!0)},disableViewRecent:V.length===H,setContextType:()=>null==s?void 0:s("Current Document"),isExtension:h,isOverleaf:L,isGoogleDocs:U,disableCurrentDocument:T,disableFileAttachementOption:A,onSignupClick:D}),!b&&(0,o.jsx)(y.T,{filesList:V,setIsPopupOpen:O,onRemove:e=>{var t,n;let o=V.find(t=>t.id===e);if(!o)return;G(e);let r=null==o||null==(n=o.meta)||null==(t=n.citationInfo)?void 0:t.s3FileId;r&&B(r,!1)},isRestrictionError:!!K,setRestrictionErrorMessage:F,isOnDashboard:v,isUngated:S,shouldShowPaywall:C,children:n&&(0,o.jsx)(x.h,{side:"top",tipInfo:"Current Document"!==n?t:"Using the content of the current document as context",children:(0,o.jsxs)(M,{ref:_,children:[(0,o.jsx)(R,{children:n},t),(0,o.jsx)(w.nj,{size:"tiny",onClick:e=>{e.stopPropagation(),null==s||s(void 0)},children:(0,o.jsx)(m.I,{name:"x",variant:"regular"})})]},t)})}),N&&(0,o.jsx)(f.O,{open:N,setOpen:P,isMobileWeb:u,featureName:k,isExtension:h})]})},T=(0,h.i7)({"0%":{transform:"translateY(20px)",opacity:0},"100%":{transform:"translateY(0)",opacity:1}}),b=(0,h.i7)({"0%":{backgroundColor:h.w4.colors.red2},"100%":{backgroundColor:h.w4.colors.white}}),v=(0,h.i7)({"0%":{color:h.w4.colors.red10},"100%":{color:h.w4.colors.gray11}}),R=(0,h.I4)("span",{color:h.w4.colors.gray11,animation:"".concat(T," 0.3s ease-out, ").concat(v," 1s ease-out")}),M=(0,h.I4)(w.vu,{maxWidth:150,animation:"".concat(b," 1s ease-out")})},31532:(e,t,n)=>{"use strict";n.d(t,{W:()=>b});var o=n(53110),r=n(29591),a=n(75764),i=n(80263),l=n(53239),s=n(16679),u=n(70077),c=n(6437),d=n(90597),p=n(54924);let h={inside:!1,allSelected:!1};function m(e){let{node:t,extension:n,editor:o,getPos:s}=e,u=t.attrs.label,m=!0===t.attrs.autocomplete,f=!0===t.attrs.askIfEmpty,b=(0,a.Rg)(u),v=n.options,R=t.textContent,M=0===R.length,S=(0,a.c6)(t),[A,C]=(0,l.useState)(h),[k,D]=(0,l.useState)(!1),[_,j]=(0,l.useState)(-1),[O,N]=(0,l.useState)(!1),P=(0,l.useRef)(s);P.current=s;let B=(0,l.useRef)(null),W=(0,l.useRef)({getBoundingClientRect:()=>{var e,t;return null!=(t=null==(e=B.current)?void 0:e.getBoundingClientRect())?t:new DOMRect}}),L=()=>{let e=P.current,t="function"==typeof e?e():null;return"number"==typeof t?t:null};(0,l.useEffect)(()=>{let e=()=>{let e=L(),t=null===e?null:o.state.doc.nodeAt(e);
1if(null===e||!t||t.type.name!==a.nQ||!o.isFocused)return void C(e=>e.inside?h:e);let n=e+1,r=e+t.nodeSize-1,{from:i,to:l}=o.state.selection,s=i>=n&&l<=r,u=s&&i===n&&l===r&&l>i;C(e=>e.inside===s&&e.allSelected===u?e:{inside:s,allSelected:u})};return e(),o.on("transaction",e),o.on("focus",e),o.on("blur",e),()=>{o.off("transaction",e),o.off("focus",e),o.off("blur",e)}},[o]),(0,l.useEffect)(()=>{if(!0!==t.attrs.nudge)return;N(!0);let e=window.setTimeout(()=>N(!1),3200);return()=>window.clearTimeout(e)},[t.attrs.nudge]),(0,l.useEffect)(()=>{S||N(!1)},[S]),(0,l.useEffect)(()=>{A.inside||(D(!1),j(-1))},[A.inside]);let U=(0,l.useRef)(R);(0,l.useEffect)(()=>{let e=U.current!==R;U.current=R,e&&m&&A.inside&&(D(!0),j(-1))},[R,m,A.inside]),(0,l.useEffect)(()=>{if(!0!==t.attrs.autofocus)return;m&&D(!0);let e=L();null!==e&&o.view.dispatch(o.state.tr.setNodeAttribute(e,"autofocus",!1).setMeta("addToHistory",!1))},[t.attrs.autofocus,m,o]);let q=S?"":R,G=A.allSelected?"":q,{selectedList:H,recentList:K,mainList:F,showCustomOption:V,customValue:X}=(0,l.useMemo)(()=>{var e;if(!m)return{selectedList:[],recentList:[],mainList:[],showCustomOption:!1,customValue:""};let t=G.trim(),n=v.getRecentSuggestions(),o=v.getSupportedSuggestions(),r=t.toLowerCase();if(t)return{selectedList:[],recentList:[],mainList:o.filter(e=>e.toLowerCase().includes(r)),showCustomOption:!o.some(e=>e.toLowerCase()===r),customValue:t};let a=q.trim(),i=e=>!!a&&e.toLowerCase()===a.toLowerCase(),l=new Set(n);return{selectedList:a?[null!=(e=o.find(i))?e:a]:[],recentList:n.filter(e=>!i(e)),mainList:o.filter(e=>!l.has(e)&&!i(e)),showCustomOption:!1,customValue:""}},[G,q,v,m]),z=(0,l.useMemo)(()=>{let e=[...H,...K,...F];return V&&e.push(X),e},[H,K,F,V,X]),Y=H.length,$=Y+K.length,J=$+F.length,Q=e=>{let t=L(),n=null===t?null:o.state.doc.nodeAt(t);if(null===t||!n)return;
1let r=t+1,i=t+n.nodeSize-1,l=o.state.tr;e?l.replaceWith(r,i,o.schema.text(e)):l.delete(r,i),o.view.dispatch(l),D(!1),j(-1),m&&e&&v.onValueUsed(e),(0,a.uD)(o,t)},Z=(0,l.useRef)(()=>!1);Z.current=e=>{if("ArrowDown"===e.key)return!!z.length&&(j(e=>(e+1)%z.length),!0);if("ArrowUp"===e.key)return!!z.length&&(j(e=>e<=0?z.length-1:e-1),!0);if("Escape"===e.key)return D(!1),j(-1),!0;if("Enter"===e.key||"Tab"===e.key){let e=z[_];if(e)return Q(e),!0;D(!1)}return!1},(0,l.useEffect)(()=>{if(k)return(0,p.aC)(e=>Z.current(e))},[k]);let ee=S||M,et=ee?A.inside?"hintEditing":"hint":A.inside?"answerEditing":"answer",en=A.inside?"editing":ee?"placeholder":"committed",eo=(0,i.jsxs)(r.VR,{as:"span",ref:B,onClick:()=>{m&&D(!0);let e=L();null!==e&&(S||m)&&(0,a.LN)(o,e)},children:[(0,i.jsx)(r.$p,{as:"span",className:g({look:et,nudging:O||void 0}).toString(),"data-testid":b,"data-label":u,"data-state":en,"data-unfilled":S?"true":void 0,"aria-label":u}),m&&(0,i.jsxs)(c.A.Root,{open:k,modal:!1,onOpenChange:e=>{e||D(!1)},children:[(0,i.jsx)(c.A.VirtualAnchor,{virtualRef:W}),(0,i.jsx)(c.A.Popup,{side:"bottom",align:"start",hideArrow:!0,sideOffset:6,avoidCollisions:!0,collisionPadding:8,onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),css:{padding:0,overflow:"hidden"},children:(0,i.jsx)(E,{onClick:e=>e.stopPropagation(),children:(0,i.jsxs)(y,{children:[H.length>0&&(0,i.jsxs)(w,{children:[(0,i.jsx)(x,{children:"Selected"}),H.map((e,t)=>(0,i.jsx)(I,{type:"button","data-selected":!0,"data-highlighted":_===t||void 0,onMouseDown:e=>e.preventDefault(),onClick:()=>Q(e),children:e},"selected-".concat(e)))]}),K.length>0&&(0,i.jsxs)(w,{children:[(0,i.jsx)(x,{children:"Recently used"}),K.map((e,t)=>(0,i.jsx)(I,{type:"button","data-highlighted":_===Y+t||void 0,onMouseDown:e=>e.preventDefault(),onClick:()=>Q(e),children:e},"recent-".concat(e)))]}),(0,i.jsxs)(w,{children:[$>0&&F.length>0&&(0,i.jsx)(x,{children:"All languages"}),F.map((e,t)=>(0,i.jsx)(I,{type:"button","data-highlighted":_===$+t||void 0,onMouseDown:e=>e.preventDefault(),onClick:()=>Q(e),children:e},e)),V&&(0,i.jsxs)(I,{type:"button","data-highlighted":_===J||void 0,onMouseDown:e=>e.preventDefault(),onClick:()=>Q(X),children:["Use “",X,"”"]}),0===F.length&&!V&&(0,i.jsx)(T,{children:"No matching languages"})]})]})})})]})]});return f?(0,i.jsx)(d.Bc,{delayDuration:0,skipDelayDuration:0,children:(0,i.jsxs)(d.sb,{open:S&&O,onOpenChange:e=>N(S&&e),children:[(0,i.jsx)(d.k$,{asChild:!0,children:eo}),(0,i.jsx)(d.KL,{children:(0,i.jsxs)(d.ZI,{side:"top",sideOffset:6,children:[(0,i.jsx)("span",{children:"Please provide your input"}),(0,i.jsx)(d.PR,{})]})})]})}):eo}let f=(0,s.i7)({"0%, 100%":{transform:"translateX(0)"},"20%, 60%":{transform:"translateX(-3px)"},"40%, 80%":{transform:"translateX(3px)"}}),g=(0,s.AH)({display:"inline",fontSize:"inherit",fontFamily:"inherit",fontWeight:500,lineHeight:"inherit",padding:"0 ".concat((0,u.D)(2)),margin:"0 ".concat((0,u.D)(1)),borderRadius:(0,u.D)(3),verticalAlign:"baseline",outline:"none",cursor:"pointer",transition:"background 0.1s, border-color 0.1s",variants:{look:{hint:{color:s.w4.colors.blue9,fontStyle:"italic",borderBottom:"1px dashed ".concat(s.w4.colors.blue8),"&:hover":{color:s.w4.colors.blue10}},hintEditing:{color:s.w4.colors.gray9,fontStyle:"italic",background:s.w4.colors.blue3,borderBottom:"1px solid ".concat(s.w4.colors.blue9),caretColor:s.w4.colors.blue11,cursor:"text"},answer:{color:s.w4.colors.blue11,background:s.w4.colors.blue3,borderBottom:"1px solid ".concat(s.w4.colors.blue8),"&:hover":{background:s.w4.colors.blue4}},answerEditing:{color:s.w4.colors.gray12,background:s.w4.colors.blue3,borderBottom:"1px solid ".concat(s.w4.colors.blue9),caretColor:s.w4.colors.blue11,cursor:"text"}},nudging:{true:{animation:"".concat(f," 0.4s ease-in-out"),color:s.w4.colors.red9,borderBottomColor:s.w4.colors.red8}}},defaultVariants:{look:"hint"}}),E=(0,s.I4)("div",{display:"flex",flexDirection:"column",width:(0,u.D)(245),maxWidth:"var(--radix-popover-content-available-width, 245px)",background:s.w4.colors.gray1}),y=(0,s.I4)("div",{display:"flex",flexDirection:"column",maxHeight:(0,u.D)(245),overflowY:"auto",padding:(0,u.D)(4),scrollbarWidth:"thin",scrollbarColor:"".concat(s.w4.colors.gray6," transparent"),"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-thumb":{background:s.w4.colors.gray6,borderRadius:"4px"}}),w=(0,s.I4)("div",{display:"flex",flexDirection:"column"}),x=(0,s.I4)("p",{margin:0,padding:"".concat((0,u.D)(6)," ").concat((0,u.D)(8)," ").concat((0,u.D)(2)),fontSize:(0,u.D)(11),fontWeight:500,textTransform:"uppercase",letterSpacing:"0.04em",color:s.w4.colors.gray9}),I=(0,s.I4)("button",{display:"flex",alignItems:"center",width:"100%",textAlign:"left",padding:"".concat((0,u.D)(7)," ").concat((0,u.D)(8)),borderRadius:(0,u.D)(6),fontSize:(0,u.D)(13),color:s.w4.colors.gray12,background:"transparent",border:"none",cursor:"pointer",outline:"none","&:hover":{background:s.w4.colors.gray3},'&[data-highlighted="true"]':{background:s.w4.colors.gray3},'&[data-selected="true"]':{background:s.w4.colors.blue3,color:s.w4.colors.blue11,fontWeight:500}}),T=(0,s.I4)("p",{margin:0,padding:"".concat((0,u.D)(10)," ").concat((0,u.D)(8)),fontSize:(0,u.D)(13),color:s.w4.colors.gray9}),b=o.bP.create({name:a.nQ,group:"inline",inline:!0,content:"(text|hardBreak)*",marks:"",selectable:!1,addOptions:()=>({getRecentSuggestions:()=>[],getSupportedSuggestions:()=>[],onValueUsed:()=>void 0}),addAttributes:()=>({label:{default:a.OK,parseHTML:e=>e.getAttribute("data-label")||a.OK,renderHTML:e=>({"data-label":e.label})},autocomplete:{default:!1,parseHTML:e=>"true"===e.getAttribute("data-autocomplete"),renderHTML:e=>e.autocomplete?{"data-autocomplete":"true"}:{}},fallback:{default:null,parseHTML:e=>e.getAttribute("data-fallback")||null,renderHTML:e=>e.fallback?{"data-fallback":e.fallback}:{}},askIfEmpty:{default:!1,parseHTML:e=>"true"===e.getAttribute("data-ask-if-empty"),renderHTML:e=>e.askIfEmpty?{"data-ask-if-empty":"true"}:{}},autofocus:{default:!1,parseHTML:()=>!1,renderHTML:()=>({})},nudge:{default:!1,parseHTML:()=>!1,renderHTML:()=>({})}}),parseHTML:()=>[{tag:'span[data-type="editable-placeholder"]'}],renderHTML(e){let{HTMLAttributes:t}=e;return["span",(0,o.KV)({"data-type":"editable-placeholder"},t),0]},renderText(e){let{node:t}=e;return t.textContent||t.attrs.label},onUpdate(){(0,a.Cs)(this.editor)},addNodeView:()=>(0,r.gu)(m)})},33991:(e,t,n)=>{"use strict";n.d(t,{R:()=>a});var o=n(4612),r=n(81427);let a=e=>{let{file:t,maxFileSize:n,maxTotalFileSize:a,maxFiles:i=1,allowedFileTypes:l}=e;return(null==l?void 0:l.length)&&!l.some(e=>e.startsWith(".")?t.name.toLowerCase().endsWith(e):t.type===e)?"File type not supported. Try uploading a ".concat((0,r.f)(l)," file."):n&&t.size>n?(0,o.v)(Error("File is too large"),i,a,n,l):null}},54924:(e,t,n)=>{"use strict";n.d(t,{Xq:()=>i,aC:()=>a,fV:()=>function e(t,n,r,a){let i=(0,o.jM)(t,n);if(i&&r<=i.contentEnd){let e=(0,o.c6)(i.node)?{from:i.contentStart,to:i.contentEnd}:{from:n,to:r};return t.chain().insertContentAt(e,a).run(),!0}if(n!==r&&l(t,n,r)){let n=t.state.selection.from;return e(t,n,n,a)||t.chain().insertContentAt(n,a).run(),!0}return!1},hF:()=>u,kj:()=>s});var o=n(75764);let r=null;function a(e){let t={handle:e};return r=t,()=>{r===t&&(r=null)}}function i(e,t){let{selection:n}=e.state;n.empty||l(e,n.from,n.to);let r=e.state.selection,a=(0,o.jM)(e,r.from);if(!a||r.to>a.contentEnd||!t)return!1;let i=(0,o.c6)(a.node)?{from:a.contentStart,to:a.contentEnd}:{from:r.from,to:r.to};return e.chain().insertContentAt(i,function(e){let t=[];return e.split("\n").forEach((e,n)=>{n>0&&t.push({type:"hardBreak"}),e&&t.push({type:"text",text:e})}),t}(t)).run(),!0}function l(e,t,n){let r=(0,o.Dm)(e).filter(e=>e.pos<n&&e.end>t);if(!r.length)return!1;let a=[],i=t;for(let e of r){if(e.pos>i&&(a.push({from:i,to:Math.min(e.pos,n)}),i=Math.min(e.pos,n)),t<=e.contentStart&&n>=e.contentEnd){a.push({from:e.pos,to:e.end}),i=e.end;continue}i=Math.max(i,e.contentStart);let o=Math.min(n,e.contentEnd);o>i&&a.push({from:i,to:o}),i=Math.max(i,e.end)}return n>i&&a.push({from:i,to:n}),e.chain().command(e=>{let{tr:t}=e;for(let e=a.length-1;e>=0;e-=1){let n=a[e];n&&n.to>n.from&&t.delete(n.from,n.to)}return!0}).setTextSelection(t).run(),!0}function s(e,t){let{selection:n}=e.state;if(n.empty||!t.clipboardData)return!1;let{from:r,to:a}=n;return!!(0,o.Dm)(e).some(e=>e.pos<a&&e.end>r)&&(t.clipboardData.setData("text/plain",e.state.doc.textBetween(r,a,"\n")),t.preventDefault(),l(e,r,a),!0)}function u(e,t){if(null==r?void 0:r.handle(t))return!0;let{selection:n}=e.state,a=(0,o.jM)(e,n.from),i=a&&n.to<=a.contentEnd?a:null;return!!function(e,t,n){if(!n||1!==t.key.length||t.ctrlKey||t.metaKey||t.altKey||t.isComposing||!(0,o.c6)(n.node))return!1;let{from:r,to:a}=e.state.selection;return(r!==n.contentStart||a!==n.contentEnd)&&(e.chain().insertContentAt({from:n.contentStart,to:n.contentEnd},t.key).run(),!0)}(e,t,i)||("Tab"===t.key?!!i&&((0,o.uD)(e,i.pos,t.shiftKey?-1:1),!0):"Enter"!==t.key||t.shiftKey?"Backspace"===t.key?function(e,t,n){let{selection:r}=e.state;if(!r.empty)return l(e,r.from,r.to);let a=r.from;if(n)return a>n.contentStart?h(e,t,n,a,!1):(0,o.c6)(n.node)?p(e,n):function(e,t,n){let r=e.state.doc.resolve(n.pos);if(!r.nodeBefore)return e.commands.setTextSelection(n.pos),!0;if(r.nodeBefore.type.name===o.nQ){let r=(0,o.Dm)(e).find(e=>e.end===n.pos);return!!r&&h(e,t,r,r.contentEnd,!1)}let a=c(e,t,n.pos,r.start(),!1);return d(e,n.pos,a)}
1(e,t,n);let i=(0,o.Dm)(e).find(e=>e.end===a);return!!i&&h(e,t,i,i.contentEnd,!1)}(e,t,i):"Delete"===t.key&&function(e,t,n){let{selection:r}=e.state;if(!r.empty)return l(e,r.from,r.to);let a=r.from;if(n)return a<n.contentEnd?h(e,t,n,a,!0):(0,o.c6)(n.node)?p(e,n):function(e,t,n){let r=e.state.doc.resolve(n.end);if(!r.nodeAfter)return e.commands.setTextSelection(n.end),!0;if(r.nodeAfter.type.name===o.nQ){let r=(0,o.Dm)(e).find(e=>e.pos===n.end);return!!r&&h(e,t,r,r.contentStart,!0)}let a=c(e,t,n.end,r.end(),!0);return d(e,n.end,a)}(e,t,n);let i=(0,o.Dm)(e).find(e=>e.pos===a);return!!i&&h(e,t,i,i.contentStart,!0)}(e,t,i):!!i&&(0,o.uD)(e,i.pos))}function c(e,t,n,o,r){let a=e=>r?Math.min(e,o):Math.max(e,o);if(t.metaKey||t.ctrlKey)return o;if(t.altKey){let t=e.state.doc.textBetween(r?n:o,r?o:n),i=r?/^\s*\S*/.exec(t):/\S*\s*$/.exec(t),l=i?i[0].length:0;return a(r?n+l:n-l)}let i=function(e,t,n){let o=e.state.doc.resolve(t),r=n?o.nodeAfter:o.nodeBefore;return r?r.isText?!function(e){if(2!==e.length)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=55296&&t<=56319&&n>=56320&&n<=57343}(n?e.state.doc.textBetween(t,Math.min(t+2,o.end())):e.state.doc.textBetween(Math.max(t-2,o.start()),t))?1:2:r.nodeSize:0}(e,n,r);return a(r?n+i:n-i)}function d(e,t,n){if(n===t)return!0;let o=Math.min(t,n),r=Math.max(t,n);return e.chain().deleteRange({from:o,to:r}).setTextSelection(o).run(),!0}function p(e,t){return e.chain().deleteRange({from:t.pos,to:t.end}).setTextSelection(t.pos).run(),!0}function h(e,t,n,r,a){return(0,o.c6)(n.node)?p(e,n):d(e,r,c(e,t,r,a?n.contentEnd:n.contentStart,a))}},68982:(e,t,n)=>{"use strict";n.d(t,{l:()=>l});var o=n(80263),r=n(16679);let a=(0,r.i7)({to:{opacity:.1,transform:"translateY(-8px)"}}),i=(0,r.I4)("span",{display:"inline-flex","& > span":{width:4,height:4,margin:1,borderRadius:2,backgroundColor:r.
1w4.colors.blue9,opacity:2,animation:"".concat(a," 0.5s infinite alternate")},variants:{color:{gray:{"& > span":{backgroundColor:r.w4.colors.gray9}},blue:{"& > span":{backgroundColor:r.w4.colors.blue9}}}},"& > span:nth-child(2)":{animationDelay:"0.1s"},"& > span:nth-child(3)":{animationDelay:"0.3s"},"& > span:nth-child(4)":{animationDelay:"0.5s"}}),l=e=>{let{color:t="blue"}=e;return(0,o.jsxs)(i,{color:t,children:[(0,o.jsx)("span",{}),(0,o.jsx)("span",{}),(0,o.jsx)("span",{})]})}},72402:()=>{},75764:(e,t,n)=>{"use strict";n.d(t,{Cs:()=>f,Dm:()=>h,KB:()=>u,KU:()=>R,LN:()=>w,Lm:()=>v,M$:()=>T,OK:()=>i,Rg:()=>a,U9:()=>r,Xo:()=>d,c6:()=>m,ct:()=>c,jM:()=>E,kG:()=>M,kZ:()=>p,nQ:()=>o,nw:()=>y,o$:()=>l,qo:()=>S,uD:()=>x,wk:()=>s,yY:()=>g});let o="editablePlaceholder",r="editable-placeholder";function a(e){let t=e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return t?"".concat(r,"-").concat(t):r}let i="a value",l="target language",s="English",u="Translate this into ",c=["Spanish","French","German","Japanese","Chinese","Hindi","Arabic","Portuguese","Russian","Korean"];function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,r=arguments.length>3?arguments[3]:void 0,a=!(arguments.length>4)||void 0===arguments[4]||arguments[4],i={type:o,attrs:{label:l,autocomplete:!0,fallback:s}};i.content=[{type:"text",text:t||l}];let c=[{type:"text",text:n},i],d=[];r&&(d.push({type:"hardBreak"}),r.split("\n").forEach(e=>{d.push({type:"hardBreak"}),e&&d.push({type:"text",text:e})}));let p=r?[{type:"paragraph",content:[...c,...d]}]:c;e.chain().clearContent().insertContent(p).run(),a&&b(e,!0)}function p(e,t,n){let r=(Array.isArray(n)?n:[n]).map(e=>"string"==typeof e?{token:e,whenEmpty:"hint"}:{whenEmpty:"hint",...e}),a=[],i=0,l=0;for(let{token:e,whenEmpty:n}of r){if(!e)continue;let r=t.indexOf(e,i);if(-1===r)continue;r>i&&a.push({type:"text",text:t.slice(i,r)});let s=e.replace(/^\s*\[/,"").replace(/\]\s*$/,"").trim();a.push({type:o,attrs:{label:s,autocomplete:!1,fallback:"hint"===n?s:null,askIfEmpty:"ask"===n},content:[{type:"text",text:s}]}),l+=1,i=r+e.length}i<t.length&&a.push({type:"text",text:t.slice(i)});let s=a.length?a:[{type:"text",text:t}];if(e.chain().clearContent().insertContent(s).run(),0===l)return void e.chain().focus("end").run();b(e,!1)}function h(e){let t=[];return e.state.doc.descendants((e,n)=>e.type.name!==o||(t.push({pos:n,end:n+e.nodeSize,contentStart:n+1,contentEnd:n+e.nodeSize-1,node:e}),!1)),t}function m(e){return e.textContent===e.attrs.label}function f(e){let t=h(e).filter(e=>0===e.node.content.size);if(!t.length)return;let n=e.state.selection.from,o=t.find(e=>n>=e.contentStart&&n<=e.contentEnd),r=e.state.tr,a=null;t.forEach(t=>{let n=t.node.attrs.label;if(!n)return;let i=r.mapping.map(t.contentStart);t===o&&(a=i),r.insert(i,e.schema.text(n))}),r.docChanged&&(e.view.dispatch(r),null!==a&&e.commands.setTextSelection(a))}function g(e,t){let n=e.state.doc.nodeAt(t),o=null==n?void 0:n.attrs.label;return!!n&&!!o&&!(n.content.size>0)&&(e.view.dispatch(e.state.tr.insert(t+1,e.schema.text(o)).setMeta("addToHistory",!1)),!0)}function E(e,t){var n;return null!=(n=h(e).find(e=>t>=e.contentStart&&t<=e.contentEnd))?n:null}function y(e){var t;let n=h(e).find(e=>!0===e.node.attrs.askIfEmpty&&(m(e.node)||!e.node.textContent.trim()));return n?{pos:n.pos,label:null!=(t=n.node.attrs.label)?t:""}:null}function w(e,t){let n=e.state.doc.nodeAt(t);if(!n)return;let o=t+1,r=t+n.nodeSize-1;e.chain().focus().setTextSelection(m(n)?{from:o,to:o}:{from:o,to:r}).run()}function x(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=h(e),r=o.findIndex(e=>e.pos===t),a=-1===r?void 0:o[r];if(!a)return!1;let i=o[r+n];return i?(w(e,i.pos),!0):(1===n&&e.chain().focus().setTextSelection(a.end).run(),!1)}function I(e,t,n){var o;let r=o=>e.view.dispatch(e.state.tr.setNodeAttribute(t,n,o).setMeta("addToHistory",!1));if((null==(o=e.state.doc.nodeAt(t))?void 0:o.attrs[n])===!0){r(!1),requestAnimationFrame(()=>r(!0));return}r(!0)}function T(e,t){I(e,t,"nudge")}function b(e,t){let n=h(e)[0];n&&(w(e,n.pos),t&&I(e,n.pos,"autofocus"))}function v(e,t){return A((Array.isArray(t)?t:[t]).map(e=>
1"string"==typeof e?e:e.token).filter(Boolean).reduce((e,t)=>e.split(t).join("\0"),e)).trim()}function R(e){let t=!1;return D(e.getJSON(),e=>{e.type===o&&(t=!0)}),t}function M(e){let t=[];return D(e.getJSON(),e=>{var n;if(e.type!==o||(null==(n=e.attrs)?void 0:n.autocomplete)!==!0||C(e))return;let r=k(e).trim();r&&t.push(r)}),t}function S(e){var t;return A((null!=(t=e.getJSON().content)?t:[]).map(e=>(function e(t){var n,r,a,i;if("text"===t.type)return null!=(n=t.text)?n:"";if("hardBreak"===t.type)return"\n";if(t.type===o){let e=null!=(a=null==(r=t.attrs)?void 0:r.fallback)?a:"";return C(t)?e||"\0":k(t).trim()||e||"\0"}return(null!=(i=t.content)?i:[]).map(t=>e(t)).join("")})(e)).join("\n")).trim()}function A(e){if(!e.includes("\0"))return e;let t=[];for(let n of e.split("\n")){if(!n.includes("\0")){t.push(n);continue}let e=n.split("\0").join("").replace(/[ \t]+$/,"");e.trim()&&t.push(e)}return t.join("\n")}function C(e){var t;return k(e)===(null==(t=e.attrs)?void 0:t.label)}function k(e){var t;return(null!=(t=e.content)?t:[]).map(e=>{var t;return"hardBreak"===e.type?"\n":null!=(t=e.text)?t:""}).join("")}function D(e,t){var n;t(e),(null!=(n=e.content)?n:[]).forEach(e=>D(e,t))}},84951:(e,t,n)=>{"use strict";function o(e){return e.split(/\s+/).filter(Boolean).length}n.d(t,{r:()=>o})},87978:(e,t,n)=>{"use strict";n.d(t,{W:()=>l});var o=n(23428),r=n(88844),a=n(29591),i=n(87355);let l=e=>{let{content:t,placeholder:n,autofocus:l,extensions:s,plainText:u}=e;return{editor:(0,a.hG)({autofocus:l,extensions:[i.A.configure(u?{heading:!1,bulletList:!1,orderedList:!1,listItem:!1,blockquote:!1,
1codeBlock:!1,horizontalRule:!1,bold:!1,italic:!1,strike:!1,code:!1}:{}),o.Ay.configure({multicolor:!0}),r.A.configure({placeholder:n||"Type something..."}),...null!=s?s:[]],content:t})}}},96039:(e,t,n)=>{"use strict";n.d(t,{d:()=>a});var o=n(80263),r=n(29591);n(72402);let a=e=>{let{editor:t,isFullHeight:n=!1}=e;return(0,o.jsx)(r.$Z,{className:"rich-text-editor".concat(n?" full-height":""),editor:t})}}}]);

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