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,845 @@
|
|
|
1
|
+
import { r as e, t } from "./rolldown-runtime-lc2dmIiU.js";
|
|
2
|
+
var n = (/* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
3
|
+
function n(e) {
|
|
4
|
+
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
5
|
+
throw Error("map is read-only");
|
|
6
|
+
} : e instanceof Set && (e.add = e.clear = e.delete = function() {
|
|
7
|
+
throw Error("set is read-only");
|
|
8
|
+
}), Object.freeze(e), Object.getOwnPropertyNames(e).forEach((t) => {
|
|
9
|
+
let r = e[t], i = typeof r;
|
|
10
|
+
(i === "object" || i === "function") && !Object.isFrozen(r) && n(r);
|
|
11
|
+
}), e;
|
|
12
|
+
}
|
|
13
|
+
var r = class {
|
|
14
|
+
constructor(e) {
|
|
15
|
+
e.data === void 0 && (e.data = {}), this.data = e.data, this.isMatchIgnored = !1;
|
|
16
|
+
}
|
|
17
|
+
ignoreMatch() {
|
|
18
|
+
this.isMatchIgnored = !0;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
function i(e) {
|
|
22
|
+
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
23
|
+
}
|
|
24
|
+
function a(e, ...t) {
|
|
25
|
+
let n = Object.create(null);
|
|
26
|
+
for (let t in e) n[t] = e[t];
|
|
27
|
+
return t.forEach(function(e) {
|
|
28
|
+
for (let t in e) n[t] = e[t];
|
|
29
|
+
}), n;
|
|
30
|
+
}
|
|
31
|
+
var o = "</span>", s = (e) => !!e.scope, c = (e, { prefix: t }) => {
|
|
32
|
+
if (e.startsWith("language:")) return e.replace("language:", "language-");
|
|
33
|
+
if (e.includes(".")) {
|
|
34
|
+
let n = e.split(".");
|
|
35
|
+
return [`${t}${n.shift()}`, ...n.map((e, t) => `${e}${"_".repeat(t + 1)}`)].join(" ");
|
|
36
|
+
}
|
|
37
|
+
return `${t}${e}`;
|
|
38
|
+
}, l = class {
|
|
39
|
+
constructor(e, t) {
|
|
40
|
+
this.buffer = "", this.classPrefix = t.classPrefix, e.walk(this);
|
|
41
|
+
}
|
|
42
|
+
addText(e) {
|
|
43
|
+
this.buffer += i(e);
|
|
44
|
+
}
|
|
45
|
+
openNode(e) {
|
|
46
|
+
if (!s(e)) return;
|
|
47
|
+
let t = c(e.scope, { prefix: this.classPrefix });
|
|
48
|
+
this.span(t);
|
|
49
|
+
}
|
|
50
|
+
closeNode(e) {
|
|
51
|
+
s(e) && (this.buffer += o);
|
|
52
|
+
}
|
|
53
|
+
value() {
|
|
54
|
+
return this.buffer;
|
|
55
|
+
}
|
|
56
|
+
span(e) {
|
|
57
|
+
this.buffer += `<span class="${e}">`;
|
|
58
|
+
}
|
|
59
|
+
}, u = (e = {}) => {
|
|
60
|
+
let t = { children: [] };
|
|
61
|
+
return Object.assign(t, e), t;
|
|
62
|
+
}, d = class e {
|
|
63
|
+
constructor() {
|
|
64
|
+
this.rootNode = u(), this.stack = [this.rootNode];
|
|
65
|
+
}
|
|
66
|
+
get top() {
|
|
67
|
+
return this.stack[this.stack.length - 1];
|
|
68
|
+
}
|
|
69
|
+
get root() {
|
|
70
|
+
return this.rootNode;
|
|
71
|
+
}
|
|
72
|
+
add(e) {
|
|
73
|
+
this.top.children.push(e);
|
|
74
|
+
}
|
|
75
|
+
openNode(e) {
|
|
76
|
+
let t = u({ scope: e });
|
|
77
|
+
this.add(t), this.stack.push(t);
|
|
78
|
+
}
|
|
79
|
+
closeNode() {
|
|
80
|
+
if (this.stack.length > 1) return this.stack.pop();
|
|
81
|
+
}
|
|
82
|
+
closeAllNodes() {
|
|
83
|
+
for (; this.closeNode(););
|
|
84
|
+
}
|
|
85
|
+
toJSON() {
|
|
86
|
+
return JSON.stringify(this.rootNode, null, 4);
|
|
87
|
+
}
|
|
88
|
+
walk(e) {
|
|
89
|
+
return this.constructor._walk(e, this.rootNode);
|
|
90
|
+
}
|
|
91
|
+
static _walk(e, t) {
|
|
92
|
+
return typeof t == "string" ? e.addText(t) : t.children && (e.openNode(t), t.children.forEach((t) => this._walk(e, t)), e.closeNode(t)), e;
|
|
93
|
+
}
|
|
94
|
+
static _collapse(t) {
|
|
95
|
+
typeof t != "string" && t.children && (t.children.every((e) => typeof e == "string") ? t.children = [t.children.join("")] : t.children.forEach((t) => {
|
|
96
|
+
e._collapse(t);
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
99
|
+
}, f = class extends d {
|
|
100
|
+
constructor(e) {
|
|
101
|
+
super(), this.options = e;
|
|
102
|
+
}
|
|
103
|
+
addText(e) {
|
|
104
|
+
e !== "" && this.add(e);
|
|
105
|
+
}
|
|
106
|
+
startScope(e) {
|
|
107
|
+
this.openNode(e);
|
|
108
|
+
}
|
|
109
|
+
endScope() {
|
|
110
|
+
this.closeNode();
|
|
111
|
+
}
|
|
112
|
+
__addSublanguage(e, t) {
|
|
113
|
+
let n = e.root;
|
|
114
|
+
t && (n.scope = `language:${t}`), this.add(n);
|
|
115
|
+
}
|
|
116
|
+
toHTML() {
|
|
117
|
+
return new l(this, this.options).value();
|
|
118
|
+
}
|
|
119
|
+
finalize() {
|
|
120
|
+
return this.closeAllNodes(), !0;
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
function p(e) {
|
|
124
|
+
return e ? typeof e == "string" ? e : e.source : null;
|
|
125
|
+
}
|
|
126
|
+
function m(e) {
|
|
127
|
+
return _("(?=", e, ")");
|
|
128
|
+
}
|
|
129
|
+
function h(e) {
|
|
130
|
+
return _("(?:", e, ")*");
|
|
131
|
+
}
|
|
132
|
+
function g(e) {
|
|
133
|
+
return _("(?:", e, ")?");
|
|
134
|
+
}
|
|
135
|
+
function _(...e) {
|
|
136
|
+
return e.map((e) => p(e)).join("");
|
|
137
|
+
}
|
|
138
|
+
function v(e) {
|
|
139
|
+
let t = e[e.length - 1];
|
|
140
|
+
return typeof t == "object" && t.constructor === Object ? (e.splice(e.length - 1, 1), t) : {};
|
|
141
|
+
}
|
|
142
|
+
function y(...e) {
|
|
143
|
+
return "(" + (v(e).capture ? "" : "?:") + e.map((e) => p(e)).join("|") + ")";
|
|
144
|
+
}
|
|
145
|
+
function b(e) {
|
|
146
|
+
return RegExp(e.toString() + "|").exec("").length - 1;
|
|
147
|
+
}
|
|
148
|
+
function ee(e, t) {
|
|
149
|
+
let n = e && e.exec(t);
|
|
150
|
+
return n && n.index === 0;
|
|
151
|
+
}
|
|
152
|
+
var x = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
|
153
|
+
function S(e, { joinWith: t }) {
|
|
154
|
+
let n = 0;
|
|
155
|
+
return e.map((e) => {
|
|
156
|
+
n += 1;
|
|
157
|
+
let t = n, r = p(e), i = "";
|
|
158
|
+
for (; r.length > 0;) {
|
|
159
|
+
let e = x.exec(r);
|
|
160
|
+
if (!e) {
|
|
161
|
+
i += r;
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
i += r.substring(0, e.index), r = r.substring(e.index + e[0].length), e[0][0] === "\\" && e[1] ? i += "\\" + String(Number(e[1]) + t) : (i += e[0], e[0] === "(" && n++);
|
|
165
|
+
}
|
|
166
|
+
return i;
|
|
167
|
+
}).map((e) => `(${e})`).join(t);
|
|
168
|
+
}
|
|
169
|
+
var C = /\b\B/, w = "[a-zA-Z]\\w*", T = "[a-zA-Z_]\\w*", E = "\\b\\d+(\\.\\d+)?", D = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", O = "\\b(0b[01]+)", k = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", A = (e = {}) => {
|
|
170
|
+
let t = /^#![ ]*\//;
|
|
171
|
+
return e.binary && (e.begin = _(t, /.*\b/, e.binary, /\b.*/)), a({
|
|
172
|
+
scope: "meta",
|
|
173
|
+
begin: t,
|
|
174
|
+
end: /$/,
|
|
175
|
+
relevance: 0,
|
|
176
|
+
"on:begin": (e, t) => {
|
|
177
|
+
e.index !== 0 && t.ignoreMatch();
|
|
178
|
+
}
|
|
179
|
+
}, e);
|
|
180
|
+
}, j = {
|
|
181
|
+
begin: "\\\\[\\s\\S]",
|
|
182
|
+
relevance: 0
|
|
183
|
+
}, M = {
|
|
184
|
+
scope: "string",
|
|
185
|
+
begin: "'",
|
|
186
|
+
end: "'",
|
|
187
|
+
illegal: "\\n",
|
|
188
|
+
contains: [j]
|
|
189
|
+
}, N = {
|
|
190
|
+
scope: "string",
|
|
191
|
+
begin: "\"",
|
|
192
|
+
end: "\"",
|
|
193
|
+
illegal: "\\n",
|
|
194
|
+
contains: [j]
|
|
195
|
+
}, P = { begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ }, F = function(e, t, n = {}) {
|
|
196
|
+
let r = a({
|
|
197
|
+
scope: "comment",
|
|
198
|
+
begin: e,
|
|
199
|
+
end: t,
|
|
200
|
+
contains: []
|
|
201
|
+
}, n);
|
|
202
|
+
r.contains.push({
|
|
203
|
+
scope: "doctag",
|
|
204
|
+
begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
|
|
205
|
+
end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,
|
|
206
|
+
excludeBegin: !0,
|
|
207
|
+
relevance: 0
|
|
208
|
+
});
|
|
209
|
+
let i = y("I", "a", "is", "so", "us", "to", "at", "if", "in", "it", "on", /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, /[A-Za-z]+[-][a-z]+/, /[A-Za-z][a-z]{2,}/);
|
|
210
|
+
return r.contains.push({ begin: _(/[ ]+/, "(", i, /[.]?[:]?([.][ ]|[ ])/, "){3}") }), r;
|
|
211
|
+
}, I = F("//", "$"), L = F("/\\*", "\\*/"), R = F("#", "$"), z = {
|
|
212
|
+
scope: "number",
|
|
213
|
+
begin: E,
|
|
214
|
+
relevance: 0
|
|
215
|
+
}, te = {
|
|
216
|
+
scope: "number",
|
|
217
|
+
begin: D,
|
|
218
|
+
relevance: 0
|
|
219
|
+
}, ne = {
|
|
220
|
+
scope: "number",
|
|
221
|
+
begin: O,
|
|
222
|
+
relevance: 0
|
|
223
|
+
}, re = {
|
|
224
|
+
scope: "regexp",
|
|
225
|
+
begin: /\/(?=[^/\n]*\/)/,
|
|
226
|
+
end: /\/[gimuy]*/,
|
|
227
|
+
contains: [j, {
|
|
228
|
+
begin: /\[/,
|
|
229
|
+
end: /\]/,
|
|
230
|
+
relevance: 0,
|
|
231
|
+
contains: [j]
|
|
232
|
+
}]
|
|
233
|
+
}, ie = {
|
|
234
|
+
scope: "title",
|
|
235
|
+
begin: w,
|
|
236
|
+
relevance: 0
|
|
237
|
+
}, ae = {
|
|
238
|
+
scope: "title",
|
|
239
|
+
begin: T,
|
|
240
|
+
relevance: 0
|
|
241
|
+
}, oe = {
|
|
242
|
+
begin: "\\.\\s*" + T,
|
|
243
|
+
relevance: 0
|
|
244
|
+
}, B = /* @__PURE__ */ Object.freeze({
|
|
245
|
+
__proto__: null,
|
|
246
|
+
APOS_STRING_MODE: M,
|
|
247
|
+
BACKSLASH_ESCAPE: j,
|
|
248
|
+
BINARY_NUMBER_MODE: ne,
|
|
249
|
+
BINARY_NUMBER_RE: O,
|
|
250
|
+
COMMENT: F,
|
|
251
|
+
C_BLOCK_COMMENT_MODE: L,
|
|
252
|
+
C_LINE_COMMENT_MODE: I,
|
|
253
|
+
C_NUMBER_MODE: te,
|
|
254
|
+
C_NUMBER_RE: D,
|
|
255
|
+
END_SAME_AS_BEGIN: function(e) {
|
|
256
|
+
return Object.assign(e, {
|
|
257
|
+
"on:begin": (e, t) => {
|
|
258
|
+
t.data._beginMatch = e[1];
|
|
259
|
+
},
|
|
260
|
+
"on:end": (e, t) => {
|
|
261
|
+
t.data._beginMatch !== e[1] && t.ignoreMatch();
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
},
|
|
265
|
+
HASH_COMMENT_MODE: R,
|
|
266
|
+
IDENT_RE: w,
|
|
267
|
+
MATCH_NOTHING_RE: C,
|
|
268
|
+
METHOD_GUARD: oe,
|
|
269
|
+
NUMBER_MODE: z,
|
|
270
|
+
NUMBER_RE: E,
|
|
271
|
+
PHRASAL_WORDS_MODE: P,
|
|
272
|
+
QUOTE_STRING_MODE: N,
|
|
273
|
+
REGEXP_MODE: re,
|
|
274
|
+
RE_STARTERS_RE: k,
|
|
275
|
+
SHEBANG: A,
|
|
276
|
+
TITLE_MODE: ie,
|
|
277
|
+
UNDERSCORE_IDENT_RE: T,
|
|
278
|
+
UNDERSCORE_TITLE_MODE: ae
|
|
279
|
+
});
|
|
280
|
+
function se(e, t) {
|
|
281
|
+
e.input[e.index - 1] === "." && t.ignoreMatch();
|
|
282
|
+
}
|
|
283
|
+
function ce(e, t) {
|
|
284
|
+
e.className !== void 0 && (e.scope = e.className, delete e.className);
|
|
285
|
+
}
|
|
286
|
+
function le(e, t) {
|
|
287
|
+
t && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = se, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
|
|
288
|
+
}
|
|
289
|
+
function ue(e, t) {
|
|
290
|
+
Array.isArray(e.illegal) && (e.illegal = y(...e.illegal));
|
|
291
|
+
}
|
|
292
|
+
function de(e, t) {
|
|
293
|
+
if (e.match) {
|
|
294
|
+
if (e.begin || e.end) throw Error("begin & end are not supported with match");
|
|
295
|
+
e.begin = e.match, delete e.match;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
function fe(e, t) {
|
|
299
|
+
e.relevance === void 0 && (e.relevance = 1);
|
|
300
|
+
}
|
|
301
|
+
var pe = (e, t) => {
|
|
302
|
+
if (!e.beforeMatch) return;
|
|
303
|
+
if (e.starts) throw Error("beforeMatch cannot be used with starts");
|
|
304
|
+
let n = Object.assign({}, e);
|
|
305
|
+
Object.keys(e).forEach((t) => {
|
|
306
|
+
delete e[t];
|
|
307
|
+
}), e.keywords = n.keywords, e.begin = _(n.beforeMatch, m(n.begin)), e.starts = {
|
|
308
|
+
relevance: 0,
|
|
309
|
+
contains: [Object.assign(n, { endsParent: !0 })]
|
|
310
|
+
}, e.relevance = 0, delete n.beforeMatch;
|
|
311
|
+
}, me = [
|
|
312
|
+
"of",
|
|
313
|
+
"and",
|
|
314
|
+
"for",
|
|
315
|
+
"in",
|
|
316
|
+
"not",
|
|
317
|
+
"or",
|
|
318
|
+
"if",
|
|
319
|
+
"then",
|
|
320
|
+
"parent",
|
|
321
|
+
"list",
|
|
322
|
+
"value"
|
|
323
|
+
], he = "keyword";
|
|
324
|
+
function V(e, t, n = he) {
|
|
325
|
+
let r = Object.create(null);
|
|
326
|
+
return typeof e == "string" ? i(n, e.split(" ")) : Array.isArray(e) ? i(n, e) : Object.keys(e).forEach(function(n) {
|
|
327
|
+
Object.assign(r, V(e[n], t, n));
|
|
328
|
+
}), r;
|
|
329
|
+
function i(e, n) {
|
|
330
|
+
t && (n = n.map((e) => e.toLowerCase())), n.forEach(function(t) {
|
|
331
|
+
let n = t.split("|");
|
|
332
|
+
r[n[0]] = [e, ge(n[0], n[1])];
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
function ge(e, t) {
|
|
337
|
+
return t ? Number(t) : _e(e) ? 0 : 1;
|
|
338
|
+
}
|
|
339
|
+
function _e(e) {
|
|
340
|
+
return me.includes(e.toLowerCase());
|
|
341
|
+
}
|
|
342
|
+
var H = {}, U = (e) => {
|
|
343
|
+
console.error(e);
|
|
344
|
+
}, W = (e, ...t) => {
|
|
345
|
+
console.log(`WARN: ${e}`, ...t);
|
|
346
|
+
}, G = (e, t) => {
|
|
347
|
+
H[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), H[`${e}/${t}`] = !0);
|
|
348
|
+
}, K = /* @__PURE__ */ Error();
|
|
349
|
+
function q(e, t, { key: n }) {
|
|
350
|
+
let r = 0, i = e[n], a = {}, o = {};
|
|
351
|
+
for (let e = 1; e <= t.length; e++) o[e + r] = i[e], a[e + r] = !0, r += b(t[e - 1]);
|
|
352
|
+
e[n] = o, e[n]._emit = a, e[n]._multi = !0;
|
|
353
|
+
}
|
|
354
|
+
function ve(e) {
|
|
355
|
+
if (Array.isArray(e.begin)) {
|
|
356
|
+
if (e.skip || e.excludeBegin || e.returnBegin) throw U("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), K;
|
|
357
|
+
if (typeof e.beginScope != "object" || e.beginScope === null) throw U("beginScope must be object"), K;
|
|
358
|
+
q(e, e.begin, { key: "beginScope" }), e.begin = S(e.begin, { joinWith: "" });
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
function ye(e) {
|
|
362
|
+
if (Array.isArray(e.end)) {
|
|
363
|
+
if (e.skip || e.excludeEnd || e.returnEnd) throw U("skip, excludeEnd, returnEnd not compatible with endScope: {}"), K;
|
|
364
|
+
if (typeof e.endScope != "object" || e.endScope === null) throw U("endScope must be object"), K;
|
|
365
|
+
q(e, e.end, { key: "endScope" }), e.end = S(e.end, { joinWith: "" });
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
function be(e) {
|
|
369
|
+
e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
|
|
370
|
+
}
|
|
371
|
+
function xe(e) {
|
|
372
|
+
be(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), ve(e), ye(e);
|
|
373
|
+
}
|
|
374
|
+
function Se(e) {
|
|
375
|
+
function t(t, n) {
|
|
376
|
+
return new RegExp(p(t), "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (n ? "g" : ""));
|
|
377
|
+
}
|
|
378
|
+
class n {
|
|
379
|
+
constructor() {
|
|
380
|
+
this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
|
|
381
|
+
}
|
|
382
|
+
addRule(e, t) {
|
|
383
|
+
t.position = this.position++, this.matchIndexes[this.matchAt] = t, this.regexes.push([t, e]), this.matchAt += b(e) + 1;
|
|
384
|
+
}
|
|
385
|
+
compile() {
|
|
386
|
+
this.regexes.length === 0 && (this.exec = () => null), this.matcherRe = t(S(this.regexes.map((e) => e[1]), { joinWith: "|" }), !0), this.lastIndex = 0;
|
|
387
|
+
}
|
|
388
|
+
exec(e) {
|
|
389
|
+
this.matcherRe.lastIndex = this.lastIndex;
|
|
390
|
+
let t = this.matcherRe.exec(e);
|
|
391
|
+
if (!t) return null;
|
|
392
|
+
let n = t.findIndex((e, t) => t > 0 && e !== void 0), r = this.matchIndexes[n];
|
|
393
|
+
return t.splice(0, n), Object.assign(t, r);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
class r {
|
|
397
|
+
constructor() {
|
|
398
|
+
this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0;
|
|
399
|
+
}
|
|
400
|
+
getMatcher(e) {
|
|
401
|
+
if (this.multiRegexes[e]) return this.multiRegexes[e];
|
|
402
|
+
let t = new n();
|
|
403
|
+
return this.rules.slice(e).forEach(([e, n]) => t.addRule(e, n)), t.compile(), this.multiRegexes[e] = t, t;
|
|
404
|
+
}
|
|
405
|
+
resumingScanAtSamePosition() {
|
|
406
|
+
return this.regexIndex !== 0;
|
|
407
|
+
}
|
|
408
|
+
considerAll() {
|
|
409
|
+
this.regexIndex = 0;
|
|
410
|
+
}
|
|
411
|
+
addRule(e, t) {
|
|
412
|
+
this.rules.push([e, t]), t.type === "begin" && this.count++;
|
|
413
|
+
}
|
|
414
|
+
exec(e) {
|
|
415
|
+
let t = this.getMatcher(this.regexIndex);
|
|
416
|
+
t.lastIndex = this.lastIndex;
|
|
417
|
+
let n = t.exec(e);
|
|
418
|
+
if (this.resumingScanAtSamePosition() && !(n && n.index === this.lastIndex)) {
|
|
419
|
+
let t = this.getMatcher(0);
|
|
420
|
+
t.lastIndex = this.lastIndex + 1, n = t.exec(e);
|
|
421
|
+
}
|
|
422
|
+
return n && (this.regexIndex += n.position + 1, this.regexIndex === this.count && this.considerAll()), n;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
function i(e) {
|
|
426
|
+
let t = new r();
|
|
427
|
+
return e.contains.forEach((e) => t.addRule(e.begin, {
|
|
428
|
+
rule: e,
|
|
429
|
+
type: "begin"
|
|
430
|
+
})), e.terminatorEnd && t.addRule(e.terminatorEnd, { type: "end" }), e.illegal && t.addRule(e.illegal, { type: "illegal" }), t;
|
|
431
|
+
}
|
|
432
|
+
function o(n, r) {
|
|
433
|
+
let a = n;
|
|
434
|
+
if (n.isCompiled) return a;
|
|
435
|
+
[
|
|
436
|
+
ce,
|
|
437
|
+
de,
|
|
438
|
+
xe,
|
|
439
|
+
pe
|
|
440
|
+
].forEach((e) => e(n, r)), e.compilerExtensions.forEach((e) => e(n, r)), n.__beforeBegin = null, [
|
|
441
|
+
le,
|
|
442
|
+
ue,
|
|
443
|
+
fe
|
|
444
|
+
].forEach((e) => e(n, r)), n.isCompiled = !0;
|
|
445
|
+
let s = null;
|
|
446
|
+
return typeof n.keywords == "object" && n.keywords.$pattern && (n.keywords = Object.assign({}, n.keywords), s = n.keywords.$pattern, delete n.keywords.$pattern), s ||= /\w+/, n.keywords &&= V(n.keywords, e.case_insensitive), a.keywordPatternRe = t(s, !0), r && (n.begin ||= /\B|\b/, a.beginRe = t(a.begin), !n.end && !n.endsWithParent && (n.end = /\B|\b/), n.end && (a.endRe = t(a.end)), a.terminatorEnd = p(a.end) || "", n.endsWithParent && r.terminatorEnd && (a.terminatorEnd += (n.end ? "|" : "") + r.terminatorEnd)), n.illegal && (a.illegalRe = t(n.illegal)), n.contains ||= [], n.contains = [].concat(...n.contains.map(function(e) {
|
|
447
|
+
return Ce(e === "self" ? n : e);
|
|
448
|
+
})), n.contains.forEach(function(e) {
|
|
449
|
+
o(e, a);
|
|
450
|
+
}), n.starts && o(n.starts, r), a.matcher = i(a), a;
|
|
451
|
+
}
|
|
452
|
+
if (e.compilerExtensions ||= [], e.contains && e.contains.includes("self")) throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
453
|
+
return e.classNameAliases = a(e.classNameAliases || {}), o(e);
|
|
454
|
+
}
|
|
455
|
+
function J(e) {
|
|
456
|
+
return e ? e.endsWithParent || J(e.starts) : !1;
|
|
457
|
+
}
|
|
458
|
+
function Ce(e) {
|
|
459
|
+
return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(t) {
|
|
460
|
+
return a(e, { variants: null }, t);
|
|
461
|
+
})), e.cachedVariants ? e.cachedVariants : J(e) ? a(e, { starts: e.starts ? a(e.starts) : null }) : Object.isFrozen(e) ? a(e) : e;
|
|
462
|
+
}
|
|
463
|
+
var we = "11.11.1", Te = class extends Error {
|
|
464
|
+
constructor(e, t) {
|
|
465
|
+
super(e), this.name = "HTMLInjectionError", this.html = t;
|
|
466
|
+
}
|
|
467
|
+
}, Y = i, X = a, Z = Symbol("nomatch"), Ee = 7, Q = function(e) {
|
|
468
|
+
let t = Object.create(null), i = Object.create(null), a = [], o = !0, s = "Could not find the language '{}', did you forget to load/include a language module?", c = {
|
|
469
|
+
disableAutodetect: !0,
|
|
470
|
+
name: "Plain text",
|
|
471
|
+
contains: []
|
|
472
|
+
}, l = {
|
|
473
|
+
ignoreUnescapedHTML: !1,
|
|
474
|
+
throwUnescapedHTML: !1,
|
|
475
|
+
noHighlightRe: /^(no-?highlight)$/i,
|
|
476
|
+
languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i,
|
|
477
|
+
classPrefix: "hljs-",
|
|
478
|
+
cssSelector: "pre code",
|
|
479
|
+
languages: null,
|
|
480
|
+
__emitter: f
|
|
481
|
+
};
|
|
482
|
+
function u(e) {
|
|
483
|
+
return l.noHighlightRe.test(e);
|
|
484
|
+
}
|
|
485
|
+
function d(e) {
|
|
486
|
+
let t = e.className + " ";
|
|
487
|
+
t += e.parentNode ? e.parentNode.className : "";
|
|
488
|
+
let n = l.languageDetectRe.exec(t);
|
|
489
|
+
if (n) {
|
|
490
|
+
let t = M(n[1]);
|
|
491
|
+
return t || (W(s.replace("{}", n[1])), W("Falling back to no-highlight mode for this block.", e)), t ? n[1] : "no-highlight";
|
|
492
|
+
}
|
|
493
|
+
return t.split(/\s+/).find((e) => u(e) || M(e));
|
|
494
|
+
}
|
|
495
|
+
function p(e, t, n) {
|
|
496
|
+
let r = "", i = "";
|
|
497
|
+
typeof t == "object" ? (r = e, n = t.ignoreIllegals, i = t.language) : (G("10.7.0", "highlight(lang, code, ...args) has been deprecated."), G("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), i = e, r = t), n === void 0 && (n = !0);
|
|
498
|
+
let a = {
|
|
499
|
+
code: r,
|
|
500
|
+
language: i
|
|
501
|
+
};
|
|
502
|
+
R("before:highlight", a);
|
|
503
|
+
let o = a.result ? a.result : v(a.language, a.code, n);
|
|
504
|
+
return o.code = a.code, R("after:highlight", o), o;
|
|
505
|
+
}
|
|
506
|
+
function v(e, n, i, a) {
|
|
507
|
+
let c = Object.create(null);
|
|
508
|
+
function u(e, t) {
|
|
509
|
+
return e.keywords[t];
|
|
510
|
+
}
|
|
511
|
+
function d() {
|
|
512
|
+
if (!k.keywords) {
|
|
513
|
+
j.addText(N);
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
let e = 0;
|
|
517
|
+
k.keywordPatternRe.lastIndex = 0;
|
|
518
|
+
let t = k.keywordPatternRe.exec(N), n = "";
|
|
519
|
+
for (; t;) {
|
|
520
|
+
n += N.substring(e, t.index);
|
|
521
|
+
let r = E.case_insensitive ? t[0].toLowerCase() : t[0], i = u(k, r);
|
|
522
|
+
if (i) {
|
|
523
|
+
let [e, a] = i;
|
|
524
|
+
if (j.addText(n), n = "", c[r] = (c[r] || 0) + 1, c[r] <= Ee && (P += a), e.startsWith("_")) n += t[0];
|
|
525
|
+
else {
|
|
526
|
+
let n = E.classNameAliases[e] || e;
|
|
527
|
+
m(t[0], n);
|
|
528
|
+
}
|
|
529
|
+
} else n += t[0];
|
|
530
|
+
e = k.keywordPatternRe.lastIndex, t = k.keywordPatternRe.exec(N);
|
|
531
|
+
}
|
|
532
|
+
n += N.substring(e), j.addText(n);
|
|
533
|
+
}
|
|
534
|
+
function f() {
|
|
535
|
+
if (N === "") return;
|
|
536
|
+
let e = null;
|
|
537
|
+
if (typeof k.subLanguage == "string") {
|
|
538
|
+
if (!t[k.subLanguage]) {
|
|
539
|
+
j.addText(N);
|
|
540
|
+
return;
|
|
541
|
+
}
|
|
542
|
+
e = v(k.subLanguage, N, !0, A[k.subLanguage]), A[k.subLanguage] = e._top;
|
|
543
|
+
} else e = x(N, k.subLanguage.length ? k.subLanguage : null);
|
|
544
|
+
k.relevance > 0 && (P += e.relevance), j.__addSublanguage(e._emitter, e.language);
|
|
545
|
+
}
|
|
546
|
+
function p() {
|
|
547
|
+
k.subLanguage == null ? d() : f(), N = "";
|
|
548
|
+
}
|
|
549
|
+
function m(e, t) {
|
|
550
|
+
e !== "" && (j.startScope(t), j.addText(e), j.endScope());
|
|
551
|
+
}
|
|
552
|
+
function h(e, t) {
|
|
553
|
+
let n = 1, r = t.length - 1;
|
|
554
|
+
for (; n <= r;) {
|
|
555
|
+
if (!e._emit[n]) {
|
|
556
|
+
n++;
|
|
557
|
+
continue;
|
|
558
|
+
}
|
|
559
|
+
let r = E.classNameAliases[e[n]] || e[n], i = t[n];
|
|
560
|
+
r ? m(i, r) : (N = i, d(), N = ""), n++;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
function g(e, t) {
|
|
564
|
+
return e.scope && typeof e.scope == "string" && j.openNode(E.classNameAliases[e.scope] || e.scope), e.beginScope && (e.beginScope._wrap ? (m(N, E.classNameAliases[e.beginScope._wrap] || e.beginScope._wrap), N = "") : e.beginScope._multi && (h(e.beginScope, t), N = "")), k = Object.create(e, { parent: { value: k } }), k;
|
|
565
|
+
}
|
|
566
|
+
function _(e, t, n) {
|
|
567
|
+
let i = ee(e.endRe, n);
|
|
568
|
+
if (i) {
|
|
569
|
+
if (e["on:end"]) {
|
|
570
|
+
let n = new r(e);
|
|
571
|
+
e["on:end"](t, n), n.isMatchIgnored && (i = !1);
|
|
572
|
+
}
|
|
573
|
+
if (i) {
|
|
574
|
+
for (; e.endsParent && e.parent;) e = e.parent;
|
|
575
|
+
return e;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
if (e.endsWithParent) return _(e.parent, t, n);
|
|
579
|
+
}
|
|
580
|
+
function y(e) {
|
|
581
|
+
return k.matcher.regexIndex === 0 ? (N += e[0], 1) : (L = !0, 0);
|
|
582
|
+
}
|
|
583
|
+
function b(e) {
|
|
584
|
+
let t = e[0], n = e.rule, i = new r(n), a = [n.__beforeBegin, n["on:begin"]];
|
|
585
|
+
for (let n of a) if (n && (n(e, i), i.isMatchIgnored)) return y(t);
|
|
586
|
+
return n.skip ? N += t : (n.excludeBegin && (N += t), p(), !n.returnBegin && !n.excludeBegin && (N = t)), g(n, e), n.returnBegin ? 0 : t.length;
|
|
587
|
+
}
|
|
588
|
+
function S(e) {
|
|
589
|
+
let t = e[0], r = n.substring(e.index), i = _(k, e, r);
|
|
590
|
+
if (!i) return Z;
|
|
591
|
+
let a = k;
|
|
592
|
+
k.endScope && k.endScope._wrap ? (p(), m(t, k.endScope._wrap)) : k.endScope && k.endScope._multi ? (p(), h(k.endScope, e)) : a.skip ? N += t : (a.returnEnd || a.excludeEnd || (N += t), p(), a.excludeEnd && (N = t));
|
|
593
|
+
do
|
|
594
|
+
k.scope && j.closeNode(), !k.skip && !k.subLanguage && (P += k.relevance), k = k.parent;
|
|
595
|
+
while (k !== i.parent);
|
|
596
|
+
return i.starts && g(i.starts, e), a.returnEnd ? 0 : t.length;
|
|
597
|
+
}
|
|
598
|
+
function C() {
|
|
599
|
+
let e = [];
|
|
600
|
+
for (let t = k; t !== E; t = t.parent) t.scope && e.unshift(t.scope);
|
|
601
|
+
e.forEach((e) => j.openNode(e));
|
|
602
|
+
}
|
|
603
|
+
let w = {};
|
|
604
|
+
function T(t, r) {
|
|
605
|
+
let a = r && r[0];
|
|
606
|
+
if (N += t, a == null) return p(), 0;
|
|
607
|
+
if (w.type === "begin" && r.type === "end" && w.index === r.index && a === "") {
|
|
608
|
+
if (N += n.slice(r.index, r.index + 1), !o) {
|
|
609
|
+
let t = /* @__PURE__ */ Error(`0 width match regex (${e})`);
|
|
610
|
+
throw t.languageName = e, t.badRule = w.rule, t;
|
|
611
|
+
}
|
|
612
|
+
return 1;
|
|
613
|
+
}
|
|
614
|
+
if (w = r, r.type === "begin") return b(r);
|
|
615
|
+
if (r.type === "illegal" && !i) {
|
|
616
|
+
let e = /* @__PURE__ */ Error("Illegal lexeme \"" + a + "\" for mode \"" + (k.scope || "<unnamed>") + "\"");
|
|
617
|
+
throw e.mode = k, e;
|
|
618
|
+
} else if (r.type === "end") {
|
|
619
|
+
let e = S(r);
|
|
620
|
+
if (e !== Z) return e;
|
|
621
|
+
}
|
|
622
|
+
if (r.type === "illegal" && a === "") return N += "\n", 1;
|
|
623
|
+
if (I > 1e5 && I > r.index * 3) throw /* @__PURE__ */ Error("potential infinite loop, way more iterations than matches");
|
|
624
|
+
return N += a, a.length;
|
|
625
|
+
}
|
|
626
|
+
let E = M(e);
|
|
627
|
+
if (!E) throw U(s.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
|
|
628
|
+
let D = Se(E), O = "", k = a || D, A = {}, j = new l.__emitter(l);
|
|
629
|
+
C();
|
|
630
|
+
let N = "", P = 0, F = 0, I = 0, L = !1;
|
|
631
|
+
try {
|
|
632
|
+
if (E.__emitTokens) E.__emitTokens(n, j);
|
|
633
|
+
else {
|
|
634
|
+
for (k.matcher.considerAll();;) {
|
|
635
|
+
I++, L ? L = !1 : k.matcher.considerAll(), k.matcher.lastIndex = F;
|
|
636
|
+
let e = k.matcher.exec(n);
|
|
637
|
+
if (!e) break;
|
|
638
|
+
let t = T(n.substring(F, e.index), e);
|
|
639
|
+
F = e.index + t;
|
|
640
|
+
}
|
|
641
|
+
T(n.substring(F));
|
|
642
|
+
}
|
|
643
|
+
return j.finalize(), O = j.toHTML(), {
|
|
644
|
+
language: e,
|
|
645
|
+
value: O,
|
|
646
|
+
relevance: P,
|
|
647
|
+
illegal: !1,
|
|
648
|
+
_emitter: j,
|
|
649
|
+
_top: k
|
|
650
|
+
};
|
|
651
|
+
} catch (t) {
|
|
652
|
+
if (t.message && t.message.includes("Illegal")) return {
|
|
653
|
+
language: e,
|
|
654
|
+
value: Y(n),
|
|
655
|
+
illegal: !0,
|
|
656
|
+
relevance: 0,
|
|
657
|
+
_illegalBy: {
|
|
658
|
+
message: t.message,
|
|
659
|
+
index: F,
|
|
660
|
+
context: n.slice(F - 100, F + 100),
|
|
661
|
+
mode: t.mode,
|
|
662
|
+
resultSoFar: O
|
|
663
|
+
},
|
|
664
|
+
_emitter: j
|
|
665
|
+
};
|
|
666
|
+
if (o) return {
|
|
667
|
+
language: e,
|
|
668
|
+
value: Y(n),
|
|
669
|
+
illegal: !1,
|
|
670
|
+
relevance: 0,
|
|
671
|
+
errorRaised: t,
|
|
672
|
+
_emitter: j,
|
|
673
|
+
_top: k
|
|
674
|
+
};
|
|
675
|
+
throw t;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
function b(e) {
|
|
679
|
+
let t = {
|
|
680
|
+
value: Y(e),
|
|
681
|
+
illegal: !1,
|
|
682
|
+
relevance: 0,
|
|
683
|
+
_top: c,
|
|
684
|
+
_emitter: new l.__emitter(l)
|
|
685
|
+
};
|
|
686
|
+
return t._emitter.addText(e), t;
|
|
687
|
+
}
|
|
688
|
+
function x(e, n) {
|
|
689
|
+
n = n || l.languages || Object.keys(t);
|
|
690
|
+
let r = b(e), i = n.filter(M).filter(P).map((t) => v(t, e, !1));
|
|
691
|
+
i.unshift(r);
|
|
692
|
+
let [a, o] = i.sort((e, t) => {
|
|
693
|
+
if (e.relevance !== t.relevance) return t.relevance - e.relevance;
|
|
694
|
+
if (e.language && t.language) {
|
|
695
|
+
if (M(e.language).supersetOf === t.language) return 1;
|
|
696
|
+
if (M(t.language).supersetOf === e.language) return -1;
|
|
697
|
+
}
|
|
698
|
+
return 0;
|
|
699
|
+
}), s = a;
|
|
700
|
+
return s.secondBest = o, s;
|
|
701
|
+
}
|
|
702
|
+
function S(e, t, n) {
|
|
703
|
+
let r = t && i[t] || n;
|
|
704
|
+
e.classList.add("hljs"), e.classList.add(`language-${r}`);
|
|
705
|
+
}
|
|
706
|
+
function C(e) {
|
|
707
|
+
let t = null, n = d(e);
|
|
708
|
+
if (u(n)) return;
|
|
709
|
+
if (R("before:highlightElement", {
|
|
710
|
+
el: e,
|
|
711
|
+
language: n
|
|
712
|
+
}), e.dataset.highlighted) {
|
|
713
|
+
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", e);
|
|
714
|
+
return;
|
|
715
|
+
}
|
|
716
|
+
if (e.children.length > 0 && (l.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(e)), l.throwUnescapedHTML)) throw new Te("One of your code blocks includes unescaped HTML.", e.innerHTML);
|
|
717
|
+
t = e;
|
|
718
|
+
let r = t.textContent, i = n ? p(r, {
|
|
719
|
+
language: n,
|
|
720
|
+
ignoreIllegals: !0
|
|
721
|
+
}) : x(r);
|
|
722
|
+
e.innerHTML = i.value, e.dataset.highlighted = "yes", S(e, n, i.language), e.result = {
|
|
723
|
+
language: i.language,
|
|
724
|
+
re: i.relevance,
|
|
725
|
+
relevance: i.relevance
|
|
726
|
+
}, i.secondBest && (e.secondBest = {
|
|
727
|
+
language: i.secondBest.language,
|
|
728
|
+
relevance: i.secondBest.relevance
|
|
729
|
+
}), R("after:highlightElement", {
|
|
730
|
+
el: e,
|
|
731
|
+
result: i,
|
|
732
|
+
text: r
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
function w(e) {
|
|
736
|
+
l = X(l, e);
|
|
737
|
+
}
|
|
738
|
+
let T = () => {
|
|
739
|
+
O(), G("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
740
|
+
};
|
|
741
|
+
function E() {
|
|
742
|
+
O(), G("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
743
|
+
}
|
|
744
|
+
let D = !1;
|
|
745
|
+
function O() {
|
|
746
|
+
function e() {
|
|
747
|
+
O();
|
|
748
|
+
}
|
|
749
|
+
if (document.readyState === "loading") {
|
|
750
|
+
D || window.addEventListener("DOMContentLoaded", e, !1), D = !0;
|
|
751
|
+
return;
|
|
752
|
+
}
|
|
753
|
+
document.querySelectorAll(l.cssSelector).forEach(C);
|
|
754
|
+
}
|
|
755
|
+
function k(n, r) {
|
|
756
|
+
let i = null;
|
|
757
|
+
try {
|
|
758
|
+
i = r(e);
|
|
759
|
+
} catch (e) {
|
|
760
|
+
if (U("Language definition for '{}' could not be registered.".replace("{}", n)), o) U(e);
|
|
761
|
+
else throw e;
|
|
762
|
+
i = c;
|
|
763
|
+
}
|
|
764
|
+
i.name ||= n, t[n] = i, i.rawDefinition = r.bind(null, e), i.aliases && N(i.aliases, { languageName: n });
|
|
765
|
+
}
|
|
766
|
+
function A(e) {
|
|
767
|
+
delete t[e];
|
|
768
|
+
for (let t of Object.keys(i)) i[t] === e && delete i[t];
|
|
769
|
+
}
|
|
770
|
+
function j() {
|
|
771
|
+
return Object.keys(t);
|
|
772
|
+
}
|
|
773
|
+
function M(e) {
|
|
774
|
+
return e = (e || "").toLowerCase(), t[e] || t[i[e]];
|
|
775
|
+
}
|
|
776
|
+
function N(e, { languageName: t }) {
|
|
777
|
+
typeof e == "string" && (e = [e]), e.forEach((e) => {
|
|
778
|
+
i[e.toLowerCase()] = t;
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
function P(e) {
|
|
782
|
+
let t = M(e);
|
|
783
|
+
return t && !t.disableAutodetect;
|
|
784
|
+
}
|
|
785
|
+
function F(e) {
|
|
786
|
+
e["before:highlightBlock"] && !e["before:highlightElement"] && (e["before:highlightElement"] = (t) => {
|
|
787
|
+
e["before:highlightBlock"](Object.assign({ block: t.el }, t));
|
|
788
|
+
}), e["after:highlightBlock"] && !e["after:highlightElement"] && (e["after:highlightElement"] = (t) => {
|
|
789
|
+
e["after:highlightBlock"](Object.assign({ block: t.el }, t));
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
function I(e) {
|
|
793
|
+
F(e), a.push(e);
|
|
794
|
+
}
|
|
795
|
+
function L(e) {
|
|
796
|
+
let t = a.indexOf(e);
|
|
797
|
+
t !== -1 && a.splice(t, 1);
|
|
798
|
+
}
|
|
799
|
+
function R(e, t) {
|
|
800
|
+
let n = e;
|
|
801
|
+
a.forEach(function(e) {
|
|
802
|
+
e[n] && e[n](t);
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
function z(e) {
|
|
806
|
+
return G("10.7.0", "highlightBlock will be removed entirely in v12.0"), G("10.7.0", "Please use highlightElement now."), C(e);
|
|
807
|
+
}
|
|
808
|
+
Object.assign(e, {
|
|
809
|
+
highlight: p,
|
|
810
|
+
highlightAuto: x,
|
|
811
|
+
highlightAll: O,
|
|
812
|
+
highlightElement: C,
|
|
813
|
+
highlightBlock: z,
|
|
814
|
+
configure: w,
|
|
815
|
+
initHighlighting: T,
|
|
816
|
+
initHighlightingOnLoad: E,
|
|
817
|
+
registerLanguage: k,
|
|
818
|
+
unregisterLanguage: A,
|
|
819
|
+
listLanguages: j,
|
|
820
|
+
getLanguage: M,
|
|
821
|
+
registerAliases: N,
|
|
822
|
+
autoDetection: P,
|
|
823
|
+
inherit: X,
|
|
824
|
+
addPlugin: I,
|
|
825
|
+
removePlugin: L
|
|
826
|
+
}), e.debugMode = function() {
|
|
827
|
+
o = !1;
|
|
828
|
+
}, e.safeMode = function() {
|
|
829
|
+
o = !0;
|
|
830
|
+
}, e.versionString = we, e.regex = {
|
|
831
|
+
concat: _,
|
|
832
|
+
lookahead: m,
|
|
833
|
+
either: y,
|
|
834
|
+
optional: g,
|
|
835
|
+
anyNumberOfTimes: h
|
|
836
|
+
};
|
|
837
|
+
for (let e in B) typeof B[e] == "object" && n(B[e]);
|
|
838
|
+
return Object.assign(e, B), e;
|
|
839
|
+
}, $ = Q({});
|
|
840
|
+
$.newInstance = () => Q({}), t.exports = $, $.HighlightJS = $, $.default = $;
|
|
841
|
+
})))())).default;
|
|
842
|
+
//#endregion
|
|
843
|
+
export { n as default };
|
|
844
|
+
|
|
845
|
+
//# sourceMappingURL=core-D1TOj17W.js.map
|