@nodefony/studio 10.0.0-alpha.6 → 10.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/decorate.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/decorateMetadata.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/decorateParam.js +1 -1
- package/dist/frontend/assets/{Accordion-C9IINbNl.js → Accordion-BZratQ5I.js} +1 -1
- package/dist/frontend/assets/{ActionsLiveGraph-Do_UHAiS.js → ActionsLiveGraph-XrF4dBJH.js} +1 -1
- package/dist/frontend/assets/{ApiKeys-BpeOM6zu.js → ApiKeys-Bcrxjcfz.js} +2 -2
- package/dist/frontend/assets/{ArchitectureLiveGraph-wJ58pSKK.js → ArchitectureLiveGraph-DFHtvAox.js} +1 -1
- package/dist/frontend/assets/{Audit-C4YFzQRy.js → Audit-BJwdii8i.js} +1 -1
- package/dist/frontend/assets/{BackplaneLiveGraph-ChvZZWdo.js → BackplaneLiveGraph-BMpvFXRW.js} +1 -1
- package/dist/frontend/assets/{Breadcrumbs-4bv1GHWO.js → Breadcrumbs-YIw_WVM5.js} +1 -1
- package/dist/frontend/assets/{BrickStoreChip-BtiG99lz.js → BrickStoreChip-CoCfESC2.js} +1 -1
- package/dist/frontend/assets/{Chat-DjbG7eSv.js → Chat-_ZDG8n7S.js} +1 -1
- package/dist/frontend/assets/{Chip-DUBEzfSp.js → Chip-DVZYQhdH.js} +1 -1
- package/dist/frontend/assets/{Cluster-C_TSC_3_.js → Cluster-ZlNV3WC0.js} +1 -1
- package/dist/frontend/assets/{Collapse-BdzfO7PU.js → Collapse-BZxw8zmw.js} +1 -1
- package/dist/frontend/assets/{ConfigPage-Da8SVX0R.js → ConfigPage-CuIKar0T.js} +1 -1
- package/dist/frontend/assets/{ConnectorCard-DOKtRiVP.js → ConnectorCard-rSwtCZFu.js} +1 -1
- package/dist/frontend/assets/{Create-vyihNeeE.js → Create-B4_XnFjp.js} +2 -2
- package/dist/frontend/assets/{DashboardSupervision-CxSpNAsK.js → DashboardSupervision-ogJPDjon.js} +1 -1
- package/dist/frontend/assets/{Database-D0AiIyrs.js → Database-CBJF2zmF.js} +1 -1
- package/dist/frontend/assets/{DbLogo-B4TwNH6H.js → DbLogo-odCHhQZM.js} +1 -1
- package/dist/frontend/assets/{Documentation-CmIZeRoB.js → Documentation-BPxNaAjQ.js} +1 -1
- package/dist/frontend/assets/{FanOutLiveGraph-JTYLv77d.js → FanOutLiveGraph-C34ysvYA.js} +1 -1
- package/dist/frontend/assets/{Firewall-DHvfx-wn.js → Firewall-DR1gfzdX.js} +1 -1
- package/dist/frontend/assets/{IconAdjustments-B042o6Le.js → IconAdjustments-BoboURIj.js} +1 -1
- package/dist/frontend/assets/{IconAdjustmentsAlt-BmgZVo5M.js → IconAdjustmentsAlt-B7iftM9z.js} +1 -1
- package/dist/frontend/assets/{IconAdjustmentsHorizontal-BIF-EgYG.js → IconAdjustmentsHorizontal-7IiBbPem.js} +1 -1
- package/dist/frontend/assets/{IconAffiliate-PkjISh3s.js → IconAffiliate-BDcNyaq_.js} +1 -1
- package/dist/frontend/assets/{IconApps-2nW1Qtkd.js → IconApps-7aIl1P4i.js} +1 -1
- package/dist/frontend/assets/{IconArchive-CyeHZASU.js → IconArchive-B4MbH2D6.js} +1 -1
- package/dist/frontend/assets/{IconArrowDown-CRJ1x8hy.js → IconArrowDown-5CK-FwRl.js} +1 -1
- package/dist/frontend/assets/{IconArrowLeft-7ehg9XYP.js → IconArrowLeft-CGbdeI78.js} +1 -1
- package/dist/frontend/assets/{IconArrowUp-CWUGvcnj.js → IconArrowUp-OUaF7Sbz.js} +1 -1
- package/dist/frontend/assets/IconArrowsExchange-BaNV8SFD.js +1 -0
- package/dist/frontend/assets/{IconArrowsSplit2-D6oEboxp.js → IconArrowsSplit2-C6G8tQXY.js} +1 -1
- package/dist/frontend/assets/IconBan-sHfiqzWA.js +1 -0
- package/dist/frontend/assets/{IconBook-CFhZJJ0F.js → IconBook-NYou6bAm.js} +1 -1
- package/dist/frontend/assets/{IconCircleCheck-vTUIJ1YM.js → IconCircleCheck-LdYSHGNV.js} +1 -1
- package/dist/frontend/assets/{IconCircleDot-Cw7O7RFw.js → IconCircleDot-DDZDGUv7.js} +1 -1
- package/dist/frontend/assets/IconCircuitResistor-u8z8rLke.js +1 -0
- package/dist/frontend/assets/{IconCode-Bp8-3f_0.js → IconCode-8A2Vc3mV.js} +1 -1
- package/dist/frontend/assets/{IconDeviceDesktop-CI8a1zbE.js → IconDeviceDesktop-DQMJAeIX.js} +1 -1
- package/dist/frontend/assets/{IconDots-DNiAUhiO.js → IconDots-DHONC_eR.js} +1 -1
- package/dist/frontend/assets/{IconDownload-CTLQCk0R.js → IconDownload-CskHkiEP.js} +1 -1
- package/dist/frontend/assets/{IconEye-D80bz7c_.js → IconEye-CmFgWb6A.js} +1 -1
- package/dist/frontend/assets/{IconFile-vc7KG4Rf.js → IconFile-DUvYig0W.js} +1 -1
- package/dist/frontend/assets/{IconFolder-DGoYanMO.js → IconFolder-BeoB9Wy3.js} +1 -1
- package/dist/frontend/assets/{IconGitBranch-ClVGboyH.js → IconGitBranch-k-8cnuLS.js} +1 -1
- package/dist/frontend/assets/{IconHeartRateMonitor-upfL_t5M.js → IconHeartRateMonitor-D5gSRuQz.js} +1 -1
- package/dist/frontend/assets/{IconHelpCircle-BoSiqXIY.js → IconHelpCircle-Cp-YIdsR.js} +1 -1
- package/dist/frontend/assets/{IconLayoutGrid-B6L6txBS.js → IconLayoutGrid-DiIAz7S1.js} +1 -1
- package/dist/frontend/assets/{IconNetwork-BakBlNUv.js → IconNetwork-DJdaK61I.js} +1 -1
- package/dist/frontend/assets/{IconPackages-DZHwNbfL.js → IconPackages-a59KQceL.js} +1 -1
- package/dist/frontend/assets/{IconPencil-B-pO6nfU.js → IconPencil-DvkftTgJ.js} +1 -1
- package/dist/frontend/assets/{IconPlayerPause-CmDKLlIs.js → IconPlayerPause-C9Eve-DV.js} +1 -1
- package/dist/frontend/assets/IconPlayerPlay-Cl4K6MPS.js +1 -0
- package/dist/frontend/assets/IconPlus-D8uJUhjM.js +1 -0
- package/dist/frontend/assets/{IconPuzzle-CslQPiCN.js → IconPuzzle-AO4L5bjR.js} +1 -1
- package/dist/frontend/assets/{IconRecycle-DABPgUVk.js → IconRecycle-WAqlmRWN.js} +1 -1
- package/dist/frontend/assets/{IconSend-MV_iN0wK.js → IconSend-BPiCAzpg.js} +1 -1
- package/dist/frontend/assets/{IconServer2-CRutQdmm.js → IconServer2-rVjD6-MC.js} +1 -1
- package/dist/frontend/assets/{IconShieldOff-Iriep3yk.js → IconShieldOff-GF00f0aB.js} +1 -1
- package/dist/frontend/assets/{IconSitemap-CqkVZPOt.js → IconSitemap-BnfvAqMK.js} +1 -1
- package/dist/frontend/assets/{IconStack2-DA4YUbMC.js → IconStack2-BRfnzl41.js} +1 -1
- package/dist/frontend/assets/{IconTerminal2-CWTGfiEn.js → IconTerminal2-3V__c4-m.js} +1 -1
- package/dist/frontend/assets/{IconUserOff-D99nKohi.js → IconUserOff-DFt0HHh9.js} +1 -1
- package/dist/frontend/assets/{IconWorld-BRgStXMv.js → IconWorld-C4h6SKIG.js} +1 -1
- package/dist/frontend/assets/{List-Da8UU6lg.js → List-ERCyqEPq.js} +1 -1
- package/dist/frontend/assets/{LogVisuals-BGUY8-_R.js → LogVisuals-BwL1Txqf.js} +1 -1
- package/dist/frontend/assets/{Logs-DZCQkQXw.js → Logs-st_U3Pr2.js} +1 -1
- package/dist/frontend/assets/{Migrations-Bun03S4a.js → Migrations-D4SSjDpM.js} +1 -1
- package/dist/frontend/assets/{ModuleDetail-DsZ7jPqr.js → ModuleDetail-cImsLGSy.js} +1 -1
- package/dist/frontend/assets/{Modules-C7G10G7J.js → Modules-Bef_ZNzn.js} +1 -1
- package/dist/frontend/assets/{OrmEntity-Drw9PhAO.js → OrmEntity-zs0NzVc9.js} +1 -1
- package/dist/frontend/assets/{OrmOverview-BzTzmCFr.js → OrmOverview-CPchV-_w.js} +1 -1
- package/dist/frontend/assets/{OrmWorker-D6m8aLoC.js → OrmWorker-QEbxTZ7w.js} +1 -1
- package/dist/frontend/assets/{Playground-ku4WxRVF.js → Playground-DsosA7Yd.js} +1 -1
- package/dist/frontend/assets/{ProbesLiveGraph-LGl0Vt3c.js → ProbesLiveGraph-CpZWxaAZ.js} +1 -1
- package/dist/frontend/assets/{Profile-CIC1v8ye.js → Profile-NdEGmZYV.js} +1 -1
- package/dist/frontend/assets/{ProfileFields-BA4k5xVH.js → ProfileFields-D6_5Er1B.js} +1 -1
- package/dist/frontend/assets/{Progress-ctKVb0y-.js → Progress-BxSLYIgD.js} +1 -1
- package/dist/frontend/assets/{ProtocoleLiveGraph-Ct7VbuWa.js → ProtocoleLiveGraph-BwQBzE9W.js} +1 -1
- package/dist/frontend/assets/{RealtimeConsole-CUwlc-WS.js → RealtimeConsole-N11Uie_n.js} +1 -1
- package/dist/frontend/assets/{RingProgress-CHMtGKds.js → RingProgress-CdgTmA2j.js} +1 -1
- package/dist/frontend/assets/{Roadmap-yZY1WJHu.js → Roadmap-By6HzZwV.js} +1 -1
- package/dist/frontend/assets/{RoleSwitch-DzEHDHLA.js → RoleSwitch-B83joCHG.js} +1 -1
- package/dist/frontend/assets/Roles-CMIEqZIJ.js +1 -0
- package/dist/frontend/assets/{RoutesView-E8ca6Zft.js → RoutesView-D7345bN_.js} +1 -1
- package/dist/frontend/assets/{Runtime-DhpEGVfL.js → Runtime-C312wEbD.js} +1 -1
- package/dist/frontend/assets/{Sessions-CXTgHqDM.js → Sessions-HOFd6af3.js} +1 -1
- package/dist/frontend/assets/{Skeleton-DybgHU9E.js → Skeleton-coYonGf_.js} +1 -1
- package/dist/frontend/assets/{Slider-BoAxGS1L.js → Slider-Ds-U37rL.js} +1 -1
- package/dist/frontend/assets/{StoresView-DoWAf-jh.js → StoresView-FHdXwtpS.js} +1 -1
- package/dist/frontend/assets/{System-DDEZt9W5.js → System-CbN-EOSC.js} +1 -1
- package/dist/frontend/assets/{TagsInput-CvH7XFRB.js → TagsInput-COivjma9.js} +1 -1
- package/dist/frontend/assets/{Textarea-C4dBiWye.js → Textarea-9n-r0dhs.js} +1 -1
- package/dist/frontend/assets/{TraceView-D8fl7TGg.js → TraceView-DNjPJJ7p.js} +1 -1
- package/dist/frontend/assets/{Twin-B9_yDKs5.js → Twin-BfFLhE0A.js} +1 -1
- package/dist/frontend/assets/{UserProfile-y8I6wSTh.js → UserProfile-BBeksYzW.js} +1 -1
- package/dist/frontend/assets/Users-B4mV1aqm.js +1 -0
- package/dist/frontend/assets/{Webhooks-L-17Yi5A.js → Webhooks-Cl8PKA4v.js} +1 -1
- package/dist/frontend/assets/{Workspace-BbU7y0F1.js → Workspace-Drv35J6V.js} +1 -1
- package/dist/frontend/assets/{abnfDiagram-O67JEVCF-B8pam94f.js → abnfDiagram-O67JEVCF-eVuPuZ-l.js} +1 -1
- package/dist/frontend/assets/{apiKeysModel-C53i4AfO.js → apiKeysModel-Bg3XAZ1j.js} +1 -1
- package/dist/frontend/assets/{architectureDiagram-NJMV4G6O-6gmizkIP.js → architectureDiagram-NJMV4G6O-CowFfXXj.js} +1 -1
- package/dist/frontend/assets/{auditFormat-lxo0qiYp.js → auditFormat-n5lhA4OX.js} +1 -1
- package/dist/frontend/assets/{auditModel-CxUfDlvX.js → auditModel-H62868Ky.js} +1 -1
- package/dist/frontend/assets/{chunk-3FUC2YCW-TJIJwE1t.js → chunk-3FUC2YCW-Dtc7u5wE.js} +2 -2
- package/dist/frontend/assets/{chunk-7M6MHVWA-DRzYiIPp.js → chunk-7M6MHVWA-lvMKwiVM.js} +1 -1
- package/dist/frontend/assets/{chunk-GTNCS2PH-DZtp2P9b.js → chunk-GTNCS2PH-B_uA79q-.js} +1 -1
- package/dist/frontend/assets/{classDiagram-v2-NBCMYWYE-BtmMp0Pl.js → classDiagram-v2-NBCMYWYE-BNpOjB-G.js} +1 -1
- package/dist/frontend/assets/{configModel-vPcx16aO.js → configModel-VUzK2g6s.js} +1 -1
- package/dist/frontend/assets/{cynefinDiagram-VND7K2PF-DAC6UAuW.js → cynefinDiagram-VND7K2PF-BlomyrQB.js} +1 -1
- package/dist/frontend/assets/{dagre-6A5THRUB-CO85D-6G.js → dagre-6A5THRUB-BWzsXnLW.js} +1 -1
- package/dist/frontend/assets/{diagram-22UHCM2B-BOX3CQqS.js → diagram-22UHCM2B-CVjDv9s9.js} +1 -1
- package/dist/frontend/assets/{diagram-3UASUU5V-CxvH61Hb.js → diagram-3UASUU5V-DVDv1FGj.js} +1 -1
- package/dist/frontend/assets/{diagram-CDSNMT55-BKs0JPfD.js → diagram-CDSNMT55-Bp8iVPRM.js} +1 -1
- package/dist/frontend/assets/{diagram-MLGK6HIB-D9BjufDu.js → diagram-MLGK6HIB-tvdCXGvD.js} +1 -1
- package/dist/frontend/assets/{diagram-MPIPVDR6-CAjYxIoY.js → diagram-MPIPVDR6-BhXeqdXO.js} +1 -1
- package/dist/frontend/assets/{ebnfDiagram-ZINNZB2B-DyFbyGL9.js → ebnfDiagram-ZINNZB2B-DA_f0Sur.js} +1 -1
- package/dist/frontend/assets/{elk-276RUBZZ-De_z70FL.js → elk-276RUBZZ-D-2pxfms.js} +1 -1
- package/dist/frontend/assets/{erDiagram-OPXOYQCR-N61HA9T0.js → erDiagram-OPXOYQCR-IXwXFRE7.js} +1 -1
- package/dist/frontend/assets/{eventFlow-Dtt06FYi.js → eventFlow-Cm0aJnfI.js} +1 -1
- package/dist/frontend/assets/{flowDiagram-KWPJA3E3-BubqL8R4.js → flowDiagram-KWPJA3E3-BwS9Cpl0.js} +1 -1
- package/dist/frontend/assets/hooks-DMHLQNUe.js +1 -0
- package/dist/frontend/assets/index-BwkdF4pp.js +28 -0
- package/dist/frontend/assets/{infoDiagram-VRGFBTTK-jzkh5hxl.js → infoDiagram-VRGFBTTK-D4h7Bn9y.js} +1 -1
- package/dist/frontend/assets/{ishikawaDiagram-OU5B5YK6-C-80YGTU.js → ishikawaDiagram-OU5B5YK6-B08gE1Ts.js} +1 -1
- package/dist/frontend/assets/{kanban-definition-PNTS6WVX-CNUWj3n8.js → kanban-definition-PNTS6WVX-BRAjenaA.js} +1 -1
- package/dist/frontend/assets/{mermaid.core-bi0KWxzD.js → mermaid.core-B83stVmA.js} +4 -4
- package/dist/frontend/assets/{mindmap-definition-NLK3R4M7-BpydpKOL.js → mindmap-definition-NLK3R4M7-DVQlIVXh.js} +1 -1
- package/dist/frontend/assets/{pegDiagram-GJSIUBJH-B8r97QN1.js → pegDiagram-GJSIUBJH-BDiYV_0C.js} +1 -1
- package/dist/frontend/assets/{pieDiagram-5QR66LMP-kyKeYg-Q.js → pieDiagram-5QR66LMP-DauEH_sI.js} +1 -1
- package/dist/frontend/assets/{profileVisuals-BE_m4Ey1.js → profileVisuals-CdDZ-G5o.js} +1 -1
- package/dist/frontend/assets/{railroadDiagram-XR7U4H2S-UqD2ngrA.js → railroadDiagram-XR7U4H2S-VGu1Om2v.js} +1 -1
- package/dist/frontend/assets/{requirementDiagram-PLB6GJNP-BCf1UDbg.js → requirementDiagram-PLB6GJNP-BIeT2fsT.js} +1 -1
- package/dist/frontend/assets/rolesModel-BqkpwhLp.js +1 -0
- package/dist/frontend/assets/{sequenceDiagram-PO4LG4MO-BtmJQCMb.js → sequenceDiagram-PO4LG4MO-xFeJgcfs.js} +1 -1
- package/dist/frontend/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
- package/dist/frontend/assets/{stateDiagram-v2-GCMORJYK-KOfXhGJl.js → stateDiagram-v2-GCMORJYK-Zn0sg5eC.js} +1 -1
- package/dist/frontend/assets/stores-fG-e-IP-.js +1 -0
- package/dist/frontend/assets/{swimlanes-2SLR337P-CbhPYBmu.js → swimlanes-2SLR337P-BtnI5Ts1.js} +1 -1
- package/dist/frontend/assets/{swimlanesDiagram-TC7HE7FX-DERYN-sv.js → swimlanesDiagram-TC7HE7FX-DmKuTkpK.js} +1 -1
- package/dist/frontend/assets/{timeline-definition-EJHVYXUP-DyFLwqcy.js → timeline-definition-EJHVYXUP-CAwjjT68.js} +1 -1
- package/dist/frontend/assets/{ui-Dy8y0zPl.js → ui-BlRFVRfl.js} +29 -29
- package/dist/frontend/assets/{useBlockSource-DBTXt3Bd.js → useBlockSource-IO5xGNWM.js} +1 -1
- package/dist/frontend/assets/{useSocketLiveData-n5suTFQT.js → useSocketLiveData-z0fKymfg.js} +1 -1
- package/dist/frontend/assets/{usecaseDiagram-POWQR4AR-DrNt0E-k.js → usecaseDiagram-POWQR4AR-Bk94oIx0.js} +1 -1
- package/dist/frontend/assets/{usersFormat-C33NWJaO.js → usersFormat-9M7K71Og.js} +1 -1
- package/dist/frontend/assets/{vennDiagram-UO4OBE2U-CdTyOHVa.js → vennDiagram-UO4OBE2U-_ylubyXd.js} +1 -1
- package/dist/frontend/assets/{wardleyDiagram-VNRHLVJA-D8xJmOUJ.js → wardleyDiagram-VNRHLVJA-BAnG4zJi.js} +1 -1
- package/dist/frontend/assets/{xychartDiagram-PMCCYNJV-BwyKdA55.js → xychartDiagram-PMCCYNJV-Cl7hfbtt.js} +1 -1
- package/dist/frontend/index.html +11 -11
- package/dist/index.js +2 -2
- package/dist/nodefony/controller/StudioController.js +2 -2
- package/dist/nodefony/controller/StudioCreateController.js +3 -3
- package/dist/nodefony/controller/StudioRealtimeController.js +2 -2
- package/package.json +17 -17
- package/dist/frontend/assets/IconArrowsExchange-C0a0grm7.js +0 -1
- package/dist/frontend/assets/IconBan-Qgw-SmZw.js +0 -1
- package/dist/frontend/assets/IconCircuitResistor-DFVNZSyj.js +0 -1
- package/dist/frontend/assets/IconPlayerPlay-CYA71UO2.js +0 -1
- package/dist/frontend/assets/IconPlus-Dh1SmA8Q.js +0 -1
- package/dist/frontend/assets/Roles-hy1gMeEh.js +0 -1
- package/dist/frontend/assets/Users-DLPi2ne7.js +0 -1
- package/dist/frontend/assets/hooks-C4XxBzBx.js +0 -1
- package/dist/frontend/assets/index-wfxUl83u.js +0 -28
- package/dist/frontend/assets/sizeCapture-INFHLROL-B0uUizjq.js +0 -1
- package/dist/frontend/assets/stores-DIccV-P5.js +0 -1
package/dist/frontend/assets/{erDiagram-OPXOYQCR-N61HA9T0.js → erDiagram-OPXOYQCR-IXwXFRE7.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as e}from"./src-Dvwdl2PF.js";import{n as t,t as n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as r}from"./src-CmaQbKwl.js";import{H as i,U as a,a as o,at as s,q as c,s as l,v as u,w as d,x as f,y as p}from"./chunk-O7XYJQB3-j8r_wK2Y.js";import{t as m}from"./channel-CLVQeto6.js";import{c as h,g}from"./chunk-ZIGJFQKS-D7Dw35HO.js";import"./chunk-742MDFTN-BuWqUJ1x.js";import"./chunk-MBY4JIJT-DU8hh3vE.js";import"./chunk-7PRAP22T-CY3tH-_v.js";import{a as _,i as v,o as y,r as b,t as x}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import"./chunk-7INBJB4K-BLEZ8obp.js";import"./chunk-5DYCD2WN-C6fNpDCq.js";import"./chunk-Z7XXMR3K-B4DDNjo4.js";import{t as S}from"./chunk-XXDRQBXY-IULPM7G2.js";import{t as C}from"./chunk-WEXAMYUT-DnLgt6Py.js";import"./chunk-UA2S7LBM-EhjtOSNT.js";import{i as w,r as T}from"./mermaid.core-bi0KWxzD.js";var E=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],r=[2,2],i=[1,7],a=[1,9],o=[1,10],s=[1,11],c=[1,12],l=[1,30],u=[1,23],d=[1,24],f=[1,25],p=[1,26],m=[1,27],h=[1,19],g=[1,28],_=[1,29],v=[1,20],y=[1,18],b=[1,21],x=[1,22],S=[2,6],C=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],w=[1,36],T=[1,37],E=[1,38],D=[1,39],O=[1,40],k=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],A=[1,46],j=[1,47],M=[1,57],N=[43,51,53,54,55,74,75],P=[1,70],F=[1,68],I=[1,65],L=[1,69],R=[1,71],z=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],B=[1,78],V=[1,77],H=[1,76],U=[69,70,71,72,73],W=[1,91],G=[6,9,45,50],K=[6,9,12,44,45,50,51,52],q=[1,101],J=[1,100],Y=[1,99],X=[18,61],ee=[1,110],te=[1,109],ne=[20,43,51,53,54,55],Z=[18,61,64,66],Q={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:`error`,4:`ER_DIAGRAM`,6:`EOF`,9:`NEWLINE`,12:`COLON`,14:`STYLE_SEPARATOR`,16:`BLOCK_START`,18:`BLOCK_STOP`,19:`SQS`,20:`SQE`,21:`title`,22:`title_value`,23:`acc_title`,24:`acc_title_value`,25:`acc_descr`,26:`acc_descr_value`,27:`acc_descr_multiline_value`,33:`END`,34:`SUBGRAPH`,37:`direction_tb`,38:`direction_bt`,39:`direction_rl`,40:`direction_lr`,41:`CLASSDEF`,43:`UNICODE_TEXT`,44:`STYLE_TEXT`,45:`COMMA`,46:`CLASS`,47:`STYLE`,50:`SEMI`,51:`NUM`,52:`BRKT`,53:`ENTITY_NAME`,54:`DECIMAL_NUM`,55:`ENTITY_ONE`,61:`ATTRIBUTE_WORD`,62:`?`,64:`,`,65:`ATTRIBUTE_KEY`,66:`COMMENT`,69:`ZERO_OR_ONE`,70:`ZERO_OR_MORE`,71:`ONE_OR_MORE`,72:`ONLY_ONE`,73:`MD_PARENT`,74:`NON_IDENTIFYING`,75:`IDENTIFYING`,76:`WORD`},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:this.$=a[s-1].concat(a[s]);break;case 4:this.$=a[s];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]),this.$=[a[s-4],a[s-2]];break;case 8:r.addEntity(a[s-8]),r.addEntity(a[s-4]),r.addRelationship(a[s-8],a[s],a[s-4],a[s-5]),r.setClass([a[s-8]],a[s-6]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-8],a[s-4]];break;case 9:r.addEntity(a[s-6]),r.addEntity(a[s-2]),r.addRelationship(a[s-6],a[s],a[s-2],a[s-3]),r.setClass([a[s-6]],a[s-4]),this.$=[a[s-6],a[s-2]];break;case 10:r.addEntity(a[s-6]),r.addEntity(a[s-4]),r.addRelationship(a[s-6],a[s],a[s-4],a[s-5]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-6],a[s-4]];break;case 11:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]),this.$=[a[s-3]];break;case 12:r.addEntity(a[s-5]),r.addAttributes(a[s-5],a[s-1]),r.setClass([a[s-5]],a[s-3]),this.$=[a[s-5]];break;case 13:r.addEntity(a[s-2]),this.$=[a[s-2]];break;case 14:r.addEntity(a[s-4]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-4]];break;case 15:r.addEntity(a[s]),this.$=[a[s]];break;case 16:r.addEntity(a[s-2]),r.setClass([a[s-2]],a[s]),this.$=[a[s-2]];break;case 17:r.addEntity(a[s-6],a[s-4]),r.addAttributes(a[s-6],a[s-1]),this.$=[a[s-6]];break;case 18:r.addEntity(a[s-8],a[s-6]),r.addAttributes(a[s-8],a[s-1]),r.setClass([a[s-8]],a[s-3]),this.$=[a[s-8]];break;case 19:r.addEntity(a[s-5],a[s-3]),this.$=[a[s-5]];break;case 20:r.addEntity(a[s-7],a[s-5]),r.setClass([a[s-7]],a[s-2]),this.$=[a[s-7]];break;case 21:r.addEntity(a[s-3],a[s-1]);break;case 22:r.addEntity(a[s-5],a[s-3]),r.setClass([a[s-5]],a[s]);break;case 23:case 24:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 27:r.subgraphDepth?this.$=a[s]:(r.setDirection(a[s].value),this.$=[]);break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:a[s-2].id},a[s-1],{text:a[s-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-1],text:a[s-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-4],text:a[s-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=a[s];break;case 35:this.$=a[s-1]+` `+a[s];break;case 36:this.$={stmt:`dir`,value:`TB`};break;case 37:this.$={stmt:`dir`,value:`BT`};break;case 38:this.$={stmt:`dir`,value:`RL`};break;case 39:this.$={stmt:`dir`,value:`LR`};break;case 40:this.$=a[s-3],r.addClass(a[s-2],a[s-1]);break;case 41:case 42:case 63:case 72:this.$=[a[s]];break;case 43:case 44:this.$=a[s-2].concat([a[s]]);break;case 45:this.$=a[s-2],r.setClass(a[s-1],a[s]);break;case 46:this.$=a[s-3],r.addCssStyles(a[s-2],a[s-1]);break;case 47:this.$=[a[s]];break;case 48:a[s-2].push(a[s]),this.$=a[s-2];break;case 50:this.$=a[s-1]+a[s];break;case 58:case 84:case 85:this.$=a[s].replace(/"/g,``);break;case 64:a[s].push(a[s-1]),this.$=a[s];break;case 65:this.$={type:a[s-1],name:a[s]};break;case 66:this.$={type:a[s-2],name:a[s-1],keys:a[s]};break;case 67:this.$={type:a[s-2],name:a[s-1],comment:a[s]};break;case 68:this.$={type:a[s-3],name:a[s-2],keys:a[s-1],comment:a[s]};break;case 69:case 71:case 74:this.$=a[s];break;case 70:this.$=a[s-1]+a[s];break;case 73:a[s-2].push(a[s]),this.$=a[s-2];break;case 75:this.$=a[s].replace(/"/g,``);break;case 76:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(n,r,{5:3}),{6:[1,4],7:5,8:6,9:i,10:8,21:a,23:o,25:s,27:c,28:13,29:14,30:15,31:16,32:17,34:l,37:u,38:d,39:f,40:p,41:m,43:h,46:g,47:_,51:v,53:y,54:b,55:x},e(n,S,{1:[2,1]}),e(C,[2,3]),e(C,[2,4]),e(C,[2,5]),e(C,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:w,70:T,71:E,72:D,73:O}),{22:[1,41]},{24:[1,42]},{26:[1,43]},e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,30]),e(C,r,{5:44}),e(k,[2,58]),e(k,[2,59]),e(k,[2,60]),e(k,[2,61]),e(k,[2,62]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),e(C,[2,39]),{15:45,43:A,44:j},{15:48,43:A,44:j},{15:49,43:A,44:j},{10:50,43:h,51:v,53:y,54:b,55:x},{10:51,43:h,51:v,53:y,54:b,55:x},{15:52,43:A,44:j},{17:53,18:[1,54],56:55,57:56,61:M},{10:58,43:h,51:v,53:y,54:b,55:x},{68:59,74:[1,60],75:[1,61]},e(N,[2,77]),e(N,[2,78]),e(N,[2,79]),e(N,[2,80]),e(N,[2,81]),e(C,[2,23]),e(C,[2,24]),e(C,[2,25]),{6:[1,63],7:5,8:6,9:i,10:8,21:a,23:o,25:s,27:c,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:l,37:u,38:d,39:f,40:p,41:m,43:h,46:g,47:_,51:v,53:y,54:b,55:x},{12:P,42:64,44:F,45:I,48:66,49:67,51:L,52:R},e(z,[2,41]),e(z,[2,42]),{15:72,43:A,44:j,45:I},{12:P,42:73,44:F,45:I,48:66,49:67,51:L,52:R},{6:B,9:V,19:[1,75],35:74,50:H},{12:[1,79],14:[1,80]},e(C,[2,16],{67:35,11:81,16:[1,82],45:I,69:w,70:T,71:E,72:D,73:O}),{18:[1,83]},e(C,[2,13]),{17:84,18:[2,63],56:55,57:56,61:M},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:w,70:T,71:E,72:D,73:O},e(U,[2,82]),e(U,[2,83]),e(C,[2,31]),e(C,S),{6:B,9:V,35:90,45:W,50:H},{43:[1,92],44:[1,93]},e(G,[2,47],{49:94,12:P,44:F,51:L,52:R}),e(K,[2,49]),e(K,[2,54]),e(K,[2,55]),e(K,[2,56]),e(K,[2,57]),e(C,[2,45],{45:I}),{6:B,9:V,35:95,45:W,50:H},e(C,[2,32]),{10:97,36:96,43:h,51:v,53:y,54:b,55:x},e(C,[2,51]),e(C,[2,52]),e(C,[2,53]),{13:98,43:q,53:J,76:Y},{15:102,43:A,44:j},{10:103,43:h,51:v,53:y,54:b,55:x},{17:104,18:[1,105],56:55,57:56,61:M},e(C,[2,11]),{18:[2,64]},e(X,[2,65],{59:106,60:107,63:108,65:ee,66:te}),e([18,61,65,66],[2,71]),{61:[2,70]},e(C,[2,21],{14:[1,112],16:[1,111]}),e([43,51,53,54,55],[2,76]),e(C,[2,40]),{12:P,44:F,48:113,49:67,51:L,52:R},e(z,[2,43]),e(z,[2,44]),e(K,[2,50]),e(C,[2,46]),{10:115,20:[1,114],43:h,51:v,53:y,54:b,55:x},e(ne,[2,34]),e(C,[2,7]),e(C,[2,84]),e(C,[2,85]),e(C,[2,86]),{12:[1,116],45:I},{12:[1,118],14:[1,117]},{18:[1,119]},e(C,[2,14]),e(X,[2,66],{60:120,64:[1,121],66:te}),e(X,[2,67]),e(Z,[2,72]),e(X,[2,75]),e(Z,[2,74]),{17:122,18:[1,123],56:55,57:56,61:M},{15:124,43:A,44:j},e(G,[2,48],{49:94,12:P,44:F,51:L,52:R}),{6:B,9:V,35:125,50:H},e(ne,[2,35]),{13:126,43:q,53:J,76:Y},{15:127,43:A,44:j},{13:128,43:q,53:J,76:Y},e(C,[2,12]),e(X,[2,68]),{63:129,65:ee},{18:[1,130]},e(C,[2,19]),e(C,[2,22],{16:[1,131],45:I}),e(C,[2,33]),e(C,[2,10]),{12:[1,132],45:I},e(C,[2,9]),e(Z,[2,73]),e(C,[2,17]),{17:133,18:[1,134],56:55,57:56,61:M},{13:135,43:q,53:J,76:Y},{18:[1,136]},e(C,[2,20]),e(C,[2,8]),e(C,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
1
|
+
import{w as e}from"./src-Dvwdl2PF.js";import{n as t,t as n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as r}from"./src-CmaQbKwl.js";import{H as i,U as a,a as o,at as s,q as c,s as l,v as u,w as d,x as f,y as p}from"./chunk-O7XYJQB3-j8r_wK2Y.js";import{t as m}from"./channel-CLVQeto6.js";import{c as h,g}from"./chunk-ZIGJFQKS-D7Dw35HO.js";import"./chunk-742MDFTN-BuWqUJ1x.js";import"./chunk-MBY4JIJT-DU8hh3vE.js";import"./chunk-7PRAP22T-CY3tH-_v.js";import{a as _,i as v,o as y,r as b,t as x}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import"./chunk-7INBJB4K-BLEZ8obp.js";import"./chunk-5DYCD2WN-C6fNpDCq.js";import"./chunk-Z7XXMR3K-B4DDNjo4.js";import{t as S}from"./chunk-XXDRQBXY-IULPM7G2.js";import{t as C}from"./chunk-WEXAMYUT-DnLgt6Py.js";import"./chunk-UA2S7LBM-EhjtOSNT.js";import{i as w,r as T}from"./mermaid.core-B83stVmA.js";var E=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],r=[2,2],i=[1,7],a=[1,9],o=[1,10],s=[1,11],c=[1,12],l=[1,30],u=[1,23],d=[1,24],f=[1,25],p=[1,26],m=[1,27],h=[1,19],g=[1,28],_=[1,29],v=[1,20],y=[1,18],b=[1,21],x=[1,22],S=[2,6],C=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],w=[1,36],T=[1,37],E=[1,38],D=[1,39],O=[1,40],k=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],A=[1,46],j=[1,47],M=[1,57],N=[43,51,53,54,55,74,75],P=[1,70],F=[1,68],I=[1,65],L=[1,69],R=[1,71],z=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],B=[1,78],V=[1,77],H=[1,76],U=[69,70,71,72,73],W=[1,91],G=[6,9,45,50],K=[6,9,12,44,45,50,51,52],q=[1,101],J=[1,100],Y=[1,99],X=[18,61],ee=[1,110],te=[1,109],ne=[20,43,51,53,54,55],Z=[18,61,64,66],Q={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:`error`,4:`ER_DIAGRAM`,6:`EOF`,9:`NEWLINE`,12:`COLON`,14:`STYLE_SEPARATOR`,16:`BLOCK_START`,18:`BLOCK_STOP`,19:`SQS`,20:`SQE`,21:`title`,22:`title_value`,23:`acc_title`,24:`acc_title_value`,25:`acc_descr`,26:`acc_descr_value`,27:`acc_descr_multiline_value`,33:`END`,34:`SUBGRAPH`,37:`direction_tb`,38:`direction_bt`,39:`direction_rl`,40:`direction_lr`,41:`CLASSDEF`,43:`UNICODE_TEXT`,44:`STYLE_TEXT`,45:`COMMA`,46:`CLASS`,47:`STYLE`,50:`SEMI`,51:`NUM`,52:`BRKT`,53:`ENTITY_NAME`,54:`DECIMAL_NUM`,55:`ENTITY_ONE`,61:`ATTRIBUTE_WORD`,62:`?`,64:`,`,65:`ATTRIBUTE_KEY`,66:`COMMENT`,69:`ZERO_OR_ONE`,70:`ZERO_OR_MORE`,71:`ONE_OR_MORE`,72:`ONLY_ONE`,73:`MD_PARENT`,74:`NON_IDENTIFYING`,75:`IDENTIFYING`,76:`WORD`},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:this.$=a[s-1].concat(a[s]);break;case 4:this.$=a[s];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]),this.$=[a[s-4],a[s-2]];break;case 8:r.addEntity(a[s-8]),r.addEntity(a[s-4]),r.addRelationship(a[s-8],a[s],a[s-4],a[s-5]),r.setClass([a[s-8]],a[s-6]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-8],a[s-4]];break;case 9:r.addEntity(a[s-6]),r.addEntity(a[s-2]),r.addRelationship(a[s-6],a[s],a[s-2],a[s-3]),r.setClass([a[s-6]],a[s-4]),this.$=[a[s-6],a[s-2]];break;case 10:r.addEntity(a[s-6]),r.addEntity(a[s-4]),r.addRelationship(a[s-6],a[s],a[s-4],a[s-5]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-6],a[s-4]];break;case 11:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]),this.$=[a[s-3]];break;case 12:r.addEntity(a[s-5]),r.addAttributes(a[s-5],a[s-1]),r.setClass([a[s-5]],a[s-3]),this.$=[a[s-5]];break;case 13:r.addEntity(a[s-2]),this.$=[a[s-2]];break;case 14:r.addEntity(a[s-4]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-4]];break;case 15:r.addEntity(a[s]),this.$=[a[s]];break;case 16:r.addEntity(a[s-2]),r.setClass([a[s-2]],a[s]),this.$=[a[s-2]];break;case 17:r.addEntity(a[s-6],a[s-4]),r.addAttributes(a[s-6],a[s-1]),this.$=[a[s-6]];break;case 18:r.addEntity(a[s-8],a[s-6]),r.addAttributes(a[s-8],a[s-1]),r.setClass([a[s-8]],a[s-3]),this.$=[a[s-8]];break;case 19:r.addEntity(a[s-5],a[s-3]),this.$=[a[s-5]];break;case 20:r.addEntity(a[s-7],a[s-5]),r.setClass([a[s-7]],a[s-2]),this.$=[a[s-7]];break;case 21:r.addEntity(a[s-3],a[s-1]);break;case 22:r.addEntity(a[s-5],a[s-3]),r.setClass([a[s-5]],a[s]);break;case 23:case 24:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 27:r.subgraphDepth?this.$=a[s]:(r.setDirection(a[s].value),this.$=[]);break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:a[s-2].id},a[s-1],{text:a[s-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-1],text:a[s-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-4],text:a[s-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=a[s];break;case 35:this.$=a[s-1]+` `+a[s];break;case 36:this.$={stmt:`dir`,value:`TB`};break;case 37:this.$={stmt:`dir`,value:`BT`};break;case 38:this.$={stmt:`dir`,value:`RL`};break;case 39:this.$={stmt:`dir`,value:`LR`};break;case 40:this.$=a[s-3],r.addClass(a[s-2],a[s-1]);break;case 41:case 42:case 63:case 72:this.$=[a[s]];break;case 43:case 44:this.$=a[s-2].concat([a[s]]);break;case 45:this.$=a[s-2],r.setClass(a[s-1],a[s]);break;case 46:this.$=a[s-3],r.addCssStyles(a[s-2],a[s-1]);break;case 47:this.$=[a[s]];break;case 48:a[s-2].push(a[s]),this.$=a[s-2];break;case 50:this.$=a[s-1]+a[s];break;case 58:case 84:case 85:this.$=a[s].replace(/"/g,``);break;case 64:a[s].push(a[s-1]),this.$=a[s];break;case 65:this.$={type:a[s-1],name:a[s]};break;case 66:this.$={type:a[s-2],name:a[s-1],keys:a[s]};break;case 67:this.$={type:a[s-2],name:a[s-1],comment:a[s]};break;case 68:this.$={type:a[s-3],name:a[s-2],keys:a[s-1],comment:a[s]};break;case 69:case 71:case 74:this.$=a[s];break;case 70:this.$=a[s-1]+a[s];break;case 73:a[s-2].push(a[s]),this.$=a[s-2];break;case 75:this.$=a[s].replace(/"/g,``);break;case 76:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(n,r,{5:3}),{6:[1,4],7:5,8:6,9:i,10:8,21:a,23:o,25:s,27:c,28:13,29:14,30:15,31:16,32:17,34:l,37:u,38:d,39:f,40:p,41:m,43:h,46:g,47:_,51:v,53:y,54:b,55:x},e(n,S,{1:[2,1]}),e(C,[2,3]),e(C,[2,4]),e(C,[2,5]),e(C,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:w,70:T,71:E,72:D,73:O}),{22:[1,41]},{24:[1,42]},{26:[1,43]},e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,30]),e(C,r,{5:44}),e(k,[2,58]),e(k,[2,59]),e(k,[2,60]),e(k,[2,61]),e(k,[2,62]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),e(C,[2,39]),{15:45,43:A,44:j},{15:48,43:A,44:j},{15:49,43:A,44:j},{10:50,43:h,51:v,53:y,54:b,55:x},{10:51,43:h,51:v,53:y,54:b,55:x},{15:52,43:A,44:j},{17:53,18:[1,54],56:55,57:56,61:M},{10:58,43:h,51:v,53:y,54:b,55:x},{68:59,74:[1,60],75:[1,61]},e(N,[2,77]),e(N,[2,78]),e(N,[2,79]),e(N,[2,80]),e(N,[2,81]),e(C,[2,23]),e(C,[2,24]),e(C,[2,25]),{6:[1,63],7:5,8:6,9:i,10:8,21:a,23:o,25:s,27:c,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:l,37:u,38:d,39:f,40:p,41:m,43:h,46:g,47:_,51:v,53:y,54:b,55:x},{12:P,42:64,44:F,45:I,48:66,49:67,51:L,52:R},e(z,[2,41]),e(z,[2,42]),{15:72,43:A,44:j,45:I},{12:P,42:73,44:F,45:I,48:66,49:67,51:L,52:R},{6:B,9:V,19:[1,75],35:74,50:H},{12:[1,79],14:[1,80]},e(C,[2,16],{67:35,11:81,16:[1,82],45:I,69:w,70:T,71:E,72:D,73:O}),{18:[1,83]},e(C,[2,13]),{17:84,18:[2,63],56:55,57:56,61:M},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:w,70:T,71:E,72:D,73:O},e(U,[2,82]),e(U,[2,83]),e(C,[2,31]),e(C,S),{6:B,9:V,35:90,45:W,50:H},{43:[1,92],44:[1,93]},e(G,[2,47],{49:94,12:P,44:F,51:L,52:R}),e(K,[2,49]),e(K,[2,54]),e(K,[2,55]),e(K,[2,56]),e(K,[2,57]),e(C,[2,45],{45:I}),{6:B,9:V,35:95,45:W,50:H},e(C,[2,32]),{10:97,36:96,43:h,51:v,53:y,54:b,55:x},e(C,[2,51]),e(C,[2,52]),e(C,[2,53]),{13:98,43:q,53:J,76:Y},{15:102,43:A,44:j},{10:103,43:h,51:v,53:y,54:b,55:x},{17:104,18:[1,105],56:55,57:56,61:M},e(C,[2,11]),{18:[2,64]},e(X,[2,65],{59:106,60:107,63:108,65:ee,66:te}),e([18,61,65,66],[2,71]),{61:[2,70]},e(C,[2,21],{14:[1,112],16:[1,111]}),e([43,51,53,54,55],[2,76]),e(C,[2,40]),{12:P,44:F,48:113,49:67,51:L,52:R},e(z,[2,43]),e(z,[2,44]),e(K,[2,50]),e(C,[2,46]),{10:115,20:[1,114],43:h,51:v,53:y,54:b,55:x},e(ne,[2,34]),e(C,[2,7]),e(C,[2,84]),e(C,[2,85]),e(C,[2,86]),{12:[1,116],45:I},{12:[1,118],14:[1,117]},{18:[1,119]},e(C,[2,14]),e(X,[2,66],{60:120,64:[1,121],66:te}),e(X,[2,67]),e(Z,[2,72]),e(X,[2,75]),e(Z,[2,74]),{17:122,18:[1,123],56:55,57:56,61:M},{15:124,43:A,44:j},e(G,[2,48],{49:94,12:P,44:F,51:L,52:R}),{6:B,9:V,35:125,50:H},e(ne,[2,35]),{13:126,43:q,53:J,76:Y},{15:127,43:A,44:j},{13:128,43:q,53:J,76:Y},e(C,[2,12]),e(X,[2,68]),{63:129,65:ee},{18:[1,130]},e(C,[2,19]),e(C,[2,22],{16:[1,131],45:I}),e(C,[2,33]),e(C,[2,10]),{12:[1,132],45:I},e(C,[2,9]),e(Z,[2,73]),e(C,[2,17]),{17:133,18:[1,134],56:55,57:56,61:M},{13:135,43:q,53:J,76:Y},{18:[1,136]},e(C,[2,20]),e(C,[2,8]),e(C,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};Q.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Et as e}from"./ui-
|
|
1
|
+
import{Et as e}from"./ui-BlRFVRfl.js";var t={"request-in":{order:1,protocol:`http`},"body-received":{order:2,protocol:`http`},"route-matched":{order:3,protocol:`http`},"kernel-dispatch":{order:4,protocol:`http`},session:{order:5,protocol:`both`},response:{order:6,protocol:`http`},"session-saved":{order:7,protocol:`both`},"request-end":{order:8,protocol:`http`},finish:{order:9,protocol:`http`},"ws-open":{order:1,protocol:`ws`},"ws-message":{order:2,protocol:`ws`},"ws-close":{order:3,protocol:`ws`}};function n(e){return e.replace(/\x1b\[[0-9;]*m/g,``)}function r(e){return n(typeof e.payload==`string`?e.payload:e.msg||``)}function i(e){let t=r(e);if(/Match route/i.test(t))return`route-matched`;if(/NEW SESSION|MIGRATE SESSION|DESTROY SESSION|SESSION CONTEXT CHANGE/i.test(t))return`session`;if(/SAVE SESSION/i.test(t))return`session-saved`;if(/ADD COOKIE/i.test(t))return`response`;if(/\bsubscribe\b/i.test(t))return`ws-message`;if(/client connected/i.test(t))return`ws-open`;if(/^WS (RECEIVE|SEND|BROADCAST)\b/.test(e.msgid))return`ws-message`;if(e.msgid===`req`)return`request-end`;let n=t.match(/\bon([A-Z][A-Za-z]+)\b/);if(n){let t=`on${n[1]}`;if(t===`onRequest`&&e.msgid===`KERNEL`)return`kernel-dispatch`;switch(t){case`onRequestEnd`:return`body-received`;case`onRequest`:return`request-in`;case`onSessionStart`:return`session`;case`onConnect`:return`ws-open`;case`onSaveSession`:return`session-saved`;case`onSend`:return`response`;case`onClose`:return`ws-close`;case`onFinish`:return`finish`;case`onMessage`:return`ws-message`}}return null}var a=e(`outline`,`arrows-left-right`,`ArrowsLeftRight`,[[`path`,{d:`M21 17l-18 0`,key:`svg-0`}],[`path`,{d:`M6 10l-3 -3l3 -3`,key:`svg-1`}],[`path`,{d:`M3 7l18 0`,key:`svg-2`}],[`path`,{d:`M18 20l3 -3l-3 -3`,key:`svg-3`}]]),o=e(`outline`,`route-2`,`Route2`,[[`path`,{d:`M3 19a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-0`}],[`path`,{d:`M19 7a2 2 0 1 0 0 -4a2 2 0 0 0 0 4`,key:`svg-1`}],[`path`,{d:`M14 5a2 2 0 0 0 -2 2v10a2 2 0 0 1 -2 2`,key:`svg-2`}]]),s=e(`outline`,`timeline`,`Timeline`,[[`path`,{d:`M4 16l6 -7l5 5l5 -6`,key:`svg-0`}],[`path`,{d:`M14 14a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M9 9a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-2`}],[`path`,{d:`M3 16a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-3`}],[`path`,{d:`M19 8a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-4`}]]),c={"request-in":{label:`Requête entrante`,color:`blue`,event:`onRequest (contexte)`,meaning:`Le contexte HTTP démarre le traitement de la requête.`},"body-received":{label:`Corps reçu`,color:`gray`,event:`onRequestEnd`,meaning:`Le corps de la requête est entièrement lu. Pour un GET (sans corps), ça arrive tout de suite → l'un des PREMIERS events, malgré le mot « End ».`},"route-matched":{label:`Route trouvée`,color:`blue`,event:`Match route`,meaning:`Le routeur a associé l'URL à un controller + une action.`},"kernel-dispatch":{label:`Dispatch kernel`,color:`blue`,event:`onRequest (KERNEL)`,meaning:`Le kernel passe la main au pipeline (firewall, controller…).`},session:{label:`Session`,color:`grape`,event:`NEW/MIGRATE/DESTROY SESSION, onSessionStart`,meaning:`Une session est créée, rouverte, migrée ou détruite pour cette requête (HTTP ou WS).`},response:{label:`Réponse envoyée`,color:`teal`,event:`onSend / ADD COOKIE`,meaning:`Les octets de réponse partent vers le client (cookies posés au passage).`},"session-saved":{label:`Session enregistrée`,color:`grape`,event:`onSaveSession / SAVE SESSION`,meaning:`L'état de session modifié est persisté avant la réponse.`},"request-end":{label:`Bilan requête`,color:`indigo`,event:`req`,meaning:`Ligne récapitulative de fin : méthode, statut, durée, IP, requestId. En WebSocket = fin du handshake.`},finish:{label:`Requête terminée`,color:`gray`,event:`onFinish`,meaning:`Nettoyage post-réponse (hooks onAfterResponse). Vraie fin du cycle.`},"ws-open":{label:`Connexion ouverte`,color:`teal`,event:`onConnect / client connected`,meaning:`Le handshake WebSocket est accepté — la socket est vivante.`},"ws-message":{label:`Message reçu`,color:`cyan`,event:`onMessage / subscribe`,meaning:`Une frame entrante au fil de l'eau (message applicatif, abonnement à un canal, ping…).`},"ws-close":{label:`Connexion fermée`,color:`gray`,event:`onClose`,meaning:`Le socket WebSocket se ferme.`}};function l(e){let n=i(e);if(!n)return null;let r=c[n];return{label:r.label,color:r.color,order:t[n].order}}function u(e){let n=Object.keys(c).filter(n=>{let r=t[n].protocol;return e===`all`||r===e||r===`both`}),r={http:0,both:1,ws:2};return n.sort((e,n)=>{let i=t[e].protocol,a=t[n].protocol;return i===a?t[e].order-t[n].order:r[i]-r[a]})}var d={http:`HTTP`,both:`Commun (session)`,ws:`WebSocket`};function f(e){let n=u(e),r=[];for(let e of[`http`,`both`,`ws`]){let i=n.filter(n=>t[n].protocol===e).map(e=>({value:e,label:c[e].label}));i.length&&r.push({group:d[e],items:i})}return r}var p=u(`all`).map(e=>({id:e,protocol:t[e].protocol,event:c[e].event,label:c[e].label,meaning:c[e].meaning}));export{s as a,u as i,l as n,o,f as r,a as s,p as t};
|
package/dist/frontend/assets/{flowDiagram-KWPJA3E3-BubqL8R4.js → flowDiagram-KWPJA3E3-BwS9Cpl0.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./src-CmaQbKwl.js";import"./chunk-O7XYJQB3-j8r_wK2Y.js";import"./chunk-ZIGJFQKS-D7Dw35HO.js";import"./chunk-742MDFTN-BuWqUJ1x.js";import"./chunk-MBY4JIJT-DU8hh3vE.js";import"./chunk-7PRAP22T-CY3tH-_v.js";import"./chunk-7INBJB4K-BLEZ8obp.js";import"./chunk-5DYCD2WN-C6fNpDCq.js";import"./chunk-Z7XXMR3K-B4DDNjo4.js";import"./chunk-GWA4HPMP-DwZHSyM6.js";import"./chunk-XXDRQBXY-IULPM7G2.js";import"./chunk-WEXAMYUT-DnLgt6Py.js";import"./chunk-UA2S7LBM-EhjtOSNT.js";import{n as e}from"./chunk-7M6MHVWA-
|
|
1
|
+
import"./src-CmaQbKwl.js";import"./chunk-O7XYJQB3-j8r_wK2Y.js";import"./chunk-ZIGJFQKS-D7Dw35HO.js";import"./chunk-742MDFTN-BuWqUJ1x.js";import"./chunk-MBY4JIJT-DU8hh3vE.js";import"./chunk-7PRAP22T-CY3tH-_v.js";import"./chunk-7INBJB4K-BLEZ8obp.js";import"./chunk-5DYCD2WN-C6fNpDCq.js";import"./chunk-Z7XXMR3K-B4DDNjo4.js";import"./chunk-GWA4HPMP-DwZHSyM6.js";import"./chunk-XXDRQBXY-IULPM7G2.js";import"./chunk-WEXAMYUT-DnLgt6Py.js";import"./chunk-UA2S7LBM-EhjtOSNT.js";import{n as e}from"./chunk-7M6MHVWA-lvMKwiVM.js";import"./mermaid.core-B83stVmA.js";export{e as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as e}from"./src-Dvwdl2PF.js";import{di as t}from"./ui-BlRFVRfl.js";var n=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,r=/^[\\/]{2}/;function i(e,t){return t+e.replace(/\\/g,`/`)}var a=`popstate`;function o(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function s(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return f(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:p(t)}return h(t,n,null,e)}function c(e,t){if(e===!1||e==null)throw Error(t)}function l(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function u(){return Math.random().toString(36).substring(2,10)}function d(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function f(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?m(t):t,state:n,key:t&&t.key||r||u(),mask:i}}function p({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function m(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function h(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,c=i.history,l=`POP`,u=null,p=m();p??(p=0,c.replaceState({...c.state,idx:p},``));function m(){return(c.state||{idx:null}).idx}function h(){l=`POP`;let e=m(),t=e==null?null:e-p;p=e,u&&u({action:l,location:b.location,delta:t})}function _(e,t){l=`PUSH`;let r=o(e)?e:f(b.location,e,t);n&&n(r,e),p=m()+1;let a=d(r,p),h=b.createHref(r.mask||r);try{c.pushState(a,``,h)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(h)}s&&u&&u({action:l,location:b.location,delta:1})}function v(e,t){l=`REPLACE`;let r=o(e)?e:f(b.location,e,t);n&&n(r,e),p=m();let i=d(r,p),a=b.createHref(r.mask||r);c.replaceState(i,``,a),s&&u&&u({action:l,location:b.location,delta:0})}function y(e){return g(i,e)}let b={get action(){return l},get location(){return e(i,c)},listen(e){if(u)throw Error(`A history only accepts one active listener`);return i.addEventListener(a,h),u=e,()=>{i.removeEventListener(a,h),u=null}},createHref(e){return t(i,e)},createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:_,replace:v,go(e){return c.go(e)}};return b}function g(e,t,n=!1){let i=`http://localhost`;e&&(i=e.location.origin===`null`?e.location.href:e.location.origin),c(i,`No window.location.(origin|href) available to create URL`);let a=typeof t==`string`?t:p(t);return a=a.replace(/ $/,`%20`),!n&&r.test(a)&&(a=i+a),new URL(a,i)}var _=e(t(),1),v=class{#e=new Map;constructor(e){if(e)for(let[t,n]of e)this.set(t,n)}get(e){if(this.#e.has(e))return this.#e.get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){this.#e.set(e,t)}},y=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`,`unstable_validateParams`]);function b(e){return y.has(e)}var x=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`,`unstable_validateParams`]);function S(e){return x.has(e)}function C(e){return e.index===!0}function w(e){let t={};return e.Component&&Object.assign(t,{element:_.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:_.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:_.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function T(e,t=w,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(c(e.index!==!0||!e.children,`Cannot specify children on an index route`),c(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),C(e)){let n={...e,id:s};return r[s]=E(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=E(n,t(n)),e.children&&(n.children=T(e.children,t,o,r,i)),n}})}function E(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function ee(e,t,n=`/`){return D(e,t,n,!1)}function D(e,t,n,r,i){let a=de((typeof t==`string`?m(t):t).pathname||`/`,n);if(a==null)return null;let o=i??ne(e),s=null,c=ue(a);for(let e=0;s==null&&e<o.length;++e)s=se(o[e],c,r);return s}function te(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,loaderData:t[n.id],handle:n.handle}}function ne(e){let t=re(e);return k(t),t}function re(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let l={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(l.relativePath.startsWith(`/`)){if(!l.relativePath.startsWith(r)&&o)return;c(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length)}let u=V([r,l.relativePath]),d=n.concat(l);e.children&&e.children.length>0&&(c(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),re(e.children,t,d,u,o)),(e.path!=null||e.index)&&t.push({path:u,score:ae(u,e.index),routesMeta:d.map((e,t)=>{let[n,r]=le(e.relativePath,e.caseSensitive,t===d.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of O(e.path))a(e,t,!0,n)}),t}function O(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=O(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function k(e){e.sort((e,t)=>e.score===t.score?oe(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var A=/^:[\w-]+$/,j=/^:[\w-]+/,M=3.5,N=3,P=2,F=1,I=10,L=-2,ie=e=>e===`*`;function ae(e,t){let n=e.split(`/`),r=n.length;return n.some(ie)&&(r+=L),t&&(r+=P),n.filter(e=>!ie(e)).reduce((e,t)=>e+(A.test(t)?N:j.test(t)?M:t===``?F:I),r)}function oe(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function se(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?ce(u,l,s.matcher,s.compiledParams):R(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=R({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:V([a,d.pathname]),pathnameBase:H(V([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=V([a,d.pathnameBase]))}return o}function R(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=le(e.path,e.caseSensitive,e.end);return ce(e,t,n,r)}function ce(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=ye(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=ye(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function le(e,t=!1,n=!0){l(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function ue(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return l(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function de(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function z({basename:e,pathname:t}){return t===`/`?e:V([e,t])}var fe=e=>n.test(e);function pe(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?m(e):e,a;return n?(n=ve(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?me(n.substring(1),`/`):me(n,t)):a=t,{pathname:a,search:be(r),hash:xe(i)}}function me(e,t){let n=ye(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function B(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function he(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function ge(e){let t=he(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function _e(e,t,n,r=!1){let i;typeof e==`string`?i=m(e):(i={...e},c(!i.pathname||!i.pathname.includes(`?`),B(`?`,`pathname`,`search`,i)),c(!i.pathname||!i.pathname.includes(`#`),B(`#`,`pathname`,`hash`,i)),c(!i.search||!i.search.includes(`#`),B(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let l=pe(i,s),u=o&&o!==`/`&&o.endsWith(`/`),d=(a||o===`.`)&&n.endsWith(`/`);return!l.pathname.endsWith(`/`)&&(u||d)&&(l.pathname+=`/`),l}var ve=e=>e.replace(/[\\/]{2,}/g,`/`),V=e=>ve(e.join(`/`));function ye(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var H=e=>ye(e).replace(/^\/*/,`/`),be=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,xe=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Se=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],U=class{status;statusText;data;error;internal;constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ce(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function we(e){return V(e.map(e=>e.route.path).filter(Boolean))||`/`}function Te(e,t){let n=new URL(typeof e==`string`||e instanceof URL?e:e.url),r=typeof t==`string`?m(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);let i=e.toString();n.search=i?`?${i}`:``}else n.search=``;return n.hash=r.hash||``,n}var Ee=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function De(e,t){let a=e;if(typeof a!=`string`||!n.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let o=a,s=!1;if(Ee)try{let e=new URL(window.location.href),n=r.test(a)?new URL(i(a,e.protocol)):new URL(a),o=de(n.pathname,t);n.origin===e.origin&&o!=null?a=o+n.search+n.hash:s=!0}catch{l(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:s,to:a}}var Oe=Symbol(`Uninstrumented`),ke=new WeakMap;function Ae(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){e.lazy!=null&&n.lazy.push(e.lazy),e[`lazy.loader`]!=null&&n[`lazy.loader`].push(e[`lazy.loader`]),e[`lazy.action`]!=null&&n[`lazy.action`].push(e[`lazy.action`]),e[`lazy.middleware`]!=null&&n[`lazy.middleware`].push(e[`lazy.middleware`]),e.middleware!=null&&n.middleware.push(e.middleware),e.loader!=null&&n.loader.push(e.loader),e.action!=null&&n.action.push(e.action)}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=t.lazy;r.lazy=async(...t)=>G(await K(n.lazy,void 0,()=>e(...t),q))}if(typeof t.lazy==`object`){let e=t.lazy;if(typeof e.middleware==`function`&&n[`lazy.middleware`].length>0){let t=e.middleware;r.lazy=Object.assign(r.lazy||{},{middleware:async(...e)=>G(await K(n[`lazy.middleware`],void 0,()=>t(...e),q))})}if(typeof e.loader==`function`&&n[`lazy.loader`].length>0){let t=e.loader;r.lazy=Object.assign(r.lazy||{},{loader:async(...e)=>G(await K(n[`lazy.loader`],void 0,()=>t(...e),q))})}if(typeof e.action==`function`&&n[`lazy.action`].length>0){let t=e.action;r.lazy=Object.assign(r.lazy||{},{action:async(...e)=>G(await K(n[`lazy.action`],void 0,()=>t(...e),q))})}}if(typeof t.loader==`function`&&n.loader.length>0){let e=Me(t.loader),i=async(...t)=>G(await K(n.loader,J(t[0]),()=>e(...t),q));e.hydrate===!0&&(i.hydrate=!0),W(i,e),r.loader=i}if(typeof t.action==`function`&&n.action.length>0){let e=Me(t.action),i=async(...t)=>G(await K(n.action,J(t[0]),()=>e(...t),q));W(i,e),r.action=i}return t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=Me(e),r=async(...e)=>G(await K(n.middleware,J(e[0]),()=>t(...e),q));return W(r,t),r})),r}function je(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){e.navigate!=null&&n.navigate.push(e.navigate),e.fetch!=null&&n.fetch.push(e.fetch)}})),n.navigate.length>0){let t=Me(e.navigate),r=async(...r)=>{let[i,a]=r,o,s={to:typeof i==`number`||typeof i==`string`?i:i?p(i):`.`,...Fe(e,a??{})};return G(await K(n.navigate,s,async()=>{if(typeof i==`number`)return await t(...r);let n=Ne(e,e=>{o=e});try{return await t(...r)}finally{n()}},e=>({...q(e),meta:o})))};W(r,t),e.navigate=r}if(n.fetch.length>0){let t=Me(e.fetch),r=async(...r)=>{let[i,a,o,s]=r,c;return G(await K(n.fetch,{href:o??`.`,fetcherKey:i,...Fe(e,s??{})},async()=>{let n=Ne(e,e=>{c=e});try{return await t(...r)}finally{n()}},e=>({...q(e),meta:c})))};W(r,t),e.fetch=r}return e}function Me(e){return e[Oe]??e}function W(e,t){e[Oe]=t}function Ne(e,t){return ke.set(e,t),()=>{ke.get(e)===t&&ke.delete(e)}}function Pe(e){let t=ke.get(e);return ke.delete(e),t}function G(e){if(e.type===`error`)throw e.value;return e.value}async function K(e,t,n,r,i={result:null,innerResult:null},a=e.length-1){let o=e[a];if(o){let s,l=async()=>(s?console.error(`You cannot call instrumented handlers more than once`):s=K(e,t,n,r,i,a-1),await s,c(i.innerResult,`Expected an inner result`),i.innerResult);try{await o(l,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}s||await l(),await s}else{try{i.result={type:`success`,value:await n()}}catch(e){i.result={type:`error`,value:e}}i.innerResult=r(i.result,t)}return i.result?i.result:(i.result={type:`error`,value:Error(`No result assigned in instrumentation chain.`)},i.innerResult=r(i.result,t),i.result)}function q(e){return e.type===`error`&&e.value instanceof Error?{status:`error`,error:e.value}:{status:`success`,error:void 0}}function J(e){let{request:t,context:n,params:r}=e;return{...e,request:Ie(t),params:{...r},context:Le(n)}}function Fe(e,t){return{currentUrl:p(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function Ie(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function Le(e){return{get:t=>e.get(t)}}var Re=class{#e=[];#t=[];#n;constructor(e){this.#n=e}update(e){this.#e=e,this.#t=ne(e)}match(e,t=!1){return D(this.#e,e,this.#n,t,this.#t)}},Y=new URL(`http://localhost`);function ze(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),Y)}catch{return Y}}function Be(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function Ve(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function He(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!Be(i,n),s=!Be(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!Ve(e,i)||!Be(i,a)))throw Error(`External navigation is not allowed`)}var Ue=[`POST`,`PUT`,`PATCH`,`DELETE`],We=new Set(Ue),Ge=[`GET`,...Ue],Ke=new Set(Ge),qe=new Set([301,302,303,307,308]),Je=new Set([307,308]),Ye={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Xe={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ze={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},Qe=`remix-router-transitions`,$e=Symbol(`ResetLoaderData`);function et(e,t){return e.unstable_routePatternMatching?(c(void 0,`You must call unstable_preloadRoutePattern() from "react-router/route-pattern" before enabling future.unstable_routePatternMatching.`),new(void 0)(t)):new Re(t)}var tt=class{#e;#t;#n;constructor(e,t){this.#e=e,this.#n=t,this.#n.update(e)}get stableRoutes(){return this.#e}get activeRoutes(){return this.#t??this.#e}get hasHMRRoutes(){return this.#t!=null}setRoutes(e){this.#e=e,this.#t||this.#n.update(e)}setHmrRoutes(e){this.#t=e,this.#n.update(e)}commitHmrRoutes(){this.#t&&(this.#e=this.#t,this.#t=void 0,this.#n.update(this.#e))}};function nt(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;c(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let i=e.hydrationRouteProperties||[],a=e.mapRouteProperties,o=a||(()=>({}));if(e.instrumentations){let t=e.instrumentations;o=e=>({...a?.(e),...Ae(t.map(e=>e.route).filter(Boolean),e)})}let s={...e.future},u=e.basename||`/`;u.startsWith(`/`)||(u=`/${u}`);let d=et(s,u),h={},_=new tt(T(e.routes,o,void 0,h),d),y=e.dataStrategy||yt,b=null,x=new Set,S=null,C=null,w=null,E=null,ee=e.hydrationData!=null,D=d.match(e.history.location),ne=!1,re=null,O,k;if(D==null&&!e.patchRoutesOnNavigation){let t=X(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Ht(_.activeRoutes);O=!0,k=!O,D=n,re={[r.id]:t}}else if(D&&!e.hydrationData&<(D,e.history.location.pathname).active&&(D=null),!D){O=!1,k=!O,D=[];let t=lt(null,e.history.location.pathname);t.active&&t.matches&&(ne=!0,D=t.matches)}else if(D.some(e=>e.route.lazy))O=!1,k=!O;else if(!D.some(e=>st(e.route)))O=!0,k=!O;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=D;if(n){let e=D.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}k=!1,O=!0,r.forEach(e=>{let r=ct(e.route,t,n);k||=r.renderFallback,O&&=!r.shouldLoad})}let A,j={historyAction:e.history.action,location:e.history.location,matches:D,initialized:O,renderFallback:k,navigation:Ye,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||re,fetchers:new Map,blockers:new Map},M=`POP`,N=null,P=!1,F,I=!1,L=new Map,ie=null,ae=!1,oe=!1,se=new Set,R=new Map,ce=0,le=-1,ue=new Map,z=new Set,pe=new Map,me=new Map,B=new Set,he=new Map,ge,_e=null;function ve(){if(b=e.history.listen(({action:t,location:n,delta:r})=>{if(ge){ge(),ge=void 0;return}l(he.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=Ke({currentLocation:j.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{ge=e});e.history.go(r*-1),Ge(i,{state:`blocked`,location:n,proceed(){Ge(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(j.blockers);e.set(i,Ze),H({blockers:e})}}),N?.resolve(),N=null;return}return U(t,n)}),n){dn(t,L);let e=()=>fn(t,L);t.addEventListener(`pagehide`,e),ie=()=>t.removeEventListener(`pagehide`,e)}return j.initialized||U(`POP`,j.location,{initialHydration:!0}),A}function V(){b&&b(),ie&&ie(),x.clear(),F&&F.abort(),j.fetchers.forEach((e,t)=>Le(j.fetchers,t)),j.blockers.forEach((e,t)=>We(t))}function ye(e){if(x.add(e),S){let{newErrors:t}=S;S=null,e(j,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>x.delete(e)}function H(e,t={}){e.matches&&=e.matches.map(e=>{let t=h[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),j={...j,...e};let n=[],r=[];j.fetchers.forEach((e,t)=>{e.state===`idle`&&(B.has(t)?n.push(t):r.push(t))}),B.forEach(e=>{!j.fetchers.has(e)&&!R.has(e)&&n.push(e)}),x.size===0&&(S={newErrors:e.errors??null}),[...x].forEach(r=>r(j,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Le(j.fetchers,e)),r.forEach(e=>j.fetchers.delete(e))}function be(t,n,{flushSync:r}={}){let i=j.actionData!=null&&j.navigation.formMethod!=null&&Q(j.navigation.formMethod)&&j.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?j.actionData:null;let o=n.loaderData?zt(j.loaderData,n.loaderData,n.matches||[],n.errors):j.loaderData,s=j.blockers;s.size>0&&!ae&&(s=new Map(s),s.forEach((e,t)=>s.set(t,Ze)));let c=!ae&&rt(t,n.matches||j.matches),l=P===!0||j.navigation.formMethod!=null&&Q(j.navigation.formMethod)&&t.state?._isRedirect!==!0;_.commitHmrRoutes(),ae||M===`POP`||(M===`PUSH`?e.history.push(t,t.state):M===`REPLACE`&&e.history.replace(t,t.state));let u;if(M===`POP`&&!ae&&t!==j.location){let e=L.get(j.location.pathname);e&&e.has(t.pathname)?u={currentLocation:j.location,nextLocation:t}:L.has(t.pathname)&&(u={currentLocation:t,nextLocation:j.location})}else if(I){let e=L.get(j.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),L.set(j.location.pathname,e)),u={currentLocation:j.location,nextLocation:t}}H({...n,actionData:a,loaderData:o,historyAction:M,location:t,initialized:!0,renderFallback:!1,navigation:Ye,revalidation:`idle`,restoreScrollPosition:c,preventScrollReset:l,blockers:s},{viewTransitionOpts:u,flushSync:r===!0}),M=`POP`,P=!1,I=!1,ae=!1,oe=!1,N?.resolve(),N=null,_e?.resolve(),_e=null}async function xe(t,n){if(N?.resolve(),N=null,typeof t==`number`){N||=pn();let n=N.promise;return e.history.go(t),n}let i=Pe(A),{path:a,submission:o,error:s}=at(!1,it(j.location,j.matches,u,t,n?.fromRouteId,n?.relative),n),c;if(n?.mask){let t=typeof n.mask==`string`?m(n.mask):{...j.location.mask,...n.mask};if(c={pathname:t.pathname??``,search:t.search??``,hash:t.hash??``},r.test(c.pathname))throw Error(`External navigation is not allowed`);c.pathname.startsWith(`\\`)&&(c.pathname=c.pathname.replace(/^\\+/,`/`)),He(typeof n.mask==`string`?n.mask:p(n.mask),p(c),e.history.createURL(`/`),`reject`)}let l=j.location,d=f(l,a,n&&n.state,void 0,c);d={...d,...e.history.encodeLocation(d)},He(t==null?e.history.createHref(j.location):typeof t==`string`?t:p(t),e.history.createHref(d.mask||d),e.history.createURL(`/`),`reject`);let h=n&&n.replace!=null?n.replace:void 0,g=`PUSH`;h===!0?g=`REPLACE`:h===!1||o!=null&&Q(o.formMethod)&&o.formAction===j.location.pathname+j.location.search&&(g=`REPLACE`);let _=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,v=(n&&n.flushSync)===!0,y=Ke({currentLocation:l,nextLocation:d,historyAction:g});if(y){Ge(y,{state:`blocked`,location:d,proceed(){Ge(y,{state:`proceeding`,proceed:void 0,reset:void 0,location:d}),xe(t,n)},reset(){let e=new Map(j.blockers);e.set(y,Ze),H({blockers:e})}});return}await U(g,d,{submission:o,pendingError:s,preventScrollReset:_,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:v,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate,instrumentationNavigateMetaReceiver:i})}function Se(){_e||=pn(),K(),H({revalidation:`loading`});let e=_e.promise;return j.navigation.state===`submitting`?e:j.navigation.state===`idle`?(U(j.historyAction,j.location,{startUninterruptedRevalidation:!0}),e):(U(M||j.historyAction,j.navigation.location,{overrideNavigation:j.navigation,enableViewTransition:I===!0}),e)}async function U(t,n,r){F&&F.abort(),F=null,M=t,ae=(r&&r.startUninterruptedRevalidation)===!0,nt(j.location,j.matches),P=(r&&r.preventScrollReset)===!0,I=(r&&r.enableViewTransition)===!0;let i=r?.initialHydration&&j.matches&&j.matches.length>0&&!ne?j.matches:d.match(n),a=(r&&r.flushSync)===!0;if(i&&j.initialized&&!oe&&Gt(j.location,n)&&!(r&&r.submission&&Q(r.submission.formMethod))){be(n,{matches:i},{flushSync:a});return}let o=lt(i,n.pathname);if(o.active&&o.matches&&(i=o.matches),r?.instrumentationNavigateMetaReceiver){let t=an(e.history,n,i);r.instrumentationNavigateMetaReceiver(t)}if(!i){let{error:e,notFoundMatches:t,route:r}=qe(n.pathname);be(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:a});return}let s=r&&r.overrideNavigation?{...r.overrideNavigation,matches:i,historyAction:t}:void 0;F=new AbortController;let c=Pt(e.history,n,F.signal,r&&r.submission),l=e.getContext?await e.getContext():new v,u;if(r&&r.pendingError)u=[Vt(i).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Q(r.submission.formMethod)){let d=await we(c,n,r.submission,i,t,l,o.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:a});if(d.shortCircuited)return;if(d.pendingActionResult){let[e,t]=d.pendingActionResult;if(Z(t)&&Ce(t.error)&&t.error.status===404){F=null,be(n,{matches:d.matches,loaderData:{},errors:{[e]:t.error}});return}}i=d.matches||i,u=d.pendingActionResult,s=sn(n,i,t,r.submission),a=!1,o.active=!1,c=Pt(e.history,c.url,c.signal)}let{shortCircuited:f,matches:p,loaderData:m,errors:h,workingFetchers:g}=await Te(c,n,i,t,l,o.active,s,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,a,u,r&&r.callSiteDefaultShouldRevalidate);f||(F=null,be(n,{matches:p||i,...Bt(u),loaderData:m,errors:h,...g?{fetchers:g}:{}}))}async function we(t,n,r,a,s,c,l,d,f={}){if(K(),H({navigation:cn(n,a,s,r)},{flushSync:f.flushSync===!0}),l){let e=await ut(a,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Ht(_.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=Vt(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}if(e.matches)a=e.matches;else{let{notFoundMatches:e,error:t,route:r}=qe(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let p,m=rn(a,n);if(!m.route.action&&!m.route.lazy)p={type:`error`,error:X(405,{method:t.method,pathname:n.pathname,routeId:m.route.id})};else{let e=await Ne(t,n,Tt(o,h,t,n,a,m,d?[]:i,c),c,null);if(p=e[m.route.id],!p){for(let t of a)if(e[t.route.id]){p=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(Xt(p)){let n;return n=f&&f.replace!=null?f.replace:Nt(p.response.headers.get(`Location`),new URL(t.url),u,e.history)===j.location.pathname+j.location.search,await W(t,p,!0,{submission:r,replace:n}),{shortCircuited:!0}}if(Z(p)){let e=Vt(a,m.route.id);return(f&&f.replace)!==!0&&(M=`PUSH`),{matches:a,pendingActionResult:[e.route.id,p,m.route.id]}}return{matches:a,pendingActionResult:[m.route.id,p]}}async function Te(t,n,r,a,s,c,l,u,f,p,m,g,v,y){let b=l||sn(n,r,a,u),x=u||f||on(b),S=!ae&&!m;if(c){if(S){let e=Ee(v);H({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:g})}let e=await ut(r,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Ht(_.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Vt(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)r=e.matches;else{let{error:e,notFoundMatches:t,route:r}=qe(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let{dsMatches:C,revalidatingFetchers:w}=ot(t,s,o,h,e.history,j,r,x,n,m?[]:i,m===!0,oe,se,B,pe,z,d,v,y);if(le=++ce,!e.dataStrategy&&!C.some(e=>e.shouldLoad)&&!C.some(e=>e.route.middleware&&e.route.middleware.length>0)&&w.length===0){let e=new Map(j.fetchers),t=Be(e);return be(n,{matches:r,loaderData:{},errors:v&&Z(v[1])?{[v[0]]:v[1].error}:null,...Bt(v),...t?{fetchers:e}:{}},{flushSync:g}),{shortCircuited:!0}}if(S){let e={};if(!c){e.navigation=b;let t=Ee(v);t!==void 0&&(e.actionData=t)}w.length>0&&(e.fetchers=De(w)),H(e,{flushSync:g})}w.forEach(e=>{Y(e.key),e.controller&&R.set(e.key,e.controller)});let T=()=>w.forEach(e=>Y(e.key));F&&F.signal.addEventListener(`abort`,T);let{loaderResults:E,fetcherResults:ee}=await G(C,w,t,n,s);if(t.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener(`abort`,T),w.forEach(e=>R.delete(e.key));let D=Ut(E);if(D)return await W(t,D.result,!0,{replace:p}),{shortCircuited:!0};if(D=Ut(ee),D)return z.add(D.key),await W(t,D.result,!0,{replace:p}),{shortCircuited:!0};let te=new Map(j.fetchers),{loaderData:ne,errors:re}=Rt(j,r,E,v,w,ee,te);m&&j.errors&&(re={...j.errors,...re});let O=Be(te),k=Ve(le,te),A=O||k||w.length>0;return{matches:r,loaderData:ne,errors:re,...A?{workingFetchers:te}:{}}}function Ee(e){if(e&&!Z(e[1]))return{[e[0]]:e[1].data};if(j.actionData)return Object.keys(j.actionData).length===0?null:j.actionData}function De(e){let t=new Map(j.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=ln(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function Oe(t,n,r,i){Y(t);let a=(i&&i.flushSync)===!0,o=Pe(A),s=it(j.location,j.matches,u,r,n,i?.relative),c=d.match(s),l=lt(c,s);if(l.active&&l.matches&&(c=l.matches),o&&o(an(e.history,s,c)),!c){J(t,n,X(404,{pathname:s}),{flushSync:a});return}let{path:f,submission:p,error:m}=at(!0,s,i);if(m){J(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new v,g=(i&&i.preventScrollReset)===!0;if(p&&Q(p.formMethod)){await ke(t,n,f,c,h,l.active,a,g,p,i&&i.defaultShouldRevalidate);return}let _={routeId:n,path:f,isDiscovering:l.active};pe.set(t,_),await Me(t,_,c,h,a,g,p)}async function ke(t,n,r,a,s,l,u,f,p,m){K(),pe.delete(t),q(t,un(p,j.fetchers.get(t)),{flushSync:u});let g=new AbortController,_=Pt(e.history,r,g.signal,p);if(l){let e=await ut(a,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){J(t,n,e.error,{flushSync:u});return}if(e.matches)a=e.matches;else{J(t,n,X(404,{pathname:r}),{flushSync:u});return}}let v=rn(a,r);if(!v.route.action&&!v.route.lazy){J(t,n,X(405,{method:p.formMethod,pathname:r,routeId:n}),{flushSync:u});return}R.set(t,g);let y=ce,b=Tt(o,h,_,r,a,v,i,s),x=await Ne(_,r,b,s,t),S=x[v.route.id];if(!S){for(let e of b)if(x[e.route.id]){S=x[e.route.id];break}}if(_.signal.aborted){R.get(t)===g&&R.delete(t);return}if(B.has(t)){if(Xt(S)||Z(S)){q(t,$(void 0));return}}else{if(Xt(S)){if(R.delete(t),le>y){q(t,$(void 0));return}return z.add(t),q(t,ln(p)),W(_,S,!1,{fetcherSubmission:p,preventScrollReset:f})}if(Z(S)){J(t,n,S.error);return}}let C=j.navigation.location||j.location,w=Pt(e.history,C,g.signal),T=j.navigation.state===`idle`?j.matches:d.match(j.navigation.location);c(T,`Didn't find any matches after fetcher action`);let E=++ce;ue.set(t,E);let{dsMatches:ee,revalidatingFetchers:D}=ot(w,s,o,h,e.history,j,T,p,C,i,!1,oe,se,B,pe,z,d,[v.route.id,S],m),te=ln(p,S.data),ne=new Map(j.fetchers);ne.set(t,te),D.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=ne.get(t),r=ln(void 0,n?n.data:void 0);ne.set(t,r),Y(t),e.controller&&R.set(t,e.controller)}),H({fetchers:ne});let re=()=>D.forEach(e=>Y(e.key));g.signal.addEventListener(`abort`,re);let{loaderResults:O,fetcherResults:k}=await G(ee,D,w,C,s);if(g.signal.aborted){ue.get(t)===E&&ue.delete(t);return}g.signal.removeEventListener(`abort`,re),ue.delete(t),R.delete(t),D.forEach(e=>R.delete(e.key));let A=j.fetchers.has(t),N=e=>{if(!A)return e;let n=new Map(e.fetchers);return n.set(t,$(S.data)),{...e,fetchers:n}},P=Ut(O);if(P)return j=N(j),W(w,P.result,!1,{preventScrollReset:f});if(P=Ut(k),P)return z.add(P.key),j=N(j),W(w,P.result,!1,{preventScrollReset:f});let I=new Map(j.fetchers);A&&I.set(t,$(S.data));let{loaderData:L,errors:ie}=Rt(j,T,O,void 0,D,k,I);Ve(E,I),j.navigation.state===`loading`&&E>le?(c(M,`Expected pending action`),F&&F.abort(),be(j.navigation.location,{matches:T,loaderData:L,errors:ie,fetchers:I})):(H({errors:ie,loaderData:zt(j.loaderData,L,T,ie),fetchers:I}),oe=!1)}async function Me(t,n,r,a,s,c,l){let{routeId:u,path:d}=n,f=j.fetchers.get(t);q(t,ln(l,f?f.data:void 0),{flushSync:s});let p=new AbortController,m=Pt(e.history,d,p.signal);if(n.isDiscovering){let e=await ut(r,new URL(m.url).pathname,m.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){J(t,u,e.error,{flushSync:s});return}if(e.matches)r=e.matches,n.isDiscovering=!1;else{J(t,u,X(404,{pathname:d}),{flushSync:s});return}}let g=rn(r,d);R.set(t,p);let _=ce,v=await Ne(m,d,Tt(o,h,m,d,r,g,i,a),a,t),y=v[g.route.id];if(!y){for(let e of r)if(v[e.route.id]){y=v[e.route.id];break}}if(R.get(t)===p&&R.delete(t),!m.signal.aborted){if(B.has(t)){q(t,$(void 0));return}if(Xt(y)){if(le>_){q(t,$(void 0));return}z.add(t),await W(m,y,!1,{preventScrollReset:c});return}if(Z(y)){J(t,u,y.error);return}q(t,$(y.data))}}async function W(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:d}={}){a||(N?.resolve(),N=null),i.response.headers.has(`X-Remix-Revalidate`)&&(oe=!0);let p=i.response.headers.get(`Location`);c(p,`Expected a Location header on the redirect Response`);let m=p,h=new URL(r.url);p=Nt(p,h,u,e.history),He(m,p,h,`allow-explicit`);let _=f(j.location,p,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(fe(p)){let n=g(t,p,!0);e=n.origin!==t.location.origin||de(n.pathname,u)==null}if(e){d?t.location.replace(p):t.location.assign(p);return}}F=null;let v=d===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:y,formAction:b,formEncType:x}=j.navigation;!o&&!s&&y&&b&&x&&(o=on(j.navigation));let S=o||s;Je.has(i.response.status)&&S&&Q(S.formMethod)?await U(v,_,{submission:{...S,formAction:p},preventScrollReset:l||P,enableViewTransition:a?I:void 0}):await U(v,_,{overrideNavigation:sn(_,[],v,o),fetcherSubmission:s,preventScrollReset:l||P,enableViewTransition:a?I:void 0})}async function Ne(e,t,n,r,i){let a,o={};try{a=await Et(y,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!Q(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;!a.hasOwnProperty(e.route.id)&&!j.loaderData.hasOwnProperty(e.route.id)&&(!j.errors||!j.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(Yt(r)){let i=r.result;o[t]={type:`redirect`,response:At(i,e,t,n,u)}}else o[t]=await kt(r);return o}async function G(e,t,n,r,i){let a=Ne(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await Ne(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:`error`,error:X(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function K(){oe=!0,pe.forEach((e,t)=>{R.has(t)&&se.add(t),Y(t)})}function q(e,t,n={}){let r=new Map(j.fetchers);r.set(e,t),H({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function J(e,t,n,r={}){let i=Vt(j.matches,t),a=new Map(j.fetchers);Le(a,e),H({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function Fe(e){return me.set(e,(me.get(e)||0)+1),B.has(e)&&B.delete(e),j.fetchers.get(e)||Xe}function Ie(e,t){Y(e,t?.reason),q(e,$(null))}function Le(e,t){let n=j.fetchers.get(t);R.has(t)&&!(n&&n.state===`loading`&&ue.has(t))&&Y(t),pe.delete(t),ue.delete(t),z.delete(t),B.delete(t),se.delete(t),e.delete(t)}function Re(e){let t=(me.get(e)||0)-1;t<=0?(me.delete(e),B.add(e)):me.set(e,t),H({fetchers:new Map(j.fetchers)})}function Y(e,t){let n=R.get(e);n&&(n.abort(t),R.delete(e))}function ze(e,t){for(let n of e){let e=t.get(n);c(e,`Expected fetcher: ${n}`);let r=$(e.data);t.set(n,r)}}function Be(e){let t=[],n=!1;for(let r of z){let i=e.get(r);c(i,`Expected fetcher: ${r}`),i.state===`loading`&&(z.delete(r),t.push(r),n=!0)}return ze(t,e),n}function Ve(e,t){let n=[];for(let[r,i]of ue)if(i<e){let e=t.get(r);c(e,`Expected fetcher: ${r}`),e.state===`loading`&&(Y(r),ue.delete(r),n.push(r))}return ze(n,t),n.length>0}function Ue(e,t){let n=j.blockers.get(e)||Ze;return he.get(e)!==t&&he.set(e,t),n}function We(e){j.blockers.delete(e),he.delete(e)}function Ge(e,t){let n=j.blockers.get(e)||Ze;c(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(j.blockers);r.set(e,t),H({blockers:r})}function Ke({currentLocation:e,nextLocation:t,historyAction:n}){if(he.size===0)return;he.size>1&&l(!1,`A router only supports one blocker at a time`);let r=Array.from(he.entries()),[i,a]=r[r.length-1],o=j.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function qe(e){let t=X(404,{pathname:e}),n=_.activeRoutes,{matches:r,route:i}=Ht(n);return{notFoundMatches:r,route:i,error:t}}function Qe(e,t,n){if(C=e,E=t,w=n||null,!ee&&j.navigation===Ye){ee=!0;let e=rt(j.location,j.matches);e!=null&&H({restoreScrollPosition:e})}return()=>{C=null,E=null,w=null}}function $e(e,t){return w&&w(e,t.map(e=>te(e,j.loaderData)))||e.key}function nt(e,t){if(C&&E){let n=$e(e,t);C[n]=E()}}function rt(e,t){if(C){let n=$e(e,t),r=C[n];if(typeof r==`number`)return r}return null}function lt(t,n){if(e.patchRoutesOnNavigation){if(!t)return{active:!0,matches:d.match(n,!0)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:d.match(n,!0)}}return{active:!1,matches:null}}async function ut(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let a=t;for(;;){let t=h;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:a,fetcherKey:i,patch:(e,n)=>{r.aborted||ft(e,n,_,t,o,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:a}}if(r.aborted)return{type:`aborted`};let s=d.match(n),c=null;if(s&&(Object.keys(s[0].params).length===0||(c=d.match(n,!0),!(c&&a.length<c.length&&dt(a,c.slice(0,a.length))))))return{type:`success`,matches:s};if(c||=d.match(n,!0),!c||dt(a,c))return{type:`success`,matches:null};a=c}}function dt(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function pt(e){h={},_.setHmrRoutes(T(e,o,void 0,h))}function mt(e,t,n=!1){ft(e,t,_,h,o,n),_.hasHMRRoutes||H({})}return A={get basename(){return u},get future(){return s},get state(){return j},get routes(){return _.stableRoutes},match(e){return d.match(e)},get manifest(){return h},get window(){return t},initialize:ve,subscribe:ye,enableScrollRestoration:Qe,navigate:xe,fetch:Oe,revalidate:Se,createHref:t=>e.history.createHref(t),createURL:t=>e.history.createURL(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Fe,resetFetcher:Ie,deleteFetcher:Re,dispose:V,getBlocker:Ue,deleteBlocker:We,patchRoutes:mt,_internalFetchControllers:R,_internalSetRoutes:pt,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){H(e)}},e.instrumentations&&(A=je(A,e.instrumentations.map(e=>e.router).filter(Boolean))),A}function rt(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function it(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=_e(r||`.`,ge(o),de(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=nn(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=z({basename:n,pathname:c.pathname})),p(c)}function at(e,t,n){if(!n||!rt(n))return{path:t};if(n.formMethod&&!tn(n.formMethod))return{path:t,error:X(405,{method:n.formMethod})};let r=()=>({path:t,error:X(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=Wt(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Q(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}\n`,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if(n.formEncType===`application/json`){if(!Q(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}c(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=Ft(n.formData),s=n.formData;else if(n.body instanceof FormData)o=Ft(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=It(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=It(o)}catch{return r()}let l={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(Q(l.formMethod))return{path:t,submission:l};let u=m(t);return e&&u.search&&nn(u.search)&&o.append(`index`,``),u.search=`?${o}`,{path:p(u),submission:l}}function ot(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let y=_?Z(_[1])?_[1].error:_[1].data:void 0,b=i.createURL(a.location),x=i.createURL(c),S;if(u&&a.errors){let e=Object.keys(a.errors)[0];S=o.findIndex(t=>t.route.id===e)}else if(_&&Z(_[1])){let e=_[0];S=o.findIndex(t=>t.route.id===e)-1}let C=_?_[1].statusCode:void 0,w=C&&C>=400,T={currentUrl:b,currentParams:a.matches[0]?.params||{},nextUrl:x,nextParams:o[0].params,...s,actionResult:y,actionStatus:C},E=we(o),ee=o.map((i,o)=>{let{route:s}=i,f=null;if(S!=null&&o>S)f=!1;else if(s.lazy)f=!0;else if(!st(s))f=!1;else if(u){let{shouldLoad:e}=ct(s,a.loaderData,a.errors);f=e}else lt(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return wt(n,r,e,c,E,i,l,t,f);let p=!1;typeof v==`boolean`?p=v:w?p=!1:d||b.pathname+b.search===x.pathname+x.search?p=!0:b.search===x.search?ut(a.matches[o],i)&&(p=!0):p=!0;let m={...T,defaultShouldRevalidate:p};return wt(n,r,e,c,E,i,l,t,dt(i,m),m,v)}),D=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s)||e.isDiscovering)return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,_=g.match(e.path);if(!_){D.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let y=rn(_,e.path),b=new AbortController,x=Pt(i,e.path,b.signal),S=null;if(f.has(s))f.delete(s),S=Tt(n,r,x,e.path,_,y,l,t);else if(m)d&&(S=Tt(n,r,x,e.path,_,y,l,t));else{let i;i=typeof v==`boolean`?v:!w&&d;let a={...T,defaultShouldRevalidate:i};dt(y,a)&&(S=Tt(n,r,x,e.path,_,y,l,t,a))}S&&D.push({key:s,routeId:e.routeId,path:e.path,matches:S,match:y,request:x,controller:b})}),{dsMatches:ee,revalidatingFetchers:D}}function st(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function ct(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!st(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function lt(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function ut(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function dt(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function ft(e,t,n,r,i,a){let o;if(e){let t=r[e];c(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],l=[];if(t.forEach(e=>{let t=o.find(t=>pt(e,t));t?l.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=T(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&l.length>0)for(let e=0;e<l.length;e++){let{existingRoute:t,newRoute:n}=l[e],r=t,[a]=T([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function pt(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index!==t.index||e.path!==t.path||e.caseSensitive!==t.caseSensitive?!1:(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>pt(e,t)))??!1}var mt=new WeakMap,ht=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(c(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=mt.get(i);o||(o={},mt.set(i,o));let s=o[e];if(s)return s;let u=(async()=>{let t=b(e),n=i[e]!==void 0;if(t)l(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)l(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=u,u},gt=new WeakMap;function _t(e,t,n,r,i){let a=n[e.id];if(c(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=gt.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{c(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=S(e),o=a[e]!==void 0;i?l(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?l(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return gt.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],u;for(let a of o){if(i&&i.includes(a))continue;let o=ht({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(u=o))}let d=s.length>0?Promise.all(s).then(()=>{}):void 0;return d?.catch(()=>{}),u?.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:u}}async function vt(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function yt(e){return e.matches.some(e=>e.route.middleware)?bt(e,()=>vt(e)):vt(e)}function bt(e,t){return xt(e,t,e=>{if(en(e))throw e;return e},qt,n);async function n(t,n,r){if(r)return Object.assign(r.value,{[n]:{type:`error`,result:t}});{let{matches:r}=e,i=Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0)),a=r[i].route.id;for(let e of r.slice(0,i+1))try{await e._lazyPromises?.route}catch{a=e.route.id;break}return{[Vt(r,a).route.id]:{type:`error`,result:t}}}}}async function xt(e,t,n,r,i){let{matches:a,...o}=e;return await St(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function St(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await St(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function Ct(e,t,n,r,i){let a=ht({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=_t(r.route,Q(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function wt(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=Ct(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?dt(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?dt(a,{...l,defaultShouldRevalidate:e}):dt(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!Q(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(Q(n.method)||!p)?Dt({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function Tt(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?wt(e,t,n,r,we(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Ct(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function Et(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:Te(t,n),pattern:we(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return bt(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function Dt({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=Q(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:Te(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a){if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw X(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}}else if(t)c=await f(t);else{let t=new URL(e.url);throw X(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function Ot(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function kt(e){let{result:t,type:n}=e;if(Qt(t)){let e;try{e=await Ot(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new U(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?Zt(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:Kt(t),statusCode:Ce(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:Ce(t)?t.status:void 0}:Zt(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function At(e,t,n,r,i){let a=e.headers.get(`Location`);if(c(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!fe(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=it(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var jt=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Mt(e){try{return jt.includes(new URL(e).protocol)}catch{return!1}}function Nt(e,t,n,a){if(fe(e)){let a=e,o=r.test(a)?new URL(i(a,t.protocol)):new URL(a);if(Mt(o.toString()))throw Error(`Invalid redirect location`);let s=de(o.pathname,n)!=null;if(o.origin===t.origin&&s)return ve(o.pathname)+o.search+o.hash}try{if(Mt(a.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function Pt(e,t,n,r){let i=e.createURL(Wt(t)).toString(),a={signal:n};if(r&&Q(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):a.body=t===`text/plain`?r.text:t===`application/x-www-form-urlencoded`&&r.formData?Ft(r.formData):r.formData}return new Request(i,a)}function Ft(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function It(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Lt(e,t,n,r=!1,i=!1){let a={},o=null,s,l=!1,u={},d=n&&Z(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let f=n.route.id,p=t[f];if(c(!Xt(p),`Cannot handle redirect results in processLoaderData`),Z(p)){let t=p.error;if(d!==void 0&&(t=d,d=void 0),o||={},i)o[f]=t;else{let n=Vt(e,f);o[n.route.id]??(o[n.route.id]=t)}r||(a[f]=$e),l||(l=!0,s=Ce(p.error)?p.error.status:500),p.headers&&(u[f]=p.headers)}else a[f]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(u[f]=p.headers)}),d!==void 0&&n&&(o={[n[0]]:d},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:u}}function Rt(e,t,n,r,i,a,o){let{loaderData:s,errors:l}=Lt(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(c(s,`Did not find corresponding fetcher result`),Z(s)){let t=Vt(e.matches,r?.route.id);l&&l[t.route.id]||(l={...l,[t.route.id]:s.error}),o.delete(n)}else if(Xt(s))c(!1,`Unhandled fetcher revalidation redirect`);else{let e=$(s.data);o.set(n,e)}}),{loaderData:s,errors:l}}function zt(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==$e).reduce((e,[t,n])=>(e[t]=n,e),{}),a=0;for(let o of n){let n=o.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&o.route.loader&&(i[n]=e[n],a++),r&&r.hasOwnProperty(n))break}return Object.keys(t).length===0&&a===Object.keys(e).length?e:i}function Bt(e){return e?Z(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Vt(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.ErrorBoundary!=null||e.route.errorElement!=null)||e[0]}function Ht(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function X(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new U(e||500,o,Error(s),!0)}function Ut(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Xt(r))return{key:n,result:r}}}function Wt(e){return p({...typeof e==`string`?m(e):e,hash:``})}function Gt(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function Kt(e){return new U(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function qt(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&Jt(t))}function Jt(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function Yt(e){return Qt(e.result)&&qe.has(e.result.status)}function Z(e){return e.type===`error`}function Xt(e){return(e&&e.type)===`redirect`}function Zt(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function Qt(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function $t(e){return qe.has(e)}function en(e){return Qt(e)&&$t(e.status)&&e.headers.has(`Location`)}function tn(e){return Ke.has(e.toUpperCase())}function Q(e){return We.has(e.toUpperCase())}function nn(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function rn(e,t){let n=typeof t==`string`?m(t).search:t.search;if(e[e.length-1].route.index&&nn(n||``))return e[e.length-1];let r=he(e);return r[r.length-1]}function an(e,t,n){return{url:Te(e.createURL(t),t),pattern:n?we(n):``,params:n?.[0]?.params?{...n[0].params}:{}}}function on(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(t&&n&&r){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function sn(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function cn(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function ln(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function un(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function $(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function dn(e,t){try{let n=e.sessionStorage.getItem(Qe);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function fn(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Qe,JSON.stringify(n))}catch(e){l(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function pn(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var mn=_.createContext(null);mn.displayName=`DataRouter`;var hn=_.createContext(null);hn.displayName=`DataRouterState`;var gn=_.createContext(null);gn.displayName=`DataRouterData`;var _n=_.createContext(null);_n.displayName=`DataRouterNavigation`;var vn=_.createContext(!1);function yn(){return _.useContext(vn)}var bn=_.createContext({isTransitioning:!1});bn.displayName=`ViewTransition`;var xn=_.createContext(null);xn.displayName=`Fetchers`;var Sn=_.createContext(null);Sn.displayName=`Await`;var Cn=_.createContext(null);Cn.displayName=`Navigation`;var wn=_.createContext(null);wn.displayName=`Location`;var Tn=_.createContext({outlet:null,matches:[],isDataRoute:!1});Tn.displayName=`Route`;var En=_.createContext(!1);En.displayName=`IsDataRoute`;var Dn=_.createContext(void 0);Dn.displayName=`RouteId`;var On=_.createContext(null);On.displayName=`RouteError`;var kn=`REACT_ROUTER_ERROR`,An=`REDIRECT`,jn=`ROUTE_ERROR_RESPONSE`;function Mn(e){if(e.startsWith(`${kn}:${An}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Nn(e){if(e.startsWith(`${kn}:${jn}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new U(t.status,t.statusText,t.data)}catch{}}function Pn(e,{relative:t}={}){c(Fn(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=_.useContext(Cn),{hash:i,pathname:a,search:o}=Un(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:V([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Fn(){return _.useContext(wn)!=null}function In(){return c(Fn(),`useLocation() may be used only in the context of a <Router> component.`),_.useContext(wn).location}var Ln=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Rn(){return _.useContext(En)?sr():zn()}function zn(){c(Fn(),`useNavigate() may be used only in the context of a <Router> component.`);let e=_.useContext(mn),{basename:t,navigator:n}=_.useContext(Cn),{matches:r}=_.useContext(Tn),{pathname:i}=In(),a=JSON.stringify(ge(r)),o=_.useRef(!1);return _.useLayoutEffect(()=>{o.current=!0}),_.useCallback((r,s={})=>{if(l(o.current,Ln),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=_e(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:V([t,c.pathname])),He(typeof r==`string`?r:p(r),n.createHref(c),ze(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var Bn=_.createContext(null);function Vn(e){let t=_.useContext(Tn).outlet;return _.useMemo(()=>t&&_.createElement(Bn.Provider,{value:e},t),[t,e])}function Hn(){let{matches:e}=_.useContext(Tn);return e[e.length-1]?.params??{}}function Un(e,{relative:t}={}){let{matches:n}=_.useContext(Tn),{pathname:r}=In(),i=JSON.stringify(ge(n));return _.useMemo(()=>_e(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Wn(e,t,n){c(Fn(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=_.useContext(Cn),{matches:i}=_.useContext(Tn),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let l=In(),u;if(t){let e=typeof t==`string`?m(t):t;c(s===`/`||e.pathname?.startsWith(s),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),u=e}else u=l;let d=u.pathname||`/`,f=d;if(s!==`/`){let e=s.replace(/^\//,``).split(`/`);f=`/`+d.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let p;p=n?n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):n.router.match(n.state.location):ee(e,{pathname:f});let h=Zn(p&&p.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:V([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:V([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?_.createElement(wn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...u},navigationType:`POP`}},h):h}function Gn(){let e=or(),t=Ce(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return _.createElement(_.Fragment,null,_.createElement(`h2`,null,`Unexpected Application Error!`),_.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?_.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var Kn=_.createElement(Gn,null),qn=class extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=vn;static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Nn(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:_.createElement(Tn.Provider,{value:this.props.routeContext},_.createElement(En.Provider,{value:this.props.routeContext.isDataRoute},_.createElement(Dn.Provider,{value:this.props.routeContext.matches[this.props.routeContext.matches.length-1]?.route.id},_.createElement(On.Provider,{value:e,children:this.props.component}))));return this.context?_.createElement(Yn,{error:e},t):t}},Jn=new WeakMap;function Yn({children:e,error:t}){let{basename:n,navigator:r}=_.useContext(Cn);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Mn(t.digest);if(e){let i=Jn.get(t);if(i)throw i;let a=De(e.location,n),o=a.absoluteURL||a.to;if(He(e.location,o,ze(r),`allow-explicit`),Mt(o))throw Error(`Invalid redirect location`);if(Ee&&!Jn.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Jn.set(t,n),n}}return _.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Xn({routeContext:e,match:t,children:n}){let r=_.useContext(mn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(Tn.Provider,{value:e},_.createElement(En.Provider,{value:e.isDataRoute},_.createElement(Dn.Provider,{value:t.route.id},n)))}function Zn(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);c(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let l=n?.onError,u=r&&l?(e,t)=>{l(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:we(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let l,d=!1,f=null,p=null;r&&(l=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Kn,o&&(s<0&&c===0?(lr(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=l?f:d?p:n.route.Component?_.createElement(n.route.Component,null):n.route.element?n.route.element:e,_.createElement(Xn,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?_.createElement(qn,{location:r.location,revalidation:r.revalidation,component:f,error:l,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):h()},null)}function Qn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $n(e){let t=_.useContext(mn);return c(t,Qn(e)),t}function er(e){let t=_.useContext(hn);return c(t,Qn(e)),t}function tr(e){let t=_.useContext(gn);return c(t,Qn(e)),t}function nr(e){let t=_.useContext(_n);return c(t,Qn(e)),t}function rr(e){let t=_.useContext(Dn);return c(t,`${e} can only be used on routes that contain a unique "id"`),t}function ir(){let{navigation:e}=nr(`useNavigation`);return _.useMemo(()=>{let{matches:t,historyAction:n,...r}=e;return r},[e])}function ar(){let{matches:e}=er(`useMatches`),{loaderData:t}=tr(`useMatches`);return _.useMemo(()=>e.map(e=>te(e,t)),[e,t])}function or(){let e=_.useContext(On),t=tr(`useRouteError`),n=rr(`useRouteError`);return e===void 0?t.errors?.[n]:e}function sr(){let{router:e}=$n(`useNavigate`),t=rr(`useNavigate`),n=_.useRef(!1);return _.useLayoutEffect(()=>{n.current=!0}),_.useCallback(async(r,i={})=>{l(n.current,Ln),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var cr={};function lr(e,t,n){!t&&!cr[e]&&(cr[e]=!0,l(!1,n))}export{Se as A,p as B,Tn as C,ze as D,nt as E,R as F,m as H,De as I,_e as L,ge as M,we as N,He as O,V as P,de as R,Cn as S,yn as T,l as U,c as V,n as W,gn as _,Pn as a,xn as b,ar as c,Vn as d,Hn as f,mn as g,Sn as h,er as i,w as j,U as k,Rn as l,Wn as m,$n as n,Fn as o,Un as p,tr as r,In as s,rr as t,ir as u,_n as v,bn as w,wn as x,hn as y,s as z};
|