@juki-team/base-ui 1.5.13 → 1.5.14
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/dist/esm/ArrowForwardIcon-C9lEPgxF.js +1 -0
- package/dist/esm/{BarChart-D2X8Qu4u.js → BarChart-CmUpEfgx.js} +1 -1
- package/dist/esm/{CartesianChart-DYpkf6Ou.js → CartesianChart-DCv2SXML.js} +1 -1
- package/dist/esm/{ChangePasswordModal-yc4D7RMs.js → ChangePasswordModal-CLhaqd0t.js} +1 -1
- package/dist/esm/{CodeEditor-Dxp5QnTB.js → CodeEditor-BCPgv2Cb.js} +1 -1
- package/dist/esm/{CodeViewer-BSZXIngC.js → CodeViewer-BRpMXuea.js} +1 -1
- package/dist/esm/{Collapse-D-w5SKss.js → Collapse-afKIPlSN.js} +1 -1
- package/dist/esm/{DataGrid-BdFgb8IP.js → DataGrid-1GBbtJPo.js} +1 -1
- package/dist/esm/{DataViewer-DVVGkDSK.js → DataViewer-sY3-mm2f.js} +1 -1
- package/dist/esm/{DrawerView-DCRvckZd.js → DrawerView-CDVcbXRh.js} +1 -1
- package/dist/esm/{ExcalidrawButton-_a-eNbyb.js → ExcalidrawButton-DpC-H9ia.js} +1 -1
- package/dist/esm/{GraphvizViewer-B2-JVx0t.js → GraphvizViewer-BVrLuU49.js} +1 -1
- package/dist/esm/{ImageLoaderCropper-wV-hPOjq.js → ImageLoaderCropper-qgwMwAGw.js} +1 -1
- package/dist/esm/{InputCellPhoneNumber-Bcl22QsC.js → InputCellPhoneNumber-EJdJwdOU.js} +1 -1
- package/dist/esm/{InputColor-CHgGjI3f.js → InputColor-UJ28fLOn.js} +1 -1
- package/dist/esm/{LineChart-ByKPkVhP.js → LineChart-CK_uehIw.js} +1 -1
- package/dist/esm/{LoaderLayer-ECtsj85k.js → LoaderLayer-CyitSTCe.js} +1 -1
- package/dist/esm/{MdMath-DljkRDxR.js → MdMath-DdXwM7hb.js} +1 -1
- package/dist/esm/{MdMathEditor-Dvq5oODw.js → MdMathEditor-DWwwX_SO.js} +1 -1
- package/dist/esm/{Popover-CX8YffOd.js → Popover-CmhtPayh.js} +1 -1
- package/dist/esm/ReplyIcon-CxQ2sdad.js +1 -0
- package/dist/esm/{SettingsIcon-B9nmP4lD.js → SettingsIcon-CegP07CF.js} +1 -1
- package/dist/esm/{SlideDeck-C0n93gz0.js → SlideDeck-BCpZmg4u.js} +1 -1
- package/dist/esm/{TableEyeIcon-Mb5aFvN0.js → TableEyeIcon-C4nuk_xp.js} +1 -1
- package/dist/esm/{TableOfContents-BBAEZx6Z.js → TableOfContents-B7API9_v.js} +1 -1
- package/dist/esm/{Tooltip-DB0S1ErV.js → Tooltip-C_PscPTv.js} +1 -1
- package/dist/esm/{UserCodeEditor-B1d5gyVE.js → UserCodeEditor-DqHZdH0s.js} +2 -2
- package/dist/esm/{VirtualizedRowsFixed-ChX4ON0l.js → VirtualizedRowsFixed-ExvaHy3O.js} +1 -1
- package/dist/esm/{WorksheetAsSlides-CpiXbUML.js → WorksheetAsSlides-Bf0TBaKQ.js} +1 -1
- package/dist/esm/{WorksheetBodies-CO67-rEz.js → WorksheetBodies-dstnMykc.js} +1 -1
- package/dist/esm/{WorksheetContents-ClZpiXB-.js → WorksheetContents-DSLbRrOR.js} +1 -1
- package/dist/esm/{WorksheetEditor-CjAvgOx6.js → WorksheetEditor-DHgjrze5.js} +1 -1
- package/dist/esm/{WorksheetNode-BgNNzY8I.js → WorksheetNode-BWrXWPtD.js} +1 -1
- package/dist/esm/{WorksheetViewer-DVQitUzi.js → WorksheetViewer-BtWO3C0N.js} +1 -1
- package/dist/esm/{abnfDiagram-WEYOIA3C-CwJ1V2U1.js → abnfDiagram-WEYOIA3C-Hw5eOSwT.js} +1 -1
- package/dist/esm/{arc-COK0VEkT.js → arc-DomqdCJb.js} +1 -1
- package/dist/esm/{architectureDiagram-ZHVYKT53-CM6AQFKG.js → architectureDiagram-ZHVYKT53-BU7Zo-Vd.js} +1 -1
- package/dist/esm/{blockDiagram-RJAE7QA3-CdSNo9Pe.js → blockDiagram-RJAE7QA3-DSHzRL6J.js} +1 -1
- package/dist/esm/{c4Diagram-XDPPPE54-BhfYKASq.js → c4Diagram-XDPPPE54-CpLQ9pqY.js} +1 -1
- package/dist/esm/channel-p0K5iSo0.js +1 -0
- package/dist/esm/{chunk-2E7WHVMD-CVBqw5fR.js → chunk-2E7WHVMD-Beocb-Jh.js} +1 -1
- package/dist/esm/{chunk-2Q5K7J3B-CyZYeWxE.js → chunk-2Q5K7J3B-BvYoUWYj.js} +1 -1
- package/dist/esm/{chunk-4EMNKR2T-D1yHHif8.js → chunk-4EMNKR2T-CwTwaoZv.js} +1 -1
- package/dist/esm/{chunk-55XCU76K-CvYWAV_o.js → chunk-55XCU76K-Bm2vEyhO.js} +1 -1
- package/dist/esm/{chunk-5VM5RSS4-CS0kZLYA.js → chunk-5VM5RSS4-bDfGkvI-.js} +1 -1
- package/dist/esm/{chunk-JWPE2WC7-Ct5OBLCL.js → chunk-JWPE2WC7-WoJ0Gwzc.js} +1 -1
- package/dist/esm/{chunk-NQOKRVIF-D0-2mmH4.js → chunk-NQOKRVIF-BsYoUZL4.js} +1 -1
- package/dist/esm/{chunk-VQ5W62QI-CsGo0PTx.js → chunk-VQ5W62QI-BTvKzH75.js} +1 -1
- package/dist/esm/{chunk-XXDRQBXY-DPPGTM3w.js → chunk-XXDRQBXY-ClHdtw3t.js} +1 -1
- package/dist/esm/{chunk-ZCHMQSOR-Bvjutmxm.js → chunk-ZCHMQSOR-BuzD1sYe.js} +1 -1
- package/dist/esm/{classDiagram-v2-4MYWR3UA-J_cOAAHS.js → classDiagram-v2-4MYWR3UA-BGFOFtLW.js} +1 -1
- package/dist/esm/{commons-iref2pEJ.js → commons-CmbPiYDE.js} +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/{cose-bilkent-JH36ORCC-BHzp2aV0.js → cose-bilkent-JH36ORCC-WrGk8F3q.js} +1 -1
- package/dist/esm/{cynefinDiagram-WF24UDRP-B3Y9mCh3.js → cynefinDiagram-WF24UDRP-plMeajnN.js} +1 -1
- package/dist/esm/{dagre-NK4GIZVX-BSfh-C_i.js → dagre-NK4GIZVX-DFmweJ5L.js} +1 -1
- package/dist/esm/{diagram-CBK3MWTC-w-BT1S7I.js → diagram-CBK3MWTC-Do3xyOgp.js} +1 -1
- package/dist/esm/{diagram-I5XIIV2D-wMqo87b_.js → diagram-I5XIIV2D-BjcBIOdi.js} +1 -1
- package/dist/esm/{diagram-ODIL2UCW-DQhUXqDu.js → diagram-ODIL2UCW-B9Avmrsd.js} +1 -1
- package/dist/esm/{diagram-PFBEJUXE-BlCntZMJ.js → diagram-PFBEJUXE-BspjnifG.js} +1 -1
- package/dist/esm/{diagram-RJA3I4VV-Cev21A9i.js → diagram-RJA3I4VV-CDb0YVvV.js} +1 -1
- package/dist/esm/{diagram-TYUNFSNR-BiiLNoPs.js → diagram-TYUNFSNR-CowQmn1U.js} +1 -1
- package/dist/esm/{ebnfDiagram-V4P3TTPT-BWNnHl88.js → ebnfDiagram-V4P3TTPT-DoV9Lfm1.js} +1 -1
- package/dist/esm/{elk-QONTBCTQ-DhvgoeNg.js → elk-QONTBCTQ-Di5ig-t7.js} +1 -1
- package/dist/esm/{erDiagram-KYQIGQAA-DkFGw08p.js → erDiagram-KYQIGQAA-bd6-MJG2.js} +1 -1
- package/dist/esm/flowDiagram-IUGLLWBU-B0MSMUTA.js +1 -0
- package/dist/esm/{ganttDiagram-R7GPNTJY-Bvr90Acy.js → ganttDiagram-R7GPNTJY-lkIa_H6_.js} +1 -1
- package/dist/esm/{gitGraphDiagram-PDYL7XHY-DHszoB7b.js → gitGraphDiagram-PDYL7XHY-Vj--WuIK.js} +1 -1
- package/dist/esm/helpers.js +1 -1
- package/dist/esm/{index-DkZReaeM.js → index-D9j3iMPO.js} +1 -1
- package/dist/esm/{index-B5Soolr4.js → index-DBVTTZ07.js} +1 -1
- package/dist/esm/{index-2PTQqTnK.js → index-KB6gLBva.js} +1 -1
- package/dist/esm/{index-70SVfF-m.js → index-P2yxumel.js} +1 -1
- package/dist/esm/index-jAIWmSeN.js +1 -0
- package/dist/esm/{infoDiagram-MVDRKAX5-D05SjyVf.js → infoDiagram-MVDRKAX5-DOeZ2-C8.js} +1 -1
- package/dist/esm/{ishikawaDiagram-HPEHV2GE-50RQ8Owd.js → ishikawaDiagram-HPEHV2GE-CENo4osB.js} +1 -1
- package/dist/esm/{journeyDiagram-BOSHW7O7-DnHu8DYt.js → journeyDiagram-BOSHW7O7-C2tDYh4z.js} +1 -1
- package/dist/esm/{kanban-definition-FNSA4HC5-BF3y0Q5O.js → kanban-definition-FNSA4HC5-CoyAxabP.js} +1 -1
- package/dist/esm/main.js +1 -1
- package/dist/esm/{mermaid.core-DRk6tt5W.js → mermaid.core-GJX79pQL.js} +2 -2
- package/dist/esm/{mindmap-definition-6OY57UG3-D2VvQCn5.js → mindmap-definition-6OY57UG3-Cz5x8Ddo.js} +1 -1
- package/dist/esm/{pegDiagram-ECIUJNBX-LCa_e2vp.js → pegDiagram-ECIUJNBX-Cp7mSGqB.js} +1 -1
- package/dist/esm/{pieDiagram-GNMPY74T-BFxRc695.js → pieDiagram-GNMPY74T-DoaR6KZl.js} +1 -1
- package/dist/esm/{quadrantDiagram-D57K4MC3-m-v5Oved.js → quadrantDiagram-D57K4MC3-vGvfladt.js} +1 -1
- package/dist/esm/{railroadDiagram-Y72NRBL7-CGhQNkt2.js → railroadDiagram-Y72NRBL7-CC8xjkre.js} +1 -1
- package/dist/esm/{requirementDiagram-EQYSW5RA-D4TUJX2j.js → requirementDiagram-EQYSW5RA-CvYZNdVi.js} +1 -1
- package/dist/esm/{sankeyDiagram-SY24JHO5-qeunG13D.js → sankeyDiagram-SY24JHO5-DTEzoJWs.js} +1 -1
- package/dist/esm/{sequenceDiagram-BLEHNHQU-Bf8dSGiP.js → sequenceDiagram-BLEHNHQU-B1ssXHBq.js} +1 -1
- package/dist/esm/server.js +1 -1
- package/dist/esm/{settings-CBGV-lz3.js → settings-oXVFKYs2.js} +1 -1
- package/dist/esm/settings.js +1 -1
- package/dist/esm/{sizeCapture-INFHLROL-B0tQoQkY.js → sizeCapture-INFHLROL-BpAWjro_.js} +1 -1
- package/dist/esm/{stateDiagram-v2-A6IESKWZ-D-bM5qVN.js → stateDiagram-v2-A6IESKWZ-BpWTAT11.js} +1 -1
- package/dist/esm/{swimlanes-B3ENRKFQ-DR9euVhL.js → swimlanes-B3ENRKFQ-CRPiPPkB.js} +1 -1
- package/dist/esm/swimlanesDiagram-AYQRV4AK-CPu0_glt.js +1 -0
- package/dist/esm/{timeline-definition-JXYKGLGB-ChsOD2es.js → timeline-definition-JXYKGLGB-D7lhGXLl.js} +1 -1
- package/dist/esm/{types-DsZvEANP.js → types-DS5jBUtV.js} +1 -1
- package/dist/esm/{usecaseDiagram-WPOLBNNX-DZFg1Zof.js → usecaseDiagram-WPOLBNNX-07MB5ZhJ.js} +1 -1
- package/dist/esm/{vennDiagram-Q3Y3IDCW-DAW-dDy7.js → vennDiagram-Q3Y3IDCW-BF4CwCTB.js} +1 -1
- package/dist/esm/{wardleyDiagram-IVAIDKWA-B-gsebc8.js → wardleyDiagram-IVAIDKWA-CE_jsTBp.js} +1 -1
- package/dist/esm/{websocket-CdeP8N_S.js → websocket-CXHGKJlm.js} +1 -1
- package/dist/esm/{xychartDiagram-4URNHDU4-DS3Qm0VA.js → xychartDiagram-4URNHDU4-DK5TR51V.js} +1 -1
- package/dist/module-types/src/components/hooks/useCompanyPresence.d.ts +18 -0
- package/dist/module-types/src/components/hooks/useOwnPresence.d.ts +5 -0
- package/dist/module-types/src/hooks/index.d.ts +2 -1
- package/dist/module-types/src/settings/ApiManager.d.ts +0 -8
- package/dist/module-types/src/stores/websocket/topicChannels.d.ts +14 -1
- package/dist/module-types/src/stores/websocket/types.d.ts +1 -2
- package/package.json +5 -5
- package/dist/esm/ArrowForwardIcon-DelUFdaJ.js +0 -1
- package/dist/esm/ReplyIcon-BNYBKbgb.js +0 -1
- package/dist/esm/channel-DWjyymG_.js +0 -1
- package/dist/esm/flowDiagram-IUGLLWBU-B-Bxdnen.js +0 -1
- package/dist/esm/index-BpcqEzEG.js +0 -1
- package/dist/esm/swimlanesDiagram-AYQRV4AK-D0-BBYnj.js +0 -1
- package/dist/module-types/src/components/hooks/useClientTrackLocation.d.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=[];for(let t=0;t<256;++t)e.push((t+256).toString(16).slice(1));const t=new Uint8Array(16);function a(a,s,o){return crypto.randomUUID?crypto.randomUUID():function(a){a=a||{};const s=a.random??a.rng?.()??crypto.getRandomValues(t);if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=15&s[6]|64,s[8]=63&s[8]|128,function(t,a=0){return(e[t[a+0]]+e[t[a+1]]+e[t[a+2]]+e[t[a+3]]+"-"+e[t[a+4]]+e[t[a+5]]+"-"+e[t[a+6]]+e[t[a+7]]+"-"+e[t[a+8]]+e[t[a+9]]+"-"+e[t[a+10]]+e[t[a+11]]+e[t[a+12]]+e[t[a+13]]+e[t[a+14]]+e[t[a+15]]).toLowerCase()}(s)}(a)}var s,o,n,r,i,l,R,E,u,c,m,_,S,d,p,T,A,I,C,N,O,h,f,D,g,P,b;!function(e){e.NEWSLETTER_SUBSCRIPTION="newsletterSubscription",e.LANGUAGE="preferredLanguage",e.THEME="preferredTheme",e.DATA_VIEW_MODE="preferredDataViewMode",e.MENU_VIEW_MODE="preferredMenuViewMode",e.TIME_ZONE="preferredTimeZone",e.FONT_SIZE="preferredFontSize"}(s||(s={})),function(e){e.NONE="NONE",e.COURSE="COURSE",e.WORKSHEET="WORKSHEET",e.CONTEST="CONTEST"}(o||(o={})),function(e){e.C_11="c11",e.CPP_11="cpp11",e.CPP_20="cpp20",e.JAVA_21="java21",e.PYTHON_3="python3",e.PYTHON_PYPY_3="pypy3",e.JAVASCRIPT_NODE_JS_22="nodejs22",e.PYTHON_2="python2",e.PYTHON_PYPY_2="pypy2",e.ICPC_C="ICPC_C",e.C="C",e.CPP="CPP",e.ICPC_CPP="ICPC_CPP",e.CPP11="CPP11",e.CPP14="CPP14",e.CPP17="CPP17",e.JAVA="JAVA",e.ICPC_PYTHON="ICPC_PYTHON",e.PYTHON="PYTHON",e.PYTHON2="PYTHON2",e.PYTHON3="PYTHON3",e.JAVASCRIPT="JAVASCRIPT",e.TYPESCRIPT="TYPESCRIPT",e.JSX="JSX",e.TSX="TSX",e.MDX="MDX",e.PSEUDOCODE_PSEINT="PSEUDOCODE_PSEINT",e.LATEX="LATEX",e.JSON="JSON",e.HTML="HTML",e.TEXT="TEXT",e.DIFF="DIFF",e.MARKDOWN="MARKDOWN",e.ARDUINO="ARDUINO",e.DOT="DOT",e.MERMAID="MERMAID",e.BASH="BASH"}(n||(n={})),function(e){e.USER="USER",e.PROBLEM="PROBLEM",e.CONTEST="CONTEST",e.ATTEMPT="ATTEMPT"}(r||(r={})),function(e){e.SUCCESS="SUCCESS",e.ERROR="ERROR",e.LOADING="LOADING",e.NONE="NONE"}(i||(i={})),function(e){e.PUBLIC="PUBLIC",e.RESERVED="RESERVED",e.PRIVATE="PRIVATE",e.ARCHIVED="ARCHIVED"}(l||(l={})),function(e){e.PRIVATE="PRIVATE",e.RESTRICTED="RESTRICTED",e.PUBLIC="PUBLIC",e.EXPOSED="EXPOSED"}(R||(R={})),function(e){e.FREE="FREE",e.STANDARD="STANDARD",e.PREMIUM="PREMIUM",e.CUSTOM="CUSTOM"}(E||(E={})),function(e){e.HORIZONTAL_WHITE="horizontal-white",e.HORIZONTAL_COLOR="horizontal-color",e.VERTICAL_WHITE="vertical-white",e.VERTICAL_COLOR="vertical-color"}(u||(u={})),function(e){e.PUBLIC="PUBLIC",e.RESERVED="RESERVED",e.ARCHIVED="ARCHIVED"}(c||(c={})),function(e){e.UPCOMING="upcoming",e.LIVE="live",e.PAST="past"}(m||(m={})),function(e){e.INDIVIDUALLY="INDIVIDUALLY",e.CONTEST="CONTEST"}(_||(_={})),function(e){e.DATA_UPDATE="DATA_UPDATE",e.SCOREBOARD_RECALCULATE="SCOREBOARD_RECALCULATE",e.SCOREBOARD_UNLOCK="SCOREBOARD_UNLOCK",e.SCOREBOARD_LOCK="SCOREBOARD_LOCK",e.ENABLE_UPSOLVING="ENABLE_UPSOLVING",e.DISABLE_UPSOLVING="DISABLE_UPSOLVING",e.PARTICIPANT_JOIN="PARTICIPANT_JOIN"}(S||(S={})),function(e){e.NONE="NONE",e.CLOSE="CLOSE",e.OPEN="OPEN"}(d||(d={})),function(e){e.RELEASED="RELEASED",e.ARCHIVED="ARCHIVED"}(p||(p={})),function(e){e.COMPANY="COMPANY",e.PROBLEM="PROBLEM",e.CONTEST="CONTEST",e.JUDGE="JUDGE",e.USER="USER",e.SUBMISSION="SUBMISSION"}(T||(T={})),function(e){e.COMPANY="C",e.USER="U",e.PROBLEM="P",e.CLASS="K",e.CLASS_ASSIGNMENT="KA",e.CONTEST="T",e.SCOREBOARD="B",e.SCOREBOARD_EVENTS="BE",e.COURSE="R",e.FILE="F",e.GROUP="G",e.JUDGE="J",e.WORKSHEET="W",e.WORKSHEET_SUBMISSIONS="WS",e.SUBMIT="S",e.LOCALE="L",e.COMMENT="M",e.EXCALIDRAW="E",e.MARKDOWN="MD",e.DOCUMENT_TEMPLATE="DT",e.MERMAID="MM"}(A||(A={})),function(e){e.REMOVE="REMOVE",e.ADD="ADD",e.UPDATE="UPDATE"}(I||(I={})),function(e){e.VIEWER="VIEWER",e.EDITOR="EDITOR"}(C||(C={})),function(e){e.FOLDER="FOLDER",e.FILE="FILE"}(N||(N={})),function(e){e.SHARED="shared",e.SHARED_EXCALIDRAW="shared/E",e.TEMP="temp",e.PROBLEMS="problems",e.CONTESTS="contests"}(O||(O={})),function(e){e.CLASS="CLASS",e.TEAM="TEAM"}(h||(h={})),function(e){e.JUKI_JUDGE="JUKI_JUDGE",e.CODEFORCES="CODEFORCES",e.CODEFORCES_GYM="CODEFORCES_GYM",e.JV_UMSA="JV_UMSA",e.UVA_ONLINE_JUDGE="UVA_ONLINE_JUDGE",e.AT_CODER="AT_CODER",e.CODECHEF="CODECHEF",e.TOPCODER="TOPCODER",e.LEETCODE="LEETCODE"}(f||(f={})),function(e){e.NONE="NONE",e.PENDING="PENDING",e.HIDDEN="HIDDEN",e.CE="CE",e.RE="RE",e.TLE="TLE",e.MLE="MLE",e.WA="WA",e.PE="PE",e.PA="PA",e.AC="AC"}(D||(D={})),function(e){e.NONE="NONE",e.RECEIVED="RECEIVED",e.COMPILING="COMPILING",e.COMPILED="COMPILED",e.COMPILATION_ERROR="COMPILATION_ERROR",e.FETCHING_TEST_CASES="FETCHING_TEST_CASES",e.RUNNING_TEST_CASE="RUNNING_TEST_CASE",e.RUNNING_TEST_CASES="RUNNING_TEST_CASES",e.RUNNING_SAMPLE_TEST_CASES="RUNNING_SAMPLE_TEST_CASES",e.EXECUTED_TEST_CASE="EXECUTED_TEST_CASE",e.FAILED_TEST_CASE="FAILED_TEST_CASE",e.JUDGING_TEST_CASE="JUDGING_TEST_CASE",e.GRADING="GRADING",e.FAILED="FAILED",e.COMPLETED="COMPLETED"}(g||(g={})),function(e){e.HIGH_PERFORMANCE="HIGH_PERFORMANCE",e.LOW_PERFORMANCE="LOW_PERFORMANCE"}(P||(P={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.ERROR="error",e.QUIET="quiet"}(b||(b={}));const v={ES:"ES",EN:"EN"},U={LIGHT:"LIGHT",DARK:"DARK"};var y,M,L,B,F,x,G,w,H,K,V,j,J,k,Y,W,X,z,q;!function(e){e.INPUT="INPUT",e.OUTPUT="OUTPUT"}(y||(y={})),function(e){e.STANDARD="STANDARD",e.INTERACTIVE="INTERACTIVE"}(M||(M={})),function(e){e.STANDARD="STANDARD",e.DYNAMIC="DYNAMIC",e.INTERACTIVE="INTERACTIVE"}(L||(L={})),function(e){e.STANDARD="STANDARD",e.DYNAMIC="DYNAMIC",e.INTERACTIVE="INTERACTIVE"}(B||(B={})),function(e){e.SUBTASK="SUBTASK",e.TOTAL="TOTAL",e.PARTIAL="PARTIAL"}(F||(F={})),function(e){e.ERR400="ERR400",e.ERR401="ERR401",e.ERR403="ERR403",e.ERR404="ERR404",e.ERR405="ERR405",e.ERR500="ERR500",e.ERR9997="ERR9997",e.ERR9998="ERR9998",e.ERR9999="ERR9999",e.ERR0000="ERR0000",e.ERR0010="ERR0010",e.ERR0011="ERR0011",e.ERR0012="ERR0012",e.ERR0013="ERR0013",e.ERR0014="ERR0014",e.ERR0015="ERR0015",e.ERR0016="ERR0016",e.ERR0017="ERR0017",e.ERR0018="ERR0018",e.ERR0019="ERR0019",e.ERR0020="ERR0020",e.ERR0021="ERR0021",e.ERR0022="ERR0022",e.ERR0023="ERR0023",e.ERR0024="ERR0024",e.ERR0050="ERR0050",e.ERR0051="ERR0051",e.ERR0052="ERR0052",e.ERR0053="ERR0053",e.ERR0100="ERR0100",e.ERR0110="ERR0110",e.ERR0111="ERR0111",e.ERR0112=" ERR0112",e.ERR0113="ERR0113",e.ERR0114="ERR0114",e.ERR0115="ERR0115",e.ERR0116="ERR0116",e.ERR0117="ERR0117",e.ERR0118="ERR0118",e.ERR0119="ERR0119",e.ERR0120="ERR0120",e.ERR0121="ERR0121",e.ERR0122="ERR0122",e.ERR0200="ERR0200",e.ERR0210="ERR0210",e.ERR0211="ERR0211",e.ERR0212="ERR0212",e.ERR0213="ERR0213",e.ERR0214="ERR0214",e.ERR0215="ERR0215",e.ERR0216="ERR0216",e.ERR0217="ERR0217",e.ERR0218="ERR0218",e.ERR0219="ERR0219",e.ERR0220="ERR0220",e.ERR0230="ERR0230",e.ERR0231="ERR0231",e.ERR0232="ERR0232",e.ERR0233="ERR0233",e.ERR0234="ERR0234",e.ERR0235="ERR0235",e.ERR0236="ERR0236",e.ERR0237="ERR0237",e.ERR0240="ERR0240",e.ERR0241="ERR0241",e.ERR0242="ERR0242",e.ERR0243="ERR0243",e.ERR0244="ERR0244",e.ERR0245="ERR0245",e.ERR0246="ERR0246",e.ERR0247="ERR0247",e.ERR0300="ERR0300",e.ERR0301="ERR0301",e.ERR0302="ERR0302",e.ERR0303="ERR0303",e.ERR0310="ERR0310",e.ERR0311="ERR0311",e.ERR0321="ERR0321",e.ERR0331="ERR0331",e.ERR0400="ERR0400",e.ERR0410="ERR0410",e.ERR0420="ERR0420",e.ERR0421="ERR0421",e.ERR0430="ERR0430",e.ERR0440="ERR0440",e.ERR0600="ERR0600",e.ERR0610="ERR0610",e.ERR0611="ERR0611",e.ERR0612="ERR0612",e.ERR0613="ERR0613",e.ERR0614="ERR0614",e.ERR0615="ERR0615",e.ERR0616="ERR0665",e.ERR0617="ERR0617",e.ERR0618="ERR0618",e.ERR0619="ERR0619",e.ERR0800="ERR0800",e.ERR0810="ERR0810",e.ERR0811="ERR0811",e.ERR0812="ERR0812",e.ERR0813="ERR0813",e.ERR0814="ERR0814",e.ERR0815="ERR0815",e.ERR0816="ERR0865",e.ERR0817="ERR0817",e.ERR0818="ERR0818",e.ERR0819="ERR0819",e.ERR0820="ERR0820",e.ERR9900="ERR9900",e.ERR9910="ERR9910",e.ERR9911="ERR9911",e.ERR9912="ERR9912",e.ERR9913="ERR9913",e.ERR9914="ERR9914",e.ERR9915="ERR9915",e.ERR9916="ERR9916",e.ERR9917="ERR9917"}(x||(x={})),function(e){e.FATAL="FATAL",e.ERROR="ERROR",e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.TRACE="TRACE"}(G||(G={})),function(e){e.POST="POST",e.GET="GET",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE"}(w||(w={})),function(e){e.JK_MD="JK_MD",e.CODE_EDITOR="CODE_EDITOR",e.LIST="LIST",e.GRAPH="GRAPH",e.QUIZ_PROBLEM="QUIZ_PROBLEM",e.QUIZ_TEXT="QUIZ_TEXT",e.QUIZ_OPTIONS="QUIZ_OPTIONS",e.NEW_PAGE="NEW_PAGE"}(H||(H={})),function(e){e.TOTAL="TOTAL",e.PARTIAL="PARTIAL"}(K||(K={})),function(e){e.PING="PING",e.CLIENT_TRACK_LOCATION="CLIENT_TRACK_LOCATION",e.CLIENT_TRACK_SCREENSHOT="CLIENT_TRACK_SCREENSHOT",e.CLIENT_TRACK_DEVICE="CLIENT_TRACK_DEVICE",e.CHAT_COMPLETIONS="CHAT_COMPLETIONS"}(V||(V={})),function(e){e.SUBSCRIBE_CODE_RUN_STATUS="SUBSCRIBE_CODE_RUN_STATUS",e.UNSUBSCRIBE_CODE_RUN_STATUS="UNSUBSCRIBE_CODE_RUN_STATUS",e.SUBSCRIBE_SUBMISSION_RUN_STATUS="SUBSCRIBE_SUBMISSION_RUN_STATUS",e.UNSUBSCRIBE_SUBMISSION_RUN_STATUS="UNSUBSCRIBE_SUBMISSION_RUN_STATUS",e.SUBSCRIBE_GET_DATA="SUBSCRIBE_GET_DATA",e.UNSUBSCRIBE_GET_DATA="SUBSCRIBE_GET_DATA",e.SUBSCRIBE_PROBLEM_CRAWLED="SUBSCRIBE_PROBLEM_CRAWLED",e.UNSUBSCRIBE_PROBLEM_CRAWLED="UNSUBSCRIBE_PROBLEM_CRAWLED",e.SUBSCRIBE_SUBMISSIONS_CRAWL="SUBSCRIBE_SUBMISSIONS_CRAWL",e.UNSUBSCRIBE_SUBMISSIONS_CRAWL="UNSUBSCRIBE_SUBMISSIONS_CRAWL",e.SUBSCRIBE_CONTEST_CHANGES="SUBSCRIBE_CONTEST_CHANGES",e.UNSUBSCRIBE_CONTEST_CHANGES="UNSUBSCRIBE_CONTEST_CHANGES",e.SUBSCRIBE_CLIENT_TRACK="SUBSCRIBE_CLIENT_TRACK",e.UNSUBSCRIBE_CLIENT_TRACK="UNSUBSCRIBE_CLIENT_TRACK",e.SUBSCRIBE_USER_NOTIFICATION="SUBSCRIBE_USER_NOTIFICATION",e.UNSUBSCRIBE_USER_NOTIFICATION="UNSUBSCRIBE_USER_NOTIFICATION",e.SUBSCRIBE_CLIENT_TRACK_DATA="SUBSCRIBE_CLIENT_TRACK_DATA",e.UNSUBSCRIBE_CLIENT_TRACK_DATA="UNSUBSCRIBE_CLIENT_TRACK_DATA"}(j||(j={})),function(e){e.PONG="PONG",e.CODE_RUN_STATUS="CODE_RUN_STATUS",e.SUBMISSION_RUN_STATUS="SUBMISSION_RUN_STATUS",e.USER_MESSAGE="USER_MESSAGE",e.SEND_DATA_="SEND_DATA_",e.SEND_DATA_ECS_TASK_DEFINITIONS_LIST="SEND_DATA_ECS_TASK_DEFINITIONS_LIST",e.SEND_DATA_ECS_TASKS_LIST="SEND_DATA_ECS_TASKS_LIST",e.SEND_DATA_EC2_INSTANCES_LIST="SEND_DATA_EC2_INSTANCES_LIST",e.SEND_DATA_SSM_SESSIONS_LIST="SEND_DATA_SSM_SESSIONS_LIST",e.SEND_DATA_RUN_COMMAND="SEND_DATA_RUN_COMMAND",e.SEND_DATA_CLIENT_TRACK="SEND_DATA_CLIENT_TRACK",e.SEND_DATA_CHAT_COMPLETIONS="SEND_DATA_CHAT_COMPLETIONS",e.PROBLEM_CRAWLED="PROBLEM_CRAWLED",e.SUBMISSIONS_CRAWL="SUBMISSIONS_CRAWL",e.CONTEST_CHANGES="CONTEST_CHANGES",e.CLIENT_TRACK="CLIENT_TRACK",e.USER_NOTIFICATION_="USER_NOTIFICATION_",e.USER_NOTIFICATION_SUBMISSION="USER_NOTIFICATION_SUBMISSION",e.USER_NOTIFICATION_CONTEST_CLARIFICATION="USER_NOTIFICATION_CONTEST_CLARIFICATION"}(J||(J={})),function(e){e.ADMINISTRATORS="administrators",e.MANAGERS="managers",e.PARTICIPANTS="participants",e.GUESTS="guests",e.SPECTATORS="spectators"}(k||(k={})),function(e){e.CARDS="CARDS",e.ROWS="ROWS"}(Y||(Y={})),function(e){e.HORIZONTAL="HORIZONTAL",e.VERTICAL="VERTICAL"}(W||(W={})),function(e){e.SUPER_ADMIN="SUPER_ADMIN",e.ADMIN="ADMIN",e.MASTER="MASTER",e.MANAGER="MANAGER",e.CREATOR="CREATOR",e.REGULAR="REGULAR",e.LIMITED="LIMITED",e.GUEST="GUEST",e.RESTRICTED="RESTRICTED"}(X||(X={})),function(e){e.NOTHING="NOTHING",e.SEND_SUBMISSION="SEND_SUBMISSION",e.TRACKING_SUBMISSION="TRACKING_SUBMISSION",e.CRAWLING_LANGUAGES="CRAWLING_LANGUAGES",e.CRAWLING_PROBLEM_DATA="CRAWLING_PROBLEM_DATA"}(z||(z={})),function(e){e.RATIO_21_9="21:9",e.RATIO_20_9="20:9",e.RATIO_16_9="16:9",e.RATIO_16_10="16:10",e.RATIO_3_2="3:2",e.RATIO_4_3="4:3",e.RATIO_5_4="5:4",e.RATIO_1_1="1:1"}(q||(q={}));const Z="javac 17.0.15",Q="v20.19.2",$="Python 3.11.2",ee="Python 3.9.16 (7.3.11+dfsg-2+deb12u3, Dec 30 2024, 22:36:23)\n[PyPy 7.3.11 with GCC 12.2.0]",te={mime:"text/x-csrc",mainFilename:"main.c",fileExtension:["c"],hasBuildFile:!0,executable:"gcc",executableVersion:"gcc (Debian 12.2.0-14+deb12u1) 12.2.0\nCopyright (C) 2022 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.",templateSourceCode:'#include <stdio.h>\n \nint main(void) {\n \n printf("Hello World\\n");\n \n return 0;\n}',monacoKey:"c",codeMirrorKey:"c",highlightJsKey:"c"},ae={mime:"text/x-c++src",mainFilename:"main.cpp",fileExtension:["cpp","c++","cxx","cc"],hasBuildFile:!0,executable:"g++",executableVersion:"g++ (Debian 12.2.0-14+deb12u1) 12.2.0\nCopyright (C) 2022 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.",templateSourceCode:'#include <iostream>\n\nusing namespace std;\n\nint main() {\n \n cout << "Hello World" << endl;\n \n return 0;\n}',monacoKey:"cpp",codeMirrorKey:"cpp",highlightJsKey:"cpp"},se={mime:"text/x-python",mainFilename:"main.py",fileExtension:["py"],hasBuildFile:!1,templateSourceCode:'print("Hello World\\n")',monacoKey:"python",codeMirrorKey:"python",highlightJsKey:"python"},oe={[n.C_11]:{value:n.C_11,label:"C 11",compilePattern:"/usr/bin/jk-c11 -static -fno-optimize-sibling-calls -fno-strict-aliasing -DONLINE_JUDGE -fno-asm -lm -s -O2 -std=gnu11 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.CPP_11]:{value:n.CPP_11,label:"C++ 11",compilePattern:"/usr/bin/jk-cpp11 -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=gnu++11 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ae},[n.CPP_20]:{value:n.CPP_20,label:"C++ 20",compilePattern:"/usr/bin/jk-cpp20 -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=gnu++20 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ae},[n.JAVA_21]:{value:n.JAVA_21,label:"Java 21",mime:"text/x-java",mainFilename:"Main.java",fileExtension:["java"],compilePattern:"/usr/bin/jk-javac -cp '.;*' {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-java -Xmx512M -Xss64M -DONLINE_JUDGE=true -Duser.language=en -Duser.region=US -Duser.variant=US -cp {{folder_path}} {{class_name}}",templateSourceCode:'class Main {\n public static void main (String[] args) {\n \n System.out.println("Hello World");\n \n }\n}',hasBuildFile:!0,executable:"java",executableVersion:Z,monacoKey:"java",codeMirrorKey:"java",highlightJsKey:"java"},[n.PYTHON_2]:{value:n.PYTHON_2,label:"Python 2 *",compilePattern:"/usr/bin/jk-python2 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-python2 {{folder_path}}/{{source_full_file_name}}",executable:"python2",executableVersion:ee,...se},[n.PYTHON_3]:{value:n.PYTHON_3,label:"Python 3",compilePattern:"/usr/bin/jk-python3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-python3 {{folder_path}}/{{source_full_file_name}}",executable:"python3",executableVersion:ee,...se},[n.PYTHON_PYPY_2]:{value:n.PYTHON_PYPY_2,label:"PyPy 2 *",compilePattern:"/usr/bin/jk-pypy2 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-pypy2 {{folder_path}}/{{source_full_file_name}}",executable:"pypy2",executableVersion:ee,...se},[n.PYTHON_PYPY_3]:{value:n.PYTHON_PYPY_3,label:"PyPy 3",compilePattern:"/usr/bin/jk-pypy3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-pypy3 {{folder_path}}/{{source_full_file_name}}",executable:"pypy3",executableVersion:ee,...se},[n.JAVASCRIPT_NODE_JS_22]:{value:n.JAVASCRIPT_NODE_JS_22,label:"Javascript Node.js 22",mime:"application/x-javascript",mainFilename:"main.js",fileExtension:["js"],compilePattern:"",runPattern:"/usr/bin/jk-node22 {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Q,monacoKey:"javascript",codeMirrorKey:"javascript",highlightJsKey:"javascript"},[n.ICPC_C]:{value:n.ICPC_C,label:"ICPC C *",compilePattern:"gcc -x c -g -O2 -std=gnu11 -static -lm -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.C]:{value:n.C,label:"C *",compilePattern:"gcc -static -fno-optimize-sibling-calls -fno-strict-aliasing -DONLINE_JUDGE -fno-asm -lm -s -O2 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.ICPC_CPP]:{value:n.ICPC_CPP,label:"ICPC C++ *",compilePattern:"g++ -x c++ -static -g -O2 -std=gnu++20 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ae},[n.CPP]:{value:n.CPP,label:"C++ *",compilePattern:"g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ae},[n.CPP11]:{value:n.CPP11,label:"C++ 11 *",compilePattern:"g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=c++11 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ae},[n.CPP14]:{value:n.CPP14,label:"C++ 14 *",compilePattern:"g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=c++14 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ae},[n.CPP17]:{value:n.CPP17,label:"C++ 17 *",compilePattern:"g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=c++17 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ae},[n.JAVA]:{value:n.JAVA,label:"Java *",mime:"text/x-java",mainFilename:"Main.java",fileExtension:["java"],compilePattern:"javac -cp '.;*' {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/lib/jvm/java-17-openjdk-amd64/bin/java -Xmx512M -Xss64M -DONLINE_JUDGE=true -Duser.language=en -Duser.region=US -Duser.variant=US -cp {{folder_path}} {{class_name}}",templateSourceCode:'class Main {\n public static void main (String[] args) {\n \n System.out.println("Hello World");\n \n }\n}',hasBuildFile:!0,executable:"javac",executableVersion:Z,monacoKey:"java",codeMirrorKey:"java",highlightJsKey:"java"},[n.ICPC_PYTHON]:{value:n.ICPC_PYTHON,label:"ICPC Python *",compilePattern:"pypy3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/pypy3 {{folder_path}}/{{source_full_file_name}}",executable:"pypy3",executableVersion:ee,...se},[n.PYTHON]:{value:n.PYTHON,label:"Python *",compilePattern:"python3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/python3 {{folder_path}}/{{source_full_file_name}}",executable:"python3",executableVersion:$,...se},[n.PYTHON2]:{value:n.PYTHON2,label:"Python 2 *",compilePattern:"python2 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/python2 {{folder_path}}/{{source_full_file_name}}",executable:"python",executableVersion:"Python 2.7.18",...se},[n.PYTHON3]:{value:n.PYTHON3,label:"Python 3 *",compilePattern:"python3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/python3 {{folder_path}}/{{source_full_file_name}}",executable:"python3",executableVersion:$,...se},[n.JAVASCRIPT]:{value:n.JAVASCRIPT,label:"Javascript *",mime:"application/x-javascript",mainFilename:"main.js",fileExtension:["js"],compilePattern:"",runPattern:"/usr/bin/node {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Q,monacoKey:"javascript",codeMirrorKey:"javascript",highlightJsKey:"javascript"},[n.TYPESCRIPT]:{value:n.TYPESCRIPT,label:"Typescript *",mime:"application/x-typescript",mainFilename:"main.ts",fileExtension:["ts"],compilePattern:"",runPattern:"/usr/bin/node {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Q,monacoKey:"typescript",codeMirrorKey:"typescript",highlightJsKey:"typescript"},[n.TSX]:{value:n.TSX,label:"TSX *",mime:"application/x-typescript",mainFilename:"main.tsx",fileExtension:["tsx"],compilePattern:"",runPattern:"/usr/bin/node {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Q,monacoKey:"typescript",codeMirrorKey:"typescript",highlightJsKey:"typescript"},[n.JSX]:{value:n.JSX,label:"JSX *",mime:"application/x-javascript",mainFilename:"main.jsx",fileExtension:["jsx"],compilePattern:"",runPattern:"/usr/bin/node {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Q,monacoKey:"javascript",codeMirrorKey:"javascript",highlightJsKey:"javascript"},[n.PSEUDOCODE_PSEINT]:{value:n.PSEUDOCODE_PSEINT,label:"Pseudo-código (PSeInt)",mime:"text/plain",mainFilename:"main.psc",fileExtension:["psc"],compilePattern:"jk-pseint {{folder_path}}/{{source_full_file_name}} --norun --nouser && jk-pseint {{folder_path}}/{{source_full_file_name}} --draw {{folder_path}}/{{source_full_file_name}}.psd && jk-psexport {{folder_path}}/{{source_full_file_name}}.psd {{folder_path}}/{{source_full_file_name}}.cpp --lang=cpp && g++ -x c++ -g -O2 -std=gnu++20 -static -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}.cpp",runPattern:"{{folder_path}}/{{compiled_file_name}}",templateSourceCode:'Algoritmo HOLA_MUNDO\n\tImprimir "Hello World"\nFinAlgoritmo\n',hasBuildFile:!1,executable:"",executableVersion:"PSeInt 20230904-l64-wx3\nhttp://pseint.sourceforge.net\nby Pablo Novara (zaskar_84@yahoo.com.ar)\npsExport 20230904-l64-wx3\nhttp://pseint.sourceforge.net\nby Pablo Novara (zaskar_84@yahoo.com.ar)",monacoKey:"text",codeMirrorKey:"pseudocode-pseint",highlightJsKey:"plaintext"},[n.DOT]:{value:n.DOT,label:"DOT",mime:"text/vnd.graphviz",mainFilename:"diagram.dot",fileExtension:["dot"],compilePattern:"",runPattern:"",templateSourceCode:"digraph G {\n A -> B;\n B -> C;\n}",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"dot",codeMirrorKey:"dot",highlightJsKey:"plaintext"},[n.MERMAID]:{value:n.MERMAID,label:"Mermaid",mime:"text/mermaid",mainFilename:"diagram.mmd",fileExtension:["mmd","mermaid"],compilePattern:"",runPattern:"",templateSourceCode:"graph TD\n A[Start] --\x3e B{Is it working?}\n B -- Yes --\x3e C[Great!]\n B -- No --\x3e D[Fix it]\n D --\x3e B\n",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"mermaid",codeMirrorKey:"mermaid",highlightJsKey:"plaintext"},[n.JSON]:{value:n.JSON,label:"JSON",mime:"application/json",mainFilename:"main.json",fileExtension:["json"],compilePattern:"",runPattern:"",templateSourceCode:"{\n \n}",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"json",codeMirrorKey:"javascript",highlightJsKey:"json"},[n.TEXT]:{value:n.TEXT,label:"plain text",mime:"text/plain",mainFilename:"main.txt",fileExtension:["txt","text","in","out"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"text",codeMirrorKey:"text",highlightJsKey:"plaintext"},[n.DIFF]:{value:n.DIFF,label:"diff",mime:"text/plain",mainFilename:"main.patch",fileExtension:["diff","patch"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"diff",codeMirrorKey:"diff",highlightJsKey:"diff"},[n.LATEX]:{value:n.LATEX,label:"LaTeX",mime:"application/x-latex",mainFilename:"main.tex",fileExtension:["tex"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"latex",codeMirrorKey:"stex",highlightJsKey:"latex"},[n.MARKDOWN]:{value:n.MARKDOWN,label:"Markdown",mime:"text/plain",mainFilename:"main.md",fileExtension:["md"],compilePattern:"",runPattern:"",templateSourceCode:"# Hello World\n",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"markdown",codeMirrorKey:"markdown",highlightJsKey:"markdown"},[n.MDX]:{value:n.MDX,label:"MDX",mime:"text/plain",mainFilename:"main.mdx",fileExtension:["mdx"],compilePattern:"",runPattern:"",templateSourceCode:"# Hello World\n",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"markdown",codeMirrorKey:"markdown",highlightJsKey:"markdown"},[n.ARDUINO]:{value:n.ARDUINO,label:"Arduino",mime:"text/plain",mainFilename:"main.c",fileExtension:["c","cpp","pde","h","ino"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"c",codeMirrorKey:"c",highlightJsKey:"c"},[n.HTML]:{value:n.HTML,label:"HTML",mime:"text/HTML",mainFilename:"index.html",fileExtension:["html"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"html",codeMirrorKey:"html",highlightJsKey:"xml"},[n.BASH]:{value:n.BASH,label:"Bash",mime:"text/plain",mainFilename:"main.sh",fileExtension:["sh","bash"],compilePattern:"",runPattern:"",templateSourceCode:'#!/bin/bash\necho "Hello World"\n',hasBuildFile:!1,executable:"bash",executableVersion:"",monacoKey:"shell",codeMirrorKey:"shell",highlightJsKey:"bash"}},ne={VIVOS:[{color:"#FF0000",title:"Rojo"},{color:"#FF5900",title:"Rojo - Naranja"},{color:"#FF8600",title:"Naranja"},{color:"#FFBF00",title:"Ámbar"},{color:"#FFFF00",title:"Amarillo"},{color:"#A6FF00",title:"Lima o Verde limon"},{color:"#00FF8C",title:"Verde puro"},{color:"#00FF8C",title:"Verde cian"},{color:"#00FFFF",title:"Cian"},{color:"#0099FF",title:"Cerúleo o Azur"},{color:"#0000FF",title:"Azul"},{color:"#9F00FF",title:"Violeta"},{color:"#FF00FF",title:"Magenta"},{color:"#FF0099",title:"Fucsia"}],OSCUROS:[{color:"#880000",title:"Granate"},{color:"#882F00",title:"Caoba o Rojo indio"},{color:"#884700",title:"Marrón o Pardo"},{color:"#886600",title:"Marrón dorado"},{color:"#888800",title:"Oliva"},{color:"#588800",title:"Verde palta"},{color:"#008800",title:"Verde estándar"},{color:"#008858",title:"Esmeralda"},{color:"#008888",title:"Cerceta o Azul verde"},{color:"#005288",title:"Añil"},{color:"#000080",title:"Azul marino"},{color:"#880088",title:"Azul púrpura"},{color:"#880088",title:"Púrpura o Morado"},{color:"#880047",title:"Vino"}],AGRISADOS:[{color:"#BF4040",title:"Lacre"},{color:"#BF6340",title:"Cobre"},{color:"#BF8340",title:"Cnalea o Ocre"},{color:"#BF9F40",title:"Dorado"},{color:"#BFBF40",title:"Chartreuse"},{color:"#93BF40",title:"Verde manzana"},{color:"#93BF40",title:"Verde bosque"},{color:"#40BF40",title:"Verde mar"},{color:"#40BFBF",title:"Turquesa"},{color:"#408CBF",title:"Azul acero"},{color:"#4040BF",title:"Zafiro"},{color:"#9340BF",title:"Amastista"},{color:"#B140BF",title:"Púrpureo"},{color:"#B140BF",title:"Fandango"}],CLAROS:[{color:"#FF7777",title:"Coral"},{color:"#FF9977",title:"Salmón"},{color:"#FFB977",title:"Melón o Durazno"},{color:"#FFDA80",title:"Crema"},{color:"#FFFF88",title:"Maíz"},{color:"#CFFF77",title:"Té verde"},{color:"#77FF77",title:"Verde claro"},{color:"#77FFAA",title:"Menta"},{color:"#80FFFF",title:"Aguamarina"},{color:"#73C7FF",title:"Celeste"},{color:"#8082FF",title:"Bígaro o aciano"},{color:"#C977FF",title:"Lavanda o lila"},{color:"#FF77FF",title:"Malva"},{color:"#FF77C1",title:"Rosado"}]},re="",ie="x-juki-forwarded-host",le="x-juki-visitor-session-id",Re="x-juki-metadata",Ee="juki-app";function ue(e){try{if("string"==typeof e)return JSON.parse(e),!0}catch(e){return!1}return!1}function ce(e){try{return"string"==typeof JSON.stringify(e)}catch(e){return!1}}function me(e){let t=0;for(;-1!==e.indexOf(t);)t++;return t}function _e(e,t){const a=[];for(let s=e;s<t;s++)a.push(s);return a}function Se(...e){console.warn((new Date).toLocaleString(),...e)}function de(...e){console.info((new Date).toLocaleString(),...e)}function pe(...e){console.error((new Date).toLocaleString(),...e)}function Te(e){const t=new ArrayBuffer(e.length),a=new Uint8Array(t);for(let t=0;t<e.length;t++)a[t]=255&e.charCodeAt(t);return t}function Ae(e){return e.join("")}function Ie(e){return e.split("")}E.FREE,E.FREE,E.STANDARD,E.STANDARD,E.PREMIUM,E.PREMIUM,E.CUSTOM,E.CUSTOM,c.PUBLIC,c.PUBLIC,c.RESERVED,c.RESERVED,c.ARCHIVED,c.ARCHIVED,X.RESTRICTED,X.RESTRICTED,X.GUEST,X.GUEST,X.REGULAR,X.REGULAR,X.CREATOR,X.CREATOR,X.MANAGER,X.MANAGER,X.MASTER,X.MASTER,X.ADMIN,X.ADMIN,X.SUPER_ADMIN,X.SUPER_ADMIN;const Ce=(e,t)=>{if(e===t)return!1;if(e.length!==t.length)return!0;for(let a=0;a<t.length;a+=1)if(t[a]!==e[a])return!0;return!1},Ne=_e(1970,2100),Oe=["January","February","March","April","May","June","July","August","September","October","November","December"],he=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],fe=_e(0,24),De=_e(0,60),ge=_e(0,60),Pe=_e(0,1e3),be={[f.JUKI_JUDGE]:{value:f.JUKI_JUDGE,label:"Juki Judge",logo:"https://images.juki.pub/c/juki-judge-logo-horizontal-color.svg",logoSize:[883.991,435],url:"https://judge.juki.app"},[f.CODEFORCES]:{value:f.CODEFORCES,label:"Codeforces",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://codeforces.com"},[f.CODEFORCES_GYM]:{value:f.CODEFORCES_GYM,label:"Codeforces Gym",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://codeforces.com"},[f.JV_UMSA]:{value:f.JV_UMSA,label:"Juez Virtual UMSA",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://jv.umsa.bo"},[f.UVA_ONLINE_JUDGE]:{value:f.UVA_ONLINE_JUDGE,label:"Uva Online Judge",logo:"https://images.juki.pub/c/uva-online-judge-logo-color.png",logoSize:[150,135.994],url:"https://onlinejudge.org"},[f.AT_CODER]:{value:f.AT_CODER,label:"AtCoder",logo:"https://images.juki.pub/c/at-coder-logo-color.png",logoSize:[762.997,675],url:"https://atcoder.jp"},[f.CODECHEF]:{value:f.CODECHEF,label:"Codechef",logo:"https://images.juki.pub/c/codechef-logo-color.svg",logoSize:[1207.7,453.17],url:"https://www.codechef.com"},[f.TOPCODER]:{value:f.TOPCODER,label:"Topcoder",logo:"https://images.juki.pub/c/topcoder-logo-color.png",logoSize:[971.99,415.99],url:"https://www.topcoder.com"},[f.LEETCODE]:{value:f.LEETCODE,label:"LeetCode",logo:"https://images.juki.pub/assets/leetcode-logo-color.svg",logoSize:[95,111],url:"https://leetcode.com"}};F.TOTAL,F.SUBTASK,F.PARTIAL,B.STANDARD,B.DYNAMIC;const ve=[n.C_11,n.CPP_11,n.CPP_20,n.JAVA_21,n.PYTHON_3,n.PYTHON_PYPY_3,n.JAVASCRIPT_NODE_JS_22,n.PSEUDOCODE_PSEINT],Ue=[...ve],ye={[D.NONE]:{value:D.NONE,label:"none",color:"#555555"},[D.PENDING]:{value:D.PENDING,label:"pending",color:"#79B6FD"},[D.HIDDEN]:{value:D.HIDDEN,label:"hidden",color:"#555555"},[D.AC]:{value:D.AC,label:"accepted",color:"#43D787"},[D.PE]:{value:D.PE,label:"presentation error",color:"#55db93"},[D.PA]:{value:D.PA,label:"partial accepted",color:"#55db93"},[D.CE]:{value:D.CE,label:"compilation error",color:"#FE9F9F"},[D.RE]:{value:D.RE,label:"runtime error",color:"#FE9F9F"},[D.TLE]:{value:D.TLE,label:"time limit exceed",color:"#FE9F9F"},[D.MLE]:{value:D.MLE,label:"memory limit exceed",color:"#FE9F9F"},[D.WA]:{value:D.WA,label:"wrong answer",color:"#FE9F9F"}};D.NONE,D.PENDING,D.AC,D.PE,D.PA,D.CE,D.RE,D.TLE,D.MLE,D.WA;const Me={[g.NONE]:{value:g.NONE,label:"none"},[g.RECEIVED]:{value:g.RECEIVED,label:"received"},[g.COMPILING]:{value:g.COMPILING,label:"compiling"},[g.COMPILED]:{value:g.COMPILED,label:"compiled"},[g.COMPILATION_ERROR]:{value:g.COMPILATION_ERROR,label:"compilation error"},[g.FETCHING_TEST_CASES]:{value:g.FETCHING_TEST_CASES,label:"fetching test cases"},[g.RUNNING_TEST_CASE]:{value:g.RUNNING_TEST_CASE,label:"running test case"},[g.RUNNING_TEST_CASES]:{value:g.RUNNING_TEST_CASES,label:"running test cases"},[g.RUNNING_SAMPLE_TEST_CASES]:{value:g.RUNNING_SAMPLE_TEST_CASES,label:"running sample cases"},[g.EXECUTED_TEST_CASE]:{value:g.EXECUTED_TEST_CASE,label:"executed test case"},[g.FAILED_TEST_CASE]:{value:g.FAILED_TEST_CASE,label:"failed test case"},[g.JUDGING_TEST_CASE]:{value:g.JUDGING_TEST_CASE,label:"judging test case"},[g.GRADING]:{value:g.GRADING,label:"grading"},[g.FAILED]:{value:g.FAILED,label:"failed"},[g.COMPLETED]:{value:g.COMPLETED,label:"completed"}};P.HIGH_PERFORMANCE,P.HIGH_PERFORMANCE,P.LOW_PERFORMANCE,P.LOW_PERFORMANCE,M.STANDARD,M.STANDARD,M.INTERACTIVE,M.INTERACTIVE,L.STANDARD,L.STANDARD,L.DYNAMIC,L.DYNAMIC,L.INTERACTIVE,L.INTERACTIVE;const Le=[F.TOTAL,F.SUBTASK,F.PARTIAL],Be={[F.TOTAL]:{value:F.TOTAL,label:"total",description:"if all test cases are Accepted the result is Accepted otherwise it will be Runtime Error, Time Limited Exceeded, Memory Limited Exceeded, Wrong Answer or Presentation Error in that order."},[F.SUBTASK]:{value:F.SUBTASK,label:"subtask",description:"the test cases are grouped and each group of test cases is assigned a score, if all test cases in a group are Accepted then the score assigned to that group of test cases is added to total score, if total score is equal to the sum of the assigned scores of all groups of test cases then the result is Accepted, otherwise if the total score is greater than zero the result is Partial Accepted with the total accumulated score, otherwise it will be Runtime Error, Time Limited Exceeded, Memory Limited Exceeded, Wrong Answer or Presentation Error in that order."},[F.PARTIAL]:{value:F.PARTIAL,label:"partial",description:"the test cases are grouped and each group is associated with X points, and each test case in a group scores X points "}};B.STANDARD,B.DYNAMIC,B.INTERACTIVE;const Fe={[B.STANDARD]:{value:B.STANDARD,label:"standard",description:"The contestant submit a single source code in one of the allowed programming languages. The source code is either standalone or to be compiled. The resulting user's executable does I/O standard input and output. The output produced by the contestant's program is then compared to the correct output using a simple diff algorithm."},[B.INTERACTIVE]:{value:B.INTERACTIVE,label:"interactive",description:"developing.."},[B.DYNAMIC]:{value:B.DYNAMIC,label:"dynamic",description:"The contestant submit a single source code in one of the allowed programming languages. The user's source code is either standalone or to be compiled. The resulting user's executable does I/O standard input and output. The output produced by the contestant's program is saved. The problem editor save a single source code in C++ 17. The editor's source code can read judge input filepath argv[1], judge output filepath argv[2], user's output filepath argv[3], user's error filepath argv[4], user's log filepath argv[5], user's source filepath argv[6] and submission information filepath argv[7] (companyId, submitId, runId, userId, contestId, problemId, language, userNickname, timestamp). The resulting editor's executable should be \"AC\" or a number between 1 and 100 for partial accepted"}};X.RESTRICTED,X.RESTRICTED,X.GUEST,X.GUEST,X.REGULAR,X.REGULAR,X.CREATOR,X.CREATOR,X.MANAGER,X.MANAGER,X.MASTER,X.MASTER,X.ADMIN,X.ADMIN,X.SUPER_ADMIN,X.SUPER_ADMIN;const xe={[x.ERR500]:{value:x.ERR500,message:"internal server error",status:500},[x.ERR400]:{value:x.ERR400,message:"bad request",status:400},[x.ERR401]:{value:x.ERR401,message:"unauthorized",status:401},[x.ERR403]:{value:x.ERR403,message:"forbidden",status:403},[x.ERR404]:{value:x.ERR404,message:"not found",status:404},[x.ERR405]:{value:x.ERR405,message:"method not allowed",status:405},[x.ERR9997]:{value:x.ERR9997,message:"aborted request",status:400},[x.ERR9998]:{value:x.ERR9998,message:"error on response",status:400},[x.ERR9999]:{value:x.ERR9999,message:"service no found",status:400},[x.ERR9900]:{value:x.ERR9900,message:"internal server error on company service",status:500},[x.ERR9910]:{value:x.ERR9910,message:"company not created",status:500},[x.ERR9911]:{value:x.ERR9911,message:"company not found",status:500},[x.ERR9912]:{value:x.ERR9912,message:"company not updated",status:500},[x.ERR9913]:{value:x.ERR9913,message:"company not deleted",status:500},[x.ERR9914]:{value:x.ERR9914,message:"not allowed to create the company",status:400},[x.ERR9915]:{value:x.ERR9915,message:"not allowed to view the company",status:400},[x.ERR9916]:{value:x.ERR9916,message:"not allowed to updated the company",status:400},[x.ERR9917]:{value:x.ERR9917,message:"not allowed to deleted the company",status:400},[x.ERR0000]:{value:x.ERR0000,message:"internal server error on users service",status:500},[x.ERR0010]:{value:x.ERR0010,message:"user not created",status:500},[x.ERR0011]:{value:x.ERR0011,message:"user not found",status:500},[x.ERR0012]:{value:x.ERR0012,message:"user not updated",status:500},[x.ERR0013]:{value:x.ERR0013,message:"user not deleted",status:500},[x.ERR0014]:{value:x.ERR0014,message:"not allowed to create the user",status:400},[x.ERR0015]:{value:x.ERR0015,message:"not allowed to view the user",status:400},[x.ERR0016]:{value:x.ERR0016,message:"not allowed to updated the user",status:400},[x.ERR0017]:{value:x.ERR0017,message:"not allowed to deleted the user",status:400},[x.ERR0018]:{value:x.ERR0018,message:"user is reported",status:400},[x.ERR0019]:{value:x.ERR0019,message:"user is archived",status:400},[x.ERR0020]:{value:x.ERR0020,message:"user with email requested not found",status:400},[x.ERR0021]:{value:x.ERR0021,message:"user with nickname requested not found",status:400},[x.ERR0022]:{value:x.ERR0022,message:"the email is already registered",status:400},[x.ERR0023]:{value:x.ERR0023,message:"the nickname is already taken",status:400},[x.ERR0024]:{value:x.ERR0024,message:"incorrect password",status:400},[x.ERR0050]:{value:x.ERR0050,message:"user session not created",status:500},[x.ERR0051]:{value:x.ERR0051,message:"user session not found",status:500},[x.ERR0052]:{value:x.ERR0052,message:"user session not updated",status:500},[x.ERR0053]:{value:x.ERR0053,message:"user session not deleted",status:500},[x.ERR0100]:{value:x.ERR0100,message:"internal server error on problems service",status:500},[x.ERR0110]:{value:x.ERR0110,message:"problem not created",status:500},[x.ERR0111]:{value:x.ERR0111,message:"problem not found",status:500},[x.ERR0112]:{value:x.ERR0112,message:"problem not updated",status:500},[x.ERR0113]:{value:x.ERR0113,message:"problem not deleted",status:500},[x.ERR0114]:{value:x.ERR0114,message:"not allowed to create the problem",status:400},[x.ERR0115]:{value:x.ERR0115,message:"not allowed to view the problem",status:400},[x.ERR0116]:{value:x.ERR0116,message:"not allowed to updated the problem",status:400},[x.ERR0117]:{value:x.ERR0117,message:"not allowed to deleted the problem",status:400},[x.ERR0118]:{value:x.ERR0118,message:"problem mode not supported",status:500},[x.ERR0119]:{value:x.ERR0119,message:"problem type not supported",status:500},[x.ERR0120]:{value:x.ERR0120,message:"problem time limit must be a number",status:500},[x.ERR0121]:{value:x.ERR0121,message:"problem memory limit must be number",status:500},[x.ERR0122]:{value:x.ERR0122,message:"test case file empty",status:400},[x.ERR0200]:{value:x.ERR0200,message:"internal server error on contests service",status:500},[x.ERR0210]:{value:x.ERR0210,message:"contest not created",status:500},[x.ERR0211]:{value:x.ERR0211,message:"contest not found",status:500},[x.ERR0212]:{value:x.ERR0212,message:"contest not updated",status:500},[x.ERR0213]:{value:x.ERR0213,message:"contest not deleted",status:500},[x.ERR0214]:{value:x.ERR0214,message:"not allowed to create the contest",status:400},[x.ERR0215]:{value:x.ERR0215,message:"not allowed to view the contest",status:400},[x.ERR0216]:{value:x.ERR0216,message:"not allowed to updated the contest",status:400},[x.ERR0217]:{value:x.ERR0217,message:"not allowed to deleted the contest",status:400},[x.ERR0218]:{value:x.ERR0218,message:"not allowed to register to the contest",status:400},[x.ERR0219]:{value:x.ERR0219,message:"is already registered",status:400},[x.ERR0220]:{value:x.ERR0220,message:"not allowed to view contests",status:400},[x.ERR0230]:{value:x.ERR0230,message:"scoreboard not created",status:500},[x.ERR0231]:{value:x.ERR0231,message:"scoreboard not found",status:500},[x.ERR0232]:{value:x.ERR0232,message:"scoreboard not updated",status:500},[x.ERR0233]:{value:x.ERR0233,message:"scoreboard not deleted",status:500},[x.ERR0234]:{value:x.ERR0234,message:"not allowed to create the scoreboard",status:400},[x.ERR0235]:{value:x.ERR0235,message:"not allowed to view the scoreboard",status:400},[x.ERR0236]:{value:x.ERR0236,message:"not allowed to update the scoreboard",status:400},[x.ERR0237]:{value:x.ERR0237,message:"not allowed to delete the scoreboard",status:400},[x.ERR0240]:{value:x.ERR0240,message:"clarification not created",status:500},[x.ERR0241]:{value:x.ERR0241,message:"clarification not found",status:500},[x.ERR0242]:{value:x.ERR0242,message:"clarification not updated",status:500},[x.ERR0243]:{value:x.ERR0243,message:"clarification not deleted",status:500},[x.ERR0244]:{value:x.ERR0244,message:"not allowed to submit clarification",status:400},[x.ERR0245]:{value:x.ERR0245,message:"not allowed to view clarification",status:400},[x.ERR0246]:{value:x.ERR0246,message:"not allowed to update clarification",status:400},[x.ERR0247]:{value:x.ERR0247,message:"not allowed to delete clarification",status:400},[x.ERR0300]:{value:x.ERR0300,message:"internal server error on submissions service",status:500},[x.ERR0301]:{value:x.ERR0301,message:"submission not found",status:500},[x.ERR0302]:{value:x.ERR0302,message:"submission not created",status:500},[x.ERR0303]:{value:x.ERR0303,message:"submission not updated",status:500},[x.ERR0310]:{value:x.ERR0310,message:"source empty",status:400},[x.ERR0311]:{value:x.ERR0311,message:"programming language not supported",status:400},[x.ERR0321]:{value:x.ERR0321,message:"not allowed submit the problem in the contest",status:400},[x.ERR0331]:{value:x.ERR0331,message:"judgement unavailable",status:400},[x.ERR0400]:{value:x.ERR0400,message:"internal server error on utils services",status:500},[x.ERR0410]:{value:x.ERR0410,message:"empty image",status:400},[x.ERR0420]:{value:x.ERR0420,message:"",status:400},[x.ERR0421]:{value:x.ERR0421,message:"compilation failed",status:400},[x.ERR0430]:{value:x.ERR0430,message:"",status:400},[x.ERR0440]:{value:x.ERR0440,message:"the email could not be sent",status:400},[x.ERR0600]:{value:x.ERR0600,message:"internal server error on teams service",status:500},[x.ERR0610]:{value:x.ERR0610,message:"team not created",status:400},[x.ERR0611]:{value:x.ERR0611,message:"team not found",status:400},[x.ERR0612]:{value:x.ERR0612,message:"team not updated",status:400},[x.ERR0613]:{value:x.ERR0613,message:"team not deleted",status:400},[x.ERR0614]:{value:x.ERR0614,message:"not allowed to create the team",status:400},[x.ERR0615]:{value:x.ERR0615,message:"not allowed to view the team",status:400},[x.ERR0616]:{value:x.ERR0616,message:"not allowed to updated the team",status:400},[x.ERR0617]:{value:x.ERR0617,message:"not allowed to deleted the team",status:400},[x.ERR0618]:{value:x.ERR0618,message:"team is reported",status:400},[x.ERR0619]:{value:x.ERR0619,message:"team is archived",status:400},[x.ERR0800]:{value:x.ERR0800,message:"internal server error on files service",status:500},[x.ERR0810]:{value:x.ERR0810,message:"file not created",status:400},[x.ERR0811]:{value:x.ERR0811,message:"file not found",status:400},[x.ERR0812]:{value:x.ERR0812,message:"file not updated",status:400},[x.ERR0813]:{value:x.ERR0813,message:"file not deleted",status:400},[x.ERR0814]:{value:x.ERR0814,message:"not allowed to create the file",status:400},[x.ERR0815]:{value:x.ERR0815,message:"not allowed to view the file",status:400},[x.ERR0816]:{value:x.ERR0816,message:"not allowed to updated the file",status:400},[x.ERR0817]:{value:x.ERR0817,message:"not allowed to deleted the file",status:400},[x.ERR0818]:{value:x.ERR0818,message:"file is reserved",status:400},[x.ERR0819]:{value:x.ERR0819,message:"file is private",status:400},[x.ERR0820]:{value:x.ERR0820,message:"file is archived",status:400}};N.FILE,N.FILE,N.FOLDER,N.FOLDER,X.RESTRICTED,X.RESTRICTED,X.GUEST,X.GUEST,X.REGULAR,X.REGULAR,X.MASTER,X.MASTER,X.ADMIN,X.ADMIN,X.SUPER_ADMIN,X.SUPER_ADMIN,p.RELEASED,p.RELEASED,p.ARCHIVED,p.ARCHIVED;const Ge={[R.PRIVATE]:{value:R.PRIVATE,label:"private",description:"the record will be visible and editable only to the owner"},[R.RESTRICTED]:{value:R.RESTRICTED,label:"restricted",description:"the record will be visible to viewers and the owner and editable to editors and the owner"},[R.PUBLIC]:{value:R.PUBLIC,label:"public",description:"the record will be visible to anyone and editable to editors and the owner"},[R.EXPOSED]:{value:R.EXPOSED,label:"exposed",description:"the record will be visible and editable to anyone"}},we=1e3,He=6e4,Ke={users:{create:!1,manage:!1,administrate:!1},problems:{create:!1,manage:!1},submissions:{manage:!1},contests:{create:!1,manage:!1},company:{manage:!1,administrate:!1},services:{administrate:!1}},Ve="pub:subscriptions",je="sub:notifications",Je=e=>`sub:client:${e}`,ke="pub:messages",Ye="pre:client",We=e=>encodeURIComponent(e),Xe=e=>{const[t,a,s,...o]=e.split(":");return"contest"===t&&a&&!o.length&&Object.values(k).includes(s)?{contestKey:decodeURIComponent(a),role:s}:null},ze=()=>({id:a(),type:H.NEW_PAGE,title:"",points:0}),qe={[q.RATIO_21_9]:{aspectRatio:q.RATIO_21_9,width:2520,height:1080,decimal:21/9,label:"ultrawide"},[q.RATIO_20_9]:{aspectRatio:q.RATIO_20_9,width:2400,height:1080,decimal:20/9,label:"mobile wide"},[q.RATIO_16_9]:{aspectRatio:q.RATIO_16_9,width:1920,height:1080,decimal:16/9,label:"widescreen"},[q.RATIO_16_10]:{aspectRatio:q.RATIO_16_10,width:1920,height:1200,decimal:1.6,label:"widescreen tall"},[q.RATIO_3_2]:{aspectRatio:q.RATIO_3_2,width:1440,height:960,decimal:1.5,label:"balanced"},[q.RATIO_4_3]:{aspectRatio:q.RATIO_4_3,width:1024,height:768,decimal:4/3,label:"standard"},[q.RATIO_5_4]:{aspectRatio:q.RATIO_5_4,width:1280,height:1024,decimal:5/4,label:"square old"},[q.RATIO_1_1]:{aspectRatio:q.RATIO_1_1,width:1e3,height:1e3,decimal:1,label:"square"}};var Ze,Qe;!function(e){e.UNMET_PREREQUISITES="UNMET_PREREQUISITES",e.MAX_ACCEPTED_SUBMISSIONS_ACHIEVED="MAX_ACCEPTED_SUBMISSIONS_ACHIEVED",e.START_TIME_IN_THE_FUTURE="START_TIME_IN_THE_FUTURE",e.END_TIME_IN_THE_PAST="END_TIME_IN_THE_PAST"}(Ze||(Ze={})),function(e){e.USER="USER",e.TEAM="TEAM"}(Qe||(Qe={}));const $e=e=>{switch(!0){case!(e?.members?.rankAdministrators!==d.NONE&&e?.members?.rankAdministrators!==d.CLOSE||e?.members?.rankManagers!==d.OPEN||e?.members?.rankGuests!==d.NONE&&e?.members?.rankGuests!==d.CLOSE&&e?.members?.rankGuests!==d.OPEN||e?.members?.rankSpectators!==d.OPEN||e?.members?.rankParticipants!==d.NONE&&e?.members?.rankParticipants!==d.CLOSE&&e?.members?.rankParticipants!==d.OPEN):return R.EXPOSED;case!(e?.members?.rankAdministrators!==d.NONE&&e?.members?.rankAdministrators!==d.CLOSE||e?.members?.rankManagers!==d.CLOSE||e?.members?.rankGuests!==d.NONE&&e?.members?.rankGuests!==d.CLOSE&&e?.members?.rankGuests!==d.OPEN||e?.members?.rankSpectators!==d.OPEN||e?.members?.rankParticipants!==d.NONE&&e?.members?.rankParticipants!==d.CLOSE&&e?.members?.rankParticipants!==d.OPEN):return R.PUBLIC;case!(e?.members?.rankAdministrators!==d.NONE&&e?.members?.rankAdministrators!==d.CLOSE||e?.members?.rankManagers!==d.CLOSE||e?.members?.rankGuests!==d.NONE&&e?.members?.rankGuests!==d.CLOSE&&e?.members?.rankGuests!==d.OPEN||e?.members?.rankSpectators!==d.CLOSE||e?.members?.rankParticipants!==d.NONE&&e?.members?.rankParticipants!==d.CLOSE&&e?.members?.rankParticipants!==d.OPEN):return R.RESTRICTED;case e?.members?.rankAdministrators===d.NONE&&e?.members?.rankManagers===d.NONE&&e?.members?.rankGuests===d.NONE&&e?.members?.rankSpectators===d.NONE&&e?.members?.rankParticipants===d.NONE:default:return R.PRIVATE}};function et(e){const t=e.lastIndexOf(".");return-1!==t?e.substring(0,t):e}const tt=(e,t,a)=>{const{timeUsed:s,memoryUsed:o,exitCode:n}=st(e?.log),r=s>t,i=o>a,l=0!==n;return{compilationError:e?.status===g.COMPILATION_ERROR,timeUsed:s,timeLimitExceeded:r,memoryUsed:o,memoryLimitExceeded:i,exitCode:n,runtimeError:l,failed:!!e?.log&&(r||i||l)}},at=(e,t,a)=>{const{compilationError:s,timeLimitExceeded:o,memoryLimitExceeded:n,runtimeError:r,timeUsed:i,memoryUsed:l,exitCode:R}=tt(e,t,a);return{verdict:s?D.CE:o?D.TLE:n?D.MLE:r?D.RE:e.out===e.testOut?D.AC:e.withPE&&e.out.split(" ").join("").split("\n").join("")===e.testOut.split(" ").join("").split("\n").join("")?D.PE:e.withPE||e.out.split(" ").join("").split("\n").join("")!==e.testOut.split(" ").join("").split("\n").join("")?D.WA:D.AC,timeUsed:i,memoryUsed:l,exitCode:R}},st=e=>{const t=e?.split?.("\n")||[];let a=0,s=0,o=-1;if(t.length>4)for(const e of t)e.startsWith("time:")?(a=+e.split(":")[1],Number.isNaN(a)&&(a=0),a*=1e3):e.startsWith("max-rss:")?s=parseInt(e.split(":")[1],10):e.startsWith("exitcode:")&&(o=parseInt(e.split(":")[1],10));else t.length>=3&&(a=+t[0],s=+t[1],o=+t[2]);return{timeUsed:Number.isNaN(a)?0:a,memoryUsed:Number.isNaN(s)?0:s,exitCode:Number.isNaN(o)?-1:o}};Date.prototype.changeYear=function(e){const t=new Date(this);return t.setFullYear(e),t},Date.prototype.changeMonth=function(e){const t=new Date(this);return t.setMonth(e),t},Date.prototype.changeDay=function(e){const t=new Date(this);return t.setDate(e),t},Date.prototype.changeHours=function(e){const t=new Date(this);return t.setHours(e),t},Date.prototype.changeMinutes=function(e){const t=new Date(this);return t.setMinutes(e),t},Date.prototype.changeSeconds=function(e){const t=new Date(this);return t.setSeconds(e),t},Date.prototype.changeMilliseconds=function(e){const t=new Date(this);return t.setMilliseconds(e),t},Date.prototype.decreaseYear=function(e=1){return this.changeYear(this.getFullYear()-e)},Date.prototype.increaseYear=function(e=1){return this.changeYear(this.getFullYear()+e)},Date.prototype.decreaseMonth=function(){const e=new Date(this);return e.setMonth(e.getMonth()-1),e},Date.prototype.increaseMonth=function(){const e=new Date(this);return e.setMonth(e.getMonth()+1),e},Date.prototype.increaseDay=function(){const e=new Date(this);return e.setDate(e.getDate()+1),e},Date.prototype.decreaseDay=function(){const e=new Date(this);return e.setDate(e.getDate()-1),e},Date.prototype.startOfYear=function(){const e=new Date(this);return e.setMonth(0),e.startOfMonth()},Date.prototype.endOfYear=function(){const e=this.increaseYear().startOfYear();return new Date(e.getTime()-1)},Date.prototype.startOfMonth=function(){const e=new Date(this);return e.setDate(1),e.startOfDay()},Date.prototype.endOfMonth=function(){const e=this.increaseMonth().startOfMonth();return new Date(e.getTime()-1)},Date.prototype.startOfWeek=function(){const e=new Date(this);for(;e.getDay();)e.setDate(e.getDate()-1);return e.startOfDay()},Date.prototype.endOfWeek=function(){const e=new Date(this);for(;e.getDay()<6;)e.setDate(e.getDate()-1);return e.endOfDay()},Date.prototype.startOfDay=function(){const e=new Date(this);return e.setHours(0,0,0,0),e},Date.prototype.endOfDay=function(){const e=new Date(this);return e.setHours(23,59,59,999),e},Date.prototype.startOfHour=function(){const e=new Date(this);return e.setMinutes(0,0,0),e},Date.prototype.endOfHour=function(){const e=new Date(this);return e.setMinutes(59,59,999),e},Date.prototype.startOfMinute=function(){const e=new Date(this);return e.setSeconds(0,0),e},Date.prototype.endOfMinute=function(){const e=new Date(this);return e.setSeconds(59,999),e},Date.prototype.startOfSecond=function(){const e=new Date(this);return e.setMilliseconds(0),e},Date.prototype.endOfSecond=function(){const e=new Date(this);return e.setMilliseconds(999),e},Date.prototype.isToday=function(){const e=new Date;return this.isSameDay(e)},Date.prototype.isEqual=function(e){return this.getTime()===e.getTime()},Date.prototype.isSameYear=function(e){return this.getFullYear()===e.getFullYear()},Date.prototype.isSameMonth=function(e){return this.isSameYear(e)&&this.getMonth()===e.getMonth()},Date.prototype.isSameDay=function(e){return this.isSameMonth(e)&&this.getDate()===e.getDate()},Date.prototype.isSameHour=function(e){return this.isSameDay(e)&&this.getHours()===e.getHours()},Date.prototype.isSameMinute=function(e){return this.isSameHour(e)&&this.getMinutes()===e.getMinutes()},Date.prototype.isSameSecond=function(e){return this.isSameMinute(e)&&this.getSeconds()===e.getSeconds()},Date.prototype.isSameMillisecond=function(e){return this.isEqual(e)},Date.prototype.isValidDate=function(){return this instanceof Date&&!isNaN(this.getTime())},Date.prototype.isYearAfter=function(e){return this.getFullYear()>e.getFullYear()},Date.prototype.isMonthAfter=function(e){return this.isYearAfter(e)||this.isSameYear(e)&&this.getMonth()>e.getMonth()},Date.prototype.isDayAfter=function(e){return this.isMonthAfter(e)||this.isSameMonth(e)&&this.getDate()>e.getDate()},Date.prototype.isHoursAfter=function(e){return this.isDayAfter(e)||this.isSameDay(e)&&this.getHours()>e.getHours()},Date.prototype.isMinutesAfter=function(e){return this.isHoursAfter(e)||this.isSameHour(e)&&this.getMinutes()>e.getMinutes()},Date.prototype.isSecondsAfter=function(e){return this.isMinutesAfter(e)||this.isSameMinute(e)&&this.getSeconds()>e.getSeconds()},Date.prototype.isMillisecondsAfter=function(e){return this.isSecondsAfter(e)||this.isSameSecond(e)&&this.getMilliseconds()>e.getMilliseconds()},Date.prototype.isAfter=function(e){return this.getTime()>e.getTime()},Date.prototype.isYearBefore=function(e){return this.getFullYear()<e.getFullYear()},Date.prototype.isMonthBefore=function(e){return this.isYearBefore(e)||this.isSameYear(e)&&this.getMonth()<e.getMonth()},Date.prototype.isDayBefore=function(e){return this.isMonthBefore(e)||this.isSameMonth(e)&&this.getDate()<e.getDate()},Date.prototype.isHoursBefore=function(e){return this.isDayBefore(e)||this.isSameDay(e)&&this.getHours()<e.getHours()},Date.prototype.isMinutesBefore=function(e){return this.isHoursBefore(e)||this.isSameHour(e)&&this.getMinutes()<e.getMinutes()},Date.prototype.isSecondsBefore=function(e){return this.isMinutesBefore(e)||this.isSameMinute(e)&&this.getSeconds()<e.getSeconds()},Date.prototype.isMillisecondsBefore=function(e){return this.isSecondsBefore(e)||this.isSameSecond(e)&&this.getMilliseconds()<e.getMilliseconds()},Date.prototype.isBefore=function(e){return this.getTime()<e.getTime()},Date.prototype.isWithinInterval=function({start:e,end:t},a="[]"){return("["===a.charAt(0)&&this.isEqual(e)||this.isAfter(e))&&("["===a.charAt(1)&&this.isEqual(t)||this.isBefore(t))};class ot extends Error{constructor(e,t){const a=t?.message||xe[e].message;super(a),this.message=a,this.code=e,t?.stack&&(this.stack=t.stack),t?.data&&(this.data=t.data)}}Number.prototype.padStart=function(e,t="0"){return(this+"").padStart(e,t)},Number.prototype.padEnd=function(e,t="0"){return(this+"").padEnd(e,t)};const nt=e=>{if(!ue(e)){const t={success:!1,message:xe[x.ERR9999].message,errors:[{code:x.ERR9999,detail:"",message:xe[x.ERR9999].message}]};return pe({message:"response is not string json, success false on cleaning request",responseText:e,response:t}),t}const t=JSON.parse(e);if("boolean"==typeof t.success){if(!0===t.success&&"string"==typeof t.message&&t.content)return{success:!0,message:t.message,content:t.content};if(!0===t.success&&"string"==typeof t.message&&Array.isArray(t.contents)&&t.meta)return{success:!0,message:t.message,contents:t.contents,meta:t.meta};if(!1===t.success&&"string"==typeof t.message&&Array.isArray(t.errors)){const a={success:!1,message:t.message,errors:t.errors};return pe({message:"success false on cleaning request",responseText:e,response:a}),a}}const a={success:!1,message:xe[x.ERR9998].message,errors:[{code:x.ERR9998,detail:"",message:xe[x.ERR9998].message}]};return pe({message:"success false on cleaning request",responseText:e,response:a}),a},rt=e=>(Object.values(j).includes(e?.event)||Object.values(V).includes(e?.event))&&"string"==typeof e?.clientId&&!!e.clientId,it=e=>rt(e)&&e?.event===j.SUBSCRIBE_CODE_RUN_STATUS&&"string"==typeof e?.runId&&!!e.runId,lt=e=>rt(e)&&e?.event===j.UNSUBSCRIBE_CODE_RUN_STATUS&&"string"==typeof e?.runId&&!!e.runId,Rt=e=>rt(e)&&e?.event===j.SUBSCRIBE_SUBMISSION_RUN_STATUS&&"string"==typeof e?.submitId&&!!e.submitId,Et=e=>rt(e)&&e?.event===j.UNSUBSCRIBE_SUBMISSION_RUN_STATUS&&"string"==typeof e?.submitId&&!!e.submitId,ut=e=>rt(e)&&e?.event===j.SUBSCRIBE_GET_DATA,ct=e=>rt(e)&&e?.event===j.UNSUBSCRIBE_GET_DATA,mt=e=>rt(e)&&e?.event===j.SUBSCRIBE_PROBLEM_CRAWLED,_t=e=>rt(e)&&e?.event===j.UNSUBSCRIBE_PROBLEM_CRAWLED,St=e=>rt(e)&&e?.event===j.SUBSCRIBE_SUBMISSIONS_CRAWL,dt=e=>rt(e)&&e?.event===j.UNSUBSCRIBE_SUBMISSIONS_CRAWL,pt=e=>rt(e)&&e?.event===j.SUBSCRIBE_CONTEST_CHANGES,Tt=e=>rt(e)&&e?.event===j.UNSUBSCRIBE_CONTEST_CHANGES,At=e=>rt(e)&&e?.event===j.SUBSCRIBE_CLIENT_TRACK,It=e=>rt(e)&&e?.event===j.UNSUBSCRIBE_CLIENT_TRACK,Ct=e=>rt(e)&&e?.event===j.SUBSCRIBE_USER_NOTIFICATION,Nt=e=>rt(e)&&e?.event===j.UNSUBSCRIBE_USER_NOTIFICATION,Ot=e=>rt(e)&&e?.event===j.SUBSCRIBE_CLIENT_TRACK_DATA&&"string"==typeof e?.trackedClientId&&!!e.trackedClientId,ht=e=>rt(e)&&e?.event===j.UNSUBSCRIBE_CLIENT_TRACK_DATA&&"string"==typeof e?.trackedClientId&&!!e.trackedClientId,ft=e=>Object.values(J).includes(e?.event)&&"string"==typeof e?.key&&"string"==typeof e?.connectionId&&"number"==typeof e?.messageTimestamp&&!!e.messageTimestamp,Dt=e=>ft(e)&&e?.event===J.CODE_RUN_STATUS&&"string"==typeof e?.runId&&!!e.runId&&e?.status in g,gt=e=>ft(e)&&e?.event===J.SUBMISSION_RUN_STATUS&&"string"==typeof e?.submitId&&!!e.submitId&&e?.status in g&&e?.verdict in D&&"number"==typeof e?.points,Pt=(e,t,a)=>`${e}-${t}-${a}`,bt=(e,t)=>{return Dt(e)?Pt(J.CODE_RUN_STATUS,t,e.runId):gt(e)?Pt(J.SUBMISSION_RUN_STATUS,t,e.submitId):(a=e,[J.SEND_DATA_ECS_TASK_DEFINITIONS_LIST,J.SEND_DATA_EC2_INSTANCES_LIST,J.SEND_DATA_ECS_TASKS_LIST,J.SEND_DATA_SSM_SESSIONS_LIST,J.SEND_DATA_RUN_COMMAND,J.SEND_DATA_CLIENT_TRACK,J.SEND_DATA_CHAT_COMPLETIONS].includes(a?.event)&&"string"==typeof a?.dataId&&a.dataId&&a?.content?Pt(J.SEND_DATA_,t,e.dataId):(e=>ft(e)&&e?.event===J.CONTEST_CHANGES&&!!e?.content)(e)?Pt(J.CONTEST_CHANGES,t,e.content.contestKey):(e=>ft(e)&&e?.event===J.PROBLEM_CRAWLED&&!!e?.content)(e)?Pt(J.PROBLEM_CRAWLED,t,e.content.problemKey):(e=>ft(e)&&e?.event===J.SUBMISSIONS_CRAWL&&!!e?.content)(e)?Pt(J.SUBMISSIONS_CRAWL,t,Ae([e.content.contestKey,e.content.problemKeys])):(e=>ft(e)&&e?.event===J.CLIENT_TRACK)(e)?e.key===t?Pt(J.CLIENT_TRACK,t,"*"):null:(e=>[J.USER_NOTIFICATION_SUBMISSION,J.USER_NOTIFICATION_CONTEST_CLARIFICATION].includes(e?.event)&&!!e?.content)(e)?Pt(J.USER_NOTIFICATION_,t,"*"):null);var a},vt=e=>{return Rt(e)?(t=e.submitId,`submission:${We(t)}`):mt(e)?(a=e.problemKey,`problem:${We(a)}`):pt(e)||St(e)?(s=e.contestKey,o=k.SPECTATORS,`contest:${We(s)}:${o}`):Ot(e)?(n=e.trackedClientId,`client-track:${We(n)}`):null;var t,a,s,o,n},Ut=e=>pt(e)||St(e)?e.contestKey:null;function yt(e){const t=[],a=1e3,s=6e4,o=36e5,n=864e5,r=6048e5,i=Math.floor(e/r);t.push({remaining:i,label:1===i?"week":"weeks",abbreviatedLabel:"w",milliseconds:r,digits:2});const l=Math.floor(e%r/n);t.push({remaining:l,label:1===l?"day":"days",abbreviatedLabel:"d",milliseconds:n,digits:2});const R=Math.floor(e%n/o);t.push({remaining:R,label:1===R?"hour":"hours",abbreviatedLabel:"h",milliseconds:o,digits:2});const E=Math.floor(e%o/s);t.push({remaining:E,label:1===E?"minute":"minutes",abbreviatedLabel:"m",milliseconds:s,digits:2});const u=Math.floor(e%s/a);t.push({remaining:u,label:1===u?"second":"seconds",abbreviatedLabel:"s",milliseconds:a,digits:2});const c=Math.floor(e%a);return t.push({remaining:c,label:1===c?"millisecond":"milliseconds",abbreviatedLabel:"ms",milliseconds:1,digits:3}),t}const Mt=(e,t)=>e+"|"+t,Lt=(e,t)=>`${e}|${t}`,Bt=e=>{const[t,a]=e.split("|");return{sessionId:t,uiId:a}},Ft=e=>{const t=[...e];t[0]?.type!==H.NEW_PAGE&&t.unshift(ze());let a=t[0],s=[];const o=[];for(let e=1;e<t.length;e++){const n=t[e];n.type===H.NEW_PAGE?(o.push({header:a,content:[...s]}),a=n,s=[]):s.push(n)}return o.push({header:a,content:[...s]}),o},xt=e=>"string"==typeof e?.id&&e.id&&Object.values(H).includes(e?.type)&&"string"==typeof e?.title&&"number"==typeof e?.points,Gt=e=>xt(e)&&e?.type===H.JK_MD&&"string"==typeof e?.content,wt=e=>xt(e)&&e?.type===H.CODE_EDITOR&&"object"==typeof e?.sourceCode&&null!==e?.sourceCode&&"object"===e?.testCases&&null!==e?.testCases&&Array.isArray(e?.languages)&&"number"==typeof e?.height,Ht=e=>xt(e)&&e?.type===H.QUIZ_PROBLEM&&Object.values(f).includes(e?.problemJudge)||"string"==typeof e?.problemJudge&&"string"==typeof e?.problemKey&&Array.isArray(e?.languages)&&"number"==typeof e?.height,Kt=e=>xt(e)&&e?.type===H.QUIZ_OPTIONS&&"string"==typeof e?.description&&Array.isArray(e?.options)&&e?.options.every(e=>"string"==typeof e?.label&&"boolean"==typeof e?.correct&&"string"==typeof e?.id)&&"boolean"==typeof e?.multiple&&("TOTAL"===e?.scoringMode||"PARTIAL"===e?.scoringMode),Vt=import.meta.env,jt=("undefined"!=typeof process?process.env.NEXT_PUBLIC_JUKI_SERVICE_V2_URL:void 0)||Vt?.VITE_JUKI_SERVICE_V2_URL||"",Jt=("undefined"!=typeof process?process.env.NEXT_PUBLIC_JUKI_TOKEN_NAME:void 0)||Vt?.VITE_JUKI_TOKEN_NAME||"",kt=("undefined"!=typeof process?process.env.NODE_ENV:void 0)||"development",Yt=+(("undefined"!=typeof process?process.env.NEXT_PUBLIC_ABLY_LOG_LEVEL:void 0)||Vt?.VITE_ABLY_LOG_LEVEL||0)||void 0,Wt={revalidateOnFocus:!1,revalidateOnReconnect:!0,revalidateIfStale:!0,focusThrottleInterval:5e3,dedupingInterval:5e3};export{Et as $,Yt as A,Fe as B,n as C,he as D,Ke as E,Be as F,oe as G,w as H,F as I,jt as J,Ee as K,v as L,W as M,kt as N,re as O,s as P,K as Q,ve as R,i as S,U as T,yt as U,it as V,H as W,lt as X,Pt as Y,J as Z,Rt as _,Ft as a,ut as a0,ct as a1,Ct as a2,Nt as a3,mt as a4,_t as a5,St as a6,dt as a7,Ae as a8,pt as a9,f as aA,ye as aB,vt as aC,Ut as aD,Xe as aE,bt as aF,gt as aG,be as aH,Le as aI,B as aJ,$e as aK,d as aL,Qe as aM,R as aN,Ge as aO,V as aP,Bt as aQ,Ve as aR,ke as aS,je as aT,Ye as aU,Je as aV,Ce as aW,Tt as aa,At as ab,It as ac,Ot as ad,ht as ae,j as af,Ie as ag,Ue as ah,g as ai,b as aj,Dt as ak,tt as al,we as am,Me as an,at as ao,D as ap,me as aq,et as ar,ne as as,Ne as at,fe as au,De as av,ge as aw,Pe as ax,Lt as ay,He as az,Y as b,Se as c,Jt as d,Wt as e,de as f,Mt as g,ze as h,ue as i,wt as j,Gt as k,Kt as l,Ht as m,qe as n,Oe as o,ie as p,le as q,x as r,Te as s,xe as t,nt as u,a as v,pe as w,ce as x,ot as y,Re as z};
|
|
1
|
+
const e=[];for(let t=0;t<256;++t)e.push((t+256).toString(16).slice(1));const t=new Uint8Array(16);function a(a,s,o){return crypto.randomUUID?crypto.randomUUID():function(a){a=a||{};const s=a.random??a.rng?.()??crypto.getRandomValues(t);if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=15&s[6]|64,s[8]=63&s[8]|128,function(t,a=0){return(e[t[a+0]]+e[t[a+1]]+e[t[a+2]]+e[t[a+3]]+"-"+e[t[a+4]]+e[t[a+5]]+"-"+e[t[a+6]]+e[t[a+7]]+"-"+e[t[a+8]]+e[t[a+9]]+"-"+e[t[a+10]]+e[t[a+11]]+e[t[a+12]]+e[t[a+13]]+e[t[a+14]]+e[t[a+15]]).toLowerCase()}(s)}(a)}var s,o,n,r,i,l,R,E,u,c,m,_,S,d,p,T,A,I,C,N,O,h,f,D,g,P,b;!function(e){e.NEWSLETTER_SUBSCRIPTION="newsletterSubscription",e.LANGUAGE="preferredLanguage",e.THEME="preferredTheme",e.DATA_VIEW_MODE="preferredDataViewMode",e.MENU_VIEW_MODE="preferredMenuViewMode",e.TIME_ZONE="preferredTimeZone",e.FONT_SIZE="preferredFontSize"}(s||(s={})),function(e){e.NONE="NONE",e.COURSE="COURSE",e.WORKSHEET="WORKSHEET",e.CONTEST="CONTEST"}(o||(o={})),function(e){e.C_11="c11",e.CPP_11="cpp11",e.CPP_20="cpp20",e.JAVA_21="java21",e.PYTHON_3="python3",e.PYTHON_PYPY_3="pypy3",e.JAVASCRIPT_NODE_JS_22="nodejs22",e.PYTHON_2="python2",e.PYTHON_PYPY_2="pypy2",e.ICPC_C="ICPC_C",e.C="C",e.CPP="CPP",e.ICPC_CPP="ICPC_CPP",e.CPP11="CPP11",e.CPP14="CPP14",e.CPP17="CPP17",e.JAVA="JAVA",e.ICPC_PYTHON="ICPC_PYTHON",e.PYTHON="PYTHON",e.PYTHON2="PYTHON2",e.PYTHON3="PYTHON3",e.JAVASCRIPT="JAVASCRIPT",e.TYPESCRIPT="TYPESCRIPT",e.JSX="JSX",e.TSX="TSX",e.MDX="MDX",e.PSEUDOCODE_PSEINT="PSEUDOCODE_PSEINT",e.LATEX="LATEX",e.JSON="JSON",e.HTML="HTML",e.TEXT="TEXT",e.DIFF="DIFF",e.MARKDOWN="MARKDOWN",e.ARDUINO="ARDUINO",e.DOT="DOT",e.MERMAID="MERMAID",e.BASH="BASH"}(n||(n={})),function(e){e.USER="USER",e.PROBLEM="PROBLEM",e.CONTEST="CONTEST",e.ATTEMPT="ATTEMPT"}(r||(r={})),function(e){e.SUCCESS="SUCCESS",e.ERROR="ERROR",e.LOADING="LOADING",e.NONE="NONE"}(i||(i={})),function(e){e.PUBLIC="PUBLIC",e.RESERVED="RESERVED",e.PRIVATE="PRIVATE",e.ARCHIVED="ARCHIVED"}(l||(l={})),function(e){e.PRIVATE="PRIVATE",e.RESTRICTED="RESTRICTED",e.PUBLIC="PUBLIC",e.EXPOSED="EXPOSED"}(R||(R={})),function(e){e.FREE="FREE",e.STANDARD="STANDARD",e.PREMIUM="PREMIUM",e.CUSTOM="CUSTOM"}(E||(E={})),function(e){e.HORIZONTAL_WHITE="horizontal-white",e.HORIZONTAL_COLOR="horizontal-color",e.VERTICAL_WHITE="vertical-white",e.VERTICAL_COLOR="vertical-color"}(u||(u={})),function(e){e.PUBLIC="PUBLIC",e.RESERVED="RESERVED",e.ARCHIVED="ARCHIVED"}(c||(c={})),function(e){e.UPCOMING="upcoming",e.LIVE="live",e.PAST="past"}(m||(m={})),function(e){e.INDIVIDUALLY="INDIVIDUALLY",e.CONTEST="CONTEST"}(_||(_={})),function(e){e.DATA_UPDATE="DATA_UPDATE",e.SCOREBOARD_RECALCULATE="SCOREBOARD_RECALCULATE",e.SCOREBOARD_UNLOCK="SCOREBOARD_UNLOCK",e.SCOREBOARD_LOCK="SCOREBOARD_LOCK",e.ENABLE_UPSOLVING="ENABLE_UPSOLVING",e.DISABLE_UPSOLVING="DISABLE_UPSOLVING",e.PARTICIPANT_JOIN="PARTICIPANT_JOIN"}(S||(S={})),function(e){e.NONE="NONE",e.CLOSE="CLOSE",e.OPEN="OPEN"}(d||(d={})),function(e){e.RELEASED="RELEASED",e.ARCHIVED="ARCHIVED"}(p||(p={})),function(e){e.COMPANY="COMPANY",e.PROBLEM="PROBLEM",e.CONTEST="CONTEST",e.JUDGE="JUDGE",e.USER="USER",e.SUBMISSION="SUBMISSION"}(T||(T={})),function(e){e.COMPANY="C",e.USER="U",e.PROBLEM="P",e.CLASS="K",e.CLASS_ASSIGNMENT="KA",e.CONTEST="T",e.SCOREBOARD="B",e.SCOREBOARD_EVENTS="BE",e.COURSE="R",e.FILE="F",e.GROUP="G",e.JUDGE="J",e.WORKSHEET="W",e.WORKSHEET_SUBMISSIONS="WS",e.SUBMIT="S",e.LOCALE="L",e.COMMENT="M",e.EXCALIDRAW="E",e.MARKDOWN="MD",e.DOCUMENT_TEMPLATE="DT",e.MERMAID="MM"}(A||(A={})),function(e){e.REMOVE="REMOVE",e.ADD="ADD",e.UPDATE="UPDATE"}(I||(I={})),function(e){e.VIEWER="VIEWER",e.EDITOR="EDITOR"}(C||(C={})),function(e){e.FOLDER="FOLDER",e.FILE="FILE"}(N||(N={})),function(e){e.SHARED="shared",e.SHARED_EXCALIDRAW="shared/E",e.TEMP="temp",e.PROBLEMS="problems",e.CONTESTS="contests"}(O||(O={})),function(e){e.CLASS="CLASS",e.TEAM="TEAM"}(h||(h={})),function(e){e.JUKI_JUDGE="JUKI_JUDGE",e.CODEFORCES="CODEFORCES",e.CODEFORCES_GYM="CODEFORCES_GYM",e.JV_UMSA="JV_UMSA",e.UVA_ONLINE_JUDGE="UVA_ONLINE_JUDGE",e.AT_CODER="AT_CODER",e.CODECHEF="CODECHEF",e.TOPCODER="TOPCODER",e.LEETCODE="LEETCODE"}(f||(f={})),function(e){e.NONE="NONE",e.PENDING="PENDING",e.HIDDEN="HIDDEN",e.CE="CE",e.RE="RE",e.TLE="TLE",e.MLE="MLE",e.WA="WA",e.PE="PE",e.PA="PA",e.AC="AC"}(D||(D={})),function(e){e.NONE="NONE",e.RECEIVED="RECEIVED",e.COMPILING="COMPILING",e.COMPILED="COMPILED",e.COMPILATION_ERROR="COMPILATION_ERROR",e.FETCHING_TEST_CASES="FETCHING_TEST_CASES",e.RUNNING_TEST_CASE="RUNNING_TEST_CASE",e.RUNNING_TEST_CASES="RUNNING_TEST_CASES",e.RUNNING_SAMPLE_TEST_CASES="RUNNING_SAMPLE_TEST_CASES",e.EXECUTED_TEST_CASE="EXECUTED_TEST_CASE",e.FAILED_TEST_CASE="FAILED_TEST_CASE",e.JUDGING_TEST_CASE="JUDGING_TEST_CASE",e.GRADING="GRADING",e.FAILED="FAILED",e.COMPLETED="COMPLETED"}(g||(g={})),function(e){e.HIGH_PERFORMANCE="HIGH_PERFORMANCE",e.LOW_PERFORMANCE="LOW_PERFORMANCE"}(P||(P={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.ERROR="error",e.QUIET="quiet"}(b||(b={}));const v={ES:"ES",EN:"EN"},U={LIGHT:"LIGHT",DARK:"DARK"};var y,M,L,B,F,x,G,w,H,K,V,j,J,k,Y,W,X,z,q;!function(e){e.INPUT="INPUT",e.OUTPUT="OUTPUT"}(y||(y={})),function(e){e.STANDARD="STANDARD",e.INTERACTIVE="INTERACTIVE"}(M||(M={})),function(e){e.STANDARD="STANDARD",e.DYNAMIC="DYNAMIC",e.INTERACTIVE="INTERACTIVE"}(L||(L={})),function(e){e.STANDARD="STANDARD",e.DYNAMIC="DYNAMIC",e.INTERACTIVE="INTERACTIVE"}(B||(B={})),function(e){e.SUBTASK="SUBTASK",e.TOTAL="TOTAL",e.PARTIAL="PARTIAL"}(F||(F={})),function(e){e.ERR400="ERR400",e.ERR401="ERR401",e.ERR403="ERR403",e.ERR404="ERR404",e.ERR405="ERR405",e.ERR500="ERR500",e.ERR9997="ERR9997",e.ERR9998="ERR9998",e.ERR9999="ERR9999",e.ERR0000="ERR0000",e.ERR0010="ERR0010",e.ERR0011="ERR0011",e.ERR0012="ERR0012",e.ERR0013="ERR0013",e.ERR0014="ERR0014",e.ERR0015="ERR0015",e.ERR0016="ERR0016",e.ERR0017="ERR0017",e.ERR0018="ERR0018",e.ERR0019="ERR0019",e.ERR0020="ERR0020",e.ERR0021="ERR0021",e.ERR0022="ERR0022",e.ERR0023="ERR0023",e.ERR0024="ERR0024",e.ERR0050="ERR0050",e.ERR0051="ERR0051",e.ERR0052="ERR0052",e.ERR0053="ERR0053",e.ERR0100="ERR0100",e.ERR0110="ERR0110",e.ERR0111="ERR0111",e.ERR0112=" ERR0112",e.ERR0113="ERR0113",e.ERR0114="ERR0114",e.ERR0115="ERR0115",e.ERR0116="ERR0116",e.ERR0117="ERR0117",e.ERR0118="ERR0118",e.ERR0119="ERR0119",e.ERR0120="ERR0120",e.ERR0121="ERR0121",e.ERR0122="ERR0122",e.ERR0200="ERR0200",e.ERR0210="ERR0210",e.ERR0211="ERR0211",e.ERR0212="ERR0212",e.ERR0213="ERR0213",e.ERR0214="ERR0214",e.ERR0215="ERR0215",e.ERR0216="ERR0216",e.ERR0217="ERR0217",e.ERR0218="ERR0218",e.ERR0219="ERR0219",e.ERR0220="ERR0220",e.ERR0230="ERR0230",e.ERR0231="ERR0231",e.ERR0232="ERR0232",e.ERR0233="ERR0233",e.ERR0234="ERR0234",e.ERR0235="ERR0235",e.ERR0236="ERR0236",e.ERR0237="ERR0237",e.ERR0240="ERR0240",e.ERR0241="ERR0241",e.ERR0242="ERR0242",e.ERR0243="ERR0243",e.ERR0244="ERR0244",e.ERR0245="ERR0245",e.ERR0246="ERR0246",e.ERR0247="ERR0247",e.ERR0300="ERR0300",e.ERR0301="ERR0301",e.ERR0302="ERR0302",e.ERR0303="ERR0303",e.ERR0310="ERR0310",e.ERR0311="ERR0311",e.ERR0321="ERR0321",e.ERR0331="ERR0331",e.ERR0400="ERR0400",e.ERR0410="ERR0410",e.ERR0420="ERR0420",e.ERR0421="ERR0421",e.ERR0430="ERR0430",e.ERR0440="ERR0440",e.ERR0600="ERR0600",e.ERR0610="ERR0610",e.ERR0611="ERR0611",e.ERR0612="ERR0612",e.ERR0613="ERR0613",e.ERR0614="ERR0614",e.ERR0615="ERR0615",e.ERR0616="ERR0665",e.ERR0617="ERR0617",e.ERR0618="ERR0618",e.ERR0619="ERR0619",e.ERR0800="ERR0800",e.ERR0810="ERR0810",e.ERR0811="ERR0811",e.ERR0812="ERR0812",e.ERR0813="ERR0813",e.ERR0814="ERR0814",e.ERR0815="ERR0815",e.ERR0816="ERR0865",e.ERR0817="ERR0817",e.ERR0818="ERR0818",e.ERR0819="ERR0819",e.ERR0820="ERR0820",e.ERR9900="ERR9900",e.ERR9910="ERR9910",e.ERR9911="ERR9911",e.ERR9912="ERR9912",e.ERR9913="ERR9913",e.ERR9914="ERR9914",e.ERR9915="ERR9915",e.ERR9916="ERR9916",e.ERR9917="ERR9917"}(x||(x={})),function(e){e.FATAL="FATAL",e.ERROR="ERROR",e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.TRACE="TRACE"}(G||(G={})),function(e){e.POST="POST",e.GET="GET",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE"}(w||(w={})),function(e){e.JK_MD="JK_MD",e.CODE_EDITOR="CODE_EDITOR",e.LIST="LIST",e.GRAPH="GRAPH",e.QUIZ_PROBLEM="QUIZ_PROBLEM",e.QUIZ_TEXT="QUIZ_TEXT",e.QUIZ_OPTIONS="QUIZ_OPTIONS",e.NEW_PAGE="NEW_PAGE"}(H||(H={})),function(e){e.TOTAL="TOTAL",e.PARTIAL="PARTIAL"}(K||(K={})),function(e){e.PING="PING",e.CLIENT_TRACK_LOCATION="CLIENT_TRACK_LOCATION",e.CLIENT_TRACK_SCREENSHOT="CLIENT_TRACK_SCREENSHOT",e.CLIENT_TRACK_DEVICE="CLIENT_TRACK_DEVICE",e.CHAT_COMPLETIONS="CHAT_COMPLETIONS"}(V||(V={})),function(e){e.SUBSCRIBE_CODE_RUN_STATUS="SUBSCRIBE_CODE_RUN_STATUS",e.UNSUBSCRIBE_CODE_RUN_STATUS="UNSUBSCRIBE_CODE_RUN_STATUS",e.SUBSCRIBE_SUBMISSION_RUN_STATUS="SUBSCRIBE_SUBMISSION_RUN_STATUS",e.UNSUBSCRIBE_SUBMISSION_RUN_STATUS="UNSUBSCRIBE_SUBMISSION_RUN_STATUS",e.SUBSCRIBE_GET_DATA="SUBSCRIBE_GET_DATA",e.UNSUBSCRIBE_GET_DATA="SUBSCRIBE_GET_DATA",e.SUBSCRIBE_PROBLEM_CRAWLED="SUBSCRIBE_PROBLEM_CRAWLED",e.UNSUBSCRIBE_PROBLEM_CRAWLED="UNSUBSCRIBE_PROBLEM_CRAWLED",e.SUBSCRIBE_SUBMISSIONS_CRAWL="SUBSCRIBE_SUBMISSIONS_CRAWL",e.UNSUBSCRIBE_SUBMISSIONS_CRAWL="UNSUBSCRIBE_SUBMISSIONS_CRAWL",e.SUBSCRIBE_CONTEST_CHANGES="SUBSCRIBE_CONTEST_CHANGES",e.UNSUBSCRIBE_CONTEST_CHANGES="UNSUBSCRIBE_CONTEST_CHANGES",e.SUBSCRIBE_CLIENT_TRACK="SUBSCRIBE_CLIENT_TRACK",e.UNSUBSCRIBE_CLIENT_TRACK="UNSUBSCRIBE_CLIENT_TRACK",e.SUBSCRIBE_USER_NOTIFICATION="SUBSCRIBE_USER_NOTIFICATION",e.UNSUBSCRIBE_USER_NOTIFICATION="UNSUBSCRIBE_USER_NOTIFICATION",e.SUBSCRIBE_CLIENT_TRACK_DATA="SUBSCRIBE_CLIENT_TRACK_DATA",e.UNSUBSCRIBE_CLIENT_TRACK_DATA="UNSUBSCRIBE_CLIENT_TRACK_DATA"}(j||(j={})),function(e){e.PONG="PONG",e.CODE_RUN_STATUS="CODE_RUN_STATUS",e.SUBMISSION_RUN_STATUS="SUBMISSION_RUN_STATUS",e.USER_MESSAGE="USER_MESSAGE",e.SEND_DATA_="SEND_DATA_",e.SEND_DATA_ECS_TASK_DEFINITIONS_LIST="SEND_DATA_ECS_TASK_DEFINITIONS_LIST",e.SEND_DATA_ECS_TASKS_LIST="SEND_DATA_ECS_TASKS_LIST",e.SEND_DATA_EC2_INSTANCES_LIST="SEND_DATA_EC2_INSTANCES_LIST",e.SEND_DATA_SSM_SESSIONS_LIST="SEND_DATA_SSM_SESSIONS_LIST",e.SEND_DATA_RUN_COMMAND="SEND_DATA_RUN_COMMAND",e.SEND_DATA_CLIENT_TRACK="SEND_DATA_CLIENT_TRACK",e.SEND_DATA_CHAT_COMPLETIONS="SEND_DATA_CHAT_COMPLETIONS",e.PROBLEM_CRAWLED="PROBLEM_CRAWLED",e.SUBMISSIONS_CRAWL="SUBMISSIONS_CRAWL",e.CONTEST_CHANGES="CONTEST_CHANGES",e.CLIENT_TRACK="CLIENT_TRACK",e.USER_NOTIFICATION_="USER_NOTIFICATION_",e.USER_NOTIFICATION_SUBMISSION="USER_NOTIFICATION_SUBMISSION",e.USER_NOTIFICATION_CONTEST_CLARIFICATION="USER_NOTIFICATION_CONTEST_CLARIFICATION"}(J||(J={})),function(e){e.ADMINISTRATORS="administrators",e.MANAGERS="managers",e.PARTICIPANTS="participants",e.GUESTS="guests",e.SPECTATORS="spectators"}(k||(k={})),function(e){e.CARDS="CARDS",e.ROWS="ROWS"}(Y||(Y={})),function(e){e.HORIZONTAL="HORIZONTAL",e.VERTICAL="VERTICAL"}(W||(W={})),function(e){e.SUPER_ADMIN="SUPER_ADMIN",e.ADMIN="ADMIN",e.MASTER="MASTER",e.MANAGER="MANAGER",e.CREATOR="CREATOR",e.REGULAR="REGULAR",e.LIMITED="LIMITED",e.GUEST="GUEST",e.RESTRICTED="RESTRICTED"}(X||(X={})),function(e){e.NOTHING="NOTHING",e.SEND_SUBMISSION="SEND_SUBMISSION",e.TRACKING_SUBMISSION="TRACKING_SUBMISSION",e.CRAWLING_LANGUAGES="CRAWLING_LANGUAGES",e.CRAWLING_PROBLEM_DATA="CRAWLING_PROBLEM_DATA"}(z||(z={})),function(e){e.RATIO_21_9="21:9",e.RATIO_20_9="20:9",e.RATIO_16_9="16:9",e.RATIO_16_10="16:10",e.RATIO_3_2="3:2",e.RATIO_4_3="4:3",e.RATIO_5_4="5:4",e.RATIO_1_1="1:1"}(q||(q={}));const Z="javac 17.0.15",Q="v20.19.2",$="Python 3.11.2",ee="Python 3.9.16 (7.3.11+dfsg-2+deb12u3, Dec 30 2024, 22:36:23)\n[PyPy 7.3.11 with GCC 12.2.0]",te={mime:"text/x-csrc",mainFilename:"main.c",fileExtension:["c"],hasBuildFile:!0,executable:"gcc",executableVersion:"gcc (Debian 12.2.0-14+deb12u1) 12.2.0\nCopyright (C) 2022 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.",templateSourceCode:'#include <stdio.h>\n \nint main(void) {\n \n printf("Hello World\\n");\n \n return 0;\n}',monacoKey:"c",codeMirrorKey:"c",highlightJsKey:"c"},ae={mime:"text/x-c++src",mainFilename:"main.cpp",fileExtension:["cpp","c++","cxx","cc"],hasBuildFile:!0,executable:"g++",executableVersion:"g++ (Debian 12.2.0-14+deb12u1) 12.2.0\nCopyright (C) 2022 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.",templateSourceCode:'#include <iostream>\n\nusing namespace std;\n\nint main() {\n \n cout << "Hello World" << endl;\n \n return 0;\n}',monacoKey:"cpp",codeMirrorKey:"cpp",highlightJsKey:"cpp"},se={mime:"text/x-python",mainFilename:"main.py",fileExtension:["py"],hasBuildFile:!1,templateSourceCode:'print("Hello World\\n")',monacoKey:"python",codeMirrorKey:"python",highlightJsKey:"python"},oe={[n.C_11]:{value:n.C_11,label:"C 11",compilePattern:"/usr/bin/jk-c11 -static -fno-optimize-sibling-calls -fno-strict-aliasing -DONLINE_JUDGE -fno-asm -lm -s -O2 -std=gnu11 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.CPP_11]:{value:n.CPP_11,label:"C++ 11",compilePattern:"/usr/bin/jk-cpp11 -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=gnu++11 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ae},[n.CPP_20]:{value:n.CPP_20,label:"C++ 20",compilePattern:"/usr/bin/jk-cpp20 -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=gnu++20 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ae},[n.JAVA_21]:{value:n.JAVA_21,label:"Java 21",mime:"text/x-java",mainFilename:"Main.java",fileExtension:["java"],compilePattern:"/usr/bin/jk-javac -cp '.;*' {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-java -Xmx512M -Xss64M -DONLINE_JUDGE=true -Duser.language=en -Duser.region=US -Duser.variant=US -cp {{folder_path}} {{class_name}}",templateSourceCode:'class Main {\n public static void main (String[] args) {\n \n System.out.println("Hello World");\n \n }\n}',hasBuildFile:!0,executable:"java",executableVersion:Z,monacoKey:"java",codeMirrorKey:"java",highlightJsKey:"java"},[n.PYTHON_2]:{value:n.PYTHON_2,label:"Python 2 *",compilePattern:"/usr/bin/jk-python2 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-python2 {{folder_path}}/{{source_full_file_name}}",executable:"python2",executableVersion:ee,...se},[n.PYTHON_3]:{value:n.PYTHON_3,label:"Python 3",compilePattern:"/usr/bin/jk-python3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-python3 {{folder_path}}/{{source_full_file_name}}",executable:"python3",executableVersion:ee,...se},[n.PYTHON_PYPY_2]:{value:n.PYTHON_PYPY_2,label:"PyPy 2 *",compilePattern:"/usr/bin/jk-pypy2 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-pypy2 {{folder_path}}/{{source_full_file_name}}",executable:"pypy2",executableVersion:ee,...se},[n.PYTHON_PYPY_3]:{value:n.PYTHON_PYPY_3,label:"PyPy 3",compilePattern:"/usr/bin/jk-pypy3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-pypy3 {{folder_path}}/{{source_full_file_name}}",executable:"pypy3",executableVersion:ee,...se},[n.JAVASCRIPT_NODE_JS_22]:{value:n.JAVASCRIPT_NODE_JS_22,label:"Javascript Node.js 22",mime:"application/x-javascript",mainFilename:"main.js",fileExtension:["js"],compilePattern:"",runPattern:"/usr/bin/jk-node22 {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Q,monacoKey:"javascript",codeMirrorKey:"javascript",highlightJsKey:"javascript"},[n.ICPC_C]:{value:n.ICPC_C,label:"ICPC C *",compilePattern:"gcc -x c -g -O2 -std=gnu11 -static -lm -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.C]:{value:n.C,label:"C *",compilePattern:"gcc -static -fno-optimize-sibling-calls -fno-strict-aliasing -DONLINE_JUDGE -fno-asm -lm -s -O2 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.ICPC_CPP]:{value:n.ICPC_CPP,label:"ICPC C++ *",compilePattern:"g++ -x c++ -static -g -O2 -std=gnu++20 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ae},[n.CPP]:{value:n.CPP,label:"C++ *",compilePattern:"g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ae},[n.CPP11]:{value:n.CPP11,label:"C++ 11 *",compilePattern:"g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=c++11 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ae},[n.CPP14]:{value:n.CPP14,label:"C++ 14 *",compilePattern:"g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=c++14 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ae},[n.CPP17]:{value:n.CPP17,label:"C++ 17 *",compilePattern:"g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=c++17 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ae},[n.JAVA]:{value:n.JAVA,label:"Java *",mime:"text/x-java",mainFilename:"Main.java",fileExtension:["java"],compilePattern:"javac -cp '.;*' {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/lib/jvm/java-17-openjdk-amd64/bin/java -Xmx512M -Xss64M -DONLINE_JUDGE=true -Duser.language=en -Duser.region=US -Duser.variant=US -cp {{folder_path}} {{class_name}}",templateSourceCode:'class Main {\n public static void main (String[] args) {\n \n System.out.println("Hello World");\n \n }\n}',hasBuildFile:!0,executable:"javac",executableVersion:Z,monacoKey:"java",codeMirrorKey:"java",highlightJsKey:"java"},[n.ICPC_PYTHON]:{value:n.ICPC_PYTHON,label:"ICPC Python *",compilePattern:"pypy3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/pypy3 {{folder_path}}/{{source_full_file_name}}",executable:"pypy3",executableVersion:ee,...se},[n.PYTHON]:{value:n.PYTHON,label:"Python *",compilePattern:"python3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/python3 {{folder_path}}/{{source_full_file_name}}",executable:"python3",executableVersion:$,...se},[n.PYTHON2]:{value:n.PYTHON2,label:"Python 2 *",compilePattern:"python2 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/python2 {{folder_path}}/{{source_full_file_name}}",executable:"python",executableVersion:"Python 2.7.18",...se},[n.PYTHON3]:{value:n.PYTHON3,label:"Python 3 *",compilePattern:"python3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/python3 {{folder_path}}/{{source_full_file_name}}",executable:"python3",executableVersion:$,...se},[n.JAVASCRIPT]:{value:n.JAVASCRIPT,label:"Javascript *",mime:"application/x-javascript",mainFilename:"main.js",fileExtension:["js"],compilePattern:"",runPattern:"/usr/bin/node {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Q,monacoKey:"javascript",codeMirrorKey:"javascript",highlightJsKey:"javascript"},[n.TYPESCRIPT]:{value:n.TYPESCRIPT,label:"Typescript *",mime:"application/x-typescript",mainFilename:"main.ts",fileExtension:["ts"],compilePattern:"",runPattern:"/usr/bin/node {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Q,monacoKey:"typescript",codeMirrorKey:"typescript",highlightJsKey:"typescript"},[n.TSX]:{value:n.TSX,label:"TSX *",mime:"application/x-typescript",mainFilename:"main.tsx",fileExtension:["tsx"],compilePattern:"",runPattern:"/usr/bin/node {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Q,monacoKey:"typescript",codeMirrorKey:"typescript",highlightJsKey:"typescript"},[n.JSX]:{value:n.JSX,label:"JSX *",mime:"application/x-javascript",mainFilename:"main.jsx",fileExtension:["jsx"],compilePattern:"",runPattern:"/usr/bin/node {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Q,monacoKey:"javascript",codeMirrorKey:"javascript",highlightJsKey:"javascript"},[n.PSEUDOCODE_PSEINT]:{value:n.PSEUDOCODE_PSEINT,label:"Pseudo-código (PSeInt)",mime:"text/plain",mainFilename:"main.psc",fileExtension:["psc"],compilePattern:"jk-pseint {{folder_path}}/{{source_full_file_name}} --norun --nouser && jk-pseint {{folder_path}}/{{source_full_file_name}} --draw {{folder_path}}/{{source_full_file_name}}.psd && jk-psexport {{folder_path}}/{{source_full_file_name}}.psd {{folder_path}}/{{source_full_file_name}}.cpp --lang=cpp && g++ -x c++ -g -O2 -std=gnu++20 -static -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}.cpp",runPattern:"{{folder_path}}/{{compiled_file_name}}",templateSourceCode:'Algoritmo HOLA_MUNDO\n\tImprimir "Hello World"\nFinAlgoritmo\n',hasBuildFile:!1,executable:"",executableVersion:"PSeInt 20230904-l64-wx3\nhttp://pseint.sourceforge.net\nby Pablo Novara (zaskar_84@yahoo.com.ar)\npsExport 20230904-l64-wx3\nhttp://pseint.sourceforge.net\nby Pablo Novara (zaskar_84@yahoo.com.ar)",monacoKey:"text",codeMirrorKey:"pseudocode-pseint",highlightJsKey:"plaintext"},[n.DOT]:{value:n.DOT,label:"DOT",mime:"text/vnd.graphviz",mainFilename:"diagram.dot",fileExtension:["dot"],compilePattern:"",runPattern:"",templateSourceCode:"digraph G {\n A -> B;\n B -> C;\n}",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"dot",codeMirrorKey:"dot",highlightJsKey:"plaintext"},[n.MERMAID]:{value:n.MERMAID,label:"Mermaid",mime:"text/mermaid",mainFilename:"diagram.mmd",fileExtension:["mmd","mermaid"],compilePattern:"",runPattern:"",templateSourceCode:"graph TD\n A[Start] --\x3e B{Is it working?}\n B -- Yes --\x3e C[Great!]\n B -- No --\x3e D[Fix it]\n D --\x3e B\n",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"mermaid",codeMirrorKey:"mermaid",highlightJsKey:"plaintext"},[n.JSON]:{value:n.JSON,label:"JSON",mime:"application/json",mainFilename:"main.json",fileExtension:["json"],compilePattern:"",runPattern:"",templateSourceCode:"{\n \n}",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"json",codeMirrorKey:"javascript",highlightJsKey:"json"},[n.TEXT]:{value:n.TEXT,label:"plain text",mime:"text/plain",mainFilename:"main.txt",fileExtension:["txt","text","in","out"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"text",codeMirrorKey:"text",highlightJsKey:"plaintext"},[n.DIFF]:{value:n.DIFF,label:"diff",mime:"text/plain",mainFilename:"main.patch",fileExtension:["diff","patch"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"diff",codeMirrorKey:"diff",highlightJsKey:"diff"},[n.LATEX]:{value:n.LATEX,label:"LaTeX",mime:"application/x-latex",mainFilename:"main.tex",fileExtension:["tex"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"latex",codeMirrorKey:"stex",highlightJsKey:"latex"},[n.MARKDOWN]:{value:n.MARKDOWN,label:"Markdown",mime:"text/plain",mainFilename:"main.md",fileExtension:["md"],compilePattern:"",runPattern:"",templateSourceCode:"# Hello World\n",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"markdown",codeMirrorKey:"markdown",highlightJsKey:"markdown"},[n.MDX]:{value:n.MDX,label:"MDX",mime:"text/plain",mainFilename:"main.mdx",fileExtension:["mdx"],compilePattern:"",runPattern:"",templateSourceCode:"# Hello World\n",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"markdown",codeMirrorKey:"markdown",highlightJsKey:"markdown"},[n.ARDUINO]:{value:n.ARDUINO,label:"Arduino",mime:"text/plain",mainFilename:"main.c",fileExtension:["c","cpp","pde","h","ino"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"c",codeMirrorKey:"c",highlightJsKey:"c"},[n.HTML]:{value:n.HTML,label:"HTML",mime:"text/HTML",mainFilename:"index.html",fileExtension:["html"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"html",codeMirrorKey:"html",highlightJsKey:"xml"},[n.BASH]:{value:n.BASH,label:"Bash",mime:"text/plain",mainFilename:"main.sh",fileExtension:["sh","bash"],compilePattern:"",runPattern:"",templateSourceCode:'#!/bin/bash\necho "Hello World"\n',hasBuildFile:!1,executable:"bash",executableVersion:"",monacoKey:"shell",codeMirrorKey:"shell",highlightJsKey:"bash"}},ne={VIVOS:[{color:"#FF0000",title:"Rojo"},{color:"#FF5900",title:"Rojo - Naranja"},{color:"#FF8600",title:"Naranja"},{color:"#FFBF00",title:"Ámbar"},{color:"#FFFF00",title:"Amarillo"},{color:"#A6FF00",title:"Lima o Verde limon"},{color:"#00FF8C",title:"Verde puro"},{color:"#00FF8C",title:"Verde cian"},{color:"#00FFFF",title:"Cian"},{color:"#0099FF",title:"Cerúleo o Azur"},{color:"#0000FF",title:"Azul"},{color:"#9F00FF",title:"Violeta"},{color:"#FF00FF",title:"Magenta"},{color:"#FF0099",title:"Fucsia"}],OSCUROS:[{color:"#880000",title:"Granate"},{color:"#882F00",title:"Caoba o Rojo indio"},{color:"#884700",title:"Marrón o Pardo"},{color:"#886600",title:"Marrón dorado"},{color:"#888800",title:"Oliva"},{color:"#588800",title:"Verde palta"},{color:"#008800",title:"Verde estándar"},{color:"#008858",title:"Esmeralda"},{color:"#008888",title:"Cerceta o Azul verde"},{color:"#005288",title:"Añil"},{color:"#000080",title:"Azul marino"},{color:"#880088",title:"Azul púrpura"},{color:"#880088",title:"Púrpura o Morado"},{color:"#880047",title:"Vino"}],AGRISADOS:[{color:"#BF4040",title:"Lacre"},{color:"#BF6340",title:"Cobre"},{color:"#BF8340",title:"Cnalea o Ocre"},{color:"#BF9F40",title:"Dorado"},{color:"#BFBF40",title:"Chartreuse"},{color:"#93BF40",title:"Verde manzana"},{color:"#93BF40",title:"Verde bosque"},{color:"#40BF40",title:"Verde mar"},{color:"#40BFBF",title:"Turquesa"},{color:"#408CBF",title:"Azul acero"},{color:"#4040BF",title:"Zafiro"},{color:"#9340BF",title:"Amastista"},{color:"#B140BF",title:"Púrpureo"},{color:"#B140BF",title:"Fandango"}],CLAROS:[{color:"#FF7777",title:"Coral"},{color:"#FF9977",title:"Salmón"},{color:"#FFB977",title:"Melón o Durazno"},{color:"#FFDA80",title:"Crema"},{color:"#FFFF88",title:"Maíz"},{color:"#CFFF77",title:"Té verde"},{color:"#77FF77",title:"Verde claro"},{color:"#77FFAA",title:"Menta"},{color:"#80FFFF",title:"Aguamarina"},{color:"#73C7FF",title:"Celeste"},{color:"#8082FF",title:"Bígaro o aciano"},{color:"#C977FF",title:"Lavanda o lila"},{color:"#FF77FF",title:"Malva"},{color:"#FF77C1",title:"Rosado"}]},re="",ie="x-juki-forwarded-host",le="x-juki-visitor-session-id",Re="x-juki-metadata",Ee="juki-app";function ue(e){try{if("string"==typeof e)return JSON.parse(e),!0}catch(e){return!1}return!1}function ce(e){try{return"string"==typeof JSON.stringify(e)}catch(e){return!1}}function me(e){let t=0;for(;-1!==e.indexOf(t);)t++;return t}function _e(e,t){const a=[];for(let s=e;s<t;s++)a.push(s);return a}function Se(...e){console.warn((new Date).toLocaleString(),...e)}function de(...e){console.info((new Date).toLocaleString(),...e)}function pe(...e){console.error((new Date).toLocaleString(),...e)}function Te(e){const t=new ArrayBuffer(e.length),a=new Uint8Array(t);for(let t=0;t<e.length;t++)a[t]=255&e.charCodeAt(t);return t}function Ae(e){return e.join("")}function Ie(e){return e.split("")}E.FREE,E.FREE,E.STANDARD,E.STANDARD,E.PREMIUM,E.PREMIUM,E.CUSTOM,E.CUSTOM,c.PUBLIC,c.PUBLIC,c.RESERVED,c.RESERVED,c.ARCHIVED,c.ARCHIVED,X.RESTRICTED,X.RESTRICTED,X.GUEST,X.GUEST,X.REGULAR,X.REGULAR,X.CREATOR,X.CREATOR,X.MANAGER,X.MANAGER,X.MASTER,X.MASTER,X.ADMIN,X.ADMIN,X.SUPER_ADMIN,X.SUPER_ADMIN;const Ce=(e,t)=>{if(e===t)return!1;if(e.length!==t.length)return!0;for(let a=0;a<t.length;a+=1)if(t[a]!==e[a])return!0;return!1},Ne=_e(1970,2100),Oe=["January","February","March","April","May","June","July","August","September","October","November","December"],he=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],fe=_e(0,24),De=_e(0,60),ge=_e(0,60),Pe=_e(0,1e3),be={[f.JUKI_JUDGE]:{value:f.JUKI_JUDGE,label:"Juki Judge",logo:"https://images.juki.pub/c/juki-judge-logo-horizontal-color.svg",logoSize:[883.991,435],url:"https://judge.juki.app"},[f.CODEFORCES]:{value:f.CODEFORCES,label:"Codeforces",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://codeforces.com"},[f.CODEFORCES_GYM]:{value:f.CODEFORCES_GYM,label:"Codeforces Gym",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://codeforces.com"},[f.JV_UMSA]:{value:f.JV_UMSA,label:"Juez Virtual UMSA",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://jv.umsa.bo"},[f.UVA_ONLINE_JUDGE]:{value:f.UVA_ONLINE_JUDGE,label:"Uva Online Judge",logo:"https://images.juki.pub/c/uva-online-judge-logo-color.png",logoSize:[150,135.994],url:"https://onlinejudge.org"},[f.AT_CODER]:{value:f.AT_CODER,label:"AtCoder",logo:"https://images.juki.pub/c/at-coder-logo-color.png",logoSize:[762.997,675],url:"https://atcoder.jp"},[f.CODECHEF]:{value:f.CODECHEF,label:"Codechef",logo:"https://images.juki.pub/c/codechef-logo-color.svg",logoSize:[1207.7,453.17],url:"https://www.codechef.com"},[f.TOPCODER]:{value:f.TOPCODER,label:"Topcoder",logo:"https://images.juki.pub/c/topcoder-logo-color.png",logoSize:[971.99,415.99],url:"https://www.topcoder.com"},[f.LEETCODE]:{value:f.LEETCODE,label:"LeetCode",logo:"https://images.juki.pub/assets/leetcode-logo-color.svg",logoSize:[95,111],url:"https://leetcode.com"}};F.TOTAL,F.SUBTASK,F.PARTIAL,B.STANDARD,B.DYNAMIC;const ve=[n.C_11,n.CPP_11,n.CPP_20,n.JAVA_21,n.PYTHON_3,n.PYTHON_PYPY_3,n.JAVASCRIPT_NODE_JS_22,n.PSEUDOCODE_PSEINT],Ue=[...ve],ye={[D.NONE]:{value:D.NONE,label:"none",color:"#555555"},[D.PENDING]:{value:D.PENDING,label:"pending",color:"#79B6FD"},[D.HIDDEN]:{value:D.HIDDEN,label:"hidden",color:"#555555"},[D.AC]:{value:D.AC,label:"accepted",color:"#43D787"},[D.PE]:{value:D.PE,label:"presentation error",color:"#55db93"},[D.PA]:{value:D.PA,label:"partial accepted",color:"#55db93"},[D.CE]:{value:D.CE,label:"compilation error",color:"#FE9F9F"},[D.RE]:{value:D.RE,label:"runtime error",color:"#FE9F9F"},[D.TLE]:{value:D.TLE,label:"time limit exceed",color:"#FE9F9F"},[D.MLE]:{value:D.MLE,label:"memory limit exceed",color:"#FE9F9F"},[D.WA]:{value:D.WA,label:"wrong answer",color:"#FE9F9F"}};D.NONE,D.PENDING,D.AC,D.PE,D.PA,D.CE,D.RE,D.TLE,D.MLE,D.WA;const Me={[g.NONE]:{value:g.NONE,label:"none"},[g.RECEIVED]:{value:g.RECEIVED,label:"received"},[g.COMPILING]:{value:g.COMPILING,label:"compiling"},[g.COMPILED]:{value:g.COMPILED,label:"compiled"},[g.COMPILATION_ERROR]:{value:g.COMPILATION_ERROR,label:"compilation error"},[g.FETCHING_TEST_CASES]:{value:g.FETCHING_TEST_CASES,label:"fetching test cases"},[g.RUNNING_TEST_CASE]:{value:g.RUNNING_TEST_CASE,label:"running test case"},[g.RUNNING_TEST_CASES]:{value:g.RUNNING_TEST_CASES,label:"running test cases"},[g.RUNNING_SAMPLE_TEST_CASES]:{value:g.RUNNING_SAMPLE_TEST_CASES,label:"running sample cases"},[g.EXECUTED_TEST_CASE]:{value:g.EXECUTED_TEST_CASE,label:"executed test case"},[g.FAILED_TEST_CASE]:{value:g.FAILED_TEST_CASE,label:"failed test case"},[g.JUDGING_TEST_CASE]:{value:g.JUDGING_TEST_CASE,label:"judging test case"},[g.GRADING]:{value:g.GRADING,label:"grading"},[g.FAILED]:{value:g.FAILED,label:"failed"},[g.COMPLETED]:{value:g.COMPLETED,label:"completed"}};P.HIGH_PERFORMANCE,P.HIGH_PERFORMANCE,P.LOW_PERFORMANCE,P.LOW_PERFORMANCE,M.STANDARD,M.STANDARD,M.INTERACTIVE,M.INTERACTIVE,L.STANDARD,L.STANDARD,L.DYNAMIC,L.DYNAMIC,L.INTERACTIVE,L.INTERACTIVE;const Le=[F.TOTAL,F.SUBTASK,F.PARTIAL],Be={[F.TOTAL]:{value:F.TOTAL,label:"total",description:"if all test cases are Accepted the result is Accepted otherwise it will be Runtime Error, Time Limited Exceeded, Memory Limited Exceeded, Wrong Answer or Presentation Error in that order."},[F.SUBTASK]:{value:F.SUBTASK,label:"subtask",description:"the test cases are grouped and each group of test cases is assigned a score, if all test cases in a group are Accepted then the score assigned to that group of test cases is added to total score, if total score is equal to the sum of the assigned scores of all groups of test cases then the result is Accepted, otherwise if the total score is greater than zero the result is Partial Accepted with the total accumulated score, otherwise it will be Runtime Error, Time Limited Exceeded, Memory Limited Exceeded, Wrong Answer or Presentation Error in that order."},[F.PARTIAL]:{value:F.PARTIAL,label:"partial",description:"the test cases are grouped and each group is associated with X points, and each test case in a group scores X points "}};B.STANDARD,B.DYNAMIC,B.INTERACTIVE;const Fe={[B.STANDARD]:{value:B.STANDARD,label:"standard",description:"The contestant submit a single source code in one of the allowed programming languages. The source code is either standalone or to be compiled. The resulting user's executable does I/O standard input and output. The output produced by the contestant's program is then compared to the correct output using a simple diff algorithm."},[B.INTERACTIVE]:{value:B.INTERACTIVE,label:"interactive",description:"developing.."},[B.DYNAMIC]:{value:B.DYNAMIC,label:"dynamic",description:"The contestant submit a single source code in one of the allowed programming languages. The user's source code is either standalone or to be compiled. The resulting user's executable does I/O standard input and output. The output produced by the contestant's program is saved. The problem editor save a single source code in C++ 17. The editor's source code can read judge input filepath argv[1], judge output filepath argv[2], user's output filepath argv[3], user's error filepath argv[4], user's log filepath argv[5], user's source filepath argv[6] and submission information filepath argv[7] (companyId, submitId, runId, userId, contestId, problemId, language, userNickname, timestamp). The resulting editor's executable should be \"AC\" or a number between 1 and 100 for partial accepted"}};X.RESTRICTED,X.RESTRICTED,X.GUEST,X.GUEST,X.REGULAR,X.REGULAR,X.CREATOR,X.CREATOR,X.MANAGER,X.MANAGER,X.MASTER,X.MASTER,X.ADMIN,X.ADMIN,X.SUPER_ADMIN,X.SUPER_ADMIN;const xe={[x.ERR500]:{value:x.ERR500,message:"internal server error",status:500},[x.ERR400]:{value:x.ERR400,message:"bad request",status:400},[x.ERR401]:{value:x.ERR401,message:"unauthorized",status:401},[x.ERR403]:{value:x.ERR403,message:"forbidden",status:403},[x.ERR404]:{value:x.ERR404,message:"not found",status:404},[x.ERR405]:{value:x.ERR405,message:"method not allowed",status:405},[x.ERR9997]:{value:x.ERR9997,message:"aborted request",status:400},[x.ERR9998]:{value:x.ERR9998,message:"error on response",status:400},[x.ERR9999]:{value:x.ERR9999,message:"service no found",status:400},[x.ERR9900]:{value:x.ERR9900,message:"internal server error on company service",status:500},[x.ERR9910]:{value:x.ERR9910,message:"company not created",status:500},[x.ERR9911]:{value:x.ERR9911,message:"company not found",status:500},[x.ERR9912]:{value:x.ERR9912,message:"company not updated",status:500},[x.ERR9913]:{value:x.ERR9913,message:"company not deleted",status:500},[x.ERR9914]:{value:x.ERR9914,message:"not allowed to create the company",status:400},[x.ERR9915]:{value:x.ERR9915,message:"not allowed to view the company",status:400},[x.ERR9916]:{value:x.ERR9916,message:"not allowed to updated the company",status:400},[x.ERR9917]:{value:x.ERR9917,message:"not allowed to deleted the company",status:400},[x.ERR0000]:{value:x.ERR0000,message:"internal server error on users service",status:500},[x.ERR0010]:{value:x.ERR0010,message:"user not created",status:500},[x.ERR0011]:{value:x.ERR0011,message:"user not found",status:500},[x.ERR0012]:{value:x.ERR0012,message:"user not updated",status:500},[x.ERR0013]:{value:x.ERR0013,message:"user not deleted",status:500},[x.ERR0014]:{value:x.ERR0014,message:"not allowed to create the user",status:400},[x.ERR0015]:{value:x.ERR0015,message:"not allowed to view the user",status:400},[x.ERR0016]:{value:x.ERR0016,message:"not allowed to updated the user",status:400},[x.ERR0017]:{value:x.ERR0017,message:"not allowed to deleted the user",status:400},[x.ERR0018]:{value:x.ERR0018,message:"user is reported",status:400},[x.ERR0019]:{value:x.ERR0019,message:"user is archived",status:400},[x.ERR0020]:{value:x.ERR0020,message:"user with email requested not found",status:400},[x.ERR0021]:{value:x.ERR0021,message:"user with nickname requested not found",status:400},[x.ERR0022]:{value:x.ERR0022,message:"the email is already registered",status:400},[x.ERR0023]:{value:x.ERR0023,message:"the nickname is already taken",status:400},[x.ERR0024]:{value:x.ERR0024,message:"incorrect password",status:400},[x.ERR0050]:{value:x.ERR0050,message:"user session not created",status:500},[x.ERR0051]:{value:x.ERR0051,message:"user session not found",status:500},[x.ERR0052]:{value:x.ERR0052,message:"user session not updated",status:500},[x.ERR0053]:{value:x.ERR0053,message:"user session not deleted",status:500},[x.ERR0100]:{value:x.ERR0100,message:"internal server error on problems service",status:500},[x.ERR0110]:{value:x.ERR0110,message:"problem not created",status:500},[x.ERR0111]:{value:x.ERR0111,message:"problem not found",status:500},[x.ERR0112]:{value:x.ERR0112,message:"problem not updated",status:500},[x.ERR0113]:{value:x.ERR0113,message:"problem not deleted",status:500},[x.ERR0114]:{value:x.ERR0114,message:"not allowed to create the problem",status:400},[x.ERR0115]:{value:x.ERR0115,message:"not allowed to view the problem",status:400},[x.ERR0116]:{value:x.ERR0116,message:"not allowed to updated the problem",status:400},[x.ERR0117]:{value:x.ERR0117,message:"not allowed to deleted the problem",status:400},[x.ERR0118]:{value:x.ERR0118,message:"problem mode not supported",status:500},[x.ERR0119]:{value:x.ERR0119,message:"problem type not supported",status:500},[x.ERR0120]:{value:x.ERR0120,message:"problem time limit must be a number",status:500},[x.ERR0121]:{value:x.ERR0121,message:"problem memory limit must be number",status:500},[x.ERR0122]:{value:x.ERR0122,message:"test case file empty",status:400},[x.ERR0200]:{value:x.ERR0200,message:"internal server error on contests service",status:500},[x.ERR0210]:{value:x.ERR0210,message:"contest not created",status:500},[x.ERR0211]:{value:x.ERR0211,message:"contest not found",status:500},[x.ERR0212]:{value:x.ERR0212,message:"contest not updated",status:500},[x.ERR0213]:{value:x.ERR0213,message:"contest not deleted",status:500},[x.ERR0214]:{value:x.ERR0214,message:"not allowed to create the contest",status:400},[x.ERR0215]:{value:x.ERR0215,message:"not allowed to view the contest",status:400},[x.ERR0216]:{value:x.ERR0216,message:"not allowed to updated the contest",status:400},[x.ERR0217]:{value:x.ERR0217,message:"not allowed to deleted the contest",status:400},[x.ERR0218]:{value:x.ERR0218,message:"not allowed to register to the contest",status:400},[x.ERR0219]:{value:x.ERR0219,message:"is already registered",status:400},[x.ERR0220]:{value:x.ERR0220,message:"not allowed to view contests",status:400},[x.ERR0230]:{value:x.ERR0230,message:"scoreboard not created",status:500},[x.ERR0231]:{value:x.ERR0231,message:"scoreboard not found",status:500},[x.ERR0232]:{value:x.ERR0232,message:"scoreboard not updated",status:500},[x.ERR0233]:{value:x.ERR0233,message:"scoreboard not deleted",status:500},[x.ERR0234]:{value:x.ERR0234,message:"not allowed to create the scoreboard",status:400},[x.ERR0235]:{value:x.ERR0235,message:"not allowed to view the scoreboard",status:400},[x.ERR0236]:{value:x.ERR0236,message:"not allowed to update the scoreboard",status:400},[x.ERR0237]:{value:x.ERR0237,message:"not allowed to delete the scoreboard",status:400},[x.ERR0240]:{value:x.ERR0240,message:"clarification not created",status:500},[x.ERR0241]:{value:x.ERR0241,message:"clarification not found",status:500},[x.ERR0242]:{value:x.ERR0242,message:"clarification not updated",status:500},[x.ERR0243]:{value:x.ERR0243,message:"clarification not deleted",status:500},[x.ERR0244]:{value:x.ERR0244,message:"not allowed to submit clarification",status:400},[x.ERR0245]:{value:x.ERR0245,message:"not allowed to view clarification",status:400},[x.ERR0246]:{value:x.ERR0246,message:"not allowed to update clarification",status:400},[x.ERR0247]:{value:x.ERR0247,message:"not allowed to delete clarification",status:400},[x.ERR0300]:{value:x.ERR0300,message:"internal server error on submissions service",status:500},[x.ERR0301]:{value:x.ERR0301,message:"submission not found",status:500},[x.ERR0302]:{value:x.ERR0302,message:"submission not created",status:500},[x.ERR0303]:{value:x.ERR0303,message:"submission not updated",status:500},[x.ERR0310]:{value:x.ERR0310,message:"source empty",status:400},[x.ERR0311]:{value:x.ERR0311,message:"programming language not supported",status:400},[x.ERR0321]:{value:x.ERR0321,message:"not allowed submit the problem in the contest",status:400},[x.ERR0331]:{value:x.ERR0331,message:"judgement unavailable",status:400},[x.ERR0400]:{value:x.ERR0400,message:"internal server error on utils services",status:500},[x.ERR0410]:{value:x.ERR0410,message:"empty image",status:400},[x.ERR0420]:{value:x.ERR0420,message:"",status:400},[x.ERR0421]:{value:x.ERR0421,message:"compilation failed",status:400},[x.ERR0430]:{value:x.ERR0430,message:"",status:400},[x.ERR0440]:{value:x.ERR0440,message:"the email could not be sent",status:400},[x.ERR0600]:{value:x.ERR0600,message:"internal server error on teams service",status:500},[x.ERR0610]:{value:x.ERR0610,message:"team not created",status:400},[x.ERR0611]:{value:x.ERR0611,message:"team not found",status:400},[x.ERR0612]:{value:x.ERR0612,message:"team not updated",status:400},[x.ERR0613]:{value:x.ERR0613,message:"team not deleted",status:400},[x.ERR0614]:{value:x.ERR0614,message:"not allowed to create the team",status:400},[x.ERR0615]:{value:x.ERR0615,message:"not allowed to view the team",status:400},[x.ERR0616]:{value:x.ERR0616,message:"not allowed to updated the team",status:400},[x.ERR0617]:{value:x.ERR0617,message:"not allowed to deleted the team",status:400},[x.ERR0618]:{value:x.ERR0618,message:"team is reported",status:400},[x.ERR0619]:{value:x.ERR0619,message:"team is archived",status:400},[x.ERR0800]:{value:x.ERR0800,message:"internal server error on files service",status:500},[x.ERR0810]:{value:x.ERR0810,message:"file not created",status:400},[x.ERR0811]:{value:x.ERR0811,message:"file not found",status:400},[x.ERR0812]:{value:x.ERR0812,message:"file not updated",status:400},[x.ERR0813]:{value:x.ERR0813,message:"file not deleted",status:400},[x.ERR0814]:{value:x.ERR0814,message:"not allowed to create the file",status:400},[x.ERR0815]:{value:x.ERR0815,message:"not allowed to view the file",status:400},[x.ERR0816]:{value:x.ERR0816,message:"not allowed to updated the file",status:400},[x.ERR0817]:{value:x.ERR0817,message:"not allowed to deleted the file",status:400},[x.ERR0818]:{value:x.ERR0818,message:"file is reserved",status:400},[x.ERR0819]:{value:x.ERR0819,message:"file is private",status:400},[x.ERR0820]:{value:x.ERR0820,message:"file is archived",status:400}};N.FILE,N.FILE,N.FOLDER,N.FOLDER,X.RESTRICTED,X.RESTRICTED,X.GUEST,X.GUEST,X.REGULAR,X.REGULAR,X.MASTER,X.MASTER,X.ADMIN,X.ADMIN,X.SUPER_ADMIN,X.SUPER_ADMIN,p.RELEASED,p.RELEASED,p.ARCHIVED,p.ARCHIVED;const Ge={[R.PRIVATE]:{value:R.PRIVATE,label:"private",description:"the record will be visible and editable only to the owner"},[R.RESTRICTED]:{value:R.RESTRICTED,label:"restricted",description:"the record will be visible to viewers and the owner and editable to editors and the owner"},[R.PUBLIC]:{value:R.PUBLIC,label:"public",description:"the record will be visible to anyone and editable to editors and the owner"},[R.EXPOSED]:{value:R.EXPOSED,label:"exposed",description:"the record will be visible and editable to anyone"}},we=1e3,He=6e4,Ke={users:{create:!1,manage:!1,administrate:!1},problems:{create:!1,manage:!1},submissions:{manage:!1},contests:{create:!1,manage:!1},company:{manage:!1,administrate:!1},services:{administrate:!1}},Ve="pub:messages",je=e=>encodeURIComponent(e),Je=e=>`presence:company:${je(e)}`,ke=e=>{const[t,a,s,...o]=e.split(":");return"contest"===t&&a&&!o.length&&Object.values(k).includes(s)?{contestKey:decodeURIComponent(a),role:s}:null},Ye=()=>({id:a(),type:H.NEW_PAGE,title:"",points:0}),We={[q.RATIO_21_9]:{aspectRatio:q.RATIO_21_9,width:2520,height:1080,decimal:21/9,label:"ultrawide"},[q.RATIO_20_9]:{aspectRatio:q.RATIO_20_9,width:2400,height:1080,decimal:20/9,label:"mobile wide"},[q.RATIO_16_9]:{aspectRatio:q.RATIO_16_9,width:1920,height:1080,decimal:16/9,label:"widescreen"},[q.RATIO_16_10]:{aspectRatio:q.RATIO_16_10,width:1920,height:1200,decimal:1.6,label:"widescreen tall"},[q.RATIO_3_2]:{aspectRatio:q.RATIO_3_2,width:1440,height:960,decimal:1.5,label:"balanced"},[q.RATIO_4_3]:{aspectRatio:q.RATIO_4_3,width:1024,height:768,decimal:4/3,label:"standard"},[q.RATIO_5_4]:{aspectRatio:q.RATIO_5_4,width:1280,height:1024,decimal:5/4,label:"square old"},[q.RATIO_1_1]:{aspectRatio:q.RATIO_1_1,width:1e3,height:1e3,decimal:1,label:"square"}};var Xe,ze;!function(e){e.UNMET_PREREQUISITES="UNMET_PREREQUISITES",e.MAX_ACCEPTED_SUBMISSIONS_ACHIEVED="MAX_ACCEPTED_SUBMISSIONS_ACHIEVED",e.START_TIME_IN_THE_FUTURE="START_TIME_IN_THE_FUTURE",e.END_TIME_IN_THE_PAST="END_TIME_IN_THE_PAST"}(Xe||(Xe={})),function(e){e.USER="USER",e.TEAM="TEAM"}(ze||(ze={}));const qe=e=>{switch(!0){case!(e?.members?.rankAdministrators!==d.NONE&&e?.members?.rankAdministrators!==d.CLOSE||e?.members?.rankManagers!==d.OPEN||e?.members?.rankGuests!==d.NONE&&e?.members?.rankGuests!==d.CLOSE&&e?.members?.rankGuests!==d.OPEN||e?.members?.rankSpectators!==d.OPEN||e?.members?.rankParticipants!==d.NONE&&e?.members?.rankParticipants!==d.CLOSE&&e?.members?.rankParticipants!==d.OPEN):return R.EXPOSED;case!(e?.members?.rankAdministrators!==d.NONE&&e?.members?.rankAdministrators!==d.CLOSE||e?.members?.rankManagers!==d.CLOSE||e?.members?.rankGuests!==d.NONE&&e?.members?.rankGuests!==d.CLOSE&&e?.members?.rankGuests!==d.OPEN||e?.members?.rankSpectators!==d.OPEN||e?.members?.rankParticipants!==d.NONE&&e?.members?.rankParticipants!==d.CLOSE&&e?.members?.rankParticipants!==d.OPEN):return R.PUBLIC;case!(e?.members?.rankAdministrators!==d.NONE&&e?.members?.rankAdministrators!==d.CLOSE||e?.members?.rankManagers!==d.CLOSE||e?.members?.rankGuests!==d.NONE&&e?.members?.rankGuests!==d.CLOSE&&e?.members?.rankGuests!==d.OPEN||e?.members?.rankSpectators!==d.CLOSE||e?.members?.rankParticipants!==d.NONE&&e?.members?.rankParticipants!==d.CLOSE&&e?.members?.rankParticipants!==d.OPEN):return R.RESTRICTED;case e?.members?.rankAdministrators===d.NONE&&e?.members?.rankManagers===d.NONE&&e?.members?.rankGuests===d.NONE&&e?.members?.rankSpectators===d.NONE&&e?.members?.rankParticipants===d.NONE:default:return R.PRIVATE}};function Ze(e){const t=e.lastIndexOf(".");return-1!==t?e.substring(0,t):e}const Qe=(e,t,a)=>{const{timeUsed:s,memoryUsed:o,exitCode:n}=et(e?.log),r=s>t,i=o>a,l=0!==n;return{compilationError:e?.status===g.COMPILATION_ERROR,timeUsed:s,timeLimitExceeded:r,memoryUsed:o,memoryLimitExceeded:i,exitCode:n,runtimeError:l,failed:!!e?.log&&(r||i||l)}},$e=(e,t,a)=>{const{compilationError:s,timeLimitExceeded:o,memoryLimitExceeded:n,runtimeError:r,timeUsed:i,memoryUsed:l,exitCode:R}=Qe(e,t,a);return{verdict:s?D.CE:o?D.TLE:n?D.MLE:r?D.RE:e.out===e.testOut?D.AC:e.withPE&&e.out.split(" ").join("").split("\n").join("")===e.testOut.split(" ").join("").split("\n").join("")?D.PE:e.withPE||e.out.split(" ").join("").split("\n").join("")!==e.testOut.split(" ").join("").split("\n").join("")?D.WA:D.AC,timeUsed:i,memoryUsed:l,exitCode:R}},et=e=>{const t=e?.split?.("\n")||[];let a=0,s=0,o=-1;if(t.length>4)for(const e of t)e.startsWith("time:")?(a=+e.split(":")[1],Number.isNaN(a)&&(a=0),a*=1e3):e.startsWith("max-rss:")?s=parseInt(e.split(":")[1],10):e.startsWith("exitcode:")&&(o=parseInt(e.split(":")[1],10));else t.length>=3&&(a=+t[0],s=+t[1],o=+t[2]);return{timeUsed:Number.isNaN(a)?0:a,memoryUsed:Number.isNaN(s)?0:s,exitCode:Number.isNaN(o)?-1:o}};Date.prototype.changeYear=function(e){const t=new Date(this);return t.setFullYear(e),t},Date.prototype.changeMonth=function(e){const t=new Date(this);return t.setMonth(e),t},Date.prototype.changeDay=function(e){const t=new Date(this);return t.setDate(e),t},Date.prototype.changeHours=function(e){const t=new Date(this);return t.setHours(e),t},Date.prototype.changeMinutes=function(e){const t=new Date(this);return t.setMinutes(e),t},Date.prototype.changeSeconds=function(e){const t=new Date(this);return t.setSeconds(e),t},Date.prototype.changeMilliseconds=function(e){const t=new Date(this);return t.setMilliseconds(e),t},Date.prototype.decreaseYear=function(e=1){return this.changeYear(this.getFullYear()-e)},Date.prototype.increaseYear=function(e=1){return this.changeYear(this.getFullYear()+e)},Date.prototype.decreaseMonth=function(){const e=new Date(this);return e.setMonth(e.getMonth()-1),e},Date.prototype.increaseMonth=function(){const e=new Date(this);return e.setMonth(e.getMonth()+1),e},Date.prototype.increaseDay=function(){const e=new Date(this);return e.setDate(e.getDate()+1),e},Date.prototype.decreaseDay=function(){const e=new Date(this);return e.setDate(e.getDate()-1),e},Date.prototype.startOfYear=function(){const e=new Date(this);return e.setMonth(0),e.startOfMonth()},Date.prototype.endOfYear=function(){const e=this.increaseYear().startOfYear();return new Date(e.getTime()-1)},Date.prototype.startOfMonth=function(){const e=new Date(this);return e.setDate(1),e.startOfDay()},Date.prototype.endOfMonth=function(){const e=this.increaseMonth().startOfMonth();return new Date(e.getTime()-1)},Date.prototype.startOfWeek=function(){const e=new Date(this);for(;e.getDay();)e.setDate(e.getDate()-1);return e.startOfDay()},Date.prototype.endOfWeek=function(){const e=new Date(this);for(;e.getDay()<6;)e.setDate(e.getDate()-1);return e.endOfDay()},Date.prototype.startOfDay=function(){const e=new Date(this);return e.setHours(0,0,0,0),e},Date.prototype.endOfDay=function(){const e=new Date(this);return e.setHours(23,59,59,999),e},Date.prototype.startOfHour=function(){const e=new Date(this);return e.setMinutes(0,0,0),e},Date.prototype.endOfHour=function(){const e=new Date(this);return e.setMinutes(59,59,999),e},Date.prototype.startOfMinute=function(){const e=new Date(this);return e.setSeconds(0,0),e},Date.prototype.endOfMinute=function(){const e=new Date(this);return e.setSeconds(59,999),e},Date.prototype.startOfSecond=function(){const e=new Date(this);return e.setMilliseconds(0),e},Date.prototype.endOfSecond=function(){const e=new Date(this);return e.setMilliseconds(999),e},Date.prototype.isToday=function(){const e=new Date;return this.isSameDay(e)},Date.prototype.isEqual=function(e){return this.getTime()===e.getTime()},Date.prototype.isSameYear=function(e){return this.getFullYear()===e.getFullYear()},Date.prototype.isSameMonth=function(e){return this.isSameYear(e)&&this.getMonth()===e.getMonth()},Date.prototype.isSameDay=function(e){return this.isSameMonth(e)&&this.getDate()===e.getDate()},Date.prototype.isSameHour=function(e){return this.isSameDay(e)&&this.getHours()===e.getHours()},Date.prototype.isSameMinute=function(e){return this.isSameHour(e)&&this.getMinutes()===e.getMinutes()},Date.prototype.isSameSecond=function(e){return this.isSameMinute(e)&&this.getSeconds()===e.getSeconds()},Date.prototype.isSameMillisecond=function(e){return this.isEqual(e)},Date.prototype.isValidDate=function(){return this instanceof Date&&!isNaN(this.getTime())},Date.prototype.isYearAfter=function(e){return this.getFullYear()>e.getFullYear()},Date.prototype.isMonthAfter=function(e){return this.isYearAfter(e)||this.isSameYear(e)&&this.getMonth()>e.getMonth()},Date.prototype.isDayAfter=function(e){return this.isMonthAfter(e)||this.isSameMonth(e)&&this.getDate()>e.getDate()},Date.prototype.isHoursAfter=function(e){return this.isDayAfter(e)||this.isSameDay(e)&&this.getHours()>e.getHours()},Date.prototype.isMinutesAfter=function(e){return this.isHoursAfter(e)||this.isSameHour(e)&&this.getMinutes()>e.getMinutes()},Date.prototype.isSecondsAfter=function(e){return this.isMinutesAfter(e)||this.isSameMinute(e)&&this.getSeconds()>e.getSeconds()},Date.prototype.isMillisecondsAfter=function(e){return this.isSecondsAfter(e)||this.isSameSecond(e)&&this.getMilliseconds()>e.getMilliseconds()},Date.prototype.isAfter=function(e){return this.getTime()>e.getTime()},Date.prototype.isYearBefore=function(e){return this.getFullYear()<e.getFullYear()},Date.prototype.isMonthBefore=function(e){return this.isYearBefore(e)||this.isSameYear(e)&&this.getMonth()<e.getMonth()},Date.prototype.isDayBefore=function(e){return this.isMonthBefore(e)||this.isSameMonth(e)&&this.getDate()<e.getDate()},Date.prototype.isHoursBefore=function(e){return this.isDayBefore(e)||this.isSameDay(e)&&this.getHours()<e.getHours()},Date.prototype.isMinutesBefore=function(e){return this.isHoursBefore(e)||this.isSameHour(e)&&this.getMinutes()<e.getMinutes()},Date.prototype.isSecondsBefore=function(e){return this.isMinutesBefore(e)||this.isSameMinute(e)&&this.getSeconds()<e.getSeconds()},Date.prototype.isMillisecondsBefore=function(e){return this.isSecondsBefore(e)||this.isSameSecond(e)&&this.getMilliseconds()<e.getMilliseconds()},Date.prototype.isBefore=function(e){return this.getTime()<e.getTime()},Date.prototype.isWithinInterval=function({start:e,end:t},a="[]"){return("["===a.charAt(0)&&this.isEqual(e)||this.isAfter(e))&&("["===a.charAt(1)&&this.isEqual(t)||this.isBefore(t))};class tt extends Error{constructor(e,t){const a=t?.message||xe[e].message;super(a),this.message=a,this.code=e,t?.stack&&(this.stack=t.stack),t?.data&&(this.data=t.data)}}Number.prototype.padStart=function(e,t="0"){return(this+"").padStart(e,t)},Number.prototype.padEnd=function(e,t="0"){return(this+"").padEnd(e,t)};const at=e=>{if(!ue(e)){const t={success:!1,message:xe[x.ERR9999].message,errors:[{code:x.ERR9999,detail:"",message:xe[x.ERR9999].message}]};return pe({message:"response is not string json, success false on cleaning request",responseText:e,response:t}),t}const t=JSON.parse(e);if("boolean"==typeof t.success){if(!0===t.success&&"string"==typeof t.message&&t.content)return{success:!0,message:t.message,content:t.content};if(!0===t.success&&"string"==typeof t.message&&Array.isArray(t.contents)&&t.meta)return{success:!0,message:t.message,contents:t.contents,meta:t.meta};if(!1===t.success&&"string"==typeof t.message&&Array.isArray(t.errors)){const a={success:!1,message:t.message,errors:t.errors};return pe({message:"success false on cleaning request",responseText:e,response:a}),a}}const a={success:!1,message:xe[x.ERR9998].message,errors:[{code:x.ERR9998,detail:"",message:xe[x.ERR9998].message}]};return pe({message:"success false on cleaning request",responseText:e,response:a}),a},st=e=>(Object.values(j).includes(e?.event)||Object.values(V).includes(e?.event))&&"string"==typeof e?.clientId&&!!e.clientId,ot=e=>st(e)&&e?.event===j.SUBSCRIBE_CODE_RUN_STATUS&&"string"==typeof e?.runId&&!!e.runId,nt=e=>st(e)&&e?.event===j.UNSUBSCRIBE_CODE_RUN_STATUS&&"string"==typeof e?.runId&&!!e.runId,rt=e=>st(e)&&e?.event===j.SUBSCRIBE_SUBMISSION_RUN_STATUS&&"string"==typeof e?.submitId&&!!e.submitId,it=e=>st(e)&&e?.event===j.UNSUBSCRIBE_SUBMISSION_RUN_STATUS&&"string"==typeof e?.submitId&&!!e.submitId,lt=e=>st(e)&&e?.event===j.SUBSCRIBE_GET_DATA,Rt=e=>st(e)&&e?.event===j.UNSUBSCRIBE_GET_DATA,Et=e=>st(e)&&e?.event===j.SUBSCRIBE_PROBLEM_CRAWLED,ut=e=>st(e)&&e?.event===j.UNSUBSCRIBE_PROBLEM_CRAWLED,ct=e=>st(e)&&e?.event===j.SUBSCRIBE_SUBMISSIONS_CRAWL,mt=e=>st(e)&&e?.event===j.UNSUBSCRIBE_SUBMISSIONS_CRAWL,_t=e=>st(e)&&e?.event===j.SUBSCRIBE_CONTEST_CHANGES,St=e=>st(e)&&e?.event===j.UNSUBSCRIBE_CONTEST_CHANGES,dt=e=>st(e)&&e?.event===j.SUBSCRIBE_CLIENT_TRACK,pt=e=>st(e)&&e?.event===j.UNSUBSCRIBE_CLIENT_TRACK,Tt=e=>st(e)&&e?.event===j.SUBSCRIBE_USER_NOTIFICATION,At=e=>st(e)&&e?.event===j.UNSUBSCRIBE_USER_NOTIFICATION,It=e=>st(e)&&e?.event===j.SUBSCRIBE_CLIENT_TRACK_DATA&&"string"==typeof e?.trackedClientId&&!!e.trackedClientId,Ct=e=>st(e)&&e?.event===j.UNSUBSCRIBE_CLIENT_TRACK_DATA&&"string"==typeof e?.trackedClientId&&!!e.trackedClientId,Nt=e=>Object.values(J).includes(e?.event)&&"string"==typeof e?.key&&"string"==typeof e?.connectionId&&"number"==typeof e?.messageTimestamp&&!!e.messageTimestamp,Ot=e=>Nt(e)&&e?.event===J.CODE_RUN_STATUS&&"string"==typeof e?.runId&&!!e.runId&&e?.status in g,ht=e=>Nt(e)&&e?.event===J.SUBMISSION_RUN_STATUS&&"string"==typeof e?.submitId&&!!e.submitId&&e?.status in g&&e?.verdict in D&&"number"==typeof e?.points,ft=(e,t,a)=>`${e}-${t}-${a}`,Dt=(e,t)=>{return Ot(e)?ft(J.CODE_RUN_STATUS,t,e.runId):ht(e)?ft(J.SUBMISSION_RUN_STATUS,t,e.submitId):(a=e,[J.SEND_DATA_ECS_TASK_DEFINITIONS_LIST,J.SEND_DATA_EC2_INSTANCES_LIST,J.SEND_DATA_ECS_TASKS_LIST,J.SEND_DATA_SSM_SESSIONS_LIST,J.SEND_DATA_RUN_COMMAND,J.SEND_DATA_CLIENT_TRACK,J.SEND_DATA_CHAT_COMPLETIONS].includes(a?.event)&&"string"==typeof a?.dataId&&a.dataId&&a?.content?ft(J.SEND_DATA_,t,e.dataId):(e=>Nt(e)&&e?.event===J.CONTEST_CHANGES&&!!e?.content)(e)?ft(J.CONTEST_CHANGES,t,e.content.contestKey):(e=>Nt(e)&&e?.event===J.PROBLEM_CRAWLED&&!!e?.content)(e)?ft(J.PROBLEM_CRAWLED,t,e.content.problemKey):(e=>Nt(e)&&e?.event===J.SUBMISSIONS_CRAWL&&!!e?.content)(e)?ft(J.SUBMISSIONS_CRAWL,t,Ae([e.content.contestKey,e.content.problemKeys])):(e=>Nt(e)&&e?.event===J.CLIENT_TRACK)(e)?e.key===t?ft(J.CLIENT_TRACK,t,"*"):null:(e=>[J.USER_NOTIFICATION_SUBMISSION,J.USER_NOTIFICATION_CONTEST_CLARIFICATION].includes(e?.event)&&!!e?.content)(e)?ft(J.USER_NOTIFICATION_,t,"*"):null);var a},gt=e=>{return rt(e)?(t=e.submitId,`submission:${je(t)}`):Et(e)?(a=e.problemKey,`problem:${je(a)}`):_t(e)||ct(e)?(s=e.contestKey,o=k.SPECTATORS,`contest:${je(s)}:${o}`):It(e)?(n=e.trackedClientId,`client-track:${je(n)}`):null;var t,a,s,o,n},Pt=e=>_t(e)||ct(e)?e.contestKey:null;function bt(e){const t=[],a=1e3,s=6e4,o=36e5,n=864e5,r=6048e5,i=Math.floor(e/r);t.push({remaining:i,label:1===i?"week":"weeks",abbreviatedLabel:"w",milliseconds:r,digits:2});const l=Math.floor(e%r/n);t.push({remaining:l,label:1===l?"day":"days",abbreviatedLabel:"d",milliseconds:n,digits:2});const R=Math.floor(e%n/o);t.push({remaining:R,label:1===R?"hour":"hours",abbreviatedLabel:"h",milliseconds:o,digits:2});const E=Math.floor(e%o/s);t.push({remaining:E,label:1===E?"minute":"minutes",abbreviatedLabel:"m",milliseconds:s,digits:2});const u=Math.floor(e%s/a);t.push({remaining:u,label:1===u?"second":"seconds",abbreviatedLabel:"s",milliseconds:a,digits:2});const c=Math.floor(e%a);return t.push({remaining:c,label:1===c?"millisecond":"milliseconds",abbreviatedLabel:"ms",milliseconds:1,digits:3}),t}const vt=(e,t)=>e+"|"+t,Ut=(e,t)=>`${e}|${t}`,yt=e=>{const[t,a]=e.split("|");return{sessionId:t,uiId:a}},Mt=e=>{const t=[...e];t[0]?.type!==H.NEW_PAGE&&t.unshift(Ye());let a=t[0],s=[];const o=[];for(let e=1;e<t.length;e++){const n=t[e];n.type===H.NEW_PAGE?(o.push({header:a,content:[...s]}),a=n,s=[]):s.push(n)}return o.push({header:a,content:[...s]}),o},Lt=e=>"string"==typeof e?.id&&e.id&&Object.values(H).includes(e?.type)&&"string"==typeof e?.title&&"number"==typeof e?.points,Bt=e=>Lt(e)&&e?.type===H.JK_MD&&"string"==typeof e?.content,Ft=e=>Lt(e)&&e?.type===H.CODE_EDITOR&&"object"==typeof e?.sourceCode&&null!==e?.sourceCode&&"object"===e?.testCases&&null!==e?.testCases&&Array.isArray(e?.languages)&&"number"==typeof e?.height,xt=e=>Lt(e)&&e?.type===H.QUIZ_PROBLEM&&Object.values(f).includes(e?.problemJudge)||"string"==typeof e?.problemJudge&&"string"==typeof e?.problemKey&&Array.isArray(e?.languages)&&"number"==typeof e?.height,Gt=e=>Lt(e)&&e?.type===H.QUIZ_OPTIONS&&"string"==typeof e?.description&&Array.isArray(e?.options)&&e?.options.every(e=>"string"==typeof e?.label&&"boolean"==typeof e?.correct&&"string"==typeof e?.id)&&"boolean"==typeof e?.multiple&&("TOTAL"===e?.scoringMode||"PARTIAL"===e?.scoringMode),wt=import.meta.env,Ht=("undefined"!=typeof process?process.env.NEXT_PUBLIC_JUKI_SERVICE_V2_URL:void 0)||wt?.VITE_JUKI_SERVICE_V2_URL||"",Kt=("undefined"!=typeof process?process.env.NEXT_PUBLIC_JUKI_TOKEN_NAME:void 0)||wt?.VITE_JUKI_TOKEN_NAME||"",Vt=("undefined"!=typeof process?process.env.NODE_ENV:void 0)||"development",jt=+(("undefined"!=typeof process?process.env.NEXT_PUBLIC_ABLY_LOG_LEVEL:void 0)||wt?.VITE_ABLY_LOG_LEVEL||0)||void 0,Jt={revalidateOnFocus:!1,revalidateOnReconnect:!0,revalidateIfStale:!0,focusThrottleInterval:5e3,dedupingInterval:5e3};export{it as $,jt as A,Fe as B,n as C,he as D,Ke as E,Be as F,oe as G,w as H,F as I,Ht as J,Ee as K,v as L,W as M,Vt as N,re as O,s as P,K as Q,ve as R,i as S,U as T,bt as U,ot as V,H as W,nt as X,ft as Y,J as Z,rt as _,Mt as a,lt as a0,Rt as a1,Tt as a2,At as a3,Et as a4,ut as a5,ct as a6,mt as a7,Ae as a8,_t as a9,f as aA,ye as aB,gt as aC,Pt as aD,Je as aE,ke as aF,Dt as aG,ht as aH,be as aI,Le as aJ,B as aK,qe as aL,d as aM,ze as aN,R as aO,Ge as aP,yt as aQ,Ve as aR,Ce as aS,St as aa,dt as ab,pt as ac,It as ad,Ct as ae,j as af,Ie as ag,Ue as ah,g as ai,b as aj,Ot as ak,Qe as al,we as am,Me as an,$e as ao,D as ap,me as aq,Ze as ar,ne as as,Ne as at,fe as au,De as av,ge as aw,Pe as ax,Ut as ay,He as az,Y as b,Se as c,Kt as d,Jt as e,de as f,vt as g,Ye as h,ue as i,Ft as j,Bt as k,Gt as l,xt as m,We as n,Oe as o,ie as p,le as q,x as r,Te as s,xe as t,at as u,a as v,pe as w,ce as x,tt as y,Re as z};
|
package/dist/esm/settings.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{j as jukiApiManager,a as jukiAppRoutes}from"./index-
|
|
1
|
+
export{j as jukiApiManager,a as jukiAppRoutes}from"./index-KB6gLBva.js";import"./settings-oXVFKYs2.js";import"./commons-CmbPiYDE.js";import"react";import"./enums.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t}from"./mermaid.core-
|
|
1
|
+
import{_ as t}from"./mermaid.core-GJX79pQL.js";import"./index-jAIWmSeN.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-CmbPiYDE.js";import"./settings-oXVFKYs2.js";import"./constants.js";import"./LoaderLayer-CyitSTCe.js";import"./websocket-CXHGKJlm.js";import"./index-KB6gLBva.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./string-DPJhNSkw.js";function e(){if("undefined"!=typeof globalThis)return globalThis}function o(){return Boolean(e()?.mermaidCaptureSizes)}function r(){return"undefined"==typeof location?"browser-dev":`${location.pathname}${location.search}`}function i(t,o){const r=e();if(!r)return;const i=o.node(),s=(i&&"ownerSVGElement"in i?i.ownerSVGElement:null)??i,n=s?.id??"(unknown)";r.mermaidCapturedSizes??=[];const a={svgId:n,sizes:t};r.mermaidCapturedSizes.push(a),r.mermaidLastCapturedSizes=a}function s(t,e){const o=[];for(const t of e.nodes)t.isGroup||o.push({id:t.id,width:t.width??0,height:t.height??0});0!==o.length&&i({metadata:{captureVersion:1,capturedAt:(new Date).toISOString(),capturedFrom:r()},nodes:o},t)}t(e,"getCaptureGlobal"),t(o,"shouldCaptureSizes"),t(r,"capturedFromLocation"),t(i,"emitCapturedSizes"),t(s,"captureNodeSizes");export{s as captureNodeSizes,o as shouldCaptureSizes};
|
package/dist/esm/{stateDiagram-v2-A6IESKWZ-D-bM5qVN.js → stateDiagram-v2-A6IESKWZ-BpWTAT11.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as t}from"./chunk-XXDRQBXY-DPPGTM3w.js";import{s as e}from"./chunk-VQ5W62QI-CsGo0PTx.js";import{_ as s,l as i,c as n,r,t as o,u as a,a as l,b as c,g as h,s as d,v as u,x as p,ag as y,m as g,C as m,k as f,B as S,E as k,F as b,G as T,M as _}from"./mermaid.core-DRk6tt5W.js";import{c as E}from"./chunk-55XCU76K-CvYWAV_o.js";import"./index-BpcqEzEG.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-iref2pEJ.js";import"./settings-CBGV-lz3.js";import"./constants.js";import"./LoaderLayer-ECtsj85k.js";import"./websocket-CdeP8N_S.js";import"./index-2PTQqTnK.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./string-DPJhNSkw.js";var $=function(){var t=s(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,2],i=[1,3],n=[1,4],r=[2,4],o=[1,9],a=[1,11],l=[1,16],c=[1,17],h=[1,18],d=[1,19],u=[1,33],p=[1,20],y=[1,21],g=[1,22],m=[1,23],f=[1,24],S=[1,26],k=[1,27],b=[1,28],T=[1,29],_=[1,30],E=[1,31],$=[1,32],x=[1,35],C=[1,36],v=[1,37],D=[1,38],w=[1,34],I=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],A=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],L=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:s(function(t,e,s,i,n,r,o){var a=r.length-1;switch(n){case 3:return i.setRootDoc(r[a]),r[a];case 4:this.$=[];break;case 5:"nl"!=r[a]&&(r[a-1].push(r[a]),this.$=r[a-1]);break;case 6:case 7:case 12:this.$=r[a];break;case 8:this.$="nl";break;case 13:const t=r[a-1];t.description=i.trimColon(r[a]),this.$=t;break;case 14:this.$={stmt:"relation",state1:r[a-2],state2:r[a]};break;case 15:const e=i.trimColon(r[a]);this.$={stmt:"relation",state1:r[a-3],state2:r[a-1],description:e};break;case 19:this.$={stmt:"state",id:r[a-3],type:"default",description:"",doc:r[a-1]};break;case 20:var l=r[a],c=r[a-2].trim();if(r[a].match(":")){var h=r[a].split(":");l=h[0],c=[c,h[1]]}this.$={stmt:"state",id:l,type:"default",description:c};break;case 21:this.$={stmt:"state",id:r[a-3],type:"default",description:r[a-5],doc:r[a-1]};break;case 22:this.$={stmt:"state",id:r[a],type:"fork"};break;case 23:this.$={stmt:"state",id:r[a],type:"join"};break;case 24:this.$={stmt:"state",id:r[a],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[a-1].trim(),note:{position:r[a-2].trim(),text:r[a].trim()}};break;case 29:this.$=r[a].trim(),i.setAccTitle(this.$);break;case 30:case 31:this.$=r[a].trim(),i.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[a-3],url:r[a-2],tooltip:r[a-1]};break;case 33:this.$={stmt:"click",id:r[a-3],url:r[a-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[a-1].trim(),classes:r[a].trim()};break;case 36:this.$={stmt:"style",id:r[a-1].trim(),styleClass:r[a].trim()};break;case 37:this.$={stmt:"applyClass",id:r[a-1].trim(),styleClass:r[a].trim()};break;case 38:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[a].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:r[a-2].trim(),classes:[r[a].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:e,5:i,6:n},{1:[3]},{3:5,4:e,5:i,6:n},{3:6,4:e,5:i,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:S,35:k,37:b,38:T,41:_,45:E,48:$,51:x,52:C,53:v,54:D,57:w},t(I,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:S,35:k,37:b,38:T,41:_,45:E,48:$,51:x,52:C,53:v,54:D,57:w},t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,10]),t(I,[2,11]),t(I,[2,12],{14:[1,40],15:[1,41]}),t(I,[2,16]),{18:[1,42]},t(I,[2,18],{20:[1,43]}),{23:[1,44]},t(I,[2,22]),t(I,[2,23]),t(I,[2,24]),t(I,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(I,[2,28]),{34:[1,49]},{36:[1,50]},t(I,[2,31]),{13:51,24:u,57:w},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(A,[2,44],{58:[1,56]}),t(A,[2,45],{58:[1,57]}),t(I,[2,38]),t(I,[2,39]),t(I,[2,40]),t(I,[2,41]),t(I,[2,6]),t(I,[2,13]),{13:58,24:u,57:w},t(I,[2,17]),t(L,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(I,[2,29]),t(I,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(I,[2,14],{14:[1,71]}),{4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,72],22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:S,35:k,37:b,38:T,41:_,45:E,48:$,51:x,52:C,53:v,54:D,57:w},t(I,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(A,[2,46]),t(A,[2,47]),t(I,[2,15]),t(I,[2,19]),t(L,r,{7:78}),t(I,[2,26]),t(I,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,81],22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:S,35:k,37:b,38:T,41:_,45:E,48:$,51:x,52:C,53:v,54:D,57:w},t(I,[2,32]),t(I,[2,33]),t(I,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:s(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:s(function(t){var e=this,i=[0],n=[],r=[null],o=[],a=this.table,l="",c=0,h=0,d=o.slice.call(arguments,1),u=Object.create(this.lexer),p={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p.yy[y]=this.yy[y]);u.setInput(t,p.yy),p.yy.lexer=u,p.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var g=u.yylloc;o.push(g);var m=u.options&&u.options.ranges;function f(){var t;return"number"!=typeof(t=n.pop()||u.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,s(function(t){i.length=i.length-2*t,r.length=r.length-t,o.length=o.length-t},"popStack"),s(f,"lex");for(var S,k,b,T,_,E,$,x,C={};;){if(k=i[i.length-1],this.defaultActions[k]?b=this.defaultActions[k]:(null==S&&(S=f()),b=a[k]&&a[k][S]),void 0===b||!b.length||!b[0]){var v="";for(_ in x=[],a[k])this.terminals_[_]&&_>2&&x.push("'"+this.terminals_[_]+"'");v=u.showPosition?"Parse error on line "+(c+1)+":\n"+u.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[S]||S)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==S?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(v,{text:u.match,token:this.terminals_[S]||S,line:u.yylineno,loc:g,expected:x})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+S);switch(b[0]){case 1:i.push(S),r.push(u.yytext),o.push(u.yylloc),i.push(b[1]),S=null,h=u.yyleng,l=u.yytext,c=u.yylineno,g=u.yylloc;break;case 2:if(E=this.productions_[b[1]][1],C.$=r[r.length-E],C._$={first_line:o[o.length-(E||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(E||1)].first_column,last_column:o[o.length-1].last_column},m&&(C._$.range=[o[o.length-(E||1)].range[0],o[o.length-1].range[1]]),void 0!==(T=this.performAction.apply(C,[l,h,c,p.yy,b[1],r,o].concat(d))))return T;E&&(i=i.slice(0,-1*E*2),r=r.slice(0,-1*E),o=o.slice(0,-1*E)),i.push(this.productions_[b[1]][0]),r.push(C.$),o.push(C._$),$=a[i[i.length-2]][i[i.length-1]],i.push($);break;case 3:return!0}}return!0},"parse")},O=function(){return{EOF:1,parseError:s(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:s(function(t,e){return this.yy=e||this.yy||{},this._input=t,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:s(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:s(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=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),s.length-1&&(this.yylineno-=s.length-1);var n=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:s(function(t){this.unput(this.match.slice(t))},"less"),pastInput:s(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:s(function(t,e){var s,i,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;var t,e,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((s=this._input.match(this.rules[n[r]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var t=this.next();return t||this.lex()},"lex"),begin:s(function(t){this.conditionStack.push(t)},"begin"),popState:s(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(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:s(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:s(function(t){this.begin(t)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(t,e,i,n){function r(){const s=e.yytext.indexOf("%%");if(0===s)return!1;if(s>0){const i=e.yytext.slice(0,s),n=e.yytext.slice(s);n&&t.lexer.unput(n),e.yytext=i}return!0}switch(s(r,"processId"),i){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 43:return 51;case 5:case 44:return 52;case 6:case 45:return 53;case 7:case 46:return 54;case 8:case 78:return 5;case 9:case 10:case 11:case 12:case 57:case 63:break;case 13:case 33:return this.pushState("SCALE"),17;case 14:case 34:return 18;case 15:case 21:case 35:case 50:case 54:this.popState();break;case 16:return this.begin("acc_title"),33;case 17:return this.popState(),"acc_title_value";case 18:return this.begin("acc_descr"),35;case 19:return this.popState(),"acc_descr_value";case 20:this.begin("acc_descr_multiline");break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 25:return this.popState(),this.pushState("CLASSDEFID"),42;case 26:return this.popState(),43;case 27:return this.pushState("CLASS"),48;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;case 29:return this.popState(),50;case 30:return this.pushState("STYLE"),45;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 32:return this.popState(),47;case 36:this.pushState("STATE");break;case 37:case 40:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 38:case 41:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 39:case 42:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";case 49:case 65:if(!r())return;return this.popState(),"ID";case 51:return"STATE_DESCR";case 52:throw new Error('Error: State name must be a single word. Found: "'+e.yytext.trim()+'"');case 53:return 19;case 55:return this.popState(),this.pushState("struct"),20;case 56:return this.popState(),21;case 58:return this.begin("NOTE"),29;case 59:return this.popState(),this.pushState("NOTE_ID"),59;case 60:return this.popState(),this.pushState("NOTE_ID"),60;case 61:this.popState(),this.pushState("FLOATING_NOTE");break;case 62:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 64:return"NOTE_TEXT";case 66:if(!r())return;return this.popState(),this.pushState("NOTE_TEXT"),24;case 67:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 68:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 69:case 70:return 6;case 71:return 16;case 72:return 57;case 73:if(!r())return;return 24;case 74:return e.yytext=e.yytext.trim(),14;case 75:return 15;case 76:return 28;case 77:return 58;case 79:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/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,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}}}();function R(){this.yy={}}return N.lexer=O,s(R,"Parser"),R.prototype=N,N.Parser=R,new R}();$.parser=$;var x=$,C="state",v="root",D="relation",w="default",I="divider",A="fill:none",L="fill: #333",N="markdown",O="normal",R="rect",B="rectWithTitle",F="divider",j="roundedWithTitle",P="statediagram",Y=`${P}-state`,G="transition",W=`${G} note-edge`,M=`${P}-note`,z=`${P}-cluster`,U=`${P}-cluster-alt`,X="parent",H="note",V="----",K=`${V}${H}`,J=`${V}${X}`,Q=new Map,q=0,Z=0,tt=new Map,et=s((t,e,s,i)=>{if(t===F&&void 0!==s?.id&&tt.has(s.id)){const t=tt.get(s.id);return tt.set(e,t),t}const n=Z++,r=i?void 0:n;return tt.set(e,r),r},"colorSlotFor");function st(t="",e=0,s="",i=V){return`state-${t}${null!==s&&s.length>0?`${i}${s}`:""}-${e}`}s(st,"stateDomId");var it=s((t,e,s,r,o,a,l,c)=>{i.trace("items",e),e.forEach(e=>{switch(e.stmt){case C:case w:lt(t,e,s,r,o,a,l,c);break;case D:{lt(t,e.state1,s,r,o,a,l,c),lt(t,e.state2,s,r,o,a,l,c);const i="neo"===l,h={id:"edge"+q,start:e.state1.id,end:e.state2.id,arrowhead:"normal",arrowTypeEnd:i?"arrow_barb_neo":"arrow_barb",style:A,labelStyle:"",label:g.sanitizeText(e.description??"",n()),arrowheadStyle:L,labelpos:"c",labelType:N,thickness:O,classes:G,look:l};o.push(h),q++}}})},"setupDoc"),nt=s((t,e="TB")=>{let s=e;if(t.doc)for(const e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir");function rt(t,e,s){if(!e.id||"</join></fork>"===e.id||"</choice>"===e.id)return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(t=>{const i=s.get(t);i&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...i.styles])}));const i=t.find(t=>t.id===e.id);i?Object.assign(i,e):t.push(e)}function ot(t){return t?.classes?.join(" ")??""}function at(t){return t?.styles??[]}s(rt,"insertOrUpdateNode"),s(ot,"getClassesFromDbInfo"),s(at,"getStylesFromDbInfo");var lt=s((t,e,s,r,o,a,l,c)=>{const h=e.id,d=s.get(h),u=ot(d),p=at(d),y=n(),m=""!==u.trim()||p.length>0;if(i.info("dataFetcher parsedItem",e,d,p),"root"!==h){let s=R;!0===e.start?s="stateStart":!1===e.start&&(s="stateEnd"),e.type!==w&&(s=e.type),Q.get(h)||Q.set(h,{id:h,shape:s,description:g.sanitizeText(h,y),cssClasses:`${u} ${Y}`,cssStyles:p});const n=Q.get(h);e.description&&(Array.isArray(n.description)?(n.shape=B,n.description.push(e.description)):n.description?.length&&n.description.length>0?(n.shape=B,n.description===h?n.description=[e.description]:n.description=[n.description,e.description]):(n.shape=R,n.description=e.description),n.description=g.sanitizeTextOrArray(n.description,y)),1===n.description?.length&&n.shape===B&&("group"===n.type?n.shape=j:n.shape=R),!n.type&&e.doc&&(i.info("Setting cluster for XCX",h,nt(e)),n.type="group",n.isGroup=!0,n.dir=nt(e),n.shape=e.type===I?F:j,n.colorIndex=et(n.shape,h,t,m),n.cssClasses=`${n.cssClasses} ${z} ${a?U:""}`);const d={labelStyle:"",shape:n.shape,label:n.description,cssClasses:n.cssClasses,cssCompiledStyles:[],cssStyles:n.cssStyles,id:h,dir:n.dir,domId:st(h,q),type:n.type,isGroup:"group"===n.type,colorIndex:n.colorIndex,padding:8,rx:10,ry:10,look:l,labelType:"markdown"};if(d.shape===F&&(d.label=""),t&&"root"!==t.id&&(i.trace("Setting node ",h," to be child of its parent ",t.id),d.parentId=t.id),d.centerLabel=!0,e.note){const t={labelStyle:"",shape:"note",label:e.note.text,labelType:"markdown",cssClasses:M,cssStyles:[],cssCompiledStyles:[],id:h+K+"-"+q,domId:st(h,q,H),type:"node",isGroup:!1,padding:y.flowchart?.padding,look:l,position:e.note.position},s=h+J,i={labelStyle:"",shape:"noteGroup",label:e.note.text,cssClasses:n.cssClasses,cssStyles:[],id:h+J,domId:st(h,q,X),type:"group",isGroup:!0,padding:16,look:l,position:e.note.position};q++,i.id=s,t.parentId=s,rt(r,i,c),rt(r,t,c),rt(r,d,c);let a=h,u=t.id;"left of"===e.note.position&&(a=t.id,u=h),o.push({id:a+"-"+u,start:a,end:u,arrowhead:"none",arrowTypeEnd:"",style:A,labelStyle:"",classes:W,pattern:"dashed",arrowheadStyle:L,labelpos:"c",labelType:N,thickness:O,look:l})}else rt(r,d,c)}e.doc&&(i.trace("Adding nodes children "),it(e,e.doc,s,r,o,!a,l,c))},"dataFetcher"),ct=s(()=>{Q.clear(),q=0,Z=0,tt.clear()},"reset"),ht=s((t,e="TB")=>{if(!t.doc)return e;let s=e;for(const e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir"),dt={getClasses:s(function(t,e){return e.db.getClasses()},"getClasses"),draw:s(async function(s,l,c,h){i.info("REF0:"),i.info("Drawing state diagram (v2)",l);const{securityLevel:d,state:u,layout:p}=n();h.db.extract(h.db.getRootDocV2());const y=h.db.getData(),g=t(l,d);y.type=h.type,y.layoutAlgorithm=r(p),y.nodeSpacing=u?.nodeSpacing||50,y.rankSpacing=u?.rankSpacing||50;"neo"===n().look?y.markers=["barbNeo"]:y.markers=["barb"],y.diagramId=l,await o(y,g);try{("function"==typeof h.db.getLinks?h.db.getLinks():new Map).forEach((t,e)=>{const s="string"==typeof e?e:"string"==typeof e?.id?e.id:"",n=y.nodes.find(t=>t.id===s);if(!s)return void i.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(e));const r=g.node()?.querySelectorAll("g.node, g.rough-node");let o;if(r?.forEach(t=>{const e=t.textContent?.trim();t.id!==n?.domId&&e!==s||(o=t)}),!o)return void i.warn("⚠️ Could not find node matching text:",s);const a=o.parentNode;if(!a)return void i.warn("⚠️ Node has no parent, cannot wrap:",s);const l=document.createElementNS("http://www.w3.org/2000/svg","a"),c=t.url.replace(/^"+|"+$/g,"");if(l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c),l.setAttribute("target","_blank"),t.tooltip){const e=t.tooltip.replace(/^"+|"+$/g,"");l.setAttribute("title",e),o.setAttribute("title",e)}a.replaceChild(l,o),l.appendChild(o),i.info("🔗 Wrapped node in <a> tag for:",s,t.url)})}catch(t){i.error("❌ Error injecting clickable links:",t)}a.insertTitle(g,"statediagramTitleText",u?.titleTopMargin??25,h.db.getDiagramTitle()),e(g,8,P,u?.useMaxWidth??!0)},"draw"),getDir:ht},ut="[*]",pt="start",yt="[*]",gt="end",mt="color",ft="fill",St="bgFill",kt=",",bt=s(()=>new Map,"newClassesList"),Tt=s(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),_t=s(t=>JSON.parse(JSON.stringify(t)),"clone"),Et=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=bt(),this.documents={root:Tt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=l,this.setAccTitle=c,this.getAccDescription=h,this.setAccDescription=d,this.setDiagramTitle=u,this.getDiagramTitle=p,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static{s(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(t){this.clear(!0);for(const e of Array.isArray(t)?t:t.doc)switch(e.stmt){case C:this.addState(e.id.trim(),e.type,e.doc,e.description,e.note);break;case D:this.addRelation(e.state1,e.state2,e.description);break;case"classDef":this.addStyleClass(e.id.trim(),e.classes);break;case"style":this.handleStyleDef(e);break;case"applyClass":this.setCssClass(e.id.trim(),e.styleClass);break;case"click":this.addLink(e.id,e.url,e.tooltip)}const e=this.getStates(),s=n();ct(),lt(void 0,this.getRootDocV2(),e,this.nodes,this.edges,!0,s.look,this.classes);for(const t of this.nodes)if(Array.isArray(t.label)){if(t.description=t.label.slice(1),t.isGroup&&t.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${t.id}]`);t.label=t.label[0]}}handleStyleDef(t){const e=t.id.trim().split(","),s=t.styleClass.split(",");for(const t of e){let e=this.getState(t);if(!e){const s=t.trim();this.addState(s),e=this.getState(s)}e&&(e.styles=s.map(t=>t.replace(/;/g,"")?.trim()))}}setRootDoc(t){i.info("Setting root doc",t),this.rootDoc=t,1===this.version?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,e,s){if(e.stmt===D)return this.docTranslator(t,e.state1,!0),void this.docTranslator(t,e.state2,!1);if(e.stmt===C&&(e.id===ut?(e.id=t.id+(s?"_start":"_end"),e.start=s):e.id=e.id.trim()),e.stmt!==v&&e.stmt!==C||!e.doc)return;const i=[];let n=[];for(const t of e.doc)if(t.type===I){const e=_t(t);e.doc=_t(n),i.push(e),n=[]}else n.push(t);if(i.length>0&&n.length>0){const t={stmt:C,id:y(),type:"divider",doc:_t(n)};i.push(_t(t)),e.doc=i}e.doc.forEach(t=>this.docTranslator(e,t,!0))}getRootDocV2(){return this.docTranslator({id:v,stmt:v},{id:v,stmt:v,doc:this.rootDoc},!0),{id:v,doc:this.rootDoc}}addState(t,e=w,s=void 0,r=void 0,o=void 0,a=void 0,l=void 0,c=void 0){const h=t?.trim();if(this.currentDocument.states.has(h)){const t=this.currentDocument.states.get(h);if(!t)throw new Error(`State not found: ${h}`);t.doc||(t.doc=s),t.type||(t.type=e)}else i.info("Adding state ",h,r),this.currentDocument.states.set(h,{stmt:C,id:h,descriptions:[],type:e,doc:s,note:o,classes:[],styles:[],textStyles:[]});if(r){i.info("Setting state description",h,r);(Array.isArray(r)?r:[r]).forEach(t=>this.addDescription(h,t.trim()))}if(o){const t=this.currentDocument.states.get(h);if(!t)throw new Error(`State not found: ${h}`);t.note=o,t.note.text=g.sanitizeText(t.note.text,n())}if(a){i.info("Setting state classes",h,a);(Array.isArray(a)?a:[a]).forEach(t=>this.setCssClass(h,t.trim()))}if(l){i.info("Setting state styles",h,l);(Array.isArray(l)?l:[l]).forEach(t=>this.setStyle(h,t.trim()))}if(c){i.info("Setting state styles",h,l);(Array.isArray(c)?c:[c]).forEach(t=>this.setTextStyle(h,t.trim()))}}clear(t){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:Tt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=bt(),t||(this.links=new Map,m())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){i.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,e,s){this.links.set(t,{url:e,tooltip:s}),i.warn("Adding link",t,e,s)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===ut?(this.startEndCount++,`${pt}${this.startEndCount}`):t}startTypeIfNeeded(t="",e=w){return t===ut?pt:e}endIdIfNeeded(t=""){return t===yt?(this.startEndCount++,`${gt}${this.startEndCount}`):t}endTypeIfNeeded(t="",e=w){return t===yt?gt:e}addRelationObjs(t,e,s=""){const i=this.startIdIfNeeded(t.id.trim()),r=this.startTypeIfNeeded(t.id.trim(),t.type),o=this.startIdIfNeeded(e.id.trim()),a=this.startTypeIfNeeded(e.id.trim(),e.type);this.addState(i,r,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(o,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.currentDocument.relations.push({id1:i,id2:o,relationTitle:g.sanitizeText(s,n())})}addRelation(t,e,s){if("object"==typeof t&&"object"==typeof e)this.addRelationObjs(t,e,s);else if("string"==typeof t&&"string"==typeof e){const i=this.startIdIfNeeded(t.trim()),r=this.startTypeIfNeeded(t),o=this.endIdIfNeeded(e.trim()),a=this.endTypeIfNeeded(e);this.addState(i,r),this.addState(o,a),this.currentDocument.relations.push({id1:i,id2:o,relationTitle:s?g.sanitizeText(s,n()):void 0})}}addDescription(t,e){const s=this.currentDocument.states.get(t),i=e.startsWith(":")?e.replace(":","").trim():e;s?.descriptions?.push(g.sanitizeText(i,n()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,e=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});const s=this.classes.get(t);e&&s&&e.split(kt).forEach(t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(mt).exec(t)){const t=e.replace(ft,St).replace(mt,ft);s.textStyles.push(t)}s.styles.push(e)})}getClasses(){return this.classes}setupToolTips(t){const e=E();f(t).select("svg").selectAll("g.node, g.rough-node").on("mouseover",t=>{const s=f(t.currentTarget),i=s.attr("title");if(null===i)return;const n=t.currentTarget?.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.bottom+"px"),e.html(S.sanitize(i)),s.classed("hover",!0)}).on("mouseout",t=>{e.transition().duration(500).style("opacity",0);f(t.currentTarget).classed("hover",!1)})}setCssClass(t,e){t.split(",").forEach(t=>{let s=this.getState(t);if(!s){const e=t.trim();this.addState(e),s=this.getState(e)}s?.classes?.push(e)})}setStyle(t,e){this.getState(t)?.styles?.push(e)}setTextStyle(t,e){this.getState(t)?.textStyles?.push(e)}bindFunctions(t){this.funs.forEach(e=>{e(t)})}getDirectionStatement(){return this.rootDoc.find(t=>"dir"===t.stmt)}getDirection(){return this.getDirectionStatement()?.value??"TB"}setDirection(t){const e=this.getDirectionStatement();e?e.value=t:this.rootDoc.unshift({stmt:"dir",value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){const t=n();for(const e of this.nodes)e.wrappingWidth??=t.state?.wrappingWidth,e.isGroup||(e.minWidth??=t.state?.minNodeWidth);return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:ht(this.getRootDocV2())}}getConfig(){return n().state}},$t=s(t=>{const{theme:e,bkgColorArray:s,borderColorArray:i}=t;if(!k(e,i))return"";const n=b(t.look),r=T(s);let o="";for(let t=0;t<_(i);t++){const e=i[t],a=r?`fill: ${s[t%s.length]};`:"",l=`[data-look="${n}"][data-color-id="color-${t}"]`;o+=`\n\n /* The title strip: \`rect.outer\` spans the whole composite and \`rect.inner\` covers\n the body, so what stays visible of \`outer\` is the band behind the label. */\n ${l}.statediagram-cluster rect.outer {\n stroke: ${e};\n ${a}\n }\n\n ${l}.statediagram-cluster rect.inner {\n stroke: ${e};\n }\n\n /* Concurrency regions. Siblings of one composite share a slot, so a divided composite\n reads as one thing split into parts rather than as several composites. */\n ${l}.statediagram-cluster rect.divider {\n stroke: ${e};\n ${a}\n }\n\n /* handDrawn draws the same container as roughjs shapes rather than plain rects, so it\n needs its own rules. \`roundedWithTitle\` and \`divider\` name those groups \`outer\`,\n \`inner\` and \`divider\` to match the classic branch, which is what lets these\n discriminate -- a bare \`.statediagram-cluster path\` rule reached the body as well and\n tinted the whole composite, losing \`compositeBackground\` and diverging from what\n classic and neo do.\n\n roughjs emits two paths per shape and marks them: the filled shape carries\n \`stroke="none"\` and the sketched outline carries \`fill="none"\`. Splitting on that is\n what keeps \`fill\` off the outline -- a rough outline is open squiggles, not a closed\n region, so filling it produces smears -- and keeps \`stroke\` off the fill shape, which\n would otherwise gain an edge it was drawn without. */\n ${l}.statediagram-cluster .outer path[stroke='none'] {\n ${a}\n }\n\n ${l}.statediagram-cluster .outer path[fill='none'] {\n stroke: ${e};\n }\n\n /* No \`.inner\` rule on purpose. The body shape is left entirely alone under handDrawn,\n where a rect's \`inner\` counterpart cannot be recoloured safely: roughjs draws a\n hachure fill as *stroked* lines, so its fill paths carry \`fill="none"\` exactly like\n the outline and no selector separates them. An \`.inner\` stroke rule therefore\n repainted the hatching of every alt composite in the palette colour instead of\n leaving it on \`altBackground\`. The container still reads as palette-coloured: the\n \`outer\` shape spans the whole composite, so its outline already frames the body. */\n\n /* Regions split the same way, which is why \`divider\` fills solid rather than taking\n roughjs's default hachure -- see the note on that call. Hatched, both of its paths\n carried \`fill="none"\` and these two rules degenerated: the tint matched nothing and\n the border rule repainted the hatching. */\n ${l}.statediagram-cluster .divider path[stroke='none'] {\n ${a}\n }\n\n ${l}.statediagram-cluster .divider path[fill='none'] {\n stroke: ${e};\n }\n `}return o},"genColor"),xt=s(t=>`\n${$t(t)}\ndefs [id$="-barbEnd"] {\n fill: ${t.transitionColor};\n stroke: ${t.transitionColor};\n }\ng.stateGroup text {\n fill: ${t.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${t.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${t.lineColor};\n stroke-width: ${t.strokeWidth||1};\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: ${t.strokeWidth||1};\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${t.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n\n text {\n fill: ${t.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${t.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel {\n background-color: ${t.edgeLabelBackground};\n p {\n background-color: ${t.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n}\n.edgeLabel .label text {\n fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${t.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${t.innerEndBackground};\n stroke: ${t.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${t.compositeBackground||t.background};\n // stroke: ${t.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${t.stateBkg||t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: ${t.strokeWidth||1}px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: ${t.strokeWidth||1}px;\n}\n[id$="-barbEnd"] {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: ${t.strokeWidth||1}px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${t.stateLabelColor};\n // line-height: 1;\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${t.noteTextColor};\n}\n\n[id$="-dependencyStart"], [id$="-dependencyEnd"] {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: ${t.strokeWidth||1};\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n\n[data-look="neo"].statediagram-cluster rect {\n fill: ${t.mainBkg};\n stroke: ${t.useGradient?"url("+t.svgId+"-gradient)":t.stateBorder||t.nodeBorder};\n stroke-width: ${t.strokeWidth??1};\n}\n[data-look="neo"].statediagram-cluster rect.outer {\n rx: ${t.radius}px;\n ry: ${t.radius}px;\n filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"}\n}\n`,"getStyles"),Ct={parser:x,get db(){return new Et(2)},renderer:dt,styles:xt,init:s(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{Ct as diagram};
|
|
1
|
+
import{g as t}from"./chunk-XXDRQBXY-ClHdtw3t.js";import{s as e}from"./chunk-VQ5W62QI-BTvKzH75.js";import{_ as s,l as i,c as n,r,t as o,u as a,a as l,b as c,g as h,s as d,v as u,x as p,ag as y,m as g,C as m,k as f,B as S,E as k,F as b,G as T,M as _}from"./mermaid.core-GJX79pQL.js";import{c as E}from"./chunk-55XCU76K-Bm2vEyhO.js";import"./index-jAIWmSeN.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-CmbPiYDE.js";import"./settings-oXVFKYs2.js";import"./constants.js";import"./LoaderLayer-CyitSTCe.js";import"./websocket-CXHGKJlm.js";import"./index-KB6gLBva.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./string-DPJhNSkw.js";var $=function(){var t=s(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,2],i=[1,3],n=[1,4],r=[2,4],o=[1,9],a=[1,11],l=[1,16],c=[1,17],h=[1,18],d=[1,19],u=[1,33],p=[1,20],y=[1,21],g=[1,22],m=[1,23],f=[1,24],S=[1,26],k=[1,27],b=[1,28],T=[1,29],_=[1,30],E=[1,31],$=[1,32],x=[1,35],C=[1,36],v=[1,37],D=[1,38],w=[1,34],I=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],A=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],L=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:s(function(t,e,s,i,n,r,o){var a=r.length-1;switch(n){case 3:return i.setRootDoc(r[a]),r[a];case 4:this.$=[];break;case 5:"nl"!=r[a]&&(r[a-1].push(r[a]),this.$=r[a-1]);break;case 6:case 7:case 12:this.$=r[a];break;case 8:this.$="nl";break;case 13:const t=r[a-1];t.description=i.trimColon(r[a]),this.$=t;break;case 14:this.$={stmt:"relation",state1:r[a-2],state2:r[a]};break;case 15:const e=i.trimColon(r[a]);this.$={stmt:"relation",state1:r[a-3],state2:r[a-1],description:e};break;case 19:this.$={stmt:"state",id:r[a-3],type:"default",description:"",doc:r[a-1]};break;case 20:var l=r[a],c=r[a-2].trim();if(r[a].match(":")){var h=r[a].split(":");l=h[0],c=[c,h[1]]}this.$={stmt:"state",id:l,type:"default",description:c};break;case 21:this.$={stmt:"state",id:r[a-3],type:"default",description:r[a-5],doc:r[a-1]};break;case 22:this.$={stmt:"state",id:r[a],type:"fork"};break;case 23:this.$={stmt:"state",id:r[a],type:"join"};break;case 24:this.$={stmt:"state",id:r[a],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[a-1].trim(),note:{position:r[a-2].trim(),text:r[a].trim()}};break;case 29:this.$=r[a].trim(),i.setAccTitle(this.$);break;case 30:case 31:this.$=r[a].trim(),i.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[a-3],url:r[a-2],tooltip:r[a-1]};break;case 33:this.$={stmt:"click",id:r[a-3],url:r[a-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[a-1].trim(),classes:r[a].trim()};break;case 36:this.$={stmt:"style",id:r[a-1].trim(),styleClass:r[a].trim()};break;case 37:this.$={stmt:"applyClass",id:r[a-1].trim(),styleClass:r[a].trim()};break;case 38:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[a].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:r[a-2].trim(),classes:[r[a].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:e,5:i,6:n},{1:[3]},{3:5,4:e,5:i,6:n},{3:6,4:e,5:i,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:S,35:k,37:b,38:T,41:_,45:E,48:$,51:x,52:C,53:v,54:D,57:w},t(I,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:S,35:k,37:b,38:T,41:_,45:E,48:$,51:x,52:C,53:v,54:D,57:w},t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,10]),t(I,[2,11]),t(I,[2,12],{14:[1,40],15:[1,41]}),t(I,[2,16]),{18:[1,42]},t(I,[2,18],{20:[1,43]}),{23:[1,44]},t(I,[2,22]),t(I,[2,23]),t(I,[2,24]),t(I,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(I,[2,28]),{34:[1,49]},{36:[1,50]},t(I,[2,31]),{13:51,24:u,57:w},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(A,[2,44],{58:[1,56]}),t(A,[2,45],{58:[1,57]}),t(I,[2,38]),t(I,[2,39]),t(I,[2,40]),t(I,[2,41]),t(I,[2,6]),t(I,[2,13]),{13:58,24:u,57:w},t(I,[2,17]),t(L,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(I,[2,29]),t(I,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(I,[2,14],{14:[1,71]}),{4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,72],22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:S,35:k,37:b,38:T,41:_,45:E,48:$,51:x,52:C,53:v,54:D,57:w},t(I,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(A,[2,46]),t(A,[2,47]),t(I,[2,15]),t(I,[2,19]),t(L,r,{7:78}),t(I,[2,26]),t(I,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,81],22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:S,35:k,37:b,38:T,41:_,45:E,48:$,51:x,52:C,53:v,54:D,57:w},t(I,[2,32]),t(I,[2,33]),t(I,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:s(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:s(function(t){var e=this,i=[0],n=[],r=[null],o=[],a=this.table,l="",c=0,h=0,d=o.slice.call(arguments,1),u=Object.create(this.lexer),p={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p.yy[y]=this.yy[y]);u.setInput(t,p.yy),p.yy.lexer=u,p.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var g=u.yylloc;o.push(g);var m=u.options&&u.options.ranges;function f(){var t;return"number"!=typeof(t=n.pop()||u.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,s(function(t){i.length=i.length-2*t,r.length=r.length-t,o.length=o.length-t},"popStack"),s(f,"lex");for(var S,k,b,T,_,E,$,x,C={};;){if(k=i[i.length-1],this.defaultActions[k]?b=this.defaultActions[k]:(null==S&&(S=f()),b=a[k]&&a[k][S]),void 0===b||!b.length||!b[0]){var v="";for(_ in x=[],a[k])this.terminals_[_]&&_>2&&x.push("'"+this.terminals_[_]+"'");v=u.showPosition?"Parse error on line "+(c+1)+":\n"+u.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[S]||S)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==S?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(v,{text:u.match,token:this.terminals_[S]||S,line:u.yylineno,loc:g,expected:x})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+S);switch(b[0]){case 1:i.push(S),r.push(u.yytext),o.push(u.yylloc),i.push(b[1]),S=null,h=u.yyleng,l=u.yytext,c=u.yylineno,g=u.yylloc;break;case 2:if(E=this.productions_[b[1]][1],C.$=r[r.length-E],C._$={first_line:o[o.length-(E||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(E||1)].first_column,last_column:o[o.length-1].last_column},m&&(C._$.range=[o[o.length-(E||1)].range[0],o[o.length-1].range[1]]),void 0!==(T=this.performAction.apply(C,[l,h,c,p.yy,b[1],r,o].concat(d))))return T;E&&(i=i.slice(0,-1*E*2),r=r.slice(0,-1*E),o=o.slice(0,-1*E)),i.push(this.productions_[b[1]][0]),r.push(C.$),o.push(C._$),$=a[i[i.length-2]][i[i.length-1]],i.push($);break;case 3:return!0}}return!0},"parse")},O=function(){return{EOF:1,parseError:s(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:s(function(t,e){return this.yy=e||this.yy||{},this._input=t,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:s(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:s(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=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),s.length-1&&(this.yylineno-=s.length-1);var n=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:s(function(t){this.unput(this.match.slice(t))},"less"),pastInput:s(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:s(function(t,e){var s,i,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;var t,e,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((s=this._input.match(this.rules[n[r]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var t=this.next();return t||this.lex()},"lex"),begin:s(function(t){this.conditionStack.push(t)},"begin"),popState:s(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(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:s(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:s(function(t){this.begin(t)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(t,e,i,n){function r(){const s=e.yytext.indexOf("%%");if(0===s)return!1;if(s>0){const i=e.yytext.slice(0,s),n=e.yytext.slice(s);n&&t.lexer.unput(n),e.yytext=i}return!0}switch(s(r,"processId"),i){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 43:return 51;case 5:case 44:return 52;case 6:case 45:return 53;case 7:case 46:return 54;case 8:case 78:return 5;case 9:case 10:case 11:case 12:case 57:case 63:break;case 13:case 33:return this.pushState("SCALE"),17;case 14:case 34:return 18;case 15:case 21:case 35:case 50:case 54:this.popState();break;case 16:return this.begin("acc_title"),33;case 17:return this.popState(),"acc_title_value";case 18:return this.begin("acc_descr"),35;case 19:return this.popState(),"acc_descr_value";case 20:this.begin("acc_descr_multiline");break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 25:return this.popState(),this.pushState("CLASSDEFID"),42;case 26:return this.popState(),43;case 27:return this.pushState("CLASS"),48;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;case 29:return this.popState(),50;case 30:return this.pushState("STYLE"),45;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 32:return this.popState(),47;case 36:this.pushState("STATE");break;case 37:case 40:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 38:case 41:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 39:case 42:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";case 49:case 65:if(!r())return;return this.popState(),"ID";case 51:return"STATE_DESCR";case 52:throw new Error('Error: State name must be a single word. Found: "'+e.yytext.trim()+'"');case 53:return 19;case 55:return this.popState(),this.pushState("struct"),20;case 56:return this.popState(),21;case 58:return this.begin("NOTE"),29;case 59:return this.popState(),this.pushState("NOTE_ID"),59;case 60:return this.popState(),this.pushState("NOTE_ID"),60;case 61:this.popState(),this.pushState("FLOATING_NOTE");break;case 62:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 64:return"NOTE_TEXT";case 66:if(!r())return;return this.popState(),this.pushState("NOTE_TEXT"),24;case 67:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 68:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 69:case 70:return 6;case 71:return 16;case 72:return 57;case 73:if(!r())return;return 24;case 74:return e.yytext=e.yytext.trim(),14;case 75:return 15;case 76:return 28;case 77:return 58;case 79:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/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,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}}}();function R(){this.yy={}}return N.lexer=O,s(R,"Parser"),R.prototype=N,N.Parser=R,new R}();$.parser=$;var x=$,C="state",v="root",D="relation",w="default",I="divider",A="fill:none",L="fill: #333",N="markdown",O="normal",R="rect",B="rectWithTitle",F="divider",j="roundedWithTitle",P="statediagram",Y=`${P}-state`,G="transition",W=`${G} note-edge`,M=`${P}-note`,z=`${P}-cluster`,U=`${P}-cluster-alt`,X="parent",H="note",V="----",K=`${V}${H}`,J=`${V}${X}`,Q=new Map,q=0,Z=0,tt=new Map,et=s((t,e,s,i)=>{if(t===F&&void 0!==s?.id&&tt.has(s.id)){const t=tt.get(s.id);return tt.set(e,t),t}const n=Z++,r=i?void 0:n;return tt.set(e,r),r},"colorSlotFor");function st(t="",e=0,s="",i=V){return`state-${t}${null!==s&&s.length>0?`${i}${s}`:""}-${e}`}s(st,"stateDomId");var it=s((t,e,s,r,o,a,l,c)=>{i.trace("items",e),e.forEach(e=>{switch(e.stmt){case C:case w:lt(t,e,s,r,o,a,l,c);break;case D:{lt(t,e.state1,s,r,o,a,l,c),lt(t,e.state2,s,r,o,a,l,c);const i="neo"===l,h={id:"edge"+q,start:e.state1.id,end:e.state2.id,arrowhead:"normal",arrowTypeEnd:i?"arrow_barb_neo":"arrow_barb",style:A,labelStyle:"",label:g.sanitizeText(e.description??"",n()),arrowheadStyle:L,labelpos:"c",labelType:N,thickness:O,classes:G,look:l};o.push(h),q++}}})},"setupDoc"),nt=s((t,e="TB")=>{let s=e;if(t.doc)for(const e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir");function rt(t,e,s){if(!e.id||"</join></fork>"===e.id||"</choice>"===e.id)return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(t=>{const i=s.get(t);i&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...i.styles])}));const i=t.find(t=>t.id===e.id);i?Object.assign(i,e):t.push(e)}function ot(t){return t?.classes?.join(" ")??""}function at(t){return t?.styles??[]}s(rt,"insertOrUpdateNode"),s(ot,"getClassesFromDbInfo"),s(at,"getStylesFromDbInfo");var lt=s((t,e,s,r,o,a,l,c)=>{const h=e.id,d=s.get(h),u=ot(d),p=at(d),y=n(),m=""!==u.trim()||p.length>0;if(i.info("dataFetcher parsedItem",e,d,p),"root"!==h){let s=R;!0===e.start?s="stateStart":!1===e.start&&(s="stateEnd"),e.type!==w&&(s=e.type),Q.get(h)||Q.set(h,{id:h,shape:s,description:g.sanitizeText(h,y),cssClasses:`${u} ${Y}`,cssStyles:p});const n=Q.get(h);e.description&&(Array.isArray(n.description)?(n.shape=B,n.description.push(e.description)):n.description?.length&&n.description.length>0?(n.shape=B,n.description===h?n.description=[e.description]:n.description=[n.description,e.description]):(n.shape=R,n.description=e.description),n.description=g.sanitizeTextOrArray(n.description,y)),1===n.description?.length&&n.shape===B&&("group"===n.type?n.shape=j:n.shape=R),!n.type&&e.doc&&(i.info("Setting cluster for XCX",h,nt(e)),n.type="group",n.isGroup=!0,n.dir=nt(e),n.shape=e.type===I?F:j,n.colorIndex=et(n.shape,h,t,m),n.cssClasses=`${n.cssClasses} ${z} ${a?U:""}`);const d={labelStyle:"",shape:n.shape,label:n.description,cssClasses:n.cssClasses,cssCompiledStyles:[],cssStyles:n.cssStyles,id:h,dir:n.dir,domId:st(h,q),type:n.type,isGroup:"group"===n.type,colorIndex:n.colorIndex,padding:8,rx:10,ry:10,look:l,labelType:"markdown"};if(d.shape===F&&(d.label=""),t&&"root"!==t.id&&(i.trace("Setting node ",h," to be child of its parent ",t.id),d.parentId=t.id),d.centerLabel=!0,e.note){const t={labelStyle:"",shape:"note",label:e.note.text,labelType:"markdown",cssClasses:M,cssStyles:[],cssCompiledStyles:[],id:h+K+"-"+q,domId:st(h,q,H),type:"node",isGroup:!1,padding:y.flowchart?.padding,look:l,position:e.note.position},s=h+J,i={labelStyle:"",shape:"noteGroup",label:e.note.text,cssClasses:n.cssClasses,cssStyles:[],id:h+J,domId:st(h,q,X),type:"group",isGroup:!0,padding:16,look:l,position:e.note.position};q++,i.id=s,t.parentId=s,rt(r,i,c),rt(r,t,c),rt(r,d,c);let a=h,u=t.id;"left of"===e.note.position&&(a=t.id,u=h),o.push({id:a+"-"+u,start:a,end:u,arrowhead:"none",arrowTypeEnd:"",style:A,labelStyle:"",classes:W,pattern:"dashed",arrowheadStyle:L,labelpos:"c",labelType:N,thickness:O,look:l})}else rt(r,d,c)}e.doc&&(i.trace("Adding nodes children "),it(e,e.doc,s,r,o,!a,l,c))},"dataFetcher"),ct=s(()=>{Q.clear(),q=0,Z=0,tt.clear()},"reset"),ht=s((t,e="TB")=>{if(!t.doc)return e;let s=e;for(const e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir"),dt={getClasses:s(function(t,e){return e.db.getClasses()},"getClasses"),draw:s(async function(s,l,c,h){i.info("REF0:"),i.info("Drawing state diagram (v2)",l);const{securityLevel:d,state:u,layout:p}=n();h.db.extract(h.db.getRootDocV2());const y=h.db.getData(),g=t(l,d);y.type=h.type,y.layoutAlgorithm=r(p),y.nodeSpacing=u?.nodeSpacing||50,y.rankSpacing=u?.rankSpacing||50;"neo"===n().look?y.markers=["barbNeo"]:y.markers=["barb"],y.diagramId=l,await o(y,g);try{("function"==typeof h.db.getLinks?h.db.getLinks():new Map).forEach((t,e)=>{const s="string"==typeof e?e:"string"==typeof e?.id?e.id:"",n=y.nodes.find(t=>t.id===s);if(!s)return void i.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(e));const r=g.node()?.querySelectorAll("g.node, g.rough-node");let o;if(r?.forEach(t=>{const e=t.textContent?.trim();t.id!==n?.domId&&e!==s||(o=t)}),!o)return void i.warn("⚠️ Could not find node matching text:",s);const a=o.parentNode;if(!a)return void i.warn("⚠️ Node has no parent, cannot wrap:",s);const l=document.createElementNS("http://www.w3.org/2000/svg","a"),c=t.url.replace(/^"+|"+$/g,"");if(l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c),l.setAttribute("target","_blank"),t.tooltip){const e=t.tooltip.replace(/^"+|"+$/g,"");l.setAttribute("title",e),o.setAttribute("title",e)}a.replaceChild(l,o),l.appendChild(o),i.info("🔗 Wrapped node in <a> tag for:",s,t.url)})}catch(t){i.error("❌ Error injecting clickable links:",t)}a.insertTitle(g,"statediagramTitleText",u?.titleTopMargin??25,h.db.getDiagramTitle()),e(g,8,P,u?.useMaxWidth??!0)},"draw"),getDir:ht},ut="[*]",pt="start",yt="[*]",gt="end",mt="color",ft="fill",St="bgFill",kt=",",bt=s(()=>new Map,"newClassesList"),Tt=s(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),_t=s(t=>JSON.parse(JSON.stringify(t)),"clone"),Et=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=bt(),this.documents={root:Tt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=l,this.setAccTitle=c,this.getAccDescription=h,this.setAccDescription=d,this.setDiagramTitle=u,this.getDiagramTitle=p,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static{s(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(t){this.clear(!0);for(const e of Array.isArray(t)?t:t.doc)switch(e.stmt){case C:this.addState(e.id.trim(),e.type,e.doc,e.description,e.note);break;case D:this.addRelation(e.state1,e.state2,e.description);break;case"classDef":this.addStyleClass(e.id.trim(),e.classes);break;case"style":this.handleStyleDef(e);break;case"applyClass":this.setCssClass(e.id.trim(),e.styleClass);break;case"click":this.addLink(e.id,e.url,e.tooltip)}const e=this.getStates(),s=n();ct(),lt(void 0,this.getRootDocV2(),e,this.nodes,this.edges,!0,s.look,this.classes);for(const t of this.nodes)if(Array.isArray(t.label)){if(t.description=t.label.slice(1),t.isGroup&&t.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${t.id}]`);t.label=t.label[0]}}handleStyleDef(t){const e=t.id.trim().split(","),s=t.styleClass.split(",");for(const t of e){let e=this.getState(t);if(!e){const s=t.trim();this.addState(s),e=this.getState(s)}e&&(e.styles=s.map(t=>t.replace(/;/g,"")?.trim()))}}setRootDoc(t){i.info("Setting root doc",t),this.rootDoc=t,1===this.version?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,e,s){if(e.stmt===D)return this.docTranslator(t,e.state1,!0),void this.docTranslator(t,e.state2,!1);if(e.stmt===C&&(e.id===ut?(e.id=t.id+(s?"_start":"_end"),e.start=s):e.id=e.id.trim()),e.stmt!==v&&e.stmt!==C||!e.doc)return;const i=[];let n=[];for(const t of e.doc)if(t.type===I){const e=_t(t);e.doc=_t(n),i.push(e),n=[]}else n.push(t);if(i.length>0&&n.length>0){const t={stmt:C,id:y(),type:"divider",doc:_t(n)};i.push(_t(t)),e.doc=i}e.doc.forEach(t=>this.docTranslator(e,t,!0))}getRootDocV2(){return this.docTranslator({id:v,stmt:v},{id:v,stmt:v,doc:this.rootDoc},!0),{id:v,doc:this.rootDoc}}addState(t,e=w,s=void 0,r=void 0,o=void 0,a=void 0,l=void 0,c=void 0){const h=t?.trim();if(this.currentDocument.states.has(h)){const t=this.currentDocument.states.get(h);if(!t)throw new Error(`State not found: ${h}`);t.doc||(t.doc=s),t.type||(t.type=e)}else i.info("Adding state ",h,r),this.currentDocument.states.set(h,{stmt:C,id:h,descriptions:[],type:e,doc:s,note:o,classes:[],styles:[],textStyles:[]});if(r){i.info("Setting state description",h,r);(Array.isArray(r)?r:[r]).forEach(t=>this.addDescription(h,t.trim()))}if(o){const t=this.currentDocument.states.get(h);if(!t)throw new Error(`State not found: ${h}`);t.note=o,t.note.text=g.sanitizeText(t.note.text,n())}if(a){i.info("Setting state classes",h,a);(Array.isArray(a)?a:[a]).forEach(t=>this.setCssClass(h,t.trim()))}if(l){i.info("Setting state styles",h,l);(Array.isArray(l)?l:[l]).forEach(t=>this.setStyle(h,t.trim()))}if(c){i.info("Setting state styles",h,l);(Array.isArray(c)?c:[c]).forEach(t=>this.setTextStyle(h,t.trim()))}}clear(t){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:Tt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=bt(),t||(this.links=new Map,m())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){i.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,e,s){this.links.set(t,{url:e,tooltip:s}),i.warn("Adding link",t,e,s)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===ut?(this.startEndCount++,`${pt}${this.startEndCount}`):t}startTypeIfNeeded(t="",e=w){return t===ut?pt:e}endIdIfNeeded(t=""){return t===yt?(this.startEndCount++,`${gt}${this.startEndCount}`):t}endTypeIfNeeded(t="",e=w){return t===yt?gt:e}addRelationObjs(t,e,s=""){const i=this.startIdIfNeeded(t.id.trim()),r=this.startTypeIfNeeded(t.id.trim(),t.type),o=this.startIdIfNeeded(e.id.trim()),a=this.startTypeIfNeeded(e.id.trim(),e.type);this.addState(i,r,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(o,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.currentDocument.relations.push({id1:i,id2:o,relationTitle:g.sanitizeText(s,n())})}addRelation(t,e,s){if("object"==typeof t&&"object"==typeof e)this.addRelationObjs(t,e,s);else if("string"==typeof t&&"string"==typeof e){const i=this.startIdIfNeeded(t.trim()),r=this.startTypeIfNeeded(t),o=this.endIdIfNeeded(e.trim()),a=this.endTypeIfNeeded(e);this.addState(i,r),this.addState(o,a),this.currentDocument.relations.push({id1:i,id2:o,relationTitle:s?g.sanitizeText(s,n()):void 0})}}addDescription(t,e){const s=this.currentDocument.states.get(t),i=e.startsWith(":")?e.replace(":","").trim():e;s?.descriptions?.push(g.sanitizeText(i,n()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,e=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});const s=this.classes.get(t);e&&s&&e.split(kt).forEach(t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(mt).exec(t)){const t=e.replace(ft,St).replace(mt,ft);s.textStyles.push(t)}s.styles.push(e)})}getClasses(){return this.classes}setupToolTips(t){const e=E();f(t).select("svg").selectAll("g.node, g.rough-node").on("mouseover",t=>{const s=f(t.currentTarget),i=s.attr("title");if(null===i)return;const n=t.currentTarget?.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.bottom+"px"),e.html(S.sanitize(i)),s.classed("hover",!0)}).on("mouseout",t=>{e.transition().duration(500).style("opacity",0);f(t.currentTarget).classed("hover",!1)})}setCssClass(t,e){t.split(",").forEach(t=>{let s=this.getState(t);if(!s){const e=t.trim();this.addState(e),s=this.getState(e)}s?.classes?.push(e)})}setStyle(t,e){this.getState(t)?.styles?.push(e)}setTextStyle(t,e){this.getState(t)?.textStyles?.push(e)}bindFunctions(t){this.funs.forEach(e=>{e(t)})}getDirectionStatement(){return this.rootDoc.find(t=>"dir"===t.stmt)}getDirection(){return this.getDirectionStatement()?.value??"TB"}setDirection(t){const e=this.getDirectionStatement();e?e.value=t:this.rootDoc.unshift({stmt:"dir",value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){const t=n();for(const e of this.nodes)e.wrappingWidth??=t.state?.wrappingWidth,e.isGroup||(e.minWidth??=t.state?.minNodeWidth);return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:ht(this.getRootDocV2())}}getConfig(){return n().state}},$t=s(t=>{const{theme:e,bkgColorArray:s,borderColorArray:i}=t;if(!k(e,i))return"";const n=b(t.look),r=T(s);let o="";for(let t=0;t<_(i);t++){const e=i[t],a=r?`fill: ${s[t%s.length]};`:"",l=`[data-look="${n}"][data-color-id="color-${t}"]`;o+=`\n\n /* The title strip: \`rect.outer\` spans the whole composite and \`rect.inner\` covers\n the body, so what stays visible of \`outer\` is the band behind the label. */\n ${l}.statediagram-cluster rect.outer {\n stroke: ${e};\n ${a}\n }\n\n ${l}.statediagram-cluster rect.inner {\n stroke: ${e};\n }\n\n /* Concurrency regions. Siblings of one composite share a slot, so a divided composite\n reads as one thing split into parts rather than as several composites. */\n ${l}.statediagram-cluster rect.divider {\n stroke: ${e};\n ${a}\n }\n\n /* handDrawn draws the same container as roughjs shapes rather than plain rects, so it\n needs its own rules. \`roundedWithTitle\` and \`divider\` name those groups \`outer\`,\n \`inner\` and \`divider\` to match the classic branch, which is what lets these\n discriminate -- a bare \`.statediagram-cluster path\` rule reached the body as well and\n tinted the whole composite, losing \`compositeBackground\` and diverging from what\n classic and neo do.\n\n roughjs emits two paths per shape and marks them: the filled shape carries\n \`stroke="none"\` and the sketched outline carries \`fill="none"\`. Splitting on that is\n what keeps \`fill\` off the outline -- a rough outline is open squiggles, not a closed\n region, so filling it produces smears -- and keeps \`stroke\` off the fill shape, which\n would otherwise gain an edge it was drawn without. */\n ${l}.statediagram-cluster .outer path[stroke='none'] {\n ${a}\n }\n\n ${l}.statediagram-cluster .outer path[fill='none'] {\n stroke: ${e};\n }\n\n /* No \`.inner\` rule on purpose. The body shape is left entirely alone under handDrawn,\n where a rect's \`inner\` counterpart cannot be recoloured safely: roughjs draws a\n hachure fill as *stroked* lines, so its fill paths carry \`fill="none"\` exactly like\n the outline and no selector separates them. An \`.inner\` stroke rule therefore\n repainted the hatching of every alt composite in the palette colour instead of\n leaving it on \`altBackground\`. The container still reads as palette-coloured: the\n \`outer\` shape spans the whole composite, so its outline already frames the body. */\n\n /* Regions split the same way, which is why \`divider\` fills solid rather than taking\n roughjs's default hachure -- see the note on that call. Hatched, both of its paths\n carried \`fill="none"\` and these two rules degenerated: the tint matched nothing and\n the border rule repainted the hatching. */\n ${l}.statediagram-cluster .divider path[stroke='none'] {\n ${a}\n }\n\n ${l}.statediagram-cluster .divider path[fill='none'] {\n stroke: ${e};\n }\n `}return o},"genColor"),xt=s(t=>`\n${$t(t)}\ndefs [id$="-barbEnd"] {\n fill: ${t.transitionColor};\n stroke: ${t.transitionColor};\n }\ng.stateGroup text {\n fill: ${t.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${t.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${t.lineColor};\n stroke-width: ${t.strokeWidth||1};\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: ${t.strokeWidth||1};\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${t.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n\n text {\n fill: ${t.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${t.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel {\n background-color: ${t.edgeLabelBackground};\n p {\n background-color: ${t.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n}\n.edgeLabel .label text {\n fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${t.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${t.innerEndBackground};\n stroke: ${t.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${t.compositeBackground||t.background};\n // stroke: ${t.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${t.stateBkg||t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: ${t.strokeWidth||1}px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: ${t.strokeWidth||1}px;\n}\n[id$="-barbEnd"] {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: ${t.strokeWidth||1}px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${t.stateLabelColor};\n // line-height: 1;\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${t.noteTextColor};\n}\n\n[id$="-dependencyStart"], [id$="-dependencyEnd"] {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: ${t.strokeWidth||1};\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n\n[data-look="neo"].statediagram-cluster rect {\n fill: ${t.mainBkg};\n stroke: ${t.useGradient?"url("+t.svgId+"-gradient)":t.stateBorder||t.nodeBorder};\n stroke-width: ${t.strokeWidth??1};\n}\n[data-look="neo"].statediagram-cluster rect.outer {\n rx: ${t.radius}px;\n ry: ${t.radius}px;\n filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"}\n}\n`,"getStyles"),Ct={parser:x,get db(){return new Et(2)},renderer:dt,styles:xt,init:s(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{Ct as diagram};
|