(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,886871,e=>{"use strict";var t=e.i(843476),o=e.i(488784);let n=new WeakSet;function i(e){return e?`Ln ${e.lineNumber}, Col ${e.column}`:"Ln 1, Col 1"}function r(e){return(t,o)=>{t.addAction({id:"bridgelink.action.clipboardPaste",label:"Paste",contextMenuGroupId:"9_cutcopypaste",contextMenuOrder:4,run:async e=>{let t;if(!navigator.clipboard?.readText)return;try{t=await navigator.clipboard.readText()}catch{return}if(!t)return;let o=e.getSelections();o?.length&&(e.executeEdits("clipboard-paste",o.map(e=>({range:e,text:t,forceMoveMarkers:!0}))),e.focus())}});let r=t.getContribution("editor.contrib.contextmenu");if(r&&"function"==typeof r._getMenuActions&&!r.__blPasteEntryRemoved){let e=r._getMenuActions.bind(r);r._getMenuActions=(...t)=>e(...t).filter(e=>e?.id!=="editor.action.clipboardPasteAction"),r.__blPasteEntryRemoved=!0}!function(e,t){if(e.getModel?.()?.getLanguageId()!=="rhino-js"||n.has(e))return;n.add(e);let o=document.createElement("div");o.className="bl-editor-cursor-status",o.textContent=i(e.getPosition());let r={getId:()=>"bridgelink.overlay.cursorStatus",getDomNode:()=>o,getPosition:()=>({preference:t.editor.OverlayWidgetPositionPreference.BOTTOM_RIGHT_CORNER})};e.addOverlayWidget(r);let a=e.onDidChangeCursorPosition(e=>{o.textContent=i(e.position)});e.onDidDispose(()=>{a.dispose(),e.removeOverlayWidget(r)})}(t,o),e?.(t,o)}}e.s(["MonacoEditor",0,function({onMount:e,...n}){return(0,t.jsx)(o.default,{...n,onMount:r(e)})},"composeEditorMount",0,r],886871)},162249,e=>{e.n(e.i(886871))}]);