1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1502],{80173:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),c=(0,o.default)([(0,i.jsx)("path",{d:"M11 11h5v5h-5zm-7 0h5v5H4zm0-7h12v5H4z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M20 6v14H6v2h14c1.1 0 2-.9 2-2V6h-2z"},"1"),(0,i.jsx)("path",{d:"M18 16V4c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zM4 4h12v5H4V4zm5 12H4v-5h5v5zm2-5h5v5h-5v-5z"},"2")],"BackupTableTwoTone");t.Z=c},66022:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),c=(0,o.default)([(0,i.jsx)("path",{d:"M9 4h9v12H9z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M18 2H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H9V4h9v12zM3 15v-2h2v2H3zm0-5.5h2v2H3v-2zM10 20h2v2h-2v-2zm-7-1.5v-2h2v2H3zM5 22c-1.1 0-2-.9-2-2h2v2zm3.5 0h-2v-2h2v2zm5 0v-2h2c0 1.1-.9 2-2 2zM5 6v2H3c0-1.1.9-2 2-2z"},"1")],"CopyAllTwoTone");t.Z=c},29277:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),c=(0,o.default)([(0,i.jsx)("path",{d:"M16 9H8v10h8V9zm-.47 7.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M14.12 10.47 12 12.59l-2.13-2.12-1.41 1.41L10.59 14l-2.12 2.12 1.41 1.41L12 15.41l2.12 2.12 1.41-1.41L13.41 14l2.12-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9z"},"1")],"DeleteForeverTwoTone");t.Z=c},63749:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),c=(0,o.default)([(0,i.jsx)("path",{d:"M12.06 10.02 5 17.08V18h.92l7.06-7.06z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"m15 16-4 4h10v-4zm-2.94-8.81L3 16.25V20h3.75l9.06-9.06-3.75-3.75zM5.92 18H5v-.92l7.06-7.06.92.92L5.92 18zm12.79-9.96c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83z"},"1")],"DriveFileRenameOutlineTwoTone");t.Z=c},63845:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),c=(0,o.default)((0,i.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}),"LockOutlined");t.Z=c},74458:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),c=(0,o.default)((0,i.jsx)("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"}),"StorageTwoTone");t.Z=c},17621:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),c=(0,o.default)([(0,i.jsx)("path",{d:"M19 9v2H9V9h10zm-6 6v-2h2v2h-2zm2 2v2h-2v-2h2zm-4-2H9v-2h2v2zm6-2h2v2h-2v-2zm-8 4h2v2H9v-2zm8 2v-2h2v2h-2z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M19 7H9c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm0 2v2H9V9h10zm-6 6v-2h2v2h-2zm2 2v2h-2v-2h2zm-4-2H9v-2h2v2zm6-2h2v2h-2v-2zm-8 4h2v2H9v-2zm8 2v-2h2v2h-2zM6 17H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2v1h-2V5H5v10h1v2z"},"1")],"TableViewTwoTone");t.Z=c},52652:function(e,t,r){const n=r(66675),{mergeAttributesWithElements:o}=r(88372);e.exports=(e,t={})=>{const r=o(e);return n(r,t)}},66675:function(e){e.exports=(e,t={})=>{const r=t.char||" ",n=t.count||2;let o=0;const i=[];return e.reverse().reduce(((e,t)=>{i.length&&o&&i[o]&&i[o]===t.substring(1,i[o].length+1)&&(i.splice(o,1),o--);const c=[`${r.repeat(o?o*n:0)}${t}`,...e];return"</"===t.substring(0,2)&&(o++,i[o]=t.substring(2,t.length-1)),c}),[]).join("\n")}},88372:function(e){const t=e=>e.trim().replace(/(^(\s|\t)+|(( |\t)+)$)/gm,"");e.exports={mergeAttributesWithElements:e=>{const r=t(e).split("\n"),n=[];let o="";for(let t=0;t<r.length;t+=1){const e=r[t];e.endsWith("/>")?(n.push(`${o}${e.slice(0,-2)} />`),o=""):e.endsWith(">")?(n.push(`${o}${e.startsWith(">")||e.startsWith("<")?"":" "}${e}`),o=""):o+=o.length?` ${e}`:e}return n},removeEmptyLines:t}},64998:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(45711).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},31571:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(45711).Z)("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]])},31325:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(45711).Z)("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},63764:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}function d(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.apply(r,[].concat(o,n))}}}function h(e){return{}.toString.call(e).includes("Object")}function v(e){return"function"===typeof e}var p=d((function(e,t){throw new Error(e[t]||e.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),g={changes:function(e,t){return h(t)||p("changeType"),Object.keys(t).some((function(t){return r=e,n=t,!Object.prototype.hasOwnProperty.call(r,n);var r,n}))&&p("changeField"),t},selector:function(e){v(e)||p("selectorType")},handler:function(e){v(e)||h(e)||p("handlerType"),h(e)&&Object.values(e).some((function(e){return!v(e)}))&&p("handlersType")},initial:function(e){var t;e||p("initialIsRequired"),h(e)||p("initialType"),t=e,Object.keys(t).length||p("initialContent")}};function m(e,t){return v(t)?t(e.current):t}function y(e,t){return e.current=s(s({},e.current),t),t}function b(e,t,r){return v(t)?t(e.current):Object.keys(r).forEach((function(r){var n;return null===(n=t[r])||void 0===n?void 0:n.call(t,e.current[r])})),r}var w={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};g.initial(e),g.handler(t);var r={current:e},n=d(b)(r,t),o=d(y)(r),i=d(g.changes)(e),c=d(m)(r);function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return g.selector(e),e(r.current)}function a(e){f(n,o,i,c)(e)}return[u,a]}},M=w,j={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};var O=function(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.apply(r,[].concat(o,n))}}};var z=function(e){return{}.toString.call(e).includes("Object")};var E={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},k=O((function(e,t){throw new Error(e[t]||e.default)}))(E),H={config:function(e){return e||k("configIsRequired"),z(e)||k("configType"),e.urls?(console.warn(E.deprecation),{paths:{vs:e.urls.monacoBase}}):e}},V=H,x=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}};var P=function e(t,r){return Object.keys(r).forEach((function(n){r[n]instanceof Object&&t[n]&&Object.assign(r[n],e(t[n],r[n]))})),i(i({},t),r)},T={type:"cancelation",msg:"operation is manually canceled"};var R,S,L=function(e){var t=!1,r=new Promise((function(r,n){e.then((function(e){return t?n(T):r(e)})),e.catch(n)}));return r.cancel=function(){return t=!0},r},C=M.create({config:j,isInitialized:!1,resolve:null,reject:null,monaco:null}),Z=(S=2,function(e){if(Array.isArray(e))return e}(R=C)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(a){o=!0,i=a}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(R,S)||function(e,t){if(e){if("string"===typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(R,S)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),A=Z[0],I=Z[1];function D(e){return document.body.appendChild(e)}function $(e){var t=A((function(e){return{config:e.config,reject:e.reject}})),r=function(e){var t=document.createElement("script");return e&&(t.src=e),t}("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function _(){var e=A((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){q(t),e.resolve(t)}),(function(t){e.reject(t)}))}function q(e){A().monaco||I({monaco:e})}var N=new Promise((function(e,t){return I({resolve:e,reject:t})})),W={config:function(e){var t=V.config(e),r=t.monaco,n=c(t,["monaco"]);I((function(e){return{config:P(e.config,n),monaco:r}}))},init:function(){var e=A((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(I({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),L(N);if(window.monaco&&window.monaco.editor)return q(window.monaco),e.resolve(window.monaco),L(N);x(D,$)(_)}return L(N)},__getMonacoInstance:function(){return A((function(e){return e.monaco}))}},F=W,U=r(67294),B={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Y={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}};var G=function({children:e}){return U.createElement("div",{style:Y.container},e)};var J=function({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:c}){return U.createElement("section",{style:{...B.wrapper,width:e,height:t},...c},!r&&U.createElement(G,null,n),U.createElement("div",{ref:o,style:{...B.fullWidth,...!r&&B.hide},className:i}))},K=(0,U.memo)(J);var Q=function(e){(0,U.useEffect)(e,[])};var X=function(e,t,r=!0){let n=(0,U.useRef)(!0);(0,U.useEffect)(n.current||!r?()=>{n.current=!1}:e,t)};function ee(){}function te(e,t,r,n){return function(e,t){return e.editor.getModel(re(e,t))}(e,n)||function(e,t,r,n){return e.editor.createModel(t,r,n?re(e,n):void 0)}(e,t,r,n)}function re(e,t){return e.Uri.parse(t)}var ne=function({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:c,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:a=!1,theme:l="light",loading:s="Loading...",options:f={},height:d="100%",width:h="100%",className:v,wrapperProps:p={},beforeMount:g=ee,onMount:m=ee}){let[y,b]=(0,U.useState)(!1),[w,M]=(0,U.useState)(!0),j=(0,U.useRef)(null),O=(0,U.useRef)(null),z=(0,U.useRef)(null),E=(0,U.useRef)(m),k=(0,U.useRef)(g),H=(0,U.useRef)(!1);Q((()=>{let e=F.init();return e.then((e=>(O.current=e)&&M(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>j.current?function(){let e=j.current?.getModel();u||e?.original?.dispose(),a||e?.modified?.dispose(),j.current?.dispose()}():e.cancel()})),X((()=>{if(j.current&&O.current){let t=j.current.getOriginalEditor(),o=te(O.current,e||"",n||r||"text",i||"");o!==t.getModel()&&t.setModel(o)}}),[i],y),X((()=>{if(j.current&&O.current){let e=j.current.getModifiedEditor(),n=te(O.current,t||"",o||r||"text",c||"");n!==e.getModel()&&e.setModel(n)}}),[c],y),X((()=>{let e=j.current.getModifiedEditor();e.getOption(O.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())}),[t],y),X((()=>{j.current?.getModel()?.original.setValue(e||"")}),[e],y),X((()=>{let{original:e,modified:t}=j.current.getModel();O.current.editor.setModelLanguage(e,n||r||"text"),O.current.editor.setModelLanguage(t,o||r||"text")}),[r,n,o],y),X((()=>{O.current?.editor.setTheme(l)}),[l],y),X((()=>{j.current?.updateOptions(f)}),[f],y);let V=(0,U.useCallback)((()=>{if(!O.current)return;k.current(O.current);let u=te(O.current,e||"",n||r||"text",i||""),a=te(O.current,t||"",o||r||"text",c||"");j.current?.setModel({original:u,modified:a})}),[r,t,o,e,n,i,c]),x=(0,U.useCallback)((()=>{!H.current&&z.current&&(j.current=O.current.editor.createDiffEditor(z.current,{automaticLayout:!0,...f}),V(),O.current?.editor.setTheme(l),b(!0),H.current=!0)}),[f,l,V]);return(0,U.useEffect)((()=>{y&&E.current(j.current,O.current)}),[y]),(0,U.useEffect)((()=>{!w&&!y&&x()}),[w,y,x]),U.createElement(K,{width:h,height:d,isEditorReady:y,loading:s,_ref:z,className:v,wrapperProps:p})};(0,U.memo)(ne);var oe=function(e){let t=(0,U.useRef)();return(0,U.useEffect)((()=>{t.current=e}),[e]),t.current},ie=new Map;var ce=function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:c="light",line:u,loading:a="Loading...",options:l={},overrideServices:s={},saveViewState:f=!0,keepCurrentModel:d=!1,width:h="100%",height:v="100%",className:p,wrapperProps:g={},beforeMount:m=ee,onMount:y=ee,onChange:b,onValidate:w=ee}){let[M,j]=(0,U.useState)(!1),[O,z]=(0,U.useState)(!0),E=(0,U.useRef)(null),k=(0,U.useRef)(null),H=(0,U.useRef)(null),V=(0,U.useRef)(y),x=(0,U.useRef)(m),P=(0,U.useRef)(),T=(0,U.useRef)(n),R=oe(i),S=(0,U.useRef)(!1),L=(0,U.useRef)(!1);Q((()=>{let e=F.init();return e.then((e=>(E.current=e)&&z(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>k.current?(P.current?.dispose(),d?f&&ie.set(i,k.current.saveViewState()):k.current.getModel()?.dispose(),void k.current.dispose()):e.cancel()})),X((()=>{let c=te(E.current,e||n||"",t||o||"",i||r||"");c!==k.current?.getModel()&&(f&&ie.set(R,k.current?.saveViewState()),k.current?.setModel(c),f&&k.current?.restoreViewState(ie.get(i)))}),[i],M),X((()=>{k.current?.updateOptions(l)}),[l],M),X((()=>{!k.current||void 0===n||(k.current.getOption(E.current.editor.EditorOption.readOnly)?k.current.setValue(n):n!==k.current.getValue()&&(L.current=!0,k.current.executeEdits("",[{range:k.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),k.current.pushUndoStop(),L.current=!1))}),[n],M),X((()=>{let e=k.current?.getModel();e&&o&&E.current?.editor.setModelLanguage(e,o)}),[o],M),X((()=>{void 0!==u&&k.current?.revealLine(u)}),[u],M),X((()=>{E.current?.editor.setTheme(c)}),[c],M);let C=(0,U.useCallback)((()=>{if(H.current&&E.current&&!S.current){x.current(E.current);let a=i||r,d=te(E.current,n||e||"",t||o||"",a||"");k.current=E.current?.editor.create(H.current,{model:d,automaticLayout:!0,...l},s),f&&k.current.restoreViewState(ie.get(a)),E.current.editor.setTheme(c),void 0!==u&&k.current.revealLine(u),j(!0),S.current=!0}}),[e,t,r,n,o,i,l,s,f,c,u]);return(0,U.useEffect)((()=>{M&&V.current(k.current,E.current)}),[M]),(0,U.useEffect)((()=>{!O&&!M&&C()}),[O,M,C]),T.current=n,(0,U.useEffect)((()=>{M&&b&&(P.current?.dispose(),P.current=k.current?.onDidChangeModelContent((e=>{L.current||b(k.current.getValue(),e)})))}),[M,b]),(0,U.useEffect)((()=>{if(M){let e=E.current.editor.onDidChangeMarkers((e=>{let t=k.current.getModel()?.uri;if(t&&e.find((e=>e.path===t.path))){let e=E.current.editor.getModelMarkers({resource:t});w?.(e)}}));return()=>{e?.dispose()}}return()=>{}}),[M,w]),U.createElement(K,{width:h,height:v,isEditorReady:M,loading:a,_ref:H,className:p,wrapperProps:g})};(0,U.memo)(ce)}}]); |