drizzle-cube 0.4.29 → 0.4.30
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/anthropic-BIva8k1r.cjs +1 -0
- package/dist/adapters/anthropic-B_rg0BhK.js +140 -0
- package/dist/adapters/dist-Boc63-1q.cjs +2 -0
- package/dist/adapters/dist-De5fzUEM.js +581 -0
- package/dist/adapters/express/index.cjs +2 -10
- package/dist/adapters/express/index.js +232 -342
- package/dist/adapters/fastify/index.cjs +2 -10
- package/dist/adapters/fastify/index.js +275 -424
- package/dist/adapters/google-CT4kgmBf.js +154 -0
- package/dist/adapters/google-Dgo9-Kb5.cjs +2 -0
- package/dist/adapters/handler-B8vuFQYP.cjs +25 -0
- package/dist/adapters/handler-D-2-6uLM.js +2951 -0
- package/dist/adapters/hono/index.cjs +2 -10
- package/dist/adapters/hono/index.js +307 -402
- package/dist/adapters/mcp-prompts-BAutSQYA.js +344 -0
- package/dist/adapters/mcp-prompts-DsAkafVn.cjs +5 -0
- package/dist/adapters/mcp-transport-CuugoG8t.js +7821 -0
- package/dist/adapters/mcp-transport-Dpp6hdZe.cjs +253 -0
- package/dist/adapters/nextjs/index.cjs +1 -9
- package/dist/adapters/nextjs/index.js +377 -600
- package/dist/adapters/openai-CjBvA6mK.js +4114 -0
- package/dist/adapters/openai-DhLE0A9Z.cjs +1 -0
- package/dist/adapters/openai-Zjw4Zo4R.js +153 -0
- package/dist/adapters/openai-eJBw3LfQ.cjs +16 -0
- package/dist/adapters/types.cjs +0 -1
- package/dist/adapters/types.js +0 -1
- package/dist/adapters/utils-ChhNGUOF.js +5396 -0
- package/dist/adapters/utils-CwJplXR5.cjs +15 -0
- package/dist/adapters/utils.cjs +1 -19
- package/dist/adapters/utils.js +2 -21333
- package/dist/client/charts.js +15 -186
- package/dist/client/chunks/DashboardEditModal-C076pscL.js +6678 -0
- package/dist/client/chunks/DashboardEditModal-C076pscL.js.map +1 -0
- package/dist/client/chunks/FieldSearchModal-C0DjSWk3.js +2631 -0
- package/dist/client/chunks/FieldSearchModal-C0DjSWk3.js.map +1 -0
- package/dist/client/chunks/RetentionCombinedChart-DuGXc-AP.js +270 -0
- package/dist/client/chunks/RetentionCombinedChart-DuGXc-AP.js.map +1 -0
- package/dist/client/chunks/RetentionCombinedChart.config-DprbXd1N.js +56 -0
- package/dist/client/chunks/RetentionCombinedChart.config-DprbXd1N.js.map +1 -0
- package/dist/client/chunks/RetentionHeatmap-BoGY6mlZ.js +193 -0
- package/dist/client/chunks/RetentionHeatmap-BoGY6mlZ.js.map +1 -0
- package/dist/client/chunks/RetentionHeatmap.config-cbaNExVy.js +25 -0
- package/dist/client/chunks/RetentionHeatmap.config-cbaNExVy.js.map +1 -0
- package/dist/client/chunks/analysis-builder-DF0XntqC.js +6111 -0
- package/dist/client/chunks/analysis-builder-DF0XntqC.js.map +1 -0
- package/dist/client/chunks/analysis-builder-shared-2QhKYbs6.js +3114 -0
- package/dist/client/chunks/analysis-builder-shared-2QhKYbs6.js.map +1 -0
- package/dist/client/chunks/chart-activity-grid-CNES9VBk.js +803 -0
- package/dist/client/chunks/chart-activity-grid-CNES9VBk.js.map +1 -0
- package/dist/client/chunks/chart-area-CRJc3KOu.js +449 -0
- package/dist/client/chunks/chart-area-CRJc3KOu.js.map +1 -0
- package/dist/client/chunks/chart-bar-DD2PjJ5n.js +270 -0
- package/dist/client/chunks/chart-bar-DD2PjJ5n.js.map +1 -0
- package/dist/client/chunks/chart-box-plot-BcqleldJ.js +377 -0
- package/dist/client/chunks/chart-box-plot-BcqleldJ.js.map +1 -0
- package/dist/client/chunks/chart-bubble-BmQkVk4K.js +273 -0
- package/dist/client/chunks/chart-bubble-BmQkVk4K.js.map +1 -0
- package/dist/client/chunks/chart-candlestick-C3Rep469.js +306 -0
- package/dist/client/chunks/chart-candlestick-C3Rep469.js.map +1 -0
- package/dist/client/chunks/chart-config-activity-grid-USo7JrPh.js +51 -0
- package/dist/client/chunks/chart-config-activity-grid-USo7JrPh.js.map +1 -0
- package/dist/client/chunks/chart-config-area-D_ZufYzg.js +93 -0
- package/dist/client/chunks/chart-config-area-D_ZufYzg.js.map +1 -0
- package/dist/client/chunks/chart-config-bar-BCi2Wmd6.js +87 -0
- package/dist/client/chunks/chart-config-bar-BCi2Wmd6.js.map +1 -0
- package/dist/client/chunks/chart-config-box-plot-afKLzJSp.js +35 -0
- package/dist/client/chunks/chart-config-box-plot-afKLzJSp.js.map +1 -0
- package/dist/client/chunks/chart-config-bubble-CgbBjPv8.js +82 -0
- package/dist/client/chunks/chart-config-bubble-CgbBjPv8.js.map +1 -0
- package/dist/client/chunks/chart-config-candlestick-7boGjZ-A.js +72 -0
- package/dist/client/chunks/chart-config-candlestick-7boGjZ-A.js.map +1 -0
- package/dist/client/chunks/chart-config-data-table-Cl7sBasW.js +30 -0
- package/dist/client/chunks/chart-config-data-table-Cl7sBasW.js.map +1 -0
- package/dist/client/chunks/chart-config-funnel-CXPYQtTl.js +93 -0
- package/dist/client/chunks/chart-config-funnel-CXPYQtTl.js.map +1 -0
- package/dist/client/chunks/chart-config-gauge-DUNEUCvh.js +64 -0
- package/dist/client/chunks/chart-config-gauge-DUNEUCvh.js.map +1 -0
- package/dist/client/chunks/chart-config-heat-map-BFf1tO11.js +91 -0
- package/dist/client/chunks/chart-config-heat-map-BFf1tO11.js.map +1 -0
- package/dist/client/chunks/chart-config-kpi-delta-C5k2waIJ.js +94 -0
- package/dist/client/chunks/chart-config-kpi-delta-C5k2waIJ.js.map +1 -0
- package/dist/client/chunks/chart-config-kpi-number-DptOyhk0.js +75 -0
- package/dist/client/chunks/chart-config-kpi-number-DptOyhk0.js.map +1 -0
- package/dist/client/chunks/chart-config-kpi-text-D9DdVWqd.js +47 -0
- package/dist/client/chunks/chart-config-kpi-text-D9DdVWqd.js.map +1 -0
- package/dist/client/chunks/chart-config-line-B3NgLF7K.js +104 -0
- package/dist/client/chunks/chart-config-line-B3NgLF7K.js.map +1 -0
- package/dist/client/chunks/chart-config-markdown-tlfivQTt.js +117 -0
- package/dist/client/chunks/chart-config-markdown-tlfivQTt.js.map +1 -0
- package/dist/client/chunks/chart-config-measure-profile-D7XDwrU2.js +82 -0
- package/dist/client/chunks/chart-config-measure-profile-D7XDwrU2.js.map +1 -0
- package/dist/client/chunks/chart-config-pie-wY0B52PC.js +68 -0
- package/dist/client/chunks/chart-config-pie-wY0B52PC.js.map +1 -0
- package/dist/client/chunks/chart-config-radar-DRpJBy1M.js +49 -0
- package/dist/client/chunks/chart-config-radar-DRpJBy1M.js.map +1 -0
- package/dist/client/chunks/chart-config-radial-bar-DCUpXv9G.js +38 -0
- package/dist/client/chunks/chart-config-radial-bar-DCUpXv9G.js.map +1 -0
- package/dist/client/chunks/chart-config-sankey-CdOhlm4h.js +66 -0
- package/dist/client/chunks/chart-config-sankey-CdOhlm4h.js.map +1 -0
- package/dist/client/chunks/chart-config-scatter-B2su_x8f.js +61 -0
- package/dist/client/chunks/chart-config-scatter-B2su_x8f.js.map +1 -0
- package/dist/client/chunks/chart-config-sunburst-BPdjbk18.js +45 -0
- package/dist/client/chunks/chart-config-sunburst-BPdjbk18.js.map +1 -0
- package/dist/client/chunks/chart-config-tree-map-Cbsh2fe2.js +51 -0
- package/dist/client/chunks/chart-config-tree-map-Cbsh2fe2.js.map +1 -0
- package/dist/client/chunks/chart-config-waterfall-DGmuZfQF.js +59 -0
- package/dist/client/chunks/chart-config-waterfall-DGmuZfQF.js.map +1 -0
- package/dist/client/chunks/chart-data-table-DehW1C1G.js +4088 -0
- package/dist/client/chunks/chart-data-table-DehW1C1G.js.map +1 -0
- package/dist/client/chunks/chart-funnel-BjkpnG5g.js +447 -0
- package/dist/client/chunks/chart-funnel-BjkpnG5g.js.map +1 -0
- package/dist/client/chunks/chart-gauge-BWW_HEfg.js +424 -0
- package/dist/client/chunks/chart-gauge-BWW_HEfg.js.map +1 -0
- package/dist/client/chunks/chart-heat-map-BWuOuDcm.js +236 -0
- package/dist/client/chunks/chart-heat-map-BWuOuDcm.js.map +1 -0
- package/dist/client/chunks/chart-kpi-delta-D5OHtDJx.js +343 -0
- package/dist/client/chunks/chart-kpi-delta-D5OHtDJx.js.map +1 -0
- package/dist/client/chunks/chart-kpi-number-C9zH-aKC.js +326 -0
- package/dist/client/chunks/chart-kpi-number-C9zH-aKC.js.map +1 -0
- package/dist/client/chunks/chart-kpi-text-ChVn3S7j.js +149 -0
- package/dist/client/chunks/chart-kpi-text-ChVn3S7j.js.map +1 -0
- package/dist/client/chunks/chart-line-DOIMkP0b.js +431 -0
- package/dist/client/chunks/chart-line-DOIMkP0b.js.map +1 -0
- package/dist/client/chunks/chart-markdown-DXxc43w1.js +3457 -0
- package/dist/client/chunks/chart-markdown-DXxc43w1.js.map +1 -0
- package/dist/client/chunks/chart-measure-profile-C6wrr9il.js +179 -0
- package/dist/client/chunks/chart-measure-profile-C6wrr9il.js.map +1 -0
- package/dist/client/chunks/chart-pie-BU_FgwDc.js +172 -0
- package/dist/client/chunks/chart-pie-BU_FgwDc.js.map +1 -0
- package/dist/client/chunks/chart-radar-DlufwnAX.js +154 -0
- package/dist/client/chunks/chart-radar-DlufwnAX.js.map +1 -0
- package/dist/client/chunks/chart-radial-bar-B5vS_Aw5.js +148 -0
- package/dist/client/chunks/chart-radial-bar-B5vS_Aw5.js.map +1 -0
- package/dist/client/chunks/chart-sankey-FChb26UX.js +222 -0
- package/dist/client/chunks/chart-sankey-FChb26UX.js.map +1 -0
- package/dist/client/chunks/chart-scatter-DW0cAZ2H.js +255 -0
- package/dist/client/chunks/chart-scatter-DW0cAZ2H.js.map +1 -0
- package/dist/client/chunks/chart-sunburst-Clf-6WxW.js +221 -0
- package/dist/client/chunks/chart-sunburst-Clf-6WxW.js.map +1 -0
- package/dist/client/chunks/chart-tree-map-p_VwUJPF.js +298 -0
- package/dist/client/chunks/chart-tree-map-p_VwUJPF.js.map +1 -0
- package/dist/client/chunks/chart-waterfall-jt44IQ-w.js +237 -0
- package/dist/client/chunks/chart-waterfall-jt44IQ-w.js.map +1 -0
- package/dist/client/chunks/charts-core-CUVzf4cV.js +215 -0
- package/dist/client/chunks/charts-core-CUVzf4cV.js.map +1 -0
- package/dist/client/chunks/charts-loader-AGpph8_I.js +259 -0
- package/dist/client/chunks/charts-loader-AGpph8_I.js.map +1 -0
- package/dist/client/chunks/core-D1TOj17W.js +845 -0
- package/dist/client/chunks/core-D1TOj17W.js.map +1 -0
- package/dist/client/chunks/dist-DDBeV_JI.js +847 -0
- package/dist/client/chunks/dist-DDBeV_JI.js.map +1 -0
- package/dist/client/chunks/javascript-BBwTSo6e.js +438 -0
- package/dist/client/chunks/javascript-BBwTSo6e.js.map +1 -0
- package/dist/client/chunks/json-BpTrLZSh.js +38 -0
- package/dist/client/chunks/json-BpTrLZSh.js.map +1 -0
- package/dist/client/chunks/lazyChartConfigRegistry-BjhxDaSf.js +149 -0
- package/dist/client/chunks/lazyChartConfigRegistry-BjhxDaSf.js.map +1 -0
- package/dist/client/chunks/providers-DX3Vw5kc.js +7 -0
- package/dist/client/chunks/providers-DX3Vw5kc.js.map +1 -0
- package/dist/client/chunks/retention-UEXlSdZ-.js +132 -0
- package/dist/client/chunks/retention-UEXlSdZ-.js.map +1 -0
- package/dist/client/chunks/rolldown-runtime-lc2dmIiU.js +20 -0
- package/dist/client/chunks/schema-visualization-ZugB4Io9.js +1073 -0
- package/dist/client/chunks/schema-visualization-ZugB4Io9.js.map +1 -0
- package/dist/client/chunks/sql-B0chxcEK.js +120 -0
- package/dist/client/chunks/sql-B0chxcEK.js.map +1 -0
- package/dist/client/chunks/syntaxHighlighting-87bOwTxj.js +30 -0
- package/dist/client/chunks/syntaxHighlighting-87bOwTxj.js.map +1 -0
- package/dist/client/chunks/useDebounce-BQjNWndQ.js +1394 -0
- package/dist/client/chunks/useDebounce-BQjNWndQ.js.map +1 -0
- package/dist/client/chunks/useDirtyStateTracking-CgKZWkel.js +66 -0
- package/dist/client/chunks/useDirtyStateTracking-CgKZWkel.js.map +1 -0
- package/dist/client/chunks/useExplainAI-c_bHxZe5.js +203 -0
- package/dist/client/chunks/useExplainAI-c_bHxZe5.js.map +1 -0
- package/dist/client/chunks/useNotebookLayout-BFZ_33Kb.js +37 -0
- package/dist/client/chunks/useNotebookLayout-BFZ_33Kb.js.map +1 -0
- package/dist/client/chunks/utils-A54Ny29G.js +128 -0
- package/dist/client/chunks/utils-A54Ny29G.js.map +1 -0
- package/dist/client/chunks/vendor-CoPBRumI.js +828 -0
- package/dist/client/chunks/vendor-CoPBRumI.js.map +1 -0
- package/dist/client/components.js +4 -18
- package/dist/client/hooks.js +6 -58
- package/dist/client/icons.js +2 -15
- package/dist/client/index.js +1061 -1295
- package/dist/client/index.js.map +1 -1
- package/dist/client/providers.js +3 -9
- package/dist/client/styles.css +2 -1
- package/dist/client/types.d.ts +1 -0
- package/dist/client/utils.js +7 -74
- package/dist/client-bundle-stats.html +1 -1
- package/dist/server/anthropic-BsNspi1r.js +140 -0
- package/dist/server/anthropic-DsCEX6Fm.cjs +1 -0
- package/dist/server/dist-CMWZC51B.js +581 -0
- package/dist/server/dist-DxegvyZF.cjs +2 -0
- package/dist/server/google-BXwMolCu.js +154 -0
- package/dist/server/google-DzQWXFwF.cjs +2 -0
- package/dist/server/index.cjs +109 -129
- package/dist/server/index.js +15089 -34394
- package/dist/server/openai-BPhmb8mi.js +4114 -0
- package/dist/server/openai-CLsoLaue.cjs +1 -0
- package/dist/server/openai-D1kZ5sdM.js +153 -0
- package/dist/server/openai-DkOKbVLC.cjs +16 -0
- package/package.json +5 -5
- package/dist/adapters/anthropic-BTkjgFpT.cjs +0 -1
- package/dist/adapters/anthropic-CTu9E801.js +0 -126
- package/dist/adapters/google-BAK9pnQf.cjs +0 -2
- package/dist/adapters/google-DficVAsJ.js +0 -146
- package/dist/adapters/handler-BHguLZOY.js +0 -2713
- package/dist/adapters/handler-DOIyiFPg.cjs +0 -39
- package/dist/adapters/index-BgCeQBuN.cjs +0 -2
- package/dist/adapters/index-C3PskWTr.js +0 -5353
- package/dist/adapters/index-C45_meK_.js +0 -719
- package/dist/adapters/index-ht4NPca9.cjs +0 -23
- package/dist/adapters/mcp-transport-CWGqDQSI.cjs +0 -259
- package/dist/adapters/mcp-transport-CyeHMDPl.js +0 -11055
- package/dist/adapters/openai-BvA6eLs8.cjs +0 -1
- package/dist/adapters/openai-mcE24du8.js +0 -131
- package/dist/client/charts.js.map +0 -1
- package/dist/client/chunks/RetentionCombinedChart--SnU4Y_I.js +0 -256
- package/dist/client/chunks/RetentionCombinedChart--SnU4Y_I.js.map +0 -1
- package/dist/client/chunks/RetentionCombinedChart.config-Bbp2ghim.js +0 -48
- package/dist/client/chunks/RetentionCombinedChart.config-Bbp2ghim.js.map +0 -1
- package/dist/client/chunks/RetentionHeatmap-BHYU8MXY.js +0 -178
- package/dist/client/chunks/RetentionHeatmap-BHYU8MXY.js.map +0 -1
- package/dist/client/chunks/RetentionHeatmap.config-BWf_-vdj.js +0 -29
- package/dist/client/chunks/RetentionHeatmap.config-BWf_-vdj.js.map +0 -1
- package/dist/client/chunks/analysis-builder-DMFoAkjT.js +0 -6203
- package/dist/client/chunks/analysis-builder-DMFoAkjT.js.map +0 -1
- package/dist/client/chunks/analysis-builder-shared-CunrT3gi.js +0 -3140
- package/dist/client/chunks/analysis-builder-shared-CunrT3gi.js.map +0 -1
- package/dist/client/chunks/chart-activity-grid-DCznpK6N.js +0 -347
- package/dist/client/chunks/chart-activity-grid-DCznpK6N.js.map +0 -1
- package/dist/client/chunks/chart-area-CqKRIUpj.js +0 -234
- package/dist/client/chunks/chart-area-CqKRIUpj.js.map +0 -1
- package/dist/client/chunks/chart-bar-Bl5jvrU_.js +0 -267
- package/dist/client/chunks/chart-bar-Bl5jvrU_.js.map +0 -1
- package/dist/client/chunks/chart-box-plot-CzMb00z_.js +0 -322
- package/dist/client/chunks/chart-box-plot-CzMb00z_.js.map +0 -1
- package/dist/client/chunks/chart-bubble-BF8Z52eW.js +0 -249
- package/dist/client/chunks/chart-bubble-BF8Z52eW.js.map +0 -1
- package/dist/client/chunks/chart-candlestick-ByWS945g.js +0 -269
- package/dist/client/chunks/chart-candlestick-ByWS945g.js.map +0 -1
- package/dist/client/chunks/chart-config-activity-grid-CmOqDuOT.js +0 -50
- package/dist/client/chunks/chart-config-activity-grid-CmOqDuOT.js.map +0 -1
- package/dist/client/chunks/chart-config-area-CK_GVApT.js +0 -77
- package/dist/client/chunks/chart-config-area-CK_GVApT.js.map +0 -1
- package/dist/client/chunks/chart-config-bar-C8uzktxl.js +0 -71
- package/dist/client/chunks/chart-config-bar-C8uzktxl.js.map +0 -1
- package/dist/client/chunks/chart-config-box-plot-D_E_SSc2.js +0 -38
- package/dist/client/chunks/chart-config-box-plot-D_E_SSc2.js.map +0 -1
- package/dist/client/chunks/chart-config-bubble-q3DoQX5F.js +0 -71
- package/dist/client/chunks/chart-config-bubble-q3DoQX5F.js.map +0 -1
- package/dist/client/chunks/chart-config-candlestick-CRCpD43-.js +0 -70
- package/dist/client/chunks/chart-config-candlestick-CRCpD43-.js.map +0 -1
- package/dist/client/chunks/chart-config-data-table-B20Y5JCm.js +0 -28
- package/dist/client/chunks/chart-config-data-table-B20Y5JCm.js.map +0 -1
- package/dist/client/chunks/chart-config-funnel-3eYnGg8M.js +0 -92
- package/dist/client/chunks/chart-config-funnel-3eYnGg8M.js.map +0 -1
- package/dist/client/chunks/chart-config-gauge-CQx9w3d4.js +0 -64
- package/dist/client/chunks/chart-config-gauge-CQx9w3d4.js.map +0 -1
- package/dist/client/chunks/chart-config-heat-map-_wEnTnRA.js +0 -77
- package/dist/client/chunks/chart-config-heat-map-_wEnTnRA.js.map +0 -1
- package/dist/client/chunks/chart-config-kpi-delta-DLGZ2A3X.js +0 -97
- package/dist/client/chunks/chart-config-kpi-delta-DLGZ2A3X.js.map +0 -1
- package/dist/client/chunks/chart-config-kpi-number-K-wzviXF.js +0 -75
- package/dist/client/chunks/chart-config-kpi-number-K-wzviXF.js.map +0 -1
- package/dist/client/chunks/chart-config-kpi-text-BjYqwqaJ.js +0 -47
- package/dist/client/chunks/chart-config-kpi-text-BjYqwqaJ.js.map +0 -1
- package/dist/client/chunks/chart-config-line-JNagi9tf.js +0 -88
- package/dist/client/chunks/chart-config-line-JNagi9tf.js.map +0 -1
- package/dist/client/chunks/chart-config-markdown-BWQSjJpy.js +0 -97
- package/dist/client/chunks/chart-config-markdown-BWQSjJpy.js.map +0 -1
- package/dist/client/chunks/chart-config-measure-profile-ZYaMrtws.js +0 -70
- package/dist/client/chunks/chart-config-measure-profile-ZYaMrtws.js.map +0 -1
- package/dist/client/chunks/chart-config-pie-CNLXb-fr.js +0 -39
- package/dist/client/chunks/chart-config-pie-CNLXb-fr.js.map +0 -1
- package/dist/client/chunks/chart-config-radar-oxHfRAa3.js +0 -44
- package/dist/client/chunks/chart-config-radar-oxHfRAa3.js.map +0 -1
- package/dist/client/chunks/chart-config-radial-bar-_Aw3jAEm.js +0 -37
- package/dist/client/chunks/chart-config-radial-bar-_Aw3jAEm.js.map +0 -1
- package/dist/client/chunks/chart-config-sankey-C8FX9hGF.js +0 -61
- package/dist/client/chunks/chart-config-sankey-C8FX9hGF.js.map +0 -1
- package/dist/client/chunks/chart-config-scatter-DFKM80eO.js +0 -53
- package/dist/client/chunks/chart-config-scatter-DFKM80eO.js.map +0 -1
- package/dist/client/chunks/chart-config-sunburst-BmC0NLTU.js +0 -50
- package/dist/client/chunks/chart-config-sunburst-BmC0NLTU.js.map +0 -1
- package/dist/client/chunks/chart-config-tree-map-DGMbNTaa.js +0 -47
- package/dist/client/chunks/chart-config-tree-map-DGMbNTaa.js.map +0 -1
- package/dist/client/chunks/chart-config-waterfall-DTyXV_fo.js +0 -60
- package/dist/client/chunks/chart-config-waterfall-DTyXV_fo.js.map +0 -1
- package/dist/client/chunks/chart-data-table-HwfF-Ujv.js +0 -293
- package/dist/client/chunks/chart-data-table-HwfF-Ujv.js.map +0 -1
- package/dist/client/chunks/chart-funnel-WmuoWlCq.js +0 -259
- package/dist/client/chunks/chart-funnel-WmuoWlCq.js.map +0 -1
- package/dist/client/chunks/chart-gauge-Cot4By-w.js +0 -374
- package/dist/client/chunks/chart-gauge-Cot4By-w.js.map +0 -1
- package/dist/client/chunks/chart-heat-map-bGNtsZMr.js +0 -231
- package/dist/client/chunks/chart-heat-map-bGNtsZMr.js.map +0 -1
- package/dist/client/chunks/chart-kpi-delta-DeyKMxgq.js +0 -351
- package/dist/client/chunks/chart-kpi-delta-DeyKMxgq.js.map +0 -1
- package/dist/client/chunks/chart-kpi-number-D1z1gxXO.js +0 -476
- package/dist/client/chunks/chart-kpi-number-D1z1gxXO.js.map +0 -1
- package/dist/client/chunks/chart-kpi-text-b7q6KWc0.js +0 -165
- package/dist/client/chunks/chart-kpi-text-b7q6KWc0.js.map +0 -1
- package/dist/client/chunks/chart-line-3Nf-EPqJ.js +0 -450
- package/dist/client/chunks/chart-line-3Nf-EPqJ.js.map +0 -1
- package/dist/client/chunks/chart-markdown-BT_-MBq1.js +0 -2721
- package/dist/client/chunks/chart-markdown-BT_-MBq1.js.map +0 -1
- package/dist/client/chunks/chart-measure-profile-BVjUonqU.js +0 -114
- package/dist/client/chunks/chart-measure-profile-BVjUonqU.js.map +0 -1
- package/dist/client/chunks/chart-pie-DblG6w7g.js +0 -137
- package/dist/client/chunks/chart-pie-DblG6w7g.js.map +0 -1
- package/dist/client/chunks/chart-radar-BHZbeeTg.js +0 -129
- package/dist/client/chunks/chart-radar-BHZbeeTg.js.map +0 -1
- package/dist/client/chunks/chart-radial-bar-AlEJC1Jo.js +0 -119
- package/dist/client/chunks/chart-radial-bar-AlEJC1Jo.js.map +0 -1
- package/dist/client/chunks/chart-sankey-E8vYKjQF.js +0 -189
- package/dist/client/chunks/chart-sankey-E8vYKjQF.js.map +0 -1
- package/dist/client/chunks/chart-scatter-Bbxqi0iw.js +0 -202
- package/dist/client/chunks/chart-scatter-Bbxqi0iw.js.map +0 -1
- package/dist/client/chunks/chart-sunburst-BgnTKolT.js +0 -188
- package/dist/client/chunks/chart-sunburst-BgnTKolT.js.map +0 -1
- package/dist/client/chunks/chart-tree-map-i9LGCLwl.js +0 -284
- package/dist/client/chunks/chart-tree-map-i9LGCLwl.js.map +0 -1
- package/dist/client/chunks/chart-waterfall-BeIhCm83.js +0 -191
- package/dist/client/chunks/chart-waterfall-BeIhCm83.js.map +0 -1
- package/dist/client/chunks/charts-core-BUUO36OM.js +0 -692
- package/dist/client/chunks/charts-core-BUUO36OM.js.map +0 -1
- package/dist/client/chunks/charts-loader-goTYnavu.js +0 -258
- package/dist/client/chunks/charts-loader-goTYnavu.js.map +0 -1
- package/dist/client/chunks/components-BFgYvFq6.js +0 -10066
- package/dist/client/chunks/components-BFgYvFq6.js.map +0 -1
- package/dist/client/chunks/core-Y9e-sNfb.js +0 -1068
- package/dist/client/chunks/core-Y9e-sNfb.js.map +0 -1
- package/dist/client/chunks/flow-utils-CjQZG5qq.js +0 -16
- package/dist/client/chunks/flow-utils-CjQZG5qq.js.map +0 -1
- package/dist/client/chunks/funnel-utils-CyonoNeC.js +0 -135
- package/dist/client/chunks/funnel-utils-CyonoNeC.js.map +0 -1
- package/dist/client/chunks/icons-CwvgmdIP.js +0 -1636
- package/dist/client/chunks/icons-CwvgmdIP.js.map +0 -1
- package/dist/client/chunks/index-CApFCBF9.js +0 -81
- package/dist/client/chunks/index-CApFCBF9.js.map +0 -1
- package/dist/client/chunks/index-_2PSgbkC.js +0 -1046
- package/dist/client/chunks/index-_2PSgbkC.js.map +0 -1
- package/dist/client/chunks/javascript-DII1YQGr.js +0 -659
- package/dist/client/chunks/javascript-DII1YQGr.js.map +0 -1
- package/dist/client/chunks/json-C_6Prymp.js +0 -39
- package/dist/client/chunks/json-C_6Prymp.js.map +0 -1
- package/dist/client/chunks/providers-Ds7DRmnO.js +0 -554
- package/dist/client/chunks/providers-Ds7DRmnO.js.map +0 -1
- package/dist/client/chunks/retention-CzCo8262.js +0 -120
- package/dist/client/chunks/retention-CzCo8262.js.map +0 -1
- package/dist/client/chunks/schema-visualization-B97a1Ybu.js +0 -772
- package/dist/client/chunks/schema-visualization-B97a1Ybu.js.map +0 -1
- package/dist/client/chunks/sql-IeKX8fQ8.js +0 -616
- package/dist/client/chunks/sql-IeKX8fQ8.js.map +0 -1
- package/dist/client/chunks/syntaxHighlighting-DAMSW_A6.js +0 -34
- package/dist/client/chunks/syntaxHighlighting-DAMSW_A6.js.map +0 -1
- package/dist/client/chunks/theme-Dp3hFed1.js +0 -112
- package/dist/client/chunks/theme-Dp3hFed1.js.map +0 -1
- package/dist/client/chunks/useDirtyStateTracking-CyAXd07d.js +0 -1231
- package/dist/client/chunks/useDirtyStateTracking-CyAXd07d.js.map +0 -1
- package/dist/client/chunks/useExplainAI-CfQ_JmF1.js +0 -182
- package/dist/client/chunks/useExplainAI-CfQ_JmF1.js.map +0 -1
- package/dist/client/chunks/vendor-B2EH3V58.js +0 -2892
- package/dist/client/chunks/vendor-B2EH3V58.js.map +0 -1
- package/dist/client/components.js.map +0 -1
- package/dist/client/hooks.js.map +0 -1
- package/dist/client/icons.js.map +0 -1
- package/dist/client/providers.js.map +0 -1
- package/dist/client/utils.js.map +0 -1
- package/dist/server/anthropic-BTkjgFpT.cjs +0 -1
- package/dist/server/anthropic-CTu9E801.js +0 -126
- package/dist/server/google-BAK9pnQf.cjs +0 -2
- package/dist/server/google-DficVAsJ.js +0 -146
- package/dist/server/index-BgCeQBuN.cjs +0 -2
- package/dist/server/index-C3PskWTr.js +0 -5353
- package/dist/server/index-C45_meK_.js +0 -719
- package/dist/server/index-ht4NPca9.cjs +0 -23
- package/dist/server/openai-BvA6eLs8.cjs +0 -1
- package/dist/server/openai-mcE24du8.js +0 -131
|
@@ -0,0 +1,4088 @@
|
|
|
1
|
+
import { n as e } from "./rolldown-runtime-lc2dmIiU.js";
|
|
2
|
+
import { A as t, k as n, x as r, y as i } from "./chart-activity-grid-CNES9VBk.js";
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import o, { createContext as s, createElement as c, forwardRef as l, useCallback as u, useContext as d, useEffect as f, useMemo as p, useState as m } from "react";
|
|
5
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
6
|
+
//#region node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
7
|
+
var _ = class {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
10
|
+
}
|
|
11
|
+
subscribe(e) {
|
|
12
|
+
return this.listeners.add(e), this.onSubscribe(), () => {
|
|
13
|
+
this.listeners.delete(e), this.onUnsubscribe();
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
hasListeners() {
|
|
17
|
+
return this.listeners.size > 0;
|
|
18
|
+
}
|
|
19
|
+
onSubscribe() {}
|
|
20
|
+
onUnsubscribe() {}
|
|
21
|
+
}, v = {
|
|
22
|
+
setTimeout: (e, t) => setTimeout(e, t),
|
|
23
|
+
clearTimeout: (e) => clearTimeout(e),
|
|
24
|
+
setInterval: (e, t) => setInterval(e, t),
|
|
25
|
+
clearInterval: (e) => clearInterval(e)
|
|
26
|
+
}, y = new class {
|
|
27
|
+
#e = v;
|
|
28
|
+
#t = !1;
|
|
29
|
+
setTimeoutProvider(e) {
|
|
30
|
+
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.", {
|
|
31
|
+
previous: this.#e,
|
|
32
|
+
provider: e
|
|
33
|
+
}), this.#e = e, process.env.NODE_ENV !== "production" && (this.#t = !1);
|
|
34
|
+
}
|
|
35
|
+
setTimeout(e, t) {
|
|
36
|
+
return process.env.NODE_ENV !== "production" && (this.#t = !0), this.#e.setTimeout(e, t);
|
|
37
|
+
}
|
|
38
|
+
clearTimeout(e) {
|
|
39
|
+
this.#e.clearTimeout(e);
|
|
40
|
+
}
|
|
41
|
+
setInterval(e, t) {
|
|
42
|
+
return process.env.NODE_ENV !== "production" && (this.#t = !0), this.#e.setInterval(e, t);
|
|
43
|
+
}
|
|
44
|
+
clearInterval(e) {
|
|
45
|
+
this.#e.clearInterval(e);
|
|
46
|
+
}
|
|
47
|
+
}();
|
|
48
|
+
function b(e) {
|
|
49
|
+
setTimeout(e, 0);
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region node_modules/@tanstack/query-core/build/modern/utils.js
|
|
53
|
+
var x = typeof window > "u" || "Deno" in globalThis;
|
|
54
|
+
function S() {}
|
|
55
|
+
function ee(e, t) {
|
|
56
|
+
return typeof e == "function" ? e(t) : e;
|
|
57
|
+
}
|
|
58
|
+
function te(e) {
|
|
59
|
+
return typeof e == "number" && e >= 0 && e !== Infinity;
|
|
60
|
+
}
|
|
61
|
+
function ne(e, t) {
|
|
62
|
+
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
63
|
+
}
|
|
64
|
+
function C(e, t) {
|
|
65
|
+
return typeof e == "function" ? e(t) : e;
|
|
66
|
+
}
|
|
67
|
+
function w(e, t) {
|
|
68
|
+
return typeof e == "function" ? e(t) : e;
|
|
69
|
+
}
|
|
70
|
+
function re(e, t) {
|
|
71
|
+
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
|
|
72
|
+
if (o) {
|
|
73
|
+
if (r) {
|
|
74
|
+
if (t.queryHash !== ae(o, t.options)) return !1;
|
|
75
|
+
} else if (!E(t.queryKey, o)) return !1;
|
|
76
|
+
}
|
|
77
|
+
if (n !== "all") {
|
|
78
|
+
let e = t.isActive();
|
|
79
|
+
if (n === "active" && !e || n === "inactive" && e) return !1;
|
|
80
|
+
}
|
|
81
|
+
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
|
|
82
|
+
}
|
|
83
|
+
function ie(e, t) {
|
|
84
|
+
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
|
|
85
|
+
if (a) {
|
|
86
|
+
if (!t.options.mutationKey) return !1;
|
|
87
|
+
if (n) {
|
|
88
|
+
if (T(t.options.mutationKey) !== T(a)) return !1;
|
|
89
|
+
} else if (!E(t.options.mutationKey, a)) return !1;
|
|
90
|
+
}
|
|
91
|
+
return !(r && t.state.status !== r || i && !i(t));
|
|
92
|
+
}
|
|
93
|
+
function ae(e, t) {
|
|
94
|
+
return (t?.queryKeyHashFn || T)(e);
|
|
95
|
+
}
|
|
96
|
+
function T(e) {
|
|
97
|
+
return JSON.stringify(e, (e, t) => ce(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
|
|
98
|
+
}
|
|
99
|
+
function E(e, t) {
|
|
100
|
+
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => E(e[n], t[n])) : !1;
|
|
101
|
+
}
|
|
102
|
+
var oe = Object.prototype.hasOwnProperty;
|
|
103
|
+
function D(e, t, n = 0) {
|
|
104
|
+
if (e === t) return e;
|
|
105
|
+
if (n > 500) return t;
|
|
106
|
+
let r = se(e) && se(t);
|
|
107
|
+
if (!r && !(ce(e) && ce(t))) return t;
|
|
108
|
+
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
|
|
109
|
+
for (let l = 0; l < o; l++) {
|
|
110
|
+
let o = r ? l : a[l], u = e[o], d = t[o];
|
|
111
|
+
if (u === d) {
|
|
112
|
+
s[o] = u, (r ? l < i : oe.call(e, o)) && c++;
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
|
|
116
|
+
s[o] = d;
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
let f = D(u, d, n + 1);
|
|
120
|
+
s[o] = f, f === u && c++;
|
|
121
|
+
}
|
|
122
|
+
return i === o && c === i ? e : s;
|
|
123
|
+
}
|
|
124
|
+
function O(e, t) {
|
|
125
|
+
if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
126
|
+
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
127
|
+
return !0;
|
|
128
|
+
}
|
|
129
|
+
function se(e) {
|
|
130
|
+
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
131
|
+
}
|
|
132
|
+
function ce(e) {
|
|
133
|
+
if (!le(e)) return !1;
|
|
134
|
+
let t = e.constructor;
|
|
135
|
+
if (t === void 0) return !0;
|
|
136
|
+
let n = t.prototype;
|
|
137
|
+
return !(!le(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
138
|
+
}
|
|
139
|
+
function le(e) {
|
|
140
|
+
return Object.prototype.toString.call(e) === "[object Object]";
|
|
141
|
+
}
|
|
142
|
+
function ue(e) {
|
|
143
|
+
return new Promise((t) => {
|
|
144
|
+
y.setTimeout(t, e);
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function de(e, t, n) {
|
|
148
|
+
if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
|
|
149
|
+
if (n.structuralSharing !== !1) {
|
|
150
|
+
if (process.env.NODE_ENV !== "production") try {
|
|
151
|
+
return D(e, t);
|
|
152
|
+
} catch (e) {
|
|
153
|
+
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;
|
|
154
|
+
}
|
|
155
|
+
return D(e, t);
|
|
156
|
+
}
|
|
157
|
+
return t;
|
|
158
|
+
}
|
|
159
|
+
function fe(e, t, n = 0) {
|
|
160
|
+
let r = [...e, t];
|
|
161
|
+
return n && r.length > n ? r.slice(1) : r;
|
|
162
|
+
}
|
|
163
|
+
function pe(e, t, n = 0) {
|
|
164
|
+
let r = [t, ...e];
|
|
165
|
+
return n && r.length > n ? r.slice(0, -1) : r;
|
|
166
|
+
}
|
|
167
|
+
var k = /* @__PURE__ */ Symbol();
|
|
168
|
+
function me(e, t) {
|
|
169
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === k && 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 === k ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
170
|
+
}
|
|
171
|
+
function he(e, t) {
|
|
172
|
+
return typeof e == "function" ? e(...t) : !!e;
|
|
173
|
+
}
|
|
174
|
+
function ge(e, t, n) {
|
|
175
|
+
let r = !1, i;
|
|
176
|
+
return Object.defineProperty(e, "signal", {
|
|
177
|
+
enumerable: !0,
|
|
178
|
+
get: () => (i ??= t(), r ? i : (r = !0, i.aborted ? n() : i.addEventListener("abort", n, { once: !0 }), i))
|
|
179
|
+
}), e;
|
|
180
|
+
}
|
|
181
|
+
var _e = new class extends _ {
|
|
182
|
+
#e;
|
|
183
|
+
#t;
|
|
184
|
+
#n;
|
|
185
|
+
constructor() {
|
|
186
|
+
super(), this.#n = (e) => {
|
|
187
|
+
if (!x && window.addEventListener) {
|
|
188
|
+
let t = () => e();
|
|
189
|
+
return window.addEventListener("visibilitychange", t, !1), () => {
|
|
190
|
+
window.removeEventListener("visibilitychange", t);
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
onSubscribe() {
|
|
196
|
+
this.#t || this.setEventListener(this.#n);
|
|
197
|
+
}
|
|
198
|
+
onUnsubscribe() {
|
|
199
|
+
this.hasListeners() || (this.#t?.(), this.#t = void 0);
|
|
200
|
+
}
|
|
201
|
+
setEventListener(e) {
|
|
202
|
+
this.#n = e, this.#t?.(), this.#t = e((e) => {
|
|
203
|
+
typeof e == "boolean" ? this.setFocused(e) : this.onFocus();
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
setFocused(e) {
|
|
207
|
+
this.#e !== e && (this.#e = e, this.onFocus());
|
|
208
|
+
}
|
|
209
|
+
onFocus() {
|
|
210
|
+
let e = this.isFocused();
|
|
211
|
+
this.listeners.forEach((t) => {
|
|
212
|
+
t(e);
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
isFocused() {
|
|
216
|
+
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
217
|
+
}
|
|
218
|
+
}();
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
221
|
+
function ve() {
|
|
222
|
+
let e, t, n = new Promise((n, r) => {
|
|
223
|
+
e = n, t = r;
|
|
224
|
+
});
|
|
225
|
+
n.status = "pending", n.catch(() => {});
|
|
226
|
+
function r(e) {
|
|
227
|
+
Object.assign(n, e), delete n.resolve, delete n.reject;
|
|
228
|
+
}
|
|
229
|
+
return n.resolve = (t) => {
|
|
230
|
+
r({
|
|
231
|
+
status: "fulfilled",
|
|
232
|
+
value: t
|
|
233
|
+
}), e(t);
|
|
234
|
+
}, n.reject = (e) => {
|
|
235
|
+
r({
|
|
236
|
+
status: "rejected",
|
|
237
|
+
reason: e
|
|
238
|
+
}), t(e);
|
|
239
|
+
}, n;
|
|
240
|
+
}
|
|
241
|
+
//#endregion
|
|
242
|
+
//#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
243
|
+
var ye = b;
|
|
244
|
+
function be() {
|
|
245
|
+
let e = [], t = 0, n = (e) => {
|
|
246
|
+
e();
|
|
247
|
+
}, r = (e) => {
|
|
248
|
+
e();
|
|
249
|
+
}, i = ye, a = (r) => {
|
|
250
|
+
t ? e.push(r) : i(() => {
|
|
251
|
+
n(r);
|
|
252
|
+
});
|
|
253
|
+
}, o = () => {
|
|
254
|
+
let t = e;
|
|
255
|
+
e = [], t.length && i(() => {
|
|
256
|
+
r(() => {
|
|
257
|
+
t.forEach((e) => {
|
|
258
|
+
n(e);
|
|
259
|
+
});
|
|
260
|
+
});
|
|
261
|
+
});
|
|
262
|
+
};
|
|
263
|
+
return {
|
|
264
|
+
batch: (e) => {
|
|
265
|
+
let n;
|
|
266
|
+
t++;
|
|
267
|
+
try {
|
|
268
|
+
n = e();
|
|
269
|
+
} finally {
|
|
270
|
+
t--, t || o();
|
|
271
|
+
}
|
|
272
|
+
return n;
|
|
273
|
+
},
|
|
274
|
+
batchCalls: (e) => (...t) => {
|
|
275
|
+
a(() => {
|
|
276
|
+
e(...t);
|
|
277
|
+
});
|
|
278
|
+
},
|
|
279
|
+
schedule: a,
|
|
280
|
+
setNotifyFunction: (e) => {
|
|
281
|
+
n = e;
|
|
282
|
+
},
|
|
283
|
+
setBatchNotifyFunction: (e) => {
|
|
284
|
+
r = e;
|
|
285
|
+
},
|
|
286
|
+
setScheduler: (e) => {
|
|
287
|
+
i = e;
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
var A = be(), j = new class extends _ {
|
|
292
|
+
#e = !0;
|
|
293
|
+
#t;
|
|
294
|
+
#n;
|
|
295
|
+
constructor() {
|
|
296
|
+
super(), this.#n = (e) => {
|
|
297
|
+
if (!x && window.addEventListener) {
|
|
298
|
+
let t = () => e(!0), n = () => e(!1);
|
|
299
|
+
return window.addEventListener("online", t, !1), window.addEventListener("offline", n, !1), () => {
|
|
300
|
+
window.removeEventListener("online", t), window.removeEventListener("offline", n);
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
onSubscribe() {
|
|
306
|
+
this.#t || this.setEventListener(this.#n);
|
|
307
|
+
}
|
|
308
|
+
onUnsubscribe() {
|
|
309
|
+
this.hasListeners() || (this.#t?.(), this.#t = void 0);
|
|
310
|
+
}
|
|
311
|
+
setEventListener(e) {
|
|
312
|
+
this.#n = e, this.#t?.(), this.#t = e(this.setOnline.bind(this));
|
|
313
|
+
}
|
|
314
|
+
setOnline(e) {
|
|
315
|
+
this.#e !== e && (this.#e = e, this.listeners.forEach((t) => {
|
|
316
|
+
t(e);
|
|
317
|
+
}));
|
|
318
|
+
}
|
|
319
|
+
isOnline() {
|
|
320
|
+
return this.#e;
|
|
321
|
+
}
|
|
322
|
+
}();
|
|
323
|
+
//#endregion
|
|
324
|
+
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
325
|
+
function xe(e) {
|
|
326
|
+
return Math.min(1e3 * 2 ** e, 3e4);
|
|
327
|
+
}
|
|
328
|
+
function Se(e) {
|
|
329
|
+
return (e ?? "online") === "online" ? j.isOnline() : !0;
|
|
330
|
+
}
|
|
331
|
+
var M = class extends Error {
|
|
332
|
+
constructor(e) {
|
|
333
|
+
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
function Ce(e) {
|
|
337
|
+
let t = !1, n = 0, r, i = ve(), a = () => i.status !== "pending", o = (t) => {
|
|
338
|
+
if (!a()) {
|
|
339
|
+
let n = new M(t);
|
|
340
|
+
f(n), e.onCancel?.(n);
|
|
341
|
+
}
|
|
342
|
+
}, s = () => {
|
|
343
|
+
t = !0;
|
|
344
|
+
}, c = () => {
|
|
345
|
+
t = !1;
|
|
346
|
+
}, l = () => _e.isFocused() && (e.networkMode === "always" || j.isOnline()) && e.canRun(), u = () => Se(e.networkMode) && e.canRun(), d = (e) => {
|
|
347
|
+
a() || (r?.(), i.resolve(e));
|
|
348
|
+
}, f = (e) => {
|
|
349
|
+
a() || (r?.(), i.reject(e));
|
|
350
|
+
}, p = () => new Promise((t) => {
|
|
351
|
+
r = (e) => {
|
|
352
|
+
(a() || l()) && t(e);
|
|
353
|
+
}, e.onPause?.();
|
|
354
|
+
}).then(() => {
|
|
355
|
+
r = void 0, a() || e.onContinue?.();
|
|
356
|
+
}), m = () => {
|
|
357
|
+
if (a()) return;
|
|
358
|
+
let r, i = n === 0 ? e.initialPromise : void 0;
|
|
359
|
+
try {
|
|
360
|
+
r = i ?? e.fn();
|
|
361
|
+
} catch (e) {
|
|
362
|
+
r = Promise.reject(e);
|
|
363
|
+
}
|
|
364
|
+
Promise.resolve(r).then(d).catch((r) => {
|
|
365
|
+
if (a()) return;
|
|
366
|
+
let i = e.retry ?? (x ? 0 : 3), o = e.retryDelay ?? xe, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
|
|
367
|
+
if (t || !c) {
|
|
368
|
+
f(r);
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
n++, e.onFail?.(n, r), ue(s).then(() => l() ? void 0 : p()).then(() => {
|
|
372
|
+
t ? f(r) : m();
|
|
373
|
+
});
|
|
374
|
+
});
|
|
375
|
+
};
|
|
376
|
+
return {
|
|
377
|
+
promise: i,
|
|
378
|
+
status: () => i.status,
|
|
379
|
+
cancel: o,
|
|
380
|
+
continue: () => (r?.(), i),
|
|
381
|
+
cancelRetry: s,
|
|
382
|
+
continueRetry: c,
|
|
383
|
+
canStart: u,
|
|
384
|
+
start: () => (u() ? m() : p().then(m), i)
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
//#endregion
|
|
388
|
+
//#region node_modules/@tanstack/query-core/build/modern/removable.js
|
|
389
|
+
var we = class {
|
|
390
|
+
#e;
|
|
391
|
+
destroy() {
|
|
392
|
+
this.clearGcTimeout();
|
|
393
|
+
}
|
|
394
|
+
scheduleGc() {
|
|
395
|
+
this.clearGcTimeout(), te(this.gcTime) && (this.#e = y.setTimeout(() => {
|
|
396
|
+
this.optionalRemove();
|
|
397
|
+
}, this.gcTime));
|
|
398
|
+
}
|
|
399
|
+
updateGcTime(e) {
|
|
400
|
+
this.gcTime = Math.max(this.gcTime || 0, e ?? (x ? Infinity : 300 * 1e3));
|
|
401
|
+
}
|
|
402
|
+
clearGcTimeout() {
|
|
403
|
+
this.#e &&= (y.clearTimeout(this.#e), void 0);
|
|
404
|
+
}
|
|
405
|
+
}, Te = class extends we {
|
|
406
|
+
#e;
|
|
407
|
+
#t;
|
|
408
|
+
#n;
|
|
409
|
+
#r;
|
|
410
|
+
#i;
|
|
411
|
+
#a;
|
|
412
|
+
#o;
|
|
413
|
+
constructor(e) {
|
|
414
|
+
super(), this.#o = !1, this.#a = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#r = e.client, this.#n = this.#r.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#e = Oe(this.options), this.state = e.state ?? this.#e, this.scheduleGc();
|
|
415
|
+
}
|
|
416
|
+
get meta() {
|
|
417
|
+
return this.options.meta;
|
|
418
|
+
}
|
|
419
|
+
get promise() {
|
|
420
|
+
return this.#i?.promise;
|
|
421
|
+
}
|
|
422
|
+
setOptions(e) {
|
|
423
|
+
if (this.options = {
|
|
424
|
+
...this.#a,
|
|
425
|
+
...e
|
|
426
|
+
}, this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
427
|
+
let e = Oe(this.options);
|
|
428
|
+
e.data !== void 0 && (this.setState(De(e.data, e.dataUpdatedAt)), this.#e = e);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
optionalRemove() {
|
|
432
|
+
!this.observers.length && this.state.fetchStatus === "idle" && this.#n.remove(this);
|
|
433
|
+
}
|
|
434
|
+
setData(e, t) {
|
|
435
|
+
let n = de(this.state.data, e, this.options);
|
|
436
|
+
return this.#s({
|
|
437
|
+
data: n,
|
|
438
|
+
type: "success",
|
|
439
|
+
dataUpdatedAt: t?.updatedAt,
|
|
440
|
+
manual: t?.manual
|
|
441
|
+
}), n;
|
|
442
|
+
}
|
|
443
|
+
setState(e, t) {
|
|
444
|
+
this.#s({
|
|
445
|
+
type: "setState",
|
|
446
|
+
state: e,
|
|
447
|
+
setStateOptions: t
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
cancel(e) {
|
|
451
|
+
let t = this.#i?.promise;
|
|
452
|
+
return this.#i?.cancel(e), t ? t.then(S).catch(S) : Promise.resolve();
|
|
453
|
+
}
|
|
454
|
+
destroy() {
|
|
455
|
+
super.destroy(), this.cancel({ silent: !0 });
|
|
456
|
+
}
|
|
457
|
+
reset() {
|
|
458
|
+
this.destroy(), this.setState(this.#e);
|
|
459
|
+
}
|
|
460
|
+
isActive() {
|
|
461
|
+
return this.observers.some((e) => w(e.options.enabled, this) !== !1);
|
|
462
|
+
}
|
|
463
|
+
isDisabled() {
|
|
464
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === k || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
|
|
465
|
+
}
|
|
466
|
+
isStatic() {
|
|
467
|
+
return this.getObserversCount() > 0 ? this.observers.some((e) => C(e.options.staleTime, this) === "static") : !1;
|
|
468
|
+
}
|
|
469
|
+
isStale() {
|
|
470
|
+
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
471
|
+
}
|
|
472
|
+
isStaleByTime(e = 0) {
|
|
473
|
+
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !ne(this.state.dataUpdatedAt, e);
|
|
474
|
+
}
|
|
475
|
+
onFocus() {
|
|
476
|
+
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#i?.continue();
|
|
477
|
+
}
|
|
478
|
+
onOnline() {
|
|
479
|
+
this.observers.find((e) => e.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#i?.continue();
|
|
480
|
+
}
|
|
481
|
+
addObserver(e) {
|
|
482
|
+
this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), this.#n.notify({
|
|
483
|
+
type: "observerAdded",
|
|
484
|
+
query: this,
|
|
485
|
+
observer: e
|
|
486
|
+
}));
|
|
487
|
+
}
|
|
488
|
+
removeObserver(e) {
|
|
489
|
+
this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (this.#i && (this.#o ? this.#i.cancel({ revert: !0 }) : this.#i.cancelRetry()), this.scheduleGc()), this.#n.notify({
|
|
490
|
+
type: "observerRemoved",
|
|
491
|
+
query: this,
|
|
492
|
+
observer: e
|
|
493
|
+
}));
|
|
494
|
+
}
|
|
495
|
+
getObserversCount() {
|
|
496
|
+
return this.observers.length;
|
|
497
|
+
}
|
|
498
|
+
invalidate() {
|
|
499
|
+
this.state.isInvalidated || this.#s({ type: "invalidate" });
|
|
500
|
+
}
|
|
501
|
+
async fetch(e, t) {
|
|
502
|
+
if (this.state.fetchStatus !== "idle" && this.#i?.status() !== "rejected") {
|
|
503
|
+
if (this.state.data !== void 0 && t?.cancelRefetch) this.cancel({ silent: !0 });
|
|
504
|
+
else if (this.#i) return this.#i.continueRetry(), this.#i.promise;
|
|
505
|
+
}
|
|
506
|
+
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
507
|
+
let e = this.observers.find((e) => e.options.queryFn);
|
|
508
|
+
e && this.setOptions(e.options);
|
|
509
|
+
}
|
|
510
|
+
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));
|
|
511
|
+
let n = new AbortController(), r = (e) => {
|
|
512
|
+
Object.defineProperty(e, "signal", {
|
|
513
|
+
enumerable: !0,
|
|
514
|
+
get: () => (this.#o = !0, n.signal)
|
|
515
|
+
});
|
|
516
|
+
}, i = () => {
|
|
517
|
+
let e = me(this.options, t), n = (() => {
|
|
518
|
+
let e = {
|
|
519
|
+
client: this.#r,
|
|
520
|
+
queryKey: this.queryKey,
|
|
521
|
+
meta: this.meta
|
|
522
|
+
};
|
|
523
|
+
return r(e), e;
|
|
524
|
+
})();
|
|
525
|
+
return this.#o = !1, this.options.persister ? this.options.persister(e, n, this) : e(n);
|
|
526
|
+
}, a = (() => {
|
|
527
|
+
let e = {
|
|
528
|
+
fetchOptions: t,
|
|
529
|
+
options: this.options,
|
|
530
|
+
queryKey: this.queryKey,
|
|
531
|
+
client: this.#r,
|
|
532
|
+
state: this.state,
|
|
533
|
+
fetchFn: i
|
|
534
|
+
};
|
|
535
|
+
return r(e), e;
|
|
536
|
+
})();
|
|
537
|
+
this.options.behavior?.onFetch(a, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#s({
|
|
538
|
+
type: "fetch",
|
|
539
|
+
meta: a.fetchOptions?.meta
|
|
540
|
+
}), this.#i = Ce({
|
|
541
|
+
initialPromise: t?.initialPromise,
|
|
542
|
+
fn: a.fetchFn,
|
|
543
|
+
onCancel: (e) => {
|
|
544
|
+
e instanceof M && e.revert && this.setState({
|
|
545
|
+
...this.#t,
|
|
546
|
+
fetchStatus: "idle"
|
|
547
|
+
}), n.abort();
|
|
548
|
+
},
|
|
549
|
+
onFail: (e, t) => {
|
|
550
|
+
this.#s({
|
|
551
|
+
type: "failed",
|
|
552
|
+
failureCount: e,
|
|
553
|
+
error: t
|
|
554
|
+
});
|
|
555
|
+
},
|
|
556
|
+
onPause: () => {
|
|
557
|
+
this.#s({ type: "pause" });
|
|
558
|
+
},
|
|
559
|
+
onContinue: () => {
|
|
560
|
+
this.#s({ type: "continue" });
|
|
561
|
+
},
|
|
562
|
+
retry: a.options.retry,
|
|
563
|
+
retryDelay: a.options.retryDelay,
|
|
564
|
+
networkMode: a.options.networkMode,
|
|
565
|
+
canRun: () => !0
|
|
566
|
+
});
|
|
567
|
+
try {
|
|
568
|
+
let e = await this.#i.start();
|
|
569
|
+
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`);
|
|
570
|
+
return this.setData(e), this.#n.config.onSuccess?.(e, this), this.#n.config.onSettled?.(e, this.state.error, this), e;
|
|
571
|
+
} catch (e) {
|
|
572
|
+
if (e instanceof M) {
|
|
573
|
+
if (e.silent) return this.#i.promise;
|
|
574
|
+
if (e.revert) {
|
|
575
|
+
if (this.state.data === void 0) throw e;
|
|
576
|
+
return this.state.data;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
throw this.#s({
|
|
580
|
+
type: "error",
|
|
581
|
+
error: e
|
|
582
|
+
}), this.#n.config.onError?.(e, this), this.#n.config.onSettled?.(this.state.data, e, this), e;
|
|
583
|
+
} finally {
|
|
584
|
+
this.scheduleGc();
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
#s(e) {
|
|
588
|
+
this.state = ((t) => {
|
|
589
|
+
switch (e.type) {
|
|
590
|
+
case "failed": return {
|
|
591
|
+
...t,
|
|
592
|
+
fetchFailureCount: e.failureCount,
|
|
593
|
+
fetchFailureReason: e.error
|
|
594
|
+
};
|
|
595
|
+
case "pause": return {
|
|
596
|
+
...t,
|
|
597
|
+
fetchStatus: "paused"
|
|
598
|
+
};
|
|
599
|
+
case "continue": return {
|
|
600
|
+
...t,
|
|
601
|
+
fetchStatus: "fetching"
|
|
602
|
+
};
|
|
603
|
+
case "fetch": return {
|
|
604
|
+
...t,
|
|
605
|
+
...Ee(t.data, this.options),
|
|
606
|
+
fetchMeta: e.meta ?? null
|
|
607
|
+
};
|
|
608
|
+
case "success":
|
|
609
|
+
let n = {
|
|
610
|
+
...t,
|
|
611
|
+
...De(e.data, e.dataUpdatedAt),
|
|
612
|
+
dataUpdateCount: t.dataUpdateCount + 1,
|
|
613
|
+
...!e.manual && {
|
|
614
|
+
fetchStatus: "idle",
|
|
615
|
+
fetchFailureCount: 0,
|
|
616
|
+
fetchFailureReason: null
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
return this.#t = e.manual ? n : void 0, n;
|
|
620
|
+
case "error":
|
|
621
|
+
let r = e.error;
|
|
622
|
+
return {
|
|
623
|
+
...t,
|
|
624
|
+
error: r,
|
|
625
|
+
errorUpdateCount: t.errorUpdateCount + 1,
|
|
626
|
+
errorUpdatedAt: Date.now(),
|
|
627
|
+
fetchFailureCount: t.fetchFailureCount + 1,
|
|
628
|
+
fetchFailureReason: r,
|
|
629
|
+
fetchStatus: "idle",
|
|
630
|
+
status: "error",
|
|
631
|
+
isInvalidated: !0
|
|
632
|
+
};
|
|
633
|
+
case "invalidate": return {
|
|
634
|
+
...t,
|
|
635
|
+
isInvalidated: !0
|
|
636
|
+
};
|
|
637
|
+
case "setState": return {
|
|
638
|
+
...t,
|
|
639
|
+
...e.state
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
})(this.state), A.batch(() => {
|
|
643
|
+
this.observers.forEach((e) => {
|
|
644
|
+
e.onQueryUpdate();
|
|
645
|
+
}), this.#n.notify({
|
|
646
|
+
query: this,
|
|
647
|
+
type: "updated",
|
|
648
|
+
action: e
|
|
649
|
+
});
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
};
|
|
653
|
+
function Ee(e, t) {
|
|
654
|
+
return {
|
|
655
|
+
fetchFailureCount: 0,
|
|
656
|
+
fetchFailureReason: null,
|
|
657
|
+
fetchStatus: Se(t.networkMode) ? "fetching" : "paused",
|
|
658
|
+
...e === void 0 && {
|
|
659
|
+
error: null,
|
|
660
|
+
status: "pending"
|
|
661
|
+
}
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
function De(e, t) {
|
|
665
|
+
return {
|
|
666
|
+
data: e,
|
|
667
|
+
dataUpdatedAt: t ?? Date.now(),
|
|
668
|
+
error: null,
|
|
669
|
+
isInvalidated: !1,
|
|
670
|
+
status: "success"
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
function Oe(e) {
|
|
674
|
+
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;
|
|
675
|
+
return {
|
|
676
|
+
data: t,
|
|
677
|
+
dataUpdateCount: 0,
|
|
678
|
+
dataUpdatedAt: n ? r ?? Date.now() : 0,
|
|
679
|
+
error: null,
|
|
680
|
+
errorUpdateCount: 0,
|
|
681
|
+
errorUpdatedAt: 0,
|
|
682
|
+
fetchFailureCount: 0,
|
|
683
|
+
fetchFailureReason: null,
|
|
684
|
+
fetchMeta: null,
|
|
685
|
+
isInvalidated: !1,
|
|
686
|
+
status: n ? "success" : "pending",
|
|
687
|
+
fetchStatus: "idle"
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
//#endregion
|
|
691
|
+
//#region node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
692
|
+
var ke = class extends _ {
|
|
693
|
+
constructor(e, t) {
|
|
694
|
+
super(), this.options = t, this.#e = e, this.#s = null, this.#o = ve(), this.bindMethods(), this.setOptions(t);
|
|
695
|
+
}
|
|
696
|
+
#e;
|
|
697
|
+
#t = void 0;
|
|
698
|
+
#n = void 0;
|
|
699
|
+
#r = void 0;
|
|
700
|
+
#i;
|
|
701
|
+
#a;
|
|
702
|
+
#o;
|
|
703
|
+
#s;
|
|
704
|
+
#c;
|
|
705
|
+
#l;
|
|
706
|
+
#u;
|
|
707
|
+
#d;
|
|
708
|
+
#f;
|
|
709
|
+
#p;
|
|
710
|
+
#m = /* @__PURE__ */ new Set();
|
|
711
|
+
bindMethods() {
|
|
712
|
+
this.refetch = this.refetch.bind(this);
|
|
713
|
+
}
|
|
714
|
+
onSubscribe() {
|
|
715
|
+
this.listeners.size === 1 && (this.#t.addObserver(this), je(this.#t, this.options) ? this.#h() : this.updateResult(), this.#y());
|
|
716
|
+
}
|
|
717
|
+
onUnsubscribe() {
|
|
718
|
+
this.hasListeners() || this.destroy();
|
|
719
|
+
}
|
|
720
|
+
shouldFetchOnReconnect() {
|
|
721
|
+
return N(this.#t, this.options, this.options.refetchOnReconnect);
|
|
722
|
+
}
|
|
723
|
+
shouldFetchOnWindowFocus() {
|
|
724
|
+
return N(this.#t, this.options, this.options.refetchOnWindowFocus);
|
|
725
|
+
}
|
|
726
|
+
destroy() {
|
|
727
|
+
this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
|
|
728
|
+
}
|
|
729
|
+
setOptions(e) {
|
|
730
|
+
let t = this.options, n = this.#t;
|
|
731
|
+
if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof w(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");
|
|
732
|
+
this.#S(), this.#t.setOptions(this.options), t._defaulted && !O(this.options, t) && this.#e.getQueryCache().notify({
|
|
733
|
+
type: "observerOptionsUpdated",
|
|
734
|
+
query: this.#t,
|
|
735
|
+
observer: this
|
|
736
|
+
});
|
|
737
|
+
let r = this.hasListeners();
|
|
738
|
+
r && Me(this.#t, n, this.options, t) && this.#h(), this.updateResult(), r && (this.#t !== n || w(this.options.enabled, this.#t) !== w(t.enabled, this.#t) || C(this.options.staleTime, this.#t) !== C(t.staleTime, this.#t)) && this.#g();
|
|
739
|
+
let i = this.#_();
|
|
740
|
+
r && (this.#t !== n || w(this.options.enabled, this.#t) !== w(t.enabled, this.#t) || i !== this.#p) && this.#v(i);
|
|
741
|
+
}
|
|
742
|
+
getOptimisticResult(e) {
|
|
743
|
+
let t = this.#e.getQueryCache().build(this.#e, e), n = this.createResult(t, e);
|
|
744
|
+
return Ne(this, n) && (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
|
|
745
|
+
}
|
|
746
|
+
getCurrentResult() {
|
|
747
|
+
return this.#r;
|
|
748
|
+
}
|
|
749
|
+
trackResult(e, t) {
|
|
750
|
+
return new Proxy(e, { get: (e, n) => (this.trackProp(n), t?.(n), n === "promise" && (this.trackProp("data"), !this.options.experimental_prefetchInRender && this.#o.status === "pending" && this.#o.reject(/* @__PURE__ */ Error("experimental_prefetchInRender feature flag is not enabled"))), Reflect.get(e, n)) });
|
|
751
|
+
}
|
|
752
|
+
trackProp(e) {
|
|
753
|
+
this.#m.add(e);
|
|
754
|
+
}
|
|
755
|
+
getCurrentQuery() {
|
|
756
|
+
return this.#t;
|
|
757
|
+
}
|
|
758
|
+
refetch({ ...e } = {}) {
|
|
759
|
+
return this.fetch({ ...e });
|
|
760
|
+
}
|
|
761
|
+
fetchOptimistic(e) {
|
|
762
|
+
let t = this.#e.defaultQueryOptions(e), n = this.#e.getQueryCache().build(this.#e, t);
|
|
763
|
+
return n.fetch().then(() => this.createResult(n, t));
|
|
764
|
+
}
|
|
765
|
+
fetch(e) {
|
|
766
|
+
return this.#h({
|
|
767
|
+
...e,
|
|
768
|
+
cancelRefetch: e.cancelRefetch ?? !0
|
|
769
|
+
}).then(() => (this.updateResult(), this.#r));
|
|
770
|
+
}
|
|
771
|
+
#h(e) {
|
|
772
|
+
this.#S();
|
|
773
|
+
let t = this.#t.fetch(this.options, e);
|
|
774
|
+
return e?.throwOnError || (t = t.catch(S)), t;
|
|
775
|
+
}
|
|
776
|
+
#g() {
|
|
777
|
+
this.#b();
|
|
778
|
+
let e = C(this.options.staleTime, this.#t);
|
|
779
|
+
if (x || this.#r.isStale || !te(e)) return;
|
|
780
|
+
let t = ne(this.#r.dataUpdatedAt, e) + 1;
|
|
781
|
+
this.#d = y.setTimeout(() => {
|
|
782
|
+
this.#r.isStale || this.updateResult();
|
|
783
|
+
}, t);
|
|
784
|
+
}
|
|
785
|
+
#_() {
|
|
786
|
+
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
|
|
787
|
+
}
|
|
788
|
+
#v(e) {
|
|
789
|
+
this.#x(), this.#p = e, !(x || w(this.options.enabled, this.#t) === !1 || !te(this.#p) || this.#p === 0) && (this.#f = y.setInterval(() => {
|
|
790
|
+
(this.options.refetchIntervalInBackground || _e.isFocused()) && this.#h();
|
|
791
|
+
}, this.#p));
|
|
792
|
+
}
|
|
793
|
+
#y() {
|
|
794
|
+
this.#g(), this.#v(this.#_());
|
|
795
|
+
}
|
|
796
|
+
#b() {
|
|
797
|
+
this.#d &&= (y.clearTimeout(this.#d), void 0);
|
|
798
|
+
}
|
|
799
|
+
#x() {
|
|
800
|
+
this.#f &&= (y.clearInterval(this.#f), void 0);
|
|
801
|
+
}
|
|
802
|
+
createResult(e, t) {
|
|
803
|
+
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;
|
|
804
|
+
if (t._optimisticResults) {
|
|
805
|
+
let i = this.hasListeners(), a = !i && je(e, t), o = i && Me(e, n, t, r);
|
|
806
|
+
(a || o) && (l = {
|
|
807
|
+
...l,
|
|
808
|
+
...Ee(c.data, e.options)
|
|
809
|
+
}), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
|
|
810
|
+
}
|
|
811
|
+
let { error: f, errorUpdatedAt: p, status: m } = l;
|
|
812
|
+
d = l.data;
|
|
813
|
+
let h = !1;
|
|
814
|
+
if (t.placeholderData !== void 0 && d === void 0 && m === "pending") {
|
|
815
|
+
let e;
|
|
816
|
+
i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#u?.state.data, this.#u) : t.placeholderData, e !== void 0 && (m = "success", d = de(i?.data, e, t), u = !0);
|
|
817
|
+
}
|
|
818
|
+
if (t.select && d !== void 0 && !h) if (i && d === a?.data && t.select === this.#c) d = this.#l;
|
|
819
|
+
else try {
|
|
820
|
+
this.#c = t.select, d = t.select(d), d = de(i?.data, d, t), this.#l = d, this.#s = null;
|
|
821
|
+
} catch (e) {
|
|
822
|
+
this.#s = e;
|
|
823
|
+
}
|
|
824
|
+
this.#s && (f = this.#s, d = this.#l, p = Date.now(), m = "error");
|
|
825
|
+
let g = l.fetchStatus === "fetching", _ = m === "pending", v = m === "error", y = _ && g, b = d !== void 0, x = {
|
|
826
|
+
status: m,
|
|
827
|
+
fetchStatus: l.fetchStatus,
|
|
828
|
+
isPending: _,
|
|
829
|
+
isSuccess: m === "success",
|
|
830
|
+
isError: v,
|
|
831
|
+
isInitialLoading: y,
|
|
832
|
+
isLoading: y,
|
|
833
|
+
data: d,
|
|
834
|
+
dataUpdatedAt: l.dataUpdatedAt,
|
|
835
|
+
error: f,
|
|
836
|
+
errorUpdatedAt: p,
|
|
837
|
+
failureCount: l.fetchFailureCount,
|
|
838
|
+
failureReason: l.fetchFailureReason,
|
|
839
|
+
errorUpdateCount: l.errorUpdateCount,
|
|
840
|
+
isFetched: l.dataUpdateCount > 0 || l.errorUpdateCount > 0,
|
|
841
|
+
isFetchedAfterMount: l.dataUpdateCount > s.dataUpdateCount || l.errorUpdateCount > s.errorUpdateCount,
|
|
842
|
+
isFetching: g,
|
|
843
|
+
isRefetching: g && !_,
|
|
844
|
+
isLoadingError: v && !b,
|
|
845
|
+
isPaused: l.fetchStatus === "paused",
|
|
846
|
+
isPlaceholderData: u,
|
|
847
|
+
isRefetchError: v && b,
|
|
848
|
+
isStale: P(e, t),
|
|
849
|
+
refetch: this.refetch,
|
|
850
|
+
promise: this.#o,
|
|
851
|
+
isEnabled: w(t.enabled, e) !== !1
|
|
852
|
+
};
|
|
853
|
+
if (this.options.experimental_prefetchInRender) {
|
|
854
|
+
let t = x.data !== void 0, r = x.status === "error" && !t, i = (e) => {
|
|
855
|
+
r ? e.reject(x.error) : t && e.resolve(x.data);
|
|
856
|
+
}, a = () => {
|
|
857
|
+
i(this.#o = x.promise = ve());
|
|
858
|
+
}, o = this.#o;
|
|
859
|
+
switch (o.status) {
|
|
860
|
+
case "pending":
|
|
861
|
+
e.queryHash === n.queryHash && i(o);
|
|
862
|
+
break;
|
|
863
|
+
case "fulfilled":
|
|
864
|
+
(r || x.data !== o.value) && a();
|
|
865
|
+
break;
|
|
866
|
+
case "rejected":
|
|
867
|
+
(!r || x.error !== o.reason) && a();
|
|
868
|
+
break;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
return x;
|
|
872
|
+
}
|
|
873
|
+
updateResult() {
|
|
874
|
+
let e = this.#r, t = this.createResult(this.#t, this.options);
|
|
875
|
+
this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !O(t, e) && (this.#r = t, this.#C({ listeners: (() => {
|
|
876
|
+
if (!e) return !0;
|
|
877
|
+
let { notifyOnChangeProps: t } = this.options, n = typeof t == "function" ? t() : t;
|
|
878
|
+
if (n === "all" || !n && !this.#m.size) return !0;
|
|
879
|
+
let r = new Set(n ?? this.#m);
|
|
880
|
+
return this.options.throwOnError && r.add("error"), Object.keys(this.#r).some((t) => {
|
|
881
|
+
let n = t;
|
|
882
|
+
return this.#r[n] !== e[n] && r.has(n);
|
|
883
|
+
});
|
|
884
|
+
})() }));
|
|
885
|
+
}
|
|
886
|
+
#S() {
|
|
887
|
+
let e = this.#e.getQueryCache().build(this.#e, this.options);
|
|
888
|
+
if (e === this.#t) return;
|
|
889
|
+
let t = this.#t;
|
|
890
|
+
this.#t = e, this.#n = e.state, this.hasListeners() && (t?.removeObserver(this), e.addObserver(this));
|
|
891
|
+
}
|
|
892
|
+
onQueryUpdate() {
|
|
893
|
+
this.updateResult(), this.hasListeners() && this.#y();
|
|
894
|
+
}
|
|
895
|
+
#C(e) {
|
|
896
|
+
A.batch(() => {
|
|
897
|
+
e.listeners && this.listeners.forEach((e) => {
|
|
898
|
+
e(this.#r);
|
|
899
|
+
}), this.#e.getQueryCache().notify({
|
|
900
|
+
query: this.#t,
|
|
901
|
+
type: "observerResultsUpdated"
|
|
902
|
+
});
|
|
903
|
+
});
|
|
904
|
+
}
|
|
905
|
+
};
|
|
906
|
+
function Ae(e, t) {
|
|
907
|
+
return w(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
|
908
|
+
}
|
|
909
|
+
function je(e, t) {
|
|
910
|
+
return Ae(e, t) || e.state.data !== void 0 && N(e, t, t.refetchOnMount);
|
|
911
|
+
}
|
|
912
|
+
function N(e, t, n) {
|
|
913
|
+
if (w(t.enabled, e) !== !1 && C(t.staleTime, e) !== "static") {
|
|
914
|
+
let r = typeof n == "function" ? n(e) : n;
|
|
915
|
+
return r === "always" || r !== !1 && P(e, t);
|
|
916
|
+
}
|
|
917
|
+
return !1;
|
|
918
|
+
}
|
|
919
|
+
function Me(e, t, n, r) {
|
|
920
|
+
return (e !== t || w(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && P(e, n);
|
|
921
|
+
}
|
|
922
|
+
function P(e, t) {
|
|
923
|
+
return w(t.enabled, e) !== !1 && e.isStaleByTime(C(t.staleTime, e));
|
|
924
|
+
}
|
|
925
|
+
function Ne(e, t) {
|
|
926
|
+
return !O(e.getCurrentResult(), t);
|
|
927
|
+
}
|
|
928
|
+
//#endregion
|
|
929
|
+
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
930
|
+
function Pe(e) {
|
|
931
|
+
return { onFetch: (t, n) => {
|
|
932
|
+
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
|
|
933
|
+
pages: [],
|
|
934
|
+
pageParams: []
|
|
935
|
+
}, c = 0, l = async () => {
|
|
936
|
+
let n = !1, l = (e) => {
|
|
937
|
+
ge(e, () => t.signal, () => n = !0);
|
|
938
|
+
}, u = me(t.options, t.fetchOptions), d = async (e, r, i) => {
|
|
939
|
+
if (n) return Promise.reject();
|
|
940
|
+
if (r == null && e.pages.length) return Promise.resolve(e);
|
|
941
|
+
let a = await u((() => {
|
|
942
|
+
let e = {
|
|
943
|
+
client: t.client,
|
|
944
|
+
queryKey: t.queryKey,
|
|
945
|
+
pageParam: r,
|
|
946
|
+
direction: i ? "backward" : "forward",
|
|
947
|
+
meta: t.options.meta
|
|
948
|
+
};
|
|
949
|
+
return l(e), e;
|
|
950
|
+
})()), { maxPages: o } = t.options, s = i ? pe : fe;
|
|
951
|
+
return {
|
|
952
|
+
pages: s(e.pages, a, o),
|
|
953
|
+
pageParams: s(e.pageParams, r, o)
|
|
954
|
+
};
|
|
955
|
+
};
|
|
956
|
+
if (i && a.length) {
|
|
957
|
+
let e = i === "backward", t = e ? Ie : Fe, n = {
|
|
958
|
+
pages: a,
|
|
959
|
+
pageParams: o
|
|
960
|
+
};
|
|
961
|
+
s = await d(n, t(r, n), e);
|
|
962
|
+
} else {
|
|
963
|
+
let t = e ?? a.length;
|
|
964
|
+
do {
|
|
965
|
+
let e = c === 0 ? o[0] ?? r.initialPageParam : Fe(r, s);
|
|
966
|
+
if (c > 0 && e == null) break;
|
|
967
|
+
s = await d(s, e), c++;
|
|
968
|
+
} while (c < t);
|
|
969
|
+
}
|
|
970
|
+
return s;
|
|
971
|
+
};
|
|
972
|
+
t.options.persister ? t.fetchFn = () => t.options.persister?.(l, {
|
|
973
|
+
client: t.client,
|
|
974
|
+
queryKey: t.queryKey,
|
|
975
|
+
meta: t.options.meta,
|
|
976
|
+
signal: t.signal
|
|
977
|
+
}, n) : t.fetchFn = l;
|
|
978
|
+
} };
|
|
979
|
+
}
|
|
980
|
+
function Fe(e, { pages: t, pageParams: n }) {
|
|
981
|
+
let r = t.length - 1;
|
|
982
|
+
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
|
|
983
|
+
}
|
|
984
|
+
function Ie(e, { pages: t, pageParams: n }) {
|
|
985
|
+
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
986
|
+
}
|
|
987
|
+
//#endregion
|
|
988
|
+
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
989
|
+
var Le = class extends we {
|
|
990
|
+
#e;
|
|
991
|
+
#t;
|
|
992
|
+
#n;
|
|
993
|
+
#r;
|
|
994
|
+
constructor(e) {
|
|
995
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || Re(), this.setOptions(e.options), this.scheduleGc();
|
|
996
|
+
}
|
|
997
|
+
setOptions(e) {
|
|
998
|
+
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
999
|
+
}
|
|
1000
|
+
get meta() {
|
|
1001
|
+
return this.options.meta;
|
|
1002
|
+
}
|
|
1003
|
+
addObserver(e) {
|
|
1004
|
+
this.#t.includes(e) || (this.#t.push(e), this.clearGcTimeout(), this.#n.notify({
|
|
1005
|
+
type: "observerAdded",
|
|
1006
|
+
mutation: this,
|
|
1007
|
+
observer: e
|
|
1008
|
+
}));
|
|
1009
|
+
}
|
|
1010
|
+
removeObserver(e) {
|
|
1011
|
+
this.#t = this.#t.filter((t) => t !== e), this.scheduleGc(), this.#n.notify({
|
|
1012
|
+
type: "observerRemoved",
|
|
1013
|
+
mutation: this,
|
|
1014
|
+
observer: e
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
optionalRemove() {
|
|
1018
|
+
this.#t.length || (this.state.status === "pending" ? this.scheduleGc() : this.#n.remove(this));
|
|
1019
|
+
}
|
|
1020
|
+
continue() {
|
|
1021
|
+
return this.#r?.continue() ?? this.execute(this.state.variables);
|
|
1022
|
+
}
|
|
1023
|
+
async execute(e) {
|
|
1024
|
+
let t = () => {
|
|
1025
|
+
this.#i({ type: "continue" });
|
|
1026
|
+
}, n = {
|
|
1027
|
+
client: this.#e,
|
|
1028
|
+
meta: this.options.meta,
|
|
1029
|
+
mutationKey: this.options.mutationKey
|
|
1030
|
+
};
|
|
1031
|
+
this.#r = Ce({
|
|
1032
|
+
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
|
|
1033
|
+
onFail: (e, t) => {
|
|
1034
|
+
this.#i({
|
|
1035
|
+
type: "failed",
|
|
1036
|
+
failureCount: e,
|
|
1037
|
+
error: t
|
|
1038
|
+
});
|
|
1039
|
+
},
|
|
1040
|
+
onPause: () => {
|
|
1041
|
+
this.#i({ type: "pause" });
|
|
1042
|
+
},
|
|
1043
|
+
onContinue: t,
|
|
1044
|
+
retry: this.options.retry ?? 0,
|
|
1045
|
+
retryDelay: this.options.retryDelay,
|
|
1046
|
+
networkMode: this.options.networkMode,
|
|
1047
|
+
canRun: () => this.#n.canRun(this)
|
|
1048
|
+
});
|
|
1049
|
+
let r = this.state.status === "pending", i = !this.#r.canStart();
|
|
1050
|
+
try {
|
|
1051
|
+
if (r) t();
|
|
1052
|
+
else {
|
|
1053
|
+
this.#i({
|
|
1054
|
+
type: "pending",
|
|
1055
|
+
variables: e,
|
|
1056
|
+
isPaused: i
|
|
1057
|
+
}), this.#n.config.onMutate && await this.#n.config.onMutate(e, this, n);
|
|
1058
|
+
let t = await this.options.onMutate?.(e, n);
|
|
1059
|
+
t !== this.state.context && this.#i({
|
|
1060
|
+
type: "pending",
|
|
1061
|
+
context: t,
|
|
1062
|
+
variables: e,
|
|
1063
|
+
isPaused: i
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
let a = await this.#r.start();
|
|
1067
|
+
return await this.#n.config.onSuccess?.(a, e, this.state.context, this, n), await this.options.onSuccess?.(a, e, this.state.context, n), await this.#n.config.onSettled?.(a, null, this.state.variables, this.state.context, this, n), await this.options.onSettled?.(a, null, e, this.state.context, n), this.#i({
|
|
1068
|
+
type: "success",
|
|
1069
|
+
data: a
|
|
1070
|
+
}), a;
|
|
1071
|
+
} catch (t) {
|
|
1072
|
+
try {
|
|
1073
|
+
await this.#n.config.onError?.(t, e, this.state.context, this, n);
|
|
1074
|
+
} catch (e) {
|
|
1075
|
+
Promise.reject(e);
|
|
1076
|
+
}
|
|
1077
|
+
try {
|
|
1078
|
+
await this.options.onError?.(t, e, this.state.context, n);
|
|
1079
|
+
} catch (e) {
|
|
1080
|
+
Promise.reject(e);
|
|
1081
|
+
}
|
|
1082
|
+
try {
|
|
1083
|
+
await this.#n.config.onSettled?.(void 0, t, this.state.variables, this.state.context, this, n);
|
|
1084
|
+
} catch (e) {
|
|
1085
|
+
Promise.reject(e);
|
|
1086
|
+
}
|
|
1087
|
+
try {
|
|
1088
|
+
await this.options.onSettled?.(void 0, t, e, this.state.context, n);
|
|
1089
|
+
} catch (e) {
|
|
1090
|
+
Promise.reject(e);
|
|
1091
|
+
}
|
|
1092
|
+
throw this.#i({
|
|
1093
|
+
type: "error",
|
|
1094
|
+
error: t
|
|
1095
|
+
}), t;
|
|
1096
|
+
} finally {
|
|
1097
|
+
this.#n.runNext(this);
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
#i(e) {
|
|
1101
|
+
this.state = ((t) => {
|
|
1102
|
+
switch (e.type) {
|
|
1103
|
+
case "failed": return {
|
|
1104
|
+
...t,
|
|
1105
|
+
failureCount: e.failureCount,
|
|
1106
|
+
failureReason: e.error
|
|
1107
|
+
};
|
|
1108
|
+
case "pause": return {
|
|
1109
|
+
...t,
|
|
1110
|
+
isPaused: !0
|
|
1111
|
+
};
|
|
1112
|
+
case "continue": return {
|
|
1113
|
+
...t,
|
|
1114
|
+
isPaused: !1
|
|
1115
|
+
};
|
|
1116
|
+
case "pending": return {
|
|
1117
|
+
...t,
|
|
1118
|
+
context: e.context,
|
|
1119
|
+
data: void 0,
|
|
1120
|
+
failureCount: 0,
|
|
1121
|
+
failureReason: null,
|
|
1122
|
+
error: null,
|
|
1123
|
+
isPaused: e.isPaused,
|
|
1124
|
+
status: "pending",
|
|
1125
|
+
variables: e.variables,
|
|
1126
|
+
submittedAt: Date.now()
|
|
1127
|
+
};
|
|
1128
|
+
case "success": return {
|
|
1129
|
+
...t,
|
|
1130
|
+
data: e.data,
|
|
1131
|
+
failureCount: 0,
|
|
1132
|
+
failureReason: null,
|
|
1133
|
+
error: null,
|
|
1134
|
+
status: "success",
|
|
1135
|
+
isPaused: !1
|
|
1136
|
+
};
|
|
1137
|
+
case "error": return {
|
|
1138
|
+
...t,
|
|
1139
|
+
data: void 0,
|
|
1140
|
+
error: e.error,
|
|
1141
|
+
failureCount: t.failureCount + 1,
|
|
1142
|
+
failureReason: e.error,
|
|
1143
|
+
isPaused: !1,
|
|
1144
|
+
status: "error"
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
})(this.state), A.batch(() => {
|
|
1148
|
+
this.#t.forEach((t) => {
|
|
1149
|
+
t.onMutationUpdate(e);
|
|
1150
|
+
}), this.#n.notify({
|
|
1151
|
+
mutation: this,
|
|
1152
|
+
type: "updated",
|
|
1153
|
+
action: e
|
|
1154
|
+
});
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
function Re() {
|
|
1159
|
+
return {
|
|
1160
|
+
context: void 0,
|
|
1161
|
+
data: void 0,
|
|
1162
|
+
error: null,
|
|
1163
|
+
failureCount: 0,
|
|
1164
|
+
failureReason: null,
|
|
1165
|
+
isPaused: !1,
|
|
1166
|
+
status: "idle",
|
|
1167
|
+
variables: void 0,
|
|
1168
|
+
submittedAt: 0
|
|
1169
|
+
};
|
|
1170
|
+
}
|
|
1171
|
+
//#endregion
|
|
1172
|
+
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
1173
|
+
var ze = class extends _ {
|
|
1174
|
+
constructor(e = {}) {
|
|
1175
|
+
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
1176
|
+
}
|
|
1177
|
+
#e;
|
|
1178
|
+
#t;
|
|
1179
|
+
#n;
|
|
1180
|
+
build(e, t, n) {
|
|
1181
|
+
let r = new Le({
|
|
1182
|
+
client: e,
|
|
1183
|
+
mutationCache: this,
|
|
1184
|
+
mutationId: ++this.#n,
|
|
1185
|
+
options: e.defaultMutationOptions(t),
|
|
1186
|
+
state: n
|
|
1187
|
+
});
|
|
1188
|
+
return this.add(r), r;
|
|
1189
|
+
}
|
|
1190
|
+
add(e) {
|
|
1191
|
+
this.#e.add(e);
|
|
1192
|
+
let t = F(e);
|
|
1193
|
+
if (typeof t == "string") {
|
|
1194
|
+
let n = this.#t.get(t);
|
|
1195
|
+
n ? n.push(e) : this.#t.set(t, [e]);
|
|
1196
|
+
}
|
|
1197
|
+
this.notify({
|
|
1198
|
+
type: "added",
|
|
1199
|
+
mutation: e
|
|
1200
|
+
});
|
|
1201
|
+
}
|
|
1202
|
+
remove(e) {
|
|
1203
|
+
if (this.#e.delete(e)) {
|
|
1204
|
+
let t = F(e);
|
|
1205
|
+
if (typeof t == "string") {
|
|
1206
|
+
let n = this.#t.get(t);
|
|
1207
|
+
if (n) if (n.length > 1) {
|
|
1208
|
+
let t = n.indexOf(e);
|
|
1209
|
+
t !== -1 && n.splice(t, 1);
|
|
1210
|
+
} else n[0] === e && this.#t.delete(t);
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
this.notify({
|
|
1214
|
+
type: "removed",
|
|
1215
|
+
mutation: e
|
|
1216
|
+
});
|
|
1217
|
+
}
|
|
1218
|
+
canRun(e) {
|
|
1219
|
+
let t = F(e);
|
|
1220
|
+
if (typeof t == "string") {
|
|
1221
|
+
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
|
|
1222
|
+
return !n || n === e;
|
|
1223
|
+
} else return !0;
|
|
1224
|
+
}
|
|
1225
|
+
runNext(e) {
|
|
1226
|
+
let t = F(e);
|
|
1227
|
+
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1228
|
+
}
|
|
1229
|
+
clear() {
|
|
1230
|
+
A.batch(() => {
|
|
1231
|
+
this.#e.forEach((e) => {
|
|
1232
|
+
this.notify({
|
|
1233
|
+
type: "removed",
|
|
1234
|
+
mutation: e
|
|
1235
|
+
});
|
|
1236
|
+
}), this.#e.clear(), this.#t.clear();
|
|
1237
|
+
});
|
|
1238
|
+
}
|
|
1239
|
+
getAll() {
|
|
1240
|
+
return Array.from(this.#e);
|
|
1241
|
+
}
|
|
1242
|
+
find(e) {
|
|
1243
|
+
let t = {
|
|
1244
|
+
exact: !0,
|
|
1245
|
+
...e
|
|
1246
|
+
};
|
|
1247
|
+
return this.getAll().find((e) => ie(t, e));
|
|
1248
|
+
}
|
|
1249
|
+
findAll(e = {}) {
|
|
1250
|
+
return this.getAll().filter((t) => ie(e, t));
|
|
1251
|
+
}
|
|
1252
|
+
notify(e) {
|
|
1253
|
+
A.batch(() => {
|
|
1254
|
+
this.listeners.forEach((t) => {
|
|
1255
|
+
t(e);
|
|
1256
|
+
});
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
resumePausedMutations() {
|
|
1260
|
+
let e = this.getAll().filter((e) => e.state.isPaused);
|
|
1261
|
+
return A.batch(() => Promise.all(e.map((e) => e.continue().catch(S))));
|
|
1262
|
+
}
|
|
1263
|
+
};
|
|
1264
|
+
function F(e) {
|
|
1265
|
+
return e.options.scope?.id;
|
|
1266
|
+
}
|
|
1267
|
+
//#endregion
|
|
1268
|
+
//#region node_modules/@tanstack/query-core/build/modern/queryCache.js
|
|
1269
|
+
var Be = class extends _ {
|
|
1270
|
+
constructor(e = {}) {
|
|
1271
|
+
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
1272
|
+
}
|
|
1273
|
+
#e;
|
|
1274
|
+
build(e, t, n) {
|
|
1275
|
+
let r = t.queryKey, i = t.queryHash ?? ae(r, t), a = this.get(i);
|
|
1276
|
+
return a || (a = new Te({
|
|
1277
|
+
client: e,
|
|
1278
|
+
queryKey: r,
|
|
1279
|
+
queryHash: i,
|
|
1280
|
+
options: e.defaultQueryOptions(t),
|
|
1281
|
+
state: n,
|
|
1282
|
+
defaultOptions: e.getQueryDefaults(r)
|
|
1283
|
+
}), this.add(a)), a;
|
|
1284
|
+
}
|
|
1285
|
+
add(e) {
|
|
1286
|
+
this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
|
|
1287
|
+
type: "added",
|
|
1288
|
+
query: e
|
|
1289
|
+
}));
|
|
1290
|
+
}
|
|
1291
|
+
remove(e) {
|
|
1292
|
+
let t = this.#e.get(e.queryHash);
|
|
1293
|
+
t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({
|
|
1294
|
+
type: "removed",
|
|
1295
|
+
query: e
|
|
1296
|
+
}));
|
|
1297
|
+
}
|
|
1298
|
+
clear() {
|
|
1299
|
+
A.batch(() => {
|
|
1300
|
+
this.getAll().forEach((e) => {
|
|
1301
|
+
this.remove(e);
|
|
1302
|
+
});
|
|
1303
|
+
});
|
|
1304
|
+
}
|
|
1305
|
+
get(e) {
|
|
1306
|
+
return this.#e.get(e);
|
|
1307
|
+
}
|
|
1308
|
+
getAll() {
|
|
1309
|
+
return [...this.#e.values()];
|
|
1310
|
+
}
|
|
1311
|
+
find(e) {
|
|
1312
|
+
let t = {
|
|
1313
|
+
exact: !0,
|
|
1314
|
+
...e
|
|
1315
|
+
};
|
|
1316
|
+
return this.getAll().find((e) => re(t, e));
|
|
1317
|
+
}
|
|
1318
|
+
findAll(e = {}) {
|
|
1319
|
+
let t = this.getAll();
|
|
1320
|
+
return Object.keys(e).length > 0 ? t.filter((t) => re(e, t)) : t;
|
|
1321
|
+
}
|
|
1322
|
+
notify(e) {
|
|
1323
|
+
A.batch(() => {
|
|
1324
|
+
this.listeners.forEach((t) => {
|
|
1325
|
+
t(e);
|
|
1326
|
+
});
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
onFocus() {
|
|
1330
|
+
A.batch(() => {
|
|
1331
|
+
this.getAll().forEach((e) => {
|
|
1332
|
+
e.onFocus();
|
|
1333
|
+
});
|
|
1334
|
+
});
|
|
1335
|
+
}
|
|
1336
|
+
onOnline() {
|
|
1337
|
+
A.batch(() => {
|
|
1338
|
+
this.getAll().forEach((e) => {
|
|
1339
|
+
e.onOnline();
|
|
1340
|
+
});
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1343
|
+
}, Ve = class {
|
|
1344
|
+
#e;
|
|
1345
|
+
#t;
|
|
1346
|
+
#n;
|
|
1347
|
+
#r;
|
|
1348
|
+
#i;
|
|
1349
|
+
#a;
|
|
1350
|
+
#o;
|
|
1351
|
+
#s;
|
|
1352
|
+
constructor(e = {}) {
|
|
1353
|
+
this.#e = e.queryCache || new Be(), this.#t = e.mutationCache || new ze(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
1354
|
+
}
|
|
1355
|
+
mount() {
|
|
1356
|
+
this.#a++, this.#a === 1 && (this.#o = _e.subscribe(async (e) => {
|
|
1357
|
+
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1358
|
+
}), this.#s = j.subscribe(async (e) => {
|
|
1359
|
+
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1360
|
+
}));
|
|
1361
|
+
}
|
|
1362
|
+
unmount() {
|
|
1363
|
+
this.#a--, this.#a === 0 && (this.#o?.(), this.#o = void 0, this.#s?.(), this.#s = void 0);
|
|
1364
|
+
}
|
|
1365
|
+
isFetching(e) {
|
|
1366
|
+
return this.#e.findAll({
|
|
1367
|
+
...e,
|
|
1368
|
+
fetchStatus: "fetching"
|
|
1369
|
+
}).length;
|
|
1370
|
+
}
|
|
1371
|
+
isMutating(e) {
|
|
1372
|
+
return this.#t.findAll({
|
|
1373
|
+
...e,
|
|
1374
|
+
status: "pending"
|
|
1375
|
+
}).length;
|
|
1376
|
+
}
|
|
1377
|
+
getQueryData(e) {
|
|
1378
|
+
let t = this.defaultQueryOptions({ queryKey: e });
|
|
1379
|
+
return this.#e.get(t.queryHash)?.state.data;
|
|
1380
|
+
}
|
|
1381
|
+
ensureQueryData(e) {
|
|
1382
|
+
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
|
|
1383
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(C(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
1384
|
+
}
|
|
1385
|
+
getQueriesData(e) {
|
|
1386
|
+
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
|
|
1387
|
+
}
|
|
1388
|
+
setQueryData(e, t, n) {
|
|
1389
|
+
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = ee(t, i);
|
|
1390
|
+
if (a !== void 0) return this.#e.build(this, r).setData(a, {
|
|
1391
|
+
...n,
|
|
1392
|
+
manual: !0
|
|
1393
|
+
});
|
|
1394
|
+
}
|
|
1395
|
+
setQueriesData(e, t, n) {
|
|
1396
|
+
return A.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
|
|
1397
|
+
}
|
|
1398
|
+
getQueryState(e) {
|
|
1399
|
+
let t = this.defaultQueryOptions({ queryKey: e });
|
|
1400
|
+
return this.#e.get(t.queryHash)?.state;
|
|
1401
|
+
}
|
|
1402
|
+
removeQueries(e) {
|
|
1403
|
+
let t = this.#e;
|
|
1404
|
+
A.batch(() => {
|
|
1405
|
+
t.findAll(e).forEach((e) => {
|
|
1406
|
+
t.remove(e);
|
|
1407
|
+
});
|
|
1408
|
+
});
|
|
1409
|
+
}
|
|
1410
|
+
resetQueries(e, t) {
|
|
1411
|
+
let n = this.#e;
|
|
1412
|
+
return A.batch(() => (n.findAll(e).forEach((e) => {
|
|
1413
|
+
e.reset();
|
|
1414
|
+
}), this.refetchQueries({
|
|
1415
|
+
type: "active",
|
|
1416
|
+
...e
|
|
1417
|
+
}, t)));
|
|
1418
|
+
}
|
|
1419
|
+
cancelQueries(e, t = {}) {
|
|
1420
|
+
let n = {
|
|
1421
|
+
revert: !0,
|
|
1422
|
+
...t
|
|
1423
|
+
}, r = A.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
|
|
1424
|
+
return Promise.all(r).then(S).catch(S);
|
|
1425
|
+
}
|
|
1426
|
+
invalidateQueries(e, t = {}) {
|
|
1427
|
+
return A.batch(() => (this.#e.findAll(e).forEach((e) => {
|
|
1428
|
+
e.invalidate();
|
|
1429
|
+
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
|
|
1430
|
+
...e,
|
|
1431
|
+
type: e?.refetchType ?? e?.type ?? "active"
|
|
1432
|
+
}, t)));
|
|
1433
|
+
}
|
|
1434
|
+
refetchQueries(e, t = {}) {
|
|
1435
|
+
let n = {
|
|
1436
|
+
...t,
|
|
1437
|
+
cancelRefetch: t.cancelRefetch ?? !0
|
|
1438
|
+
}, r = A.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
|
|
1439
|
+
let t = e.fetch(void 0, n);
|
|
1440
|
+
return n.throwOnError || (t = t.catch(S)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
|
|
1441
|
+
}));
|
|
1442
|
+
return Promise.all(r).then(S);
|
|
1443
|
+
}
|
|
1444
|
+
fetchQuery(e) {
|
|
1445
|
+
let t = this.defaultQueryOptions(e);
|
|
1446
|
+
t.retry === void 0 && (t.retry = !1);
|
|
1447
|
+
let n = this.#e.build(this, t);
|
|
1448
|
+
return n.isStaleByTime(C(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
1449
|
+
}
|
|
1450
|
+
prefetchQuery(e) {
|
|
1451
|
+
return this.fetchQuery(e).then(S).catch(S);
|
|
1452
|
+
}
|
|
1453
|
+
fetchInfiniteQuery(e) {
|
|
1454
|
+
return e.behavior = Pe(e.pages), this.fetchQuery(e);
|
|
1455
|
+
}
|
|
1456
|
+
prefetchInfiniteQuery(e) {
|
|
1457
|
+
return this.fetchInfiniteQuery(e).then(S).catch(S);
|
|
1458
|
+
}
|
|
1459
|
+
ensureInfiniteQueryData(e) {
|
|
1460
|
+
return e.behavior = Pe(e.pages), this.ensureQueryData(e);
|
|
1461
|
+
}
|
|
1462
|
+
resumePausedMutations() {
|
|
1463
|
+
return j.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
1464
|
+
}
|
|
1465
|
+
getQueryCache() {
|
|
1466
|
+
return this.#e;
|
|
1467
|
+
}
|
|
1468
|
+
getMutationCache() {
|
|
1469
|
+
return this.#t;
|
|
1470
|
+
}
|
|
1471
|
+
getDefaultOptions() {
|
|
1472
|
+
return this.#n;
|
|
1473
|
+
}
|
|
1474
|
+
setDefaultOptions(e) {
|
|
1475
|
+
this.#n = e;
|
|
1476
|
+
}
|
|
1477
|
+
setQueryDefaults(e, t) {
|
|
1478
|
+
this.#r.set(T(e), {
|
|
1479
|
+
queryKey: e,
|
|
1480
|
+
defaultOptions: t
|
|
1481
|
+
});
|
|
1482
|
+
}
|
|
1483
|
+
getQueryDefaults(e) {
|
|
1484
|
+
let t = [...this.#r.values()], n = {};
|
|
1485
|
+
return t.forEach((t) => {
|
|
1486
|
+
E(e, t.queryKey) && Object.assign(n, t.defaultOptions);
|
|
1487
|
+
}), n;
|
|
1488
|
+
}
|
|
1489
|
+
setMutationDefaults(e, t) {
|
|
1490
|
+
this.#i.set(T(e), {
|
|
1491
|
+
mutationKey: e,
|
|
1492
|
+
defaultOptions: t
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1495
|
+
getMutationDefaults(e) {
|
|
1496
|
+
let t = [...this.#i.values()], n = {};
|
|
1497
|
+
return t.forEach((t) => {
|
|
1498
|
+
E(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
|
|
1499
|
+
}), n;
|
|
1500
|
+
}
|
|
1501
|
+
defaultQueryOptions(e) {
|
|
1502
|
+
if (e._defaulted) return e;
|
|
1503
|
+
let t = {
|
|
1504
|
+
...this.#n.queries,
|
|
1505
|
+
...this.getQueryDefaults(e.queryKey),
|
|
1506
|
+
...e,
|
|
1507
|
+
_defaulted: !0
|
|
1508
|
+
};
|
|
1509
|
+
return t.queryHash ||= ae(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 === k && (t.enabled = !1), t;
|
|
1510
|
+
}
|
|
1511
|
+
defaultMutationOptions(e) {
|
|
1512
|
+
return e?._defaulted ? e : {
|
|
1513
|
+
...this.#n.mutations,
|
|
1514
|
+
...e?.mutationKey && this.getMutationDefaults(e.mutationKey),
|
|
1515
|
+
...e,
|
|
1516
|
+
_defaulted: !0
|
|
1517
|
+
};
|
|
1518
|
+
}
|
|
1519
|
+
clear() {
|
|
1520
|
+
this.#e.clear(), this.#t.clear();
|
|
1521
|
+
}
|
|
1522
|
+
}, He = a.createContext(void 0), I = (e) => {
|
|
1523
|
+
let t = a.useContext(He);
|
|
1524
|
+
if (e) return e;
|
|
1525
|
+
if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1526
|
+
return t;
|
|
1527
|
+
}, Ue = ({ client: e, children: t }) => (a.useEffect(() => (e.mount(), () => {
|
|
1528
|
+
e.unmount();
|
|
1529
|
+
}), [e]), /* @__PURE__ */ h(He.Provider, {
|
|
1530
|
+
value: e,
|
|
1531
|
+
children: t
|
|
1532
|
+
})), We = a.createContext(!1), Ge = () => a.useContext(We);
|
|
1533
|
+
//#endregion
|
|
1534
|
+
//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
1535
|
+
function Ke() {
|
|
1536
|
+
let e = !1;
|
|
1537
|
+
return {
|
|
1538
|
+
clearReset: () => {
|
|
1539
|
+
e = !1;
|
|
1540
|
+
},
|
|
1541
|
+
reset: () => {
|
|
1542
|
+
e = !0;
|
|
1543
|
+
},
|
|
1544
|
+
isReset: () => e
|
|
1545
|
+
};
|
|
1546
|
+
}
|
|
1547
|
+
var qe = a.createContext(Ke()), Je = () => a.useContext(qe), Ye = (e, t, n) => {
|
|
1548
|
+
let r = n?.state.error && typeof e.throwOnError == "function" ? he(e.throwOnError, [n.state.error, n]) : e.throwOnError;
|
|
1549
|
+
(e.suspense || e.experimental_prefetchInRender || r) && (t.isReset() || (e.retryOnMount = !1));
|
|
1550
|
+
}, Xe = (e) => {
|
|
1551
|
+
a.useEffect(() => {
|
|
1552
|
+
e.clearReset();
|
|
1553
|
+
}, [e]);
|
|
1554
|
+
}, Ze = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || he(n, [e.error, r])), Qe = (e) => {
|
|
1555
|
+
if (e.suspense) {
|
|
1556
|
+
let t = 1e3, n = (e) => e === "static" ? e : Math.max(e ?? t, t), r = e.staleTime;
|
|
1557
|
+
e.staleTime = typeof r == "function" ? (...e) => n(r(...e)) : n(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, t));
|
|
1558
|
+
}
|
|
1559
|
+
}, $e = (e, t) => e.isLoading && e.isFetching && !t, et = (e, t) => e?.suspense && t.isPending, L = (e, t, n) => t.fetchOptimistic(e).catch(() => {
|
|
1560
|
+
n.clearReset();
|
|
1561
|
+
});
|
|
1562
|
+
//#endregion
|
|
1563
|
+
//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
1564
|
+
function tt(e, t, n) {
|
|
1565
|
+
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");
|
|
1566
|
+
let r = Ge(), i = Je(), o = I(n), s = o.defaultQueryOptions(e);
|
|
1567
|
+
o.getDefaultOptions().queries?._experimental_beforeQuery?.(s);
|
|
1568
|
+
let c = o.getQueryCache().get(s.queryHash);
|
|
1569
|
+
process.env.NODE_ENV !== "production" && (s.queryFn || console.error(`[${s.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`)), s._optimisticResults = r ? "isRestoring" : "optimistic", Qe(s), Ye(s, i, c), Xe(i);
|
|
1570
|
+
let l = !o.getQueryCache().get(s.queryHash), [u] = a.useState(() => new t(o, s)), d = u.getOptimisticResult(s), f = !r && e.subscribed !== !1;
|
|
1571
|
+
if (a.useSyncExternalStore(a.useCallback((e) => {
|
|
1572
|
+
let t = f ? u.subscribe(A.batchCalls(e)) : S;
|
|
1573
|
+
return u.updateResult(), t;
|
|
1574
|
+
}, [u, f]), () => u.getCurrentResult(), () => u.getCurrentResult()), a.useEffect(() => {
|
|
1575
|
+
u.setOptions(s);
|
|
1576
|
+
}, [s, u]), et(s, d)) throw L(s, u, i);
|
|
1577
|
+
if (Ze({
|
|
1578
|
+
result: d,
|
|
1579
|
+
errorResetBoundary: i,
|
|
1580
|
+
throwOnError: s.throwOnError,
|
|
1581
|
+
query: c,
|
|
1582
|
+
suspense: s.suspense
|
|
1583
|
+
})) throw d.error;
|
|
1584
|
+
return o.getDefaultOptions().queries?._experimental_afterQuery?.(s, d), s.experimental_prefetchInRender && !x && $e(d, r) && (l ? L(s, u, i) : c?.promise)?.catch(S).finally(() => {
|
|
1585
|
+
u.updateResult();
|
|
1586
|
+
}), s.notifyOnChangeProps ? d : u.trackResult(d);
|
|
1587
|
+
}
|
|
1588
|
+
//#endregion
|
|
1589
|
+
//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
1590
|
+
function nt(e, t) {
|
|
1591
|
+
return tt(e, ke, t);
|
|
1592
|
+
}
|
|
1593
|
+
//#endregion
|
|
1594
|
+
//#region src/client/client/CubeClient.ts
|
|
1595
|
+
var rt = class {
|
|
1596
|
+
apiUrl;
|
|
1597
|
+
headers;
|
|
1598
|
+
credentials;
|
|
1599
|
+
constructor(e, t = {}) {
|
|
1600
|
+
this.apiUrl = t.apiUrl || "/cubejs-api/v1", this.headers = {
|
|
1601
|
+
"Content-Type": "application/json",
|
|
1602
|
+
...t.headers
|
|
1603
|
+
}, this.credentials = t.credentials ?? "include", e && (this.headers.Authorization = e);
|
|
1604
|
+
}
|
|
1605
|
+
async load(e, t) {
|
|
1606
|
+
let n = JSON.stringify(e), r = `${this.apiUrl}/load?query=${encodeURIComponent(n)}`, i = { ...Object.fromEntries(Object.entries(this.headers).filter(([e]) => e !== "Content-Type")) };
|
|
1607
|
+
t?.bustCache && (i["X-Cache-Control"] = "no-cache");
|
|
1608
|
+
let a = await fetch(r, {
|
|
1609
|
+
method: "GET",
|
|
1610
|
+
headers: i,
|
|
1611
|
+
credentials: this.credentials
|
|
1612
|
+
});
|
|
1613
|
+
if (!a.ok) {
|
|
1614
|
+
let e = `Cube query failed: ${a.status}`;
|
|
1615
|
+
try {
|
|
1616
|
+
let t = await a.text();
|
|
1617
|
+
try {
|
|
1618
|
+
let n = JSON.parse(t);
|
|
1619
|
+
n.error ? e = n.error : e += ` ${t}`;
|
|
1620
|
+
} catch {
|
|
1621
|
+
e += ` ${t}`;
|
|
1622
|
+
}
|
|
1623
|
+
} catch {}
|
|
1624
|
+
throw Error(e);
|
|
1625
|
+
}
|
|
1626
|
+
return new R(await a.json());
|
|
1627
|
+
}
|
|
1628
|
+
async meta() {
|
|
1629
|
+
let e = `${this.apiUrl}/meta`, t = await fetch(e, {
|
|
1630
|
+
method: "GET",
|
|
1631
|
+
headers: this.headers,
|
|
1632
|
+
credentials: this.credentials
|
|
1633
|
+
});
|
|
1634
|
+
if (!t.ok) throw Error(`Failed to fetch meta: ${t.status}`);
|
|
1635
|
+
return t.json();
|
|
1636
|
+
}
|
|
1637
|
+
async sql(e) {
|
|
1638
|
+
let t = encodeURIComponent(JSON.stringify(e)), n = `${this.apiUrl}/sql?query=${t}`, r = await fetch(n, {
|
|
1639
|
+
method: "GET",
|
|
1640
|
+
headers: { ...Object.fromEntries(Object.entries(this.headers).filter(([e]) => e !== "Content-Type")) },
|
|
1641
|
+
credentials: this.credentials
|
|
1642
|
+
});
|
|
1643
|
+
if (!r.ok) throw Error(`SQL generation failed: ${r.status}`);
|
|
1644
|
+
return r.json();
|
|
1645
|
+
}
|
|
1646
|
+
async dryRun(e) {
|
|
1647
|
+
let t = `${this.apiUrl}/dry-run`, n = await fetch(t, {
|
|
1648
|
+
method: "POST",
|
|
1649
|
+
headers: this.headers,
|
|
1650
|
+
credentials: this.credentials,
|
|
1651
|
+
body: JSON.stringify({ query: e })
|
|
1652
|
+
});
|
|
1653
|
+
if (!n.ok) {
|
|
1654
|
+
let e = `Dry run failed: ${n.status}`;
|
|
1655
|
+
try {
|
|
1656
|
+
let t = await n.text();
|
|
1657
|
+
try {
|
|
1658
|
+
let n = JSON.parse(t);
|
|
1659
|
+
n.error ? e = n.error : e += ` ${t}`;
|
|
1660
|
+
} catch {
|
|
1661
|
+
e += ` ${t}`;
|
|
1662
|
+
}
|
|
1663
|
+
} catch {}
|
|
1664
|
+
throw Error(e);
|
|
1665
|
+
}
|
|
1666
|
+
return n.json();
|
|
1667
|
+
}
|
|
1668
|
+
async explain(e, t) {
|
|
1669
|
+
let n = `${this.apiUrl}/explain`, r = await fetch(n, {
|
|
1670
|
+
method: "POST",
|
|
1671
|
+
headers: this.headers,
|
|
1672
|
+
credentials: this.credentials,
|
|
1673
|
+
body: JSON.stringify({
|
|
1674
|
+
query: e,
|
|
1675
|
+
options: t
|
|
1676
|
+
})
|
|
1677
|
+
});
|
|
1678
|
+
if (!r.ok) {
|
|
1679
|
+
let e = `Explain failed: ${r.status}`;
|
|
1680
|
+
try {
|
|
1681
|
+
let t = await r.text();
|
|
1682
|
+
try {
|
|
1683
|
+
let n = JSON.parse(t);
|
|
1684
|
+
n.error ? e = n.error : e += ` ${t}`;
|
|
1685
|
+
} catch {
|
|
1686
|
+
e += ` ${t}`;
|
|
1687
|
+
}
|
|
1688
|
+
} catch {}
|
|
1689
|
+
throw Error(e);
|
|
1690
|
+
}
|
|
1691
|
+
return r.json();
|
|
1692
|
+
}
|
|
1693
|
+
async batchLoad(e, t) {
|
|
1694
|
+
let n = `${this.apiUrl}/batch`, r = { ...this.headers };
|
|
1695
|
+
t?.bustCache && (r["X-Cache-Control"] = "no-cache");
|
|
1696
|
+
let i = await fetch(n, {
|
|
1697
|
+
method: "POST",
|
|
1698
|
+
headers: r,
|
|
1699
|
+
credentials: this.credentials,
|
|
1700
|
+
body: JSON.stringify({ queries: e })
|
|
1701
|
+
});
|
|
1702
|
+
if (!i.ok) {
|
|
1703
|
+
let e = `Batch query failed: ${i.status}`;
|
|
1704
|
+
try {
|
|
1705
|
+
let t = await i.text();
|
|
1706
|
+
try {
|
|
1707
|
+
let n = JSON.parse(t);
|
|
1708
|
+
n.error ? e = n.error : e += ` ${t}`;
|
|
1709
|
+
} catch {
|
|
1710
|
+
e += ` ${t}`;
|
|
1711
|
+
}
|
|
1712
|
+
} catch {}
|
|
1713
|
+
throw Error(e);
|
|
1714
|
+
}
|
|
1715
|
+
return (await i.json()).results.map((e) => !e.success && e.error ? {
|
|
1716
|
+
...new R({
|
|
1717
|
+
data: [],
|
|
1718
|
+
annotation: {}
|
|
1719
|
+
}),
|
|
1720
|
+
error: e.error
|
|
1721
|
+
} : new R(e));
|
|
1722
|
+
}
|
|
1723
|
+
}, R = class {
|
|
1724
|
+
loadResponse;
|
|
1725
|
+
constructor(e) {
|
|
1726
|
+
this.loadResponse = e;
|
|
1727
|
+
}
|
|
1728
|
+
rawData() {
|
|
1729
|
+
return this.loadResponse.results && this.loadResponse.results[0] ? this.loadResponse.results[0].data || [] : this.loadResponse.data || [];
|
|
1730
|
+
}
|
|
1731
|
+
tablePivot() {
|
|
1732
|
+
return this.rawData();
|
|
1733
|
+
}
|
|
1734
|
+
series() {
|
|
1735
|
+
return this.rawData();
|
|
1736
|
+
}
|
|
1737
|
+
annotation() {
|
|
1738
|
+
return this.loadResponse.results && this.loadResponse.results[0] ? this.loadResponse.results[0].annotation || {} : this.loadResponse.annotation || {};
|
|
1739
|
+
}
|
|
1740
|
+
cacheInfo() {
|
|
1741
|
+
return this.loadResponse.results && this.loadResponse.results[0] ? this.loadResponse.results[0].cache : this.loadResponse.cache;
|
|
1742
|
+
}
|
|
1743
|
+
};
|
|
1744
|
+
function it(e, t = {}) {
|
|
1745
|
+
return new rt(e, t);
|
|
1746
|
+
}
|
|
1747
|
+
//#endregion
|
|
1748
|
+
//#region src/client/client/BatchCoordinator.ts
|
|
1749
|
+
var at = class {
|
|
1750
|
+
queue = [];
|
|
1751
|
+
flushScheduled = !1;
|
|
1752
|
+
batchExecutor;
|
|
1753
|
+
delayMs;
|
|
1754
|
+
constructor(e, t = 50) {
|
|
1755
|
+
this.batchExecutor = e, this.delayMs = t;
|
|
1756
|
+
}
|
|
1757
|
+
register(e) {
|
|
1758
|
+
return new Promise((t, n) => {
|
|
1759
|
+
this.queue.push({
|
|
1760
|
+
query: e,
|
|
1761
|
+
resolve: t,
|
|
1762
|
+
reject: n
|
|
1763
|
+
}), this.flushScheduled || this.scheduleFlush();
|
|
1764
|
+
});
|
|
1765
|
+
}
|
|
1766
|
+
scheduleFlush() {
|
|
1767
|
+
this.flushScheduled = !0, setTimeout(() => {
|
|
1768
|
+
this.flush();
|
|
1769
|
+
}, this.delayMs);
|
|
1770
|
+
}
|
|
1771
|
+
async flush() {
|
|
1772
|
+
this.flushScheduled = !1;
|
|
1773
|
+
let e = this.queue.slice();
|
|
1774
|
+
if (this.queue = [], e.length !== 0) try {
|
|
1775
|
+
let t = e.map((e) => e.query), n = await this.batchExecutor(t);
|
|
1776
|
+
e.forEach((e, t) => {
|
|
1777
|
+
let r = n[t];
|
|
1778
|
+
r && "error" in r && r.error ? e.reject(Error(r.error)) : e.resolve(r);
|
|
1779
|
+
});
|
|
1780
|
+
} catch (t) {
|
|
1781
|
+
e.forEach((e) => {
|
|
1782
|
+
e.reject(t instanceof Error ? t : Error(String(t)));
|
|
1783
|
+
});
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
getQueueSize() {
|
|
1787
|
+
return this.queue.length;
|
|
1788
|
+
}
|
|
1789
|
+
clear() {
|
|
1790
|
+
this.queue = [], this.flushScheduled = !1;
|
|
1791
|
+
}
|
|
1792
|
+
}, ot = s(null);
|
|
1793
|
+
function st({ apiOptions: e, token: t, options: n = {}, enableBatching: r = !0, batchDelayMs: i = 50, children: a }) {
|
|
1794
|
+
let o = p(() => ({
|
|
1795
|
+
apiOptions: e,
|
|
1796
|
+
token: t
|
|
1797
|
+
}), [e, t]), [s, c] = m(null);
|
|
1798
|
+
f(() => {
|
|
1799
|
+
c(null);
|
|
1800
|
+
}, [o]);
|
|
1801
|
+
let l = s ?? o, d = p(() => it(l.token, l.apiOptions), [l.apiOptions, l.token]), g = p(() => r ? new at((e) => d.batchLoad(e), i) : null, [
|
|
1802
|
+
r,
|
|
1803
|
+
d,
|
|
1804
|
+
i
|
|
1805
|
+
]), _ = u((e, t) => {
|
|
1806
|
+
c({
|
|
1807
|
+
apiOptions: e,
|
|
1808
|
+
token: t
|
|
1809
|
+
});
|
|
1810
|
+
}, []), v = p(() => ({
|
|
1811
|
+
cubeApi: d,
|
|
1812
|
+
options: n,
|
|
1813
|
+
updateApiConfig: _,
|
|
1814
|
+
batchCoordinator: g,
|
|
1815
|
+
enableBatching: r
|
|
1816
|
+
}), [
|
|
1817
|
+
d,
|
|
1818
|
+
n,
|
|
1819
|
+
_,
|
|
1820
|
+
g,
|
|
1821
|
+
r
|
|
1822
|
+
]);
|
|
1823
|
+
return /* @__PURE__ */ h(ot.Provider, {
|
|
1824
|
+
value: v,
|
|
1825
|
+
children: a
|
|
1826
|
+
});
|
|
1827
|
+
}
|
|
1828
|
+
function z() {
|
|
1829
|
+
let e = d(ot);
|
|
1830
|
+
if (!e) throw Error("useCubeApi must be used within CubeApiProvider");
|
|
1831
|
+
return e;
|
|
1832
|
+
}
|
|
1833
|
+
//#endregion
|
|
1834
|
+
//#region src/client/hooks/queries/useCubeMetaQuery.ts
|
|
1835
|
+
var ct = ["cube", "meta"];
|
|
1836
|
+
function lt(e) {
|
|
1837
|
+
let t = {};
|
|
1838
|
+
return e.cubes.forEach((e) => {
|
|
1839
|
+
e.measures.forEach((e) => {
|
|
1840
|
+
t[e.name] = e.title || e.shortTitle || e.name;
|
|
1841
|
+
}), e.dimensions.forEach((e) => {
|
|
1842
|
+
t[e.name] = e.title || e.shortTitle || e.name;
|
|
1843
|
+
}), e.segments.forEach((e) => {
|
|
1844
|
+
t[e.name] = e.title || e.shortTitle || e.name;
|
|
1845
|
+
});
|
|
1846
|
+
}), t;
|
|
1847
|
+
}
|
|
1848
|
+
function ut(e = {}) {
|
|
1849
|
+
let { enabled: t = !0, staleTime: n = 300 * 1e3 } = e, { cubeApi: r } = z(), i = I(), a = nt({
|
|
1850
|
+
queryKey: ct,
|
|
1851
|
+
queryFn: async () => {
|
|
1852
|
+
let e = await r.meta();
|
|
1853
|
+
return {
|
|
1854
|
+
meta: e,
|
|
1855
|
+
labelMap: lt(e)
|
|
1856
|
+
};
|
|
1857
|
+
},
|
|
1858
|
+
enabled: t,
|
|
1859
|
+
staleTime: n,
|
|
1860
|
+
gcTime: 900 * 1e3
|
|
1861
|
+
}), o = a.data?.meta ?? null, s = a.data?.labelMap ?? {};
|
|
1862
|
+
return {
|
|
1863
|
+
meta: o,
|
|
1864
|
+
labelMap: s,
|
|
1865
|
+
isLoading: a.isLoading,
|
|
1866
|
+
isFetching: a.isFetching,
|
|
1867
|
+
error: a.error,
|
|
1868
|
+
refetch: () => {
|
|
1869
|
+
i.invalidateQueries({ queryKey: ct });
|
|
1870
|
+
},
|
|
1871
|
+
getFieldLabel: (e) => s[e] || e
|
|
1872
|
+
};
|
|
1873
|
+
}
|
|
1874
|
+
//#endregion
|
|
1875
|
+
//#region src/client/utils/thumbnail.ts
|
|
1876
|
+
var B = null, V = !1;
|
|
1877
|
+
function dt(e, t, n, r, i) {
|
|
1878
|
+
return new Promise((a, o) => {
|
|
1879
|
+
let s = new Image();
|
|
1880
|
+
s.onload = () => {
|
|
1881
|
+
let e = document.createElement("canvas");
|
|
1882
|
+
e.width = t, e.height = n;
|
|
1883
|
+
let c = e.getContext("2d");
|
|
1884
|
+
if (!c) {
|
|
1885
|
+
o(/* @__PURE__ */ Error("Failed to get canvas context"));
|
|
1886
|
+
return;
|
|
1887
|
+
}
|
|
1888
|
+
c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high";
|
|
1889
|
+
let l = s.width / s.height, u = t / n, d = 0, f = 0, p = s.width, m = s.height;
|
|
1890
|
+
l > u ? (p = s.height * u, d = (s.width - p) / 2) : l < u && (m = s.width / u, f = 0), c.drawImage(s, d, f, p, m, 0, 0, t, n), a(e.toDataURL(r === "jpeg" ? "image/jpeg" : "image/png", i));
|
|
1891
|
+
}, s.onerror = () => o(/* @__PURE__ */ Error("Failed to load image for resizing")), s.src = e;
|
|
1892
|
+
});
|
|
1893
|
+
}
|
|
1894
|
+
async function H() {
|
|
1895
|
+
if (V) return B;
|
|
1896
|
+
try {
|
|
1897
|
+
return B = await import("./dist-DDBeV_JI.js"), V = !0, B;
|
|
1898
|
+
} catch {
|
|
1899
|
+
return V = !0, B = null, null;
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
function ft(e) {
|
|
1903
|
+
typeof window > "u" || e?.enabled && (window.__drizzle_cube_thumbnail_warning__ || H().then((e) => {
|
|
1904
|
+
!e && 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);
|
|
1905
|
+
}));
|
|
1906
|
+
}
|
|
1907
|
+
async function pt(e, t) {
|
|
1908
|
+
if (typeof window > "u" || !e.current) return null;
|
|
1909
|
+
let n = await H();
|
|
1910
|
+
if (!n) return null;
|
|
1911
|
+
try {
|
|
1912
|
+
let r = t.width ?? 1600, i = t.height ?? 1200, a = t.format ?? "png", o = t.quality ?? .95, s = e.current, c = _t(s);
|
|
1913
|
+
return await dt(await n.domToPng(s, {
|
|
1914
|
+
scale: 2,
|
|
1915
|
+
backgroundColor: c
|
|
1916
|
+
}), r, i, a, o);
|
|
1917
|
+
} catch (e) {
|
|
1918
|
+
return console.error("[drizzle-cube] Failed to capture thumbnail:", e), null;
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
async function mt(e) {
|
|
1922
|
+
return !e?.enabled || typeof window > "u" ? !1 : await H() !== null;
|
|
1923
|
+
}
|
|
1924
|
+
async function ht() {
|
|
1925
|
+
return typeof window > "u" || !await H() ? !1 : typeof ClipboardItem < "u" && typeof navigator?.clipboard?.write == "function";
|
|
1926
|
+
}
|
|
1927
|
+
function gt(e) {
|
|
1928
|
+
if (!e || e === "transparent" || e === "rgba(0, 0, 0, 0)") return !0;
|
|
1929
|
+
let t = e.match(/rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*([\d.]+)\s*\)/);
|
|
1930
|
+
return !!(t && parseFloat(t[1]) === 0);
|
|
1931
|
+
}
|
|
1932
|
+
function _t(e) {
|
|
1933
|
+
let t = e;
|
|
1934
|
+
for (; t;) {
|
|
1935
|
+
let e = getComputedStyle(t).backgroundColor;
|
|
1936
|
+
if (!gt(e)) return e;
|
|
1937
|
+
t = t.parentElement;
|
|
1938
|
+
}
|
|
1939
|
+
return getComputedStyle(document.documentElement).getPropertyValue("--dc-surface").trim() || "#ffffff";
|
|
1940
|
+
}
|
|
1941
|
+
async function vt(e) {
|
|
1942
|
+
try {
|
|
1943
|
+
let t = await H();
|
|
1944
|
+
if (!t) return console.warn("[drizzle-cube] Cannot copy portlet: modern-screenshot not available"), !1;
|
|
1945
|
+
let n = _t(e), r = await t.domToPng(e, {
|
|
1946
|
+
scale: 2,
|
|
1947
|
+
backgroundColor: n
|
|
1948
|
+
}), i = await (await fetch(r)).blob();
|
|
1949
|
+
return await navigator.clipboard.write([new ClipboardItem({ "image/png": i })]), !0;
|
|
1950
|
+
} catch (e) {
|
|
1951
|
+
return console.warn("[drizzle-cube] Failed to copy portlet to clipboard:", e), !1;
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
//#endregion
|
|
1955
|
+
//#region src/client/providers/CubeFeaturesProvider.tsx
|
|
1956
|
+
var yt = s(null), bt = {
|
|
1957
|
+
enableAI: !0,
|
|
1958
|
+
aiEndpoint: "/api/ai/generate",
|
|
1959
|
+
showSchemaDiagram: !1,
|
|
1960
|
+
useAnalysisBuilder: !1,
|
|
1961
|
+
editToolbar: "both",
|
|
1962
|
+
floatingToolbarPosition: "right"
|
|
1963
|
+
};
|
|
1964
|
+
function xt({ features: e, dashboardModes: t = ["rows", "grid"], children: n }) {
|
|
1965
|
+
let [r, i] = m(() => ({
|
|
1966
|
+
...bt,
|
|
1967
|
+
...e
|
|
1968
|
+
}));
|
|
1969
|
+
f(() => {
|
|
1970
|
+
ft(r.thumbnail);
|
|
1971
|
+
}, [r.thumbnail]);
|
|
1972
|
+
let a = u((e) => {
|
|
1973
|
+
i((t) => ({
|
|
1974
|
+
...t,
|
|
1975
|
+
...e
|
|
1976
|
+
}));
|
|
1977
|
+
}, []), o = p(() => ({
|
|
1978
|
+
features: r,
|
|
1979
|
+
dashboardModes: t,
|
|
1980
|
+
updateFeatures: a
|
|
1981
|
+
}), [
|
|
1982
|
+
r,
|
|
1983
|
+
t,
|
|
1984
|
+
a
|
|
1985
|
+
]);
|
|
1986
|
+
return /* @__PURE__ */ h(yt.Provider, {
|
|
1987
|
+
value: o,
|
|
1988
|
+
children: n
|
|
1989
|
+
});
|
|
1990
|
+
}
|
|
1991
|
+
var St = {
|
|
1992
|
+
features: bt,
|
|
1993
|
+
dashboardModes: ["rows", "grid"],
|
|
1994
|
+
updateFeatures: () => {}
|
|
1995
|
+
};
|
|
1996
|
+
function Ct() {
|
|
1997
|
+
return d(yt) ?? St;
|
|
1998
|
+
}
|
|
1999
|
+
//#endregion
|
|
2000
|
+
//#region node_modules/@iconify/react/dist/iconify.js
|
|
2001
|
+
function wt(e, t) {
|
|
2002
|
+
let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
|
|
2003
|
+
function a(e) {
|
|
2004
|
+
if (n[e]) return i[e] = [];
|
|
2005
|
+
if (!(e in i)) {
|
|
2006
|
+
i[e] = null;
|
|
2007
|
+
let t = r[e] && r[e].parent, n = t && a(t);
|
|
2008
|
+
n && (i[e] = [t].concat(n));
|
|
2009
|
+
}
|
|
2010
|
+
return i[e];
|
|
2011
|
+
}
|
|
2012
|
+
return Object.keys(n).concat(Object.keys(r)).forEach(a), i;
|
|
2013
|
+
}
|
|
2014
|
+
var Tt = Object.freeze({
|
|
2015
|
+
left: 0,
|
|
2016
|
+
top: 0,
|
|
2017
|
+
width: 16,
|
|
2018
|
+
height: 16
|
|
2019
|
+
}), U = Object.freeze({
|
|
2020
|
+
rotate: 0,
|
|
2021
|
+
vFlip: !1,
|
|
2022
|
+
hFlip: !1
|
|
2023
|
+
}), Et = Object.freeze({
|
|
2024
|
+
...Tt,
|
|
2025
|
+
...U
|
|
2026
|
+
}), Dt = Object.freeze({
|
|
2027
|
+
...Et,
|
|
2028
|
+
body: "",
|
|
2029
|
+
hidden: !1
|
|
2030
|
+
});
|
|
2031
|
+
function Ot(e, t) {
|
|
2032
|
+
let n = {};
|
|
2033
|
+
!e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
|
|
2034
|
+
let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
2035
|
+
return r && (n.rotate = r), n;
|
|
2036
|
+
}
|
|
2037
|
+
function kt(e, t) {
|
|
2038
|
+
let n = Ot(e, t);
|
|
2039
|
+
for (let r in Dt) r in U ? r in e && !(r in n) && (n[r] = U[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
|
|
2040
|
+
return n;
|
|
2041
|
+
}
|
|
2042
|
+
function At(e, t, n) {
|
|
2043
|
+
let r = e.icons, i = e.aliases || Object.create(null), a = {};
|
|
2044
|
+
function o(e) {
|
|
2045
|
+
a = kt(r[e] || i[e], a);
|
|
2046
|
+
}
|
|
2047
|
+
return o(t), n.forEach(o), kt(e, a);
|
|
2048
|
+
}
|
|
2049
|
+
function jt(e, t) {
|
|
2050
|
+
let n = [];
|
|
2051
|
+
if (typeof e != "object" || typeof e.icons != "object") return n;
|
|
2052
|
+
e.not_found instanceof Array && e.not_found.forEach((e) => {
|
|
2053
|
+
t(e, null), n.push(e);
|
|
2054
|
+
});
|
|
2055
|
+
let r = wt(e);
|
|
2056
|
+
for (let i in r) {
|
|
2057
|
+
let a = r[i];
|
|
2058
|
+
a && (t(i, At(e, i, a)), n.push(i));
|
|
2059
|
+
}
|
|
2060
|
+
return n;
|
|
2061
|
+
}
|
|
2062
|
+
var Mt = {
|
|
2063
|
+
provider: "",
|
|
2064
|
+
aliases: {},
|
|
2065
|
+
not_found: {},
|
|
2066
|
+
...Tt
|
|
2067
|
+
};
|
|
2068
|
+
function Nt(e, t) {
|
|
2069
|
+
for (let n in t) if (n in e && typeof e[n] != typeof t[n]) return !1;
|
|
2070
|
+
return !0;
|
|
2071
|
+
}
|
|
2072
|
+
function Pt(e) {
|
|
2073
|
+
if (typeof e != "object" || !e) return null;
|
|
2074
|
+
let t = e;
|
|
2075
|
+
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !Nt(e, Mt)) return null;
|
|
2076
|
+
let n = t.icons;
|
|
2077
|
+
for (let e in n) {
|
|
2078
|
+
let t = n[e];
|
|
2079
|
+
if (!e || typeof t.body != "string" || !Nt(t, Dt)) return null;
|
|
2080
|
+
}
|
|
2081
|
+
let r = t.aliases || Object.create(null);
|
|
2082
|
+
for (let e in r) {
|
|
2083
|
+
let t = r[e], i = t.parent;
|
|
2084
|
+
if (!e || typeof i != "string" || !n[i] && !r[i] || !Nt(t, Dt)) return null;
|
|
2085
|
+
}
|
|
2086
|
+
return t;
|
|
2087
|
+
}
|
|
2088
|
+
var Ft = Object.create(null);
|
|
2089
|
+
function It(e, t) {
|
|
2090
|
+
return {
|
|
2091
|
+
provider: e,
|
|
2092
|
+
prefix: t,
|
|
2093
|
+
icons: Object.create(null),
|
|
2094
|
+
missing: /* @__PURE__ */ new Set()
|
|
2095
|
+
};
|
|
2096
|
+
}
|
|
2097
|
+
function W(e, t) {
|
|
2098
|
+
let n = Ft[e] || (Ft[e] = Object.create(null));
|
|
2099
|
+
return n[t] || (n[t] = It(e, t));
|
|
2100
|
+
}
|
|
2101
|
+
function Lt(e, t) {
|
|
2102
|
+
return Pt(t) ? jt(t, (t, n) => {
|
|
2103
|
+
n ? e.icons[t] = n : e.missing.add(t);
|
|
2104
|
+
}) : [];
|
|
2105
|
+
}
|
|
2106
|
+
function Rt(e, t, n) {
|
|
2107
|
+
try {
|
|
2108
|
+
if (typeof n.body == "string") return e.icons[t] = { ...n }, !0;
|
|
2109
|
+
} catch {}
|
|
2110
|
+
return !1;
|
|
2111
|
+
}
|
|
2112
|
+
var zt = /^[a-z0-9]+(-[a-z0-9]+)*$/, G = (e, t, n, r = "") => {
|
|
2113
|
+
let i = e.split(":");
|
|
2114
|
+
if (e.slice(0, 1) === "@") {
|
|
2115
|
+
if (i.length < 2 || i.length > 3) return null;
|
|
2116
|
+
r = i.shift().slice(1);
|
|
2117
|
+
}
|
|
2118
|
+
if (i.length > 3 || !i.length) return null;
|
|
2119
|
+
if (i.length > 1) {
|
|
2120
|
+
let e = i.pop(), n = i.pop(), a = {
|
|
2121
|
+
provider: i.length > 0 ? i[0] : r,
|
|
2122
|
+
prefix: n,
|
|
2123
|
+
name: e
|
|
2124
|
+
};
|
|
2125
|
+
return t && !K(a) ? null : a;
|
|
2126
|
+
}
|
|
2127
|
+
let a = i[0], o = a.split("-");
|
|
2128
|
+
if (o.length > 1) {
|
|
2129
|
+
let e = {
|
|
2130
|
+
provider: r,
|
|
2131
|
+
prefix: o.shift(),
|
|
2132
|
+
name: o.join("-")
|
|
2133
|
+
};
|
|
2134
|
+
return t && !K(e) ? null : e;
|
|
2135
|
+
}
|
|
2136
|
+
if (n && r === "") {
|
|
2137
|
+
let e = {
|
|
2138
|
+
provider: r,
|
|
2139
|
+
prefix: "",
|
|
2140
|
+
name: a
|
|
2141
|
+
};
|
|
2142
|
+
return t && !K(e, n) ? null : e;
|
|
2143
|
+
}
|
|
2144
|
+
return null;
|
|
2145
|
+
}, K = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1, q = !1;
|
|
2146
|
+
function Bt(e) {
|
|
2147
|
+
return typeof e == "boolean" && (q = e), q;
|
|
2148
|
+
}
|
|
2149
|
+
function Vt(e) {
|
|
2150
|
+
let t = typeof e == "string" ? G(e, !0, q) : e;
|
|
2151
|
+
if (t) {
|
|
2152
|
+
let e = W(t.provider, t.prefix), n = t.name;
|
|
2153
|
+
return e.icons[n] || (e.missing.has(n) ? null : void 0);
|
|
2154
|
+
}
|
|
2155
|
+
}
|
|
2156
|
+
function Ht(e, t) {
|
|
2157
|
+
let n = G(e, !0, q);
|
|
2158
|
+
if (!n) return !1;
|
|
2159
|
+
let r = W(n.provider, n.prefix);
|
|
2160
|
+
return t ? Rt(r, n.name, t) : (r.missing.add(n.name), !0);
|
|
2161
|
+
}
|
|
2162
|
+
function Ut(e, t) {
|
|
2163
|
+
if (typeof e != "object") return !1;
|
|
2164
|
+
if (typeof t != "string" && (t = e.provider || ""), q && !t && !e.prefix) {
|
|
2165
|
+
let t = !1;
|
|
2166
|
+
return Pt(e) && (e.prefix = "", jt(e, (e, n) => {
|
|
2167
|
+
Ht(e, n) && (t = !0);
|
|
2168
|
+
})), t;
|
|
2169
|
+
}
|
|
2170
|
+
let n = e.prefix;
|
|
2171
|
+
return K({
|
|
2172
|
+
prefix: n,
|
|
2173
|
+
name: "a"
|
|
2174
|
+
}) ? !!Lt(W(t, n), e) : !1;
|
|
2175
|
+
}
|
|
2176
|
+
var Wt = Object.freeze({
|
|
2177
|
+
width: null,
|
|
2178
|
+
height: null
|
|
2179
|
+
}), Gt = Object.freeze({
|
|
2180
|
+
...Wt,
|
|
2181
|
+
...U
|
|
2182
|
+
}), Kt = /(-?[0-9.]*[0-9]+[0-9.]*)/g, qt = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
2183
|
+
function Jt(e, t, n) {
|
|
2184
|
+
if (t === 1) return e;
|
|
2185
|
+
if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
|
|
2186
|
+
if (typeof e != "string") return e;
|
|
2187
|
+
let r = e.split(Kt);
|
|
2188
|
+
if (r === null || !r.length) return e;
|
|
2189
|
+
let i = [], a = r.shift(), o = qt.test(a);
|
|
2190
|
+
for (;;) {
|
|
2191
|
+
if (o) {
|
|
2192
|
+
let e = parseFloat(a);
|
|
2193
|
+
i.push(isNaN(e) ? a : Math.ceil(e * t * n) / n);
|
|
2194
|
+
} else i.push(a);
|
|
2195
|
+
if (a = r.shift(), a === void 0) return i.join("");
|
|
2196
|
+
o = !o;
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
function Yt(e, t = "defs") {
|
|
2200
|
+
let n = "", r = e.indexOf("<" + t);
|
|
2201
|
+
for (; r >= 0;) {
|
|
2202
|
+
let i = e.indexOf(">", r), a = e.indexOf("</" + t);
|
|
2203
|
+
if (i === -1 || a === -1) break;
|
|
2204
|
+
let o = e.indexOf(">", a);
|
|
2205
|
+
if (o === -1) break;
|
|
2206
|
+
n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
|
|
2207
|
+
}
|
|
2208
|
+
return {
|
|
2209
|
+
defs: n,
|
|
2210
|
+
content: e
|
|
2211
|
+
};
|
|
2212
|
+
}
|
|
2213
|
+
function Xt(e, t) {
|
|
2214
|
+
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
2215
|
+
}
|
|
2216
|
+
function Zt(e, t, n) {
|
|
2217
|
+
let r = Yt(e);
|
|
2218
|
+
return Xt(r.defs, t + r.content + n);
|
|
2219
|
+
}
|
|
2220
|
+
var Qt = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
2221
|
+
function $t(e, t) {
|
|
2222
|
+
let n = {
|
|
2223
|
+
...Et,
|
|
2224
|
+
...e
|
|
2225
|
+
}, r = {
|
|
2226
|
+
...Gt,
|
|
2227
|
+
...t
|
|
2228
|
+
}, i = {
|
|
2229
|
+
left: n.left,
|
|
2230
|
+
top: n.top,
|
|
2231
|
+
width: n.width,
|
|
2232
|
+
height: n.height
|
|
2233
|
+
}, a = n.body;
|
|
2234
|
+
[n, r].forEach((e) => {
|
|
2235
|
+
let t = [], n = e.hFlip, r = e.vFlip, o = e.rotate;
|
|
2236
|
+
n ? r ? o += 2 : (t.push("translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"), t.push("scale(-1 1)"), i.top = i.left = 0) : r && (t.push("translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"), t.push("scale(1 -1)"), i.top = i.left = 0);
|
|
2237
|
+
let s;
|
|
2238
|
+
switch (o < 0 && (o -= Math.floor(o / 4) * 4), o %= 4, o) {
|
|
2239
|
+
case 1:
|
|
2240
|
+
s = i.height / 2 + i.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
|
|
2241
|
+
break;
|
|
2242
|
+
case 2:
|
|
2243
|
+
t.unshift("rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")");
|
|
2244
|
+
break;
|
|
2245
|
+
case 3:
|
|
2246
|
+
s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
|
|
2247
|
+
break;
|
|
2248
|
+
}
|
|
2249
|
+
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 = Zt(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
|
|
2250
|
+
});
|
|
2251
|
+
let o = r.width, s = r.height, c = i.width, l = i.height, u, d;
|
|
2252
|
+
o === null ? (d = s === null ? "1em" : s === "auto" ? l : s, u = Jt(d, c / l)) : (u = o === "auto" ? c : o, d = s === null ? Jt(u, l / c) : s === "auto" ? l : s);
|
|
2253
|
+
let f = {}, p = (e, t) => {
|
|
2254
|
+
Qt(t) || (f[e] = t.toString());
|
|
2255
|
+
};
|
|
2256
|
+
p("width", u), p("height", d);
|
|
2257
|
+
let m = [
|
|
2258
|
+
i.left,
|
|
2259
|
+
i.top,
|
|
2260
|
+
c,
|
|
2261
|
+
l
|
|
2262
|
+
];
|
|
2263
|
+
return f.viewBox = m.join(" "), {
|
|
2264
|
+
attributes: f,
|
|
2265
|
+
viewBox: m,
|
|
2266
|
+
body: a
|
|
2267
|
+
};
|
|
2268
|
+
}
|
|
2269
|
+
var en = /\sid="(\S+)"/g, tn = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16), nn = 0;
|
|
2270
|
+
function rn(e, t = tn) {
|
|
2271
|
+
let n = [], r;
|
|
2272
|
+
for (; r = en.exec(e);) n.push(r[1]);
|
|
2273
|
+
if (!n.length) return e;
|
|
2274
|
+
let i = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
2275
|
+
return n.forEach((n) => {
|
|
2276
|
+
let r = typeof t == "function" ? t(n) : t + (nn++).toString(), a = n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2277
|
+
e = e.replace(RegExp("([#;\"])(" + a + ")([\")]|\\.[a-z])", "g"), "$1" + r + i + "$3");
|
|
2278
|
+
}), e = e.replace(new RegExp(i, "g"), ""), e;
|
|
2279
|
+
}
|
|
2280
|
+
var an = Object.create(null);
|
|
2281
|
+
function on(e, t) {
|
|
2282
|
+
an[e] = t;
|
|
2283
|
+
}
|
|
2284
|
+
function sn(e) {
|
|
2285
|
+
return an[e] || an[""];
|
|
2286
|
+
}
|
|
2287
|
+
function cn(e) {
|
|
2288
|
+
let t;
|
|
2289
|
+
if (typeof e.resources == "string") t = [e.resources];
|
|
2290
|
+
else if (t = e.resources, !(t instanceof Array) || !t.length) return null;
|
|
2291
|
+
return {
|
|
2292
|
+
resources: t,
|
|
2293
|
+
path: e.path || "/",
|
|
2294
|
+
maxURL: e.maxURL || 500,
|
|
2295
|
+
rotate: e.rotate || 750,
|
|
2296
|
+
timeout: e.timeout || 5e3,
|
|
2297
|
+
random: e.random === !0,
|
|
2298
|
+
index: e.index || 0,
|
|
2299
|
+
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
2300
|
+
};
|
|
2301
|
+
}
|
|
2302
|
+
for (var ln = Object.create(null), J = ["https://api.simplesvg.com", "https://api.unisvg.com"], un = []; J.length > 0;) un.push(J.length === 1 || Math.random() > .5 ? J.shift() : J.pop());
|
|
2303
|
+
ln[""] = cn({ resources: ["https://api.iconify.design"].concat(un) });
|
|
2304
|
+
function dn(e, t) {
|
|
2305
|
+
let n = cn(t);
|
|
2306
|
+
return n === null ? !1 : (ln[e] = n, !0);
|
|
2307
|
+
}
|
|
2308
|
+
function fn(e) {
|
|
2309
|
+
return ln[e];
|
|
2310
|
+
}
|
|
2311
|
+
var pn = (() => {
|
|
2312
|
+
let e;
|
|
2313
|
+
try {
|
|
2314
|
+
if (e = fetch, typeof e == "function") return e;
|
|
2315
|
+
} catch {}
|
|
2316
|
+
})();
|
|
2317
|
+
function mn(e, t) {
|
|
2318
|
+
let n = fn(e);
|
|
2319
|
+
if (!n) return 0;
|
|
2320
|
+
let r;
|
|
2321
|
+
if (!n.maxURL) r = 0;
|
|
2322
|
+
else {
|
|
2323
|
+
let e = 0;
|
|
2324
|
+
n.resources.forEach((t) => {
|
|
2325
|
+
e = Math.max(e, t.length);
|
|
2326
|
+
});
|
|
2327
|
+
let i = t + ".json?icons=";
|
|
2328
|
+
r = n.maxURL - e - n.path.length - i.length;
|
|
2329
|
+
}
|
|
2330
|
+
return r;
|
|
2331
|
+
}
|
|
2332
|
+
function hn(e) {
|
|
2333
|
+
return e === 404;
|
|
2334
|
+
}
|
|
2335
|
+
var gn = (e, t, n) => {
|
|
2336
|
+
let r = [], i = mn(e, t), a = "icons", o = {
|
|
2337
|
+
type: a,
|
|
2338
|
+
provider: e,
|
|
2339
|
+
prefix: t,
|
|
2340
|
+
icons: []
|
|
2341
|
+
}, s = 0;
|
|
2342
|
+
return n.forEach((n, c) => {
|
|
2343
|
+
s += n.length + 1, s >= i && c > 0 && (r.push(o), o = {
|
|
2344
|
+
type: a,
|
|
2345
|
+
provider: e,
|
|
2346
|
+
prefix: t,
|
|
2347
|
+
icons: []
|
|
2348
|
+
}, s = n.length), o.icons.push(n);
|
|
2349
|
+
}), r.push(o), r;
|
|
2350
|
+
};
|
|
2351
|
+
function _n(e) {
|
|
2352
|
+
if (typeof e == "string") {
|
|
2353
|
+
let t = fn(e);
|
|
2354
|
+
if (t) return t.path;
|
|
2355
|
+
}
|
|
2356
|
+
return "/";
|
|
2357
|
+
}
|
|
2358
|
+
var vn = {
|
|
2359
|
+
prepare: gn,
|
|
2360
|
+
send: (e, t, n) => {
|
|
2361
|
+
if (!pn) {
|
|
2362
|
+
n("abort", 424);
|
|
2363
|
+
return;
|
|
2364
|
+
}
|
|
2365
|
+
let r = _n(t.provider);
|
|
2366
|
+
switch (t.type) {
|
|
2367
|
+
case "icons": {
|
|
2368
|
+
let e = t.prefix, n = t.icons.join(","), i = new URLSearchParams({ icons: n });
|
|
2369
|
+
r += e + ".json?" + i.toString();
|
|
2370
|
+
break;
|
|
2371
|
+
}
|
|
2372
|
+
case "custom": {
|
|
2373
|
+
let e = t.uri;
|
|
2374
|
+
r += e.slice(0, 1) === "/" ? e.slice(1) : e;
|
|
2375
|
+
break;
|
|
2376
|
+
}
|
|
2377
|
+
default:
|
|
2378
|
+
n("abort", 400);
|
|
2379
|
+
return;
|
|
2380
|
+
}
|
|
2381
|
+
let i = 503;
|
|
2382
|
+
pn(e + r).then((e) => {
|
|
2383
|
+
let t = e.status;
|
|
2384
|
+
if (t !== 200) {
|
|
2385
|
+
setTimeout(() => {
|
|
2386
|
+
n(hn(t) ? "abort" : "next", t);
|
|
2387
|
+
});
|
|
2388
|
+
return;
|
|
2389
|
+
}
|
|
2390
|
+
return i = 501, e.json();
|
|
2391
|
+
}).then((e) => {
|
|
2392
|
+
if (typeof e != "object" || !e) {
|
|
2393
|
+
setTimeout(() => {
|
|
2394
|
+
e === 404 ? n("abort", e) : n("next", i);
|
|
2395
|
+
});
|
|
2396
|
+
return;
|
|
2397
|
+
}
|
|
2398
|
+
setTimeout(() => {
|
|
2399
|
+
n("success", e);
|
|
2400
|
+
});
|
|
2401
|
+
}).catch(() => {
|
|
2402
|
+
n("next", i);
|
|
2403
|
+
});
|
|
2404
|
+
}
|
|
2405
|
+
};
|
|
2406
|
+
function yn(e, t) {
|
|
2407
|
+
e.forEach((e) => {
|
|
2408
|
+
let n = e.loaderCallbacks;
|
|
2409
|
+
n && (e.loaderCallbacks = n.filter((e) => e.id !== t));
|
|
2410
|
+
});
|
|
2411
|
+
}
|
|
2412
|
+
function bn(e) {
|
|
2413
|
+
e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
2414
|
+
e.pendingCallbacksFlag = !1;
|
|
2415
|
+
let t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
|
|
2416
|
+
if (!t.length) return;
|
|
2417
|
+
let n = !1, r = e.provider, i = e.prefix;
|
|
2418
|
+
t.forEach((t) => {
|
|
2419
|
+
let a = t.icons, o = a.pending.length;
|
|
2420
|
+
a.pending = a.pending.filter((t) => {
|
|
2421
|
+
if (t.prefix !== i) return !0;
|
|
2422
|
+
let o = t.name;
|
|
2423
|
+
if (e.icons[o]) a.loaded.push({
|
|
2424
|
+
provider: r,
|
|
2425
|
+
prefix: i,
|
|
2426
|
+
name: o
|
|
2427
|
+
});
|
|
2428
|
+
else if (e.missing.has(o)) a.missing.push({
|
|
2429
|
+
provider: r,
|
|
2430
|
+
prefix: i,
|
|
2431
|
+
name: o
|
|
2432
|
+
});
|
|
2433
|
+
else return n = !0, !0;
|
|
2434
|
+
return !1;
|
|
2435
|
+
}), a.pending.length !== o && (n || yn([e], t.id), t.callback(a.loaded.slice(0), a.missing.slice(0), a.pending.slice(0), t.abort));
|
|
2436
|
+
});
|
|
2437
|
+
}));
|
|
2438
|
+
}
|
|
2439
|
+
var xn = 0;
|
|
2440
|
+
function Sn(e, t, n) {
|
|
2441
|
+
let r = xn++, i = yn.bind(null, n, r);
|
|
2442
|
+
if (!t.pending.length) return i;
|
|
2443
|
+
let a = {
|
|
2444
|
+
id: r,
|
|
2445
|
+
icons: t,
|
|
2446
|
+
callback: e,
|
|
2447
|
+
abort: i
|
|
2448
|
+
};
|
|
2449
|
+
return n.forEach((e) => {
|
|
2450
|
+
(e.loaderCallbacks ||= []).push(a);
|
|
2451
|
+
}), i;
|
|
2452
|
+
}
|
|
2453
|
+
function Cn(e) {
|
|
2454
|
+
let t = {
|
|
2455
|
+
loaded: [],
|
|
2456
|
+
missing: [],
|
|
2457
|
+
pending: []
|
|
2458
|
+
}, n = Object.create(null);
|
|
2459
|
+
e.sort((e, t) => e.provider === t.provider ? e.prefix === t.prefix ? e.name.localeCompare(t.name) : e.prefix.localeCompare(t.prefix) : e.provider.localeCompare(t.provider));
|
|
2460
|
+
let r = {
|
|
2461
|
+
provider: "",
|
|
2462
|
+
prefix: "",
|
|
2463
|
+
name: ""
|
|
2464
|
+
};
|
|
2465
|
+
return e.forEach((e) => {
|
|
2466
|
+
if (r.name === e.name && r.prefix === e.prefix && r.provider === e.provider) return;
|
|
2467
|
+
r = e;
|
|
2468
|
+
let i = e.provider, a = e.prefix, o = e.name, s = n[i] || (n[i] = Object.create(null)), c = s[a] || (s[a] = W(i, a)), l;
|
|
2469
|
+
l = o in c.icons ? t.loaded : a === "" || c.missing.has(o) ? t.missing : t.pending, l.push({
|
|
2470
|
+
provider: i,
|
|
2471
|
+
prefix: a,
|
|
2472
|
+
name: o
|
|
2473
|
+
});
|
|
2474
|
+
}), t;
|
|
2475
|
+
}
|
|
2476
|
+
function wn(e, t = !0, n = !1) {
|
|
2477
|
+
let r = [];
|
|
2478
|
+
return e.forEach((e) => {
|
|
2479
|
+
let i = typeof e == "string" ? G(e, t, n) : e;
|
|
2480
|
+
i && r.push(i);
|
|
2481
|
+
}), r;
|
|
2482
|
+
}
|
|
2483
|
+
var Tn = {
|
|
2484
|
+
resources: [],
|
|
2485
|
+
index: 0,
|
|
2486
|
+
timeout: 2e3,
|
|
2487
|
+
rotate: 750,
|
|
2488
|
+
random: !1,
|
|
2489
|
+
dataAfterTimeout: !1
|
|
2490
|
+
};
|
|
2491
|
+
function En(e, t, n, r) {
|
|
2492
|
+
let i = e.random ? Math.floor(Math.random() * e.resources.length) : e.index, a;
|
|
2493
|
+
if (e.random) {
|
|
2494
|
+
let t = e.resources.slice(0);
|
|
2495
|
+
for (a = []; t.length > 1;) {
|
|
2496
|
+
let e = Math.floor(Math.random() * t.length);
|
|
2497
|
+
a.push(t[e]), t = t.slice(0, e).concat(t.slice(e + 1));
|
|
2498
|
+
}
|
|
2499
|
+
a = a.concat(t);
|
|
2500
|
+
} else a = e.resources.slice(i).concat(e.resources.slice(0, i));
|
|
2501
|
+
let o = Date.now(), s = "pending", c = 0, l, u = null, d = [], f = [];
|
|
2502
|
+
typeof r == "function" && f.push(r);
|
|
2503
|
+
function p() {
|
|
2504
|
+
u &&= (clearTimeout(u), null);
|
|
2505
|
+
}
|
|
2506
|
+
function m() {
|
|
2507
|
+
s === "pending" && (s = "aborted"), p(), d.forEach((e) => {
|
|
2508
|
+
e.status === "pending" && (e.status = "aborted");
|
|
2509
|
+
}), d = [];
|
|
2510
|
+
}
|
|
2511
|
+
function h(e, t) {
|
|
2512
|
+
t && (f = []), typeof e == "function" && f.push(e);
|
|
2513
|
+
}
|
|
2514
|
+
function g() {
|
|
2515
|
+
return {
|
|
2516
|
+
startTime: o,
|
|
2517
|
+
payload: t,
|
|
2518
|
+
status: s,
|
|
2519
|
+
queriesSent: c,
|
|
2520
|
+
queriesPending: d.length,
|
|
2521
|
+
subscribe: h,
|
|
2522
|
+
abort: m
|
|
2523
|
+
};
|
|
2524
|
+
}
|
|
2525
|
+
function _() {
|
|
2526
|
+
s = "failed", f.forEach((e) => {
|
|
2527
|
+
e(void 0, l);
|
|
2528
|
+
});
|
|
2529
|
+
}
|
|
2530
|
+
function v() {
|
|
2531
|
+
d.forEach((e) => {
|
|
2532
|
+
e.status === "pending" && (e.status = "aborted");
|
|
2533
|
+
}), d = [];
|
|
2534
|
+
}
|
|
2535
|
+
function y(t, n, r) {
|
|
2536
|
+
let i = n !== "success";
|
|
2537
|
+
switch (d = d.filter((e) => e !== t), s) {
|
|
2538
|
+
case "pending": break;
|
|
2539
|
+
case "failed":
|
|
2540
|
+
if (i || !e.dataAfterTimeout) return;
|
|
2541
|
+
break;
|
|
2542
|
+
default: return;
|
|
2543
|
+
}
|
|
2544
|
+
if (n === "abort") {
|
|
2545
|
+
l = r, _();
|
|
2546
|
+
return;
|
|
2547
|
+
}
|
|
2548
|
+
if (i) {
|
|
2549
|
+
l = r, d.length || (a.length ? b() : _());
|
|
2550
|
+
return;
|
|
2551
|
+
}
|
|
2552
|
+
if (p(), v(), !e.random) {
|
|
2553
|
+
let n = e.resources.indexOf(t.resource);
|
|
2554
|
+
n !== -1 && n !== e.index && (e.index = n);
|
|
2555
|
+
}
|
|
2556
|
+
s = "completed", f.forEach((e) => {
|
|
2557
|
+
e(r);
|
|
2558
|
+
});
|
|
2559
|
+
}
|
|
2560
|
+
function b() {
|
|
2561
|
+
if (s !== "pending") return;
|
|
2562
|
+
p();
|
|
2563
|
+
let r = a.shift();
|
|
2564
|
+
if (r === void 0) {
|
|
2565
|
+
if (d.length) {
|
|
2566
|
+
u = setTimeout(() => {
|
|
2567
|
+
p(), s === "pending" && (v(), _());
|
|
2568
|
+
}, e.timeout);
|
|
2569
|
+
return;
|
|
2570
|
+
}
|
|
2571
|
+
_();
|
|
2572
|
+
return;
|
|
2573
|
+
}
|
|
2574
|
+
let i = {
|
|
2575
|
+
status: "pending",
|
|
2576
|
+
resource: r,
|
|
2577
|
+
callback: (e, t) => {
|
|
2578
|
+
y(i, e, t);
|
|
2579
|
+
}
|
|
2580
|
+
};
|
|
2581
|
+
d.push(i), c++, u = setTimeout(b, e.rotate), n(r, t, i.callback);
|
|
2582
|
+
}
|
|
2583
|
+
return setTimeout(b), g;
|
|
2584
|
+
}
|
|
2585
|
+
function Dn(e) {
|
|
2586
|
+
let t = {
|
|
2587
|
+
...Tn,
|
|
2588
|
+
...e
|
|
2589
|
+
}, n = [];
|
|
2590
|
+
function r() {
|
|
2591
|
+
n = n.filter((e) => e().status === "pending");
|
|
2592
|
+
}
|
|
2593
|
+
function i(e, i, a) {
|
|
2594
|
+
let o = En(t, e, i, (e, t) => {
|
|
2595
|
+
r(), a && a(e, t);
|
|
2596
|
+
});
|
|
2597
|
+
return n.push(o), o;
|
|
2598
|
+
}
|
|
2599
|
+
function a(e) {
|
|
2600
|
+
return n.find((t) => e(t)) || null;
|
|
2601
|
+
}
|
|
2602
|
+
return {
|
|
2603
|
+
query: i,
|
|
2604
|
+
find: a,
|
|
2605
|
+
setIndex: (e) => {
|
|
2606
|
+
t.index = e;
|
|
2607
|
+
},
|
|
2608
|
+
getIndex: () => t.index,
|
|
2609
|
+
cleanup: r
|
|
2610
|
+
};
|
|
2611
|
+
}
|
|
2612
|
+
function On() {}
|
|
2613
|
+
var kn = Object.create(null);
|
|
2614
|
+
function An(e) {
|
|
2615
|
+
if (!kn[e]) {
|
|
2616
|
+
let t = fn(e);
|
|
2617
|
+
if (!t) return;
|
|
2618
|
+
kn[e] = {
|
|
2619
|
+
config: t,
|
|
2620
|
+
redundancy: Dn(t)
|
|
2621
|
+
};
|
|
2622
|
+
}
|
|
2623
|
+
return kn[e];
|
|
2624
|
+
}
|
|
2625
|
+
function jn(e, t, n) {
|
|
2626
|
+
let r, i;
|
|
2627
|
+
if (typeof e == "string") {
|
|
2628
|
+
let t = sn(e);
|
|
2629
|
+
if (!t) return n(void 0, 424), On;
|
|
2630
|
+
i = t.send;
|
|
2631
|
+
let a = An(e);
|
|
2632
|
+
a && (r = a.redundancy);
|
|
2633
|
+
} else {
|
|
2634
|
+
let t = cn(e);
|
|
2635
|
+
if (t) {
|
|
2636
|
+
r = Dn(t);
|
|
2637
|
+
let n = sn(e.resources ? e.resources[0] : "");
|
|
2638
|
+
n && (i = n.send);
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
return !r || !i ? (n(void 0, 424), On) : r.query(t, i, n)().abort;
|
|
2642
|
+
}
|
|
2643
|
+
function Mn() {}
|
|
2644
|
+
function Nn(e) {
|
|
2645
|
+
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
2646
|
+
e.iconsLoaderFlag = !1, bn(e);
|
|
2647
|
+
}));
|
|
2648
|
+
}
|
|
2649
|
+
function Pn(e) {
|
|
2650
|
+
let t = [], n = [];
|
|
2651
|
+
return e.forEach((e) => {
|
|
2652
|
+
(e.match(zt) ? t : n).push(e);
|
|
2653
|
+
}), {
|
|
2654
|
+
valid: t,
|
|
2655
|
+
invalid: n
|
|
2656
|
+
};
|
|
2657
|
+
}
|
|
2658
|
+
function Y(e, t, n) {
|
|
2659
|
+
function r() {
|
|
2660
|
+
let n = e.pendingIcons;
|
|
2661
|
+
t.forEach((t) => {
|
|
2662
|
+
n && n.delete(t), e.icons[t] || e.missing.add(t);
|
|
2663
|
+
});
|
|
2664
|
+
}
|
|
2665
|
+
if (n && typeof n == "object") try {
|
|
2666
|
+
if (!Lt(e, n).length) {
|
|
2667
|
+
r();
|
|
2668
|
+
return;
|
|
2669
|
+
}
|
|
2670
|
+
} catch (e) {
|
|
2671
|
+
console.error(e);
|
|
2672
|
+
}
|
|
2673
|
+
r(), Nn(e);
|
|
2674
|
+
}
|
|
2675
|
+
function Fn(e, t) {
|
|
2676
|
+
e instanceof Promise ? e.then((e) => {
|
|
2677
|
+
t(e);
|
|
2678
|
+
}).catch(() => {
|
|
2679
|
+
t(null);
|
|
2680
|
+
}) : t(e);
|
|
2681
|
+
}
|
|
2682
|
+
function In(e, t) {
|
|
2683
|
+
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
|
2684
|
+
e.iconsQueueFlag = !1;
|
|
2685
|
+
let { provider: t, prefix: n } = e, r = e.iconsToLoad;
|
|
2686
|
+
if (delete e.iconsToLoad, !r || !r.length) return;
|
|
2687
|
+
let i = e.loadIcon;
|
|
2688
|
+
if (e.loadIcons && (r.length > 1 || !i)) {
|
|
2689
|
+
Fn(e.loadIcons(r, n, t), (t) => {
|
|
2690
|
+
Y(e, r, t);
|
|
2691
|
+
});
|
|
2692
|
+
return;
|
|
2693
|
+
}
|
|
2694
|
+
if (i) {
|
|
2695
|
+
r.forEach((r) => {
|
|
2696
|
+
Fn(i(r, n, t), (t) => {
|
|
2697
|
+
Y(e, [r], t ? {
|
|
2698
|
+
prefix: n,
|
|
2699
|
+
icons: { [r]: t }
|
|
2700
|
+
} : null);
|
|
2701
|
+
});
|
|
2702
|
+
});
|
|
2703
|
+
return;
|
|
2704
|
+
}
|
|
2705
|
+
let { valid: a, invalid: o } = Pn(r);
|
|
2706
|
+
if (o.length && Y(e, o, null), !a.length) return;
|
|
2707
|
+
let s = n.match(zt) ? sn(t) : null;
|
|
2708
|
+
if (!s) {
|
|
2709
|
+
Y(e, a, null);
|
|
2710
|
+
return;
|
|
2711
|
+
}
|
|
2712
|
+
s.prepare(t, n, a).forEach((n) => {
|
|
2713
|
+
jn(t, n, (t) => {
|
|
2714
|
+
Y(e, n.icons, t);
|
|
2715
|
+
});
|
|
2716
|
+
});
|
|
2717
|
+
}));
|
|
2718
|
+
}
|
|
2719
|
+
var Ln = (e, t) => {
|
|
2720
|
+
let n = Cn(wn(e, !0, Bt()));
|
|
2721
|
+
if (!n.pending.length) {
|
|
2722
|
+
let e = !0;
|
|
2723
|
+
return t && setTimeout(() => {
|
|
2724
|
+
e && t(n.loaded, n.missing, n.pending, Mn);
|
|
2725
|
+
}), () => {
|
|
2726
|
+
e = !1;
|
|
2727
|
+
};
|
|
2728
|
+
}
|
|
2729
|
+
let r = Object.create(null), i = [], a, o;
|
|
2730
|
+
return n.pending.forEach((e) => {
|
|
2731
|
+
let { provider: t, prefix: n } = e;
|
|
2732
|
+
if (n === o && t === a) return;
|
|
2733
|
+
a = t, o = n, i.push(W(t, n));
|
|
2734
|
+
let s = r[t] || (r[t] = Object.create(null));
|
|
2735
|
+
s[n] || (s[n] = []);
|
|
2736
|
+
}), n.pending.forEach((e) => {
|
|
2737
|
+
let { provider: t, prefix: n, name: i } = e, a = W(t, n), o = a.pendingIcons ||= /* @__PURE__ */ new Set();
|
|
2738
|
+
o.has(i) || (o.add(i), r[t][n].push(i));
|
|
2739
|
+
}), i.forEach((e) => {
|
|
2740
|
+
let t = r[e.provider][e.prefix];
|
|
2741
|
+
t.length && In(e, t);
|
|
2742
|
+
}), t ? Sn(t, n, i) : Mn;
|
|
2743
|
+
};
|
|
2744
|
+
function Rn(e, t) {
|
|
2745
|
+
let n = { ...e };
|
|
2746
|
+
for (let e in t) {
|
|
2747
|
+
let r = t[e], i = typeof r;
|
|
2748
|
+
e in Wt ? (r === null || r && (i === "string" || i === "number")) && (n[e] = r) : i === typeof n[e] && (n[e] = e === "rotate" ? r % 4 : r);
|
|
2749
|
+
}
|
|
2750
|
+
return n;
|
|
2751
|
+
}
|
|
2752
|
+
var zn = /[\s,]+/;
|
|
2753
|
+
function Bn(e, t) {
|
|
2754
|
+
t.split(zn).forEach((t) => {
|
|
2755
|
+
switch (t.trim()) {
|
|
2756
|
+
case "horizontal":
|
|
2757
|
+
e.hFlip = !0;
|
|
2758
|
+
break;
|
|
2759
|
+
case "vertical":
|
|
2760
|
+
e.vFlip = !0;
|
|
2761
|
+
break;
|
|
2762
|
+
}
|
|
2763
|
+
});
|
|
2764
|
+
}
|
|
2765
|
+
function Vn(e, t = 0) {
|
|
2766
|
+
let n = e.replace(/^-?[0-9.]*/, "");
|
|
2767
|
+
function r(e) {
|
|
2768
|
+
for (; e < 0;) e += 4;
|
|
2769
|
+
return e % 4;
|
|
2770
|
+
}
|
|
2771
|
+
if (n === "") {
|
|
2772
|
+
let t = parseInt(e);
|
|
2773
|
+
return isNaN(t) ? 0 : r(t);
|
|
2774
|
+
} else if (n !== e) {
|
|
2775
|
+
let t = 0;
|
|
2776
|
+
switch (n) {
|
|
2777
|
+
case "%":
|
|
2778
|
+
t = 25;
|
|
2779
|
+
break;
|
|
2780
|
+
case "deg": t = 90;
|
|
2781
|
+
}
|
|
2782
|
+
if (t) {
|
|
2783
|
+
let i = parseFloat(e.slice(0, e.length - n.length));
|
|
2784
|
+
return isNaN(i) ? 0 : (i /= t, i % 1 == 0 ? r(i) : 0);
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
return t;
|
|
2788
|
+
}
|
|
2789
|
+
function Hn(e, t) {
|
|
2790
|
+
let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
|
|
2791
|
+
for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
|
|
2792
|
+
return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
|
|
2793
|
+
}
|
|
2794
|
+
function Un(e) {
|
|
2795
|
+
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
2796
|
+
}
|
|
2797
|
+
function Wn(e) {
|
|
2798
|
+
return "data:image/svg+xml," + Un(e);
|
|
2799
|
+
}
|
|
2800
|
+
function Gn(e) {
|
|
2801
|
+
return "url(\"" + Wn(e) + "\")";
|
|
2802
|
+
}
|
|
2803
|
+
var X;
|
|
2804
|
+
function Kn() {
|
|
2805
|
+
try {
|
|
2806
|
+
X = window.trustedTypes.createPolicy("iconify", { createHTML: (e) => e });
|
|
2807
|
+
} catch {
|
|
2808
|
+
X = null;
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
2811
|
+
function qn(e) {
|
|
2812
|
+
return X === void 0 && Kn(), X ? X.createHTML(e) : e;
|
|
2813
|
+
}
|
|
2814
|
+
var Jn = {
|
|
2815
|
+
...Gt,
|
|
2816
|
+
inline: !1
|
|
2817
|
+
}, Yn = {
|
|
2818
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2819
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
2820
|
+
"aria-hidden": !0,
|
|
2821
|
+
role: "img"
|
|
2822
|
+
}, Xn = { display: "inline-block" }, Zn = { backgroundColor: "currentColor" }, Qn = { backgroundColor: "transparent" }, $n = {
|
|
2823
|
+
Image: "var(--svg)",
|
|
2824
|
+
Repeat: "no-repeat",
|
|
2825
|
+
Size: "100% 100%"
|
|
2826
|
+
}, er = {
|
|
2827
|
+
WebkitMask: Zn,
|
|
2828
|
+
mask: Zn,
|
|
2829
|
+
background: Qn
|
|
2830
|
+
};
|
|
2831
|
+
for (let e in er) {
|
|
2832
|
+
let t = er[e];
|
|
2833
|
+
for (let n in $n) t[e + n] = $n[n];
|
|
2834
|
+
}
|
|
2835
|
+
var tr = {
|
|
2836
|
+
...Jn,
|
|
2837
|
+
inline: !0
|
|
2838
|
+
};
|
|
2839
|
+
function nr(e) {
|
|
2840
|
+
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
2841
|
+
}
|
|
2842
|
+
var rr = (e, t, n) => {
|
|
2843
|
+
let r = t.inline ? tr : Jn, i = Rn(r, t), a = t.mode || "svg", o = {}, s = t.style || {}, l = { ...a === "svg" ? Yn : {} };
|
|
2844
|
+
if (n) {
|
|
2845
|
+
let e = G(n, !1, !0);
|
|
2846
|
+
if (e) {
|
|
2847
|
+
let t = ["iconify"];
|
|
2848
|
+
for (let n of ["provider", "prefix"]) e[n] && t.push("iconify--" + e[n]);
|
|
2849
|
+
l.className = t.join(" ");
|
|
2850
|
+
}
|
|
2851
|
+
}
|
|
2852
|
+
for (let e in t) {
|
|
2853
|
+
let n = t[e];
|
|
2854
|
+
if (n !== void 0) switch (e) {
|
|
2855
|
+
case "icon":
|
|
2856
|
+
case "style":
|
|
2857
|
+
case "children":
|
|
2858
|
+
case "onLoad":
|
|
2859
|
+
case "mode":
|
|
2860
|
+
case "ssr":
|
|
2861
|
+
case "fallback": break;
|
|
2862
|
+
case "_ref":
|
|
2863
|
+
l.ref = n;
|
|
2864
|
+
break;
|
|
2865
|
+
case "className":
|
|
2866
|
+
l[e] = (l[e] ? l[e] + " " : "") + n;
|
|
2867
|
+
break;
|
|
2868
|
+
case "inline":
|
|
2869
|
+
case "hFlip":
|
|
2870
|
+
case "vFlip":
|
|
2871
|
+
i[e] = n === !0 || n === "true" || n === 1;
|
|
2872
|
+
break;
|
|
2873
|
+
case "flip":
|
|
2874
|
+
typeof n == "string" && Bn(i, n);
|
|
2875
|
+
break;
|
|
2876
|
+
case "color":
|
|
2877
|
+
o.color = n;
|
|
2878
|
+
break;
|
|
2879
|
+
case "rotate":
|
|
2880
|
+
typeof n == "string" ? i[e] = Vn(n) : typeof n == "number" && (i[e] = n);
|
|
2881
|
+
break;
|
|
2882
|
+
case "ariaHidden":
|
|
2883
|
+
case "aria-hidden":
|
|
2884
|
+
n !== !0 && n !== "true" && delete l["aria-hidden"];
|
|
2885
|
+
break;
|
|
2886
|
+
default: r[e] === void 0 && (l[e] = n);
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
let u = $t(e, i), d = u.attributes;
|
|
2890
|
+
if (i.inline && (o.verticalAlign = "-0.125em"), a === "svg") {
|
|
2891
|
+
l.style = {
|
|
2892
|
+
...o,
|
|
2893
|
+
...s
|
|
2894
|
+
}, Object.assign(l, d);
|
|
2895
|
+
let e = 0, n = t.id;
|
|
2896
|
+
return typeof n == "string" && (n = n.replace(/-/g, "_")), l.dangerouslySetInnerHTML = { __html: qn(rn(u.body, n ? () => n + "ID" + e++ : "iconifyReact")) }, c("svg", l);
|
|
2897
|
+
}
|
|
2898
|
+
let { body: f, width: p, height: m } = e, h = a === "mask" || (a === "bg" ? !1 : f.indexOf("currentColor") !== -1), g = Hn(f, {
|
|
2899
|
+
...d,
|
|
2900
|
+
width: p + "",
|
|
2901
|
+
height: m + ""
|
|
2902
|
+
});
|
|
2903
|
+
return l.style = {
|
|
2904
|
+
...o,
|
|
2905
|
+
"--svg": Gn(g),
|
|
2906
|
+
width: nr(d.width),
|
|
2907
|
+
height: nr(d.height),
|
|
2908
|
+
...Xn,
|
|
2909
|
+
...h ? Zn : Qn,
|
|
2910
|
+
...s
|
|
2911
|
+
}, c("span", l);
|
|
2912
|
+
};
|
|
2913
|
+
if (Bt(!0), on("", vn), typeof document < "u" && typeof window < "u") {
|
|
2914
|
+
let e = window;
|
|
2915
|
+
if (e.IconifyPreload !== void 0) {
|
|
2916
|
+
let t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
|
|
2917
|
+
typeof t == "object" && t && (t instanceof Array ? t : [t]).forEach((e) => {
|
|
2918
|
+
try {
|
|
2919
|
+
(typeof e != "object" || !e || e instanceof Array || typeof e.icons != "object" || typeof e.prefix != "string" || !Ut(e)) && console.error(n);
|
|
2920
|
+
} catch {
|
|
2921
|
+
console.error(n);
|
|
2922
|
+
}
|
|
2923
|
+
});
|
|
2924
|
+
}
|
|
2925
|
+
if (e.IconifyProviders !== void 0) {
|
|
2926
|
+
let t = e.IconifyProviders;
|
|
2927
|
+
if (typeof t == "object" && t) for (let e in t) {
|
|
2928
|
+
let n = "IconifyProviders[" + e + "] is invalid.";
|
|
2929
|
+
try {
|
|
2930
|
+
let r = t[e];
|
|
2931
|
+
if (typeof r != "object" || !r || r.resources === void 0) continue;
|
|
2932
|
+
dn(e, r) || console.error(n);
|
|
2933
|
+
} catch {
|
|
2934
|
+
console.error(n);
|
|
2935
|
+
}
|
|
2936
|
+
}
|
|
2937
|
+
}
|
|
2938
|
+
}
|
|
2939
|
+
function ir(e) {
|
|
2940
|
+
let [t, n] = m(!!e.ssr), [r, i] = m({});
|
|
2941
|
+
function a(t) {
|
|
2942
|
+
if (t) {
|
|
2943
|
+
let t = e.icon;
|
|
2944
|
+
if (typeof t == "object") return {
|
|
2945
|
+
name: "",
|
|
2946
|
+
data: t
|
|
2947
|
+
};
|
|
2948
|
+
let n = Vt(t);
|
|
2949
|
+
if (n) return {
|
|
2950
|
+
name: t,
|
|
2951
|
+
data: n
|
|
2952
|
+
};
|
|
2953
|
+
}
|
|
2954
|
+
return { name: "" };
|
|
2955
|
+
}
|
|
2956
|
+
let [o, s] = m(a(!!e.ssr));
|
|
2957
|
+
function l() {
|
|
2958
|
+
let e = r.callback;
|
|
2959
|
+
e && (e(), i({}));
|
|
2960
|
+
}
|
|
2961
|
+
function u(e) {
|
|
2962
|
+
if (JSON.stringify(o) !== JSON.stringify(e)) return l(), s(e), !0;
|
|
2963
|
+
}
|
|
2964
|
+
function d() {
|
|
2965
|
+
var t;
|
|
2966
|
+
let n = e.icon;
|
|
2967
|
+
if (typeof n == "object") {
|
|
2968
|
+
u({
|
|
2969
|
+
name: "",
|
|
2970
|
+
data: n
|
|
2971
|
+
});
|
|
2972
|
+
return;
|
|
2973
|
+
}
|
|
2974
|
+
let r = Vt(n);
|
|
2975
|
+
u({
|
|
2976
|
+
name: n,
|
|
2977
|
+
data: r
|
|
2978
|
+
}) && (r === void 0 ? i({ callback: Ln([n], d) }) : r && ((t = e.onLoad) == null || t.call(e, n)));
|
|
2979
|
+
}
|
|
2980
|
+
f(() => (n(!0), l), []), f(() => {
|
|
2981
|
+
t && d();
|
|
2982
|
+
}, [e.icon, t]);
|
|
2983
|
+
let { name: p, data: h } = o;
|
|
2984
|
+
return h ? rr({
|
|
2985
|
+
...Et,
|
|
2986
|
+
...h
|
|
2987
|
+
}, e, p) : e.children ? e.children : e.fallback ? e.fallback : c("span", {});
|
|
2988
|
+
}
|
|
2989
|
+
var ar = l((e, t) => ir({
|
|
2990
|
+
...e,
|
|
2991
|
+
_ref: t
|
|
2992
|
+
}));
|
|
2993
|
+
l((e, t) => ir({
|
|
2994
|
+
inline: !0,
|
|
2995
|
+
...e,
|
|
2996
|
+
_ref: t
|
|
2997
|
+
}));
|
|
2998
|
+
//#endregion
|
|
2999
|
+
//#region node_modules/@iconify-icons/heroicons-outline/x-mark.js
|
|
3000
|
+
var or = {
|
|
3001
|
+
width: 24,
|
|
3002
|
+
height: 24,
|
|
3003
|
+
hidden: !0,
|
|
3004
|
+
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\"/>"
|
|
3005
|
+
}, sr = {
|
|
3006
|
+
width: 24,
|
|
3007
|
+
height: 24,
|
|
3008
|
+
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 4v16m8-8H4\"/>"
|
|
3009
|
+
}, cr = {
|
|
3010
|
+
width: 24,
|
|
3011
|
+
height: 24,
|
|
3012
|
+
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.572L16.732 3.732Z\"/>"
|
|
3013
|
+
}, lr = {
|
|
3014
|
+
width: 24,
|
|
3015
|
+
height: 24,
|
|
3016
|
+
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\"/>"
|
|
3017
|
+
}, ur = {
|
|
3018
|
+
width: 24,
|
|
3019
|
+
height: 24,
|
|
3020
|
+
hidden: !0,
|
|
3021
|
+
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\"/>"
|
|
3022
|
+
}, dr = {
|
|
3023
|
+
width: 24,
|
|
3024
|
+
height: 24,
|
|
3025
|
+
hidden: !0,
|
|
3026
|
+
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\"/>"
|
|
3027
|
+
}, fr = {
|
|
3028
|
+
width: 24,
|
|
3029
|
+
height: 24,
|
|
3030
|
+
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\"/>"
|
|
3031
|
+
}, pr = {
|
|
3032
|
+
width: 24,
|
|
3033
|
+
height: 24,
|
|
3034
|
+
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.065Z\"/><path d=\"M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0Z\"/></g>"
|
|
3035
|
+
}, mr = {
|
|
3036
|
+
width: 24,
|
|
3037
|
+
height: 24,
|
|
3038
|
+
hidden: !0,
|
|
3039
|
+
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\"/>"
|
|
3040
|
+
}, hr = {
|
|
3041
|
+
width: 24,
|
|
3042
|
+
height: 24,
|
|
3043
|
+
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 12c0-.482-.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.684Zm0 9.316a3 3 0 1 0 5.368 2.684a3 3 0 0 0-5.368-2.684Z\"/>"
|
|
3044
|
+
}, gr = {
|
|
3045
|
+
width: 24,
|
|
3046
|
+
height: 24,
|
|
3047
|
+
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m5 15l7-7l7 7\"/>"
|
|
3048
|
+
}, _r = {
|
|
3049
|
+
width: 24,
|
|
3050
|
+
height: 24,
|
|
3051
|
+
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m19 9l-7 7l-7-7\"/>"
|
|
3052
|
+
}, vr = {
|
|
3053
|
+
width: 24,
|
|
3054
|
+
height: 24,
|
|
3055
|
+
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m15 19l-7-7l7-7\"/>"
|
|
3056
|
+
}, yr = {
|
|
3057
|
+
width: 24,
|
|
3058
|
+
height: 24,
|
|
3059
|
+
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m9 5l7 7l-7 7\"/>"
|
|
3060
|
+
}, br = {
|
|
3061
|
+
width: 24,
|
|
3062
|
+
height: 24,
|
|
3063
|
+
hidden: !0,
|
|
3064
|
+
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\"/>"
|
|
3065
|
+
}, xr = {
|
|
3066
|
+
width: 24,
|
|
3067
|
+
height: 24,
|
|
3068
|
+
hidden: !0,
|
|
3069
|
+
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\"/>"
|
|
3070
|
+
}, Sr = {
|
|
3071
|
+
width: 24,
|
|
3072
|
+
height: 24,
|
|
3073
|
+
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 0Z\"/>"
|
|
3074
|
+
}, Cr = {
|
|
3075
|
+
width: 24,
|
|
3076
|
+
height: 24,
|
|
3077
|
+
hidden: !0,
|
|
3078
|
+
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\"/>"
|
|
3079
|
+
}, wr = {
|
|
3080
|
+
width: 24,
|
|
3081
|
+
height: 24,
|
|
3082
|
+
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 0Z\"/>"
|
|
3083
|
+
}, Tr = {
|
|
3084
|
+
width: 24,
|
|
3085
|
+
height: 24,
|
|
3086
|
+
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.143L13 3Z\"/>"
|
|
3087
|
+
}, Er = {
|
|
3088
|
+
width: 24,
|
|
3089
|
+
height: 24,
|
|
3090
|
+
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 0Z\"/><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 7c-4.477 0-8.268-2.943-9.542-7Z\"/></g>"
|
|
3091
|
+
}, Dr = {
|
|
3092
|
+
width: 24,
|
|
3093
|
+
height: 24,
|
|
3094
|
+
hidden: !0,
|
|
3095
|
+
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\"/>"
|
|
3096
|
+
}, Or = {
|
|
3097
|
+
width: 24,
|
|
3098
|
+
height: 24,
|
|
3099
|
+
hidden: !0,
|
|
3100
|
+
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\"/>"
|
|
3101
|
+
}, kr = {
|
|
3102
|
+
width: 24,
|
|
3103
|
+
height: 24,
|
|
3104
|
+
hidden: !0,
|
|
3105
|
+
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\"/>"
|
|
3106
|
+
}, Ar = {
|
|
3107
|
+
width: 24,
|
|
3108
|
+
height: 24,
|
|
3109
|
+
hidden: !0,
|
|
3110
|
+
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\"/>"
|
|
3111
|
+
}, jr = {
|
|
3112
|
+
width: 24,
|
|
3113
|
+
height: 24,
|
|
3114
|
+
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\"/>"
|
|
3115
|
+
}, Mr = {
|
|
3116
|
+
width: 24,
|
|
3117
|
+
height: 24,
|
|
3118
|
+
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m14 5l7 7m0 0l-7 7m7-7H3\"/>"
|
|
3119
|
+
}, Nr = {
|
|
3120
|
+
width: 24,
|
|
3121
|
+
height: 24,
|
|
3122
|
+
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 0Z\"/>"
|
|
3123
|
+
}, Pr = {
|
|
3124
|
+
width: 24,
|
|
3125
|
+
height: 24,
|
|
3126
|
+
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.003 9.003 0 0 0 8.354-5.646Z\"/>"
|
|
3127
|
+
}, Fr = {
|
|
3128
|
+
width: 24,
|
|
3129
|
+
height: 24,
|
|
3130
|
+
hidden: !0,
|
|
3131
|
+
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\"/>"
|
|
3132
|
+
}, Ir = {
|
|
3133
|
+
width: 24,
|
|
3134
|
+
height: 24,
|
|
3135
|
+
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 2Z\"/>"
|
|
3136
|
+
}, Lr = {
|
|
3137
|
+
width: 24,
|
|
3138
|
+
height: 24,
|
|
3139
|
+
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 18c-1.746 0-3.332.477-4.5 1.253\"/>"
|
|
3140
|
+
}, Rr = {
|
|
3141
|
+
width: 24,
|
|
3142
|
+
height: 24,
|
|
3143
|
+
hidden: !0,
|
|
3144
|
+
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\"/>"
|
|
3145
|
+
}, zr = {
|
|
3146
|
+
width: 24,
|
|
3147
|
+
height: 24,
|
|
3148
|
+
hidden: !0,
|
|
3149
|
+
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\"/>"
|
|
3150
|
+
}, Br = {
|
|
3151
|
+
width: 24,
|
|
3152
|
+
height: 24,
|
|
3153
|
+
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-2V9Z\"/><path d=\"M15 13a3 3 0 1 1-6 0a3 3 0 0 1 6 0Z\"/></g>"
|
|
3154
|
+
}, Vr = {
|
|
3155
|
+
width: 20,
|
|
3156
|
+
height: 20,
|
|
3157
|
+
hidden: !0,
|
|
3158
|
+
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\"/>"
|
|
3159
|
+
}, Hr = {
|
|
3160
|
+
width: 20,
|
|
3161
|
+
height: 20,
|
|
3162
|
+
hidden: !0,
|
|
3163
|
+
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\"/>"
|
|
3164
|
+
}, Ur = {
|
|
3165
|
+
width: 20,
|
|
3166
|
+
height: 20,
|
|
3167
|
+
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-1v-5Zm6-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V7Zm6-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-1V4Z\"/>"
|
|
3168
|
+
}, Wr = {
|
|
3169
|
+
width: 20,
|
|
3170
|
+
height: 20,
|
|
3171
|
+
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-7A.997.997 0 0 1 2 10V5a3 3 0 0 1 3-3h5c.256 0 .512.098.707.293l7 7ZM5 6a1 1 0 1 0 0-2a1 1 0 0 0 0 2Z\" clip-rule=\"evenodd\"/>"
|
|
3172
|
+
}, Gr = {
|
|
3173
|
+
width: 20,
|
|
3174
|
+
height: 20,
|
|
3175
|
+
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-1Zm0 5a1 1 0 0 0 0 2h8a1 1 0 1 0 0-2H6Z\" clip-rule=\"evenodd\"/>"
|
|
3176
|
+
}, Kr = {
|
|
3177
|
+
width: 20,
|
|
3178
|
+
height: 20,
|
|
3179
|
+
hidden: !0,
|
|
3180
|
+
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\"/>"
|
|
3181
|
+
}, qr = {
|
|
3182
|
+
width: 20,
|
|
3183
|
+
height: 20,
|
|
3184
|
+
body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M10 18a8 8 0 1 0 0-16a8 8 0 0 0 0 16ZM9.555 7.168A1 1 0 0 0 8 8v4a1 1 0 0 0 1.555.832l3-2a1 1 0 0 0 0-1.664l-3-2Z\" clip-rule=\"evenodd\"/>"
|
|
3185
|
+
}, Jr = {
|
|
3186
|
+
width: 20,
|
|
3187
|
+
height: 20,
|
|
3188
|
+
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 0Z\" clip-rule=\"evenodd\"/>"
|
|
3189
|
+
}, Yr = {
|
|
3190
|
+
width: 20,
|
|
3191
|
+
height: 20,
|
|
3192
|
+
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.05A3.989 3.989 0 0 1 15 15a3.989 3.989 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.05A3.989 3.989 0 0 1 5 15a3.989 3.989 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-1Zm-5 8.274l-.818 2.552c.25.112.526.174.818.174c.292 0 .569-.062.818-.174L5 10.274Zm10 0l-.818 2.552c.25.112.526.174.818.174c.292 0 .569-.062.818-.174L15 10.274Z\" clip-rule=\"evenodd\"/>"
|
|
3193
|
+
}, Xr = {
|
|
3194
|
+
width: 20,
|
|
3195
|
+
height: 20,
|
|
3196
|
+
hidden: !0,
|
|
3197
|
+
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\"/>"
|
|
3198
|
+
}, Zr = {
|
|
3199
|
+
width: 20,
|
|
3200
|
+
height: 20,
|
|
3201
|
+
hidden: !0,
|
|
3202
|
+
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\"/>"
|
|
3203
|
+
}, Qr = {
|
|
3204
|
+
width: 20,
|
|
3205
|
+
height: 20,
|
|
3206
|
+
hidden: !0,
|
|
3207
|
+
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\"/>"
|
|
3208
|
+
}, $r = {
|
|
3209
|
+
width: 20,
|
|
3210
|
+
height: 20,
|
|
3211
|
+
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 2H7Zm2 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-.187a1.993 1.993 0 0 0-.114-.035l1.063-1.063A3 3 0 0 0 9 8.172Z\" clip-rule=\"evenodd\"/>"
|
|
3212
|
+
}, ei = {
|
|
3213
|
+
width: 20,
|
|
3214
|
+
height: 20,
|
|
3215
|
+
hidden: !0,
|
|
3216
|
+
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\"/>"
|
|
3217
|
+
}, ti = {
|
|
3218
|
+
width: 20,
|
|
3219
|
+
height: 20,
|
|
3220
|
+
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.853ZM4.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-.088Z\"/><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-.789A9.964 9.964 0 0 0 5 11Zm8.921 2.012a1 1 0 0 1 .831 1.145a19.86 19.86 0 0 1-.545 2.436a1 1 0 1 1-1.92-.558c.207-.713.371-1.445.49-2.192a1 1 0 0 1 1.144-.83Z\"/><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.952 13.952 0 0 0 9 11a1 1 0 0 1 1-1Z\"/></g>"
|
|
3221
|
+
}, ni = {
|
|
3222
|
+
width: 20,
|
|
3223
|
+
height: 20,
|
|
3224
|
+
hidden: !0,
|
|
3225
|
+
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\"/>"
|
|
3226
|
+
}, ri = {
|
|
3227
|
+
width: 20,
|
|
3228
|
+
height: 20,
|
|
3229
|
+
body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M10 18a8 8 0 1 0 0-16a8 8 0 0 0 0 16Zm1-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-2V7Z\" clip-rule=\"evenodd\"/>"
|
|
3230
|
+
}, ii = {
|
|
3231
|
+
width: 20,
|
|
3232
|
+
height: 20,
|
|
3233
|
+
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-.727ZM9.03 8l-1 4h2.938l1-4H9.031Z\" clip-rule=\"evenodd\"/>"
|
|
3234
|
+
}, ai = {
|
|
3235
|
+
width: 24,
|
|
3236
|
+
height: 24,
|
|
3237
|
+
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-1zm6-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-1zm6-4a1 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\"/>"
|
|
3238
|
+
}, oi = {
|
|
3239
|
+
width: 24,
|
|
3240
|
+
height: 24,
|
|
3241
|
+
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 19h16M4 15l4-6l4 2l4-5l4 4\"/>"
|
|
3242
|
+
}, si = {
|
|
3243
|
+
width: 24,
|
|
3244
|
+
height: 24,
|
|
3245
|
+
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m4 19l4-6l4 2l4-5l4 4v5H4m0-7l3-4l4 2l5-6l4 4\"/>"
|
|
3246
|
+
}, ci = {
|
|
3247
|
+
width: 24,
|
|
3248
|
+
height: 24,
|
|
3249
|
+
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-1V3.5\"/></g>"
|
|
3250
|
+
}, li = {
|
|
3251
|
+
width: 24,
|
|
3252
|
+
height: 24,
|
|
3253
|
+
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>"
|
|
3254
|
+
}, ui = {
|
|
3255
|
+
width: 24,
|
|
3256
|
+
height: 24,
|
|
3257
|
+
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\"/>"
|
|
3258
|
+
}, di = {
|
|
3259
|
+
width: 24,
|
|
3260
|
+
height: 24,
|
|
3261
|
+
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>"
|
|
3262
|
+
}, fi = {
|
|
3263
|
+
width: 24,
|
|
3264
|
+
height: 24,
|
|
3265
|
+
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>"
|
|
3266
|
+
}, pi = {
|
|
3267
|
+
width: 24,
|
|
3268
|
+
height: 24,
|
|
3269
|
+
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\"/>"
|
|
3270
|
+
}, mi = {
|
|
3271
|
+
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>",
|
|
3272
|
+
width: 24,
|
|
3273
|
+
height: 24
|
|
3274
|
+
}, hi = {
|
|
3275
|
+
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>",
|
|
3276
|
+
width: 24,
|
|
3277
|
+
height: 24
|
|
3278
|
+
}, gi = {
|
|
3279
|
+
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>",
|
|
3280
|
+
width: 24,
|
|
3281
|
+
height: 24
|
|
3282
|
+
}, _i = {
|
|
3283
|
+
width: 24,
|
|
3284
|
+
height: 24,
|
|
3285
|
+
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>"
|
|
3286
|
+
}, vi = {
|
|
3287
|
+
width: 24,
|
|
3288
|
+
height: 24,
|
|
3289
|
+
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-2V5zm0 5h18M10 3v18\"/>"
|
|
3290
|
+
}, yi = {
|
|
3291
|
+
width: 24,
|
|
3292
|
+
height: 24,
|
|
3293
|
+
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>"
|
|
3294
|
+
}, bi = {
|
|
3295
|
+
width: 24,
|
|
3296
|
+
height: 24,
|
|
3297
|
+
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\"/>"
|
|
3298
|
+
}, xi = {
|
|
3299
|
+
width: 24,
|
|
3300
|
+
height: 24,
|
|
3301
|
+
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>"
|
|
3302
|
+
}, Si = {
|
|
3303
|
+
width: 24,
|
|
3304
|
+
height: 24,
|
|
3305
|
+
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\"/>"
|
|
3306
|
+
}, Ci = {
|
|
3307
|
+
width: 24,
|
|
3308
|
+
height: 24,
|
|
3309
|
+
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 2zM9 9h1m-1 4h6m-6 4h6\"/></g>"
|
|
3310
|
+
}, wi = {
|
|
3311
|
+
width: 24,
|
|
3312
|
+
height: 24,
|
|
3313
|
+
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>"
|
|
3314
|
+
}, Ti = {
|
|
3315
|
+
close: {
|
|
3316
|
+
icon: or,
|
|
3317
|
+
category: "action"
|
|
3318
|
+
},
|
|
3319
|
+
add: {
|
|
3320
|
+
icon: sr,
|
|
3321
|
+
category: "action"
|
|
3322
|
+
},
|
|
3323
|
+
edit: {
|
|
3324
|
+
icon: cr,
|
|
3325
|
+
category: "action"
|
|
3326
|
+
},
|
|
3327
|
+
delete: {
|
|
3328
|
+
icon: lr,
|
|
3329
|
+
category: "action"
|
|
3330
|
+
},
|
|
3331
|
+
refresh: {
|
|
3332
|
+
icon: ur,
|
|
3333
|
+
category: "action"
|
|
3334
|
+
},
|
|
3335
|
+
copy: {
|
|
3336
|
+
icon: dr,
|
|
3337
|
+
category: "action"
|
|
3338
|
+
},
|
|
3339
|
+
duplicate: {
|
|
3340
|
+
icon: fr,
|
|
3341
|
+
category: "action"
|
|
3342
|
+
},
|
|
3343
|
+
settings: {
|
|
3344
|
+
icon: pr,
|
|
3345
|
+
category: "action"
|
|
3346
|
+
},
|
|
3347
|
+
filter: {
|
|
3348
|
+
icon: mr,
|
|
3349
|
+
category: "action"
|
|
3350
|
+
},
|
|
3351
|
+
share: {
|
|
3352
|
+
icon: hr,
|
|
3353
|
+
category: "action"
|
|
3354
|
+
},
|
|
3355
|
+
expand: {
|
|
3356
|
+
icon: _r,
|
|
3357
|
+
category: "action"
|
|
3358
|
+
},
|
|
3359
|
+
collapse: {
|
|
3360
|
+
icon: gr,
|
|
3361
|
+
category: "action"
|
|
3362
|
+
},
|
|
3363
|
+
search: {
|
|
3364
|
+
icon: br,
|
|
3365
|
+
category: "action"
|
|
3366
|
+
},
|
|
3367
|
+
menu: {
|
|
3368
|
+
icon: xr,
|
|
3369
|
+
category: "action"
|
|
3370
|
+
},
|
|
3371
|
+
run: {
|
|
3372
|
+
icon: qr,
|
|
3373
|
+
category: "action"
|
|
3374
|
+
},
|
|
3375
|
+
check: {
|
|
3376
|
+
icon: Jr,
|
|
3377
|
+
category: "action"
|
|
3378
|
+
},
|
|
3379
|
+
link: {
|
|
3380
|
+
icon: jr,
|
|
3381
|
+
category: "action"
|
|
3382
|
+
},
|
|
3383
|
+
eye: {
|
|
3384
|
+
icon: Er,
|
|
3385
|
+
category: "action"
|
|
3386
|
+
},
|
|
3387
|
+
eyeOff: {
|
|
3388
|
+
icon: Dr,
|
|
3389
|
+
category: "action"
|
|
3390
|
+
},
|
|
3391
|
+
adjustments: {
|
|
3392
|
+
icon: Or,
|
|
3393
|
+
category: "action"
|
|
3394
|
+
},
|
|
3395
|
+
desktop: {
|
|
3396
|
+
icon: kr,
|
|
3397
|
+
category: "action"
|
|
3398
|
+
},
|
|
3399
|
+
table: {
|
|
3400
|
+
icon: Ar,
|
|
3401
|
+
category: "action"
|
|
3402
|
+
},
|
|
3403
|
+
sun: {
|
|
3404
|
+
icon: Nr,
|
|
3405
|
+
category: "action"
|
|
3406
|
+
},
|
|
3407
|
+
moon: {
|
|
3408
|
+
icon: Pr,
|
|
3409
|
+
category: "action"
|
|
3410
|
+
},
|
|
3411
|
+
ellipsisHorizontal: {
|
|
3412
|
+
icon: Fr,
|
|
3413
|
+
category: "action"
|
|
3414
|
+
},
|
|
3415
|
+
documentText: {
|
|
3416
|
+
icon: Ir,
|
|
3417
|
+
category: "action"
|
|
3418
|
+
},
|
|
3419
|
+
bookOpen: {
|
|
3420
|
+
icon: Lr,
|
|
3421
|
+
category: "action"
|
|
3422
|
+
},
|
|
3423
|
+
codeBracket: {
|
|
3424
|
+
icon: Rr,
|
|
3425
|
+
category: "action"
|
|
3426
|
+
},
|
|
3427
|
+
swatch: {
|
|
3428
|
+
icon: zr,
|
|
3429
|
+
category: "action"
|
|
3430
|
+
},
|
|
3431
|
+
camera: {
|
|
3432
|
+
icon: Br,
|
|
3433
|
+
category: "action"
|
|
3434
|
+
},
|
|
3435
|
+
thumbUp: {
|
|
3436
|
+
icon: Vr,
|
|
3437
|
+
category: "action"
|
|
3438
|
+
},
|
|
3439
|
+
thumbDown: {
|
|
3440
|
+
icon: Hr,
|
|
3441
|
+
category: "action"
|
|
3442
|
+
},
|
|
3443
|
+
schemaGraph: {
|
|
3444
|
+
icon: {
|
|
3445
|
+
width: 24,
|
|
3446
|
+
height: 24,
|
|
3447
|
+
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m9 20l-5.447-2.724A1 1 0 0 1 3 16.382V5.618a1 1 0 0 1 1.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0 0 21 18.382V7.618a1 1 0 0 0-.553-.894L15 4m0 13V4m0 0L9 7\"/>"
|
|
3448
|
+
},
|
|
3449
|
+
category: "action"
|
|
3450
|
+
},
|
|
3451
|
+
measure: {
|
|
3452
|
+
icon: Ur,
|
|
3453
|
+
category: "field"
|
|
3454
|
+
},
|
|
3455
|
+
dimension: {
|
|
3456
|
+
icon: Wr,
|
|
3457
|
+
category: "field"
|
|
3458
|
+
},
|
|
3459
|
+
timeDimension: {
|
|
3460
|
+
icon: Gr,
|
|
3461
|
+
category: "field"
|
|
3462
|
+
},
|
|
3463
|
+
segment: {
|
|
3464
|
+
icon: Kr,
|
|
3465
|
+
category: "field"
|
|
3466
|
+
},
|
|
3467
|
+
chartBar: {
|
|
3468
|
+
icon: ai,
|
|
3469
|
+
category: "chart"
|
|
3470
|
+
},
|
|
3471
|
+
chartLine: {
|
|
3472
|
+
icon: oi,
|
|
3473
|
+
category: "chart"
|
|
3474
|
+
},
|
|
3475
|
+
chartArea: {
|
|
3476
|
+
icon: si,
|
|
3477
|
+
category: "chart"
|
|
3478
|
+
},
|
|
3479
|
+
chartPie: {
|
|
3480
|
+
icon: ci,
|
|
3481
|
+
category: "chart"
|
|
3482
|
+
},
|
|
3483
|
+
chartScatter: {
|
|
3484
|
+
icon: li,
|
|
3485
|
+
category: "chart"
|
|
3486
|
+
},
|
|
3487
|
+
chartBubble: {
|
|
3488
|
+
icon: ui,
|
|
3489
|
+
category: "chart"
|
|
3490
|
+
},
|
|
3491
|
+
chartRadar: {
|
|
3492
|
+
icon: di,
|
|
3493
|
+
category: "chart"
|
|
3494
|
+
},
|
|
3495
|
+
chartRadialBar: {
|
|
3496
|
+
icon: fi,
|
|
3497
|
+
category: "chart"
|
|
3498
|
+
},
|
|
3499
|
+
chartTreemap: {
|
|
3500
|
+
icon: pi,
|
|
3501
|
+
category: "chart"
|
|
3502
|
+
},
|
|
3503
|
+
chartTable: {
|
|
3504
|
+
icon: vi,
|
|
3505
|
+
category: "chart"
|
|
3506
|
+
},
|
|
3507
|
+
chartActivityGrid: {
|
|
3508
|
+
icon: yi,
|
|
3509
|
+
category: "chart"
|
|
3510
|
+
},
|
|
3511
|
+
chartKpiNumber: {
|
|
3512
|
+
icon: bi,
|
|
3513
|
+
category: "chart"
|
|
3514
|
+
},
|
|
3515
|
+
chartKpiDelta: {
|
|
3516
|
+
icon: xi,
|
|
3517
|
+
category: "chart"
|
|
3518
|
+
},
|
|
3519
|
+
chartKpiText: {
|
|
3520
|
+
icon: Si,
|
|
3521
|
+
category: "chart"
|
|
3522
|
+
},
|
|
3523
|
+
chartMarkdown: {
|
|
3524
|
+
icon: Ci,
|
|
3525
|
+
category: "chart"
|
|
3526
|
+
},
|
|
3527
|
+
chartFunnel: {
|
|
3528
|
+
icon: hi,
|
|
3529
|
+
category: "chart"
|
|
3530
|
+
},
|
|
3531
|
+
chartSankey: {
|
|
3532
|
+
icon: mi,
|
|
3533
|
+
category: "chart"
|
|
3534
|
+
},
|
|
3535
|
+
chartSunburst: {
|
|
3536
|
+
icon: _i,
|
|
3537
|
+
category: "chart"
|
|
3538
|
+
},
|
|
3539
|
+
chartHeatmap: {
|
|
3540
|
+
icon: {
|
|
3541
|
+
width: 24,
|
|
3542
|
+
height: 24,
|
|
3543
|
+
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M16 6a2 2 0 1 0 4 0a2 2 0 1 0-4 0M4 12a2 2 0 1 0 4 0a2 2 0 1 0-4 0m0 6a2 2 0 1 0 4 0a2 2 0 1 0-4 0m12 0a2 2 0 1 0 4 0a2 2 0 1 0-4 0m-8 0h8m2 2v1m0-18v1M6 20v1m0-11V3m6 0v18m6-13v8M8 12h13m0-6h-1m-4 0H3m0 6h1m16 6h1M3 18h1m2-4v2\"/>"
|
|
3544
|
+
},
|
|
3545
|
+
category: "chart"
|
|
3546
|
+
},
|
|
3547
|
+
chartRetention: {
|
|
3548
|
+
icon: gi,
|
|
3549
|
+
category: "chart"
|
|
3550
|
+
},
|
|
3551
|
+
measureCount: {
|
|
3552
|
+
icon: ei,
|
|
3553
|
+
category: "measure"
|
|
3554
|
+
},
|
|
3555
|
+
measureCountDistinct: {
|
|
3556
|
+
icon: ti,
|
|
3557
|
+
category: "measure"
|
|
3558
|
+
},
|
|
3559
|
+
measureCountDistinctApprox: {
|
|
3560
|
+
icon: ni,
|
|
3561
|
+
category: "measure"
|
|
3562
|
+
},
|
|
3563
|
+
measureSum: {
|
|
3564
|
+
icon: ri,
|
|
3565
|
+
category: "measure"
|
|
3566
|
+
},
|
|
3567
|
+
measureAvg: {
|
|
3568
|
+
icon: Yr,
|
|
3569
|
+
category: "measure"
|
|
3570
|
+
},
|
|
3571
|
+
measureMin: {
|
|
3572
|
+
icon: Xr,
|
|
3573
|
+
category: "measure"
|
|
3574
|
+
},
|
|
3575
|
+
measureMax: {
|
|
3576
|
+
icon: Zr,
|
|
3577
|
+
category: "measure"
|
|
3578
|
+
},
|
|
3579
|
+
measureRunningTotal: {
|
|
3580
|
+
icon: Qr,
|
|
3581
|
+
category: "measure"
|
|
3582
|
+
},
|
|
3583
|
+
measureCalculated: {
|
|
3584
|
+
icon: $r,
|
|
3585
|
+
category: "measure"
|
|
3586
|
+
},
|
|
3587
|
+
measureNumber: {
|
|
3588
|
+
icon: ii,
|
|
3589
|
+
category: "measure"
|
|
3590
|
+
},
|
|
3591
|
+
success: {
|
|
3592
|
+
icon: Sr,
|
|
3593
|
+
category: "state"
|
|
3594
|
+
},
|
|
3595
|
+
warning: {
|
|
3596
|
+
icon: Cr,
|
|
3597
|
+
category: "state"
|
|
3598
|
+
},
|
|
3599
|
+
error: {
|
|
3600
|
+
icon: wr,
|
|
3601
|
+
category: "state"
|
|
3602
|
+
},
|
|
3603
|
+
info: {
|
|
3604
|
+
icon: wi,
|
|
3605
|
+
category: "state"
|
|
3606
|
+
},
|
|
3607
|
+
loading: {
|
|
3608
|
+
icon: ur,
|
|
3609
|
+
category: "state"
|
|
3610
|
+
},
|
|
3611
|
+
sparkles: {
|
|
3612
|
+
icon: Tr,
|
|
3613
|
+
category: "state"
|
|
3614
|
+
},
|
|
3615
|
+
chevronUp: {
|
|
3616
|
+
icon: gr,
|
|
3617
|
+
category: "navigation"
|
|
3618
|
+
},
|
|
3619
|
+
chevronDown: {
|
|
3620
|
+
icon: _r,
|
|
3621
|
+
category: "navigation"
|
|
3622
|
+
},
|
|
3623
|
+
chevronLeft: {
|
|
3624
|
+
icon: vr,
|
|
3625
|
+
category: "navigation"
|
|
3626
|
+
},
|
|
3627
|
+
chevronRight: {
|
|
3628
|
+
icon: yr,
|
|
3629
|
+
category: "navigation"
|
|
3630
|
+
},
|
|
3631
|
+
chevronUpDown: {
|
|
3632
|
+
icon: {
|
|
3633
|
+
width: 24,
|
|
3634
|
+
height: 24,
|
|
3635
|
+
body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m8 9l4-4l4 4m0 6l-4 4l-4-4\"/>"
|
|
3636
|
+
},
|
|
3637
|
+
category: "navigation"
|
|
3638
|
+
},
|
|
3639
|
+
arrowUp: {
|
|
3640
|
+
icon: Zr,
|
|
3641
|
+
category: "navigation"
|
|
3642
|
+
},
|
|
3643
|
+
arrowDown: {
|
|
3644
|
+
icon: Xr,
|
|
3645
|
+
category: "navigation"
|
|
3646
|
+
},
|
|
3647
|
+
arrowRight: {
|
|
3648
|
+
icon: Mr,
|
|
3649
|
+
category: "navigation"
|
|
3650
|
+
},
|
|
3651
|
+
arrowPath: {
|
|
3652
|
+
icon: ur,
|
|
3653
|
+
category: "navigation"
|
|
3654
|
+
}
|
|
3655
|
+
}, Z = { ...Ti }, Q = /* @__PURE__ */ new Map();
|
|
3656
|
+
function Ei() {
|
|
3657
|
+
return Z;
|
|
3658
|
+
}
|
|
3659
|
+
function $(e) {
|
|
3660
|
+
let t = Q.get(e);
|
|
3661
|
+
if (t) return t;
|
|
3662
|
+
let n = Z[e];
|
|
3663
|
+
if (!n) return console.warn(`Icon "${e}" not found in registry, using fallback`), ({ className: e, ...t }) => /* @__PURE__ */ h(ar, {
|
|
3664
|
+
icon: Z.info.icon,
|
|
3665
|
+
className: e,
|
|
3666
|
+
...t
|
|
3667
|
+
});
|
|
3668
|
+
let r = ({ className: e, ...t }) => /* @__PURE__ */ h(ar, {
|
|
3669
|
+
icon: n.icon,
|
|
3670
|
+
className: e,
|
|
3671
|
+
...t
|
|
3672
|
+
});
|
|
3673
|
+
return Q.set(e, r), r;
|
|
3674
|
+
}
|
|
3675
|
+
function Di(e) {
|
|
3676
|
+
return Z[e]?.icon ?? Z.info.icon;
|
|
3677
|
+
}
|
|
3678
|
+
function Oi(e, t) {
|
|
3679
|
+
Z[e] && (Z[e] = {
|
|
3680
|
+
...Z[e],
|
|
3681
|
+
icon: t
|
|
3682
|
+
}, Q.delete(e));
|
|
3683
|
+
}
|
|
3684
|
+
function ki(e) {
|
|
3685
|
+
for (let [t, n] of Object.entries(e)) if (n && t in Z) {
|
|
3686
|
+
let e = t;
|
|
3687
|
+
if ("body" in n) Z[e] = {
|
|
3688
|
+
...Z[e],
|
|
3689
|
+
icon: n
|
|
3690
|
+
};
|
|
3691
|
+
else {
|
|
3692
|
+
let t = n;
|
|
3693
|
+
Z[e] = {
|
|
3694
|
+
...Z[e],
|
|
3695
|
+
...t,
|
|
3696
|
+
icon: t.icon ?? Z[e].icon
|
|
3697
|
+
};
|
|
3698
|
+
}
|
|
3699
|
+
Q.delete(e);
|
|
3700
|
+
}
|
|
3701
|
+
}
|
|
3702
|
+
function Ai() {
|
|
3703
|
+
Z = { ...Ti }, Q.clear();
|
|
3704
|
+
}
|
|
3705
|
+
function ji(e) {
|
|
3706
|
+
let t = {};
|
|
3707
|
+
for (let [n, r] of Object.entries(Z)) r.category === e && (t[n] = $(n));
|
|
3708
|
+
return t;
|
|
3709
|
+
}
|
|
3710
|
+
function Mi(e) {
|
|
3711
|
+
return $({
|
|
3712
|
+
count: "measureCount",
|
|
3713
|
+
countDistinct: "measureCountDistinct",
|
|
3714
|
+
countDistinctApprox: "measureCountDistinctApprox",
|
|
3715
|
+
sum: "measureSum",
|
|
3716
|
+
avg: "measureAvg",
|
|
3717
|
+
min: "measureMin",
|
|
3718
|
+
max: "measureMax",
|
|
3719
|
+
runningTotal: "measureRunningTotal",
|
|
3720
|
+
calculated: "measureCalculated",
|
|
3721
|
+
number: "measureNumber"
|
|
3722
|
+
}[e || ""] || "measureCount");
|
|
3723
|
+
}
|
|
3724
|
+
function Ni(e) {
|
|
3725
|
+
return $({
|
|
3726
|
+
bar: "chartBar",
|
|
3727
|
+
line: "chartLine",
|
|
3728
|
+
area: "chartArea",
|
|
3729
|
+
pie: "chartPie",
|
|
3730
|
+
scatter: "chartScatter",
|
|
3731
|
+
bubble: "chartBubble",
|
|
3732
|
+
radar: "chartRadar",
|
|
3733
|
+
radialBar: "chartRadialBar",
|
|
3734
|
+
treemap: "chartTreemap",
|
|
3735
|
+
table: "chartTable",
|
|
3736
|
+
activityGrid: "chartActivityGrid",
|
|
3737
|
+
kpiNumber: "chartKpiNumber",
|
|
3738
|
+
kpiDelta: "chartKpiDelta",
|
|
3739
|
+
kpiText: "chartKpiText",
|
|
3740
|
+
markdown: "chartMarkdown",
|
|
3741
|
+
funnel: "chartFunnel",
|
|
3742
|
+
sankey: "chartSankey",
|
|
3743
|
+
sunburst: "chartSunburst",
|
|
3744
|
+
heatmap: "chartHeatmap"
|
|
3745
|
+
}[e] || "chartBar");
|
|
3746
|
+
}
|
|
3747
|
+
function Pi(e) {
|
|
3748
|
+
return $({
|
|
3749
|
+
measure: "measure",
|
|
3750
|
+
dimension: "dimension",
|
|
3751
|
+
timeDimension: "timeDimension",
|
|
3752
|
+
time: "timeDimension",
|
|
3753
|
+
segment: "segment"
|
|
3754
|
+
}[e] || "dimension");
|
|
3755
|
+
}
|
|
3756
|
+
//#endregion
|
|
3757
|
+
//#region src/client/providers/CubeMetaProvider.tsx
|
|
3758
|
+
function Fi({ children: e }) {
|
|
3759
|
+
let { meta: t, labelMap: r, isLoading: i, error: a, refetch: o, getFieldLabel: s } = ut(), c = a ? a instanceof Error ? a.message : String(a) : null, l = u(() => {
|
|
3760
|
+
o();
|
|
3761
|
+
}, [o]), d = u((e) => s(e), [s]), f = p(() => ({
|
|
3762
|
+
meta: t,
|
|
3763
|
+
labelMap: r,
|
|
3764
|
+
metaLoading: i,
|
|
3765
|
+
metaError: c,
|
|
3766
|
+
getFieldLabel: d,
|
|
3767
|
+
refetchMeta: l
|
|
3768
|
+
}), [
|
|
3769
|
+
t,
|
|
3770
|
+
r,
|
|
3771
|
+
i,
|
|
3772
|
+
c,
|
|
3773
|
+
d,
|
|
3774
|
+
l
|
|
3775
|
+
]);
|
|
3776
|
+
return /* @__PURE__ */ h(n.Provider, {
|
|
3777
|
+
value: f,
|
|
3778
|
+
children: e
|
|
3779
|
+
});
|
|
3780
|
+
}
|
|
3781
|
+
//#endregion
|
|
3782
|
+
//#region src/client/providers/CubeProvider.tsx
|
|
3783
|
+
var Ii = { apiUrl: "/cubejs-api/v1" }, Li = () => new Ve({ defaultOptions: { queries: {
|
|
3784
|
+
staleTime: 300 * 1e3,
|
|
3785
|
+
gcTime: 900 * 1e3,
|
|
3786
|
+
retry: 3,
|
|
3787
|
+
refetchOnWindowFocus: !1
|
|
3788
|
+
} } });
|
|
3789
|
+
Li();
|
|
3790
|
+
function Ri({ cubeApi: e, apiOptions: t, token: n, options: r, features: i, dashboardModes: a, enableBatching: o, batchDelayMs: s, queryClient: c, children: l }) {
|
|
3791
|
+
let [u] = m(() => Li());
|
|
3792
|
+
return /* @__PURE__ */ h(Ue, {
|
|
3793
|
+
client: c ?? u,
|
|
3794
|
+
children: /* @__PURE__ */ h(st, {
|
|
3795
|
+
apiOptions: t || Ii,
|
|
3796
|
+
token: n,
|
|
3797
|
+
options: r,
|
|
3798
|
+
enableBatching: o,
|
|
3799
|
+
batchDelayMs: s,
|
|
3800
|
+
children: /* @__PURE__ */ h(Fi, { children: /* @__PURE__ */ h(xt, {
|
|
3801
|
+
features: i,
|
|
3802
|
+
dashboardModes: a,
|
|
3803
|
+
children: l
|
|
3804
|
+
}) })
|
|
3805
|
+
})
|
|
3806
|
+
});
|
|
3807
|
+
}
|
|
3808
|
+
function zi() {
|
|
3809
|
+
let e = z(), n = t(), r = Ct();
|
|
3810
|
+
return p(() => ({
|
|
3811
|
+
...e,
|
|
3812
|
+
...n,
|
|
3813
|
+
features: r.features,
|
|
3814
|
+
dashboardModes: r.dashboardModes
|
|
3815
|
+
}), [
|
|
3816
|
+
e,
|
|
3817
|
+
n,
|
|
3818
|
+
r
|
|
3819
|
+
]);
|
|
3820
|
+
}
|
|
3821
|
+
//#endregion
|
|
3822
|
+
//#region src/client/utils/pivotUtils.ts
|
|
3823
|
+
function Bi(e) {
|
|
3824
|
+
if (!e) return [];
|
|
3825
|
+
let t = [];
|
|
3826
|
+
return e.dimensions && t.push(...e.dimensions), e.timeDimensions && e.timeDimensions.forEach((e) => {
|
|
3827
|
+
t.includes(e.dimension) || t.push(e.dimension);
|
|
3828
|
+
}), e.measures && t.push(...e.measures), t;
|
|
3829
|
+
}
|
|
3830
|
+
function Vi(e, t) {
|
|
3831
|
+
if (!e?.timeDimensions?.length) return null;
|
|
3832
|
+
let n = e.timeDimensions.find((e) => e.granularity);
|
|
3833
|
+
if (!n?.granularity || !e.measures?.length) return null;
|
|
3834
|
+
let r, i;
|
|
3835
|
+
if (t && t.length > 0) {
|
|
3836
|
+
r = t.filter((t) => !(t === n.dimension || e.measures?.includes(t)));
|
|
3837
|
+
let a = t.filter((t) => e.measures?.includes(t));
|
|
3838
|
+
i = a.length > 0 ? a : e.measures;
|
|
3839
|
+
} else r = e.dimensions || [], i = e.measures;
|
|
3840
|
+
return i.length === 0 ? null : {
|
|
3841
|
+
timeDimension: n.dimension,
|
|
3842
|
+
granularity: n.granularity,
|
|
3843
|
+
dimensions: r,
|
|
3844
|
+
measures: i
|
|
3845
|
+
};
|
|
3846
|
+
}
|
|
3847
|
+
function Hi(e, t, n) {
|
|
3848
|
+
let i = /* @__PURE__ */ new Set();
|
|
3849
|
+
return e.forEach((e) => {
|
|
3850
|
+
let a = e[t];
|
|
3851
|
+
if (a != null) {
|
|
3852
|
+
let e = r(a, n);
|
|
3853
|
+
i.add(e);
|
|
3854
|
+
}
|
|
3855
|
+
}), Array.from(i).sort();
|
|
3856
|
+
}
|
|
3857
|
+
function Ui(e, t, n) {
|
|
3858
|
+
let r = [];
|
|
3859
|
+
return e.measures.length > 1 && r.push({
|
|
3860
|
+
key: "__measure__",
|
|
3861
|
+
label: "Measure",
|
|
3862
|
+
isTimeColumn: !1,
|
|
3863
|
+
isMeasureColumn: !0
|
|
3864
|
+
}), e.dimensions.forEach((e) => {
|
|
3865
|
+
r.push({
|
|
3866
|
+
key: e,
|
|
3867
|
+
label: n(e),
|
|
3868
|
+
isTimeColumn: !1
|
|
3869
|
+
});
|
|
3870
|
+
}), t.forEach((e) => {
|
|
3871
|
+
r.push({
|
|
3872
|
+
key: e,
|
|
3873
|
+
label: e,
|
|
3874
|
+
isTimeColumn: !0
|
|
3875
|
+
});
|
|
3876
|
+
}), r;
|
|
3877
|
+
}
|
|
3878
|
+
function Wi(e, t) {
|
|
3879
|
+
let n = /* @__PURE__ */ new Map();
|
|
3880
|
+
return e.forEach((e) => {
|
|
3881
|
+
let i = t.dimensions.length > 0 ? t.dimensions.map((t) => String(e[t] ?? "")).join("|") : "__all__";
|
|
3882
|
+
n.has(i) || n.set(i, /* @__PURE__ */ new Map());
|
|
3883
|
+
let a = e[t.timeDimension];
|
|
3884
|
+
if (a != null) {
|
|
3885
|
+
let o = r(a, t.granularity);
|
|
3886
|
+
n.get(i).set(o, e);
|
|
3887
|
+
}
|
|
3888
|
+
}), n;
|
|
3889
|
+
}
|
|
3890
|
+
function Gi(e, t, n, r) {
|
|
3891
|
+
let i = Wi(e, t), a = Array.from(i.keys()), o = [], s = t.measures.length, c = a.length;
|
|
3892
|
+
return t.measures.forEach((e) => {
|
|
3893
|
+
a.forEach((a, l) => {
|
|
3894
|
+
let u = i.get(a), d = s > 1 ? `${e}|${a}` : a, f = {}, p = a === "__all__" ? [] : a.split("|");
|
|
3895
|
+
t.dimensions.forEach((e, t) => {
|
|
3896
|
+
f[e] = p[t] ?? "";
|
|
3897
|
+
}), s > 1 && (f.__measure__ = r(e)), n.forEach((t) => {
|
|
3898
|
+
f[t] = u.get(t)?.[e] ?? null;
|
|
3899
|
+
});
|
|
3900
|
+
let m = l === 0;
|
|
3901
|
+
o.push({
|
|
3902
|
+
id: d,
|
|
3903
|
+
measureField: e,
|
|
3904
|
+
values: f,
|
|
3905
|
+
isFirstInGroup: m,
|
|
3906
|
+
dimensionRowSpan: m && s > 1 ? c : void 0
|
|
3907
|
+
});
|
|
3908
|
+
});
|
|
3909
|
+
}), o;
|
|
3910
|
+
}
|
|
3911
|
+
function Ki(e, t, n, r) {
|
|
3912
|
+
if (!e || e.length === 0) return {
|
|
3913
|
+
isPivoted: !0,
|
|
3914
|
+
columns: [],
|
|
3915
|
+
rows: []
|
|
3916
|
+
};
|
|
3917
|
+
let i = Hi(e, t.timeDimension, t.granularity);
|
|
3918
|
+
return {
|
|
3919
|
+
isPivoted: !0,
|
|
3920
|
+
columns: Ui(t, i, n),
|
|
3921
|
+
rows: Gi(e, t, i, n)
|
|
3922
|
+
};
|
|
3923
|
+
}
|
|
3924
|
+
function qi(e, t) {
|
|
3925
|
+
if (t?.cubes) for (let n of t.cubes) {
|
|
3926
|
+
let t = n.measures.find((t) => t.name === e);
|
|
3927
|
+
if (t) return t.type;
|
|
3928
|
+
}
|
|
3929
|
+
}
|
|
3930
|
+
//#endregion
|
|
3931
|
+
//#region src/client/components/charts/DataTable.tsx
|
|
3932
|
+
var Ji = /* @__PURE__ */ e({ default: () => Yi }), Yi = o.memo(function({ data: e, chartConfig: n, displayConfig: r = {}, queryObject: i, height: a = 300 }) {
|
|
3933
|
+
let { getFieldLabel: o, meta: s } = t(), c = p(() => Vi(i, n?.xAxis), [i, n?.xAxis]), l = r?.pivotTimeDimension !== !1, u = p(() => !c || !l ? null : Ki(e, c, o, s), [
|
|
3934
|
+
e,
|
|
3935
|
+
c,
|
|
3936
|
+
l,
|
|
3937
|
+
o,
|
|
3938
|
+
s
|
|
3939
|
+
]);
|
|
3940
|
+
return !e || e.length === 0 ? /* @__PURE__ */ h("div", {
|
|
3941
|
+
className: "dc:flex dc:items-center dc:justify-center dc:w-full",
|
|
3942
|
+
style: { height: a },
|
|
3943
|
+
children: /* @__PURE__ */ g("div", {
|
|
3944
|
+
className: "dc:text-center text-dc-text-muted",
|
|
3945
|
+
children: [/* @__PURE__ */ h("div", {
|
|
3946
|
+
className: "dc:text-sm dc:font-semibold dc:mb-1",
|
|
3947
|
+
children: "No data available"
|
|
3948
|
+
}), /* @__PURE__ */ h("div", {
|
|
3949
|
+
className: "dc:text-xs text-dc-text-secondary",
|
|
3950
|
+
children: "No data to display in table"
|
|
3951
|
+
})]
|
|
3952
|
+
})
|
|
3953
|
+
}) : u?.isPivoted && u.columns.length > 0 ? /* @__PURE__ */ h(Xi, {
|
|
3954
|
+
pivotedData: u,
|
|
3955
|
+
height: a,
|
|
3956
|
+
meta: s,
|
|
3957
|
+
leftYAxisFormat: r?.leftYAxisFormat
|
|
3958
|
+
}) : /* @__PURE__ */ h($i, {
|
|
3959
|
+
data: e,
|
|
3960
|
+
chartConfig: n,
|
|
3961
|
+
queryObject: i,
|
|
3962
|
+
height: a,
|
|
3963
|
+
getFieldLabel: o,
|
|
3964
|
+
leftYAxisFormat: r?.leftYAxisFormat
|
|
3965
|
+
});
|
|
3966
|
+
});
|
|
3967
|
+
function Xi({ pivotedData: e, height: t, meta: n, leftYAxisFormat: r }) {
|
|
3968
|
+
let { columns: i, rows: a } = e;
|
|
3969
|
+
return i.length === 0 || a.length === 0 ? /* @__PURE__ */ h("div", {
|
|
3970
|
+
className: "dc:flex dc:items-center dc:justify-center dc:w-full",
|
|
3971
|
+
style: { height: t },
|
|
3972
|
+
children: /* @__PURE__ */ g("div", {
|
|
3973
|
+
className: "dc:text-center text-dc-text-muted",
|
|
3974
|
+
children: [/* @__PURE__ */ h("div", {
|
|
3975
|
+
className: "dc:text-sm dc:font-semibold dc:mb-1",
|
|
3976
|
+
children: "No data available"
|
|
3977
|
+
}), /* @__PURE__ */ h("div", {
|
|
3978
|
+
className: "dc:text-xs text-dc-text-secondary",
|
|
3979
|
+
children: "No data to display in table"
|
|
3980
|
+
})]
|
|
3981
|
+
})
|
|
3982
|
+
}) : /* @__PURE__ */ h("div", {
|
|
3983
|
+
className: "dc:w-full dc:overflow-auto",
|
|
3984
|
+
style: { height: t },
|
|
3985
|
+
children: /* @__PURE__ */ g("table", {
|
|
3986
|
+
className: "dc:min-w-full dc:divide-y border-dc-border",
|
|
3987
|
+
children: [/* @__PURE__ */ h("thead", {
|
|
3988
|
+
className: "bg-dc-surface-secondary dc:sticky dc:top-0",
|
|
3989
|
+
children: /* @__PURE__ */ h("tr", { children: i.map((e) => /* @__PURE__ */ h("th", {
|
|
3990
|
+
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"}`,
|
|
3991
|
+
children: e.label
|
|
3992
|
+
}, e.key)) })
|
|
3993
|
+
}), /* @__PURE__ */ h("tbody", {
|
|
3994
|
+
className: "bg-dc-surface dc:divide-y border-dc-border",
|
|
3995
|
+
children: a.map((e) => /* @__PURE__ */ h(Zi, {
|
|
3996
|
+
row: e,
|
|
3997
|
+
columns: i,
|
|
3998
|
+
meta: n,
|
|
3999
|
+
leftYAxisFormat: r
|
|
4000
|
+
}, e.id))
|
|
4001
|
+
})]
|
|
4002
|
+
})
|
|
4003
|
+
});
|
|
4004
|
+
}
|
|
4005
|
+
function Zi({ row: e, columns: t, meta: n, leftYAxisFormat: r }) {
|
|
4006
|
+
let i = Mi(qi(e.measureField, n));
|
|
4007
|
+
return /* @__PURE__ */ h("tr", {
|
|
4008
|
+
className: "hover:bg-dc-surface-secondary",
|
|
4009
|
+
children: t.map((t) => {
|
|
4010
|
+
let n = e.values[t.key];
|
|
4011
|
+
return t.isMeasureColumn ? e.isFirstInGroup === !1 ? null : /* @__PURE__ */ h("td", {
|
|
4012
|
+
className: "dc:px-3 dc:py-2 dc:whitespace-nowrap dc:text-sm text-dc-text dc:align-top",
|
|
4013
|
+
rowSpan: e.dimensionRowSpan,
|
|
4014
|
+
children: /* @__PURE__ */ g("div", {
|
|
4015
|
+
className: "dc:flex dc:items-center",
|
|
4016
|
+
children: [/* @__PURE__ */ h(i, { className: "dc:w-3.5 dc:h-3.5 dc:mr-1.5 text-dc-text-muted dc:shrink-0" }), /* @__PURE__ */ h("span", { children: n })]
|
|
4017
|
+
})
|
|
4018
|
+
}, t.key) : t.isTimeColumn ? /* @__PURE__ */ h("td", {
|
|
4019
|
+
className: "dc:px-3 dc:py-2 dc:whitespace-nowrap dc:text-sm dc:text-right text-dc-text",
|
|
4020
|
+
children: Qi(n, r)
|
|
4021
|
+
}, t.key) : /* @__PURE__ */ h("td", {
|
|
4022
|
+
className: "dc:px-3 dc:py-2 dc:whitespace-nowrap dc:text-sm text-dc-text",
|
|
4023
|
+
children: Qi(n)
|
|
4024
|
+
}, t.key);
|
|
4025
|
+
})
|
|
4026
|
+
});
|
|
4027
|
+
}
|
|
4028
|
+
function Qi(e, t) {
|
|
4029
|
+
return e == null ? "-" : typeof e == "number" ? t ? i(e, t) : Number.isInteger(e) ? e.toLocaleString() : parseFloat(e.toFixed(2)).toLocaleString() : typeof e == "boolean" ? e ? "Yes" : "No" : String(e);
|
|
4030
|
+
}
|
|
4031
|
+
function $i({ data: e, chartConfig: t, queryObject: n, height: r, getFieldLabel: i, leftYAxisFormat: a }) {
|
|
4032
|
+
let o = Object.keys(e[0] || {}), s = p(() => {
|
|
4033
|
+
if (t?.xAxis && t.xAxis.length > 0) return t.xAxis.filter((e) => o.includes(e));
|
|
4034
|
+
let e = Bi(n);
|
|
4035
|
+
if (e.length > 0) {
|
|
4036
|
+
let t = e.filter((e) => o.includes(e)), n = o.filter((e) => !t.includes(e));
|
|
4037
|
+
return [...t, ...n];
|
|
4038
|
+
}
|
|
4039
|
+
return o;
|
|
4040
|
+
}, [
|
|
4041
|
+
t?.xAxis,
|
|
4042
|
+
n,
|
|
4043
|
+
o
|
|
4044
|
+
]);
|
|
4045
|
+
return s.length === 0 ? /* @__PURE__ */ h("div", {
|
|
4046
|
+
className: "dc:flex dc:items-center dc:justify-center dc:w-full",
|
|
4047
|
+
style: { height: r },
|
|
4048
|
+
children: /* @__PURE__ */ g("div", {
|
|
4049
|
+
className: "dc:text-center text-dc-text-muted",
|
|
4050
|
+
children: [/* @__PURE__ */ h("div", {
|
|
4051
|
+
className: "dc:text-sm dc:font-semibold dc:mb-1",
|
|
4052
|
+
children: "No columns available"
|
|
4053
|
+
}), /* @__PURE__ */ h("div", {
|
|
4054
|
+
className: "dc:text-xs text-dc-text-secondary",
|
|
4055
|
+
children: "Data structure is invalid"
|
|
4056
|
+
})]
|
|
4057
|
+
})
|
|
4058
|
+
}) : /* @__PURE__ */ h("div", {
|
|
4059
|
+
className: "dc:w-full dc:overflow-auto",
|
|
4060
|
+
style: { height: r },
|
|
4061
|
+
children: /* @__PURE__ */ g("table", {
|
|
4062
|
+
className: "dc:min-w-full dc:divide-y border-dc-border",
|
|
4063
|
+
children: [/* @__PURE__ */ h("thead", {
|
|
4064
|
+
className: "bg-dc-surface-secondary dc:sticky dc:top-0",
|
|
4065
|
+
children: /* @__PURE__ */ h("tr", { children: s.map((e) => /* @__PURE__ */ h("th", {
|
|
4066
|
+
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",
|
|
4067
|
+
children: i(e)
|
|
4068
|
+
}, e)) })
|
|
4069
|
+
}), /* @__PURE__ */ h("tbody", {
|
|
4070
|
+
className: "bg-dc-surface dc:divide-y border-dc-border",
|
|
4071
|
+
children: e.map((e, t) => /* @__PURE__ */ h("tr", {
|
|
4072
|
+
className: "hover:bg-dc-surface-secondary",
|
|
4073
|
+
children: s.map((t) => /* @__PURE__ */ h("td", {
|
|
4074
|
+
className: "dc:px-3 dc:py-2 dc:whitespace-nowrap dc:text-sm text-dc-text",
|
|
4075
|
+
children: ea(e[t], a)
|
|
4076
|
+
}, t))
|
|
4077
|
+
}, t))
|
|
4078
|
+
})]
|
|
4079
|
+
})
|
|
4080
|
+
});
|
|
4081
|
+
}
|
|
4082
|
+
function ea(e, t) {
|
|
4083
|
+
return e == null ? "" : typeof e == "number" ? t ? i(e, t) : e.toLocaleString() : typeof e == "boolean" ? e ? "Yes" : "No" : String(e);
|
|
4084
|
+
}
|
|
4085
|
+
//#endregion
|
|
4086
|
+
export { rt as A, Ge as B, pt as C, ft as D, mt as E, et as F, T as G, Re as H, Ye as I, O as J, S as K, Ze as L, nt as M, Qe as N, ut as O, L as P, Xe as R, Ct as S, ht as T, ke as U, I as V, A as W, _ as X, he as Y, Ai as _, Vi as a, wi as b, zi as c, $ as d, Di as f, ki as g, Mi as h, Bi as i, it as j, z as k, Ni as l, ji as m, Ji as n, Ki as o, Ei as p, D as q, qi as r, Ri as s, Yi as t, Pi as u, Oi as v, vt as w, ar as x, Ti as y, Je as z };
|
|
4087
|
+
|
|
4088
|
+
//# sourceMappingURL=chart-data-table-DehW1C1G.js.map
|