import{Fn as e,It as t,a as n}from"./BAtoIVDZ.js";import{fr as r}from"./Dlh4etSR.js";import{c as i}from"./CvyGoXcM.js";import{n as a}from"./Q_pr_1vb.js";import{ar as o,i as s,ir as c}from"./BBfPXLF9.js";import{t as l}from"./B4qlaeWC.js";import{$ as u}from"./CmxfhdyD.js";var d=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},f=function(e,t){return function(n,r){t(n,r,e)}},p=class extends l{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f){super(e,{...r.getRawOptions(),overflowWidgetsDomNode:r.getOverflowWidgetsDomNode()},n,i,a,o,s,c,l,u,d,f),this._parentEditor=r,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(r.onDidChangeConfiguration(e=>this._onParentConfigurationChanged(e)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){c(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};p=d([f(4,i),f(5,r),f(6,e),f(7,t),f(8,n),f(9,s),f(10,u),f(11,o),f(12,a)],p);function m(e){let t=e.get(r).getFocusedCodeEditor();return t instanceof p?t.getParentEditor():t}export{m as n,p as t};