2026-06-16 05:58:18 +00:00
import { g as Bt } from "./chunk-55IACEB6.Bl0K_47V.js" ; import { s as Ft } from "./chunk-2J33WTMH.ok9i47Q8.js" ; import { _ as d , b as Yt , a as Pt , s as zt , g as Gt , q as Kt , t as Ut , c as rt , l as V , A as Zt , y as jt , C as Wt , E as Qt , p as Xt , r as Ht , d as qt , u as Jt } from "./mermaid.core.BrszyIat.js" ; import { c as $t } from "./channel.C-epN8i-.js" ; import "./framework.C2AwuPrQ.js" ; var gt = ( function ( ) { var s = d ( function ( C , n , a , o ) { for ( a = a || { } , o = C . length ; o -- ; a [ C [ o ] ] = n ) ; return a } , "o" ) , i = [ 6 , 8 , 10 , 22 , 24 , 26 , 28 , 33 , 34 , 35 , 36 , 37 , 40 , 43 , 44 , 48 , 50 , 51 , 52 ] , c = [ 1 , 10 ] , h = [ 1 , 11 ] , l = [ 1 , 12 ] , p = [ 1 , 13 ] , y = [ 1 , 23 ] , u = [ 1 , 24 ] , m = [ 1 , 25 ] , W = [ 1 , 26 ] , Q = [ 1 , 27 ] , T = [ 1 , 19 ] , X = [ 1 , 28 ] , B = [ 1 , 29 ] , D = [ 1 , 20 ] , I = [ 1 , 18 ] , S = [ 1 , 21 ] , R = [ 1 , 22 ] , at = [ 1 , 36 ] , ct = [ 1 , 37 ] , ot = [ 1 , 38 ] , lt = [ 1 , 39 ] , ht = [ 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 ] , A = [ 1 , 46 ] , Y = [ 1 , 55 ] , P = [ 40 , 48 , 50 , 51 , 52 , 70 , 71 ] , z = [ 1 , 66 ] , G = [ 1 , 64 ] , N = [ 1 , 61 ] , K = [ 1 , 65 ] , U = [ 1 , 67 ] , H = [ 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 ] , bt = [ 65 , 66 , 67 , 68 , 69 ] , kt = [ 1 , 84 ] , mt = [ 1 , 83 ] , Et = [ 1 , 81 ] , Tt = [ 1 , 82 ] , St = [ 6 , 10 , 42 , 47 ] , L = [ 6 , 10 , 13 , 41 , 42 , 47 , 48 , 49 ] , q = [ 1 , 92 ] , J = [ 1 , 91 ] , $ = [ 1 , 90 ] , Z = [ 19 , 58 ] , Ot = [ 1 , 101 ] , At = [ 1 , 100 ] , ut = [ 19 , 58 , 60 , 62 ] , dt = { trace : d ( 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 : d ( function ( n , a , o , r , f , t , j ) { var e = t . length - 1 ; switch ( f ) { 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 ] ,
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var a=this.next();return a||this.lex()},"lex"),begin:d(function(a){this.conditionStack.push(a)},"begin"),popState:d(function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:d(function(a){this.begin(a)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(a,o,r,f){switch(r){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 72;case 16:return 4;case 17:return this.begin("block"),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 61;case 25:return 58;case 26:return 58;case 27:return 62;case 28:break;case 29:return this.popState(),19;case 30:return o.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 65;case 42:return 67;case 43:return 67;case 44:return 67;case 45:return 65;case 46:return 65;case 47:return 66;case 48:return 66;case 49:return 66;case 50:return 66;case 51:return 66;case 52:return 67;case 53:return 66;case 54:return 67;case 55:return 68;case 56:return 68;case 57:return 51;case 58:return 68;case 59:return 68;case 60:return 68;case 61:return 52;case 62:return 48;case 63:return 68;case 64:return 65;case 65:return 66;case 66:return 67;case 67:return 69;case 68:return 70;case 69:return 71;case 70:return 71;case 71:return 70;case 72:return 70;case 73:return 70;case 74:return 41;case 75:return 47;case 76:return 40;case 77:return o.yytext[0];case 78:return 6}},"anonymous"),rules:[/^(?:accTitle \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s * \{ \s *)/i,/^(?:[ \} ])/i,/^(?:[^ \} ]*)/i,/^(?:.*direction \s +TB[^ \n ]*)/i,/^(?:.*direction \s +BT[^ \n ]*)/i,/^(?:.*direction \s +RL[^ \n ]*)/i,/^(?:.*direction \s +LR[^ \n ]*)/i,/^(?:[ \n ]+)/i,/^(?: \s +)/i,/^(?:[ \s ]+)/i,/^(?:"[^"% \r \n \v \b \\ ]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram \b )/i,/^(?: \{ )/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?: \s +)/i,/^(?: \b ((?:PK)|(?:FK)|(?:UK)) \b )/i,/^(?:([^ \s ]*)[~].*[~]([^ \s ]*))/i,/^(?:([ \* A-Za-z_ \u 00C0- \u FFFF][A-Za-z0-9 \- \_ \[ \] \( \) \u 00C0- \u FFFF \* ]*))/i,/^(?:"[^"]*")/i,/^(?:[ \n ]+)/i,/^(?: \} )/i,/^(?:.)/i,/^(?: \[ )/i,/^(?: \] )/i,/^(?:style \b )/i,/^(?:[ \n ]+)/i,/^(?: \s +)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef \b )/i,/^(?:class \b )/i,/^(?:one or zero \b )/i,/^(?:one or more \b )/i,/^(?:one or many \b )/i,/^(?:1 \+ )/i,/^(?: \| o \b )/i,/^(?:zero or one \b )/i,/^(?:zero or more \b )/i,/^(?:zero or many \b )/i,/^(?:0 \+ )/i,/^(?: \} o \b )/i,/^(?:many \( 0 \) )/i,/^(?:many \( 1 \) )/i,/^(?:many \b )/i,/^(?: \} \| )/i,/^(?:one \b )/i,/^(?:only one \b )/i,/^(?:[0-9]+ \. [0-9]+)/i,/^(?:1(?= \s +[A-Za-z_"']))/i,/^(?:1(?= \s +[0-9]))/i,/^(?:1(?=(--| \. \. | \. -|- \. )))/i,/^(?:1 \b )/i,/^(?:[0-9]+)/i,/^(?: \| \| )/i,/^(?:o \| )/i,/^(?:o \{ )/i,/^(?: \| \{ )/i,/^(?:u(?=[ \. \- \| ]))/i,/^(?: \. \. )/i,/^(?:--)/i,/^(?:to \b )/i,/^(?:optionally to \b )/i,/^(?: \. -)/i,/^(?:- \. )/i,/^(?:([^ \x 00- \x 7F]| \w |-| \* )+)/i,/^(?:;)/i,/^(?:([^ \x 00- \x 7F]| \w |-| \* | \. )+)/i,/^(?:.)/i,/^(?: $ )/i],conditions:{style:{rules:[34,35,36,37,38,74,75],inclusive:!