????

Your IP : 18.191.251.36


Current Path : C:/inetpub/vhost/dbadm.gdtsolutions.vn/web/js/
Upload File :
Current File : C:/inetpub/vhost/dbadm.gdtsolutions.vn/web/js/core-connections-55a962b9106d0b2fadda.js

/*! For license information please see ../license.txt */
"use strict";(self.webpackChunk_cloudbeaver_product_default=self.webpackChunk_cloudbeaver_product_default||[]).push([[89814],{927:(e,t,n)=>{n.r(t),n.d(t,{ConnectionDialectResource:()=>l});var o=n(1118),i=n(5576),c=n(86764),r=n(62151),s=n(40813),a=n(7278),d=n(85213),u=n(83336),h=n(49690);let l=class ConnectionDialectResource extends s.nG{constructor(e,t,n){super(),this.graphQLService=e,this.projectsService=t,this.sync(n),this.aliases.add(h.ConnectionInfoProjectKey,(e=>(0,a.OU)(n.keys.filter((t=>e.options.projectIds.includes(t.projectId)))))),this.aliases.add(h.ConnectionInfoActiveProjectKey,(()=>(0,a.OU)(n.keys.filter((e=>t.activeProjects.some((({id:t})=>t===e.projectId))))))),this.aliases.replace(s.fZ,(()=>(0,a.OU)(n.keys))),this.before(c.a.interrupter((e=>!n.isConnected(e))))}async formatScript(e,t){return(await this.graphQLService.sdk.formatSqlQuery({projectId:e.projectId,connectionId:e.connectionId,contextId:e.id,query:t})).query}async loader(e,t){const n=[],o=d.F.toList(this.aliases.transformToKey(e));for(const e of o){const{dialect:o}=await this.graphQLService.sdk.querySqlDialectInfo({...e,...this.getIncludesMap(e,t)});if(!o)throw new Error("Dialect not found");n.push(o)}return this.set(o,n),this.data}isKeyEqual(e,t){return(0,h.isConnectionInfoParamEqual)(e,t)}validateKey(e){return"object"==typeof e&&"string"==typeof e.projectId&&["string"].includes(typeof e.connectionId)}};l=(0,o.Cg)([(0,i._)(),(0,o.Sn)("design:paramtypes",[u.GraphQLService,r.ProjectsService,h.ConnectionInfoResource])],l)},30606:(e,t,n)=>{n.r(t),n.d(t,{ConnectionExecutionContextProjectKey:()=>v,ConnectionExecutionContextResource:()=>g,NOT_INITIALIZED_CONTEXT_ID:()=>C,getContextBaseId:()=>getContextBaseId,getRealExecutionContextId:()=>getRealExecutionContextId});var o=n(1118),i=n(94866),c=n(11130),r=n(56078),s=n(5576),a=n(29816),d=n(40813),u=n(7278),h=n(85213),l=n(57985),p=n(83336),I=n(99294),f=n(49690);const v=(0,a.IW)("@connection-folder/project",(e=>({projectId:e}))),C="-1";let g=class ConnectionExecutionContextResource extends d.nG{constructor(e,t,n,o){super(),this.graphQLService=e,this.connectionInfoResource=t,this.sync(t,(()=>f.ConnectionInfoActiveProjectKey),(()=>d.fZ)),this.aliases.add(v,(e=>(0,u.OU)(Array.from(this.data.entries()).filter((([t,n])=>n.projectId===e.options.projectId)).map((([e])=>e))))),o.requireAuthentication(this),n.onUserChange.addHandler((()=>{this.clear()})),t.onItemUpdate.addHandler(this.updateConnectionContexts.bind(this)),t.onItemDelete.addHandler(this.deleteConnectionContexts.bind(this)),(0,i.Gn)(this,{updateConnectionContexts:i.XI,deleteConnectionContexts:i.XI})}async create(e,t,n){const o=getContextBaseId(e,"");return await this.performUpdate(o,[],(async()=>{const{context:c}=await this.graphQLService.sdk.executionContextCreate({...e,defaultCatalog:t,defaultSchema:n}),r=getBaseContext(c);(0,i.h5)((()=>{this.set(r.id,r),this.markOutdated()}));const s=this.get(r.id);return this.onDataOutdated.execute(o),s}))}async update(e,t,n){const o=this.get(e);if(!o)throw new Error("Execution context not found");return await this.performUpdate(e,[],(async()=>{await this.graphQLService.sdk.executionContextUpdate({contextId:o.id,connectionId:o.connectionId,projectId:o.projectId,defaultCatalog:t,defaultSchema:n}),o.defaultCatalog=t,o.defaultSchema=n,this.onDataOutdated.execute(e)})),this.markOutdated(),o}async destroy(e){await this.performUpdate(e,[],(async()=>{const t=this.get(e);t&&(await this.graphQLService.sdk.executionContextDestroy({contextId:t.id,connectionId:t.connectionId,projectId:t.projectId}),this.delete(e))})),(0,i.h5)((()=>{this.markOutdated()}))}async loader(e){const t=[];let n;const o=this.aliases.isAlias(e,d.fZ),c=this.aliases.isAlias(e,v);return c&&(n=c.options.projectId),await h.F.forEachAsync(e,(async e=>{let o,i;if(!(0,l.l)(e)){const t=this.get(e);o=e,n=t?.projectId,i=t?.connectionId}const{contexts:c}=await this.graphQLService.sdk.executionContextList({projectId:n,connectionId:i,contextId:o});t.push(...c)})),(0,i.h5)((()=>{const e=(0,u.OU)(t.map((e=>e.id)));o?this.replace(e,t.map(getBaseContext)):this.set(e,t.map(getBaseContext))})),this.data}updateConnectionContexts(e){this.delete((0,u.OU)((0,I.C)(h.F.map(e,(e=>this.values.filter((t=>{const n=this.connectionInfoResource.get(e);return t.connectionId===e.connectionId&&t.projectId===e.projectId&&!n?.connected}))))).map((e=>e.id))))}deleteConnectionContexts(e){this.delete((0,u.OU)((0,I.C)(h.F.map(e,(e=>this.values.filter((t=>t.connectionId===e.connectionId&&t.projectId===e.projectId))))).map((e=>e.id))))}dataSet(e,t){const n=this.dataGet(e);super.dataSet(e,{...n,...t})}validateKey(e){return"string"==typeof e}};function getBaseContext(e){return{...e}}function getContextBaseId(e,t){return`${e.connectionId}:${t}`}function getRealExecutionContextId(e){return e===C?null:e??null}g=(0,o.Cg)([(0,s._)(),(0,o.Sn)("design:paramtypes",[p.GraphQLService,f.ConnectionInfoResource,c.UserInfoResource,r.AppAuthService])],g)},13225:(e,t,n)=>{n.r(t),n.d(t,{ConnectionExecutionContextService:()=>p});var o=n(1118),i=n(5576),c=n(23288),r=n(85213),s=n(40813),a=n(45764),d=n(83336),u=n(31324),h=n(94866);class ConnectionExecutionContext{get context(){return this.connectionExecutionContextResource.get(this.contextId)}get executing(){return this.scheduler.isExecuting(this.contextId)}get cancellable(){return this.currentTask?.cancellable||!1}get autoCommit(){if(this.context)return this.context.autoCommit}constructor(e,t,n,o,i){this.contextId=e,this.scheduler=t,this.connectionExecutionContextResource=n,this.asyncTaskInfoService=o,this.graphQLService=i,this.currentTask=null,(0,h.Gn)(this,{currentTask:h.sH.ref,context:h.EW,executing:h.EW,cancellable:h.EW,autoCommit:h.EW})}run(e,t,n){if(!this.context)throw new Error("Execution Context not found");return this.currentTask=this.scheduler.schedule(this.contextId,e,{cancel:t}).finally(n).finally((()=>{this.currentTask=null})),this.currentTask}async cancel(){await this.scheduler.cancel(this.contextId)}async destroy(){this.context&&(await this.cancel(),await this.connectionExecutionContextResource.destroy(this.contextId))}async update(e,t){if(!this.context)throw new Error("Execution Context not found");return await this.connectionExecutionContextResource.update(this.contextId,e,t)}async setAutoCommit(e){return mapAsyncTaskInfo(await this.withContext((async t=>{const n=this.asyncTaskInfoService.create((async()=>{const{taskInfo:n}=await this.graphQLService.sdk.asyncSqlSetAutoCommit({projectId:t.projectId,connectionId:t.connectionId,contextId:t.id,autoCommit:e});return n}));return await this.run((async()=>await this.asyncTaskInfoService.run(n)),(()=>this.asyncTaskInfoService.cancel(n.id)),(()=>this.asyncTaskInfoService.remove(n.id)))})))}async commit(){return mapAsyncTaskInfo(await this.withContext((async e=>{const t=this.asyncTaskInfoService.create((async()=>{const{taskInfo:t}=await this.graphQLService.sdk.asyncSqlCommitTransaction({projectId:e.projectId,connectionId:e.connectionId,contextId:e.id});return t}));return await this.run((async()=>await this.asyncTaskInfoService.run(t)),(()=>this.asyncTaskInfoService.cancel(t.id)),(()=>this.asyncTaskInfoService.remove(t.id)))})))}async rollback(){return mapAsyncTaskInfo(await this.withContext((async e=>{const t=this.asyncTaskInfoService.create((async()=>{const{taskInfo:t}=await this.graphQLService.sdk.asyncSqlRollbackTransaction({projectId:e.projectId,connectionId:e.connectionId,contextId:e.id});return t}));return await this.run((async()=>await this.asyncTaskInfoService.run(t)),(()=>this.asyncTaskInfoService.cancel(t.id)),(()=>this.asyncTaskInfoService.remove(t.id)))})))}withContext(e){if(!this.context)throw new Error("Execution Context not found");return e(this.context)}}function mapAsyncTaskInfo(e){return{name:e.name,result:e.taskResult}}var l=n(30606);let p=class ConnectionExecutionContextService{constructor(e,t,n){this.connectionExecutionContextResource=e,this.asyncTaskInfoService=t,this.GraphQLService=n,this.contexts=new u.C((e=>new ConnectionExecutionContext(e,this.scheduler,this.connectionExecutionContextResource,this.asyncTaskInfoService,this.GraphQLService))),this.scheduler=new c.r(((e,t)=>e===t)),this.connectionExecutionContextResource.onItemDelete.addHandler((e=>r.F.forEach(e,(e=>this.contexts.delete(e)))))}get(e){if(this.connectionExecutionContextResource.has(e))return this.contexts.get(e)}async load(){await this.connectionExecutionContextResource.load(s.fZ)}async create(e,t,n){const o=await this.connectionExecutionContextResource.create(e,t,n);return this.contexts.get(o.id)}};p=(0,o.Cg)([(0,i._)(),(0,o.Sn)("design:paramtypes",[l.ConnectionExecutionContextResource,a.AsyncTaskInfoService,d.GraphQLService])],p)},90409:(e,t,n)=>{n.r(t),n.d(t,{ConnectionFolderEventHandler:()=>a});var o=n(1118),i=n(5576),c=n(21335),r=n(43974),s=n(60018);let a=class ConnectionFolderEventHandler extends c._{constructor(e){super(r.nKA.CbDatasourceFolder,e)}map(e){return e}};a=(0,o.Cg)([(0,i._)(),(0,o.Sn)("design:paramtypes",[s.SessionEventSource])],a)},49845:(e,t,n)=>{n.r(t),n.d(t,{CONNECTION_FOLDER_NAME_VALIDATION:()=>v,ConnectionFolderProjectKey:()=>C,ConnectionFolderResource:()=>g});var o=n(1118),i=n(94866),c=n(56078),r=n(5576),s=n(29816),a=n(40813),d=n(7278),u=n(85213),h=n(57985),l=n(98076),p=n(83336),I=n(98940),f=n(78683);const v=/^(?!\.)[^\\/:\\"]+$/u,C=(0,s.IW)("@connection-folder/project",(e=>({projectId:e})));let g=class ConnectionFolderResource extends a.nG{constructor(e,t,n){super(),this.graphQLService=e,n.requireAuthentication(this),t.outdateResource(this),this.aliases.add(C,(e=>(0,d.OU)(this.keys.filter((t=>t.projectId===e.options.projectId))))),(0,i.Gn)(this,{create:i.XI})}async create(e,t,n){const{folder:o}=await this.graphQLService.sdk.createConnectionFolder({projectId:e,folderName:t,parentFolderPath:n}),i=(0,I.q)(e,o.id);return this.set(i,{...o,projectId:i.projectId}),this.get(i)}async deleteFolder(e){await this.performUpdate(e,[],(async()=>{await this.graphQLService.sdk.deleteConnectionFolder({projectId:e.projectId,folderPath:e.folderId}),this.delete(e),this.onDataOutdated.execute(e)}))}fromNodeId(e){const t=(0,f.p)(e);if(t)return this.get(t)}async loader(e){const t=this.aliases.isAlias(e,a.fZ),n=this.aliases.isAlias(e,C),o=[];let c,r;n&&(c=n.options.projectId),await u.F.forEachAsync(e,(async e=>{(0,h.l)(e)||(r=e.folderId,c=e.projectId);const{folders:t}=await this.graphQLService.sdk.getConnectionFolders({projectId:c,path:r});o.push(...t)}));const s=(0,d.OU)(o.map((e=>(0,I.q)(e.projectId,e.id))));return(0,i.h5)((()=>{if(t)this.replace(s,o);else{if(n){const e=this.keys.filter((e=>!o.some((t=>e.projectId===c&&e.folderId===t.id))));this.delete((0,d.OU)(e))}this.set(s,o)}})),this.data}isKeyEqual(e,t){return e.projectId===t.projectId&&e.folderId===t.folderId}validateKey(e){return"object"==typeof e&&"string"==typeof e.projectId&&["string"].includes(typeof e.folderId)}};g=(0,o.Cg)([(0,r._)(),(0,o.Sn)("design:paramtypes",[p.GraphQLService,l.SessionDataResource,c.AppAuthService])],g)},45353:(e,t,n)=>{n.r(t),n.d(t,{ConnectionInfoEventHandler:()=>a});var o=n(1118),i=n(5576),c=n(21335),r=n(43974),s=n(60018);let a=class ConnectionInfoEventHandler extends c._{constructor(e){super(r.nKA.CbDatasource,e)}map(e){return e}};a=(0,o.Cg)([(0,i._)(),(0,o.Sn)("design:paramtypes",[s.SessionEventSource])],a)},49690:(e,t,n)=>{n.r(t),n.d(t,{ConnectionInfoActiveProjectKey:()=>N,ConnectionInfoProjectKey:()=>R,ConnectionInfoResource:()=>k,DEFAULT_NAVIGATOR_VIEW_SETTINGS:()=>b,NEW_CONNECTION_SYMBOL:()=>P,compareConnectionsInfo:()=>compareConnectionsInfo,compareNewConnectionsInfo:()=>compareNewConnectionsInfo,createConnectionParam:()=>createConnectionParam,isConnectionInfoParamEqual:()=>isConnectionInfoParamEqual,isNewConnection:()=>isNewConnection,serializeConnectionParam:()=>serializeConnectionParam});var o=n(1118),i=n(94866),c=n(56078),r=n(11130),s=n(5576),a=n(44017),d=n(86764),u=n(62151),h=n(10392),l=n(94652),p=n(40813),I=n(7278),f=n(85213),v=n(57985),C=n(43974),g=n(912),m=n(98076),S=n(83336),y=n(51449),j=n(3065);const x=j.Ik({projectId:j.Yj(),connectionId:j.Yj()}).required().strict();var w=n(45353),D=n(74749);const P=Symbol("new-connection"),R=(0,l.g_)("@connection-info/projects",((...e)=>({projectIds:e}))),N=(0,l.El)("@connection-info/projects-active"),b={showOnlyEntities:!1,hideFolders:!1,hideVirtualModel:!1,hideSchemas:!1,mergeEntities:!1,showSystemObjects:!1,showUtilityObjects:!1};let k=class ConnectionInfoResource extends p.nG{constructor(e,t,n,o,c,r,s,u,h){super(),this.graphQLService=e,this.projectsService=t,this.projectInfoResource=n,this.dataSynchronizationService=o,this.onConnectionCreate=new a.H,this.onConnectionClose=new a.H,this.sessionUpdate=!1,this.nodeIdMap=new Map,this.aliases.add(R,(e=>(0,I.OU)(this.keys.filter((t=>e.options.projectIds.includes(t.projectId)))))),this.aliases.add(N,(()=>(0,I.OU)(this.keys.filter((e=>t.activeProjects.some((({id:t})=>t===e.projectId))))))),this.onItemDelete.addHandler(d.a.interrupter((()=>this.sessionUpdate))),this.onConnectionCreate.addHandler(d.a.interrupter((()=>this.sessionUpdate))),c.onItemDelete.addHandler((e=>{const t=this.values.filter((t=>t.driverId===e));this.delete((0,I.OU)(t.map((e=>createConnectionParam(e)))))})),h.onUserChange.addHandler((()=>{this.clear()})),s.requireAuthentication(this),this.sync(this.projectInfoResource,(()=>p.fZ),(()=>p.fZ)),this.projectsService.onActiveProjectChange.addHandler((e=>{"after"===e.type&&this.markOutdated(N)})),r.onDataOutdated.addHandler((()=>{this.sessionUpdate=!0,this.markOutdated()})),u.onEvent(C.OYz.CbDatasourceCreated,(async e=>{const t=await this.load(e);for(const e of t)this.onConnectionCreate.execute(e)}),(e=>(0,I.OU)(e.dataSourceIds.map((t=>({projectId:e.projectId,connectionId:t}))))),this),u.onEvent(C.OYz.CbDatasourceUpdated,(e=>{if(this.isConnected(e)){const t=this.get(e);this.dataSynchronizationService.requestSynchronization("connection",t.map((e=>e?.name)).join("\n")).then((t=>{t&&this.markOutdated(e)}))}else this.markOutdated(e)}),(e=>(0,I.OU)(e.dataSourceIds.map((t=>({projectId:e.projectId,connectionId:t}))))),this),u.onEvent(C.OYz.CbDatasourceDeleted,(e=>{const t=(0,I.OU)(e.dataSourceIds.map((t=>({projectId:e.projectId,connectionId:t}))));if(this.isConnected(t)){const e=this.get(t);this.dataSynchronizationService.requestSynchronization("connection",e.map((e=>e?.name)).join("\n")).then((e=>{e&&this.delete(t)}))}else this.delete(t)}),void 0,this),(0,i.Gn)(this,{nodeIdMap:i.sH,createFromTemplate:i.XI,create:i.XI,createFromNode:i.XI,add:i.XI})}isSessionUpdate(){return this.sessionUpdate}getEmptyConfig(){return{template:!1,saveCredentials:!1}}isConnected(e){return e=f.F.toList(this.aliases.transformToKey(e)),this.get(e).every((e=>e?.connected??!1))}getConnectionForNode(e){if(!e.startsWith("database://"))return;const t=e.indexOf("/",11),n=e.slice(0,t>-1?t:e.length),o=this.nodeIdMap.get(n);return o?this.get(o):void 0}async create(e,t){let n;t.connectionId&&(n=createConnectionParam(e,t.connectionId));const{connection:o}=await this.graphQLService.sdk.createConnection({projectId:e,config:t,...this.getDefaultIncludes(),...this.getIncludesMap(n)});return this.add(o,!0)}async searchDatabases(e){const{databases:t}=await this.graphQLService.sdk.searchDatabases({hosts:e});return t}async test(e,t){const{connection:n}=await this.graphQLService.sdk.testConnection({projectId:e,config:t});return n}async createFromNode(e,t,n){const{connection:o}=await this.graphQLService.sdk.createConnectionFromNode({projectId:e,nodePath:t,config:{name:n},...this.getDefaultIncludes(),...this.getIncludesMap()});return this.add(o)}async createFromTemplate(e,t,n){const{connection:o}=await this.graphQLService.sdk.createConnectionFromTemplate({projectId:e,templateId:t,connectionName:n,...this.getDefaultIncludes(),...this.getIncludesMap()});return this.add(o)}add(e,t=!1){const n=createConnectionParam(e),o=this.has(n),i={...e,[P]:t,timestamp:Date.now()};this.set(createConnectionParam(i),i);const c=this.get(n);return o||this.onConnectionCreate.execute(c),c}async loadAccessSubjects(e){return await this.performUpdate(e,[],(async()=>{const{subjects:t}=await this.graphQLService.sdk.getConnectionAccess({projectId:e.projectId,connectionId:e.connectionId});return this.onDataOutdated.execute(e),t}))}async addConnectionsAccess(e,t){await this.graphQLService.sdk.addConnectionsAccess({projectId:e.projectId,connectionIds:[e.connectionId],subjects:t})}async deleteConnectionsAccess(e,t){await this.graphQLService.sdk.deleteConnectionsAccess({projectId:e.projectId,connectionIds:[e.connectionId],subjects:t})}async init(e){const t={projectId:e.projectId,connectionId:e.connectionId};return await this.performUpdate(t,[],(async()=>{const{connection:n}=await this.graphQLService.sdk.initConnection({...e,...this.getDefaultIncludes(),...this.getIncludesMap(t)});this.set(createConnectionParam(n),n),this.onDataOutdated.execute(t)})),this.get(t)}async changeConnectionView(e,t){return await this.performUpdate(e,[],(async()=>{const n=this.get(e)?.navigatorSettings||b,{connection:o}=await this.graphQLService.sdk.setConnectionNavigatorSettings({connectionId:e.connectionId,projectId:e.projectId,settings:{...n,...t},...this.getDefaultIncludes(),...this.getIncludesMap(e)});this.set(createConnectionParam(o),o),this.onDataOutdated.execute(e)})),this.get(e)}async update(e,t){return await this.performUpdate(e,[],(async()=>{const{connection:n}=await this.graphQLService.sdk.updateConnection({projectId:e.projectId,config:t,...this.getDefaultIncludes(),...this.getIncludesMap(e)});this.set(createConnectionParam(n),n),this.onDataOutdated.execute(e)})),this.get(e)}async close(e){await this.performUpdate(e,[],(async()=>{const{connection:t}=await this.graphQLService.sdk.closeConnection({projectId:e.projectId,connectionId:e.connectionId,...this.getDefaultIncludes(),...this.getIncludesMap(e)});this.set(createConnectionParam(t),t),this.onDataOutdated.execute(e)}));const t=this.get(e);return this.onConnectionClose.execute(e),t}async deleteConnection(e){e=this.aliases.transformToKey(e),await f.F.forEachAsync(e,(async e=>{await this.performUpdate(e,[],(async()=>{await this.graphQLService.sdk.deleteConnection({projectId:e.projectId,connectionId:e.connectionId})})),this.delete(e)})),this.onDataOutdated.execute(e)}cleanNewFlags(){for(const e of this.data.values())e[P]=!1}isKeyEqual(e,t){return isConnectionInfoParamEqual(e,t)}async loader(e,t,n){const o=[],c=this.aliases.isAlias(e,R);let r,s,a=[];if(c&&(s=c.options.projectIds),this.aliases.isAlias(e,N)&&(s=this.projectsService.activeProjects.map((e=>e.id))),(0,v.l)(e)){const o=this.aliases.transformToKey(e),i=f.F.filter(o,(e=>this.isOutdated(e,t)));n||1!==i.length||(e=i[0])}return await f.F.forEachAsync(e,(async e=>{let n;(0,v.l)(e)||(r=e.projectId,n=e.connectionId);const{connections:i}=await this.graphQLService.sdk.getUserConnections({projectId:r,connectionId:n,projectIds:s,...this.getDefaultIncludes(),...this.getIncludesMap(e,t)});if(n&&!i.some((e=>e.id===n)))throw new Error(`Connection is not found (${n})`);o.push(...i)})),(0,i.h5)((()=>{(0,v.l)(e)&&(a=f.F.toList(this.aliases.transformToKey(e)).filter((e=>!o.some((t=>isConnectionInfoParamEqual(e,createConnectionParam(t))))))),this.delete((0,I.OU)(a));const t=(0,I.OU)(o.map(createConnectionParam));this.set(t,o)})),this.sessionUpdate=!1,this.data}dataSet(e,t){const n=this.dataGet(e);t.nodePath&&this.nodeIdMap.set(t.nodePath,e),super.dataSet(e,{...n,...t,networkHandlersConfig:t.networkHandlersConfig?.map((e=>({...n?.networkHandlersConfig?.find((t=>t.id===e.id)),...e})))})}dataDelete(e){const t=this.dataGet(e);t?.nodePath&&this.nodeIdMap.delete(t.nodePath),super.dataDelete(e)}resetDataToDefault(){super.resetDataToDefault(),this.nodeIdMap.clear()}getDefaultIncludes(){return{includeNetworkHandlersConfig:!1,customIncludeOriginDetails:!1,includeAuthProperties:!1,includeOrigin:!1,includeAuthNeeded:!1,includeCredentialsSaved:!1,includeProperties:!1,includeProviderProperties:!1,includeSharedSecrets:!1,customIncludeOptions:!1}}validateKey(e){const t=x.safeParse((0,i.HO)(e));return t.success||this.logger.warn(`Invalid resource key ${(0,y.yu)(t.error).toString(),{prefix:null}}`),t.success}};function isConnectionInfoParamEqual(e,t){return e.projectId===t.projectId&&e.connectionId===t.connectionId}function serializeConnectionParam(e){return`${e.projectId}:${e.connectionId}`}function isNewConnection(e){return e[P]}function compareConnectionsInfo(e,t){return e.name.localeCompare(t.name)}function compareNewConnectionsInfo(e,t){return isNewConnection(e)&&isNewConnection(t)?t.timestamp-e.timestamp:isNewConnection(t)?1:isNewConnection(e)?-1:0}function createConnectionParam(e,t){return"object"==typeof e&&(t=e.id,e=e.projectId),{projectId:e,connectionId:t}}k=(0,o.Cg)([(0,s._)(),(0,o.Sn)("design:paramtypes",[S.GraphQLService,u.ProjectsService,h.ProjectInfoResource,g.DataSynchronizationService,D.DBDriverResource,m.SessionDataResource,c.AppAuthService,w.ConnectionInfoEventHandler,r.UserInfoResource])],k)},69547:(e,t,n)=>{n.r(t),n.d(t,{ConnectionsLocaleService:()=>s});var o=n(1118),i=n(82103),c=n(5576),r=n(34227);let s=class ConnectionsLocaleService extends i.j{constructor(e){super(),this.localizationService=e}register(){this.localizationService.addProvider(this.provider.bind(this))}load(){}async provider(e){switch(e){case"ru":return(await Promise.all([n.e(92436),n.e(23953)]).then(n.bind(n,16084))).default;case"it":return(await Promise.all([n.e(32756),n.e(46334)]).then(n.bind(n,65636))).default;case"zh":return(await Promise.all([n.e(52041),n.e(79191)]).then(n.bind(n,5135))).default;case"fr":return(await Promise.all([n.e(29671),n.e(1572)]).then(n.bind(n,95861))).default;case"de":return(await Promise.all([n.e(57698),n.e(34429)]).then(n.bind(n,59782))).default;default:return(await Promise.all([n.e(41114),n.e(56810)]).then(n.bind(n,52634))).default}}};s=(0,o.Cg)([(0,c._)(),(0,o.Sn)("design:paramtypes",[r.LocalizationService])],s)},34906:(e,t,n)=>{n.r(t),n.d(t,{ConnectionsManagerService:()=>C});var o=n(1118),i=n(94866),c=n(3118),r=n(16851),s=n(5576),a=n(71635),d=n(14452),u=n(29606),h=n(86764),l=n(10392),p=n(62151),I=n(38387),f=n(49690),v=n(55190);let C=class ConnectionsManagerService{get projectConnections(){return this.connectionInfo.values.filter((e=>this.projectsService.activeProjects.some((t=>t.id===e.projectId))))}get createConnectionProjects(){return this.projectsService.activeProjects.filter((e=>e.canEditDataSources)).sort(l.projectInfoSortByName)}constructor(e,t,n,o,c){this.connectionInfo=e,this.containerContainers=t,this.notificationService=n,this.commonDialogService=o,this.projectsService=c,this.disconnecting=!1,this.connectionExecutor=new u.Q(null,((e,t)=>(0,f.isConnectionInfoParamEqual)(e.key,t.key))),this.onDisconnect=new u.Q,this.onDelete=new u.Q,this.connectionExecutor.addHandler((t=>e.load(t.key))),this.onDelete.before(this.onDisconnect),(0,i.Gn)(this,{projectConnections:(0,i.EW)({equals:I.x}),createConnectionProjects:(0,i.EW)({equals:I.x})})}async requireConnection(e,t){return(await this.connectionExecutor.execute({key:e,resetCredentials:t})).getContext(this.connectionContext).connection}addOpenedConnection(e){this.connectionInfo.add(e)}getObjectContainerById(e,t,n){if(t){const o=this.containerContainers.getCatalogData(e,t);if(!o)return;return n?o.schemaList.find((e=>e.name===n)):o.catalog}if(n)return this.containerContainers.getSchema(e,n)}async deleteConnection(e){const t=await this.connectionInfo.load(e);if(!t.canDelete)return;if(await this.commonDialogService.open(c.n,{title:"ui_data_delete_confirmation",message:`You're going to delete "${t.name}" connection. Are you sure?`,confirmActionText:"ui_delete"})===a.DialogueStateResult.Rejected)return;const n=await this.onDelete.execute({connections:[e],state:"before"});h.a.isInterrupted(n)||(await this.connectionInfo.deleteConnection(e),this.onDelete.execute({connections:[e],state:"after"}))}hasAnyConnection(e){return e?this.projectConnections.some((e=>e.connected)):!!this.projectConnections.length}connectionContext(){return{connection:null}}async _closeConnectionAsync(e){e.connected&&await this.connectionInfo.close((0,f.createConnectionParam)(e))}async closeAllConnections(){if(this.disconnecting)return;const e=this.projectConnections.map((e=>(0,f.createConnectionParam)(e))),t=await this.onDisconnect.execute({connections:e,state:"before"});if(h.a.isInterrupted(t))return;this.disconnecting=!0;const{controller:n,notification:o}=this.notificationService.processNotification((()=>r.N),{},{title:"Disconnecting..."});try{for(const e of this.projectConnections)await this._closeConnectionAsync(e),this.onDisconnect.execute({connections:[(0,f.createConnectionParam)(e)],state:"after"});o.close()}catch(e){n.reject(e)}finally{this.disconnecting=!1}}async closeConnectionAsync(e){const t=this.connectionInfo.get(e);if(!t||!t.connected)return;const n=await this.onDisconnect.execute({connections:[(0,f.createConnectionParam)(t)],state:"before"});if(h.a.isInterrupted(n))return;const{controller:o,notification:i}=this.notificationService.processNotification((()=>r.N),{},{title:"Disconnecting..."});try{await this._closeConnectionAsync(t),i.close(),this.onDisconnect.execute({connections:[(0,f.createConnectionParam)(t)],state:"after"})}catch(e){o.reject(e)}}async loadObjectContainer(e,t){return await this.containerContainers.load({projectId:e.projectId,connectionId:e.connectionId,catalogId:t}),this.containerContainers.get({projectId:e.projectId,connectionId:e.connectionId,catalogId:t})}};C=(0,o.Cg)([(0,s._)(),(0,o.Sn)("design:paramtypes",[f.ConnectionInfoResource,v.ContainerResource,d.NotificationService,a.CommonDialogService,p.ProjectsService])],C)},78686:(e,t,n)=>{n.r(t),n.d(t,{ConnectionsSettingsService:()=>h});var o=n(1118),i=n(63716),c=n(5576),r=n(83916),s=n(80625),a=n(3065),d=n(31038);const u=a.Ik({"core.connections.disabled":d.W.stringedBoolean().default(!1)});let h=class ConnectionsSettingsService extends i.O{get disabled(){return this.settings.getValue("core.connections.disabled")}constructor(e,t){super(),this.settingsProviderService=e,this.settingsManagerService=t,this.settings=this.settingsProviderService.createSettings(u),this.registerSettings()}registerSettings(){this.settingsManagerService.registerSettings(this.settings,(()=>[]))}};h=(0,o.Cg)([(0,c._)(),(0,o.Sn)("design:paramtypes",[r.SettingsProviderService,s.SettingsManagerService])],h)},55190:(e,t,n)=>{n.r(t),n.d(t,{ContainerResource:()=>I});var o=n(1118),i=n(56078),c=n(5576),r=n(86764),s=n(40813),a=n(57985),d=n(85213),u=n(7278),h=n(83336),l=n(23448),p=n(49690);let I=class ContainerResource extends s.nG{constructor(e,t,n){super(),this.graphQLService=e,this.connectionInfoResource=t,n.requireAuthentication(this),this.preloadResource(t,(()=>p.ConnectionInfoActiveProjectKey)),this.before(r.a.interrupter((e=>!(0,a.l)(e)&&!t.isConnected(d.F.mapKey(e,(e=>(0,p.createConnectionParam)(e.projectId,e.connectionId))))))),this.connectionInfoResource.onItemDelete.addHandler((e=>d.F.forEach(e,(e=>this.delete({projectId:e.projectId,connectionId:e.connectionId}))))),this.connectionInfoResource.onItemUpdate.addHandler((e=>d.F.forEach(e,(e=>{this.connectionInfoResource.get(e)?.connected||this.delete({projectId:e.projectId,connectionId:e.connectionId})})))),this.connectionInfoResource.onClear.addHandler((()=>this.clear()))}getSchema(e,t){const n=this.get(e);return n?.schemaList.find((e=>e.name===t))}getCatalogData(e,t){const n=this.get({...e,catalogId:t});return n?.catalogList.find((e=>e.catalog.name===t))}async loader(e){if((0,a.l)(e))throw new Error("Aliases not supported by this resource");const t=new Map;return await d.F.forEachAsync(e,(async e=>{const{projectId:n,connectionId:o,catalogId:i}=e,{navGetStructContainers:c}=await this.graphQLService.sdk.navGetStructContainers({projectId:n,connectionId:o,catalogId:i,withDetails:!1,withFilters:!1});t.set({projectId:n,connectionId:o,catalogId:i},{parentNode:c.parentNode??null,catalogList:c.catalogList,schemaList:c.schemaList,supportsCatalogChange:c.supportsCatalogChange,supportsSchemaChange:c.supportsSchemaChange,activeCatalog:i||void 0})})),this.set((0,u.OU)([...t.keys()]),[...t.values()]),this.data}isKeyEqual(e,t){return e.projectId===t.projectId&&e.connectionId===t.connectionId&&e.catalogId===t.catalogId}validateKey(e){return"object"==typeof e&&"string"==typeof e.projectId&&["string"].includes(typeof e.connectionId)&&(["string","undefined"].includes(typeof e.catalogId)||(0,l.kZ)(e.catalogId))}};I=(0,o.Cg)([(0,c._)(),(0,o.Sn)("design:paramtypes",[h.GraphQLService,p.ConnectionInfoResource,i.AppAuthService])],I)},74749:(e,t,n)=>{n.r(t),n.d(t,{DBDriverResource:()=>v,NEW_DRIVER_SYMBOL:()=>f,compareNewDrivers:()=>compareNewDrivers,getDBDriverDefaultAuthModelId:()=>getDBDriverDefaultAuthModelId,getDBDriverDefaultConfigurationType:()=>getDBDriverDefaultConfigurationType,getDBDriverDefaultServer:()=>getDBDriverDefaultServer,getDBDriverDefaultServerName:()=>getDBDriverDefaultServerName});var o=n(1118),i=n(94866),c=n(56078),r=n(5576),s=n(40813),a=n(85213),d=n(57985),u=n(7278),h=n(40601),l=n(83336),p=n(43974),I=n(38387);const f=Symbol("new-driver");let v=class DBDriverResource extends s.nG{get enabledDrivers(){return this.values.filter((e=>e.enabled)).sort(this.compare)}constructor(e,t,n){super(),this.serverConfigResource=e,this.graphQLService=t,n.requireAuthentication(this),this.sync(this.serverConfigResource,(()=>{}),(()=>s.fZ)),(0,i.Gn)(this,{enabledDrivers:(0,i.EW)({equals:I.x})})}compare(e,t){return e.promotedScore===t.promotedScore?(e.name||"").localeCompare(t.name||""):(t.promotedScore||0)-(e.promotedScore||0)}async loader(e,t){const n=[],o=this.aliases.isAlias(e,s.fZ);await a.F.forEachAsync(e,(async e=>{const i=(0,d.l)(e)?void 0:e,{drivers:c}=await this.graphQLService.sdk.driverList({driverId:i,...this.getDefaultIncludes(),...this.getIncludesMap(i,o?this.defaultIncludes:t)});if(i&&!c.some((e=>e.id===i)))throw new Error("Driver is not found");n.push(...c)}));const i=(0,u.OU)(n.map((e=>e.id)));return o?this.replace(i,n):this.set(i,n),this.data}async addDriverLibraries(e,t){await this.graphQLService.sdk.uploadDriverLibrary(e,t),await this.refresh(e)}dataSet(e,t){const n=this.dataGet(e);this.data.set(e,{...n,...t})}async refreshAll(){return this.resetIncludes(),await this.refresh(s.fZ),this.data}cleanNewFlags(){for(const e of this.data.values())e[f]=!1}getDefaultIncludes(){return{includeDriverLibraries:!1,includeDriverParameters:!1,includeDriverProperties:!1,includeProviderProperties:!1}}validateKey(e){return"string"==typeof e}};function isNewDriver(e){return e[f]}function compareNewDrivers(e,t){return isNewDriver(e)&&isNewDriver(t)?t.timestamp-e.timestamp:isNewDriver(t)?1:isNewDriver(e)?-1:0}function getDBDriverDefaultAuthModelId(e){return e?.defaultAuthModel||e?.applicableAuthModels[0]}function getDBDriverDefaultConfigurationType(e){return e?.configurationTypes[0]||p.dB5.Manual}function getDBDriverDefaultServerName(e){return e?.requiresServerName?"":void 0}function getDBDriverDefaultServer(e){return e?.defaultServer||"localhost"}v=(0,o.Cg)([(0,r._)(),(0,o.Sn)("design:paramtypes",[h.ServerConfigResource,l.GraphQLService,c.AppAuthService])],v)},91135:(e,t,n)=>{n.d(t,{A:()=>o});const o=(0,n(44745).M)("connection")},41684:(e,t,n)=>{n.r(t),n.d(t,{DatabaseAuthModelsResource:()=>d});var o=n(1118),i=n(5576),c=n(40813),r=n(7278),s=n(40601),a=n(83336);let d=class DatabaseAuthModelsResource extends c.nG{constructor(e,t){super(),this.graphQLService=e,this.sync(t,(()=>{}),(()=>c.fZ))}async loader(){const{models:e}=await this.graphQLService.sdk.getAuthModels();return this.replace((0,r.OU)(e.map((e=>e.id))),e),this.data}validateKey(e){return"string"==typeof e}};d=(0,o.Cg)([(0,i._)(),(0,o.Sn)("design:paramtypes",[a.GraphQLService,s.ServerConfigResource])],d)},46880:(e,t,n)=>{n.d(t,{C:()=>isLocalConnection,S:()=>isCloudConnection});var o=n(68164);function isLocalConnection(e){return!e.origin||e.origin.type===o.T}function isCloudConnection(e){return!!e?.origin&&"cloud"===e.origin.type}},71361:(e,t,n)=>{n.r(t),n.d(t,{ConnectionNavNodeService:()=>x});var o=n(1118),i=n(94866),c=n(63716),r=n(5576),s=n(86764),a=n(86888),d=n(6587),u=n(30819),h=n(64809),l=n(3838),p=n(7278),I=n(57985),f=n(85213),v=n(43974),C=n(90409),g=n(49690),m=n(34906),S=n(55190),y=n(60410);function getConnectionParentId(e,t){return t?(0,y.u)({projectId:e,folderId:t}):(0,l.V)(e)}var j=n(15589);function getFolderNodeParents(e){if(function isFolderNodeId(e){return e.startsWith("folder://")}(e)){const t=(0,j.j)(e);return[t[0],(0,l.V)(t[1].replace("folder://","")),...t.slice(2)]}return[]}let x=class ConnectionNavNodeService extends c.O{constructor(e,t,n,o,c,r,s){super(),this.connectionInfoResource=e,this.navTreeResource=t,this.containerResource=n,this.navNodeInfoResource=o,this.navNodeManagerService=c,this.connectionsManagerService=r,this.connectionFolderEventHandler=s,this.navigationNavNodeConnectionContext=async(e,{nodeId:t})=>{await this.connectionInfoResource.load(g.ConnectionInfoActiveProjectKey);return this.connectionInfoResource.getConnectionForNode(t)},(0,i.Gn)(this,{connectionUpdateHandler:i.XI.bound,connectionRemoveHandler:i.XI.bound,connectionCreateHandler:i.XI.bound}),this.connectionInfoResource.onDataOutdated.addHandler(this.connectionUpdateHandler),this.connectionInfoResource.onItemUpdate.addHandler(this.connectionUpdateHandler),this.connectionInfoResource.onItemDelete.addHandler(this.connectionRemoveHandler),this.connectionInfoResource.onConnectionCreate.addHandler(this.connectionCreateHandler),this.navNodeInfoResource.onDataOutdated.addHandler(this.navNodeOutdateHandler.bind(this)),this.navTreeResource.before(this.preloadConnectionInfo.bind(this)),this.navNodeManagerService.navigator.addHandler(this.navigateHandler.bind(this)),this.connectionInfoResource.connect(this.navTreeResource),this.connectionFolderEventHandler.onEvent(v.OYz.CbDatasourceFolderCreated,(e=>{const t=e.nodePaths.map((e=>{const t=getFolderNodeParents(e);return t[t.length-1]}));this.navTreeResource.markOutdated((0,p.OU)(t))}),void 0,this.navTreeResource),this.connectionFolderEventHandler.onEvent(v.OYz.CbDatasourceFolderDeleted,(e=>{const t=e.nodePaths.map((e=>{const t=getFolderNodeParents(e);return t[t.length-1]}));this.navTreeResource.deleteInNode((0,p.OU)(t),e.nodePaths.map((e=>[e])))}),void 0,this.navTreeResource),this.connectionFolderEventHandler.onEvent(v.OYz.CbDatasourceFolderUpdated,(e=>{this.navTreeResource.markOutdated((0,p.OU)(e.nodePaths))}),void 0,this.navTreeResource)}async preloadConnectionInfo(e,t){if((0,I.l)(e))return;if(!f.F.some(e,(e=>a.n.isDatabaseObject(e))))return;await this.connectionInfoResource.load(g.ConnectionInfoActiveProjectKey);const n=f.F.some(e,(e=>{const t=this.connectionInfoResource.getConnectionForNode(e);return!!t&&!t.connected}));if(n)throw s.a.interrupt(t),new Error("Connection not established")}connectionUpdateHandler(e){let t=this.connectionInfoResource.get(e);const n=[],o=[];t=Array.isArray(t)?t:[t];for(const e of t){if(!e?.nodePath||e.template)return;const t=this.navNodeInfoResource.get(e.nodePath),i=getConnectionParentId(e.projectId,e.folder);e.connected||(o.push(e.nodePath),n.push(e.nodePath));const c=t?.parentId;c&&!n.includes(c)&&n.push(c),n.includes(i)||n.push(i)}if(o.length>0){const e=(0,p.OU)(o);this.navTreeResource.has(e)&&this.navTreeResource.delete(e)}if(n.length>0){const e=(0,p.OU)(n);this.navTreeResource.markOutdated(e)}}connectionRemoveHandler(e){f.F.forEach(e,(e=>{const t=this.connectionInfoResource.get(e);if(!t||t.template)return;const n=t.nodePath??a.n.connectionIdToConnectionNodeId(e.connectionId),o=this.navNodeInfoResource.get(n),i=o?.parentId??(0,l.V)(e.projectId);n&&this.navTreeResource.deleteInNode(i,[n])}))}async connectionCreateHandler(e){if(!e.nodePath||e.template)return;const t=getConnectionParentId(e.projectId,e.folder);if(await this.navTreeResource.waitLoad(),!this.navTreeResource.has(t))return;let n=this.navTreeResource.get(t);if(!n||n.includes(e.nodePath))return;const o=await this.navNodeInfoResource.load(e.nodePath);if(await this.navTreeResource.waitLoad(),this.navNodeInfoResource.setParent(e.nodePath,t),n=this.navTreeResource.get(t),!n||n.includes(e.nodePath))return;let i=0;const c=this.navNodeInfoResource.get((0,p.OU)(n));for(const e of c){if(!e?.folder&&1===e?.name?.localeCompare(o.name))break;i++}this.navTreeResource.insertToNode(t,i,e.nodePath)}async navigateHandler({nodeId:e},t){let n=await t.getContext(this.navigationNavNodeConnectionContext);a.n.isDatabaseObject(e)&&n&&(n=await this.connectionsManagerService.requireConnection((0,g.createConnectionParam)(n)),n?.connected||s.a.interrupt(t))}navNodeOutdateHandler(e){const t=this.containerResource.entries.filter((([t,n])=>f.F.some(e,(e=>n.parentNode?.id===e||n.catalogList.some((t=>t.catalog?.id===e||t.schemaList.some((t=>t?.id===e))))||n.schemaList.some((t=>t?.id===e)))))).map((([e])=>e));this.containerResource.markOutdated((0,p.OU)(t))}};x=(0,o.Cg)([(0,r._)(),(0,o.Sn)("design:paramtypes",[g.ConnectionInfoResource,d.NavTreeResource,S.ContainerResource,u.NavNodeInfoResource,h.NavNodeManagerService,m.ConnectionsManagerService,C.ConnectionFolderEventHandler])],x)},64531:(e,t,n)=>{n.d(t,{b:()=>o});const o="Connection"},56245:(e,t,n)=>{n.r(t),n.d(t,{NavNodeExtensionsService:()=>l});var o=n(1118),i=n(5576),c=n(30819),r=n(64809),s=n(38396),a=n(49690),d=n(9390),u=n(97748),h=n(81886);let l=class NavNodeExtensionsService{constructor(e,t,n){this.navNodeInfoResource=e,this.navNodeManagerService=t,this.connectionInfoResource=n,this.extensions=[(0,s.r)(this.getProject.bind(this)),(0,d.U)(this.getConnection.bind(this)),(0,u.W)(this.getDBObjectCatalog.bind(this)),(0,h.I)(this.getDBObjectSchema.bind(this))]}getProject(e){const t=this.navNodeInfoResource.get(e);return t?.projectId}getConnection(e){const t=this.connectionInfoResource.getConnectionForNode(e);if(t)return(0,a.createConnectionParam)(t)}getDBObjectCatalog(e){return this.navNodeManagerService.getNodeContainerInfo(e).catalogId}getDBObjectSchema(e){return this.navNodeManagerService.getNodeContainerInfo(e).schemaId}};l=(0,o.Cg)([(0,i._)(),(0,o.Sn)("design:paramtypes",[c.NavNodeInfoResource,r.NavNodeManagerService,a.ConnectionInfoResource])],l)},60410:(e,t,n)=>{function getConnectionFolderId(e){return`folder://${e.projectId}/${e.folderId}`}n.d(t,{u:()=>getConnectionFolderId})},78683:(e,t,n)=>{n.d(t,{p:()=>getConnectionFolderIdFromNodeId});var o=n(98940);function getConnectionFolderIdFromNodeId(e){const t=/^folder:\/\/(.*?)\/(.*)$/gi.exec(e);if(t){const[e,n,i]=t;return(0,o.q)(n,i)}}},64043:(e,t,n)=>{n.r(t),n.d(t,{NetworkHandlerResource:()=>h,SSH_TUNNEL_ID:()=>u});var o=n(1118),i=n(5576),c=n(14452),r=n(40813),s=n(7278),a=n(40601),d=n(83336);const u="ssh_tunnel";let h=class NetworkHandlerResource extends r.nG{constructor(e,t,n){super(),this.graphQLService=e,this.notificationService=t,this.sync(n,(()=>{}),(()=>r.fZ))}async test(e){try{const{info:t}=await this.graphQLService.sdk.testNetworkHandler({config:e});this.notificationService.logSuccess({title:"connections_network_handler_test_success",message:"Client version: "+t.clientVersion+"\nServer version: "+t.serverVersion})}catch(e){this.notificationService.logException(e,"connections_network_handler_test_fail")}}async loader(){const{handlers:e}=await this.graphQLService.sdk.getNetworkHandlers();return this.replace((0,s.OU)(e.map((e=>e.id))),e),this.data}validateKey(e){return"string"==typeof e}};h=(0,o.Cg)([(0,i._)(),(0,o.Sn)("design:paramtypes",[d.GraphQLService,c.NotificationService,a.ServerConfigResource])],h)},86990:(e,t,n)=>{n.d(t,{w:()=>o});const o="userName"},98940:(e,t,n)=>{function createConnectionFolderParam(e,t){return"object"==typeof t&&(t=t.id),{projectId:e,folderId:t}}n.d(t,{q:()=>createConnectionFolderParam})},9390:(e,t,n)=>{n.d(t,{U:()=>connectionProvider,g:()=>isConnectionProvider});var o=n(88381);const i=Symbol("@extension/ConnectionProvider");function connectionProvider(e){return(0,o.w)(e,i)}function isConnectionProvider(e){return(0,o.o)(e,i)}},15712:(e,t,n)=>{n.d(t,{M:()=>connectionSetter,a:()=>isConnectionSetter});var o=n(88381);const i=Symbol("@extension/ConnectionSetter");function connectionSetter(e){return(0,o.w)(e,i)}function isConnectionSetter(e){return(0,o.o)(e,i)}},84847:(e,t,n)=>{n.d(t,{P:()=>executionContextProvider,l:()=>isExecutionContextProvider});var o=n(88381);const i=Symbol("@extension/ExecutionContextProvider");function executionContextProvider(e){return(0,o.w)(e,i)}function isExecutionContextProvider(e){return(0,o.o)(e,i)}},97748:(e,t,n)=>{n.d(t,{W:()=>objectCatalogProvider,a:()=>isObjectCatalogProvider});var o=n(88381);const i=Symbol("@extension/ObjectCatalogProvider");function objectCatalogProvider(e){return(0,o.w)(e,i)}function isObjectCatalogProvider(e){return(0,o.o)(e,i)}},19742:(e,t,n)=>{n.d(t,{I:()=>objectCatalogSetter,u:()=>isObjectCatalogSetter});var o=n(88381);const i=Symbol("@extension/ObjectCatalogSetter");function objectCatalogSetter(e){return(0,o.w)(e,i)}function isObjectCatalogSetter(e){return(0,o.o)(e,i)}},81886:(e,t,n)=>{n.d(t,{I:()=>objectSchemaProvider,m:()=>isObjectSchemaProvider});var o=n(88381);const i=Symbol("@extension/ObjectSchemaProvider");function objectSchemaProvider(e){return(0,o.w)(e,i)}function isObjectSchemaProvider(e){return(0,o.o)(e,i)}},58832:(e,t,n)=>{n.d(t,{c:()=>isObjectSchemaSetter,k:()=>objectSchemaSetter});var o=n(88381);const i=Symbol("@extension/ObjectSchemaSetter");function objectSchemaSetter(e){return(0,o.w)(e,i)}function isObjectSchemaSetter(e){return(0,o.o)(e,i)}},72464:(e,t,n)=>{function isJDBCConnection(e,t){return t?.useUrl||!e?.sampleURL||!1}n.d(t,{E:()=>isJDBCConnection})},86358:(e,t,n)=>{n.d(t,{Y:()=>useDBDriver});var o=n(15993),i=n(18699),c=n(74749);function useDBDriver(e){const t=(0,i.h)(c.DBDriverResource),n=t.get(e),r=(0,o.useCallback)((()=>t.load(e)),[t,e]),s=(0,o.useCallback)((()=>t.refresh(e)),[t,e]);return{driver:n,isLoading:(0,o.useCallback)((()=>t.isLoading(e)),[t,e]),isLoaded:(0,o.useCallback)((()=>t.isLoaded(e)),[t,e]),load:r,refresh:s}}}}]);