@epic-web/workshop-app 6.11.10 → 6.12.0
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/build/client/assets/{_basePickBy-DqYMxTXz.js → _basePickBy-D8jbDFOg.js} +2 -2
- package/build/client/assets/{_basePickBy-DqYMxTXz.js.map → _basePickBy-D8jbDFOg.js.map} +1 -1
- package/build/client/assets/{_baseUniq-Xeo5oGnZ.js → _baseUniq-3ePGn_rc.js} +2 -2
- package/build/client/assets/{_baseUniq-Xeo5oGnZ.js.map → _baseUniq-3ePGn_rc.js.map} +1 -1
- package/build/client/assets/_exerciseNumber-CP-gdo1P.js +2 -0
- package/build/client/assets/{_exerciseNumber-BgSUxBTb.js.map → _exerciseNumber-CP-gdo1P.js.map} +1 -1
- package/build/client/assets/_exerciseNumber_.finished-B8brKDPf.js +2 -0
- package/build/client/assets/{_exerciseNumber_.finished-CZRzl_L3.js.map → _exerciseNumber_.finished-B8brKDPf.js.map} +1 -1
- package/build/client/assets/_layout-BNebGFHr.js +2 -0
- package/build/client/assets/{_layout-DHP6b_3N.js.map → _layout-BNebGFHr.js.map} +1 -1
- package/build/client/assets/{arc-B26EeMMq.js → arc-B_ven7B8.js} +2 -2
- package/build/client/assets/{arc-B26EeMMq.js.map → arc-B_ven7B8.js.map} +1 -1
- package/build/client/assets/architectureDiagram-NQ2NVSRB-X14AJGPK.js +37 -0
- package/build/client/assets/{architectureDiagram-NQ2NVSRB-xdkbA2mT.js.map → architectureDiagram-NQ2NVSRB-X14AJGPK.js.map} +1 -1
- package/build/client/assets/{blockDiagram-PHRCVELO-CoN70NZF.js → blockDiagram-PHRCVELO-DigrIOdF.js} +3 -3
- package/build/client/assets/{blockDiagram-PHRCVELO-CoN70NZF.js.map → blockDiagram-PHRCVELO-DigrIOdF.js.map} +1 -1
- package/build/client/assets/{c4Diagram-6F6E4RAY-DYD8Ea2V.js → c4Diagram-6F6E4RAY-CMypk10x.js} +3 -3
- package/build/client/assets/{c4Diagram-6F6E4RAY-DYD8Ea2V.js.map → c4Diagram-6F6E4RAY-CMypk10x.js.map} +1 -1
- package/build/client/assets/channel-UNYkKpZo.js +2 -0
- package/build/client/assets/{channel-CnSs83r3.js.map → channel-UNYkKpZo.js.map} +1 -1
- package/build/client/assets/{chunk-353BL4L5-Cqu6CHXz.js → chunk-353BL4L5-SklPSz2o.js} +2 -2
- package/build/client/assets/{chunk-353BL4L5-Cqu6CHXz.js.map → chunk-353BL4L5-SklPSz2o.js.map} +1 -1
- package/build/client/assets/{chunk-67H74DCK-B_U35uvL.js → chunk-67H74DCK-Dbr-OKT5.js} +2 -2
- package/build/client/assets/{chunk-67H74DCK-B_U35uvL.js.map → chunk-67H74DCK-Dbr-OKT5.js.map} +1 -1
- package/build/client/assets/{chunk-6OLS64BW-3UuStQYj.js → chunk-6OLS64BW-CDKAc-rj.js} +2 -2
- package/build/client/assets/{chunk-6OLS64BW-3UuStQYj.js.map → chunk-6OLS64BW-CDKAc-rj.js.map} +1 -1
- package/build/client/assets/{chunk-AACKK3MU-D5W_zCgC.js → chunk-AACKK3MU-5zrPvhpw.js} +2 -2
- package/build/client/assets/{chunk-AACKK3MU-D5W_zCgC.js.map → chunk-AACKK3MU-5zrPvhpw.js.map} +1 -1
- package/build/client/assets/{chunk-BFAMUDN2-CGu6044H.js → chunk-BFAMUDN2-k6W2Lgbz.js} +2 -2
- package/build/client/assets/{chunk-BFAMUDN2-CGu6044H.js.map → chunk-BFAMUDN2-k6W2Lgbz.js.map} +1 -1
- package/build/client/assets/{chunk-E2GYISFI-DnRR3fip.js → chunk-E2GYISFI-81LcQp8x.js} +2 -2
- package/build/client/assets/{chunk-E2GYISFI-DnRR3fip.js.map → chunk-E2GYISFI-81LcQp8x.js.map} +1 -1
- package/build/client/assets/{chunk-QEP2MXWD-DH6Lu0sq.js → chunk-QEP2MXWD-D7XG9KUy.js} +2 -2
- package/build/client/assets/{chunk-QEP2MXWD-DH6Lu0sq.js.map → chunk-QEP2MXWD-D7XG9KUy.js.map} +1 -1
- package/build/client/assets/{chunk-SKB7J2MH-BudxDxQj.js → chunk-SKB7J2MH-DX1Q5hUq.js} +2 -2
- package/build/client/assets/{chunk-SKB7J2MH-BudxDxQj.js.map → chunk-SKB7J2MH-DX1Q5hUq.js.map} +1 -1
- package/build/client/assets/classDiagram-BGRH5UQR-BWZqVNSl.js +2 -0
- package/build/client/assets/{classDiagram-BGRH5UQR-DKEgmYXs.js.map → classDiagram-BGRH5UQR-BWZqVNSl.js.map} +1 -1
- package/build/client/assets/classDiagram-v2-O24JOBDK-BWZqVNSl.js +2 -0
- package/build/client/assets/{classDiagram-v2-O24JOBDK-DKEgmYXs.js.map → classDiagram-v2-O24JOBDK-BWZqVNSl.js.map} +1 -1
- package/build/client/assets/clone-DHp4knLv.js +2 -0
- package/build/client/assets/{clone-DvHvfmHj.js.map → clone-DHp4knLv.js.map} +1 -1
- package/build/client/assets/dagre-FFZHY6LT-ByH9kYFc.js +5 -0
- package/build/client/assets/{dagre-FFZHY6LT-CtnFL1Lr.js.map → dagre-FFZHY6LT-ByH9kYFc.js.map} +1 -1
- package/build/client/assets/diagram-3EMPZRKU-DSV4ASQx.js +25 -0
- package/build/client/assets/{diagram-3EMPZRKU-gj9tHB3B.js.map → diagram-3EMPZRKU-DSV4ASQx.js.map} +1 -1
- package/build/client/assets/diagram-5UYTHUR4-DwP_nzNz.js +25 -0
- package/build/client/assets/{diagram-5UYTHUR4-Bei-Fg01.js.map → diagram-5UYTHUR4-DwP_nzNz.js.map} +1 -1
- package/build/client/assets/diagram-ZTM2IBQH-C0TOQPRb.js +44 -0
- package/build/client/assets/{diagram-ZTM2IBQH-CKHtoku3.js.map → diagram-ZTM2IBQH-C0TOQPRb.js.map} +1 -1
- package/build/client/assets/{diff-BpCQobQG.js → diff-D4F5oxgm.js} +2 -2
- package/build/client/assets/{diff-BpCQobQG.js.map → diff-D4F5oxgm.js.map} +1 -1
- package/build/client/assets/diff-DlTDdDOM.js +2 -0
- package/build/client/assets/{diff-D84Z2275.js.map → diff-DlTDdDOM.js.map} +1 -1
- package/build/client/assets/{erDiagram-R3QVA2FD-BCJuZwjc.js → erDiagram-R3QVA2FD-BB3Hy5h7.js} +4 -4
- package/build/client/assets/{erDiagram-R3QVA2FD-BCJuZwjc.js.map → erDiagram-R3QVA2FD-BB3Hy5h7.js.map} +1 -1
- package/build/client/assets/finished-CKiuId0X.js +2 -0
- package/build/client/assets/{finished-B_tArAIt.js.map → finished-CKiuId0X.js.map} +1 -1
- package/build/client/assets/{flowDiagram-PKI6S5ZS-eJv9bsv_.js → flowDiagram-PKI6S5ZS-CnnDuf5l.js} +3 -3
- package/build/client/assets/{flowDiagram-PKI6S5ZS-eJv9bsv_.js.map → flowDiagram-PKI6S5ZS-CnnDuf5l.js.map} +1 -1
- package/build/client/assets/ganttDiagram-EK5VF46D-DyXw1eAE.js +268 -0
- package/build/client/assets/{ganttDiagram-EK5VF46D-MoWUeOVD.js.map → ganttDiagram-EK5VF46D-DyXw1eAE.js.map} +1 -1
- package/build/client/assets/gitGraphDiagram-GW3U2K7C-BMMTOnaB.js +66 -0
- package/build/client/assets/{gitGraphDiagram-GW3U2K7C-Cj2lmB3x.js.map → gitGraphDiagram-GW3U2K7C-BMMTOnaB.js.map} +1 -1
- package/build/client/assets/{graph-DMCAp9LT.js → graph-7j3_I1S7.js} +2 -2
- package/build/client/assets/{graph-DMCAp9LT.js.map → graph-7j3_I1S7.js.map} +1 -1
- package/build/client/assets/index-C1750ax8.js +2 -0
- package/build/client/assets/{index-RihCoVxF.js.map → index-C1750ax8.js.map} +1 -1
- package/build/client/assets/{index-BoWeyenN.js → index-DpsUXJYs.js} +2 -2
- package/build/client/assets/{index-BoWeyenN.js.map → index-DpsUXJYs.js.map} +1 -1
- package/build/client/assets/infoDiagram-XT3IWWJI-CrAYLJVs.js +3 -0
- package/build/client/assets/{infoDiagram-XT3IWWJI-D4c6fmH4.js.map → infoDiagram-XT3IWWJI-CrAYLJVs.js.map} +1 -1
- package/build/client/assets/{journeyDiagram-EWQZEKCU-Ntv_F3_u.js → journeyDiagram-EWQZEKCU-Ysg9s8_X.js} +3 -3
- package/build/client/assets/{journeyDiagram-EWQZEKCU-Ntv_F3_u.js.map → journeyDiagram-EWQZEKCU-Ysg9s8_X.js.map} +1 -1
- package/build/client/assets/{kanban-definition-ILFWEQ3N-DtsdGjV2.js → kanban-definition-ILFWEQ3N-DbAWrUIo.js} +3 -3
- package/build/client/assets/{kanban-definition-ILFWEQ3N-DtsdGjV2.js.map → kanban-definition-ILFWEQ3N-DbAWrUIo.js.map} +1 -1
- package/build/client/assets/{layout-C048DNoQ.js → layout-BlNCRCkw.js} +2 -2
- package/build/client/assets/{layout-C048DNoQ.js.map → layout-BlNCRCkw.js.map} +1 -1
- package/build/client/assets/{linear-BfrMaLqi.js → linear-BB6-dqpb.js} +2 -2
- package/build/client/assets/{linear-BfrMaLqi.js.map → linear-BB6-dqpb.js.map} +1 -1
- package/build/client/assets/manifest-545771a8.js +1 -0
- package/build/client/assets/mdx-DtC0XcNM.js +3 -0
- package/build/client/assets/mdx-DtC0XcNM.js.map +1 -0
- package/build/client/assets/{mermaid.core-fpeG0vyG.js → mermaid.core-MMmvhjX8.js} +5 -5
- package/build/client/assets/{mermaid.core-fpeG0vyG.js.map → mermaid.core-MMmvhjX8.js.map} +1 -1
- package/build/client/assets/mindmap-definition-CZNETY7S-fwdwD6tA.js +96 -0
- package/build/client/assets/{mindmap-definition-CZNETY7S-DMMXRAqi.js.map → mindmap-definition-CZNETY7S-fwdwD6tA.js.map} +1 -1
- package/build/client/assets/{pieDiagram-NIOCPIFQ-BSCHSw0V.js → pieDiagram-NIOCPIFQ-BBYsj8z1.js} +3 -3
- package/build/client/assets/{pieDiagram-NIOCPIFQ-BSCHSw0V.js.map → pieDiagram-NIOCPIFQ-BBYsj8z1.js.map} +1 -1
- package/build/client/assets/{quadrantDiagram-2OG54O6I-CJ9Rx9Km.js → quadrantDiagram-2OG54O6I-BC-zI92i.js} +3 -3
- package/build/client/assets/{quadrantDiagram-2OG54O6I-CJ9Rx9Km.js.map → quadrantDiagram-2OG54O6I-BC-zI92i.js.map} +1 -1
- package/build/client/assets/{requirementDiagram-SO3GGRV7-TkbO-4UK.js → requirementDiagram-SO3GGRV7-BOtJFH6-.js} +3 -3
- package/build/client/assets/{requirementDiagram-SO3GGRV7-TkbO-4UK.js.map → requirementDiagram-SO3GGRV7-BOtJFH6-.js.map} +1 -1
- package/build/client/assets/sankeyDiagram-4UZDY2LN-e4WARAge.js +11 -0
- package/build/client/assets/{sankeyDiagram-4UZDY2LN-DZU1E-Ay.js.map → sankeyDiagram-4UZDY2LN-e4WARAge.js.map} +1 -1
- package/build/client/assets/{sequenceDiagram-ZIKVLSP4-D5lbCzGL.js → sequenceDiagram-ZIKVLSP4-CWH_T5rJ.js} +3 -3
- package/build/client/assets/{sequenceDiagram-ZIKVLSP4-D5lbCzGL.js.map → sequenceDiagram-ZIKVLSP4-CWH_T5rJ.js.map} +1 -1
- package/build/client/assets/stateDiagram-XX37X6EN-DU_CoFzV.js +2 -0
- package/build/client/assets/{stateDiagram-XX37X6EN-DCbNsklO.js.map → stateDiagram-XX37X6EN-DU_CoFzV.js.map} +1 -1
- package/build/client/assets/stateDiagram-v2-GD6S3NHB-CjR4sltT.js +2 -0
- package/build/client/assets/{stateDiagram-v2-GD6S3NHB-DKebAgr0.js.map → stateDiagram-v2-GD6S3NHB-CjR4sltT.js.map} +1 -1
- package/build/client/assets/{timeline-definition-RI47OAVP-CEWvEdFw.js → timeline-definition-RI47OAVP-ZfmZ_51Y.js} +3 -3
- package/build/client/assets/{timeline-definition-RI47OAVP-CEWvEdFw.js.map → timeline-definition-RI47OAVP-ZfmZ_51Y.js.map} +1 -1
- package/build/client/assets/{treemap-6Y5VK53G-CUOI0-gE.js → treemap-6Y5VK53G-C5U2zwxK.js} +2 -2
- package/build/client/assets/{treemap-6Y5VK53G-CUOI0-gE.js.map → treemap-6Y5VK53G-C5U2zwxK.js.map} +1 -1
- package/build/client/assets/{xychartDiagram-H2YORKM3-H-LM5mh7.js → xychartDiagram-H2YORKM3-BICqrbc3.js} +3 -3
- package/build/client/assets/{xychartDiagram-H2YORKM3-H-LM5mh7.js.map → xychartDiagram-H2YORKM3-BICqrbc3.js.map} +1 -1
- package/build/server/index.js +19 -6
- package/build/server/index.js.map +1 -1
- package/dist/server/index.js +0 -42
- package/package.json +1 -1
- package/build/client/assets/_exerciseNumber-BgSUxBTb.js +0 -2
- package/build/client/assets/_exerciseNumber_.finished-CZRzl_L3.js +0 -2
- package/build/client/assets/_layout-DHP6b_3N.js +0 -2
- package/build/client/assets/architectureDiagram-NQ2NVSRB-xdkbA2mT.js +0 -37
- package/build/client/assets/channel-CnSs83r3.js +0 -2
- package/build/client/assets/classDiagram-BGRH5UQR-DKEgmYXs.js +0 -2
- package/build/client/assets/classDiagram-v2-O24JOBDK-DKEgmYXs.js +0 -2
- package/build/client/assets/clone-DvHvfmHj.js +0 -2
- package/build/client/assets/dagre-FFZHY6LT-CtnFL1Lr.js +0 -5
- package/build/client/assets/diagram-3EMPZRKU-gj9tHB3B.js +0 -25
- package/build/client/assets/diagram-5UYTHUR4-Bei-Fg01.js +0 -25
- package/build/client/assets/diagram-ZTM2IBQH-CKHtoku3.js +0 -44
- package/build/client/assets/diff-D84Z2275.js +0 -2
- package/build/client/assets/finished-B_tArAIt.js +0 -2
- package/build/client/assets/ganttDiagram-EK5VF46D-MoWUeOVD.js +0 -268
- package/build/client/assets/gitGraphDiagram-GW3U2K7C-Cj2lmB3x.js +0 -66
- package/build/client/assets/index-RihCoVxF.js +0 -2
- package/build/client/assets/infoDiagram-XT3IWWJI-D4c6fmH4.js +0 -3
- package/build/client/assets/manifest-fa3cf8f0.js +0 -1
- package/build/client/assets/mdx-C1V-NWR7.js +0 -3
- package/build/client/assets/mdx-C1V-NWR7.js.map +0 -1
- package/build/client/assets/mindmap-definition-CZNETY7S-DMMXRAqi.js +0 -96
- package/build/client/assets/sankeyDiagram-4UZDY2LN-DZU1E-Ay.js +0 -11
- package/build/client/assets/stateDiagram-XX37X6EN-DCbNsklO.js +0 -2
- package/build/client/assets/stateDiagram-v2-GD6S3NHB-DKebAgr0.js +0 -2
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import{p as Y}from"./chunk-353BL4L5-Cqu6CHXz.js";import{I as K}from"./chunk-AACKK3MU-D5W_zCgC.js";import{_ as l,t as U,q as V,s as X,g as J,a as Q,b as Z,l as m,c as rr,d as er,u as tr,E as ar,z as sr,k as C,F as nr,G as or,H as cr,I as ir}from"./mermaid.core-fpeG0vyG.js";import{p as dr}from"./treemap-6Y5VK53G-CUOI0-gE.js";import"./mdx-C1V-NWR7.js";import"./jsx-runtime-EKYJJIwR.js";import"./clsx-B-dksMZM.js";import"./chunk-QMGIS6GS-BWLFw-Hy.js";import"./index-X8I_KyHj.js";import"./epic-video-DrsQs50N.js";import"./index-C2wOQTC_.js";import"./misc-DMGaKniW.js";import"./tooltip-CV1w4P-j.js";import"./pe-K0-AI5Hd.js";import"./online-CdmAkYlF.js";import"./loading-hChTm018.js";import"./user-B55yUQs4.js";import"./workshop-config-BTMrjnKt.js";import"./progress-bar-CiSKG9NB.js";import"./_baseUniq-Xeo5oGnZ.js";import"./_basePickBy-DqYMxTXz.js";import"./clone-DvHvfmHj.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},hr=cr.gitGraph,I=l(()=>nr({...hr,...or().gitGraph}),"getConfig"),c=new K(()=>{const t=I(),r=t.mainBranchName,s=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:s}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function A(){return ir({length:7})}l(A,"getID");function F(t,r){const s=Object.create(null);return t.reduce((n,e)=>{const a=r(e);return s[a]||(s[a]=!0,n.push(e)),n},[])}l(F,"uniqBy");var lr=l(function(t){c.records.direction=t},"setDirection"),$r=l(function(t){m.debug("options str",t),t=t?.trim(),t=t||"{}";try{c.records.options=JSON.parse(t)}catch(r){m.error("error while parsing gitGraph options",r.message)}},"setOptions"),fr=l(function(){return c.records.options},"getOptions"),gr=l(function(t){let r=t.msg,s=t.id;const n=t.type;let e=t.tags;m.info("commit",r,s,n,e),m.debug("Entering commit:",r,s,n,e);const a=I();s=C.sanitizeText(s,a),r=C.sanitizeText(r,a),e=e?.map(o=>C.sanitizeText(o,a));const d={id:s||c.records.seq+"-"+A(),message:r,seq:c.records.seq++,type:n??x.NORMAL,tags:e??[],parents:c.records.head==null?[]:[c.records.head.id],branch:c.records.currBranch};c.records.head=d,m.info("main branch",a.mainBranchName),c.records.commits.has(d.id)&&m.warn(`Commit ID ${d.id} already exists`),c.records.commits.set(d.id,d),c.records.branches.set(c.records.currBranch,d.id),m.debug("in pushCommit "+d.id)},"commit"),yr=l(function(t){let r=t.name;const s=t.order;if(r=C.sanitizeText(r,I()),c.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);c.records.branches.set(r,c.records.head!=null?c.records.head.id:null),c.records.branchConfig.set(r,{name:r,order:s}),D(r),m.debug("in createBranch")},"branch"),pr=l(t=>{let r=t.branch,s=t.id;const n=t.type,e=t.tags,a=I();r=C.sanitizeText(r,a),s&&(s=C.sanitizeText(s,a));const d=c.records.branches.get(c.records.currBranch),o=c.records.branches.get(r),f=d?c.records.commits.get(d):void 0,h=o?c.records.commits.get(o):void 0;if(f&&h&&f.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(c.records.currBranch===r){const i=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(f===void 0||!f){const i=new Error(`Incorrect usage of "merge". Current branch (${c.records.currBranch})has no commits`);throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},i}if(!c.records.branches.has(r)){const i=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},i}if(h===void 0||!h){const i=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},i}if(f===h){const i=new Error('Incorrect usage of "merge". Both branches have same head');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(s&&c.records.commits.has(s)){const i=new Error('Incorrect usage of "merge". Commit with id:'+s+" already exists, use different custom id");throw i.hash={text:`merge ${r} ${s} ${n} ${e?.join(" ")}`,token:`merge ${r} ${s} ${n} ${e?.join(" ")}`,expected:[`merge ${r} ${s}_UNIQUE ${n} ${e?.join(" ")}`]},i}const $=o||"",g={id:s||`${c.records.seq}-${A()}`,message:`merged branch ${r} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,$],branch:c.records.currBranch,type:x.MERGE,customType:n,customId:!!s,tags:e??[]};c.records.head=g,c.records.commits.set(g.id,g),c.records.branches.set(c.records.currBranch,g.id),m.debug(c.records.branches),m.debug("in mergeBranch")},"merge"),ur=l(function(t){let r=t.id,s=t.targetId,n=t.tags,e=t.parent;m.debug("Entering cherryPick:",r,s,n);const a=I();if(r=C.sanitizeText(r,a),s=C.sanitizeText(s,a),n=n?.map(f=>C.sanitizeText(f,a)),e=C.sanitizeText(e,a),!r||!c.records.commits.has(r)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},f}const d=c.records.commits.get(r);if(d===void 0||!d)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(d.parents)&&d.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=d.branch;if(d.type===x.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!s||!c.records.commits.has(s)){if(o===c.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},g}const f=c.records.branches.get(c.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},g}const h=c.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},g}const $={id:c.records.seq+"-"+A(),message:`cherry-picked ${d?.message} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,d.id],branch:c.records.currBranch,type:x.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${d.id}${d.type===x.MERGE?`|parent:${e}`:""}`]};c.records.head=$,c.records.commits.set($.id,$),c.records.branches.set(c.records.currBranch,$.id),m.debug(c.records.branches),m.debug("in cherryPick")}},"cherryPick"),D=l(function(t){if(t=C.sanitizeText(t,I()),c.records.branches.has(t)){c.records.currBranch=t;const r=c.records.branches.get(c.records.currBranch);r===void 0||!r?c.records.head=null:c.records.head=c.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function _(t,r,s){const n=t.indexOf(r);n===-1?t.push(s):t.splice(n,1,s)}l(_,"upsert");function P(t){const r=t.reduce((e,a)=>e.seq>a.seq?e:a,t[0]);let s="";t.forEach(function(e){e===r?s+=" *":s+=" |"});const n=[s,r.id,r.seq];for(const e in c.records.branches)c.records.branches.get(e)===r.id&&n.push(e);if(m.debug(n.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const e=c.records.commits.get(r.parents[0]);_(t,r,e),r.parents[1]&&t.push(c.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const e=c.records.commits.get(r.parents[0]);_(t,r,e)}}t=F(t,e=>e.id),P(t)}l(P,"prettyPrintCommitHistory");var xr=l(function(){m.debug(c.records.commits);const t=N()[0];P([t])},"prettyPrint"),mr=l(function(){c.reset(),sr()},"clear"),br=l(function(){return[...c.records.branchConfig.values()].map((r,s)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${s}`)}).sort((r,s)=>(r.order??0)-(s.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),wr=l(function(){return c.records.branches},"getBranches"),vr=l(function(){return c.records.commits},"getCommits"),N=l(function(){const t=[...c.records.commits.values()];return t.forEach(function(r){m.debug(r.id)}),t.sort((r,s)=>r.seq-s.seq),t},"getCommitsArray"),Cr=l(function(){return c.records.currBranch},"getCurrentBranch"),Er=l(function(){return c.records.direction},"getDirection"),Tr=l(function(){return c.records.head},"getHead"),S={commitType:x,getConfig:I,setDirection:lr,setOptions:$r,getOptions:fr,commit:gr,branch:yr,merge:pr,cherryPick:ur,checkout:D,prettyPrint:xr,clear:mr,getBranchesAsObjArray:br,getBranches:wr,getCommits:vr,getCommitsArray:N,getCurrentBranch:Cr,getDirection:Er,getHead:Tr,setAccTitle:Z,getAccTitle:Q,getAccDescription:J,setAccDescription:X,setDiagramTitle:V,getDiagramTitle:U},Br=l((t,r)=>{Y(t,r),t.dir&&r.setDirection(t.dir);for(const s of t.statements)Lr(s,r)},"populate"),Lr=l((t,r)=>{const n={Commit:l(e=>r.commit(kr(e)),"Commit"),Branch:l(e=>r.branch(Mr(e)),"Branch"),Merge:l(e=>r.merge(Ir(e)),"Merge"),Checkout:l(e=>r.checkout(Rr(e)),"Checkout"),CherryPicking:l(e=>r.cherryPick(Gr(e)),"CherryPicking")}[t.$type];n?n(t):m.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),kr=l(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),Mr=l(t=>({name:t.name,order:t.order??0}),"parseBranch"),Ir=l(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Rr=l(t=>t.branch,"parseCheckout"),Gr=l(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Or={parse:l(async t=>{const r=await dr("gitGraph",t);m.debug(r),Br(r,S)},"parse")},qr=rr(),v=qr?.gitGraph,L=10,k=40,E=4,T=2,M=8,b=new Map,w=new Map,O=30,R=new Map,q=[],B=0,p="LR",Ar=l(()=>{b.clear(),w.clear(),R.clear(),B=0,q=[],p="LR"},"clear"),W=l(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(n=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=n.trim(),r.appendChild(e)}),r},"drawText"),j=l(t=>{let r,s,n;return p==="BT"?(s=l((e,a)=>e<=a,"comparisonFunc"),n=1/0):(s=l((e,a)=>e>=a,"comparisonFunc"),n=0),t.forEach(e=>{const a=p==="TB"||p=="BT"?w.get(e)?.y:w.get(e)?.x;a!==void 0&&s(a,n)&&(r=e,n=a)}),r},"findClosestParent"),Hr=l(t=>{let r="",s=1/0;return t.forEach(n=>{const e=w.get(n).y;e<=s&&(r=n,s=e)}),r||void 0},"findClosestParentBT"),_r=l((t,r,s)=>{let n=s,e=s;const a=[];t.forEach(d=>{const o=r.get(d);if(!o)throw new Error(`Commit not found for key ${d}`);o.parents.length?(n=zr(o),e=Math.max(n,e)):a.push(o),Fr(o,n)}),n=e,a.forEach(d=>{Dr(d,n,s)}),t.forEach(d=>{const o=r.get(d);if(o?.parents.length){const f=Hr(o.parents);n=w.get(f).y-k,n<=e&&(e=n);const h=b.get(o.branch).pos,$=n-L;w.set(o.id,{x:h,y:$})}})},"setParallelBTPos"),Pr=l(t=>{const r=j(t.parents.filter(n=>n!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const s=w.get(r)?.y;if(s===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return s},"findClosestParentPos"),zr=l(t=>Pr(t)+k,"calculateCommitPosition"),Fr=l((t,r)=>{const s=b.get(t.branch);if(!s)throw new Error(`Branch not found for commit ${t.id}`);const n=s.pos,e=r+L;return w.set(t.id,{x:n,y:e}),{x:n,y:e}},"setCommitPosition"),Dr=l((t,r,s)=>{const n=b.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const e=r+s,a=n.pos;w.set(t.id,{x:a,y:e})},"setRootPosition"),Nr=l((t,r,s,n,e,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",s.x-10).attr("y",s.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${e%M} ${n}-outer`),t.append("rect").attr("x",s.x-6).attr("y",s.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${e%M} ${n}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",s.x).attr("cy",s.y).attr("r",10).attr("class",`commit ${r.id} ${n}`),t.append("circle").attr("cx",s.x-3).attr("cy",s.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${n}`),t.append("circle").attr("cx",s.x+3).attr("cy",s.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${n}`),t.append("line").attr("x1",s.x+3).attr("y1",s.y+1).attr("x2",s.x).attr("y2",s.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${n}`),t.append("line").attr("x1",s.x-3).attr("y1",s.y+1).attr("x2",s.x).attr("y2",s.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${n}`);else{const d=t.append("circle");if(d.attr("cx",s.x),d.attr("cy",s.y),d.attr("r",r.type===x.MERGE?9:10),d.attr("class",`commit ${r.id} commit${e%M}`),a===x.MERGE){const o=t.append("circle");o.attr("cx",s.x),o.attr("cy",s.y),o.attr("r",6),o.attr("class",`commit ${n} ${r.id} commit${e%M}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${s.x-5},${s.y-5}L${s.x+5},${s.y+5}M${s.x-5},${s.y+5}L${s.x+5},${s.y-5}`).attr("class",`commit ${n} ${r.id} commit${e%M}`)}},"drawCommitBullet"),Sr=l((t,r,s,n)=>{if(r.type!==x.CHERRY_PICK&&(r.customId&&r.type===x.MERGE||r.type!==x.MERGE)&&v?.showCommitLabel){const e=t.append("g"),a=e.insert("rect").attr("class","commit-label-bkg"),d=e.append("text").attr("x",n).attr("y",s.y+25).attr("class","commit-label").text(r.id),o=d.node()?.getBBox();if(o&&(a.attr("x",s.posWithOffset-o.width/2-T).attr("y",s.y+13.5).attr("width",o.width+2*T).attr("height",o.height+2*T),p==="TB"||p==="BT"?(a.attr("x",s.x-(o.width+4*E+5)).attr("y",s.y-12),d.attr("x",s.x-(o.width+4*E)).attr("y",s.y+o.height-12)):d.attr("x",s.posWithOffset-o.width/2),v.rotateCommitLabel))if(p==="TB"||p==="BT")d.attr("transform","rotate(-45, "+s.x+", "+s.y+")"),a.attr("transform","rotate(-45, "+s.x+", "+s.y+")");else{const f=-7.5-(o.width+10)/25*9.5,h=10+o.width/25*8.5;e.attr("transform","translate("+f+", "+h+") rotate(-45, "+n+", "+s.y+")")}}},"drawCommitLabel"),Wr=l((t,r,s,n)=>{if(r.tags.length>0){let e=0,a=0,d=0;const o=[];for(const f of r.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",s.y-16-e).attr("class","tag-label").text(f),i=g.node()?.getBBox();if(!i)throw new Error("Tag bbox not found");a=Math.max(a,i.width),d=Math.max(d,i.height),g.attr("x",s.posWithOffset-i.width/2),o.push({tag:g,hole:$,rect:h,yOffset:e}),e+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of o){const i=d/2,y=s.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",`
|
|
2
|
-
${n-a/2-E/2},${y+T}
|
|
3
|
-
${n-a/2-E/2},${y-T}
|
|
4
|
-
${s.posWithOffset-a/2-E},${y-i-T}
|
|
5
|
-
${s.posWithOffset+a/2+E},${y-i-T}
|
|
6
|
-
${s.posWithOffset+a/2+E},${y+i+T}
|
|
7
|
-
${s.posWithOffset-a/2-E},${y+i+T}`),h.attr("cy",y).attr("cx",n-a/2+E/2).attr("r",1.5).attr("class","tag-hole"),p==="TB"||p==="BT"){const u=n+g;$.attr("class","tag-label-bkg").attr("points",`
|
|
8
|
-
${s.x},${u+2}
|
|
9
|
-
${s.x},${u-2}
|
|
10
|
-
${s.x+L},${u-i-2}
|
|
11
|
-
${s.x+L+a+4},${u-i-2}
|
|
12
|
-
${s.x+L+a+4},${u+i+2}
|
|
13
|
-
${s.x+L},${u+i+2}`).attr("transform","translate(12,12) rotate(45, "+s.x+","+n+")"),h.attr("cx",s.x+E/2).attr("cy",u).attr("transform","translate(12,12) rotate(45, "+s.x+","+n+")"),f.attr("x",s.x+5).attr("y",u+3).attr("transform","translate(14,14) rotate(45, "+s.x+","+n+")")}}}},"drawCommitTags"),jr=l(t=>{switch(t.customType??t.type){case x.NORMAL:return"commit-normal";case x.REVERSE:return"commit-reverse";case x.HIGHLIGHT:return"commit-highlight";case x.MERGE:return"commit-merge";case x.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Yr=l((t,r,s,n)=>{const e={x:0,y:0};if(t.parents.length>0){const a=j(t.parents);if(a){const d=n.get(a)??e;return r==="TB"?d.y+k:r==="BT"?(n.get(t.id)??e).y-k:d.x+k}}else return r==="TB"?O:r==="BT"?(n.get(t.id)??e).y-k:0;return 0},"calculatePosition"),Kr=l((t,r,s)=>{const n=p==="BT"&&s?r:r+L,e=p==="TB"||p==="BT"?n:b.get(t.branch)?.pos,a=p==="TB"||p==="BT"?b.get(t.branch)?.pos:n;if(a===void 0||e===void 0)throw new Error(`Position were undefined for commit ${t.id}`);return{x:a,y:e,posWithOffset:n}},"getCommitPosition"),z=l((t,r,s)=>{if(!v)throw new Error("GitGraph config not found");const n=t.append("g").attr("class","commit-bullets"),e=t.append("g").attr("class","commit-labels");let a=p==="TB"||p==="BT"?O:0;const d=[...r.keys()],o=v?.parallelCommits??!1,f=l(($,g)=>{const i=r.get($)?.seq,y=r.get(g)?.seq;return i!==void 0&&y!==void 0?i-y:0},"sortKeys");let h=d.sort(f);p==="BT"&&(o&&_r(h,r,a),h=h.reverse()),h.forEach($=>{const g=r.get($);if(!g)throw new Error(`Commit not found for key ${$}`);o&&(a=Yr(g,p,a,w));const i=Kr(g,a,o);if(s){const y=jr(g),u=g.customType??g.type,H=b.get(g.branch)?.index??0;Nr(n,g,i,y,H,u),Sr(e,g,i,a),Wr(e,g,i,a)}p==="TB"||p==="BT"?w.set(g.id,{x:i.x,y:i.posWithOffset}):w.set(g.id,{x:i.posWithOffset,y:i.y}),a=p==="BT"&&o?a+k:a+k+L,a>B&&(B=a)})},"drawCommits"),Ur=l((t,r,s,n,e)=>{const d=(p==="TB"||p==="BT"?s.x<n.x:s.y<n.y)?r.branch:t.branch,o=l(h=>h.branch===d,"isOnBranchToGetCurve"),f=l(h=>h.seq>t.seq&&h.seq<r.seq,"isBetweenCommits");return[...e.values()].some(h=>f(h)&&o(h))},"shouldRerouteArrow"),G=l((t,r,s=0)=>{const n=t+Math.abs(t-r)/2;if(s>5)return n;if(q.every(d=>Math.abs(d-n)>=10))return q.push(n),n;const a=Math.abs(t-r);return G(t,r-a/5,s+1)},"findLane"),Vr=l((t,r,s,n)=>{const e=w.get(r.id),a=w.get(s.id);if(e===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${r.id} and ${s.id}`);const d=Ur(r,s,e,a,n);let o="",f="",h=0,$=0,g=b.get(s.branch)?.index;s.type===x.MERGE&&r.id!==s.parents[0]&&(g=b.get(r.branch)?.index);let i;if(d){o="A 10 10, 0, 0, 0,",f="A 10 10, 0, 0, 1,",h=10,$=10;const y=e.y<a.y?G(e.y,a.y):G(a.y,e.y),u=e.x<a.x?G(e.x,a.x):G(a.x,e.x);p==="TB"?e.x<a.x?i=`M ${e.x} ${e.y} L ${u-h} ${e.y} ${f} ${u} ${e.y+$} L ${u} ${a.y-h} ${o} ${u+$} ${a.y} L ${a.x} ${a.y}`:(g=b.get(r.branch)?.index,i=`M ${e.x} ${e.y} L ${u+h} ${e.y} ${o} ${u} ${e.y+$} L ${u} ${a.y-h} ${f} ${u-$} ${a.y} L ${a.x} ${a.y}`):p==="BT"?e.x<a.x?i=`M ${e.x} ${e.y} L ${u-h} ${e.y} ${o} ${u} ${e.y-$} L ${u} ${a.y+h} ${f} ${u+$} ${a.y} L ${a.x} ${a.y}`:(g=b.get(r.branch)?.index,i=`M ${e.x} ${e.y} L ${u+h} ${e.y} ${f} ${u} ${e.y-$} L ${u} ${a.y+h} ${o} ${u-$} ${a.y} L ${a.x} ${a.y}`):e.y<a.y?i=`M ${e.x} ${e.y} L ${e.x} ${y-h} ${o} ${e.x+$} ${y} L ${a.x-h} ${y} ${f} ${a.x} ${y+$} L ${a.x} ${a.y}`:(g=b.get(r.branch)?.index,i=`M ${e.x} ${e.y} L ${e.x} ${y+h} ${f} ${e.x+$} ${y} L ${a.x-h} ${y} ${o} ${a.x} ${y-$} L ${a.x} ${a.y}`)}else o="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",h=20,$=20,p==="TB"?(e.x<a.x&&(s.type===x.MERGE&&r.id!==s.parents[0]?i=`M ${e.x} ${e.y} L ${e.x} ${a.y-h} ${o} ${e.x+$} ${a.y} L ${a.x} ${a.y}`:i=`M ${e.x} ${e.y} L ${a.x-h} ${e.y} ${f} ${a.x} ${e.y+$} L ${a.x} ${a.y}`),e.x>a.x&&(o="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",h=20,$=20,s.type===x.MERGE&&r.id!==s.parents[0]?i=`M ${e.x} ${e.y} L ${e.x} ${a.y-h} ${f} ${e.x-$} ${a.y} L ${a.x} ${a.y}`:i=`M ${e.x} ${e.y} L ${a.x+h} ${e.y} ${o} ${a.x} ${e.y+$} L ${a.x} ${a.y}`),e.x===a.x&&(i=`M ${e.x} ${e.y} L ${a.x} ${a.y}`)):p==="BT"?(e.x<a.x&&(s.type===x.MERGE&&r.id!==s.parents[0]?i=`M ${e.x} ${e.y} L ${e.x} ${a.y+h} ${f} ${e.x+$} ${a.y} L ${a.x} ${a.y}`:i=`M ${e.x} ${e.y} L ${a.x-h} ${e.y} ${o} ${a.x} ${e.y-$} L ${a.x} ${a.y}`),e.x>a.x&&(o="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",h=20,$=20,s.type===x.MERGE&&r.id!==s.parents[0]?i=`M ${e.x} ${e.y} L ${e.x} ${a.y+h} ${o} ${e.x-$} ${a.y} L ${a.x} ${a.y}`:i=`M ${e.x} ${e.y} L ${a.x-h} ${e.y} ${o} ${a.x} ${e.y-$} L ${a.x} ${a.y}`),e.x===a.x&&(i=`M ${e.x} ${e.y} L ${a.x} ${a.y}`)):(e.y<a.y&&(s.type===x.MERGE&&r.id!==s.parents[0]?i=`M ${e.x} ${e.y} L ${a.x-h} ${e.y} ${f} ${a.x} ${e.y+$} L ${a.x} ${a.y}`:i=`M ${e.x} ${e.y} L ${e.x} ${a.y-h} ${o} ${e.x+$} ${a.y} L ${a.x} ${a.y}`),e.y>a.y&&(s.type===x.MERGE&&r.id!==s.parents[0]?i=`M ${e.x} ${e.y} L ${a.x-h} ${e.y} ${o} ${a.x} ${e.y-$} L ${a.x} ${a.y}`:i=`M ${e.x} ${e.y} L ${e.x} ${a.y+h} ${f} ${e.x+$} ${a.y} L ${a.x} ${a.y}`),e.y===a.y&&(i=`M ${e.x} ${e.y} L ${a.x} ${a.y}`));if(i===void 0)throw new Error("Line definition not found");t.append("path").attr("d",i).attr("class","arrow arrow"+g%M)},"drawArrow"),Xr=l((t,r)=>{const s=t.append("g").attr("class","commit-arrows");[...r.keys()].forEach(n=>{const e=r.get(n);e.parents&&e.parents.length>0&&e.parents.forEach(a=>{Vr(s,r.get(a),e,r)})})},"drawArrows"),Jr=l((t,r)=>{const s=t.append("g");r.forEach((n,e)=>{const a=e%M,d=b.get(n.name)?.pos;if(d===void 0)throw new Error(`Position not found for branch ${n.name}`);const o=s.append("line");o.attr("x1",0),o.attr("y1",d),o.attr("x2",B),o.attr("y2",d),o.attr("class","branch branch"+a),p==="TB"?(o.attr("y1",O),o.attr("x1",d),o.attr("y2",B),o.attr("x2",d)):p==="BT"&&(o.attr("y1",B),o.attr("x1",d),o.attr("y2",O),o.attr("x2",d)),q.push(d);const f=n.name,h=W(f),$=s.insert("rect"),i=s.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+a);i.node().appendChild(h);const y=h.getBBox();$.attr("class","branchLabelBkg label"+a).attr("rx",4).attr("ry",4).attr("x",-y.width-4-(v?.rotateCommitLabel===!0?30:0)).attr("y",-y.height/2+8).attr("width",y.width+18).attr("height",y.height+4),i.attr("transform","translate("+(-y.width-14-(v?.rotateCommitLabel===!0?30:0))+", "+(d-y.height/2-1)+")"),p==="TB"?($.attr("x",d-y.width/2-10).attr("y",0),i.attr("transform","translate("+(d-y.width/2-5)+", 0)")):p==="BT"?($.attr("x",d-y.width/2-10).attr("y",B),i.attr("transform","translate("+(d-y.width/2-5)+", "+B+")")):$.attr("transform","translate(-19, "+(d-y.height/2)+")")})},"drawBranches"),Qr=l(function(t,r,s,n,e){return b.set(t,{pos:r,index:s}),r+=50+(e?40:0)+(p==="TB"||p==="BT"?n.width/2:0),r},"setBranchPosition"),Zr=l(function(t,r,s,n){if(Ar(),m.debug("in gitgraph renderer",t+`
|
|
14
|
-
`,"id:",r,s),!v)throw new Error("GitGraph config not found");const e=v.rotateCommitLabel??!1,a=n.db;R=a.getCommits();const d=a.getBranchesAsObjArray();p=a.getDirection();const o=er(`[id="${r}"]`);let f=0;d.forEach((h,$)=>{const g=W(h.name),i=o.append("g"),y=i.insert("g").attr("class","branchLabel"),u=y.insert("g").attr("class","label branch-label");u.node()?.appendChild(g);const H=g.getBBox();f=Qr(h.name,f,$,H,e),u.remove(),y.remove(),i.remove()}),z(o,R,!1),v.showBranches&&Jr(o,d),Xr(o,R),z(o,R,!0),tr.insertTitle(o,"gitTitleText",v.titleTopMargin??0,a.getDiagramTitle()),ar(void 0,o,v.diagramPadding,v.useMaxWidth)},"draw"),re={draw:Zr},ee=l(t=>`
|
|
15
|
-
.commit-id,
|
|
16
|
-
.commit-msg,
|
|
17
|
-
.branch-label {
|
|
18
|
-
fill: lightgrey;
|
|
19
|
-
color: lightgrey;
|
|
20
|
-
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
21
|
-
font-family: var(--mermaid-font-family);
|
|
22
|
-
}
|
|
23
|
-
${[0,1,2,3,4,5,6,7].map(r=>`
|
|
24
|
-
.branch-label${r} { fill: ${t["gitBranchLabel"+r]}; }
|
|
25
|
-
.commit${r} { stroke: ${t["git"+r]}; fill: ${t["git"+r]}; }
|
|
26
|
-
.commit-highlight${r} { stroke: ${t["gitInv"+r]}; fill: ${t["gitInv"+r]}; }
|
|
27
|
-
.label${r} { fill: ${t["git"+r]}; }
|
|
28
|
-
.arrow${r} { stroke: ${t["git"+r]}; }
|
|
29
|
-
`).join(`
|
|
30
|
-
`)}
|
|
31
|
-
|
|
32
|
-
.branch {
|
|
33
|
-
stroke-width: 1;
|
|
34
|
-
stroke: ${t.lineColor};
|
|
35
|
-
stroke-dasharray: 2;
|
|
36
|
-
}
|
|
37
|
-
.commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}
|
|
38
|
-
.commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }
|
|
39
|
-
.tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
|
|
40
|
-
.tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }
|
|
41
|
-
.tag-hole { fill: ${t.textColor}; }
|
|
42
|
-
|
|
43
|
-
.commit-merge {
|
|
44
|
-
stroke: ${t.primaryColor};
|
|
45
|
-
fill: ${t.primaryColor};
|
|
46
|
-
}
|
|
47
|
-
.commit-reverse {
|
|
48
|
-
stroke: ${t.primaryColor};
|
|
49
|
-
fill: ${t.primaryColor};
|
|
50
|
-
stroke-width: 3;
|
|
51
|
-
}
|
|
52
|
-
.commit-highlight-outer {
|
|
53
|
-
}
|
|
54
|
-
.commit-highlight-inner {
|
|
55
|
-
stroke: ${t.primaryColor};
|
|
56
|
-
fill: ${t.primaryColor};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|
60
|
-
.gitTitleText {
|
|
61
|
-
text-anchor: middle;
|
|
62
|
-
font-size: 18px;
|
|
63
|
-
fill: ${t.textColor};
|
|
64
|
-
}
|
|
65
|
-
`,"getStyles"),te=ee,Te={parser:Or,db:S,renderer:re,styles:te};export{Te as diagram};
|
|
66
|
-
//# sourceMappingURL=gitGraphDiagram-GW3U2K7C-Cj2lmB3x.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{w as i,a as l,L as n}from"./chunk-QMGIS6GS-BWLFw-Hy.js";import{j as e}from"./jsx-runtime-EKYJJIwR.js";import{E as m}from"./index-b0d7UQHf.js";import{E as a}from"./epic-video-DrsQs50N.js";import{G as c}from"./error-boundary-BYcSvQVL.js";import{M as p,E as d}from"./mdx-C1V-NWR7.js";import{c as x}from"./misc-DMGaKniW.js";import{P as h,u as f}from"./progress-p0j4JsHW.js";import"./index-C2wOQTC_.js";import"./tooltip-CV1w4P-j.js";import"./index-X8I_KyHj.js";import"./pe-K0-AI5Hd.js";import"./online-CdmAkYlF.js";import"./loading-hChTm018.js";import"./user-B55yUQs4.js";import"./workshop-config-BTMrjnKt.js";import"./debug-build-Dv-lEFrZ.js";import"./clsx-B-dksMZM.js";import"./progress-bar-CiSKG9NB.js";function u({exercise:o}){const r=f(o.exerciseNumber);return e.jsx("li",{children:e.jsxs(n,{className:x("relative flex items-center gap-4 px-4 py-3 text-lg font-semibold transition after:absolute after:right-10 after:-translate-x-2 after:opacity-0 after:transition after:content-['→'] hover:bg-gray-50 hover:after:translate-x-0 hover:after:opacity-100 dark:hover:bg-white/5",r),to:`${o.exerciseNumber.toString().padStart(2,"0")}`,children:[e.jsx("span",{className:"text-xs font-normal tabular-nums opacity-50",children:o.exerciseNumber}),e.jsx("span",{children:o.title})]})},o.exerciseNumber)}const b={h1:()=>null},$=i(function({loaderData:r}){const t=e.jsxs("ul",{className:"flex flex-col divide-y divide-border dark:divide-border/50",children:[e.jsx("strong",{className:"px-10 pb-3 font-mono text-xs uppercase",children:"Exercises"}),r.exercises.map(s=>e.jsx(u,{exercise:s},s.exerciseNumber))]});return e.jsxs("main",{className:"relative flex h-full w-full max-w-5xl flex-col justify-between border-r md:w-3/4 xl:w-2/3",children:[e.jsxs("article",{id:r.articleId,className:"shadow-on-scrollbox flex w-full flex-1 flex-col gap-12 overflow-y-scroll px-3 py-4 pt-6 scrollbar-thin scrollbar-thumb-scrollbar md:px-10 md:py-12 md:pt-16",children:[e.jsx("div",{children:e.jsx("h1",{className:"px-10 text-[clamp(3rem,6vw,7.5rem)] font-extrabold leading-none",children:r.title})}),e.jsxs("div",{className:"w-full max-w-none scroll-pt-6 border-t px-3 pt-3 md:px-10 md:pt-8",children:[e.jsx("h2",{className:"pb-5 font-mono text-xs font-semibold uppercase",children:"Intro"}),r.workshopReadme.compiled.status==="success"&&r.workshopReadme.compiled.code?e.jsx(a,{epicVideoInfosPromise:r.epicVideoInfosPromise,children:e.jsx("div",{className:"prose dark:prose-invert sm:prose-lg",children:e.jsx(p,{code:r.workshopReadme.compiled.code,components:b})})}):r.workshopReadme.compiled.status==="error"?e.jsxs("div",{className:"text-red-500",children:["There was an error:",e.jsx("pre",{children:r.workshopReadme.compiled.error})]}):"No instructions yet..."]}),e.jsx("div",{className:"pb-5 pt-10",children:r.workshopReadme.compiled.status==="success"&&r.workshopReadme.compiled.code&&r.workshopReadme.compiled.code.length>500?t:null})]}),e.jsx(m,{elementQuery:`#${r.articleId}`}),e.jsx(h,{type:"workshop-instructions",className:"h-14 border-t px-6"}),e.jsx("div",{className:"flex h-16 justify-center border-t",children:e.jsx(d,{file:r.workshopReadme.file,relativePath:r.workshopReadme.relativePath})})]})}),D=l(function(){return e.jsx(c,{})});export{D as ErrorBoundary,$ as default};
|
|
2
|
-
//# sourceMappingURL=index-RihCoVxF.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{_ as o,l as e,K as p,e as m,L as s}from"./mermaid.core-fpeG0vyG.js";import{p as n}from"./treemap-6Y5VK53G-CUOI0-gE.js";import"./mdx-C1V-NWR7.js";import"./jsx-runtime-EKYJJIwR.js";import"./clsx-B-dksMZM.js";import"./chunk-QMGIS6GS-BWLFw-Hy.js";import"./index-X8I_KyHj.js";import"./epic-video-DrsQs50N.js";import"./index-C2wOQTC_.js";import"./misc-DMGaKniW.js";import"./tooltip-CV1w4P-j.js";import"./pe-K0-AI5Hd.js";import"./online-CdmAkYlF.js";import"./loading-hChTm018.js";import"./user-B55yUQs4.js";import"./workshop-config-BTMrjnKt.js";import"./progress-bar-CiSKG9NB.js";import"./_baseUniq-Xeo5oGnZ.js";import"./_basePickBy-DqYMxTXz.js";import"./clone-DvHvfmHj.js";var g={parse:o(async r=>{const t=await n("info",r);e.debug(t)},"parse")},v={version:s.version+""},d=o(()=>v.version,"getVersion"),c={getVersion:d},l=o((r,t,i)=>{e.debug(`rendering info diagram
|
|
2
|
-
`+r);const a=p(t);m(a,100,400,!0),a.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${i}`)},"draw"),f={draw:l},T={parser:g,db:c,renderer:f};export{T as diagram};
|
|
3
|
-
//# sourceMappingURL=infoDiagram-XT3IWWJI-D4c6fmH4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-Cr8Tpjqn.js","imports":["/assets/jsx-runtime-EKYJJIwR.js","/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/index-X8I_KyHj.js","/assets/debug-build-Dv-lEFrZ.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":true,"module":"/assets/root-GwgcZMdM.js","imports":["/assets/jsx-runtime-EKYJJIwR.js","/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/index-X8I_KyHj.js","/assets/debug-build-Dv-lEFrZ.js","/assets/misc-DMGaKniW.js","/assets/pe-K0-AI5Hd.js","/assets/error-boundary-BYcSvQVL.js","/assets/progress-bar-CiSKG9NB.js","/assets/index-DUUFZbCZ.js","/assets/tooltip-CV1w4P-j.js","/assets/index-C2wOQTC_.js","/assets/presence-8O8Majqv.js","/assets/seo-t5J-DRxw.js","/assets/clsx-B-dksMZM.js","/assets/online-CdmAkYlF.js"],"css":[]},"routes/$":{"id":"routes/$","parentId":"root","path":"*","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":true,"module":"/assets/_-DXQUlDnV.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/error-boundary-BYcSvQVL.js","/assets/misc-DMGaKniW.js","/assets/debug-build-Dv-lEFrZ.js","/assets/clsx-B-dksMZM.js"],"css":[]},"routes/_app+/_layout":{"id":"routes/_app+/_layout","parentId":"root","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/_layout-CDGH39Ua.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/clsx-B-dksMZM.js","/assets/pe-K0-AI5Hd.js","/assets/misc-DMGaKniW.js","/assets/product-DvumXuTG.js","/assets/revalidation-ws-C55Xe0tW.js","/assets/tooltip-CV1w4P-j.js","/assets/index-B3jB1sG6.js","/assets/user-B55yUQs4.js","/assets/workshop-config-BTMrjnKt.js","/assets/online-CdmAkYlF.js","/assets/presence-8O8Majqv.js","/assets/progress-p0j4JsHW.js","/assets/index-C2wOQTC_.js","/assets/index-X8I_KyHj.js"],"css":[]},"routes/_app+/account":{"id":"routes/_app+/account","parentId":"routes/_app+/_layout","path":"account","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/account-qCBiQeB6.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/button-qLg3tI6g.js","/assets/misc-DMGaKniW.js","/assets/tooltip-CV1w4P-j.js","/assets/user-B55yUQs4.js","/assets/workshop-config-BTMrjnKt.js","/assets/clsx-B-dksMZM.js","/assets/index-X8I_KyHj.js"],"css":[]},"routes/_app+/app.$appName+/$":{"id":"routes/_app+/app.$appName+/$","parentId":"routes/_app+/_layout","path":"app/:appName/*","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/_-l0sNRNKZ.js","imports":[],"css":[]},"routes/_app+/app.$appName+/api.$":{"id":"routes/_app+/app.$appName+/api.$","parentId":"routes/_app+/_layout","path":"app/:appName/api/*","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api._-l0sNRNKZ.js","imports":[],"css":[]},"routes/_app+/app.$appName+/epic_ws[.js]":{"id":"routes/_app+/app.$appName+/epic_ws[.js]","parentId":"routes/_app+/_layout","path":"app/:appName/epic_ws.js","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/epic_ws_.js_-l0sNRNKZ.js","imports":[],"css":[]},"routes/_app+/app.$appName+/index":{"id":"routes/_app+/app.$appName+/index","parentId":"routes/_app+/_layout","path":"app/:appName","index":true,"hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/index-l0sNRNKZ.js","imports":[],"css":[]},"routes/_app+/app.$appName+/test.$testName":{"id":"routes/_app+/app.$appName+/test.$testName","parentId":"routes/_app+/_layout","path":"app/:appName/test/:testName","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/test._testName-l0sNRNKZ.js","imports":[],"css":[]},"routes/_app+/app.$appName+/test.epic_ws[.js]":{"id":"routes/_app+/app.$appName+/test.epic_ws[.js]","parentId":"routes/_app+/_layout","path":"app/:appName/test/epic_ws.js","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/test.epic_ws_.js_-l0sNRNKZ.js","imports":[],"css":[]},"routes/_app+/app.epic_ws[.js]":{"id":"routes/_app+/app.epic_ws[.js]","parentId":"routes/_app+/_layout","path":"app/epic_ws.js","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/app.epic_ws_.js_-l0sNRNKZ.js","imports":[],"css":[]},"routes/_app+/discord":{"id":"routes/_app+/discord","parentId":"routes/_app+/_layout","path":"discord","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/discord-B5ibyCsk.js","imports":["/assets/discord-C5qZj1bn.js","/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/misc-DMGaKniW.js","/assets/clsx-B-dksMZM.js","/assets/user-B55yUQs4.js","/assets/workshop-config-BTMrjnKt.js"],"css":[]},"routes/_app+/exercise+/_layout":{"id":"routes/_app+/exercise+/_layout","parentId":"routes/_app+/_layout","path":"exercise","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/_layout-OwijHLOg.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js"],"css":[]},"routes/_app+/exercise+/$exerciseNumber":{"id":"routes/_app+/exercise+/$exerciseNumber","parentId":"routes/_app+/exercise+/_layout","path":":exerciseNumber","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":true,"module":"/assets/_exerciseNumber-BgSUxBTb.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/index-b0d7UQHf.js","/assets/epic-video-DrsQs50N.js","/assets/revalidation-ws-C55Xe0tW.js","/assets/mdx-C1V-NWR7.js","/assets/progress-p0j4JsHW.js","/assets/misc-DMGaKniW.js","/assets/seo-t5J-DRxw.js","/assets/index-C2wOQTC_.js","/assets/tooltip-CV1w4P-j.js","/assets/index-X8I_KyHj.js","/assets/pe-K0-AI5Hd.js","/assets/online-CdmAkYlF.js","/assets/loading-hChTm018.js","/assets/user-B55yUQs4.js","/assets/workshop-config-BTMrjnKt.js","/assets/clsx-B-dksMZM.js","/assets/progress-bar-CiSKG9NB.js"],"css":["/assets/epic-video-D2Xftn6t.css"]},"routes/_app+/exercise+/$exerciseNumber_.$stepNumber":{"id":"routes/_app+/exercise+/$exerciseNumber_.$stepNumber","parentId":"routes/_app+/exercise+/_layout","path":":exerciseNumber/:stepNumber","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":true,"module":"/assets/_exerciseNumber_._stepNumber-BCyDrRzF.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/misc-DMGaKniW.js","/assets/clsx-B-dksMZM.js"],"css":[]},"routes/_app+/exercise+/$exerciseNumber_.$stepNumber.$type+/_layout":{"id":"routes/_app+/exercise+/$exerciseNumber_.$stepNumber.$type+/_layout","parentId":"routes/_app+/exercise+/$exerciseNumber_.$stepNumber","path":":type","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":true,"module":"/assets/_layout-DHP6b_3N.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/index-b0d7UQHf.js","/assets/error-boundary-BYcSvQVL.js","/assets/nav-chevrons-yPEQtJRR.js","/assets/revalidation-ws-C55Xe0tW.js","/assets/mdx-C1V-NWR7.js","/assets/progress-p0j4JsHW.js","/assets/set-playground-CjYb0GO7.js","/assets/misc-DMGaKniW.js","/assets/seo-t5J-DRxw.js","/assets/epic-video-DrsQs50N.js","/assets/tooltip-CV1w4P-j.js","/assets/index-C2wOQTC_.js","/assets/index-B3jB1sG6.js","/assets/debug-build-Dv-lEFrZ.js","/assets/clsx-B-dksMZM.js","/assets/index-X8I_KyHj.js","/assets/progress-bar-CiSKG9NB.js","/assets/pe-K0-AI5Hd.js","/assets/index-BgRgeMAS.js","/assets/online-CdmAkYlF.js","/assets/loading-hChTm018.js","/assets/user-B55yUQs4.js","/assets/workshop-config-BTMrjnKt.js"],"css":["/assets/epic-video-D2Xftn6t.css"]},"routes/_app+/exercise+/$exerciseNumber_.$stepNumber.$type+/app":{"id":"routes/_app+/exercise+/$exerciseNumber_.$stepNumber.$type+/app","parentId":"routes/_app+/exercise+/$exerciseNumber_.$stepNumber.$type+/_layout","path":"app","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/app-Bq35DKfH.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/preview-BMe30o1P.js","/assets/misc-DMGaKniW.js","/assets/clsx-B-dksMZM.js","/assets/button-qLg3tI6g.js","/assets/loading-hChTm018.js","/assets/index-C2wOQTC_.js","/assets/tooltip-CV1w4P-j.js","/assets/index-X8I_KyHj.js","/assets/pe-K0-AI5Hd.js","/assets/progress-bar-CiSKG9NB.js"],"css":[]},"routes/_app+/exercise+/$exerciseNumber_.$stepNumber.$type+/index":{"id":"routes/_app+/exercise+/$exerciseNumber_.$stepNumber.$type+/index","parentId":"routes/_app+/exercise+/$exerciseNumber_.$stepNumber.$type+/_layout","index":true,"hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":true,"module":"/assets/index-BoWeyenN.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/tooltip-CV1w4P-j.js","/assets/index-BgRgeMAS.js","/assets/clsx-B-dksMZM.js","/assets/diff-BpCQobQG.js","/assets/error-boundary-BYcSvQVL.js","/assets/misc-DMGaKniW.js","/assets/loading-hChTm018.js","/assets/discord-C5qZj1bn.js","/assets/online-CdmAkYlF.js","/assets/index-DUUFZbCZ.js","/assets/set-playground-CjYb0GO7.js","/assets/tests-BUBNLClK.js","/assets/preview-BMe30o1P.js","/assets/index-X8I_KyHj.js","/assets/index-B3jB1sG6.js","/assets/accordion-D_eImo-i.js","/assets/mdx-C1V-NWR7.js","/assets/epic-video-DrsQs50N.js","/assets/index-C2wOQTC_.js","/assets/pe-K0-AI5Hd.js","/assets/user-B55yUQs4.js","/assets/workshop-config-BTMrjnKt.js","/assets/progress-bar-CiSKG9NB.js","/assets/revalidation-ws-C55Xe0tW.js","/assets/debug-build-Dv-lEFrZ.js","/assets/use-event-source-BgizXd-8.js","/assets/button-qLg3tI6g.js"],"css":["/assets/epic-video-D2Xftn6t.css"]},"routes/_app+/exercise+/$exerciseNumber_.$stepNumber.$type+/test":{"id":"routes/_app+/exercise+/$exerciseNumber_.$stepNumber.$type+/test","parentId":"routes/_app+/exercise+/$exerciseNumber_.$stepNumber.$type+/_layout","path":"test","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/test-CS7gnh85.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/tests-BUBNLClK.js","/assets/epic-video-DrsQs50N.js","/assets/index-C2wOQTC_.js","/assets/misc-DMGaKniW.js","/assets/clsx-B-dksMZM.js","/assets/tooltip-CV1w4P-j.js","/assets/index-X8I_KyHj.js","/assets/pe-K0-AI5Hd.js","/assets/online-CdmAkYlF.js","/assets/loading-hChTm018.js","/assets/user-B55yUQs4.js","/assets/workshop-config-BTMrjnKt.js","/assets/accordion-D_eImo-i.js","/assets/index-BgRgeMAS.js","/assets/index-B3jB1sG6.js","/assets/use-event-source-BgizXd-8.js","/assets/set-playground-CjYb0GO7.js","/assets/progress-bar-CiSKG9NB.js"],"css":["/assets/epic-video-D2Xftn6t.css"]},"routes/_app+/exercise+/$exerciseNumber_.$stepNumber.index":{"id":"routes/_app+/exercise+/$exerciseNumber_.$stepNumber.index","parentId":"routes/_app+/exercise+/$exerciseNumber_.$stepNumber","index":true,"hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/_exerciseNumber_._stepNumber.index-l0sNRNKZ.js","imports":[],"css":[]},"routes/_app+/exercise+/$exerciseNumber_.finished":{"id":"routes/_app+/exercise+/$exerciseNumber_.finished","parentId":"routes/_app+/exercise+/_layout","path":":exerciseNumber/finished","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/_exerciseNumber_.finished-CZRzl_L3.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/index-b0d7UQHf.js","/assets/epic-video-DrsQs50N.js","/assets/misc-DMGaKniW.js","/assets/loading-hChTm018.js","/assets/nav-chevrons-yPEQtJRR.js","/assets/revalidation-ws-C55Xe0tW.js","/assets/mdx-C1V-NWR7.js","/assets/progress-p0j4JsHW.js","/assets/index-C2wOQTC_.js","/assets/online-CdmAkYlF.js","/assets/seo-t5J-DRxw.js","/assets/user-B55yUQs4.js","/assets/workshop-config-BTMrjnKt.js","/assets/clsx-B-dksMZM.js","/assets/index-X8I_KyHj.js","/assets/progress-bar-CiSKG9NB.js","/assets/pe-K0-AI5Hd.js","/assets/tooltip-CV1w4P-j.js"],"css":["/assets/epic-video-D2Xftn6t.css"]},"routes/_app+/finished":{"id":"routes/_app+/finished","parentId":"routes/_app+/_layout","path":"finished","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/finished-B_tArAIt.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/index-b0d7UQHf.js","/assets/epic-video-DrsQs50N.js","/assets/misc-DMGaKniW.js","/assets/loading-hChTm018.js","/assets/nav-chevrons-yPEQtJRR.js","/assets/revalidation-ws-C55Xe0tW.js","/assets/mdx-C1V-NWR7.js","/assets/online-CdmAkYlF.js","/assets/seo-t5J-DRxw.js","/assets/progress-p0j4JsHW.js","/assets/index-C2wOQTC_.js","/assets/user-B55yUQs4.js","/assets/workshop-config-BTMrjnKt.js","/assets/clsx-B-dksMZM.js","/assets/index-X8I_KyHj.js","/assets/progress-bar-CiSKG9NB.js","/assets/pe-K0-AI5Hd.js","/assets/tooltip-CV1w4P-j.js"],"css":["/assets/epic-video-D2Xftn6t.css"]},"routes/_app+/index":{"id":"routes/_app+/index","parentId":"routes/_app+/_layout","index":true,"hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":true,"module":"/assets/index-RihCoVxF.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/index-b0d7UQHf.js","/assets/epic-video-DrsQs50N.js","/assets/error-boundary-BYcSvQVL.js","/assets/mdx-C1V-NWR7.js","/assets/misc-DMGaKniW.js","/assets/progress-p0j4JsHW.js","/assets/index-C2wOQTC_.js","/assets/tooltip-CV1w4P-j.js","/assets/index-X8I_KyHj.js","/assets/pe-K0-AI5Hd.js","/assets/online-CdmAkYlF.js","/assets/loading-hChTm018.js","/assets/user-B55yUQs4.js","/assets/workshop-config-BTMrjnKt.js","/assets/debug-build-Dv-lEFrZ.js","/assets/clsx-B-dksMZM.js","/assets/progress-bar-CiSKG9NB.js"],"css":["/assets/epic-video-D2Xftn6t.css"]},"routes/_app+/l":{"id":"routes/_app+/l","parentId":"routes/_app+/_layout","path":"l","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/l-joCOHFz9.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js"],"css":[]},"routes/_app+/login":{"id":"routes/_app+/login","parentId":"routes/_app+/_layout","path":"login","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/login--oVidelE.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/use-event-source-BgizXd-8.js","/assets/button-qLg3tI6g.js","/assets/loading-hChTm018.js","/assets/product-DvumXuTG.js","/assets/workshop-config-BTMrjnKt.js","/assets/index-C2wOQTC_.js","/assets/clsx-B-dksMZM.js","/assets/misc-DMGaKniW.js","/assets/tooltip-CV1w4P-j.js","/assets/index-X8I_KyHj.js","/assets/pe-K0-AI5Hd.js"],"css":[]},"routes/_app+/preferences":{"id":"routes/_app+/preferences","parentId":"routes/_app+/_layout","path":"preferences","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/preferences-NC4tUDDn.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/button-qLg3tI6g.js","/assets/misc-DMGaKniW.js","/assets/tooltip-CV1w4P-j.js","/assets/clsx-B-dksMZM.js","/assets/index-X8I_KyHj.js"],"css":[]},"routes/_app+/support":{"id":"routes/_app+/support","parentId":"routes/_app+/_layout","path":"support","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/support-CTTJCpEG.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js"],"css":[]},"routes/_app+/workspace-structure":{"id":"routes/_app+/workspace-structure","parentId":"routes/_app+/_layout","path":"workspace-structure","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/workspace-structure-D7_Qs8WO.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/button-qLg3tI6g.js","/assets/clsx-B-dksMZM.js"],"css":[]},"routes/admin+/_layout":{"id":"routes/admin+/_layout","parentId":"root","path":"admin","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/_layout-D9IdFGCg.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js"],"css":[]},"routes/admin+/apps":{"id":"routes/admin+/apps","parentId":"routes/admin+/_layout","path":"apps","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/apps-l0sNRNKZ.js","imports":[],"css":[]},"routes/admin+/cache":{"id":"routes/admin+/cache","parentId":"routes/admin+/_layout","path":"cache","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/cache-l0sNRNKZ.js","imports":[],"css":[]},"routes/admin+/index":{"id":"routes/admin+/index","parentId":"routes/admin+/_layout","index":true,"hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/index-P3FKbjmW.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/misc-DMGaKniW.js","/assets/tooltip-CV1w4P-j.js","/assets/progress-p0j4JsHW.js","/assets/clsx-B-dksMZM.js","/assets/index-X8I_KyHj.js","/assets/pe-K0-AI5Hd.js"],"css":[]},"routes/admin+/notifications":{"id":"routes/admin+/notifications","parentId":"routes/admin+/_layout","path":"notifications","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/notifications-l0sNRNKZ.js","imports":[],"css":[]},"routes/admin+/version":{"id":"routes/admin+/version","parentId":"routes/admin+/_layout","path":"version","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/version-DlYmPU2-.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/workshop-config-BTMrjnKt.js"],"css":[]},"routes/apps":{"id":"routes/apps","parentId":"root","path":"apps","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/apps-DP2rzg_V.js","imports":[],"css":[]},"routes/diff":{"id":"routes/diff","parentId":"root","path":"diff","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/diff-D84Z2275.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/misc-DMGaKniW.js","/assets/diff-BpCQobQG.js","/assets/nav-chevrons-yPEQtJRR.js","/assets/clsx-B-dksMZM.js","/assets/accordion-D_eImo-i.js","/assets/tooltip-CV1w4P-j.js","/assets/index-X8I_KyHj.js","/assets/index-BgRgeMAS.js","/assets/index-B3jB1sG6.js","/assets/mdx-C1V-NWR7.js","/assets/epic-video-DrsQs50N.js","/assets/index-C2wOQTC_.js","/assets/pe-K0-AI5Hd.js","/assets/online-CdmAkYlF.js","/assets/loading-hChTm018.js","/assets/user-B55yUQs4.js","/assets/workshop-config-BTMrjnKt.js","/assets/progress-bar-CiSKG9NB.js","/assets/revalidation-ws-C55Xe0tW.js"],"css":["/assets/epic-video-D2Xftn6t.css"]},"routes/exercises":{"id":"routes/exercises","parentId":"root","path":"exercises","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/exercises-l0sNRNKZ.js","imports":[],"css":[]},"routes/launch-editor":{"id":"routes/launch-editor","parentId":"root","path":"launch-editor","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/launch-editor-l0sNRNKZ.js","imports":[],"css":[]},"routes/login-sse":{"id":"routes/login-sse","parentId":"root","path":"login-sse","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/login-sse-l0sNRNKZ.js","imports":[],"css":[]},"routes/og":{"id":"routes/og","parentId":"root","path":"og","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/og-l0sNRNKZ.js","imports":[],"css":[]},"routes/onboarding":{"id":"routes/onboarding","parentId":"root","path":"onboarding","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/onboarding-B8y4KZIs.js","imports":["/assets/chunk-QMGIS6GS-BWLFw-Hy.js","/assets/jsx-runtime-EKYJJIwR.js","/assets/button-qLg3tI6g.js","/assets/epic-video-DrsQs50N.js","/assets/clsx-B-dksMZM.js","/assets/index-C2wOQTC_.js","/assets/misc-DMGaKniW.js","/assets/tooltip-CV1w4P-j.js","/assets/index-X8I_KyHj.js","/assets/pe-K0-AI5Hd.js","/assets/online-CdmAkYlF.js","/assets/loading-hChTm018.js","/assets/user-B55yUQs4.js","/assets/workshop-config-BTMrjnKt.js"],"css":["/assets/epic-video-D2Xftn6t.css"]},"routes/processes":{"id":"routes/processes","parentId":"root","path":"processes","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/processes-l0sNRNKZ.js","imports":[],"css":[]},"routes/progress":{"id":"routes/progress","parentId":"root","path":"progress","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/progress-l0sNRNKZ.js","imports":[],"css":[]},"routes/resources+/healthcheck":{"id":"routes/resources+/healthcheck","parentId":"root","path":"resources/healthcheck","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/healthcheck-l0sNRNKZ.js","imports":[],"css":[]},"routes/resources+/lookout":{"id":"routes/resources+/lookout","parentId":"root","path":"resources/lookout","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/lookout-l0sNRNKZ.js","imports":[],"css":[]},"routes/robots[.]txt":{"id":"routes/robots[.]txt","parentId":"root","path":"robots.txt","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/robots_._txt-l0sNRNKZ.js","imports":[],"css":[]},"routes/set-playground":{"id":"routes/set-playground","parentId":"root","path":"set-playground","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/set-playground-l0sNRNKZ.js","imports":[],"css":[]},"routes/sitemap[.]xml":{"id":"routes/sitemap[.]xml","parentId":"root","path":"sitemap.xml","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/sitemap_._xml-l0sNRNKZ.js","imports":[],"css":[]},"routes/start":{"id":"routes/start","parentId":"root","path":"start","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/start-l0sNRNKZ.js","imports":[],"css":[]},"routes/test":{"id":"routes/test","parentId":"root","path":"test","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/test-l0sNRNKZ.js","imports":[],"css":[]},"routes/theme/index":{"id":"routes/theme/index","parentId":"root","path":"theme","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/index-DP2rzg_V.js","imports":[],"css":[]},"routes/video-player/index":{"id":"routes/video-player/index","parentId":"root","path":"video-player","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/index-K6Dvbx-E.js","imports":[],"css":[]}},"url":"/assets/manifest-fa3cf8f0.js","version":"fa3cf8f0"};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-fpeG0vyG.js","assets/chunk-QMGIS6GS-BWLFw-Hy.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{j as u,r as it}from"./jsx-runtime-EKYJJIwR.js";import{c as L}from"./clsx-B-dksMZM.js";import{g as st,L as Y,d as nt,r as S,n as rt,c as ot}from"./chunk-QMGIS6GS-BWLFw-Hy.js";import{a as at}from"./index-X8I_KyHj.js";import{D as ht,V as lt}from"./epic-video-DrsQs50N.js";import{I as ct,c as ut,A as ft,H as j}from"./misc-DMGaKniW.js";import{s as dt}from"./progress-bar-CiSKG9NB.js";import{u as pt}from"./pe-K0-AI5Hd.js";import{a as mt}from"./index-C2wOQTC_.js";function gt(){const o=st("root");if(!o)throw new Error("useApps requires a data object from the root loader");return o.apps}function J(o){const t=nt();return S.useEffect(()=>{t.state==="idle"&&t.data!=null&&o?.("fetcher-done")},[t,o]),t}function bt({file:o,appFile:t,appName:e,syncTo:i,line:s,column:n,children:r,onUpdate:a}){const h=J(a),c=pt(),p=typeof t=="string"?[t]:t,f=o?"file":t?"appFile":"",l=i?.file?"file":i?.appFile?"appFile":"";return u.jsxs(h.Form,{action:"/launch-editor",method:"POST",className:"flex items-center",children:[c,dt,u.jsx("input",{type:"hidden",name:"line",value:s}),u.jsx("input",{type:"hidden",name:"column",value:n}),u.jsx("input",{type:"hidden",name:"type",value:f}),u.jsx("input",{type:"hidden",name:"file",value:o}),u.jsx("input",{type:"hidden",name:"appName",value:e}),p?.map(d=>u.jsx("input",{type:"hidden",name:"appFile",value:d},d)),i?u.jsxs(u.Fragment,{children:[u.jsx("input",{type:"hidden",name:"syncTo.type",value:l}),u.jsx("input",{type:"hidden",name:"syncTo.file",value:i.file}),u.jsx("input",{type:"hidden",name:"syncTo.appName",value:i.appName}),u.jsx("input",{type:"hidden",name:"syncTo.appFile",value:i.appFile})]}):null,u.jsx("button",{type:"submit",className:L("launch_button",h.state==="idle"?null:"cursor-progress",h.data?.status==="error"?"cursor-not-allowed":null),children:r})]})}function wt({file:o,appFile:t,appName:e,line:i,children:s}){const n=gt(),r=mt();if(Array.isArray(t))return u.jsx("div",{children:"Cannot open more than one file"});if(o){const d=g=>g.replace(/\\/g,"/"),_=ENV.EPICSHOP_GITHUB_ROOT.replace("/tree/","/blob/");return u.jsx("a",{className:"launch_button !no-underline",href:d(o).replace(d(ENV.EPICSHOP_CONTEXT_CWD),_)+(i?`#L${i}`:""),rel:"noreferrer",target:"_blank",children:s})}const a=n.find(d=>d.name===e),h=ENV.EPICSHOP_GITHUB_ROOT.replace("/tree/","/blob/"),[c,p]=t?t.split(","):["",""],f=i||(p?Number(p):void 0),l=[...a?.relativePath.split(r.separator)??[],c].join("/");return u.jsx("a",{className:"launch_button !no-underline",href:`${h}/${l}${f?`#L${f}`:""}`,rel:"noreferrer",target:"_blank",children:s})}function $t({appFile:o="README.mdx",appName:t,file:e,relativePath:i}){const s=J(),n=a=>{if(!a.altKey||ENV.EPICSHOP_DEPLOYED)return;a.preventDefault();const h=new FormData,c=e?"file":"appFile";h.append(c,e??o),h.append("type",c),t&&h.append("appName",t),s.submit(h,{method:"POST",action:"/launch-editor"})},r=ENV.EPICSHOP_GITHUB_ROOT.replace(/\/tree\/|\/blob\//,"/edit/");return u.jsxs(Y,{className:"self-center font-mono text-sm",onClick:n,target:"_blank",to:`${r}/${i}/${o}`.replace(/\\/g,"/"),children:[u.jsx("span",{className:"block md:hidden",children:"Edit on GitHub"}),u.jsx("span",{className:"hidden md:block",children:"Edit this page on GitHub"})]})}const K=ENV.EPICSHOP_DEPLOYED?wt:bt,F=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Z=new Set,H=typeof process=="object"&&process?process:{},Q=(o,t,e,i)=>{typeof H.emitWarning=="function"?H.emitWarning(o,t,e,i):console.error(`[${e}] ${t}: ${o}`)};let z=globalThis.AbortController,k=globalThis.AbortSignal;if(typeof z>"u"){k=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,s){this._onabort.push(s)}},z=class{constructor(){t()}signal=new k;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(const s of this.signal._onabort)s(i);this.signal.onabort?.(i)}}};let o=H.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const t=()=>{o&&(o=!1,Q("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}const _t=o=>!Z.has(o),O=o=>o&&o===Math.floor(o)&&o>0&&isFinite(o),tt=o=>O(o)?o<=Math.pow(2,8)?Uint8Array:o<=Math.pow(2,16)?Uint16Array:o<=Math.pow(2,32)?Uint32Array:o<=Number.MAX_SAFE_INTEGER?D:null:null;class D extends Array{constructor(t){super(t),this.fill(0)}}class T{heap;length;static#h=!1;static create(t){const e=tt(t);if(!e)return[];T.#h=!0;const i=new T(t,e);return T.#h=!1,i}constructor(t,e){if(!T.#h)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class ${#h;#u;#m;#j;#g;#R;#P;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#n;#b;#s;#i;#t;#l;#f;#a;#r;#w;#o;#_;#y;#d;#E;#A;#c;#D;static unsafeExposeInternals(t){return{starts:t.#y,ttls:t.#d,sizes:t.#_,keyMap:t.#s,keyList:t.#i,valList:t.#t,next:t.#l,prev:t.#f,get head(){return t.#a},get tail(){return t.#r},free:t.#w,isBackgroundFetch:e=>t.#e(e),backgroundFetch:(e,i,s,n)=>t.#N(e,i,s,n),moveToTail:e=>t.#C(e),indexes:e=>t.#S(e),rindexes:e=>t.#v(e),isStale:e=>t.#p(e)}}get max(){return this.#h}get maxSize(){return this.#u}get calculatedSize(){return this.#b}get size(){return this.#n}get fetchMethod(){return this.#R}get memoMethod(){return this.#P}get dispose(){return this.#m}get onInsert(){return this.#j}get disposeAfter(){return this.#g}constructor(t){const{max:e=0,ttl:i,ttlResolution:s=1,ttlAutopurge:n,updateAgeOnGet:r,updateAgeOnHas:a,allowStale:h,dispose:c,onInsert:p,disposeAfter:f,noDisposeOnSet:l,noUpdateTTL:d,maxSize:_=0,maxEntrySize:g=0,sizeCalculation:y,fetchMethod:m,memoMethod:w,noDeleteOnFetchRejection:v,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:C,ignoreFetchAbort:x}=t;if(e!==0&&!O(e))throw new TypeError("max option must be a nonnegative integer");const P=e?tt(e):Array;if(!P)throw new Error("invalid max value: "+e);if(this.#h=e,this.#u=_,this.maxEntrySize=g||this.#u,this.sizeCalculation=y,this.sizeCalculation){if(!this.#u&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(w!==void 0&&typeof w!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#P=w,m!==void 0&&typeof m!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#R=m,this.#A=!!m,this.#s=new Map,this.#i=new Array(e).fill(void 0),this.#t=new Array(e).fill(void 0),this.#l=new P(e),this.#f=new P(e),this.#a=0,this.#r=0,this.#w=T.create(e),this.#n=0,this.#b=0,typeof c=="function"&&(this.#m=c),typeof p=="function"&&(this.#j=p),typeof f=="function"?(this.#g=f,this.#o=[]):(this.#g=void 0,this.#o=void 0),this.#E=!!this.#m,this.#D=!!this.#j,this.#c=!!this.#g,this.noDisposeOnSet=!!l,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!v,this.allowStaleOnFetchRejection=!!E,this.allowStaleOnFetchAbort=!!C,this.ignoreFetchAbort=!!x,this.maxEntrySize!==0){if(this.#u!==0&&!O(this.#u))throw new TypeError("maxSize must be a positive integer if specified");if(!O(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#$()}if(this.allowStale=!!h,this.noDeleteOnStaleGet=!!b,this.updateAgeOnGet=!!r,this.updateAgeOnHas=!!a,this.ttlResolution=O(s)||s===0?s:1,this.ttlAutopurge=!!n,this.ttl=i||0,this.ttl){if(!O(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#M()}if(this.#h===0&&this.ttl===0&&this.#u===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#h&&!this.#u){const A="LRU_CACHE_UNBOUNDED";_t(A)&&(Z.add(A),Q("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",A,$))}}getRemainingTTL(t){return this.#s.has(t)?1/0:0}#M(){const t=new D(this.#h),e=new D(this.#h);this.#d=t,this.#y=e,this.#W=(n,r,a=F.now())=>{if(e[n]=r!==0?a:0,t[n]=r,r!==0&&this.ttlAutopurge){const h=setTimeout(()=>{this.#p(n)&&this.#O(this.#i[n],"expire")},r+1);h.unref&&h.unref()}},this.#F=n=>{e[n]=t[n]!==0?F.now():0},this.#x=(n,r)=>{if(t[r]){const a=t[r],h=e[r];if(!a||!h)return;n.ttl=a,n.start=h,n.now=i||s();const c=n.now-h;n.remainingTTL=a-c}};let i=0;const s=()=>{const n=F.now();if(this.ttlResolution>0){i=n;const r=setTimeout(()=>i=0,this.ttlResolution);r.unref&&r.unref()}return n};this.getRemainingTTL=n=>{const r=this.#s.get(n);if(r===void 0)return 0;const a=t[r],h=e[r];if(!a||!h)return 1/0;const c=(i||s())-h;return a-c},this.#p=n=>{const r=e[n],a=t[n];return!!a&&!!r&&(i||s())-r>a}}#F=()=>{};#x=()=>{};#W=()=>{};#p=()=>!1;#$(){const t=new D(this.#h);this.#b=0,this.#_=t,this.#T=e=>{this.#b-=t[e],t[e]=0},this.#I=(e,i,s,n)=>{if(this.#e(i))return 0;if(!O(s))if(n){if(typeof n!="function")throw new TypeError("sizeCalculation must be a function");if(s=n(i,e),!O(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s},this.#z=(e,i,s)=>{if(t[e]=i,this.#u){const n=this.#u-t[e];for(;this.#b>n;)this.#L(!0)}this.#b+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#b)}}#T=t=>{};#z=(t,e,i)=>{};#I=(t,e,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#S({allowStale:t=this.allowStale}={}){if(this.#n)for(let e=this.#r;!(!this.#G(e)||((t||!this.#p(e))&&(yield e),e===this.#a));)e=this.#f[e]}*#v({allowStale:t=this.allowStale}={}){if(this.#n)for(let e=this.#a;!(!this.#G(e)||((t||!this.#p(e))&&(yield e),e===this.#r));)e=this.#l[e]}#G(t){return t!==void 0&&this.#s.get(this.#i[t])===t}*entries(){for(const t of this.#S())this.#t[t]!==void 0&&this.#i[t]!==void 0&&!this.#e(this.#t[t])&&(yield[this.#i[t],this.#t[t]])}*rentries(){for(const t of this.#v())this.#t[t]!==void 0&&this.#i[t]!==void 0&&!this.#e(this.#t[t])&&(yield[this.#i[t],this.#t[t]])}*keys(){for(const t of this.#S()){const e=this.#i[t];e!==void 0&&!this.#e(this.#t[t])&&(yield e)}}*rkeys(){for(const t of this.#v()){const e=this.#i[t];e!==void 0&&!this.#e(this.#t[t])&&(yield e)}}*values(){for(const t of this.#S())this.#t[t]!==void 0&&!this.#e(this.#t[t])&&(yield this.#t[t])}*rvalues(){for(const t of this.#v())this.#t[t]!==void 0&&!this.#e(this.#t[t])&&(yield this.#t[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,e={}){for(const i of this.#S()){const s=this.#t[i],n=this.#e(s)?s.__staleWhileFetching:s;if(n!==void 0&&t(n,this.#i[i],this))return this.get(this.#i[i],e)}}forEach(t,e=this){for(const i of this.#S()){const s=this.#t[i],n=this.#e(s)?s.__staleWhileFetching:s;n!==void 0&&t.call(e,n,this.#i[i],this)}}rforEach(t,e=this){for(const i of this.#v()){const s=this.#t[i],n=this.#e(s)?s.__staleWhileFetching:s;n!==void 0&&t.call(e,n,this.#i[i],this)}}purgeStale(){let t=!1;for(const e of this.#v({allowStale:!0}))this.#p(e)&&(this.#O(this.#i[e],"expire"),t=!0);return t}info(t){const e=this.#s.get(t);if(e===void 0)return;const i=this.#t[e],s=this.#e(i)?i.__staleWhileFetching:i;if(s===void 0)return;const n={value:s};if(this.#d&&this.#y){const r=this.#d[e],a=this.#y[e];if(r&&a){const h=r-(F.now()-a);n.ttl=h,n.start=Date.now()}}return this.#_&&(n.size=this.#_[e]),n}dump(){const t=[];for(const e of this.#S({allowStale:!0})){const i=this.#i[e],s=this.#t[e],n=this.#e(s)?s.__staleWhileFetching:s;if(n===void 0||i===void 0)continue;const r={value:n};if(this.#d&&this.#y){r.ttl=this.#d[e];const a=F.now()-this.#y[e];r.start=Math.floor(Date.now()-a)}this.#_&&(r.size=this.#_[e]),t.unshift([i,r])}return t}load(t){this.clear();for(const[e,i]of t){if(i.start){const s=Date.now()-i.start;i.start=F.now()-s}this.set(e,i.value,i)}}set(t,e,i={}){if(e===void 0)return this.delete(t),this;const{ttl:s=this.ttl,start:n,noDisposeOnSet:r=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:h}=i;let{noUpdateTTL:c=this.noUpdateTTL}=i;const p=this.#I(t,e,i.size||0,a);if(this.maxEntrySize&&p>this.maxEntrySize)return h&&(h.set="miss",h.maxEntrySizeExceeded=!0),this.#O(t,"set"),this;let f=this.#n===0?void 0:this.#s.get(t);if(f===void 0)f=this.#n===0?this.#r:this.#w.length!==0?this.#w.pop():this.#n===this.#h?this.#L(!1):this.#n,this.#i[f]=t,this.#t[f]=e,this.#s.set(t,f),this.#l[this.#r]=f,this.#f[f]=this.#r,this.#r=f,this.#n++,this.#z(f,p,h),h&&(h.set="add"),c=!1,this.#D&&this.#j?.(e,t,"add");else{this.#C(f);const l=this.#t[f];if(e!==l){if(this.#A&&this.#e(l)){l.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:d}=l;d!==void 0&&!r&&(this.#E&&this.#m?.(d,t,"set"),this.#c&&this.#o?.push([d,t,"set"]))}else r||(this.#E&&this.#m?.(l,t,"set"),this.#c&&this.#o?.push([l,t,"set"]));if(this.#T(f),this.#z(f,p,h),this.#t[f]=e,h){h.set="replace";const d=l&&this.#e(l)?l.__staleWhileFetching:l;d!==void 0&&(h.oldValue=d)}}else h&&(h.set="update");this.#D&&this.onInsert?.(e,t,e===l?"update":"replace")}if(s!==0&&!this.#d&&this.#M(),this.#d&&(c||this.#W(f,s,n),h&&this.#x(h,f)),!r&&this.#c&&this.#o){const l=this.#o;let d;for(;d=l?.shift();)this.#g?.(...d)}return this}pop(){try{for(;this.#n;){const t=this.#t[this.#a];if(this.#L(!0),this.#e(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#c&&this.#o){const t=this.#o;let e;for(;e=t?.shift();)this.#g?.(...e)}}}#L(t){const e=this.#a,i=this.#i[e],s=this.#t[e];return this.#A&&this.#e(s)?s.__abortController.abort(new Error("evicted")):(this.#E||this.#c)&&(this.#E&&this.#m?.(s,i,"evict"),this.#c&&this.#o?.push([s,i,"evict"])),this.#T(e),t&&(this.#i[e]=void 0,this.#t[e]=void 0,this.#w.push(e)),this.#n===1?(this.#a=this.#r=0,this.#w.length=0):this.#a=this.#l[e],this.#s.delete(i),this.#n--,e}has(t,e={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,n=this.#s.get(t);if(n!==void 0){const r=this.#t[n];if(this.#e(r)&&r.__staleWhileFetching===void 0)return!1;if(this.#p(n))s&&(s.has="stale",this.#x(s,n));else return i&&this.#F(n),s&&(s.has="hit",this.#x(s,n)),!0}else s&&(s.has="miss");return!1}peek(t,e={}){const{allowStale:i=this.allowStale}=e,s=this.#s.get(t);if(s===void 0||!i&&this.#p(s))return;const n=this.#t[s];return this.#e(n)?n.__staleWhileFetching:n}#N(t,e,i,s){const n=e===void 0?void 0:this.#t[e];if(this.#e(n))return n;const r=new z,{signal:a}=i;a?.addEventListener("abort",()=>r.abort(a.reason),{signal:r.signal});const h={signal:r.signal,options:i,context:s},c=(g,y=!1)=>{const{aborted:m}=r.signal,w=i.ignoreFetchAbort&&g!==void 0;if(i.status&&(m&&!y?(i.status.fetchAborted=!0,i.status.fetchError=r.signal.reason,w&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),m&&!w&&!y)return f(r.signal.reason);const v=d;return this.#t[e]===d&&(g===void 0?v.__staleWhileFetching?this.#t[e]=v.__staleWhileFetching:this.#O(t,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(t,g,h.options))),g},p=g=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=g),f(g)),f=g=>{const{aborted:y}=r.signal,m=y&&i.allowStaleOnFetchAbort,w=m||i.allowStaleOnFetchRejection,v=w||i.noDeleteOnFetchRejection,b=d;if(this.#t[e]===d&&(!v||b.__staleWhileFetching===void 0?this.#O(t,"fetch"):m||(this.#t[e]=b.__staleWhileFetching)),w)return i.status&&b.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),b.__staleWhileFetching;if(b.__returned===b)throw g},l=(g,y)=>{const m=this.#R?.(t,n,h);m&&m instanceof Promise&&m.then(w=>g(w===void 0?void 0:w),y),r.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(g(void 0),i.allowStaleOnFetchAbort&&(g=w=>c(w,!0)))})};i.status&&(i.status.fetchDispatched=!0);const d=new Promise(l).then(c,p),_=Object.assign(d,{__abortController:r,__staleWhileFetching:n,__returned:void 0});return e===void 0?(this.set(t,_,{...h.options,status:void 0}),e=this.#s.get(t)):this.#t[e]=_,_}#e(t){if(!this.#A)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof z}async fetch(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:r=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:h=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:p=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:l=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:_=this.allowStaleOnFetchAbort,context:g,forceRefresh:y=!1,status:m,signal:w}=e;if(!this.#A)return m&&(m.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:n,status:m});const v={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:n,ttl:r,noDisposeOnSet:a,size:h,sizeCalculation:c,noUpdateTTL:p,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:l,allowStaleOnFetchAbort:_,ignoreFetchAbort:d,status:m,signal:w};let b=this.#s.get(t);if(b===void 0){m&&(m.fetch="miss");const E=this.#N(t,b,v,g);return E.__returned=E}else{const E=this.#t[b];if(this.#e(E)){const N=i&&E.__staleWhileFetching!==void 0;return m&&(m.fetch="inflight",N&&(m.returnedStale=!0)),N?E.__staleWhileFetching:E.__returned=E}const C=this.#p(b);if(!y&&!C)return m&&(m.fetch="hit"),this.#C(b),s&&this.#F(b),m&&this.#x(m,b),E;const x=this.#N(t,b,v,g),A=x.__staleWhileFetching!==void 0&&i;return m&&(m.fetch=C?"stale":"refresh",A&&C&&(m.returnedStale=!0)),A?x.__staleWhileFetching:x.__returned=x}}async forceFetch(t,e={}){const i=await this.fetch(t,e);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(t,e={}){const i=this.#P;if(!i)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:n,...r}=e,a=this.get(t,r);if(!n&&a!==void 0)return a;const h=i(t,a,{options:r,context:s});return this.set(t,h,r),h}get(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:r}=e,a=this.#s.get(t);if(a!==void 0){const h=this.#t[a],c=this.#e(h);return r&&this.#x(r,a),this.#p(a)?(r&&(r.get="stale"),c?(r&&i&&h.__staleWhileFetching!==void 0&&(r.returnedStale=!0),i?h.__staleWhileFetching:void 0):(n||this.#O(t,"expire"),r&&i&&(r.returnedStale=!0),i?h:void 0)):(r&&(r.get="hit"),c?h.__staleWhileFetching:(this.#C(a),s&&this.#F(a),h))}else r&&(r.get="miss")}#H(t,e){this.#f[e]=t,this.#l[t]=e}#C(t){t!==this.#r&&(t===this.#a?this.#a=this.#l[t]:this.#H(this.#f[t],this.#l[t]),this.#H(this.#r,t),this.#r=t)}delete(t){return this.#O(t,"delete")}#O(t,e){let i=!1;if(this.#n!==0){const s=this.#s.get(t);if(s!==void 0)if(i=!0,this.#n===1)this.#U(e);else{this.#T(s);const n=this.#t[s];if(this.#e(n)?n.__abortController.abort(new Error("deleted")):(this.#E||this.#c)&&(this.#E&&this.#m?.(n,t,e),this.#c&&this.#o?.push([n,t,e])),this.#s.delete(t),this.#i[s]=void 0,this.#t[s]=void 0,s===this.#r)this.#r=this.#f[s];else if(s===this.#a)this.#a=this.#l[s];else{const r=this.#f[s];this.#l[r]=this.#l[s];const a=this.#l[s];this.#f[a]=this.#f[s]}this.#n--,this.#w.push(s)}}if(this.#c&&this.#o?.length){const s=this.#o;let n;for(;n=s?.shift();)this.#g?.(...n)}return i}clear(){return this.#U("delete")}#U(t){for(const e of this.#v({allowStale:!0})){const i=this.#t[e];if(this.#e(i))i.__abortController.abort(new Error("deleted"));else{const s=this.#i[e];this.#E&&this.#m?.(i,s,t),this.#c&&this.#o?.push([i,s,t])}}if(this.#s.clear(),this.#t.fill(void 0),this.#i.fill(void 0),this.#d&&this.#y&&(this.#d.fill(0),this.#y.fill(0)),this.#_&&this.#_.fill(0),this.#a=0,this.#r=0,this.#w.length=0,this.#b=0,this.#n=0,this.#c&&this.#o){const e=this.#o;let i;for(;i=e?.shift();)this.#g?.(...i)}}}var M={},R={},q;function yt(){if(q)return R;q=1,Object.defineProperty(R,"__esModule",{value:!0}),R.getMDXComponent=n,R.getMDXExport=r;var o=s(rt()),t=s(at()),e=s(it());function i(a){if(typeof WeakMap!="function")return null;var h=new WeakMap,c=new WeakMap;return(i=function(p){return p?c:h})(a)}function s(a,h){if(a&&a.__esModule)return a;if(a===null||typeof a!="object"&&typeof a!="function")return{default:a};var c=i(h);if(c&&c.has(a))return c.get(a);var p={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in a)if(l!=="default"&&{}.hasOwnProperty.call(a,l)){var d=f?Object.getOwnPropertyDescriptor(a,l):null;d&&(d.get||d.set)?Object.defineProperty(p,l,d):p[l]=a[l]}return p.default=a,c&&c.set(a,p),p}function n(a,h){return r(a,h).default}function r(a,h){const p={...{React:o,ReactDOM:t,_jsx_runtime:e},...h};return new Function(...Object.keys(p),a)(...Object.values(p))}return R}var V;function Et(){return V||(V=1,function(o){Object.defineProperty(o,"__esModule",{value:!0});var t=yt();Object.keys(t).forEach(function(e){e==="default"||e==="__esModule"||e in o&&o[e]===t[e]||Object.defineProperty(o,e,{enumerable:!0,get:function(){return t[e]}})})}(M)),M}var W,B;function St(){return B||(B=1,W=Et()),W}var vt=St();const Ot="modulepreload",xt=function(o){return"/"+o},X={},At=function(t,e,i){let s=Promise.resolve();if(e&&e.length>0){let h=function(c){return Promise.all(c.map(p=>Promise.resolve(p).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),a=r?.nonce||r?.getAttribute("nonce");s=h(e.map(c=>{if(c=xt(c),c in X)return;X[c]=!0;const p=c.endsWith(".css"),f=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const l=document.createElement("link");if(l.rel=p?"stylesheet":Ot,p||(l.as="script"),l.crossOrigin="",l.href=c,a&&l.setAttribute("nonce",a),document.head.appendChild(l),p)return new Promise((d,_)=>{l.addEventListener("load",d),l.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${c}`)))})}))}function n(r){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r}return s.then(r=>{for(const a of r||[])a.status==="rejected"&&n(a.reason);return t().catch(n)})};function jt({code:o,onSvg:t}){const e=S.useRef(null),i=S.useRef(t);return S.useEffect(()=>{i.current=t},[t]),S.useEffect(()=>{if(!e.current)return;let s=!1;return At(()=>import("./mermaid.core-fpeG0vyG.js").then(n=>n.bB),__vite__mapDeps([0,1])).then(n=>{n.default.initialize({startOnLoad:!1}),n.default.render("mermaid-svg",o).then(({svg:r})=>{!s&&e.current&&(e.current.innerHTML=r,i.current?.(r))}).catch(r=>{!s&&e.current&&(e.current.innerHTML=`<pre style='color:red'>${String(r)}</pre>`)})}),()=>{s=!0}},[o]),u.jsx("div",{ref:e})}const I=o=>o.replace(/\\/g,"/");function et(o,t,e){const[,i]=o.replace(/\\|\//g,t).split(`${e==="playground"?"example":"exercises"}${t}`);return i}const U="border-border bg-[var(--shiki-background)] hover:bg-foreground/20 active:bg-foreground/30 box-content block rounded border-2 px-2 py-0.5 font-mono text-xs font-semibold outline-none transition duration-300 ease-in-out";function Ft({"data-buttons":o,"data-filename":t,"data-fullpath":e,"data-sep":i="/","data-start":s,"data-type":n}){const r=ot();if(n==="other"||!o||!t||!e)return null;const a=I(r[r.type]?.fullPath??""),h=!e.startsWith(a),c=ENV.EPICSHOP_DEPLOYED?["problem","solution"]:["problem","solution","playground"],p=o.split(","),f=c.filter(l=>p.includes(l));return u.jsx(u.Fragment,{children:f.map(l=>{const d=r[l];if(l==="playground"){const y=r.playground&&r.playground.appName!==r.problem?.name;if(!d||y||h)return u.jsxs("button",{className:L(U,"cursor-not-allowed"),title:y?"Playground is not set to the right app":h?"This file is from different app":"You must 'Set to Playground' before opening a file",children:[u.jsx("span",{className:"uppercase",children:"Open"})," in ",l]},l)}if(!d||!d.fullPath)return null;const _=[I(d.fullPath),I(t)].join(i),g=et(_,i,l);return u.jsx(K,{file:_,line:Number(s??1),children:u.jsxs("span",{title:g,className:U,children:[u.jsx("span",{className:"uppercase",children:"Open"})," in ",l]})},l)})})}function Tt(){const[o,t]=S.useState(!1);return S.useEffect(()=>{if(o){const e=setTimeout(()=>t(!1),1500);return()=>clearTimeout(e)}},[o]),u.jsx("button",{className:ut(U,"w-12 uppercase"),onClick:e=>{t(!0);const s=e.currentTarget.parentElement?.parentElement?.querySelector("pre")?.textContent||"";navigator.clipboard.writeText(s)},children:o?"copied":"copy"})}function Ct({children:o,...t}){const{"data-buttons":e,"data-filename":i,"data-fullpath":s,"data-nocopy":n,"data-sep":r}=t,a=n===void 0;function h(){if(s&&r)return!i||i.includes("..")?{"data-filename":et(s,r)}:{"data-filename":i.replace(/\//g,r)}}return u.jsxs("div",{className:"group relative",children:[u.jsxs("div",{className:"absolute right-0 top-0 z-50 m-2 flex items-baseline justify-end gap-4 opacity-0 transition duration-300 ease-in-out focus-within:opacity-100 group-hover:opacity-100",children:[e?u.jsx(Ft,{...t}):null,a?u.jsx(Tt,{}):null]}),u.jsx("pre",{...t,className:L("scrollbar-thin scrollbar-thumb-scrollbar",t.className??""),...h(),children:o})]})}const Rt={h1:o=>u.jsx(j,{...o,as:"h1"}),h2:o=>u.jsx(j,{...o,as:"h2"}),h3:o=>u.jsx(j,{...o,as:"h3"}),h4:o=>u.jsx(j,{...o,as:"h4"}),h5:o=>u.jsx(j,{...o,as:"h5"}),h6:o=>u.jsx(j,{...o,as:"h6"}),a:ft,p:o=>u.jsx("div",{...o}),pre:o=>u.jsx("pre",{...o,className:L("scrollbar-thin scrollbar-thumb-scrollbar",o.className??"")}),LaunchEditor:K,VideoEmbed:lt,EpicVideo:ht,Mermaid:jt};function Pt(o){const t=vt.getMDXComponent(o);function e({components:i,...s}){const n=S.useMemo(()=>({...Rt,...i}),[i]);return u.jsx(t,{components:n,...s})}return e}const G=new $({max:1e3});function Dt(o){return S.useMemo(()=>{if(G.has(o))return G.get(o);const t=Pt(o);return G.set(o,t),t},[o])}function Vt({code:o,components:t}){const e=Dt(o),i=S.useMemo(()=>({Icon:ct,pre:Ct,Link:Y,...t}),[t]);return u.jsx(e,{components:i})}export{$t as E,K as L,Vt as M,At as _,gt as u};
|
|
3
|
-
//# sourceMappingURL=mdx-C1V-NWR7.js.map
|