orcaq 1.1.6 → 1.1.8
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.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/-7uW7YTy.js +1 -0
- package/.output/public/_nuxt/{wH-P-_6A.js → 5450EsIE.js} +1 -1
- package/.output/public/_nuxt/6mVUr42b.js +1 -0
- package/.output/public/_nuxt/7H5y5euK.js +1 -0
- package/.output/public/_nuxt/7iCr9_qw.js +26 -0
- package/.output/public/_nuxt/{C4-wpUAK.js → B0gkARnK.js} +1 -1
- package/.output/public/_nuxt/B21nC2NZ.js +1 -0
- package/.output/public/_nuxt/B232GDut.js +2 -0
- package/.output/public/_nuxt/{x85BV7y_.js → B6N_D8QI.js} +1 -1
- package/.output/public/_nuxt/B7C8fo37.js +1 -0
- package/.output/public/_nuxt/BC82eJHt.js +1 -0
- package/.output/public/_nuxt/BHr4_sbs.js +9 -0
- package/.output/public/_nuxt/{DYqShb5v.js → BJvJ0Hlu.js} +4 -4
- package/.output/public/_nuxt/BK-6CJ0A.js +1 -0
- package/.output/public/_nuxt/BMVgfiQu.js +1 -0
- package/.output/public/_nuxt/BNh4NY7v.js +1 -0
- package/.output/public/_nuxt/{3jfBYqJb.js → BO3FEgXG.js} +1 -1
- package/.output/public/_nuxt/BQm1mt0O.js +1 -0
- package/.output/public/_nuxt/BRCvv3op.js +1 -0
- package/.output/public/_nuxt/{DLA-ioQ4.js → BRWis86L.js} +1 -1
- package/.output/public/_nuxt/{Bgj8Q52i.js → BRzWRTTF.js} +1 -1
- package/.output/public/_nuxt/{BWg3wiuc.js → BWTTrGtY.js} +2 -2
- package/.output/public/_nuxt/{BJoSd_uV.js → BXMKgn-J.js} +1 -1
- package/.output/public/_nuxt/{BoUZO_NV.js → BYaoWfSN.js} +1 -1
- package/.output/public/_nuxt/B_G752SV.js +20 -0
- package/.output/public/_nuxt/{B5HZeat4.js → BalNYDR1.js} +1 -1
- package/.output/public/_nuxt/{DYPm3mWQ.js → BmfnP4qD.js} +1 -1
- package/.output/public/_nuxt/Bn6_QGSK.js +1 -0
- package/.output/public/_nuxt/{CROH8wgk.js → BsCPQnkm.js} +1 -1
- package/.output/public/_nuxt/{wrneOCBW.js → Bu6ybm3Z.js} +1 -1
- package/.output/public/_nuxt/{DDsaDrGo.js → BuTCm7Bo.js} +1 -1
- package/.output/public/_nuxt/BuzCyLCh.js +1 -0
- package/.output/public/_nuxt/{4LC09zKL.js → BzNEuLKx.js} +1 -1
- package/.output/public/_nuxt/{C9ZBCJdc.js → BzNNFvTW.js} +1 -1
- package/.output/public/_nuxt/{CoQ_oOia.js → BzqjH2-H.js} +1 -1
- package/.output/public/_nuxt/{BCa-NKh0.js → C-e53AuW.js} +1 -1
- package/.output/public/_nuxt/C0jXhwNq.js +1 -0
- package/.output/public/_nuxt/C6K-C4_d.js +1 -0
- package/.output/public/_nuxt/{DgGwe7jd.js → C6teO48Y.js} +133 -133
- package/.output/public/_nuxt/{CCK1so3F.js → C874itvn.js} +1 -1
- package/.output/public/_nuxt/C8ZJ2pm_.js +1 -0
- package/.output/public/_nuxt/CA3O4M9L.js +1 -0
- package/.output/public/_nuxt/{Cf6n9dsT.js → CAjVwGyz.js} +1 -1
- package/.output/public/_nuxt/{uDsvlLN0.js → CCC5u9Ni.js} +1 -1
- package/.output/public/_nuxt/{BmEIj9l9.js → CCCJ2fw7.js} +1 -1
- package/.output/public/_nuxt/{dDqgUqt5.js → CFi6G8Aj.js} +2 -2
- package/.output/public/_nuxt/CKlMKmo6.js +1 -0
- package/.output/public/_nuxt/{FHx3Ejt6.js → CMDq7o88.js} +1 -1
- package/.output/public/_nuxt/CMI-3q_e.js +1 -0
- package/.output/public/_nuxt/{CBjcd4cE.js → CMnjMfEQ.js} +1 -1
- package/.output/public/_nuxt/{Ci7hrFNN.js → CQFANjzf.js} +1 -1
- package/.output/public/_nuxt/{BuSZbOQO.js → CU5cwnUW.js} +1 -1
- package/.output/public/_nuxt/{Bibtvqd8.js → CXQ2zrsE.js} +1 -1
- package/.output/public/_nuxt/{Dd89Vyx8.js → CXbrqQhC.js} +1 -1
- package/.output/public/_nuxt/CZXyfpHW.js +1 -0
- package/.output/public/_nuxt/CZgTP5wX.js +1 -0
- package/.output/public/_nuxt/{BxZgIpkD.js → Cd_fVKDw.js} +1 -1
- package/.output/public/_nuxt/CeXnSKvd.js +1 -0
- package/.output/public/_nuxt/Chw5tFzx.js +1 -0
- package/.output/public/_nuxt/CkLSGVwV.js +1 -0
- package/.output/public/_nuxt/Cqk0ImDE.js +1 -0
- package/.output/public/_nuxt/{BAasx5OS.js → CuXTA7ZW.js} +1 -1
- package/.output/public/_nuxt/Cv9v5fHN.js +1 -0
- package/.output/public/_nuxt/{CE0zlNDo.js → CvbYm0uB.js} +1 -1
- package/.output/public/_nuxt/{BJ8qQpib.js → Cw1HIv3s.js} +1 -1
- package/.output/public/_nuxt/{7nPLTDFM.js → CyEOtFwE.js} +1 -1
- package/.output/public/_nuxt/CyKRjZZo.js +1 -0
- package/.output/public/_nuxt/{Bap1X7GD.js → D4DMGxvZ.js} +1 -1
- package/.output/public/_nuxt/{DP6Az3fC.js → D5GonnbJ.js} +1 -1
- package/.output/public/_nuxt/D5Oboajo.js +1 -0
- package/.output/public/_nuxt/D8egDyEO.js +1 -0
- package/.output/public/_nuxt/DBSV6YXN.js +1 -0
- package/.output/public/_nuxt/{habs8oz6.js → DCewvWOu.js} +1 -1
- package/.output/public/_nuxt/{CP-7VdtS.js → DG9CsZCx.js} +1 -1
- package/.output/public/_nuxt/{DViCRsmA.js → DH2V7e8U.js} +1 -1
- package/.output/public/_nuxt/{C6bwwZAc.js → DHXwq7wT.js} +1 -1
- package/.output/public/_nuxt/DJXrgohw.js +2 -0
- package/.output/public/_nuxt/{Cl3VX8Um.js → DQRyK9Io.js} +1 -1
- package/.output/public/_nuxt/{ZNDxw-7x.js → DXVrM3CN.js} +1 -1
- package/.output/public/_nuxt/{Un5zjlKE.js → DZ4xLzJg.js} +1 -1
- package/.output/public/_nuxt/DZIoL4RO.js +1 -0
- package/.output/public/_nuxt/D_kY6P5P.js +1 -0
- package/.output/public/_nuxt/DgxTwFGe.js +7 -0
- package/.output/public/_nuxt/DkX74xDd.js +1 -0
- package/.output/public/_nuxt/{B_hWP06g.js → DmnufEYq.js} +1 -1
- package/.output/public/_nuxt/{BCazdlgN.js → Dopm1f4X.js} +1 -1
- package/.output/public/_nuxt/{C6CFIGob.js → Dpkaavgs.js} +1 -1
- package/.output/public/_nuxt/DpsqSAMo.js +20 -0
- package/.output/public/_nuxt/{DHyymmeR.js → DrkGD_bQ.js} +1 -1
- package/.output/public/_nuxt/{yLATXAxG.js → Dtry_3Qa.js} +1 -1
- package/.output/public/_nuxt/DwPmcz47.js +1 -0
- package/.output/public/_nuxt/DyjsVMbv.js +1 -0
- package/.output/public/_nuxt/{CNPNWuzz.js → FmHWbXNk.js} +1 -1
- package/.output/public/_nuxt/{BbLqUOHs.js → JxgekUqn.js} +1 -1
- package/.output/public/_nuxt/KoGK2wLb.js +1 -0
- package/.output/public/_nuxt/LU_a7qLd.js +1 -0
- package/.output/public/_nuxt/{Lh0RfwhV.js → LxqkguPP.js} +1 -1
- package/.output/public/_nuxt/Q8x88Gcd.js +1 -0
- package/.output/public/_nuxt/{DRX1aIGD.js → R04uZjs6.js} +1 -1
- package/.output/public/_nuxt/So0hX8V0.js +31 -0
- package/.output/public/_nuxt/WGDY9i_Q.js +1 -0
- package/.output/public/_nuxt/{Df4wU3r0.js → WZQ8mcv9.js} +1 -1
- package/.output/public/_nuxt/{CO0Pa76w.js → XjywAggc.js} +1 -1
- package/.output/public/_nuxt/{_fileId_.DxhkUVGK.css → _fileId_.CiauI_x3.css} +1 -1
- package/.output/public/_nuxt/{C445d10Z.js → _uLivI44.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/30582efd-125a-4f88-bd89-20a7b2ba8697.json +1 -0
- package/.output/public/_nuxt/{EZ0owjER.js → eQskTKIU.js} +1 -1
- package/.output/public/_nuxt/ecWNT6PZ.js +1 -0
- package/.output/public/_nuxt/entry.BcHy7sxf.css +1 -0
- package/.output/public/_nuxt/{BEvswgw7.js → f6XRRKUb.js} +1 -1
- package/.output/public/_nuxt/jtwYTq7X.js +52 -0
- package/.output/public/_nuxt/{Cvkyd5iW.js → mcYTISF7.js} +1 -1
- package/.output/public/_nuxt/mcfKrWU-.js +1 -0
- package/.output/public/_nuxt/{BnZ5qYkP.js → soHTUlpn.js} +9 -9
- package/.output/public/_nuxt/tc7vkD0J.js +3 -0
- package/.output/public/_nuxt/vEHvfalB.js +53 -0
- package/.output/public/_nuxt/vP25tZUh.js +2 -0
- package/.output/public/_nuxt/{F8eHh68O.js → zndqWf9s.js} +8 -8
- package/.output/server/chunks/_/registry.mjs +116 -0
- package/.output/server/chunks/_/registry.mjs.map +1 -0
- package/.output/server/chunks/_/{native-backup.mjs → runtime.mjs} +325 -164
- package/.output/server/chunks/_/runtime.mjs.map +1 -0
- package/.output/server/chunks/_/{native-backup-jobs.mjs → service.mjs} +185 -248
- package/.output/server/chunks/_/service.mjs.map +1 -0
- package/.output/server/chunks/_/tables.factory.mjs +1 -1
- package/.output/server/chunks/build/client.manifest.mjs +802 -727
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +683 -648
- package/.output/server/chunks/routes/api/database-backup/capability.get.mjs +7 -2
- package/.output/server/chunks/routes/api/database-backup/capability.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-export/export-database.mjs +4 -3
- package/.output/server/chunks/routes/api/database-export/export-database.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs +1 -20
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs +1 -20
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-import/import-database.mjs +14 -3
- package/.output/server/chunks/routes/api/database-import/import-database.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs +1 -20
- package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs.map +1 -1
- package/.output/server/package.json +1 -1
- package/package.json +1 -1
- package/.output/public/_nuxt/27ZsWTm2.js +0 -1
- package/.output/public/_nuxt/4OV_5qQE.js +0 -1
- package/.output/public/_nuxt/6NXhlm49.js +0 -1
- package/.output/public/_nuxt/6wO6CbCo.js +0 -1
- package/.output/public/_nuxt/B10QBDL6.js +0 -1
- package/.output/public/_nuxt/B3iNzG14.js +0 -1
- package/.output/public/_nuxt/BKAEFZqP.js +0 -1
- package/.output/public/_nuxt/BTvOPFKG.js +0 -1
- package/.output/public/_nuxt/BbawOYVr.js +0 -1
- package/.output/public/_nuxt/Bf2bW_MY.js +0 -7
- package/.output/public/_nuxt/BhzzQZRC.js +0 -1
- package/.output/public/_nuxt/Bok35x_B.js +0 -1
- package/.output/public/_nuxt/BusLuQ4Q.js +0 -1
- package/.output/public/_nuxt/C7C1kq_N.js +0 -1
- package/.output/public/_nuxt/CCOlJAKS.js +0 -2
- package/.output/public/_nuxt/CEoM97rJ.js +0 -1
- package/.output/public/_nuxt/CHAVZu6b.js +0 -2
- package/.output/public/_nuxt/CN8b9qPP.js +0 -1
- package/.output/public/_nuxt/CUws2Uv7.js +0 -1
- package/.output/public/_nuxt/CZLVBTJx.js +0 -1
- package/.output/public/_nuxt/Cl5p4EQY.js +0 -1
- package/.output/public/_nuxt/CnQob-tn.js +0 -1
- package/.output/public/_nuxt/CoX1_N4R.js +0 -1
- package/.output/public/_nuxt/CvDZBOay.js +0 -1
- package/.output/public/_nuxt/D29mzs5t.js +0 -1
- package/.output/public/_nuxt/D9MMtvTu.js +0 -52
- package/.output/public/_nuxt/DM8LJTsg.js +0 -1
- package/.output/public/_nuxt/DZFq5yqu.js +0 -1
- package/.output/public/_nuxt/DZVfXu09.js +0 -1
- package/.output/public/_nuxt/DdbhVPqD.js +0 -1
- package/.output/public/_nuxt/DeVs4gEL.js +0 -53
- package/.output/public/_nuxt/DlymFQ5D.js +0 -26
- package/.output/public/_nuxt/DoNLWeqB.js +0 -20
- package/.output/public/_nuxt/Dpm6rnHk.js +0 -1
- package/.output/public/_nuxt/DsPClaxV.js +0 -1
- package/.output/public/_nuxt/DtOg0Asw.js +0 -1
- package/.output/public/_nuxt/DyDU0wFf.js +0 -1
- package/.output/public/_nuxt/G40WRC_L.js +0 -1
- package/.output/public/_nuxt/NMm6Vanu.js +0 -1
- package/.output/public/_nuxt/ORit_vRp.js +0 -1
- package/.output/public/_nuxt/P_2SRa71.js +0 -2
- package/.output/public/_nuxt/XETGYn3c.js +0 -1
- package/.output/public/_nuxt/ZVYA9HBl.js +0 -1
- package/.output/public/_nuxt/ZhP2FY6Y.js +0 -1
- package/.output/public/_nuxt/_TExiQQQ.js +0 -3
- package/.output/public/_nuxt/__PEYcIB.js +0 -9
- package/.output/public/_nuxt/builds/meta/47c294b1-d6b3-4974-bd50-5046ae0a393e.json +0 -1
- package/.output/public/_nuxt/dSX5D8ur.js +0 -28
- package/.output/public/_nuxt/entry.CGwcggc4.css +0 -1
- package/.output/public/_nuxt/o60RgyTd.js +0 -1
- package/.output/server/chunks/_/native-backup-jobs.mjs.map +0 -1
- package/.output/server/chunks/_/native-backup.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as o,s as _e,g as Ae,t as ie,q as ke,a as Fe,b as Pe,c as wt,l as At,d as zt,e as ve,A as Ce,I as D,a1 as Le,i as Ee}from"./
|
|
1
|
+
import{_ as o,s as _e,g as Ae,t as ie,q as ke,a as Fe,b as Pe,c as wt,l as At,d as zt,e as ve,A as Ce,I as D,a1 as Le,i as Ee}from"./BJvJ0Hlu.js";import{l as ee}from"./DrkGD_bQ.js";import"./C6teO48Y.js";import"./Gi6I4Gst.js";import"./DX6XiGOO.js";var Vt=function(){var t=o(function(j,r,l,g){for(l=l||{},g=j.length;g--;l[j[g]]=r);return l},"o"),n=[1,3],u=[1,4],c=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],S=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],A=[2,36],d=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],x=[1,41],O=[1,14],Y=[1,23],G=[1,18],yt=[1,19],Tt=[1,20],dt=[1,21],Ft=[1,22],ut=[1,24],xt=[1,25],ft=[1,26],gt=[1,27],i=[1,28],Bt=[1,29],W=[1,32],U=[1,33],k=[1,34],F=[1,39],P=[1,40],v=[1,42],C=[1,44],H=[1,62],X=[1,61],L=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Rt=[1,65],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Ht=[1,71],Xt=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],I=[4,5,6,7,8,9,10,11,12,13,14,15,18],J=[1,90],$=[1,91],tt=[1,92],et=[1,99],it=[1,93],at=[1,96],nt=[1,94],st=[1,95],rt=[1,97],ot=[1,98],Pt=[1,102],Kt=[10,55,56,57],R=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],vt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,g,f,_,e,pt){var s=e.length-1;switch(_){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],f.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),f.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),f.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),f.setAccDescription(this.$);break;case 46:f.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:f.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:f.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:f.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:f.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:f.setXAxisLeftText(e[s-2]),f.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",f.setXAxisLeftText(e[s-1]);break;case 53:f.setXAxisLeftText(e[s]);break;case 54:f.setYAxisBottomText(e[s-2]),f.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",f.setYAxisBottomText(e[s-1]);break;case 56:f.setYAxisBottomText(e[s]);break;case 57:f.setQuadrant1Text(e[s]);break;case 58:f.setQuadrant2Text(e[s]);break;case 59:f.setQuadrant3Text(e[s]);break;case 60:f.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:u,55:c,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:u,55:c,56:h,57:p},{18:n,26:9,27:2,28:u,55:c,56:h,57:p},t(y,[2,33],{29:10}),t(S,[2,61]),t(S,[2,62]),t(S,[2,63]),{1:[2,30]},{1:[2,31]},t(a,A,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:T,10:q,12:m,13:b,14:x,18:O,25:Y,35:G,37:yt,39:Tt,41:dt,42:Ft,48:ut,50:xt,51:ft,52:gt,53:i,54:Bt,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(y,[2,34]),{27:45,55:c,56:h,57:p},t(a,[2,37]),t(a,A,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:d,5:T,10:q,12:m,13:b,14:x,18:O,25:Y,35:G,37:yt,39:Tt,41:dt,42:Ft,48:ut,50:xt,51:ft,52:gt,53:i,54:Bt,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(a,[2,45]),t(a,[2,46]),{18:[1,50]},{4:d,5:T,10:q,12:m,13:b,14:x,43:51,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:52,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:53,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:54,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:55,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:56,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,44:[1,57],47:[1,58],58:60,59:59,63:k,64:F,65:P,66:v,67:C},t(L,[2,64]),t(L,[2,66]),t(L,[2,67]),t(L,[2,70]),t(L,[2,71]),t(L,[2,72]),t(L,[2,73]),t(L,[2,74]),t(L,[2,75]),t(L,[2,76]),t(L,[2,77]),t(L,[2,78]),t(L,[2,79]),t(L,[2,80]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:64,4:Rt,5:Nt,6:Wt,7:Ut,8:Qt,9:Ot,10:Ht,11:Xt,12:Mt,13:Yt,14:jt,15:Gt,21:63},t(a,[2,53],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,49:[1,77],63:k,64:F,65:P,66:v,67:C}),t(a,[2,56],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,49:[1,78],63:k,64:F,65:P,66:v,67:C}),t(a,[2,57],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,58],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,59],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,60],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),{45:[1,79]},{44:[1,80]},t(L,[2,65]),t(L,[2,81]),t(L,[2,82]),t(L,[2,83]),{3:82,4:Rt,5:Nt,6:Wt,7:Ut,8:Qt,9:Ot,10:Ht,11:Xt,12:Mt,13:Yt,14:jt,15:Gt,18:[1,81]},t(I,[2,23]),t(I,[2,1]),t(I,[2,2]),t(I,[2,3]),t(I,[2,4]),t(I,[2,5]),t(I,[2,6]),t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,10]),t(I,[2,11]),t(I,[2,12]),t(a,[2,52],{58:31,43:83,4:d,5:T,10:q,12:m,13:b,14:x,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(a,[2,55],{58:31,43:84,4:d,5:T,10:q,12:m,13:b,14:x,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),{46:[1,85]},{45:[1,86]},{4:J,5:$,6:tt,8:et,11:it,13:at,16:89,17:nt,18:st,19:rt,20:ot,22:88,23:87},t(I,[2,24]),t(a,[2,51],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,54],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,47],{22:88,16:89,23:100,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{46:[1,101]},t(a,[2,29],{10:Pt}),t(Kt,[2,27],{16:103,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),t(R,[2,25]),t(R,[2,13]),t(R,[2,14]),t(R,[2,15]),t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),t(R,[2,19]),t(R,[2,20]),t(R,[2,21]),t(R,[2,22]),t(a,[2,49],{10:Pt}),t(a,[2,48],{22:88,16:89,23:104,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{4:J,5:$,6:tt,8:et,11:it,13:at,16:89,17:nt,18:st,19:rt,20:ot,22:105},t(R,[2,26]),t(a,[2,50],{10:Pt}),t(Kt,[2,28],{16:103,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var g=new Error(r);throw g.hash=l,g}},"parseError"),parse:o(function(r){var l=this,g=[0],f=[],_=[null],e=[],pt=this.table,s="",mt=0,Zt=0,qe=2,Jt=1,me=e.slice.call(arguments,1),E=Object.create(this.lexer),K={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(K.yy[Ct]=this.yy[Ct]);E.setInput(r,K.yy),K.yy.lexer=E,K.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var Lt=E.yylloc;e.push(Lt);var be=E.options&&E.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Se(B){g.length=g.length-2*B,_.length=_.length-B,e.length=e.length-B}o(Se,"popStack");function $t(){var B;return B=f.pop()||E.lex()||Jt,typeof B!="number"&&(B instanceof Array&&(f=B,B=f.pop()),B=l.symbols_[B]||B),B}o($t,"lex");for(var w,Z,N,Et,lt={},bt,M,te,St;;){if(Z=g[g.length-1],this.defaultActions[Z]?N=this.defaultActions[Z]:((w===null||typeof w>"u")&&(w=$t()),N=pt[Z]&&pt[Z][w]),typeof N>"u"||!N.length||!N[0]){var Dt="";St=[];for(bt in pt[Z])this.terminals_[bt]&&bt>qe&&St.push("'"+this.terminals_[bt]+"'");E.showPosition?Dt="Parse error on line "+(mt+1)+`:
|
|
2
2
|
`+E.showPosition()+`
|
|
3
3
|
Expecting `+St.join(", ")+", got '"+(this.terminals_[w]||w)+"'":Dt="Parse error on line "+(mt+1)+": Unexpected "+(w==Jt?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(Dt,{text:E.match,token:this.terminals_[w]||w,line:E.yylineno,loc:Lt,expected:St})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+w);switch(N[0]){case 1:g.push(w),_.push(E.yytext),e.push(E.yylloc),g.push(N[1]),w=null,Zt=E.yyleng,s=E.yytext,mt=E.yylineno,Lt=E.yylloc;break;case 2:if(M=this.productions_[N[1]][1],lt.$=_[_.length-M],lt._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},be&&(lt._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),Et=this.performAction.apply(lt,[s,Zt,mt,K.yy,N[1],_,e].concat(me)),typeof Et<"u")return Et;M&&(g=g.slice(0,-1*M*2),_=_.slice(0,-1*M),e=e.slice(0,-1*M)),g.push(this.productions_[N[1]][0]),_.push(lt.$),e.push(lt._$),te=pt[g[g.length-2]][g[g.length-1]],g.push(te);break;case 3:return!0}}return!0},"parse")},Te=function(){var j={EOF:1,parseError:o(function(l,g){if(this.yy.parser)this.yy.parser.parseError(l,g);else throw new Error(l)},"parseError"),setInput:o(function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:o(function(r){var l=r.length,g=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var f=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===f.length?this.yylloc.first_column:0)+f[f.length-g.length].length-g[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(r){this.unput(this.match.slice(r))},"less"),pastInput:o(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as r,Z as m,c as p,e as c,k as a,g as o,f as l,m as u,o as t,A as _}from"./C6teO48Y.js";import"./DBSV6YXN.js";import{_ as d}from"./BNh4NY7v.js";import"./DH2V7e8U.js";import"./DQRyK9Io.js";import"./BC82eJHt.js";import"./DZ4xLzJg.js";import"./DG9CsZCx.js";import"./7H5y5euK.js";import"./CMI-3q_e.js";import"./BRCvv3op.js";import"./D_kY6P5P.js";import"./B5rxJs06.js";import"./eQskTKIU.js";import"./CKlMKmo6.js";import"./Cv9v5fHN.js";import"./BHr4_sbs.js";import"./BuTCm7Bo.js";const f={class:"h-full"},x={key:0,class:"h-full p-4 flex flex-col items-center justify-center text-muted-foreground"},q=r({__name:"index",setup(k){const s=m(),e=p(()=>String(s.params.connectionId||""));return(g,n)=>{const i=_;return t(),c("div",f,[o(e)?(t(),a(o(d),{key:1,"source-connection-id":o(e)},null,8,["source-connection-id"])):(t(),c("div",x,[l(i,{name:"hugeicons:plug-socket",class:"size-12 mb-2 opacity-50"}),n[0]||(n[0]=u("p",{class:"text-sm"},"Select a connection to open Schema Diff",-1))]))])}}});export{q as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{U as a,D as n}from"./BJvJ0Hlu.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as V}from"./Bibtvqd8.js";import{I as X}from"./Ci7hrFNN.js";import{_ as $,t as J,q as Q,s as Z,g as rr,a as er,b as tr,l as m,d as ar,u as sr,F as nr,A as or,k as E,G as cr,H as ir,I as dr,K as hr}from"./DYqShb5v.js";import{p as lr}from"./B_hWP06g.js";import"./DgGwe7jd.js";var p={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},$r=dr.gitGraph,q=$(()=>cr({...$r,...ir().gitGraph}),"getConfig"),i=new X(()=>{const t=q(),r=t.mainBranchName,a=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function z(){return hr({length:7})}$(z,"getID");function W(t,r){const a=Object.create(null);return t.reduce((n,e)=>{const s=r(e);return a[s]||(a[s]=!0,n.push(e)),n},[])}$(W,"uniqBy");var fr=$(function(t){i.records.direction=t},"setDirection"),yr=$(function(t){m.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(r){m.error("error while parsing gitGraph options",r.message)}},"setOptions"),gr=$(function(){return i.records.options},"getOptions"),xr=$(function(t){let r=t.msg,a=t.id;const n=t.type;let e=t.tags;m.info("commit",r,a,n,e),m.debug("Entering commit:",r,a,n,e);const s=q();a=E.sanitizeText(a,s),r=E.sanitizeText(r,s),e=e==null?void 0:e.map(c=>E.sanitizeText(c,s));const o={id:a||i.records.seq+"-"+z(),message:r,seq:i.records.seq++,type:n??p.NORMAL,tags:e??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=o,m.info("main branch",s.mainBranchName),i.records.commits.has(o.id)&&m.warn(`Commit ID ${o.id} already exists`),i.records.commits.set(o.id,o),i.records.branches.set(i.records.currBranch,o.id),m.debug("in pushCommit "+o.id)},"commit"),ur=$(function(t){let r=t.name;const a=t.order;if(r=E.sanitizeText(r,q()),i.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:a}),S(r),m.debug("in createBranch")},"branch"),pr=$(t=>{let r=t.branch,a=t.id;const n=t.type,e=t.tags,s=q();r=E.sanitizeText(r,s),a&&(a=E.sanitizeText(a,s));const o=i.records.branches.get(i.records.currBranch),c=i.records.branches.get(r),d=o?i.records.commits.get(o):void 0,h=c?i.records.commits.get(c):void 0;if(d&&h&&d.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.records.currBranch===r){const l=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw l.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},l}if(d===void 0||!d){const l=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw l.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},l}if(!i.records.branches.has(r)){const l=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw l.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},l}if(h===void 0||!h){const l=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw l.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},l}if(d===h){const l=new Error('Incorrect usage of "merge". Both branches have same head');throw l.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},l}if(a&&i.records.commits.has(a)){const l=new Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw l.hash={text:`merge ${r} ${a} ${n} ${e==null?void 0:e.join(" ")}`,token:`merge ${r} ${a} ${n} ${e==null?void 0:e.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${n} ${e==null?void 0:e.join(" ")}`]},l}const f=c||"",y={id:a||`${i.records.seq}-${z()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,f],branch:i.records.currBranch,type:p.MERGE,customType:n,customId:!!a,tags:e??[]};i.records.head=y,i.records.commits.set(y.id,y),i.records.branches.set(i.records.currBranch,y.id),m.debug(i.records.branches),m.debug("in mergeBranch")},"merge"),br=$(function(t){let r=t.id,a=t.targetId,n=t.tags,e=t.parent;m.debug("Entering cherryPick:",r,a,n);const s=q();if(r=E.sanitizeText(r,s),a=E.sanitizeText(a,s),n=n==null?void 0:n.map(d=>E.sanitizeText(d,s)),e=E.sanitizeText(e,s),!r||!i.records.commits.has(r)){const d=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw d.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},d}const o=i.records.commits.get(r);if(o===void 0||!o)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(o.parents)&&o.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const c=o.branch;if(o.type===p.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!i.records.commits.has(a)){if(c===i.records.currBranch){const y=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw y.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},y}const d=i.records.branches.get(i.records.currBranch);if(d===void 0||!d){const y=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw y.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},y}const h=i.records.commits.get(d);if(h===void 0||!h){const y=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw y.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},y}const f={id:i.records.seq+"-"+z(),message:`cherry-picked ${o==null?void 0:o.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,o.id],branch:i.records.currBranch,type:p.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${o.id}${o.type===p.MERGE?`|parent:${e}`:""}`]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),m.debug(i.records.branches),m.debug("in cherryPick")}},"cherryPick"),S=$(function(t){if(t=E.sanitizeText(t,q()),i.records.branches.has(t)){i.records.currBranch=t;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function D(t,r,a){const n=t.indexOf(r);n===-1?t.push(a):t.splice(n,1,a)}$(D,"upsert");function F(t){const r=t.reduce((e,s)=>e.seq>s.seq?e:s,t[0]);let a="";t.forEach(function(e){e===r?a+=" *":a+=" |"});const n=[a,r.id,r.seq];for(const e in i.records.branches)i.records.branches.get(e)===r.id&&n.push(e);if(m.debug(n.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const e=i.records.commits.get(r.parents[0]);D(t,r,e),r.parents[1]&&t.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const e=i.records.commits.get(r.parents[0]);D(t,r,e)}}t=W(t,e=>e.id),F(t)}$(F,"prettyPrintCommitHistory");var mr=$(function(){m.debug(i.records.commits);const t=j()[0];F([t])},"prettyPrint"),wr=$(function(){i.reset(),or()},"clear"),vr=$(function(){return[...i.records.branchConfig.values()].map((r,a)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${a}`)}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Cr=$(function(){return i.records.branches},"getBranches"),Er=$(function(){return i.records.commits},"getCommits"),j=$(function(){const t=[...i.records.commits.values()];return t.forEach(function(r){m.debug(r.id)}),t.sort((r,a)=>r.seq-a.seq),t},"getCommitsArray"),Br=$(function(){return i.records.currBranch},"getCurrentBranch"),Tr=$(function(){return i.records.direction},"getDirection"),Lr=$(function(){return i.records.head},"getHead"),K={commitType:p,getConfig:q,setDirection:fr,setOptions:yr,getOptions:gr,commit:xr,branch:ur,merge:pr,cherryPick:br,checkout:S,prettyPrint:mr,clear:wr,getBranchesAsObjArray:vr,getBranches:Cr,getCommits:Er,getCommitsArray:j,getCurrentBranch:Br,getDirection:Tr,getHead:Lr,setAccTitle:tr,getAccTitle:er,getAccDescription:rr,setAccDescription:Z,setDiagramTitle:Q,getDiagramTitle:J},kr=$((t,r)=>{V(t,r),t.dir&&r.setDirection(t.dir);for(const a of t.statements)Mr(a,r)},"populate"),Mr=$((t,r)=>{const n={Commit:$(e=>r.commit(Ir(e)),"Commit"),Branch:$(e=>r.branch(Rr(e)),"Branch"),Merge:$(e=>r.merge(Gr(e)),"Merge"),Checkout:$(e=>r.checkout(Or(e)),"Checkout"),CherryPicking:$(e=>r.cherryPick(qr(e)),"CherryPicking")}[t.$type];n?n(t):m.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Ir=$(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?p[t.type]:p.NORMAL,tags:t.tags??void 0}),"parseCommit"),Rr=$(t=>({name:t.name,order:t.order??0}),"parseBranch"),Gr=$(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?p[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Or=$(t=>t.branch,"parseCheckout"),qr=$(t=>{var a;return{id:t.id,targetId:"",tags:((a=t.tags)==null?void 0:a.length)===0?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),Ar={parse:$(async t=>{const r=await lr("gitGraph",t);m.debug(r),kr(r,K)},"parse")},I=10,R=40,B=4,L=2,O=8,v=new Map,C=new Map,P=30,A=new Map,_=[],M=0,x="LR",Hr=$(()=>{v.clear(),C.clear(),A.clear(),M=0,_=[],x="LR"},"clear"),Y=$(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(n=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=n.trim(),r.appendChild(e)}),r},"drawText"),U=$(t=>{let r,a,n;return x==="BT"?(a=$((e,s)=>e<=s,"comparisonFunc"),n=1/0):(a=$((e,s)=>e>=s,"comparisonFunc"),n=0),t.forEach(e=>{var o,c;const s=x==="TB"||x=="BT"?(o=C.get(e))==null?void 0:o.y:(c=C.get(e))==null?void 0:c.x;s!==void 0&&a(s,n)&&(r=e,n=s)}),r},"findClosestParent"),Pr=$(t=>{let r="",a=1/0;return t.forEach(n=>{const e=C.get(n).y;e<=a&&(r=n,a=e)}),r||void 0},"findClosestParentBT"),_r=$((t,r,a)=>{let n=a,e=a;const s=[];t.forEach(o=>{const c=r.get(o);if(!c)throw new Error(`Commit not found for key ${o}`);c.parents.length?(n=Dr(c),e=Math.max(n,e)):s.push(c),Fr(c,n)}),n=e,s.forEach(o=>{Nr(o,n,a)}),t.forEach(o=>{const c=r.get(o);if(c!=null&&c.parents.length){const d=Pr(c.parents);n=C.get(d).y-R,n<=e&&(e=n);const h=v.get(c.branch).pos,f=n-I;C.set(c.id,{x:h,y:f})}})},"setParallelBTPos"),zr=$(t=>{var n;const r=U(t.parents.filter(e=>e!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const a=(n=C.get(r))==null?void 0:n.y;if(a===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return a},"findClosestParentPos"),Dr=$(t=>zr(t)+R,"calculateCommitPosition"),Fr=$((t,r)=>{const a=v.get(t.branch);if(!a)throw new Error(`Branch not found for commit ${t.id}`);const n=a.pos,e=r+I;return C.set(t.id,{x:n,y:e}),{x:n,y:e}},"setCommitPosition"),Nr=$((t,r,a)=>{const n=v.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const e=r+a,s=n.pos;C.set(t.id,{x:s,y:e})},"setRootPosition"),Wr=$((t,r,a,n,e,s)=>{if(s===p.HIGHLIGHT)t.append("rect").attr("x",a.x-10).attr("y",a.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${e%O} ${n}-outer`),t.append("rect").attr("x",a.x-6).attr("y",a.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${e%O} ${n}-inner`);else if(s===p.CHERRY_PICK)t.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",10).attr("class",`commit ${r.id} ${n}`),t.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${n}`),t.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${n}`),t.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${n}`),t.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${n}`);else{const o=t.append("circle");if(o.attr("cx",a.x),o.attr("cy",a.y),o.attr("r",r.type===p.MERGE?9:10),o.attr("class",`commit ${r.id} commit${e%O}`),s===p.MERGE){const c=t.append("circle");c.attr("cx",a.x),c.attr("cy",a.y),c.attr("r",6),c.attr("class",`commit ${n} ${r.id} commit${e%O}`)}s===p.REVERSE&&t.append("path").attr("d",`M ${a.x-5},${a.y-5}L${a.x+5},${a.y+5}M${a.x-5},${a.y+5}L${a.x+5},${a.y-5}`).attr("class",`commit ${n} ${r.id} commit${e%O}`)}},"drawCommitBullet"),Sr=$((t,r,a,n,e)=>{var s;if(r.type!==p.CHERRY_PICK&&(r.customId&&r.type===p.MERGE||r.type!==p.MERGE)&&e.showCommitLabel){const o=t.append("g"),c=o.insert("rect").attr("class","commit-label-bkg"),d=o.append("text").attr("x",n).attr("y",a.y+25).attr("class","commit-label").text(r.id),h=(s=d.node())==null?void 0:s.getBBox();if(h&&(c.attr("x",a.posWithOffset-h.width/2-L).attr("y",a.y+13.5).attr("width",h.width+2*L).attr("height",h.height+2*L),x==="TB"||x==="BT"?(c.attr("x",a.x-(h.width+4*B+5)).attr("y",a.y-12),d.attr("x",a.x-(h.width+4*B)).attr("y",a.y+h.height-12)):d.attr("x",a.posWithOffset-h.width/2),e.rotateCommitLabel))if(x==="TB"||x==="BT")d.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),c.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{const f=-7.5-(h.width+10)/25*9.5,y=10+h.width/25*8.5;o.attr("transform","translate("+f+", "+y+") rotate(-45, "+n+", "+a.y+")")}}},"drawCommitLabel"),jr=$((t,r,a,n)=>{var e;if(r.tags.length>0){let s=0,o=0,c=0;const d=[];for(const h of r.tags.reverse()){const f=t.insert("polygon"),y=t.append("circle"),l=t.append("text").attr("y",a.y-16-s).attr("class","tag-label").text(h),g=(e=l.node())==null?void 0:e.getBBox();if(!g)throw new Error("Tag bbox not found");o=Math.max(o,g.width),c=Math.max(c,g.height),l.attr("x",a.posWithOffset-g.width/2),d.push({tag:l,hole:y,rect:f,yOffset:s}),s+=20}for(const{tag:h,hole:f,rect:y,yOffset:l}of d){const g=c/2,u=a.y-19.2-l;if(y.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
import{p as V}from"./CXQ2zrsE.js";import{I as X}from"./CQFANjzf.js";import{_ as $,t as J,q as Q,s as Z,g as rr,a as er,b as tr,l as m,d as ar,u as sr,F as nr,A as or,k as E,G as cr,H as ir,I as dr,K as hr}from"./BJvJ0Hlu.js";import{p as lr}from"./DmnufEYq.js";import"./C6teO48Y.js";var p={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},$r=dr.gitGraph,q=$(()=>cr({...$r,...ir().gitGraph}),"getConfig"),i=new X(()=>{const t=q(),r=t.mainBranchName,a=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function z(){return hr({length:7})}$(z,"getID");function W(t,r){const a=Object.create(null);return t.reduce((n,e)=>{const s=r(e);return a[s]||(a[s]=!0,n.push(e)),n},[])}$(W,"uniqBy");var fr=$(function(t){i.records.direction=t},"setDirection"),yr=$(function(t){m.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(r){m.error("error while parsing gitGraph options",r.message)}},"setOptions"),gr=$(function(){return i.records.options},"getOptions"),xr=$(function(t){let r=t.msg,a=t.id;const n=t.type;let e=t.tags;m.info("commit",r,a,n,e),m.debug("Entering commit:",r,a,n,e);const s=q();a=E.sanitizeText(a,s),r=E.sanitizeText(r,s),e=e==null?void 0:e.map(c=>E.sanitizeText(c,s));const o={id:a||i.records.seq+"-"+z(),message:r,seq:i.records.seq++,type:n??p.NORMAL,tags:e??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=o,m.info("main branch",s.mainBranchName),i.records.commits.has(o.id)&&m.warn(`Commit ID ${o.id} already exists`),i.records.commits.set(o.id,o),i.records.branches.set(i.records.currBranch,o.id),m.debug("in pushCommit "+o.id)},"commit"),ur=$(function(t){let r=t.name;const a=t.order;if(r=E.sanitizeText(r,q()),i.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:a}),S(r),m.debug("in createBranch")},"branch"),pr=$(t=>{let r=t.branch,a=t.id;const n=t.type,e=t.tags,s=q();r=E.sanitizeText(r,s),a&&(a=E.sanitizeText(a,s));const o=i.records.branches.get(i.records.currBranch),c=i.records.branches.get(r),d=o?i.records.commits.get(o):void 0,h=c?i.records.commits.get(c):void 0;if(d&&h&&d.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.records.currBranch===r){const l=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw l.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},l}if(d===void 0||!d){const l=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw l.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},l}if(!i.records.branches.has(r)){const l=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw l.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},l}if(h===void 0||!h){const l=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw l.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},l}if(d===h){const l=new Error('Incorrect usage of "merge". Both branches have same head');throw l.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},l}if(a&&i.records.commits.has(a)){const l=new Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw l.hash={text:`merge ${r} ${a} ${n} ${e==null?void 0:e.join(" ")}`,token:`merge ${r} ${a} ${n} ${e==null?void 0:e.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${n} ${e==null?void 0:e.join(" ")}`]},l}const f=c||"",y={id:a||`${i.records.seq}-${z()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,f],branch:i.records.currBranch,type:p.MERGE,customType:n,customId:!!a,tags:e??[]};i.records.head=y,i.records.commits.set(y.id,y),i.records.branches.set(i.records.currBranch,y.id),m.debug(i.records.branches),m.debug("in mergeBranch")},"merge"),br=$(function(t){let r=t.id,a=t.targetId,n=t.tags,e=t.parent;m.debug("Entering cherryPick:",r,a,n);const s=q();if(r=E.sanitizeText(r,s),a=E.sanitizeText(a,s),n=n==null?void 0:n.map(d=>E.sanitizeText(d,s)),e=E.sanitizeText(e,s),!r||!i.records.commits.has(r)){const d=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw d.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},d}const o=i.records.commits.get(r);if(o===void 0||!o)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(o.parents)&&o.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const c=o.branch;if(o.type===p.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!i.records.commits.has(a)){if(c===i.records.currBranch){const y=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw y.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},y}const d=i.records.branches.get(i.records.currBranch);if(d===void 0||!d){const y=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw y.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},y}const h=i.records.commits.get(d);if(h===void 0||!h){const y=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw y.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},y}const f={id:i.records.seq+"-"+z(),message:`cherry-picked ${o==null?void 0:o.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,o.id],branch:i.records.currBranch,type:p.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${o.id}${o.type===p.MERGE?`|parent:${e}`:""}`]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),m.debug(i.records.branches),m.debug("in cherryPick")}},"cherryPick"),S=$(function(t){if(t=E.sanitizeText(t,q()),i.records.branches.has(t)){i.records.currBranch=t;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function D(t,r,a){const n=t.indexOf(r);n===-1?t.push(a):t.splice(n,1,a)}$(D,"upsert");function F(t){const r=t.reduce((e,s)=>e.seq>s.seq?e:s,t[0]);let a="";t.forEach(function(e){e===r?a+=" *":a+=" |"});const n=[a,r.id,r.seq];for(const e in i.records.branches)i.records.branches.get(e)===r.id&&n.push(e);if(m.debug(n.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const e=i.records.commits.get(r.parents[0]);D(t,r,e),r.parents[1]&&t.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const e=i.records.commits.get(r.parents[0]);D(t,r,e)}}t=W(t,e=>e.id),F(t)}$(F,"prettyPrintCommitHistory");var mr=$(function(){m.debug(i.records.commits);const t=j()[0];F([t])},"prettyPrint"),wr=$(function(){i.reset(),or()},"clear"),vr=$(function(){return[...i.records.branchConfig.values()].map((r,a)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${a}`)}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Cr=$(function(){return i.records.branches},"getBranches"),Er=$(function(){return i.records.commits},"getCommits"),j=$(function(){const t=[...i.records.commits.values()];return t.forEach(function(r){m.debug(r.id)}),t.sort((r,a)=>r.seq-a.seq),t},"getCommitsArray"),Br=$(function(){return i.records.currBranch},"getCurrentBranch"),Tr=$(function(){return i.records.direction},"getDirection"),Lr=$(function(){return i.records.head},"getHead"),K={commitType:p,getConfig:q,setDirection:fr,setOptions:yr,getOptions:gr,commit:xr,branch:ur,merge:pr,cherryPick:br,checkout:S,prettyPrint:mr,clear:wr,getBranchesAsObjArray:vr,getBranches:Cr,getCommits:Er,getCommitsArray:j,getCurrentBranch:Br,getDirection:Tr,getHead:Lr,setAccTitle:tr,getAccTitle:er,getAccDescription:rr,setAccDescription:Z,setDiagramTitle:Q,getDiagramTitle:J},kr=$((t,r)=>{V(t,r),t.dir&&r.setDirection(t.dir);for(const a of t.statements)Mr(a,r)},"populate"),Mr=$((t,r)=>{const n={Commit:$(e=>r.commit(Ir(e)),"Commit"),Branch:$(e=>r.branch(Rr(e)),"Branch"),Merge:$(e=>r.merge(Gr(e)),"Merge"),Checkout:$(e=>r.checkout(Or(e)),"Checkout"),CherryPicking:$(e=>r.cherryPick(qr(e)),"CherryPicking")}[t.$type];n?n(t):m.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Ir=$(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?p[t.type]:p.NORMAL,tags:t.tags??void 0}),"parseCommit"),Rr=$(t=>({name:t.name,order:t.order??0}),"parseBranch"),Gr=$(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?p[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Or=$(t=>t.branch,"parseCheckout"),qr=$(t=>{var a;return{id:t.id,targetId:"",tags:((a=t.tags)==null?void 0:a.length)===0?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),Ar={parse:$(async t=>{const r=await lr("gitGraph",t);m.debug(r),kr(r,K)},"parse")},I=10,R=40,B=4,L=2,O=8,v=new Map,C=new Map,P=30,A=new Map,_=[],M=0,x="LR",Hr=$(()=>{v.clear(),C.clear(),A.clear(),M=0,_=[],x="LR"},"clear"),Y=$(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(n=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=n.trim(),r.appendChild(e)}),r},"drawText"),U=$(t=>{let r,a,n;return x==="BT"?(a=$((e,s)=>e<=s,"comparisonFunc"),n=1/0):(a=$((e,s)=>e>=s,"comparisonFunc"),n=0),t.forEach(e=>{var o,c;const s=x==="TB"||x=="BT"?(o=C.get(e))==null?void 0:o.y:(c=C.get(e))==null?void 0:c.x;s!==void 0&&a(s,n)&&(r=e,n=s)}),r},"findClosestParent"),Pr=$(t=>{let r="",a=1/0;return t.forEach(n=>{const e=C.get(n).y;e<=a&&(r=n,a=e)}),r||void 0},"findClosestParentBT"),_r=$((t,r,a)=>{let n=a,e=a;const s=[];t.forEach(o=>{const c=r.get(o);if(!c)throw new Error(`Commit not found for key ${o}`);c.parents.length?(n=Dr(c),e=Math.max(n,e)):s.push(c),Fr(c,n)}),n=e,s.forEach(o=>{Nr(o,n,a)}),t.forEach(o=>{const c=r.get(o);if(c!=null&&c.parents.length){const d=Pr(c.parents);n=C.get(d).y-R,n<=e&&(e=n);const h=v.get(c.branch).pos,f=n-I;C.set(c.id,{x:h,y:f})}})},"setParallelBTPos"),zr=$(t=>{var n;const r=U(t.parents.filter(e=>e!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const a=(n=C.get(r))==null?void 0:n.y;if(a===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return a},"findClosestParentPos"),Dr=$(t=>zr(t)+R,"calculateCommitPosition"),Fr=$((t,r)=>{const a=v.get(t.branch);if(!a)throw new Error(`Branch not found for commit ${t.id}`);const n=a.pos,e=r+I;return C.set(t.id,{x:n,y:e}),{x:n,y:e}},"setCommitPosition"),Nr=$((t,r,a)=>{const n=v.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const e=r+a,s=n.pos;C.set(t.id,{x:s,y:e})},"setRootPosition"),Wr=$((t,r,a,n,e,s)=>{if(s===p.HIGHLIGHT)t.append("rect").attr("x",a.x-10).attr("y",a.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${e%O} ${n}-outer`),t.append("rect").attr("x",a.x-6).attr("y",a.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${e%O} ${n}-inner`);else if(s===p.CHERRY_PICK)t.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",10).attr("class",`commit ${r.id} ${n}`),t.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${n}`),t.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${n}`),t.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${n}`),t.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${n}`);else{const o=t.append("circle");if(o.attr("cx",a.x),o.attr("cy",a.y),o.attr("r",r.type===p.MERGE?9:10),o.attr("class",`commit ${r.id} commit${e%O}`),s===p.MERGE){const c=t.append("circle");c.attr("cx",a.x),c.attr("cy",a.y),c.attr("r",6),c.attr("class",`commit ${n} ${r.id} commit${e%O}`)}s===p.REVERSE&&t.append("path").attr("d",`M ${a.x-5},${a.y-5}L${a.x+5},${a.y+5}M${a.x-5},${a.y+5}L${a.x+5},${a.y-5}`).attr("class",`commit ${n} ${r.id} commit${e%O}`)}},"drawCommitBullet"),Sr=$((t,r,a,n,e)=>{var s;if(r.type!==p.CHERRY_PICK&&(r.customId&&r.type===p.MERGE||r.type!==p.MERGE)&&e.showCommitLabel){const o=t.append("g"),c=o.insert("rect").attr("class","commit-label-bkg"),d=o.append("text").attr("x",n).attr("y",a.y+25).attr("class","commit-label").text(r.id),h=(s=d.node())==null?void 0:s.getBBox();if(h&&(c.attr("x",a.posWithOffset-h.width/2-L).attr("y",a.y+13.5).attr("width",h.width+2*L).attr("height",h.height+2*L),x==="TB"||x==="BT"?(c.attr("x",a.x-(h.width+4*B+5)).attr("y",a.y-12),d.attr("x",a.x-(h.width+4*B)).attr("y",a.y+h.height-12)):d.attr("x",a.posWithOffset-h.width/2),e.rotateCommitLabel))if(x==="TB"||x==="BT")d.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),c.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{const f=-7.5-(h.width+10)/25*9.5,y=10+h.width/25*8.5;o.attr("transform","translate("+f+", "+y+") rotate(-45, "+n+", "+a.y+")")}}},"drawCommitLabel"),jr=$((t,r,a,n)=>{var e;if(r.tags.length>0){let s=0,o=0,c=0;const d=[];for(const h of r.tags.reverse()){const f=t.insert("polygon"),y=t.append("circle"),l=t.append("text").attr("y",a.y-16-s).attr("class","tag-label").text(h),g=(e=l.node())==null?void 0:e.getBBox();if(!g)throw new Error("Tag bbox not found");o=Math.max(o,g.width),c=Math.max(c,g.height),l.attr("x",a.posWithOffset-g.width/2),d.push({tag:l,hole:y,rect:f,yOffset:s}),s+=20}for(const{tag:h,hole:f,rect:y,yOffset:l}of d){const g=c/2,u=a.y-19.2-l;if(y.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${n-o/2-B/2},${u+L}
|
|
3
3
|
${n-o/2-B/2},${u-L}
|
|
4
4
|
${a.posWithOffset-o/2-B},${u-g-L}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as f,c as S,aB as y,an as E,aC as L,aD as w,d as m,ak as q,a0 as I,am as A,Q as B,aE as k,g as u,k as g,o as _,w as h,E as C,ab as x,p as R}from"./C6teO48Y.js";import{i as D}from"./DkX74xDd.js";function p(a,t){return a?t?(a.src!==t&&(a.src=t),a.complete&&a.naturalWidth>0?"loaded":"loading"):"error":"idle"}function M(a,{referrerPolicy:t,crossOrigin:r}={}){const s=f(!1),o=f(null),i=S(()=>s.value?(!o.value&&y&&(o.value=new window.Image),o.value):null),n=f(p(i.value,a.value)),d=l=>()=>{s.value&&(n.value=l)};return E(()=>{s.value=!0,L(l=>{const e=i.value;if(!e)return;n.value=p(e,a.value);const c=d("loaded"),v=d("error");e.addEventListener("load",c),e.addEventListener("error",v),t!=null&&t.value&&(e.referrerPolicy=t.value),typeof(r==null?void 0:r.value)=="string"&&(e.crossOrigin=r.value),l(()=>{e.removeEventListener("load",c),e.removeEventListener("error",v)})})}),w(()=>{s.value=!1}),n}var $=m({__name:"AvatarImage",props:{src:{type:String,required:!0},referrerPolicy:{type:null,required:!1},crossOrigin:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"img"}},emits:["loadingStatusChange"],setup(a,{emit:t}){const r=a,s=t,{src:o,referrerPolicy:i,crossOrigin:n}=q(r);I();const d=D(),l=M(o,{referrerPolicy:i,crossOrigin:n});return A(l,e=>{s("loadingStatusChange",e),e!=="idle"&&(d.imageLoadingStatus.value=e)},{immediate:!0}),(e,c)=>B((_(),g(u(x),{role:"img","as-child":e.asChild,as:e.as,src:u(o),referrerpolicy:u(i),crossorigin:u(n)},{default:h(()=>[C(e.$slots,"default")]),_:3},8,["as-child","as","src","referrerpolicy","crossorigin"])),[[k,u(l)==="loaded"]])}}),b=$;const F=m({__name:"AvatarImage",props:{src:{},referrerPolicy:{},crossOrigin:{},asChild:{type:Boolean},as:{}},setup(a){const t=a;return(r,s)=>(_(),g(u(b),R({"data-slot":"avatar-image"},t,{class:"aspect-square size-full"}),{default:h(()=>[C(r.$slots,"default")]),_:3},16))}});export{F as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cs as vt,ct as bt,cu as _t,cv as wt,a_ as ze,r as P,am as j,co as xt,cn as Ct,V as He,c as w,d as Q,aC as Tt,e as S,o as m,f as i,w as h,m as o,t as R,g as e,k,l as F,ai as fe,F as q,s as ye,n as H,A as he,az as St,Q as Y,aE as X,cw as kt,D as je,cx as Ot,aH as Nt,cy as $t,cz as Bt,cA as Rt,i as U,bk as Pt,aq as pe,ad as It,cm as Dt,br as Ft,an as Mt,bA as Vt,bB as Qt,bC as At,z as Ee,O as ce,J as ue,N as zt,L as de,M as Le,cB as Et,at as me,cC as Ue,ae as Lt,aT as Ut,cD as Ht}from"./C6teO48Y.js";import{_ as qe,a as Ke,c as jt}from"./CKlMKmo6.js";import{u as qt}from"./CvbYm0uB.js";import{u as Kt,a as Wt,b as Gt,c as Jt,d as Zt,e as Yt,f as Xt,g as en,h as tn,_ as nn,i as an,j as on,k as sn,l as ln,m as rn,n as cn}from"./zndqWf9s.js";import{_ as un}from"./Dpkaavgs.js";import{_ as dn}from"./DpsqSAMo.js";import{_ as mn,Q as D}from"./Cqk0ImDE.js";import{c as pn}from"./C0jXhwNq.js";import"./CCC5u9Ni.js";import{u as fn,t as yn,F as hn}from"./BWTTrGtY.js";import{_ as gn}from"./eQskTKIU.js";import{c as vn,a as bn,p as _n,b as wn}from"./BuTCm7Bo.js";import{u as xn}from"./Cv9v5fHN.js";import{f as Cn}from"./D9Ycznwo.js";import"./BHr4_sbs.js";import"./D5GonnbJ.js";import"./CMI-3q_e.js";import"./BMVgfiQu.js";import"./WGDY9i_Q.js";import"./B5rxJs06.js";import"./BzqjH2-H.js";import"./BRCvv3op.js";import"./C6K-C4_d.js";import"./BVmBXPoG.js";import"./DQRyK9Io.js";import"./soHTUlpn.js";import"./CFi6G8Aj.js";function Tn(s){return bt(_t,s)}function Sn(s){return vt(wt,s)}const kn=({containerRef:s,quickQueryFilterRef:l,quickQueryTableRef:d,isSkipShortcut:u,isViewOnly:b,onCopySelectedCell:g,onPasteRows:t,onSaveData:c,onDeleteRows:f})=>{const p=()=>!u.value,n=()=>!u.value&&!b.value;ze([{key:"meta+a",callback:()=>{var r,a;p()&&((a=(r=d.value)==null?void 0:r.gridApi)==null||a.selectAll())},excludeInput:!0,isPreventDefault:!0},{key:"meta+c",callback:()=>{p()&&g()},excludeInput:!0},{key:"meta+v",callback:()=>{p()&&t()},excludeInput:!0},{key:"meta+s",callback:()=>{n()&&c()},isPreventDefault:!0},{key:"meta+alt+backspace",callback:()=>{n()&&f()},isPreventDefault:!0}],{target:s}),ze([{key:"meta+f",callback:async()=>{var r;p()&&await((r=l.value)==null?void 0:r.onShowSearch())}}])},On=s=>{const l=P();return j(()=>{var d;return(d=s.value)==null?void 0:d.columnDefs},()=>{var d;(d=s.value)!=null&&d.columnDefs&&(l.value=s.value.columnDefs)},{immediate:!0,deep:!0}),{columns:l}},Nn=()=>{const s=P(!0);return xt(()=>{s.value=!0}),Ct(()=>{s.value=!1}),{isActiveTeleport:s}},$n=({tableName:s,schemaName:l})=>{var t;const d=He(),{data:u,status:b}=qt("/api/tables/size",{method:"POST",body:{tableName:s,dbConnectionString:(t=d.selectedConnection)==null?void 0:t.connectionString,schema:l},key:`table-size-${s}-${l}`},"$1Ta2y3cNQa");return{tableSize:w(()=>u.value||{}),status:b}},Bn={class:"gap-0 flex flex-col h-full w-full p-2"},Rn={class:"flex flex-col gap-y-1"},Pn={class:"flex items-center justify-between w-full"},In={class:"text-xs opacity-75"},Dn={class:"flex items-center justify-between gap-4"},Fn={class:"text-xs opacity-75"},Mn={class:"flex items-center justify-between gap-4"},Vn={class:"text-xs opacity-75"},Qn=["onClick"],An={class:"flex justify-between text-xs w-full overflow-hidden"},zn=["title"],En={class:"opacity-50 w-1/4 min-w-[100px] text-right"},Ln=Q({__name:"QuickQueryTableSummary",props:{tableName:{},schemaName:{},columns:{},selectedColumnFieldId:{},handleSelectColumn:{type:Function},columnTypes:{}},emits:["resetSelectedCol"],setup(s,{emit:l}){const d=l,{tableSize:u}=$n({tableName:s.tableName,schemaName:s.schemaName}),b=w(()=>{var t;return(((t=s.columns)==null?void 0:t.map(c=>{var p;const f=(p=s.columnTypes)==null?void 0:p.find(n=>n.name===c.field&&n.name);return f?{...c,type:(f==null?void 0:f.type)||""}:c}))||[]).slice(1)}),g=t=>t==="timestamp without time zone"?"timestamp":t||"";return Tt(t=>{t(()=>{s.selectedColumnFieldId!==void 0&&d("resetSelectedCol")})}),(t,c)=>{const f=qe,p=Ke,n=fe,r=he;return m(),S("div",Bn,[i(p,{class:"py-1 rounded-md"},{default:h(()=>[i(f,{class:"px-2"},{default:h(()=>[o("div",Rn,[o("div",Pn,[c[0]||(c[0]=o("span",{class:"text-xs font-medium"},"Table Size:",-1)),o("span",In,R(e(u).tableSize),1)]),o("div",Dn,[c[1]||(c[1]=o("span",{class:"text-xs font-medium"},"Data Size:",-1)),o("span",Fn,R(e(u).dataSize),1)]),o("div",Mn,[c[2]||(c[2]=o("span",{class:"text-xs font-medium"},"Index Size:",-1)),o("span",Vn,R(e(u).indexSize),1)])])]),_:1})]),_:1}),i(p,{class:"mt-1 py-2 px-1 h-full overflow-y-auto custom-scrollbar rounded-md"},{default:h(()=>[i(f,{class:"px-0"},{default:h(()=>[e(b).length===0?(m(),k(n,{key:0,title:"No columns",desc:"This table has no columns to display."})):F("",!0),(m(!0),S(q,null,ye(e(b),a=>(m(),S("div",{key:a==null?void 0:a.field,class:H(["cursor-pointer hover:bg-accent/50 rounded-sm",e(jt)(t.selectedColumnFieldId===(a==null?void 0:a.field)&&"bg-accent/90")])},[o("div",{class:"flex items-center gap-2 justify-start p-1",onClick:C=>t.handleSelectColumn(a==null?void 0:a.field)},[i(r,{name:"hugeicons:layout-3-column",class:"size-4 min-w-3"}),o("div",An,[o("span",{class:"w-3/4 truncate max-w-[220px] overflow-hidden text-ellipsis whitespace-nowrap inline-block",title:a==null?void 0:a.headerName},R((a==null?void 0:a.headerName)||""),9,zn),o("span",En,R(g(Array.isArray(a==null?void 0:a.type)?a==null?void 0:a.type.join(", "):a==null?void 0:a.type)),1)])],8,Qn)],2))),128))]),_:1})]),_:1})])}}}),Un=["for"],Hn=["for"],jn=Q({__name:"DynamicForm",props:{fields:{},validationSchema:{},class:{}},setup(s,{expose:l}){const d=s,u=fn({validationSchema:yn(d.validationSchema),name:`dynamic-form-${St()}`});return l({form:u}),(b,g)=>(m(),S("div",{class:H(d.class)},[(m(!0),S(q,null,ye(b.fields,t=>Y((m(),S("div",{key:t.name},[o("div",{class:H(["flex justify-between pb-0.5",t.titleClass])},[o("label",{class:"text-xs text-right",for:t.name},R(t.label),9,Un),o("label",{class:"text-xs text-right text-primary/80",for:t.name},R(t.type),9,Hn)],2),i(e(hn),{as:t.as,id:t.name,name:t.name,class:H(t.class),placeholder:t.placeholder},null,8,["as","id","name","class","placeholder"])])),[[X,t.isShow]])),128))],2))}}),qn={class:"p-2 pb-0"},Kn={class:"relative w-full"},Wn={class:"absolute left-1.5 top-1.5 w-4"},Gn=Q({__name:"PreviewSelectedRow",props:{columnTypes:{},selectedRow:{}},setup(s){const l=s,d=w(()=>{const n={};return l.columnTypes.forEach(r=>{const a=kt(je.POSTGRES).mapDbTypeToTsType(r.type);a==="boolean"?n[r.name]=Sn().optional():a==="number"?n[r.name]=Tn().optional():n[r.name]=Ot().optional()}),n}),u=Nt(""),b=$t(u,Bt),g=w(()=>{const n=[],r=b.value.toLowerCase().trim();return l.columnTypes.forEach(a=>{const C=a.name.toLowerCase(),B=r?C.includes(r):!0;n.push({label:a.name,type:a.type,as:gn,name:a.name,class:"px-1 py-0.5 h-fit min-h-6! text-primary/80 font-normal!",placeholder:"NULL",isShow:B})}),n}),t=w(()=>{const n=b.value.toLowerCase().trim();return n?!l.columnTypes.some(r=>r.name.toLowerCase().includes(n)):!1}),c=w(()=>Rt(d.value)),f=P(),p=n=>{const r=Object.entries(n).reduce((a,[C,B])=>(a[C]=pn(B||""),a),{});pe(()=>{var a;(a=f.value)==null||a.form.setValues(r)})};return j(()=>[l.selectedRow,f],([n])=>{n&&p(n)},{immediate:!0,deep:!0}),(n,r)=>{const a=he,C=Pt;return m(),S(q,null,[o("div",qn,[o("div",Kn,[o("div",Wn,[i(a,{name:"lucide:search",class:"stroke-3!"})]),i(C,{type:"text",placeholder:"Search fields ...",class:"pr-6 pl-6 w-full h-8",modelValue:e(u),"onUpdate:modelValue":r[0]||(r[0]=B=>U(u)?u.value=B:null)},null,8,["modelValue"]),e(u)?(m(),S("div",{key:0,class:"absolute right-2 top-1.5 w-4 cursor-pointer rounded-md hover:bg-accent",onClick:r[1]||(r[1]=B=>u.value="")},[i(a,{name:"lucide:x",class:"stroke-3! text-muted-foreground"})])):F("",!0)])]),e(t)?(m(),k(e(fe),{key:0,title:"No results",desc:"No fields match your search."})):(m(),k(jn,{key:1,ref_key:"dynamicForm",ref:f,class:"space-y-1 p-2 overflow-y-auto",fields:e(g),"validation-schema":e(c)},null,8,["fields","validation-schema"]))],64)}}}),Jn=["innerHTML"],Zn=Q({__name:"QuickQueryHistoryLogItem",props:{log:{},highlighter:{}},setup(s){const l=s,d=P("");return j([()=>l.log,()=>l.highlighter],async()=>{const u=(l.log||"").trim();l.highlighter&&(d.value=l.highlighter.codeToHtml(u,{lang:"plsql",theme:"catppuccin-latte"}))},{immediate:!0}),(u,b)=>(m(),S("div",{class:"[&_code]:text-wrap w-full [&>.catppuccin-latte]:bg-background!",innerHTML:d.value},null,8,Jn))}}),Yn={class:"flex h-full min-h-0 flex-col"},Xn={class:"flex h-8 shrink-0 items-center justify-between"},ea={class:"flex items-center gap-1"},ta={key:0,class:"flex min-h-0 flex-1 items-center justify-center w-full"},na=["data-index"],aa={class:"pb-2 leading-relaxed text-xs group"},oa={class:"flex items-center justify-between gap-2 pr-1"},sa={class:"min-w-0"},la={class:"text-xxs"},ra={class:"text-xxs"},ia=Q({__name:"QuickQueryHistoryLogsPanel",props:{tableName:{},schemaName:{}},setup(s){const l=s,d=P("all"),u=Kt(),{qqLogs:b}=It(u),{handleCopyWithKey:g,isCopied:t,getCopyIcon:c,getCopyIconClass:f,getCopyTooltip:p}=xn(),n=w(()=>d.value==="all"?b.value:u.getLogsByTableId(l)),r=P(null),a=(T,y=24)=>T.scrollHeight-T.scrollTop-T.clientHeight<=y,C=Dt({get count(){return n.value.length},getScrollElement:()=>r.value,estimateSize:()=>39,overscan:5}),B=w(()=>C.value.getVirtualItems()),ee=w(()=>C.value.getTotalSize()),K=()=>{n.value.length&&C.value.scrollToIndex(n.value.length-1)},te=T=>{T&&C.value.measureElement(T)},ne=T=>new Date(T).toLocaleString(),M=P();return Ft(async()=>{const T=vn({themes:[wn],langs:[_n],engine:bn()});M.value=await T}),Mt(async()=>{C.value&&(await pe(),K())}),j(()=>n.value.length,async()=>{if(!C.value)return;const T=!r.value||a(r.value);await pe(),T&&K()}),(T,y)=>{const W=At,V=Qt,$=Vt,N=he,A=zt,z=fe,ae=qe,E=Ke;return m(),S("div",Yn,[o("div",Xn,[i($,{modelValue:d.value,"onUpdate:modelValue":y[0]||(y[0]=_=>d.value=_),class:"pt-1"},{default:h(()=>[i(V,{size:"xs"},{default:h(()=>[i(W,{size:"xs",value:"all",class:"cursor-pointer text-primary/80"},{default:h(()=>y[2]||(y[2]=[Ee(" All logs ")])),_:1},8,["value"]),i(W,{size:"xs",value:"one-table",class:"cursor-pointer text-primary/80"},{default:h(()=>y[3]||(y[3]=[Ee(" Only this table ")])),_:1},8,["value"])]),_:1})]),_:1},8,["modelValue"]),y[8]||(y[8]=o("div",null,[o("p",{class:"font-medium text-xs"},"Logs history")],-1)),o("div",ea,[d.value==="all"?(m(),k(e(ce),{key:0},{default:h(()=>[i(e(ue),{"as-child":""},{default:h(()=>[i(A,{variant:"outline",size:"xxs",onClick:e(u).deleteAllLogs},{default:h(()=>[i(N,{name:"lucide:trash"}),y[4]||(y[4]=o("p",{class:"font-normal"},"Delete all logs",-1))]),_:1},8,["onClick"])]),_:1}),i(e(de),null,{default:h(()=>y[5]||(y[5]=[o("p",null,"Delete all logs",-1)])),_:1})]),_:1})):(m(),k(e(ce),{key:1},{default:h(()=>[i(e(ue),{"as-child":""},{default:h(()=>[i(A,{variant:"outline",size:"xxs",onClick:y[1]||(y[1]=_=>e(u).deleteLogsOfTable(l))},{default:h(()=>[i(N,{name:"lucide:trash"}),y[6]||(y[6]=o("p",{class:"font-normal"},"Delete logs",-1))]),_:1})]),_:1}),i(e(de),null,{default:h(()=>y[7]||(y[7]=[o("p",null,"Delete logs for this table",-1)])),_:1})]),_:1}))])]),n.value.length?(m(),k(E,{key:1,class:"py-0 mt-1 min-h-0 flex-1 gap-0 rounded-none shadow-none border-none overflow-hidden"},{default:h(()=>[i(ae,{class:"p-0 min-h-0 flex-1"},{default:h(()=>[o("div",{ref_key:"parentRef",ref:r,class:"h-full w-full overflow-y-auto contain-strict [overflow-anchor:none]"},[o("div",{style:Le({height:`${ee.value}px`,width:"100%",position:"relative"})},[(m(!0),S(q,null,ye(B.value,_=>(m(),S("div",{key:_.key.toString(),"data-index":_.index,ref_for:!0,ref:te,class:"[overflow-anchor:none]",style:Le({position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${_.start}px)`})},[o("div",aa,[o("div",oa,[o("div",sa,[o("span",la,"["+R(ne(n.value[_.index].createdAt))+"] ",1),o("span",ra," : "+R(e(Cn)(n.value[_.index].queryTime||0)),1)]),i(e(ce),null,{default:h(()=>[i(e(ue),{"as-child":""},{default:h(()=>[i(A,{variant:"ghost",size:"icon",class:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 focus-visible:opacity-100",onClick:L=>e(g)(n.value[_.index].id,String(n.value[_.index].logs).trim())},{default:h(()=>[(m(),k(N,{key:e(t)(n.value[_.index].id)?"tick":"copy",name:e(c)(e(t)(n.value[_.index].id)),class:H(["size-3.5",e(f)(e(t)(n.value[_.index].id))])},null,8,["name","class"]))]),_:2},1032,["onClick"])]),_:2},1024),i(e(de),null,{default:h(()=>[o("p",null,R(e(p)(e(t)(n.value[_.index].id),"Copy log")),1)]),_:2},1024)]),_:2},1024)]),i(Zn,{highlighter:M.value,log:n.value[_.index].logs},null,8,["highlighter","log"])])],12,na))),128))],4)],512)]),_:1})]),_:1})):(m(),S("div",ta,[i(z,{title:"No logs found",desc:"There are no execution logs to display for this table."})]))])}}}),ca=({quickQueryTableRef:s})=>{const l=P(void 0),d=()=>{var g,t,c,f,p,n,r;l.value=void 0,(c=(t=(g=s.value)==null?void 0:g.gridApi)==null?void 0:t.ensureIndexVisible)==null||c.call(t,0,"top"),(p=(f=s.value)==null?void 0:f.gridApi)==null||p.refreshHeader(),(r=(n=s.value)==null?void 0:n.gridApi)==null||r.refreshCells({force:!0})},u=g=>{var t,c,f,p,n,r;g&&((c=(t=s.value)==null?void 0:t.gridApi)==null||c.ensureColumnVisible(g,"middle"),(p=(f=s.value)==null?void 0:f.gridApi)==null||p.refreshCells({force:!0}),(r=(n=s.value)==null?void 0:n.gridApi)==null||r.refreshHeader())};return{resetGridState:d,selectedColumnFieldId:l,handleSelectColumn:g=>{l.value=g,u(g)}}},ua={class:"px-1"},da={class:"px-2"},ma={class:"flex-1 overflow-hidden px-1 mb-0.5"},pa={key:1,class:"h-full"},Ea=Q({__name:"QuickQuery",props:{connectionId:{},workspaceId:{},tableName:{},schemaName:{},tabViewType:{},virtualTableId:{}},setup(s){const l=s,d=Et(),u=He(),b=w(()=>{const x=u.connections.find(v=>v.id===l.connectionId);return(x==null?void 0:x.connectionString)||""}),g=w(()=>{var x;return((x=u.selectedConnection)==null?void 0:x.type)||je.POSTGRES}),t=w(()=>l.tableName),c=w(()=>l.schemaName),f=P(),{previewRelationBreadcrumbs:p,onOpenBackReferencedTableModal:n,onOpenForwardReferencedTableModal:r,onUpdateSelectedTabInBreadcrumb:a,onClearBreadcrumbs:C,onBackPreviousBreadcrumb:B,onBackPreviousBreadcrumbByIndex:ee}=Wt(),{onRequestSafeModeConfirm:K,onSafeModeCancel:te,onSafeModeConfirm:ne,safeModeDialogOpen:M,safeModeDialogSql:T,safeModeDialogType:y,isDangerous:W}=Gt(),{quickQueryFilterRef:V,quickQueryTableRef:$,selectedRows:N,focusedCell:A}=Jt(),{columnNames:z,foreignKeys:ae,primaryKeyColumns:E,tableMetaData:_,columnTypes:L,foreignKeyColumns:We,isVirtualTable:oe}=Zt({tableName:t.value,schemaName:c.value,connectionId:l.connectionId,tabViewType:l.tabViewType}),{onApplyNewFilter:ge,data:G,baseQueryString:Ge,refreshTableData:ve,refreshCount:be,isAllowNextPage:Je,isAllowPreviousPage:Ze,onNextPage:_e,onPreviousPage:we,onUpdatePagination:xe,totalRows:Ye,pagination:J,errorMessage:Ce,openErrorModal:Z,orderBy:Xe,onUpdateOrderBy:et,addHistoryLog:tt,filters:se,isShowFilters:le,onChangeComposeWith:nt,composeWith:at,isFetchingTableData:ot}=Yt({connection:me(u,"selectedConnection"),primaryKeys:E,columns:z,connectionId:w(()=>l.connectionId),workspaceId:w(()=>l.workspaceId),tableName:t.value,schemaName:c.value});j(_,x=>{x!=null&&x.columns&&x.columns.length>0&&(be(),ve())},{deep:!0,immediate:!0});const{isMutating:st,onAddEmptyRow:Te,onDiscardChanges:lt,onDeleteRows:re,onSaveData:ie,hasEditedRows:Se,pendingChangesCount:rt,onCopyRows:it,onPasteRows:ke,onRefresh:Oe,onSelectedRowsChange:ct,onCopySelectedCell:Ne,onFocusedCellChange:ut}=Xt({tableName:t.value,schemaName:c.value,primaryKeys:E,refreshTableData:ve,columnNames:z,data:G,addHistoryLog:tt,errorMessage:Ce,openErrorModal:Z,selectedRows:N,pagination:J,quickQueryTableRef:$,refreshCount:be,focusedCell:A,safeModeEnabled:me(d,"quickQuerySafeModeEnabled"),onRequestSafeModeConfirm:K,connection:me(u,"selectedConnection")}),{handleSelectColumn:dt,selectedColumnFieldId:$e,resetGridState:mt}=ca({quickQueryTableRef:$}),{quickQueryTabView:I,openedQuickQueryTab:Be}=en({onTabChanged:x=>{x!==D.Data&&d.onCloseBottomPanel()}}),{isActiveTeleport:Re}=Nn(),{onAddFilterByContextCell:pt}=rn({quickQueryFilterRef:V,quickQueryTableRef:$,columnTypes:L,filters:se,onApplyNewFilter:ge}),{isHaveRelationByFieldName:ft}=tn({schemaName:c.value,tableName:t.value}),yt=w(()=>p.value.length>0),Pe=w(()=>oe.value);kn({containerRef:f,quickQueryFilterRef:V,quickQueryTableRef:$,isSkipShortcut:yt,isViewOnly:Pe,onCopySelectedCell:Ne,onPasteRows:ke,onSaveData:ie,onDeleteRows:re});const{columns:ht}=On($);return(x,v)=>{var Ie,De,Fe,Me,Ve,Qe;const gt=Lt;return m(),S(q,null,[e(p).length?(m(),k(nn,{key:0,open:e(p).length>0,breadcrumbs:e(p),currentTableName:e(t),connectionId:x.connectionId,workspaceId:x.workspaceId,rootSchemaName:e(c),onClearBreadcrumb:e(C),onOnOpenBackReferencedTableModal:e(n),onOnOpenForwardReferencedTableModal:e(r),onOnUpdateSelectedTabInBreadcrumb:e(a),onOnBackPreviousBreadcrumb:e(B),onOnBackPreviousBreadcrumbByIndex:e(ee)},null,8,["open","breadcrumbs","currentTableName","connectionId","workspaceId","rootSchemaName","onClearBreadcrumb","onOnOpenBackReferencedTableModal","onOnOpenForwardReferencedTableModal","onOnUpdateSelectedTabInBreadcrumb","onOnBackPreviousBreadcrumb","onOnBackPreviousBreadcrumbByIndex"])):F("",!0),i(mn,{open:e(M),"onUpdate:open":v[0]||(v[0]=O=>U(M)?M.value=O:null),sql:e(T),type:e(y),dangerous:e(W),onConfirm:e(ne),onCancel:e(te)},null,8,["open","sql","type","dangerous","onConfirm","onCancel"]),e(Re)?(m(),k(Ue,{key:1,defer:"",to:"#preview-select-row"},[((Ie=e(N))==null?void 0:Ie.length)!==1||e(I)!==e(D).Data?(m(),k(Ln,{key:0,"table-name":e(t),"schema-name":e(c),columns:e(ht),columnTypes:e(L),selectedColumnFieldId:e($e),handleSelectColumn:e(dt),onResetSelectedCol:e(mt)},null,8,["table-name","schema-name","columns","columnTypes","selectedColumnFieldId","handleSelectColumn","onResetSelectedCol"])):(m(),k(Gn,{key:1,columnTypes:e(L),selectedRow:(De=e(N))!=null&&De.length?e(N)[0]:null},null,8,["columnTypes","selectedRow"]))])):F("",!0),e(Re)?(m(),k(Ue,{key:2,defer:"",to:"#bottom-panel"},[i(ia,{tableName:e(t),"schema-name":e(c)},null,8,["tableName","schema-name"])])):F("",!0),i(dn,{open:e(Z),"onUpdate:open":v[1]||(v[1]=O=>U(Z)?Z.value=O:null),message:e(Ce)||""},null,8,["open","message"]),o("div",{ref_key:"containerRef",ref:f,class:"flex flex-col h-full w-full relative",tabindex:"0"},[i(gt,{visible:e(st)||e(ot)},null,8,["visible"]),o("div",ua,[i(an,{"total-selected-rows":(Fe=e(N))==null?void 0:Fe.length,isAllowNextPage:e(Je),isAllowPreviousPage:e(Ze),totalRows:e(Ye),limit:e(J).limit,currentTotalRows:((Me=e(G))==null?void 0:Me.length)||0,offset:e(J).offset,"has-edited-rows":e(Se),"pending-changes-count":e(rt),isViewVirtualTable:e(oe),onOnPaginate:e(xe),onOnNextPage:e(_e),onOnPreviousPage:e(we),onOnRefresh:e(Oe),onOnDiscardChanges:e(lt),onOnSaveData:e(ie),onOnDeleteRows:e(re),onOnAddEmptyRow:e(Te),onOnShowFilter:v[2]||(v[2]=()=>{var O;(O=e(V))==null||O.onShowSearch()}),onOnToggleHistoryPanel:e(d).onToggleBottomPanel,tabView:e(I),"onUpdate:tabView":v[3]||(v[3]=O=>U(I)?I.value=O:null)},null,8,["total-selected-rows","isAllowNextPage","isAllowPreviousPage","totalRows","limit","currentTotalRows","offset","has-edited-rows","pending-changes-count","isViewVirtualTable","onOnPaginate","onOnNextPage","onOnPreviousPage","onOnRefresh","onOnDiscardChanges","onOnSaveData","onOnDeleteRows","onOnAddEmptyRow","onOnToggleHistoryPanel","tabView"])]),o("div",da,[e(I)===e(D).Data?(m(),k(on,{key:0,ref_key:"quickQueryFilterRef",ref:V,onOnSearch:v[4]||(v[4]=()=>{e(ge)()}),onOnUpdateFilters:v[5]||(v[5]=O=>{se.value=O}),isShowFilters:e(le),"onUpdate:isShowFilters":v[6]||(v[6]=O=>U(le)?le.value=O:null),initFilters:e(se),baseQuery:e(Ge),columns:e(z),dbType:e(g),composeWith:e(at),onOnChangeComposeWith:e(nt)},null,8,["isShowFilters","initFilters","baseQuery","columns","dbType","composeWith","onOnChangeComposeWith"])):F("",!0)]),o("div",ma,[e(Be)[e(D).Erd]?Y((m(),k(un,{key:0,tableId:e(Ut)({tableName:e(t),schemaName:e(c)})},null,8,["tableId"])),[[X,e(I)===e(D).Erd]]):F("",!0),e(Be)[e(D).Structure]?Y((m(),S("div",pa,[i(sn,{isVirtualTable:e(oe),schema:e(c),tableName:e(t),connectionString:e(b),virtualTableId:l.virtualTableId},null,8,["isVirtualTable","schema","tableName","connectionString","virtualTableId"])],512)),[[X,e(I)===e(D).Structure]]):F("",!0),Y(i(cn,{data:e(G),"total-selected-rows":e(N).length,"has-edited-rows":e(Se),cellContextMenu:(Ve=e($))==null?void 0:Ve.cellContextMenu,cellHeaderContextMenu:(Qe=e($))==null?void 0:Qe.cellHeaderContextMenu,selectedRows:e(N),"table-name":e(t),"schema-name":e(c),onOnClearContextMenu:v[7]||(v[7]=O=>{var Ae;return(Ae=e($))==null?void 0:Ae.clearCellContextMenu()}),onOnPaginate:e(xe),onOnNextPage:e(_e),onOnPreviousPage:e(we),onOnRefresh:e(Oe),onOnSaveData:e(ie),onOnDeleteRows:e(re),onOnAddEmptyRow:e(Te),onOnFilterByValue:e(pt),onOnCopyRows:e(it),onOnPasteRows:e(ke),onOnCopySelectedCell:e(Ne)},{default:h(()=>[i(ln,{class:"h-full border rounded-md",ref_key:"quickQueryTableRef",ref:$,"selected-rows":e(N),data:e(G)||[],orderBy:e(Xe),onOnSelectedRows:e(ct),"onUpdate:orderBy":e(et),onOnOpenBackReferencedTableModal:e(n),onOnOpenForwardReferencedTableModal:e(r),isHaveRelationByFieldName:e(ft),foreignKeyColumns:e(We),foreignKeys:e(ae),primaryKeyColumns:e(E),columnTypes:e(L),defaultPageSize:e(Ht),offset:e(J).offset,onOnFocusCell:e(ut),selectedColumnFieldId:e($e),"current-schema-name":e(c),"current-table-name":e(t),isViewOnly:e(Pe)},null,8,["selected-rows","data","orderBy","onOnSelectedRows","onUpdate:orderBy","onOnOpenBackReferencedTableModal","onOnOpenForwardReferencedTableModal","isHaveRelationByFieldName","foreignKeyColumns","foreignKeys","primaryKeyColumns","columnTypes","defaultPageSize","offset","onOnFocusCell","selectedColumnFieldId","current-schema-name","current-table-name","isViewOnly"])]),_:1},8,["data","total-selected-rows","has-edited-rows","cellContextMenu","cellHeaderContextMenu","selectedRows","table-name","schema-name","onOnPaginate","onOnNextPage","onOnPreviousPage","onOnRefresh","onOnSaveData","onOnDeleteRows","onOnAddEmptyRow","onOnFilterByValue","onOnCopyRows","onOnPasteRows","onOnCopySelectedCell"]),[[X,e(I)===e(D).Data]])])],512)],64)}}});export{Ea as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as o}from"./Dpkaavgs.js";import{d as r,Z as s,c as n,k as c,g as m,o as p}from"./C6teO48Y.js";import"./soHTUlpn.js";import"./CFi6G8Aj.js";import"./CvbYm0uB.js";const I=r({__name:"[tableId]",setup(u){const e=s(),t=n(()=>e.params.tableId);return(a,l)=>(p(),c(o,{tableId:m(t)},null,8,["tableId"]))}});export{I as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as _,a0 as y,k as c,o as f,w as n,E as b,a1 as C,a2 as D,g as e,a3 as N,a4 as k,a5 as z,c as u,p as M,j as $,bg as q,f as r,b8 as I,ae as R,b9 as H,ba as O,n as S,l as T,z as v,A as j,t as g,bb as F,bc as U,bd as W,be as J}from"./C6teO48Y.js";import{M as K,a as V}from"./C6K-C4_d.js";import{D as B,b as Y,a as Z,c as A}from"./BMVgfiQu.js";import{_ as G}from"./Cv9v5fHN.js";var X=_({__name:"DropdownMenuLabel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const o=a;return y(),(s,t)=>(f(),c(e(K),C(D(o)),{default:n(()=>[b(s.$slots,"default")]),_:3},16))}}),Q=X,ee=_({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const o=a;return y(),(s,t)=>(f(),c(e(V),C(D(o)),{default:n(()=>[b(s.$slots,"default")]),_:3},16))}}),ae=ee;const le=_({__name:"DropdownMenuLabel",props:{asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(a){const o=a,s=N(o,"class","inset"),t=k(s),d=z(B,u(()=>"default"));return(l,h)=>(f(),c(e(Q),M({"data-slot":"dropdown-menu-label","data-size":e(d),"data-inset":l.inset?"":void 0},e(t),{class:e($)("font-medium",e(Y)[e(d)],l.inset&&e(Z)[e(d)],o.class)}),{default:n(()=>[b(l.$slots,"default")]),_:3},16,["data-size","data-inset","class"]))}}),de=_({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(a){const o=a,s=u(()=>{const{class:d,...l}=o;return l}),t=z(B,u(()=>"default"));return(d,l)=>(f(),c(e(ae),M({"data-slot":"dropdown-menu-separator","data-size":e(t)},s.value,{class:e($)("bg-border h-px",e(A)[e(t)],o.class)}),null,16,["data-size","class"]))}});var se=(a=>(a.Data="Data",a.Structure="Structure",a.Erd="Erd",a))(se||{}),p=(a=>(a.Save="save",a.Delete="delete",a))(p||{});const ie=_({__name:"SafeModeConfirmDialog",props:{open:{type:Boolean},sql:{},type:{},loading:{type:Boolean},dangerous:{type:Boolean}},emits:["update:open","confirm","cancel"],setup(a,{emit:o}){const s=a,t=o,d=u(()=>s.dangerous?s.type===p.Save?"High-Risk: Confirm Save":"High-Risk: Confirm Delete":s.type===p.Save?"Confirm Save":"Confirm Delete"),l=u(()=>s.dangerous?"Caution: No primary key detected. To identify the record, this operation will match all columns in the WHERE clause. This carries a risk of affecting multiple rows if they share identical data. Please verify the SQL below carefully before proceeding:":s.type===p.Save?"The following SQL will be executed to save your changes:":"The following SQL will be executed to delete the selected rows:"),h=u(()=>s.type===p.Save?"Save":"Delete"),E=()=>{t("confirm"),t("update:open",!1)},L=()=>{t("cancel"),t("update:open",!1)};return(i,m)=>{const w=j,P=G;return f(),c(e(q),{open:i.open,"onUpdate:open":m[0]||(m[0]=x=>t("update:open",x))},{default:n(()=>[r(e(I),{size:"preview"},{default:n(()=>[r(e(R),{visible:!!i.loading},null,8,["visible"]),r(e(H),null,{default:n(()=>[r(e(O),{class:S(["flex items-center gap-2 text-base font-medium",{"text-destructive":i.dangerous}])},{default:n(()=>[i.dangerous?(f(),c(w,{key:0,name:"lucide:alert-triangle",class:"size-5 text-destructive"})):T("",!0),v(" "+g(e(d)),1)]),_:1},8,["class"]),r(e(F),{class:S({"text-destructive font-normal":i.dangerous})},{default:n(()=>[v(g(e(l)),1)]),_:1},8,["class"])]),_:1}),r(P,{code:i.sql,"show-copy-button":"","max-height":"24rem"},null,8,["code"]),r(e(U),null,{default:n(()=>[r(e(W),{class:"border font-normal",onClick:L},{default:n(()=>m[1]||(m[1]=[v(" Cancel ")])),_:1}),r(e(J),{class:"border font-normal flex gap-1",onClick:E},{default:n(()=>[r(w,{name:i.type===e(p).Save?"lucide:save":"lucide:trash-2",class:"size-4"},null,8,["name"]),v(" "+g(e(h)),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])}}});export{se as Q,ie as _,p as a,le as b,de as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as le}from"./
|
|
1
|
+
import{g as le}from"./BsCPQnkm.js";import{s as he}from"./BO3FEgXG.js";import{_ as l,l as C,p as de,r as ge,I as j,c as X,i as F,ay as ue,ad as pe,ae as fe,af as ye}from"./BJvJ0Hlu.js";import"./C6teO48Y.js";const E=[];for(let t=0;t<256;++t)E.push((t+256).toString(16).slice(1));function me(t,e=0){return(E[t[e+0]]+E[t[e+1]]+E[t[e+2]]+E[t[e+3]]+"-"+E[t[e+4]]+E[t[e+5]]+"-"+E[t[e+6]]+E[t[e+7]]+"-"+E[t[e+8]]+E[t[e+9]]+"-"+E[t[e+10]]+E[t[e+11]]+E[t[e+12]]+E[t[e+13]]+E[t[e+14]]+E[t[e+15]]).toLowerCase()}let Y;const Ee=new Uint8Array(16);function _e(){if(!Y){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Y=crypto.getRandomValues.bind(crypto)}return Y(Ee)}const be=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ne={randomUUID:be};function Se(t,e,n){var u;if(ne.randomUUID&&!t)return ne.randomUUID();t=t||{};const c=t.random??((u=t.rng)==null?void 0:u.call(t))??_e();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=c[6]&15|64,c[8]=c[8]&63|128,me(c)}var q=function(){var t=l(function(v,s,i,a){for(i=i||{},a=v.length;a--;i[v[a]]=s);return i},"o"),e=[1,4],n=[1,13],c=[1,12],u=[1,15],h=[1,16],p=[1,20],y=[1,19],_=[6,7,8],b=[1,26],m=[1,24],w=[1,25],N=[6,7,11],J=[1,6,13,15,16,19,22],K=[1,33],Q=[1,34],A=[1,6,7,11,13,15,16,19,22],G={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,a,o,g,r,U){var d=r.length-1;switch(g){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",r[d].id),o.addNode(r[d-1].length,r[d].id,r[d].descr,r[d].type);break;case 16:o.getLogger().trace("Icon: ",r[d]),o.decorateNode({icon:r[d]});break;case 17:case 21:o.decorateNode({class:r[d]});break;case 18:o.getLogger().trace("SPACELIST");break;case 19:o.getLogger().trace("Node: ",r[d].id),o.addNode(0,r[d].id,r[d].descr,r[d].type);break;case 20:o.decorateNode({icon:r[d]});break;case 25:o.getLogger().trace("node found ..",r[d-2]),this.$={id:r[d-1],descr:r[d-1],type:o.getType(r[d-2],r[d])};break;case 26:this.$={id:r[d],descr:r[d],type:o.nodeType.DEFAULT};break;case 27:o.getLogger().trace("node found ..",r[d-3]),this.$={id:r[d-3],descr:r[d-1],type:o.getType(r[d-2],r[d])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:n,7:[1,10],9:9,12:11,13:c,14:14,15:u,16:h,17:17,18:18,19:p,22:y},t(_,[2,3]),{1:[2,2]},t(_,[2,4]),t(_,[2,5]),{1:[2,6],6:n,12:21,13:c,14:14,15:u,16:h,17:17,18:18,19:p,22:y},{6:n,9:22,12:11,13:c,14:14,15:u,16:h,17:17,18:18,19:p,22:y},{6:b,7:m,10:23,11:w},t(N,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:p,22:y}),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,23]),t(N,[2,24]),t(N,[2,26],{19:[1,30]}),{20:[1,31]},{6:b,7:m,10:32,11:w},{1:[2,7],6:n,12:21,13:c,14:14,15:u,16:h,17:17,18:18,19:p,22:y},t(J,[2,14],{7:K,11:Q}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),{20:[1,35]},{21:[1,36]},t(J,[2,13],{7:K,11:Q}),t(A,[2,11]),t(A,[2,12]),{21:[1,37]},t(N,[2,25]),t(N,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:l(function(s){var i=this,a=[0],o=[],g=[null],r=[],U=this.table,d="",M=0,Z=0,re=2,ee=1,ae=r.slice.call(arguments,1),f=Object.create(this.lexer),T={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(T.yy[H]=this.yy[H]);f.setInput(s,T.yy),T.yy.lexer=f,T.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var $=f.yylloc;r.push($);var oe=f.options&&f.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(D){a.length=a.length-2*D,g.length=g.length-D,r.length=r.length-D}l(ce,"popStack");function te(){var D;return D=o.pop()||f.lex()||ee,typeof D!="number"&&(D instanceof Array&&(o=D,D=o.pop()),D=i.symbols_[D]||D),D}l(te,"lex");for(var S,O,k,z,I={},V,L,ie,B;;){if(O=a[a.length-1],this.defaultActions[O]?k=this.defaultActions[O]:((S===null||typeof S>"u")&&(S=te()),k=U[O]&&U[O][S]),typeof k>"u"||!k.length||!k[0]){var W="";B=[];for(V in U[O])this.terminals_[V]&&V>re&&B.push("'"+this.terminals_[V]+"'");f.showPosition?W="Parse error on line "+(M+1)+`:
|
|
2
2
|
`+f.showPosition()+`
|
|
3
3
|
Expecting `+B.join(", ")+", got '"+(this.terminals_[S]||S)+"'":W="Parse error on line "+(M+1)+": Unexpected "+(S==ee?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(W,{text:f.match,token:this.terminals_[S]||S,line:f.yylineno,loc:$,expected:B})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+S);switch(k[0]){case 1:a.push(S),g.push(f.yytext),r.push(f.yylloc),a.push(k[1]),S=null,Z=f.yyleng,d=f.yytext,M=f.yylineno,$=f.yylloc;break;case 2:if(L=this.productions_[k[1]][1],I.$=g[g.length-L],I._$={first_line:r[r.length-(L||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(L||1)].first_column,last_column:r[r.length-1].last_column},oe&&(I._$.range=[r[r.length-(L||1)].range[0],r[r.length-1].range[1]]),z=this.performAction.apply(I,[d,Z,M,T.yy,k[1],g,r].concat(ae)),typeof z<"u")return z;L&&(a=a.slice(0,-1*L*2),g=g.slice(0,-1*L),r=r.slice(0,-1*L)),a.push(this.productions_[k[1]][0]),g.push(I.$),r.push(I._$),ie=U[a[a.length-2]][a[a.length-1]],a.push(ie);break;case 3:return!0}}return!0},"parse")},se=function(){var v={EOF:1,parseError:l(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:l(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var i=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var g=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as x,d as B,c as m,e as i,m as r,f,t as g,g as t,O as I,w as d,M as z,o as s,J as L,k as v,l as w,A as N,n as b,N as S,L as $}from"./C6teO48Y.js";import{c as k}from"./BHr4_sbs.js";import{u as V}from"./BuTCm7Bo.js";function j(c=2e3){const e=x(!1),n=x({});return{copied:e,handleCopy:async o=>{await k(o),e.value=!0,setTimeout(()=>{e.value=!1},c)},copiedStates:n,handleCopyWithKey:async(o,l)=>{await k(l),n.value[o]=!0,setTimeout(()=>{n.value[o]=!1},c)},isCopied:o=>n.value[o]??!1,getCopyIcon:(o=e.value)=>o?"hugeicons:tick-02":"hugeicons:copy-01",getCopyIconClass:(o=e.value)=>o?"text-primary":"",getCopyTooltip:(o=e.value,l="Copy")=>o?"Copied!":l}}const K={class:"rounded-lg border border-border/60 bg-muted/30 overflow-hidden shadow-sm"},M={class:"flex items-center justify-between px-3 py-1 border-b border-border/40 bg-muted/50"},W={class:"text-xxs font-semibold tracking-widest uppercase text-muted-foreground select-none"},q={class:"flex items-center gap-1 justify-center"},A=["innerHTML"],E={key:1,class:"p-3 font-mono whitespace-pre leading-relaxed text-foreground/80 m-0 w-fit min-w-full chat-code-text"},X=B({__name:"CodeHighlightPreview",props:{code:{},language:{default:"sql"},showCopyButton:{type:Boolean,default:!0},maxHeight:{default:void 0},decorations:{default:()=>[]}},setup(c){const e=c,{highlight:n}=V(),p=m(()=>e.code?n(e.code,e.language,{decorations:e.decorations}):null),h=m(()=>e.maxHeight?{maxHeight:e.maxHeight,overflowY:"auto",overflowX:"auto"}:{}),{copied:a,handleCopy:y,getCopyIcon:C,getCopyIconClass:u,getCopyTooltip:o}=j(),l=async()=>{e.code&&await y(e.code)},T=m(()=>e.language.toUpperCase());return(_,J)=>{const H=N;return s(),i("div",K,[r("div",M,[r("span",W,g(T.value),1),f(t(I),null,{default:d(()=>[f(t(L),{"as-child":""},{default:d(()=>[_.showCopyButton?(s(),v(t(S),{key:0,variant:"ghost",size:"xxs",onClick:l},{default:d(()=>[r("span",q,[(s(),v(H,{key:t(a)?"tick":"copy",name:t(C)(t(a)),class:b(["size-3.5",t(u)(t(a))])},null,8,["name","class"])),t(a)?(s(),i("span",{key:0,class:b(["text-xxs font-medium leading-none",t(u)(t(a))])},"Copied",2)):w("",!0)])]),_:1})):w("",!0)]),_:1}),f(t($),null,{default:d(()=>[r("p",null,g(t(o)(t(a),"Copy code")),1)]),_:1})]),_:1})]),r("div",{style:z(h.value)},[p.value?(s(),i("div",{key:0,class:"[&>pre]:p-3 [&>pre]:font-mono [&>pre]:whitespace-pre [&>pre]:leading-relaxed [&>pre]:m-0 [&>pre]:w-fit [&>pre]:min-w-full [&>pre]:rounded-none chat-code-text",innerHTML:p.value},null,8,A)):(s(),i("pre",E,g(_.code),1))],4)])}}});export{X as _,j as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var U=Object.defineProperty;var j=(n,a,e)=>a in n?U(n,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[a]=e;var p=(n,a,e)=>j(n,typeof a!="symbol"?a+"":a,e);import{
|
|
1
|
+
var U=Object.defineProperty;var j=(n,a,e)=>a in n?U(n,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[a]=e;var p=(n,a,e)=>j(n,typeof a!="symbol"?a+"":a,e);import{bo as q,bp as T,bq as C,r as E,aH as F,at as H,aJ as V,br as L,aD as N,am as $,bs as S,bt as k,bu as I,bv as K,g as G,c as J,aF as b,au as A,bw as Q}from"./C6teO48Y.js";const W=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],X=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",v=[];class Z{constructor(){p(this,"_data",new O);p(this,"_hash",new O([...W]));p(this,"_nDataBytes",0);p(this,"_minBufferSize",0)}finalize(a){a&&this._append(a);const e=this._nDataBytes*8,s=this._data.sigBytes*8;return this._data.words[s>>>5]|=128<<24-s%32,this._data.words[(s+64>>>9<<4)+14]=Math.floor(e/4294967296),this._data.words[(s+64>>>9<<4)+15]=e,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(a,e){const s=this._hash.words;let t=s[0],r=s[1],c=s[2],y=s[3],f=s[4],m=s[5],g=s[6],i=s[7];for(let u=0;u<64;u++){if(u<16)v[u]=a[e+u]|0;else{const o=v[u-15],D=(o<<25|o>>>7)^(o<<14|o>>>18)^o>>>3,h=v[u-2],R=(h<<15|h>>>17)^(h<<13|h>>>19)^h>>>10;v[u]=D+v[u-7]+R+v[u-16]}const w=f&m^~f&g,B=t&r^t&c^r&c,P=(t<<30|t>>>2)^(t<<19|t>>>13)^(t<<10|t>>>22),l=(f<<26|f>>>6)^(f<<21|f>>>11)^(f<<7|f>>>25),_=i+l+w+X[u]+v[u],d=P+B;i=g,g=m,m=f,f=y+_|0,y=c,c=r,r=t,t=_+d|0}s[0]=s[0]+t|0,s[1]=s[1]+r|0,s[2]=s[2]+c|0,s[3]=s[3]+y|0,s[4]=s[4]+f|0,s[5]=s[5]+m|0,s[6]=s[6]+g|0,s[7]=s[7]+i|0}_append(a){typeof a=="string"&&(a=O.fromUtf8(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes}_process(a){let e,s=this._data.sigBytes/64;a?s=Math.ceil(s):s=Math.max((s|0)-this._minBufferSize,0);const t=s*16,r=Math.min(t*4,this._data.sigBytes);if(t){for(let c=0;c<t;c+=16)this._doProcessBlock(this._data.words,c);e=this._data.words.splice(0,t),this._data.sigBytes-=r}return new O(e,r)}}class O{constructor(a,e){p(this,"words");p(this,"sigBytes");a=this.words=a||[],this.sigBytes=e===void 0?a.length*4:e}static fromUtf8(a){const e=unescape(encodeURIComponent(a)),s=e.length,t=[];for(let r=0;r<s;r++)t[r>>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new O(t,s)}toBase64(){const a=[];for(let e=0;e<this.sigBytes;e+=3){const s=this.words[e>>>2]>>>24-e%4*8&255,t=this.words[e+1>>>2]>>>24-(e+1)%4*8&255,r=this.words[e+2>>>2]>>>24-(e+2)%4*8&255,c=s<<16|t<<8|r;for(let y=0;y<4&&e*8+y*6<this.sigBytes*8;y++)a.push(Y.charAt(c>>>6*(3-y)&63))}return a.join("")}concat(a){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let e=0;e<a.sigBytes;e++){const s=a.words[e>>>2]>>>24-e%4*8&255;this.words[this.sigBytes+e>>>2]|=s<<24-(this.sigBytes+e)%4*8}else for(let e=0;e<a.sigBytes;e+=4)this.words[this.sigBytes+e>>>2]=a.words[e>>>2];this.sigBytes+=a.sigBytes}}function ee(n){return new Z().finalize(n).toBase64()}function te(n){return ee(q(n))}function ae(n){return Array.isArray(n)?n:[n]}const se=n=>n==="defer"||n===!1;function re(...n){var P;const a=typeof n[n.length-1]=="string"?n.pop():void 0;typeof n[0]!="string"&&n.unshift(a);let[e,s,t={}]=n;if(typeof e!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof s!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const r=T(),c=s,y=()=>C.value,f=()=>r.isHydrating?r.payload.data[e]:r.static.data[e];t.server??(t.server=!0),t.default??(t.default=y),t.getCachedData??(t.getCachedData=f),t.lazy??(t.lazy=!1),t.immediate??(t.immediate=!0),t.deep??(t.deep=C.deep),t.dedupe??(t.dedupe="cancel");const m=t.getCachedData(e,r),g=m!=null;if(!r._asyncData[e]||!t.immediate){(P=r.payload._errors)[e]??(P[e]=C.errorValue);const l=t.deep?E:F;r._asyncData[e]={data:l(g?m:t.default()),pending:E(!g),error:H(r.payload._errors,e),status:E("idle"),_default:t.default}}const i={...r._asyncData[e]};delete i._default,i.refresh=i.execute=(l={})=>{if(r._asyncDataPromises[e]){if(se(l.dedupe??t.dedupe))return r._asyncDataPromises[e];r._asyncDataPromises[e].cancelled=!0}if(l._initial||r.isHydrating&&l._initial!==!1){const d=l._initial?m:t.getCachedData(e,r);if(d!=null)return Promise.resolve(d)}i.pending.value=!0,i.status.value="pending";const _=new Promise((d,o)=>{try{d(c(r))}catch(D){o(D)}}).then(async d=>{if(_.cancelled)return r._asyncDataPromises[e];let o=d;t.transform&&(o=await t.transform(d)),t.pick&&(o=ie(o,t.pick)),r.payload.data[e]=o,i.data.value=o,i.error.value=C.errorValue,i.status.value="success"}).catch(d=>{if(_.cancelled)return r._asyncDataPromises[e];i.error.value=K(d),i.data.value=G(t.default()),i.status.value="error"}).finally(()=>{_.cancelled||(i.pending.value=!1,delete r._asyncDataPromises[e])});return r._asyncDataPromises[e]=_,r._asyncDataPromises[e]},i.clear=()=>ne(r,e);const u=()=>i.refresh({_initial:!0}),w=t.server!==!1&&r.payload.serverRendered;{const l=V();if(l&&w&&t.immediate&&!l.sp&&(l.sp=[]),l&&!l._nuxtOnBeforeMountCbs){l._nuxtOnBeforeMountCbs=[];const o=l._nuxtOnBeforeMountCbs;L(()=>{o.forEach(D=>{D()}),o.splice(0,o.length)}),N(()=>o.splice(0,o.length))}w&&r.isHydrating&&(i.error.value||m!=null)?(i.pending.value=!1,i.status.value=i.error.value?"error":"success"):l&&(r.payload.serverRendered&&r.isHydrating||t.lazy)&&t.immediate?l._nuxtOnBeforeMountCbs.push(u):t.immediate&&u();const _=I();if(t.watch){const o=$(t.watch,()=>i.refresh());_&&S(o)}const d=r.hook("app:data:refresh",async o=>{(!o||o.includes(e))&&await i.refresh()});_&&S(d)}const B=Promise.resolve(r._asyncDataPromises[e]).then(()=>i);return Object.assign(B,i),B}async function fe(n){await new Promise(e=>k(e));const a=n?ae(n):void 0;await T().hooks.callHookParallel("app:data:refresh",a)}function ne(n,a){a in n.payload.data&&(n.payload.data[a]=void 0),a in n.payload._errors&&(n.payload._errors[a]=C.errorValue),n._asyncData[a]&&(n._asyncData[a].data.value=void 0,n._asyncData[a].error.value=C.errorValue,n._asyncData[a].pending.value=!1,n._asyncData[a].status.value="idle"),a in n._asyncDataPromises&&(n._asyncDataPromises[a]&&(n._asyncDataPromises[a].cancelled=!0),n._asyncDataPromises[a]=void 0)}function ie(n,a){const e={};for(const s of a)e[s]=n[s];return e}function de(n,a,e){const[s={},t]=typeof a=="string"?[{},a]:[a,e],r=J(()=>b(n)),c=s.key||te([t,typeof r.value=="string"?r.value:"",...oe(s)]);if(!c||typeof c!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+c);if(!n)throw new Error("[nuxt] [useFetch] request is missing.");const y=c===t?"$f"+c:c;if(!s.baseURL&&typeof r.value=="string"&&r.value[0]==="/"&&r.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:f,lazy:m,default:g,transform:i,pick:u,watch:w,immediate:B,getCachedData:P,deep:l,dedupe:_,...d}=s,o=A({...Q,...d,cache:typeof s.cache=="boolean"?void 0:s.cache}),D={server:f,lazy:m,default:g,transform:i,pick:u,immediate:B,getCachedData:P,deep:l,dedupe:_,watch:w===!1?[]:[o,r,...w||[]]};let h;return re(y,()=>{var x;(x=h==null?void 0:h.abort)==null||x.call(h,new DOMException("Request aborted as another request to the same endpoint was initiated.","AbortError")),h=typeof AbortController<"u"?new AbortController:{};const z=b(s.timeout);let M;return z&&(M=setTimeout(()=>h.abort(new DOMException("Request aborted due to timeout.","AbortError")),z),h.signal.onabort=()=>clearTimeout(M)),(s.$fetch||globalThis.$fetch)(r.value,{signal:h.signal,...o}).finally(()=>{clearTimeout(M)})},D)}function oe(n){var e;const a=[((e=b(n.method))==null?void 0:e.toUpperCase())||"GET",b(n.baseURL)];for(const s of[n.params||n.query]){const t=b(s);if(!t)continue;const r={};for(const[c,y]of Object.entries(t))r[b(c)]=b(y);a.push(r)}return a}export{fe as r,de as u};
|