mongoku 2.2.2 → 2.2.4

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.
Files changed (158) hide show
  1. package/build/client/_app/immutable/chunks/{B_rSBg9G.js → BQEBQyfZ.js} +1 -1
  2. package/build/client/_app/immutable/chunks/BQEBQyfZ.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/BQEBQyfZ.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/{3F1-DdqN.js → C0rm4mmq.js} +1 -1
  5. package/build/client/_app/immutable/chunks/C0rm4mmq.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/C0rm4mmq.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/{4kkfSeWm.js → C2sjtvBO.js} +1 -1
  8. package/build/client/_app/immutable/chunks/C2sjtvBO.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/C2sjtvBO.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/CGSOl_q_.js +4 -0
  11. package/build/client/_app/immutable/chunks/CGSOl_q_.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/CGSOl_q_.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/CjNnAkTB.js +1 -0
  14. package/build/client/_app/immutable/chunks/CjNnAkTB.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/CjNnAkTB.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/{CCU2FZch.js → D4iRRB8h.js} +1 -1
  17. package/build/client/_app/immutable/chunks/D4iRRB8h.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/D4iRRB8h.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/{BwlwA6qx.js → DVRQRZnh.js} +1 -1
  20. package/build/client/_app/immutable/chunks/DVRQRZnh.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/DVRQRZnh.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/{CgGD1vBG.js → DcPEQ0_V.js} +2 -2
  23. package/build/client/_app/immutable/chunks/DcPEQ0_V.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/DcPEQ0_V.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/{CDodg8QV.js → Dx56OlI-.js} +1 -1
  26. package/build/client/_app/immutable/chunks/Dx56OlI-.js.br +2 -0
  27. package/build/client/_app/immutable/chunks/Dx56OlI-.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/{gKOzvRrz.js → PXh00dfp.js} +1 -1
  29. package/build/client/_app/immutable/chunks/PXh00dfp.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/PXh00dfp.js.gz +0 -0
  31. package/build/client/_app/immutable/entry/{app.CwLdyQCE.js → app.DrdSPfGo.js} +2 -2
  32. package/build/client/_app/immutable/entry/app.DrdSPfGo.js.br +0 -0
  33. package/build/client/_app/immutable/entry/app.DrdSPfGo.js.gz +0 -0
  34. package/build/client/_app/immutable/entry/start.DGG3CpnK.js +1 -0
  35. package/build/client/_app/immutable/entry/start.DGG3CpnK.js.br +2 -0
  36. package/build/client/_app/immutable/entry/start.DGG3CpnK.js.gz +0 -0
  37. package/build/client/_app/immutable/nodes/{0.qo5ia9Rq.js → 0.kCLtccjl.js} +1 -1
  38. package/build/client/_app/immutable/nodes/0.kCLtccjl.js.br +0 -0
  39. package/build/client/_app/immutable/nodes/0.kCLtccjl.js.gz +0 -0
  40. package/build/client/_app/immutable/nodes/{1.BWsqrs0P.js → 1.Dr8p9JHT.js} +1 -1
  41. package/build/client/_app/immutable/nodes/1.Dr8p9JHT.js.br +3 -0
  42. package/build/client/_app/immutable/nodes/1.Dr8p9JHT.js.gz +0 -0
  43. package/build/client/_app/immutable/nodes/{10.-4-pSJt5.js → 10.B4uwvHd0.js} +1 -1
  44. package/build/client/_app/immutable/nodes/10.B4uwvHd0.js.br +0 -0
  45. package/build/client/_app/immutable/nodes/10.B4uwvHd0.js.gz +0 -0
  46. package/build/client/_app/immutable/nodes/{11.DY7G4q0U.js → 11.qfhS2VqU.js} +1 -1
  47. package/build/client/_app/immutable/nodes/11.qfhS2VqU.js.br +0 -0
  48. package/build/client/_app/immutable/nodes/11.qfhS2VqU.js.gz +0 -0
  49. package/build/client/_app/immutable/nodes/{12.8oPXQe9B.js → 12.DkZDCIfS.js} +1 -1
  50. package/build/client/_app/immutable/nodes/12.DkZDCIfS.js.br +0 -0
  51. package/build/client/_app/immutable/nodes/12.DkZDCIfS.js.gz +0 -0
  52. package/build/client/_app/immutable/nodes/{13.1WuhKTWh.js → 13.DFVzMgyY.js} +1 -1
  53. package/build/client/_app/immutable/nodes/13.DFVzMgyY.js.br +0 -0
  54. package/build/client/_app/immutable/nodes/13.DFVzMgyY.js.gz +0 -0
  55. package/build/client/_app/immutable/nodes/{7.FFxizXbH.js → 7.D14iWySv.js} +1 -1
  56. package/build/client/_app/immutable/nodes/7.D14iWySv.js.br +0 -0
  57. package/build/client/_app/immutable/nodes/7.D14iWySv.js.gz +0 -0
  58. package/build/client/_app/immutable/nodes/{8.DJ2F-El6.js → 8.BSXe_VNA.js} +1 -1
  59. package/build/client/_app/immutable/nodes/8.BSXe_VNA.js.br +0 -0
  60. package/build/client/_app/immutable/nodes/8.BSXe_VNA.js.gz +0 -0
  61. package/build/client/_app/immutable/nodes/{9.dwG6oJR6.js → 9.BXMJq3Z_.js} +1 -1
  62. package/build/client/_app/immutable/nodes/9.BXMJq3Z_.js.br +0 -0
  63. package/build/client/_app/immutable/nodes/9.BXMJq3Z_.js.gz +0 -0
  64. package/build/client/_app/version.json +1 -1
  65. package/build/client/_app/version.json.br +0 -0
  66. package/build/client/_app/version.json.gz +0 -0
  67. package/build/server/chunks/{0-CKrOSp9Q.js → 0-BozXjQlk.js} +2 -2
  68. package/build/server/chunks/{0-CKrOSp9Q.js.map → 0-BozXjQlk.js.map} +1 -1
  69. package/build/server/chunks/{1-BBP-PQuQ.js → 1-C_LPMO7A.js} +2 -2
  70. package/build/server/chunks/{1-BBP-PQuQ.js.map → 1-C_LPMO7A.js.map} +1 -1
  71. package/build/server/chunks/{10-CXnIL6c5.js → 10-DGUQMXHt.js} +3 -3
  72. package/build/server/chunks/{10-CXnIL6c5.js.map → 10-DGUQMXHt.js.map} +1 -1
  73. package/build/server/chunks/{11-Cy14YwoY.js → 11-CxBnyyqR.js} +3 -3
  74. package/build/server/chunks/{11-Cy14YwoY.js.map → 11-CxBnyyqR.js.map} +1 -1
  75. package/build/server/chunks/{12-BaHBOwot.js → 12-K_JVUnsk.js} +3 -3
  76. package/build/server/chunks/{12-BaHBOwot.js.map → 12-K_JVUnsk.js.map} +1 -1
  77. package/build/server/chunks/{13-Bdh3b91I.js → 13-Cay35aHK.js} +2 -2
  78. package/build/server/chunks/{13-Bdh3b91I.js.map → 13-Cay35aHK.js.map} +1 -1
  79. package/build/server/chunks/{7-CqO34Ovx.js → 7-DvU-_ADW.js} +3 -3
  80. package/build/server/chunks/{7-CqO34Ovx.js.map → 7-DvU-_ADW.js.map} +1 -1
  81. package/build/server/chunks/{8-C2OMlYkA.js → 8-CA3-CJtS.js} +3 -3
  82. package/build/server/chunks/{8-C2OMlYkA.js.map → 8-CA3-CJtS.js.map} +1 -1
  83. package/build/server/chunks/{9-Di6COO7E.js → 9-jMOS3lPS.js} +3 -3
  84. package/build/server/chunks/{9-Di6COO7E.js.map → 9-jMOS3lPS.js.map} +1 -1
  85. package/build/server/chunks/{JsonValue-ClBHqVOS.js → JsonValue-WMdIUvRM.js} +2 -2
  86. package/build/server/chunks/{JsonValue-ClBHqVOS.js.map → JsonValue-WMdIUvRM.js.map} +1 -1
  87. package/build/server/chunks/{PrettyJson-D0Cn5_CJ.js → PrettyJson-D3CylSVd.js} +3 -3
  88. package/build/server/chunks/PrettyJson-D3CylSVd.js.map +1 -0
  89. package/build/server/chunks/{Tooltip-DflJLumT.js → Tooltip-ys6l541_.js} +4 -14
  90. package/build/server/chunks/Tooltip-ys6l541_.js.map +1 -0
  91. package/build/server/chunks/{TooltipTable-BPMzcmqQ.js → TooltipTable-DCu3GLqO.js} +2 -2
  92. package/build/server/chunks/{TooltipTable-BPMzcmqQ.js.map → TooltipTable-DCu3GLqO.js.map} +1 -1
  93. package/build/server/chunks/{_page.svelte-DrBjlM49.js → _page.svelte-2w3fCax2.js} +4 -4
  94. package/build/server/chunks/{_page.svelte-DrBjlM49.js.map → _page.svelte-2w3fCax2.js.map} +1 -1
  95. package/build/server/chunks/{_page.svelte-CKLhszFj.js → _page.svelte-BBHqwhWF.js} +3 -3
  96. package/build/server/chunks/{_page.svelte-CKLhszFj.js.map → _page.svelte-BBHqwhWF.js.map} +1 -1
  97. package/build/server/chunks/{_page.svelte-CiFj0j1b.js → _page.svelte-BRxX_vQR.js} +3 -3
  98. package/build/server/chunks/{_page.svelte-CiFj0j1b.js.map → _page.svelte-BRxX_vQR.js.map} +1 -1
  99. package/build/server/chunks/{_page.svelte-DzPMpozq.js → _page.svelte-Ca9u_35e.js} +3 -3
  100. package/build/server/chunks/{_page.svelte-DzPMpozq.js.map → _page.svelte-Ca9u_35e.js.map} +1 -1
  101. package/build/server/chunks/{_page.svelte-CGvzbG1F.js → _page.svelte-Cm_vgRRR.js} +3 -3
  102. package/build/server/chunks/{_page.svelte-CGvzbG1F.js.map → _page.svelte-Cm_vgRRR.js.map} +1 -1
  103. package/build/server/chunks/{_page.svelte-BpRURWqB.js → _page.svelte-DoOBFRSo.js} +4 -4
  104. package/build/server/chunks/{_page.svelte-BpRURWqB.js.map → _page.svelte-DoOBFRSo.js.map} +1 -1
  105. package/build/server/index.js +1 -1
  106. package/build/server/index.js.map +1 -1
  107. package/build/server/manifest.js +10 -10
  108. package/build/server/manifest.js.map +1 -1
  109. package/package.json +1 -1
  110. package/src/lib/components/PrettyJson.svelte +2 -2
  111. package/src/lib/components/Tooltip.svelte +18 -19
  112. package/build/client/_app/immutable/chunks/3F1-DdqN.js.br +0 -0
  113. package/build/client/_app/immutable/chunks/3F1-DdqN.js.gz +0 -0
  114. package/build/client/_app/immutable/chunks/4kkfSeWm.js.br +0 -0
  115. package/build/client/_app/immutable/chunks/4kkfSeWm.js.gz +0 -0
  116. package/build/client/_app/immutable/chunks/B_rSBg9G.js.br +0 -0
  117. package/build/client/_app/immutable/chunks/B_rSBg9G.js.gz +0 -0
  118. package/build/client/_app/immutable/chunks/BwlwA6qx.js.br +0 -0
  119. package/build/client/_app/immutable/chunks/BwlwA6qx.js.gz +0 -0
  120. package/build/client/_app/immutable/chunks/CCU2FZch.js.br +0 -0
  121. package/build/client/_app/immutable/chunks/CCU2FZch.js.gz +0 -0
  122. package/build/client/_app/immutable/chunks/CDodg8QV.js.br +0 -0
  123. package/build/client/_app/immutable/chunks/CDodg8QV.js.gz +0 -0
  124. package/build/client/_app/immutable/chunks/Ce4Mb8bQ.js +0 -1
  125. package/build/client/_app/immutable/chunks/Ce4Mb8bQ.js.br +0 -0
  126. package/build/client/_app/immutable/chunks/Ce4Mb8bQ.js.gz +0 -0
  127. package/build/client/_app/immutable/chunks/CgGD1vBG.js.br +0 -0
  128. package/build/client/_app/immutable/chunks/CgGD1vBG.js.gz +0 -0
  129. package/build/client/_app/immutable/chunks/DHlkWqjx.js +0 -4
  130. package/build/client/_app/immutable/chunks/DHlkWqjx.js.br +0 -0
  131. package/build/client/_app/immutable/chunks/DHlkWqjx.js.gz +0 -0
  132. package/build/client/_app/immutable/chunks/gKOzvRrz.js.br +0 -0
  133. package/build/client/_app/immutable/chunks/gKOzvRrz.js.gz +0 -0
  134. package/build/client/_app/immutable/entry/app.CwLdyQCE.js.br +0 -0
  135. package/build/client/_app/immutable/entry/app.CwLdyQCE.js.gz +0 -0
  136. package/build/client/_app/immutable/entry/start.BTfetaDI.js +0 -1
  137. package/build/client/_app/immutable/entry/start.BTfetaDI.js.br +0 -2
  138. package/build/client/_app/immutable/entry/start.BTfetaDI.js.gz +0 -0
  139. package/build/client/_app/immutable/nodes/0.qo5ia9Rq.js.br +0 -0
  140. package/build/client/_app/immutable/nodes/0.qo5ia9Rq.js.gz +0 -0
  141. package/build/client/_app/immutable/nodes/1.BWsqrs0P.js.br +0 -1
  142. package/build/client/_app/immutable/nodes/1.BWsqrs0P.js.gz +0 -0
  143. package/build/client/_app/immutable/nodes/10.-4-pSJt5.js.br +0 -0
  144. package/build/client/_app/immutable/nodes/10.-4-pSJt5.js.gz +0 -0
  145. package/build/client/_app/immutable/nodes/11.DY7G4q0U.js.br +0 -0
  146. package/build/client/_app/immutable/nodes/11.DY7G4q0U.js.gz +0 -0
  147. package/build/client/_app/immutable/nodes/12.8oPXQe9B.js.br +0 -0
  148. package/build/client/_app/immutable/nodes/12.8oPXQe9B.js.gz +0 -0
  149. package/build/client/_app/immutable/nodes/13.1WuhKTWh.js.br +0 -0
  150. package/build/client/_app/immutable/nodes/13.1WuhKTWh.js.gz +0 -0
  151. package/build/client/_app/immutable/nodes/7.FFxizXbH.js.br +0 -0
  152. package/build/client/_app/immutable/nodes/7.FFxizXbH.js.gz +0 -0
  153. package/build/client/_app/immutable/nodes/8.DJ2F-El6.js.br +0 -0
  154. package/build/client/_app/immutable/nodes/8.DJ2F-El6.js.gz +0 -0
  155. package/build/client/_app/immutable/nodes/9.dwG6oJR6.js.br +0 -0
  156. package/build/client/_app/immutable/nodes/9.dwG6oJR6.js.gz +0 -0
  157. package/build/server/chunks/PrettyJson-D0Cn5_CJ.js.map +0 -1
  158. package/build/server/chunks/Tooltip-DflJLumT.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"12-BaHBOwot.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_database_/collections/_collection_/indexes/_page.ts.js","../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_database_/collections/_collection_/indexes/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/12.js"],"sourcesContent":["const load = async (data) => {\n return {\n ...data.data,\n categories: [\n { key: \"documents\", label: \"Documents\" },\n { key: \"indexes\", label: \"Indexes\" },\n { key: \"mappings\", label: \"Mappings\" }\n ]\n };\n};\nexport {\n load\n};\n","import { J as JsonEncoder } from \"../../../../../../../../../chunks/JsonEncoder.js\";\nimport { l as logger } from \"../../../../../../../../../chunks/logger.js\";\nimport { g as getMongo } from \"../../../../../../../../../chunks/mongo.js\";\nconst load = async ({ params, depends }) => {\n depends(\"app:indexes\");\n const mongo = await getMongo();\n const client = mongo.getClient(params.server);\n const collection = client.db(params.database).collection(params.collection);\n const indexesPromise = (async () => {\n try {\n const indexList = await collection.listIndexes().toArray();\n let indexStats = {};\n try {\n const statsResult = await collection.aggregate([{ $indexStats: {} }]).toArray();\n indexStats = statsResult.reduce(\n (acc, stat) => {\n acc[stat.name] = {\n ops: stat.accesses?.ops || 0,\n since: stat.accesses?.since || /* @__PURE__ */ new Date()\n };\n return acc;\n },\n {}\n );\n } catch (err) {\n logger.error(\"Error fetching index stats:\", err);\n }\n let indexSizes = {};\n try {\n const collStatsResult = await collection.aggregate([\n {\n $collStats: {\n storageStats: {}\n }\n }\n ]).next();\n if (collStatsResult?.storageStats?.indexSizes) {\n indexSizes = collStatsResult.storageStats.indexSizes;\n }\n } catch (err) {\n logger.error(\"Error fetching index sizes:\", err);\n }\n const indexesWithStats = indexList.map((index) => ({\n ...index,\n stats: index.name ? indexStats[index.name] || null : null,\n size: index.name ? indexSizes[index.name] || 0 : 0\n }));\n return {\n data: indexesWithStats.map((index) => JsonEncoder.encode(index)),\n error: null\n };\n } catch (err) {\n logger.error(\"Error fetching indexes:\", err);\n return {\n data: [],\n error: `Failed to fetch indexes: ${err instanceof Error ? err.message : String(err)}`\n };\n }\n })();\n return {\n indexes: indexesPromise\n };\n};\nexport {\n load\n};\n","import * as universal from '../entries/pages/servers/_server_/databases/_database_/collections/_collection_/indexes/_page.ts.js';\nimport * as server from '../entries/pages/servers/_server_/databases/_database_/collections/_collection_/indexes/_page.server.ts.js';\n\nexport const index = 12;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/servers/_server_/databases/_database_/collections/_collection_/indexes/_page.svelte.js')).default;\nexport { universal };\nexport const universal_id = \"src/routes/servers/[server]/databases/[database]/collections/[collection]/indexes/+page.ts\";\nexport { server };\nexport const server_id = \"src/routes/servers/[server]/databases/[database]/collections/[collection]/indexes/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/12.8oPXQe9B.js\",\"_app/immutable/chunks/BBg-V8FE.js\",\"_app/immutable/chunks/C82Rp5eQ.js\",\"_app/immutable/chunks/3iRu_dUj.js\",\"_app/immutable/chunks/BUNgwIS0.js\",\"_app/immutable/chunks/D7E46CWw.js\",\"_app/immutable/chunks/gKOzvRrz.js\",\"_app/immutable/chunks/4kkfSeWm.js\",\"_app/immutable/chunks/B_rSBg9G.js\",\"_app/immutable/chunks/DHlkWqjx.js\",\"_app/immutable/chunks/5nAxkTTP.js\",\"_app/immutable/chunks/CCU2FZch.js\",\"_app/immutable/chunks/BwlwA6qx.js\",\"_app/immutable/chunks/BE8UzJuY.js\",\"_app/immutable/chunks/Ce4Mb8bQ.js\",\"_app/immutable/chunks/D5ccpaXt.js\",\"_app/immutable/chunks/3F1-DdqN.js\",\"_app/immutable/chunks/C0PCwpqt.js\"];\nexport const stylesheets = [\"_app/immutable/assets/JsonValue.BEbzuWqZ.css\",\"_app/immutable/assets/Modal.DIIFkbGB.css\",\"_app/immutable/assets/Panel.B3aWupye.css\",\"_app/immutable/assets/12.BdCOhvz0.css\"];\nexport const fonts = [];\n"],"names":["load"],"mappings":";;;;;;;;;;;AAAA,MAAMA,MAAI,GAAG,OAAO,IAAI,KAAK;AAC7B,EAAE,OAAO;AACT,IAAI,GAAG,IAAI,CAAC,IAAI;AAChB,IAAI,UAAU,EAAE;AAChB,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;AAC9C,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;AAC1C,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU;AAC1C;AACA,GAAG;AACH,CAAC;;;;;;;ACND,MAAM,IAAI,GAAG,OAAO,EAAE,MAAM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DW,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAyG,CAAC,EAAE;AAEvK,MAAC,YAAY,GAAG;AAEhB,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,qCAAqC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACrpB,MAAC,WAAW,GAAG,CAAC,8CAA8C,CAAC,0CAA0C,CAAC,0CAA0C,CAAC,uCAAuC;AAC5L,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"12-K_JVUnsk.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_database_/collections/_collection_/indexes/_page.ts.js","../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_database_/collections/_collection_/indexes/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/12.js"],"sourcesContent":["const load = async (data) => {\n return {\n ...data.data,\n categories: [\n { key: \"documents\", label: \"Documents\" },\n { key: \"indexes\", label: \"Indexes\" },\n { key: \"mappings\", label: \"Mappings\" }\n ]\n };\n};\nexport {\n load\n};\n","import { J as JsonEncoder } from \"../../../../../../../../../chunks/JsonEncoder.js\";\nimport { l as logger } from \"../../../../../../../../../chunks/logger.js\";\nimport { g as getMongo } from \"../../../../../../../../../chunks/mongo.js\";\nconst load = async ({ params, depends }) => {\n depends(\"app:indexes\");\n const mongo = await getMongo();\n const client = mongo.getClient(params.server);\n const collection = client.db(params.database).collection(params.collection);\n const indexesPromise = (async () => {\n try {\n const indexList = await collection.listIndexes().toArray();\n let indexStats = {};\n try {\n const statsResult = await collection.aggregate([{ $indexStats: {} }]).toArray();\n indexStats = statsResult.reduce(\n (acc, stat) => {\n acc[stat.name] = {\n ops: stat.accesses?.ops || 0,\n since: stat.accesses?.since || /* @__PURE__ */ new Date()\n };\n return acc;\n },\n {}\n );\n } catch (err) {\n logger.error(\"Error fetching index stats:\", err);\n }\n let indexSizes = {};\n try {\n const collStatsResult = await collection.aggregate([\n {\n $collStats: {\n storageStats: {}\n }\n }\n ]).next();\n if (collStatsResult?.storageStats?.indexSizes) {\n indexSizes = collStatsResult.storageStats.indexSizes;\n }\n } catch (err) {\n logger.error(\"Error fetching index sizes:\", err);\n }\n const indexesWithStats = indexList.map((index) => ({\n ...index,\n stats: index.name ? indexStats[index.name] || null : null,\n size: index.name ? indexSizes[index.name] || 0 : 0\n }));\n return {\n data: indexesWithStats.map((index) => JsonEncoder.encode(index)),\n error: null\n };\n } catch (err) {\n logger.error(\"Error fetching indexes:\", err);\n return {\n data: [],\n error: `Failed to fetch indexes: ${err instanceof Error ? err.message : String(err)}`\n };\n }\n })();\n return {\n indexes: indexesPromise\n };\n};\nexport {\n load\n};\n","import * as universal from '../entries/pages/servers/_server_/databases/_database_/collections/_collection_/indexes/_page.ts.js';\nimport * as server from '../entries/pages/servers/_server_/databases/_database_/collections/_collection_/indexes/_page.server.ts.js';\n\nexport const index = 12;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/servers/_server_/databases/_database_/collections/_collection_/indexes/_page.svelte.js')).default;\nexport { universal };\nexport const universal_id = \"src/routes/servers/[server]/databases/[database]/collections/[collection]/indexes/+page.ts\";\nexport { server };\nexport const server_id = \"src/routes/servers/[server]/databases/[database]/collections/[collection]/indexes/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/12.DkZDCIfS.js\",\"_app/immutable/chunks/BBg-V8FE.js\",\"_app/immutable/chunks/C82Rp5eQ.js\",\"_app/immutable/chunks/3iRu_dUj.js\",\"_app/immutable/chunks/BUNgwIS0.js\",\"_app/immutable/chunks/D7E46CWw.js\",\"_app/immutable/chunks/PXh00dfp.js\",\"_app/immutable/chunks/C2sjtvBO.js\",\"_app/immutable/chunks/BQEBQyfZ.js\",\"_app/immutable/chunks/CGSOl_q_.js\",\"_app/immutable/chunks/5nAxkTTP.js\",\"_app/immutable/chunks/D4iRRB8h.js\",\"_app/immutable/chunks/DVRQRZnh.js\",\"_app/immutable/chunks/BE8UzJuY.js\",\"_app/immutable/chunks/CjNnAkTB.js\",\"_app/immutable/chunks/D5ccpaXt.js\",\"_app/immutable/chunks/C0rm4mmq.js\",\"_app/immutable/chunks/C0PCwpqt.js\"];\nexport const stylesheets = [\"_app/immutable/assets/JsonValue.BEbzuWqZ.css\",\"_app/immutable/assets/Modal.DIIFkbGB.css\",\"_app/immutable/assets/Panel.B3aWupye.css\",\"_app/immutable/assets/12.BdCOhvz0.css\"];\nexport const fonts = [];\n"],"names":["load"],"mappings":";;;;;;;;;;;AAAA,MAAMA,MAAI,GAAG,OAAO,IAAI,KAAK;AAC7B,EAAE,OAAO;AACT,IAAI,GAAG,IAAI,CAAC,IAAI;AAChB,IAAI,UAAU,EAAE;AAChB,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;AAC9C,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;AAC1C,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU;AAC1C;AACA,GAAG;AACH,CAAC;;;;;;;ACND,MAAM,IAAI,GAAG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK;AAC5C,EAAE,OAAO,CAAC,aAAa,CAAC;AACxB,EAAE,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE;AAChC,EAAE,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;AAC/C,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC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,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACrpB,MAAC,WAAW,GAAG,CAAC,8CAA8C,CAAC,0CAA0C,CAAC,0CAA0C,CAAC,uCAAuC;AAC5L,MAAC,KAAK,GAAG;;;;"}
@@ -46,9 +46,9 @@ let component_cache;
46
46
  const component = async () => component_cache ??= (await import('./_page.svelte-C-13GpOe.js')).default;
47
47
  const universal_id = "src/routes/servers/[server]/databases/[database]/collections/[collection]/mappings/+page.ts";
48
48
  const server_id = "src/routes/servers/[server]/databases/[database]/collections/[collection]/mappings/+page.server.ts";
49
- const imports = ["_app/immutable/nodes/13.1WuhKTWh.js","_app/immutable/chunks/BBg-V8FE.js","_app/immutable/chunks/C82Rp5eQ.js","_app/immutable/chunks/3iRu_dUj.js","_app/immutable/chunks/D7E46CWw.js","_app/immutable/chunks/gKOzvRrz.js","_app/immutable/chunks/4kkfSeWm.js","_app/immutable/chunks/Cx2cA4gg.js","_app/immutable/chunks/B_rSBg9G.js","_app/immutable/chunks/DHlkWqjx.js","_app/immutable/chunks/5nAxkTTP.js","_app/immutable/chunks/3F1-DdqN.js","_app/immutable/chunks/C0PCwpqt.js"];
49
+ const imports = ["_app/immutable/nodes/13.DFVzMgyY.js","_app/immutable/chunks/BBg-V8FE.js","_app/immutable/chunks/C82Rp5eQ.js","_app/immutable/chunks/3iRu_dUj.js","_app/immutable/chunks/D7E46CWw.js","_app/immutable/chunks/PXh00dfp.js","_app/immutable/chunks/C2sjtvBO.js","_app/immutable/chunks/Cx2cA4gg.js","_app/immutable/chunks/BQEBQyfZ.js","_app/immutable/chunks/CGSOl_q_.js","_app/immutable/chunks/5nAxkTTP.js","_app/immutable/chunks/C0rm4mmq.js","_app/immutable/chunks/C0PCwpqt.js"];
50
50
  const stylesheets = ["_app/immutable/assets/Panel.B3aWupye.css"];
51
51
  const fonts = [];
52
52
 
53
53
  export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets, _page_ts as universal, universal_id };
54
- //# sourceMappingURL=13-Bdh3b91I.js.map
54
+ //# sourceMappingURL=13-Cay35aHK.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"13-Bdh3b91I.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_database_/collections/_collection_/mappings/_page.ts.js","../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_database_/collections/_collection_/mappings/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/13.js"],"sourcesContent":["const load = async (data) => {\n return {\n ...data.data,\n categories: [\n { key: \"documents\", label: \"Documents\" },\n { key: \"indexes\", label: \"Indexes\" },\n { key: \"mappings\", label: \"Mappings\" }\n ]\n };\n};\nexport {\n load\n};\n","import { g as getMongo } from \"../../../../../../../../../chunks/mongo.js\";\nconst load = async ({ params }) => {\n const mongo = await getMongo();\n const client = mongo.getClient(params.server);\n const db = client.db(params.database);\n const mappings = await client.getMappings(params.database, params.collection, { forceRefresh: true });\n const allCollections = (await db.listCollections().toArray()).map((c) => c.name).sort();\n return {\n mappings,\n availableCollections: allCollections\n };\n};\nexport {\n load\n};\n","import * as universal from '../entries/pages/servers/_server_/databases/_database_/collections/_collection_/mappings/_page.ts.js';\nimport * as server from '../entries/pages/servers/_server_/databases/_database_/collections/_collection_/mappings/_page.server.ts.js';\n\nexport const index = 13;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/servers/_server_/databases/_database_/collections/_collection_/mappings/_page.svelte.js')).default;\nexport { universal };\nexport const universal_id = \"src/routes/servers/[server]/databases/[database]/collections/[collection]/mappings/+page.ts\";\nexport { server };\nexport const server_id = \"src/routes/servers/[server]/databases/[database]/collections/[collection]/mappings/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/13.1WuhKTWh.js\",\"_app/immutable/chunks/BBg-V8FE.js\",\"_app/immutable/chunks/C82Rp5eQ.js\",\"_app/immutable/chunks/3iRu_dUj.js\",\"_app/immutable/chunks/D7E46CWw.js\",\"_app/immutable/chunks/gKOzvRrz.js\",\"_app/immutable/chunks/4kkfSeWm.js\",\"_app/immutable/chunks/Cx2cA4gg.js\",\"_app/immutable/chunks/B_rSBg9G.js\",\"_app/immutable/chunks/DHlkWqjx.js\",\"_app/immutable/chunks/5nAxkTTP.js\",\"_app/immutable/chunks/3F1-DdqN.js\",\"_app/immutable/chunks/C0PCwpqt.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Panel.B3aWupye.css\"];\nexport const fonts = [];\n"],"names":["load"],"mappings":";;;;;;;;;;AAAA,MAAMA,MAAI,GAAG,OAAO,IAAI,KAAK;AAC7B,EAAE,OAAO;AACT,IAAI,GAAG,IAAI,CAAC,IAAI;AAChB,IAAI,UAAU,EAAE;AAChB,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;AAC9C,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;AAC1C,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU;AAC1C;AACA,GAAG;AACH,CAAC;;;;;;;ACRD,MAAM,IAAI,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK;AACnC,EAAE,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE;AAChC,EAAE,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;AAC/C,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;AACvC,EAAE,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,UAAU,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;AACvG,EAAE,MAAM,cAAc,GAAG,CAAC,MAAM,EAAE,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE;AACzF,EAAE,OAAO;AACT,IAAI,QAAQ;AACZ,IAAI,oBAAoB,EAAE;AAC1B,GAAG;AACH,CAAC;;;;;;;ACRW,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA0G,CAAC,EAAE;AAExK,MAAC,YAAY,GAAG;AAEhB,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,qCAAqC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACje,MAAC,WAAW,GAAG,CAAC,0CAA0C;AAC1D,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"13-Cay35aHK.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_database_/collections/_collection_/mappings/_page.ts.js","../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_database_/collections/_collection_/mappings/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/13.js"],"sourcesContent":["const load = async (data) => {\n return {\n ...data.data,\n categories: [\n { key: \"documents\", label: \"Documents\" },\n { key: \"indexes\", label: \"Indexes\" },\n { key: \"mappings\", label: \"Mappings\" }\n ]\n };\n};\nexport {\n load\n};\n","import { g as getMongo } from \"../../../../../../../../../chunks/mongo.js\";\nconst load = async ({ params }) => {\n const mongo = await getMongo();\n const client = mongo.getClient(params.server);\n const db = client.db(params.database);\n const mappings = await client.getMappings(params.database, params.collection, { forceRefresh: true });\n const allCollections = (await db.listCollections().toArray()).map((c) => c.name).sort();\n return {\n mappings,\n availableCollections: allCollections\n };\n};\nexport {\n load\n};\n","import * as universal from '../entries/pages/servers/_server_/databases/_database_/collections/_collection_/mappings/_page.ts.js';\nimport * as server from '../entries/pages/servers/_server_/databases/_database_/collections/_collection_/mappings/_page.server.ts.js';\n\nexport const index = 13;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/servers/_server_/databases/_database_/collections/_collection_/mappings/_page.svelte.js')).default;\nexport { universal };\nexport const universal_id = \"src/routes/servers/[server]/databases/[database]/collections/[collection]/mappings/+page.ts\";\nexport { server };\nexport const server_id = \"src/routes/servers/[server]/databases/[database]/collections/[collection]/mappings/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/13.DFVzMgyY.js\",\"_app/immutable/chunks/BBg-V8FE.js\",\"_app/immutable/chunks/C82Rp5eQ.js\",\"_app/immutable/chunks/3iRu_dUj.js\",\"_app/immutable/chunks/D7E46CWw.js\",\"_app/immutable/chunks/PXh00dfp.js\",\"_app/immutable/chunks/C2sjtvBO.js\",\"_app/immutable/chunks/Cx2cA4gg.js\",\"_app/immutable/chunks/BQEBQyfZ.js\",\"_app/immutable/chunks/CGSOl_q_.js\",\"_app/immutable/chunks/5nAxkTTP.js\",\"_app/immutable/chunks/C0rm4mmq.js\",\"_app/immutable/chunks/C0PCwpqt.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Panel.B3aWupye.css\"];\nexport const fonts = [];\n"],"names":["load"],"mappings":";;;;;;;;;;AAAA,MAAMA,MAAI,GAAG,OAAO,IAAI,KAAK;AAC7B,EAAE,OAAO;AACT,IAAI,GAAG,IAAI,CAAC,IAAI;AAChB,IAAI,UAAU,EAAE;AAChB,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;AAC9C,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;AAC1C,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU;AAC1C;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
77
- const component = async () => component_cache ??= (await import('./_page.svelte-CKLhszFj.js')).default;
77
+ const component = async () => component_cache ??= (await import('./_page.svelte-BBHqwhWF.js')).default;
78
78
  const server_id = "src/routes/servers/+page.server.ts";
79
- const imports = ["_app/immutable/nodes/7.FFxizXbH.js","_app/immutable/chunks/BBg-V8FE.js","_app/immutable/chunks/C82Rp5eQ.js","_app/immutable/chunks/3iRu_dUj.js","_app/immutable/chunks/BUNgwIS0.js","_app/immutable/chunks/D7E46CWw.js","_app/immutable/chunks/gKOzvRrz.js","_app/immutable/chunks/4kkfSeWm.js","_app/immutable/chunks/Cx2cA4gg.js","_app/immutable/chunks/B_rSBg9G.js","_app/immutable/chunks/DHlkWqjx.js","_app/immutable/chunks/5nAxkTTP.js","_app/immutable/chunks/3F1-DdqN.js","_app/immutable/chunks/CDodg8QV.js","_app/immutable/chunks/Ce4Mb8bQ.js","_app/immutable/chunks/BE8UzJuY.js","_app/immutable/chunks/C0PCwpqt.js"];
79
+ const imports = ["_app/immutable/nodes/7.D14iWySv.js","_app/immutable/chunks/BBg-V8FE.js","_app/immutable/chunks/C82Rp5eQ.js","_app/immutable/chunks/3iRu_dUj.js","_app/immutable/chunks/BUNgwIS0.js","_app/immutable/chunks/D7E46CWw.js","_app/immutable/chunks/PXh00dfp.js","_app/immutable/chunks/C2sjtvBO.js","_app/immutable/chunks/Cx2cA4gg.js","_app/immutable/chunks/BQEBQyfZ.js","_app/immutable/chunks/CGSOl_q_.js","_app/immutable/chunks/5nAxkTTP.js","_app/immutable/chunks/C0rm4mmq.js","_app/immutable/chunks/Dx56OlI-.js","_app/immutable/chunks/CjNnAkTB.js","_app/immutable/chunks/BE8UzJuY.js","_app/immutable/chunks/C0PCwpqt.js"];
80
80
  const stylesheets = ["_app/immutable/assets/Panel.B3aWupye.css","_app/immutable/assets/7.CRKE8WvY.css"];
81
81
  const fonts = [];
82
82
 
83
83
  export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
84
- //# sourceMappingURL=7-CqO34Ovx.js.map
84
+ //# sourceMappingURL=7-DvU-_ADW.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"7-CqO34Ovx.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/7.js"],"sourcesContent":["import { l as logger } from \"../../../chunks/logger.js\";\nimport { g as getMongo } from \"../../../chunks/mongo.js\";\nconst load = async () => {\n const mongo = await getMongo();\n const servers = mongo.listClients().map(({ name, _id, client }) => ({\n name,\n _id,\n details: (async () => {\n try {\n const adminDb = client.db(\"test\").admin();\n const results = await adminDb.listDatabases();\n const filteredDatabases = mongo.filterDatabases(results.databases);\n const collectionsCount = await Promise.all(\n filteredDatabases.map(async (d) => {\n const db = client.db(d.name);\n const dbStats = await db.stats().catch(\n () => {\n logger.error(`Error getting stats for database ${d.name} on server ${name}`);\n return {\n collections: 0\n };\n }\n );\n return dbStats.collections;\n })\n );\n return {\n databases: filteredDatabases.map((d, index) => ({\n name: d.name,\n size: d.sizeOnDisk ?? 0,\n collections: collectionsCount[index]\n })),\n size: results.totalSize ?? 0\n };\n } catch (err) {\n logger.error(`Error getting details for server ${name}:`, err);\n return {\n error: {\n code: err instanceof Error && \"code\" in err ? err.code : void 0,\n name: err instanceof Error ? err.name : \"Error\",\n message: err instanceof Error ? err.message : String(err)\n }\n };\n }\n })().catch((err) => {\n logger.error(`Error getting details for server ${name}:`, err);\n return {\n error: {\n code: err instanceof Error && \"code\" in err ? err.code : void 0,\n name: err instanceof Error ? err.name : \"Error\",\n message: err instanceof Error ? err.message : String(err)\n }\n };\n })\n }));\n servers.sort((a, b) => a.name.localeCompare(b.name));\n return {\n servers\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/servers/_page.server.ts.js';\n\nexport const index = 7;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/servers/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/servers/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/7.FFxizXbH.js\",\"_app/immutable/chunks/BBg-V8FE.js\",\"_app/immutable/chunks/C82Rp5eQ.js\",\"_app/immutable/chunks/3iRu_dUj.js\",\"_app/immutable/chunks/BUNgwIS0.js\",\"_app/immutable/chunks/D7E46CWw.js\",\"_app/immutable/chunks/gKOzvRrz.js\",\"_app/immutable/chunks/4kkfSeWm.js\",\"_app/immutable/chunks/Cx2cA4gg.js\",\"_app/immutable/chunks/B_rSBg9G.js\",\"_app/immutable/chunks/DHlkWqjx.js\",\"_app/immutable/chunks/5nAxkTTP.js\",\"_app/immutable/chunks/3F1-DdqN.js\",\"_app/immutable/chunks/CDodg8QV.js\",\"_app/immutable/chunks/Ce4Mb8bQ.js\",\"_app/immutable/chunks/BE8UzJuY.js\",\"_app/immutable/chunks/C0PCwpqt.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Panel.B3aWupye.css\",\"_app/immutable/assets/7.CRKE8WvY.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;;;AAEA,MAAM,IAAI,GAAG,YAAY;AACzB,EAAE,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE;AAChC,EAAE,MAAM,OAAO,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM;AACtE,IAAI,IAAI;AACR,IAAI,GAAG;AACP,IAAI,OAAO,EAAE,CAAC,YAAY;AAC1B,MAAM,IAAI;AACV,QAAQ,MAAM,OAAO,GAAG,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE;AACjD,QAAQ,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,aAAa,EAAE;AACrD,QAAQ,MAAM,iBAAiB,GAAG,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,SAAS,CAAC;AAC1E,QAAQ,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,GAAG;AAClD,UAAU,iBAAiB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AsC;AACjG,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"7-DvU-_ADW.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/7.js"],"sourcesContent":["import { l as logger } from \"../../../chunks/logger.js\";\nimport { g as getMongo } from \"../../../chunks/mongo.js\";\nconst load = async () => {\n const mongo = await getMongo();\n const servers = mongo.listClients().map(({ name, _id, client }) => ({\n name,\n _id,\n details: (async () => {\n try {\n const adminDb = client.db(\"test\").admin();\n const results = await adminDb.listDatabases();\n const filteredDatabases = mongo.filterDatabases(results.databases);\n const collectionsCount = await Promise.all(\n filteredDatabases.map(async (d) => {\n const db = client.db(d.name);\n const dbStats = await db.stats().catch(\n () => {\n logger.error(`Error getting stats for database ${d.name} on server ${name}`);\n return {\n collections: 0\n };\n }\n );\n return dbStats.collections;\n })\n );\n return {\n databases: filteredDatabases.map((d, index) => ({\n name: d.name,\n size: d.sizeOnDisk ?? 0,\n collections: collectionsCount[index]\n })),\n size: results.totalSize ?? 0\n };\n } catch (err) {\n logger.error(`Error getting details for server ${name}:`, err);\n return {\n error: {\n code: err instanceof Error && \"code\" in err ? err.code : void 0,\n name: err instanceof Error ? err.name : \"Error\",\n message: err instanceof Error ? err.message : String(err)\n }\n };\n }\n })().catch((err) => {\n logger.error(`Error getting details for server ${name}:`, err);\n return {\n error: {\n code: err instanceof Error && \"code\" in err ? err.code : void 0,\n name: err instanceof Error ? err.name : \"Error\",\n message: err instanceof Error ? err.message : String(err)\n }\n };\n })\n }));\n servers.sort((a, b) => a.name.localeCompare(b.name));\n return {\n servers\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/servers/_page.server.ts.js';\n\nexport const index = 7;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/servers/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/servers/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/7.D14iWySv.js\",\"_app/immutable/chunks/BBg-V8FE.js\",\"_app/immutable/chunks/C82Rp5eQ.js\",\"_app/immutable/chunks/3iRu_dUj.js\",\"_app/immutable/chunks/BUNgwIS0.js\",\"_app/immutable/chunks/D7E46CWw.js\",\"_app/immutable/chunks/PXh00dfp.js\",\"_app/immutable/chunks/C2sjtvBO.js\",\"_app/immutable/chunks/Cx2cA4gg.js\",\"_app/immutable/chunks/BQEBQyfZ.js\",\"_app/immutable/chunks/CGSOl_q_.js\",\"_app/immutable/chunks/5nAxkTTP.js\",\"_app/immutable/chunks/C0rm4mmq.js\",\"_app/immutable/chunks/Dx56OlI-.js\",\"_app/immutable/chunks/CjNnAkTB.js\",\"_app/immutable/chunks/BE8UzJuY.js\",\"_app/immutable/chunks/C0PCwpqt.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Panel.B3aWupye.css\",\"_app/immutable/assets/7.CRKE8WvY.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;;;AAEA,MAAM,IAAI,GAAG,YAAY;AACzB,EAAE,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE;AAChC,EAAE,MAAM,OAAO,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM;AACtE,IAAI,IAAI;AACR,IAAI,GAAG;AACP,IAAI,OAAO,EAAE,CAAC,YAAY;AAC1B,MAAM,IAAI;AACV,QAAQ,MAAM,OAAO,GAAG,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE;AACjD,QAAQ,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,aAAa,EAAE;AACrD,QAAQ,MAAM,iBAAiB,GAAG,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,SAAS,CAAC;AAC1E,QAAQ,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,GAAG;AAClD,UAAU,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK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@@ -58,11 +58,11 @@ var _page_server_ts = /*#__PURE__*/Object.freeze({
58
58
 
59
59
  const index = 8;
60
60
  let component_cache;
61
- const component = async () => component_cache ??= (await import('./_page.svelte-DzPMpozq.js')).default;
61
+ const component = async () => component_cache ??= (await import('./_page.svelte-Ca9u_35e.js')).default;
62
62
  const server_id = "src/routes/servers/[server]/databases/+page.server.ts";
63
- const imports = ["_app/immutable/nodes/8.DJ2F-El6.js","_app/immutable/chunks/BBg-V8FE.js","_app/immutable/chunks/C82Rp5eQ.js","_app/immutable/chunks/3iRu_dUj.js","_app/immutable/chunks/BUNgwIS0.js","_app/immutable/chunks/D7E46CWw.js","_app/immutable/chunks/gKOzvRrz.js","_app/immutable/chunks/4kkfSeWm.js","_app/immutable/chunks/3F1-DdqN.js","_app/immutable/chunks/CDodg8QV.js","_app/immutable/chunks/Ce4Mb8bQ.js","_app/immutable/chunks/BE8UzJuY.js"];
63
+ const imports = ["_app/immutable/nodes/8.BSXe_VNA.js","_app/immutable/chunks/BBg-V8FE.js","_app/immutable/chunks/C82Rp5eQ.js","_app/immutable/chunks/3iRu_dUj.js","_app/immutable/chunks/BUNgwIS0.js","_app/immutable/chunks/D7E46CWw.js","_app/immutable/chunks/PXh00dfp.js","_app/immutable/chunks/C2sjtvBO.js","_app/immutable/chunks/C0rm4mmq.js","_app/immutable/chunks/Dx56OlI-.js","_app/immutable/chunks/CjNnAkTB.js","_app/immutable/chunks/BE8UzJuY.js"];
64
64
  const stylesheets = ["_app/immutable/assets/Panel.B3aWupye.css"];
65
65
  const fonts = [];
66
66
 
67
67
  export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
68
- //# sourceMappingURL=8-C2OMlYkA.js.map
68
+ //# sourceMappingURL=8-CA3-CJtS.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"8-C2OMlYkA.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/8.js"],"sourcesContent":["import { l as logger } from \"../../../../../chunks/logger.js\";\nimport { g as getMongo, a as getCollectionJson } from \"../../../../../chunks/mongo.js\";\nconst load = async ({ params }) => {\n const mongo = await getMongo();\n const client = mongo.getClient(params.server);\n const adminDb = client.db(\"test\").admin();\n const results = await adminDb.listDatabases();\n if (!Array.isArray(results.databases)) {\n return {\n databases: []\n };\n }\n const filteredDatabases = mongo.filterDatabases(results.databases);\n const databases = await Promise.all(\n filteredDatabases.map(async (d) => {\n const db = client.db(d.name);\n const dbStats = await db.stats().catch(() => {\n logger.error(`Error getting stats for database ${d.name} on server ${params.server}`);\n return {\n dataSize: 0,\n avgObjSize: 0,\n storageSize: 0,\n indexSize: 0,\n collections: 0\n };\n });\n const collectionsJson = db.listCollections().toArray().then((c) => c.sort((a, b) => a.name.localeCompare(b.name))).then((c) => Promise.all(c.map((c2) => getCollectionJson(db.collection(c2.name), c2.type))));\n return {\n name: db.databaseName,\n size: d.sizeOnDisk ?? 0,\n dataSize: dbStats.dataSize,\n avgObjSize: dbStats.avgObjSize,\n storageSize: dbStats.storageSize,\n totalIndexSize: dbStats.indexSize,\n empty: d.empty ?? true,\n nCollections: dbStats.collections,\n collections: collectionsJson.catch(() => [])\n };\n })\n );\n return {\n databases\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/servers/_server_/databases/_page.server.ts.js';\n\nexport const index = 8;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/servers/_server_/databases/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/servers/[server]/databases/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/8.DJ2F-El6.js\",\"_app/immutable/chunks/BBg-V8FE.js\",\"_app/immutable/chunks/C82Rp5eQ.js\",\"_app/immutable/chunks/3iRu_dUj.js\",\"_app/immutable/chunks/BUNgwIS0.js\",\"_app/immutable/chunks/D7E46CWw.js\",\"_app/immutable/chunks/gKOzvRrz.js\",\"_app/immutable/chunks/4kkfSeWm.js\",\"_app/immutable/chunks/3F1-DdqN.js\",\"_app/immutable/chunks/CDodg8QV.js\",\"_app/immutable/chunks/Ce4Mb8bQ.js\",\"_app/immutable/chunks/BE8UzJuY.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Panel.B3aWupye.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;;;AAEA,MAAM,IAAI,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK;AACnC,EAAE,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE;AAChC,EAAE,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;AAC/C,EAAE,MAAM,OAAO,GAAG,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE;AAC3C,EAAE,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,aAAa,EAAE;AAC/C,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;AACzC,IAAI,OAAO;AACX,MAAM,SAAS,EAAE;AACjB,KAAK;AACL,EAAE;AACF,EAAE,MAAM,iBAAiB,GAAG,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,SAAS,CAAC;AACpE,EAAE,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,GAAG;AACrC,IAAI,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK;AACvC,MAAM,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAClC,MAAM,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM;AACnD,QAAQ,MAAM,CAAC,KAAK,CAAC,CAAC,iCAAiC,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7F,QAAQ,OAAO;AACf,UAAU,QAAQ,EAAE,CAAC;AACrB,UAAU,UAAU,EAAE,CAA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AAC,EAAE;AAE3H,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5b,MAAC,WAAW,GAAG,CAAC,0CAA0C;AAC1D,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"8-CA3-CJtS.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/8.js"],"sourcesContent":["import { l as logger } from \"../../../../../chunks/logger.js\";\nimport { g as getMongo, a as getCollectionJson } from \"../../../../../chunks/mongo.js\";\nconst load = async ({ params }) => {\n const mongo = await getMongo();\n const client = mongo.getClient(params.server);\n const adminDb = client.db(\"test\").admin();\n const results = await adminDb.listDatabases();\n if (!Array.isArray(results.databases)) {\n return {\n databases: []\n };\n }\n const filteredDatabases = mongo.filterDatabases(results.databases);\n const databases = await Promise.all(\n filteredDatabases.map(async (d) => {\n const db = client.db(d.name);\n const dbStats = await db.stats().catch(() => {\n logger.error(`Error getting stats for database ${d.name} on server ${params.server}`);\n return {\n dataSize: 0,\n avgObjSize: 0,\n storageSize: 0,\n indexSize: 0,\n collections: 0\n };\n });\n const collectionsJson = db.listCollections().toArray().then((c) => c.sort((a, b) => a.name.localeCompare(b.name))).then((c) => Promise.all(c.map((c2) => getCollectionJson(db.collection(c2.name), c2.type))));\n return {\n name: db.databaseName,\n size: d.sizeOnDisk ?? 0,\n dataSize: dbStats.dataSize,\n avgObjSize: dbStats.avgObjSize,\n storageSize: dbStats.storageSize,\n totalIndexSize: dbStats.indexSize,\n empty: d.empty ?? true,\n nCollections: dbStats.collections,\n collections: collectionsJson.catch(() => [])\n };\n })\n );\n return {\n databases\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/servers/_server_/databases/_page.server.ts.js';\n\nexport const index = 8;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/servers/_server_/databases/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/servers/[server]/databases/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/8.BSXe_VNA.js\",\"_app/immutable/chunks/BBg-V8FE.js\",\"_app/immutable/chunks/C82Rp5eQ.js\",\"_app/immutable/chunks/3iRu_dUj.js\",\"_app/immutable/chunks/BUNgwIS0.js\",\"_app/immutable/chunks/D7E46CWw.js\",\"_app/immutable/chunks/PXh00dfp.js\",\"_app/immutable/chunks/C2sjtvBO.js\",\"_app/immutable/chunks/C0rm4mmq.js\",\"_app/immutable/chunks/Dx56OlI-.js\",\"_app/immutable/chunks/CjNnAkTB.js\",\"_app/immutable/chunks/BE8UzJuY.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Panel.B3aWupye.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;;;AAEA,MAAM,IAAI,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK;AACnC,EAAE,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE;AAChC,EAAE,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;AAC/C,EAAE,MAAM,OAAO,GAAG,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE;AAC3C,EAAE,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,aAAa,EAAE;AAC/C,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;AACzC,IAAI,OAAO;AACX,MAAM,SAAS,EAAE;AACjB,KAAK;AACL,EAAE;AACF,EAAE,MAAM,iBAAiB,GAAG,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,SAAS,CAAC;AACpE,EAAE,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,GAA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AO,CAAC,WAAW;AACxC,QAAQ,cAAc,EAAE,OAAO,CAAC,SAAS;AACzC,QAAQ,KAAK,EAAE,CAAC,CAAC,KAAK,IAAI,IAAI;AAC9B,QAAQ,YAAY,EAAE,OAAO,CAAC,WAAW;AACzC,QAAQ,WAAW,EAAE,eAAe,CAAC,KAAK,CAAC,MAAM,EAAE;AACnD,OAAO;AACP,IAAI,CAAC;AACL,GAAG;AACH,EAAE,OAAO;AACT,IAAI;AACJ,GAAG;AACH,CAAC;;;;;;;ACzCW,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA6D,CAAC,EAAE;AAE3H,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5b,MAAC,WAAW,GAAG,CAAC,0CAA0C;AAC1D,MAAC,KAAK,GAAG;;;;"}
@@ -30,11 +30,11 @@ var _page_server_ts = /*#__PURE__*/Object.freeze({
30
30
 
31
31
  const index = 9;
32
32
  let component_cache;
33
- const component = async () => component_cache ??= (await import('./_page.svelte-CiFj0j1b.js')).default;
33
+ const component = async () => component_cache ??= (await import('./_page.svelte-BRxX_vQR.js')).default;
34
34
  const server_id = "src/routes/servers/[server]/databases/[database]/collections/+page.server.ts";
35
- const imports = ["_app/immutable/nodes/9.dwG6oJR6.js","_app/immutable/chunks/BBg-V8FE.js","_app/immutable/chunks/C82Rp5eQ.js","_app/immutable/chunks/3iRu_dUj.js","_app/immutable/chunks/BUNgwIS0.js","_app/immutable/chunks/D7E46CWw.js","_app/immutable/chunks/gKOzvRrz.js","_app/immutable/chunks/4kkfSeWm.js","_app/immutable/chunks/B_rSBg9G.js","_app/immutable/chunks/DHlkWqjx.js","_app/immutable/chunks/5nAxkTTP.js","_app/immutable/chunks/D5ccpaXt.js","_app/immutable/chunks/BE8UzJuY.js","_app/immutable/chunks/3F1-DdqN.js","_app/immutable/chunks/CDodg8QV.js","_app/immutable/chunks/Ce4Mb8bQ.js","_app/immutable/chunks/C0PCwpqt.js"];
35
+ const imports = ["_app/immutable/nodes/9.BXMJq3Z_.js","_app/immutable/chunks/BBg-V8FE.js","_app/immutable/chunks/C82Rp5eQ.js","_app/immutable/chunks/3iRu_dUj.js","_app/immutable/chunks/BUNgwIS0.js","_app/immutable/chunks/D7E46CWw.js","_app/immutable/chunks/PXh00dfp.js","_app/immutable/chunks/C2sjtvBO.js","_app/immutable/chunks/BQEBQyfZ.js","_app/immutable/chunks/CGSOl_q_.js","_app/immutable/chunks/5nAxkTTP.js","_app/immutable/chunks/D5ccpaXt.js","_app/immutable/chunks/BE8UzJuY.js","_app/immutable/chunks/C0rm4mmq.js","_app/immutable/chunks/Dx56OlI-.js","_app/immutable/chunks/CjNnAkTB.js","_app/immutable/chunks/C0PCwpqt.js"];
36
36
  const stylesheets = ["_app/immutable/assets/Modal.DIIFkbGB.css","_app/immutable/assets/Panel.B3aWupye.css"];
37
37
  const fonts = [];
38
38
 
39
39
  export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
40
- //# sourceMappingURL=9-Di6COO7E.js.map
40
+ //# sourceMappingURL=9-jMOS3lPS.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"9-Di6COO7E.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_database_/collections/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/9.js"],"sourcesContent":["import { g as getMongo, a as getCollectionJson } from \"../../../../../../../chunks/mongo.js\";\nconst load = async ({ params }) => {\n const mongo = await getMongo();\n const client = mongo.getClient(params.server);\n const db = client.db(params.database);\n const collections = (await db.listCollections().toArray()).sort((a, b) => a.name.localeCompare(b.name));\n const collectionsWithDetails = collections.map((c) => ({\n name: c.name,\n type: c.type,\n details: getCollectionJson(db.collection(c.name), c.type).catch(() => null)\n }));\n return {\n collections: collectionsWithDetails\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/servers/_server_/databases/_database_/collections/_page.server.ts.js';\n\nexport const index = 9;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/servers/_server_/databases/_database_/collections/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/servers/[server]/databases/[database]/collections/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/9.dwG6oJR6.js\",\"_app/immutable/chunks/BBg-V8FE.js\",\"_app/immutable/chunks/C82Rp5eQ.js\",\"_app/immutable/chunks/3iRu_dUj.js\",\"_app/immutable/chunks/BUNgwIS0.js\",\"_app/immutable/chunks/D7E46CWw.js\",\"_app/immutable/chunks/gKOzvRrz.js\",\"_app/immutable/chunks/4kkfSeWm.js\",\"_app/immutable/chunks/B_rSBg9G.js\",\"_app/immutable/chunks/DHlkWqjx.js\",\"_app/immutable/chunks/5nAxkTTP.js\",\"_app/immutable/chunks/D5ccpaXt.js\",\"_app/immutable/chunks/BE8UzJuY.js\",\"_app/immutable/chunks/3F1-DdqN.js\",\"_app/immutable/chunks/CDodg8QV.js\",\"_app/immutable/chunks/Ce4Mb8bQ.js\",\"_app/immutable/chunks/C0PCwpqt.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Modal.DIIFkbGB.css\",\"_app/immutable/assets/Panel.B3aWupye.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;;;AACA,MAAM,IAAI,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK;AACnC,EAAE,MAAM,KAAK,GAAG,MAAM,QAAQ,EAAE;AAChC,EAAE,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;AAC/C,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;AACvC,EAAE,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AACzG,EAAE,MAAM,sBAAsB,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM;AACzD,IAAI,IAAI,EAAE,CAAC,CAAC,IAAI;AAChB,IAAI,IAAI,EAAE,CAAC,CAAC,IAAI;AAChB,IAAI,OAAO,EAAE,iBAAiB,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,IAAI;AAC9E,GAAG,CAAC,CAAC;AACL,EAAE,OAAO;AACT,IAAI,WAAW,EAAE;AACjB,GAAG;AACH,CAAC;;;;;;;ACZW,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAoF,CAAC,EAAE;AAElJ,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAChnB,MAAC,WAAW,GAAG,CAAC,0CAA0C,CAAC,0CAA0C;AACrG,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"9-jMOS3lPS.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_database_/collections/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/9.js"],"sourcesContent":["import { g as getMongo, a as getCollectionJson } from \"../../../../../../../chunks/mongo.js\";\nconst load = async ({ params }) => {\n const mongo = await getMongo();\n const client = mongo.getClient(params.server);\n const db = client.db(params.database);\n const collections = (await db.listCollections().toArray()).sort((a, b) => a.name.localeCompare(b.name));\n const collectionsWithDetails = collections.map((c) => ({\n name: c.name,\n type: c.type,\n details: getCollectionJson(db.collection(c.name), c.type).catch(() => null)\n }));\n return {\n collections: collectionsWithDetails\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/servers/_server_/databases/_database_/collections/_page.server.ts.js';\n\nexport const index = 9;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/servers/_server_/databases/_database_/collections/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/servers/[server]/databases/[database]/collections/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/9.BXMJq3Z_.js\",\"_app/immutable/chunks/BBg-V8FE.js\",\"_app/immutable/chunks/C82Rp5eQ.js\",\"_app/immutable/chunks/3iRu_dUj.js\",\"_app/immutable/chunks/BUNgwIS0.js\",\"_app/immutable/chunks/D7E46CWw.js\",\"_app/immutable/chunks/PXh00dfp.js\",\"_app/immutable/chunks/C2sjtvBO.js\",\"_app/immutable/chunks/BQEBQyfZ.js\",\"_app/immutable/chunks/CGSOl_q_.js\",\"_app/immutable/chunks/5nAxkTTP.js\",\"_app/immutable/chunks/D5ccpaXt.js\",\"_app/immutable/chunks/BE8UzJuY.js\",\"_app/immutable/chunks/C0rm4mmq.js\",\"_app/immutable/chunks/Dx56OlI-.js\",\"_app/immutable/chunks/CjNnAkTB.js\",\"_app/immutable/chunks/C0PCwpqt.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Modal.DIIFkbGB.css\",\"_app/immutable/assets/Panel.B3aWupye.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;;;AACA,MAAM,IAAI,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK;AACnC,EAAE,MA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,CAAC,0CAA0C,CAAC,0CAA0C;AACrG,MAAC,KAAK,GAAG;;;;"}
@@ -1,7 +1,7 @@
1
1
  import './async-lVJA8xJZ.js';
2
2
  import { b as attr_class, a as attr, e as ensure_array_like } from './index2-DBFlGzWV.js';
3
3
  import './event-DVH-6ISX.js';
4
- import { T as Tooltip } from './Tooltip-DflJLumT.js';
4
+ import { T as Tooltip } from './Tooltip-ys6l541_.js';
5
5
  import { e as escape_html } from './context-C22hLSHK.js';
6
6
 
7
7
  function JsonValue_1($$renderer, $$props) {
@@ -296,4 +296,4 @@ function JsonValue_1($$renderer, $$props) {
296
296
  }
297
297
 
298
298
  export { JsonValue_1 as J };
299
- //# sourceMappingURL=JsonValue-ClBHqVOS.js.map
299
+ //# sourceMappingURL=JsonValue-WMdIUvRM.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"JsonValue-ClBHqVOS.js","sources":["../../../.svelte-kit/adapter-node/chunks/JsonValue.js"],"sourcesContent":["import \"./async.js\";\nimport { y as attr_class, x as attr, w as ensure_array_like } from \"./index2.js\";\nimport \"@sveltejs/kit/internal/server\";\nimport { T as Tooltip } from \"./Tooltip.js\";\nimport { e as escape_html } from \"./context.js\";\nfunction JsonValue_1($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n const INDENT = \" \";\n let {\n value,\n key,\n autoCollapse = false,\n collapsed = false,\n depth = 0,\n isKeyMapped,\n fetchMappedDocument,\n keyPath = \"\"\n } = $$props;\n function getIndent(level) {\n return INDENT.repeat(level);\n }\n function isUrl(str) {\n return /^https?:\\/\\/[^\\s]+$/.test(str);\n }\n let showTooltip = false;\n const currentKeyPath = [keyPath, key].filter(Boolean).join(\".\");\n function getValueType(val) {\n if (val === null) return \"null\";\n if (Array.isArray(val)) return \"array\";\n switch (typeof val) {\n case \"boolean\":\n return \"boolean\";\n case \"number\":\n return \"number\";\n case \"string\":\n return \"string\";\n case \"object\":\n switch (val.$type) {\n case \"ObjectId\":\n return \"objectid\";\n case \"Date\":\n return \"date\";\n case \"RegExp\":\n return \"regexp\";\n case \"Binary\":\n return \"binary\";\n default:\n return \"object\";\n }\n default:\n return \"unknown\";\n }\n }\n const valueType = getValueType(value);\n const hasMappings = !!isKeyMapped && !!fetchMappedDocument && key === void 0 && isKeyMapped(currentKeyPath) && value !== null && value !== void 0 && valueType !== \"array\" && valueType !== \"object\";\n let isCollapsible = valueType === \"array\" || valueType === \"object\";\n let isEmpty = valueType === \"array\" && value.length === 0 || valueType === \"object\" && Object.keys(value).length === 0;\n let innerCollapsed = autoCollapse;\n if (key !== void 0) {\n $$renderer2.push(\"<!--[-->\");\n if (isCollapsible && !isEmpty) {\n $$renderer2.push(\"<!--[-->\");\n if (innerCollapsed) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<span class=\"prop collapsible collapsed svelte-1c374kz\" role=\"button\" tabindex=\"0\">${escape_html(getIndent(depth + 1))}<span class=\"collapse-arrow svelte-1c374kz\">▶</span><var class=\"svelte-1c374kz\">${escape_html(key)}</var>: `);\n JsonValue_1($$renderer2, {\n value,\n autoCollapse,\n collapsed: innerCollapsed,\n depth: depth + 1,\n isKeyMapped,\n fetchMappedDocument,\n keyPath: currentKeyPath\n });\n $$renderer2.push(`<!----></span>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`<span class=\"prop collapsible svelte-1c374kz\">${escape_html(getIndent(depth + 1))}<span class=\"collapse-arrow arrow-only svelte-1c374kz\" role=\"button\" tabindex=\"0\">▼</span><var class=\"svelte-1c374kz\">${escape_html(key)}</var>: `);\n JsonValue_1($$renderer2, {\n value,\n autoCollapse,\n collapsed: innerCollapsed,\n depth: depth + 1,\n isKeyMapped,\n fetchMappedDocument,\n keyPath: currentKeyPath\n });\n $$renderer2.push(`<!----></span>`);\n }\n $$renderer2.push(`<!--]-->`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`<span class=\"prop svelte-1c374kz\">${escape_html(getIndent(depth + 1))}<var class=\"svelte-1c374kz\">${escape_html(key)}</var>: `);\n JsonValue_1($$renderer2, {\n value,\n autoCollapse,\n collapsed: innerCollapsed,\n depth: depth + 1,\n isKeyMapped,\n fetchMappedDocument,\n keyPath: currentKeyPath\n });\n $$renderer2.push(`<!----></span>`);\n }\n $$renderer2.push(`<!--]-->`);\n } else {\n let valueSnippet = function($$renderer3) {\n if (valueType === \"string\") {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"value quoted svelte-1c374kz\">\"<span${attr_class(\"string svelte-1c374kz\", void 0, { \"url\": isUrl(value) })}>`);\n if (isUrl(value)) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<a${attr(\"href\", value)} target=\"_blank\" class=\"svelte-1c374kz\">${escape_html(value)}</a>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n $$renderer3.push(`${escape_html(value)}`);\n }\n $$renderer3.push(`<!--]--></span>\"</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"number\") {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"value number svelte-1c374kz\">${escape_html(value)}</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"boolean\") {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"value boolean svelte-1c374kz\">${escape_html(value)}</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"null\") {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"value null svelte-1c374kz\">null</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"objectid\") {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"call function svelte-1c374kz\">ObjectId(\"<span class=\"string\">${escape_html(value.$value)}</span>\")</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"date\") {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"call function svelte-1c374kz\">Date(\"<span class=\"string\">${escape_html(value.$value)}</span>\")</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"regexp\") {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"value regexp svelte-1c374kz\">/${escape_html(value.$value.$pattern)}/${escape_html(value.$value.$flags)}</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"binary\") {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"call function svelte-1c374kz\">BinData(<span class=\"number\">${escape_html(value.$subType)}</span>, \"<span class=\"string\">${escape_html(value.$value.length > 40 ? value.$value.substring(0, 40) + \"...\" : value.$value)}</span>\")</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"array\") {\n $$renderer3.push(\"<!--[-->\");\n if (isEmpty) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"value array svelte-1c374kz\">[]</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n $$renderer3.push(`<span class=\"value array svelte-1c374kz\">[<span${attr_class(\"collapsible-content svelte-1c374kz\", void 0, { \"hidden\": collapsed })}><!--[-->`);\n const each_array = ensure_array_like(value);\n for (let i = 0, $$length = each_array.length; i < $$length; i++) {\n let item = each_array[i];\n $$renderer3.push(`<br/>${escape_html(getIndent(depth + 1))}`);\n JsonValue_1($$renderer3, {\n value: item,\n autoCollapse,\n collapsed: false,\n depth: depth + 1,\n keyPath: currentKeyPath,\n isKeyMapped,\n fetchMappedDocument\n });\n $$renderer3.push(`<!---->`);\n }\n $$renderer3.push(`<!--]--> <br/>${escape_html(getIndent(depth))}</span>`);\n if (collapsed) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"collapsed-summary svelte-1c374kz\">... ${escape_html(value.length)} item${escape_html(value.length !== 1 ? \"s\" : \"\")}</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n }\n $$renderer3.push(`<!--]-->]</span>`);\n }\n $$renderer3.push(`<!--]-->`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"object\") {\n $$renderer3.push(\"<!--[-->\");\n if (isEmpty) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"value object svelte-1c374kz\">{}</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n $$renderer3.push(`<span class=\"value object svelte-1c374kz\">{<span${attr_class(\"collapsible-content svelte-1c374kz\", void 0, { \"hidden\": collapsed })}><!--[-->`);\n const each_array_1 = ensure_array_like(Object.keys(value));\n for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {\n let objKey = each_array_1[$$index_1];\n JsonValue_1($$renderer3, {\n value: value[objKey],\n key: objKey,\n autoCollapse,\n collapsed: autoCollapse,\n depth,\n isKeyMapped,\n fetchMappedDocument,\n keyPath: currentKeyPath\n });\n }\n $$renderer3.push(`<!--]--></span>`);\n if (collapsed) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"collapsed-summary svelte-1c374kz\">... ${escape_html(Object.keys(value).length)} key${escape_html(Object.keys(value).length !== 1 ? \"s\" : \"\")}</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n $$renderer3.push(`${escape_html(getIndent(depth))}`);\n }\n $$renderer3.push(`<!--]-->}</span>`);\n }\n $$renderer3.push(`<!--]-->`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n $$renderer3.push(`<span>${escape_html(String(value))}</span>`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n };\n $$renderer2.push(\"<!--[!-->\");\n if (hasMappings) {\n $$renderer2.push(\"<!--[-->\");\n {\n let trigger = function($$renderer3) {\n $$renderer3.push(`<span${attr_class(\"string mapped svelte-1c374kz\", void 0, { \"url\": isUrl(value) })} role=\"button\" tabindex=\"0\">`);\n {\n $$renderer3.push(\"<!--[!-->\");\n valueSnippet?.($$renderer3);\n }\n $$renderer3.push(`<!--]--></span>`);\n }, content = function($$renderer3) {\n {\n $$renderer3.push(\"<!--[!-->\");\n {\n $$renderer3.push(\"<!--[!-->\");\n {\n $$renderer3.push(\"<!--[!-->\");\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n };\n Tooltip($$renderer2, {\n show: showTooltip,\n tooltipClass: \"max-w-[600px] max-h-[400px] overflow-auto whitespace-pre-wrap\",\n trigger,\n content\n });\n }\n } else {\n $$renderer2.push(\"<!--[!-->\");\n valueSnippet?.($$renderer2);\n }\n $$renderer2.push(`<!--]-->`);\n if (depth !== 0) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`,`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]-->`);\n }\n $$renderer2.push(`<!--]-->`);\n });\n}\nexport {\n JsonValue_1 as J\n};\n"],"names":[],"mappings":";;;;;;AAKA,SAAS,WAAW,CAAC,UAAU,EAAE,OAAO,EAAE;AAC1C,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,MAAM,MAAM,GAAG,MAAM;AACzB,IAAI,IAAI;AACR,MAAM,KAAK;AACX,MAAM,GAAG;AACT,MAAM,YAAY,GAAG,KAAK;AAC1B,MAAM,SAAS,GAAG,KAAK;AACvB,MAAM,KAAK,GAAG,CAAC;AACf,MAAM,WAAW;AACjB,MAAM,mBAAmB;AACzB,MAAM,OAAO,GAAG;AAChB,KAAK,GAAG,OAAO;AACf,IAAI,SAAS,SAAS,CAAC,KAAK,EAAE;AAC9B,MAAM,OAA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c;AACd,cAAc,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAC1C,YAAY;AACZ,YAAY,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AACxC,UAAU,CAAC;AACX,UAAU,OAAO,CAAC,WAAW,EAAE;AAC/B,YAAY,IAAI,EAAE,WAAW;AAC7B,YAAY,YAAY,EAAE,+DAA+D;AACzF,YAAY,OAAO;AACnB,YAAY;AACZ,WAAW,CAAC;AACZ,QAAQ;AACR,MAAM,CAAC,MAAM;AACb,QAAQ,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACrC,QAAQ,YAAY,GAAG,WAAW,CAAC;AACnC,MAAM;AACN,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAClC,MAAM,IAAI,KAAK,KAAK,CAAC,EAAE;AACvB,QAAQ,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC;AACpC,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7B,MAAM,CAAC,MAAM;AACb,QAAQ,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACrC,MAAM;AACN,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAClC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAChC,EAAE,CAAC,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"JsonValue-WMdIUvRM.js","sources":["../../../.svelte-kit/adapter-node/chunks/JsonValue.js"],"sourcesContent":["import \"./async.js\";\nimport { y as attr_class, x as attr, w as ensure_array_like } from \"./index2.js\";\nimport \"@sveltejs/kit/internal/server\";\nimport { T as Tooltip } from \"./Tooltip.js\";\nimport { e as escape_html } from \"./context.js\";\nfunction JsonValue_1($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n const INDENT = \" \";\n let {\n value,\n key,\n autoCollapse = false,\n collapsed = false,\n depth = 0,\n isKeyMapped,\n fetchMappedDocument,\n keyPath = \"\"\n } = $$props;\n function getIndent(level) {\n return INDENT.repeat(level);\n }\n function isUrl(str) {\n return /^https?:\\/\\/[^\\s]+$/.test(str);\n }\n let showTooltip = false;\n const currentKeyPath = [keyPath, key].filter(Boolean).join(\".\");\n function getValueType(val) {\n if (val === null) return \"null\";\n if (Array.isArray(val)) return \"array\";\n switch (typeof val) {\n case \"boolean\":\n return \"boolean\";\n case \"number\":\n return \"number\";\n case \"string\":\n return \"string\";\n case \"object\":\n switch (val.$type) {\n case \"ObjectId\":\n return \"objectid\";\n case \"Date\":\n return \"date\";\n case \"RegExp\":\n return \"regexp\";\n case \"Binary\":\n return \"binary\";\n default:\n return \"object\";\n }\n default:\n return \"unknown\";\n }\n }\n const valueType = getValueType(value);\n const hasMappings = !!isKeyMapped && !!fetchMappedDocument && key === void 0 && isKeyMapped(currentKeyPath) && value !== null && value !== void 0 && valueType !== \"array\" && valueType !== \"object\";\n let isCollapsible = valueType === \"array\" || valueType === \"object\";\n let isEmpty = valueType === \"array\" && value.length === 0 || valueType === \"object\" && Object.keys(value).length === 0;\n let innerCollapsed = autoCollapse;\n if (key !== void 0) {\n $$renderer2.push(\"<!--[-->\");\n if (isCollapsible && !isEmpty) {\n $$renderer2.push(\"<!--[-->\");\n if (innerCollapsed) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<span class=\"prop collapsible collapsed svelte-1c374kz\" role=\"button\" tabindex=\"0\">${escape_html(getIndent(depth + 1))}<span class=\"collapse-arrow svelte-1c374kz\">▶</span><var class=\"svelte-1c374kz\">${escape_html(key)}</var>: `);\n JsonValue_1($$renderer2, {\n value,\n autoCollapse,\n collapsed: innerCollapsed,\n depth: depth + 1,\n isKeyMapped,\n fetchMappedDocument,\n keyPath: currentKeyPath\n });\n $$renderer2.push(`<!----></span>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`<span class=\"prop collapsible svelte-1c374kz\">${escape_html(getIndent(depth + 1))}<span class=\"collapse-arrow arrow-only svelte-1c374kz\" role=\"button\" tabindex=\"0\">▼</span><var class=\"svelte-1c374kz\">${escape_html(key)}</var>: `);\n JsonValue_1($$renderer2, {\n value,\n autoCollapse,\n collapsed: innerCollapsed,\n depth: depth + 1,\n isKeyMapped,\n fetchMappedDocument,\n keyPath: currentKeyPath\n });\n $$renderer2.push(`<!----></span>`);\n }\n $$renderer2.push(`<!--]-->`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`<span class=\"prop svelte-1c374kz\">${escape_html(getIndent(depth + 1))}<var class=\"svelte-1c374kz\">${escape_html(key)}</var>: `);\n JsonValue_1($$renderer2, {\n value,\n autoCollapse,\n collapsed: innerCollapsed,\n depth: depth + 1,\n isKeyMapped,\n fetchMappedDocument,\n keyPath: currentKeyPath\n });\n $$renderer2.push(`<!----></span>`);\n }\n $$renderer2.push(`<!--]-->`);\n } else {\n let valueSnippet = function($$renderer3) {\n if (valueType === \"string\") {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"value quoted svelte-1c374kz\">\"<span${attr_class(\"string svelte-1c374kz\", void 0, { \"url\": isUrl(value) })}>`);\n if (isUrl(value)) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<a${attr(\"href\", value)} target=\"_blank\" class=\"svelte-1c374kz\">${escape_html(value)}</a>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n $$renderer3.push(`${escape_html(value)}`);\n }\n $$renderer3.push(`<!--]--></span>\"</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"number\") {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"value number svelte-1c374kz\">${escape_html(value)}</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"boolean\") {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"value boolean svelte-1c374kz\">${escape_html(value)}</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"null\") {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"value null svelte-1c374kz\">null</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"objectid\") {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"call function svelte-1c374kz\">ObjectId(\"<span class=\"string\">${escape_html(value.$value)}</span>\")</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"date\") {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"call function svelte-1c374kz\">Date(\"<span class=\"string\">${escape_html(value.$value)}</span>\")</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"regexp\") {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"value regexp svelte-1c374kz\">/${escape_html(value.$value.$pattern)}/${escape_html(value.$value.$flags)}</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"binary\") {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"call function svelte-1c374kz\">BinData(<span class=\"number\">${escape_html(value.$subType)}</span>, \"<span class=\"string\">${escape_html(value.$value.length > 40 ? value.$value.substring(0, 40) + \"...\" : value.$value)}</span>\")</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"array\") {\n $$renderer3.push(\"<!--[-->\");\n if (isEmpty) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"value array svelte-1c374kz\">[]</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n $$renderer3.push(`<span class=\"value array svelte-1c374kz\">[<span${attr_class(\"collapsible-content svelte-1c374kz\", void 0, { \"hidden\": collapsed })}><!--[-->`);\n const each_array = ensure_array_like(value);\n for (let i = 0, $$length = each_array.length; i < $$length; i++) {\n let item = each_array[i];\n $$renderer3.push(`<br/>${escape_html(getIndent(depth + 1))}`);\n JsonValue_1($$renderer3, {\n value: item,\n autoCollapse,\n collapsed: false,\n depth: depth + 1,\n keyPath: currentKeyPath,\n isKeyMapped,\n fetchMappedDocument\n });\n $$renderer3.push(`<!---->`);\n }\n $$renderer3.push(`<!--]--> <br/>${escape_html(getIndent(depth))}</span>`);\n if (collapsed) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"collapsed-summary svelte-1c374kz\">... ${escape_html(value.length)} item${escape_html(value.length !== 1 ? \"s\" : \"\")}</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n }\n $$renderer3.push(`<!--]-->]</span>`);\n }\n $$renderer3.push(`<!--]-->`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (valueType === \"object\") {\n $$renderer3.push(\"<!--[-->\");\n if (isEmpty) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"value object svelte-1c374kz\">{}</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n $$renderer3.push(`<span class=\"value object svelte-1c374kz\">{<span${attr_class(\"collapsible-content svelte-1c374kz\", void 0, { \"hidden\": collapsed })}><!--[-->`);\n const each_array_1 = ensure_array_like(Object.keys(value));\n for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {\n let objKey = each_array_1[$$index_1];\n JsonValue_1($$renderer3, {\n value: value[objKey],\n key: objKey,\n autoCollapse,\n collapsed: autoCollapse,\n depth,\n isKeyMapped,\n fetchMappedDocument,\n keyPath: currentKeyPath\n });\n }\n $$renderer3.push(`<!--]--></span>`);\n if (collapsed) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"collapsed-summary svelte-1c374kz\">... ${escape_html(Object.keys(value).length)} key${escape_html(Object.keys(value).length !== 1 ? \"s\" : \"\")}</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n $$renderer3.push(`${escape_html(getIndent(depth))}`);\n }\n $$renderer3.push(`<!--]-->}</span>`);\n }\n $$renderer3.push(`<!--]-->`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n $$renderer3.push(`<span>${escape_html(String(value))}</span>`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n };\n $$renderer2.push(\"<!--[!-->\");\n if (hasMappings) {\n $$renderer2.push(\"<!--[-->\");\n {\n let trigger = function($$renderer3) {\n $$renderer3.push(`<span${attr_class(\"string mapped svelte-1c374kz\", void 0, { \"url\": isUrl(value) })} role=\"button\" tabindex=\"0\">`);\n {\n $$renderer3.push(\"<!--[!-->\");\n valueSnippet?.($$renderer3);\n }\n $$renderer3.push(`<!--]--></span>`);\n }, content = function($$renderer3) {\n {\n $$renderer3.push(\"<!--[!-->\");\n {\n $$renderer3.push(\"<!--[!-->\");\n {\n $$renderer3.push(\"<!--[!-->\");\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n };\n Tooltip($$renderer2, {\n show: showTooltip,\n tooltipClass: \"max-w-[600px] max-h-[400px] overflow-auto whitespace-pre-wrap\",\n trigger,\n content\n });\n }\n } else {\n $$renderer2.push(\"<!--[!-->\");\n valueSnippet?.($$renderer2);\n }\n $$renderer2.push(`<!--]-->`);\n if (depth !== 0) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`,`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]-->`);\n }\n $$renderer2.push(`<!--]-->`);\n });\n}\nexport {\n JsonValue_1 as J\n};\n"],"names":[],"mappings":";;;;;;AAKA,SAAS,WAAW,CAAC,UAAU,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CAAC,CAAC,QAAQ,CAAC,CAAC;AAChC,EAAE,CAAC,CAAC;AACJ;;;;"}
@@ -3,7 +3,7 @@ import { b as attr_class, g as attr_style, a as attr, s as stringify } from './i
3
3
  import { f as fetchMappedDocument } from './servers.remote-DrkuAWHP.js';
4
4
  import { r as resolve } from './server2-_mGVuBoG.js';
5
5
  import 'esprima';
6
- import { J as JsonValue_1 } from './JsonValue-ClBHqVOS.js';
6
+ import { J as JsonValue_1 } from './JsonValue-WMdIUvRM.js';
7
7
  import { P as Panel } from './Panel-yg5YKL4d.js';
8
8
  import { e as escape_html } from './context-C22hLSHK.js';
9
9
 
@@ -110,7 +110,7 @@ function PrettyJson($$renderer, $$props) {
110
110
  title: json._id ? title : void 0,
111
111
  actions,
112
112
  children: ($$renderer3) => {
113
- $$renderer3.push(`<div class="p-4 relative border-t border-[var(--border-color)] overflow-x-auto"><div class="font-mono text-sm leading-tight whitespace-pre-wrap break-words relative">`);
113
+ $$renderer3.push(`<div class="relative border-t border-[var(--border-color)]"><div class="font-mono text-sm leading-tight whitespace-pre-wrap break-words p-4 overflow-x-auto">`);
114
114
  JsonValue_1($$renderer3, {
115
115
  value: json,
116
116
  autoCollapse,
@@ -134,4 +134,4 @@ function PrettyJson($$renderer, $$props) {
134
134
  }
135
135
 
136
136
  export { PrettyJson as P };
137
- //# sourceMappingURL=PrettyJson-D0Cn5_CJ.js.map
137
+ //# sourceMappingURL=PrettyJson-D3CylSVd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrettyJson-D3CylSVd.js","sources":["../../../.svelte-kit/adapter-node/chunks/PrettyJson.js"],"sourcesContent":["import \"./async.js\";\nimport { y as attr_class, N as attr_style, x as attr, z as stringify } from \"./index2.js\";\nimport { f as fetchMappedDocument } from \"./servers.remote.js\";\nimport { r as resolve } from \"./server2.js\";\nimport \"esprima\";\nimport { J as JsonValue_1 } from \"./JsonValue.js\";\nimport { P as Panel } from \"./Panel.js\";\nimport { e as escape_html } from \"./context.js\";\nfunction PrettyJson($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let {\n json,\n autoCollapse = false,\n onedit,\n onremove,\n server,\n database,\n collection,\n mappings,\n startInEditMode = false\n } = $$props;\n function getIdValue(val) {\n if (val === null || val === void 0) return null;\n if (typeof val === \"string\" || typeof val === \"number\") return String(val);\n if (val.$type === \"ObjectId\" && val.$value) return val.$value;\n return null;\n }\n function isKeyMapped(path) {\n return !!mappings?.[path] && (Array.isArray(mappings[path]) ? mappings[path].length > 0 : true);\n }\n async function fetchMappedDocument$1(path, value) {\n if (!mappings || !mappings[path] || Array.isArray(mappings[path]) && mappings[path].length === 0) {\n return { document: null, url: null, collection: null };\n }\n const idValue = getIdValue(value);\n if (!idValue) {\n return { document: null, url: null, collection: null };\n }\n try {\n const result = await fetchMappedDocument({\n server,\n database,\n mappings: Array.isArray(mappings[path]) ? mappings[path] : [mappings[path]],\n value\n });\n if (result.error || !result.data || !result.collection) {\n return { document: null, url: null, collection: null };\n }\n const url = resolve(`/servers/${encodeURIComponent(server)}/databases/${encodeURIComponent(database)}/collections/${encodeURIComponent(result.collection)}/documents/${encodeURIComponent(idValue)}`);\n return { document: result.data, url, collection: result.collection };\n } catch {\n return { document: null, url: null, collection: null };\n }\n }\n let editorVisible = false;\n let editJson = \"\";\n let editorHeight = \"300px\";\n function getTimestampFromObjectId(objectId) {\n try {\n const timestamp = parseInt(objectId.substring(0, 8), 16);\n return new Date(timestamp * 1e3);\n } catch {\n return null;\n }\n }\n function title($$renderer3) {\n if (json._id) {\n $$renderer3.push(\"<!--[-->\");\n const idValue = json._id.$value ?? json._id;\n $$renderer3.push(`<div><a type=\"button\" class=\"bg-transparent border-none text-[var(--text)] no-underline cursor-pointer text-xl font-inherit p-0 hover:underline normal-case\"${attr(\"href\", resolve(`/servers/${encodeURIComponent(server)}/databases/${encodeURIComponent(database)}/collections/${encodeURIComponent(collection)}/documents/${idValue}`))}>${escape_html(idValue)}</a> `);\n if (json._id.$value) {\n $$renderer3.push(\"<!--[-->\");\n const timestamp = getTimestampFromObjectId(json._id.$value);\n if (timestamp) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"ml-2 text-md text-[var(--text-secondary,#888)]\">${escape_html(timestamp.toLocaleString())}</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n }\n $$renderer3.push(`<!--]-->`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n }\n $$renderer3.push(`<!--]--></div>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n }\n $$renderer3.push(`<!--]-->`);\n }\n function actions($$renderer3) {\n $$renderer3.push(`<div class=\"hidden group-hover:block\"><button class=\"btn btn-outline-light btn-sm ml-2 -my-2\">Copy</button> `);\n if (onedit) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<button class=\"btn btn-outline-light btn-sm ml-2 -my-2\">Edit</button>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n }\n $$renderer3.push(`<!--]--> `);\n if (onremove) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<button class=\"btn btn-outline-danger btn-sm ml-2 -my-2\">Remove</button>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n }\n $$renderer3.push(`<!--]--></div>`);\n }\n Panel($$renderer2, {\n class: \"group\",\n title: json._id ? title : void 0,\n actions,\n children: ($$renderer3) => {\n $$renderer3.push(`<div class=\"relative border-t border-[var(--border-color)]\"><div class=\"font-mono text-sm leading-tight whitespace-pre-wrap break-words p-4 overflow-x-auto\">`);\n JsonValue_1($$renderer3, {\n value: json,\n autoCollapse,\n collapsed: false,\n isKeyMapped,\n fetchMappedDocument: fetchMappedDocument$1\n });\n $$renderer3.push(`<!----></div> <div${attr_class(\"absolute h-full z-[100] w-full top-0 left-0\", void 0, { \"hidden\": !editorVisible, \"block\": editorVisible })}><div class=\"absolute z-10 right-5 top-4\"><button class=\"btn btn-success ml-2\">Save</button> <button class=\"btn btn-default ml-2\">Cancel</button></div> <textarea${attr_style(`height: ${stringify(editorHeight)};`)} class=\"w-full font-mono text-sm leading-relaxed p-2.5 bg-[var(--color-1)] text-[var(--text)] border border-[var(--border-color)] rounded resize-y\">`);\n const $$body = escape_html(editJson);\n if ($$body) {\n $$renderer3.push(`${$$body}`);\n }\n $$renderer3.push(`</textarea></div> `);\n {\n $$renderer3.push(\"<!--[!-->\");\n }\n $$renderer3.push(`<!--]--></div>`);\n }\n });\n });\n}\nexport {\n PrettyJson as P\n};\n"],"names":[],"mappings":";;;;;;;;;AAQA,SAAS,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE;AACzC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI;AACR,MAAM,IAAI;AACV,MAAM,YAAY,GAAG,KAAK;AAC1B,MAAM,MAAM;AACZ,MAAM,QAAQ;AACd,MAAM,MAAM;AACZ,MAAM,QAAQ;AACd,MAAM,UAAU;AAChB,MAAM,QAAQ;AACd,MAAM,eAAe,GAAG;AACxB,KAAK,GAAG,OAAO;AACf,IAAI,SAAS,UAAU,CAAC,GAAG,EAAE;AAC7B,MAAM,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,MAAM,EAAE,OAAO,IAAI;AACrD,MAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,OAAO,MAAM,CAAC,GAAG,CAAC;AAChF,MAAM,IAAI,GAAG,CAAC,KAAK,KAAK,UAAU,IAAI,GAAG,CAAC,MAAM,EAAE,OAAO,GAAG,CAAC,MAAM;AACnE,MAAM,OAAO,IAAI;AACjB,IAAI;AACJ,IAAI,SAAS,WAAW,CAAC,IAAI,EAAE;AAC/B,MAAM,OAAO,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI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ACpB,UAAU,WAAW,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AACvC,QAAQ;AACR,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAC9C,QAAQ;AACR,UAAU,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACvC,QAAQ;AACR,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;AAC1C,MAAM;AACN,KAAK,CAAC;AACN,EAAE,CAAC,CAAC;AACJ;;;;"}
@@ -4,26 +4,16 @@ import { b as attr_class, g as attr_style, s as stringify } from './index2-DBFlG
4
4
  function Tooltip($$renderer, $$props) {
5
5
  $$renderer.component(($$renderer2) => {
6
6
  let { trigger, content, show = false, tooltipClass = "" } = $$props;
7
- let tooltipPosition = {
8
- left: "",
9
- right: "",
10
- top: "",
11
- bottom: "",
12
- marginTop: "",
13
- marginBottom: ""
14
- };
7
+ let tooltipPosition = { left: "", right: "", top: "" };
15
8
  $$renderer2.push(`<div class="relative inline-block">`);
16
9
  trigger($$renderer2);
17
10
  $$renderer2.push(`<!---->`);
18
11
  if (show) {
19
12
  $$renderer2.push("<!--[-->");
20
- $$renderer2.push(`<div${attr_class(`absolute bg-[var(--light-background)] border border-[var(--color-3)] rounded z-[1000] shadow-lg ${stringify(tooltipClass)}`)}${attr_style("", {
13
+ $$renderer2.push(`<div${attr_class(`fixed bg-[var(--light-background)] border border-[var(--color-3)] rounded z-[1000] shadow-lg ${stringify(tooltipClass)}`)}${attr_style("", {
21
14
  left: tooltipPosition.left,
22
15
  right: tooltipPosition.right,
23
- top: tooltipPosition.top,
24
- bottom: tooltipPosition.bottom,
25
- "margin-top": tooltipPosition.marginTop,
26
- "margin-bottom": tooltipPosition.marginBottom
16
+ top: tooltipPosition.top
27
17
  })}>`);
28
18
  content($$renderer2);
29
19
  $$renderer2.push(`<!----></div>`);
@@ -35,4 +25,4 @@ function Tooltip($$renderer, $$props) {
35
25
  }
36
26
 
37
27
  export { Tooltip as T };
38
- //# sourceMappingURL=Tooltip-DflJLumT.js.map
28
+ //# sourceMappingURL=Tooltip-ys6l541_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip-ys6l541_.js","sources":["../../../.svelte-kit/adapter-node/chunks/Tooltip.js"],"sourcesContent":["import \"./async.js\";\nimport { y as attr_class, N as attr_style, z as stringify } from \"./index2.js\";\nfunction Tooltip($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { trigger, content, show = false, tooltipClass = \"\" } = $$props;\n let tooltipPosition = { left: \"\", right: \"\", top: \"\" };\n $$renderer2.push(`<div class=\"relative inline-block\">`);\n trigger($$renderer2);\n $$renderer2.push(`<!---->`);\n if (show) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<div${attr_class(`fixed bg-[var(--light-background)] border border-[var(--color-3)] rounded z-[1000] shadow-lg ${stringify(tooltipClass)}`)}${attr_style(\"\", {\n left: tooltipPosition.left,\n right: tooltipPosition.right,\n top: tooltipPosition.top\n })}>`);\n content($$renderer2);\n $$renderer2.push(`<!----></div>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></div>`);\n });\n}\nexport {\n Tooltip as T\n};\n"],"names":[],"mappings":";;;AAEA,SAAS,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE;AACtC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,GAAG,KAAK,EAAE,YAAY,GAAG,EAAE,EAAE,GAAG,OAAO;AACvE,IAAI,IAAI,eAAe,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;AAC1D,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,mCAAmC,CAAC,CAAC;AAC3D,IAAI,OAAO,CAAC,WAAW,CAAC;AACxB,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;AAC/B,IAAI,IAAI,IAAI,EAAE;AACd,MAAM,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC;AAClC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,6FAA6F,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,EAAE;AACrL,QAAQ,IAAI,EAAE,eAAe,CAAC,IAAI;AAClC,QAAQ,KAAK,EAAE,eAAe,CAAC,KAAK;AACpC,QAAQ,GAAG,EAAE,eAAe,CAAC;AAC7B,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AACZ,MAAM,OAAO,CAAC,WAAW,CAAC;AAC1B,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC;AACvC,IAAI,CAAC,MAAM;AACX,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;AACtC,EAAE,CAAC,CAAC;AACJ;;;;"}
@@ -1,6 +1,6 @@
1
1
  import './async-lVJA8xJZ.js';
2
2
  import { e as ensure_array_like, b as attr_class } from './index2-DBFlGzWV.js';
3
- import { T as Tooltip } from './Tooltip-DflJLumT.js';
3
+ import { T as Tooltip } from './Tooltip-ys6l541_.js';
4
4
  import { e as escape_html } from './context-C22hLSHK.js';
5
5
 
6
6
  function TooltipTable($$renderer, $$props) {
@@ -57,4 +57,4 @@ function TooltipTable($$renderer, $$props) {
57
57
  }
58
58
 
59
59
  export { TooltipTable as T };
60
- //# sourceMappingURL=TooltipTable-BPMzcmqQ.js.map
60
+ //# sourceMappingURL=TooltipTable-DCu3GLqO.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TooltipTable-BPMzcmqQ.js","sources":["../../../.svelte-kit/adapter-node/chunks/TooltipTable.js"],"sourcesContent":["import \"./async.js\";\nimport { w as ensure_array_like, y as attr_class } from \"./index2.js\";\nimport { T as Tooltip } from \"./Tooltip.js\";\nimport { e as escape_html } from \"./context.js\";\nfunction TooltipTable($$renderer, $$props) {\n let { columns, rows, children, hideHeader } = $$props;\n let showTooltip = false;\n {\n let trigger = function($$renderer2) {\n $$renderer2.push(`<button class=\"dotted text-center\">`);\n children?.($$renderer2);\n $$renderer2.push(`<!----></button>`);\n }, content = function($$renderer2) {\n $$renderer2.push(`<table class=\"w-full border-collapse text-base font-medium\">`);\n if (!hideHeader) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<thead><tr><!--[-->`);\n const each_array = ensure_array_like(columns);\n for (let index = 0, $$length = each_array.length; index < $$length; index++) {\n let column = each_array[index];\n $$renderer2.push(`<th${attr_class(\"px-2 py-1 border-b border-[var(--color-3)] bg-[var(--color-4)] font-bold\", void 0, {\n \"text-left\": column.align === \"left\" || !column.align,\n \"text-right\": column.align === \"right\",\n \"text-center\": column.align === \"center\"\n })}>${escape_html(column.header)}</th>`);\n }\n $$renderer2.push(`<!--]--></tr></thead>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--><tbody><!--[-->`);\n const each_array_1 = ensure_array_like(rows);\n for (let index = 0, $$length = each_array_1.length; index < $$length; index++) {\n let row = each_array_1[index];\n $$renderer2.push(`<tr><!--[-->`);\n const each_array_2 = ensure_array_like(columns);\n for (let index2 = 0, $$length2 = each_array_2.length; index2 < $$length2; index2++) {\n let column = each_array_2[index2];\n $$renderer2.push(`<td${attr_class(\"px-2 py-1 border-b border-[var(--color-3)]\", void 0, {\n \"text-left\": column.align === \"left\" || !column.align,\n \"text-right\": column.align === \"right\",\n \"text-center\": column.align === \"center\"\n })}>${escape_html(row[column.key])}</td>`);\n }\n $$renderer2.push(`<!--]--></tr>`);\n }\n $$renderer2.push(`<!--]--></tbody></table>`);\n };\n Tooltip($$renderer, {\n show: showTooltip,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W,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;AACpD,QAAQ;AACR,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC;AACzC,MAAM;AACN,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,wBAAwB,CAAC,CAAC;AAClD,IAAI,CAAC;AACL,IAAI,OAAO,CAAC,UAAU,EAAE;AACxB,MAAM,IAAI,EAAE,WAAW;AACvB,MAAM,YAAY,EAAE,uBAAuB;AAC3C,MAAM,OAAO;AACb,MAAM;AACN,KAAK,CAAC;AACN,EAAE;AACF;;;;"}
1
+ {"version":3,"file":"TooltipTable-DCu3GLqO.js","sources":["../../../.svelte-kit/adapter-node/chunks/TooltipTable.js"],"sourcesContent":["import \"./async.js\";\nimport { w as ensure_array_like, y as attr_class } from \"./index2.js\";\nimport { T as Tooltip } from \"./Tooltip.js\";\nimport { e as escape_html } from \"./context.js\";\nfunction TooltipTable($$renderer, $$props) {\n let { columns, rows, children, hideHeader } = $$props;\n let showTooltip = false;\n {\n let trigger = function($$renderer2) {\n $$renderer2.push(`<button class=\"dotted text-center\">`);\n children?.($$renderer2);\n $$renderer2.push(`<!----></button>`);\n }, content = function($$renderer2) {\n $$renderer2.push(`<table class=\"w-full border-collapse text-base font-medium\">`);\n if (!hideHeader) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<thead><tr><!--[-->`);\n const each_array = ensure_array_like(columns);\n for (let index = 0, $$length = each_array.length; index < $$length; index++) {\n let column = each_array[index];\n $$renderer2.push(`<th${attr_class(\"px-2 py-1 border-b border-[var(--color-3)] bg-[var(--color-4)] font-bold\", void 0, {\n \"text-left\": column.align === \"left\" || !column.align,\n \"text-right\": column.align === \"right\",\n \"text-center\": column.align === \"center\"\n })}>${escape_html(column.header)}</th>`);\n }\n $$renderer2.push(`<!--]--></tr></thead>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--><tbody><!--[-->`);\n const each_array_1 = ensure_array_like(rows);\n for (let index = 0, $$length = each_array_1.length; index < $$length; index++) {\n let row = each_array_1[index];\n $$renderer2.push(`<tr><!--[-->`);\n const each_array_2 = ensure_array_like(columns);\n for (let index2 = 0, $$length2 = each_array_2.length; index2 < $$length2; index2++) {\n let column = each_array_2[index2];\n $$renderer2.push(`<td${attr_class(\"px-2 py-1 border-b border-[var(--color-3)]\", void 0, {\n \"text-left\": column.align === \"left\" || !column.align,\n \"text-right\": column.align === \"right\",\n \"text-center\": column.align === \"center\"\n })}>${escape_html(row[column.key])}</td>`);\n }\n $$renderer2.push(`<!--]--></tr>`);\n }\n $$renderer2.push(`<!--]--></tbody></table>`);\n };\n Tooltip($$renderer, {\n show: showTooltip,\n tooltipClass: \"p-0 whitespace-nowrap\",\n trigger,\n content\n });\n }\n}\nexport {\n TooltipTable as T\n};\n"],"names":[],"mappings":";;;;;AAIA,SAAS,YAAY,CAAC,UAAU,EAAE,OAAO,EAAE;AAC3C,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,OAAO;AACvD,EAAE,IAAI,WAAW,GAAG,KAAK;AACzB,EAAE;AACF,IAAI,IAAI,OAAO,GAAG,SAAS,WAAW,EAAE;AACxC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,mCAAmC,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,WAAW,CAAC;AAC7B,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,gBAAgB,CAAC,CAAC;AAC1C,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,WAAW,EAAE;AACvC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,4DAA4D,CAAC,CAAC;AACtF,MAAM,IAAI,CAAC,UAAU,EAAE;AACvB,QAAQ,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC;AACpC,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,mBAAmB,CAAC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,MAAM,GAAG,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,EAAE;AAC5F,UAAU,IAAI,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC;AAC3C,UAAU,WAAW,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,UAAU,CAAC,4CAA4C,EAAE,MAAM,EAAE;AAClG,YAAY,WAAW,EAAE,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK;AACjE,YAAY,YAAY,EAAE,MAAM,CAAC,KAAK,KAAK,OAAO;AAClD,YAAY,aAAa,EAAE,MAAM,CAAC,KAAK,KAAK;AAC5C,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;AACpD,QAAQ;AACR,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC;AACzC,MAAM;AACN,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,wBAAwB,CAAC,CAAC;AAClD,IAAI,CAAC;AACL,IAAI,OAAO,CAAC,UAAU,EAAE;AACxB,MAAM,IAAI,EAAE,WAAW;AACvB,MAAM,YAAY,EAAE,uBAAuB;AAC3C,MAAM,OAAO;AACb,MAAM;AACN,KAAK,CAAC;AACN,EAAE;AACF;;;;"}
@@ -2,7 +2,7 @@ import './async-lVJA8xJZ.js';
2
2
  import { d as deleteDocument, u as updateDocument } from './servers.remote-DrkuAWHP.js';
3
3
  import { g as goto } from './client2-DYaMKWrc.js';
4
4
  import { r as resolve } from './server2-_mGVuBoG.js';
5
- import { P as PrettyJson } from './PrettyJson-D0Cn5_CJ.js';
5
+ import { P as PrettyJson } from './PrettyJson-D3CylSVd.js';
6
6
  import { n as notificationStore } from './notifications.svelte-CIqkoPWX.js';
7
7
  import './event-DVH-6ISX.js';
8
8
  import './utils-kjxf7BZO.js';
@@ -27,8 +27,8 @@ import './context-C22hLSHK.js';
27
27
  import './state.svelte-C8IWmp_n.js';
28
28
  import './routing-e10vGH37.js';
29
29
  import './index2-DBFlGzWV.js';
30
- import './JsonValue-ClBHqVOS.js';
31
- import './Tooltip-DflJLumT.js';
30
+ import './JsonValue-WMdIUvRM.js';
31
+ import './Tooltip-ys6l541_.js';
32
32
  import './Panel-yg5YKL4d.js';
33
33
 
34
34
  function _page($$renderer, $$props) {
@@ -118,4 +118,4 @@ function _page($$renderer, $$props) {
118
118
  }
119
119
 
120
120
  export { _page as default };
121
- //# sourceMappingURL=_page.svelte-DrBjlM49.js.map
121
+ //# sourceMappingURL=_page.svelte-2w3fCax2.js.map