@inkeep/open-knowledge 0.12.0-beta.5 → 0.12.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/assets/skills/discovery/SKILL.md +1 -1
  2. package/dist/assets/skills/project/SKILL.md +1 -1
  3. package/dist/cli.mjs +5 -5
  4. package/dist/constants-DhGgt-wR.mjs +2 -0
  5. package/dist/{dist-8yYKQV8z.mjs → dist-HAGqJLqV.mjs} +1 -1
  6. package/dist/{dist-BoD8jZ2N.mjs → dist-zesBoTkG.mjs} +9 -14
  7. package/dist/{gh-detect-Blx-abjd.mjs → gh-detect-CikFOrlM.mjs} +2 -2
  8. package/dist/index.mjs +1 -1
  9. package/dist/{init-BDElok92.mjs → init-BVsopAwm.mjs} +4 -4
  10. package/dist/init-DrXZrOV7.mjs +1 -0
  11. package/dist/{loader-CFKljx2j.mjs → loader-BjWyQo4A.mjs} +2 -2
  12. package/dist/loader-CA4Ny-VN.mjs +1 -0
  13. package/dist/preview-11qZ1mVS.mjs +1 -0
  14. package/dist/{preview-B7H0cgOr.mjs → preview-otwC74n4.mjs} +2 -2
  15. package/dist/public/assets/{ActivityModeContent-srq2iWDx.js → ActivityModeContent-b59k4M_j.js} +1 -1
  16. package/dist/public/assets/DocumentContext-BR65_zuA.js +61 -0
  17. package/dist/public/assets/{GraphPanel-BMNyzIY-.js → GraphPanel-Bl5jV7c_.js} +9 -9
  18. package/dist/public/assets/{SettingsDialogBody-D_UAkvAs.js → SettingsDialogBody-CndnOQd4.js} +2 -2
  19. package/dist/public/assets/SourceEditor-BMxI0ZWT.js +2 -0
  20. package/dist/public/assets/config-validation-events-BWJSKUrS.js +12 -0
  21. package/dist/public/assets/{index-DYnhs3AV.js → index-DhH-Kp6K.js} +11 -11
  22. package/dist/public/assets/{keyboard-shortcuts-DkQLjR77.js → keyboard-shortcuts-D0KVvAH-.js} +1 -1
  23. package/dist/public/assets/{prop-types-dLQ7yD_s.js → prop-types-DuudoO1j.js} +139 -139
  24. package/dist/public/assets/{target-navigation-intent-B2Gibtac.js → target-navigation-intent-DSIklRf3.js} +1 -1
  25. package/dist/public/assets/{typing-burst-detector-M2lm82uI.js → typing-burst-detector-CREjXt4W.js} +1 -1
  26. package/dist/public/index.html +7 -7
  27. package/dist/{repair-launch-json-Bt40PU8G.mjs → repair-launch-json-DGbzkEWO.mjs} +2 -2
  28. package/dist/{repair-mcp-configs-DS-EgGwR.mjs → repair-mcp-configs-DBArYrt3.mjs} +2 -2
  29. package/dist/{repair-skills-sYXpOD93.mjs → repair-skills-BOfchisn.mjs} +2 -2
  30. package/dist/repair-skills-Y1Om6EdV.mjs +1 -0
  31. package/dist/{server-lock-BpjJj3OD-CBqalCML.mjs → server-lock-BpjJj3OD-CQhCveR-.mjs} +2 -2
  32. package/dist/server-lock-CyhBidkz-BGbgxg_n.mjs +1 -0
  33. package/dist/{src-daEa-AId.mjs → src-YSYDsCMR.mjs} +2 -2
  34. package/dist/{start-Coak6_MB.mjs → start-BZaSqTrV.mjs} +2 -2
  35. package/dist/start-Dh6yzjqd.mjs +1 -0
  36. package/dist/{write-project-skill-B-F3qgJM.mjs → write-project-skill-hYKP5BAm.mjs} +2 -2
  37. package/package.json +1 -1
  38. package/dist/constants-nLtDjuXA.mjs +0 -2
  39. package/dist/init-CaG9Ted-.mjs +0 -1
  40. package/dist/loader-Q6ociM7o.mjs +0 -1
  41. package/dist/preview-BOFh7KS-.mjs +0 -1
  42. package/dist/public/assets/DocumentContext-BqCKU2hi.js +0 -61
  43. package/dist/public/assets/SourceEditor-BZRDxOqc.js +0 -2
  44. package/dist/public/assets/config-validation-events-Bg80WhXt.js +0 -12
  45. package/dist/repair-skills-BilSV7AO.mjs +0 -1
  46. package/dist/server-lock-CyhBidkz-CVnuTULF.mjs +0 -1
  47. package/dist/start-DTHhUbUT.mjs +0 -1
@@ -1,2 +0,0 @@
1
- import{o as e}from"./chunk-CFjPhJqf.js";import{a as t,o as n,t as r}from"./compiler-runtime-Cs91PcD2.js";import{Cn as i,Dt as a,H as o,M as s,N as c,Ot as l,P as u,Q as d,Sn as f,W as ee,X as p,_n as m,bn as h,dn as g,gn as _,hn as v,mn as y,pn as b,vn as x,xn as S,yn as C}from"./DocumentContext-BqCKU2hi.js";import{Jn as w,Ti as te,aa as ne}from"./prop-types-dLQ7yD_s.js";import{l as re}from"./keyboard-shortcuts-DkQLjR77.js";import{$ as ie,Dt as ae,Et as T,Ft as E,J as D,Ot as O,P as k,Q as A,Tt as j,X as M,jt as N,pt as oe,ut as se,xt as P}from"./dist-Du-s1q8P.js";import{a as ce,d as le,i as ue,m as de,n as fe,p as pe,u as me}from"./typing-burst-detector-M2lm82uI.js";var F=e(t(),1),he=r(),I=class e{constructor(e,t){this.yanchor=e,this.yhead=t}toJSON(){return{yanchor:x(this.yanchor),yhead:x(this.yhead)}}static fromJSON(t){return new e(_(t.yanchor),_(t.yhead))}},L=class{constructor(e,t){this.ytext=e,this.awareness=t,this.undoManager=new b(e)}toYPos(e,t=0){return m(this.ytext,e,t)}fromYPos(e){let t=v(_(e),this.ytext.doc);if(t==null||t.type!==this.ytext)throw Error(`[y-codemirror] The position you want to retrieve was created by a different document`);return{pos:t.index,assoc:t.assoc}}toYRange(e){let t=e.assoc;return new I(this.toYPos(e.anchor,t),this.toYPos(e.head,t))}fromYRange(e){let t=this.fromYPos(e.yanchor),n=this.fromYPos(e.yhead);return t.pos===n.pos?T.cursor(n.pos,n.assoc):T.range(t.pos,n.pos)}},R=O.define({combine(e){return e[e.length-1]}}),z=P.define(),B=class{constructor(e){this.view=e,this.conf=e.state.facet(R),this._observer=(t,n)=>{if(n.origin!==this.conf){let n=t.delta,r=[],i=0;for(let e=0;e<n.length;e++){let t=n[e];t.insert==null?t.delete==null?i+=t.retain:(r.push({from:i,to:i+t.delete,insert:``}),i+=t.delete):r.push({from:i,to:i,insert:t.insert})}e.dispatch({changes:r,annotations:[z.of(this.conf)]})}},this._ytext=this.conf.ytext,this._ytext.observe(this._observer)}update(e){if(!e.docChanged||e.transactions.length>0&&e.transactions[0].annotation(z)===this.conf)return;let t=this.conf.ytext;t.doc.transact(()=>{let n=0;e.changes.iterChanges((e,r,i,a,o)=>{let s=o.sliceString(0,o.length,`
2
- `);e!==r&&t.delete(e+n,r-e),s.length>0&&t.insert(e+n,s),n+=s.length-(r-e)})},this.conf)}destroy(){this._ytext.unobserve(this._observer)}},V=A.fromClass(B),H=M.baseTheme({".cm-ySelection":{},".cm-yLineSelection":{padding:0,margin:`0px 2px 0px 4px`},".cm-ySelectionCaret":{position:`relative`,borderLeft:`1px solid black`,borderRight:`1px solid black`,marginLeft:`-1px`,marginRight:`-1px`,boxSizing:`border-box`,display:`inline`},".cm-ySelectionCaretDot":{borderRadius:`50%`,position:`absolute`,width:`.4em`,height:`.4em`,top:`-.2em`,left:`-.2em`,backgroundColor:`inherit`,transition:`transform .3s ease-in-out`,boxSizing:`border-box`},".cm-ySelectionCaret:hover > .cm-ySelectionCaretDot":{transformOrigin:`bottom center`,transform:`scale(0)`},".cm-ySelectionInfo":{position:`absolute`,top:`-1.05em`,left:`-1px`,fontSize:`.75em`,fontFamily:`serif`,fontStyle:`normal`,fontWeight:`normal`,lineHeight:`normal`,userSelect:`none`,color:`white`,paddingLeft:`2px`,paddingRight:`2px`,zIndex:101,transition:`opacity .3s ease-in-out`,backgroundColor:`inherit`,opacity:0,transitionDelay:`0s`,whiteSpace:`nowrap`},".cm-ySelectionCaret:hover > .cm-ySelectionInfo":{opacity:1,transitionDelay:`0s`}}),U=P.define(),W=class extends ie{constructor(e,t){super(),this.color=e,this.name=t}toDOM(){return C(`span`,[S(`class`,`cm-ySelectionCaret`),S(`style`,`background-color: ${this.color}; border-color: ${this.color}`)],[h(`⁠`),C(`div`,[S(`class`,`cm-ySelectionCaretDot`)]),h(`⁠`),C(`div`,[S(`class`,`cm-ySelectionInfo`)],[h(this.name)]),h(`⁠`)])}eq(e){return e.color===this.color}compare(e){return e.color===this.color}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}},G=class{constructor(e){this.conf=e.state.facet(R),this._listener=({added:t,updated:n,removed:r},i,a)=>{t.concat(n).concat(r).findIndex(e=>e!==this.conf.awareness.doc.clientID)>=0&&e.dispatch({annotations:[U.of([])]})},this._awareness=this.conf.awareness,this._awareness.on(`change`,this._listener),this.decorations=N.of([])}destroy(){this._awareness.off(`change`,this._listener)}update(e){let t=this.conf.ytext,n=t.doc,r=this.conf.awareness,a=[],o=this.conf.awareness.getLocalState();if(o!=null){let n=e.view.hasFocus&&e.view.dom.ownerDocument.hasFocus(),i=n?e.state.selection.main:null,a=o.cursor==null?null:_(o.cursor.anchor),s=o.cursor==null?null:_(o.cursor.head);if(i!=null){let e=m(t,i.anchor),n=m(t,i.head);(o.cursor==null||!y(a,e)||!y(s,n))&&r.setLocalStateField(`cursor`,{anchor:e,head:n})}else o.cursor!=null&&n&&r.setLocalStateField(`cursor`,null)}r.getStates().forEach((o,s)=>{if(s===r.doc.clientID)return;let c=o.cursor;if(c==null||c.anchor==null||c.head==null)return;let l=v(c.anchor,n),u=v(c.head,n);if(l==null||u==null||l.type!==t||u.type!==t)return;let{color:d=`#30bced`,name:ee=`Anonymous`}=o.user||{},p=o.user&&o.user.colorLight||d+`33`,m=i(l.index,u.index),h=f(l.index,u.index),g=e.view.state.doc.lineAt(m),_=e.view.state.doc.lineAt(h);if(g.number===_.number)a.push({from:m,to:h,value:D.mark({attributes:{style:`background-color: ${p}`},class:`cm-ySelection`})});else{a.push({from:m,to:g.from+g.length,value:D.mark({attributes:{style:`background-color: ${p}`},class:`cm-ySelection`})}),a.push({from:_.from,to:h,value:D.mark({attributes:{style:`background-color: ${p}`},class:`cm-ySelection`})});for(let t=g.number+1;t<_.number;t++){let n=e.view.state.doc.line(t).from;a.push({from:n,to:n,value:D.line({attributes:{style:`background-color: ${p}`,class:`cm-yLineSelection`}})})}}a.push({from:u.index,to:u.index,value:D.widget({side:u.index-l.index>0?-1:1,block:!1,widget:new W(d,ee)})})}),this.decorations=D.set(a,!0)}},K=A.fromClass(G,{decorations:e=>e.decorations}),q=class{constructor(e){this.undoManager=e}addTrackedOrigin(e){this.undoManager.addTrackedOrigin(e)}removeTrackedOrigin(e){this.undoManager.removeTrackedOrigin(e)}undo(){return this.undoManager.undo()!=null}redo(){return this.undoManager.redo()!=null}},J=O.define({combine(e){return e[e.length-1]}});P.define();var Y=class{constructor(e){this.view=e,this.conf=e.state.facet(J),this._undoManager=this.conf.undoManager,this.syncConf=e.state.facet(R),this._beforeChangeSelection=null,this._mux=g(),this._onStackItemAdded=({stackItem:e,changedParentTypes:t})=>{t.has(this.syncConf.ytext)&&this._beforeChangeSelection&&!e.meta.has(this)&&e.meta.set(this,this._beforeChangeSelection)},this._onStackItemPopped=({stackItem:t})=>{let n=t.meta.get(this);if(n){let t=this.syncConf.fromYRange(n);e.dispatch(e.state.update({selection:t,effects:[M.scrollIntoView(t)]})),this._storeSelection()}},this._storeSelection=()=>{this._beforeChangeSelection=this.syncConf.toYRange(this.view.state.selection.main)},this._undoManager.on(`stack-item-added`,this._onStackItemAdded),this._undoManager.on(`stack-item-popped`,this._onStackItemPopped),this._undoManager.addTrackedOrigin(this.syncConf)}update(e){e.selectionSet&&(e.transactions.length===0||e.transactions[0].annotation(z)!==this.syncConf)&&this._storeSelection()}destroy(){this._undoManager.off(`stack-item-added`,this._onStackItemAdded),this._undoManager.off(`stack-item-popped`,this._onStackItemPopped),this._undoManager.removeTrackedOrigin(this.syncConf)}},X=A.fromClass(Y),Z=({state:e,dispatch:t})=>e.facet(J).undo()||!0,ge=({state:e,dispatch:t})=>e.facet(J).redo()||!0,_e=(e,t,{undoManager:n=new b(e)}={})=>{let r=new L(e,t),i=[R.of(r),V];return t&&i.push(H,K),n!==!1&&i.push(J.of(new q(n)),X,M.domEventHandlers({beforeinput(e,t){return e.inputType===`historyUndo`?Z(t):e.inputType===`historyRedo`?ge(t):!1}})),i},ve=D.mark({class:`cm-link-ref-broken`}),Q=/^\s{0,3}\[([^\]]+)\]:\s/,ye=/\[([^\]]*)\]\[([^\]]*)\]/g,be=new Set([`FencedCode`,`CodeBlock`,`InlineCode`]);function $(e,t){let n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1,a=t[i];if(e<a.from)r=i-1;else if(e>=a.to)n=i+1;else return!0}return!1}function xe(e){let t=[];return k(e).iterate({enter(e){if(be.has(e.name))return t.push({from:e.from,to:e.to}),!1}}),t.sort((e,t)=>e.from-t.from),t}function Se(e){let t=new Set,n=[],r=e.doc,i=xe(e);for(let e=1;e<=r.lines;e++){let n=r.line(e);if($(n.from,i))continue;let a=Q.exec(n.text);a&&t.add(a[1].toLowerCase())}for(let e=1;e<=r.lines;e++){let t=r.line(e);if(!$(t.from,i)&&!Q.test(t.text))for(ye.lastIndex=0;;){let e=ye.exec(t.text);if(!e)break;let r=t.from+e.index;if($(r,i))continue;let a=e[2]||e[1];n.push({from:r,to:r+e[0].length,label:a.toLowerCase()})}}let a=[];for(let e of n)t.has(e.label)||a.push(ve.range(e.from,e.to));return a.sort((e,t)=>e.from-t.from),D.set(a)}var Ce=E.define({create(e){return Se(e)},update(e,t){return t.docChanged?Se(t.state):e},provide:e=>M.decorations.from(e)}),we=/^(\s*(?:[-*+]|\d+[.)]) (?:\[[ x]\] )?)/,Te=D.mark({class:`cm-del`}),Ee=D.line({class:`cm-table-header`,attributes:{style:`--list-hang: 2ch`}}),De=D.line({class:`cm-table-row`,attributes:{style:`--list-hang: 2ch`}});function Oe(e){let t=0;for(let n of e)if(n===` `)t++;else if(n===` `)t+=4;else break;return t}function ke(e){if(e.doc.lines<2)return null;let t=e.doc.line(1);if(t.text!==`---`)return null;for(let n=2;n<=e.doc.lines;n++){let r=e.doc.line(n);if(r.text===`---`)return{from:t.from,to:r.to}}return null}function Ae(e,t){let n=[],r=k(e),i=ke(e),a=e=>i!==null&&e>=i.from&&e<=i.to;for(let{from:i,to:o}of t)r.iterate({from:i,to:o,enter(t){if(!a(t.from)){if(t.name===`Strikethrough`){let e=t.from,r=t.to,i=t.node.cursor();if(i.firstChild())do i.name===`StrikethroughMark`&&(i.from===t.from?e=i.to:r=i.from);while(i.nextSibling());return e<r&&n.push(Te.range(e,r)),!1}if(t.name===`ListItem`){let r=e.doc.lineAt(t.from),i=we.exec(r.text),a=i?i[1].length:2,o=D.line({class:`cm-list-item`,attributes:{style:`--list-hang: ${a}ch`}});n.push(o.range(r.from));return}if(t.name===`FencedCode`){let r=e.doc.lineAt(t.from),i=e.doc.lineAt(t.to);for(let t=r.number+1;t<i.number;t++){let r=e.doc.line(t),i=Oe(r.text),a=D.line({class:`cm-fenced-code-line`,attributes:{style:`--line-indent: ${i}`}});n.push(a.range(r.from))}return!1}if(t.name===`TableHeader`){let r=e.doc.lineAt(t.from);return n.push(Ee.range(r.from)),!1}if(t.name===`TableRow`){let r=e.doc.lineAt(t.from);return n.push(De.range(r.from)),!1}if(t.name===`TableDelimiter`&&t.node.parent?.name===`Table`){let r=e.doc.lineAt(t.from);return n.push(De.range(r.from)),!1}}}});return n.sort((e,t)=>e.from-t.from||e.value.startSide-t.value.startSide),D.set(n)}var je=class{decorations;constructor(e){this.decorations=Ae(e.state,e.visibleRanges)}update(e){(e.docChanged||e.viewportChanged||k(e.startState)!==k(e.state))&&(this.decorations=Ae(e.view.state,e.view.visibleRanges))}},Me=A.fromClass(je,{decorations:e=>e.decorations});function Ne(){return[Me,Ce]}var Pe=n(),Fe=56;function Ie(e,t){let n=e.state.doc,r=1;if(n.lines>=1&&n.line(1).text===`---`){for(let e=2;e<=n.lines;e++)if(n.line(e).text===`---`){r=e+1;break}}let i=w(),a=0;for(let o=r;o<=n.lines;o++){let r=n.line(o);if(!i(r.text)&&/^#{1,6}\s/.test(r.text)){if(a===t.index){e.dispatch({selection:T.cursor(r.from),effects:M.scrollIntoView(r.from,{y:`start`})}),e.focus();return}a++}}}function Le(e,t){requestAnimationFrame(()=>{let n=e.state.doc,r=Math.min(t.offset,n.length);e.dispatch({selection:T.cursor(r),effects:M.scrollIntoView(r,{y:`center`})}),e.focus()})}function Re(e){let t=e.state.selection.main;return t.empty?``:e.state.sliceDoc(t.from,t.to)}function ze(e){let t=(0,he.c)(39),{docName:n,ytext:r,provider:i,placeholder:o,isSourceModeActive:f}=e,m=(0,F.useRef)(null),h=(0,F.useRef)(null),g;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(g=new j,t[0]=g):g=t[0];let _=(0,F.useRef)(g),v;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(v=new j,t[1]=v):v=t[1];let y=(0,F.useRef)(v),b;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(b=new j,t[2]=b):b=t[2];let x=(0,F.useRef)(b),[S,C]=(0,F.useState)(null);if(S)throw S;let{resolvedTheme:w}=ne(),{merged:ie}=ee(),{openSelection:T}=fe(),E=(0,F.useRef)(T),D=(0,F.useRef)(f),O=ie?.editor?.wordWrap??!0,k,A;t[3]===T?(k=t[4],A=t[5]):(k=()=>{E.current=T},A=[T],t[3]=T,t[4]=k,t[5]=A),(0,F.useEffect)(k,A);let N,P;t[6]===f?(N=t[7],P=t[8]):(N=()=>{D.current=f},P=[f],t[6]=f,t[7]=N,t[8]=P),(0,F.useEffect)(N,P);let I=(0,F.useRef)(null),L;t[9]!==o||t[10]!==i||t[11]!==w||t[12]!==O||t[13]!==r?(L=()=>{let e=m.current;if(!e)return;let t=i.configuration.name??``,n,c=Ve;try{n=a({docName:t,container:e,sizeStats:{viewCount:0,bytes:r.length},factory:e=>{let n=null,a=d({ydoc:i.document,ytext:r}),l=new M({state:ae.create({doc:r.toString(),extensions:[me,se.of([p]),_e(r,i.awareness),...s({themeCompartment:_.current,resolvedTheme:w,ydoc:i.document,wordWrapCompartment:x.current,wordWrap:O}),Ne(),a,M.updateListener.of(e=>{!e.selectionSet&&!e.docChanged||(n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,ue(t,`source`,ce(e.view))},120))}),M.domEventHandlers({keydown:(e,n)=>!D.current||!te()||!re(e,`edit-with-ai`)?!1:(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),E.current({docName:t,instruction:``,selectionMarkdown:Re(n)}),!0)}),y.current.of(oe(o??``)),M.theme({"&":{height:`100%`}}),M.scrollMargins.of(Be)]}),parent:e});ue(t,`source`,ce(l));let u=l.contentDOM;return u.addEventListener(`keydown`,c),u.addEventListener(`paste`,c),u.addEventListener(`drop`,c),u.addEventListener(`cut`,c),{view:l,ydoc:i.document,ytext:r,provider:i}}}),I.current=n,h.current=n.view}catch(e){let t=e;console.error(`[SourceEditor] mountCmEditor failed`,t),I.current=null,h.current=null,C(t instanceof Error?t:Error(String(t)))}return()=>{let e=I.current;e&&l(e),I.current=null,h.current=null}},t[9]=o,t[10]=i,t[11]=w,t[12]=O,t[13]=r,t[14]=L):L=t[14];let R;t[15]!==i||t[16]!==r?(R=[r,i],t[15]=i,t[16]=r,t[17]=R):R=t[17],(0,F.useEffect)(L,R);let z,B;t[18]===n?(z=t[19],B=t[20]):(z=()=>{},B=[n],t[18]=n,t[19]=z,t[20]=B),(0,F.useEffect)(z,B);let V,H;t[21]===w?(V=t[22],H=t[23]):(V=()=>{h.current&&h.current.dispatch({effects:_.current.reconfigure(w===`dark`?c:u)})},H=[w],t[21]=w,t[22]=V,t[23]=H),(0,F.useEffect)(V,H);let U,W;t[24]===O?(U=t[25],W=t[26]):(U=()=>{h.current&&h.current.dispatch({effects:x.current.reconfigure(O?M.lineWrapping:[])})},W=[O],t[24]=O,t[25]=U,t[26]=W),(0,F.useEffect)(U,W);let G,K;t[27]===o?(G=t[28],K=t[29]):(G=()=>{h.current&&h.current.dispatch({effects:y.current.reconfigure(oe(o??``))})},K=[o],t[27]=o,t[28]=G,t[29]=K),(0,F.useEffect)(G,K);let q,J;t[30]!==n||t[31]!==f?(q=()=>{let e=function(e){let t=e.detail;if(!t||t.mode!==`source`||!f)return;let r=h.current;r&&(Ie(r,t),pe(n))};return window.addEventListener(le,e),()=>window.removeEventListener(le,e)},J=[n,f],t[30]=n,t[31]=f,t[32]=q,t[33]=J):(q=t[32],J=t[33]),(0,F.useEffect)(q,J);let Y,X;t[34]!==n||t[35]!==f?(Y=()=>{if(!f)return;let e=h.current;if(!e)return;let t=de(n);if(t){if(t.kind===`outline`){Ie(e,t.detail);return}Le(e,t.detail)}},X=[n,f],t[34]=n,t[35]=f,t[36]=Y,t[37]=X):(Y=t[36],X=t[37]),(0,F.useEffect)(Y,X);let Z;return t[38]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,Pe.jsx)(`div`,{ref:m,className:`source-editor h-full pb-3`}),t[38]=Z):Z=t[38],Z}function Be(){return{top:Fe}}function Ve(){return o()}export{ze as SourceEditor};