drizzle-cube 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/ActivityGridChart.config-DXUUgx0N.cjs +1 -0
- package/dist/adapters/ActivityGridChart.config-Dyozu3VW.js +2 -0
- package/dist/adapters/AreaChart.config-Di5odBXp.cjs +1 -0
- package/dist/adapters/AreaChart.config-KEaXP_4K.js +2 -0
- package/dist/adapters/BarChart.config-B-hBHykR.cjs +1 -0
- package/dist/adapters/BarChart.config-C5sqbn0A.js +2 -0
- package/dist/adapters/BoxPlotChart.config-B1R4Br7L.js +2 -0
- package/dist/adapters/BoxPlotChart.config-C82Fhd3c.cjs +1 -0
- package/dist/adapters/BubbleChart.config-CoBxmmfp.js +2 -0
- package/dist/adapters/BubbleChart.config-DfOnNjL-.cjs +1 -0
- package/dist/adapters/CandlestickChart.config-C5ggV_3j.cjs +1 -0
- package/dist/adapters/CandlestickChart.config-ZaJpWVuL.js +2 -0
- package/dist/adapters/DataTable.config-Cx2_ACdY.cjs +1 -0
- package/dist/adapters/DataTable.config-DkAgD-iz.js +2 -0
- package/dist/adapters/FunnelChart.config-CvzcECUB.js +2 -0
- package/dist/adapters/FunnelChart.config-DVH7IFnb.cjs +1 -0
- package/dist/adapters/GaugeChart.config-Csx8rt8o.cjs +1 -0
- package/dist/adapters/GaugeChart.config-DEmrNgMa.js +2 -0
- package/dist/adapters/HeatMapChart.config-BfD_dpP7.js +2 -0
- package/dist/adapters/HeatMapChart.config-D_jlyPJL.cjs +1 -0
- package/dist/adapters/KpiDelta.config-CVBdUL_n.cjs +1 -0
- package/dist/adapters/KpiDelta.config-D4dCXOxl.js +2 -0
- package/dist/adapters/KpiNumber.config-BK5pgIKz.cjs +1 -0
- package/dist/adapters/KpiNumber.config-D6XqjZrm.js +2 -0
- package/dist/adapters/KpiText.config-ChphMwG5.js +2 -0
- package/dist/adapters/KpiText.config-fO1wc6FH.cjs +1 -0
- package/dist/adapters/LineChart.config-CXJrgz1s.js +2 -0
- package/dist/adapters/LineChart.config-Cg_h-SiJ.cjs +1 -0
- package/dist/adapters/MarkdownChart.config-ByPjX-4O.cjs +1 -0
- package/dist/adapters/MarkdownChart.config-Df2yY9AT.js +2 -0
- package/dist/adapters/MeasureProfileChart.config-BBWGIteF.cjs +1 -0
- package/dist/adapters/MeasureProfileChart.config-C9OFbN9Z.js +2 -0
- package/dist/adapters/PieChart.config-C6jJj6xm.js +2 -0
- package/dist/adapters/PieChart.config-CmCw_8eN.cjs +1 -0
- package/dist/adapters/ProportionBarChart.config-B9NEyFEe.js +2 -0
- package/dist/adapters/ProportionBarChart.config-C3GAVPWn.cjs +1 -0
- package/dist/adapters/RadarChart.config-5AMwEqUJ.cjs +1 -0
- package/dist/adapters/RadarChart.config-Ct_b7IM5.js +2 -0
- package/dist/adapters/RadialBarChart.config-Bp-Sl0cm.js +2 -0
- package/dist/adapters/RadialBarChart.config-D14yoexI.cjs +1 -0
- package/dist/adapters/RecordsTable.config-D2-qmG06.cjs +1 -0
- package/dist/adapters/RecordsTable.config-DIwoqZCU.js +2 -0
- package/dist/adapters/RetentionCombinedChart.config-BWHipi5M.cjs +1 -0
- package/dist/adapters/RetentionCombinedChart.config-D40UgTcl.js +2 -0
- package/dist/adapters/RetentionHeatmap.config-GlnSLrjn.js +2 -0
- package/dist/adapters/RetentionHeatmap.config-MlhZf26c.cjs +1 -0
- package/dist/adapters/SankeyChart.config-Bf1_NHiv.js +2 -0
- package/dist/adapters/SankeyChart.config-BoYf6BFE.cjs +1 -0
- package/dist/adapters/ScatterChart.config-CV2rdGJp.js +2 -0
- package/dist/adapters/ScatterChart.config-DywduGF3.cjs +1 -0
- package/dist/adapters/SunburstChart.config-CrqiE1UZ.js +2 -0
- package/dist/adapters/SunburstChart.config-D5tbF_GJ.cjs +1 -0
- package/dist/adapters/TreeMapChart.config-BJ8HnZU0.cjs +1 -0
- package/dist/adapters/TreeMapChart.config-DxgIqIIj.js +2 -0
- package/dist/adapters/WaterfallChart.config-Cns8fLFu.js +2 -0
- package/dist/adapters/WaterfallChart.config-D_kdL9SN.cjs +1 -0
- package/dist/adapters/compiler-BxZHh0UD.cjs +166 -0
- package/dist/adapters/{compiler-CQJ5GOwF.js → compiler-CBGD_4Et.js} +1160 -1861
- package/dist/adapters/core/index.cjs +1 -1
- package/dist/adapters/core/index.js +1 -1
- package/dist/adapters/{core-DgTGXxDu.cjs → core-CIGuwGuI.cjs} +1 -1
- package/dist/adapters/{core-DXkuSUBg.js → core-DAAnqPyN.js} +3 -3
- package/dist/adapters/express/index.cjs +1 -1
- package/dist/adapters/express/index.js +5 -5
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/fastify/index.js +23 -23
- package/dist/{server/google-eKAc20al.js → adapters/google-DRY7jnOh.js} +46 -28
- package/dist/adapters/{google-BhvizbFR.cjs → google-PsZzwedr.cjs} +2 -2
- package/dist/adapters/{handler-DrRT6c14.cjs → handler-BcYTw6zB.cjs} +12 -12
- package/dist/adapters/{handler-CphYSZRh.js → handler-eA0VJDHj.js} +334 -237
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +4 -4
- package/dist/adapters/mcp-tools.cjs +1 -1
- package/dist/adapters/mcp-tools.js +2 -2
- package/dist/adapters/mcp-transport-BpG44Fvn.js +730 -0
- package/dist/adapters/mcp-transport-CDxZXpc-.cjs +42 -0
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +5 -5
- package/dist/adapters/{openai-D-VMcPao.js → openai-BZ48ioYp.js} +1 -1
- package/dist/adapters/{openai-CSzWluuv.cjs → openai-Bw1j-OiP.cjs} +1 -1
- package/dist/adapters/{openai-CI9vGKSf.cjs → openai-CLjyL5_J.cjs} +2 -2
- package/dist/adapters/{openai-CBrN4nxl.js → openai-CYYjUG_3.js} +3 -3
- package/dist/adapters/{utils-DkmShl5f.js → utils-BagURNRb.js} +1947 -1122
- package/dist/adapters/utils-BiKIg2tk.cjs +128 -0
- package/dist/adapters/utils.cjs +1 -1
- package/dist/adapters/utils.d.ts +17 -3
- package/dist/adapters/utils.js +1 -1
- package/dist/cjs/adapters/utils.d.ts +17 -3
- package/dist/cjs/client/charts/chartConfigRegistry.d.ts +7 -0
- package/dist/cjs/client/charts/chartConfigs.d.ts +17 -1
- package/dist/cjs/client/client/CubeClient.d.ts +11 -1
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisDisplayConfigPanel.d.ts +4 -2
- package/dist/cjs/client/components/AnalysisBuilder/ColumnFormatsEditor.d.ts +10 -0
- package/dist/cjs/client/components/AnalysisBuilder/DisplayOptionControl.d.ts +3 -2
- package/dist/cjs/client/components/AnalysisBuilder/utils/queryUtils.d.ts +7 -1
- package/dist/cjs/client/components/analyticsPortlet/PortletChart.d.ts +2 -1
- package/dist/cjs/client/components/analyticsPortlet/PortletChartView.d.ts +4 -1
- package/dist/cjs/client/components/analyticsPortlet/usePortletDeadMembers.d.ts +24 -0
- package/dist/cjs/client/components/analyticsPortlet/usePortletPagination.d.ts +21 -0
- package/dist/cjs/client/components/charts/RecordsTable.config.d.ts +10 -0
- package/dist/cjs/client/components/charts/RecordsTable.d.ts +4 -0
- package/dist/cjs/client/components/charts/recordsTableHooks.d.ts +68 -0
- package/dist/cjs/client/icons/types.d.ts +1 -0
- package/dist/cjs/client/index.d.ts +2 -2
- package/dist/cjs/client/types.d.ts +92 -1
- package/dist/cjs/client/utils/recordsTableUtils.d.ts +71 -0
- package/dist/cjs/client/utils/rowLinkUtils.d.ts +35 -0
- package/dist/cjs/server/agent/chart-validation.d.ts +1 -1
- package/dist/cjs/server/ai/chart-schema.d.ts +117 -0
- package/dist/cjs/server/ai/discovery-helpers.d.ts +14 -0
- package/dist/cjs/server/ai/discovery.d.ts +6 -0
- package/dist/cjs/server/ai/query-schema.d.ts +1 -1
- package/dist/cjs/server/attribute-dimensions.d.ts +11 -8
- package/dist/cjs/server/builders/group-by-builder.d.ts +15 -0
- package/dist/cjs/server/compiler.d.ts +3 -4
- package/dist/cjs/server/executor.d.ts +15 -0
- package/dist/cjs/server/index.d.ts +2 -0
- package/dist/cjs/server/query-handlers.d.ts +1 -0
- package/dist/cjs/server/query-validator.d.ts +36 -4
- package/dist/cjs/server/types/core.d.ts +5 -0
- package/dist/cjs/server/types/cube.d.ts +12 -0
- package/dist/cjs/server/types/query.d.ts +8 -0
- package/dist/cli/index.cjs +130 -52
- package/dist/client/charts/chartConfigRegistry.d.ts +7 -0
- package/dist/client/charts/chartConfigs.d.ts +17 -1
- package/dist/client/charts.js +13 -13
- package/dist/client/chunks/{DashboardEditModal-9An5EDAz.js → DashboardEditModal-_ZDMwaGX.js} +1653 -1188
- package/dist/client/chunks/DashboardEditModal-_ZDMwaGX.js.map +1 -0
- package/dist/client/chunks/{ProportionBarChart-BVcbGY2C.js → ProportionBarChart-qfpAWhIg.js} +3 -3
- package/dist/client/chunks/{ProportionBarChart-BVcbGY2C.js.map → ProportionBarChart-qfpAWhIg.js.map} +1 -1
- package/dist/client/chunks/RecordsTable-KmJy94xN.js +556 -0
- package/dist/client/chunks/RecordsTable-KmJy94xN.js.map +1 -0
- package/dist/client/chunks/{RetentionCombinedChart-D68Rvdi-.js → RetentionCombinedChart-C7X6aj97.js} +3 -3
- package/dist/client/chunks/{RetentionCombinedChart-D68Rvdi-.js.map → RetentionCombinedChart-C7X6aj97.js.map} +1 -1
- package/dist/client/chunks/{RetentionHeatmap-CE7BAjrB.js → RetentionHeatmap-PpRpiqR_.js} +2 -2
- package/dist/client/chunks/{RetentionHeatmap-CE7BAjrB.js.map → RetentionHeatmap-PpRpiqR_.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-D1pYvvwc.js → analysis-builder-DaqyOjLX.js} +169 -168
- package/dist/client/chunks/{analysis-builder-D1pYvvwc.js.map → analysis-builder-DaqyOjLX.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-shared-BQvwUc6z.js → analysis-builder-shared-ow9KAHDP.js} +965 -954
- package/dist/client/chunks/analysis-builder-shared-ow9KAHDP.js.map +1 -0
- package/dist/client/chunks/{chart-activity-grid-DvD_4wJz.js → chart-activity-grid-DO82rrbW.js} +137 -84
- package/dist/client/chunks/chart-activity-grid-DO82rrbW.js.map +1 -0
- package/dist/client/chunks/{chart-area-DPp3hSOK.js → chart-area-9SBeG0GM.js} +21 -21
- package/dist/client/chunks/{chart-area-DPp3hSOK.js.map → chart-area-9SBeG0GM.js.map} +1 -1
- package/dist/client/chunks/{chart-bar-Od3pOyZ0.js → chart-bar-tfgmLK2D.js} +5 -5
- package/dist/client/chunks/{chart-bar-Od3pOyZ0.js.map → chart-bar-tfgmLK2D.js.map} +1 -1
- package/dist/client/chunks/{chart-box-plot-l0iFn2n2.js → chart-box-plot-BuYW6j6g.js} +2 -2
- package/dist/client/chunks/{chart-box-plot-l0iFn2n2.js.map → chart-box-plot-BuYW6j6g.js.map} +1 -1
- package/dist/client/chunks/{chart-bubble-Dl0RcP8N.js → chart-bubble-BNmonWqW.js} +2 -2
- package/dist/client/chunks/{chart-bubble-Dl0RcP8N.js.map → chart-bubble-BNmonWqW.js.map} +1 -1
- package/dist/client/chunks/{chart-candlestick-DZMqbscF.js → chart-candlestick-BYeWNkKl.js} +2 -2
- package/dist/client/chunks/{chart-candlestick-DZMqbscF.js.map → chart-candlestick-BYeWNkKl.js.map} +1 -1
- package/dist/client/chunks/{chart-data-table-DgiNBOWf.js → chart-data-table-C_oHiK6N.js} +1094 -1029
- package/dist/client/chunks/chart-data-table-C_oHiK6N.js.map +1 -0
- package/dist/client/chunks/{chart-funnel-YLZlyN1X.js → chart-funnel-B_CWC3cL.js} +2 -2
- package/dist/client/chunks/{chart-funnel-YLZlyN1X.js.map → chart-funnel-B_CWC3cL.js.map} +1 -1
- package/dist/client/chunks/{chart-gauge-BsqE2wwF.js → chart-gauge-D7VxwPnx.js} +3 -3
- package/dist/client/chunks/{chart-gauge-BsqE2wwF.js.map → chart-gauge-D7VxwPnx.js.map} +1 -1
- package/dist/client/chunks/{chart-heat-map-BsND8RM_.js → chart-heat-map-q7Vf_dog.js} +3 -3
- package/dist/client/chunks/{chart-heat-map-BsND8RM_.js.map → chart-heat-map-q7Vf_dog.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-delta-m0azuva-.js → chart-kpi-delta-PEuA3iGs.js} +3 -3
- package/dist/client/chunks/{chart-kpi-delta-m0azuva-.js.map → chart-kpi-delta-PEuA3iGs.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-number-6JS15SqF.js → chart-kpi-number-DlxrO6Pq.js} +5 -5
- package/dist/client/chunks/{chart-kpi-number-6JS15SqF.js.map → chart-kpi-number-DlxrO6Pq.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-text-BqX8p8Jn.js → chart-kpi-text-Cx6cJu2s.js} +3 -3
- package/dist/client/chunks/{chart-kpi-text-BqX8p8Jn.js.map → chart-kpi-text-Cx6cJu2s.js.map} +1 -1
- package/dist/client/chunks/{chart-line-NCmpxBfE.js → chart-line-pDe25JzB.js} +3 -3
- package/dist/client/chunks/{chart-line-NCmpxBfE.js.map → chart-line-pDe25JzB.js.map} +1 -1
- package/dist/client/chunks/{chart-markdown-ZOobqiiX.js → chart-markdown-CRY15yp0.js} +2 -2
- package/dist/client/chunks/{chart-markdown-ZOobqiiX.js.map → chart-markdown-CRY15yp0.js.map} +1 -1
- package/dist/client/chunks/{chart-measure-profile-CBAZaicJ.js → chart-measure-profile-DyQ-vvuC.js} +3 -3
- package/dist/client/chunks/{chart-measure-profile-CBAZaicJ.js.map → chart-measure-profile-DyQ-vvuC.js.map} +1 -1
- package/dist/client/chunks/{chart-pie-ChrasEI8.js → chart-pie-ZrnBycy1.js} +15 -15
- package/dist/client/chunks/{chart-pie-ChrasEI8.js.map → chart-pie-ZrnBycy1.js.map} +1 -1
- package/dist/client/chunks/{chart-radar-CxSVF7yL.js → chart-radar-BXbnYMUJ.js} +13 -13
- package/dist/client/chunks/{chart-radar-CxSVF7yL.js.map → chart-radar-BXbnYMUJ.js.map} +1 -1
- package/dist/client/chunks/{chart-radial-bar--SN0Wph0.js → chart-radial-bar-CYxH3ryh.js} +3 -3
- package/dist/client/chunks/{chart-radial-bar--SN0Wph0.js.map → chart-radial-bar-CYxH3ryh.js.map} +1 -1
- package/dist/client/chunks/{chart-sankey-CDOSGg9r.js → chart-sankey-C9R_TDDh.js} +2 -2
- package/dist/client/chunks/{chart-sankey-CDOSGg9r.js.map → chart-sankey-C9R_TDDh.js.map} +1 -1
- package/dist/client/chunks/{chart-scatter-DgcEF-kI.js → chart-scatter-DrwRkzzl.js} +3 -3
- package/dist/client/chunks/{chart-scatter-DgcEF-kI.js.map → chart-scatter-DrwRkzzl.js.map} +1 -1
- package/dist/client/chunks/{chart-sunburst-MB-jlGBm.js → chart-sunburst-Bs1yqIPp.js} +3 -3
- package/dist/client/chunks/{chart-sunburst-MB-jlGBm.js.map → chart-sunburst-Bs1yqIPp.js.map} +1 -1
- package/dist/client/chunks/{chart-tree-map-DeDXveVd.js → chart-tree-map-BNjHhhVq.js} +3 -3
- package/dist/client/chunks/{chart-tree-map-DeDXveVd.js.map → chart-tree-map-BNjHhhVq.js.map} +1 -1
- package/dist/client/chunks/{chart-waterfall-ur4vkO1j.js → chart-waterfall-CyoC0uLT.js} +3 -3
- package/dist/client/chunks/{chart-waterfall-ur4vkO1j.js.map → chart-waterfall-CyoC0uLT.js.map} +1 -1
- package/dist/client/chunks/charts-core-DCQ7od_L.js +190 -0
- package/dist/client/chunks/charts-core-DCQ7od_L.js.map +1 -0
- package/dist/client/chunks/charts-loader-Bya_zDIA.js +86 -0
- package/dist/client/chunks/charts-loader-Bya_zDIA.js.map +1 -0
- package/dist/client/chunks/{en-US-BE6VoG0o.js → en-US-HP6FHuNy.js} +3 -1
- package/dist/client/chunks/{en-US-BE6VoG0o.js.map → en-US-HP6FHuNy.js.map} +1 -1
- package/dist/client/chunks/{nl-NL-CMXHDBr0.js → nl-NL-CEdoCz6Q.js} +51 -1
- package/dist/client/chunks/nl-NL-CEdoCz6Q.js.map +1 -0
- package/dist/client/chunks/{schema-visualization-BEbFtUIL.js → schema-visualization-DfXxFBIY.js} +3 -3
- package/dist/client/chunks/{schema-visualization-BEbFtUIL.js.map → schema-visualization-DfXxFBIY.js.map} +1 -1
- package/dist/client/chunks/{useDirtyStateTracking-CSDg96Rw.js → useDirtyStateTracking-BFJHiiVK.js} +15 -15
- package/dist/client/chunks/{useDirtyStateTracking-CSDg96Rw.js.map → useDirtyStateTracking-BFJHiiVK.js.map} +1 -1
- package/dist/client/chunks/{useExplainAI-BnkoZ-zS.js → useExplainAI-_C4WQE5I.js} +16 -16
- package/dist/client/chunks/{useExplainAI-BnkoZ-zS.js.map → useExplainAI-_C4WQE5I.js.map} +1 -1
- package/dist/client/chunks/{vendor-BmJDaduD.js → vendor-Gb3lH0cc.js} +49 -49
- package/dist/client/chunks/{vendor-BmJDaduD.js.map → vendor-Gb3lH0cc.js.map} +1 -1
- package/dist/client/client/CubeClient.d.ts +11 -1
- package/dist/client/components/AnalysisBuilder/AnalysisDisplayConfigPanel.d.ts +4 -2
- package/dist/client/components/AnalysisBuilder/ColumnFormatsEditor.d.ts +10 -0
- package/dist/client/components/AnalysisBuilder/DisplayOptionControl.d.ts +3 -2
- package/dist/client/components/AnalysisBuilder/utils/queryUtils.d.ts +7 -1
- package/dist/client/components/analyticsPortlet/PortletChart.d.ts +2 -1
- package/dist/client/components/analyticsPortlet/PortletChartView.d.ts +4 -1
- package/dist/client/components/analyticsPortlet/usePortletDeadMembers.d.ts +24 -0
- package/dist/client/components/analyticsPortlet/usePortletPagination.d.ts +21 -0
- package/dist/client/components/charts/RecordsTable.config.d.ts +10 -0
- package/dist/client/components/charts/RecordsTable.d.ts +4 -0
- package/dist/client/components/charts/recordsTableHooks.d.ts +68 -0
- package/dist/client/components.js +1 -1
- package/dist/client/hooks.js +3 -3
- package/dist/client/icons/types.d.ts +1 -0
- package/dist/client/icons.js +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +213 -213
- package/dist/client/providers.js +1 -1
- package/dist/client/schema.js +1 -1
- package/dist/client/styles.css +1 -1
- package/dist/client/types.d.ts +92 -1
- package/dist/client/utils/recordsTableUtils.d.ts +71 -0
- package/dist/client/utils/rowLinkUtils.d.ts +35 -0
- package/dist/client/utils.js +14 -14
- package/dist/client-bundle-stats.html +1 -1
- package/dist/mcp-app/mcp-app.html +107 -107
- package/dist/server/agent/chart-validation.d.ts +1 -1
- package/dist/server/ai/chart-schema.d.ts +117 -0
- package/dist/server/ai/discovery-helpers.d.ts +14 -0
- package/dist/server/ai/discovery.d.ts +6 -0
- package/dist/server/ai/query-schema.d.ts +1 -1
- package/dist/server/attribute-dimensions.d.ts +11 -8
- package/dist/server/builders/group-by-builder.d.ts +15 -0
- package/dist/server/compiler.d.ts +3 -4
- package/dist/server/executor.d.ts +15 -0
- package/dist/{adapters/google-eKAc20al.js → server/google-DRY7jnOh.js} +46 -28
- package/dist/server/{google-BhvizbFR.cjs → google-PsZzwedr.cjs} +2 -2
- package/dist/server/index.cjs +34 -34
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.js +1755 -1445
- package/dist/server/query-handlers.d.ts +1 -0
- package/dist/server/query-validator.d.ts +36 -4
- package/dist/server/types/core.d.ts +5 -0
- package/dist/server/types/cube.d.ts +12 -0
- package/dist/server/types/query.d.ts +8 -0
- package/package.json +1 -1
- package/dist/adapters/ActivityGridChart.config-BQhBE_Mr.js +0 -2
- package/dist/adapters/ActivityGridChart.config-C3tSuOGV.cjs +0 -1
- package/dist/adapters/AreaChart.config-3cme8HyQ.js +0 -2
- package/dist/adapters/AreaChart.config-BSxrT52Z.cjs +0 -1
- package/dist/adapters/BarChart.config-BKS8IecE.cjs +0 -1
- package/dist/adapters/BarChart.config-lt_7PdIi.js +0 -2
- package/dist/adapters/BoxPlotChart.config-B7qvRnrF.cjs +0 -1
- package/dist/adapters/BoxPlotChart.config-Dv6ECj2j.js +0 -2
- package/dist/adapters/BubbleChart.config-BrIH7OAy.cjs +0 -1
- package/dist/adapters/BubbleChart.config-Fhotb7Pg.js +0 -2
- package/dist/adapters/CandlestickChart.config-CWH41FmF.cjs +0 -1
- package/dist/adapters/CandlestickChart.config-RPtXuxsX.js +0 -2
- package/dist/adapters/DataTable.config-71L0GzlT.js +0 -2
- package/dist/adapters/DataTable.config-BsOMQq3J.cjs +0 -1
- package/dist/adapters/FunnelChart.config-Cqte9C04.cjs +0 -1
- package/dist/adapters/FunnelChart.config-DJtwWeNz.js +0 -2
- package/dist/adapters/GaugeChart.config-WkwZ9VdS.cjs +0 -1
- package/dist/adapters/GaugeChart.config-vpVQlP5B.js +0 -2
- package/dist/adapters/HeatMapChart.config-DcmkDl07.cjs +0 -1
- package/dist/adapters/HeatMapChart.config-DsmMgGxJ.js +0 -2
- package/dist/adapters/KpiDelta.config-DVy561BH.js +0 -2
- package/dist/adapters/KpiDelta.config-dpqwLHNE.cjs +0 -1
- package/dist/adapters/KpiNumber.config-927l8nq8.js +0 -2
- package/dist/adapters/KpiNumber.config-BqFBMfPf.cjs +0 -1
- package/dist/adapters/KpiText.config-C-fZXuHq.cjs +0 -1
- package/dist/adapters/KpiText.config-CWoXuhMA.js +0 -2
- package/dist/adapters/LineChart.config-DTp7pqOY.js +0 -2
- package/dist/adapters/LineChart.config-DUGvSjcH.cjs +0 -1
- package/dist/adapters/MarkdownChart.config-23Dmv2Ty.cjs +0 -1
- package/dist/adapters/MarkdownChart.config-Cb2TnS0I.js +0 -2
- package/dist/adapters/MeasureProfileChart.config-B2qbWdhy.cjs +0 -1
- package/dist/adapters/MeasureProfileChart.config-CvBCeI5b.js +0 -2
- package/dist/adapters/PieChart.config-BzJb13QA.js +0 -2
- package/dist/adapters/PieChart.config-plCn5Ehr.cjs +0 -1
- package/dist/adapters/ProportionBarChart.config-1r-_moBH.cjs +0 -1
- package/dist/adapters/ProportionBarChart.config-CN6TtHTp.js +0 -2
- package/dist/adapters/RadarChart.config-BYhdj9M7.js +0 -2
- package/dist/adapters/RadarChart.config-CeUMP-1g.cjs +0 -1
- package/dist/adapters/RadialBarChart.config-B88yXNsq.cjs +0 -1
- package/dist/adapters/RadialBarChart.config-ZMK9HMoh.js +0 -2
- package/dist/adapters/RetentionCombinedChart.config-B5yvgUHM.cjs +0 -1
- package/dist/adapters/RetentionCombinedChart.config-Dd-YMdK8.js +0 -2
- package/dist/adapters/RetentionHeatmap.config-BYzDleoV.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-Dvj7yTB0.js +0 -2
- package/dist/adapters/SankeyChart.config-CPFRmgFb.cjs +0 -1
- package/dist/adapters/SankeyChart.config-ClgqXM1N.js +0 -2
- package/dist/adapters/ScatterChart.config-CvJiqPa5.cjs +0 -1
- package/dist/adapters/ScatterChart.config-DLZ3rYMq.js +0 -2
- package/dist/adapters/SunburstChart.config-C_1V5hoQ.cjs +0 -1
- package/dist/adapters/SunburstChart.config-FNU75NCg.js +0 -2
- package/dist/adapters/TreeMapChart.config-CprZk_YF.js +0 -2
- package/dist/adapters/TreeMapChart.config-DNwd0ge9.cjs +0 -1
- package/dist/adapters/WaterfallChart.config-BBhcN_Fh.cjs +0 -1
- package/dist/adapters/WaterfallChart.config-H7s6SSV3.js +0 -2
- package/dist/adapters/compiler-BaLO10VN.cjs +0 -166
- package/dist/adapters/mcp-transport-BGkSz-ZT.cjs +0 -40
- package/dist/adapters/mcp-transport-fJud19xz.js +0 -606
- package/dist/adapters/utils-BY0-KFyI.cjs +0 -128
- package/dist/client/chunks/DashboardEditModal-9An5EDAz.js.map +0 -1
- package/dist/client/chunks/analysis-builder-shared-BQvwUc6z.js.map +0 -1
- package/dist/client/chunks/chart-activity-grid-DvD_4wJz.js.map +0 -1
- package/dist/client/chunks/chart-data-table-DgiNBOWf.js.map +0 -1
- package/dist/client/chunks/charts-core-BAH5pkSB.js +0 -215
- package/dist/client/chunks/charts-core-BAH5pkSB.js.map +0 -1
- package/dist/client/chunks/charts-loader-eToV8je7.js +0 -85
- package/dist/client/chunks/charts-loader-eToV8je7.js.map +0 -1
- package/dist/client/chunks/nl-NL-CMXHDBr0.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e, n as t } from "./rolldown-runtime-DArdT4gl.js";
|
|
2
2
|
import { n, o as r, s as i } from "./chart-config-area-DsrZCIwF.js";
|
|
3
|
-
import {
|
|
3
|
+
import { B as a, E as o, F as s, I as c, L as l, w as u, z as d } from "./chart-activity-grid-DO82rrbW.js";
|
|
4
4
|
import { n as f } from "./chart-config-bar-BixSs43E.js";
|
|
5
5
|
import { n as p } from "./chart-config-line-CBF9Px9b.js";
|
|
6
6
|
import { n as m } from "./chart-config-pie-DZLa6Eqm.js";
|
|
@@ -8,27 +8,27 @@ import { n as h } from "./chart-config-scatter-CWA89oX4.js";
|
|
|
8
8
|
import { n as g } from "./chart-config-bubble-1IyZinH0.js";
|
|
9
9
|
import { n as _ } from "./chart-config-radar-DR6vHHyd.js";
|
|
10
10
|
import { n as v } from "./chart-config-radial-bar-DVFou4fB.js";
|
|
11
|
-
import { n as
|
|
12
|
-
import { n as
|
|
13
|
-
import { n as
|
|
14
|
-
import { n as
|
|
15
|
-
import { n as
|
|
16
|
-
import { n as
|
|
17
|
-
import { n as
|
|
18
|
-
import { n as
|
|
19
|
-
import { n as
|
|
20
|
-
import { n as
|
|
21
|
-
import { n as
|
|
22
|
-
import { n as
|
|
23
|
-
import { n as
|
|
24
|
-
import { n as
|
|
25
|
-
import { n as
|
|
26
|
-
import { n as
|
|
27
|
-
import * as
|
|
28
|
-
import
|
|
29
|
-
import { jsx as
|
|
11
|
+
import { n as ee } from "./chart-config-tree-map-Uhise6Bx.js";
|
|
12
|
+
import { n as y } from "./chart-config-data-table-CrGyS7aJ.js";
|
|
13
|
+
import { n as te } from "./chart-config-activity-grid-C4vXGQNu.js";
|
|
14
|
+
import { n as ne } from "./chart-config-kpi-number-DCcnANWC.js";
|
|
15
|
+
import { n as re } from "./chart-config-kpi-delta-Cl7k6jTj.js";
|
|
16
|
+
import { n as ie } from "./chart-config-kpi-text-DnnxvOSA.js";
|
|
17
|
+
import { n as ae } from "./chart-config-markdown-C5kBQOjP.js";
|
|
18
|
+
import { n as oe } from "./chart-config-funnel-DMLLKtPF.js";
|
|
19
|
+
import { n as se } from "./chart-config-sankey-De8E0C1A.js";
|
|
20
|
+
import { n as ce } from "./chart-config-sunburst-B4NUYHMH.js";
|
|
21
|
+
import { n as le } from "./chart-config-heat-map-CJF65SyL.js";
|
|
22
|
+
import { n as ue } from "./chart-config-box-plot-DMuJZqkr.js";
|
|
23
|
+
import { n as de } from "./chart-config-waterfall-DlQb_PLh.js";
|
|
24
|
+
import { n as fe } from "./chart-config-candlestick-QwQwJB_-.js";
|
|
25
|
+
import { n as pe } from "./chart-config-measure-profile-CRSRIpKh.js";
|
|
26
|
+
import { n as me } from "./chart-config-gauge-CJktdjox.js";
|
|
27
|
+
import * as b from "react";
|
|
28
|
+
import he, { createContext as ge, createElement as _e, forwardRef as ve, lazy as ye, useCallback as be, useContext as xe, useEffect as x, useMemo as S, useRef as Se, useState as C } from "react";
|
|
29
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
30
30
|
//#region src/client/charts/chartConfigs.ts
|
|
31
|
-
var
|
|
31
|
+
var Ce = {
|
|
32
32
|
dropZones: [
|
|
33
33
|
{
|
|
34
34
|
key: "xAxis",
|
|
@@ -60,17 +60,17 @@ var Se = {
|
|
|
60
60
|
"showGrid",
|
|
61
61
|
"showTooltip"
|
|
62
62
|
]
|
|
63
|
-
},
|
|
63
|
+
}, E = {
|
|
64
64
|
packageName: "recharts",
|
|
65
65
|
installCommand: "npm install recharts"
|
|
66
|
-
},
|
|
66
|
+
}, D = {
|
|
67
67
|
bar: {
|
|
68
68
|
label: "chart.bar.label",
|
|
69
69
|
icon: "chartBar",
|
|
70
70
|
description: "chart.bar.description",
|
|
71
71
|
useCase: "chart.bar.useCase",
|
|
72
72
|
isAvailable: i,
|
|
73
|
-
dependencies:
|
|
73
|
+
dependencies: E,
|
|
74
74
|
config: async () => (await import("./chart-config-bar-BixSs43E.js").then((e) => e.t)).barChartConfig
|
|
75
75
|
},
|
|
76
76
|
line: {
|
|
@@ -79,7 +79,7 @@ var Se = {
|
|
|
79
79
|
description: "chart.line.description",
|
|
80
80
|
useCase: "chart.line.useCase",
|
|
81
81
|
isAvailable: i,
|
|
82
|
-
dependencies:
|
|
82
|
+
dependencies: E,
|
|
83
83
|
config: async () => (await import("./chart-config-line-CBF9Px9b.js").then((e) => e.t)).lineChartConfig
|
|
84
84
|
},
|
|
85
85
|
area: {
|
|
@@ -88,7 +88,7 @@ var Se = {
|
|
|
88
88
|
description: "chart.area.description",
|
|
89
89
|
useCase: "chart.area.useCase",
|
|
90
90
|
isAvailable: i,
|
|
91
|
-
dependencies:
|
|
91
|
+
dependencies: E,
|
|
92
92
|
config: async () => (await import("./chart-config-area-DsrZCIwF.js").then((e) => e.t)).areaChartConfig
|
|
93
93
|
},
|
|
94
94
|
pie: {
|
|
@@ -97,7 +97,7 @@ var Se = {
|
|
|
97
97
|
description: "chart.pie.description",
|
|
98
98
|
useCase: "chart.pie.useCase",
|
|
99
99
|
isAvailable: i,
|
|
100
|
-
dependencies:
|
|
100
|
+
dependencies: E,
|
|
101
101
|
config: async () => (await import("./chart-config-pie-DZLa6Eqm.js").then((e) => e.t)).pieChartConfig
|
|
102
102
|
},
|
|
103
103
|
scatter: {
|
|
@@ -112,7 +112,7 @@ var Se = {
|
|
|
112
112
|
available: !1,
|
|
113
113
|
reason: "chart.availability.scatter"
|
|
114
114
|
} : { available: !0 },
|
|
115
|
-
dependencies:
|
|
115
|
+
dependencies: E,
|
|
116
116
|
config: async () => (await import("./chart-config-scatter-CWA89oX4.js").then((e) => e.t)).scatterChartConfig
|
|
117
117
|
},
|
|
118
118
|
bubble: {
|
|
@@ -127,7 +127,7 @@ var Se = {
|
|
|
127
127
|
available: !1,
|
|
128
128
|
reason: "chart.availability.bubble"
|
|
129
129
|
} : { available: !0 },
|
|
130
|
-
dependencies:
|
|
130
|
+
dependencies: E,
|
|
131
131
|
config: async () => (await import("./chart-config-bubble-1IyZinH0.js").then((e) => e.t)).bubbleChartConfig
|
|
132
132
|
},
|
|
133
133
|
radar: {
|
|
@@ -136,7 +136,7 @@ var Se = {
|
|
|
136
136
|
description: "chart.radar.description",
|
|
137
137
|
useCase: "chart.radar.useCase",
|
|
138
138
|
isAvailable: i,
|
|
139
|
-
dependencies:
|
|
139
|
+
dependencies: E,
|
|
140
140
|
config: async () => (await import("./chart-config-radar-DR6vHHyd.js").then((e) => e.t)).radarChartConfig
|
|
141
141
|
},
|
|
142
142
|
radialBar: {
|
|
@@ -145,7 +145,7 @@ var Se = {
|
|
|
145
145
|
description: "chart.radialBar.description",
|
|
146
146
|
useCase: "chart.radialBar.useCase",
|
|
147
147
|
isAvailable: i,
|
|
148
|
-
dependencies:
|
|
148
|
+
dependencies: E,
|
|
149
149
|
config: async () => (await import("./chart-config-radial-bar-DVFou4fB.js").then((e) => e.t)).radialBarChartConfig
|
|
150
150
|
},
|
|
151
151
|
treemap: {
|
|
@@ -154,7 +154,7 @@ var Se = {
|
|
|
154
154
|
description: "chart.treemap.description",
|
|
155
155
|
useCase: "chart.treemap.useCase",
|
|
156
156
|
isAvailable: i,
|
|
157
|
-
dependencies:
|
|
157
|
+
dependencies: E,
|
|
158
158
|
config: async () => (await import("./chart-config-tree-map-Uhise6Bx.js").then((e) => e.t)).treemapChartConfig
|
|
159
159
|
},
|
|
160
160
|
table: {
|
|
@@ -164,6 +164,13 @@ var Se = {
|
|
|
164
164
|
useCase: "chart.table.useCase",
|
|
165
165
|
config: async () => (await import("./chart-config-data-table-CrGyS7aJ.js").then((e) => e.t)).dataTableConfig
|
|
166
166
|
},
|
|
167
|
+
recordsTable: {
|
|
168
|
+
label: "chart.recordsTable.label",
|
|
169
|
+
icon: "chartRecordsTable",
|
|
170
|
+
description: "chart.recordsTable.description",
|
|
171
|
+
useCase: "chart.recordsTable.useCase",
|
|
172
|
+
config: async () => (await Promise.resolve().then(() => mo)).recordsTableConfig
|
|
173
|
+
},
|
|
167
174
|
activityGrid: {
|
|
168
175
|
label: "chart.activityGrid.label",
|
|
169
176
|
icon: "chartActivityGrid",
|
|
@@ -214,7 +221,7 @@ var Se = {
|
|
|
214
221
|
icon: "chartFunnel",
|
|
215
222
|
description: "chart.funnel.description",
|
|
216
223
|
useCase: "chart.funnel.useCase",
|
|
217
|
-
dependencies:
|
|
224
|
+
dependencies: E,
|
|
218
225
|
config: async () => (await import("./chart-config-funnel-DMLLKtPF.js").then((e) => e.t)).funnelChartConfig
|
|
219
226
|
},
|
|
220
227
|
sankey: {
|
|
@@ -222,7 +229,7 @@ var Se = {
|
|
|
222
229
|
icon: "chartSankey",
|
|
223
230
|
description: "chart.sankey.description",
|
|
224
231
|
useCase: "chart.sankey.useCase",
|
|
225
|
-
dependencies:
|
|
232
|
+
dependencies: E,
|
|
226
233
|
config: async () => (await import("./chart-config-sankey-De8E0C1A.js").then((e) => e.t)).sankeyChartConfig
|
|
227
234
|
},
|
|
228
235
|
sunburst: {
|
|
@@ -230,7 +237,7 @@ var Se = {
|
|
|
230
237
|
icon: "chartSunburst",
|
|
231
238
|
description: "chart.sunburst.description",
|
|
232
239
|
useCase: "chart.sunburst.useCase",
|
|
233
|
-
dependencies:
|
|
240
|
+
dependencies: E,
|
|
234
241
|
config: async () => (await import("./chart-config-sunburst-B4NUYHMH.js").then((e) => e.t)).sunburstChartConfig
|
|
235
242
|
},
|
|
236
243
|
heatmap: {
|
|
@@ -256,14 +263,14 @@ var Se = {
|
|
|
256
263
|
icon: "chartRetention",
|
|
257
264
|
description: "chart.retentionHeatmap.description",
|
|
258
265
|
useCase: "chart.retentionHeatmap.useCase",
|
|
259
|
-
config: async () => (await Promise.resolve().then(() =>
|
|
266
|
+
config: async () => (await Promise.resolve().then(() => go)).retentionHeatmapConfig
|
|
260
267
|
},
|
|
261
268
|
retentionCombined: {
|
|
262
269
|
label: "chart.retentionCombined.label",
|
|
263
270
|
icon: "chartRetention",
|
|
264
271
|
description: "chart.retentionCombined.description",
|
|
265
272
|
useCase: "chart.retentionCombined.useCase",
|
|
266
|
-
config: async () => (await Promise.resolve().then(() =>
|
|
273
|
+
config: async () => (await Promise.resolve().then(() => vo)).retentionCombinedConfig
|
|
267
274
|
},
|
|
268
275
|
boxPlot: {
|
|
269
276
|
label: "chart.boxPlot.label",
|
|
@@ -279,7 +286,7 @@ var Se = {
|
|
|
279
286
|
description: "chart.waterfall.description",
|
|
280
287
|
useCase: "chart.waterfall.useCase",
|
|
281
288
|
isAvailable: i,
|
|
282
|
-
dependencies:
|
|
289
|
+
dependencies: E,
|
|
283
290
|
config: async () => (await import("./chart-config-waterfall-DlQb_PLh.js").then((e) => e.t)).waterfallChartConfig
|
|
284
291
|
},
|
|
285
292
|
candlestick: {
|
|
@@ -305,7 +312,7 @@ var Se = {
|
|
|
305
312
|
available: !1,
|
|
306
313
|
reason: "chart.availability.requiresTwoMeasures"
|
|
307
314
|
} : { available: !0 },
|
|
308
|
-
dependencies:
|
|
315
|
+
dependencies: E,
|
|
309
316
|
config: async () => (await import("./chart-config-measure-profile-CRSRIpKh.js").then((e) => e.t)).measureProfileChartConfig
|
|
310
317
|
},
|
|
311
318
|
proportionBar: {
|
|
@@ -314,7 +321,7 @@ var Se = {
|
|
|
314
321
|
description: "chart.proportionBar.description",
|
|
315
322
|
useCase: "chart.proportionBar.useCase",
|
|
316
323
|
isAvailable: i,
|
|
317
|
-
config: async () => (await Promise.resolve().then(() =>
|
|
324
|
+
config: async () => (await Promise.resolve().then(() => bo)).proportionBarChartConfig
|
|
318
325
|
},
|
|
319
326
|
gauge: {
|
|
320
327
|
label: "chart.gauge.label",
|
|
@@ -328,20 +335,20 @@ var Se = {
|
|
|
328
335
|
},
|
|
329
336
|
config: async () => (await import("./chart-config-gauge-CJktdjox.js").then((e) => e.t)).gaugeChartConfig
|
|
330
337
|
}
|
|
331
|
-
},
|
|
332
|
-
function
|
|
333
|
-
return
|
|
338
|
+
}, O = /* @__PURE__ */ new Map();
|
|
339
|
+
function we(e) {
|
|
340
|
+
return O.get(e) ?? D[e];
|
|
334
341
|
}
|
|
335
|
-
function
|
|
336
|
-
|
|
337
|
-
}
|
|
338
|
-
function Te(e) {
|
|
339
|
-
k.delete(e);
|
|
342
|
+
function Te(e, t) {
|
|
343
|
+
O.set(e, t);
|
|
340
344
|
}
|
|
341
345
|
function Ee(e) {
|
|
342
|
-
|
|
346
|
+
O.delete(e);
|
|
347
|
+
}
|
|
348
|
+
function De(e) {
|
|
349
|
+
return O.get(e);
|
|
343
350
|
}
|
|
344
|
-
function
|
|
351
|
+
function Oe(e, t) {
|
|
345
352
|
return {
|
|
346
353
|
...t,
|
|
347
354
|
label: e.label,
|
|
@@ -352,41 +359,41 @@ function De(e, t) {
|
|
|
352
359
|
}
|
|
353
360
|
//#endregion
|
|
354
361
|
//#region src/client/charts/lazyChartConfigRegistry.ts
|
|
355
|
-
var
|
|
356
|
-
async function
|
|
357
|
-
if (
|
|
358
|
-
let t =
|
|
362
|
+
var k = /* @__PURE__ */ new Map();
|
|
363
|
+
async function ke(e) {
|
|
364
|
+
if (k.has(e)) return k.get(e);
|
|
365
|
+
let t = we(e);
|
|
359
366
|
if (!t) return null;
|
|
360
367
|
try {
|
|
361
368
|
let n = await t.config();
|
|
362
369
|
if (n) {
|
|
363
|
-
let r =
|
|
364
|
-
return
|
|
370
|
+
let r = Oe(t, n);
|
|
371
|
+
return k.set(e, r), r;
|
|
365
372
|
}
|
|
366
373
|
return null;
|
|
367
374
|
} catch (t) {
|
|
368
375
|
return console.error(`Failed to load config for chart type: ${e}`, t), null;
|
|
369
376
|
}
|
|
370
377
|
}
|
|
371
|
-
function ke(e) {
|
|
372
|
-
return A.get(e) || Se;
|
|
373
|
-
}
|
|
374
378
|
function Ae(e) {
|
|
375
|
-
return
|
|
379
|
+
return k.get(e) || Ce;
|
|
376
380
|
}
|
|
377
381
|
function je(e) {
|
|
378
|
-
|
|
379
|
-
|
|
382
|
+
return k.has(e);
|
|
383
|
+
}
|
|
384
|
+
function Me(e) {
|
|
385
|
+
let [t, n] = C(e ? Ae(e) : Ce), [r, i] = C(!1), [a, o] = C(!1);
|
|
386
|
+
return x(() => {
|
|
380
387
|
if (!e) {
|
|
381
|
-
n(
|
|
388
|
+
n(Ce), o(!1);
|
|
382
389
|
return;
|
|
383
390
|
}
|
|
384
|
-
if (
|
|
385
|
-
n(
|
|
391
|
+
if (k.has(e)) {
|
|
392
|
+
n(k.get(e)), o(!0);
|
|
386
393
|
return;
|
|
387
394
|
}
|
|
388
|
-
i(!0),
|
|
389
|
-
e ? (n(e), o(!0)) : (n(
|
|
395
|
+
i(!0), ke(e).then((e) => {
|
|
396
|
+
e ? (n(e), o(!0)) : (n(Ce), o(!0));
|
|
390
397
|
}).finally(() => i(!1));
|
|
391
398
|
}, [e]), {
|
|
392
399
|
config: t,
|
|
@@ -394,50 +401,50 @@ function je(e) {
|
|
|
394
401
|
loaded: a
|
|
395
402
|
};
|
|
396
403
|
}
|
|
397
|
-
async function Me(e) {
|
|
398
|
-
A.has(e) || await Oe(e);
|
|
399
|
-
}
|
|
400
404
|
async function Ne(e) {
|
|
401
|
-
await
|
|
405
|
+
k.has(e) || await ke(e);
|
|
406
|
+
}
|
|
407
|
+
async function Pe(e) {
|
|
408
|
+
await Promise.all(e.map(Ne));
|
|
402
409
|
}
|
|
403
|
-
async function
|
|
404
|
-
let e = Object.keys(
|
|
405
|
-
await Promise.all(e.map(
|
|
410
|
+
async function Fe() {
|
|
411
|
+
let e = Object.keys(D);
|
|
412
|
+
await Promise.all(e.map(ke));
|
|
406
413
|
let t = {};
|
|
407
414
|
for (let n of e) {
|
|
408
|
-
let e =
|
|
415
|
+
let e = k.get(n);
|
|
409
416
|
e && (t[n] = e);
|
|
410
417
|
}
|
|
411
418
|
return t;
|
|
412
419
|
}
|
|
413
|
-
function
|
|
414
|
-
|
|
420
|
+
function Ie() {
|
|
421
|
+
k.clear();
|
|
415
422
|
}
|
|
416
|
-
function
|
|
417
|
-
|
|
423
|
+
function Le(e, t) {
|
|
424
|
+
k.set(e, t);
|
|
418
425
|
}
|
|
419
|
-
function
|
|
420
|
-
|
|
426
|
+
function Re(e) {
|
|
427
|
+
k.delete(e);
|
|
421
428
|
}
|
|
422
429
|
//#endregion
|
|
423
430
|
//#region node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
424
|
-
var
|
|
425
|
-
let t =
|
|
431
|
+
var ze = b.createContext(void 0), Be = (e) => {
|
|
432
|
+
let t = b.useContext(ze);
|
|
426
433
|
if (e) return e;
|
|
427
434
|
if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
|
|
428
435
|
return t;
|
|
429
|
-
},
|
|
436
|
+
}, Ve = ({ client: e, children: t }) => (b.useEffect(() => (e.mount(), () => {
|
|
430
437
|
e.unmount();
|
|
431
|
-
}), [e]), /* @__PURE__ */
|
|
438
|
+
}), [e]), /* @__PURE__ */ w(ze.Provider, {
|
|
432
439
|
value: e,
|
|
433
440
|
children: t
|
|
434
|
-
})),
|
|
441
|
+
})), He = {
|
|
435
442
|
setTimeout: (e, t) => setTimeout(e, t),
|
|
436
443
|
clearTimeout: (e) => clearTimeout(e),
|
|
437
444
|
setInterval: (e, t) => setInterval(e, t),
|
|
438
445
|
clearInterval: (e) => clearInterval(e)
|
|
439
|
-
},
|
|
440
|
-
#e =
|
|
446
|
+
}, A = new class {
|
|
447
|
+
#e = He;
|
|
441
448
|
#t = !1;
|
|
442
449
|
setTimeoutProvider(e) {
|
|
443
450
|
process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.", {
|
|
@@ -458,31 +465,31 @@ var Re = x.createContext(void 0), ze = (e) => {
|
|
|
458
465
|
this.#e.clearInterval(e);
|
|
459
466
|
}
|
|
460
467
|
}();
|
|
461
|
-
function
|
|
468
|
+
function Ue(e) {
|
|
462
469
|
setTimeout(e, 0);
|
|
463
470
|
}
|
|
464
471
|
//#endregion
|
|
465
472
|
//#region node_modules/@tanstack/query-core/build/modern/utils.js
|
|
466
|
-
var
|
|
467
|
-
function
|
|
468
|
-
function
|
|
473
|
+
var We = typeof window > "u" || "Deno" in globalThis;
|
|
474
|
+
function j() {}
|
|
475
|
+
function Ge(e, t) {
|
|
469
476
|
return typeof e == "function" ? e(t) : e;
|
|
470
477
|
}
|
|
471
|
-
function
|
|
478
|
+
function Ke(e) {
|
|
472
479
|
return typeof e == "number" && e >= 0 && e !== Infinity;
|
|
473
480
|
}
|
|
474
|
-
function
|
|
481
|
+
function qe(e, t) {
|
|
475
482
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
476
483
|
}
|
|
477
|
-
function
|
|
484
|
+
function M(e, t) {
|
|
478
485
|
return typeof e == "function" ? e(t) : e;
|
|
479
486
|
}
|
|
480
|
-
function
|
|
487
|
+
function Je(e, t) {
|
|
481
488
|
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
|
|
482
489
|
if (o) {
|
|
483
490
|
if (r) {
|
|
484
|
-
if (t.queryHash !==
|
|
485
|
-
} else if (!
|
|
491
|
+
if (t.queryHash !== Xe(o, t.options)) return !1;
|
|
492
|
+
} else if (!P(t.queryKey, o)) return !1;
|
|
486
493
|
}
|
|
487
494
|
if (n !== "all") {
|
|
488
495
|
let e = t.isActive();
|
|
@@ -490,109 +497,109 @@ function qe(e, t) {
|
|
|
490
497
|
}
|
|
491
498
|
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
|
|
492
499
|
}
|
|
493
|
-
function
|
|
500
|
+
function Ye(e, t) {
|
|
494
501
|
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
|
|
495
502
|
if (a) {
|
|
496
503
|
if (!t.options.mutationKey) return !1;
|
|
497
504
|
if (n) {
|
|
498
|
-
if (
|
|
499
|
-
} else if (!
|
|
505
|
+
if (N(t.options.mutationKey) !== N(a)) return !1;
|
|
506
|
+
} else if (!P(t.options.mutationKey, a)) return !1;
|
|
500
507
|
}
|
|
501
508
|
return !(r && t.state.status !== r || i && !i(t));
|
|
502
509
|
}
|
|
503
|
-
function
|
|
504
|
-
return (t?.queryKeyHashFn ||
|
|
510
|
+
function Xe(e, t) {
|
|
511
|
+
return (t?.queryKeyHashFn || N)(e);
|
|
505
512
|
}
|
|
506
|
-
function
|
|
507
|
-
return JSON.stringify(e, (e, t) =>
|
|
513
|
+
function N(e) {
|
|
514
|
+
return JSON.stringify(e, (e, t) => tt(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
|
|
508
515
|
}
|
|
509
|
-
function
|
|
516
|
+
function P(e, t) {
|
|
510
517
|
if (e === t) return !0;
|
|
511
518
|
if (typeof e != typeof t) return !1;
|
|
512
519
|
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
513
520
|
if (Array.isArray(e) && Array.isArray(t)) {
|
|
514
|
-
for (let n = 0; n < t.length; n++) if (!
|
|
521
|
+
for (let n = 0; n < t.length; n++) if (!P(e[n], t[n])) return !1;
|
|
515
522
|
return !0;
|
|
516
523
|
}
|
|
517
524
|
let n = Object.keys(t);
|
|
518
|
-
for (let r of n) if (!
|
|
525
|
+
for (let r of n) if (!P(e[r], t[r])) return !1;
|
|
519
526
|
return !0;
|
|
520
527
|
}
|
|
521
528
|
return !1;
|
|
522
529
|
}
|
|
523
|
-
var
|
|
524
|
-
function
|
|
530
|
+
var Ze = Object.prototype.hasOwnProperty;
|
|
531
|
+
function Qe(e, t, n = 0) {
|
|
525
532
|
if (e === t) return e;
|
|
526
533
|
if (n > 500) return t;
|
|
527
|
-
let r =
|
|
528
|
-
if (!r && !(
|
|
534
|
+
let r = et(e) && et(t);
|
|
535
|
+
if (!r && !(tt(e) && tt(t))) return t;
|
|
529
536
|
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
|
|
530
537
|
for (let l = 0; l < o; l++) {
|
|
531
538
|
let o = r ? l : a[l], u = e[o], d = t[o];
|
|
532
539
|
if (u === d) {
|
|
533
|
-
s[o] = u, (r ? l < i :
|
|
540
|
+
s[o] = u, (r ? l < i : Ze.call(e, o)) && c++;
|
|
534
541
|
continue;
|
|
535
542
|
}
|
|
536
543
|
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
|
|
537
544
|
s[o] = d;
|
|
538
545
|
continue;
|
|
539
546
|
}
|
|
540
|
-
let f =
|
|
547
|
+
let f = Qe(u, d, n + 1);
|
|
541
548
|
s[o] = f, f === u && c++;
|
|
542
549
|
}
|
|
543
550
|
return i === o && c === i ? e : s;
|
|
544
551
|
}
|
|
545
|
-
function
|
|
552
|
+
function $e(e, t) {
|
|
546
553
|
if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
547
554
|
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
548
555
|
return !0;
|
|
549
556
|
}
|
|
550
|
-
function
|
|
557
|
+
function et(e) {
|
|
551
558
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
552
559
|
}
|
|
553
|
-
function
|
|
554
|
-
if (
|
|
560
|
+
function tt(e) {
|
|
561
|
+
if (!nt(e)) return !1;
|
|
555
562
|
let t = e.constructor;
|
|
556
563
|
if (t === void 0) return !0;
|
|
557
564
|
let n = t.prototype;
|
|
558
|
-
return !(
|
|
565
|
+
return !(!nt(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
559
566
|
}
|
|
560
|
-
function
|
|
567
|
+
function nt(e) {
|
|
561
568
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
562
569
|
}
|
|
563
|
-
function
|
|
570
|
+
function rt(e) {
|
|
564
571
|
return new Promise((t) => {
|
|
565
|
-
|
|
572
|
+
A.setTimeout(t, e);
|
|
566
573
|
});
|
|
567
574
|
}
|
|
568
|
-
function
|
|
575
|
+
function it(e, t, n) {
|
|
569
576
|
if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
|
|
570
577
|
if (n.structuralSharing !== !1) {
|
|
571
578
|
if (process.env.NODE_ENV !== "production") try {
|
|
572
|
-
return
|
|
579
|
+
return Qe(e, t);
|
|
573
580
|
} catch (e) {
|
|
574
581
|
throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`), e;
|
|
575
582
|
}
|
|
576
|
-
return
|
|
583
|
+
return Qe(e, t);
|
|
577
584
|
}
|
|
578
585
|
return t;
|
|
579
586
|
}
|
|
580
|
-
function
|
|
587
|
+
function at(e, t, n = 0) {
|
|
581
588
|
let r = [...e, t];
|
|
582
589
|
return n && r.length > n ? r.slice(1) : r;
|
|
583
590
|
}
|
|
584
|
-
function
|
|
591
|
+
function ot(e, t, n = 0) {
|
|
585
592
|
let r = [t, ...e];
|
|
586
593
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
587
594
|
}
|
|
588
|
-
var
|
|
589
|
-
function
|
|
590
|
-
return process.env.NODE_ENV !== "production" && e.queryFn ===
|
|
595
|
+
var st = Symbol();
|
|
596
|
+
function ct(e, t) {
|
|
597
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === st && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === st ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
591
598
|
}
|
|
592
|
-
function
|
|
599
|
+
function lt(e, t) {
|
|
593
600
|
return typeof e == "function" ? e(...t) : !!e;
|
|
594
601
|
}
|
|
595
|
-
function
|
|
602
|
+
function ut(e, t, n) {
|
|
596
603
|
let r = !1, i;
|
|
597
604
|
return Object.defineProperty(e, "signal", {
|
|
598
605
|
enumerable: !0,
|
|
@@ -601,7 +608,7 @@ function ot(e, t, n) {
|
|
|
601
608
|
}
|
|
602
609
|
//#endregion
|
|
603
610
|
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
604
|
-
var
|
|
611
|
+
var dt = () => We, ft = () => dt(), F = class {
|
|
605
612
|
constructor() {
|
|
606
613
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
607
614
|
}
|
|
@@ -615,7 +622,7 @@ var st = () => Ue, ct = () => st(), z = class {
|
|
|
615
622
|
}
|
|
616
623
|
onSubscribe() {}
|
|
617
624
|
onUnsubscribe() {}
|
|
618
|
-
},
|
|
625
|
+
}, pt = new class extends F {
|
|
619
626
|
#e;
|
|
620
627
|
#t;
|
|
621
628
|
#n;
|
|
@@ -652,13 +659,13 @@ var st = () => Ue, ct = () => st(), z = class {
|
|
|
652
659
|
isFocused() {
|
|
653
660
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
654
661
|
}
|
|
655
|
-
}(),
|
|
656
|
-
function
|
|
662
|
+
}(), mt = Ue;
|
|
663
|
+
function ht() {
|
|
657
664
|
let e = [], t = 0, n = (e) => {
|
|
658
665
|
e();
|
|
659
666
|
}, r = (e) => {
|
|
660
667
|
e();
|
|
661
|
-
}, i =
|
|
668
|
+
}, i = mt, a = (r) => {
|
|
662
669
|
t ? e.push(r) : i(() => {
|
|
663
670
|
n(r);
|
|
664
671
|
});
|
|
@@ -700,7 +707,7 @@ function dt() {
|
|
|
700
707
|
}
|
|
701
708
|
};
|
|
702
709
|
}
|
|
703
|
-
var
|
|
710
|
+
var I = ht(), gt = new class extends F {
|
|
704
711
|
#e = !0;
|
|
705
712
|
#t;
|
|
706
713
|
#n;
|
|
@@ -734,32 +741,32 @@ var B = dt(), V = new class extends z {
|
|
|
734
741
|
}();
|
|
735
742
|
//#endregion
|
|
736
743
|
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
737
|
-
function
|
|
744
|
+
function _t(e) {
|
|
738
745
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
739
746
|
}
|
|
740
|
-
function
|
|
741
|
-
return (e ?? "online") !== "online" ||
|
|
747
|
+
function vt(e) {
|
|
748
|
+
return (e ?? "online") !== "online" || gt.isOnline();
|
|
742
749
|
}
|
|
743
|
-
var
|
|
750
|
+
var yt = class extends Error {
|
|
744
751
|
constructor(e) {
|
|
745
752
|
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
746
753
|
}
|
|
747
754
|
};
|
|
748
|
-
function
|
|
755
|
+
function bt(e) {
|
|
749
756
|
let t = !1, n = 0, r, i = "pending", a, o, s = new Promise((e, t) => {
|
|
750
757
|
a = e, o = t;
|
|
751
758
|
});
|
|
752
|
-
s.catch(
|
|
759
|
+
s.catch(j);
|
|
753
760
|
let c = () => i !== "pending", l = (t) => {
|
|
754
761
|
if (!c()) {
|
|
755
|
-
let n = new
|
|
762
|
+
let n = new yt(t);
|
|
756
763
|
h(n), e.onCancel?.(n);
|
|
757
764
|
}
|
|
758
765
|
}, u = () => {
|
|
759
766
|
t = !0;
|
|
760
767
|
}, d = () => {
|
|
761
768
|
t = !1;
|
|
762
|
-
}, f = () =>
|
|
769
|
+
}, f = () => pt.isFocused() && (e.networkMode === "always" || gt.isOnline()) && e.canRun(), p = () => vt(e.networkMode) && e.canRun(), m = (e) => {
|
|
763
770
|
c() || (r?.(), i = "resolved", a(e));
|
|
764
771
|
}, h = (e) => {
|
|
765
772
|
c() || (r?.(), i = "rejected", o(e));
|
|
@@ -779,12 +786,12 @@ function ht(e) {
|
|
|
779
786
|
}
|
|
780
787
|
Promise.resolve(r).then(m).catch((r) => {
|
|
781
788
|
if (c()) return;
|
|
782
|
-
let i = e.retry ?? (
|
|
789
|
+
let i = e.retry ?? (ft() ? 0 : 3), a = e.retryDelay ?? _t, o = typeof a == "function" ? a(n, r) : a, s = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
|
|
783
790
|
if (t || !s) {
|
|
784
791
|
h(r);
|
|
785
792
|
return;
|
|
786
793
|
}
|
|
787
|
-
n++, e.onFail?.(n, r),
|
|
794
|
+
n++, e.onFail?.(n, r), rt(o).then(() => f() ? void 0 : g()).then(() => {
|
|
788
795
|
t ? h(r) : _();
|
|
789
796
|
});
|
|
790
797
|
});
|
|
@@ -802,34 +809,34 @@ function ht(e) {
|
|
|
802
809
|
}
|
|
803
810
|
//#endregion
|
|
804
811
|
//#region node_modules/@tanstack/query-core/build/modern/removable.js
|
|
805
|
-
var
|
|
812
|
+
var xt = class {
|
|
806
813
|
#e;
|
|
807
814
|
destroy() {
|
|
808
815
|
this.clearGcTimeout();
|
|
809
816
|
}
|
|
810
817
|
scheduleGc() {
|
|
811
|
-
this.clearGcTimeout(),
|
|
818
|
+
this.clearGcTimeout(), Ke(this.gcTime) && (this.#e = A.setTimeout(() => {
|
|
812
819
|
this.optionalRemove();
|
|
813
820
|
}, this.gcTime));
|
|
814
821
|
}
|
|
815
822
|
updateGcTime(e) {
|
|
816
|
-
this.gcTime = Math.max(this.gcTime || 0, e ?? (
|
|
823
|
+
this.gcTime = Math.max(this.gcTime || 0, e ?? (ft() ? Infinity : 3e5));
|
|
817
824
|
}
|
|
818
825
|
clearGcTimeout() {
|
|
819
|
-
this.#e !== void 0 && (
|
|
826
|
+
this.#e !== void 0 && (A.clearTimeout(this.#e), this.#e = void 0);
|
|
820
827
|
}
|
|
821
828
|
};
|
|
822
829
|
//#endregion
|
|
823
830
|
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
824
|
-
function
|
|
831
|
+
function St(e) {
|
|
825
832
|
return { onFetch: (t, n) => {
|
|
826
833
|
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
|
|
827
834
|
pages: [],
|
|
828
835
|
pageParams: []
|
|
829
836
|
}, c = 0, l = async () => {
|
|
830
837
|
let n = !1, l = (e) => {
|
|
831
|
-
|
|
832
|
-
}, u =
|
|
838
|
+
ut(e, () => t.signal, () => n = !0);
|
|
839
|
+
}, u = ct(t.options, t.fetchOptions), d = async (e, r, i) => {
|
|
833
840
|
if (n) return Promise.reject(t.signal.reason);
|
|
834
841
|
if (r == null && e.pages.length) return Promise.resolve(e);
|
|
835
842
|
let a = (() => {
|
|
@@ -841,14 +848,14 @@ function _t(e) {
|
|
|
841
848
|
meta: t.options.meta
|
|
842
849
|
};
|
|
843
850
|
return l(e), e;
|
|
844
|
-
})(), o = await u(a), { maxPages: s } = t.options, c = i ?
|
|
851
|
+
})(), o = await u(a), { maxPages: s } = t.options, c = i ? ot : at;
|
|
845
852
|
return {
|
|
846
853
|
pages: c(e.pages, o, s),
|
|
847
854
|
pageParams: c(e.pageParams, r, s)
|
|
848
855
|
};
|
|
849
856
|
};
|
|
850
857
|
if (i && a.length) {
|
|
851
|
-
let e = i === "backward", t = e ?
|
|
858
|
+
let e = i === "backward", t = e ? wt : Ct, n = {
|
|
852
859
|
pages: a,
|
|
853
860
|
pageParams: o
|
|
854
861
|
};
|
|
@@ -856,7 +863,7 @@ function _t(e) {
|
|
|
856
863
|
} else {
|
|
857
864
|
let t = e ?? a.length;
|
|
858
865
|
do {
|
|
859
|
-
let e = c === 0 ? o[0] ?? r.initialPageParam :
|
|
866
|
+
let e = c === 0 ? o[0] ?? r.initialPageParam : Ct(r, s);
|
|
860
867
|
if (c > 0 && e == null) break;
|
|
861
868
|
s = await d(s, e), c++;
|
|
862
869
|
} while (c < t);
|
|
@@ -871,16 +878,16 @@ function _t(e) {
|
|
|
871
878
|
}, n) : l;
|
|
872
879
|
} };
|
|
873
880
|
}
|
|
874
|
-
function
|
|
881
|
+
function Ct(e, { pages: t, pageParams: n }) {
|
|
875
882
|
let r = t.length - 1;
|
|
876
883
|
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
|
|
877
884
|
}
|
|
878
|
-
function
|
|
885
|
+
function wt(e, { pages: t, pageParams: n }) {
|
|
879
886
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
880
887
|
}
|
|
881
888
|
//#endregion
|
|
882
889
|
//#region node_modules/@tanstack/query-core/build/modern/query.js
|
|
883
|
-
var
|
|
890
|
+
var Tt = class extends xt {
|
|
884
891
|
#e;
|
|
885
892
|
#t;
|
|
886
893
|
#n;
|
|
@@ -890,7 +897,7 @@ var bt = class extends gt {
|
|
|
890
897
|
#o;
|
|
891
898
|
#s;
|
|
892
899
|
constructor(e) {
|
|
893
|
-
super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t =
|
|
900
|
+
super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = Ot(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
|
|
894
901
|
}
|
|
895
902
|
get meta() {
|
|
896
903
|
return this.options.meta;
|
|
@@ -906,15 +913,15 @@ var bt = class extends gt {
|
|
|
906
913
|
...this.#o,
|
|
907
914
|
...e
|
|
908
915
|
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
909
|
-
let e =
|
|
910
|
-
e.data !== void 0 && (this.setState(
|
|
916
|
+
let e = Ot(this.options);
|
|
917
|
+
e.data !== void 0 && (this.setState(Dt(e.data, e.dataUpdatedAt)), this.#t = e);
|
|
911
918
|
}
|
|
912
919
|
}
|
|
913
920
|
optionalRemove() {
|
|
914
921
|
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
|
|
915
922
|
}
|
|
916
923
|
setData(e, t) {
|
|
917
|
-
let n =
|
|
924
|
+
let n = it(this.state.data, e, this.options);
|
|
918
925
|
return this.#c({
|
|
919
926
|
data: n,
|
|
920
927
|
type: "success",
|
|
@@ -930,7 +937,7 @@ var bt = class extends gt {
|
|
|
930
937
|
}
|
|
931
938
|
cancel(e) {
|
|
932
939
|
let t = this.#a?.promise;
|
|
933
|
-
return this.#a?.cancel(e), t ? t.then(
|
|
940
|
+
return this.#a?.cancel(e), t ? t.then(j).catch(j) : Promise.resolve();
|
|
934
941
|
}
|
|
935
942
|
destroy() {
|
|
936
943
|
super.destroy(), this.cancel({ silent: !0 });
|
|
@@ -942,22 +949,22 @@ var bt = class extends gt {
|
|
|
942
949
|
this.destroy(), this.setState(this.resetState);
|
|
943
950
|
}
|
|
944
951
|
isActive() {
|
|
945
|
-
return this.observers.some((e) =>
|
|
952
|
+
return this.observers.some((e) => M(e.options.enabled, this) !== !1);
|
|
946
953
|
}
|
|
947
954
|
isDisabled() {
|
|
948
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
955
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === st || !this.isFetched();
|
|
949
956
|
}
|
|
950
957
|
isFetched() {
|
|
951
958
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
952
959
|
}
|
|
953
960
|
isStatic() {
|
|
954
|
-
return this.getObserversCount() > 0 && this.observers.some((e) =>
|
|
961
|
+
return this.getObserversCount() > 0 && this.observers.some((e) => M(e.options.staleTime, this) === "static");
|
|
955
962
|
}
|
|
956
963
|
isStale() {
|
|
957
964
|
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
958
965
|
}
|
|
959
966
|
isStaleByTime(e = 0) {
|
|
960
|
-
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !
|
|
967
|
+
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !qe(this.state.dataUpdatedAt, e);
|
|
961
968
|
}
|
|
962
969
|
onFocus() {
|
|
963
970
|
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
|
|
@@ -1002,7 +1009,7 @@ var bt = class extends gt {
|
|
|
1002
1009
|
get: () => (this.#s = !0, n.signal)
|
|
1003
1010
|
});
|
|
1004
1011
|
}, i = () => {
|
|
1005
|
-
let e =
|
|
1012
|
+
let e = ct(this.options, t), n = (() => {
|
|
1006
1013
|
let e = {
|
|
1007
1014
|
client: this.#i,
|
|
1008
1015
|
queryKey: this.queryKey,
|
|
@@ -1022,15 +1029,15 @@ var bt = class extends gt {
|
|
|
1022
1029
|
};
|
|
1023
1030
|
return r(e), e;
|
|
1024
1031
|
})();
|
|
1025
|
-
(this.#e === "infinite" ?
|
|
1032
|
+
(this.#e === "infinite" ? St(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({
|
|
1026
1033
|
type: "fetch",
|
|
1027
1034
|
meta: a.fetchOptions?.meta
|
|
1028
1035
|
});
|
|
1029
|
-
let o = this.#a =
|
|
1036
|
+
let o = this.#a = bt({
|
|
1030
1037
|
initialPromise: t?.initialPromise,
|
|
1031
1038
|
fn: a.fetchFn,
|
|
1032
1039
|
onCancel: (e) => {
|
|
1033
|
-
e instanceof
|
|
1040
|
+
e instanceof yt && e.revert && this.setState({
|
|
1034
1041
|
...this.#n,
|
|
1035
1042
|
fetchStatus: "idle"
|
|
1036
1043
|
}), n.abort();
|
|
@@ -1058,7 +1065,7 @@ var bt = class extends gt {
|
|
|
1058
1065
|
if (e === void 0) throw process.env.NODE_ENV !== "production" && console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`), Error(`${this.queryHash} data is undefined`);
|
|
1059
1066
|
return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
|
|
1060
1067
|
} catch (e) {
|
|
1061
|
-
if (e instanceof
|
|
1068
|
+
if (e instanceof yt) {
|
|
1062
1069
|
if (e.silent) return this.#a.promise;
|
|
1063
1070
|
if (e.revert) {
|
|
1064
1071
|
if (this.state.data === void 0) throw e;
|
|
@@ -1091,13 +1098,13 @@ var bt = class extends gt {
|
|
|
1091
1098
|
};
|
|
1092
1099
|
case "fetch": return {
|
|
1093
1100
|
...t,
|
|
1094
|
-
...
|
|
1101
|
+
...Et(t.data, this.options),
|
|
1095
1102
|
fetchMeta: e.meta ?? null
|
|
1096
1103
|
};
|
|
1097
1104
|
case "success":
|
|
1098
1105
|
let n = {
|
|
1099
1106
|
...t,
|
|
1100
|
-
...
|
|
1107
|
+
...Dt(e.data, e.dataUpdatedAt),
|
|
1101
1108
|
dataUpdateCount: t.dataUpdateCount + 1,
|
|
1102
1109
|
...!e.manual && {
|
|
1103
1110
|
fetchStatus: "idle",
|
|
@@ -1129,7 +1136,7 @@ var bt = class extends gt {
|
|
|
1129
1136
|
};
|
|
1130
1137
|
}
|
|
1131
1138
|
};
|
|
1132
|
-
this.state = t(this.state),
|
|
1139
|
+
this.state = t(this.state), I.batch(() => {
|
|
1133
1140
|
this.observers.slice().forEach((e) => {
|
|
1134
1141
|
e.onQueryUpdate();
|
|
1135
1142
|
}), this.#r.notify({
|
|
@@ -1140,18 +1147,18 @@ var bt = class extends gt {
|
|
|
1140
1147
|
});
|
|
1141
1148
|
}
|
|
1142
1149
|
};
|
|
1143
|
-
function
|
|
1150
|
+
function Et(e, t) {
|
|
1144
1151
|
return {
|
|
1145
1152
|
fetchFailureCount: 0,
|
|
1146
1153
|
fetchFailureReason: null,
|
|
1147
|
-
fetchStatus:
|
|
1154
|
+
fetchStatus: vt(t.networkMode) ? "fetching" : "paused",
|
|
1148
1155
|
...e === void 0 && {
|
|
1149
1156
|
error: null,
|
|
1150
1157
|
status: "pending"
|
|
1151
1158
|
}
|
|
1152
1159
|
};
|
|
1153
1160
|
}
|
|
1154
|
-
function
|
|
1161
|
+
function Dt(e, t) {
|
|
1155
1162
|
return {
|
|
1156
1163
|
data: e,
|
|
1157
1164
|
dataUpdatedAt: t ?? Date.now(),
|
|
@@ -1160,7 +1167,7 @@ function St(e, t) {
|
|
|
1160
1167
|
status: "success"
|
|
1161
1168
|
};
|
|
1162
1169
|
}
|
|
1163
|
-
function
|
|
1170
|
+
function Ot(e) {
|
|
1164
1171
|
let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
|
|
1165
1172
|
return {
|
|
1166
1173
|
data: t,
|
|
@@ -1179,7 +1186,7 @@ function Ct(e) {
|
|
|
1179
1186
|
}
|
|
1180
1187
|
//#endregion
|
|
1181
1188
|
//#region node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
1182
|
-
var
|
|
1189
|
+
var kt = class extends F {
|
|
1183
1190
|
#e;
|
|
1184
1191
|
#t = void 0;
|
|
1185
1192
|
#n = void 0;
|
|
@@ -1201,36 +1208,36 @@ var wt = class extends z {
|
|
|
1201
1208
|
this.refetch = this.refetch.bind(this);
|
|
1202
1209
|
}
|
|
1203
1210
|
onSubscribe() {
|
|
1204
|
-
this.listeners.size === 1 && (this.#t.addObserver(this),
|
|
1211
|
+
this.listeners.size === 1 && (this.#t.addObserver(this), jt(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
|
|
1205
1212
|
}
|
|
1206
1213
|
onUnsubscribe() {
|
|
1207
1214
|
this.hasListeners() || this.destroy();
|
|
1208
1215
|
}
|
|
1209
1216
|
shouldFetchOnReconnect() {
|
|
1210
|
-
return
|
|
1217
|
+
return Mt(this.#t, this.options, this.options.refetchOnReconnect);
|
|
1211
1218
|
}
|
|
1212
1219
|
shouldFetchOnWindowFocus() {
|
|
1213
|
-
return
|
|
1220
|
+
return Mt(this.#t, this.options, this.options.refetchOnWindowFocus);
|
|
1214
1221
|
}
|
|
1215
1222
|
destroy() {
|
|
1216
1223
|
this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
|
|
1217
1224
|
}
|
|
1218
1225
|
setOptions(e) {
|
|
1219
1226
|
let t = this.options, n = this.#t;
|
|
1220
|
-
if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof
|
|
1221
|
-
this.#S(), this.#t.setOptions(this.options), t._defaulted &&
|
|
1227
|
+
if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof M(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");
|
|
1228
|
+
this.#S(), this.#t.setOptions(this.options), t._defaulted && !$e(this.options, t) && this.#e.getQueryCache().notify({
|
|
1222
1229
|
type: "observerOptionsUpdated",
|
|
1223
1230
|
query: this.#t,
|
|
1224
1231
|
observer: this
|
|
1225
1232
|
});
|
|
1226
1233
|
let r = this.hasListeners();
|
|
1227
|
-
r &&
|
|
1234
|
+
r && Nt(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || M(this.options.enabled, this.#t) !== M(t.enabled, this.#t) || M(this.options.staleTime, this.#t) !== M(t.staleTime, this.#t)) && this.#g();
|
|
1228
1235
|
let i = this.#_();
|
|
1229
|
-
r && (this.#t !== n ||
|
|
1236
|
+
r && (this.#t !== n || M(this.options.enabled, this.#t) !== M(t.enabled, this.#t) || i !== this.#f) && this.#v(i);
|
|
1230
1237
|
}
|
|
1231
1238
|
getOptimisticResult(e) {
|
|
1232
1239
|
let t = this.#e.getQueryCache().build(this.#e, e), n = this.createResult(t, e);
|
|
1233
|
-
return
|
|
1240
|
+
return $e(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
|
|
1234
1241
|
}
|
|
1235
1242
|
getCurrentResult() {
|
|
1236
1243
|
return this.#r;
|
|
@@ -1269,17 +1276,17 @@ var wt = class extends z {
|
|
|
1269
1276
|
#m(e) {
|
|
1270
1277
|
this.#S();
|
|
1271
1278
|
let t = this.#t.fetch(this.options, e);
|
|
1272
|
-
return e?.throwOnError || (t = t.catch(
|
|
1279
|
+
return e?.throwOnError || (t = t.catch(j)), t;
|
|
1273
1280
|
}
|
|
1274
1281
|
#h(e) {
|
|
1275
|
-
return !
|
|
1282
|
+
return !ft() && M(this.options.enabled, this.#t) !== !1 && Ke(e);
|
|
1276
1283
|
}
|
|
1277
1284
|
#g() {
|
|
1278
1285
|
this.#b();
|
|
1279
|
-
let e =
|
|
1286
|
+
let e = M(this.options.staleTime, this.#t);
|
|
1280
1287
|
if (this.#r.isStale || !this.#h(e)) return;
|
|
1281
|
-
let t =
|
|
1282
|
-
this.#u =
|
|
1288
|
+
let t = qe(this.#r.dataUpdatedAt, e) + 1;
|
|
1289
|
+
this.#u = A.setTimeout(() => {
|
|
1283
1290
|
this.#r.isStale || this.updateResult();
|
|
1284
1291
|
}, t);
|
|
1285
1292
|
}
|
|
@@ -1287,26 +1294,26 @@ var wt = class extends z {
|
|
|
1287
1294
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
|
|
1288
1295
|
}
|
|
1289
1296
|
#v(e) {
|
|
1290
|
-
this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d =
|
|
1291
|
-
(this.options.refetchIntervalInBackground ||
|
|
1297
|
+
this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d = A.setInterval(() => {
|
|
1298
|
+
(this.options.refetchIntervalInBackground || pt.isFocused()) && this.#m();
|
|
1292
1299
|
}, this.#f));
|
|
1293
1300
|
}
|
|
1294
1301
|
#y() {
|
|
1295
1302
|
this.#g(), this.#v(this.#_());
|
|
1296
1303
|
}
|
|
1297
1304
|
#b() {
|
|
1298
|
-
this.#u !== void 0 && (
|
|
1305
|
+
this.#u !== void 0 && (A.clearTimeout(this.#u), this.#u = void 0);
|
|
1299
1306
|
}
|
|
1300
1307
|
#x() {
|
|
1301
|
-
this.#d !== void 0 && (
|
|
1308
|
+
this.#d !== void 0 && (A.clearInterval(this.#d), this.#d = void 0);
|
|
1302
1309
|
}
|
|
1303
1310
|
createResult(e, t) {
|
|
1304
1311
|
let n = this.#t, r = this.options, i = this.#r, a = this.#i, o = this.#a, s = e === n ? this.#n : e.state, { state: c } = e, l = { ...c }, u = !1, d;
|
|
1305
1312
|
if (t._optimisticResults) {
|
|
1306
|
-
let i = this.hasListeners(), a = !i &&
|
|
1313
|
+
let i = this.hasListeners(), a = !i && jt(e, t), o = i && Nt(e, n, t, r);
|
|
1307
1314
|
(a || o) && (l = {
|
|
1308
1315
|
...l,
|
|
1309
|
-
...
|
|
1316
|
+
...Et(c.data, e.options)
|
|
1310
1317
|
}), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
|
|
1311
1318
|
}
|
|
1312
1319
|
let { error: f, errorUpdatedAt: p, status: m } = l;
|
|
@@ -1314,26 +1321,26 @@ var wt = class extends z {
|
|
|
1314
1321
|
let h = !1;
|
|
1315
1322
|
if (t.placeholderData !== void 0 && d === void 0 && m === "pending") {
|
|
1316
1323
|
let e;
|
|
1317
|
-
i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#l?.state.data, this.#l) : t.placeholderData, e !== void 0 && (m = "success", d =
|
|
1324
|
+
i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#l?.state.data, this.#l) : t.placeholderData, e !== void 0 && (m = "success", d = it(i?.data, e, t), u = !0);
|
|
1318
1325
|
}
|
|
1319
1326
|
if (t.select && d !== void 0 && !h) {
|
|
1320
1327
|
if (i && d === a?.data && t.select === this.#s) d = this.#c;
|
|
1321
1328
|
else try {
|
|
1322
|
-
this.#s = t.select, d = t.select(d), d =
|
|
1329
|
+
this.#s = t.select, d = t.select(d), d = it(i?.data, d, t), this.#c = d, this.#o = null;
|
|
1323
1330
|
} catch (e) {
|
|
1324
1331
|
this.#o = e;
|
|
1325
1332
|
}
|
|
1326
1333
|
} else d === void 0 && (this.#o = null);
|
|
1327
1334
|
this.#o && (f = this.#o, d = this.#c, p = Date.now(), m = "error", u = !1);
|
|
1328
|
-
let g = l.fetchStatus === "fetching", _ = m === "pending", v = m === "error",
|
|
1335
|
+
let g = l.fetchStatus === "fetching", _ = m === "pending", v = m === "error", ee = _ && g, y = d !== void 0;
|
|
1329
1336
|
return {
|
|
1330
1337
|
status: m,
|
|
1331
1338
|
fetchStatus: l.fetchStatus,
|
|
1332
1339
|
isPending: _,
|
|
1333
1340
|
isSuccess: m === "success",
|
|
1334
1341
|
isError: v,
|
|
1335
|
-
isInitialLoading:
|
|
1336
|
-
isLoading:
|
|
1342
|
+
isInitialLoading: ee,
|
|
1343
|
+
isLoading: ee,
|
|
1337
1344
|
data: d,
|
|
1338
1345
|
dataUpdatedAt: l.dataUpdatedAt,
|
|
1339
1346
|
error: f,
|
|
@@ -1345,18 +1352,18 @@ var wt = class extends z {
|
|
|
1345
1352
|
isFetchedAfterMount: l.dataUpdateCount > s.dataUpdateCount || l.errorUpdateCount > s.errorUpdateCount,
|
|
1346
1353
|
isFetching: g,
|
|
1347
1354
|
isRefetching: g && !_,
|
|
1348
|
-
isLoadingError: v && !
|
|
1355
|
+
isLoadingError: v && !y,
|
|
1349
1356
|
isPaused: l.fetchStatus === "paused",
|
|
1350
1357
|
isPlaceholderData: u,
|
|
1351
|
-
isRefetchError: v &&
|
|
1352
|
-
isStale:
|
|
1358
|
+
isRefetchError: v && y,
|
|
1359
|
+
isStale: Pt(e, t),
|
|
1353
1360
|
refetch: this.refetch,
|
|
1354
|
-
isEnabled:
|
|
1361
|
+
isEnabled: M(t.enabled, e) !== !1
|
|
1355
1362
|
};
|
|
1356
1363
|
}
|
|
1357
1364
|
updateResult() {
|
|
1358
1365
|
let e = this.#r, t = this.createResult(this.#t, this.options);
|
|
1359
|
-
if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t),
|
|
1366
|
+
if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), $e(t, e)) return;
|
|
1360
1367
|
this.#r = t;
|
|
1361
1368
|
let n = (() => {
|
|
1362
1369
|
if (!e) return !0;
|
|
@@ -1368,7 +1375,7 @@ var wt = class extends z {
|
|
|
1368
1375
|
return this.#r[n] !== e[n] && r.has(n);
|
|
1369
1376
|
});
|
|
1370
1377
|
})();
|
|
1371
|
-
|
|
1378
|
+
I.batch(() => {
|
|
1372
1379
|
n && this.listeners.forEach((e) => {
|
|
1373
1380
|
e(this.#r);
|
|
1374
1381
|
}), this.#e.getQueryCache().notify({
|
|
@@ -1387,34 +1394,34 @@ var wt = class extends z {
|
|
|
1387
1394
|
this.updateResult(), this.hasListeners() && this.#y();
|
|
1388
1395
|
}
|
|
1389
1396
|
};
|
|
1390
|
-
function
|
|
1391
|
-
return
|
|
1397
|
+
function At(e, t) {
|
|
1398
|
+
return M(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || M(t.retryOnMount, e) !== !1);
|
|
1392
1399
|
}
|
|
1393
|
-
function
|
|
1394
|
-
return
|
|
1400
|
+
function jt(e, t) {
|
|
1401
|
+
return At(e, t) || e.state.data !== void 0 && Mt(e, t, t.refetchOnMount);
|
|
1395
1402
|
}
|
|
1396
|
-
function
|
|
1397
|
-
if (
|
|
1403
|
+
function Mt(e, t, n) {
|
|
1404
|
+
if (M(t.enabled, e) !== !1 && M(t.staleTime, e) !== "static") {
|
|
1398
1405
|
let r = typeof n == "function" ? n(e) : n;
|
|
1399
|
-
return r === "always" || r !== !1 &&
|
|
1406
|
+
return r === "always" || r !== !1 && Pt(e, t);
|
|
1400
1407
|
}
|
|
1401
1408
|
return !1;
|
|
1402
1409
|
}
|
|
1403
|
-
function
|
|
1404
|
-
return (e !== t ||
|
|
1410
|
+
function Nt(e, t, n, r) {
|
|
1411
|
+
return (e !== t || M(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && Pt(e, n);
|
|
1405
1412
|
}
|
|
1406
|
-
function
|
|
1407
|
-
return
|
|
1413
|
+
function Pt(e, t) {
|
|
1414
|
+
return M(t.enabled, e) !== !1 && e.isStaleByTime(M(t.staleTime, e));
|
|
1408
1415
|
}
|
|
1409
1416
|
//#endregion
|
|
1410
1417
|
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
1411
|
-
var
|
|
1418
|
+
var Ft = class extends xt {
|
|
1412
1419
|
#e;
|
|
1413
1420
|
#t;
|
|
1414
1421
|
#n;
|
|
1415
1422
|
#r;
|
|
1416
1423
|
constructor(e) {
|
|
1417
|
-
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state ||
|
|
1424
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || It(), this.setOptions(e.options), this.scheduleGc();
|
|
1418
1425
|
}
|
|
1419
1426
|
setOptions(e) {
|
|
1420
1427
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -1449,7 +1456,7 @@ var At = class extends gt {
|
|
|
1449
1456
|
client: this.#e,
|
|
1450
1457
|
meta: this.options.meta,
|
|
1451
1458
|
mutationKey: this.options.mutationKey
|
|
1452
|
-
}, r = this.#r =
|
|
1459
|
+
}, r = this.#r = bt({
|
|
1453
1460
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
|
|
1454
1461
|
onFail: (e, t) => {
|
|
1455
1462
|
this.#i({
|
|
@@ -1565,7 +1572,7 @@ var At = class extends gt {
|
|
|
1565
1572
|
};
|
|
1566
1573
|
}
|
|
1567
1574
|
};
|
|
1568
|
-
this.state = t(this.state),
|
|
1575
|
+
this.state = t(this.state), I.batch(() => {
|
|
1569
1576
|
this.#t.forEach((t) => {
|
|
1570
1577
|
t.onMutationUpdate(e);
|
|
1571
1578
|
}), this.#n.notify({
|
|
@@ -1576,7 +1583,7 @@ var At = class extends gt {
|
|
|
1576
1583
|
});
|
|
1577
1584
|
}
|
|
1578
1585
|
};
|
|
1579
|
-
function
|
|
1586
|
+
function It() {
|
|
1580
1587
|
return {
|
|
1581
1588
|
context: void 0,
|
|
1582
1589
|
data: void 0,
|
|
@@ -1591,7 +1598,7 @@ function jt() {
|
|
|
1591
1598
|
}
|
|
1592
1599
|
//#endregion
|
|
1593
1600
|
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
1594
|
-
var
|
|
1601
|
+
var Lt = class extends F {
|
|
1595
1602
|
#e;
|
|
1596
1603
|
#t;
|
|
1597
1604
|
#n;
|
|
@@ -1599,7 +1606,7 @@ var Mt = class extends z {
|
|
|
1599
1606
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
1600
1607
|
}
|
|
1601
1608
|
build(e, t, n) {
|
|
1602
|
-
let r = new
|
|
1609
|
+
let r = new Ft({
|
|
1603
1610
|
client: e,
|
|
1604
1611
|
mutationCache: this,
|
|
1605
1612
|
mutationId: ++this.#n,
|
|
@@ -1610,7 +1617,7 @@ var Mt = class extends z {
|
|
|
1610
1617
|
}
|
|
1611
1618
|
add(e) {
|
|
1612
1619
|
this.#e.add(e);
|
|
1613
|
-
let t =
|
|
1620
|
+
let t = Rt(e);
|
|
1614
1621
|
if (typeof t == "string") {
|
|
1615
1622
|
let n = this.#t.get(t);
|
|
1616
1623
|
n ? n.push(e) : this.#t.set(t, [e]);
|
|
@@ -1622,7 +1629,7 @@ var Mt = class extends z {
|
|
|
1622
1629
|
}
|
|
1623
1630
|
remove(e) {
|
|
1624
1631
|
if (this.#e.delete(e)) {
|
|
1625
|
-
let t =
|
|
1632
|
+
let t = Rt(e);
|
|
1626
1633
|
if (typeof t == "string") {
|
|
1627
1634
|
let n = this.#t.get(t);
|
|
1628
1635
|
if (n) {
|
|
@@ -1639,7 +1646,7 @@ var Mt = class extends z {
|
|
|
1639
1646
|
});
|
|
1640
1647
|
}
|
|
1641
1648
|
canRun(e) {
|
|
1642
|
-
let t =
|
|
1649
|
+
let t = Rt(e);
|
|
1643
1650
|
if (typeof t == "string") {
|
|
1644
1651
|
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
|
|
1645
1652
|
return !n || n === e;
|
|
@@ -1647,11 +1654,11 @@ var Mt = class extends z {
|
|
|
1647
1654
|
return !0;
|
|
1648
1655
|
}
|
|
1649
1656
|
runNext(e) {
|
|
1650
|
-
let t =
|
|
1657
|
+
let t = Rt(e);
|
|
1651
1658
|
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1652
1659
|
}
|
|
1653
1660
|
clear() {
|
|
1654
|
-
|
|
1661
|
+
I.batch(() => {
|
|
1655
1662
|
this.#e.forEach((e) => {
|
|
1656
1663
|
this.notify({
|
|
1657
1664
|
type: "removed",
|
|
@@ -1668,13 +1675,13 @@ var Mt = class extends z {
|
|
|
1668
1675
|
exact: !0,
|
|
1669
1676
|
...e
|
|
1670
1677
|
};
|
|
1671
|
-
return this.getAll().find((e) =>
|
|
1678
|
+
return this.getAll().find((e) => Ye(t, e));
|
|
1672
1679
|
}
|
|
1673
1680
|
findAll(e = {}) {
|
|
1674
|
-
return this.getAll().filter((t) =>
|
|
1681
|
+
return this.getAll().filter((t) => Ye(e, t));
|
|
1675
1682
|
}
|
|
1676
1683
|
notify(e) {
|
|
1677
|
-
|
|
1684
|
+
I.batch(() => {
|
|
1678
1685
|
this.listeners.forEach((t) => {
|
|
1679
1686
|
t(e);
|
|
1680
1687
|
});
|
|
@@ -1682,22 +1689,22 @@ var Mt = class extends z {
|
|
|
1682
1689
|
}
|
|
1683
1690
|
resumePausedMutations() {
|
|
1684
1691
|
let e = this.getAll().filter((e) => e.state.isPaused);
|
|
1685
|
-
return
|
|
1692
|
+
return I.batch(() => Promise.all(e.map((e) => e.continue().catch(j))));
|
|
1686
1693
|
}
|
|
1687
1694
|
};
|
|
1688
|
-
function
|
|
1695
|
+
function Rt(e) {
|
|
1689
1696
|
return e.options.scope?.id;
|
|
1690
1697
|
}
|
|
1691
1698
|
//#endregion
|
|
1692
1699
|
//#region node_modules/@tanstack/query-core/build/modern/queryCache.js
|
|
1693
|
-
var
|
|
1700
|
+
var zt = class extends F {
|
|
1694
1701
|
#e;
|
|
1695
1702
|
constructor(e = {}) {
|
|
1696
1703
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
1697
1704
|
}
|
|
1698
1705
|
build(e, t, n) {
|
|
1699
|
-
let r = t.queryKey, i = t.queryHash ??
|
|
1700
|
-
return a || (a = new
|
|
1706
|
+
let r = t.queryKey, i = t.queryHash ?? Xe(r, t), a = this.get(i);
|
|
1707
|
+
return a || (a = new Tt({
|
|
1701
1708
|
client: e,
|
|
1702
1709
|
queryKey: r,
|
|
1703
1710
|
queryHash: i,
|
|
@@ -1720,7 +1727,7 @@ var Nt = class extends z {
|
|
|
1720
1727
|
}));
|
|
1721
1728
|
}
|
|
1722
1729
|
clear() {
|
|
1723
|
-
|
|
1730
|
+
I.batch(() => {
|
|
1724
1731
|
this.getAll().forEach((e) => {
|
|
1725
1732
|
this.remove(e);
|
|
1726
1733
|
});
|
|
@@ -1737,34 +1744,34 @@ var Nt = class extends z {
|
|
|
1737
1744
|
exact: !0,
|
|
1738
1745
|
...e
|
|
1739
1746
|
};
|
|
1740
|
-
return this.getAll().find((e) =>
|
|
1747
|
+
return this.getAll().find((e) => Je(t, e));
|
|
1741
1748
|
}
|
|
1742
1749
|
findAll(e = {}) {
|
|
1743
1750
|
let t = this.getAll();
|
|
1744
|
-
return Object.keys(e).length > 0 ? t.filter((t) =>
|
|
1751
|
+
return Object.keys(e).length > 0 ? t.filter((t) => Je(e, t)) : t;
|
|
1745
1752
|
}
|
|
1746
1753
|
notify(e) {
|
|
1747
|
-
|
|
1754
|
+
I.batch(() => {
|
|
1748
1755
|
this.listeners.forEach((t) => {
|
|
1749
1756
|
t(e);
|
|
1750
1757
|
});
|
|
1751
1758
|
});
|
|
1752
1759
|
}
|
|
1753
1760
|
onFocus() {
|
|
1754
|
-
|
|
1761
|
+
I.batch(() => {
|
|
1755
1762
|
this.getAll().forEach((e) => {
|
|
1756
1763
|
e.onFocus();
|
|
1757
1764
|
});
|
|
1758
1765
|
});
|
|
1759
1766
|
}
|
|
1760
1767
|
onOnline() {
|
|
1761
|
-
|
|
1768
|
+
I.batch(() => {
|
|
1762
1769
|
this.getAll().forEach((e) => {
|
|
1763
1770
|
e.onOnline();
|
|
1764
1771
|
});
|
|
1765
1772
|
});
|
|
1766
1773
|
}
|
|
1767
|
-
},
|
|
1774
|
+
}, Bt = class {
|
|
1768
1775
|
#e;
|
|
1769
1776
|
#t;
|
|
1770
1777
|
#n;
|
|
@@ -1774,12 +1781,12 @@ var Nt = class extends z {
|
|
|
1774
1781
|
#o;
|
|
1775
1782
|
#s;
|
|
1776
1783
|
constructor(e = {}) {
|
|
1777
|
-
this.#e = e.queryCache || new
|
|
1784
|
+
this.#e = e.queryCache || new zt(), this.#t = e.mutationCache || new Lt(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
1778
1785
|
}
|
|
1779
1786
|
mount() {
|
|
1780
|
-
this.#a++, this.#a === 1 && (this.#o =
|
|
1787
|
+
this.#a++, this.#a === 1 && (this.#o = pt.subscribe(async (e) => {
|
|
1781
1788
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1782
|
-
}), this.#s =
|
|
1789
|
+
}), this.#s = gt.subscribe(async (e) => {
|
|
1783
1790
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1784
1791
|
}));
|
|
1785
1792
|
}
|
|
@@ -1804,20 +1811,20 @@ var Nt = class extends z {
|
|
|
1804
1811
|
}
|
|
1805
1812
|
ensureQueryData(e) {
|
|
1806
1813
|
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
|
|
1807
|
-
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(
|
|
1814
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(M(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
1808
1815
|
}
|
|
1809
1816
|
getQueriesData(e) {
|
|
1810
1817
|
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
|
|
1811
1818
|
}
|
|
1812
1819
|
setQueryData(e, t, n) {
|
|
1813
|
-
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a =
|
|
1820
|
+
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = Ge(t, i);
|
|
1814
1821
|
if (a !== void 0) return this.#e.build(this, r).setData(a, {
|
|
1815
1822
|
...n,
|
|
1816
1823
|
manual: !0
|
|
1817
1824
|
});
|
|
1818
1825
|
}
|
|
1819
1826
|
setQueriesData(e, t, n) {
|
|
1820
|
-
return
|
|
1827
|
+
return I.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
|
|
1821
1828
|
}
|
|
1822
1829
|
getQueryState(e) {
|
|
1823
1830
|
let t = this.defaultQueryOptions({ queryKey: e });
|
|
@@ -1825,7 +1832,7 @@ var Nt = class extends z {
|
|
|
1825
1832
|
}
|
|
1826
1833
|
removeQueries(e) {
|
|
1827
1834
|
let t = this.#e;
|
|
1828
|
-
|
|
1835
|
+
I.batch(() => {
|
|
1829
1836
|
t.findAll(e).forEach((e) => {
|
|
1830
1837
|
t.remove(e);
|
|
1831
1838
|
});
|
|
@@ -1833,7 +1840,7 @@ var Nt = class extends z {
|
|
|
1833
1840
|
}
|
|
1834
1841
|
resetQueries(e, t) {
|
|
1835
1842
|
let n = this.#e;
|
|
1836
|
-
return
|
|
1843
|
+
return I.batch(() => {
|
|
1837
1844
|
let r = n.findAll(e), i = new Set(r);
|
|
1838
1845
|
return r.forEach((e) => {
|
|
1839
1846
|
e.reset();
|
|
@@ -1847,11 +1854,11 @@ var Nt = class extends z {
|
|
|
1847
1854
|
let n = {
|
|
1848
1855
|
revert: !0,
|
|
1849
1856
|
...t
|
|
1850
|
-
}, r =
|
|
1851
|
-
return Promise.all(r).then(
|
|
1857
|
+
}, r = I.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
|
|
1858
|
+
return Promise.all(r).then(j).catch(j);
|
|
1852
1859
|
}
|
|
1853
1860
|
invalidateQueries(e, t = {}) {
|
|
1854
|
-
return
|
|
1861
|
+
return I.batch(() => (this.#e.findAll(e).forEach((e) => {
|
|
1855
1862
|
e.invalidate();
|
|
1856
1863
|
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
|
|
1857
1864
|
...e,
|
|
@@ -1862,26 +1869,26 @@ var Nt = class extends z {
|
|
|
1862
1869
|
let n = {
|
|
1863
1870
|
...t,
|
|
1864
1871
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
1865
|
-
}, r =
|
|
1872
|
+
}, r = I.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
|
|
1866
1873
|
let t = e.fetch(void 0, n);
|
|
1867
|
-
return n.throwOnError || (t = t.catch(
|
|
1874
|
+
return n.throwOnError || (t = t.catch(j)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
|
|
1868
1875
|
}));
|
|
1869
|
-
return Promise.all(r).then(
|
|
1876
|
+
return Promise.all(r).then(j);
|
|
1870
1877
|
}
|
|
1871
1878
|
async query(e) {
|
|
1872
1879
|
let t = this.defaultQueryOptions(e);
|
|
1873
1880
|
t.retry === void 0 && (t.retry = !1);
|
|
1874
|
-
let n = this.#e.build(this, t), r = n.isStaleByTime(
|
|
1881
|
+
let n = this.#e.build(this, t), r = n.isStaleByTime(M(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;
|
|
1875
1882
|
return i ? i(r) : r;
|
|
1876
1883
|
}
|
|
1877
1884
|
fetchQuery(e) {
|
|
1878
1885
|
let t = this.defaultQueryOptions(e);
|
|
1879
1886
|
t.retry === void 0 && (t.retry = !1);
|
|
1880
1887
|
let n = this.#e.build(this, t);
|
|
1881
|
-
return n.isStaleByTime(
|
|
1888
|
+
return n.isStaleByTime(M(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
1882
1889
|
}
|
|
1883
1890
|
prefetchQuery(e) {
|
|
1884
|
-
return this.fetchQuery(e).then(
|
|
1891
|
+
return this.fetchQuery(e).then(j).catch(j);
|
|
1885
1892
|
}
|
|
1886
1893
|
infiniteQuery(e) {
|
|
1887
1894
|
return e._type = "infinite", this.query(e);
|
|
@@ -1890,13 +1897,13 @@ var Nt = class extends z {
|
|
|
1890
1897
|
return e._type = "infinite", this.fetchQuery(e);
|
|
1891
1898
|
}
|
|
1892
1899
|
prefetchInfiniteQuery(e) {
|
|
1893
|
-
return this.fetchInfiniteQuery(e).then(
|
|
1900
|
+
return this.fetchInfiniteQuery(e).then(j).catch(j);
|
|
1894
1901
|
}
|
|
1895
1902
|
ensureInfiniteQueryData(e) {
|
|
1896
1903
|
return e._type = "infinite", this.ensureQueryData(e);
|
|
1897
1904
|
}
|
|
1898
1905
|
resumePausedMutations() {
|
|
1899
|
-
return
|
|
1906
|
+
return gt.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
1900
1907
|
}
|
|
1901
1908
|
getQueryCache() {
|
|
1902
1909
|
return this.#e;
|
|
@@ -1911,7 +1918,7 @@ var Nt = class extends z {
|
|
|
1911
1918
|
this.#n = e;
|
|
1912
1919
|
}
|
|
1913
1920
|
setQueryDefaults(e, t) {
|
|
1914
|
-
this.#r.set(
|
|
1921
|
+
this.#r.set(N(e), {
|
|
1915
1922
|
queryKey: e,
|
|
1916
1923
|
defaultOptions: t
|
|
1917
1924
|
});
|
|
@@ -1919,11 +1926,11 @@ var Nt = class extends z {
|
|
|
1919
1926
|
getQueryDefaults(e) {
|
|
1920
1927
|
let t = [...this.#r.values()], n = {};
|
|
1921
1928
|
return t.forEach((t) => {
|
|
1922
|
-
|
|
1929
|
+
P(e, t.queryKey) && Object.assign(n, t.defaultOptions);
|
|
1923
1930
|
}), n;
|
|
1924
1931
|
}
|
|
1925
1932
|
setMutationDefaults(e, t) {
|
|
1926
|
-
this.#i.set(
|
|
1933
|
+
this.#i.set(N(e), {
|
|
1927
1934
|
mutationKey: e,
|
|
1928
1935
|
defaultOptions: t
|
|
1929
1936
|
});
|
|
@@ -1931,7 +1938,7 @@ var Nt = class extends z {
|
|
|
1931
1938
|
getMutationDefaults(e) {
|
|
1932
1939
|
let t = [...this.#i.values()], n = {};
|
|
1933
1940
|
return t.forEach((t) => {
|
|
1934
|
-
|
|
1941
|
+
P(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
|
|
1935
1942
|
}), n;
|
|
1936
1943
|
}
|
|
1937
1944
|
defaultQueryOptions(e) {
|
|
@@ -1942,7 +1949,7 @@ var Nt = class extends z {
|
|
|
1942
1949
|
...e,
|
|
1943
1950
|
_defaulted: !0
|
|
1944
1951
|
};
|
|
1945
|
-
return t.queryHash ||=
|
|
1952
|
+
return t.queryHash ||= Xe(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === st && (t.enabled = !1), t;
|
|
1946
1953
|
}
|
|
1947
1954
|
defaultMutationOptions(e) {
|
|
1948
1955
|
return e?._defaulted ? e : {
|
|
@@ -1955,10 +1962,10 @@ var Nt = class extends z {
|
|
|
1955
1962
|
clear() {
|
|
1956
1963
|
this.#e.clear(), this.#t.clear();
|
|
1957
1964
|
}
|
|
1958
|
-
},
|
|
1965
|
+
}, Vt = b.createContext(!1), Ht = () => b.useContext(Vt);
|
|
1959
1966
|
//#endregion
|
|
1960
1967
|
//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
1961
|
-
function
|
|
1968
|
+
function Ut() {
|
|
1962
1969
|
let e = !1;
|
|
1963
1970
|
return {
|
|
1964
1971
|
clearReset: () => {
|
|
@@ -1970,37 +1977,37 @@ function Lt() {
|
|
|
1970
1977
|
isReset: () => e
|
|
1971
1978
|
};
|
|
1972
1979
|
}
|
|
1973
|
-
var
|
|
1974
|
-
let r = n?.state.error && typeof e.throwOnError == "function" ?
|
|
1980
|
+
var Wt = b.createContext(Ut()), Gt = () => b.useContext(Wt), Kt = (e, t, n) => {
|
|
1981
|
+
let r = n?.state.error && typeof e.throwOnError == "function" ? lt(e.throwOnError, [n.state.error, n]) : e.throwOnError;
|
|
1975
1982
|
(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));
|
|
1976
|
-
},
|
|
1977
|
-
|
|
1983
|
+
}, qt = (e) => {
|
|
1984
|
+
b.useEffect(() => {
|
|
1978
1985
|
e.clearReset();
|
|
1979
1986
|
}, [e]);
|
|
1980
|
-
},
|
|
1987
|
+
}, Jt = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || lt(n, [e.error, r])), Yt = (e) => {
|
|
1981
1988
|
if (e.suspense) {
|
|
1982
1989
|
let t = 1e3, n = (e) => e === "static" ? e : Math.max(e ?? t, t), r = e.staleTime;
|
|
1983
1990
|
e.staleTime = typeof r == "function" ? (...e) => n(r(...e)) : n(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, t));
|
|
1984
1991
|
}
|
|
1985
|
-
},
|
|
1992
|
+
}, Xt = (e, t) => e?.suspense && t.isPending, Zt = (e, t, n) => t.fetchOptimistic(e).catch(() => {
|
|
1986
1993
|
n.clearReset();
|
|
1987
1994
|
});
|
|
1988
1995
|
//#endregion
|
|
1989
1996
|
//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
1990
|
-
function
|
|
1997
|
+
function Qt(e, t, n) {
|
|
1991
1998
|
if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e))) throw Error("Bad argument type. Starting with v5, only the \"Object\" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object");
|
|
1992
|
-
let r =
|
|
1999
|
+
let r = Ht(), i = Gt(), a = Be(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash);
|
|
1993
2000
|
process.env.NODE_ENV !== "production" && (o.queryFn || console.error(`[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`));
|
|
1994
2001
|
let c = e.subscribed !== !1;
|
|
1995
|
-
o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0,
|
|
1996
|
-
let [l] =
|
|
1997
|
-
if (
|
|
1998
|
-
let t = d ? l.subscribe(
|
|
2002
|
+
o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, Yt(o), Kt(o, i, s), qt(i);
|
|
2003
|
+
let [l] = b.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
|
|
2004
|
+
if (b.useSyncExternalStore(b.useCallback((e) => {
|
|
2005
|
+
let t = d ? l.subscribe(I.batchCalls(e)) : j;
|
|
1999
2006
|
return l.updateResult(), t;
|
|
2000
|
-
}, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()),
|
|
2007
|
+
}, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), b.useEffect(() => {
|
|
2001
2008
|
l.setOptions(o);
|
|
2002
|
-
}, [o, l]),
|
|
2003
|
-
if (
|
|
2009
|
+
}, [o, l]), Xt(o, u)) throw Zt(o, l, i);
|
|
2010
|
+
if (Jt({
|
|
2004
2011
|
result: u,
|
|
2005
2012
|
errorResetBoundary: i,
|
|
2006
2013
|
throwOnError: o.throwOnError,
|
|
@@ -2011,12 +2018,32 @@ function Kt(e, t, n) {
|
|
|
2011
2018
|
}
|
|
2012
2019
|
//#endregion
|
|
2013
2020
|
//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
2014
|
-
function
|
|
2015
|
-
return
|
|
2021
|
+
function $t(e, t) {
|
|
2022
|
+
return Qt(e, kt, t);
|
|
2016
2023
|
}
|
|
2017
2024
|
//#endregion
|
|
2018
2025
|
//#region src/client/client/CubeClient.ts
|
|
2019
|
-
var
|
|
2026
|
+
var en = class extends Error {
|
|
2027
|
+
status;
|
|
2028
|
+
issues;
|
|
2029
|
+
constructor(e, t, n) {
|
|
2030
|
+
super(e), this.name = "CubeQueryError", this.status = t, this.issues = n;
|
|
2031
|
+
}
|
|
2032
|
+
};
|
|
2033
|
+
async function L(e, t) {
|
|
2034
|
+
let n = `${t}: ${e.status}`, r;
|
|
2035
|
+
try {
|
|
2036
|
+
let t = await e.text();
|
|
2037
|
+
try {
|
|
2038
|
+
let e = JSON.parse(t);
|
|
2039
|
+
n = e.error ? e.error : `${n} ${t}`, Array.isArray(e.issues) && (r = e.issues);
|
|
2040
|
+
} catch {
|
|
2041
|
+
n += ` ${t}`;
|
|
2042
|
+
}
|
|
2043
|
+
} catch {}
|
|
2044
|
+
return new en(n, e.status, r);
|
|
2045
|
+
}
|
|
2046
|
+
var tn = class {
|
|
2020
2047
|
apiUrl;
|
|
2021
2048
|
headers;
|
|
2022
2049
|
credentials;
|
|
@@ -2034,20 +2061,8 @@ var Jt = class {
|
|
|
2034
2061
|
headers: a,
|
|
2035
2062
|
credentials: this.credentials
|
|
2036
2063
|
});
|
|
2037
|
-
if (!o.ok)
|
|
2038
|
-
|
|
2039
|
-
try {
|
|
2040
|
-
let t = await o.text();
|
|
2041
|
-
try {
|
|
2042
|
-
let n = JSON.parse(t);
|
|
2043
|
-
n.error ? e = n.error : e += ` ${t}`;
|
|
2044
|
-
} catch {
|
|
2045
|
-
e += ` ${t}`;
|
|
2046
|
-
}
|
|
2047
|
-
} catch {}
|
|
2048
|
-
throw Error(e);
|
|
2049
|
-
}
|
|
2050
|
-
return new Yt(await o.json());
|
|
2064
|
+
if (!o.ok) throw await L(o, "Cube query failed");
|
|
2065
|
+
return new nn(await o.json());
|
|
2051
2066
|
}
|
|
2052
2067
|
async meta() {
|
|
2053
2068
|
let e = `${this.apiUrl}/meta`, t = await fetch(e, {
|
|
@@ -2055,7 +2070,7 @@ var Jt = class {
|
|
|
2055
2070
|
headers: this.headers,
|
|
2056
2071
|
credentials: this.credentials
|
|
2057
2072
|
});
|
|
2058
|
-
if (!t.ok) throw
|
|
2073
|
+
if (!t.ok) throw await L(t, "Failed to fetch meta");
|
|
2059
2074
|
return t.json();
|
|
2060
2075
|
}
|
|
2061
2076
|
async sql(e) {
|
|
@@ -2064,7 +2079,7 @@ var Jt = class {
|
|
|
2064
2079
|
headers: { ...Object.fromEntries(Object.entries(this.headers).filter(([e]) => e !== "Content-Type")) },
|
|
2065
2080
|
credentials: this.credentials
|
|
2066
2081
|
});
|
|
2067
|
-
if (!r.ok) throw
|
|
2082
|
+
if (!r.ok) throw await L(r, "SQL generation failed");
|
|
2068
2083
|
return r.json();
|
|
2069
2084
|
}
|
|
2070
2085
|
async dryRun(e) {
|
|
@@ -2074,19 +2089,7 @@ var Jt = class {
|
|
|
2074
2089
|
credentials: this.credentials,
|
|
2075
2090
|
body: JSON.stringify({ query: e })
|
|
2076
2091
|
});
|
|
2077
|
-
if (!n.ok)
|
|
2078
|
-
let e = `Dry run failed: ${n.status}`;
|
|
2079
|
-
try {
|
|
2080
|
-
let t = await n.text();
|
|
2081
|
-
try {
|
|
2082
|
-
let n = JSON.parse(t);
|
|
2083
|
-
n.error ? e = n.error : e += ` ${t}`;
|
|
2084
|
-
} catch {
|
|
2085
|
-
e += ` ${t}`;
|
|
2086
|
-
}
|
|
2087
|
-
} catch {}
|
|
2088
|
-
throw Error(e);
|
|
2089
|
-
}
|
|
2092
|
+
if (!n.ok) throw await L(n, "Dry run failed");
|
|
2090
2093
|
return n.json();
|
|
2091
2094
|
}
|
|
2092
2095
|
async explain(e, t) {
|
|
@@ -2099,19 +2102,7 @@ var Jt = class {
|
|
|
2099
2102
|
options: t
|
|
2100
2103
|
})
|
|
2101
2104
|
});
|
|
2102
|
-
if (!r.ok)
|
|
2103
|
-
let e = `Explain failed: ${r.status}`;
|
|
2104
|
-
try {
|
|
2105
|
-
let t = await r.text();
|
|
2106
|
-
try {
|
|
2107
|
-
let n = JSON.parse(t);
|
|
2108
|
-
n.error ? e = n.error : e += ` ${t}`;
|
|
2109
|
-
} catch {
|
|
2110
|
-
e += ` ${t}`;
|
|
2111
|
-
}
|
|
2112
|
-
} catch {}
|
|
2113
|
-
throw Error(e);
|
|
2114
|
-
}
|
|
2105
|
+
if (!r.ok) throw await L(r, "Explain failed");
|
|
2115
2106
|
return r.json();
|
|
2116
2107
|
}
|
|
2117
2108
|
async batchLoad(e, t) {
|
|
@@ -2123,28 +2114,16 @@ var Jt = class {
|
|
|
2123
2114
|
credentials: this.credentials,
|
|
2124
2115
|
body: JSON.stringify({ queries: e })
|
|
2125
2116
|
});
|
|
2126
|
-
if (!i.ok)
|
|
2127
|
-
let e = `Batch query failed: ${i.status}`;
|
|
2128
|
-
try {
|
|
2129
|
-
let t = await i.text();
|
|
2130
|
-
try {
|
|
2131
|
-
let n = JSON.parse(t);
|
|
2132
|
-
n.error ? e = n.error : e += ` ${t}`;
|
|
2133
|
-
} catch {
|
|
2134
|
-
e += ` ${t}`;
|
|
2135
|
-
}
|
|
2136
|
-
} catch {}
|
|
2137
|
-
throw Error(e);
|
|
2138
|
-
}
|
|
2117
|
+
if (!i.ok) throw await L(i, "Batch query failed");
|
|
2139
2118
|
return (await i.json()).results.map((e) => !e.success && e.error ? {
|
|
2140
|
-
...new
|
|
2119
|
+
...new nn({
|
|
2141
2120
|
data: [],
|
|
2142
2121
|
annotation: {}
|
|
2143
2122
|
}),
|
|
2144
2123
|
error: e.error
|
|
2145
|
-
} : new
|
|
2124
|
+
} : new nn(e));
|
|
2146
2125
|
}
|
|
2147
|
-
},
|
|
2126
|
+
}, nn = class {
|
|
2148
2127
|
loadResponse;
|
|
2149
2128
|
constructor(e) {
|
|
2150
2129
|
this.loadResponse = e;
|
|
@@ -2161,16 +2140,19 @@ var Jt = class {
|
|
|
2161
2140
|
annotation() {
|
|
2162
2141
|
return this.loadResponse.results && this.loadResponse.results[0] ? this.loadResponse.results[0].annotation || {} : this.loadResponse.annotation || {};
|
|
2163
2142
|
}
|
|
2143
|
+
totalCount() {
|
|
2144
|
+
return this.loadResponse.results && this.loadResponse.results[0] ? this.loadResponse.results[0].total : this.loadResponse.total;
|
|
2145
|
+
}
|
|
2164
2146
|
cacheInfo() {
|
|
2165
2147
|
return this.loadResponse.results && this.loadResponse.results[0] ? this.loadResponse.results[0].cache : this.loadResponse.cache;
|
|
2166
2148
|
}
|
|
2167
2149
|
};
|
|
2168
|
-
function
|
|
2169
|
-
return new
|
|
2150
|
+
function rn(e, t = {}) {
|
|
2151
|
+
return new tn(e, t);
|
|
2170
2152
|
}
|
|
2171
2153
|
//#endregion
|
|
2172
2154
|
//#region src/client/client/BatchCoordinator.ts
|
|
2173
|
-
var
|
|
2155
|
+
var an = class {
|
|
2174
2156
|
queue = [];
|
|
2175
2157
|
flushScheduled = !1;
|
|
2176
2158
|
batchExecutor;
|
|
@@ -2199,7 +2181,10 @@ var Zt = class {
|
|
|
2199
2181
|
let t = e.map((e) => e.query), n = await this.batchExecutor(t);
|
|
2200
2182
|
e.forEach((e, t) => {
|
|
2201
2183
|
let r = n[t];
|
|
2202
|
-
r && "error" in r && r.error
|
|
2184
|
+
if (r && "error" in r && r.error) {
|
|
2185
|
+
let t = r.issues;
|
|
2186
|
+
e.reject(new en(r.error, 400, t));
|
|
2187
|
+
} else e.resolve(r);
|
|
2203
2188
|
});
|
|
2204
2189
|
} catch (t) {
|
|
2205
2190
|
e.forEach((e) => {
|
|
@@ -2213,31 +2198,31 @@ var Zt = class {
|
|
|
2213
2198
|
clear() {
|
|
2214
2199
|
this.queue = [], this.flushScheduled = !1;
|
|
2215
2200
|
}
|
|
2216
|
-
},
|
|
2217
|
-
function
|
|
2218
|
-
let s =
|
|
2201
|
+
}, on = ge(null);
|
|
2202
|
+
function sn({ apiOptions: e, token: t, options: n = {}, locale: r, enableBatching: i = !0, batchDelayMs: a = 50, children: o }) {
|
|
2203
|
+
let s = S(() => ({
|
|
2219
2204
|
apiOptions: e,
|
|
2220
2205
|
token: t
|
|
2221
|
-
}), [e, t]), [c, l] =
|
|
2222
|
-
|
|
2206
|
+
}), [e, t]), [c, l] = C(null);
|
|
2207
|
+
x(() => {
|
|
2223
2208
|
l(null);
|
|
2224
2209
|
}, [s]);
|
|
2225
|
-
let u = c ?? s, d =
|
|
2210
|
+
let u = c ?? s, d = S(() => r ? {
|
|
2226
2211
|
...u.apiOptions,
|
|
2227
2212
|
headers: {
|
|
2228
2213
|
...u.apiOptions.headers ?? {},
|
|
2229
2214
|
"X-DC-Locale": r
|
|
2230
2215
|
}
|
|
2231
|
-
} : u.apiOptions, [u.apiOptions, r]), f =
|
|
2216
|
+
} : u.apiOptions, [u.apiOptions, r]), f = S(() => rn(u.token, d), [d, u.token]), p = S(() => i ? new an((e) => f.batchLoad(e), a) : null, [
|
|
2232
2217
|
i,
|
|
2233
2218
|
f,
|
|
2234
2219
|
a
|
|
2235
|
-
]), m =
|
|
2220
|
+
]), m = be((e, t) => {
|
|
2236
2221
|
l({
|
|
2237
2222
|
apiOptions: e,
|
|
2238
2223
|
token: t
|
|
2239
2224
|
});
|
|
2240
|
-
}, []), h =
|
|
2225
|
+
}, []), h = S(() => ({
|
|
2241
2226
|
cubeApi: f,
|
|
2242
2227
|
options: n,
|
|
2243
2228
|
apiOptions: d,
|
|
@@ -2252,20 +2237,20 @@ function $t({ apiOptions: e, token: t, options: n = {}, locale: r, enableBatchin
|
|
|
2252
2237
|
p,
|
|
2253
2238
|
i
|
|
2254
2239
|
]);
|
|
2255
|
-
return /* @__PURE__ */
|
|
2240
|
+
return /* @__PURE__ */ w(on.Provider, {
|
|
2256
2241
|
value: h,
|
|
2257
2242
|
children: o
|
|
2258
2243
|
});
|
|
2259
2244
|
}
|
|
2260
|
-
function
|
|
2261
|
-
let e =
|
|
2245
|
+
function cn() {
|
|
2246
|
+
let e = xe(on);
|
|
2262
2247
|
if (!e) throw Error("useCubeApi must be used within CubeApiProvider");
|
|
2263
2248
|
return e;
|
|
2264
2249
|
}
|
|
2265
2250
|
//#endregion
|
|
2266
2251
|
//#region src/client/hooks/queries/useCubeMetaQuery.ts
|
|
2267
|
-
var
|
|
2268
|
-
function
|
|
2252
|
+
var ln = ["cube", "meta"];
|
|
2253
|
+
function un(e) {
|
|
2269
2254
|
let t = {};
|
|
2270
2255
|
return e.cubes.forEach((e) => {
|
|
2271
2256
|
e.measures.forEach((e) => {
|
|
@@ -2277,14 +2262,14 @@ function nn(e) {
|
|
|
2277
2262
|
});
|
|
2278
2263
|
}), t;
|
|
2279
2264
|
}
|
|
2280
|
-
function
|
|
2281
|
-
let { enabled: t = !0, staleTime: n = 3e5 } = e, { cubeApi: r } =
|
|
2282
|
-
queryKey:
|
|
2265
|
+
function dn(e = {}) {
|
|
2266
|
+
let { enabled: t = !0, staleTime: n = 3e5 } = e, { cubeApi: r } = cn(), i = Be(), a = $t({
|
|
2267
|
+
queryKey: ln,
|
|
2283
2268
|
queryFn: async () => {
|
|
2284
2269
|
let e = await r.meta();
|
|
2285
2270
|
return {
|
|
2286
2271
|
meta: e,
|
|
2287
|
-
labelMap:
|
|
2272
|
+
labelMap: un(e)
|
|
2288
2273
|
};
|
|
2289
2274
|
},
|
|
2290
2275
|
enabled: t,
|
|
@@ -2298,15 +2283,15 @@ function rn(e = {}) {
|
|
|
2298
2283
|
isFetching: a.isFetching,
|
|
2299
2284
|
error: a.error,
|
|
2300
2285
|
refetch: () => {
|
|
2301
|
-
i.invalidateQueries({ queryKey:
|
|
2286
|
+
i.invalidateQueries({ queryKey: ln });
|
|
2302
2287
|
},
|
|
2303
2288
|
getFieldLabel: (e) => s[e] || e
|
|
2304
2289
|
};
|
|
2305
2290
|
}
|
|
2306
2291
|
//#endregion
|
|
2307
2292
|
//#region src/client/utils/thumbnail.ts
|
|
2308
|
-
var
|
|
2309
|
-
function
|
|
2293
|
+
var fn = null, pn = !1;
|
|
2294
|
+
function mn(e, t, n, r, i) {
|
|
2310
2295
|
return new Promise((a, o) => {
|
|
2311
2296
|
let s = new Image();
|
|
2312
2297
|
s.onload = () => {
|
|
@@ -2323,26 +2308,26 @@ function on(e, t, n, r, i) {
|
|
|
2323
2308
|
}, s.onerror = () => o(/* @__PURE__ */ Error("Failed to load image for resizing")), s.src = e;
|
|
2324
2309
|
});
|
|
2325
2310
|
}
|
|
2326
|
-
async function
|
|
2327
|
-
if (
|
|
2311
|
+
async function R() {
|
|
2312
|
+
if (pn) return fn;
|
|
2328
2313
|
try {
|
|
2329
|
-
return
|
|
2314
|
+
return fn = await import("./dist-BPmPx7kz.js"), pn = !0, fn;
|
|
2330
2315
|
} catch {
|
|
2331
|
-
return
|
|
2316
|
+
return pn = !0, fn = null, null;
|
|
2332
2317
|
}
|
|
2333
2318
|
}
|
|
2334
|
-
function
|
|
2335
|
-
typeof window > "u" || e?.enabled && (window.__drizzle_cube_thumbnail_warning__ ||
|
|
2319
|
+
function hn(e) {
|
|
2320
|
+
typeof window > "u" || e?.enabled && (window.__drizzle_cube_thumbnail_warning__ || R().then((e) => {
|
|
2336
2321
|
!e && typeof process < "u" && process.env.NODE_ENV === "development" && (console.warn("[drizzle-cube] Thumbnail feature enabled but modern-screenshot not installed. Run: npm install modern-screenshot"), window.__drizzle_cube_thumbnail_warning__ = !0);
|
|
2337
2322
|
}));
|
|
2338
2323
|
}
|
|
2339
|
-
async function
|
|
2324
|
+
async function gn(e, t) {
|
|
2340
2325
|
if (typeof window > "u" || !e.current) return null;
|
|
2341
|
-
let n = await
|
|
2326
|
+
let n = await R();
|
|
2342
2327
|
if (!n) return null;
|
|
2343
2328
|
try {
|
|
2344
|
-
let r = t.width ?? 1600, i = t.height ?? 1200, a = t.format ?? "png", o = t.quality ?? .95, s = e.current, c =
|
|
2345
|
-
return await
|
|
2329
|
+
let r = t.width ?? 1600, i = t.height ?? 1200, a = t.format ?? "png", o = t.quality ?? .95, s = e.current, c = bn(s);
|
|
2330
|
+
return await mn(await n.domToPng(s, {
|
|
2346
2331
|
scale: 2,
|
|
2347
2332
|
backgroundColor: c
|
|
2348
2333
|
}), r, i, a, o);
|
|
@@ -2350,31 +2335,31 @@ async function cn(e, t) {
|
|
|
2350
2335
|
return console.error("[drizzle-cube] Failed to capture thumbnail:", e), null;
|
|
2351
2336
|
}
|
|
2352
2337
|
}
|
|
2353
|
-
async function
|
|
2354
|
-
return !e?.enabled || typeof window > "u" ? !1 : await
|
|
2338
|
+
async function _n(e) {
|
|
2339
|
+
return !e?.enabled || typeof window > "u" ? !1 : await R() !== null;
|
|
2355
2340
|
}
|
|
2356
|
-
async function
|
|
2357
|
-
return typeof window > "u" || !await
|
|
2341
|
+
async function vn() {
|
|
2342
|
+
return typeof window > "u" || !await R() ? !1 : typeof ClipboardItem < "u" && typeof navigator?.clipboard?.write == "function";
|
|
2358
2343
|
}
|
|
2359
|
-
function
|
|
2344
|
+
function yn(e) {
|
|
2360
2345
|
if (!e || e === "transparent" || e === "rgba(0, 0, 0, 0)") return !0;
|
|
2361
2346
|
let t = e.match(/rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*([\d.]+)\s*\)/);
|
|
2362
2347
|
return !!(t && parseFloat(t[1]) === 0);
|
|
2363
2348
|
}
|
|
2364
|
-
function
|
|
2349
|
+
function bn(e) {
|
|
2365
2350
|
let t = e;
|
|
2366
2351
|
for (; t;) {
|
|
2367
2352
|
let e = getComputedStyle(t).backgroundColor;
|
|
2368
|
-
if (!
|
|
2353
|
+
if (!yn(e)) return e;
|
|
2369
2354
|
t = t.parentElement;
|
|
2370
2355
|
}
|
|
2371
2356
|
return getComputedStyle(document.documentElement).getPropertyValue("--dc-surface").trim() || "#ffffff";
|
|
2372
2357
|
}
|
|
2373
|
-
async function
|
|
2358
|
+
async function xn(e) {
|
|
2374
2359
|
try {
|
|
2375
|
-
let t = await
|
|
2360
|
+
let t = await R();
|
|
2376
2361
|
if (!t) return console.warn("[drizzle-cube] Cannot copy portlet: modern-screenshot not available"), !1;
|
|
2377
|
-
let n =
|
|
2362
|
+
let n = bn(e), r = await t.domToPng(e, {
|
|
2378
2363
|
scale: 2,
|
|
2379
2364
|
backgroundColor: n
|
|
2380
2365
|
}), i = await (await fetch(r)).blob();
|
|
@@ -2385,12 +2370,12 @@ async function pn(e) {
|
|
|
2385
2370
|
}
|
|
2386
2371
|
//#endregion
|
|
2387
2372
|
//#region src/client/utils/exportXlsx.ts
|
|
2388
|
-
var
|
|
2373
|
+
var z = null, Sn = !1, B = {
|
|
2389
2374
|
headerBg: "FF3B82F6",
|
|
2390
2375
|
headerText: "FFFFFFFF",
|
|
2391
2376
|
borderColor: "FFE5E7EB"
|
|
2392
2377
|
};
|
|
2393
|
-
function
|
|
2378
|
+
function Cn(e) {
|
|
2394
2379
|
if (!e) return null;
|
|
2395
2380
|
let t = e.trim();
|
|
2396
2381
|
if (t.startsWith("#")) {
|
|
@@ -2404,19 +2389,19 @@ function _n(e) {
|
|
|
2404
2389
|
}
|
|
2405
2390
|
return null;
|
|
2406
2391
|
}
|
|
2407
|
-
function
|
|
2408
|
-
if (typeof document > "u") return
|
|
2392
|
+
function wn() {
|
|
2393
|
+
if (typeof document > "u") return B;
|
|
2409
2394
|
let e = getComputedStyle(document.documentElement), t = e.getPropertyValue("--dc-primary").trim(), n = e.getPropertyValue("--dc-primary-content").trim(), r = e.getPropertyValue("--dc-border").trim();
|
|
2410
2395
|
return {
|
|
2411
|
-
headerBg:
|
|
2412
|
-
headerText:
|
|
2413
|
-
borderColor:
|
|
2396
|
+
headerBg: Cn(t) ?? B.headerBg,
|
|
2397
|
+
headerText: Cn(n) ?? B.headerText,
|
|
2398
|
+
borderColor: Cn(r) ?? B.borderColor
|
|
2414
2399
|
};
|
|
2415
2400
|
}
|
|
2416
|
-
function
|
|
2401
|
+
function Tn(e) {
|
|
2417
2402
|
return e == null ? null : e instanceof Date ? e : typeof e == "number" ? Number.isFinite(e) ? e : null : typeof e == "boolean" ? e : Array.isArray(e) ? e.map((e) => String(e)).join(", ") : typeof e == "object" ? JSON.stringify(e) : String(e);
|
|
2418
2403
|
}
|
|
2419
|
-
function
|
|
2404
|
+
function En(e, t) {
|
|
2420
2405
|
e.height = 18, e.eachCell((e) => {
|
|
2421
2406
|
e.font = {
|
|
2422
2407
|
bold: !0,
|
|
@@ -2432,7 +2417,7 @@ function bn(e, t) {
|
|
|
2432
2417
|
};
|
|
2433
2418
|
});
|
|
2434
2419
|
}
|
|
2435
|
-
function
|
|
2420
|
+
function Dn(e, t) {
|
|
2436
2421
|
e.eachRow((e) => {
|
|
2437
2422
|
e.eachCell((e) => {
|
|
2438
2423
|
e.border = {
|
|
@@ -2459,7 +2444,7 @@ function xn(e, t) {
|
|
|
2459
2444
|
});
|
|
2460
2445
|
});
|
|
2461
2446
|
}
|
|
2462
|
-
function
|
|
2447
|
+
function On(e, t = []) {
|
|
2463
2448
|
e.columns?.forEach((e, n) => {
|
|
2464
2449
|
let r = t[n] ?? 10;
|
|
2465
2450
|
e.eachCell?.({ includeEmpty: !0 }, (e) => {
|
|
@@ -2468,15 +2453,15 @@ function Sn(e, t = []) {
|
|
|
2468
2453
|
}), e.width = Math.min(Math.max(r + 2, t[n] ?? 10), 70);
|
|
2469
2454
|
});
|
|
2470
2455
|
}
|
|
2471
|
-
function
|
|
2456
|
+
function V(e, t, n, r) {
|
|
2472
2457
|
let i = e.addWorksheet(t);
|
|
2473
2458
|
if (n.length === 0) {
|
|
2474
|
-
i.addRow(["No data available"]),
|
|
2459
|
+
i.addRow(["No data available"]), On(i, [32]);
|
|
2475
2460
|
return;
|
|
2476
2461
|
}
|
|
2477
2462
|
let a = Object.keys(n[0]);
|
|
2478
|
-
|
|
2479
|
-
for (let e of n) i.addRow(a.map((t) =>
|
|
2463
|
+
En(i.addRow(a), r);
|
|
2464
|
+
for (let e of n) i.addRow(a.map((t) => Tn(e[t])));
|
|
2480
2465
|
i.views = [{
|
|
2481
2466
|
state: "frozen",
|
|
2482
2467
|
ySplit: 1
|
|
@@ -2489,58 +2474,58 @@ function Cn(e, t, n, r) {
|
|
|
2489
2474
|
row: 1,
|
|
2490
2475
|
column: a.length
|
|
2491
2476
|
}
|
|
2492
|
-
},
|
|
2477
|
+
}, Dn(i, r), On(i);
|
|
2493
2478
|
}
|
|
2494
|
-
function
|
|
2479
|
+
function kn(e) {
|
|
2495
2480
|
return e.replace(/[^a-zA-Z0-9]/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "").toLowerCase();
|
|
2496
2481
|
}
|
|
2497
|
-
function
|
|
2498
|
-
let n =
|
|
2482
|
+
function An(e, t) {
|
|
2483
|
+
let n = kn(e), r = /* @__PURE__ */ new Date();
|
|
2499
2484
|
return `${n}-${`${r.getFullYear()}${String(r.getMonth() + 1).padStart(2, "0")}${String(r.getDate()).padStart(2, "0")}`}-${crypto.randomUUID().slice(0, 4).toUpperCase()}.${t}`;
|
|
2500
2485
|
}
|
|
2501
|
-
async function
|
|
2502
|
-
if (
|
|
2486
|
+
async function jn() {
|
|
2487
|
+
if (Sn) return z;
|
|
2503
2488
|
try {
|
|
2504
|
-
return
|
|
2489
|
+
return z = await import("./exceljs.min-CiByP8VQ.js").then((t) => /* @__PURE__ */ e(t.default, 1)), Sn = !0, z;
|
|
2505
2490
|
} catch {
|
|
2506
|
-
return
|
|
2491
|
+
return Sn = !0, z = null, null;
|
|
2507
2492
|
}
|
|
2508
2493
|
}
|
|
2509
|
-
async function
|
|
2510
|
-
return typeof window > "u" ? !1 : await
|
|
2494
|
+
async function Mn() {
|
|
2495
|
+
return typeof window > "u" ? !1 : await jn() !== null;
|
|
2511
2496
|
}
|
|
2512
|
-
function
|
|
2513
|
-
typeof window > "u" || e?.enabled && (window.__drizzle_cube_xls_export_warning__ ||
|
|
2497
|
+
function Nn(e) {
|
|
2498
|
+
typeof window > "u" || e?.enabled && (window.__drizzle_cube_xls_export_warning__ || jn().then((e) => {
|
|
2514
2499
|
!e && typeof process < "u" && process.env.NODE_ENV === "development" && (console.warn("[drizzle-cube] XLS export feature enabled but exceljs not installed. Run: npm install exceljs"), window.__drizzle_cube_xls_export_warning__ = !0);
|
|
2515
2500
|
}));
|
|
2516
2501
|
}
|
|
2517
|
-
function
|
|
2502
|
+
function Pn(e) {
|
|
2518
2503
|
return !!e && typeof e == "object" && "nodes" in e && "links" in e && Array.isArray(e.nodes) && Array.isArray(e.links);
|
|
2519
2504
|
}
|
|
2520
|
-
function
|
|
2505
|
+
function Fn(e) {
|
|
2521
2506
|
return !!e && typeof e == "object" && "rows" in e && "periods" in e && Array.isArray(e.rows) && Array.isArray(e.periods);
|
|
2522
2507
|
}
|
|
2523
|
-
function
|
|
2508
|
+
function In(e, t) {
|
|
2524
2509
|
let n = new Blob([e], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), r = URL.createObjectURL(n), i = document.createElement("a");
|
|
2525
2510
|
i.href = r, i.download = t, document.body.appendChild(i), i.click(), document.body.removeChild(i), URL.revokeObjectURL(r);
|
|
2526
2511
|
}
|
|
2527
|
-
async function
|
|
2528
|
-
let n = await
|
|
2512
|
+
async function Ln(e, t) {
|
|
2513
|
+
let n = await jn();
|
|
2529
2514
|
if (!n) return console.warn("[drizzle-cube] Cannot export: exceljs not available"), !1;
|
|
2530
2515
|
try {
|
|
2531
|
-
let r = new n.Workbook(), i =
|
|
2532
|
-
if (
|
|
2533
|
-
else if (
|
|
2534
|
-
else if (Array.isArray(a))
|
|
2516
|
+
let r = new n.Workbook(), i = wn(), { data: a } = t;
|
|
2517
|
+
if (Pn(a)) V(r, "Nodes", a.nodes, i), V(r, "Links", a.links, i);
|
|
2518
|
+
else if (Fn(a)) V(r, e, a.rows, i);
|
|
2519
|
+
else if (Array.isArray(a)) V(r, e, a, i);
|
|
2535
2520
|
else return console.warn("[drizzle-cube] Cannot export: unrecognized data format"), !1;
|
|
2536
|
-
return
|
|
2521
|
+
return In(await r.xlsx.writeBuffer(), An(e || "export", "xlsx")), !0;
|
|
2537
2522
|
} catch (e) {
|
|
2538
2523
|
return console.error("[drizzle-cube] Failed to export XLSX:", e), !1;
|
|
2539
2524
|
}
|
|
2540
2525
|
}
|
|
2541
2526
|
//#endregion
|
|
2542
2527
|
//#region src/client/providers/CubeFeaturesProvider.tsx
|
|
2543
|
-
var
|
|
2528
|
+
var Rn = ge(null), zn = {
|
|
2544
2529
|
enableAI: !0,
|
|
2545
2530
|
aiEndpoint: "/api/ai/generate",
|
|
2546
2531
|
showSchemaDiagram: !1,
|
|
@@ -2548,22 +2533,22 @@ var Nn = he(null), Pn = {
|
|
|
2548
2533
|
editToolbar: "both",
|
|
2549
2534
|
floatingToolbarPosition: "right"
|
|
2550
2535
|
};
|
|
2551
|
-
function
|
|
2552
|
-
let [r, i] =
|
|
2553
|
-
...
|
|
2536
|
+
function Bn({ features: e, dashboardModes: t = ["rows", "grid"], children: n }) {
|
|
2537
|
+
let [r, i] = C(() => ({
|
|
2538
|
+
...zn,
|
|
2554
2539
|
...e
|
|
2555
2540
|
}));
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
}, [r.thumbnail]),
|
|
2559
|
-
|
|
2541
|
+
x(() => {
|
|
2542
|
+
hn(r.thumbnail);
|
|
2543
|
+
}, [r.thumbnail]), x(() => {
|
|
2544
|
+
Nn(r.xlsExport);
|
|
2560
2545
|
}, [r.xlsExport]);
|
|
2561
|
-
let a =
|
|
2546
|
+
let a = be((e) => {
|
|
2562
2547
|
i((t) => ({
|
|
2563
2548
|
...t,
|
|
2564
2549
|
...e
|
|
2565
2550
|
}));
|
|
2566
|
-
}, []), o =
|
|
2551
|
+
}, []), o = S(() => ({
|
|
2567
2552
|
features: r,
|
|
2568
2553
|
dashboardModes: t,
|
|
2569
2554
|
updateFeatures: a
|
|
@@ -2572,22 +2557,22 @@ function Fn({ features: e, dashboardModes: t = ["rows", "grid"], children: n })
|
|
|
2572
2557
|
t,
|
|
2573
2558
|
a
|
|
2574
2559
|
]);
|
|
2575
|
-
return /* @__PURE__ */
|
|
2560
|
+
return /* @__PURE__ */ w(Rn.Provider, {
|
|
2576
2561
|
value: o,
|
|
2577
2562
|
children: n
|
|
2578
2563
|
});
|
|
2579
2564
|
}
|
|
2580
|
-
var
|
|
2581
|
-
features:
|
|
2565
|
+
var Vn = {
|
|
2566
|
+
features: zn,
|
|
2582
2567
|
dashboardModes: ["rows", "grid"],
|
|
2583
2568
|
updateFeatures: () => {}
|
|
2584
2569
|
};
|
|
2585
|
-
function
|
|
2586
|
-
return
|
|
2570
|
+
function Hn() {
|
|
2571
|
+
return xe(Rn) ?? Vn;
|
|
2587
2572
|
}
|
|
2588
2573
|
//#endregion
|
|
2589
2574
|
//#region node_modules/@iconify/react/dist/iconify.js
|
|
2590
|
-
function
|
|
2575
|
+
function Un(e, t) {
|
|
2591
2576
|
let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
|
|
2592
2577
|
function a(e) {
|
|
2593
2578
|
if (n[e]) return i[e] = [];
|
|
@@ -2600,82 +2585,82 @@ function Rn(e, t) {
|
|
|
2600
2585
|
}
|
|
2601
2586
|
return Object.keys(n).concat(Object.keys(r)).forEach(a), i;
|
|
2602
2587
|
}
|
|
2603
|
-
var
|
|
2588
|
+
var Wn = Object.freeze({
|
|
2604
2589
|
left: 0,
|
|
2605
2590
|
top: 0,
|
|
2606
2591
|
width: 16,
|
|
2607
2592
|
height: 16
|
|
2608
|
-
}),
|
|
2593
|
+
}), H = Object.freeze({
|
|
2609
2594
|
rotate: 0,
|
|
2610
2595
|
vFlip: !1,
|
|
2611
2596
|
hFlip: !1
|
|
2612
|
-
}),
|
|
2613
|
-
...
|
|
2614
|
-
...
|
|
2615
|
-
}),
|
|
2616
|
-
...
|
|
2597
|
+
}), Gn = Object.freeze({
|
|
2598
|
+
...Wn,
|
|
2599
|
+
...H
|
|
2600
|
+
}), Kn = Object.freeze({
|
|
2601
|
+
...Gn,
|
|
2617
2602
|
body: "",
|
|
2618
2603
|
hidden: !1
|
|
2619
2604
|
});
|
|
2620
|
-
function
|
|
2605
|
+
function qn(e, t) {
|
|
2621
2606
|
let n = {};
|
|
2622
2607
|
!e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
|
|
2623
2608
|
let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
2624
2609
|
return r && (n.rotate = r), n;
|
|
2625
2610
|
}
|
|
2626
|
-
function
|
|
2627
|
-
let n =
|
|
2628
|
-
for (let r in
|
|
2611
|
+
function Jn(e, t) {
|
|
2612
|
+
let n = qn(e, t);
|
|
2613
|
+
for (let r in Kn) r in H ? r in e && !(r in n) && (n[r] = H[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
|
|
2629
2614
|
return n;
|
|
2630
2615
|
}
|
|
2631
|
-
function
|
|
2616
|
+
function Yn(e, t, n) {
|
|
2632
2617
|
let r = e.icons, i = e.aliases || Object.create(null), a = {};
|
|
2633
2618
|
function o(e) {
|
|
2634
|
-
a =
|
|
2619
|
+
a = Jn(r[e] || i[e], a);
|
|
2635
2620
|
}
|
|
2636
|
-
return o(t), n.forEach(o),
|
|
2621
|
+
return o(t), n.forEach(o), Jn(e, a);
|
|
2637
2622
|
}
|
|
2638
|
-
function
|
|
2623
|
+
function Xn(e, t) {
|
|
2639
2624
|
let n = [];
|
|
2640
2625
|
if (typeof e != "object" || typeof e.icons != "object") return n;
|
|
2641
2626
|
e.not_found instanceof Array && e.not_found.forEach((e) => {
|
|
2642
2627
|
t(e, null), n.push(e);
|
|
2643
2628
|
});
|
|
2644
|
-
let r =
|
|
2629
|
+
let r = Un(e);
|
|
2645
2630
|
for (let i in r) {
|
|
2646
2631
|
let a = r[i];
|
|
2647
|
-
a && (t(i,
|
|
2632
|
+
a && (t(i, Yn(e, i, a)), n.push(i));
|
|
2648
2633
|
}
|
|
2649
2634
|
return n;
|
|
2650
2635
|
}
|
|
2651
|
-
var
|
|
2636
|
+
var Zn = {
|
|
2652
2637
|
provider: "",
|
|
2653
2638
|
aliases: {},
|
|
2654
2639
|
not_found: {},
|
|
2655
|
-
...
|
|
2640
|
+
...Wn
|
|
2656
2641
|
};
|
|
2657
|
-
function
|
|
2642
|
+
function Qn(e, t) {
|
|
2658
2643
|
for (let n in t) if (n in e && typeof e[n] != typeof t[n]) return !1;
|
|
2659
2644
|
return !0;
|
|
2660
2645
|
}
|
|
2661
|
-
function
|
|
2646
|
+
function $n(e) {
|
|
2662
2647
|
if (typeof e != "object" || !e) return null;
|
|
2663
2648
|
let t = e;
|
|
2664
|
-
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !
|
|
2649
|
+
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !Qn(e, Zn)) return null;
|
|
2665
2650
|
let n = t.icons;
|
|
2666
2651
|
for (let e in n) {
|
|
2667
2652
|
let t = n[e];
|
|
2668
|
-
if (!e || typeof t.body != "string" || !
|
|
2653
|
+
if (!e || typeof t.body != "string" || !Qn(t, Kn)) return null;
|
|
2669
2654
|
}
|
|
2670
2655
|
let r = t.aliases || Object.create(null);
|
|
2671
2656
|
for (let e in r) {
|
|
2672
2657
|
let t = r[e], i = t.parent;
|
|
2673
|
-
if (!e || typeof i != "string" || !n[i] && !r[i] || !
|
|
2658
|
+
if (!e || typeof i != "string" || !n[i] && !r[i] || !Qn(t, Kn)) return null;
|
|
2674
2659
|
}
|
|
2675
2660
|
return t;
|
|
2676
2661
|
}
|
|
2677
|
-
var
|
|
2678
|
-
function
|
|
2662
|
+
var er = Object.create(null);
|
|
2663
|
+
function tr(e, t) {
|
|
2679
2664
|
return {
|
|
2680
2665
|
provider: e,
|
|
2681
2666
|
prefix: t,
|
|
@@ -2683,22 +2668,22 @@ function Zn(e, t) {
|
|
|
2683
2668
|
missing: /* @__PURE__ */ new Set()
|
|
2684
2669
|
};
|
|
2685
2670
|
}
|
|
2686
|
-
function
|
|
2687
|
-
let n =
|
|
2688
|
-
return n[t] || (n[t] =
|
|
2671
|
+
function U(e, t) {
|
|
2672
|
+
let n = er[e] || (er[e] = Object.create(null));
|
|
2673
|
+
return n[t] || (n[t] = tr(e, t));
|
|
2689
2674
|
}
|
|
2690
|
-
function
|
|
2691
|
-
return
|
|
2675
|
+
function nr(e, t) {
|
|
2676
|
+
return $n(t) ? Xn(t, (t, n) => {
|
|
2692
2677
|
n ? e.icons[t] = n : e.missing.add(t);
|
|
2693
2678
|
}) : [];
|
|
2694
2679
|
}
|
|
2695
|
-
function
|
|
2680
|
+
function rr(e, t, n) {
|
|
2696
2681
|
try {
|
|
2697
2682
|
if (typeof n.body == "string") return e.icons[t] = { ...n }, !0;
|
|
2698
2683
|
} catch {}
|
|
2699
2684
|
return !1;
|
|
2700
2685
|
}
|
|
2701
|
-
var
|
|
2686
|
+
var ir = /^[a-z0-9]+(-[a-z0-9]+)*$/, W = (e, t, n, r = "") => {
|
|
2702
2687
|
let i = e.split(":");
|
|
2703
2688
|
if (e.slice(0, 1) === "@") {
|
|
2704
2689
|
if (i.length < 2 || i.length > 3) return null;
|
|
@@ -2711,7 +2696,7 @@ var er = /^[a-z0-9]+(-[a-z0-9]+)*$/, tr = (e, t, n, r = "") => {
|
|
|
2711
2696
|
prefix: n,
|
|
2712
2697
|
name: e
|
|
2713
2698
|
};
|
|
2714
|
-
return t && !
|
|
2699
|
+
return t && !ar(a) ? null : a;
|
|
2715
2700
|
}
|
|
2716
2701
|
let a = i[0], o = a.split("-");
|
|
2717
2702
|
if (o.length > 1) {
|
|
@@ -2720,7 +2705,7 @@ var er = /^[a-z0-9]+(-[a-z0-9]+)*$/, tr = (e, t, n, r = "") => {
|
|
|
2720
2705
|
prefix: o.shift(),
|
|
2721
2706
|
name: o.join("-")
|
|
2722
2707
|
};
|
|
2723
|
-
return t && !
|
|
2708
|
+
return t && !ar(e) ? null : e;
|
|
2724
2709
|
}
|
|
2725
2710
|
if (n && r === "") {
|
|
2726
2711
|
let e = {
|
|
@@ -2728,54 +2713,54 @@ var er = /^[a-z0-9]+(-[a-z0-9]+)*$/, tr = (e, t, n, r = "") => {
|
|
|
2728
2713
|
prefix: "",
|
|
2729
2714
|
name: a
|
|
2730
2715
|
};
|
|
2731
|
-
return t && !
|
|
2716
|
+
return t && !ar(e, n) ? null : e;
|
|
2732
2717
|
}
|
|
2733
2718
|
return null;
|
|
2734
|
-
},
|
|
2735
|
-
function
|
|
2736
|
-
return typeof e == "boolean" && (
|
|
2719
|
+
}, ar = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1, G = !1;
|
|
2720
|
+
function or(e) {
|
|
2721
|
+
return typeof e == "boolean" && (G = e), G;
|
|
2737
2722
|
}
|
|
2738
|
-
function
|
|
2739
|
-
let t = typeof e == "string" ?
|
|
2723
|
+
function sr(e) {
|
|
2724
|
+
let t = typeof e == "string" ? W(e, !0, G) : e;
|
|
2740
2725
|
if (t) {
|
|
2741
|
-
let e =
|
|
2726
|
+
let e = U(t.provider, t.prefix), n = t.name;
|
|
2742
2727
|
return e.icons[n] || (e.missing.has(n) ? null : void 0);
|
|
2743
2728
|
}
|
|
2744
2729
|
}
|
|
2745
|
-
function
|
|
2746
|
-
let n =
|
|
2730
|
+
function cr(e, t) {
|
|
2731
|
+
let n = W(e, !0, G);
|
|
2747
2732
|
if (!n) return !1;
|
|
2748
|
-
let r =
|
|
2749
|
-
return t ?
|
|
2733
|
+
let r = U(n.provider, n.prefix);
|
|
2734
|
+
return t ? rr(r, n.name, t) : (r.missing.add(n.name), !0);
|
|
2750
2735
|
}
|
|
2751
|
-
function
|
|
2736
|
+
function lr(e, t) {
|
|
2752
2737
|
if (typeof e != "object") return !1;
|
|
2753
|
-
if (typeof t != "string" && (t = e.provider || ""),
|
|
2738
|
+
if (typeof t != "string" && (t = e.provider || ""), G && !t && !e.prefix) {
|
|
2754
2739
|
let t = !1;
|
|
2755
|
-
return
|
|
2756
|
-
|
|
2740
|
+
return $n(e) && (e.prefix = "", Xn(e, (e, n) => {
|
|
2741
|
+
cr(e, n) && (t = !0);
|
|
2757
2742
|
})), t;
|
|
2758
2743
|
}
|
|
2759
2744
|
let n = e.prefix;
|
|
2760
|
-
return
|
|
2745
|
+
return ar({
|
|
2761
2746
|
prefix: n,
|
|
2762
2747
|
name: "a"
|
|
2763
|
-
}) ? !!
|
|
2748
|
+
}) ? !!nr(U(t, n), e) : !1;
|
|
2764
2749
|
}
|
|
2765
|
-
var
|
|
2750
|
+
var ur = Object.freeze({
|
|
2766
2751
|
width: null,
|
|
2767
2752
|
height: null
|
|
2768
|
-
}),
|
|
2769
|
-
...
|
|
2770
|
-
...
|
|
2771
|
-
}),
|
|
2772
|
-
function
|
|
2753
|
+
}), dr = Object.freeze({
|
|
2754
|
+
...ur,
|
|
2755
|
+
...H
|
|
2756
|
+
}), fr = /(-?[0-9.]*[0-9]+[0-9.]*)/g, pr = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
2757
|
+
function mr(e, t, n) {
|
|
2773
2758
|
if (t === 1) return e;
|
|
2774
2759
|
if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
|
|
2775
2760
|
if (typeof e != "string") return e;
|
|
2776
|
-
let r = e.split(
|
|
2761
|
+
let r = e.split(fr);
|
|
2777
2762
|
if (r === null || !r.length) return e;
|
|
2778
|
-
let i = [], a = r.shift(), o =
|
|
2763
|
+
let i = [], a = r.shift(), o = pr.test(a);
|
|
2779
2764
|
for (;;) {
|
|
2780
2765
|
if (o) {
|
|
2781
2766
|
let e = parseFloat(a);
|
|
@@ -2785,7 +2770,7 @@ function dr(e, t, n) {
|
|
|
2785
2770
|
o = !o;
|
|
2786
2771
|
}
|
|
2787
2772
|
}
|
|
2788
|
-
function
|
|
2773
|
+
function hr(e, t = "defs") {
|
|
2789
2774
|
let n = "", r = e.indexOf("<" + t);
|
|
2790
2775
|
for (; r >= 0;) {
|
|
2791
2776
|
let i = e.indexOf(">", r), a = e.indexOf("</" + t);
|
|
@@ -2799,20 +2784,20 @@ function fr(e, t = "defs") {
|
|
|
2799
2784
|
content: e
|
|
2800
2785
|
};
|
|
2801
2786
|
}
|
|
2802
|
-
function
|
|
2787
|
+
function gr(e, t) {
|
|
2803
2788
|
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
2804
2789
|
}
|
|
2805
|
-
function
|
|
2806
|
-
let r =
|
|
2807
|
-
return
|
|
2790
|
+
function _r(e, t, n) {
|
|
2791
|
+
let r = hr(e);
|
|
2792
|
+
return gr(r.defs, t + r.content + n);
|
|
2808
2793
|
}
|
|
2809
|
-
var
|
|
2810
|
-
function
|
|
2794
|
+
var vr = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
2795
|
+
function yr(e, t) {
|
|
2811
2796
|
let n = {
|
|
2812
|
-
...
|
|
2797
|
+
...Gn,
|
|
2813
2798
|
...e
|
|
2814
2799
|
}, r = {
|
|
2815
|
-
...
|
|
2800
|
+
...dr,
|
|
2816
2801
|
...t
|
|
2817
2802
|
}, i = {
|
|
2818
2803
|
left: n.left,
|
|
@@ -2833,12 +2818,12 @@ function gr(e, t) {
|
|
|
2833
2818
|
break;
|
|
2834
2819
|
case 3: s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
|
|
2835
2820
|
}
|
|
2836
|
-
o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a =
|
|
2821
|
+
o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a = _r(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
|
|
2837
2822
|
});
|
|
2838
2823
|
let o = r.width, s = r.height, c = i.width, l = i.height, u, d;
|
|
2839
|
-
o === null ? (d = s === null ? "1em" : s === "auto" ? l : s, u =
|
|
2824
|
+
o === null ? (d = s === null ? "1em" : s === "auto" ? l : s, u = mr(d, c / l)) : (u = o === "auto" ? c : o, d = s === null ? mr(u, l / c) : s === "auto" ? l : s);
|
|
2840
2825
|
let f = {}, p = (e, t) => {
|
|
2841
|
-
|
|
2826
|
+
vr(t) || (f[e] = t.toString());
|
|
2842
2827
|
};
|
|
2843
2828
|
p("width", u), p("height", d);
|
|
2844
2829
|
let m = [
|
|
@@ -2853,25 +2838,25 @@ function gr(e, t) {
|
|
|
2853
2838
|
body: a
|
|
2854
2839
|
};
|
|
2855
2840
|
}
|
|
2856
|
-
var
|
|
2857
|
-
function
|
|
2841
|
+
var br = /\sid="(\S+)"/g, xr = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16), Sr = 0;
|
|
2842
|
+
function Cr(e, t = xr) {
|
|
2858
2843
|
let n = [], r;
|
|
2859
|
-
for (; r =
|
|
2844
|
+
for (; r = br.exec(e);) n.push(r[1]);
|
|
2860
2845
|
if (!n.length) return e;
|
|
2861
2846
|
let i = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
2862
2847
|
return n.forEach((n) => {
|
|
2863
|
-
let r = typeof t == "function" ? t(n) : t + (
|
|
2848
|
+
let r = typeof t == "function" ? t(n) : t + (Sr++).toString(), a = n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2864
2849
|
e = e.replace(RegExp("([#;\"])(" + a + ")([\")]|\\.[a-z])", "g"), "$1" + r + i + "$3");
|
|
2865
2850
|
}), e = e.replace(new RegExp(i, "g"), ""), e;
|
|
2866
2851
|
}
|
|
2867
|
-
var
|
|
2868
|
-
function
|
|
2869
|
-
|
|
2852
|
+
var wr = Object.create(null);
|
|
2853
|
+
function Tr(e, t) {
|
|
2854
|
+
wr[e] = t;
|
|
2870
2855
|
}
|
|
2871
|
-
function
|
|
2872
|
-
return
|
|
2856
|
+
function Er(e) {
|
|
2857
|
+
return wr[e] || wr[""];
|
|
2873
2858
|
}
|
|
2874
|
-
function
|
|
2859
|
+
function Dr(e) {
|
|
2875
2860
|
let t;
|
|
2876
2861
|
if (typeof e.resources == "string") t = [e.resources];
|
|
2877
2862
|
else if (t = e.resources, !(t instanceof Array) || !t.length) return null;
|
|
@@ -2886,23 +2871,23 @@ function wr(e) {
|
|
|
2886
2871
|
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
2887
2872
|
};
|
|
2888
2873
|
}
|
|
2889
|
-
for (var
|
|
2890
|
-
|
|
2891
|
-
function
|
|
2892
|
-
let n =
|
|
2893
|
-
return n !== null && (
|
|
2874
|
+
for (var Or = Object.create(null), kr = ["https://api.simplesvg.com", "https://api.unisvg.com"], Ar = []; kr.length > 0;) Ar.push(kr.length === 1 || Math.random() > .5 ? kr.shift() : kr.pop());
|
|
2875
|
+
Or[""] = Dr({ resources: ["https://api.iconify.design"].concat(Ar) });
|
|
2876
|
+
function jr(e, t) {
|
|
2877
|
+
let n = Dr(t);
|
|
2878
|
+
return n !== null && (Or[e] = n, !0);
|
|
2894
2879
|
}
|
|
2895
|
-
function
|
|
2896
|
-
return
|
|
2880
|
+
function Mr(e) {
|
|
2881
|
+
return Or[e];
|
|
2897
2882
|
}
|
|
2898
|
-
var
|
|
2883
|
+
var Nr = (() => {
|
|
2899
2884
|
let e;
|
|
2900
2885
|
try {
|
|
2901
2886
|
if (e = fetch, typeof e == "function") return e;
|
|
2902
2887
|
} catch {}
|
|
2903
2888
|
})();
|
|
2904
|
-
function
|
|
2905
|
-
let n =
|
|
2889
|
+
function Pr(e, t) {
|
|
2890
|
+
let n = Mr(e);
|
|
2906
2891
|
if (!n) return 0;
|
|
2907
2892
|
let r;
|
|
2908
2893
|
if (!n.maxURL) r = 0;
|
|
@@ -2916,11 +2901,11 @@ function jr(e, t) {
|
|
|
2916
2901
|
}
|
|
2917
2902
|
return r;
|
|
2918
2903
|
}
|
|
2919
|
-
function
|
|
2904
|
+
function Fr(e) {
|
|
2920
2905
|
return e === 404;
|
|
2921
2906
|
}
|
|
2922
|
-
var
|
|
2923
|
-
let r = [], i =
|
|
2907
|
+
var Ir = (e, t, n) => {
|
|
2908
|
+
let r = [], i = Pr(e, t), a = "icons", o = {
|
|
2924
2909
|
type: a,
|
|
2925
2910
|
provider: e,
|
|
2926
2911
|
prefix: t,
|
|
@@ -2935,21 +2920,21 @@ var Nr = (e, t, n) => {
|
|
|
2935
2920
|
}, s = n.length), o.icons.push(n);
|
|
2936
2921
|
}), r.push(o), r;
|
|
2937
2922
|
};
|
|
2938
|
-
function
|
|
2923
|
+
function Lr(e) {
|
|
2939
2924
|
if (typeof e == "string") {
|
|
2940
|
-
let t =
|
|
2925
|
+
let t = Mr(e);
|
|
2941
2926
|
if (t) return t.path;
|
|
2942
2927
|
}
|
|
2943
2928
|
return "/";
|
|
2944
2929
|
}
|
|
2945
|
-
var
|
|
2946
|
-
prepare:
|
|
2930
|
+
var Rr = {
|
|
2931
|
+
prepare: Ir,
|
|
2947
2932
|
send: (e, t, n) => {
|
|
2948
|
-
if (!
|
|
2933
|
+
if (!Nr) {
|
|
2949
2934
|
n("abort", 424);
|
|
2950
2935
|
return;
|
|
2951
2936
|
}
|
|
2952
|
-
let r =
|
|
2937
|
+
let r = Lr(t.provider);
|
|
2953
2938
|
switch (t.type) {
|
|
2954
2939
|
case "icons": {
|
|
2955
2940
|
let e = t.prefix, n = t.icons.join(","), i = new URLSearchParams({ icons: n });
|
|
@@ -2966,11 +2951,11 @@ var Fr = {
|
|
|
2966
2951
|
return;
|
|
2967
2952
|
}
|
|
2968
2953
|
let i = 503;
|
|
2969
|
-
|
|
2954
|
+
Nr(e + r).then((e) => {
|
|
2970
2955
|
let t = e.status;
|
|
2971
2956
|
if (t !== 200) {
|
|
2972
2957
|
setTimeout(() => {
|
|
2973
|
-
n(
|
|
2958
|
+
n(Fr(t) ? "abort" : "next", t);
|
|
2974
2959
|
});
|
|
2975
2960
|
return;
|
|
2976
2961
|
}
|
|
@@ -2990,13 +2975,13 @@ var Fr = {
|
|
|
2990
2975
|
});
|
|
2991
2976
|
}
|
|
2992
2977
|
};
|
|
2993
|
-
function
|
|
2978
|
+
function zr(e, t) {
|
|
2994
2979
|
e.forEach((e) => {
|
|
2995
2980
|
let n = e.loaderCallbacks;
|
|
2996
2981
|
n && (e.loaderCallbacks = n.filter((e) => e.id !== t));
|
|
2997
2982
|
});
|
|
2998
2983
|
}
|
|
2999
|
-
function
|
|
2984
|
+
function Br(e) {
|
|
3000
2985
|
e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
3001
2986
|
e.pendingCallbacksFlag = !1;
|
|
3002
2987
|
let t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
|
|
@@ -3019,13 +3004,13 @@ function Lr(e) {
|
|
|
3019
3004
|
});
|
|
3020
3005
|
else return n = !0, !0;
|
|
3021
3006
|
return !1;
|
|
3022
|
-
}), a.pending.length !== o && (n ||
|
|
3007
|
+
}), a.pending.length !== o && (n || zr([e], t.id), t.callback(a.loaded.slice(0), a.missing.slice(0), a.pending.slice(0), t.abort));
|
|
3023
3008
|
});
|
|
3024
3009
|
}));
|
|
3025
3010
|
}
|
|
3026
|
-
var
|
|
3027
|
-
function
|
|
3028
|
-
let r =
|
|
3011
|
+
var Vr = 0;
|
|
3012
|
+
function Hr(e, t, n) {
|
|
3013
|
+
let r = Vr++, i = zr.bind(null, n, r);
|
|
3029
3014
|
if (!t.pending.length) return i;
|
|
3030
3015
|
let a = {
|
|
3031
3016
|
id: r,
|
|
@@ -3037,7 +3022,7 @@ function zr(e, t, n) {
|
|
|
3037
3022
|
(e.loaderCallbacks ||= []).push(a);
|
|
3038
3023
|
}), i;
|
|
3039
3024
|
}
|
|
3040
|
-
function
|
|
3025
|
+
function Ur(e) {
|
|
3041
3026
|
let t = {
|
|
3042
3027
|
loaded: [],
|
|
3043
3028
|
missing: [],
|
|
@@ -3052,7 +3037,7 @@ function Br(e) {
|
|
|
3052
3037
|
return e.forEach((e) => {
|
|
3053
3038
|
if (r.name === e.name && r.prefix === e.prefix && r.provider === e.provider) return;
|
|
3054
3039
|
r = e;
|
|
3055
|
-
let i = e.provider, a = e.prefix, o = e.name, s = n[i] || (n[i] = Object.create(null)), c = s[a] || (s[a] =
|
|
3040
|
+
let i = e.provider, a = e.prefix, o = e.name, s = n[i] || (n[i] = Object.create(null)), c = s[a] || (s[a] = U(i, a)), l;
|
|
3056
3041
|
l = o in c.icons ? t.loaded : a === "" || c.missing.has(o) ? t.missing : t.pending, l.push({
|
|
3057
3042
|
provider: i,
|
|
3058
3043
|
prefix: a,
|
|
@@ -3060,14 +3045,14 @@ function Br(e) {
|
|
|
3060
3045
|
});
|
|
3061
3046
|
}), t;
|
|
3062
3047
|
}
|
|
3063
|
-
function
|
|
3048
|
+
function Wr(e, t = !0, n = !1) {
|
|
3064
3049
|
let r = [];
|
|
3065
3050
|
return e.forEach((e) => {
|
|
3066
|
-
let i = typeof e == "string" ?
|
|
3051
|
+
let i = typeof e == "string" ? W(e, t, n) : e;
|
|
3067
3052
|
i && r.push(i);
|
|
3068
3053
|
}), r;
|
|
3069
3054
|
}
|
|
3070
|
-
var
|
|
3055
|
+
var Gr = {
|
|
3071
3056
|
resources: [],
|
|
3072
3057
|
index: 0,
|
|
3073
3058
|
timeout: 2e3,
|
|
@@ -3075,7 +3060,7 @@ var Hr = {
|
|
|
3075
3060
|
random: !1,
|
|
3076
3061
|
dataAfterTimeout: !1
|
|
3077
3062
|
};
|
|
3078
|
-
function
|
|
3063
|
+
function Kr(e, t, n, r) {
|
|
3079
3064
|
let i = e.random ? Math.floor(Math.random() * e.resources.length) : e.index, a;
|
|
3080
3065
|
if (e.random) {
|
|
3081
3066
|
let t = e.resources.slice(0);
|
|
@@ -3119,7 +3104,7 @@ function Ur(e, t, n, r) {
|
|
|
3119
3104
|
e.status === "pending" && (e.status = "aborted");
|
|
3120
3105
|
}), d = [];
|
|
3121
3106
|
}
|
|
3122
|
-
function
|
|
3107
|
+
function ee(t, n, r) {
|
|
3123
3108
|
let i = n !== "success";
|
|
3124
3109
|
switch (d = d.filter((e) => e !== t), s) {
|
|
3125
3110
|
case "pending": break;
|
|
@@ -3133,7 +3118,7 @@ function Ur(e, t, n, r) {
|
|
|
3133
3118
|
return;
|
|
3134
3119
|
}
|
|
3135
3120
|
if (i) {
|
|
3136
|
-
l = r, d.length || (a.length ?
|
|
3121
|
+
l = r, d.length || (a.length ? y() : _());
|
|
3137
3122
|
return;
|
|
3138
3123
|
}
|
|
3139
3124
|
if (p(), v(), !e.random) {
|
|
@@ -3144,7 +3129,7 @@ function Ur(e, t, n, r) {
|
|
|
3144
3129
|
e(r);
|
|
3145
3130
|
});
|
|
3146
3131
|
}
|
|
3147
|
-
function
|
|
3132
|
+
function y() {
|
|
3148
3133
|
if (s !== "pending") return;
|
|
3149
3134
|
p();
|
|
3150
3135
|
let r = a.shift();
|
|
@@ -3162,23 +3147,23 @@ function Ur(e, t, n, r) {
|
|
|
3162
3147
|
status: "pending",
|
|
3163
3148
|
resource: r,
|
|
3164
3149
|
callback: (e, t) => {
|
|
3165
|
-
|
|
3150
|
+
ee(i, e, t);
|
|
3166
3151
|
}
|
|
3167
3152
|
};
|
|
3168
|
-
d.push(i), c++, u = setTimeout(
|
|
3153
|
+
d.push(i), c++, u = setTimeout(y, e.rotate), n(r, t, i.callback);
|
|
3169
3154
|
}
|
|
3170
|
-
return setTimeout(
|
|
3155
|
+
return setTimeout(y), g;
|
|
3171
3156
|
}
|
|
3172
|
-
function
|
|
3157
|
+
function qr(e) {
|
|
3173
3158
|
let t = {
|
|
3174
|
-
...
|
|
3159
|
+
...Gr,
|
|
3175
3160
|
...e
|
|
3176
3161
|
}, n = [];
|
|
3177
3162
|
function r() {
|
|
3178
3163
|
n = n.filter((e) => e().status === "pending");
|
|
3179
3164
|
}
|
|
3180
3165
|
function i(e, i, a) {
|
|
3181
|
-
let o =
|
|
3166
|
+
let o = Kr(t, e, i, (e, t) => {
|
|
3182
3167
|
r(), a && a(e, t);
|
|
3183
3168
|
});
|
|
3184
3169
|
return n.push(o), o;
|
|
@@ -3196,53 +3181,53 @@ function Wr(e) {
|
|
|
3196
3181
|
cleanup: r
|
|
3197
3182
|
};
|
|
3198
3183
|
}
|
|
3199
|
-
function
|
|
3200
|
-
var
|
|
3201
|
-
function
|
|
3202
|
-
if (!
|
|
3203
|
-
let t =
|
|
3184
|
+
function Jr() {}
|
|
3185
|
+
var Yr = Object.create(null);
|
|
3186
|
+
function Xr(e) {
|
|
3187
|
+
if (!Yr[e]) {
|
|
3188
|
+
let t = Mr(e);
|
|
3204
3189
|
if (!t) return;
|
|
3205
|
-
|
|
3190
|
+
Yr[e] = {
|
|
3206
3191
|
config: t,
|
|
3207
|
-
redundancy:
|
|
3192
|
+
redundancy: qr(t)
|
|
3208
3193
|
};
|
|
3209
3194
|
}
|
|
3210
|
-
return
|
|
3195
|
+
return Yr[e];
|
|
3211
3196
|
}
|
|
3212
|
-
function
|
|
3197
|
+
function Zr(e, t, n) {
|
|
3213
3198
|
let r, i;
|
|
3214
3199
|
if (typeof e == "string") {
|
|
3215
|
-
let t =
|
|
3216
|
-
if (!t) return n(void 0, 424),
|
|
3200
|
+
let t = Er(e);
|
|
3201
|
+
if (!t) return n(void 0, 424), Jr;
|
|
3217
3202
|
i = t.send;
|
|
3218
|
-
let a =
|
|
3203
|
+
let a = Xr(e);
|
|
3219
3204
|
a && (r = a.redundancy);
|
|
3220
3205
|
} else {
|
|
3221
|
-
let t =
|
|
3206
|
+
let t = Dr(e);
|
|
3222
3207
|
if (t) {
|
|
3223
|
-
r =
|
|
3224
|
-
let n =
|
|
3208
|
+
r = qr(t);
|
|
3209
|
+
let n = Er(e.resources ? e.resources[0] : "");
|
|
3225
3210
|
n && (i = n.send);
|
|
3226
3211
|
}
|
|
3227
3212
|
}
|
|
3228
|
-
return !r || !i ? (n(void 0, 424),
|
|
3213
|
+
return !r || !i ? (n(void 0, 424), Jr) : r.query(t, i, n)().abort;
|
|
3229
3214
|
}
|
|
3230
|
-
function
|
|
3231
|
-
function
|
|
3215
|
+
function Qr() {}
|
|
3216
|
+
function $r(e) {
|
|
3232
3217
|
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
3233
|
-
e.iconsLoaderFlag = !1,
|
|
3218
|
+
e.iconsLoaderFlag = !1, Br(e);
|
|
3234
3219
|
}));
|
|
3235
3220
|
}
|
|
3236
|
-
function
|
|
3221
|
+
function ei(e) {
|
|
3237
3222
|
let t = [], n = [];
|
|
3238
3223
|
return e.forEach((e) => {
|
|
3239
|
-
(e.match(
|
|
3224
|
+
(e.match(ir) ? t : n).push(e);
|
|
3240
3225
|
}), {
|
|
3241
3226
|
valid: t,
|
|
3242
3227
|
invalid: n
|
|
3243
3228
|
};
|
|
3244
3229
|
}
|
|
3245
|
-
function
|
|
3230
|
+
function K(e, t, n) {
|
|
3246
3231
|
function r() {
|
|
3247
3232
|
let n = e.pendingIcons;
|
|
3248
3233
|
t.forEach((t) => {
|
|
@@ -3250,38 +3235,38 @@ function q(e, t, n) {
|
|
|
3250
3235
|
});
|
|
3251
3236
|
}
|
|
3252
3237
|
if (n && typeof n == "object") try {
|
|
3253
|
-
if (!
|
|
3238
|
+
if (!nr(e, n).length) {
|
|
3254
3239
|
r();
|
|
3255
3240
|
return;
|
|
3256
3241
|
}
|
|
3257
3242
|
} catch (e) {
|
|
3258
3243
|
console.error(e);
|
|
3259
3244
|
}
|
|
3260
|
-
r(),
|
|
3245
|
+
r(), $r(e);
|
|
3261
3246
|
}
|
|
3262
|
-
function
|
|
3247
|
+
function ti(e, t) {
|
|
3263
3248
|
e instanceof Promise ? e.then((e) => {
|
|
3264
3249
|
t(e);
|
|
3265
3250
|
}).catch(() => {
|
|
3266
3251
|
t(null);
|
|
3267
3252
|
}) : t(e);
|
|
3268
3253
|
}
|
|
3269
|
-
function
|
|
3254
|
+
function ni(e, t) {
|
|
3270
3255
|
e.iconsToLoad = e.iconsToLoad ? e.iconsToLoad.concat(t).sort() : t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
|
3271
3256
|
e.iconsQueueFlag = !1;
|
|
3272
3257
|
let { provider: t, prefix: n } = e, r = e.iconsToLoad;
|
|
3273
3258
|
if (delete e.iconsToLoad, !r || !r.length) return;
|
|
3274
3259
|
let i = e.loadIcon;
|
|
3275
3260
|
if (e.loadIcons && (r.length > 1 || !i)) {
|
|
3276
|
-
|
|
3277
|
-
|
|
3261
|
+
ti(e.loadIcons(r, n, t), (t) => {
|
|
3262
|
+
K(e, r, t);
|
|
3278
3263
|
});
|
|
3279
3264
|
return;
|
|
3280
3265
|
}
|
|
3281
3266
|
if (i) {
|
|
3282
3267
|
r.forEach((r) => {
|
|
3283
|
-
|
|
3284
|
-
|
|
3268
|
+
ti(i(r, n, t), (t) => {
|
|
3269
|
+
K(e, [r], t ? {
|
|
3285
3270
|
prefix: n,
|
|
3286
3271
|
icons: { [r]: t }
|
|
3287
3272
|
} : null);
|
|
@@ -3289,26 +3274,26 @@ function $r(e, t) {
|
|
|
3289
3274
|
});
|
|
3290
3275
|
return;
|
|
3291
3276
|
}
|
|
3292
|
-
let { valid: a, invalid: o } =
|
|
3293
|
-
if (o.length &&
|
|
3294
|
-
let s = n.match(
|
|
3277
|
+
let { valid: a, invalid: o } = ei(r);
|
|
3278
|
+
if (o.length && K(e, o, null), !a.length) return;
|
|
3279
|
+
let s = n.match(ir) ? Er(t) : null;
|
|
3295
3280
|
if (!s) {
|
|
3296
|
-
|
|
3281
|
+
K(e, a, null);
|
|
3297
3282
|
return;
|
|
3298
3283
|
}
|
|
3299
3284
|
s.prepare(t, n, a).forEach((n) => {
|
|
3300
|
-
|
|
3301
|
-
|
|
3285
|
+
Zr(t, n, (t) => {
|
|
3286
|
+
K(e, n.icons, t);
|
|
3302
3287
|
});
|
|
3303
3288
|
});
|
|
3304
3289
|
}));
|
|
3305
3290
|
}
|
|
3306
|
-
var
|
|
3307
|
-
let n =
|
|
3291
|
+
var ri = (e, t) => {
|
|
3292
|
+
let n = Ur(Wr(e, !0, or()));
|
|
3308
3293
|
if (!n.pending.length) {
|
|
3309
3294
|
let e = !0;
|
|
3310
3295
|
return t && setTimeout(() => {
|
|
3311
|
-
e && t(n.loaded, n.missing, n.pending,
|
|
3296
|
+
e && t(n.loaded, n.missing, n.pending, Qr);
|
|
3312
3297
|
}), () => {
|
|
3313
3298
|
e = !1;
|
|
3314
3299
|
};
|
|
@@ -3317,28 +3302,28 @@ var ei = (e, t) => {
|
|
|
3317
3302
|
return n.pending.forEach((e) => {
|
|
3318
3303
|
let { provider: t, prefix: n } = e;
|
|
3319
3304
|
if (n === o && t === a) return;
|
|
3320
|
-
a = t, o = n, i.push(
|
|
3305
|
+
a = t, o = n, i.push(U(t, n));
|
|
3321
3306
|
let s = r[t] || (r[t] = Object.create(null));
|
|
3322
3307
|
s[n] || (s[n] = []);
|
|
3323
3308
|
}), n.pending.forEach((e) => {
|
|
3324
|
-
let { provider: t, prefix: n, name: i } = e, a =
|
|
3309
|
+
let { provider: t, prefix: n, name: i } = e, a = U(t, n), o = a.pendingIcons ||= /* @__PURE__ */ new Set();
|
|
3325
3310
|
o.has(i) || (o.add(i), r[t][n].push(i));
|
|
3326
3311
|
}), i.forEach((e) => {
|
|
3327
3312
|
let t = r[e.provider][e.prefix];
|
|
3328
|
-
t.length &&
|
|
3329
|
-
}), t ?
|
|
3313
|
+
t.length && ni(e, t);
|
|
3314
|
+
}), t ? Hr(t, n, i) : Qr;
|
|
3330
3315
|
};
|
|
3331
|
-
function
|
|
3316
|
+
function ii(e, t) {
|
|
3332
3317
|
let n = { ...e };
|
|
3333
3318
|
for (let e in t) {
|
|
3334
3319
|
let r = t[e], i = typeof r;
|
|
3335
|
-
e in
|
|
3320
|
+
e in ur ? (r === null || r && (i === "string" || i === "number")) && (n[e] = r) : i === typeof n[e] && (n[e] = e === "rotate" ? r % 4 : r);
|
|
3336
3321
|
}
|
|
3337
3322
|
return n;
|
|
3338
3323
|
}
|
|
3339
|
-
var
|
|
3340
|
-
function
|
|
3341
|
-
t.split(
|
|
3324
|
+
var ai = /[\s,]+/;
|
|
3325
|
+
function oi(e, t) {
|
|
3326
|
+
t.split(ai).forEach((t) => {
|
|
3342
3327
|
switch (t.trim()) {
|
|
3343
3328
|
case "horizontal":
|
|
3344
3329
|
e.hFlip = !0;
|
|
@@ -3347,7 +3332,7 @@ function ri(e, t) {
|
|
|
3347
3332
|
}
|
|
3348
3333
|
});
|
|
3349
3334
|
}
|
|
3350
|
-
function
|
|
3335
|
+
function si(e, t = 0) {
|
|
3351
3336
|
let n = e.replace(/^-?[0-9.]*/, "");
|
|
3352
3337
|
function r(e) {
|
|
3353
3338
|
for (; e < 0;) e += 4;
|
|
@@ -3372,63 +3357,63 @@ function ii(e, t = 0) {
|
|
|
3372
3357
|
}
|
|
3373
3358
|
return t;
|
|
3374
3359
|
}
|
|
3375
|
-
function
|
|
3360
|
+
function ci(e, t) {
|
|
3376
3361
|
let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
|
|
3377
3362
|
for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
|
|
3378
3363
|
return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
|
|
3379
3364
|
}
|
|
3380
|
-
function
|
|
3365
|
+
function li(e) {
|
|
3381
3366
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
3382
3367
|
}
|
|
3383
|
-
function
|
|
3384
|
-
return "data:image/svg+xml," +
|
|
3368
|
+
function ui(e) {
|
|
3369
|
+
return "data:image/svg+xml," + li(e);
|
|
3385
3370
|
}
|
|
3386
|
-
function
|
|
3387
|
-
return "url(\"" +
|
|
3371
|
+
function di(e) {
|
|
3372
|
+
return "url(\"" + ui(e) + "\")";
|
|
3388
3373
|
}
|
|
3389
|
-
var
|
|
3390
|
-
function
|
|
3374
|
+
var q;
|
|
3375
|
+
function fi() {
|
|
3391
3376
|
try {
|
|
3392
|
-
|
|
3377
|
+
q = window.trustedTypes.createPolicy("iconify", { createHTML: (e) => e });
|
|
3393
3378
|
} catch {
|
|
3394
|
-
|
|
3379
|
+
q = null;
|
|
3395
3380
|
}
|
|
3396
3381
|
}
|
|
3397
|
-
function
|
|
3398
|
-
return
|
|
3382
|
+
function pi(e) {
|
|
3383
|
+
return q === void 0 && fi(), q ? q.createHTML(e) : e;
|
|
3399
3384
|
}
|
|
3400
|
-
var
|
|
3401
|
-
...
|
|
3385
|
+
var mi = {
|
|
3386
|
+
...dr,
|
|
3402
3387
|
inline: !1
|
|
3403
|
-
},
|
|
3388
|
+
}, hi = {
|
|
3404
3389
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3405
3390
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
3406
3391
|
"aria-hidden": !0,
|
|
3407
3392
|
role: "img"
|
|
3408
|
-
},
|
|
3393
|
+
}, gi = { display: "inline-block" }, _i = { backgroundColor: "currentColor" }, vi = { backgroundColor: "transparent" }, yi = {
|
|
3409
3394
|
Image: "var(--svg)",
|
|
3410
3395
|
Repeat: "no-repeat",
|
|
3411
3396
|
Size: "100% 100%"
|
|
3412
|
-
},
|
|
3413
|
-
WebkitMask:
|
|
3414
|
-
mask:
|
|
3415
|
-
background:
|
|
3397
|
+
}, bi = {
|
|
3398
|
+
WebkitMask: _i,
|
|
3399
|
+
mask: _i,
|
|
3400
|
+
background: vi
|
|
3416
3401
|
};
|
|
3417
|
-
for (let e in
|
|
3418
|
-
let t =
|
|
3419
|
-
for (let n in
|
|
3402
|
+
for (let e in bi) {
|
|
3403
|
+
let t = bi[e];
|
|
3404
|
+
for (let n in yi) t[e + n] = yi[n];
|
|
3420
3405
|
}
|
|
3421
|
-
var
|
|
3422
|
-
...
|
|
3406
|
+
var xi = {
|
|
3407
|
+
...mi,
|
|
3423
3408
|
inline: !0
|
|
3424
3409
|
};
|
|
3425
|
-
function
|
|
3410
|
+
function Si(e) {
|
|
3426
3411
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
3427
3412
|
}
|
|
3428
|
-
var
|
|
3429
|
-
let r = t.inline ?
|
|
3413
|
+
var Ci = (e, t, n) => {
|
|
3414
|
+
let r = t.inline ? xi : mi, i = ii(r, t), a = t.mode || "svg", o = {}, s = t.style || {}, c = { ...a === "svg" ? hi : {} };
|
|
3430
3415
|
if (n) {
|
|
3431
|
-
let e =
|
|
3416
|
+
let e = W(n, !1, !0);
|
|
3432
3417
|
if (e) {
|
|
3433
3418
|
let t = ["iconify"];
|
|
3434
3419
|
for (let n of ["provider", "prefix"]) e[n] && t.push("iconify--" + e[n]);
|
|
@@ -3457,13 +3442,13 @@ var bi = (e, t, n) => {
|
|
|
3457
3442
|
i[e] = n === !0 || n === "true" || n === 1;
|
|
3458
3443
|
break;
|
|
3459
3444
|
case "flip":
|
|
3460
|
-
typeof n == "string" &&
|
|
3445
|
+
typeof n == "string" && oi(i, n);
|
|
3461
3446
|
break;
|
|
3462
3447
|
case "color":
|
|
3463
3448
|
o.color = n;
|
|
3464
3449
|
break;
|
|
3465
3450
|
case "rotate":
|
|
3466
|
-
typeof n == "string" ? i[e] =
|
|
3451
|
+
typeof n == "string" ? i[e] = si(n) : typeof n == "number" && (i[e] = n);
|
|
3467
3452
|
break;
|
|
3468
3453
|
case "ariaHidden":
|
|
3469
3454
|
case "aria-hidden":
|
|
@@ -3472,37 +3457,37 @@ var bi = (e, t, n) => {
|
|
|
3472
3457
|
default: r[e] === void 0 && (c[e] = n);
|
|
3473
3458
|
}
|
|
3474
3459
|
}
|
|
3475
|
-
let l =
|
|
3460
|
+
let l = yr(e, i), u = l.attributes;
|
|
3476
3461
|
if (i.inline && (o.verticalAlign = "-0.125em"), a === "svg") {
|
|
3477
3462
|
c.style = {
|
|
3478
3463
|
...o,
|
|
3479
3464
|
...s
|
|
3480
3465
|
}, Object.assign(c, u);
|
|
3481
3466
|
let e = 0, n = t.id;
|
|
3482
|
-
return typeof n == "string" && (n = n.replace(/-/g, "_")), c.dangerouslySetInnerHTML = { __html:
|
|
3467
|
+
return typeof n == "string" && (n = n.replace(/-/g, "_")), c.dangerouslySetInnerHTML = { __html: pi(Cr(l.body, n ? () => n + "ID" + e++ : "iconifyReact")) }, _e("svg", c);
|
|
3483
3468
|
}
|
|
3484
|
-
let { body: d, width: f, height: p } = e, m = a === "mask" || a !== "bg" && d.indexOf("currentColor") !== -1, h =
|
|
3469
|
+
let { body: d, width: f, height: p } = e, m = a === "mask" || a !== "bg" && d.indexOf("currentColor") !== -1, h = ci(d, {
|
|
3485
3470
|
...u,
|
|
3486
3471
|
width: f + "",
|
|
3487
3472
|
height: p + ""
|
|
3488
3473
|
});
|
|
3489
3474
|
return c.style = {
|
|
3490
3475
|
...o,
|
|
3491
|
-
"--svg":
|
|
3492
|
-
width:
|
|
3493
|
-
height:
|
|
3494
|
-
...
|
|
3495
|
-
...m ?
|
|
3476
|
+
"--svg": di(h),
|
|
3477
|
+
width: Si(u.width),
|
|
3478
|
+
height: Si(u.height),
|
|
3479
|
+
...gi,
|
|
3480
|
+
...m ? _i : vi,
|
|
3496
3481
|
...s
|
|
3497
|
-
},
|
|
3482
|
+
}, _e("span", c);
|
|
3498
3483
|
};
|
|
3499
|
-
if (
|
|
3484
|
+
if (or(!0), Tr("", Rr), typeof document < "u" && typeof window < "u") {
|
|
3500
3485
|
let e = window;
|
|
3501
3486
|
if (e.IconifyPreload !== void 0) {
|
|
3502
3487
|
let t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
|
|
3503
3488
|
typeof t == "object" && t && (t instanceof Array ? t : [t]).forEach((e) => {
|
|
3504
3489
|
try {
|
|
3505
|
-
(typeof e != "object" || !e || e instanceof Array || typeof e.icons != "object" || typeof e.prefix != "string" || !
|
|
3490
|
+
(typeof e != "object" || !e || e instanceof Array || typeof e.icons != "object" || typeof e.prefix != "string" || !lr(e)) && console.error(n);
|
|
3506
3491
|
} catch {
|
|
3507
3492
|
console.error(n);
|
|
3508
3493
|
}
|
|
@@ -3515,15 +3500,15 @@ if (rr(!0), Sr("", Fr), typeof document < "u" && typeof window < "u") {
|
|
|
3515
3500
|
try {
|
|
3516
3501
|
let r = t[e];
|
|
3517
3502
|
if (typeof r != "object" || !r || r.resources === void 0) continue;
|
|
3518
|
-
|
|
3503
|
+
jr(e, r) || console.error(n);
|
|
3519
3504
|
} catch {
|
|
3520
3505
|
console.error(n);
|
|
3521
3506
|
}
|
|
3522
3507
|
}
|
|
3523
3508
|
}
|
|
3524
3509
|
}
|
|
3525
|
-
function
|
|
3526
|
-
let [t, n] =
|
|
3510
|
+
function wi(e) {
|
|
3511
|
+
let [t, n] = C(!!e.ssr), [r, i] = C({});
|
|
3527
3512
|
function a(t) {
|
|
3528
3513
|
if (t) {
|
|
3529
3514
|
let t = e.icon;
|
|
@@ -3531,7 +3516,7 @@ function xi(e) {
|
|
|
3531
3516
|
name: "",
|
|
3532
3517
|
data: t
|
|
3533
3518
|
};
|
|
3534
|
-
let n =
|
|
3519
|
+
let n = sr(t);
|
|
3535
3520
|
if (n) return {
|
|
3536
3521
|
name: t,
|
|
3537
3522
|
data: n
|
|
@@ -3539,7 +3524,7 @@ function xi(e) {
|
|
|
3539
3524
|
}
|
|
3540
3525
|
return { name: "" };
|
|
3541
3526
|
}
|
|
3542
|
-
let [o, s] =
|
|
3527
|
+
let [o, s] = C(a(!!e.ssr));
|
|
3543
3528
|
function c() {
|
|
3544
3529
|
let e = r.callback;
|
|
3545
3530
|
e && (e(), i({}));
|
|
@@ -3557,487 +3542,491 @@ function xi(e) {
|
|
|
3557
3542
|
});
|
|
3558
3543
|
return;
|
|
3559
3544
|
}
|
|
3560
|
-
let r =
|
|
3545
|
+
let r = sr(n);
|
|
3561
3546
|
if (l({
|
|
3562
3547
|
name: n,
|
|
3563
3548
|
data: r
|
|
3564
3549
|
})) {
|
|
3565
3550
|
if (r === void 0) {
|
|
3566
|
-
let e =
|
|
3551
|
+
let e = ri([n], u);
|
|
3567
3552
|
i({ callback: e });
|
|
3568
3553
|
} else r && ((t = e.onLoad) == null || t.call(e, n));
|
|
3569
3554
|
}
|
|
3570
3555
|
}
|
|
3571
|
-
|
|
3556
|
+
x(() => (n(!0), c), []), x(() => {
|
|
3572
3557
|
t && u();
|
|
3573
3558
|
}, [e.icon, t]);
|
|
3574
3559
|
let { name: d, data: f } = o;
|
|
3575
|
-
return f ?
|
|
3576
|
-
...
|
|
3560
|
+
return f ? Ci({
|
|
3561
|
+
...Gn,
|
|
3577
3562
|
...f
|
|
3578
|
-
}, e, d) : e.children ? e.children : e.fallback ? e.fallback :
|
|
3563
|
+
}, e, d) : e.children ? e.children : e.fallback ? e.fallback : _e("span", {});
|
|
3579
3564
|
}
|
|
3580
|
-
var
|
|
3565
|
+
var Ti = ve((e, t) => wi({
|
|
3581
3566
|
...e,
|
|
3582
3567
|
_ref: t
|
|
3583
3568
|
}));
|
|
3584
|
-
|
|
3569
|
+
ve((e, t) => wi({
|
|
3585
3570
|
inline: !0,
|
|
3586
3571
|
...e,
|
|
3587
3572
|
_ref: t
|
|
3588
3573
|
}));
|
|
3589
3574
|
//#endregion
|
|
3590
3575
|
//#region node_modules/@iconify-icons/heroicons-outline/data/x/x-mark.js
|
|
3591
|
-
var
|
|
3576
|
+
var Ei = {
|
|
3592
3577
|
width: 24,
|
|
3593
3578
|
height: 24,
|
|
3594
3579
|
hidden: !0,
|
|
3595
3580
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"m4.5 19.5l15-15m-15 0l15 15\"/>"
|
|
3596
|
-
},
|
|
3581
|
+
}, Di = {
|
|
3597
3582
|
width: 24,
|
|
3598
3583
|
height: 24,
|
|
3599
3584
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 4v16m8-8H4\"/>"
|
|
3600
|
-
},
|
|
3585
|
+
}, Oi = {
|
|
3601
3586
|
width: 24,
|
|
3602
3587
|
height: 24,
|
|
3603
3588
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 1 1 3.536 3.536L6.5 21.036H3v-3.572z\"/>"
|
|
3604
|
-
},
|
|
3589
|
+
}, ki = {
|
|
3605
3590
|
width: 24,
|
|
3606
3591
|
height: 24,
|
|
3607
3592
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m19 7l-.867 12.142A2 2 0 0 1 16.138 21H7.862a2 2 0 0 1-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v3M4 7h16\"/>"
|
|
3608
|
-
},
|
|
3593
|
+
}, Ai = {
|
|
3609
3594
|
width: 24,
|
|
3610
3595
|
height: 24,
|
|
3611
3596
|
hidden: !0,
|
|
3612
3597
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M4.5 12c0-1.232.046-2.453.138-3.662a4.006 4.006 0 0 1 3.7-3.7a48.678 48.678 0 0 1 7.324 0a4.006 4.006 0 0 1 3.7 3.7c.017.22.032.441.046.662M4.5 12l-3-3m3 3l3-3m12 3c0 1.232-.046 2.453-.138 3.662a4.006 4.006 0 0 1-3.7 3.7a48.657 48.657 0 0 1-7.324 0a4.006 4.006 0 0 1-3.7-3.7c-.017-.22-.032-.441-.046-.662M19.5 12l-3 3m3-3l3 3\"/>"
|
|
3613
|
-
},
|
|
3598
|
+
}, ji = {
|
|
3614
3599
|
width: 24,
|
|
3615
3600
|
height: 24,
|
|
3616
3601
|
hidden: !0,
|
|
3617
3602
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192c.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z\"/>"
|
|
3618
|
-
},
|
|
3603
|
+
}, Mi = {
|
|
3619
3604
|
width: 24,
|
|
3620
3605
|
height: 24,
|
|
3621
3606
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 7v8a2 2 0 0 0 2 2h6M8 7V5a2 2 0 0 1 2-2h4.586a1 1 0 0 1 .707.293l4.414 4.414a1 1 0 0 1 .293.707V15a2 2 0 0 1-2 2h-2M8 7H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-2\"/>"
|
|
3622
|
-
},
|
|
3607
|
+
}, Ni = {
|
|
3623
3608
|
width: 24,
|
|
3624
3609
|
height: 24,
|
|
3625
3610
|
body: "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37c.996.608 2.296.07 2.572-1.065\"/><path d=\"M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0\"/></g>"
|
|
3626
|
-
},
|
|
3611
|
+
}, Pi = {
|
|
3627
3612
|
width: 24,
|
|
3628
3613
|
height: 24,
|
|
3629
3614
|
hidden: !0,
|
|
3630
3615
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M12 3c2.755 0 5.455.232 8.083.678c.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z\"/>"
|
|
3631
|
-
},
|
|
3616
|
+
}, Fi = {
|
|
3632
3617
|
width: 24,
|
|
3633
3618
|
height: 24,
|
|
3634
3619
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8.684 13.342C8.886 12.938 9 12.482 9 12s-.114-.938-.316-1.342m0 2.684a3 3 0 1 1 0-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 1 0 5.367-2.684a3 3 0 0 0-5.367 2.684m0 9.316a3 3 0 1 0 5.368 2.684a3 3 0 0 0-5.368-2.684\"/>"
|
|
3635
|
-
},
|
|
3620
|
+
}, Ii = {
|
|
3636
3621
|
width: 24,
|
|
3637
3622
|
height: 24,
|
|
3638
3623
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m5 15l7-7l7 7\"/>"
|
|
3639
|
-
},
|
|
3624
|
+
}, Li = {
|
|
3640
3625
|
width: 24,
|
|
3641
3626
|
height: 24,
|
|
3642
3627
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m19 9l-7 7l-7-7\"/>"
|
|
3643
|
-
},
|
|
3628
|
+
}, Ri = {
|
|
3644
3629
|
width: 24,
|
|
3645
3630
|
height: 24,
|
|
3646
3631
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m15 19l-7-7l7-7\"/>"
|
|
3647
|
-
},
|
|
3632
|
+
}, zi = {
|
|
3648
3633
|
width: 24,
|
|
3649
3634
|
height: 24,
|
|
3650
3635
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m9 5l7 7l-7 7\"/>"
|
|
3651
|
-
},
|
|
3636
|
+
}, Bi = {
|
|
3652
3637
|
width: 24,
|
|
3653
3638
|
height: 24,
|
|
3654
3639
|
hidden: !0,
|
|
3655
3640
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"m21 21l-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z\"/>"
|
|
3656
|
-
},
|
|
3641
|
+
}, Vi = {
|
|
3657
3642
|
width: 24,
|
|
3658
3643
|
height: 24,
|
|
3659
3644
|
hidden: !0,
|
|
3660
3645
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5\"/>"
|
|
3661
|
-
},
|
|
3646
|
+
}, Hi = {
|
|
3662
3647
|
width: 24,
|
|
3663
3648
|
height: 24,
|
|
3664
3649
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m9 12l2 2l4-4m6 2a9 9 0 1 1-18 0a9 9 0 0 1 18 0\"/>"
|
|
3665
|
-
},
|
|
3650
|
+
}, Ui = {
|
|
3666
3651
|
width: 24,
|
|
3667
3652
|
height: 24,
|
|
3668
3653
|
hidden: !0,
|
|
3669
3654
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M12 10.5v3.75m-9.303 3.376C1.83 19.126 2.914 21 4.645 21h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 4.88c-.866-1.501-3.032-1.501-3.898 0L2.697 17.626ZM12 17.25h.007v.008H12v-.008Z\"/>"
|
|
3670
|
-
},
|
|
3655
|
+
}, Wi = {
|
|
3671
3656
|
width: 24,
|
|
3672
3657
|
height: 24,
|
|
3673
3658
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 8v4m0 4h.01M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0\"/>"
|
|
3674
|
-
},
|
|
3659
|
+
}, Gi = {
|
|
3675
3660
|
width: 24,
|
|
3676
3661
|
height: 24,
|
|
3677
3662
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143z\"/>"
|
|
3678
|
-
},
|
|
3663
|
+
}, Ki = {
|
|
3679
3664
|
width: 24,
|
|
3680
3665
|
height: 24,
|
|
3681
3666
|
body: "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0\"/><path d=\"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7s-8.268-2.943-9.542-7\"/></g>"
|
|
3682
|
-
},
|
|
3667
|
+
}, qi = {
|
|
3683
3668
|
width: 24,
|
|
3684
3669
|
height: 24,
|
|
3685
3670
|
hidden: !0,
|
|
3686
3671
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M3.98 8.223A10.477 10.477 0 0 0 1.934 12c1.292 4.338 5.31 7.5 10.066 7.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 0 1-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88\"/>"
|
|
3687
|
-
},
|
|
3672
|
+
}, Ji = {
|
|
3688
3673
|
width: 24,
|
|
3689
3674
|
height: 24,
|
|
3690
3675
|
hidden: !0,
|
|
3691
3676
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75\"/>"
|
|
3692
|
-
},
|
|
3677
|
+
}, Yi = {
|
|
3693
3678
|
width: 24,
|
|
3694
3679
|
height: 24,
|
|
3695
3680
|
hidden: !0,
|
|
3696
3681
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25\"/>"
|
|
3697
|
-
},
|
|
3682
|
+
}, Xi = {
|
|
3698
3683
|
width: 24,
|
|
3699
3684
|
height: 24,
|
|
3700
3685
|
hidden: !0,
|
|
3701
3686
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m0 0h7.5\"/>"
|
|
3702
|
-
},
|
|
3687
|
+
}, Zi = {
|
|
3703
3688
|
width: 24,
|
|
3704
3689
|
height: 24,
|
|
3705
3690
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M13.828 10.172a4 4 0 0 0-5.656 0l-4 4a4 4 0 1 0 5.656 5.656l1.102-1.101m-.758-4.899a4 4 0 0 0 5.656 0l4-4a4 4 0 0 0-5.656-5.656l-1.1 1.1\"/>"
|
|
3706
|
-
},
|
|
3691
|
+
}, Qi = {
|
|
3707
3692
|
width: 24,
|
|
3708
3693
|
height: 24,
|
|
3709
3694
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m14 5l7 7m0 0l-7 7m7-7H3\"/>"
|
|
3710
|
-
},
|
|
3695
|
+
}, $i = {
|
|
3711
3696
|
width: 24,
|
|
3712
3697
|
height: 24,
|
|
3713
3698
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 1 1-8 0a4 4 0 0 1 8 0\"/>"
|
|
3714
|
-
},
|
|
3699
|
+
}, ea = {
|
|
3715
3700
|
width: 24,
|
|
3716
3701
|
height: 24,
|
|
3717
3702
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20.354 15.354A9 9 0 0 1 8.646 3.646A9.003 9.003 0 0 0 12 21a9 9 0 0 0 8.354-5.646\"/>"
|
|
3718
|
-
},
|
|
3703
|
+
}, ta = {
|
|
3719
3704
|
width: 24,
|
|
3720
3705
|
height: 24,
|
|
3721
3706
|
hidden: !0,
|
|
3722
3707
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M6.75 12a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0Zm6 0a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0Zm6 0a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0Z\"/>"
|
|
3723
|
-
},
|
|
3708
|
+
}, na = {
|
|
3724
3709
|
width: 24,
|
|
3725
3710
|
height: 24,
|
|
3726
3711
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2\"/>"
|
|
3727
|
-
},
|
|
3712
|
+
}, ra = {
|
|
3728
3713
|
width: 24,
|
|
3729
3714
|
height: 24,
|
|
3730
3715
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18s-3.332.477-4.5 1.253\"/>"
|
|
3731
|
-
},
|
|
3716
|
+
}, ia = {
|
|
3732
3717
|
width: 24,
|
|
3733
3718
|
height: 24,
|
|
3734
3719
|
hidden: !0,
|
|
3735
3720
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M17.25 6.75L22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3l-4.5 16.5\"/>"
|
|
3736
|
-
},
|
|
3721
|
+
}, aa = {
|
|
3737
3722
|
width: 24,
|
|
3738
3723
|
height: 24,
|
|
3739
3724
|
hidden: !0,
|
|
3740
3725
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M4.098 19.902a3.75 3.75 0 0 0 5.304 0l6.401-6.402M6.75 21A3.75 3.75 0 0 1 3 17.25V4.125C3 3.504 3.504 3 4.125 3h5.25c.621 0 1.125.504 1.125 1.125v4.072M6.75 21a3.75 3.75 0 0 0 3.75-3.75V8.197M6.75 21h13.125c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-4.072M10.5 8.197l2.88-2.88a1.124 1.124 0 0 1 1.59 0l3.712 3.713c.44.44.44 1.152 0 1.59l-2.879 2.88M6.75 17.25h.008v.008H6.75v-.008Z\"/>"
|
|
3741
|
-
},
|
|
3726
|
+
}, oa = {
|
|
3742
3727
|
width: 24,
|
|
3743
3728
|
height: 24,
|
|
3744
3729
|
body: "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M3 9a2 2 0 0 1 2-2h.93a2 2 0 0 0 1.664-.89l.812-1.22A2 2 0 0 1 10.07 4h3.86a2 2 0 0 1 1.664.89l.812 1.22A2 2 0 0 0 18.07 7H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"/><path d=\"M15 13a3 3 0 1 1-6 0a3 3 0 0 1 6 0\"/></g>"
|
|
3745
|
-
},
|
|
3730
|
+
}, sa = {
|
|
3746
3731
|
width: 24,
|
|
3747
3732
|
height: 24,
|
|
3748
3733
|
hidden: !0,
|
|
3749
3734
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3\"/>"
|
|
3750
|
-
},
|
|
3735
|
+
}, ca = {
|
|
3751
3736
|
width: 20,
|
|
3752
3737
|
height: 20,
|
|
3753
3738
|
hidden: !0,
|
|
3754
3739
|
body: "<path fill=\"currentColor\" d=\"M1 8.25a1.25 1.25 0 1 1 2.5 0v7.5a1.25 1.25 0 1 1-2.5 0v-7.5ZM11 3V1.7c0-.268.14-.526.395-.607A2 2 0 0 1 14 3c0 .995-.182 1.948-.514 2.826c-.204.54.166 1.174.744 1.174h2.52c1.243 0 2.261 1.01 2.146 2.247a23.864 23.864 0 0 1-1.341 5.974C17.153 16.323 16.072 17 14.9 17h-3.192a3 3 0 0 1-1.341-.317l-2.734-1.366A3 3 0 0 0 6.292 15H5V8h.963c.685 0 1.258-.483 1.612-1.068a4.011 4.011 0 0 1 2.166-1.73c.432-.143.853-.386 1.011-.814c.16-.432.248-.9.248-1.388Z\"/>"
|
|
3755
|
-
},
|
|
3740
|
+
}, la = {
|
|
3756
3741
|
width: 20,
|
|
3757
3742
|
height: 20,
|
|
3758
3743
|
hidden: !0,
|
|
3759
3744
|
body: "<path fill=\"currentColor\" d=\"M18.905 12.75a1.25 1.25 0 0 1-2.5 0v-7.5a1.25 1.25 0 1 1 2.5 0v7.5Zm-10 4.25v1.3c0 .268-.14.526-.395.607A2 2 0 0 1 5.905 17c0-.995.182-1.948.514-2.826c.204-.54-.166-1.174-.744-1.174h-2.52c-1.242 0-2.26-1.01-2.146-2.247c.193-2.08.652-4.082 1.341-5.974C2.752 3.678 3.833 3 5.005 3h3.192a3 3 0 0 1 1.342.317l2.733 1.366A3 3 0 0 0 13.613 5h1.292v7h-.963c-.684 0-1.258.482-1.612 1.068a4.012 4.012 0 0 1-2.165 1.73c-.433.143-.854.386-1.012.814c-.16.432-.248.9-.248 1.388Z\"/>"
|
|
3760
|
-
},
|
|
3745
|
+
}, ua = {
|
|
3761
3746
|
width: 20,
|
|
3762
3747
|
height: 20,
|
|
3763
3748
|
body: "<path fill=\"currentColor\" d=\"M2 11a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm6-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1zm6-3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1z\"/>"
|
|
3764
|
-
},
|
|
3749
|
+
}, da = {
|
|
3765
3750
|
width: 20,
|
|
3766
3751
|
height: 20,
|
|
3767
3752
|
body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M17.707 9.293a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414 0l-7-7A1 1 0 0 1 2 10V5a3 3 0 0 1 3-3h5c.256 0 .512.098.707.293zM5 6a1 1 0 1 0 0-2a1 1 0 0 0 0 2\" clip-rule=\"evenodd\"/>"
|
|
3768
|
-
},
|
|
3753
|
+
}, fa = {
|
|
3769
3754
|
width: 20,
|
|
3770
3755
|
height: 20,
|
|
3771
3756
|
body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M6 2a1 1 0 0 0-1 1v1H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-1V3a1 1 0 1 0-2 0v1H7V3a1 1 0 0 0-1-1m0 5a1 1 0 0 0 0 2h8a1 1 0 1 0 0-2z\" clip-rule=\"evenodd\"/>"
|
|
3772
|
-
},
|
|
3757
|
+
}, pa = {
|
|
3773
3758
|
width: 20,
|
|
3774
3759
|
height: 20,
|
|
3775
3760
|
hidden: !0,
|
|
3776
3761
|
body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M2.5 3A1.5 1.5 0 0 0 1 4.5v4A1.5 1.5 0 0 0 2.5 10h6A1.5 1.5 0 0 0 10 8.5v-4A1.5 1.5 0 0 0 8.5 3h-6Zm11 2A1.5 1.5 0 0 0 12 6.5v7a1.5 1.5 0 0 0 1.5 1.5h4a1.5 1.5 0 0 0 1.5-1.5v-7A1.5 1.5 0 0 0 17.5 5h-4Zm-10 7A1.5 1.5 0 0 0 2 13.5v2A1.5 1.5 0 0 0 3.5 17h6a1.5 1.5 0 0 0 1.5-1.5v-2A1.5 1.5 0 0 0 9.5 12h-6Z\" clip-rule=\"evenodd\"/>"
|
|
3777
|
-
},
|
|
3762
|
+
}, ma = {
|
|
3778
3763
|
width: 20,
|
|
3779
3764
|
height: 20,
|
|
3780
3765
|
body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M10 18a8 8 0 1 0 0-16a8 8 0 0 0 0 16M9.555 7.168A1 1 0 0 0 8 8v4a1 1 0 0 0 1.555.832l3-2a1 1 0 0 0 0-1.664z\" clip-rule=\"evenodd\"/>"
|
|
3781
|
-
},
|
|
3766
|
+
}, ha = {
|
|
3782
3767
|
width: 20,
|
|
3783
3768
|
height: 20,
|
|
3784
3769
|
body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M16.707 5.293a1 1 0 0 1 0 1.414l-8 8a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L8 12.586l7.293-7.293a1 1 0 0 1 1.414 0\" clip-rule=\"evenodd\"/>"
|
|
3785
|
-
},
|
|
3770
|
+
}, ga = {
|
|
3786
3771
|
width: 20,
|
|
3787
3772
|
height: 20,
|
|
3788
3773
|
body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M10 2a1 1 0 0 1 1 1v1.323l3.954 1.582l1.599-.8a1 1 0 0 1 .894 1.79l-1.233.616l1.738 5.42a1 1 0 0 1-.285 1.05A4 4 0 0 1 15 15a4 4 0 0 1-2.667-1.019a1 1 0 0 1-.285-1.05l1.715-5.349L11 6.477V16h2a1 1 0 1 1 0 2H7a1 1 0 1 1 0-2h2V6.477L6.237 7.582l1.715 5.349a1 1 0 0 1-.285 1.05A4 4 0 0 1 5 15a4 4 0 0 1-2.667-1.019a1 1 0 0 1-.285-1.05l1.738-5.42l-1.233-.617a1 1 0 0 1 .894-1.788l1.599.799L9 4.323V3a1 1 0 0 1 1-1m-5 8.275l-.818 2.55a2 2 0 0 0 1.636 0zm10 0l-.818 2.55a2 2 0 0 0 1.636 0z\" clip-rule=\"evenodd\"/>"
|
|
3789
|
-
},
|
|
3774
|
+
}, _a = {
|
|
3790
3775
|
width: 20,
|
|
3791
3776
|
height: 20,
|
|
3792
3777
|
hidden: !0,
|
|
3793
3778
|
body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M10 18a8 8 0 1 0 0-16a8 8 0 0 0 0 16Zm.75-11.25a.75.75 0 0 0-1.5 0v4.59L7.3 9.24a.75.75 0 0 0-1.1 1.02l3.25 3.5a.75.75 0 0 0 1.1 0l3.25-3.5a.75.75 0 1 0-1.1-1.02l-1.95 2.1V6.75Z\" clip-rule=\"evenodd\"/>"
|
|
3794
|
-
},
|
|
3779
|
+
}, va = {
|
|
3795
3780
|
width: 20,
|
|
3796
3781
|
height: 20,
|
|
3797
3782
|
hidden: !0,
|
|
3798
3783
|
body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M10 18a8 8 0 1 0 0-16a8 8 0 0 0 0 16Zm-.75-4.75a.75.75 0 0 0 1.5 0V8.66l1.95 2.1a.75.75 0 1 0 1.1-1.02l-3.25-3.5a.75.75 0 0 0-1.1 0L6.2 9.74a.75.75 0 1 0 1.1 1.02l1.95-2.1v4.59Z\" clip-rule=\"evenodd\"/>"
|
|
3799
|
-
},
|
|
3784
|
+
}, ya = {
|
|
3800
3785
|
width: 20,
|
|
3801
3786
|
height: 20,
|
|
3802
3787
|
hidden: !0,
|
|
3803
3788
|
body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M12.577 4.878a.75.75 0 0 1 .919-.53l4.78 1.281a.75.75 0 0 1 .531.919l-1.281 4.78a.75.75 0 0 1-1.449-.387l.81-3.022a19.407 19.407 0 0 0-5.594 5.203a.75.75 0 0 1-1.139.093L7 10.06l-4.72 4.72a.75.75 0 0 1-1.06-1.061l5.25-5.25a.75.75 0 0 1 1.06 0l3.074 3.073a20.923 20.923 0 0 1 5.545-4.931l-3.042-.815a.75.75 0 0 1-.53-.919Z\" clip-rule=\"evenodd\"/>"
|
|
3804
|
-
},
|
|
3789
|
+
}, ba = {
|
|
3805
3790
|
width: 20,
|
|
3806
3791
|
height: 20,
|
|
3807
3792
|
body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M7 2a1 1 0 0 0-.707 1.707L7 4.414v3.758a1 1 0 0 1-.293.707l-4 4C.817 14.769 2.156 18 4.828 18h10.343c2.673 0 4.012-3.231 2.122-5.121l-4-4A1 1 0 0 1 13 8.172V4.414l.707-.707A1 1 0 0 0 13 2zm2 6.172V4h2v4.172a3 3 0 0 0 .879 2.12l1.027 1.028a4 4 0 0 0-2.171.102l-.47.156a4 4 0 0 1-2.53 0l-.563-.187l-.114-.035l1.063-1.063A3 3 0 0 0 9 8.172\" clip-rule=\"evenodd\"/>"
|
|
3808
|
-
},
|
|
3793
|
+
}, xa = {
|
|
3809
3794
|
width: 20,
|
|
3810
3795
|
height: 20,
|
|
3811
3796
|
hidden: !0,
|
|
3812
3797
|
body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M2 4.75A.75.75 0 0 1 2.75 4h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 4.75Zm0 10.5a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1-.75-.75ZM2 10a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 10Z\" clip-rule=\"evenodd\"/>"
|
|
3813
|
-
},
|
|
3798
|
+
}, Sa = {
|
|
3814
3799
|
width: 20,
|
|
3815
3800
|
height: 20,
|
|
3816
3801
|
body: "<g fill=\"currentColor\" fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6.625 2.655A9 9 0 0 1 19 11a1 1 0 1 1-2 0a7 7 0 0 0-9.625-6.492a1 1 0 1 1-.75-1.853M4.662 4.959A1 1 0 0 1 4.75 6.37A6.97 6.97 0 0 0 3 11a1 1 0 1 1-2 0a8.97 8.97 0 0 1 2.25-5.953a1 1 0 0 1 1.412-.088\"/><path d=\"M5 11a5 5 0 1 1 10 0a1 1 0 1 1-2 0a3 3 0 1 0-6 0c0 1.677-.345 3.276-.968 4.729a1 1 0 1 1-1.838-.789A10 10 0 0 0 5 11m8.921 2.012a1 1 0 0 1 .831 1.145a20 20 0 0 1-.545 2.436a1 1 0 1 1-1.92-.558q.311-1.07.49-2.192a1 1 0 0 1 1.144-.83\"/><path d=\"M10 10a1 1 0 0 1 1 1c0 2.236-.46 4.368-1.29 6.304a1 1 0 0 1-1.838-.789A13.95 13.95 0 0 0 9 11a1 1 0 0 1 1-1\"/></g>"
|
|
3817
|
-
},
|
|
3802
|
+
}, Ca = {
|
|
3818
3803
|
width: 20,
|
|
3819
3804
|
height: 20,
|
|
3820
3805
|
hidden: !0,
|
|
3821
3806
|
body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M4.25 2A2.25 2.25 0 0 0 2 4.25v11.5A2.25 2.25 0 0 0 4.25 18h11.5A2.25 2.25 0 0 0 18 15.75V4.25A2.25 2.25 0 0 0 15.75 2H4.25ZM15 5.75a.75.75 0 0 0-1.5 0v8.5a.75.75 0 0 0 1.5 0v-8.5Zm-8.5 6a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0v-2.5ZM8.584 9a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5a.75.75 0 0 1 .75-.75Zm3.58-1.25a.75.75 0 0 0-1.5 0v6.5a.75.75 0 0 0 1.5 0v-6.5Z\" clip-rule=\"evenodd\"/>"
|
|
3822
|
-
},
|
|
3807
|
+
}, wa = {
|
|
3823
3808
|
width: 20,
|
|
3824
3809
|
height: 20,
|
|
3825
3810
|
body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M10 18a8 8 0 1 0 0-16a8 8 0 0 0 0 16m1-11a1 1 0 1 0-2 0v2H7a1 1 0 1 0 0 2h2v2a1 1 0 1 0 2 0v-2h2a1 1 0 1 0 0-2h-2z\" clip-rule=\"evenodd\"/>"
|
|
3826
|
-
},
|
|
3811
|
+
}, Ta = {
|
|
3827
3812
|
width: 20,
|
|
3828
3813
|
height: 20,
|
|
3829
3814
|
body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M9.243 3.03a1 1 0 0 1 .727 1.213L9.53 6h2.94l.56-2.243a1 1 0 1 1 1.94.486L14.53 6H17a1 1 0 1 1 0 2h-2.97l-1 4H15a1 1 0 1 1 0 2h-2.47l-.56 2.242a1 1 0 1 1-1.94-.485L10.47 14H7.53l-.56 2.242a1 1 0 1 1-1.94-.485L5.47 14H3a1 1 0 1 1 0-2h2.97l1-4H5a1 1 0 1 1 0-2h2.47l.56-2.243a1 1 0 0 1 1.213-.727M9.03 8l-1 4h2.938l1-4z\" clip-rule=\"evenodd\"/>"
|
|
3830
|
-
},
|
|
3815
|
+
}, Ea = {
|
|
3831
3816
|
width: 24,
|
|
3832
3817
|
height: 24,
|
|
3833
3818
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M3 13a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm12-4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1zM9 5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1zM4 20h14\"/>"
|
|
3834
|
-
},
|
|
3819
|
+
}, Da = {
|
|
3835
3820
|
width: 24,
|
|
3836
3821
|
height: 24,
|
|
3837
3822
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 19h16M4 15l4-6l4 2l4-5l4 4\"/>"
|
|
3838
|
-
},
|
|
3823
|
+
}, Oa = {
|
|
3839
3824
|
width: 24,
|
|
3840
3825
|
height: 24,
|
|
3841
3826
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m4 19l4-6l4 2l4-5l4 4v5zm0-7l3-4l4 2l5-6l4 4\"/>"
|
|
3842
|
-
},
|
|
3827
|
+
}, ka = {
|
|
3843
3828
|
width: 24,
|
|
3844
3829
|
height: 24,
|
|
3845
3830
|
body: "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M10 3.2A9 9 0 1 0 20.8 14a1 1 0 0 0-1-1H13a2 2 0 0 1-2-2V4a.9.9 0 0 0-1-.8\"/><path d=\"M15 3.5A9 9 0 0 1 20.5 9H16a1 1 0 0 1-1-1z\"/></g>"
|
|
3846
|
-
},
|
|
3831
|
+
}, Aa = {
|
|
3847
3832
|
width: 24,
|
|
3848
3833
|
height: 24,
|
|
3849
3834
|
body: "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M3 3v18h18\"/><path d=\"M7 15a2 2 0 1 0 4 0a2 2 0 1 0-4 0m4-10a2 2 0 1 0 4 0a2 2 0 1 0-4 0m5 7a2 2 0 1 0 4 0a2 2 0 1 0-4 0m5-9l-6 1.5m-.887 2.15l2.771 3.695M16 12.5l-5 2\"/></g>"
|
|
3850
|
-
},
|
|
3835
|
+
}, ja = {
|
|
3851
3836
|
width: 24,
|
|
3852
3837
|
height: 24,
|
|
3853
3838
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M3 16a3 3 0 1 0 6 0a3 3 0 1 0-6 0m11 3a2 2 0 1 0 4 0a2 2 0 1 0-4 0M10 7.5a4.5 4.5 0 1 0 9 0a4.5 4.5 0 1 0-9 0\"/>"
|
|
3854
|
-
},
|
|
3839
|
+
}, Ma = {
|
|
3855
3840
|
width: 24,
|
|
3856
3841
|
height: 24,
|
|
3857
3842
|
body: "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"m12 3l9.5 7L18 21H6L2.5 10z\"/><path d=\"m12 7.5l5.5 4L15 17H8.5l-2-5.5z\"/><path d=\"m2.5 10l9.5 3l9.5-3\"/><path d=\"M12 3v10l6 8M6 21l6-8\"/></g>"
|
|
3858
|
-
},
|
|
3843
|
+
}, Na = {
|
|
3859
3844
|
width: 24,
|
|
3860
3845
|
height: 24,
|
|
3861
3846
|
body: "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M11 12a1 1 0 1 0 2 0a1 1 0 1 0-2 0\"/><path d=\"M15.51 15.56A5 5 0 1 0 12 17\"/><path d=\"M18.832 17.86A9 9 0 1 0 12 21m0-9v9\"/></g>"
|
|
3862
|
-
},
|
|
3847
|
+
}, Pa = {
|
|
3863
3848
|
width: 24,
|
|
3864
3849
|
height: 24,
|
|
3865
3850
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm8-2v16m-8-5h8m0-3h8m-4 0v8m0-4h4\"/>"
|
|
3866
|
-
},
|
|
3851
|
+
}, Fa = {
|
|
3852
|
+
width: 24,
|
|
3853
|
+
height: 24,
|
|
3854
|
+
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M13 5h8m-8 4h5m-5 6h8m-8 4h5M3 5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm0 10a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z\"/>"
|
|
3855
|
+
}, Ia = {
|
|
3867
3856
|
width: 24,
|
|
3868
3857
|
height: 24,
|
|
3869
3858
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 4h16M4 20h16M6 11a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2z\"/>"
|
|
3870
|
-
},
|
|
3859
|
+
}, La = {
|
|
3871
3860
|
body: "<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <rect x=\"3\" y=\"4\" width=\"5\" height=\"3\" rx=\"0.75\"/>\n <rect x=\"16\" y=\"4\" width=\"5\" height=\"3\" rx=\"0.75\"/>\n <rect x=\"16\" y=\"10.5\" width=\"5\" height=\"3\" rx=\"0.75\"/>\n <rect x=\"16\" y=\"17\" width=\"5\" height=\"3\" rx=\"0.75\"/>\n <path d=\"M8 5.5 C11 5.5, 13 5.5, 16 5.5\"/>\n <path d=\"M8 5.5 C10 5.5, 11 7, 12 9 C13 11, 14 12, 16 12\"/>\n <path d=\"M8 5.5 C10 5.5, 11 10, 12 14 C13 17, 14 18.5, 16 18.5\"/>\n </g>",
|
|
3872
3861
|
width: 24,
|
|
3873
3862
|
height: 24
|
|
3874
|
-
},
|
|
3863
|
+
}, Ra = {
|
|
3875
3864
|
body: "<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <rect x=\"2\" y=\"3\" width=\"20\" height=\"4\" rx=\"1\"/>\n <rect x=\"4\" y=\"10\" width=\"16\" height=\"4\" rx=\"1\"/>\n <rect x=\"6\" y=\"17\" width=\"12\" height=\"4\" rx=\"1\"/>\n </g>",
|
|
3876
3865
|
width: 24,
|
|
3877
3866
|
height: 24
|
|
3878
|
-
},
|
|
3867
|
+
}, za = {
|
|
3879
3868
|
body: "<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <!-- Grid cells representing retention matrix -->\n <rect x=\"3\" y=\"3\" width=\"4\" height=\"4\" rx=\"0.5\"/>\n <rect x=\"10\" y=\"3\" width=\"4\" height=\"4\" rx=\"0.5\"/>\n <rect x=\"17\" y=\"3\" width=\"4\" height=\"4\" rx=\"0.5\"/>\n <rect x=\"3\" y=\"10\" width=\"4\" height=\"4\" rx=\"0.5\"/>\n <rect x=\"10\" y=\"10\" width=\"4\" height=\"4\" rx=\"0.5\"/>\n <rect x=\"17\" y=\"10\" width=\"4\" height=\"4\" rx=\"0.5\"/>\n <rect x=\"3\" y=\"17\" width=\"4\" height=\"4\" rx=\"0.5\"/>\n <rect x=\"10\" y=\"17\" width=\"4\" height=\"4\" rx=\"0.5\"/>\n <rect x=\"17\" y=\"17\" width=\"4\" height=\"4\" rx=\"0.5\"/>\n </g>",
|
|
3880
3869
|
width: 24,
|
|
3881
3870
|
height: 24
|
|
3882
|
-
},
|
|
3871
|
+
}, Ba = {
|
|
3883
3872
|
width: 24,
|
|
3884
3873
|
height: 24,
|
|
3885
3874
|
body: "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M8.848 14.667L5.5 17.5M12 3v5m4 4h5M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m11.219 3.328L17 19.5\"/><path d=\"M8 12a4 4 0 1 0 8 0a4 4 0 1 0-8 0\"/></g>"
|
|
3886
|
-
},
|
|
3875
|
+
}, Va = {
|
|
3887
3876
|
width: 24,
|
|
3888
3877
|
height: 24,
|
|
3889
3878
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm0 5h18M10 3v18\"/>"
|
|
3890
|
-
},
|
|
3879
|
+
}, Ha = {
|
|
3891
3880
|
width: 24,
|
|
3892
3881
|
height: 24,
|
|
3893
3882
|
body: "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M11.795 21H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4m-1 3v4h4\"/><path d=\"M14 18a4 4 0 1 0 8 0a4 4 0 1 0-8 0m1-15v4M7 3v4m-4 4h16\"/></g>"
|
|
3894
|
-
},
|
|
3883
|
+
}, Ua = {
|
|
3895
3884
|
width: 24,
|
|
3896
3885
|
height: 24,
|
|
3897
3886
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 17V7l7 10V7m4 10h5m-5-7a2.5 3 0 1 0 5 0a2.5 3 0 1 0-5 0\"/>"
|
|
3898
|
-
},
|
|
3887
|
+
}, Wa = {
|
|
3899
3888
|
width: 24,
|
|
3900
3889
|
height: 24,
|
|
3901
3890
|
body: "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"m3 17l6-6l4 4l8-8\"/><path d=\"M14 7h7v7\"/></g>"
|
|
3902
|
-
},
|
|
3891
|
+
}, Ga = {
|
|
3903
3892
|
width: 24,
|
|
3904
3893
|
height: 24,
|
|
3905
3894
|
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 20h3m7 0h7M6.9 15h6.9m-3.6-8.7L16 20M5 20l6-16h2l7 16\"/>"
|
|
3906
|
-
},
|
|
3895
|
+
}, Ka = {
|
|
3907
3896
|
width: 24,
|
|
3908
3897
|
height: 24,
|
|
3909
3898
|
body: "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M14 3v4a1 1 0 0 0 1 1h4\"/><path d=\"M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2M9 9h1m-1 4h6m-6 4h6\"/></g>"
|
|
3910
|
-
},
|
|
3899
|
+
}, qa = {
|
|
3911
3900
|
width: 24,
|
|
3912
3901
|
height: 24,
|
|
3913
3902
|
body: "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0m9-3h.01\"/><path d=\"M11 12h1v4h1\"/></g>"
|
|
3914
|
-
},
|
|
3903
|
+
}, Ja = {
|
|
3915
3904
|
close: {
|
|
3916
|
-
icon:
|
|
3905
|
+
icon: Ei,
|
|
3917
3906
|
category: "action"
|
|
3918
3907
|
},
|
|
3919
3908
|
add: {
|
|
3920
|
-
icon:
|
|
3909
|
+
icon: Di,
|
|
3921
3910
|
category: "action"
|
|
3922
3911
|
},
|
|
3923
3912
|
edit: {
|
|
3924
|
-
icon:
|
|
3913
|
+
icon: Oi,
|
|
3925
3914
|
category: "action"
|
|
3926
3915
|
},
|
|
3927
3916
|
delete: {
|
|
3928
|
-
icon:
|
|
3917
|
+
icon: ki,
|
|
3929
3918
|
category: "action"
|
|
3930
3919
|
},
|
|
3931
3920
|
refresh: {
|
|
3932
|
-
icon:
|
|
3921
|
+
icon: Ai,
|
|
3933
3922
|
category: "action"
|
|
3934
3923
|
},
|
|
3935
3924
|
copy: {
|
|
3936
|
-
icon:
|
|
3925
|
+
icon: ji,
|
|
3937
3926
|
category: "action"
|
|
3938
3927
|
},
|
|
3939
3928
|
duplicate: {
|
|
3940
|
-
icon:
|
|
3929
|
+
icon: Mi,
|
|
3941
3930
|
category: "action"
|
|
3942
3931
|
},
|
|
3943
3932
|
settings: {
|
|
3944
|
-
icon:
|
|
3933
|
+
icon: Ni,
|
|
3945
3934
|
category: "action"
|
|
3946
3935
|
},
|
|
3947
3936
|
filter: {
|
|
3948
|
-
icon:
|
|
3937
|
+
icon: Pi,
|
|
3949
3938
|
category: "action"
|
|
3950
3939
|
},
|
|
3951
3940
|
share: {
|
|
3952
|
-
icon:
|
|
3941
|
+
icon: Fi,
|
|
3953
3942
|
category: "action"
|
|
3954
3943
|
},
|
|
3955
3944
|
expand: {
|
|
3956
|
-
icon:
|
|
3945
|
+
icon: Li,
|
|
3957
3946
|
category: "action"
|
|
3958
3947
|
},
|
|
3959
3948
|
collapse: {
|
|
3960
|
-
icon:
|
|
3949
|
+
icon: Ii,
|
|
3961
3950
|
category: "action"
|
|
3962
3951
|
},
|
|
3963
3952
|
search: {
|
|
3964
|
-
icon:
|
|
3953
|
+
icon: Bi,
|
|
3965
3954
|
category: "action"
|
|
3966
3955
|
},
|
|
3967
3956
|
menu: {
|
|
3968
|
-
icon:
|
|
3957
|
+
icon: Vi,
|
|
3969
3958
|
category: "action"
|
|
3970
3959
|
},
|
|
3971
3960
|
run: {
|
|
3972
|
-
icon:
|
|
3961
|
+
icon: ma,
|
|
3973
3962
|
category: "action"
|
|
3974
3963
|
},
|
|
3975
3964
|
check: {
|
|
3976
|
-
icon:
|
|
3965
|
+
icon: ha,
|
|
3977
3966
|
category: "action"
|
|
3978
3967
|
},
|
|
3979
3968
|
link: {
|
|
3980
|
-
icon:
|
|
3969
|
+
icon: Zi,
|
|
3981
3970
|
category: "action"
|
|
3982
3971
|
},
|
|
3983
3972
|
eye: {
|
|
3984
|
-
icon:
|
|
3973
|
+
icon: Ki,
|
|
3985
3974
|
category: "action"
|
|
3986
3975
|
},
|
|
3987
3976
|
eyeOff: {
|
|
3988
|
-
icon:
|
|
3977
|
+
icon: qi,
|
|
3989
3978
|
category: "action"
|
|
3990
3979
|
},
|
|
3991
3980
|
adjustments: {
|
|
3992
|
-
icon:
|
|
3981
|
+
icon: Ji,
|
|
3993
3982
|
category: "action"
|
|
3994
3983
|
},
|
|
3995
3984
|
desktop: {
|
|
3996
|
-
icon:
|
|
3985
|
+
icon: Yi,
|
|
3997
3986
|
category: "action"
|
|
3998
3987
|
},
|
|
3999
3988
|
table: {
|
|
4000
|
-
icon:
|
|
3989
|
+
icon: Xi,
|
|
4001
3990
|
category: "action"
|
|
4002
3991
|
},
|
|
4003
3992
|
sun: {
|
|
4004
|
-
icon:
|
|
3993
|
+
icon: $i,
|
|
4005
3994
|
category: "action"
|
|
4006
3995
|
},
|
|
4007
3996
|
moon: {
|
|
4008
|
-
icon:
|
|
3997
|
+
icon: ea,
|
|
4009
3998
|
category: "action"
|
|
4010
3999
|
},
|
|
4011
4000
|
ellipsisHorizontal: {
|
|
4012
|
-
icon:
|
|
4001
|
+
icon: ta,
|
|
4013
4002
|
category: "action"
|
|
4014
4003
|
},
|
|
4015
4004
|
documentText: {
|
|
4016
|
-
icon:
|
|
4005
|
+
icon: na,
|
|
4017
4006
|
category: "action"
|
|
4018
4007
|
},
|
|
4019
4008
|
bookOpen: {
|
|
4020
|
-
icon:
|
|
4009
|
+
icon: ra,
|
|
4021
4010
|
category: "action"
|
|
4022
4011
|
},
|
|
4023
4012
|
codeBracket: {
|
|
4024
|
-
icon:
|
|
4013
|
+
icon: ia,
|
|
4025
4014
|
category: "action"
|
|
4026
4015
|
},
|
|
4027
4016
|
swatch: {
|
|
4028
|
-
icon:
|
|
4017
|
+
icon: aa,
|
|
4029
4018
|
category: "action"
|
|
4030
4019
|
},
|
|
4031
4020
|
camera: {
|
|
4032
|
-
icon:
|
|
4021
|
+
icon: oa,
|
|
4033
4022
|
category: "action"
|
|
4034
4023
|
},
|
|
4035
4024
|
thumbUp: {
|
|
4036
|
-
icon:
|
|
4025
|
+
icon: ca,
|
|
4037
4026
|
category: "action"
|
|
4038
4027
|
},
|
|
4039
4028
|
thumbDown: {
|
|
4040
|
-
icon:
|
|
4029
|
+
icon: la,
|
|
4041
4030
|
category: "action"
|
|
4042
4031
|
},
|
|
4043
4032
|
schemaGraph: {
|
|
@@ -4057,95 +4046,99 @@ var Ci = {
|
|
|
4057
4046
|
category: "action"
|
|
4058
4047
|
},
|
|
4059
4048
|
download: {
|
|
4060
|
-
icon:
|
|
4049
|
+
icon: sa,
|
|
4061
4050
|
category: "action"
|
|
4062
4051
|
},
|
|
4063
4052
|
measure: {
|
|
4064
|
-
icon:
|
|
4053
|
+
icon: ua,
|
|
4065
4054
|
category: "field"
|
|
4066
4055
|
},
|
|
4067
4056
|
dimension: {
|
|
4068
|
-
icon:
|
|
4057
|
+
icon: da,
|
|
4069
4058
|
category: "field"
|
|
4070
4059
|
},
|
|
4071
4060
|
timeDimension: {
|
|
4072
|
-
icon:
|
|
4061
|
+
icon: fa,
|
|
4073
4062
|
category: "field"
|
|
4074
4063
|
},
|
|
4075
4064
|
segment: {
|
|
4076
|
-
icon:
|
|
4065
|
+
icon: pa,
|
|
4077
4066
|
category: "field"
|
|
4078
4067
|
},
|
|
4079
4068
|
chartBar: {
|
|
4080
|
-
icon:
|
|
4069
|
+
icon: Ea,
|
|
4081
4070
|
category: "chart"
|
|
4082
4071
|
},
|
|
4083
4072
|
chartLine: {
|
|
4084
|
-
icon:
|
|
4073
|
+
icon: Da,
|
|
4085
4074
|
category: "chart"
|
|
4086
4075
|
},
|
|
4087
4076
|
chartArea: {
|
|
4088
|
-
icon:
|
|
4077
|
+
icon: Oa,
|
|
4089
4078
|
category: "chart"
|
|
4090
4079
|
},
|
|
4091
4080
|
chartPie: {
|
|
4092
|
-
icon:
|
|
4081
|
+
icon: ka,
|
|
4093
4082
|
category: "chart"
|
|
4094
4083
|
},
|
|
4095
4084
|
chartScatter: {
|
|
4096
|
-
icon:
|
|
4085
|
+
icon: Aa,
|
|
4097
4086
|
category: "chart"
|
|
4098
4087
|
},
|
|
4099
4088
|
chartBubble: {
|
|
4100
|
-
icon:
|
|
4089
|
+
icon: ja,
|
|
4101
4090
|
category: "chart"
|
|
4102
4091
|
},
|
|
4103
4092
|
chartRadar: {
|
|
4104
|
-
icon:
|
|
4093
|
+
icon: Ma,
|
|
4105
4094
|
category: "chart"
|
|
4106
4095
|
},
|
|
4107
4096
|
chartRadialBar: {
|
|
4108
|
-
icon:
|
|
4097
|
+
icon: Na,
|
|
4109
4098
|
category: "chart"
|
|
4110
4099
|
},
|
|
4111
4100
|
chartTreemap: {
|
|
4112
|
-
icon:
|
|
4101
|
+
icon: Pa,
|
|
4113
4102
|
category: "chart"
|
|
4114
4103
|
},
|
|
4115
4104
|
chartTable: {
|
|
4116
|
-
icon:
|
|
4105
|
+
icon: Va,
|
|
4106
|
+
category: "chart"
|
|
4107
|
+
},
|
|
4108
|
+
chartRecordsTable: {
|
|
4109
|
+
icon: Fa,
|
|
4117
4110
|
category: "chart"
|
|
4118
4111
|
},
|
|
4119
4112
|
chartActivityGrid: {
|
|
4120
|
-
icon:
|
|
4113
|
+
icon: Ha,
|
|
4121
4114
|
category: "chart"
|
|
4122
4115
|
},
|
|
4123
4116
|
chartKpiNumber: {
|
|
4124
|
-
icon:
|
|
4117
|
+
icon: Ua,
|
|
4125
4118
|
category: "chart"
|
|
4126
4119
|
},
|
|
4127
4120
|
chartKpiDelta: {
|
|
4128
|
-
icon:
|
|
4121
|
+
icon: Wa,
|
|
4129
4122
|
category: "chart"
|
|
4130
4123
|
},
|
|
4131
4124
|
chartKpiText: {
|
|
4132
|
-
icon:
|
|
4125
|
+
icon: Ga,
|
|
4133
4126
|
category: "chart"
|
|
4134
4127
|
},
|
|
4135
4128
|
chartMarkdown: {
|
|
4136
|
-
icon:
|
|
4129
|
+
icon: Ka,
|
|
4137
4130
|
category: "chart"
|
|
4138
4131
|
},
|
|
4139
4132
|
chartFunnel: {
|
|
4140
|
-
icon:
|
|
4133
|
+
icon: Ra,
|
|
4141
4134
|
category: "chart"
|
|
4142
4135
|
},
|
|
4143
4136
|
chartSankey: {
|
|
4144
|
-
icon:
|
|
4137
|
+
icon: La,
|
|
4145
4138
|
category: "chart"
|
|
4146
4139
|
},
|
|
4147
4140
|
chartSunburst: {
|
|
4148
|
-
icon:
|
|
4141
|
+
icon: Ba,
|
|
4149
4142
|
category: "chart"
|
|
4150
4143
|
},
|
|
4151
4144
|
chartHeatmap: {
|
|
@@ -4157,7 +4150,7 @@ var Ci = {
|
|
|
4157
4150
|
category: "chart"
|
|
4158
4151
|
},
|
|
4159
4152
|
chartRetention: {
|
|
4160
|
-
icon:
|
|
4153
|
+
icon: za,
|
|
4161
4154
|
category: "chart"
|
|
4162
4155
|
},
|
|
4163
4156
|
chartBoxPlot: {
|
|
@@ -4193,7 +4186,7 @@ var Ci = {
|
|
|
4193
4186
|
category: "chart"
|
|
4194
4187
|
},
|
|
4195
4188
|
chartProportionBar: {
|
|
4196
|
-
icon:
|
|
4189
|
+
icon: Ia,
|
|
4197
4190
|
category: "chart"
|
|
4198
4191
|
},
|
|
4199
4192
|
chartGauge: {
|
|
@@ -4205,83 +4198,83 @@ var Ci = {
|
|
|
4205
4198
|
category: "chart"
|
|
4206
4199
|
},
|
|
4207
4200
|
measureCount: {
|
|
4208
|
-
icon:
|
|
4201
|
+
icon: xa,
|
|
4209
4202
|
category: "measure"
|
|
4210
4203
|
},
|
|
4211
4204
|
measureCountDistinct: {
|
|
4212
|
-
icon:
|
|
4205
|
+
icon: Sa,
|
|
4213
4206
|
category: "measure"
|
|
4214
4207
|
},
|
|
4215
4208
|
measureCountDistinctApprox: {
|
|
4216
|
-
icon:
|
|
4209
|
+
icon: Ca,
|
|
4217
4210
|
category: "measure"
|
|
4218
4211
|
},
|
|
4219
4212
|
measureSum: {
|
|
4220
|
-
icon:
|
|
4213
|
+
icon: wa,
|
|
4221
4214
|
category: "measure"
|
|
4222
4215
|
},
|
|
4223
4216
|
measureAvg: {
|
|
4224
|
-
icon:
|
|
4217
|
+
icon: ga,
|
|
4225
4218
|
category: "measure"
|
|
4226
4219
|
},
|
|
4227
4220
|
measureMin: {
|
|
4228
|
-
icon:
|
|
4221
|
+
icon: _a,
|
|
4229
4222
|
category: "measure"
|
|
4230
4223
|
},
|
|
4231
4224
|
measureMax: {
|
|
4232
|
-
icon:
|
|
4225
|
+
icon: va,
|
|
4233
4226
|
category: "measure"
|
|
4234
4227
|
},
|
|
4235
4228
|
measureRunningTotal: {
|
|
4236
|
-
icon:
|
|
4229
|
+
icon: ya,
|
|
4237
4230
|
category: "measure"
|
|
4238
4231
|
},
|
|
4239
4232
|
measureCalculated: {
|
|
4240
|
-
icon:
|
|
4233
|
+
icon: ba,
|
|
4241
4234
|
category: "measure"
|
|
4242
4235
|
},
|
|
4243
4236
|
measureNumber: {
|
|
4244
|
-
icon:
|
|
4237
|
+
icon: Ta,
|
|
4245
4238
|
category: "measure"
|
|
4246
4239
|
},
|
|
4247
4240
|
success: {
|
|
4248
|
-
icon:
|
|
4241
|
+
icon: Hi,
|
|
4249
4242
|
category: "state"
|
|
4250
4243
|
},
|
|
4251
4244
|
warning: {
|
|
4252
|
-
icon:
|
|
4245
|
+
icon: Ui,
|
|
4253
4246
|
category: "state"
|
|
4254
4247
|
},
|
|
4255
4248
|
error: {
|
|
4256
|
-
icon:
|
|
4249
|
+
icon: Wi,
|
|
4257
4250
|
category: "state"
|
|
4258
4251
|
},
|
|
4259
4252
|
info: {
|
|
4260
|
-
icon:
|
|
4253
|
+
icon: qa,
|
|
4261
4254
|
category: "state"
|
|
4262
4255
|
},
|
|
4263
4256
|
loading: {
|
|
4264
|
-
icon:
|
|
4257
|
+
icon: Ai,
|
|
4265
4258
|
category: "state"
|
|
4266
4259
|
},
|
|
4267
4260
|
sparkles: {
|
|
4268
|
-
icon:
|
|
4261
|
+
icon: Gi,
|
|
4269
4262
|
category: "state"
|
|
4270
4263
|
},
|
|
4271
4264
|
chevronUp: {
|
|
4272
|
-
icon:
|
|
4265
|
+
icon: Ii,
|
|
4273
4266
|
category: "navigation"
|
|
4274
4267
|
},
|
|
4275
4268
|
chevronDown: {
|
|
4276
|
-
icon:
|
|
4269
|
+
icon: Li,
|
|
4277
4270
|
category: "navigation"
|
|
4278
4271
|
},
|
|
4279
4272
|
chevronLeft: {
|
|
4280
|
-
icon:
|
|
4273
|
+
icon: Ri,
|
|
4281
4274
|
category: "navigation"
|
|
4282
4275
|
},
|
|
4283
4276
|
chevronRight: {
|
|
4284
|
-
icon:
|
|
4277
|
+
icon: zi,
|
|
4285
4278
|
category: "navigation"
|
|
4286
4279
|
},
|
|
4287
4280
|
chevronUpDown: {
|
|
@@ -4293,78 +4286,78 @@ var Ci = {
|
|
|
4293
4286
|
category: "navigation"
|
|
4294
4287
|
},
|
|
4295
4288
|
arrowUp: {
|
|
4296
|
-
icon:
|
|
4289
|
+
icon: va,
|
|
4297
4290
|
category: "navigation"
|
|
4298
4291
|
},
|
|
4299
4292
|
arrowDown: {
|
|
4300
|
-
icon:
|
|
4293
|
+
icon: _a,
|
|
4301
4294
|
category: "navigation"
|
|
4302
4295
|
},
|
|
4303
4296
|
arrowRight: {
|
|
4304
|
-
icon:
|
|
4297
|
+
icon: Qi,
|
|
4305
4298
|
category: "navigation"
|
|
4306
4299
|
},
|
|
4307
4300
|
arrowPath: {
|
|
4308
|
-
icon:
|
|
4301
|
+
icon: Ai,
|
|
4309
4302
|
category: "navigation"
|
|
4310
4303
|
}
|
|
4311
|
-
},
|
|
4312
|
-
function
|
|
4313
|
-
return
|
|
4304
|
+
}, J = { ...Ja }, Y = /* @__PURE__ */ new Map();
|
|
4305
|
+
function Ya() {
|
|
4306
|
+
return J;
|
|
4314
4307
|
}
|
|
4315
|
-
function
|
|
4316
|
-
let t =
|
|
4308
|
+
function X(e) {
|
|
4309
|
+
let t = Y.get(e);
|
|
4317
4310
|
if (t) return t;
|
|
4318
|
-
let n =
|
|
4319
|
-
if (!n) return console.warn(`Icon "${e}" not found in registry, using fallback`), ({ className: e, ...t }) => /* @__PURE__ */
|
|
4320
|
-
icon:
|
|
4311
|
+
let n = J[e];
|
|
4312
|
+
if (!n) return console.warn(`Icon "${e}" not found in registry, using fallback`), ({ className: e, ...t }) => /* @__PURE__ */ w(Ti, {
|
|
4313
|
+
icon: J.info.icon,
|
|
4321
4314
|
className: e,
|
|
4322
4315
|
...t
|
|
4323
4316
|
});
|
|
4324
|
-
let r = ({ className: e, ...t }) => /* @__PURE__ */
|
|
4317
|
+
let r = ({ className: e, ...t }) => /* @__PURE__ */ w(Ti, {
|
|
4325
4318
|
icon: n.icon,
|
|
4326
4319
|
className: e,
|
|
4327
4320
|
...t
|
|
4328
4321
|
});
|
|
4329
|
-
return
|
|
4322
|
+
return Y.set(e, r), r;
|
|
4330
4323
|
}
|
|
4331
|
-
function
|
|
4332
|
-
return
|
|
4324
|
+
function Xa(e) {
|
|
4325
|
+
return J[e]?.icon ?? J.info.icon;
|
|
4333
4326
|
}
|
|
4334
|
-
function
|
|
4335
|
-
|
|
4336
|
-
...
|
|
4327
|
+
function Za(e, t) {
|
|
4328
|
+
J[e] && (J[e] = {
|
|
4329
|
+
...J[e],
|
|
4337
4330
|
icon: t
|
|
4338
|
-
},
|
|
4331
|
+
}, Y.delete(e));
|
|
4339
4332
|
}
|
|
4340
|
-
function
|
|
4341
|
-
for (let [t, n] of Object.entries(e)) if (n && t in
|
|
4333
|
+
function Qa(e) {
|
|
4334
|
+
for (let [t, n] of Object.entries(e)) if (n && t in J) {
|
|
4342
4335
|
let e = t;
|
|
4343
|
-
if ("body" in n)
|
|
4344
|
-
...
|
|
4336
|
+
if ("body" in n) J[e] = {
|
|
4337
|
+
...J[e],
|
|
4345
4338
|
icon: n
|
|
4346
4339
|
};
|
|
4347
4340
|
else {
|
|
4348
4341
|
let t = n;
|
|
4349
|
-
|
|
4350
|
-
...
|
|
4342
|
+
J[e] = {
|
|
4343
|
+
...J[e],
|
|
4351
4344
|
...t,
|
|
4352
|
-
icon: t.icon ??
|
|
4345
|
+
icon: t.icon ?? J[e].icon
|
|
4353
4346
|
};
|
|
4354
4347
|
}
|
|
4355
|
-
|
|
4348
|
+
Y.delete(e);
|
|
4356
4349
|
}
|
|
4357
4350
|
}
|
|
4358
|
-
function
|
|
4359
|
-
|
|
4351
|
+
function $a() {
|
|
4352
|
+
J = { ...Ja }, Y.clear();
|
|
4360
4353
|
}
|
|
4361
|
-
function
|
|
4354
|
+
function eo(e) {
|
|
4362
4355
|
let t = {};
|
|
4363
|
-
for (let [n, r] of Object.entries(
|
|
4356
|
+
for (let [n, r] of Object.entries(J)) r.category === e && (t[n] = X(n));
|
|
4364
4357
|
return t;
|
|
4365
4358
|
}
|
|
4366
|
-
function
|
|
4367
|
-
return
|
|
4359
|
+
function to(e) {
|
|
4360
|
+
return X({
|
|
4368
4361
|
count: "measureCount",
|
|
4369
4362
|
countDistinct: "measureCountDistinct",
|
|
4370
4363
|
countDistinctApprox: "measureCountDistinctApprox",
|
|
@@ -4377,12 +4370,12 @@ function Za(e) {
|
|
|
4377
4370
|
number: "measureNumber"
|
|
4378
4371
|
}[e || ""] || "measureCount");
|
|
4379
4372
|
}
|
|
4380
|
-
function
|
|
4381
|
-
let t =
|
|
4382
|
-
return t ? typeof t == "string" ?
|
|
4373
|
+
function no(e) {
|
|
4374
|
+
let t = we(e)?.icon;
|
|
4375
|
+
return t ? typeof t == "string" ? X(t) : t : X("chartBar");
|
|
4383
4376
|
}
|
|
4384
|
-
function
|
|
4385
|
-
return
|
|
4377
|
+
function ro(e) {
|
|
4378
|
+
return X({
|
|
4386
4379
|
measure: "measure",
|
|
4387
4380
|
dimension: "dimension",
|
|
4388
4381
|
timeDimension: "timeDimension",
|
|
@@ -4392,9 +4385,9 @@ function $a(e) {
|
|
|
4392
4385
|
}
|
|
4393
4386
|
//#endregion
|
|
4394
4387
|
//#region src/client/components/charts/MissingDependencyFallback.tsx
|
|
4395
|
-
function
|
|
4396
|
-
let { t: i } =
|
|
4397
|
-
return /* @__PURE__ */
|
|
4388
|
+
function io({ chartType: e, packageName: t, installCommand: n, height: r = 200 }) {
|
|
4389
|
+
let { t: i } = s();
|
|
4390
|
+
return /* @__PURE__ */ T("div", {
|
|
4398
4391
|
className: "dc-missing-dependency-fallback",
|
|
4399
4392
|
style: {
|
|
4400
4393
|
height: typeof r == "number" ? `${r}px` : r,
|
|
@@ -4410,14 +4403,14 @@ function eo({ chartType: e, packageName: t, installCommand: n, height: r = 200 }
|
|
|
4410
4403
|
backgroundColor: "var(--dc-surface, #f9fafb)"
|
|
4411
4404
|
},
|
|
4412
4405
|
children: [
|
|
4413
|
-
/* @__PURE__ */
|
|
4406
|
+
/* @__PURE__ */ w("div", {
|
|
4414
4407
|
style: {
|
|
4415
4408
|
fontSize: "2.5rem",
|
|
4416
4409
|
marginBottom: "1rem"
|
|
4417
4410
|
},
|
|
4418
4411
|
children: "📦"
|
|
4419
4412
|
}),
|
|
4420
|
-
/* @__PURE__ */
|
|
4413
|
+
/* @__PURE__ */ w("h3", {
|
|
4421
4414
|
style: {
|
|
4422
4415
|
fontSize: "1.125rem",
|
|
4423
4416
|
fontWeight: 600,
|
|
@@ -4426,7 +4419,7 @@ function eo({ chartType: e, packageName: t, installCommand: n, height: r = 200 }
|
|
|
4426
4419
|
},
|
|
4427
4420
|
children: i("chart.runtime.missingDep.title")
|
|
4428
4421
|
}),
|
|
4429
|
-
/* @__PURE__ */
|
|
4422
|
+
/* @__PURE__ */ w("p", {
|
|
4430
4423
|
style: {
|
|
4431
4424
|
fontSize: "0.875rem",
|
|
4432
4425
|
color: "var(--dc-text-secondary, #6b7280)",
|
|
@@ -4438,7 +4431,7 @@ function eo({ chartType: e, packageName: t, installCommand: n, height: r = 200 }
|
|
|
4438
4431
|
packageName: t
|
|
4439
4432
|
})
|
|
4440
4433
|
}),
|
|
4441
|
-
/* @__PURE__ */
|
|
4434
|
+
/* @__PURE__ */ T("div", {
|
|
4442
4435
|
style: {
|
|
4443
4436
|
backgroundColor: "var(--dc-surface-secondary, #f3f4f6)",
|
|
4444
4437
|
borderRadius: "0.5rem",
|
|
@@ -4447,7 +4440,7 @@ function eo({ chartType: e, packageName: t, installCommand: n, height: r = 200 }
|
|
|
4447
4440
|
fontSize: "0.875rem",
|
|
4448
4441
|
color: "var(--dc-text, #111827)"
|
|
4449
4442
|
},
|
|
4450
|
-
children: [/* @__PURE__ */
|
|
4443
|
+
children: [/* @__PURE__ */ w("span", {
|
|
4451
4444
|
style: {
|
|
4452
4445
|
color: "var(--dc-text-muted, #9ca3af)",
|
|
4453
4446
|
userSelect: "none"
|
|
@@ -4455,7 +4448,7 @@ function eo({ chartType: e, packageName: t, installCommand: n, height: r = 200 }
|
|
|
4455
4448
|
children: "$ "
|
|
4456
4449
|
}), n]
|
|
4457
4450
|
}),
|
|
4458
|
-
/* @__PURE__ */
|
|
4451
|
+
/* @__PURE__ */ w("p", {
|
|
4459
4452
|
style: {
|
|
4460
4453
|
fontSize: "0.75rem",
|
|
4461
4454
|
color: "var(--dc-text-muted, #9ca3af)",
|
|
@@ -4468,17 +4461,17 @@ function eo({ chartType: e, packageName: t, installCommand: n, height: r = 200 }
|
|
|
4468
4461
|
}
|
|
4469
4462
|
//#endregion
|
|
4470
4463
|
//#region src/client/charts/chartComponentRegistry.tsx
|
|
4471
|
-
var
|
|
4472
|
-
function
|
|
4464
|
+
var ao = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new Set(), oo = /* @__PURE__ */ new Map();
|
|
4465
|
+
function so(e) {
|
|
4473
4466
|
let t = ({ height: t }) => {
|
|
4474
|
-
let { t: n } =
|
|
4475
|
-
return /* @__PURE__ */
|
|
4467
|
+
let { t: n } = s();
|
|
4468
|
+
return /* @__PURE__ */ T("div", {
|
|
4476
4469
|
className: "dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:gap-2",
|
|
4477
4470
|
style: { height: typeof t == "number" ? `${t}px` : t || "200px" },
|
|
4478
|
-
children: [/* @__PURE__ */
|
|
4471
|
+
children: [/* @__PURE__ */ w("div", {
|
|
4479
4472
|
className: "dc:text-sm dc:font-semibold text-dc-text-muted",
|
|
4480
4473
|
children: n("chart.runtime.unknownChartType")
|
|
4481
|
-
}), /* @__PURE__ */
|
|
4474
|
+
}), /* @__PURE__ */ T("div", {
|
|
4482
4475
|
className: "dc:text-xs text-dc-text-muted",
|
|
4483
4476
|
children: [
|
|
4484
4477
|
"“",
|
|
@@ -4490,8 +4483,8 @@ function io(e) {
|
|
|
4490
4483
|
};
|
|
4491
4484
|
return t.displayName = `UnknownChart_${e}`, t;
|
|
4492
4485
|
}
|
|
4493
|
-
function
|
|
4494
|
-
let t =
|
|
4486
|
+
function co(e) {
|
|
4487
|
+
let t = we(e)?.dependencies, n = ({ height: n }) => /* @__PURE__ */ w(io, {
|
|
4495
4488
|
chartType: e,
|
|
4496
4489
|
packageName: t?.packageName || "unknown",
|
|
4497
4490
|
installCommand: t?.installCommand || "npm install [package-name]",
|
|
@@ -4499,55 +4492,118 @@ function ao(e) {
|
|
|
4499
4492
|
});
|
|
4500
4493
|
return n.displayName = `${e}Fallback`, n;
|
|
4501
4494
|
}
|
|
4502
|
-
function
|
|
4495
|
+
function lo(e, t) {
|
|
4503
4496
|
return async () => {
|
|
4504
4497
|
try {
|
|
4505
4498
|
return await t();
|
|
4506
4499
|
} catch (t) {
|
|
4507
|
-
return console.warn(`[drizzle-cube] Failed to load ${e} chart:`, t instanceof Error ? t.message : t),
|
|
4500
|
+
return console.warn(`[drizzle-cube] Failed to load ${e} chart:`, t instanceof Error ? t.message : t), Z.add(e), { default: co(e) };
|
|
4508
4501
|
}
|
|
4509
4502
|
};
|
|
4510
4503
|
}
|
|
4511
|
-
function
|
|
4512
|
-
if (
|
|
4513
|
-
let t = r ?
|
|
4514
|
-
|
|
4504
|
+
function uo(e, t, n, r) {
|
|
4505
|
+
if (ao.delete(e), Z.delete(e), n) {
|
|
4506
|
+
let t = r ? lo(e, n) : n;
|
|
4507
|
+
oo.set(e, ye(t));
|
|
4515
4508
|
} else if (t) {
|
|
4516
4509
|
let n = t;
|
|
4517
|
-
|
|
4510
|
+
oo.set(e, ye(() => Promise.resolve({ default: n })));
|
|
4518
4511
|
}
|
|
4519
4512
|
}
|
|
4520
|
-
function
|
|
4521
|
-
|
|
4513
|
+
function fo(e) {
|
|
4514
|
+
oo.delete(e), ao.delete(e), Z.delete(e);
|
|
4522
4515
|
}
|
|
4523
4516
|
//#endregion
|
|
4524
4517
|
//#region src/client/providers/CubeMetaProvider.tsx
|
|
4525
|
-
function
|
|
4526
|
-
let { meta: t, labelMap: n, isLoading: r, error: i, refetch: a, getFieldLabel: o } =
|
|
4518
|
+
function po({ children: e }) {
|
|
4519
|
+
let { meta: t, labelMap: n, isLoading: r, error: i, refetch: a, getFieldLabel: o } = dn(), s = i ? i instanceof Error ? i.message : String(i) : null, c = be(() => {
|
|
4527
4520
|
a();
|
|
4528
|
-
}, [a]),
|
|
4521
|
+
}, [a]), l = be((e) => o(e), [o]), u = S(() => ({
|
|
4529
4522
|
meta: t,
|
|
4530
4523
|
labelMap: n,
|
|
4531
4524
|
metaLoading: r,
|
|
4532
4525
|
metaError: s,
|
|
4533
|
-
getFieldLabel:
|
|
4526
|
+
getFieldLabel: l,
|
|
4534
4527
|
refetchMeta: c
|
|
4535
4528
|
}), [
|
|
4536
4529
|
t,
|
|
4537
4530
|
n,
|
|
4538
4531
|
r,
|
|
4539
4532
|
s,
|
|
4540
|
-
|
|
4533
|
+
l,
|
|
4541
4534
|
c
|
|
4542
4535
|
]);
|
|
4543
|
-
return /* @__PURE__ */
|
|
4544
|
-
value:
|
|
4536
|
+
return /* @__PURE__ */ w(d.Provider, {
|
|
4537
|
+
value: u,
|
|
4545
4538
|
children: e
|
|
4546
4539
|
});
|
|
4547
4540
|
}
|
|
4548
4541
|
//#endregion
|
|
4549
|
-
//#region src/client/components/charts/
|
|
4550
|
-
var
|
|
4542
|
+
//#region src/client/components/charts/RecordsTable.config.ts
|
|
4543
|
+
var mo = /* @__PURE__ */ t({ recordsTableConfig: () => ho }), ho = {
|
|
4544
|
+
dropZones: [{
|
|
4545
|
+
key: "columns",
|
|
4546
|
+
label: "chart.recordsTable.dropZone.columns.label",
|
|
4547
|
+
description: "chart.recordsTable.dropZone.columns.description",
|
|
4548
|
+
mandatory: !1,
|
|
4549
|
+
acceptTypes: [
|
|
4550
|
+
"dimension",
|
|
4551
|
+
"timeDimension",
|
|
4552
|
+
"measure"
|
|
4553
|
+
],
|
|
4554
|
+
emptyText: "chart.recordsTable.dropZone.columns.empty"
|
|
4555
|
+
}, {
|
|
4556
|
+
key: "hiddenColumns",
|
|
4557
|
+
label: "chart.recordsTable.dropZone.hiddenColumns.label",
|
|
4558
|
+
description: "chart.recordsTable.dropZone.hiddenColumns.description",
|
|
4559
|
+
mandatory: !1,
|
|
4560
|
+
acceptTypes: [
|
|
4561
|
+
"dimension",
|
|
4562
|
+
"timeDimension",
|
|
4563
|
+
"measure"
|
|
4564
|
+
],
|
|
4565
|
+
emptyText: "chart.recordsTable.dropZone.hiddenColumns.empty",
|
|
4566
|
+
excludeFromInference: !0
|
|
4567
|
+
}],
|
|
4568
|
+
displayOptions: ["hideHeader"],
|
|
4569
|
+
displayOptionsConfig: [
|
|
4570
|
+
{
|
|
4571
|
+
key: "columnFormats",
|
|
4572
|
+
label: "chart.recordsTable.option.columnFormats.label",
|
|
4573
|
+
type: "columnFormats",
|
|
4574
|
+
description: "chart.recordsTable.option.columnFormats.description"
|
|
4575
|
+
},
|
|
4576
|
+
{
|
|
4577
|
+
key: "rowLink",
|
|
4578
|
+
label: "chart.recordsTable.option.rowLink.label",
|
|
4579
|
+
type: "rowLink",
|
|
4580
|
+
description: "chart.recordsTable.option.rowLink.description"
|
|
4581
|
+
},
|
|
4582
|
+
{
|
|
4583
|
+
key: "pageSize",
|
|
4584
|
+
label: "chart.recordsTable.option.pageSize.label",
|
|
4585
|
+
type: "select",
|
|
4586
|
+
defaultValue: 25,
|
|
4587
|
+
description: "chart.recordsTable.option.pageSize.description",
|
|
4588
|
+
options: [
|
|
4589
|
+
{
|
|
4590
|
+
value: 25,
|
|
4591
|
+
label: "chart.recordsTable.option.pageSize.option.25"
|
|
4592
|
+
},
|
|
4593
|
+
{
|
|
4594
|
+
value: 50,
|
|
4595
|
+
label: "chart.recordsTable.option.pageSize.option.50"
|
|
4596
|
+
},
|
|
4597
|
+
{
|
|
4598
|
+
value: 100,
|
|
4599
|
+
label: "chart.recordsTable.option.pageSize.option.100"
|
|
4600
|
+
}
|
|
4601
|
+
]
|
|
4602
|
+
}
|
|
4603
|
+
],
|
|
4604
|
+
clickableElements: { row: !0 },
|
|
4605
|
+
recordGrain: !0
|
|
4606
|
+
}, go = /* @__PURE__ */ t({ retentionHeatmapConfig: () => _o }), _o = {
|
|
4551
4607
|
dropZones: [],
|
|
4552
4608
|
displayOptionsConfig: [{
|
|
4553
4609
|
key: "showLegend",
|
|
@@ -4562,7 +4618,7 @@ var uo = /* @__PURE__ */ t({ retentionHeatmapConfig: () => fo }), fo = {
|
|
|
4562
4618
|
defaultValue: !0,
|
|
4563
4619
|
description: "chart.option.showTooltip.description"
|
|
4564
4620
|
}]
|
|
4565
|
-
},
|
|
4621
|
+
}, vo = /* @__PURE__ */ t({ retentionCombinedConfig: () => yo }), yo = {
|
|
4566
4622
|
dropZones: [],
|
|
4567
4623
|
displayOptionsConfig: [
|
|
4568
4624
|
{
|
|
@@ -4608,7 +4664,7 @@ var uo = /* @__PURE__ */ t({ retentionHeatmapConfig: () => fo }), fo = {
|
|
|
4608
4664
|
description: "chart.option.showTooltip.description"
|
|
4609
4665
|
}
|
|
4610
4666
|
]
|
|
4611
|
-
},
|
|
4667
|
+
}, bo = /* @__PURE__ */ t({ proportionBarChartConfig: () => xo }), xo = {
|
|
4612
4668
|
dropZones: [{
|
|
4613
4669
|
key: "xAxis",
|
|
4614
4670
|
label: "chart.configText.category",
|
|
@@ -4666,7 +4722,7 @@ var uo = /* @__PURE__ */ t({ retentionHeatmapConfig: () => fo }), fo = {
|
|
|
4666
4722
|
isValid: !1,
|
|
4667
4723
|
message: "chart.proportionBar.validation.measureRequired"
|
|
4668
4724
|
} : { isValid: !0 }
|
|
4669
|
-
},
|
|
4725
|
+
}, So = {
|
|
4670
4726
|
bar: f,
|
|
4671
4727
|
line: p,
|
|
4672
4728
|
area: n,
|
|
@@ -4675,35 +4731,39 @@ var uo = /* @__PURE__ */ t({ retentionHeatmapConfig: () => fo }), fo = {
|
|
|
4675
4731
|
bubble: g,
|
|
4676
4732
|
radar: _,
|
|
4677
4733
|
radialBar: v,
|
|
4678
|
-
treemap:
|
|
4679
|
-
table:
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4734
|
+
treemap: ee,
|
|
4735
|
+
table: y,
|
|
4736
|
+
recordsTable: ho,
|
|
4737
|
+
activityGrid: te,
|
|
4738
|
+
kpiNumber: ne,
|
|
4739
|
+
kpiDelta: re,
|
|
4740
|
+
kpiText: ie,
|
|
4741
|
+
markdown: ae,
|
|
4742
|
+
funnel: oe,
|
|
4743
|
+
sankey: se,
|
|
4744
|
+
sunburst: ce,
|
|
4745
|
+
heatmap: le,
|
|
4746
|
+
retentionHeatmap: _o,
|
|
4747
|
+
retentionCombined: yo,
|
|
4748
|
+
boxPlot: ue,
|
|
4749
|
+
waterfall: de,
|
|
4750
|
+
candlestick: fe,
|
|
4751
|
+
measureProfile: pe,
|
|
4752
|
+
proportionBar: xo,
|
|
4753
|
+
gauge: me
|
|
4754
|
+
}, Q = Object.fromEntries(Object.keys(D).map((e) => [e, Oe(D[e], So[e])]));
|
|
4755
|
+
function Co(e) {
|
|
4756
|
+
return Q[e]?.recordGrain === !0;
|
|
4757
|
+
}
|
|
4758
|
+
function wo(e, t) {
|
|
4699
4759
|
Q[e] = t;
|
|
4700
4760
|
}
|
|
4701
|
-
function
|
|
4761
|
+
function To(e) {
|
|
4702
4762
|
delete Q[e];
|
|
4703
4763
|
}
|
|
4704
4764
|
//#endregion
|
|
4705
4765
|
//#region src/client/charts/chartPlugin.ts
|
|
4706
|
-
function
|
|
4766
|
+
function Eo(e, t) {
|
|
4707
4767
|
return {
|
|
4708
4768
|
label: t.label ?? e.label,
|
|
4709
4769
|
icon: e.icon ?? "chartBar",
|
|
@@ -4724,16 +4784,16 @@ var $ = new class {
|
|
|
4724
4784
|
...e.config,
|
|
4725
4785
|
label: e.config.label || e.label
|
|
4726
4786
|
};
|
|
4727
|
-
Q[e.type] && !this.builtInBackups.has(e.type) && !this.customCharts.has(e.type) && this.builtInBackups.set(e.type, Q[e.type]), this.customCharts.set(e.type, e),
|
|
4787
|
+
Q[e.type] && !this.builtInBackups.has(e.type) && !this.customCharts.has(e.type) && this.builtInBackups.set(e.type, Q[e.type]), this.customCharts.set(e.type, e), Te(e.type, Eo(e, t)), wo(e.type, t), Le(e.type, t), uo(e.type, e.component, e.lazyComponent, e.dependencies), this.bump();
|
|
4728
4788
|
}
|
|
4729
4789
|
unregister(e) {
|
|
4730
4790
|
if (!this.customCharts.has(e)) return;
|
|
4731
|
-
this.customCharts.delete(e),
|
|
4791
|
+
this.customCharts.delete(e), Ee(e);
|
|
4732
4792
|
let t = this.builtInBackups.get(e);
|
|
4733
|
-
t ? (
|
|
4793
|
+
t ? (wo(e, t), Le(e, t), this.builtInBackups.delete(e)) : (To(e), Re(e)), fo(e), this.bump();
|
|
4734
4794
|
}
|
|
4735
4795
|
getIcon(e) {
|
|
4736
|
-
let t =
|
|
4796
|
+
let t = De(e)?.icon;
|
|
4737
4797
|
return t && typeof t != "string" ? t : void 0;
|
|
4738
4798
|
}
|
|
4739
4799
|
getCustomTypes() {
|
|
@@ -4750,19 +4810,24 @@ var $ = new class {
|
|
|
4750
4810
|
this.version++;
|
|
4751
4811
|
for (let e of this.listeners) e();
|
|
4752
4812
|
}
|
|
4753
|
-
}(),
|
|
4813
|
+
}(), Do = { apiUrl: "/cubejs-api/v1" }, Oo = 3;
|
|
4814
|
+
function ko(e) {
|
|
4815
|
+
let t = e?.status;
|
|
4816
|
+
return typeof t == "number" && t >= 400 && t < 500;
|
|
4817
|
+
}
|
|
4818
|
+
var Ao = () => new Bt({ defaultOptions: { queries: {
|
|
4754
4819
|
staleTime: 3e5,
|
|
4755
4820
|
gcTime: 9e5,
|
|
4756
|
-
retry:
|
|
4821
|
+
retry: (e, t) => !ko(t) && e < Oo,
|
|
4757
4822
|
refetchOnWindowFocus: !1
|
|
4758
4823
|
} } });
|
|
4759
|
-
|
|
4760
|
-
function
|
|
4761
|
-
|
|
4762
|
-
|
|
4824
|
+
Ao();
|
|
4825
|
+
function jo({ cubeApi: e, apiOptions: t, token: n, options: r, features: i, dashboardModes: a, enableBatching: o, batchDelayMs: s, queryClient: u, customCharts: d, locale: f, translations: p, debugI18n: m, children: h }) {
|
|
4826
|
+
x(() => {
|
|
4827
|
+
l(!!m);
|
|
4763
4828
|
}, [m]);
|
|
4764
|
-
let [g] =
|
|
4765
|
-
return
|
|
4829
|
+
let [g] = C(() => Ao()), _ = u ?? g, v = Se([]);
|
|
4830
|
+
return x(() => {
|
|
4766
4831
|
if (!d || d.length === 0) {
|
|
4767
4832
|
for (let e of v.current) $.unregister(e);
|
|
4768
4833
|
v.current = [];
|
|
@@ -4775,19 +4840,19 @@ function Co({ cubeApi: e, apiOptions: t, token: n, options: r, features: i, dash
|
|
|
4775
4840
|
for (let e of v.current) $.unregister(e);
|
|
4776
4841
|
v.current = [];
|
|
4777
4842
|
};
|
|
4778
|
-
}, [d]), /* @__PURE__ */
|
|
4843
|
+
}, [d]), /* @__PURE__ */ w(c, {
|
|
4779
4844
|
locale: f,
|
|
4780
4845
|
translations: p,
|
|
4781
|
-
children: /* @__PURE__ */
|
|
4846
|
+
children: /* @__PURE__ */ w(Ve, {
|
|
4782
4847
|
client: _,
|
|
4783
|
-
children: /* @__PURE__ */
|
|
4784
|
-
apiOptions: t ||
|
|
4848
|
+
children: /* @__PURE__ */ w(sn, {
|
|
4849
|
+
apiOptions: t || Do,
|
|
4785
4850
|
token: n,
|
|
4786
4851
|
options: r,
|
|
4787
4852
|
locale: f,
|
|
4788
|
-
enableBatching:
|
|
4789
|
-
batchDelayMs:
|
|
4790
|
-
children: /* @__PURE__ */
|
|
4853
|
+
enableBatching: o,
|
|
4854
|
+
batchDelayMs: s,
|
|
4855
|
+
children: /* @__PURE__ */ w(po, { children: /* @__PURE__ */ w(Bn, {
|
|
4791
4856
|
features: i,
|
|
4792
4857
|
dashboardModes: a,
|
|
4793
4858
|
children: h
|
|
@@ -4796,9 +4861,9 @@ function Co({ cubeApi: e, apiOptions: t, token: n, options: r, features: i, dash
|
|
|
4796
4861
|
})
|
|
4797
4862
|
});
|
|
4798
4863
|
}
|
|
4799
|
-
function
|
|
4800
|
-
let e =
|
|
4801
|
-
return
|
|
4864
|
+
function Mo() {
|
|
4865
|
+
let e = cn(), t = a(), n = Hn();
|
|
4866
|
+
return S(() => ({
|
|
4802
4867
|
...e,
|
|
4803
4868
|
...t,
|
|
4804
4869
|
features: n.features,
|
|
@@ -4811,14 +4876,14 @@ function wo() {
|
|
|
4811
4876
|
}
|
|
4812
4877
|
//#endregion
|
|
4813
4878
|
//#region src/client/utils/pivotUtils.ts
|
|
4814
|
-
function
|
|
4879
|
+
function No(e) {
|
|
4815
4880
|
if (!e) return [];
|
|
4816
4881
|
let t = [];
|
|
4817
4882
|
return e.dimensions && t.push(...e.dimensions), e.timeDimensions && e.timeDimensions.forEach((e) => {
|
|
4818
4883
|
t.includes(e.dimension) || t.push(e.dimension);
|
|
4819
4884
|
}), e.measures && t.push(...e.measures), t;
|
|
4820
4885
|
}
|
|
4821
|
-
function
|
|
4886
|
+
function Po(e, t) {
|
|
4822
4887
|
if (!e?.timeDimensions?.length) return null;
|
|
4823
4888
|
let n = e.timeDimensions.find((e) => e.granularity);
|
|
4824
4889
|
if (!n?.granularity || !e.measures?.length) return null;
|
|
@@ -4835,17 +4900,17 @@ function Eo(e, t) {
|
|
|
4835
4900
|
measures: i
|
|
4836
4901
|
};
|
|
4837
4902
|
}
|
|
4838
|
-
function
|
|
4903
|
+
function Fo(e, t, n) {
|
|
4839
4904
|
let r = /* @__PURE__ */ new Set();
|
|
4840
4905
|
return e.forEach((e) => {
|
|
4841
4906
|
let i = e[t];
|
|
4842
4907
|
if (i != null) {
|
|
4843
|
-
let e =
|
|
4908
|
+
let e = o(i, n);
|
|
4844
4909
|
r.add(e);
|
|
4845
4910
|
}
|
|
4846
4911
|
}), Array.from(r).sort();
|
|
4847
4912
|
}
|
|
4848
|
-
function
|
|
4913
|
+
function Io(e, t, n) {
|
|
4849
4914
|
let r = [];
|
|
4850
4915
|
return e.measures.length > 1 && r.push({
|
|
4851
4916
|
key: "__measure__",
|
|
@@ -4866,20 +4931,20 @@ function Oo(e, t, n) {
|
|
|
4866
4931
|
});
|
|
4867
4932
|
}), r;
|
|
4868
4933
|
}
|
|
4869
|
-
function
|
|
4934
|
+
function Lo(e, t) {
|
|
4870
4935
|
let n = /* @__PURE__ */ new Map();
|
|
4871
4936
|
return e.forEach((e) => {
|
|
4872
4937
|
let r = t.dimensions.length > 0 ? t.dimensions.map((t) => String(e[t] ?? "")).join("|") : "__all__";
|
|
4873
4938
|
n.has(r) || n.set(r, /* @__PURE__ */ new Map());
|
|
4874
4939
|
let i = e[t.timeDimension];
|
|
4875
4940
|
if (i != null) {
|
|
4876
|
-
let
|
|
4877
|
-
n.get(r).set(
|
|
4941
|
+
let a = o(i, t.granularity);
|
|
4942
|
+
n.get(r).set(a, e);
|
|
4878
4943
|
}
|
|
4879
4944
|
}), n;
|
|
4880
4945
|
}
|
|
4881
|
-
function
|
|
4882
|
-
let i =
|
|
4946
|
+
function Ro(e, t, n, r) {
|
|
4947
|
+
let i = Lo(e, t), a = Array.from(i.keys()), o = [], s = t.measures.length, c = a.length;
|
|
4883
4948
|
return t.measures.forEach((e) => {
|
|
4884
4949
|
a.forEach((a, l) => {
|
|
4885
4950
|
let u = i.get(a), d = s > 1 ? `${e}|${a}` : a, f = {}, p = a === "__all__" ? [] : a.split("|");
|
|
@@ -4900,20 +4965,20 @@ function Ao(e, t, n, r) {
|
|
|
4900
4965
|
});
|
|
4901
4966
|
}), o;
|
|
4902
4967
|
}
|
|
4903
|
-
function
|
|
4968
|
+
function zo(e, t, n, r) {
|
|
4904
4969
|
if (!e || e.length === 0) return {
|
|
4905
4970
|
isPivoted: !0,
|
|
4906
4971
|
columns: [],
|
|
4907
4972
|
rows: []
|
|
4908
4973
|
};
|
|
4909
|
-
let i =
|
|
4974
|
+
let i = Fo(e, t.timeDimension, t.granularity);
|
|
4910
4975
|
return {
|
|
4911
4976
|
isPivoted: !0,
|
|
4912
|
-
columns:
|
|
4913
|
-
rows:
|
|
4977
|
+
columns: Io(t, i, n),
|
|
4978
|
+
rows: Ro(e, t, i, n)
|
|
4914
4979
|
};
|
|
4915
4980
|
}
|
|
4916
|
-
function
|
|
4981
|
+
function Bo(e, t) {
|
|
4917
4982
|
if (t?.cubes) for (let n of t.cubes) {
|
|
4918
4983
|
let t = n.measures.find((t) => t.name === e);
|
|
4919
4984
|
if (t) return t.type;
|
|
@@ -4921,70 +4986,70 @@ function Mo(e, t) {
|
|
|
4921
4986
|
}
|
|
4922
4987
|
//#endregion
|
|
4923
4988
|
//#region src/client/components/charts/DataTable.tsx
|
|
4924
|
-
var
|
|
4925
|
-
let { t:
|
|
4989
|
+
var Vo = /* @__PURE__ */ t({ default: () => Ho }), Ho = he.memo(function({ data: e, chartConfig: t, displayConfig: n = {}, queryObject: r, height: i = 300 }) {
|
|
4990
|
+
let { t: o } = s(), { getFieldLabel: c, meta: l } = a(), u = S(() => Po(r, t?.xAxis), [r, t?.xAxis]), d = n?.pivotTimeDimension !== !1, f = S(() => !u || !d ? null : zo(e, u, c, l), [
|
|
4926
4991
|
e,
|
|
4927
|
-
l,
|
|
4928
4992
|
u,
|
|
4929
|
-
|
|
4930
|
-
|
|
4993
|
+
d,
|
|
4994
|
+
c,
|
|
4995
|
+
l
|
|
4931
4996
|
]);
|
|
4932
|
-
return !e || e.length === 0 ? /* @__PURE__ */
|
|
4997
|
+
return !e || e.length === 0 ? /* @__PURE__ */ w("div", {
|
|
4933
4998
|
className: "dc:flex dc:items-center dc:justify-center dc:w-full",
|
|
4934
4999
|
style: { height: i },
|
|
4935
|
-
children: /* @__PURE__ */
|
|
5000
|
+
children: /* @__PURE__ */ T("div", {
|
|
4936
5001
|
className: "dc:text-center text-dc-text-muted",
|
|
4937
|
-
children: [/* @__PURE__ */
|
|
5002
|
+
children: [/* @__PURE__ */ w("div", {
|
|
4938
5003
|
className: "dc:text-sm dc:font-semibold dc:mb-1",
|
|
4939
|
-
children:
|
|
4940
|
-
}), /* @__PURE__ */
|
|
5004
|
+
children: o("chart.runtime.noData")
|
|
5005
|
+
}), /* @__PURE__ */ w("div", {
|
|
4941
5006
|
className: "dc:text-xs text-dc-text-secondary",
|
|
4942
|
-
children:
|
|
5007
|
+
children: o("chart.runtime.noDataHint.table")
|
|
4943
5008
|
})]
|
|
4944
5009
|
})
|
|
4945
|
-
}) : f?.isPivoted && f.columns.length > 0 ? /* @__PURE__ */
|
|
5010
|
+
}) : f?.isPivoted && f.columns.length > 0 ? /* @__PURE__ */ w(Uo, {
|
|
4946
5011
|
pivotedData: f,
|
|
4947
5012
|
height: i,
|
|
4948
|
-
meta:
|
|
5013
|
+
meta: l,
|
|
4949
5014
|
leftYAxisFormat: n?.leftYAxisFormat
|
|
4950
|
-
}) : /* @__PURE__ */
|
|
5015
|
+
}) : /* @__PURE__ */ w(Ko, {
|
|
4951
5016
|
data: e,
|
|
4952
5017
|
chartConfig: t,
|
|
4953
5018
|
queryObject: r,
|
|
4954
5019
|
height: i,
|
|
4955
|
-
getFieldLabel:
|
|
5020
|
+
getFieldLabel: c,
|
|
4956
5021
|
leftYAxisFormat: n?.leftYAxisFormat
|
|
4957
5022
|
});
|
|
4958
5023
|
});
|
|
4959
|
-
function
|
|
4960
|
-
let { t: i } =
|
|
4961
|
-
return a.length === 0 || o.length === 0 ? /* @__PURE__ */
|
|
5024
|
+
function Uo({ pivotedData: e, height: t, meta: n, leftYAxisFormat: r }) {
|
|
5025
|
+
let { t: i } = s(), { columns: a, rows: o } = e;
|
|
5026
|
+
return a.length === 0 || o.length === 0 ? /* @__PURE__ */ w("div", {
|
|
4962
5027
|
className: "dc:flex dc:items-center dc:justify-center dc:w-full",
|
|
4963
5028
|
style: { height: t },
|
|
4964
|
-
children: /* @__PURE__ */
|
|
5029
|
+
children: /* @__PURE__ */ T("div", {
|
|
4965
5030
|
className: "dc:text-center text-dc-text-muted",
|
|
4966
|
-
children: [/* @__PURE__ */
|
|
5031
|
+
children: [/* @__PURE__ */ w("div", {
|
|
4967
5032
|
className: "dc:text-sm dc:font-semibold dc:mb-1",
|
|
4968
5033
|
children: i("chart.runtime.noData")
|
|
4969
|
-
}), /* @__PURE__ */
|
|
5034
|
+
}), /* @__PURE__ */ w("div", {
|
|
4970
5035
|
className: "dc:text-xs text-dc-text-secondary",
|
|
4971
5036
|
children: i("chart.runtime.noDataHint.table")
|
|
4972
5037
|
})]
|
|
4973
5038
|
})
|
|
4974
|
-
}) : /* @__PURE__ */
|
|
5039
|
+
}) : /* @__PURE__ */ w("div", {
|
|
4975
5040
|
className: "dc:w-full dc:overflow-auto",
|
|
4976
5041
|
style: { height: t },
|
|
4977
|
-
children: /* @__PURE__ */
|
|
5042
|
+
children: /* @__PURE__ */ T("table", {
|
|
4978
5043
|
className: "dc:min-w-full dc:divide-y border-dc-border",
|
|
4979
|
-
children: [/* @__PURE__ */
|
|
5044
|
+
children: [/* @__PURE__ */ w("thead", {
|
|
4980
5045
|
className: "bg-dc-surface-secondary dc:sticky dc:top-0",
|
|
4981
|
-
children: /* @__PURE__ */
|
|
5046
|
+
children: /* @__PURE__ */ w("tr", { children: a.map((e) => /* @__PURE__ */ w("th", {
|
|
4982
5047
|
className: `dc:px-3 dc:py-2 dc:text-xs dc:font-medium text-dc-text-muted dc:uppercase dc:tracking-wider dc:whitespace-nowrap ${e.isTimeColumn ? "dc:text-right" : "dc:text-left"}`,
|
|
4983
5048
|
children: e.label
|
|
4984
5049
|
}, e.key)) })
|
|
4985
|
-
}), /* @__PURE__ */
|
|
5050
|
+
}), /* @__PURE__ */ w("tbody", {
|
|
4986
5051
|
className: "bg-dc-surface dc:divide-y border-dc-border",
|
|
4987
|
-
children: o.map((e) => /* @__PURE__ */
|
|
5052
|
+
children: o.map((e) => /* @__PURE__ */ w(Wo, {
|
|
4988
5053
|
row: e,
|
|
4989
5054
|
columns: a,
|
|
4990
5055
|
meta: n,
|
|
@@ -4994,87 +5059,87 @@ function Fo({ pivotedData: e, height: t, meta: n, leftYAxisFormat: r }) {
|
|
|
4994
5059
|
})
|
|
4995
5060
|
});
|
|
4996
5061
|
}
|
|
4997
|
-
function
|
|
4998
|
-
let i =
|
|
4999
|
-
return /* @__PURE__ */
|
|
5062
|
+
function Wo({ row: e, columns: t, meta: n, leftYAxisFormat: r }) {
|
|
5063
|
+
let i = to(Bo(e.measureField, n));
|
|
5064
|
+
return /* @__PURE__ */ w("tr", {
|
|
5000
5065
|
className: "hover:bg-dc-surface-secondary",
|
|
5001
5066
|
children: t.map((t) => {
|
|
5002
5067
|
let n = e.values[t.key];
|
|
5003
|
-
return t.isMeasureColumn ? e.isFirstInGroup === !1 ? null : /* @__PURE__ */
|
|
5068
|
+
return t.isMeasureColumn ? e.isFirstInGroup === !1 ? null : /* @__PURE__ */ w("td", {
|
|
5004
5069
|
className: "dc:px-3 dc:py-2 dc:whitespace-nowrap dc:text-sm text-dc-text dc:align-top",
|
|
5005
5070
|
rowSpan: e.dimensionRowSpan,
|
|
5006
|
-
children: /* @__PURE__ */
|
|
5071
|
+
children: /* @__PURE__ */ T("div", {
|
|
5007
5072
|
className: "dc:flex dc:items-center",
|
|
5008
|
-
children: [/* @__PURE__ */
|
|
5073
|
+
children: [/* @__PURE__ */ w(i, { className: "dc:w-3.5 dc:h-3.5 dc:mr-1.5 text-dc-text-muted dc:shrink-0" }), /* @__PURE__ */ w("span", { children: n })]
|
|
5009
5074
|
})
|
|
5010
|
-
}, t.key) : t.isTimeColumn ? /* @__PURE__ */
|
|
5075
|
+
}, t.key) : t.isTimeColumn ? /* @__PURE__ */ w("td", {
|
|
5011
5076
|
className: "dc:px-3 dc:py-2 dc:whitespace-nowrap dc:text-sm dc:text-right text-dc-text",
|
|
5012
|
-
children:
|
|
5013
|
-
}, t.key) : /* @__PURE__ */
|
|
5077
|
+
children: Go(n, r)
|
|
5078
|
+
}, t.key) : /* @__PURE__ */ w("td", {
|
|
5014
5079
|
className: "dc:px-3 dc:py-2 dc:whitespace-nowrap dc:text-sm text-dc-text",
|
|
5015
|
-
children:
|
|
5080
|
+
children: Go(n)
|
|
5016
5081
|
}, t.key);
|
|
5017
5082
|
})
|
|
5018
5083
|
});
|
|
5019
5084
|
}
|
|
5020
|
-
function
|
|
5085
|
+
function Go(e, t) {
|
|
5021
5086
|
return e == null ? "-" : typeof e == "number" ? t ? u(e, t) : Number.isInteger(e) ? e.toLocaleString() : parseFloat(e.toFixed(2)).toLocaleString() : typeof e == "boolean" ? e ? "Yes" : "No" : String(e);
|
|
5022
5087
|
}
|
|
5023
|
-
function
|
|
5024
|
-
let { t: o } =
|
|
5025
|
-
if (t?.xAxis && t.xAxis.length > 0) return t.xAxis.filter((e) =>
|
|
5026
|
-
let e =
|
|
5088
|
+
function Ko({ data: e, chartConfig: t, queryObject: n, height: r, getFieldLabel: i, leftYAxisFormat: a }) {
|
|
5089
|
+
let { t: o } = s(), c = Object.keys(e[0] || {}), l = S(() => {
|
|
5090
|
+
if (t?.xAxis && t.xAxis.length > 0) return t.xAxis.filter((e) => c.includes(e));
|
|
5091
|
+
let e = No(n);
|
|
5027
5092
|
if (e.length > 0) {
|
|
5028
|
-
let t = e.filter((e) =>
|
|
5093
|
+
let t = e.filter((e) => c.includes(e)), n = c.filter((e) => !t.includes(e));
|
|
5029
5094
|
return [...t, ...n];
|
|
5030
5095
|
}
|
|
5031
|
-
return
|
|
5096
|
+
return c;
|
|
5032
5097
|
}, [
|
|
5033
5098
|
t?.xAxis,
|
|
5034
5099
|
n,
|
|
5035
|
-
|
|
5100
|
+
c
|
|
5036
5101
|
]);
|
|
5037
|
-
return l.length === 0 ? /* @__PURE__ */
|
|
5102
|
+
return l.length === 0 ? /* @__PURE__ */ w("div", {
|
|
5038
5103
|
className: "dc:flex dc:items-center dc:justify-center dc:w-full",
|
|
5039
5104
|
style: { height: r },
|
|
5040
|
-
children: /* @__PURE__ */
|
|
5105
|
+
children: /* @__PURE__ */ T("div", {
|
|
5041
5106
|
className: "dc:text-center text-dc-text-muted",
|
|
5042
|
-
children: [/* @__PURE__ */
|
|
5107
|
+
children: [/* @__PURE__ */ w("div", {
|
|
5043
5108
|
className: "dc:text-sm dc:font-semibold dc:mb-1",
|
|
5044
5109
|
children: "No columns available"
|
|
5045
|
-
}), /* @__PURE__ */
|
|
5110
|
+
}), /* @__PURE__ */ w("div", {
|
|
5046
5111
|
className: "dc:text-xs text-dc-text-secondary",
|
|
5047
5112
|
children: o("chart.runtime.table.invalidStructure")
|
|
5048
5113
|
})]
|
|
5049
5114
|
})
|
|
5050
|
-
}) : /* @__PURE__ */
|
|
5115
|
+
}) : /* @__PURE__ */ w("div", {
|
|
5051
5116
|
className: "dc:w-full dc:overflow-auto",
|
|
5052
5117
|
style: { height: r },
|
|
5053
|
-
children: /* @__PURE__ */
|
|
5118
|
+
children: /* @__PURE__ */ T("table", {
|
|
5054
5119
|
className: "dc:min-w-full dc:divide-y border-dc-border",
|
|
5055
|
-
children: [/* @__PURE__ */
|
|
5120
|
+
children: [/* @__PURE__ */ w("thead", {
|
|
5056
5121
|
className: "bg-dc-surface-secondary dc:sticky dc:top-0",
|
|
5057
|
-
children: /* @__PURE__ */
|
|
5122
|
+
children: /* @__PURE__ */ w("tr", { children: l.map((e) => /* @__PURE__ */ w("th", {
|
|
5058
5123
|
className: "dc:px-3 dc:py-2 dc:text-left dc:text-xs dc:font-medium text-dc-text-muted dc:uppercase dc:tracking-wider",
|
|
5059
5124
|
children: i(e)
|
|
5060
5125
|
}, e)) })
|
|
5061
|
-
}), /* @__PURE__ */
|
|
5126
|
+
}), /* @__PURE__ */ w("tbody", {
|
|
5062
5127
|
className: "bg-dc-surface dc:divide-y border-dc-border",
|
|
5063
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
5128
|
+
children: e.map((e, t) => /* @__PURE__ */ w("tr", {
|
|
5064
5129
|
className: "hover:bg-dc-surface-secondary",
|
|
5065
|
-
children: l.map((t) => /* @__PURE__ */
|
|
5130
|
+
children: l.map((t) => /* @__PURE__ */ w("td", {
|
|
5066
5131
|
className: "dc:px-3 dc:py-2 dc:whitespace-nowrap dc:text-sm text-dc-text",
|
|
5067
|
-
children:
|
|
5132
|
+
children: qo(e[t], a)
|
|
5068
5133
|
}, t))
|
|
5069
5134
|
}, t))
|
|
5070
5135
|
})]
|
|
5071
5136
|
})
|
|
5072
5137
|
});
|
|
5073
5138
|
}
|
|
5074
|
-
function
|
|
5139
|
+
function qo(e, t) {
|
|
5075
5140
|
return e == null ? "" : typeof e == "number" ? t ? u(e, t) : e.toLocaleString() : typeof e == "boolean" ? e ? "Yes" : "No" : String(e);
|
|
5076
5141
|
}
|
|
5077
5142
|
//#endregion
|
|
5078
|
-
export {
|
|
5143
|
+
export { It as $, Hn as A, cn as B, to as C, Ja as D, Za as E, xn as F, Yt as G, en as H, vn as I, Kt as J, Zt as K, _n as L, Mn as M, Nn as N, qa as O, gn as P, Ht as Q, hn as R, eo as S, $a as T, rn as U, tn as V, $t as W, qt as X, Jt as Y, Gt as Z, no as _, Po as a, Qe as at, Xa as b, Mo as c, Be as ct, Co as d, Ae as dt, kt as et, ao as f, je as ft, Z as g, Me as gt, oo as h, Pe as ht, No as i, j as it, Ln as j, Ti as k, $ as l, Ie as lt, so as m, Ne as mt, Vo as n, F as nt, zo as o, $e as ot, lo as p, Fe as pt, Xt as q, Bo as r, N as rt, jo as s, lt as st, Ho as t, I as tt, Q as u, ke as ut, ro as v, Qa as w, Ya as x, X as y, dn as z };
|
|
5079
5144
|
|
|
5080
|
-
//# sourceMappingURL=chart-data-table-
|
|
5145
|
+
//# sourceMappingURL=chart-data-table-C_oHiK6N.js.map
|