orcaq 1.1.9 → 1.1.10
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/{ljX6O69y.js → -WSV_TU1.js} +1 -1
- package/.output/public/_nuxt/{DDNFAZ6A.js → 0U50G6dt.js} +1 -1
- package/.output/public/_nuxt/{Cgc3lXst.js → 0yW2dL-K.js} +1 -1
- package/.output/public/_nuxt/{DZJEpoYA.js → 1V1SIDI5.js} +1 -1
- package/.output/public/_nuxt/{CiGbpFVs.js → 24W1ftax.js} +1 -1
- package/.output/public/_nuxt/{Dcf3u1x9.js → 339BCoyy.js} +1 -1
- package/.output/public/_nuxt/{B6aTbrvX.js → 9PqzQzi0.js} +1 -1
- package/.output/public/_nuxt/{Cilp0euQ.js → 9Skr9Ccw.js} +1 -1
- package/.output/public/_nuxt/{BP23Jaxf.js → 9eKRx5AF.js} +1 -1
- package/.output/public/_nuxt/{CX2dGf8T.js → 9vfu7pKH.js} +1 -1
- package/.output/public/_nuxt/B79M7zD1.js +1 -0
- package/.output/public/_nuxt/{CAnZNTn6.js → BDw-ivE-.js} +1 -1
- package/.output/public/_nuxt/{Btu3pVWi.js → BFOjhnLA.js} +1 -1
- package/.output/public/_nuxt/{B-E4SrDA.js → BFYNB1ok.js} +1 -1
- package/.output/public/_nuxt/{DrfFcngk.js → BIBdWmGh.js} +1 -1
- package/.output/public/_nuxt/{CfglFxLQ.js → BIDVPCgr.js} +1 -1
- package/.output/public/_nuxt/{CT4V-SdE.js → BJMwGHo7.js} +1 -1
- package/.output/public/_nuxt/{B-OC4Wzf.js → BKh6DDUh.js} +1 -1
- package/.output/public/_nuxt/{CGlRJg9T.js → BLDVl9Iw.js} +1 -1
- package/.output/public/_nuxt/{DMhhDVL0.js → BNgGNFV2.js} +1 -1
- package/.output/public/_nuxt/{CjE9xodL.js → BP-G5cXp.js} +1 -1
- package/.output/public/_nuxt/{ImQ5Dcjp.js → BS966b0P.js} +1 -1
- package/.output/public/_nuxt/{BIYjBgOJ.js → B_Oy26qU.js} +1 -1
- package/.output/public/_nuxt/Bdou58NY.js +1 -0
- package/.output/public/_nuxt/{CHFYZcjC.js → BjfaOtB-.js} +1 -1
- package/.output/public/_nuxt/{Dpdssse1.js → BlngscFe.js} +1 -1
- package/.output/public/_nuxt/{DB45HoaN.js → BsXv3P9A.js} +1 -1
- package/.output/public/_nuxt/{DNL5Q-iy.js → Buh85F8i.js} +1 -1
- package/.output/public/_nuxt/{DYFx7Tau.js → Bvi2huT8.js} +1 -1
- package/.output/public/_nuxt/{W2el5otm.js → BxlUlYz1.js} +1 -1
- package/.output/public/_nuxt/{BqQfmS94.js → ByJGqBjE.js} +1 -1
- package/.output/public/_nuxt/{D8dLCNO1.js → C-M7J4rh.js} +1 -1
- package/.output/public/_nuxt/{DDgsZmht.js → C04-ICJx.js} +1 -1
- package/.output/public/_nuxt/{Ce00XEKL.js → C2Czrs1u.js} +1 -1
- package/.output/public/_nuxt/{C4zVAAUp.js → C5Feel6b.js} +1 -1
- package/.output/public/_nuxt/{jgZoykhT.js → CAVSZeVY.js} +1 -1
- package/.output/public/_nuxt/{BblWMS7J.js → CAcViJl9.js} +3 -3
- package/.output/public/_nuxt/{B2Wngdut.js → CBge6eLY.js} +1 -1
- package/.output/public/_nuxt/{lFU3Ma5J.js → CC8wYgAN.js} +1 -1
- package/.output/public/_nuxt/{yPPOBtqs.js → CEIpXOz0.js} +1 -1
- package/.output/public/_nuxt/CI85gLx4.js +1 -0
- package/.output/public/_nuxt/{CH3m0zKs.js → CJeCcjmd.js} +1 -1
- package/.output/public/_nuxt/{V_GiMERb.js → CJuYfiL1.js} +1 -1
- package/.output/public/_nuxt/{BWpduGRB.js → CNErkSjF.js} +1 -1
- package/.output/public/_nuxt/COII6plA.js +31 -0
- package/.output/public/_nuxt/{EzQMUIRl.js → CRCn6mdA.js} +1 -1
- package/.output/public/_nuxt/{w8sha2t6.js → CUtdecax.js} +1 -1
- package/.output/public/_nuxt/{CQi4GvAy.js → CYm7TuhP.js} +1 -1
- package/.output/public/_nuxt/{CM7fDldV.js → CbkolJXg.js} +1 -1
- package/.output/public/_nuxt/{DngnCd9Q.js → CeA2-eDW.js} +1 -1
- package/.output/public/_nuxt/CgY96xS_.js +1 -0
- package/.output/public/_nuxt/{BX-NC3FD.js → Ch9kUYU-.js} +1 -1
- package/.output/public/_nuxt/{DeGwWuWf.js → Ch_iEFHi.js} +1 -1
- package/.output/public/_nuxt/{D_dxq6Av.js → Co6sZiuo.js} +1 -1
- package/.output/public/_nuxt/{BlVXGJOG.js → Cu7zvuYQ.js} +1 -1
- package/.output/public/_nuxt/CwcaMelw.js +1 -0
- package/.output/public/_nuxt/{s10hyhzI.js → CxFAImHj.js} +1 -1
- package/.output/public/_nuxt/{DcIKg-oA.js → D-yya4MN.js} +29 -29
- package/.output/public/_nuxt/{CCwJzmTT.js → D0NZRXnm.js} +1 -1
- package/.output/public/_nuxt/{CB2XoHaK.js → D6XDbGbI.js} +1 -1
- package/.output/public/_nuxt/{DEBj_roB.js → D8JEzGOU.js} +1 -1
- package/.output/public/_nuxt/{DsHltPpv.js → D8wbEppA.js} +1 -1
- package/.output/public/_nuxt/{Dgh1FhxQ.js → D9h-2lVu.js} +1 -1
- package/.output/public/_nuxt/{B1ydsdXg.js → DANeHzIE.js} +1 -1
- package/.output/public/_nuxt/{C9JT2-RE.js → DBku6oAz.js} +1 -1
- package/.output/public/_nuxt/{BeMg7yb6.js → DDXEeq1n.js} +2 -2
- package/.output/public/_nuxt/DESxUB7o.js +1 -0
- package/.output/public/_nuxt/{CBy17iCN.js → DHG-KJyJ.js} +1 -1
- package/.output/public/_nuxt/DHXbNYui.js +1 -0
- package/.output/public/_nuxt/{bJGrilFb.js → DI0LPDTd.js} +1 -1
- package/.output/public/_nuxt/{RpDfSk0l.js → DKSZP8GP.js} +1 -1
- package/.output/public/_nuxt/{C1GKs4YV.js → DL1qmlP8.js} +1 -1
- package/.output/public/_nuxt/{mtBjWkj4.js → DN4-koTG.js} +1 -1
- package/.output/public/_nuxt/{Bc7Kpanq.js → DO1jmufl.js} +1 -1
- package/.output/public/_nuxt/{B9vFZSzU.js → DOuNj3Jn.js} +1 -1
- package/.output/public/_nuxt/{UowwUtRH.js → DPUO8R7l.js} +1 -1
- package/.output/public/_nuxt/{CSIDbD5d.js → DahDvheq.js} +1 -1
- package/.output/public/_nuxt/{D33qa5aT.js → DbHH7dzg.js} +1 -1
- package/.output/public/_nuxt/{DD6NieRw.js → DbehhcO7.js} +23 -23
- package/.output/public/_nuxt/{B-cBPXHS.js → DeTqfKUd.js} +1 -1
- package/.output/public/_nuxt/{C6ajLfO0.js → Df85byjM.js} +1 -1
- package/.output/public/_nuxt/{BY0VC_fp.js → DizXDCtS.js} +1 -1
- package/.output/public/_nuxt/{lPZuSUw2.js → DjKlFOO8.js} +1 -1
- package/.output/public/_nuxt/{CV3uHXW4.js → DjLd7E2v.js} +1 -1
- package/.output/public/_nuxt/{D0TQTmc_.js → DnBjpGBx.js} +1 -1
- package/.output/public/_nuxt/{BZOLz5Xw.js → DnQ4Mwo_.js} +1 -1
- package/.output/public/_nuxt/{RCyqQNC4.js → DqYakCiF.js} +1 -1
- package/.output/public/_nuxt/{BkHJ3kuB.js → DqunUhPG.js} +1 -1
- package/.output/public/_nuxt/{DdjYB9eX.js → Dr1ZFb1n.js} +1 -1
- package/.output/public/_nuxt/Dsis422h.js +1 -0
- package/.output/public/_nuxt/{BorA7uj6.js → Du_4PNZI.js} +1 -1
- package/.output/public/_nuxt/{BgFbw5aK.js → DvTZ16yM.js} +1 -1
- package/.output/public/_nuxt/{QZbgg6bx.js → Dvt9REJL.js} +1 -1
- package/.output/public/_nuxt/{DghZRCwT.js → DxMpy-ot.js} +1 -1
- package/.output/public/_nuxt/{CqwK0iC2.js → DyLnyCs4.js} +1 -1
- package/.output/public/_nuxt/{BcbezgEJ.js → FakvzamF.js} +1 -1
- package/.output/public/_nuxt/LcPL138_.js +1 -0
- package/.output/public/_nuxt/{C0kVUAwR.js → P7T0pdFZ.js} +1 -1
- package/.output/public/_nuxt/{CM4UzWO5.js → Rhi-lAfN.js} +1 -1
- package/.output/public/_nuxt/{CwEAH09c.js → S7ftI9sn.js} +1 -1
- package/.output/public/_nuxt/{C4fd0pgB.js → T01BrTsW.js} +1 -1
- package/.output/public/_nuxt/{CmROOZW3.js → WqpfmT0s.js} +1 -1
- package/.output/public/_nuxt/XhSVj1eQ.js +16 -0
- package/.output/public/_nuxt/{D6FGhPpz.js → _fXjN5Pd.js} +1 -1
- package/.output/public/_nuxt/{CvFBHqKj.js → agpUpIJe.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/39c2c89f-bb28-470e-b95a-b7776149dc9f.json +1 -0
- package/.output/public/_nuxt/{CsRqTS8p.js → dDyWVWO8.js} +1 -1
- package/.output/public/_nuxt/entry.BeX6Jkel.css +1 -0
- package/.output/public/_nuxt/{Ck7gJ0Ru.js → f6qCSD-K.js} +1 -1
- package/.output/public/_nuxt/{CRtMS55w.js → goG5gpyv.js} +1 -1
- package/.output/public/_nuxt/{B3ZoiMh5.js → hbGkF-4Z.js} +1 -1
- package/.output/public/_nuxt/{CkVRbNxk.js → jDSo3fNb.js} +1 -1
- package/.output/public/_nuxt/{CvrjITPr.js → k4d17TZz.js} +1 -1
- package/.output/public/_nuxt/{FrxNy5Hb.js → m4Dxzyfa.js} +2 -2
- package/.output/public/_nuxt/{Dzy2Amcc.js → ndyknmtb.js} +4 -4
- package/.output/public/_nuxt/{DuvFgQqu.js → vIV0z0PD.js} +1 -1
- package/.output/public/_nuxt/{DI-I25kb.js → wTs8ybMd.js} +1 -1
- package/.output/public/_nuxt/{Ds4LpS8e.js → ymlmmOzU.js} +1 -1
- package/.output/server/chunks/_/tables.factory.mjs +133 -43
- package/.output/server/chunks/_/tables.factory.mjs.map +1 -1
- package/.output/server/chunks/build/client.manifest.mjs +817 -806
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +701 -694
- package/.output/server/package.json +1 -1
- package/package.json +1 -1
- package/.output/public/_nuxt/B3jyHGmo.js +0 -1
- package/.output/public/_nuxt/BFxd7ZWZ.js +0 -1
- package/.output/public/_nuxt/BI0OYmAG.js +0 -1
- package/.output/public/_nuxt/BMwuBt1W.js +0 -1
- package/.output/public/_nuxt/Cv8aMucD.js +0 -31
- package/.output/public/_nuxt/DA2L1Ivx.js +0 -1
- package/.output/public/_nuxt/DBIf1geQ.js +0 -1
- package/.output/public/_nuxt/DX42Brjy.js +0 -1
- package/.output/public/_nuxt/DYBPW385.js +0 -1
- package/.output/public/_nuxt/builds/meta/657bdee4-fa56-4862-bc13-309345429302.json +0 -1
- package/.output/public/_nuxt/entry.CQwtqNMg.css +0 -1
- package/.output/public/_nuxt/ngeX9iiO.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ar as m,D as a,_ as f,as as ie,W as le,X as r,at as N,r as E,au as G,av as y,aw as B,ax as T,h as ce,i as v,a8 as ue,am as O,ay as de,az as he,aA as D}from"./
|
|
1
|
+
import{ar as m,D as a,_ as f,as as ie,W as le,X as r,at as N,r as E,au as G,av as y,aw as B,ax as T,h as ce,i as v,a8 as ue,am as O,ay as de,az as he,aA as D}from"./DbehhcO7.js";const Se=[{type:a.POSTGRES,name:"PostgreSQL",icon:m(f,{name:"logos:postgresql"}),isSupport:!0,description:"Relational SQL workflows"},{type:a.MYSQL,name:"MySQL",icon:m(f,{name:"logos:mysql"}),isSupport:!0,isBeta:!0,description:"Relational SQL workflows"},{type:a.MARIADB,name:"MariaDB",icon:m(f,{name:"logos:mariadb-icon"}),isSupport:!0,isBeta:!0,description:"Relational SQL workflows"},{type:a.ORACLE,name:"Oracle",icon:m(f,{name:"simple-icons:oracle",class:"text-red-500"}),isSupport:!1,unsupportedLabel:"Coming soon",description:"Relational SQL workflows"},{type:a.SQLITE3,name:"SQLite",icon:m(f,{name:"file-icons:sqlite"}),isSupport:!0,isBeta:!0,description:"Local file, Cloudflare D1, Turso"},{type:a.REDIS,name:"Redis",icon:m(f,{name:"logos:redis"}),isSupport:!0,isBeta:!0,description:"Browser, workbench, analysis"},{type:a.MSSQL,name:"SQL Server",icon:m(f,{name:"simple-icons:microsoftsqlserver"}),isSupport:!1,unsupportedLabel:"Coming soon"},{type:a.SNOWFLAKE,name:"Snowflake",icon:m(f,{name:"simple-icons:snowflake"}),isSupport:!1,unsupportedLabel:"Coming soon"}],ve={[a.MYSQL2]:a.MYSQL,[a.BETTER_SQLITE3]:a.SQLITE3},pe={[a.POSTGRES]:"5432",[a.MYSQL]:"3306",[a.MARIADB]:"3306",[a.MYSQL2]:"3306",[a.REDIS]:"6379",[a.MSSQL]:"1433",[a.ORACLE]:"1521",[a.BETTER_SQLITE3]:"0",[a.SQLITE3]:"0",[a.SNOWFLAKE]:"443"},Te=t=>{const u=ve[t]??t;return Se.find(d=>d.type===u)},Re=t=>t!==!1&&t!=="false"&&t!=="0",we=(t,u)=>t.type===a.SQLITE3&&!u;function me(t){const u=ie({type:t.type,method:t.method,providerKind:"providerKind"in t?t.providerKind:void 0,managedSqlite:"managedSqlite"in t?t.managedSqlite:void 0}),d=le({type:t.type,method:t.method,providerKind:u,managedSqlite:"managedSqlite"in t?t.managedSqlite:void 0});return t.method===r.MANAGED?{...t,providerKind:u,family:d}:{...t,providerKind:u,family:d}}const fe={healthCheck:t=>$fetch("/api/managment-connection/health-check",{method:"POST",body:me(t)})},Ee=new Set([r.STRING,r.FORM]),_=t=>t?t===a.SQLITE3?[r.FILE,r.MANAGED]:[r.STRING,r.FORM]:[],w=()=>({provider:T.CLOUDFLARE_D1,accountId:"",databaseId:"",databaseName:"",apiToken:"",url:"",authToken:"",branchName:""}),Y=t=>t===T.TURSO?D.TURSO:D.CLOUDFLARE_D1,ge=t=>t===a.ORACLE?"serviceName":"database",Le=t=>{switch(t){case a.POSTGRES:return"postgresql";case a.MARIADB:return"mariadb";case a.ORACLE:return"oracledb";case a.REDIS:return"redis";case a.SNOWFLAKE:return"snowflake";case a.MYSQL:case a.MYSQL2:return"mysql";default:return""}},be=t=>{const u=t.replace(/\\/g,"/");return`sqlite3://${u.startsWith("/")?"":"/"}${u}`},Ie=t=>{const u=t.split(/[\\/]/).pop()||"";return u.replace(/\.(sqlite3?|db3?)$/i,"")||u};function Ae(t){const u=N(t.open),d=N(t.editingConnection),$=N(t.workspaceId),b=E(1),c=E(a.POSTGRES),g=E("my-abc-db"),l=E(r.STRING),I=E(""),e=G({host:"",port:"",username:"",password:"",database:"",serviceName:"",filePath:"",sslEnabled:!1,sslMode:B.DISABLE,sslCA:"",sslCert:"",sslKey:"",sslRejectUnauthorized:!0,sshEnabled:!1,sshHost:"",sshPort:22,sshUsername:"",sshAuthMethod:y.PASSWORD,sshPassword:"",sshPrivateKey:"",sshStoreInKeychain:!0,sshUseKey:!1}),i=G(w()),A=E([]),h=E("idle"),p=E(""),j=ce(),W=v(()=>_(c.value)),C=v(()=>ue()),z=v(()=>l.value===r.FILE),K=v(()=>{var n;return c.value===a.SQLITE3&&C.value&&typeof window<"u"&&typeof((n=window.electronAPI)==null?void 0:n.window.pickSqliteFile)=="function"}),R=v(()=>ge(c.value)==="serviceName"),H=v(()=>R.value?"Service Name":"Database"),x=v(()=>R.value?"ORCLPDB1":"my_database"),M=v(()=>Ee.has(l.value)),L=n=>n&&pe[n]||"",V=()=>{const n=j.tags.find(o=>o.name==="dev");return n?[n.id]:[]},X=()=>{if(!(!e.sslEnabled||!M.value))return{mode:e.sslMode,ca:e.sslCA,cert:e.sslCert,key:e.sslKey,rejectUnauthorized:e.sslRejectUnauthorized}},J=()=>{if(!(!e.sshEnabled||!M.value))return{enabled:!0,host:e.sshHost,port:e.sshPort,username:e.sshUsername,authMethod:e.sshUseKey?y.KEY:y.PASSWORD,password:e.sshPassword,privateKey:e.sshPrivateKey,storeInKeychain:e.sshStoreInKeychain,useSshKey:e.sshUseKey}},k=()=>{const n={host:e.host,port:e.port||L(c.value),username:e.username,password:e.password,ssl:X(),ssh:J()};return R.value?n.serviceName=e.serviceName:n.database=e.database,n},q=()=>i.provider===T.TURSO?{provider:T.TURSO,url:i.url,authToken:i.authToken,branchName:i.branchName}:{provider:T.CLOUDFLARE_D1,accountId:i.accountId,databaseId:i.databaseId,databaseName:i.databaseName,apiToken:i.apiToken},Z=()=>{const n=Le(c.value),o=e.port||L(c.value),s=R.value?e.serviceName:e.database;if(!n||!e.host||!e.username||!s)return;const P=e.password?`${e.username}:${e.password}`:e.username;return`${n}://${P}@${e.host}${o?`:${o}`:""}/${s}`},ee=()=>{const n=c.value;if(!n)throw new Error("Database type is required.");return l.value===r.STRING?{type:n,method:r.STRING,stringConnection:I.value}:l.value===r.FILE?{type:a.SQLITE3,method:r.FILE,filePath:e.filePath}:l.value===r.MANAGED?{type:a.SQLITE3,method:r.MANAGED,providerKind:Y(i.provider),managedSqlite:q()}:{type:n,method:r.FORM,...k()}},Q=()=>{b.value=1,c.value=a.POSTGRES,g.value="my-abc-db",l.value=r.STRING,I.value="",e.host="",e.port=L(a.POSTGRES),e.username="",e.password="",e.database="",e.serviceName="",e.filePath="",e.sslEnabled=!1,e.sslMode=B.DISABLE,e.sslCA="",e.sslCert="",e.sslKey="",e.sslRejectUnauthorized=!0,e.sshEnabled=!1,e.sshHost="",e.sshPort=22,e.sshUsername="",e.sshAuthMethod=y.PASSWORD,e.sshPassword="",e.sshPrivateKey="",e.sshStoreInKeychain=!0,e.sshUseKey=!1,Object.assign(i,w()),A.value=V(),h.value="idle",p.value=""},se=()=>{b.value===1&&c.value&&(b.value=2)},ae=()=>{b.value=1,h.value="idle",p.value=""},F=async()=>{var n;if(l.value===r.FILE&&!C.value)return h.value="error",p.value="SQLite file connections are available only in the desktop app.",!1;h.value="testing",p.value="";try{const o=await fe.healthCheck(ee());return o.isConnectedSuccess?(h.value="success",p.value="",!0):(h.value="error",p.value=o.message||"Connection failed. Please check your details and try again.",!1)}catch(o){return h.value="error",p.value=((n=o==null?void 0:o.data)==null?void 0:n.message)||(o==null?void 0:o.message)||"Connection failed. Please check your details and try again.",!1}},te=async()=>{var P,U;const o=!!!d.value;if(o&&!await F())return;const s={workspaceId:$.value,id:((P=d.value)==null?void 0:P.id)||he(),name:g.value,type:c.value,method:l.value,createdAt:((U=d.value)==null?void 0:U.createdAt)||de().toISOString(),tagIds:[...A.value]};if(l.value===r.STRING)s.connectionString=I.value;else if(l.value===r.FILE)s.filePath=e.filePath,s.connectionString=be(e.filePath),s.providerKind=D.SQLITE_FILE;else if(l.value===r.MANAGED)s.providerKind=Y(i.provider),s.managedSqlite=q();else{const S=k();s.host=S.host,s.port=S.port,s.username=S.username,s.password=S.password,s.database=S.database,s.serviceName=S.serviceName,s.ssl=S.ssl,s.ssh=S.ssh,s.connectionString=Z()}o?t.onAddNew(s):t.onUpdate(s),t.onClose()},ne=()=>{switch(c.value){case a.POSTGRES:return"postgresql://username:password@localhost:5432/database";case a.MYSQL:case a.MYSQL2:return"mysql://username:password@localhost:3306/database";case a.MARIADB:return"mariadb://username:password@localhost:3306/database";case a.ORACLE:return"oracledb://username:password@localhost:1521/ORCLPDB1";case a.REDIS:return"redis://username:password@localhost:6379";case a.SNOWFLAKE:return"snowflake://username:password@account.snowflakecomputing.com:443/database";case a.SQLITE3:return"/Users/you/data/app.sqlite";default:return""}},oe=async()=>{var o;if(!K.value)return;const n=await((o=window.electronAPI)==null?void 0:o.window.pickSqliteFile());n&&(e.filePath=n,!d.value&&g.value==="my-abc-db"&&(g.value=Ie(n)),h.value="idle")},re=v(()=>g.value?l.value===r.STRING?!!I.value:l.value===r.FILE?C.value&&!!e.filePath:l.value===r.MANAGED?i.provider===T.TURSO?!!(i.url&&i.authToken):!!(i.accountId&&i.databaseId&&i.apiToken):R.value?!!(e.host&&(e.port||L(c.value))&&e.username&&e.password&&e.serviceName):!!(e.host&&(e.port||L(c.value))&&e.username&&e.database):!1);return O(c,n=>{const o=_(n);o.length>0&&!o.includes(l.value)&&(l.value=o[0]),n===a.SQLITE3?(e.host="",e.port="",e.username="",e.password="",e.database="",e.serviceName="",e.sslEnabled=!1,e.sshEnabled=!1):(e.filePath="",Object.assign(i,w()),n!==a.ORACLE&&(e.serviceName=""),d.value||(e.port=L(n))),h.value="idle"}),O(l,n=>{n!==r.FILE&&(e.filePath=""),n!==r.MANAGED&&Object.assign(i,w()),h.value="idle"}),O(u,n=>{var o;if(n)if(d.value){const s=d.value;g.value=s.name,c.value=s.type,l.value=s.method,I.value=s.connectionString||"",e.host=s.host||"",e.port=s.port||"",e.username=s.username||"",e.password=s.password||"",e.database=s.database||"",e.serviceName=s.serviceName||"",e.filePath=s.filePath||"",Object.assign(i,{...w(),...s.managedSqlite??{}}),e.sslEnabled=!!s.ssl,s.ssl&&(e.sslMode=s.ssl.mode,e.sslCA=s.ssl.ca||"",e.sslCert=s.ssl.cert||"",e.sslKey=s.ssl.key||"",e.sslRejectUnauthorized=s.ssl.rejectUnauthorized??!0),e.sshEnabled=!!((o=s.ssh)!=null&&o.enabled),s.ssh&&(e.sshHost=s.ssh.host||"",e.sshPort=s.ssh.port||22,e.sshUsername=s.ssh.username||"",e.sshAuthMethod=s.ssh.authMethod||y.PASSWORD,e.sshPassword=s.ssh.password||"",e.sshPrivateKey=s.ssh.privateKey||"",e.sshStoreInKeychain=s.ssh.storeInKeychain??!0,e.sshUseKey=s.ssh.useSshKey??s.ssh.authMethod===y.KEY),A.value=[...s.tagIds??[]],b.value=2}else Q()},{immediate:!0}),{step:b,dbType:c,connectionName:g,connectionMethod:l,connectionString:I,formData:e,managedSqlite:i,tagIds:A,testStatus:h,testErrorMessage:p,handleNext:se,handleBack:ae,handleTestConnection:F,handleCreateConnection:te,getDefaultPort:()=>L(c.value),getConnectionPlaceholder:ne,availableConnectionMethods:W,structuredTargetLabel:H,structuredTargetPlaceholder:x,canUseNetworkOptions:M,canPickSqliteFile:K,isFileMethod:z,isFormValid:re,pickSqliteFile:oe,resetForm:Q}}export{we as a,Se as d,Te as g,Re as i,Ae as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aC as re,d as Q,ak as Ee,al as Ie,bV as dt,a0 as qe,r as H,i as Y,am as Ce,aa as ft,q as ee,o as J,w as te,E as de,u as P,M as Fe,ab as _e,dv as pt,an as mt,aD as vt,dw as ht,a3 as gt,bJ as Ae,c as yt,b as zt,s as Re,p as Te}from"./DD6NieRw.js";const fe=typeof document<"u";function b(e,t="Assertion failed!"){if(!e)throw console.error(t),new Error(t)}function Oe(e,t=document){var a;if(!fe)return null;if(t instanceof HTMLElement&&((a=t==null?void 0:t.dataset)==null?void 0:a.panelGroupId)===e)return t;const n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function ye(e,t=document){if(!fe)return null;const n=t.querySelector(`[data-panel-resize-handle-id="${e}"]`);return n||null}function Ve(e,t,n=document){return fe?se(e,n).findIndex(l=>l.getAttribute("data-panel-resize-handle-id")===t)??null:null}function se(e,t=document){return fe?Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`)):[]}function St(e,t,n,a=document){var p,m;const r=ye(t,a),l=se(e,a),o=r?l.indexOf(r):-1,i=((p=n[o])==null?void 0:p.id)??null,c=((m=n[o+1])==null?void 0:m.id)??null;return[i,c]}function Ke(e){return e.type==="keydown"}function je(e){return e.type.startsWith("mouse")}function Xe(e){return e.type.startsWith("touch")}function ze(e){if(je(e))return{x:e.clientX,y:e.clientY};if(Xe(e)){const t=e.touches[0];if(t&&t.clientX&&t.clientY)return{x:t.clientX,y:t.clientY}}return{x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY}}function We(e,t){const n=e==="horizontal",{x:a,y:r}=ze(t);return n?a:r}function bt(e,t,n,a,r){const l=n==="horizontal",o=ye(t,r);b(o);const i=o.getAttribute("data-panel-group-id");b(i);const{initialCursorPosition:c}=a,p=We(n,e),m=Oe(i,r);b(m);const u=m.getBoundingClientRect(),v=l?u.width:u.height;return(p-c)/v*100}function xt(e,t,n,a,r,l){if(Ke(e)){const o=n==="horizontal";let i=0;e.shiftKey?i=100:i=r??10;let c=0;switch(e.key){case"ArrowDown":c=o?0:i;break;case"ArrowLeft":c=o?-i:0;break;case"ArrowRight":c=o?i:0;break;case"ArrowUp":c=o?0:-i;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return a==null?0:bt(e,t,n,a,l)}function wt({layout:e,panelsArray:t,pivotIndices:n}){let a=0,r=100,l=0,o=0;const i=n[0];b(i!=null),t.forEach((u,v)=>{const{constraints:h}=u,{maxSize:g=100,minSize:w=0}=h;v===i?(a=w,r=g):(l+=w,o+=g)});const c=Math.min(r,100-l),p=Math.max(a,100-o),m=e[i];return{valueMax:c,valueMin:p,valueNow:m}}function Et({panelDataArray:e}){const t=Array.from({length:e.length}),n=e.map(l=>l.constraints);let a=0,r=100;for(let l=0;l<e.length;l++){const o=n[l];b(o);const{defaultSize:i}=o;i!=null&&(a++,t[l]=i,r-=i)}for(let l=0;l<e.length;l++){const o=n[l];b(o);const{defaultSize:i}=o;if(i!=null)continue;const c=e.length-a,p=r/c;a++,t[l]=p,r-=p}return t}function le(e,t,n){t.forEach((a,r)=>{const l=e[r];b(l);const{callbacks:o,constraints:i,id:c}=l,{collapsedSize:p=0,collapsible:m}=i,u=n[c];if(u==null||a!==u){n[c]=a;const{onCollapse:v,onExpand:h,onResize:g}=o;g&&g(a,u),m&&(v||h)&&(h&&(u==null||u===p)&&a!==p&&h(),v&&(u==null||u!==p)&&a===p&&v())}})}function Pt(e,t=10){let n=null;return(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}const Le=10;function ue(e,t,n=Le){e=Number.parseFloat(e.toFixed(n)),t=Number.parseFloat(t.toFixed(n));const a=e-t;return a===0?0:a>0?1:-1}function D(e,t,n){return ue(e,t,n)===0}function Z({panelConstraints:e,panelIndex:t,size:n}){const a=e[t];b(a!=null);const{collapsedSize:r=0,collapsible:l,maxSize:o=100,minSize:i=0}=a;if(ue(n,i)<0)if(l){const c=(r+i)/2;ue(n,c)<0?n=r:n=i}else n=i;return n=Math.min(o,n),n=Number.parseFloat(n.toFixed(Le)),n}function ve(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function oe({delta:e,layout:t,panelConstraints:n,pivotIndices:a,trigger:r}){if(D(e,0))return t;const l=[...t],[o,i]=a;b(o!=null),b(i!=null);let c=0;if(r==="keyboard"){{const m=e<0?i:o,u=n[m];if(b(u),u.collapsible){const v=t[m];b(v!=null);const h=n[m];b(h);const{collapsedSize:g=0,minSize:w=0}=h;if(D(v,g)){const d=w-v;ue(d,Math.abs(e))>0&&(e=e<0?0-d:d)}}}{const m=e<0?o:i,u=n[m];b(u);const{collapsible:v}=u;if(v){const h=t[m];b(h!=null);const g=n[m];b(g);const{collapsedSize:w=0,minSize:d=0}=g;if(D(h,d)){const x=h-w;ue(x,Math.abs(e))>0&&(e=e<0?0-x:x)}}}}{const m=e<0?1:-1;let u=e<0?i:o,v=0;for(;;){const g=t[u];b(g!=null);const d=Z({panelConstraints:n,panelIndex:u,size:100})-g;if(v+=d,u+=m,u<0||u>=n.length)break}const h=Math.min(Math.abs(e),Math.abs(v));e=e<0?0-h:h}{let u=e<0?o:i;for(;u>=0&&u<n.length;){const v=Math.abs(e)-Math.abs(c),h=t[u];b(h!=null);const g=h-v,w=Z({panelConstraints:n,panelIndex:u,size:g});if(!D(h,w)&&(c+=h-w,l[u]=w,c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?u--:u++}}if(D(c,0))return t;{const m=e<0?i:o,u=t[m];b(u!=null);const v=u+c,h=Z({panelConstraints:n,panelIndex:m,size:v});if(l[m]=h,!D(h,v)){let g=v-h,d=e<0?i:o;for(;d>=0&&d<n.length;){const x=l[d];b(x!=null);const N=x+g,R=Z({panelConstraints:n,panelIndex:d,size:N});if(D(x,R)||(g-=R-x,l[d]=R),D(g,0))break;e>0?d--:d++}}}const p=l.reduce((m,u)=>u+m,0);return D(p,100)?l:t}function Ue(e,t,n){const a=Ve(e,t,n);return a!=null?[a,a+1]:[-1,-1]}function It(e,t,n){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Ct(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Ge(e),b:Ge(t)};let a;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),a=e;b(a);const r={a:Be(Ne(n.a)),b:Be(Ne(n.b))};if(r.a===r.b){const l=a.childNodes,o={a:n.a.at(-1),b:n.b.at(-1)};let i=l.length;for(;i--;){const c=l[i];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(r.a-r.b)}const _t=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function At(e){const t=getComputedStyle(Je(e)).display;return t==="flex"||t==="inline-flex"}function Rt(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||At(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||_t.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Ne(e){let t=e.length;for(;t--;){const n=e[t];if(b(n),Rt(n))return n}return null}function Be(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Ge(e){const t=[];for(;e;)t.push(e),e=Je(e);return t}function Je(e){var t;return e.parentNode instanceof DocumentFragment&&((t=e.parentNode)==null?void 0:t.host)||e.parentNode}const Ye=1,Ze=2,Qe=4,et=8;function Lt(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}const kt=Lt()==="coarse",j=[];let Se=!1;const V=new Map,be=new Map,ce=new Set;function Mt(e,t,n,a,r,l){const{ownerDocument:o}=t,i={direction:n,element:t,hitAreaMargins:a,nonce:r,setResizeHandlerState:l},c=V.get(o)??0;return V.set(o,c+1),ce.add(i),ge(),function(){be.delete(e),ce.delete(i);const m=V.get(o)??1;V.set(o,m-1),ge(),nt(),m===1&&V.delete(o)}}function he(e){const{target:t}=e,{x:n,y:a}=ze(e);Se=!0,ke({target:t,x:n,y:a}),ge(),j.length>0&&(Me("down",e),e.preventDefault())}function T(e){const{x:t,y:n}=ze(e);if(!Se){const{target:a}=e;ke({target:a,x:t,y:n})}Me("move",e),tt(),j.length>0&&e.preventDefault()}function O(e){const{target:t}=e,{x:n,y:a}=ze(e);be.clear(),Se=!1,j.length>0&&e.preventDefault(),Me("up",e),ke({target:t,x:n,y:a}),tt(),ge()}function ke({target:e,x:t,y:n}){j.splice(0);let a=null;e instanceof HTMLElement&&(a=e),ce.forEach(r=>{const{element:l,hitAreaMargins:o}=r,i=l.getBoundingClientRect(),{bottom:c,left:p,right:m,top:u}=i,v=kt?o.coarse:o.fine;if(t>=p-v&&t<=m+v&&n>=u-v&&n<=c+v){if(a!==null&&l!==a&&!l.contains(a)&&!a.contains(l)&&Ct(a,l)>0){let g=a,w=!1;for(;g&&!g.contains(l);){if(It(g.getBoundingClientRect(),i)){w=!0;break}g=g.parentElement}if(w)return}j.push(r)}})}function xe(e,t){be.set(e,t)}function tt(){let e=!1,t=!1,n;j.forEach(r=>{const{direction:l,nonce:o}=r;l.value==="horizontal"?e=!0:t=!0,n=o.value});let a=0;be.forEach(r=>{a|=r}),e&&t?we("intersection",a,n):e?we("horizontal",a,n):t?we("vertical",a,n):nt()}function ge(){V.forEach((e,t)=>{const{body:n}=t;n.removeEventListener("contextmenu",O),n.removeEventListener("mousedown",he),n.removeEventListener("mouseleave",T),n.removeEventListener("mousemove",T),n.removeEventListener("touchmove",T),n.removeEventListener("touchstart",he)}),window.removeEventListener("mouseup",O),window.removeEventListener("touchcancel",O),window.removeEventListener("touchend",O),ce.size>0&&(Se?(j.length>0&&V.forEach((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("contextmenu",O),n.addEventListener("mouseleave",T),n.addEventListener("mousemove",T),n.addEventListener("touchmove",T,{passive:!1}))}),window.addEventListener("mouseup",O),window.addEventListener("touchcancel",O),window.addEventListener("touchend",O)):V.forEach((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("mousedown",he),n.addEventListener("mousemove",T),n.addEventListener("touchmove",T,{passive:!1}),n.addEventListener("touchstart",he))}))}function Me(e,t){ce.forEach(n=>{const{setResizeHandlerState:a}=n,r=j.includes(n);a(e,r,t)})}let Pe=null,K=null;function $t(e,t){if(t){const n=(t&Ye)!==0,a=(t&Ze)!==0,r=(t&Qe)!==0,l=(t&et)!==0;if(n)return r?"se-resize":l?"ne-resize":"e-resize";if(a)return r?"sw-resize":l?"nw-resize":"w-resize";if(r)return"s-resize";if(l)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function nt(){K!==null&&(document.head.removeChild(K),Pe=null,K=null)}function we(e,t,n){const a=$t(e,t);Pe!==a&&(Pe=a,K===null&&(K=document.createElement("style"),n&&(K.nonce=n),document.head.appendChild(K)),K.innerHTML=`*{cursor: ${a}!important;}`)}function Dt({defaultSize:e,dragState:t,layout:n,panelData:a,panelIndex:r,precision:l=3}){const o=n[r];let i;return o==null?i=e!==void 0?e.toPrecision(l):"1":a.length===1?i="1":i=o.toPrecision(l),{flexBasis:0,flexGrow:i,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function Nt({layout:e,panelConstraints:t}){const n=[...e],a=n.reduce((l,o)=>l+o,0);if(n.length!==t.length)throw new Error(`Invalid ${t.length} panel layout: ${n.map(l=>`${l}%`).join(", ")}`);if(!D(a,100)){console.warn(`WARNING: Invalid layout total size: ${n.map(l=>`${l}%`).join(", ")}. Layout normalization will be applied.`);for(let l=0;l<t.length;l++){const o=n[l];b(o!=null);const i=100/a*o;n[l]=i}}let r=0;for(let l=0;l<t.length;l++){const o=n[l];b(o!=null);const i=Z({panelConstraints:t,panelIndex:l,size:o});o!==i&&(r+=o-i,n[l]=i)}if(!D(r,0))for(let l=0;l<t.length;l++){const o=n[l];b(o!=null);const i=o+r,c=Z({panelConstraints:t,panelIndex:l,size:i});if(o!==c&&(r-=c-o,n[l]=c,D(r,0)))break}return n}function Bt({eagerValuesRef:e,groupId:t,layout:n,panelDataArray:a,panelGroupElement:r,setLayout:l}){re(o=>{const i=r.value;if(!i)return;const c=se(t,i);for(let p=0;p<a.length-1;p++){const{valueMax:m,valueMin:u,valueNow:v}=wt({layout:n.value,panelsArray:a,pivotIndices:[p,p+1]}),h=c[p];if(h!=null){const g=a[p];b(g),h.setAttribute("aria-controls",g.id),h.setAttribute("aria-valuemax",`${Math.round(m)}`),h.setAttribute("aria-valuemin",`${Math.round(u)}`),h.setAttribute("aria-valuenow",v!=null?`${Math.round(v)}`:"")}}o(()=>{c.forEach(p=>{p.removeAttribute("aria-controls"),p.removeAttribute("aria-valuemax"),p.removeAttribute("aria-valuemin"),p.removeAttribute("aria-valuenow")})})}),re(o=>{const i=r.value;if(!i)return;const c=e.value;b(c);const{panelDataArray:p}=c,m=Oe(t,i);b(m!=null,`No group found for id "${t}"`);const u=se(t,i);b(u);const v=u.map(h=>{const g=h.getAttribute("data-panel-resize-handle-id");b(g);const[w,d]=St(t,g,p,i);if(w==null||d==null)return()=>{};const x=N=>{if(!N.defaultPrevented)switch(N.key){case"Enter":{N.preventDefault();const R=p.findIndex(L=>L.id===w);if(R>=0){const L=p[R];b(L);const C=n.value[R],{collapsedSize:B=0,collapsible:q,minSize:I=0}=L.constraints;if(C!=null&&q){const $=oe({delta:D(C,B)?I-B:B-C,layout:n.value,panelConstraints:p.map(ne=>ne.constraints),pivotIndices:Ue(t,g,i),trigger:"keyboard"});n.value!==$&&l($)}}break}}};return h.addEventListener("keydown",x),()=>{h.removeEventListener("keydown",x)}});o(()=>{v.forEach(h=>h())})})}function He(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new TypeError("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function at(e){return`reka:${e}`}function lt(e){return e.map(t=>{const{constraints:n,id:a,idIsFromProps:r,order:l}=t;return r?a:l?`${l}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function ot(e,t){try{const n=at(e),a=t.getItem(n);if(a){const r=JSON.parse(a);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function Gt(e,t,n){const a=ot(e,n)??{},r=lt(t);return a[r]??null}function Ht(e,t,n,a,r){const l=at(e),o=lt(t),i=ot(e,r)??{};i[o]={expandToSizes:Object.fromEntries(n.entries()),layout:a};try{r.setItem(l,JSON.stringify(i))}catch(c){console.error(c)}}const qt=100,ie={getItem:e=>(He(ie),ie.getItem(e)),setItem:(e,t)=>{He(ie),ie.setItem(e,t)}},[it,Ft]=ft("PanelGroup");var Tt=Q({__name:"SplitterGroup",props:{id:{type:[String,null],required:!1},autoSaveId:{type:[String,null],required:!1,default:null},direction:{type:String,required:!0},keyboardResizeBy:{type:[Number,null],required:!1,default:10},storage:{type:Object,required:!1,default:()=>ie},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["layout"],setup(e,{emit:t}){const n=e,a=t,r={},{direction:l}=Ee(n),o=Ie(n.id,"reka-splitter-group"),i=dt(),{forwardRef:c,currentElement:p}=qe(),m=H(null),u=H([]),v=H({}),h=H(new Map),g=H(0),w=Y(()=>({autoSaveId:n.autoSaveId,direction:n.direction,dragState:m.value,id:o,keyboardResizeBy:n.keyboardResizeBy,storage:n.storage})),d=H({layout:u.value,panelDataArray:[],panelDataArrayChanged:!1}),x=s=>u.value=s;Bt({eagerValuesRef:d,groupId:o,layout:u,panelDataArray:d.value.panelDataArray,setLayout:x,panelGroupElement:p}),re(()=>{const{panelDataArray:s}=d.value,{autoSaveId:z}=n;if(z){if(u.value.length===0||u.value.length!==s.length)return;let f=r[z];f||(f=Pt(Ht,qt),r[z]=f);const y=[...s],E=new Map(h.value);f(z,y,E,u.value,n.storage)}});function N(s,z){const{panelDataArray:f}=d.value,y=X(f,s);return Dt({defaultSize:z,dragState:m.value,layout:u.value,panelData:f,panelIndex:y})}function R(s){const{panelDataArray:z}=d.value;z.push(s),z.sort((f,y)=>{const E=f.order,S=y.order;return E==null&&S==null?0:E==null?-1:S==null?1:E-S}),d.value.panelDataArrayChanged=!0}Ce(()=>d.value.panelDataArrayChanged,()=>{if(d.value.panelDataArrayChanged){d.value.panelDataArrayChanged=!1;const{autoSaveId:s,storage:z}=w.value,{layout:f,panelDataArray:y}=d.value;let E=null;if(s){const A=Gt(s,y,z);A&&(h.value=new Map(Object.entries(A.expandToSizes)),E=A.layout)}E===null&&(E=Et({panelDataArray:y}));const S=Nt({layout:E,panelConstraints:y.map(A=>A.constraints)});pt(f,S)||(x(S),d.value.layout=S,a("layout",S),le(y,S,v.value))}});function L(s){return function(f){f.preventDefault();const y=p.value;if(!y)return()=>null;const{direction:E,dragState:S,id:A,keyboardResizeBy:G}=w.value,{layout:k,panelDataArray:_}=d.value,{initialLayout:U}=S??{},F=Ue(A,s,y);let M=xt(f,s,E,S,G,y);if(M===0)return;const $e=E==="horizontal";i.value==="rtl"&&$e&&(M=-M);const ut=_.map(ct=>ct.constraints),ae=oe({delta:M,layout:U??k,panelConstraints:ut,pivotIndices:F,trigger:Ke(f)?"keyboard":"mouse-or-touch"}),De=!ve(k,ae);(je(f)||Xe(f))&&g.value!==M&&(g.value=M,De?xe(s,0):$e?xe(s,M<0?Ye:Ze):xe(s,M<0?Qe:et)),De&&(x(ae),d.value.layout=ae,a("layout",ae),le(_,ae,v.value))}}function C(s,z){const{layout:f,panelDataArray:y}=d.value,E=y.map(U=>U.constraints),{panelSize:S,pivotIndices:A}=W(y,s,f);b(S!=null);const k=X(y,s)===y.length-1?S-z:z-S,_=oe({delta:k,layout:f,panelConstraints:E,pivotIndices:A,trigger:"imperative-api"});ve(f,_)||(x(_),d.value.layout=_,a("layout",_),le(y,_,v.value))}function B(s,z){const{layout:f,panelDataArray:y}=d.value,E=X(y,s);y[E]=s,d.value.panelDataArrayChanged=!0;const{collapsedSize:S=0,collapsible:A}=z,{collapsedSize:G=0,collapsible:k,maxSize:_=100,minSize:U=0}=s.constraints,{panelSize:F}=W(y,s,f);F!==null&&(A&&k&&F===S?S!==G&&C(s,G):F<U?C(s,U):F>_&&C(s,_))}function q(s,z){const{direction:f}=w.value,{layout:y}=d.value;if(!p.value)return;const E=ye(s,p.value);b(E);const S=We(f,z);m.value={dragHandleId:s,dragHandleRect:E.getBoundingClientRect(),initialCursorPosition:S,initialLayout:y}}function I(){m.value=null}function $(s){const{panelDataArray:z}=d.value,f=X(z,s);f>=0&&(z.splice(f,1),delete v.value[s.id],d.value.panelDataArrayChanged=!0)}function ne(s){const{layout:z,panelDataArray:f}=d.value;if(s.constraints.collapsible){const y=f.map(G=>G.constraints),{collapsedSize:E=0,panelSize:S,pivotIndices:A}=W(f,s,z);if(b(S!=null,`Panel size not found for panel "${s.id}"`),S!==E){h.value.set(s.id,S);const k=X(f,s)===f.length-1?S-E:E-S,_=oe({delta:k,layout:z,panelConstraints:y,pivotIndices:A,trigger:"imperative-api"});ve(z,_)||(x(_),d.value.layout=_,a("layout",_),le(f,_,v.value))}}}function pe(s){const{layout:z,panelDataArray:f}=d.value;if(s.constraints.collapsible){const y=f.map(k=>k.constraints),{collapsedSize:E=0,panelSize:S,minSize:A=0,pivotIndices:G}=W(f,s,z);if(S===E){const k=h.value.get(s.id),_=k!=null&&k>=A?k:A,F=X(f,s)===f.length-1?S-_:_-S,M=oe({delta:F,layout:z,panelConstraints:y,pivotIndices:G,trigger:"imperative-api"});ve(z,M)||(x(M),d.value.layout=M,a("layout",M),le(f,M,v.value))}}}function me(s){const{layout:z,panelDataArray:f}=d.value,{panelSize:y}=W(f,s,z);return b(y!=null,`Panel size not found for panel "${s.id}"`),y}function rt(s){const{layout:z,panelDataArray:f}=d.value,{collapsedSize:y=0,collapsible:E,panelSize:S}=W(f,s,z);return E?S===void 0?s.constraints.defaultSize===s.constraints.collapsedSize:S===y:!1}function st(s){const{layout:z,panelDataArray:f}=d.value,{collapsedSize:y=0,collapsible:E,panelSize:S}=W(f,s,z);return b(S!=null,`Panel size not found for panel "${s.id}"`),!E||S>y}Ft({direction:l,dragState:m.value,groupId:o,reevaluatePanelConstraints:B,registerPanel:R,registerResizeHandle:L,resizePanel:C,startDragging:q,stopDragging:I,unregisterPanel:$,panelGroupElement:p,collapsePanel:ne,expandPanel:pe,isPanelCollapsed:rt,isPanelExpanded:st,getPanelSize:me,getPanelStyle:N});function X(s,z){return s.findIndex(f=>f===z||f.id===z.id)}function W(s,z,f){const y=X(s,z),S=y===s.length-1?[y-1,y]:[y,y+1],A=f[y];return{...z.constraints,panelSize:A,pivotIndices:S}}return(s,z)=>(J(),ee(P(_e),{ref:P(c),as:s.as,"as-child":s.asChild,style:Fe({display:"flex",flexDirection:P(l)==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"}),"data-panel-group":"","data-orientation":P(l),"data-panel-group-id":P(o)},{default:te(()=>[de(s.$slots,"default",{layout:u.value})]),_:3},8,["as","as-child","style","data-orientation","data-panel-group-id"]))}}),Ot=Tt,Vt=Q({__name:"SplitterPanel",props:{collapsedSize:{type:Number,required:!1},collapsible:{type:Boolean,required:!1},defaultSize:{type:Number,required:!1},id:{type:String,required:!1},maxSize:{type:Number,required:!1},minSize:{type:Number,required:!1},order:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["collapse","expand","resize"],setup(e,{expose:t,emit:n}){const a=e,r=n,l=it();if(l===null)throw new Error("SplitterPanel components must be rendered within a SplitterGroup container");const{collapsePanel:o,expandPanel:i,getPanelSize:c,getPanelStyle:p,isPanelCollapsed:m,resizePanel:u,groupId:v,reevaluatePanelConstraints:h,registerPanel:g,unregisterPanel:w}=l,d=Ie(a.id,"reka-splitter-panel"),x=Y(()=>({callbacks:{onCollapse:()=>r("collapse"),onExpand:()=>r("expand"),onResize:(...I)=>r("resize",...I)},constraints:{collapsedSize:a.collapsedSize&&Number.parseFloat(a.collapsedSize.toFixed(Le)),collapsible:a.collapsible,defaultSize:a.defaultSize,maxSize:a.maxSize,minSize:a.minSize},id:d,idIsFromProps:a.id!==void 0,order:a.order}));Ce(()=>x.value.constraints,(I,$)=>{($.collapsedSize!==I.collapsedSize||$.collapsible!==I.collapsible||$.maxSize!==I.maxSize||$.minSize!==I.minSize)&&h(x.value,$)},{deep:!0}),mt(()=>{g(x.value)}),vt(()=>{w(x.value)});const N=Y(()=>p(x.value,a.defaultSize)),R=Y(()=>m(x.value)),L=Y(()=>!R.value);function C(){o(x.value)}function B(){i(x.value)}function q(I){u(x.value,I)}return t({collapse:C,expand:B,getSize(){return c(x.value)},resize:q,isCollapsed:R,isExpanded:L}),(I,$)=>(J(),ee(P(_e),{id:P(d),style:Fe(N.value),as:I.as,"as-child":I.asChild,"data-panel":"","data-panel-collapsible":I.collapsible||void 0,"data-panel-group-id":P(v),"data-panel-id":P(d),"data-panel-size":Number.parseFloat(`${N.value.flexGrow}`).toFixed(1),"data-state":I.collapsible?R.value?"collapsed":"expanded":void 0},{default:te(()=>[de(I.$slots,"default",{isCollapsed:R.value,isExpanded:L.value,expand:B,collapse:C,resize:q})]),_:3},8,["id","style","as","as-child","data-panel-collapsible","data-panel-group-id","data-panel-id","data-panel-size","data-state"]))}}),Kt=Vt;function jt({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:a}){re(r=>{const l=a.value;if(e.value||n.value===null||l===null)return;const o=ye(t,l);if(o==null)return;const i=c=>{var p;if(!c.defaultPrevented)switch(c.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{c.preventDefault(),(p=n.value)==null||p.call(n,c);break}case"F6":{c.preventDefault();const m=o.getAttribute("data-panel-group-id");b(m);const u=se(m,l),v=Ve(m,t,l);b(v!==null);const h=c.shiftKey?v>0?v-1:u.length-1:v+1<u.length?v+1:0;u[h].focus();break}}};o.addEventListener("keydown",i),r(()=>{o.removeEventListener("keydown",i)})})}var Xt=Q({__name:"SplitterResizeHandle",props:{id:{type:String,required:!1},hitAreaMargins:{type:Object,required:!1},tabindex:{type:Number,required:!1,default:0},disabled:{type:Boolean,required:!1},nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["dragging"],setup(e,{emit:t}){const n=e,a=t,{forwardRef:r,currentElement:l}=qe(),{disabled:o}=Ee(n),i=it();if(i===null)throw new Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:c,groupId:p,registerResizeHandle:m,startDragging:u,stopDragging:v,panelGroupElement:h}=i,g=Ie(n.id,"reka-splitter-resize-handle"),w=H("inactive"),d=H(!1),x=H(null),{nonce:N}=Ee(n),R=ht(N);return Ce(o,()=>{fe&&(o.value?x.value=null:x.value=m(g))},{immediate:!0}),re(L=>{var q,I;if(o.value||x.value===null)return;const C=l.value;if(!C)return;b(C);const B=($,ne,pe)=>{var me;if(ne)switch($){case"down":{w.value="drag",u(g,pe),a("dragging",!0);break}case"move":{w.value!=="drag"&&(w.value="hover"),(me=x.value)==null||me.call(x,pe);break}case"up":{w.value="hover",v(),a("dragging",!1);break}}else w.value="inactive"};L(Mt(g,C,c,{coarse:((q=n.hitAreaMargins)==null?void 0:q.coarse)??15,fine:((I=n.hitAreaMargins)==null?void 0:I.fine)??5},R,B))}),jt({disabled:o,resizeHandler:x,handleId:g,panelGroupElement:h}),(L,C)=>(J(),ee(P(_e),{id:P(g),ref:P(r),style:{touchAction:"none",userSelect:"none"},as:L.as,"as-child":L.asChild,role:"separator","data-resize-handle":"",tabindex:L.tabindex,"data-state":w.value,"data-disabled":P(o)?"":void 0,"data-orientation":P(c),"data-panel-group-id":P(p),"data-resize-handle-active":w.value==="drag"?"pointer":d.value?"keyboard":void 0,"data-resize-handle-state":w.value,"data-panel-resize-handle-enabled":!P(o),"data-panel-resize-handle-id":P(g),onBlur:C[0]||(C[0]=B=>d.value=!1),onFocus:C[1]||(C[1]=B=>d.value=!1)},{default:te(()=>[de(L.$slots,"default")]),_:3},8,["id","as","as-child","tabindex","data-state","data-disabled","data-orientation","data-panel-group-id","data-resize-handle-active","data-resize-handle-state","data-panel-resize-handle-enabled","data-panel-resize-handle-id"]))}}),Wt=Xt;const Ut={key:0,class:"bg-border z-10 flex h-7 w-1 min-w-1 items-center justify-center rounded-md border"},Yt=Q({__name:"ResizableHandle",props:{id:{},hitAreaMargins:{},tabindex:{},disabled:{type:Boolean},nonce:{},asChild:{type:Boolean},as:{},class:{},withHandle:{type:Boolean}},emits:["dragging"],setup(e,{emit:t}){const n=e,a=t,r=gt(n,"class","withHandle"),l=Ae(r,a);return(o,i)=>(J(),ee(P(Wt),Re({"data-slot":"resizable-handle"},P(l),{class:P(Te)("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[orientation=vertical]:h-px data-[orientation=vertical]:w-full data-[orientation=vertical]:after:left-0 data-[orientation=vertical]:after:h-1 data-[orientation=vertical]:after:w-full data-[orientation=vertical]:after:-translate-y-1/2 data-[orientation=vertical]:after:translate-x-0 [&[data-orientation=vertical]>div]:rotate-90",n.class)}),{default:te(()=>[n.withHandle?(J(),yt("div",Ut)):zt("",!0)]),_:1},16,["class"]))}}),Zt=Q({__name:"ResizablePanel",props:{collapsedSize:{},collapsible:{type:Boolean},defaultSize:{},id:{},maxSize:{},minSize:{},order:{},asChild:{type:Boolean},as:{}},emits:["collapse","expand","resize"],setup(e,{expose:t,emit:n}){const a=e,r=n,l=H(),o=Ae(a,r);return t(l),(i,c)=>(J(),ee(P(Kt),Re({"data-slot":"resizable-panel"},P(o),{ref_key:"panelRef",ref:l}),{default:te(()=>[de(i.$slots,"default")]),_:3},16))}}),Qt=Q({__name:"ResizablePanelGroup",props:{id:{},autoSaveId:{},direction:{},keyboardResizeBy:{},storage:{},asChild:{type:Boolean},as:{},class:{}},emits:["layout"],setup(e,{emit:t}){const n=e,a=t,r=Y(()=>{const{class:o,...i}=n;return i}),l=Ae(r,a);return(o,i)=>(J(),ee(P(Ot),Re({"data-slot":"resizable-panel-group"},P(l),{class:P(Te)("flex h-full w-full data-[orientation=vertical]:flex-col",n.class)}),{default:te(()=>[de(o.$slots,"default")]),_:3},16,["class"]))}});export{Qt as _,Zt as a,Yt as b};
|
|
1
|
+
import{aC as re,d as Q,ak as Ee,al as Ie,bV as dt,a0 as qe,r as H,i as Y,am as Ce,aa as ft,q as ee,o as J,w as te,E as de,u as P,M as Fe,ab as _e,dv as pt,an as mt,aD as vt,dw as ht,a3 as gt,bJ as Ae,c as yt,b as zt,s as Re,p as Te}from"./DbehhcO7.js";const fe=typeof document<"u";function b(e,t="Assertion failed!"){if(!e)throw console.error(t),new Error(t)}function Oe(e,t=document){var a;if(!fe)return null;if(t instanceof HTMLElement&&((a=t==null?void 0:t.dataset)==null?void 0:a.panelGroupId)===e)return t;const n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function ye(e,t=document){if(!fe)return null;const n=t.querySelector(`[data-panel-resize-handle-id="${e}"]`);return n||null}function Ve(e,t,n=document){return fe?se(e,n).findIndex(l=>l.getAttribute("data-panel-resize-handle-id")===t)??null:null}function se(e,t=document){return fe?Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`)):[]}function St(e,t,n,a=document){var p,m;const r=ye(t,a),l=se(e,a),o=r?l.indexOf(r):-1,i=((p=n[o])==null?void 0:p.id)??null,c=((m=n[o+1])==null?void 0:m.id)??null;return[i,c]}function Ke(e){return e.type==="keydown"}function je(e){return e.type.startsWith("mouse")}function Xe(e){return e.type.startsWith("touch")}function ze(e){if(je(e))return{x:e.clientX,y:e.clientY};if(Xe(e)){const t=e.touches[0];if(t&&t.clientX&&t.clientY)return{x:t.clientX,y:t.clientY}}return{x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY}}function We(e,t){const n=e==="horizontal",{x:a,y:r}=ze(t);return n?a:r}function bt(e,t,n,a,r){const l=n==="horizontal",o=ye(t,r);b(o);const i=o.getAttribute("data-panel-group-id");b(i);const{initialCursorPosition:c}=a,p=We(n,e),m=Oe(i,r);b(m);const u=m.getBoundingClientRect(),v=l?u.width:u.height;return(p-c)/v*100}function xt(e,t,n,a,r,l){if(Ke(e)){const o=n==="horizontal";let i=0;e.shiftKey?i=100:i=r??10;let c=0;switch(e.key){case"ArrowDown":c=o?0:i;break;case"ArrowLeft":c=o?-i:0;break;case"ArrowRight":c=o?i:0;break;case"ArrowUp":c=o?0:-i;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return a==null?0:bt(e,t,n,a,l)}function wt({layout:e,panelsArray:t,pivotIndices:n}){let a=0,r=100,l=0,o=0;const i=n[0];b(i!=null),t.forEach((u,v)=>{const{constraints:h}=u,{maxSize:g=100,minSize:w=0}=h;v===i?(a=w,r=g):(l+=w,o+=g)});const c=Math.min(r,100-l),p=Math.max(a,100-o),m=e[i];return{valueMax:c,valueMin:p,valueNow:m}}function Et({panelDataArray:e}){const t=Array.from({length:e.length}),n=e.map(l=>l.constraints);let a=0,r=100;for(let l=0;l<e.length;l++){const o=n[l];b(o);const{defaultSize:i}=o;i!=null&&(a++,t[l]=i,r-=i)}for(let l=0;l<e.length;l++){const o=n[l];b(o);const{defaultSize:i}=o;if(i!=null)continue;const c=e.length-a,p=r/c;a++,t[l]=p,r-=p}return t}function le(e,t,n){t.forEach((a,r)=>{const l=e[r];b(l);const{callbacks:o,constraints:i,id:c}=l,{collapsedSize:p=0,collapsible:m}=i,u=n[c];if(u==null||a!==u){n[c]=a;const{onCollapse:v,onExpand:h,onResize:g}=o;g&&g(a,u),m&&(v||h)&&(h&&(u==null||u===p)&&a!==p&&h(),v&&(u==null||u!==p)&&a===p&&v())}})}function Pt(e,t=10){let n=null;return(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}const Le=10;function ue(e,t,n=Le){e=Number.parseFloat(e.toFixed(n)),t=Number.parseFloat(t.toFixed(n));const a=e-t;return a===0?0:a>0?1:-1}function D(e,t,n){return ue(e,t,n)===0}function Z({panelConstraints:e,panelIndex:t,size:n}){const a=e[t];b(a!=null);const{collapsedSize:r=0,collapsible:l,maxSize:o=100,minSize:i=0}=a;if(ue(n,i)<0)if(l){const c=(r+i)/2;ue(n,c)<0?n=r:n=i}else n=i;return n=Math.min(o,n),n=Number.parseFloat(n.toFixed(Le)),n}function ve(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function oe({delta:e,layout:t,panelConstraints:n,pivotIndices:a,trigger:r}){if(D(e,0))return t;const l=[...t],[o,i]=a;b(o!=null),b(i!=null);let c=0;if(r==="keyboard"){{const m=e<0?i:o,u=n[m];if(b(u),u.collapsible){const v=t[m];b(v!=null);const h=n[m];b(h);const{collapsedSize:g=0,minSize:w=0}=h;if(D(v,g)){const d=w-v;ue(d,Math.abs(e))>0&&(e=e<0?0-d:d)}}}{const m=e<0?o:i,u=n[m];b(u);const{collapsible:v}=u;if(v){const h=t[m];b(h!=null);const g=n[m];b(g);const{collapsedSize:w=0,minSize:d=0}=g;if(D(h,d)){const x=h-w;ue(x,Math.abs(e))>0&&(e=e<0?0-x:x)}}}}{const m=e<0?1:-1;let u=e<0?i:o,v=0;for(;;){const g=t[u];b(g!=null);const d=Z({panelConstraints:n,panelIndex:u,size:100})-g;if(v+=d,u+=m,u<0||u>=n.length)break}const h=Math.min(Math.abs(e),Math.abs(v));e=e<0?0-h:h}{let u=e<0?o:i;for(;u>=0&&u<n.length;){const v=Math.abs(e)-Math.abs(c),h=t[u];b(h!=null);const g=h-v,w=Z({panelConstraints:n,panelIndex:u,size:g});if(!D(h,w)&&(c+=h-w,l[u]=w,c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?u--:u++}}if(D(c,0))return t;{const m=e<0?i:o,u=t[m];b(u!=null);const v=u+c,h=Z({panelConstraints:n,panelIndex:m,size:v});if(l[m]=h,!D(h,v)){let g=v-h,d=e<0?i:o;for(;d>=0&&d<n.length;){const x=l[d];b(x!=null);const N=x+g,R=Z({panelConstraints:n,panelIndex:d,size:N});if(D(x,R)||(g-=R-x,l[d]=R),D(g,0))break;e>0?d--:d++}}}const p=l.reduce((m,u)=>u+m,0);return D(p,100)?l:t}function Ue(e,t,n){const a=Ve(e,t,n);return a!=null?[a,a+1]:[-1,-1]}function It(e,t,n){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Ct(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Ge(e),b:Ge(t)};let a;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),a=e;b(a);const r={a:Be(Ne(n.a)),b:Be(Ne(n.b))};if(r.a===r.b){const l=a.childNodes,o={a:n.a.at(-1),b:n.b.at(-1)};let i=l.length;for(;i--;){const c=l[i];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(r.a-r.b)}const _t=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function At(e){const t=getComputedStyle(Je(e)).display;return t==="flex"||t==="inline-flex"}function Rt(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||At(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||_t.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Ne(e){let t=e.length;for(;t--;){const n=e[t];if(b(n),Rt(n))return n}return null}function Be(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Ge(e){const t=[];for(;e;)t.push(e),e=Je(e);return t}function Je(e){var t;return e.parentNode instanceof DocumentFragment&&((t=e.parentNode)==null?void 0:t.host)||e.parentNode}const Ye=1,Ze=2,Qe=4,et=8;function Lt(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}const kt=Lt()==="coarse",j=[];let Se=!1;const V=new Map,be=new Map,ce=new Set;function Mt(e,t,n,a,r,l){const{ownerDocument:o}=t,i={direction:n,element:t,hitAreaMargins:a,nonce:r,setResizeHandlerState:l},c=V.get(o)??0;return V.set(o,c+1),ce.add(i),ge(),function(){be.delete(e),ce.delete(i);const m=V.get(o)??1;V.set(o,m-1),ge(),nt(),m===1&&V.delete(o)}}function he(e){const{target:t}=e,{x:n,y:a}=ze(e);Se=!0,ke({target:t,x:n,y:a}),ge(),j.length>0&&(Me("down",e),e.preventDefault())}function T(e){const{x:t,y:n}=ze(e);if(!Se){const{target:a}=e;ke({target:a,x:t,y:n})}Me("move",e),tt(),j.length>0&&e.preventDefault()}function O(e){const{target:t}=e,{x:n,y:a}=ze(e);be.clear(),Se=!1,j.length>0&&e.preventDefault(),Me("up",e),ke({target:t,x:n,y:a}),tt(),ge()}function ke({target:e,x:t,y:n}){j.splice(0);let a=null;e instanceof HTMLElement&&(a=e),ce.forEach(r=>{const{element:l,hitAreaMargins:o}=r,i=l.getBoundingClientRect(),{bottom:c,left:p,right:m,top:u}=i,v=kt?o.coarse:o.fine;if(t>=p-v&&t<=m+v&&n>=u-v&&n<=c+v){if(a!==null&&l!==a&&!l.contains(a)&&!a.contains(l)&&Ct(a,l)>0){let g=a,w=!1;for(;g&&!g.contains(l);){if(It(g.getBoundingClientRect(),i)){w=!0;break}g=g.parentElement}if(w)return}j.push(r)}})}function xe(e,t){be.set(e,t)}function tt(){let e=!1,t=!1,n;j.forEach(r=>{const{direction:l,nonce:o}=r;l.value==="horizontal"?e=!0:t=!0,n=o.value});let a=0;be.forEach(r=>{a|=r}),e&&t?we("intersection",a,n):e?we("horizontal",a,n):t?we("vertical",a,n):nt()}function ge(){V.forEach((e,t)=>{const{body:n}=t;n.removeEventListener("contextmenu",O),n.removeEventListener("mousedown",he),n.removeEventListener("mouseleave",T),n.removeEventListener("mousemove",T),n.removeEventListener("touchmove",T),n.removeEventListener("touchstart",he)}),window.removeEventListener("mouseup",O),window.removeEventListener("touchcancel",O),window.removeEventListener("touchend",O),ce.size>0&&(Se?(j.length>0&&V.forEach((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("contextmenu",O),n.addEventListener("mouseleave",T),n.addEventListener("mousemove",T),n.addEventListener("touchmove",T,{passive:!1}))}),window.addEventListener("mouseup",O),window.addEventListener("touchcancel",O),window.addEventListener("touchend",O)):V.forEach((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("mousedown",he),n.addEventListener("mousemove",T),n.addEventListener("touchmove",T,{passive:!1}),n.addEventListener("touchstart",he))}))}function Me(e,t){ce.forEach(n=>{const{setResizeHandlerState:a}=n,r=j.includes(n);a(e,r,t)})}let Pe=null,K=null;function $t(e,t){if(t){const n=(t&Ye)!==0,a=(t&Ze)!==0,r=(t&Qe)!==0,l=(t&et)!==0;if(n)return r?"se-resize":l?"ne-resize":"e-resize";if(a)return r?"sw-resize":l?"nw-resize":"w-resize";if(r)return"s-resize";if(l)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function nt(){K!==null&&(document.head.removeChild(K),Pe=null,K=null)}function we(e,t,n){const a=$t(e,t);Pe!==a&&(Pe=a,K===null&&(K=document.createElement("style"),n&&(K.nonce=n),document.head.appendChild(K)),K.innerHTML=`*{cursor: ${a}!important;}`)}function Dt({defaultSize:e,dragState:t,layout:n,panelData:a,panelIndex:r,precision:l=3}){const o=n[r];let i;return o==null?i=e!==void 0?e.toPrecision(l):"1":a.length===1?i="1":i=o.toPrecision(l),{flexBasis:0,flexGrow:i,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function Nt({layout:e,panelConstraints:t}){const n=[...e],a=n.reduce((l,o)=>l+o,0);if(n.length!==t.length)throw new Error(`Invalid ${t.length} panel layout: ${n.map(l=>`${l}%`).join(", ")}`);if(!D(a,100)){console.warn(`WARNING: Invalid layout total size: ${n.map(l=>`${l}%`).join(", ")}. Layout normalization will be applied.`);for(let l=0;l<t.length;l++){const o=n[l];b(o!=null);const i=100/a*o;n[l]=i}}let r=0;for(let l=0;l<t.length;l++){const o=n[l];b(o!=null);const i=Z({panelConstraints:t,panelIndex:l,size:o});o!==i&&(r+=o-i,n[l]=i)}if(!D(r,0))for(let l=0;l<t.length;l++){const o=n[l];b(o!=null);const i=o+r,c=Z({panelConstraints:t,panelIndex:l,size:i});if(o!==c&&(r-=c-o,n[l]=c,D(r,0)))break}return n}function Bt({eagerValuesRef:e,groupId:t,layout:n,panelDataArray:a,panelGroupElement:r,setLayout:l}){re(o=>{const i=r.value;if(!i)return;const c=se(t,i);for(let p=0;p<a.length-1;p++){const{valueMax:m,valueMin:u,valueNow:v}=wt({layout:n.value,panelsArray:a,pivotIndices:[p,p+1]}),h=c[p];if(h!=null){const g=a[p];b(g),h.setAttribute("aria-controls",g.id),h.setAttribute("aria-valuemax",`${Math.round(m)}`),h.setAttribute("aria-valuemin",`${Math.round(u)}`),h.setAttribute("aria-valuenow",v!=null?`${Math.round(v)}`:"")}}o(()=>{c.forEach(p=>{p.removeAttribute("aria-controls"),p.removeAttribute("aria-valuemax"),p.removeAttribute("aria-valuemin"),p.removeAttribute("aria-valuenow")})})}),re(o=>{const i=r.value;if(!i)return;const c=e.value;b(c);const{panelDataArray:p}=c,m=Oe(t,i);b(m!=null,`No group found for id "${t}"`);const u=se(t,i);b(u);const v=u.map(h=>{const g=h.getAttribute("data-panel-resize-handle-id");b(g);const[w,d]=St(t,g,p,i);if(w==null||d==null)return()=>{};const x=N=>{if(!N.defaultPrevented)switch(N.key){case"Enter":{N.preventDefault();const R=p.findIndex(L=>L.id===w);if(R>=0){const L=p[R];b(L);const C=n.value[R],{collapsedSize:B=0,collapsible:q,minSize:I=0}=L.constraints;if(C!=null&&q){const $=oe({delta:D(C,B)?I-B:B-C,layout:n.value,panelConstraints:p.map(ne=>ne.constraints),pivotIndices:Ue(t,g,i),trigger:"keyboard"});n.value!==$&&l($)}}break}}};return h.addEventListener("keydown",x),()=>{h.removeEventListener("keydown",x)}});o(()=>{v.forEach(h=>h())})})}function He(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new TypeError("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function at(e){return`reka:${e}`}function lt(e){return e.map(t=>{const{constraints:n,id:a,idIsFromProps:r,order:l}=t;return r?a:l?`${l}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function ot(e,t){try{const n=at(e),a=t.getItem(n);if(a){const r=JSON.parse(a);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function Gt(e,t,n){const a=ot(e,n)??{},r=lt(t);return a[r]??null}function Ht(e,t,n,a,r){const l=at(e),o=lt(t),i=ot(e,r)??{};i[o]={expandToSizes:Object.fromEntries(n.entries()),layout:a};try{r.setItem(l,JSON.stringify(i))}catch(c){console.error(c)}}const qt=100,ie={getItem:e=>(He(ie),ie.getItem(e)),setItem:(e,t)=>{He(ie),ie.setItem(e,t)}},[it,Ft]=ft("PanelGroup");var Tt=Q({__name:"SplitterGroup",props:{id:{type:[String,null],required:!1},autoSaveId:{type:[String,null],required:!1,default:null},direction:{type:String,required:!0},keyboardResizeBy:{type:[Number,null],required:!1,default:10},storage:{type:Object,required:!1,default:()=>ie},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["layout"],setup(e,{emit:t}){const n=e,a=t,r={},{direction:l}=Ee(n),o=Ie(n.id,"reka-splitter-group"),i=dt(),{forwardRef:c,currentElement:p}=qe(),m=H(null),u=H([]),v=H({}),h=H(new Map),g=H(0),w=Y(()=>({autoSaveId:n.autoSaveId,direction:n.direction,dragState:m.value,id:o,keyboardResizeBy:n.keyboardResizeBy,storage:n.storage})),d=H({layout:u.value,panelDataArray:[],panelDataArrayChanged:!1}),x=s=>u.value=s;Bt({eagerValuesRef:d,groupId:o,layout:u,panelDataArray:d.value.panelDataArray,setLayout:x,panelGroupElement:p}),re(()=>{const{panelDataArray:s}=d.value,{autoSaveId:z}=n;if(z){if(u.value.length===0||u.value.length!==s.length)return;let f=r[z];f||(f=Pt(Ht,qt),r[z]=f);const y=[...s],E=new Map(h.value);f(z,y,E,u.value,n.storage)}});function N(s,z){const{panelDataArray:f}=d.value,y=X(f,s);return Dt({defaultSize:z,dragState:m.value,layout:u.value,panelData:f,panelIndex:y})}function R(s){const{panelDataArray:z}=d.value;z.push(s),z.sort((f,y)=>{const E=f.order,S=y.order;return E==null&&S==null?0:E==null?-1:S==null?1:E-S}),d.value.panelDataArrayChanged=!0}Ce(()=>d.value.panelDataArrayChanged,()=>{if(d.value.panelDataArrayChanged){d.value.panelDataArrayChanged=!1;const{autoSaveId:s,storage:z}=w.value,{layout:f,panelDataArray:y}=d.value;let E=null;if(s){const A=Gt(s,y,z);A&&(h.value=new Map(Object.entries(A.expandToSizes)),E=A.layout)}E===null&&(E=Et({panelDataArray:y}));const S=Nt({layout:E,panelConstraints:y.map(A=>A.constraints)});pt(f,S)||(x(S),d.value.layout=S,a("layout",S),le(y,S,v.value))}});function L(s){return function(f){f.preventDefault();const y=p.value;if(!y)return()=>null;const{direction:E,dragState:S,id:A,keyboardResizeBy:G}=w.value,{layout:k,panelDataArray:_}=d.value,{initialLayout:U}=S??{},F=Ue(A,s,y);let M=xt(f,s,E,S,G,y);if(M===0)return;const $e=E==="horizontal";i.value==="rtl"&&$e&&(M=-M);const ut=_.map(ct=>ct.constraints),ae=oe({delta:M,layout:U??k,panelConstraints:ut,pivotIndices:F,trigger:Ke(f)?"keyboard":"mouse-or-touch"}),De=!ve(k,ae);(je(f)||Xe(f))&&g.value!==M&&(g.value=M,De?xe(s,0):$e?xe(s,M<0?Ye:Ze):xe(s,M<0?Qe:et)),De&&(x(ae),d.value.layout=ae,a("layout",ae),le(_,ae,v.value))}}function C(s,z){const{layout:f,panelDataArray:y}=d.value,E=y.map(U=>U.constraints),{panelSize:S,pivotIndices:A}=W(y,s,f);b(S!=null);const k=X(y,s)===y.length-1?S-z:z-S,_=oe({delta:k,layout:f,panelConstraints:E,pivotIndices:A,trigger:"imperative-api"});ve(f,_)||(x(_),d.value.layout=_,a("layout",_),le(y,_,v.value))}function B(s,z){const{layout:f,panelDataArray:y}=d.value,E=X(y,s);y[E]=s,d.value.panelDataArrayChanged=!0;const{collapsedSize:S=0,collapsible:A}=z,{collapsedSize:G=0,collapsible:k,maxSize:_=100,minSize:U=0}=s.constraints,{panelSize:F}=W(y,s,f);F!==null&&(A&&k&&F===S?S!==G&&C(s,G):F<U?C(s,U):F>_&&C(s,_))}function q(s,z){const{direction:f}=w.value,{layout:y}=d.value;if(!p.value)return;const E=ye(s,p.value);b(E);const S=We(f,z);m.value={dragHandleId:s,dragHandleRect:E.getBoundingClientRect(),initialCursorPosition:S,initialLayout:y}}function I(){m.value=null}function $(s){const{panelDataArray:z}=d.value,f=X(z,s);f>=0&&(z.splice(f,1),delete v.value[s.id],d.value.panelDataArrayChanged=!0)}function ne(s){const{layout:z,panelDataArray:f}=d.value;if(s.constraints.collapsible){const y=f.map(G=>G.constraints),{collapsedSize:E=0,panelSize:S,pivotIndices:A}=W(f,s,z);if(b(S!=null,`Panel size not found for panel "${s.id}"`),S!==E){h.value.set(s.id,S);const k=X(f,s)===f.length-1?S-E:E-S,_=oe({delta:k,layout:z,panelConstraints:y,pivotIndices:A,trigger:"imperative-api"});ve(z,_)||(x(_),d.value.layout=_,a("layout",_),le(f,_,v.value))}}}function pe(s){const{layout:z,panelDataArray:f}=d.value;if(s.constraints.collapsible){const y=f.map(k=>k.constraints),{collapsedSize:E=0,panelSize:S,minSize:A=0,pivotIndices:G}=W(f,s,z);if(S===E){const k=h.value.get(s.id),_=k!=null&&k>=A?k:A,F=X(f,s)===f.length-1?S-_:_-S,M=oe({delta:F,layout:z,panelConstraints:y,pivotIndices:G,trigger:"imperative-api"});ve(z,M)||(x(M),d.value.layout=M,a("layout",M),le(f,M,v.value))}}}function me(s){const{layout:z,panelDataArray:f}=d.value,{panelSize:y}=W(f,s,z);return b(y!=null,`Panel size not found for panel "${s.id}"`),y}function rt(s){const{layout:z,panelDataArray:f}=d.value,{collapsedSize:y=0,collapsible:E,panelSize:S}=W(f,s,z);return E?S===void 0?s.constraints.defaultSize===s.constraints.collapsedSize:S===y:!1}function st(s){const{layout:z,panelDataArray:f}=d.value,{collapsedSize:y=0,collapsible:E,panelSize:S}=W(f,s,z);return b(S!=null,`Panel size not found for panel "${s.id}"`),!E||S>y}Ft({direction:l,dragState:m.value,groupId:o,reevaluatePanelConstraints:B,registerPanel:R,registerResizeHandle:L,resizePanel:C,startDragging:q,stopDragging:I,unregisterPanel:$,panelGroupElement:p,collapsePanel:ne,expandPanel:pe,isPanelCollapsed:rt,isPanelExpanded:st,getPanelSize:me,getPanelStyle:N});function X(s,z){return s.findIndex(f=>f===z||f.id===z.id)}function W(s,z,f){const y=X(s,z),S=y===s.length-1?[y-1,y]:[y,y+1],A=f[y];return{...z.constraints,panelSize:A,pivotIndices:S}}return(s,z)=>(J(),ee(P(_e),{ref:P(c),as:s.as,"as-child":s.asChild,style:Fe({display:"flex",flexDirection:P(l)==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"}),"data-panel-group":"","data-orientation":P(l),"data-panel-group-id":P(o)},{default:te(()=>[de(s.$slots,"default",{layout:u.value})]),_:3},8,["as","as-child","style","data-orientation","data-panel-group-id"]))}}),Ot=Tt,Vt=Q({__name:"SplitterPanel",props:{collapsedSize:{type:Number,required:!1},collapsible:{type:Boolean,required:!1},defaultSize:{type:Number,required:!1},id:{type:String,required:!1},maxSize:{type:Number,required:!1},minSize:{type:Number,required:!1},order:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["collapse","expand","resize"],setup(e,{expose:t,emit:n}){const a=e,r=n,l=it();if(l===null)throw new Error("SplitterPanel components must be rendered within a SplitterGroup container");const{collapsePanel:o,expandPanel:i,getPanelSize:c,getPanelStyle:p,isPanelCollapsed:m,resizePanel:u,groupId:v,reevaluatePanelConstraints:h,registerPanel:g,unregisterPanel:w}=l,d=Ie(a.id,"reka-splitter-panel"),x=Y(()=>({callbacks:{onCollapse:()=>r("collapse"),onExpand:()=>r("expand"),onResize:(...I)=>r("resize",...I)},constraints:{collapsedSize:a.collapsedSize&&Number.parseFloat(a.collapsedSize.toFixed(Le)),collapsible:a.collapsible,defaultSize:a.defaultSize,maxSize:a.maxSize,minSize:a.minSize},id:d,idIsFromProps:a.id!==void 0,order:a.order}));Ce(()=>x.value.constraints,(I,$)=>{($.collapsedSize!==I.collapsedSize||$.collapsible!==I.collapsible||$.maxSize!==I.maxSize||$.minSize!==I.minSize)&&h(x.value,$)},{deep:!0}),mt(()=>{g(x.value)}),vt(()=>{w(x.value)});const N=Y(()=>p(x.value,a.defaultSize)),R=Y(()=>m(x.value)),L=Y(()=>!R.value);function C(){o(x.value)}function B(){i(x.value)}function q(I){u(x.value,I)}return t({collapse:C,expand:B,getSize(){return c(x.value)},resize:q,isCollapsed:R,isExpanded:L}),(I,$)=>(J(),ee(P(_e),{id:P(d),style:Fe(N.value),as:I.as,"as-child":I.asChild,"data-panel":"","data-panel-collapsible":I.collapsible||void 0,"data-panel-group-id":P(v),"data-panel-id":P(d),"data-panel-size":Number.parseFloat(`${N.value.flexGrow}`).toFixed(1),"data-state":I.collapsible?R.value?"collapsed":"expanded":void 0},{default:te(()=>[de(I.$slots,"default",{isCollapsed:R.value,isExpanded:L.value,expand:B,collapse:C,resize:q})]),_:3},8,["id","style","as","as-child","data-panel-collapsible","data-panel-group-id","data-panel-id","data-panel-size","data-state"]))}}),Kt=Vt;function jt({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:a}){re(r=>{const l=a.value;if(e.value||n.value===null||l===null)return;const o=ye(t,l);if(o==null)return;const i=c=>{var p;if(!c.defaultPrevented)switch(c.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{c.preventDefault(),(p=n.value)==null||p.call(n,c);break}case"F6":{c.preventDefault();const m=o.getAttribute("data-panel-group-id");b(m);const u=se(m,l),v=Ve(m,t,l);b(v!==null);const h=c.shiftKey?v>0?v-1:u.length-1:v+1<u.length?v+1:0;u[h].focus();break}}};o.addEventListener("keydown",i),r(()=>{o.removeEventListener("keydown",i)})})}var Xt=Q({__name:"SplitterResizeHandle",props:{id:{type:String,required:!1},hitAreaMargins:{type:Object,required:!1},tabindex:{type:Number,required:!1,default:0},disabled:{type:Boolean,required:!1},nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["dragging"],setup(e,{emit:t}){const n=e,a=t,{forwardRef:r,currentElement:l}=qe(),{disabled:o}=Ee(n),i=it();if(i===null)throw new Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:c,groupId:p,registerResizeHandle:m,startDragging:u,stopDragging:v,panelGroupElement:h}=i,g=Ie(n.id,"reka-splitter-resize-handle"),w=H("inactive"),d=H(!1),x=H(null),{nonce:N}=Ee(n),R=ht(N);return Ce(o,()=>{fe&&(o.value?x.value=null:x.value=m(g))},{immediate:!0}),re(L=>{var q,I;if(o.value||x.value===null)return;const C=l.value;if(!C)return;b(C);const B=($,ne,pe)=>{var me;if(ne)switch($){case"down":{w.value="drag",u(g,pe),a("dragging",!0);break}case"move":{w.value!=="drag"&&(w.value="hover"),(me=x.value)==null||me.call(x,pe);break}case"up":{w.value="hover",v(),a("dragging",!1);break}}else w.value="inactive"};L(Mt(g,C,c,{coarse:((q=n.hitAreaMargins)==null?void 0:q.coarse)??15,fine:((I=n.hitAreaMargins)==null?void 0:I.fine)??5},R,B))}),jt({disabled:o,resizeHandler:x,handleId:g,panelGroupElement:h}),(L,C)=>(J(),ee(P(_e),{id:P(g),ref:P(r),style:{touchAction:"none",userSelect:"none"},as:L.as,"as-child":L.asChild,role:"separator","data-resize-handle":"",tabindex:L.tabindex,"data-state":w.value,"data-disabled":P(o)?"":void 0,"data-orientation":P(c),"data-panel-group-id":P(p),"data-resize-handle-active":w.value==="drag"?"pointer":d.value?"keyboard":void 0,"data-resize-handle-state":w.value,"data-panel-resize-handle-enabled":!P(o),"data-panel-resize-handle-id":P(g),onBlur:C[0]||(C[0]=B=>d.value=!1),onFocus:C[1]||(C[1]=B=>d.value=!1)},{default:te(()=>[de(L.$slots,"default")]),_:3},8,["id","as","as-child","tabindex","data-state","data-disabled","data-orientation","data-panel-group-id","data-resize-handle-active","data-resize-handle-state","data-panel-resize-handle-enabled","data-panel-resize-handle-id"]))}}),Wt=Xt;const Ut={key:0,class:"bg-border z-10 flex h-7 w-1 min-w-1 items-center justify-center rounded-md border"},Yt=Q({__name:"ResizableHandle",props:{id:{},hitAreaMargins:{},tabindex:{},disabled:{type:Boolean},nonce:{},asChild:{type:Boolean},as:{},class:{},withHandle:{type:Boolean}},emits:["dragging"],setup(e,{emit:t}){const n=e,a=t,r=gt(n,"class","withHandle"),l=Ae(r,a);return(o,i)=>(J(),ee(P(Wt),Re({"data-slot":"resizable-handle"},P(l),{class:P(Te)("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[orientation=vertical]:h-px data-[orientation=vertical]:w-full data-[orientation=vertical]:after:left-0 data-[orientation=vertical]:after:h-1 data-[orientation=vertical]:after:w-full data-[orientation=vertical]:after:-translate-y-1/2 data-[orientation=vertical]:after:translate-x-0 [&[data-orientation=vertical]>div]:rotate-90",n.class)}),{default:te(()=>[n.withHandle?(J(),yt("div",Ut)):zt("",!0)]),_:1},16,["class"]))}}),Zt=Q({__name:"ResizablePanel",props:{collapsedSize:{},collapsible:{type:Boolean},defaultSize:{},id:{},maxSize:{},minSize:{},order:{},asChild:{type:Boolean},as:{}},emits:["collapse","expand","resize"],setup(e,{expose:t,emit:n}){const a=e,r=n,l=H(),o=Ae(a,r);return t(l),(i,c)=>(J(),ee(P(Kt),Re({"data-slot":"resizable-panel"},P(o),{ref_key:"panelRef",ref:l}),{default:te(()=>[de(i.$slots,"default")]),_:3},16))}}),Qt=Q({__name:"ResizablePanelGroup",props:{id:{},autoSaveId:{},direction:{},keyboardResizeBy:{},storage:{},asChild:{type:Boolean},as:{},class:{}},emits:["layout"],setup(e,{emit:t}){const n=e,a=t,r=Y(()=>{const{class:o,...i}=n;return i}),l=Ae(r,a);return(o,i)=>(J(),ee(P(Ot),Re({"data-slot":"resizable-panel-group"},P(l),{class:P(Te)("flex h-full w-full data-[orientation=vertical]:flex-col",n.class)}),{default:te(()=>[de(o.$slots,"default")]),_:3},16,["class"]))}});export{Qt as _,Zt as a,Yt as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ge}from"./CAnZNTn6.js";import{s as ze}from"./CHFYZcjC.js";import{_ as f,b as Xe,a as Je,s as Ze,g as et,q as tt,t as st,c as Ne,l as qe,A as it,E as rt,p as nt,r as at,u as lt}from"./Dzy2Amcc.js";import"./DD6NieRw.js";var Ae=function(){var e=f(function(P,i,r,l){for(r=r||{},l=P.length;l--;r[P[l]]=i);return r},"o"),a=[1,3],u=[1,4],o=[1,5],m=[1,6],c=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],p=[1,22],R=[2,7],h=[1,26],d=[1,27],b=[1,28],k=[1,29],A=[1,33],C=[1,34],V=[1,35],v=[1,36],x=[1,37],L=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],g=[1,39],_=[1,40],y=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],$=[1,61],X=[89,90],Ce=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],xe=[1,72],Le=[1,73],we=[1,74],De=[1,75],Oe=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],N=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:f(function(i,r,l,s,E,t,de){var n=t.length-1;switch(E){case 4:this.$=t[n].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[n].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[n-3],t[n-4]);break;case 22:s.addRequirement(t[n-5],t[n-6]),s.setClass([t[n-5]],t[n-3]);break;case 23:s.setNewReqId(t[n-2]);break;case 24:s.setNewReqText(t[n-2]);break;case 25:s.setNewReqRisk(t[n-2]);break;case 26:s.setNewReqVerifyMethod(t[n-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[n-3]);break;case 43:s.addElement(t[n-5]),s.setClass([t[n-5]],t[n-3]);break;case 44:s.setNewElementType(t[n-2]);break;case 45:s.setNewElementDocRef(t[n-2]);break;case 48:s.addRelationship(t[n-2],t[n],t[n-4]);break;case 49:s.addRelationship(t[n-2],t[n-4],t[n]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[n-2],s.defineClass(t[n-1],t[n]);break;case 58:s.setClass(t[n-1],t[n]);break;case 59:s.setClass([t[n-2]],t[n]);break;case 60:case 62:this.$=[t[n]];break;case 61:case 63:this.$=t[n-2].concat([t[n]]);break;case 64:this.$=t[n-2],s.setCssStyle(t[n-1],t[n]);break;case 65:this.$=[t[n]];break;case 66:t[n-2].push(t[n]),this.$=t[n-2];break;case 68:this.$=t[n-1]+t[n];break}},"anonymous"),table:[{3:1,4:2,6:a,9:u,11:o,13:m},{1:[3]},{3:8,4:2,5:[1,7],6:a,9:u,11:o,13:m},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(c,[2,6]),{3:12,4:2,6:a,9:u,11:o,13:m},{1:[2,2]},{4:17,5:p,7:13,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},e(c,[2,4]),e(c,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:p,7:42,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:43,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:44,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:45,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:46,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:47,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:48,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:49,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:50,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(y,[2,17]),e(y,[2,18]),e(y,[2,19]),e(y,[2,20]),{30:60,33:62,75:$,89:g,90:_},{30:63,33:62,75:$,89:g,90:_},{30:64,33:62,75:$,89:g,90:_},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ce,[2,81]),e(Ce,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:xe,68:Le,69:we,70:De,71:Oe},{62:77,65:Ve,66:ve,67:xe,68:Le,69:we,70:De,71:Oe},{30:78,33:62,75:$,89:g,90:_},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:$,76:U,89:g,90:_},{5:[1,95]},{30:96,33:62,75:$,89:g,90:_},{5:[1,97]},{30:98,33:62,75:$,89:g,90:_},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(y,[2,59],{76:U}),e(y,[2,64],{76:Me}),{33:103,75:[1,102],89:g,90:_},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(N,[2,67]),e(N,[2,69]),e(N,[2,70]),e(N,[2,71]),e(N,[2,72]),e(N,[2,73]),e(N,[2,74]),e(N,[2,75]),e(N,[2,76]),e(N,[2,77]),e(N,[2,78]),e(y,[2,57],{76:Me}),e(y,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:g,90:_},{33:120,89:g,90:_},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(N,[2,68]),e(y,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(y,[2,28]),{5:[1,127]},e(y,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(y,[2,47]),{5:[1,131]},e(y,[2,48]),e(y,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:g,90:_},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(y,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(y,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(y,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(y,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(y,[2,23]),e(y,[2,24]),e(y,[2,25]),e(y,[2,26]),e(y,[2,44]),e(y,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:f(function(i,r){if(r.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=r,l}},"parseError"),parse:f(function(i){var r=this,l=[0],s=[],E=[null],t=[],de=this.table,n="",ye=0,Pe=0,He=2,$e=1,Ke=t.slice.call(arguments,1),S=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);S.setInput(i,G.yy),G.yy.lexer=S,G.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var Ie=S.yylloc;t.push(Ie);var We=S.options&&S.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(T){l.length=l.length-2*T,E.length=E.length-T,t.length=t.length-T}f(je,"popStack");function Ue(){var T;return T=s.pop()||S.lex()||$e,typeof T!="number"&&(T instanceof Array&&(s=T,T=s.pop()),T=r.symbols_[T]||T),T}f(Ue,"lex");for(var I,z,q,Te,J={},ge,F,Ye,_e;;){if(z=l[l.length-1],this.defaultActions[z]?q=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),q=de[z]&&de[z][I]),typeof q>"u"||!q.length||!q[0]){var ke="";_e=[];for(ge in de[z])this.terminals_[ge]&&ge>He&&_e.push("'"+this.terminals_[ge]+"'");S.showPosition?ke="Parse error on line "+(ye+1)+`:
|
|
1
|
+
import{g as Ge}from"./BDw-ivE-.js";import{s as ze}from"./BjfaOtB-.js";import{_ as f,b as Xe,a as Je,s as Ze,g as et,q as tt,t as st,c as Ne,l as qe,A as it,E as rt,p as nt,r as at,u as lt}from"./ndyknmtb.js";import"./DbehhcO7.js";var Ae=function(){var e=f(function(P,i,r,l){for(r=r||{},l=P.length;l--;r[P[l]]=i);return r},"o"),a=[1,3],u=[1,4],o=[1,5],m=[1,6],c=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],p=[1,22],R=[2,7],h=[1,26],d=[1,27],b=[1,28],k=[1,29],A=[1,33],C=[1,34],V=[1,35],v=[1,36],x=[1,37],L=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],g=[1,39],_=[1,40],y=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],$=[1,61],X=[89,90],Ce=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],xe=[1,72],Le=[1,73],we=[1,74],De=[1,75],Oe=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],N=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:f(function(i,r,l,s,E,t,de){var n=t.length-1;switch(E){case 4:this.$=t[n].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[n].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[n-3],t[n-4]);break;case 22:s.addRequirement(t[n-5],t[n-6]),s.setClass([t[n-5]],t[n-3]);break;case 23:s.setNewReqId(t[n-2]);break;case 24:s.setNewReqText(t[n-2]);break;case 25:s.setNewReqRisk(t[n-2]);break;case 26:s.setNewReqVerifyMethod(t[n-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[n-3]);break;case 43:s.addElement(t[n-5]),s.setClass([t[n-5]],t[n-3]);break;case 44:s.setNewElementType(t[n-2]);break;case 45:s.setNewElementDocRef(t[n-2]);break;case 48:s.addRelationship(t[n-2],t[n],t[n-4]);break;case 49:s.addRelationship(t[n-2],t[n-4],t[n]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[n-2],s.defineClass(t[n-1],t[n]);break;case 58:s.setClass(t[n-1],t[n]);break;case 59:s.setClass([t[n-2]],t[n]);break;case 60:case 62:this.$=[t[n]];break;case 61:case 63:this.$=t[n-2].concat([t[n]]);break;case 64:this.$=t[n-2],s.setCssStyle(t[n-1],t[n]);break;case 65:this.$=[t[n]];break;case 66:t[n-2].push(t[n]),this.$=t[n-2];break;case 68:this.$=t[n-1]+t[n];break}},"anonymous"),table:[{3:1,4:2,6:a,9:u,11:o,13:m},{1:[3]},{3:8,4:2,5:[1,7],6:a,9:u,11:o,13:m},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(c,[2,6]),{3:12,4:2,6:a,9:u,11:o,13:m},{1:[2,2]},{4:17,5:p,7:13,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},e(c,[2,4]),e(c,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:p,7:42,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:43,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:44,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:45,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:46,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:47,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:48,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:49,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:50,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(y,[2,17]),e(y,[2,18]),e(y,[2,19]),e(y,[2,20]),{30:60,33:62,75:$,89:g,90:_},{30:63,33:62,75:$,89:g,90:_},{30:64,33:62,75:$,89:g,90:_},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ce,[2,81]),e(Ce,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:xe,68:Le,69:we,70:De,71:Oe},{62:77,65:Ve,66:ve,67:xe,68:Le,69:we,70:De,71:Oe},{30:78,33:62,75:$,89:g,90:_},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:$,76:U,89:g,90:_},{5:[1,95]},{30:96,33:62,75:$,89:g,90:_},{5:[1,97]},{30:98,33:62,75:$,89:g,90:_},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(y,[2,59],{76:U}),e(y,[2,64],{76:Me}),{33:103,75:[1,102],89:g,90:_},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(N,[2,67]),e(N,[2,69]),e(N,[2,70]),e(N,[2,71]),e(N,[2,72]),e(N,[2,73]),e(N,[2,74]),e(N,[2,75]),e(N,[2,76]),e(N,[2,77]),e(N,[2,78]),e(y,[2,57],{76:Me}),e(y,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:g,90:_},{33:120,89:g,90:_},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(N,[2,68]),e(y,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(y,[2,28]),{5:[1,127]},e(y,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(y,[2,47]),{5:[1,131]},e(y,[2,48]),e(y,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:g,90:_},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(y,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(y,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(y,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(y,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(y,[2,23]),e(y,[2,24]),e(y,[2,25]),e(y,[2,26]),e(y,[2,44]),e(y,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:f(function(i,r){if(r.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=r,l}},"parseError"),parse:f(function(i){var r=this,l=[0],s=[],E=[null],t=[],de=this.table,n="",ye=0,Pe=0,He=2,$e=1,Ke=t.slice.call(arguments,1),S=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);S.setInput(i,G.yy),G.yy.lexer=S,G.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var Ie=S.yylloc;t.push(Ie);var We=S.options&&S.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(T){l.length=l.length-2*T,E.length=E.length-T,t.length=t.length-T}f(je,"popStack");function Ue(){var T;return T=s.pop()||S.lex()||$e,typeof T!="number"&&(T instanceof Array&&(s=T,T=s.pop()),T=r.symbols_[T]||T),T}f(Ue,"lex");for(var I,z,q,Te,J={},ge,F,Ye,_e;;){if(z=l[l.length-1],this.defaultActions[z]?q=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),q=de[z]&&de[z][I]),typeof q>"u"||!q.length||!q[0]){var ke="";_e=[];for(ge in de[z])this.terminals_[ge]&&ge>He&&_e.push("'"+this.terminals_[ge]+"'");S.showPosition?ke="Parse error on line "+(ye+1)+`:
|
|
2
2
|
`+S.showPosition()+`
|
|
3
3
|
Expecting `+_e.join(", ")+", got '"+(this.terminals_[I]||I)+"'":ke="Parse error on line "+(ye+1)+": Unexpected "+(I==$e?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(ke,{text:S.match,token:this.terminals_[I]||I,line:S.yylineno,loc:Ie,expected:_e})}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+I);switch(q[0]){case 1:l.push(I),E.push(S.yytext),t.push(S.yylloc),l.push(q[1]),I=null,Pe=S.yyleng,n=S.yytext,ye=S.yylineno,Ie=S.yylloc;break;case 2:if(F=this.productions_[q[1]][1],J.$=E[E.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},We&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),Te=this.performAction.apply(J,[n,Pe,ye,G.yy,q[1],E,t].concat(Ke)),typeof Te<"u")return Te;F&&(l=l.slice(0,-1*F*2),E=E.slice(0,-1*F),t=t.slice(0,-1*F)),l.push(this.productions_[q[1]][0]),E.push(J.$),t.push(J._$),Ye=de[l[l.length-2]][l[l.length-1]],l.push(Ye);break;case 3:return!0}}return!0},"parse")},Qe=function(){var P={EOF:1,parseError:f(function(r,l){if(this.yy.parser)this.yy.parser.parseError(r,l);else throw new Error(r)},"parseError"),setInput:f(function(i,r){return this.yy=r||this.yy||{},this._input=i,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:f(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:f(function(i){var r=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var s=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),l.length-1&&(this.yylineno-=l.length-1);var E=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:l?(l.length===s.length?this.yylloc.first_column:0)+s[s.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(i){this.unput(this.match.slice(i))},"less"),pastInput:f(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e}from"./BFOjhnLA.js";import{d as r,Z as m,i as n,q as c,u as o,o as p}from"./DbehhcO7.js";import"./9Skr9Ccw.js";import"./CxFAImHj.js";import"./DxMpy-ot.js";import"./agpUpIJe.js";import"./DqunUhPG.js";import"./DL1qmlP8.js";import"./BKh6DDUh.js";import"./BJMwGHo7.js";import"./DBku6oAz.js";const R=r({__name:"[name]",setup(s){const t=m(),i=n(()=>t.params.connectionId),a=n(()=>t.params.name);return(u,_)=>(p(),c(o(e),{"connection-id":o(i),"initial-tab":o(a)},null,8,["connection-id","initial-tab"]))}});export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a,d as o}from"./
|
|
1
|
+
import{_ as a,d as o}from"./ndyknmtb.js";var d=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{d as g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as qt}from"./
|
|
1
|
+
import{_ as qt}from"./CxFAImHj.js";import{d as G,c as P,e as a,t as h,F as Q,x as X,o as d,q as E,w as i,f as k,bi as de,a as s,_ as se,b as F,N as ae,n as me,r as I,am as Z,u as e,bj as ee,k as He,l as oe,m as Je,bS as We,z as Qe,B as Ge,bf as zt,cE as Ke,bm as Xe,cF as At,i as g,bk as Ye,bO as Vt,bP as Ot,bQ as Nt,bR as Mt,bH as Ut,bT as jt,bU as Ht,M as Jt,cG as Wt,bs as Qt,H as ye,G as Ze,a6 as et,bz as Gt,V as Kt,a$ as Xt,D as Yt,ae as Zt,Q as Le,aE as qe,bA as eo,bB as to,bC as oo}from"./DbehhcO7.js";import{_ as tt,a as ot}from"./DxMpy-ot.js";import{_ as st}from"./agpUpIJe.js";import{g as so,a as at}from"./DqunUhPG.js";import{_ as ao}from"./DL1qmlP8.js";import{u as no}from"./DBku6oAz.js";const lo={class:"rounded-lg border bg-muted/20 p-4"},ro={class:"space-y-4"},io={class:"text-sm font-medium"},uo={class:"mt-1 text-xs text-muted-foreground"},co={class:"text-xs text-muted-foreground"},mo={class:"mt-2 flex flex-wrap gap-2"},po={class:"mt-1 text-sm text-muted-foreground"},fo={class:"mt-1 text-sm font-medium"},ze=G({__name:"BackupProfileCard",props:{title:{},description:{},formats:{},toolHint:{},targetName:{},formatsLabel:{default:"Supported Files"}},setup(p){return(l,t)=>{const o=de;return d(),P("div",lo,[a("div",ro,[a("div",null,[a("p",io,h(l.title),1),a("p",uo,h(l.description),1)]),a("div",null,[a("p",co,h(l.formatsLabel),1),a("div",mo,[(d(!0),P(Q,null,X(l.formats,u=>(d(),E(o,{key:u.format,variant:"outline",class:"font-normal"},{default:i(()=>[k(h(u.extension),1)]),_:2},1024))),128))])]),a("div",null,[t[0]||(t[0]=a("p",{class:"text-xs text-muted-foreground"},"Runtime Tools",-1)),a("p",po,h(l.toolHint),1)]),a("div",null,[t[1]||(t[1]=a("p",{class:"text-xs text-muted-foreground"},"Target",-1)),a("p",fo,h(l.targetName),1)])])])}}}),vo={class:"text-muted-foreground"},go={class:"space-y-2 text-xs"},_o={class:"mt-4 pt-2 border-t border-border/40 flex flex-wrap items-center gap-3"},bo=`brew install postgresql # macOS
|
|
2
2
|
apt-get install postgresql-client # Linux
|
|
3
3
|
# Windows: Download from https://www.postgresql.org/download/windows/`,ho=`brew install mysql # macOS
|
|
4
4
|
apt-get install mysql-client # Linux
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as Cn,r as ne,au as we,i as S,aF as m,u as C,an as Mn,l as Ne,am as ye,aG as rt,at as Se,v as wn,ar as en,aC as it,aq as ue,aH as lt,aI as at,aJ as Re,a5 as De,aK as nn,aL as mn,aM as ut}from"./
|
|
1
|
+
import{d as Cn,r as ne,au as we,i as S,aF as m,u as C,an as Mn,l as Ne,am as ye,aG as rt,at as Se,v as wn,ar as en,aC as it,aq as ue,aH as lt,aI as at,aJ as Re,a5 as De,aK as nn,aL as mn,aM as ut}from"./DbehhcO7.js";var Te;Te||(Te={});/**
|
|
2
2
|
* vee-validate v4.15.0
|
|
3
3
|
* (c) 2024 Abdelrahman Awad
|
|
4
4
|
* @license MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Vt}from"./CAnZNTn6.js";import{s as Mt}from"./CHFYZcjC.js";import{_ as u,b as Bt,a as Ft,s as Yt,g as Pt,q as zt,t as Gt,c as it,l as L,A as Kt,y as Ut,C as Zt,E as jt,p as Wt,r as Qt,d as Xt,u as qt}from"./Dzy2Amcc.js";import{c as Ht}from"./DX42Brjy.js";import"./DD6NieRw.js";var _t=function(){var s=u(function(R,n,a,c){for(a=a||{},c=R.length;c--;a[R[c]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],h=[1,10],d=[1,11],o=[1,12],l=[1,13],f=[1,23],_=[1,24],E=[1,25],V=[1,26],W=[1,27],S=[1,19],rt=[1,28],Q=[1,29],T=[1,20],I=[1,18],M=[1,21],B=[1,22],nt=[1,36],at=[1,37],ct=[1,38],lt=[1,39],ot=[1,40],F=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],O=[1,45],N=[1,46],Y=[1,55],P=[40,48,50,51,52,70,71],z=[1,66],G=[1,64],A=[1,61],K=[1,65],U=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],gt=[65,66,67,68,69],bt=[1,84],mt=[1,83],Et=[1,81],kt=[1,82],St=[6,10,42,47],v=[6,10,13,41,42,47,48,49],q=[1,92],H=[1,91],J=[1,90],Z=[19,58],Tt=[1,101],Ot=[1,100],ht=[19,58,60,62],ut={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:u(function(n,a,c,r,p,t,j){var e=t.length-1;switch(p){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 59:case 67:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 79:case 80:this.$=t[e].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=t[e];break;case 60:t[e].push(t[e-1]),this.$=t[e];break;case 61:this.$={type:t[e-1],name:t[e]};break;case 62:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 63:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 64:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 65:case 66:case 69:this.$=t[e];break;case 68:t[e-2].push(t[e]),this.$=t[e-2];break;case 70:this.$=t[e].replace(/"/g,"");break;case 71:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:h,24:d,26:o,28:l,29:14,30:15,31:16,32:17,33:f,34:_,35:E,36:V,37:W,40:S,43:rt,44:Q,48:T,50:I,51:M,52:B},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:h,24:d,26:o,28:l,29:14,30:15,31:16,32:17,33:f,34:_,35:E,36:V,37:W,40:S,43:rt,44:Q,48:T,50:I,51:M,52:B},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:nt,66:at,67:ct,68:lt,69:ot}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(F,[2,54]),s(F,[2,55]),s(F,[2,56]),s(F,[2,57]),s(F,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},s(i,[2,4]),{11:49,40:S,48:T,50:I,51:M,52:B},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:Y},{11:56,40:S,48:T,50:I,51:M,52:B},{64:57,70:[1,58],71:[1,59]},s(P,[2,72]),s(P,[2,73]),s(P,[2,74]),s(P,[2,75]),s(P,[2,76]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:z,38:60,41:G,42:A,45:62,46:63,48:K,49:U},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:N,42:A},{13:z,38:69,41:G,42:A,45:62,46:63,48:K,49:U},{13:[1,70],15:[1,71]},s(i,[2,17],{63:35,12:72,17:[1,73],42:A,65:nt,66:at,67:ct,68:lt,69:ot}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:Y},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:nt,66:at,67:ct,68:lt,69:ot},s(gt,[2,77]),s(gt,[2,78]),{6:bt,10:mt,39:80,42:Et,47:kt},{40:[1,85],41:[1,86]},s(St,[2,43],{46:87,13:z,41:G,48:K,49:U}),s(v,[2,45]),s(v,[2,50]),s(v,[2,51]),s(v,[2,52]),s(v,[2,53]),s(i,[2,41],{42:A}),{6:bt,10:mt,39:88,42:Et,47:kt},{14:89,40:q,50:H,72:J},{16:93,40:O,41:N},{11:94,40:S,48:T,50:I,51:M,52:B},{18:95,19:[1,96],53:53,54:54,58:Y},s(i,[2,12]),{19:[2,60]},s(Z,[2,61],{56:97,57:98,59:99,61:Tt,62:Ot}),s([19,58,61,62],[2,66]),s(i,[2,22],{15:[1,103],17:[1,102]}),s([40,48,50,51,52],[2,71]),s(i,[2,36]),{13:z,41:G,45:104,46:63,48:K,49:U},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(v,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,79]),s(i,[2,80]),s(i,[2,81]),{13:[1,105],42:A},{13:[1,107],15:[1,106]},{19:[1,108]},s(i,[2,15]),s(Z,[2,62],{57:109,60:[1,110],62:Ot}),s(Z,[2,63]),s(ht,[2,67]),s(Z,[2,70]),s(ht,[2,69]),{18:111,19:[1,112],53:53,54:54,58:Y},{16:113,40:O,41:N},s(St,[2,44],{46:87,13:z,41:G,48:K,49:U}),{14:114,40:q,50:H,72:J},{16:115,40:O,41:N},{14:116,40:q,50:H,72:J},s(i,[2,13]),s(Z,[2,64]),{59:117,61:Tt},{19:[1,118]},s(i,[2,20]),s(i,[2,23],{17:[1,119],42:A}),s(i,[2,11]),{13:[1,120],42:A},s(i,[2,10]),s(ht,[2,68]),s(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:Y},{14:123,40:q,50:H,72:J},{19:[1,124]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:u(function(n,a){if(a.recoverable)this.trace(n);else{var c=new Error(n);throw c.hash=a,c}},"parseError"),parse:u(function(n){var a=this,c=[0],r=[],p=[null],t=[],j=this.table,e="",tt=0,Nt=0,vt=2,At=1,Dt=t.slice.call(arguments,1),y=Object.create(this.lexer),x={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(x.yy[dt]=this.yy[dt]);y.setInput(n,x.yy),x.yy.lexer=y,x.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var pt=y.yylloc;t.push(pt);var Lt=y.options&&y.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function wt(b){c.length=c.length-2*b,p.length=p.length-b,t.length=t.length-b}u(wt,"popStack");function Rt(){var b;return b=r.pop()||y.lex()||At,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=a.symbols_[b]||b),b}u(Rt,"lex");for(var g,C,m,yt,D={},et,k,It,st;;){if(C=c[c.length-1],this.defaultActions[C]?m=this.defaultActions[C]:((g===null||typeof g>"u")&&(g=Rt()),m=j[C]&&j[C][g]),typeof m>"u"||!m.length||!m[0]){var ft="";st=[];for(et in j[C])this.terminals_[et]&&et>vt&&st.push("'"+this.terminals_[et]+"'");y.showPosition?ft="Parse error on line "+(tt+1)+`:
|
|
1
|
+
import{g as Vt}from"./BDw-ivE-.js";import{s as Mt}from"./BjfaOtB-.js";import{_ as u,b as Bt,a as Ft,s as Yt,g as Pt,q as zt,t as Gt,c as it,l as L,A as Kt,y as Ut,C as Zt,E as jt,p as Wt,r as Qt,d as Xt,u as qt}from"./ndyknmtb.js";import{c as Ht}from"./CI85gLx4.js";import"./DbehhcO7.js";var _t=function(){var s=u(function(R,n,a,c){for(a=a||{},c=R.length;c--;a[R[c]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],h=[1,10],d=[1,11],o=[1,12],l=[1,13],f=[1,23],_=[1,24],E=[1,25],V=[1,26],W=[1,27],S=[1,19],rt=[1,28],Q=[1,29],T=[1,20],I=[1,18],M=[1,21],B=[1,22],nt=[1,36],at=[1,37],ct=[1,38],lt=[1,39],ot=[1,40],F=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],O=[1,45],N=[1,46],Y=[1,55],P=[40,48,50,51,52,70,71],z=[1,66],G=[1,64],A=[1,61],K=[1,65],U=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],gt=[65,66,67,68,69],bt=[1,84],mt=[1,83],Et=[1,81],kt=[1,82],St=[6,10,42,47],v=[6,10,13,41,42,47,48,49],q=[1,92],H=[1,91],J=[1,90],Z=[19,58],Tt=[1,101],Ot=[1,100],ht=[19,58,60,62],ut={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:u(function(n,a,c,r,p,t,j){var e=t.length-1;switch(p){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 59:case 67:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 79:case 80:this.$=t[e].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=t[e];break;case 60:t[e].push(t[e-1]),this.$=t[e];break;case 61:this.$={type:t[e-1],name:t[e]};break;case 62:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 63:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 64:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 65:case 66:case 69:this.$=t[e];break;case 68:t[e-2].push(t[e]),this.$=t[e-2];break;case 70:this.$=t[e].replace(/"/g,"");break;case 71:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:h,24:d,26:o,28:l,29:14,30:15,31:16,32:17,33:f,34:_,35:E,36:V,37:W,40:S,43:rt,44:Q,48:T,50:I,51:M,52:B},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:h,24:d,26:o,28:l,29:14,30:15,31:16,32:17,33:f,34:_,35:E,36:V,37:W,40:S,43:rt,44:Q,48:T,50:I,51:M,52:B},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:nt,66:at,67:ct,68:lt,69:ot}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(F,[2,54]),s(F,[2,55]),s(F,[2,56]),s(F,[2,57]),s(F,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},s(i,[2,4]),{11:49,40:S,48:T,50:I,51:M,52:B},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:Y},{11:56,40:S,48:T,50:I,51:M,52:B},{64:57,70:[1,58],71:[1,59]},s(P,[2,72]),s(P,[2,73]),s(P,[2,74]),s(P,[2,75]),s(P,[2,76]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:z,38:60,41:G,42:A,45:62,46:63,48:K,49:U},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:N,42:A},{13:z,38:69,41:G,42:A,45:62,46:63,48:K,49:U},{13:[1,70],15:[1,71]},s(i,[2,17],{63:35,12:72,17:[1,73],42:A,65:nt,66:at,67:ct,68:lt,69:ot}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:Y},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:nt,66:at,67:ct,68:lt,69:ot},s(gt,[2,77]),s(gt,[2,78]),{6:bt,10:mt,39:80,42:Et,47:kt},{40:[1,85],41:[1,86]},s(St,[2,43],{46:87,13:z,41:G,48:K,49:U}),s(v,[2,45]),s(v,[2,50]),s(v,[2,51]),s(v,[2,52]),s(v,[2,53]),s(i,[2,41],{42:A}),{6:bt,10:mt,39:88,42:Et,47:kt},{14:89,40:q,50:H,72:J},{16:93,40:O,41:N},{11:94,40:S,48:T,50:I,51:M,52:B},{18:95,19:[1,96],53:53,54:54,58:Y},s(i,[2,12]),{19:[2,60]},s(Z,[2,61],{56:97,57:98,59:99,61:Tt,62:Ot}),s([19,58,61,62],[2,66]),s(i,[2,22],{15:[1,103],17:[1,102]}),s([40,48,50,51,52],[2,71]),s(i,[2,36]),{13:z,41:G,45:104,46:63,48:K,49:U},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(v,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,79]),s(i,[2,80]),s(i,[2,81]),{13:[1,105],42:A},{13:[1,107],15:[1,106]},{19:[1,108]},s(i,[2,15]),s(Z,[2,62],{57:109,60:[1,110],62:Ot}),s(Z,[2,63]),s(ht,[2,67]),s(Z,[2,70]),s(ht,[2,69]),{18:111,19:[1,112],53:53,54:54,58:Y},{16:113,40:O,41:N},s(St,[2,44],{46:87,13:z,41:G,48:K,49:U}),{14:114,40:q,50:H,72:J},{16:115,40:O,41:N},{14:116,40:q,50:H,72:J},s(i,[2,13]),s(Z,[2,64]),{59:117,61:Tt},{19:[1,118]},s(i,[2,20]),s(i,[2,23],{17:[1,119],42:A}),s(i,[2,11]),{13:[1,120],42:A},s(i,[2,10]),s(ht,[2,68]),s(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:Y},{14:123,40:q,50:H,72:J},{19:[1,124]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:u(function(n,a){if(a.recoverable)this.trace(n);else{var c=new Error(n);throw c.hash=a,c}},"parseError"),parse:u(function(n){var a=this,c=[0],r=[],p=[null],t=[],j=this.table,e="",tt=0,Nt=0,vt=2,At=1,Dt=t.slice.call(arguments,1),y=Object.create(this.lexer),x={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(x.yy[dt]=this.yy[dt]);y.setInput(n,x.yy),x.yy.lexer=y,x.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var pt=y.yylloc;t.push(pt);var Lt=y.options&&y.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function wt(b){c.length=c.length-2*b,p.length=p.length-b,t.length=t.length-b}u(wt,"popStack");function Rt(){var b;return b=r.pop()||y.lex()||At,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=a.symbols_[b]||b),b}u(Rt,"lex");for(var g,C,m,yt,D={},et,k,It,st;;){if(C=c[c.length-1],this.defaultActions[C]?m=this.defaultActions[C]:((g===null||typeof g>"u")&&(g=Rt()),m=j[C]&&j[C][g]),typeof m>"u"||!m.length||!m[0]){var ft="";st=[];for(et in j[C])this.terminals_[et]&&et>vt&&st.push("'"+this.terminals_[et]+"'");y.showPosition?ft="Parse error on line "+(tt+1)+`:
|
|
2
2
|
`+y.showPosition()+`
|
|
3
3
|
Expecting `+st.join(", ")+", got '"+(this.terminals_[g]||g)+"'":ft="Parse error on line "+(tt+1)+": Unexpected "+(g==At?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(ft,{text:y.match,token:this.terminals_[g]||g,line:y.yylineno,loc:pt,expected:st})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+g);switch(m[0]){case 1:c.push(g),p.push(y.yytext),t.push(y.yylloc),c.push(m[1]),g=null,Nt=y.yyleng,e=y.yytext,tt=y.yylineno,pt=y.yylloc;break;case 2:if(k=this.productions_[m[1]][1],D.$=p[p.length-k],D._$={first_line:t[t.length-(k||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(k||1)].first_column,last_column:t[t.length-1].last_column},Lt&&(D._$.range=[t[t.length-(k||1)].range[0],t[t.length-1].range[1]]),yt=this.performAction.apply(D,[e,Nt,tt,x.yy,m[1],p,t].concat(Dt)),typeof yt<"u")return yt;k&&(c=c.slice(0,-1*k*2),p=p.slice(0,-1*k),t=t.slice(0,-1*k)),c.push(this.productions_[m[1]][0]),p.push(D.$),t.push(D._$),It=j[c[c.length-2]][c[c.length-1]],c.push(It);break;case 3:return!0}}return!0},"parse")},Ct=function(){var R={EOF:1,parseError:u(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:u(function(n,a){return this.yy=a||this.yy||{},this._input=n,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:u(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var a=n.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:u(function(n){var a=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var r=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),c.length-1&&(this.yylineno-=c.length-1);var p=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:c?(c.length===r.length?this.yylloc.first_column:0)+r[r.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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:u(function(n){this.unput(this.match.slice(n))},"less"),pastInput:u(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var n=this.pastInput(),a=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as c,l as te,c as W,L as fe,ah as ye,ai as be,aj as me,ac as _e,I as Y,i as G,v as ke,J as Ee,ad as Se,ae as le,af as ce}from"./
|
|
1
|
+
import{_ as c,l as te,c as W,L as fe,ah as ye,ai as be,aj as me,ac as _e,I as Y,i as G,v as ke,J as Ee,ad as Se,ae as le,af as ce}from"./ndyknmtb.js";import{g as Ne}from"./CbkolJXg.js";import"./DbehhcO7.js";var $=function(){var t=c(function(_,s,n,a){for(n=n||{},a=_.length;a--;n[_[a]]=s);return n},"o"),g=[1,4],d=[1,13],r=[1,12],p=[1,15],k=[1,16],f=[1,20],h=[1,19],L=[6,7,8],C=[1,26],w=[1,24],N=[1,25],i=[6,7,11],j=[1,31],x=[6,7,11,24],P=[1,6,13,16,17,20,23],M=[1,35],U=[1,36],A=[1,6,7,11,13,16,17,20,23],H=[1,38],V={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},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,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(function(s,n,a,o,u,e,B){var l=e.length-1;switch(u){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: ",e[l-1].id),o.addNode(e[l-2].length,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 16:o.getLogger().info("Node: ",e[l].id),o.addNode(e[l-1].length,e[l].id,e[l].descr,e[l].type);break;case 17:o.getLogger().trace("Icon: ",e[l]),o.decorateNode({icon:e[l]});break;case 18:case 23:o.decorateNode({class:e[l]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",e[l-1].id),o.addNode(0,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 21:o.getLogger().trace("Node: ",e[l].id),o.addNode(0,e[l].id,e[l].descr,e[l].type);break;case 22:o.decorateNode({icon:e[l]});break;case 27:o.getLogger().trace("node found ..",e[l-2]),this.$={id:e[l-1],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 28:this.$={id:e[l],descr:e[l],type:0};break;case 29:o.getLogger().trace("node found ..",e[l-3]),this.$={id:e[l-3],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 30:this.$=e[l-1]+e[l];break;case 31:this.$=e[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(L,[2,3]),{1:[2,2]},t(L,[2,4]),t(L,[2,5]),{1:[2,6],6:d,12:21,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:C,7:w,10:23,11:N},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(i,[2,19]),t(i,[2,21],{15:30,24:j}),t(i,[2,22]),t(i,[2,23]),t(x,[2,25]),t(x,[2,26]),t(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:w,10:34,11:N},{1:[2,7],6:d,12:21,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(P,[2,14],{7:M,11:U}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(i,[2,16],{15:37,24:j}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:H}),t(x,[2,31]),{21:[1,39]},{22:[1,40]},t(P,[2,13],{7:M,11:U}),t(A,[2,11]),t(A,[2,12]),t(i,[2,15],{24:H}),t(x,[2,30]),{22:[1,41]},t(x,[2,27]),t(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:c(function(s){var n=this,a=[0],o=[],u=[null],e=[],B=this.table,l="",z=0,ie=0,ue=2,re=1,ge=e.slice.call(arguments,1),b=Object.create(this.lexer),T={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(T.yy[J]=this.yy[J]);b.setInput(s,T.yy),T.yy.lexer=b,T.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;e.push(q);var de=b.options&&b.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){a.length=a.length-2*S,u.length=u.length-S,e.length=e.length-S}c(pe,"popStack");function ae(){var S;return S=o.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=n.symbols_[S]||S),S}c(ae,"lex");for(var E,R,v,Q,F={},X,I,oe,K;;){if(R=a[a.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((E===null||typeof E>"u")&&(E=ae()),v=B[R]&&B[R][E]),typeof v>"u"||!v.length||!v[0]){var Z="";K=[];for(X in B[R])this.terminals_[X]&&X>ue&&K.push("'"+this.terminals_[X]+"'");b.showPosition?Z="Parse error on line "+(z+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+K.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Z="Parse error on line "+(z+1)+": Unexpected "+(E==re?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[E]||E,line:b.yylineno,loc:q,expected:K})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+E);switch(v[0]){case 1:a.push(E),u.push(b.yytext),e.push(b.yylloc),a.push(v[1]),E=null,ie=b.yyleng,l=b.yytext,z=b.yylineno,q=b.yylloc;break;case 2:if(I=this.productions_[v[1]][1],F.$=u[u.length-I],F._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},de&&(F._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),Q=this.performAction.apply(F,[l,ie,z,T.yy,v[1],u,e].concat(ge)),typeof Q<"u")return Q;I&&(a=a.slice(0,-1*I*2),u=u.slice(0,-1*I),e=e.slice(0,-1*I)),a.push(this.productions_[v[1]][0]),u.push(F.$),e.push(F._$),oe=B[a[a.length-2]][a[a.length-1]],a.push(oe);break;case 3:return!0}}return!0},"parse")},m=function(){var _={EOF:1,parseError:c(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:c(function(s,n){return this.yy=n||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:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(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:c(function(s){var n=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;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 u=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-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(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:c(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:c(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|