@embeddable.com/remarkable-ui 0.1.5 → 0.1.6
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/BarChartGroupedPro.js +125 -0
- package/dist/BarChartGroupedPro.js.map +1 -0
- package/dist/BarChartHorizontalGroupedPro.js +126 -0
- package/dist/BarChartHorizontalGroupedPro.js.map +1 -0
- package/dist/{BarHorizontalChartPro.js → BarChartHorizontalPro.js} +12 -12
- package/dist/{BarHorizontalChartPro.js.map → BarChartHorizontalPro.js.map} +1 -1
- package/dist/BarChartHorizontalStackedPro.js +127 -0
- package/dist/BarChartHorizontalStackedPro.js.map +1 -0
- package/dist/BarChartPro.js +14 -14
- package/dist/BarChartStackedPro.js +126 -0
- package/dist/BarChartStackedPro.js.map +1 -0
- package/dist/{BaseButton-B7qw7XIU.js → BaseButton-DsX3rdls.js} +2 -2
- package/dist/{BaseButton-B7qw7XIU.js.map → BaseButton-DsX3rdls.js.map} +1 -1
- package/dist/DateRangeSelectFieldPro.js +2 -2
- package/dist/DonutChartPro.js +2 -2
- package/dist/DonutLabelChartPro.js +2 -2
- package/dist/{EditorCard-BLbWRaLj.js → EditorCard-DITswftb.js} +8 -8
- package/dist/{EditorCard-BLbWRaLj.js.map → EditorCard-DITswftb.js.map} +1 -1
- package/dist/MultiSelectFieldPro.js +4 -4
- package/dist/PieChartPro.js +5 -5
- package/dist/{SingleSelectField-Bxn2EwRe.js → SingleSelectField-CPjeHQQf.js} +5 -5
- package/dist/{SingleSelectField-Bxn2EwRe.js.map → SingleSelectField-CPjeHQQf.js.map} +1 -1
- package/dist/SingleSelectFieldPro.js +2 -2
- package/dist/{af-BJQHLDVh.js → af-CnLs_3B-.js} +2 -2
- package/dist/{af-BJQHLDVh.js.map → af-CnLs_3B-.js.map} +1 -1
- package/dist/{am-D8Oplqn8.js → am-Ct2Q88Ur.js} +2 -2
- package/dist/{am-D8Oplqn8.js.map → am-Ct2Q88Ur.js.map} +1 -1
- package/dist/{ar-Brb9rt06.js → ar-juJCOqWG.js} +2 -2
- package/dist/{ar-Brb9rt06.js.map → ar-juJCOqWG.js.map} +1 -1
- package/dist/{az-D9dUiQ2w.js → az-MjWX0vjt.js} +2 -2
- package/dist/{az-D9dUiQ2w.js.map → az-MjWX0vjt.js.map} +1 -1
- package/dist/bars.utils-BNWXOTjn.js +329 -0
- package/dist/bars.utils-BNWXOTjn.js.map +1 -0
- package/dist/{be-C1INHp1g.js → be--LoRzYFv.js} +2 -2
- package/dist/{be-C1INHp1g.js.map → be--LoRzYFv.js.map} +1 -1
- package/dist/{bg-JX7vZp77.js → bg-B4Dl7ink.js} +2 -2
- package/dist/{bg-JX7vZp77.js.map → bg-B4Dl7ink.js.map} +1 -1
- package/dist/{bi-Beioo2FV.js → bi-BhOvZZst.js} +2 -2
- package/dist/{bi-Beioo2FV.js.map → bi-BhOvZZst.js.map} +1 -1
- package/dist/{bm-BDuvcfmL.js → bm-DojIRUlK.js} +2 -2
- package/dist/{bm-BDuvcfmL.js.map → bm-DojIRUlK.js.map} +1 -1
- package/dist/{bn-DFjnOOlY.js → bn-3P24_5IW.js} +2 -2
- package/dist/{bn-DFjnOOlY.js.map → bn-3P24_5IW.js.map} +1 -1
- package/dist/{bo-DxvMsN2m.js → bo-hwyb_0oT.js} +2 -2
- package/dist/{bo-DxvMsN2m.js.map → bo-hwyb_0oT.js.map} +1 -1
- package/dist/{br-B6boazgP.js → br-C35iDXkF.js} +2 -2
- package/dist/{br-B6boazgP.js.map → br-C35iDXkF.js.map} +1 -1
- package/dist/{bs-BFe2Kyqh.js → bs-hP2MMafv.js} +2 -2
- package/dist/{bs-BFe2Kyqh.js.map → bs-hP2MMafv.js.map} +1 -1
- package/dist/{ca-CrP79Dwk.js → ca-B1w3ixU_.js} +2 -2
- package/dist/{ca-CrP79Dwk.js.map → ca-B1w3ixU_.js.map} +1 -1
- package/dist/{component.constants-CLoOVANT.js → component.constants-NgQHE7x7.js} +363 -341
- package/dist/{component.constants-CLoOVANT.js.map → component.constants-NgQHE7x7.js.map} +1 -1
- package/dist/{cs-D_V5ckLJ.js → cs-6qON31iS.js} +2 -2
- package/dist/{cs-D_V5ckLJ.js.map → cs-6qON31iS.js.map} +1 -1
- package/dist/{cv-DNZne3Mm.js → cv-BwVYOwJ3.js} +2 -2
- package/dist/{cv-DNZne3Mm.js.map → cv-BwVYOwJ3.js.map} +1 -1
- package/dist/{cy-Bn_Pu6_I.js → cy-Cuvdzihw.js} +2 -2
- package/dist/{cy-Bn_Pu6_I.js.map → cy-Cuvdzihw.js.map} +1 -1
- package/dist/{da-dj3-5MvF.js → da-mn3vpOnQ.js} +2 -2
- package/dist/{da-dj3-5MvF.js.map → da-mn3vpOnQ.js.map} +1 -1
- package/dist/{de-Bmb0k6dw.js → de-DObwkT8B.js} +2 -2
- package/dist/{de-Bmb0k6dw.js.map → de-DObwkT8B.js.map} +1 -1
- package/dist/{dv-_VxBHoCd.js → dv-srRalLCn.js} +2 -2
- package/dist/{dv-_VxBHoCd.js.map → dv-srRalLCn.js.map} +1 -1
- package/dist/{el-Bu_xJiAE.js → el-D1xWbx2m.js} +2 -2
- package/dist/{el-Bu_xJiAE.js.map → el-D1xWbx2m.js.map} +1 -1
- package/dist/embeddable-components.json +8 -4
- package/dist/{eo-DjZG2g2q.js → eo-CeOv2Ef6.js} +2 -2
- package/dist/{eo-DjZG2g2q.js.map → eo-CeOv2Ef6.js.map} +1 -1
- package/dist/{es-BeXWQqfj.js → es-9fmnZpHw.js} +2 -2
- package/dist/{es-BeXWQqfj.js.map → es-9fmnZpHw.js.map} +1 -1
- package/dist/{et-u-qVMWDm.js → et-BIxU0JJ8.js} +2 -2
- package/dist/{et-u-qVMWDm.js.map → et-BIxU0JJ8.js.map} +1 -1
- package/dist/{eu-BUDELLAW.js → eu-DcALdBQ4.js} +2 -2
- package/dist/{eu-BUDELLAW.js.map → eu-DcALdBQ4.js.map} +1 -1
- package/dist/{fa-DlAtFR_s.js → fa-CGQk6nft.js} +2 -2
- package/dist/{fa-DlAtFR_s.js.map → fa-CGQk6nft.js.map} +1 -1
- package/dist/{fi-DoETBqy3.js → fi-C4x9vZW8.js} +2 -2
- package/dist/{fi-DoETBqy3.js.map → fi-C4x9vZW8.js.map} +1 -1
- package/dist/{fo-B0oR-QT2.js → fo-BKWKB-aZ.js} +2 -2
- package/dist/{fo-B0oR-QT2.js.map → fo-BKWKB-aZ.js.map} +1 -1
- package/dist/{formatter.utils-CuQgLTFP.js → formatter.utils-B-lJU39p.js} +2 -2
- package/dist/{formatter.utils-CuQgLTFP.js.map → formatter.utils-B-lJU39p.js.map} +1 -1
- package/dist/{fr-DwohI60X.js → fr-B3oQrVEw.js} +2 -2
- package/dist/{fr-DwohI60X.js.map → fr-B3oQrVEw.js.map} +1 -1
- package/dist/{fy-_SaQoCuF.js → fy-loGG1e6f.js} +2 -2
- package/dist/{fy-_SaQoCuF.js.map → fy-loGG1e6f.js.map} +1 -1
- package/dist/{ga-CH2NxWaB.js → ga-BZqdU-6L.js} +2 -2
- package/dist/{ga-CH2NxWaB.js.map → ga-BZqdU-6L.js.map} +1 -1
- package/dist/{gd-C5dDYz9o.js → gd-B1v_dUSP.js} +2 -2
- package/dist/{gd-C5dDYz9o.js.map → gd-B1v_dUSP.js.map} +1 -1
- package/dist/{gl-D3tWygqD.js → gl-hn8ZH5cc.js} +2 -2
- package/dist/{gl-D3tWygqD.js.map → gl-hn8ZH5cc.js.map} +1 -1
- package/dist/{gu-D0ETL3P7.js → gu-B4Sq1asa.js} +2 -2
- package/dist/{gu-D0ETL3P7.js.map → gu-B4Sq1asa.js.map} +1 -1
- package/dist/{he-D1GXmuFz.js → he-D7iojRfa.js} +2 -2
- package/dist/{he-D1GXmuFz.js.map → he-D7iojRfa.js.map} +1 -1
- package/dist/{hi-B49MCEtf.js → hi-CRXXvqs0.js} +2 -2
- package/dist/{hi-B49MCEtf.js.map → hi-CRXXvqs0.js.map} +1 -1
- package/dist/{hr-CIDh-BO9.js → hr-D0K4KALv.js} +2 -2
- package/dist/{hr-CIDh-BO9.js.map → hr-D0K4KALv.js.map} +1 -1
- package/dist/{ht-Btv-At0W.js → ht-BSdEt2yL.js} +2 -2
- package/dist/{ht-Btv-At0W.js.map → ht-BSdEt2yL.js.map} +1 -1
- package/dist/{hu-trwoehWV.js → hu-DnSegm34.js} +2 -2
- package/dist/{hu-trwoehWV.js.map → hu-DnSegm34.js.map} +1 -1
- package/dist/{id-CuwhinMH.js → id-QlWUWjhR.js} +2 -2
- package/dist/{id-CuwhinMH.js.map → id-QlWUWjhR.js.map} +1 -1
- package/dist/{index-C1zrYjih.js → index-2WoFpJfg.js} +111 -111
- package/dist/{index-C1zrYjih.js.map → index-2WoFpJfg.js.map} +1 -1
- package/dist/{index-DtW0kTkN.js → index-BB8vsUSC.js} +22 -22
- package/dist/{index-DtW0kTkN.js.map → index-BB8vsUSC.js.map} +1 -1
- package/dist/{index-CWydaR-j.js → index-Cj8Wb4RU.js} +5 -5
- package/dist/{index-CWydaR-j.js.map → index-Cj8Wb4RU.js.map} +1 -1
- package/dist/{index-o0VrbsfA.js → index-Cqs54QdW.js} +4 -4
- package/dist/{index-o0VrbsfA.js.map → index-Cqs54QdW.js.map} +1 -1
- package/dist/{index-BxB4iYt6.js → index-CzMi6ov_.js} +7 -7
- package/dist/{index-BxB4iYt6.js.map → index-CzMi6ov_.js.map} +1 -1
- package/dist/{index-5cAOoiJ-.js → index-DcQQSzl0.js} +4 -4
- package/dist/{index-5cAOoiJ-.js.map → index-DcQQSzl0.js.map} +1 -1
- package/dist/index.js +87 -84
- package/dist/{is-8yGMkUJ0.js → is-CuiZU1_D.js} +2 -2
- package/dist/{is-8yGMkUJ0.js.map → is-CuiZU1_D.js.map} +1 -1
- package/dist/{it-FalN1nrz.js → it-Dev25yPO.js} +2 -2
- package/dist/{it-FalN1nrz.js.map → it-Dev25yPO.js.map} +1 -1
- package/dist/{ja-z0KQJ_1N.js → ja-B4rMehGO.js} +2 -2
- package/dist/{ja-z0KQJ_1N.js.map → ja-B4rMehGO.js.map} +1 -1
- package/dist/{jv-Bj1GDe71.js → jv-DDnmrPD3.js} +2 -2
- package/dist/{jv-Bj1GDe71.js.map → jv-DDnmrPD3.js.map} +1 -1
- package/dist/{ka-6DfhvPO5.js → ka-CasBHIJk.js} +2 -2
- package/dist/{ka-6DfhvPO5.js.map → ka-CasBHIJk.js.map} +1 -1
- package/dist/{kk-NcOxYuyJ.js → kk-CesV_35B.js} +2 -2
- package/dist/{kk-NcOxYuyJ.js.map → kk-CesV_35B.js.map} +1 -1
- package/dist/{km-DF-NOv83.js → km-urTs216T.js} +2 -2
- package/dist/{km-DF-NOv83.js.map → km-urTs216T.js.map} +1 -1
- package/dist/{kn-Ho2ZfbDt.js → kn-BnH5-Y23.js} +2 -2
- package/dist/{kn-Ho2ZfbDt.js.map → kn-BnH5-Y23.js.map} +1 -1
- package/dist/{ko-C1410O4e.js → ko-niVQkAuq.js} +2 -2
- package/dist/{ko-C1410O4e.js.map → ko-niVQkAuq.js.map} +1 -1
- package/dist/{ku-D5xUTY4J.js → ku-DM2rOvG2.js} +2 -2
- package/dist/{ku-D5xUTY4J.js.map → ku-DM2rOvG2.js.map} +1 -1
- package/dist/{ky-C8ZbT8av.js → ky-CDwZLZ-b.js} +2 -2
- package/dist/{ky-C8ZbT8av.js.map → ky-CDwZLZ-b.js.map} +1 -1
- package/dist/{lb-BpVcVtkY.js → lb-Dw9P1FIp.js} +2 -2
- package/dist/{lb-BpVcVtkY.js.map → lb-Dw9P1FIp.js.map} +1 -1
- package/dist/{lo-CudMZuum.js → lo-c-EiXCrf.js} +2 -2
- package/dist/{lo-CudMZuum.js.map → lo-c-EiXCrf.js.map} +1 -1
- package/dist/{lt-XC7iR2HA.js → lt-Bfe4y5Dl.js} +2 -2
- package/dist/{lt-XC7iR2HA.js.map → lt-Bfe4y5Dl.js.map} +1 -1
- package/dist/{lv-DoNFiufs.js → lv--3C7xjw-.js} +2 -2
- package/dist/{lv-DoNFiufs.js.map → lv--3C7xjw-.js.map} +1 -1
- package/dist/{me-COrRP-AS.js → me-BkArR4nT.js} +2 -2
- package/dist/{me-COrRP-AS.js.map → me-BkArR4nT.js.map} +1 -1
- package/dist/{mi-CxKSy3Qy.js → mi-CF2WLQkN.js} +2 -2
- package/dist/{mi-CxKSy3Qy.js.map → mi-CF2WLQkN.js.map} +1 -1
- package/dist/{mk-DfDFB2-_.js → mk-II4IyBMk.js} +2 -2
- package/dist/{mk-DfDFB2-_.js.map → mk-II4IyBMk.js.map} +1 -1
- package/dist/{ml-BfXVRmLW.js → ml-CYtMNXTI.js} +2 -2
- package/dist/{ml-BfXVRmLW.js.map → ml-CYtMNXTI.js.map} +1 -1
- package/dist/{mn-EEJIXsKG.js → mn-CohQjSGK.js} +2 -2
- package/dist/{mn-EEJIXsKG.js.map → mn-CohQjSGK.js.map} +1 -1
- package/dist/{mr-F883Pb4J.js → mr-1xQCJQxq.js} +2 -2
- package/dist/{mr-F883Pb4J.js.map → mr-1xQCJQxq.js.map} +1 -1
- package/dist/{ms-CYhVmKal.js → ms-DncYZ3ol.js} +2 -2
- package/dist/{ms-CYhVmKal.js.map → ms-DncYZ3ol.js.map} +1 -1
- package/dist/{mt-CNpSqPWF.js → mt-e-tavZXY.js} +2 -2
- package/dist/{mt-CNpSqPWF.js.map → mt-e-tavZXY.js.map} +1 -1
- package/dist/{my-Djg4C1KH.js → my-CLxHacCV.js} +2 -2
- package/dist/{my-Djg4C1KH.js.map → my-CLxHacCV.js.map} +1 -1
- package/dist/{nb-D5CZq9Wu.js → nb-B5Ht3Nx-.js} +2 -2
- package/dist/{nb-D5CZq9Wu.js.map → nb-B5Ht3Nx-.js.map} +1 -1
- package/dist/{ne-DKzndUZm.js → ne-BQo27ybL.js} +2 -2
- package/dist/{ne-DKzndUZm.js.map → ne-BQo27ybL.js.map} +1 -1
- package/dist/{nl-B8uXbhPS.js → nl-qdMYiR4o.js} +2 -2
- package/dist/{nl-B8uXbhPS.js.map → nl-qdMYiR4o.js.map} +1 -1
- package/dist/{nn-B6pAAV14.js → nn-DIXLcGGq.js} +2 -2
- package/dist/{nn-B6pAAV14.js.map → nn-DIXLcGGq.js.map} +1 -1
- package/dist/{object.utils-BILSXABS.js → object.utils-fwmkLUFj.js} +954 -953
- package/dist/object.utils-fwmkLUFj.js.map +1 -0
- package/dist/{pies.utils-BaGzYkUW.js → pies.utils-Dn0DnfO7.js} +4 -4
- package/dist/{pies.utils-BaGzYkUW.js.map → pies.utils-Dn0DnfO7.js.map} +1 -1
- package/dist/{pl-DKZCPSDL.js → pl-DBP-UX26.js} +2 -2
- package/dist/{pl-DKZCPSDL.js.map → pl-DBP-UX26.js.map} +1 -1
- package/dist/{pt-yqn9aQVP.js → pt-CtsXTCs5.js} +2 -2
- package/dist/{pt-yqn9aQVP.js.map → pt-CtsXTCs5.js.map} +1 -1
- package/dist/remarkable-pro/components/charts/bars/BarChartGroupedPro/index.d.ts +25 -0
- package/dist/remarkable-pro/components/charts/bars/BarChartGroupedPro/index.d.ts.map +1 -0
- package/dist/remarkable-pro/components/charts/bars/BarChartHorizontalGroupedPro/index.d.ts +25 -0
- package/dist/remarkable-pro/components/charts/bars/BarChartHorizontalGroupedPro/index.d.ts.map +1 -0
- package/dist/remarkable-pro/components/charts/bars/{BarHorizontalChartPro → BarChartHorizontalPro}/index.d.ts +3 -3
- package/dist/remarkable-pro/components/charts/bars/{BarHorizontalChartPro → BarChartHorizontalPro}/index.d.ts.map +1 -1
- package/dist/remarkable-pro/components/charts/bars/BarChartHorizontalStackedPro/index.d.ts +25 -0
- package/dist/remarkable-pro/components/charts/bars/BarChartHorizontalStackedPro/index.d.ts.map +1 -0
- package/dist/remarkable-pro/components/charts/bars/BarChartStackedPro/index.d.ts +26 -0
- package/dist/remarkable-pro/components/charts/bars/BarChartStackedPro/index.d.ts.map +1 -0
- package/dist/remarkable-pro/components/charts/bars/bars.utils.d.ts +6 -0
- package/dist/remarkable-pro/components/charts/bars/bars.utils.d.ts.map +1 -1
- package/dist/remarkable-pro/components/component.constants.d.ts +31 -10
- package/dist/remarkable-pro/components/component.constants.d.ts.map +1 -1
- package/dist/remarkable-ui/charts/bars/BarChart.d.ts.map +1 -1
- package/dist/remarkable-ui/charts/bars/BarChart.stories.d.ts +0 -8
- package/dist/remarkable-ui/charts/bars/BarChart.stories.d.ts.map +1 -1
- package/dist/remarkable-ui/charts/bars/bars.types.d.ts +2 -1
- package/dist/remarkable-ui/charts/bars/bars.types.d.ts.map +1 -1
- package/dist/remarkable-ui/charts/bars/bars.utils.d.ts.map +1 -1
- package/dist/remarkable-ui/charts/chartjs.constants.d.ts.map +1 -1
- package/dist/remarkable-ui.css +1 -1
- package/dist/{ro-aI-7xPp3.js → ro-DvambtIt.js} +2 -2
- package/dist/{ro-aI-7xPp3.js.map → ro-DvambtIt.js.map} +1 -1
- package/dist/{ru-Cff6FuVG.js → ru-YcP15Tz-.js} +2 -2
- package/dist/{ru-Cff6FuVG.js.map → ru-YcP15Tz-.js.map} +1 -1
- package/dist/{rw-HDXBspX0.js → rw-BPeCrldK.js} +2 -2
- package/dist/{rw-HDXBspX0.js.map → rw-BPeCrldK.js.map} +1 -1
- package/dist/{sd-B17r8J8c.js → sd-Cyhsw1N3.js} +2 -2
- package/dist/{sd-B17r8J8c.js.map → sd-Cyhsw1N3.js.map} +1 -1
- package/dist/{se-DTH4WwYM.js → se-KIPseRpb.js} +2 -2
- package/dist/{se-DTH4WwYM.js.map → se-KIPseRpb.js.map} +1 -1
- package/dist/{si-CzzTGpIQ.js → si-Ch_-CbHq.js} +2 -2
- package/dist/{si-CzzTGpIQ.js.map → si-Ch_-CbHq.js.map} +1 -1
- package/dist/{sk-DHq1eVTD.js → sk-CsAv3PJZ.js} +2 -2
- package/dist/{sk-DHq1eVTD.js.map → sk-CsAv3PJZ.js.map} +1 -1
- package/dist/{sl-CjB5AsyI.js → sl-CthKKIFz.js} +2 -2
- package/dist/{sl-CjB5AsyI.js.map → sl-CthKKIFz.js.map} +1 -1
- package/dist/{sq-DWQx7ZKs.js → sq-D00wutLV.js} +2 -2
- package/dist/{sq-DWQx7ZKs.js.map → sq-D00wutLV.js.map} +1 -1
- package/dist/{sr-LTxBU7Be.js → sr-IY_yMpnO.js} +2 -2
- package/dist/{sr-LTxBU7Be.js.map → sr-IY_yMpnO.js.map} +1 -1
- package/dist/{ss-DZUh03oU.js → ss-BifTnEVS.js} +2 -2
- package/dist/{ss-DZUh03oU.js.map → ss-BifTnEVS.js.map} +1 -1
- package/dist/{sv-uXRHEMPG.js → sv-JiMuzVgA.js} +2 -2
- package/dist/{sv-uXRHEMPG.js.map → sv-JiMuzVgA.js.map} +1 -1
- package/dist/{sw-VYFFhOA7.js → sw-C-P6c_p7.js} +2 -2
- package/dist/{sw-VYFFhOA7.js.map → sw-C-P6c_p7.js.map} +1 -1
- package/dist/{ta-DoCY0en3.js → ta-DZIcatqu.js} +2 -2
- package/dist/{ta-DoCY0en3.js.map → ta-DZIcatqu.js.map} +1 -1
- package/dist/{te-9BKiDokZ.js → te-yeXqY2Bx.js} +2 -2
- package/dist/{te-9BKiDokZ.js.map → te-yeXqY2Bx.js.map} +1 -1
- package/dist/{tet-jOaBgmVv.js → tet-YJhajf-U.js} +2 -2
- package/dist/{tet-jOaBgmVv.js.map → tet-YJhajf-U.js.map} +1 -1
- package/dist/{tg-mMdicFio.js → tg-DcSoGHh4.js} +2 -2
- package/dist/{tg-mMdicFio.js.map → tg-DcSoGHh4.js.map} +1 -1
- package/dist/{th-BeTWaoe0.js → th-CED_V_MX.js} +2 -2
- package/dist/{th-BeTWaoe0.js.map → th-CED_V_MX.js.map} +1 -1
- package/dist/{tk-Ce7sFqd1.js → tk-B-ABE_Bb.js} +2 -2
- package/dist/{tk-Ce7sFqd1.js.map → tk-B-ABE_Bb.js.map} +1 -1
- package/dist/{tlh-yOMkmA-9.js → tlh-CdJdqNCY.js} +2 -2
- package/dist/{tlh-yOMkmA-9.js.map → tlh-CdJdqNCY.js.map} +1 -1
- package/dist/{tr-DS0HkH4q.js → tr-CzDFBN2K.js} +2 -2
- package/dist/{tr-DS0HkH4q.js.map → tr-CzDFBN2K.js.map} +1 -1
- package/dist/{tzl-f8eFKrOO.js → tzl-CXQD8fqf.js} +2 -2
- package/dist/{tzl-f8eFKrOO.js.map → tzl-CXQD8fqf.js.map} +1 -1
- package/dist/{tzm-yA3GId6L.js → tzm-4GazUo8l.js} +2 -2
- package/dist/{tzm-yA3GId6L.js.map → tzm-4GazUo8l.js.map} +1 -1
- package/dist/{uk-C8o0PqKJ.js → uk-Cz1Odf9s.js} +2 -2
- package/dist/{uk-C8o0PqKJ.js.map → uk-Cz1Odf9s.js.map} +1 -1
- package/dist/{ur-jLZsltfA.js → ur-Dc-TWWmB.js} +2 -2
- package/dist/{ur-jLZsltfA.js.map → ur-Dc-TWWmB.js.map} +1 -1
- package/dist/{uz-DSki_OPD.js → uz-DTtIPVwQ.js} +2 -2
- package/dist/{uz-DSki_OPD.js.map → uz-DTtIPVwQ.js.map} +1 -1
- package/dist/{vi-DTqW27lY.js → vi-mbD8zJ8T.js} +2 -2
- package/dist/{vi-DTqW27lY.js.map → vi-mbD8zJ8T.js.map} +1 -1
- package/dist/{x-pseudo-CF73M0on.js → x-pseudo-DNdL1673.js} +2 -2
- package/dist/{x-pseudo-CF73M0on.js.map → x-pseudo-DNdL1673.js.map} +1 -1
- package/dist/{yo-C0_qoTHY.js → yo-intknrFx.js} +2 -2
- package/dist/{yo-C0_qoTHY.js.map → yo-intknrFx.js.map} +1 -1
- package/dist/{zh-cn-DqkdrvbO.js → zh-cn-4Mz6m0bH.js} +2 -2
- package/dist/{zh-cn-DqkdrvbO.js.map → zh-cn-4Mz6m0bH.js.map} +1 -1
- package/dist/{zh-hk-ctGHVjjj.js → zh-hk-C8Bu0vSE.js} +2 -2
- package/dist/{zh-hk-ctGHVjjj.js.map → zh-hk-C8Bu0vSE.js.map} +1 -1
- package/dist/{zh-tw-BqgvhSvU.js → zh-tw-Z-wZ_YQq.js} +2 -2
- package/dist/{zh-tw-BqgvhSvU.js.map → zh-tw-Z-wZ_YQq.js.map} +1 -1
- package/package.json +1 -2
- package/dist/bars.utils-CLEsbNP5.js +0 -432
- package/dist/bars.utils-CLEsbNP5.js.map +0 -1
- package/dist/object.utils-BILSXABS.js.map +0 -1
|
@@ -455,9 +455,9 @@ const ic = "dimension", sc = "measure", oc = (e) => Array.isArray(e) ? e.flatMap
|
|
|
455
455
|
if (!n.length)
|
|
456
456
|
return t.error = "select must not be empty", t;
|
|
457
457
|
for (const s of n) {
|
|
458
|
-
if (!(typeof s == "object" && (Tf(s) ||
|
|
458
|
+
if (!(typeof s == "object" && (Tf(s) || Ar(s))))
|
|
459
459
|
return t.error = "select must only contain Dimension, Measure or TimeDimension objects", t;
|
|
460
|
-
if (
|
|
460
|
+
if (Ar(s))
|
|
461
461
|
t.timeDimensions.push(s);
|
|
462
462
|
else if (rc(s)) {
|
|
463
463
|
const r = s, a = (i = r.inputs) == null ? void 0 : i.granularity;
|
|
@@ -500,11 +500,11 @@ function Pf(e) {
|
|
|
500
500
|
}
|
|
501
501
|
return t.dimensions = Pr(t.dimensions), t.measures = Pr(t.measures), t;
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Af(e, t, n, i) {
|
|
504
504
|
const s = wf(e ?? [], t, n, i);
|
|
505
505
|
return s.length > 0 ? `Cannot order by ${s.join(", ")} as no such ${s.length === 1 ? "property" : "properties"} has been loaded.` : null;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Rf(e) {
|
|
508
508
|
if (e) {
|
|
509
509
|
const t = e.map((n, i) => ({
|
|
510
510
|
index: i,
|
|
@@ -548,10 +548,10 @@ const Ef = "embeddable-event:load-data", Df = (e, t, n, i) => {
|
|
|
548
548
|
const { dimensions: o, measures: r, timeDimensions: a } = s;
|
|
549
549
|
if (!(o.length || r.length || a.length))
|
|
550
550
|
return "At least a dimension or a measure should be selected.";
|
|
551
|
-
const c =
|
|
551
|
+
const c = Af(t.orderBy, o, r, a);
|
|
552
552
|
if (c)
|
|
553
553
|
return c;
|
|
554
|
-
const u =
|
|
554
|
+
const u = Rf(t.filters);
|
|
555
555
|
if (u)
|
|
556
556
|
return u;
|
|
557
557
|
const d = Se(t.orderBy, {
|
|
@@ -569,13 +569,13 @@ const Ef = "embeddable-event:load-data", Df = (e, t, n, i) => {
|
|
|
569
569
|
}, Jw = (e) => ({
|
|
570
570
|
requestParams: e,
|
|
571
571
|
dataLoader: Df
|
|
572
|
-
}), rc = (e) => (e == null ? void 0 : e.__type__) === ic, ac = (e) => (e == null ? void 0 : e.__type__) === sc,
|
|
572
|
+
}), rc = (e) => (e == null ? void 0 : e.__type__) === ic, ac = (e) => (e == null ? void 0 : e.__type__) === sc, Ar = (e) => "dimension" in (e ?? {}) && !("__type__" in e), Tf = (e) => rc(e) || ac(e), Rr = (e, t) => ({
|
|
573
573
|
operation: e,
|
|
574
574
|
value: t ?? null,
|
|
575
575
|
__embeddableVariableMeta: !0
|
|
576
576
|
}), Zw = {
|
|
577
|
-
noFilter: () =>
|
|
578
|
-
of: (e) =>
|
|
577
|
+
noFilter: () => Rr("NO_FILTER"),
|
|
578
|
+
of: (e) => Rr("VALUE", e)
|
|
579
579
|
};
|
|
580
580
|
Vt("string", {
|
|
581
581
|
transform: (e) => e,
|
|
@@ -673,7 +673,7 @@ const z = (e) => typeof e == "string", hn = () => {
|
|
|
673
673
|
e.forEach((i) => {
|
|
674
674
|
t[i] && (n[i] = t[i]);
|
|
675
675
|
});
|
|
676
|
-
}, Nf = /###/g, Tr = (e) => e && e.indexOf("###") > -1 ? e.replace(Nf, ".") : e, Lr = (e) => !e || z(e),
|
|
676
|
+
}, Nf = /###/g, Tr = (e) => e && e.indexOf("###") > -1 ? e.replace(Nf, ".") : e, Lr = (e) => !e || z(e), Rn = (e, t, n) => {
|
|
677
677
|
const i = z(t) ? t.split(".") : t;
|
|
678
678
|
let s = 0;
|
|
679
679
|
for (; s < i.length - 1; ) {
|
|
@@ -689,26 +689,26 @@ const z = (e) => typeof e == "string", hn = () => {
|
|
|
689
689
|
const {
|
|
690
690
|
obj: i,
|
|
691
691
|
k: s
|
|
692
|
-
} =
|
|
692
|
+
} = Rn(e, t, Object);
|
|
693
693
|
if (i !== void 0 || t.length === 1) {
|
|
694
694
|
i[s] = n;
|
|
695
695
|
return;
|
|
696
696
|
}
|
|
697
|
-
let o = t[t.length - 1], r = t.slice(0, t.length - 1), a =
|
|
697
|
+
let o = t[t.length - 1], r = t.slice(0, t.length - 1), a = Rn(e, r, Object);
|
|
698
698
|
for (; a.obj === void 0 && r.length; )
|
|
699
|
-
o = `${r[r.length - 1]}.${o}`, r = r.slice(0, r.length - 1), a =
|
|
699
|
+
o = `${r[r.length - 1]}.${o}`, r = r.slice(0, r.length - 1), a = Rn(e, r, Object), a != null && a.obj && typeof a.obj[`${a.k}.${o}`] < "u" && (a.obj = void 0);
|
|
700
700
|
a.obj[`${a.k}.${o}`] = n;
|
|
701
701
|
}, jf = (e, t, n, i) => {
|
|
702
702
|
const {
|
|
703
703
|
obj: s,
|
|
704
704
|
k: o
|
|
705
|
-
} =
|
|
705
|
+
} = Rn(e, t, Object);
|
|
706
706
|
s[o] = s[o] || [], s[o].push(n);
|
|
707
707
|
}, ji = (e, t) => {
|
|
708
708
|
const {
|
|
709
709
|
obj: n,
|
|
710
710
|
k: i
|
|
711
|
-
} =
|
|
711
|
+
} = Rn(e, t);
|
|
712
712
|
if (n && Object.prototype.hasOwnProperty.call(n, i))
|
|
713
713
|
return n[i];
|
|
714
714
|
}, zf = (e, t, n) => {
|
|
@@ -1024,9 +1024,9 @@ class Bi extends as {
|
|
|
1024
1024
|
let p = h == null ? void 0 : h.res;
|
|
1025
1025
|
const g = (h == null ? void 0 : h.usedKey) || a, m = (h == null ? void 0 : h.exactUsedKey) || a, b = ["[object Number]", "[object Function]", "[object RegExp]"], y = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, v = !this.i18nFormat || this.i18nFormat.handleAsObject, _ = s.count !== void 0 && !z(s.count), w = Bi.hasDefaultValue(s), C = _ ? this.pluralResolver.getSuffix(d, s.count, s) : "", S = s.ordinal && _ ? this.pluralResolver.getSuffix(d, s.count, {
|
|
1026
1026
|
ordinal: !1
|
|
1027
|
-
}) : "", k = _ && !s.ordinal && s.count === 0,
|
|
1027
|
+
}) : "", k = _ && !s.ordinal && s.count === 0, A = k && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${C}`] || s[`defaultValue${S}`] || s.defaultValue;
|
|
1028
1028
|
let P = p;
|
|
1029
|
-
v && !p && w && (P =
|
|
1029
|
+
v && !p && w && (P = A);
|
|
1030
1030
|
const E = jr(P), D = Object.prototype.toString.apply(P);
|
|
1031
1031
|
if (v && P && E && b.indexOf(D) < 0 && !(z(y) && Array.isArray(P))) {
|
|
1032
1032
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
@@ -1044,7 +1044,7 @@ class Bi extends as {
|
|
|
1044
1044
|
const N = `${j}${r}${O}`;
|
|
1045
1045
|
w && !p ? F[O] = this.translate(N, {
|
|
1046
1046
|
...s,
|
|
1047
|
-
defaultValue: jr(
|
|
1047
|
+
defaultValue: jr(A) ? A[O] : void 0,
|
|
1048
1048
|
joinArrays: !1,
|
|
1049
1049
|
ns: l
|
|
1050
1050
|
}) : F[O] = this.translate(N, {
|
|
@@ -1059,10 +1059,10 @@ class Bi extends as {
|
|
|
1059
1059
|
p = p.join(y), p && (p = this.extendTranslation(p, t, s, i));
|
|
1060
1060
|
else {
|
|
1061
1061
|
let I = !1, F = !1;
|
|
1062
|
-
!this.isValidLookup(p) && w && (I = !0, p =
|
|
1063
|
-
const O = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && F ? void 0 : p, N = w &&
|
|
1062
|
+
!this.isValidLookup(p) && w && (I = !0, p = A), this.isValidLookup(p) || (F = !0, p = a);
|
|
1063
|
+
const O = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && F ? void 0 : p, N = w && A !== p && this.options.updateMissing;
|
|
1064
1064
|
if (F || I || N) {
|
|
1065
|
-
if (this.logger.log(N ? "updateKey" : "missingKey", d, c, a, N ?
|
|
1065
|
+
if (this.logger.log(N ? "updateKey" : "missingKey", d, c, a, N ? A : p), r) {
|
|
1066
1066
|
const V = this.resolve(a, {
|
|
1067
1067
|
...s,
|
|
1068
1068
|
keySeparator: !1
|
|
@@ -1070,10 +1070,10 @@ class Bi extends as {
|
|
|
1070
1070
|
V && V.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
1071
1071
|
}
|
|
1072
1072
|
let T = [];
|
|
1073
|
-
const
|
|
1074
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
1075
|
-
for (let V = 0; V <
|
|
1076
|
-
T.push(
|
|
1073
|
+
const R = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
|
|
1074
|
+
if (this.options.saveMissingTo === "fallback" && R && R[0])
|
|
1075
|
+
for (let V = 0; V < R.length; V++)
|
|
1076
|
+
T.push(R[V]);
|
|
1077
1077
|
else this.options.saveMissingTo === "all" ? T = this.languageUtils.toResolveHierarchy(s.lng || this.language) : T.push(s.lng || this.language);
|
|
1078
1078
|
const Y = (V, J, at) => {
|
|
1079
1079
|
var wt;
|
|
@@ -1083,9 +1083,9 @@ class Bi extends as {
|
|
|
1083
1083
|
this.options.saveMissing && (this.options.saveMissingPlurals && _ ? T.forEach((V) => {
|
|
1084
1084
|
const J = this.pluralResolver.getSuffixes(V, s);
|
|
1085
1085
|
k && s[`defaultValue${this.options.pluralSeparator}zero`] && J.indexOf(`${this.options.pluralSeparator}zero`) < 0 && J.push(`${this.options.pluralSeparator}zero`), J.forEach((at) => {
|
|
1086
|
-
Y([V], a + at, s[`defaultValue${at}`] ||
|
|
1086
|
+
Y([V], a + at, s[`defaultValue${at}`] || A);
|
|
1087
1087
|
});
|
|
1088
|
-
}) : Y(T, a,
|
|
1088
|
+
}) : Y(T, a, A));
|
|
1089
1089
|
}
|
|
1090
1090
|
p = this.extendTranslation(p, t, s, h, i), F && p === a && this.options.appendNamespaceToMissingKey && (p = `${c}${u}${a}`), (F || I) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${u}${a}` : a, I ? p : void 0, s));
|
|
1091
1091
|
}
|
|
@@ -1154,10 +1154,10 @@ class Bi extends as {
|
|
|
1154
1154
|
else {
|
|
1155
1155
|
let S;
|
|
1156
1156
|
f && (S = this.pluralResolver.getSuffix(v, n.count, n));
|
|
1157
|
-
const k = `${this.options.pluralSeparator}zero`,
|
|
1158
|
-
if (f && (n.ordinal && S.indexOf(
|
|
1157
|
+
const k = `${this.options.pluralSeparator}zero`, A = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
1158
|
+
if (f && (n.ordinal && S.indexOf(A) === 0 && _.push(u + S.replace(A, this.options.pluralSeparator)), _.push(u + S), h && _.push(u + k)), p) {
|
|
1159
1159
|
const P = `${u}${this.options.contextSeparator || "_"}${n.context}`;
|
|
1160
|
-
_.push(P), f && (n.ordinal && S.indexOf(
|
|
1160
|
+
_.push(P), f && (n.ordinal && S.indexOf(A) === 0 && _.push(P + S.replace(A, this.options.pluralSeparator)), _.push(P + S), h && _.push(P + k));
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
let w;
|
|
@@ -2308,7 +2308,7 @@ function Ch(e) {
|
|
|
2308
2308
|
// @__NO_SIDE_EFFECTS__
|
|
2309
2309
|
function $i(e) {
|
|
2310
2310
|
const t = /* @__PURE__ */ kh(e), n = x.forwardRef((i, s) => {
|
|
2311
|
-
const { children: o, ...r } = i, a = x.Children.toArray(o), l = a.find(
|
|
2311
|
+
const { children: o, ...r } = i, a = x.Children.toArray(o), l = a.find(Ah);
|
|
2312
2312
|
if (l) {
|
|
2313
2313
|
const c = l.props.children, u = a.map((d) => d === l ? x.Children.count(c) > 1 ? x.Children.only(null) : x.isValidElement(c) ? c.props.children : null : d);
|
|
2314
2314
|
return /* @__PURE__ */ M.jsx(t, { ...r, ref: s, children: x.isValidElement(c) ? x.cloneElement(c, void 0, u) : null });
|
|
@@ -2322,7 +2322,7 @@ function kh(e) {
|
|
|
2322
2322
|
const t = x.forwardRef((n, i) => {
|
|
2323
2323
|
const { children: s, ...o } = n;
|
|
2324
2324
|
if (x.isValidElement(s)) {
|
|
2325
|
-
const r = Oh(s), a =
|
|
2325
|
+
const r = Oh(s), a = Rh(o, s.props);
|
|
2326
2326
|
return s.type !== x.Fragment && (a.ref = i ? cs(i, r) : r), x.cloneElement(s, a);
|
|
2327
2327
|
}
|
|
2328
2328
|
return x.Children.count(s) > 1 ? x.Children.only(null) : null;
|
|
@@ -2330,10 +2330,10 @@ function kh(e) {
|
|
|
2330
2330
|
return t.displayName = `${e}.SlotClone`, t;
|
|
2331
2331
|
}
|
|
2332
2332
|
var Ph = Symbol("radix.slottable");
|
|
2333
|
-
function
|
|
2333
|
+
function Ah(e) {
|
|
2334
2334
|
return x.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ph;
|
|
2335
2335
|
}
|
|
2336
|
-
function
|
|
2336
|
+
function Rh(e, t) {
|
|
2337
2337
|
const n = { ...t };
|
|
2338
2338
|
for (const i in t) {
|
|
2339
2339
|
const s = e[i], o = t[i];
|
|
@@ -2455,8 +2455,8 @@ var Lh = "DismissableLayer", fo = "dismissableLayer.update", Ih = "dismissableLa
|
|
|
2455
2455
|
onDismiss: a,
|
|
2456
2456
|
...l
|
|
2457
2457
|
} = e, c = x.useContext(bc), [u, d] = x.useState(null), f = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = x.useState({}), p = yt(t, (S) => d(S)), g = Array.from(c.layers), [m] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), b = g.indexOf(m), y = u ? g.indexOf(u) : -1, v = c.layersWithOutsidePointerEventsDisabled.size > 0, _ = y >= b, w = zh((S) => {
|
|
2458
|
-
const k = S.target,
|
|
2459
|
-
!_ ||
|
|
2458
|
+
const k = S.target, A = [...c.branches].some((P) => P.contains(k));
|
|
2459
|
+
!_ || A || (s == null || s(S), r == null || r(S), S.defaultPrevented || a == null || a());
|
|
2460
2460
|
}, f), C = Bh((S) => {
|
|
2461
2461
|
const k = S.target;
|
|
2462
2462
|
[...c.branches].some((P) => P.contains(k)) || (o == null || o(S), r == null || r(S), S.defaultPrevented || a == null || a());
|
|
@@ -2990,7 +2990,7 @@ const cg = (e) => ({
|
|
|
2990
2990
|
}, h = zo(s), p = jo(h), g = await r.getDimensions(c), m = h === "y", b = m ? "top" : "left", y = m ? "bottom" : "right", v = m ? "clientHeight" : "clientWidth", _ = o.reference[p] + o.reference[h] - f[h] - o.floating[p], w = f[h] - o.reference[h], C = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c));
|
|
2991
2991
|
let S = C ? C[v] : 0;
|
|
2992
2992
|
(!S || !await (r.isElement == null ? void 0 : r.isElement(C))) && (S = a.floating[v] || o.floating[p]);
|
|
2993
|
-
const k = _ / 2 - w / 2,
|
|
2993
|
+
const k = _ / 2 - w / 2, A = S / 2 - g[p] / 2 - 1, P = fe(d[b], A), E = fe(d[y], A), D = P, I = S - g[p] - E, F = S / 2 - g[p] / 2 + k, j = go(D, F, I), O = !l.arrow && en(s) != null && F !== j && o.reference[p] / 2 - (F < D ? P : E) - g[p] / 2 < 0, N = O ? F < D ? F - D : F - I : 0;
|
|
2994
2994
|
return {
|
|
2995
2995
|
[h]: f[h] + N,
|
|
2996
2996
|
data: {
|
|
@@ -3029,16 +3029,16 @@ const cg = (e) => ({
|
|
|
3029
3029
|
return {};
|
|
3030
3030
|
const b = te(s), y = zt(a), v = te(a) === a, _ = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), w = f || (v || !g ? [Vi(a)] : ng(a)), C = p !== "none";
|
|
3031
3031
|
!f && C && w.push(...rg(a, g, p, _));
|
|
3032
|
-
const S = [a, ...w], k = await Nn(t, m),
|
|
3032
|
+
const S = [a, ...w], k = await Nn(t, m), A = [];
|
|
3033
3033
|
let P = ((i = o.flip) == null ? void 0 : i.overflows) || [];
|
|
3034
|
-
if (u &&
|
|
3034
|
+
if (u && A.push(k[b]), d) {
|
|
3035
3035
|
const F = eg(s, r, _);
|
|
3036
|
-
|
|
3036
|
+
A.push(k[F[0]], k[F[1]]);
|
|
3037
3037
|
}
|
|
3038
3038
|
if (P = [...P, {
|
|
3039
3039
|
placement: s,
|
|
3040
|
-
overflows:
|
|
3041
|
-
}], !
|
|
3040
|
+
overflows: A
|
|
3041
|
+
}], !A.every((F) => F <= 0)) {
|
|
3042
3042
|
var E, D;
|
|
3043
3043
|
const F = (((E = o.flip) == null ? void 0 : E.index) || 0) + 1, j = S[F];
|
|
3044
3044
|
if (j && (!(d === "alignment" ? y !== zt(j) : !1) || // We leave the current main axis only if every placement on that axis
|
|
@@ -3060,13 +3060,13 @@ const cg = (e) => ({
|
|
|
3060
3060
|
var I;
|
|
3061
3061
|
const N = (I = P.filter((T) => {
|
|
3062
3062
|
if (C) {
|
|
3063
|
-
const
|
|
3064
|
-
return
|
|
3063
|
+
const R = zt(T.placement);
|
|
3064
|
+
return R === y || // Create a bias to the `y` side axis due to horizontal
|
|
3065
3065
|
// reading directions favoring greater width.
|
|
3066
|
-
|
|
3066
|
+
R === "y";
|
|
3067
3067
|
}
|
|
3068
3068
|
return !0;
|
|
3069
|
-
}).map((T) => [T.placement, T.overflows.filter((
|
|
3069
|
+
}).map((T) => [T.placement, T.overflows.filter((R) => R > 0).reduce((R, Y) => R + Y, 0)]).sort((T, R) => T[1] - R[1])[0]) == null ? void 0 : I[0];
|
|
3070
3070
|
N && (O = N);
|
|
3071
3071
|
break;
|
|
3072
3072
|
}
|
|
@@ -3317,8 +3317,8 @@ const hg = function(e) {
|
|
|
3317
3317
|
availableWidth: k,
|
|
3318
3318
|
availableHeight: S
|
|
3319
3319
|
});
|
|
3320
|
-
const
|
|
3321
|
-
return p !==
|
|
3320
|
+
const A = await r.getDimensions(a.floating);
|
|
3321
|
+
return p !== A.width || g !== A.height ? {
|
|
3322
3322
|
reset: {
|
|
3323
3323
|
rects: !0
|
|
3324
3324
|
}
|
|
@@ -3505,14 +3505,14 @@ function hs(e, t) {
|
|
|
3505
3505
|
const n = fs(e).scrollLeft;
|
|
3506
3506
|
return t ? t.left + n : Pe(Ht(e)).left + n;
|
|
3507
3507
|
}
|
|
3508
|
-
function
|
|
3508
|
+
function Ac(e, t) {
|
|
3509
3509
|
const n = e.getBoundingClientRect(), i = n.left + t.scrollLeft - hs(e, n), s = n.top + t.scrollTop;
|
|
3510
3510
|
return {
|
|
3511
3511
|
x: i,
|
|
3512
3512
|
y: s
|
|
3513
3513
|
};
|
|
3514
3514
|
}
|
|
3515
|
-
function
|
|
3515
|
+
function Ag(e) {
|
|
3516
3516
|
let {
|
|
3517
3517
|
elements: t,
|
|
3518
3518
|
rect: n,
|
|
@@ -3531,7 +3531,7 @@ function Rg(e) {
|
|
|
3531
3531
|
const h = Pe(i);
|
|
3532
3532
|
c = Ke(i), u.x = h.x + i.clientLeft, u.y = h.y + i.clientTop;
|
|
3533
3533
|
}
|
|
3534
|
-
const f = r && !d && !o ?
|
|
3534
|
+
const f = r && !d && !o ? Ac(r, l) : Bt(0);
|
|
3535
3535
|
return {
|
|
3536
3536
|
width: n.width * c.x,
|
|
3537
3537
|
height: n.height * c.y,
|
|
@@ -3539,7 +3539,7 @@ function Rg(e) {
|
|
|
3539
3539
|
y: n.y * c.y - l.scrollTop * c.y + u.y + f.y
|
|
3540
3540
|
};
|
|
3541
3541
|
}
|
|
3542
|
-
function
|
|
3542
|
+
function Rg(e) {
|
|
3543
3543
|
return Array.from(e.getClientRects());
|
|
3544
3544
|
}
|
|
3545
3545
|
function Og(e) {
|
|
@@ -3603,9 +3603,9 @@ function aa(e, t, n) {
|
|
|
3603
3603
|
}
|
|
3604
3604
|
return Hi(i);
|
|
3605
3605
|
}
|
|
3606
|
-
function
|
|
3606
|
+
function Rc(e, t) {
|
|
3607
3607
|
const n = he(e);
|
|
3608
|
-
return n === t || !Dt(n) || Je(n) ? !1 : Tt(n).position === "fixed" ||
|
|
3608
|
+
return n === t || !Dt(n) || Je(n) ? !1 : Tt(n).position === "fixed" || Rc(n, t);
|
|
3609
3609
|
}
|
|
3610
3610
|
function Lg(e, t) {
|
|
3611
3611
|
const n = t.get(e);
|
|
@@ -3616,7 +3616,7 @@ function Lg(e, t) {
|
|
|
3616
3616
|
let r = o ? he(e) : e;
|
|
3617
3617
|
for (; Dt(r) && !Je(r); ) {
|
|
3618
3618
|
const a = Tt(r), l = Bo(r);
|
|
3619
|
-
!l && a.position === "fixed" && (s = null), (o ? !l && !s : !l && a.position === "static" && !!s && Dg.has(s.position) || Un(r) && !l &&
|
|
3619
|
+
!l && a.position === "fixed" && (s = null), (o ? !l && !s : !l && a.position === "static" && !!s && Dg.has(s.position) || Un(r) && !l && Rc(e, r)) ? i = i.filter((u) => u !== r) : s = a, r = he(r);
|
|
3620
3620
|
}
|
|
3621
3621
|
return t.set(e, i), i;
|
|
3622
3622
|
}
|
|
@@ -3664,7 +3664,7 @@ function Ng(e, t, n) {
|
|
|
3664
3664
|
l.x = h.x + t.clientLeft, l.y = h.y + t.clientTop;
|
|
3665
3665
|
} else s && c();
|
|
3666
3666
|
o && !i && s && c();
|
|
3667
|
-
const u = s && !i && !o ?
|
|
3667
|
+
const u = s && !i && !o ? Ac(s, a) : Bt(0), d = r.left + a.scrollLeft - l.x - u.x, f = r.top + a.scrollTop - l.y - u.y;
|
|
3668
3668
|
return {
|
|
3669
3669
|
x: d,
|
|
3670
3670
|
y: f,
|
|
@@ -3717,12 +3717,12 @@ function zg(e) {
|
|
|
3717
3717
|
return Tt(e).direction === "rtl";
|
|
3718
3718
|
}
|
|
3719
3719
|
const Bg = {
|
|
3720
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
3720
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Ag,
|
|
3721
3721
|
getDocumentElement: Ht,
|
|
3722
3722
|
getClippingRect: Ig,
|
|
3723
3723
|
getOffsetParent: Oc,
|
|
3724
3724
|
getElementRects: jg,
|
|
3725
|
-
getClientRects:
|
|
3725
|
+
getClientRects: Rg,
|
|
3726
3726
|
getDimensions: Fg,
|
|
3727
3727
|
getScale: Ke,
|
|
3728
3728
|
isElement: Dt,
|
|
@@ -3898,7 +3898,7 @@ function Zg(e) {
|
|
|
3898
3898
|
T !== C.current && (C.current = T, g(T));
|
|
3899
3899
|
}, []), v = x.useCallback((T) => {
|
|
3900
3900
|
T !== S.current && (S.current = T, b(T));
|
|
3901
|
-
}, []), _ = o || p, w = r || m, C = x.useRef(null), S = x.useRef(null), k = x.useRef(u),
|
|
3901
|
+
}, []), _ = o || p, w = r || m, C = x.useRef(null), S = x.useRef(null), k = x.useRef(u), A = l != null, P = Ws(l), E = Ws(s), D = Ws(c), I = x.useCallback(() => {
|
|
3902
3902
|
if (!C.current || !S.current)
|
|
3903
3903
|
return;
|
|
3904
3904
|
const T = {
|
|
@@ -3906,9 +3906,9 @@ function Zg(e) {
|
|
|
3906
3906
|
strategy: n,
|
|
3907
3907
|
middleware: f
|
|
3908
3908
|
};
|
|
3909
|
-
E.current && (T.platform = E.current), Gg(C.current, S.current, T).then((
|
|
3909
|
+
E.current && (T.platform = E.current), Gg(C.current, S.current, T).then((R) => {
|
|
3910
3910
|
const Y = {
|
|
3911
|
-
...
|
|
3911
|
+
...R,
|
|
3912
3912
|
// The floating element's position may be recomputed while it's closed
|
|
3913
3913
|
// but still mounted (such as when transitioning out). To ensure
|
|
3914
3914
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
@@ -3935,7 +3935,7 @@ function Zg(e) {
|
|
|
3935
3935
|
return P.current(_, w, I);
|
|
3936
3936
|
I();
|
|
3937
3937
|
}
|
|
3938
|
-
}, [_, w, I, P,
|
|
3938
|
+
}, [_, w, I, P, A]);
|
|
3939
3939
|
const j = x.useMemo(() => ({
|
|
3940
3940
|
reference: C,
|
|
3941
3941
|
floating: S,
|
|
@@ -3952,16 +3952,16 @@ function Zg(e) {
|
|
|
3952
3952
|
};
|
|
3953
3953
|
if (!O.floating)
|
|
3954
3954
|
return T;
|
|
3955
|
-
const
|
|
3955
|
+
const R = ua(O.floating, u.x), Y = ua(O.floating, u.y);
|
|
3956
3956
|
return a ? {
|
|
3957
3957
|
...T,
|
|
3958
|
-
transform: "translate(" +
|
|
3958
|
+
transform: "translate(" + R + "px, " + Y + "px)",
|
|
3959
3959
|
...Dc(O.floating) >= 1.5 && {
|
|
3960
3960
|
willChange: "transform"
|
|
3961
3961
|
}
|
|
3962
3962
|
} : {
|
|
3963
3963
|
position: n,
|
|
3964
|
-
left:
|
|
3964
|
+
left: R,
|
|
3965
3965
|
top: Y
|
|
3966
3966
|
};
|
|
3967
3967
|
}, [n, a, O.floating, u.x, u.y]);
|
|
@@ -4088,7 +4088,7 @@ var Ho = "PopperContent", [dp, fp] = Lc(Ho), Bc = x.forwardRef(
|
|
|
4088
4088
|
updatePositionStrategy: h = "optimized",
|
|
4089
4089
|
onPlaced: p,
|
|
4090
4090
|
...g
|
|
4091
|
-
} = e, m = Fc(Ho, n), [b, y] = x.useState(null), v = yt(t, (dn) => y(dn)), [_, w] = x.useState(null), C = cp(_), S = (C == null ? void 0 : C.width) ?? 0, k = (C == null ? void 0 : C.height) ?? 0,
|
|
4091
|
+
} = e, m = Fc(Ho, n), [b, y] = x.useState(null), v = yt(t, (dn) => y(dn)), [_, w] = x.useState(null), C = cp(_), S = (C == null ? void 0 : C.width) ?? 0, k = (C == null ? void 0 : C.height) ?? 0, A = i + (o !== "center" ? "-" + o : ""), P = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, E = Array.isArray(c) ? c : [c], D = E.length > 0, I = {
|
|
4092
4092
|
padding: P,
|
|
4093
4093
|
boundary: E.filter(gp),
|
|
4094
4094
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -4096,7 +4096,7 @@ var Ho = "PopperContent", [dp, fp] = Lc(Ho), Bc = x.forwardRef(
|
|
|
4096
4096
|
}, { refs: F, floatingStyles: j, placement: O, isPositioned: N, middlewareData: T } = Zg({
|
|
4097
4097
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
4098
4098
|
strategy: "fixed",
|
|
4099
|
-
placement:
|
|
4099
|
+
placement: A,
|
|
4100
4100
|
whileElementsMounted: (...dn) => Wg(...dn, {
|
|
4101
4101
|
animationFrame: h === "always"
|
|
4102
4102
|
}),
|
|
@@ -4123,7 +4123,7 @@ var Ho = "PopperContent", [dp, fp] = Lc(Ho), Bc = x.forwardRef(
|
|
|
4123
4123
|
pp({ arrowWidth: S, arrowHeight: k }),
|
|
4124
4124
|
f && op({ strategy: "referenceHidden", ...I })
|
|
4125
4125
|
]
|
|
4126
|
-
}), [
|
|
4126
|
+
}), [R, Y] = Vc(O), V = Zt(p);
|
|
4127
4127
|
ke(() => {
|
|
4128
4128
|
N && (V == null || V());
|
|
4129
4129
|
}, [N, V]);
|
|
@@ -4158,7 +4158,7 @@ var Ho = "PopperContent", [dp, fp] = Lc(Ho), Bc = x.forwardRef(
|
|
|
4158
4158
|
dp,
|
|
4159
4159
|
{
|
|
4160
4160
|
scope: n,
|
|
4161
|
-
placedSide:
|
|
4161
|
+
placedSide: R,
|
|
4162
4162
|
onArrowChange: w,
|
|
4163
4163
|
arrowX: J,
|
|
4164
4164
|
arrowY: at,
|
|
@@ -4166,7 +4166,7 @@ var Ho = "PopperContent", [dp, fp] = Lc(Ho), Bc = x.forwardRef(
|
|
|
4166
4166
|
children: /* @__PURE__ */ M.jsx(
|
|
4167
4167
|
vt.div,
|
|
4168
4168
|
{
|
|
4169
|
-
"data-side":
|
|
4169
|
+
"data-side": R,
|
|
4170
4170
|
"data-align": Y,
|
|
4171
4171
|
...g,
|
|
4172
4172
|
ref: v,
|
|
@@ -4323,10 +4323,10 @@ var Vs = "rovingFocusGroup.onEntryFocus", Sp = { bubbles: !1, cancelable: !0 },
|
|
|
4323
4323
|
Xn,
|
|
4324
4324
|
[Mp]
|
|
4325
4325
|
), [kp, Pp] = Cp(Xn), Kc = x.forwardRef(
|
|
4326
|
-
(e, t) => /* @__PURE__ */ M.jsx(bo.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ M.jsx(bo.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ M.jsx(
|
|
4326
|
+
(e, t) => /* @__PURE__ */ M.jsx(bo.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ M.jsx(bo.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ M.jsx(Ap, { ...e, ref: t }) }) })
|
|
4327
4327
|
);
|
|
4328
4328
|
Kc.displayName = Xn;
|
|
4329
|
-
var
|
|
4329
|
+
var Ap = x.forwardRef((e, t) => {
|
|
4330
4330
|
const {
|
|
4331
4331
|
__scopeRovingFocusGroup: n,
|
|
4332
4332
|
orientation: i,
|
|
@@ -4381,8 +4381,8 @@ var Rp = x.forwardRef((e, t) => {
|
|
|
4381
4381
|
w.current = !0;
|
|
4382
4382
|
}),
|
|
4383
4383
|
onFocus: H(e.onFocus, (k) => {
|
|
4384
|
-
const
|
|
4385
|
-
if (k.target === k.currentTarget &&
|
|
4384
|
+
const A = !w.current;
|
|
4385
|
+
if (k.target === k.currentTarget && A && !b) {
|
|
4386
4386
|
const P = new CustomEvent(Vs, Sp);
|
|
4387
4387
|
if (k.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
|
|
4388
4388
|
const E = _().filter((O) => O.focusable), D = E.find((O) => O.active), I = E.find((O) => O.id === g), j = [D, I, ...E].filter(
|
|
@@ -4457,7 +4457,7 @@ var Rp = x.forwardRef((e, t) => {
|
|
|
4457
4457
|
}
|
|
4458
4458
|
);
|
|
4459
4459
|
Xc.displayName = Uc;
|
|
4460
|
-
var
|
|
4460
|
+
var Rp = {
|
|
4461
4461
|
ArrowLeft: "prev",
|
|
4462
4462
|
ArrowUp: "prev",
|
|
4463
4463
|
ArrowRight: "next",
|
|
@@ -4473,7 +4473,7 @@ function Op(e, t) {
|
|
|
4473
4473
|
function Ep(e, t, n) {
|
|
4474
4474
|
const i = Op(e.key, n);
|
|
4475
4475
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(i)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(i)))
|
|
4476
|
-
return
|
|
4476
|
+
return Rp[i];
|
|
4477
4477
|
}
|
|
4478
4478
|
function Gc(e, t = !1) {
|
|
4479
4479
|
const n = document.activeElement;
|
|
@@ -4553,7 +4553,7 @@ function zp(e, t, n) {
|
|
|
4553
4553
|
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
4554
4554
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
4555
4555
|
}
|
|
4556
|
-
var
|
|
4556
|
+
var Ai = "right-scroll-bar-position", Ri = "width-before-scroll-bar", Bp = "with-scroll-bars-hidden", $p = "--removed-body-scroll-bar-size";
|
|
4557
4557
|
function Ys(e, t) {
|
|
4558
4558
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
4559
4559
|
}
|
|
@@ -4694,8 +4694,8 @@ ps.defaultProps = {
|
|
|
4694
4694
|
inert: !1
|
|
4695
4695
|
};
|
|
4696
4696
|
ps.classNames = {
|
|
4697
|
-
fullWidth:
|
|
4698
|
-
zeroRight:
|
|
4697
|
+
fullWidth: Ri,
|
|
4698
|
+
zeroRight: Ai
|
|
4699
4699
|
};
|
|
4700
4700
|
var Gp = function() {
|
|
4701
4701
|
if (typeof __webpack_nonce__ < "u")
|
|
@@ -4785,19 +4785,19 @@ var Qp = function() {
|
|
|
4785
4785
|
].filter(Boolean).join(""), `
|
|
4786
4786
|
}
|
|
4787
4787
|
|
|
4788
|
-
.`).concat(
|
|
4788
|
+
.`).concat(Ai, ` {
|
|
4789
4789
|
right: `).concat(a, "px ").concat(i, `;
|
|
4790
4790
|
}
|
|
4791
4791
|
|
|
4792
|
-
.`).concat(
|
|
4792
|
+
.`).concat(Ri, ` {
|
|
4793
4793
|
margin-right: `).concat(a, "px ").concat(i, `;
|
|
4794
4794
|
}
|
|
4795
4795
|
|
|
4796
|
-
.`).concat(
|
|
4796
|
+
.`).concat(Ai, " .").concat(Ai, ` {
|
|
4797
4797
|
right: 0 `).concat(i, `;
|
|
4798
4798
|
}
|
|
4799
4799
|
|
|
4800
|
-
.`).concat(
|
|
4800
|
+
.`).concat(Ri, " .").concat(Ri, ` {
|
|
4801
4801
|
margin-right: 0 `).concat(i, `;
|
|
4802
4802
|
}
|
|
4803
4803
|
|
|
@@ -4941,8 +4941,8 @@ function ym(e) {
|
|
|
4941
4941
|
return !1;
|
|
4942
4942
|
if (!i.current && "changedTouches" in g && (v || _) && (i.current = w), !w)
|
|
4943
4943
|
return !0;
|
|
4944
|
-
var
|
|
4945
|
-
return gm(
|
|
4944
|
+
var A = i.current || w;
|
|
4945
|
+
return gm(A, m, g, A === "h" ? v : _);
|
|
4946
4946
|
}, []), l = x.useCallback(function(g) {
|
|
4947
4947
|
var m = g;
|
|
4948
4948
|
if (!(!$e.length || $e[$e.length - 1] !== o)) {
|
|
@@ -5013,7 +5013,7 @@ var xo = ["Enter", " "], _m = ["ArrowDown", "PageUp", "Home"], ou = ["ArrowUp",
|
|
|
5013
5013
|
km,
|
|
5014
5014
|
Ic,
|
|
5015
5015
|
Yc
|
|
5016
|
-
]), ms = Ic(), au = Yc(), [Pm, sn] = Te(Gn), [
|
|
5016
|
+
]), ms = Ic(), au = Yc(), [Pm, sn] = Te(Gn), [Am, qn] = Te(Gn), lu = (e) => {
|
|
5017
5017
|
const { __scopeMenu: t, open: n = !1, children: i, dir: s, onOpenChange: o, modal: r = !0 } = e, a = ms(t), [l, c] = x.useState(null), u = x.useRef(!1), d = Zt(o), f = mc(s);
|
|
5018
5018
|
return x.useEffect(() => {
|
|
5019
5019
|
const h = () => {
|
|
@@ -5031,7 +5031,7 @@ var xo = ["Enter", " "], _m = ["ArrowDown", "PageUp", "Home"], ou = ["ArrowUp",
|
|
|
5031
5031
|
content: l,
|
|
5032
5032
|
onContentChange: c,
|
|
5033
5033
|
children: /* @__PURE__ */ M.jsx(
|
|
5034
|
-
|
|
5034
|
+
Am,
|
|
5035
5035
|
{
|
|
5036
5036
|
scope: t,
|
|
5037
5037
|
onClose: x.useCallback(() => d(!1), [d]),
|
|
@@ -5045,13 +5045,13 @@ var xo = ["Enter", " "], _m = ["ArrowDown", "PageUp", "Home"], ou = ["ArrowUp",
|
|
|
5045
5045
|
) });
|
|
5046
5046
|
};
|
|
5047
5047
|
lu.displayName = Gn;
|
|
5048
|
-
var
|
|
5048
|
+
var Rm = "MenuAnchor", Yo = x.forwardRef(
|
|
5049
5049
|
(e, t) => {
|
|
5050
5050
|
const { __scopeMenu: n, ...i } = e, s = ms(n);
|
|
5051
5051
|
return /* @__PURE__ */ M.jsx(bp, { ...s, ...i, ref: t });
|
|
5052
5052
|
}
|
|
5053
5053
|
);
|
|
5054
|
-
Yo.displayName =
|
|
5054
|
+
Yo.displayName = Rm;
|
|
5055
5055
|
var Om = "MenuPortal", [iS, cu] = Te(Om, {
|
|
5056
5056
|
forceMount: void 0
|
|
5057
5057
|
}), Ot = "MenuContent", [Em, Ko] = Te(Ot), uu = x.forwardRef(
|
|
@@ -5112,17 +5112,17 @@ var Om = "MenuPortal", [iS, cu] = Te(Om, {
|
|
|
5112
5112
|
onDismiss: h,
|
|
5113
5113
|
disableOutsideScroll: p,
|
|
5114
5114
|
...g
|
|
5115
|
-
} = e, m = sn(Ot, n), b = qn(Ot, n), y = ms(n), v = au(n), _ = Cm(n), [w, C] = x.useState(null), S = x.useRef(null), k = yt(t, S, m.onContentChange),
|
|
5115
|
+
} = e, m = sn(Ot, n), b = qn(Ot, n), y = ms(n), v = au(n), _ = Cm(n), [w, C] = x.useState(null), S = x.useRef(null), k = yt(t, S, m.onContentChange), A = x.useRef(0), P = x.useRef(""), E = x.useRef(0), D = x.useRef(null), I = x.useRef("right"), F = x.useRef(0), j = p ? su : x.Fragment, O = p ? { as: Lm, allowPinchZoom: !0 } : void 0, N = (R) => {
|
|
5116
5116
|
var Yt, cn;
|
|
5117
|
-
const Y = P.current +
|
|
5117
|
+
const Y = P.current + R, V = _().filter((kt) => !kt.disabled), J = document.activeElement, at = (Yt = V.find((kt) => kt.ref.current === J)) == null ? void 0 : Yt.textValue, ct = V.map((kt) => kt.textValue), wt = Km(ct, Y, at), dt = (cn = V.find((kt) => kt.textValue === wt)) == null ? void 0 : cn.ref.current;
|
|
5118
5118
|
(function kt(un) {
|
|
5119
|
-
P.current = un, window.clearTimeout(
|
|
5119
|
+
P.current = un, window.clearTimeout(A.current), un !== "" && (A.current = window.setTimeout(() => kt(""), 1e3));
|
|
5120
5120
|
})(Y), dt && setTimeout(() => dt.focus());
|
|
5121
5121
|
};
|
|
5122
|
-
x.useEffect(() => () => window.clearTimeout(
|
|
5123
|
-
const T = x.useCallback((
|
|
5122
|
+
x.useEffect(() => () => window.clearTimeout(A.current), []), $h();
|
|
5123
|
+
const T = x.useCallback((R) => {
|
|
5124
5124
|
var V, J;
|
|
5125
|
-
return I.current === ((V = D.current) == null ? void 0 : V.side) && Xm(
|
|
5125
|
+
return I.current === ((V = D.current) == null ? void 0 : V.side) && Xm(R, (J = D.current) == null ? void 0 : J.area);
|
|
5126
5126
|
}, []);
|
|
5127
5127
|
return /* @__PURE__ */ M.jsx(
|
|
5128
5128
|
Em,
|
|
@@ -5130,36 +5130,36 @@ var Om = "MenuPortal", [iS, cu] = Te(Om, {
|
|
|
5130
5130
|
scope: n,
|
|
5131
5131
|
searchRef: P,
|
|
5132
5132
|
onItemEnter: x.useCallback(
|
|
5133
|
-
(
|
|
5134
|
-
T(
|
|
5133
|
+
(R) => {
|
|
5134
|
+
T(R) && R.preventDefault();
|
|
5135
5135
|
},
|
|
5136
5136
|
[T]
|
|
5137
5137
|
),
|
|
5138
5138
|
onItemLeave: x.useCallback(
|
|
5139
|
-
(
|
|
5139
|
+
(R) => {
|
|
5140
5140
|
var Y;
|
|
5141
|
-
T(
|
|
5141
|
+
T(R) || ((Y = S.current) == null || Y.focus(), C(null));
|
|
5142
5142
|
},
|
|
5143
5143
|
[T]
|
|
5144
5144
|
),
|
|
5145
5145
|
onTriggerLeave: x.useCallback(
|
|
5146
|
-
(
|
|
5147
|
-
T(
|
|
5146
|
+
(R) => {
|
|
5147
|
+
T(R) && R.preventDefault();
|
|
5148
5148
|
},
|
|
5149
5149
|
[T]
|
|
5150
5150
|
),
|
|
5151
5151
|
pointerGraceTimerRef: E,
|
|
5152
|
-
onPointerGraceIntentChange: x.useCallback((
|
|
5153
|
-
D.current =
|
|
5152
|
+
onPointerGraceIntentChange: x.useCallback((R) => {
|
|
5153
|
+
D.current = R;
|
|
5154
5154
|
}, []),
|
|
5155
5155
|
children: /* @__PURE__ */ M.jsx(j, { ...O, children: /* @__PURE__ */ M.jsx(
|
|
5156
5156
|
vc,
|
|
5157
5157
|
{
|
|
5158
5158
|
asChild: !0,
|
|
5159
5159
|
trapped: s,
|
|
5160
|
-
onMountAutoFocus: H(o, (
|
|
5160
|
+
onMountAutoFocus: H(o, (R) => {
|
|
5161
5161
|
var Y;
|
|
5162
|
-
|
|
5162
|
+
R.preventDefault(), (Y = S.current) == null || Y.focus({ preventScroll: !0 });
|
|
5163
5163
|
}),
|
|
5164
5164
|
onUnmountAutoFocus: r,
|
|
5165
5165
|
children: /* @__PURE__ */ M.jsx(
|
|
@@ -5182,8 +5182,8 @@ var Om = "MenuPortal", [iS, cu] = Te(Om, {
|
|
|
5182
5182
|
loop: i,
|
|
5183
5183
|
currentTabStopId: w,
|
|
5184
5184
|
onCurrentTabStopIdChange: C,
|
|
5185
|
-
onEntryFocus: H(l, (
|
|
5186
|
-
b.isUsingKeyboardRef.current ||
|
|
5185
|
+
onEntryFocus: H(l, (R) => {
|
|
5186
|
+
b.isUsingKeyboardRef.current || R.preventDefault();
|
|
5187
5187
|
}),
|
|
5188
5188
|
preventScrollOnEntryFocus: !0,
|
|
5189
5189
|
children: /* @__PURE__ */ M.jsx(
|
|
@@ -5198,25 +5198,25 @@ var Om = "MenuPortal", [iS, cu] = Te(Om, {
|
|
|
5198
5198
|
...g,
|
|
5199
5199
|
ref: k,
|
|
5200
5200
|
style: { outline: "none", ...g.style },
|
|
5201
|
-
onKeyDown: H(g.onKeyDown, (
|
|
5202
|
-
const V =
|
|
5203
|
-
V && (
|
|
5201
|
+
onKeyDown: H(g.onKeyDown, (R) => {
|
|
5202
|
+
const V = R.target.closest("[data-radix-menu-content]") === R.currentTarget, J = R.ctrlKey || R.altKey || R.metaKey, at = R.key.length === 1;
|
|
5203
|
+
V && (R.key === "Tab" && R.preventDefault(), !J && at && N(R.key));
|
|
5204
5204
|
const ct = S.current;
|
|
5205
|
-
if (
|
|
5206
|
-
|
|
5205
|
+
if (R.target !== ct || !wm.includes(R.key)) return;
|
|
5206
|
+
R.preventDefault();
|
|
5207
5207
|
const dt = _().filter((Yt) => !Yt.disabled).map((Yt) => Yt.ref.current);
|
|
5208
|
-
ou.includes(
|
|
5208
|
+
ou.includes(R.key) && dt.reverse(), Hm(dt);
|
|
5209
5209
|
}),
|
|
5210
|
-
onBlur: H(e.onBlur, (
|
|
5211
|
-
|
|
5210
|
+
onBlur: H(e.onBlur, (R) => {
|
|
5211
|
+
R.currentTarget.contains(R.target) || (window.clearTimeout(A.current), P.current = "");
|
|
5212
5212
|
}),
|
|
5213
5213
|
onPointerMove: H(
|
|
5214
5214
|
e.onPointerMove,
|
|
5215
|
-
Bn((
|
|
5216
|
-
const Y =
|
|
5217
|
-
if (
|
|
5218
|
-
const J =
|
|
5219
|
-
I.current = J, F.current =
|
|
5215
|
+
Bn((R) => {
|
|
5216
|
+
const Y = R.target, V = F.current !== R.clientX;
|
|
5217
|
+
if (R.currentTarget.contains(Y) && V) {
|
|
5218
|
+
const J = R.clientX > F.current ? "right" : "left";
|
|
5219
|
+
I.current = J, F.current = R.clientX;
|
|
5220
5220
|
}
|
|
5221
5221
|
})
|
|
5222
5222
|
)
|
|
@@ -5572,7 +5572,7 @@ function Bn(e) {
|
|
|
5572
5572
|
var Gm = lu, qm = Yo, Jm = uu, Zm = Xo, Qm = du, tb = bs, eb = hu, nb = pu, ib = bu, sb = xu, ob = vu, rb = _u, ab = Su, lb = Cu, ys = "DropdownMenu", [cb, oS] = Kn(
|
|
5573
5573
|
ys,
|
|
5574
5574
|
[ru]
|
|
5575
|
-
), _t = ru(), [ub, Pu] = cb(ys),
|
|
5575
|
+
), _t = ru(), [ub, Pu] = cb(ys), Au = (e) => {
|
|
5576
5576
|
const {
|
|
5577
5577
|
__scopeDropdownMenu: t,
|
|
5578
5578
|
children: n,
|
|
@@ -5602,10 +5602,10 @@ var Gm = lu, qm = Yo, Jm = uu, Zm = Xo, Qm = du, tb = bs, eb = hu, nb = pu, ib =
|
|
|
5602
5602
|
}
|
|
5603
5603
|
);
|
|
5604
5604
|
};
|
|
5605
|
-
|
|
5606
|
-
var
|
|
5605
|
+
Au.displayName = ys;
|
|
5606
|
+
var Ru = "DropdownMenuTrigger", Ou = x.forwardRef(
|
|
5607
5607
|
(e, t) => {
|
|
5608
|
-
const { __scopeDropdownMenu: n, disabled: i = !1, ...s } = e, o = Pu(
|
|
5608
|
+
const { __scopeDropdownMenu: n, disabled: i = !1, ...s } = e, o = Pu(Ru, n), r = _t(n);
|
|
5609
5609
|
return /* @__PURE__ */ M.jsx(qm, { asChild: !0, ...r, children: /* @__PURE__ */ M.jsx(
|
|
5610
5610
|
vt.button,
|
|
5611
5611
|
{
|
|
@@ -5629,7 +5629,7 @@ var Au = "DropdownMenuTrigger", Ou = x.forwardRef(
|
|
|
5629
5629
|
) });
|
|
5630
5630
|
}
|
|
5631
5631
|
);
|
|
5632
|
-
Ou.displayName =
|
|
5632
|
+
Ou.displayName = Ru;
|
|
5633
5633
|
var Eu = "DropdownMenuContent", Du = x.forwardRef(
|
|
5634
5634
|
(e, t) => {
|
|
5635
5635
|
const { __scopeDropdownMenu: n, ...i } = e, s = Pu(Eu, n), o = _t(n), r = x.useRef(!1);
|
|
@@ -5715,11 +5715,11 @@ var kb = "DropdownMenuArrow", Pb = x.forwardRef(
|
|
|
5715
5715
|
}
|
|
5716
5716
|
);
|
|
5717
5717
|
Pb.displayName = kb;
|
|
5718
|
-
var
|
|
5718
|
+
var Ab = "DropdownMenuSubTrigger", Rb = x.forwardRef((e, t) => {
|
|
5719
5719
|
const { __scopeDropdownMenu: n, ...i } = e, s = _t(n);
|
|
5720
5720
|
return /* @__PURE__ */ M.jsx(ab, { ...s, ...i, ref: t });
|
|
5721
5721
|
});
|
|
5722
|
-
|
|
5722
|
+
Rb.displayName = Ab;
|
|
5723
5723
|
var Ob = "DropdownMenuSubContent", Eb = x.forwardRef((e, t) => {
|
|
5724
5724
|
const { __scopeDropdownMenu: n, ...i } = e, s = _t(n);
|
|
5725
5725
|
return /* @__PURE__ */ M.jsx(
|
|
@@ -5740,7 +5740,7 @@ var Ob = "DropdownMenuSubContent", Eb = x.forwardRef((e, t) => {
|
|
|
5740
5740
|
);
|
|
5741
5741
|
});
|
|
5742
5742
|
Eb.displayName = Ob;
|
|
5743
|
-
var Db =
|
|
5743
|
+
var Db = Au, Tb = Ou, Lb = Du, Ib = Tu;
|
|
5744
5744
|
const rS = ({
|
|
5745
5745
|
triggerComponent: e,
|
|
5746
5746
|
children: t,
|
|
@@ -5824,7 +5824,7 @@ const rS = ({
|
|
|
5824
5824
|
}
|
|
5825
5825
|
);
|
|
5826
5826
|
Kb.displayName = "SelectButton";
|
|
5827
|
-
const Ub = "
|
|
5827
|
+
const Ub = "_list_18km3_1", Xb = {
|
|
5828
5828
|
list: Ub
|
|
5829
5829
|
}, lS = ({ children: e, autoFocus: t, className: n }) => {
|
|
5830
5830
|
const i = qe(null), s = qe(0);
|
|
@@ -6484,10 +6484,10 @@ function Wt(e, t, n) {
|
|
|
6484
6484
|
}
|
|
6485
6485
|
function On(e, t) {
|
|
6486
6486
|
return Wt(e, t, {
|
|
6487
|
-
merger:
|
|
6487
|
+
merger: Ay
|
|
6488
6488
|
});
|
|
6489
6489
|
}
|
|
6490
|
-
function
|
|
6490
|
+
function Ay(e, t, n) {
|
|
6491
6491
|
if (!ju(e))
|
|
6492
6492
|
return;
|
|
6493
6493
|
const i = t[e], s = n[e];
|
|
@@ -6500,7 +6500,7 @@ const wa = {
|
|
|
6500
6500
|
x: (e) => e.x,
|
|
6501
6501
|
y: (e) => e.y
|
|
6502
6502
|
};
|
|
6503
|
-
function
|
|
6503
|
+
function Ry(e) {
|
|
6504
6504
|
const t = e.split("."), n = [];
|
|
6505
6505
|
let i = "";
|
|
6506
6506
|
for (const s of t)
|
|
@@ -6508,7 +6508,7 @@ function Ay(e) {
|
|
|
6508
6508
|
return n;
|
|
6509
6509
|
}
|
|
6510
6510
|
function Oy(e) {
|
|
6511
|
-
const t =
|
|
6511
|
+
const t = Ry(e);
|
|
6512
6512
|
return (n) => {
|
|
6513
6513
|
for (const i of t) {
|
|
6514
6514
|
if (i === "")
|
|
@@ -6518,7 +6518,7 @@ function Oy(e) {
|
|
|
6518
6518
|
return n;
|
|
6519
6519
|
};
|
|
6520
6520
|
}
|
|
6521
|
-
function
|
|
6521
|
+
function Ae(e, t) {
|
|
6522
6522
|
return (wa[t] || (wa[t] = Oy(t)))(e);
|
|
6523
6523
|
}
|
|
6524
6524
|
function er(e) {
|
|
@@ -6535,7 +6535,7 @@ const xt = (e) => typeof e < "u", bt = (e) => typeof e == "function", Sa = (e, t
|
|
|
6535
6535
|
function Ey(e) {
|
|
6536
6536
|
return e.type === "mouseup" || e.type === "click" || e.type === "contextmenu";
|
|
6537
6537
|
}
|
|
6538
|
-
const W = Math.PI, nt = 2 * W, qi = Number.POSITIVE_INFINITY, nr = W / 180, Q = W / 2,
|
|
6538
|
+
const W = Math.PI, nt = 2 * W, qi = Number.POSITIVE_INFINITY, nr = W / 180, Q = W / 2, At = W / 4, Ji = W * 2 / 3, re = Math.log10, ce = Math.sign;
|
|
6539
6539
|
function Oi(e, t, n) {
|
|
6540
6540
|
return Math.abs(e - t) < n;
|
|
6541
6541
|
}
|
|
@@ -6696,7 +6696,7 @@ function zy(e, t) {
|
|
|
6696
6696
|
return t ? (clearTimeout(n), n = setTimeout(e, t, i)) : e.apply(this, i), t;
|
|
6697
6697
|
};
|
|
6698
6698
|
}
|
|
6699
|
-
const sr = (e) => e === "start" ? "left" : e === "end" ? "right" : "center", ut = (e, t, n) => e === "start" ? t : e === "end" ? n : (t + n) / 2, By = (e, t, n, i) => e === (i ? "left" : "right") ? n : e === "center" ? (t + n) / 2 : t, hi = (e) => e === 0 || e === 1, Pa = (e, t, n) => -(Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) * nt / n)),
|
|
6699
|
+
const sr = (e) => e === "start" ? "left" : e === "end" ? "right" : "center", ut = (e, t, n) => e === "start" ? t : e === "end" ? n : (t + n) / 2, By = (e, t, n, i) => e === (i ? "left" : "right") ? n : e === "center" ? (t + n) / 2 : t, hi = (e) => e === 0 || e === 1, Pa = (e, t, n) => -(Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) * nt / n)), Aa = (e, t, n) => Math.pow(2, -10 * e) * Math.sin((e - t) * nt / n) + 1, En = {
|
|
6700
6700
|
linear: (e) => e,
|
|
6701
6701
|
easeInQuad: (e) => e * e,
|
|
6702
6702
|
easeOutQuad: (e) => -e * (e - 2),
|
|
@@ -6720,9 +6720,9 @@ const sr = (e) => e === "start" ? "left" : e === "end" ? "right" : "center", ut
|
|
|
6720
6720
|
easeOutCirc: (e) => Math.sqrt(1 - (e -= 1) * e),
|
|
6721
6721
|
easeInOutCirc: (e) => (e /= 0.5) < 1 ? -0.5 * (Math.sqrt(1 - e * e) - 1) : 0.5 * (Math.sqrt(1 - (e -= 2) * e) + 1),
|
|
6722
6722
|
easeInElastic: (e) => hi(e) ? e : Pa(e, 0.075, 0.3),
|
|
6723
|
-
easeOutElastic: (e) => hi(e) ? e :
|
|
6723
|
+
easeOutElastic: (e) => hi(e) ? e : Aa(e, 0.075, 0.3),
|
|
6724
6724
|
easeInOutElastic(e) {
|
|
6725
|
-
return hi(e) ? e : e < 0.5 ? 0.5 * Pa(e * 2, 0.1125, 0.45) : 0.5 + 0.5 *
|
|
6725
|
+
return hi(e) ? e : e < 0.5 ? 0.5 * Pa(e * 2, 0.1125, 0.45) : 0.5 + 0.5 * Aa(e * 2 - 1, 0.1125, 0.45);
|
|
6726
6726
|
},
|
|
6727
6727
|
easeInBack(e) {
|
|
6728
6728
|
return e * e * ((1.70158 + 1) * e - 1.70158);
|
|
@@ -6747,7 +6747,7 @@ function Yu(e) {
|
|
|
6747
6747
|
}
|
|
6748
6748
|
return !1;
|
|
6749
6749
|
}
|
|
6750
|
-
function
|
|
6750
|
+
function Ra(e) {
|
|
6751
6751
|
return Yu(e) ? e : new $n(e);
|
|
6752
6752
|
}
|
|
6753
6753
|
function Gs(e) {
|
|
@@ -6951,7 +6951,7 @@ function Uy(e) {
|
|
|
6951
6951
|
_indexable: (t) => t !== "backdropPadding"
|
|
6952
6952
|
});
|
|
6953
6953
|
}
|
|
6954
|
-
const
|
|
6954
|
+
const Re = /* @__PURE__ */ Object.create(null), wo = /* @__PURE__ */ Object.create(null);
|
|
6955
6955
|
function Dn(e, t) {
|
|
6956
6956
|
if (!t)
|
|
6957
6957
|
return e;
|
|
@@ -6995,7 +6995,7 @@ class Xy {
|
|
|
6995
6995
|
return qs(wo, t, n);
|
|
6996
6996
|
}
|
|
6997
6997
|
override(t, n) {
|
|
6998
|
-
return qs(
|
|
6998
|
+
return qs(Re, t, n);
|
|
6999
6999
|
}
|
|
7000
7000
|
route(t, n, i, s) {
|
|
7001
7001
|
const o = Dn(this, t), r = Dn(this, i), a = "_" + n;
|
|
@@ -7070,26 +7070,26 @@ function Uu(e, t, n, i, s) {
|
|
|
7070
7070
|
u = s ? s / 2 : g, e.moveTo(n + Math.sin(m) * u, i - Math.cos(m) * g), m += Ji, e.lineTo(n + Math.sin(m) * u, i - Math.cos(m) * g), m += Ji, e.lineTo(n + Math.sin(m) * u, i - Math.cos(m) * g), e.closePath();
|
|
7071
7071
|
break;
|
|
7072
7072
|
case "rectRounded":
|
|
7073
|
-
c = g * 0.516, l = g - c, r = Math.cos(m +
|
|
7073
|
+
c = g * 0.516, l = g - c, r = Math.cos(m + At) * l, d = Math.cos(m + At) * (s ? s / 2 - c : l), a = Math.sin(m + At) * l, f = Math.sin(m + At) * (s ? s / 2 - c : l), e.arc(n - d, i - a, c, m - W, m - Q), e.arc(n + f, i - r, c, m - Q, m), e.arc(n + d, i + a, c, m, m + Q), e.arc(n - f, i + r, c, m + Q, m + W), e.closePath();
|
|
7074
7074
|
break;
|
|
7075
7075
|
case "rect":
|
|
7076
7076
|
if (!p) {
|
|
7077
7077
|
l = Math.SQRT1_2 * g, u = s ? s / 2 : l, e.rect(n - u, i - l, 2 * u, 2 * l);
|
|
7078
7078
|
break;
|
|
7079
7079
|
}
|
|
7080
|
-
m +=
|
|
7080
|
+
m += At;
|
|
7081
7081
|
/* falls through */
|
|
7082
7082
|
case "rectRot":
|
|
7083
7083
|
d = Math.cos(m) * (s ? s / 2 : g), r = Math.cos(m) * g, a = Math.sin(m) * g, f = Math.sin(m) * (s ? s / 2 : g), e.moveTo(n - d, i - a), e.lineTo(n + f, i - r), e.lineTo(n + d, i + a), e.lineTo(n - f, i + r), e.closePath();
|
|
7084
7084
|
break;
|
|
7085
7085
|
case "crossRot":
|
|
7086
|
-
m +=
|
|
7086
|
+
m += At;
|
|
7087
7087
|
/* falls through */
|
|
7088
7088
|
case "cross":
|
|
7089
7089
|
d = Math.cos(m) * (s ? s / 2 : g), r = Math.cos(m) * g, a = Math.sin(m) * g, f = Math.sin(m) * (s ? s / 2 : g), e.moveTo(n - d, i - a), e.lineTo(n + d, i + a), e.moveTo(n + f, i - r), e.lineTo(n - f, i + r);
|
|
7090
7090
|
break;
|
|
7091
7091
|
case "star":
|
|
7092
|
-
d = Math.cos(m) * (s ? s / 2 : g), r = Math.cos(m) * g, a = Math.sin(m) * g, f = Math.sin(m) * (s ? s / 2 : g), e.moveTo(n - d, i - a), e.lineTo(n + d, i + a), e.moveTo(n + f, i - r), e.lineTo(n - f, i + r), m +=
|
|
7092
|
+
d = Math.cos(m) * (s ? s / 2 : g), r = Math.cos(m) * g, a = Math.sin(m) * g, f = Math.sin(m) * (s ? s / 2 : g), e.moveTo(n - d, i - a), e.lineTo(n + d, i + a), e.moveTo(n + f, i - r), e.lineTo(n - f, i + r), m += At, d = Math.cos(m) * (s ? s / 2 : g), r = Math.cos(m) * g, a = Math.sin(m) * g, f = Math.sin(m) * (s ? s / 2 : g), e.moveTo(n - d, i - a), e.lineTo(n + d, i + a), e.moveTo(n + f, i - r), e.lineTo(n - f, i + r);
|
|
7093
7093
|
break;
|
|
7094
7094
|
case "line":
|
|
7095
7095
|
r = s ? s / 2 : Math.cos(m) * g, a = Math.sin(m) * g, e.moveTo(n - r, i - a), e.lineTo(n + r, i + a);
|
|
@@ -7386,7 +7386,7 @@ function ax(e, t, n, i) {
|
|
|
7386
7386
|
function Ju(e, t, n) {
|
|
7387
7387
|
return bt(e) ? e(t, n) : e;
|
|
7388
7388
|
}
|
|
7389
|
-
const lx = (e, t) => e === !0 ? t : typeof e == "string" ?
|
|
7389
|
+
const lx = (e, t) => e === !0 ? t : typeof e == "string" ? Ae(t, e) : void 0;
|
|
7390
7390
|
function cx(e, t, n, i, s) {
|
|
7391
7391
|
for (const o of t) {
|
|
7392
7392
|
const r = lx(n, o);
|
|
@@ -7719,7 +7719,7 @@ const Na = "transparent", Cx = {
|
|
|
7719
7719
|
return n > 0.5 ? t : e;
|
|
7720
7720
|
},
|
|
7721
7721
|
color(e, t, n) {
|
|
7722
|
-
const i =
|
|
7722
|
+
const i = Ra(e || Na), s = i.valid && Ra(t || Na);
|
|
7723
7723
|
return s && s.valid ? s.mix(i, n).hexString() : t;
|
|
7724
7724
|
},
|
|
7725
7725
|
number(e, t, n) {
|
|
@@ -7815,7 +7815,7 @@ class hr {
|
|
|
7815
7815
|
});
|
|
7816
7816
|
}
|
|
7817
7817
|
_animateOptions(t, n) {
|
|
7818
|
-
const i = n.options, s =
|
|
7818
|
+
const i = n.options, s = Ax(t, i);
|
|
7819
7819
|
if (!s)
|
|
7820
7820
|
return [];
|
|
7821
7821
|
const o = this._createAnimations(s, i);
|
|
@@ -7870,7 +7870,7 @@ function Px(e, t) {
|
|
|
7870
7870
|
}
|
|
7871
7871
|
return Promise.all(n);
|
|
7872
7872
|
}
|
|
7873
|
-
function
|
|
7873
|
+
function Ax(e, t) {
|
|
7874
7874
|
if (!t)
|
|
7875
7875
|
return;
|
|
7876
7876
|
let n = e.options;
|
|
@@ -7890,7 +7890,7 @@ function ja(e, t) {
|
|
|
7890
7890
|
end: i ? s : o
|
|
7891
7891
|
};
|
|
7892
7892
|
}
|
|
7893
|
-
function
|
|
7893
|
+
function Rx(e, t, n) {
|
|
7894
7894
|
if (n === !1)
|
|
7895
7895
|
return !1;
|
|
7896
7896
|
const i = ja(e, n), s = ja(t, n);
|
|
@@ -8125,8 +8125,8 @@ class Ge {
|
|
|
8125
8125
|
let u, d, f, h;
|
|
8126
8126
|
for (u = 0, d = s; u < d; ++u)
|
|
8127
8127
|
f = u + i, h = n[f], c[u] = {
|
|
8128
|
-
x: o.parse(
|
|
8129
|
-
y: r.parse(
|
|
8128
|
+
x: o.parse(Ae(h, a), f),
|
|
8129
|
+
y: r.parse(Ae(h, l), f)
|
|
8130
8130
|
};
|
|
8131
8131
|
return c;
|
|
8132
8132
|
}
|
|
@@ -8192,7 +8192,7 @@ class Ge {
|
|
|
8192
8192
|
}
|
|
8193
8193
|
_update(t) {
|
|
8194
8194
|
const n = this._cachedMeta;
|
|
8195
|
-
this.update(t || "default"), n._clip = Ox($(this.options.clip,
|
|
8195
|
+
this.update(t || "default"), n._clip = Ox($(this.options.clip, Rx(n.xScale, n.yScale, this.getMaxOverflow())));
|
|
8196
8196
|
}
|
|
8197
8197
|
update(t) {
|
|
8198
8198
|
}
|
|
@@ -8502,7 +8502,7 @@ class Ei extends Ge {
|
|
|
8502
8502
|
const { iScale: o, vScale: r } = t, { xAxisKey: a = "x", yAxisKey: l = "y" } = this._parsing, c = o.axis === "x" ? a : l, u = r.axis === "x" ? a : l, d = [];
|
|
8503
8503
|
let f, h, p, g;
|
|
8504
8504
|
for (f = i, h = i + s; f < h; ++f)
|
|
8505
|
-
g = n[f], p = {}, p[o.axis] = o.parse(
|
|
8505
|
+
g = n[f], p = {}, p[o.axis] = o.parse(Ae(g, c), f), d.push(nd(Ae(g, u), p, r, f));
|
|
8506
8506
|
return d;
|
|
8507
8507
|
}
|
|
8508
8508
|
updateRangeFromParsed(t, n, i, s) {
|
|
@@ -8702,7 +8702,7 @@ class Ye extends Ge {
|
|
|
8702
8702
|
let o = (l) => +i[l];
|
|
8703
8703
|
if (B(i[t])) {
|
|
8704
8704
|
const { key: l = "value" } = this._parsing;
|
|
8705
|
-
o = (c) => +
|
|
8705
|
+
o = (c) => +Ae(i[c], l);
|
|
8706
8706
|
}
|
|
8707
8707
|
let r, a;
|
|
8708
8708
|
for (r = t, a = t + n; r < a; ++r)
|
|
@@ -9251,7 +9251,7 @@ function Ga(e, t, n, i) {
|
|
|
9251
9251
|
}
|
|
9252
9252
|
t.x = o, t.y = r;
|
|
9253
9253
|
}
|
|
9254
|
-
var
|
|
9254
|
+
var Rt = {
|
|
9255
9255
|
addBox(e, t) {
|
|
9256
9256
|
e.boxes || (e.boxes = []), t.fullSize = t.fullSize || !1, t.position = t.position || "top", t.weight = t.weight || 0, t._layers = t._layers || function() {
|
|
9257
9257
|
return [
|
|
@@ -9613,7 +9613,7 @@ function Pv(e) {
|
|
|
9613
9613
|
return !1;
|
|
9614
9614
|
return i;
|
|
9615
9615
|
}
|
|
9616
|
-
const
|
|
9616
|
+
const Av = (e) => e === "left" ? "right" : e === "right" ? "left" : e, Za = (e, t, n) => t === "top" || t === "left" ? e[t] + n : e[t] - n, Qa = (e, t) => Math.min(t || e, e);
|
|
9617
9617
|
function tl(e, t) {
|
|
9618
9618
|
const n = [], i = e.length / t, s = e.length;
|
|
9619
9619
|
let o = 0;
|
|
@@ -9621,7 +9621,7 @@ function tl(e, t) {
|
|
|
9621
9621
|
n.push(e[Math.floor(o)]);
|
|
9622
9622
|
return n;
|
|
9623
9623
|
}
|
|
9624
|
-
function
|
|
9624
|
+
function Rv(e, t, n) {
|
|
9625
9625
|
const i = e.ticks.length, s = Math.min(t, i - 1), o = e._startPixel, r = e._endPixel, a = 1e-6;
|
|
9626
9626
|
let l = e.getPixelForTick(s), c;
|
|
9627
9627
|
if (!(n && (i === 1 ? c = Math.max(l - o, r - l) : t === 0 ? c = (e.getPixelForTick(1) - l) / 2 : c = (l - e.getPixelForTick(s - 1)) / 2, l += s < t ? c : -c, l < o - a || l > r + a)))
|
|
@@ -9662,7 +9662,7 @@ function Dv(e, t, n) {
|
|
|
9662
9662
|
}
|
|
9663
9663
|
function Tv(e, t, n) {
|
|
9664
9664
|
let i = sr(e);
|
|
9665
|
-
return (n && t !== "right" || !n && t === "right") && (i =
|
|
9665
|
+
return (n && t !== "right" || !n && t === "right") && (i = Av(i)), i;
|
|
9666
9666
|
}
|
|
9667
9667
|
function Lv(e, t, n, i) {
|
|
9668
9668
|
const { top: s, left: o, bottom: r, right: a, chart: l } = e, { chartArea: c, scales: u } = l;
|
|
@@ -9933,9 +9933,9 @@ class Le extends ft {
|
|
|
9933
9933
|
r.push(v), a.push(_), c = Math.max(v, c), u = Math.max(_, u);
|
|
9934
9934
|
}
|
|
9935
9935
|
Ov(o, n);
|
|
9936
|
-
const C = r.indexOf(c), S = a.indexOf(u), k = (
|
|
9937
|
-
width: r[
|
|
9938
|
-
height: a[
|
|
9936
|
+
const C = r.indexOf(c), S = a.indexOf(u), k = (A) => ({
|
|
9937
|
+
width: r[A] || 0,
|
|
9938
|
+
height: a[A] || 0
|
|
9939
9939
|
});
|
|
9940
9940
|
return {
|
|
9941
9941
|
first: k(0),
|
|
@@ -9994,11 +9994,11 @@ class Le extends ft {
|
|
|
9994
9994
|
const n = this.axis, i = this.chart, s = this.options, { grid: o, position: r, border: a } = s, l = o.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), f = xn(o), h = [], p = a.setContext(this.getContext()), g = p.display ? p.width : 0, m = g / 2, b = function(O) {
|
|
9995
9995
|
return pe(i, O, g);
|
|
9996
9996
|
};
|
|
9997
|
-
let y, v, _, w, C, S, k,
|
|
9997
|
+
let y, v, _, w, C, S, k, A, P, E, D, I;
|
|
9998
9998
|
if (r === "top")
|
|
9999
|
-
y = b(this.bottom), S = this.bottom - f,
|
|
9999
|
+
y = b(this.bottom), S = this.bottom - f, A = y - m, E = b(t.top) + m, I = t.bottom;
|
|
10000
10000
|
else if (r === "bottom")
|
|
10001
|
-
y = b(this.top), E = t.top, I = b(t.bottom) - m, S = y + m,
|
|
10001
|
+
y = b(this.top), E = t.top, I = b(t.bottom) - m, S = y + m, A = this.top + f;
|
|
10002
10002
|
else if (r === "left")
|
|
10003
10003
|
y = b(this.right), C = this.right - f, k = y - m, P = b(t.left) + m, D = t.right;
|
|
10004
10004
|
else if (r === "right")
|
|
@@ -10010,7 +10010,7 @@ class Le extends ft {
|
|
|
10010
10010
|
const O = Object.keys(r)[0], N = r[O];
|
|
10011
10011
|
y = b(this.chart.scales[O].getPixelForValue(N));
|
|
10012
10012
|
}
|
|
10013
|
-
E = t.top, I = t.bottom, S = y + m,
|
|
10013
|
+
E = t.top, I = t.bottom, S = y + m, A = S + f;
|
|
10014
10014
|
} else if (n === "y") {
|
|
10015
10015
|
if (r === "center")
|
|
10016
10016
|
y = b((t.left + t.right) / 2);
|
|
@@ -10022,17 +10022,17 @@ class Le extends ft {
|
|
|
10022
10022
|
}
|
|
10023
10023
|
const F = $(s.ticks.maxTicksLimit, d), j = Math.max(1, Math.ceil(d / F));
|
|
10024
10024
|
for (v = 0; v < d; v += j) {
|
|
10025
|
-
const O = this.getContext(v), N = o.setContext(O), T = a.setContext(O),
|
|
10026
|
-
_ =
|
|
10025
|
+
const O = this.getContext(v), N = o.setContext(O), T = a.setContext(O), R = N.lineWidth, Y = N.color, V = T.dash || [], J = T.dashOffset, at = N.tickWidth, ct = N.tickColor, wt = N.tickBorderDash || [], dt = N.tickBorderDashOffset;
|
|
10026
|
+
_ = Rv(this, v, l), _ !== void 0 && (w = pe(i, _, R), c ? C = k = P = D = w : S = A = E = I = w, h.push({
|
|
10027
10027
|
tx1: C,
|
|
10028
10028
|
ty1: S,
|
|
10029
10029
|
tx2: k,
|
|
10030
|
-
ty2:
|
|
10030
|
+
ty2: A,
|
|
10031
10031
|
x1: P,
|
|
10032
10032
|
y1: E,
|
|
10033
10033
|
x2: D,
|
|
10034
10034
|
y2: I,
|
|
10035
|
-
width:
|
|
10035
|
+
width: R,
|
|
10036
10036
|
color: Y,
|
|
10037
10037
|
borderDash: V,
|
|
10038
10038
|
borderDashOffset: J,
|
|
@@ -10046,7 +10046,7 @@ class Le extends ft {
|
|
|
10046
10046
|
}
|
|
10047
10047
|
_computeLabelItems(t) {
|
|
10048
10048
|
const n = this.axis, i = this.options, { position: s, ticks: o } = i, r = this.isHorizontal(), a = this.ticks, { align: l, crossAlign: c, padding: u, mirror: d } = o, f = xn(i.grid), h = f + u, p = d ? -u : h, g = -rt(this.labelRotation), m = [];
|
|
10049
|
-
let b, y, v, _, w, C, S, k,
|
|
10049
|
+
let b, y, v, _, w, C, S, k, A, P, E, D, I = "middle";
|
|
10050
10050
|
if (s === "top")
|
|
10051
10051
|
C = this.bottom - p, S = this._getXAxisLabelAlignment();
|
|
10052
10052
|
else if (s === "bottom")
|
|
@@ -10079,8 +10079,8 @@ class Le extends ft {
|
|
|
10079
10079
|
for (b = 0, y = a.length; b < y; ++b) {
|
|
10080
10080
|
v = a[b], _ = v.label;
|
|
10081
10081
|
const j = o.setContext(this.getContext(b));
|
|
10082
|
-
k = this.getPixelForTick(b) + o.labelOffset,
|
|
10083
|
-
const O = E / 2, N = j.color, T = j.textStrokeColor,
|
|
10082
|
+
k = this.getPixelForTick(b) + o.labelOffset, A = this._resolveTickFontOptions(b), P = A.lineHeight, E = q(_) ? _.length : 1;
|
|
10083
|
+
const O = E / 2, N = j.color, T = j.textStrokeColor, R = j.textStrokeWidth;
|
|
10084
10084
|
let Y = S;
|
|
10085
10085
|
r ? (w = k, S === "inner" && (b === y - 1 ? Y = this.options.reverse ? "left" : "right" : b === 0 ? Y = this.options.reverse ? "right" : "left" : Y = "center"), s === "top" ? c === "near" || g !== 0 ? D = -E * P + P / 2 : c === "center" ? D = -F.highest.height / 2 - O * P + P : D = -F.highest.height + P / 2 : c === "near" || g !== 0 ? D = P / 2 : c === "center" ? D = F.highest.height / 2 - O * P : D = F.highest.height - E * P, d && (D *= -1), g !== 0 && !j.showLabelBackdrop && (w += P / 2 * Math.sin(g))) : (C = k, D = (1 - E) * P / 2);
|
|
10086
10086
|
let V;
|
|
@@ -10116,13 +10116,13 @@ class Le extends ft {
|
|
|
10116
10116
|
}
|
|
10117
10117
|
m.push({
|
|
10118
10118
|
label: _,
|
|
10119
|
-
font:
|
|
10119
|
+
font: A,
|
|
10120
10120
|
textOffset: D,
|
|
10121
10121
|
options: {
|
|
10122
10122
|
rotation: g,
|
|
10123
10123
|
color: N,
|
|
10124
10124
|
strokeColor: T,
|
|
10125
|
-
strokeWidth:
|
|
10125
|
+
strokeWidth: R,
|
|
10126
10126
|
textAlign: Y,
|
|
10127
10127
|
textBaseline: I,
|
|
10128
10128
|
translation: [
|
|
@@ -10321,7 +10321,7 @@ class yi {
|
|
|
10321
10321
|
}
|
|
10322
10322
|
unregister(t) {
|
|
10323
10323
|
const n = this.items, i = t.id, s = this.scope;
|
|
10324
|
-
i in n && delete n[i], s && i in tt[s] && (delete tt[s][i], this.override && delete
|
|
10324
|
+
i in n && delete n[i], s && i in tt[s] && (delete tt[s][i], this.override && delete Re[i]);
|
|
10325
10325
|
}
|
|
10326
10326
|
}
|
|
10327
10327
|
function Iv(e, t, n) {
|
|
@@ -10551,7 +10551,7 @@ function Uv(e, t) {
|
|
|
10551
10551
|
return {};
|
|
10552
10552
|
}
|
|
10553
10553
|
function Xv(e, t) {
|
|
10554
|
-
const n =
|
|
10554
|
+
const n = Re[e.type] || {
|
|
10555
10555
|
scales: {}
|
|
10556
10556
|
}, i = t.scales || {}, s = Co(e.type, t), o = /* @__PURE__ */ Object.create(null);
|
|
10557
10557
|
return Object.keys(i).forEach((r) => {
|
|
@@ -10570,7 +10570,7 @@ function Xv(e, t) {
|
|
|
10570
10570
|
u[c]
|
|
10571
10571
|
]);
|
|
10572
10572
|
}), e.data.datasets.forEach((r) => {
|
|
10573
|
-
const a = r.type || e.type, l = r.indexAxis || Co(a, t), u = (
|
|
10573
|
+
const a = r.type || e.type, l = r.indexAxis || Co(a, t), u = (Re[a] || {}).scales || {};
|
|
10574
10574
|
Object.keys(u).forEach((d) => {
|
|
10575
10575
|
const f = Hv(d, l), h = r[f + "AxisID"] || f;
|
|
10576
10576
|
o[h] = o[h] || /* @__PURE__ */ Object.create(null), On(o[h], [
|
|
@@ -10605,7 +10605,7 @@ function xi(e, t) {
|
|
|
10605
10605
|
return n || (n = t(), sl.set(e, n), ud.add(n)), n;
|
|
10606
10606
|
}
|
|
10607
10607
|
const vn = (e, t, n) => {
|
|
10608
|
-
const i =
|
|
10608
|
+
const i = Ae(t, n);
|
|
10609
10609
|
i !== void 0 && e.add(i);
|
|
10610
10610
|
};
|
|
10611
10611
|
class qv {
|
|
@@ -10693,7 +10693,7 @@ class qv {
|
|
|
10693
10693
|
return a;
|
|
10694
10694
|
const l = /* @__PURE__ */ new Set();
|
|
10695
10695
|
n.forEach((u) => {
|
|
10696
|
-
t && (l.add(t), u.forEach((d) => vn(l, t, d))), u.forEach((d) => vn(l, s, d)), u.forEach((d) => vn(l,
|
|
10696
|
+
t && (l.add(t), u.forEach((d) => vn(l, t, d))), u.forEach((d) => vn(l, s, d)), u.forEach((d) => vn(l, Re[o] || {}, d)), u.forEach((d) => vn(l, tt, d)), u.forEach((d) => vn(l, wo, d));
|
|
10697
10697
|
});
|
|
10698
10698
|
const c = Array.from(l);
|
|
10699
10699
|
return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), ud.has(n) && r.set(n, c), c;
|
|
@@ -10702,7 +10702,7 @@ class qv {
|
|
|
10702
10702
|
const { options: t, type: n } = this;
|
|
10703
10703
|
return [
|
|
10704
10704
|
t,
|
|
10705
|
-
|
|
10705
|
+
Re[n] || {},
|
|
10706
10706
|
tt.datasets[n] || {},
|
|
10707
10707
|
{
|
|
10708
10708
|
type: n
|
|
@@ -10901,7 +10901,7 @@ let ue = (ne = class {
|
|
|
10901
10901
|
}), X(s, (r, a) => {
|
|
10902
10902
|
r || delete i[a];
|
|
10903
10903
|
}), X(i, (r) => {
|
|
10904
|
-
|
|
10904
|
+
Rt.configure(this, r, r.options), Rt.addBox(this, r);
|
|
10905
10905
|
});
|
|
10906
10906
|
}
|
|
10907
10907
|
_updateMetasets() {
|
|
@@ -10972,7 +10972,7 @@ let ue = (ne = class {
|
|
|
10972
10972
|
}
|
|
10973
10973
|
_updateScales() {
|
|
10974
10974
|
X(this.scales, (t) => {
|
|
10975
|
-
|
|
10975
|
+
Rt.removeBox(this, t);
|
|
10976
10976
|
}), this.ensureScalesHaveIDs(), this.buildOrUpdateScales();
|
|
10977
10977
|
}
|
|
10978
10978
|
_checkEventBindings() {
|
|
@@ -11006,7 +11006,7 @@ let ue = (ne = class {
|
|
|
11006
11006
|
cancelable: !0
|
|
11007
11007
|
}) === !1)
|
|
11008
11008
|
return;
|
|
11009
|
-
|
|
11009
|
+
Rt.update(this, this.width, this.height, t);
|
|
11010
11010
|
const n = this.chartArea, i = n.width <= 0 || n.height <= 0;
|
|
11011
11011
|
this._layers = [], X(this.boxes, (s) => {
|
|
11012
11012
|
i && s.position === "chartArea" || (s.configure && s.configure(), this._layers.push(...s._layers()));
|
|
@@ -11277,7 +11277,7 @@ let ue = (ne = class {
|
|
|
11277
11277
|
const o = this.options.hover;
|
|
11278
11278
|
return this.getElementsAtEventForMode(t, o.mode, o, s);
|
|
11279
11279
|
}
|
|
11280
|
-
}, L(ne, "defaults", tt), L(ne, "instances", Ti), L(ne, "overrides",
|
|
11280
|
+
}, L(ne, "defaults", tt), L(ne, "instances", Ti), L(ne, "overrides", Re), L(ne, "registry", It), L(ne, "version", Qv), L(ne, "getChart", cl), ne);
|
|
11281
11281
|
function ul() {
|
|
11282
11282
|
return X(ue.instances, (e) => e._plugins.invalidate());
|
|
11283
11283
|
}
|
|
@@ -11336,31 +11336,31 @@ function ns(e, t, n, i, s, o) {
|
|
|
11336
11336
|
const j = u > 0 ? u - i : 0, O = d > 0 ? d - i : 0, N = (j + O) / 2, T = N !== 0 ? p * N / (N + i) : p;
|
|
11337
11337
|
h = (p - T) / 2;
|
|
11338
11338
|
}
|
|
11339
|
-
const g = Math.max(1e-3, p * d - n / W) / d, m = (p - g) / 2, b = l + m + h, y = s - m - h, { outerStart: v, outerEnd: _, innerStart: w, innerEnd: C } = a0(t, f, d, y - b), S = d - v, k = d - _,
|
|
11339
|
+
const g = Math.max(1e-3, p * d - n / W) / d, m = (p - g) / 2, b = l + m + h, y = s - m - h, { outerStart: v, outerEnd: _, innerStart: w, innerEnd: C } = a0(t, f, d, y - b), S = d - v, k = d - _, A = b + v / S, P = y - _ / k, E = f + w, D = f + C, I = b + w / E, F = y - C / D;
|
|
11340
11340
|
if (e.beginPath(), o) {
|
|
11341
|
-
const j = (
|
|
11342
|
-
if (e.arc(r, a, d,
|
|
11343
|
-
const
|
|
11344
|
-
e.arc(
|
|
11341
|
+
const j = (A + P) / 2;
|
|
11342
|
+
if (e.arc(r, a, d, A, j), e.arc(r, a, d, j, P), _ > 0) {
|
|
11343
|
+
const R = Ve(k, P, r, a);
|
|
11344
|
+
e.arc(R.x, R.y, _, P, y + Q);
|
|
11345
11345
|
}
|
|
11346
11346
|
const O = Ve(D, y, r, a);
|
|
11347
11347
|
if (e.lineTo(O.x, O.y), C > 0) {
|
|
11348
|
-
const
|
|
11349
|
-
e.arc(
|
|
11348
|
+
const R = Ve(D, F, r, a);
|
|
11349
|
+
e.arc(R.x, R.y, C, y + Q, F + Math.PI);
|
|
11350
11350
|
}
|
|
11351
11351
|
const N = (y - C / f + (b + w / f)) / 2;
|
|
11352
11352
|
if (e.arc(r, a, f, y - C / f, N, !0), e.arc(r, a, f, N, b + w / f, !0), w > 0) {
|
|
11353
|
-
const
|
|
11354
|
-
e.arc(
|
|
11353
|
+
const R = Ve(E, I, r, a);
|
|
11354
|
+
e.arc(R.x, R.y, w, I + Math.PI, b - Q);
|
|
11355
11355
|
}
|
|
11356
11356
|
const T = Ve(S, b, r, a);
|
|
11357
11357
|
if (e.lineTo(T.x, T.y), v > 0) {
|
|
11358
|
-
const
|
|
11359
|
-
e.arc(
|
|
11358
|
+
const R = Ve(S, A, r, a);
|
|
11359
|
+
e.arc(R.x, R.y, v, b - Q, A);
|
|
11360
11360
|
}
|
|
11361
11361
|
} else {
|
|
11362
11362
|
e.moveTo(r, a);
|
|
11363
|
-
const j = Math.cos(
|
|
11363
|
+
const j = Math.cos(A) * d + r, O = Math.sin(A) * d + a;
|
|
11364
11364
|
e.lineTo(j, O);
|
|
11365
11365
|
const N = Math.cos(P) * d + r, T = Math.sin(P) * d + a;
|
|
11366
11366
|
e.lineTo(N, T);
|
|
@@ -11768,13 +11768,13 @@ class hl extends ft {
|
|
|
11768
11768
|
if (isNaN(p) || p <= 0 || isNaN(g) || g < 0)
|
|
11769
11769
|
return;
|
|
11770
11770
|
s.save();
|
|
11771
|
-
const
|
|
11772
|
-
if (s.fillStyle = $(k.fillStyle, a), s.lineCap = $(k.lineCap, "butt"), s.lineDashOffset = $(k.lineDashOffset, 0), s.lineJoin = $(k.lineJoin, "miter"), s.lineWidth =
|
|
11771
|
+
const A = $(k.lineWidth, 1);
|
|
11772
|
+
if (s.fillStyle = $(k.fillStyle, a), s.lineCap = $(k.lineCap, "butt"), s.lineDashOffset = $(k.lineDashOffset, 0), s.lineJoin = $(k.lineJoin, "miter"), s.lineWidth = A, s.strokeStyle = $(k.strokeStyle, a), s.setLineDash($(k.lineDash, [])), r.usePointStyle) {
|
|
11773
11773
|
const P = {
|
|
11774
11774
|
radius: g * Math.SQRT2 / 2,
|
|
11775
11775
|
pointStyle: k.pointStyle,
|
|
11776
11776
|
rotation: k.rotation,
|
|
11777
|
-
borderWidth:
|
|
11777
|
+
borderWidth: A
|
|
11778
11778
|
}, E = l.xPlus(C, p / 2), D = S + f;
|
|
11779
11779
|
Uu(s, P, E, D, r.pointStyleWidth && p);
|
|
11780
11780
|
} else {
|
|
@@ -11785,7 +11785,7 @@ class hl extends ft {
|
|
|
11785
11785
|
w: p,
|
|
11786
11786
|
h: g,
|
|
11787
11787
|
radius: D
|
|
11788
|
-
}) : s.rect(E, P, p, g), s.fill(),
|
|
11788
|
+
}) : s.rect(E, P, p, g), s.fill(), A !== 0 && s.stroke();
|
|
11789
11789
|
}
|
|
11790
11790
|
s.restore();
|
|
11791
11791
|
}, y = function(C, S, k) {
|
|
@@ -11806,11 +11806,11 @@ class hl extends ft {
|
|
|
11806
11806
|
const w = m + u;
|
|
11807
11807
|
this.legendItems.forEach((C, S) => {
|
|
11808
11808
|
s.strokeStyle = C.fontColor, s.fillStyle = C.fontColor;
|
|
11809
|
-
const k = s.measureText(C.text).width,
|
|
11809
|
+
const k = s.measureText(C.text).width, A = l.textAlign(C.textAlign || (C.textAlign = r.textAlign)), P = p + f + k;
|
|
11810
11810
|
let E = h.x, D = h.y;
|
|
11811
11811
|
l.setWidth(this.width), v ? S > 0 && E + P + u > this.right && (D = h.y += w, h.line++, E = h.x = ut(o, this.left + u, this.right - i[h.line])) : S > 0 && D + w > this.bottom && (E = h.x = E + n[h.line].width + u, h.line++, D = h.y = ut(o, this.top + _ + u, this.bottom - n[h.line].height));
|
|
11812
11812
|
const I = l.x(E);
|
|
11813
|
-
if (b(I, D, C), E = By(
|
|
11813
|
+
if (b(I, D, C), E = By(A, E + p + f, v ? E + P : this.right, t.rtl), y(l.x(E), D, C), v)
|
|
11814
11814
|
h.x += P + u;
|
|
11815
11815
|
else if (typeof C.text != "string") {
|
|
11816
11816
|
const F = c.lineHeight;
|
|
@@ -11901,14 +11901,14 @@ var gd = {
|
|
|
11901
11901
|
options: n,
|
|
11902
11902
|
chart: e
|
|
11903
11903
|
});
|
|
11904
|
-
|
|
11904
|
+
Rt.configure(e, i, n), Rt.addBox(e, i);
|
|
11905
11905
|
},
|
|
11906
11906
|
stop(e) {
|
|
11907
|
-
|
|
11907
|
+
Rt.removeBox(e, e.legend), delete e.legend;
|
|
11908
11908
|
},
|
|
11909
11909
|
beforeUpdate(e, t, n) {
|
|
11910
11910
|
const i = e.legend;
|
|
11911
|
-
|
|
11911
|
+
Rt.configure(e, i, n), i.options = n;
|
|
11912
11912
|
},
|
|
11913
11913
|
afterUpdate(e) {
|
|
11914
11914
|
const t = e.legend;
|
|
@@ -12030,7 +12030,7 @@ function v0(e, t) {
|
|
|
12030
12030
|
options: t,
|
|
12031
12031
|
chart: e
|
|
12032
12032
|
});
|
|
12033
|
-
|
|
12033
|
+
Rt.configure(e, n, t), Rt.addBox(e, n), e.titleBlock = n;
|
|
12034
12034
|
}
|
|
12035
12035
|
var dS = {
|
|
12036
12036
|
id: "title",
|
|
@@ -12040,11 +12040,11 @@ var dS = {
|
|
|
12040
12040
|
},
|
|
12041
12041
|
stop(e) {
|
|
12042
12042
|
const t = e.titleBlock;
|
|
12043
|
-
|
|
12043
|
+
Rt.removeBox(e, t), delete e.titleBlock;
|
|
12044
12044
|
},
|
|
12045
12045
|
beforeUpdate(e, t, n) {
|
|
12046
12046
|
const i = e.titleBlock;
|
|
12047
|
-
|
|
12047
|
+
Rt.configure(e, i, n), i.options = n;
|
|
12048
12048
|
},
|
|
12049
12049
|
defaults: {
|
|
12050
12050
|
align: "center",
|
|
@@ -12608,14 +12608,14 @@ var bd = {
|
|
|
12608
12608
|
"interaction"
|
|
12609
12609
|
]
|
|
12610
12610
|
};
|
|
12611
|
-
const
|
|
12611
|
+
const A0 = (e, t, n, i) => (typeof t == "string" ? (n = e.push(t) - 1, i.unshift({
|
|
12612
12612
|
index: n,
|
|
12613
12613
|
label: t
|
|
12614
12614
|
})) : isNaN(t) && (n = null), n);
|
|
12615
|
-
function
|
|
12615
|
+
function R0(e, t, n, i) {
|
|
12616
12616
|
const s = e.indexOf(t);
|
|
12617
12617
|
if (s === -1)
|
|
12618
|
-
return
|
|
12618
|
+
return A0(e, t, n, i);
|
|
12619
12619
|
const o = e.lastIndexOf(t);
|
|
12620
12620
|
return s !== o ? n : s;
|
|
12621
12621
|
}
|
|
@@ -12642,7 +12642,7 @@ class vl extends Le {
|
|
|
12642
12642
|
if (K(t))
|
|
12643
12643
|
return null;
|
|
12644
12644
|
const i = this.getLabels();
|
|
12645
|
-
return n = isFinite(n) && i[n] === t ? n :
|
|
12645
|
+
return n = isFinite(n) && i[n] === t ? n : R0(i, t, $(n, t), this._addedLabels), O0(n, i.length - 1);
|
|
12646
12646
|
}
|
|
12647
12647
|
determineDataLimits() {
|
|
12648
12648
|
const { minDefined: t, maxDefined: n } = this.getUserBounds();
|
|
@@ -12686,7 +12686,7 @@ L(vl, "id", "category"), L(vl, "defaults", {
|
|
|
12686
12686
|
});
|
|
12687
12687
|
function E0(e, t) {
|
|
12688
12688
|
const n = [], { bounds: s, step: o, min: r, max: a, precision: l, count: c, maxTicks: u, maxDigits: d, includeBounds: f } = e, h = o || 1, p = u - 1, { min: g, max: m } = t, b = !K(r), y = !K(a), v = !K(c), _ = (m - g) / (d + 1);
|
|
12689
|
-
let w = Ma((m - g) / p / h) * h, C, S, k,
|
|
12689
|
+
let w = Ma((m - g) / p / h) * h, C, S, k, A;
|
|
12690
12690
|
if (w < 1e-14 && !b && !y)
|
|
12691
12691
|
return [
|
|
12692
12692
|
{
|
|
@@ -12696,13 +12696,13 @@ function E0(e, t) {
|
|
|
12696
12696
|
value: m
|
|
12697
12697
|
}
|
|
12698
12698
|
];
|
|
12699
|
-
|
|
12699
|
+
A = Math.ceil(m / w) - Math.floor(g / w), A > p && (w = Ma(A * w / p / h) * h), K(l) || (C = Math.pow(10, l), w = Math.ceil(w * C) / C), s === "ticks" ? (S = Math.floor(g / w) * w, k = Math.ceil(m / w) * w) : (S = g, k = m), b && y && o && Ly((a - r) / o, w / 1e3) ? (A = Math.round(Math.min((a - r) / w, u)), w = (a - r) / A, S = r, k = a) : v ? (S = b ? r : S, k = y ? a : k, A = c - 1, w = (k - S) / A) : (A = (k - S) / w, Oi(A, Math.round(A), w / 1e3) ? A = Math.round(A) : A = Math.ceil(A));
|
|
12700
12700
|
const P = Math.max(Ca(w), Ca(S));
|
|
12701
12701
|
C = Math.pow(10, K(l) ? P : l), S = Math.round(S * C) / C, k = Math.round(k * C) / C;
|
|
12702
12702
|
let E = 0;
|
|
12703
12703
|
for (b && (f && S !== r ? (n.push({
|
|
12704
12704
|
value: r
|
|
12705
|
-
}), S < r && E++, Oi(Math.round((S + E * w) * C) / C, r, _l(r, _, e)) && E++) : S < r && E++); E <
|
|
12705
|
+
}), S < r && E++, Oi(Math.round((S + E * w) * C) / C, r, _l(r, _, e)) && E++) : S < r && E++); E < A; ++E) {
|
|
12706
12706
|
const D = Math.round((S + E * w) * C) / C;
|
|
12707
12707
|
if (y && D > a)
|
|
12708
12708
|
break;
|
|
@@ -12949,7 +12949,7 @@ function Pl(e, t) {
|
|
|
12949
12949
|
let r = t;
|
|
12950
12950
|
return typeof i == "function" && (r = i(r)), ot(r) || (r = typeof i == "string" ? n.parse(r, i) : n.parse(r)), r === null ? null : (s && (r = s === "week" && (Ze(o) || o === !0) ? n.startOf(r, "isoWeek", o) : n.startOf(r, s)), +r);
|
|
12951
12951
|
}
|
|
12952
|
-
function
|
|
12952
|
+
function Al(e, t, n, i) {
|
|
12953
12953
|
const s = pt.length;
|
|
12954
12954
|
for (let o = pt.indexOf(e); o < s - 1; ++o) {
|
|
12955
12955
|
const r = Cs[pt[o]], a = r.steps ? r.steps : Number.MAX_SAFE_INTEGER;
|
|
@@ -12971,7 +12971,7 @@ function I0(e) {
|
|
|
12971
12971
|
if (Cs[pt[t]].common)
|
|
12972
12972
|
return pt[t];
|
|
12973
12973
|
}
|
|
12974
|
-
function
|
|
12974
|
+
function Rl(e, t, n) {
|
|
12975
12975
|
if (!n)
|
|
12976
12976
|
e[t] = !0;
|
|
12977
12977
|
else if (n.length) {
|
|
@@ -13042,7 +13042,7 @@ class is extends Le {
|
|
|
13042
13042
|
const t = this.options, n = t.time, i = t.ticks, s = i.source === "labels" ? this.getLabelTimestamps() : this._generate();
|
|
13043
13043
|
t.bounds === "ticks" && s.length && (this.min = this._userMin || s[0], this.max = this._userMax || s[s.length - 1]);
|
|
13044
13044
|
const o = this.min, r = this.max, a = Ny(s, o, r);
|
|
13045
|
-
return this._unit = n.unit || (i.autoSkip ?
|
|
13045
|
+
return this._unit = n.unit || (i.autoSkip ? Al(n.minUnit, this.min, this.max, this._getLabelCapacity(o)) : L0(this, a.length, n.minUnit, this.min, this.max)), this._majorUnit = !i.major.enabled || this._unit === "year" ? void 0 : I0(this._unit), this.initOffsets(s), t.reverse && a.reverse(), Ol(this, a, this._majorUnit);
|
|
13046
13046
|
}
|
|
13047
13047
|
afterAutoSkip() {
|
|
13048
13048
|
this.options.offsetAfterAutoskip && this.initOffsets(this.ticks.map((t) => +t.value));
|
|
@@ -13058,14 +13058,14 @@ class is extends Le {
|
|
|
13058
13058
|
};
|
|
13059
13059
|
}
|
|
13060
13060
|
_generate() {
|
|
13061
|
-
const t = this._adapter, n = this.min, i = this.max, s = this.options, o = s.time, r = o.unit ||
|
|
13061
|
+
const t = this._adapter, n = this.min, i = this.max, s = this.options, o = s.time, r = o.unit || Al(o.minUnit, n, i, this._getLabelCapacity(n)), a = $(s.ticks.stepSize, 1), l = r === "week" ? o.isoWeekday : !1, c = Ze(l) || l === !0, u = {};
|
|
13062
13062
|
let d = n, f, h;
|
|
13063
13063
|
if (c && (d = +t.startOf(d, "isoWeek", l)), d = +t.startOf(d, c ? "day" : r), t.diff(i, n, r) > 1e5 * a)
|
|
13064
13064
|
throw new Error(n + " and " + i + " are too far apart with stepSize of " + a + " " + r);
|
|
13065
13065
|
const p = s.ticks.source === "data" && this.getDataTimestamps();
|
|
13066
13066
|
for (f = d, h = 0; f < i; f = +t.add(f, a, r), h++)
|
|
13067
|
-
|
|
13068
|
-
return (f === i || s.bounds === "ticks" || h === 1) &&
|
|
13067
|
+
Rl(u, f, p);
|
|
13068
|
+
return (f === i || s.bounds === "ticks" || h === 1) && Rl(u, f, p), Object.keys(u).sort(kl).map((g) => +g);
|
|
13069
13069
|
}
|
|
13070
13070
|
getLabelForValue(t) {
|
|
13071
13071
|
const n = this._adapter, i = this.options.time;
|
|
@@ -13549,11 +13549,11 @@ function J0(e, t, n, i) {
|
|
|
13549
13549
|
y: n.y + n.h * f
|
|
13550
13550
|
});
|
|
13551
13551
|
}
|
|
13552
|
-
var
|
|
13552
|
+
var Ad = function(e, t, n, i) {
|
|
13553
13553
|
var s = this;
|
|
13554
13554
|
s._config = e, s._index = i, s._model = null, s._rects = null, s._ctx = t, s._el = n;
|
|
13555
13555
|
};
|
|
13556
|
-
Wt(
|
|
13556
|
+
Wt(Ad.prototype, {
|
|
13557
13557
|
/**
|
|
13558
13558
|
* @private
|
|
13559
13559
|
*/
|
|
@@ -13639,7 +13639,7 @@ function Ci(e, t) {
|
|
|
13639
13639
|
ln: s
|
|
13640
13640
|
};
|
|
13641
13641
|
}
|
|
13642
|
-
var
|
|
13642
|
+
var Rd = function() {
|
|
13643
13643
|
this._rotation = 0, this._rect = {
|
|
13644
13644
|
x: 0,
|
|
13645
13645
|
y: 0,
|
|
@@ -13647,7 +13647,7 @@ var Ad = function() {
|
|
|
13647
13647
|
h: 0
|
|
13648
13648
|
};
|
|
13649
13649
|
};
|
|
13650
|
-
Wt(
|
|
13650
|
+
Wt(Rd.prototype, {
|
|
13651
13651
|
center: function() {
|
|
13652
13652
|
var e = this._rect;
|
|
13653
13653
|
return {
|
|
@@ -13727,7 +13727,7 @@ var Ln = {
|
|
|
13727
13727
|
for (n = 0, s = e.length; n < s; ++n)
|
|
13728
13728
|
for (i = 0, o = e[n].length; i < o; ++i)
|
|
13729
13729
|
r = e[n][i], t.push(r), r.$layout = {
|
|
13730
|
-
_box: new
|
|
13730
|
+
_box: new Rd(),
|
|
13731
13731
|
_hidable: !1,
|
|
13732
13732
|
_visible: !0,
|
|
13733
13733
|
_set: n,
|
|
@@ -13822,7 +13822,7 @@ function s_(e, t) {
|
|
|
13822
13822
|
listeners: i
|
|
13823
13823
|
});
|
|
13824
13824
|
}
|
|
13825
|
-
function
|
|
13825
|
+
function Ao(e, t, n, i) {
|
|
13826
13826
|
if (t) {
|
|
13827
13827
|
var s = n.$context, o = n.$groups, r;
|
|
13828
13828
|
t[o._set] && (r = t[o._set][o._key], r && U(r, [s, i]) === !0 && (e[gt]._dirty = !0, n.update(s)));
|
|
@@ -13830,7 +13830,7 @@ function Ro(e, t, n, i) {
|
|
|
13830
13830
|
}
|
|
13831
13831
|
function o_(e, t, n, i, s) {
|
|
13832
13832
|
var o, r;
|
|
13833
|
-
!n && !i || (n ? i ? n !== i && (r = o = !0) : r = !0 : o = !0, r &&
|
|
13833
|
+
!n && !i || (n ? i ? n !== i && (r = o = !0) : r = !0 : o = !0, r && Ao(e, t.leave, n, s), o && Ao(e, t.enter, i, s));
|
|
13834
13834
|
}
|
|
13835
13835
|
function r_(e, t) {
|
|
13836
13836
|
var n = e[gt], i = n._listeners, s, o;
|
|
@@ -13844,7 +13844,7 @@ function r_(e, t) {
|
|
|
13844
13844
|
}
|
|
13845
13845
|
function a_(e, t) {
|
|
13846
13846
|
var n = e[gt], i = n._listeners.click, s = i && Ln.lookup(n._labels, t);
|
|
13847
|
-
s &&
|
|
13847
|
+
s && Ao(e, i, s, t);
|
|
13848
13848
|
}
|
|
13849
13849
|
var Dd = {
|
|
13850
13850
|
id: "datalabels",
|
|
@@ -13863,7 +13863,7 @@ var Dd = {
|
|
|
13863
13863
|
for (u.save(), d = 0, h = c.length; d < h; ++d)
|
|
13864
13864
|
if (b = c[d], b[gt] = [], r && b && e.getDataVisibility(d) && !b.skip)
|
|
13865
13865
|
for (f = 0, p = l.labels.length; f < p; ++f)
|
|
13866
|
-
g = l.labels[f], m = g._key, y = new
|
|
13866
|
+
g = l.labels[f], m = g._key, y = new Ad(g, u, b, d), y.$groups = {
|
|
13867
13867
|
_set: i,
|
|
13868
13868
|
_key: m || Ed
|
|
13869
13869
|
}, y.$context = {
|
|
@@ -14111,7 +14111,7 @@ function Ps(e) {
|
|
|
14111
14111
|
return t === "[object HTMLImageElement]" || t === "[object HTMLCanvasElement]";
|
|
14112
14112
|
}
|
|
14113
14113
|
}
|
|
14114
|
-
function
|
|
14114
|
+
function As(e, { x: t, y: n }, i) {
|
|
14115
14115
|
i && (e.translate(t, n), e.rotate(rt(i)), e.translate(-t, -n));
|
|
14116
14116
|
}
|
|
14117
14117
|
function ee(e, t) {
|
|
@@ -14121,7 +14121,7 @@ function ee(e, t) {
|
|
|
14121
14121
|
function an(e, t) {
|
|
14122
14122
|
e.shadowColor = t.backgroundShadowColor, e.shadowBlur = t.shadowBlur, e.shadowOffsetX = t.shadowOffsetX, e.shadowOffsetY = t.shadowOffsetY;
|
|
14123
14123
|
}
|
|
14124
|
-
function
|
|
14124
|
+
function Rs(e, t) {
|
|
14125
14125
|
const n = t.content;
|
|
14126
14126
|
if (Ps(n))
|
|
14127
14127
|
return {
|
|
@@ -14176,26 +14176,26 @@ function w_(e, { x: t, y: n, radius: i, rotation: s, style: o, rad: r }) {
|
|
|
14176
14176
|
e.moveTo(t + Math.sin(r) * i, n - Math.cos(r) * i), r += Ji, e.lineTo(t + Math.sin(r) * i, n - Math.cos(r) * i), r += Ji, e.lineTo(t + Math.sin(r) * i, n - Math.cos(r) * i), e.closePath();
|
|
14177
14177
|
break;
|
|
14178
14178
|
case "rectRounded":
|
|
14179
|
-
u = i * 0.516, c = i - u, a = Math.cos(r +
|
|
14179
|
+
u = i * 0.516, c = i - u, a = Math.cos(r + At) * c, l = Math.sin(r + At) * c, e.arc(t - a, n - l, u, r - W, r - Q), e.arc(t + l, n - a, u, r - Q, r), e.arc(t + a, n + l, u, r, r + Q), e.arc(t - l, n + a, u, r + Q, r + W), e.closePath();
|
|
14180
14180
|
break;
|
|
14181
14181
|
case "rect":
|
|
14182
14182
|
if (!s) {
|
|
14183
14183
|
c = Math.SQRT1_2 * i, e.rect(t - c, n - c, 2 * c, 2 * c);
|
|
14184
14184
|
break;
|
|
14185
14185
|
}
|
|
14186
|
-
r +=
|
|
14186
|
+
r += At;
|
|
14187
14187
|
/* falls through */
|
|
14188
14188
|
case "rectRot":
|
|
14189
14189
|
a = Math.cos(r) * i, l = Math.sin(r) * i, e.moveTo(t - a, n - l), e.lineTo(t + l, n - a), e.lineTo(t + a, n + l), e.lineTo(t - l, n + a), e.closePath();
|
|
14190
14190
|
break;
|
|
14191
14191
|
case "crossRot":
|
|
14192
|
-
r +=
|
|
14192
|
+
r += At;
|
|
14193
14193
|
/* falls through */
|
|
14194
14194
|
case "cross":
|
|
14195
14195
|
a = Math.cos(r) * i, l = Math.sin(r) * i, e.moveTo(t - a, n - l), e.lineTo(t + a, n + l), e.moveTo(t + l, n - a), e.lineTo(t - l, n + a);
|
|
14196
14196
|
break;
|
|
14197
14197
|
case "star":
|
|
14198
|
-
a = Math.cos(r) * i, l = Math.sin(r) * i, e.moveTo(t - a, n - l), e.lineTo(t + a, n + l), e.moveTo(t + l, n - a), e.lineTo(t - l, n + a), r +=
|
|
14198
|
+
a = Math.cos(r) * i, l = Math.sin(r) * i, e.moveTo(t - a, n - l), e.lineTo(t + a, n + l), e.moveTo(t + l, n - a), e.lineTo(t - l, n + a), r += At, a = Math.cos(r) * i, l = Math.sin(r) * i, e.moveTo(t - a, n - l), e.lineTo(t + a, n + l), e.moveTo(t + l, n - a), e.lineTo(t - l, n + a);
|
|
14199
14199
|
break;
|
|
14200
14200
|
case "line":
|
|
14201
14201
|
a = Math.cos(r) * i, l = Math.sin(r) * i, e.moveTo(t - a, n - l), e.lineTo(t + a, n + l);
|
|
@@ -14244,17 +14244,17 @@ function P_(e, t) {
|
|
|
14244
14244
|
return;
|
|
14245
14245
|
if (e.save(), e.beginPath(), !ee(e, o))
|
|
14246
14246
|
return e.restore();
|
|
14247
|
-
const { separatorStart: l, separatorEnd: c } =
|
|
14247
|
+
const { separatorStart: l, separatorEnd: c } = A_(t, r), { sideStart: u, sideEnd: d } = O_(t, r, l);
|
|
14248
14248
|
(o.margin > 0 || s.borderWidth === 0) && (e.moveTo(l.x, l.y), e.lineTo(c.x, c.y)), e.moveTo(u.x, u.y), e.lineTo(d.x, d.y);
|
|
14249
14249
|
const f = Ie({ x: n, y: i }, t.getCenterPoint(), rt(-t.rotation));
|
|
14250
14250
|
e.lineTo(f.x, f.y), e.stroke(), e.restore();
|
|
14251
14251
|
}
|
|
14252
|
-
function
|
|
14253
|
-
const { x: n, y: i, x2: s, y2: o } = e, r =
|
|
14252
|
+
function A_(e, t) {
|
|
14253
|
+
const { x: n, y: i, x2: s, y2: o } = e, r = R_(e, t);
|
|
14254
14254
|
let a, l;
|
|
14255
14255
|
return t === "left" || t === "right" ? (a = { x: n + r, y: i }, l = { x: a.x, y: o }) : (a = { x: n, y: i + r }, l = { x: s, y: a.y }), { separatorStart: a, separatorEnd: l };
|
|
14256
14256
|
}
|
|
14257
|
-
function
|
|
14257
|
+
function R_(e, t) {
|
|
14258
14258
|
const { width: n, height: i, options: s } = e, o = s.callout.margin + s.borderWidth / 2;
|
|
14259
14259
|
return t === "right" ? n + o : t === "bottom" ? i + o : -o;
|
|
14260
14260
|
}
|
|
@@ -14426,7 +14426,7 @@ function Zd(e, t) {
|
|
|
14426
14426
|
function $_(e, t, n) {
|
|
14427
14427
|
const i = n.label;
|
|
14428
14428
|
i.backgroundColor = "transparent", i.callout.display = !1;
|
|
14429
|
-
const s = br(i.position), o = lt(i.padding), r =
|
|
14429
|
+
const s = br(i.position), o = lt(i.padding), r = Rs(e.ctx, i), a = z_({ properties: t, options: n }, r, s, o), l = B_({ properties: t, options: n }, r, s, o), c = r.width + o.width, u = r.height + o.height;
|
|
14430
14430
|
return {
|
|
14431
14431
|
x: a,
|
|
14432
14432
|
y: l,
|
|
@@ -14439,12 +14439,12 @@ function $_(e, t, n) {
|
|
|
14439
14439
|
rotation: i.rotation
|
|
14440
14440
|
};
|
|
14441
14441
|
}
|
|
14442
|
-
const
|
|
14442
|
+
const Ro = ["enter", "leave"], xr = Ro.concat("click");
|
|
14443
14443
|
function W_(e, t, n) {
|
|
14444
|
-
t.listened = Vd(n, xr, t.listeners), t.moveListened = !1,
|
|
14444
|
+
t.listened = Vd(n, xr, t.listeners), t.moveListened = !1, Ro.forEach((i) => {
|
|
14445
14445
|
bt(n[i]) && (t.moveListened = !0);
|
|
14446
14446
|
}), (!t.listened || !t.moveListened) && t.annotations.forEach((i) => {
|
|
14447
|
-
!t.listened && bt(i.click) && (t.listened = !0), t.moveListened ||
|
|
14447
|
+
!t.listened && bt(i.click) && (t.listened = !0), t.moveListened || Ro.forEach((s) => {
|
|
14448
14448
|
bt(i[s]) && (t.listened = !0, t.moveListened = !0);
|
|
14449
14449
|
});
|
|
14450
14450
|
});
|
|
@@ -14561,7 +14561,7 @@ class ln extends ft {
|
|
|
14561
14561
|
return Fe(this, t);
|
|
14562
14562
|
}
|
|
14563
14563
|
draw(t) {
|
|
14564
|
-
t.save(),
|
|
14564
|
+
t.save(), As(t, this.getCenterPoint(), this.options.rotation), Yd(t, this, this.options), t.restore();
|
|
14565
14565
|
}
|
|
14566
14566
|
get label() {
|
|
14567
14567
|
return this.elements && this.elements[0];
|
|
@@ -14650,14 +14650,14 @@ class Os extends ft {
|
|
|
14650
14650
|
}
|
|
14651
14651
|
draw(t) {
|
|
14652
14652
|
const n = this.options;
|
|
14653
|
-
!n.display || !n.content || (sw(t, this), t.save(),
|
|
14653
|
+
!n.display || !n.content || (sw(t, this), t.save(), As(t, this.getCenterPoint(), this.rotation), Kd(t, this, n, this._fitRatio), t.restore());
|
|
14654
14654
|
}
|
|
14655
14655
|
resolveElementProperties(t, n) {
|
|
14656
14656
|
const i = Q_(t, n);
|
|
14657
14657
|
if (!i)
|
|
14658
14658
|
return {};
|
|
14659
14659
|
const { controllerMeta: s, point: o, radius: r } = ew(t, n, i);
|
|
14660
|
-
let a =
|
|
14660
|
+
let a = Rs(t.ctx, n);
|
|
14661
14661
|
const l = nw(a, r);
|
|
14662
14662
|
Bd(n, l) && (a = { width: a.width * l, height: a.height * l });
|
|
14663
14663
|
const { position: c, xAdjust: u, yAdjust: d } = n, f = zd(o, a, { borderWidth: 0, position: c, xAdjust: u, yAdjust: d });
|
|
@@ -14782,7 +14782,7 @@ class Zn extends ft {
|
|
|
14782
14782
|
}
|
|
14783
14783
|
draw(t) {
|
|
14784
14784
|
const n = this.options, i = !xt(this._visible) || this._visible;
|
|
14785
|
-
!n.display || !n.content || !i || (t.save(),
|
|
14785
|
+
!n.display || !n.content || !i || (t.save(), As(t, this.getCenterPoint(), this.rotation), P_(t, this), Yd(t, this, n), Kd(t, ow(this), n), t.restore());
|
|
14786
14786
|
}
|
|
14787
14787
|
resolveElementProperties(t, n) {
|
|
14788
14788
|
let i;
|
|
@@ -14792,7 +14792,7 @@ class Zn extends ft {
|
|
|
14792
14792
|
const { centerX: a, centerY: l } = yr(t, n);
|
|
14793
14793
|
i = { x: a, y: l };
|
|
14794
14794
|
}
|
|
14795
|
-
const s = lt(n.padding), o =
|
|
14795
|
+
const s = lt(n.padding), o = Rs(t.ctx, n), r = zd(i, o, n, s);
|
|
14796
14796
|
return {
|
|
14797
14797
|
initProperties: rn(t, r, n),
|
|
14798
14798
|
pointX: i.x,
|
|
@@ -14875,7 +14875,7 @@ function ow({ x: e, y: t, width: n, height: i, options: s }) {
|
|
|
14875
14875
|
height: i - r.top - r.bottom - s.borderWidth
|
|
14876
14876
|
};
|
|
14877
14877
|
}
|
|
14878
|
-
const vr = (e, t, n) => ({ x: e.x + n * (t.x - e.x), y: e.y + n * (t.y - e.y) }), Oo = (e, t, n) => vr(t, n, Math.abs((e - t.y) / (n.y - t.y))).x, Vl = (e, t, n) => vr(t, n, Math.abs((e - t.x) / (n.x - t.x))).y,
|
|
14878
|
+
const vr = (e, t, n) => ({ x: e.x + n * (t.x - e.x), y: e.y + n * (t.y - e.y) }), Oo = (e, t, n) => vr(t, n, Math.abs((e - t.y) / (n.y - t.y))).x, Vl = (e, t, n) => vr(t, n, Math.abs((e - t.x) / (n.x - t.x))).y, An = (e) => e * e, rw = (e, t, { x: n, y: i, x2: s, y2: o }, r) => r === "y" ? { start: Math.min(i, o), end: Math.max(i, o), value: t } : { start: Math.min(n, s), end: Math.max(n, s), value: e }, Hl = (e, t, n, i) => (1 - i) * (1 - i) * e + 2 * (1 - i) * i * t + i * i * n, Eo = (e, t, n, i) => ({ x: Hl(e.x, t.x, n.x, i), y: Hl(e.y, t.y, n.y, i) }), Yl = (e, t, n, i) => 2 * (1 - i) * (t - e) + 2 * i * (n - t), Kl = (e, t, n, i) => -Math.atan2(Yl(e.x, t.x, n.x, i), Yl(e.y, t.y, n.y, i)) + 0.5 * W;
|
|
14879
14879
|
class Qn extends ft {
|
|
14880
14880
|
inRange(t, n, i, s) {
|
|
14881
14881
|
const o = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
@@ -14886,7 +14886,7 @@ class Qn extends ft {
|
|
|
14886
14886
|
const { chart: u } = this.$context, d = t * u.currentDevicePixelRatio, f = n * u.currentDevicePixelRatio, h = l.isPointInStroke(a, d, f) || Do(this, r, s);
|
|
14887
14887
|
return l.restore(), h;
|
|
14888
14888
|
}
|
|
14889
|
-
const c =
|
|
14889
|
+
const c = An(o);
|
|
14890
14890
|
return uw(this, r, c, s) || Do(this, r, s);
|
|
14891
14891
|
}
|
|
14892
14892
|
return aw(this, { mouseX: t, mouseY: n }, i, { hitSize: o, useFinalPosition: s });
|
|
@@ -15044,16 +15044,16 @@ function cw(e, t, n) {
|
|
|
15044
15044
|
return { x: i, y: s, x2: o, y2: r, width: Math.abs(o - i), height: Math.abs(r - s) };
|
|
15045
15045
|
}
|
|
15046
15046
|
function uw(e, { mouseX: t, mouseY: n }, i = we, s) {
|
|
15047
|
-
const { x: o, y: r, x2: a, y2: l } = e.getProps(["x", "y", "x2", "y2"], s), c = a - o, u = l - r, d =
|
|
15047
|
+
const { x: o, y: r, x2: a, y2: l } = e.getProps(["x", "y", "x2", "y2"], s), c = a - o, u = l - r, d = An(c) + An(u), f = d === 0 ? -1 : ((t - o) * c + (n - r) * u) / d;
|
|
15048
15048
|
let h, p;
|
|
15049
|
-
return f < 0 ? (h = o, p = r) : f > 1 ? (h = a, p = l) : (h = o + f * c, p = r + f * u),
|
|
15049
|
+
return f < 0 ? (h = o, p = r) : f > 1 ? (h = a, p = l) : (h = o + f * c, p = r + f * u), An(t - h) + An(n - p) <= i;
|
|
15050
15050
|
}
|
|
15051
15051
|
function Do(e, { mouseX: t, mouseY: n }, i, s) {
|
|
15052
15052
|
const o = e.label;
|
|
15053
15053
|
return o.options.display && o.inRange(t, n, s, i);
|
|
15054
15054
|
}
|
|
15055
15055
|
function dw(e, t, n) {
|
|
15056
|
-
const i = n.borderWidth, s = lt(n.padding), o =
|
|
15056
|
+
const i = n.borderWidth, s = lt(n.padding), o = Rs(e.ctx, n), r = o.width + s.width + i, a = o.height + s.height + i;
|
|
15057
15057
|
return hw(t, n, { width: r, height: a, padding: s }, e.chartArea);
|
|
15058
15058
|
}
|
|
15059
15059
|
function fw(e) {
|
|
@@ -15153,7 +15153,7 @@ class ti extends ft {
|
|
|
15153
15153
|
}
|
|
15154
15154
|
draw(t) {
|
|
15155
15155
|
const { width: n, height: i, centerX: s, centerY: o, options: r } = this;
|
|
15156
|
-
t.save(),
|
|
15156
|
+
t.save(), As(t, this.getCenterPoint(), r.rotation), an(t, this.options), t.beginPath(), t.fillStyle = r.backgroundColor;
|
|
15157
15157
|
const a = ee(t, r);
|
|
15158
15158
|
t.ellipse(s, o, i / 2, n / 2, W / 2, 0, 2 * W), t.fill(), a && (t.shadowColor = r.borderShadowColor, t.stroke()), t.restore();
|
|
15159
15159
|
}
|
|
@@ -15369,9 +15369,9 @@ function _r(e = "line") {
|
|
|
15369
15369
|
return de[e] ? e : (console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`), "line");
|
|
15370
15370
|
}
|
|
15371
15371
|
function Mw(e, t, n, i) {
|
|
15372
|
-
const s = kw(e, n.animations, i), o = t.annotations, r =
|
|
15372
|
+
const s = kw(e, n.animations, i), o = t.annotations, r = Rw(t.elements, o);
|
|
15373
15373
|
for (let a = 0; a < o.length; a++) {
|
|
15374
|
-
const l = o[a], c = ef(r, a, l.type), u = l.setContext(
|
|
15374
|
+
const l = o[a], c = ef(r, a, l.type), u = l.setContext(Aw(e, c, r, l)), d = c.resolveElementProperties(e, u);
|
|
15375
15375
|
d.skip = Cw(d), "elements" in d && (Pw(c, d.elements, u, s), delete d.elements), xt(c.x) || Object.assign(c, d), Object.assign(c, d.initProperties), d.options = nf(u), s.update(c, d);
|
|
15376
15376
|
}
|
|
15377
15377
|
}
|
|
@@ -15413,7 +15413,7 @@ function Io(e, t) {
|
|
|
15413
15413
|
}
|
|
15414
15414
|
return n;
|
|
15415
15415
|
}
|
|
15416
|
-
function
|
|
15416
|
+
function Aw(e, t, n, i) {
|
|
15417
15417
|
return t.$context || (t.$context = Object.assign(Object.create(e.getContext()), {
|
|
15418
15418
|
element: t,
|
|
15419
15419
|
get elements() {
|
|
@@ -15423,7 +15423,7 @@ function Rw(e, t, n, i) {
|
|
|
15423
15423
|
type: "annotation"
|
|
15424
15424
|
}));
|
|
15425
15425
|
}
|
|
15426
|
-
function
|
|
15426
|
+
function Rw(e, t) {
|
|
15427
15427
|
const n = t.length, i = e.length;
|
|
15428
15428
|
if (i < n) {
|
|
15429
15429
|
const s = n - i;
|
|
@@ -15630,6 +15630,7 @@ const Iw = /^-?\d+(\.\d+)?$/, sf = (e) => getComputedStyle(document.documentElem
|
|
|
15630
15630
|
},
|
|
15631
15631
|
color: et("--em-label-label-font-color-default"),
|
|
15632
15632
|
font: {
|
|
15633
|
+
// TODO: replace later
|
|
15633
15634
|
family: "Inter, sans-serif",
|
|
15634
15635
|
size: G("--em-label-label-font-size"),
|
|
15635
15636
|
weight: G("--em-label-label-font-weight")
|
|
@@ -15899,6 +15900,12 @@ const pS = ({ data: e, options: t = {}, onSegmentClick: n }) => {
|
|
|
15899
15900
|
defaultValue: !0,
|
|
15900
15901
|
category: "Component Settings"
|
|
15901
15902
|
}, PS = {
|
|
15903
|
+
name: "showTotalLabels",
|
|
15904
|
+
type: "boolean",
|
|
15905
|
+
label: "Show Total Labels",
|
|
15906
|
+
defaultValue: !1,
|
|
15907
|
+
category: "Component Settings"
|
|
15908
|
+
}, AS = {
|
|
15902
15909
|
name: "showLogarithmicScale",
|
|
15903
15910
|
type: "boolean",
|
|
15904
15911
|
label: "Show Logarithmic Scale",
|
|
@@ -15908,140 +15915,155 @@ const pS = ({ data: e, options: t = {}, onSegmentClick: n }) => {
|
|
|
15908
15915
|
name: "xAxisLabel",
|
|
15909
15916
|
type: "string",
|
|
15910
15917
|
label: "X-axis Label",
|
|
15911
|
-
category: "
|
|
15912
|
-
},
|
|
15918
|
+
category: "Axes Settings"
|
|
15919
|
+
}, OS = {
|
|
15913
15920
|
name: "yAxisLabel",
|
|
15914
15921
|
type: "string",
|
|
15915
15922
|
label: "Y-axis Label",
|
|
15916
|
-
category: "
|
|
15917
|
-
},
|
|
15923
|
+
category: "Axes Settings"
|
|
15924
|
+
}, ES = {
|
|
15918
15925
|
name: "reverseXAxis",
|
|
15919
15926
|
type: "boolean",
|
|
15920
15927
|
label: "Reverse X-axis",
|
|
15921
15928
|
defaultValue: !1,
|
|
15929
|
+
category: "Axes Settings"
|
|
15930
|
+
}, DS = {
|
|
15931
|
+
name: "displayPercentages",
|
|
15932
|
+
type: "boolean",
|
|
15933
|
+
label: "Display Percentages",
|
|
15934
|
+
defaultValue: !1,
|
|
15922
15935
|
category: "Component Settings"
|
|
15923
|
-
},
|
|
15936
|
+
}, TS = {
|
|
15924
15937
|
name: "reverseYAxis",
|
|
15925
15938
|
type: "boolean",
|
|
15926
15939
|
label: "Reverse Y-axis",
|
|
15927
15940
|
defaultValue: !1,
|
|
15928
|
-
category: "
|
|
15929
|
-
},
|
|
15941
|
+
category: "Axes Settings"
|
|
15942
|
+
}, LS = {
|
|
15930
15943
|
name: "yAxisRangeMin",
|
|
15931
15944
|
type: "number",
|
|
15932
15945
|
label: "Y-axis Range Min",
|
|
15933
|
-
category: "
|
|
15934
|
-
},
|
|
15946
|
+
category: "Axes Settings"
|
|
15947
|
+
}, IS = {
|
|
15935
15948
|
name: "yAxisRangeMax",
|
|
15936
15949
|
type: "number",
|
|
15937
15950
|
label: "Y-axis Range Max",
|
|
15938
|
-
category: "
|
|
15939
|
-
},
|
|
15951
|
+
category: "Axes Settings"
|
|
15952
|
+
}, FS = {
|
|
15940
15953
|
name: "xAxisRangeMin",
|
|
15941
15954
|
type: "number",
|
|
15942
15955
|
label: "X-axis Range Min",
|
|
15943
|
-
category: "
|
|
15944
|
-
},
|
|
15956
|
+
category: "Axes Settings"
|
|
15957
|
+
}, NS = {
|
|
15945
15958
|
name: "xAxisRangeMax",
|
|
15946
15959
|
type: "number",
|
|
15947
15960
|
label: "X-axis Range Max",
|
|
15948
|
-
category: "
|
|
15949
|
-
},
|
|
15961
|
+
category: "Axes Settings"
|
|
15962
|
+
}, jS = {
|
|
15950
15963
|
name: "xAxisMaxItems",
|
|
15951
15964
|
type: "number",
|
|
15952
15965
|
label: "Max X-axis Items",
|
|
15953
|
-
category: "
|
|
15954
|
-
},
|
|
15966
|
+
category: "Axes Settings"
|
|
15967
|
+
}, zS = {
|
|
15955
15968
|
name: "yAxisMaxItems",
|
|
15956
15969
|
type: "number",
|
|
15957
15970
|
label: "Max Y-axis Items",
|
|
15958
|
-
category: "
|
|
15959
|
-
},
|
|
15971
|
+
category: "Axes Settings"
|
|
15972
|
+
}, BS = {
|
|
15973
|
+
name: "showTopItems",
|
|
15974
|
+
type: "number",
|
|
15975
|
+
label: "Show Top Items",
|
|
15976
|
+
defaultValue: 10,
|
|
15977
|
+
category: "Component Data"
|
|
15978
|
+
}, $S = {
|
|
15960
15979
|
name: "maxLegendItems",
|
|
15961
15980
|
type: "number",
|
|
15962
15981
|
label: "Max Legend Items",
|
|
15963
15982
|
defaultValue: 10,
|
|
15964
|
-
category: "Component
|
|
15965
|
-
},
|
|
15983
|
+
category: "Component Data"
|
|
15984
|
+
}, WS = {
|
|
15966
15985
|
name: "placeholder",
|
|
15967
15986
|
type: "string",
|
|
15968
15987
|
label: "Placeholder",
|
|
15969
15988
|
category: "Component Settings"
|
|
15970
15989
|
};
|
|
15971
15990
|
export {
|
|
15972
|
-
|
|
15973
|
-
|
|
15974
|
-
|
|
15975
|
-
|
|
15976
|
-
|
|
15977
|
-
|
|
15978
|
-
|
|
15979
|
-
|
|
15980
|
-
|
|
15981
|
-
|
|
15982
|
-
|
|
15983
|
-
|
|
15991
|
+
rS as $,
|
|
15992
|
+
G as A,
|
|
15993
|
+
et as B,
|
|
15994
|
+
Nw as C,
|
|
15995
|
+
hS as D,
|
|
15996
|
+
ue as E,
|
|
15997
|
+
vl as F,
|
|
15998
|
+
Ii as G,
|
|
15999
|
+
Cl as H,
|
|
16000
|
+
dS as I,
|
|
16001
|
+
bd as J,
|
|
16002
|
+
gd as K,
|
|
15984
16003
|
wl as L,
|
|
15985
|
-
|
|
15986
|
-
|
|
15987
|
-
|
|
15988
|
-
|
|
15989
|
-
|
|
15990
|
-
|
|
15991
|
-
|
|
15992
|
-
|
|
15993
|
-
|
|
16004
|
+
af as M,
|
|
16005
|
+
fS as N,
|
|
16006
|
+
rf as O,
|
|
16007
|
+
ec as P,
|
|
16008
|
+
st as Q,
|
|
16009
|
+
$S as R,
|
|
16010
|
+
WS as S,
|
|
16011
|
+
De as T,
|
|
16012
|
+
bh as U,
|
|
15994
16013
|
Zw as V,
|
|
15995
|
-
|
|
15996
|
-
|
|
15997
|
-
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16006
|
-
|
|
16007
|
-
|
|
16008
|
-
|
|
16009
|
-
|
|
16010
|
-
|
|
16011
|
-
|
|
16012
|
-
|
|
16013
|
-
|
|
16014
|
-
|
|
16015
|
-
|
|
16016
|
-
|
|
16017
|
-
|
|
16018
|
-
|
|
16019
|
-
|
|
16020
|
-
|
|
16014
|
+
eS as W,
|
|
16015
|
+
dc as X,
|
|
16016
|
+
yh as Y,
|
|
16017
|
+
Jt as Z,
|
|
16018
|
+
nS as _,
|
|
16019
|
+
vS as a,
|
|
16020
|
+
aS as a0,
|
|
16021
|
+
Kb as a1,
|
|
16022
|
+
lS as a2,
|
|
16023
|
+
ey as a3,
|
|
16024
|
+
ny as a4,
|
|
16025
|
+
gS as a5,
|
|
16026
|
+
pS as a6,
|
|
16027
|
+
os as a7,
|
|
16028
|
+
Ww as a8,
|
|
16029
|
+
Vw as a9,
|
|
16030
|
+
Hw as aa,
|
|
16031
|
+
Yw as ab,
|
|
16032
|
+
Kw as ac,
|
|
16033
|
+
Uw as ad,
|
|
16034
|
+
Xw as ae,
|
|
16035
|
+
xS as af,
|
|
16036
|
+
DS as ag,
|
|
16037
|
+
BS as ah,
|
|
16038
|
+
ls as ai,
|
|
16039
|
+
oh as aj,
|
|
16040
|
+
tS as ak,
|
|
16041
|
+
rc as al,
|
|
16042
|
+
$w as am,
|
|
16021
16043
|
yS as b,
|
|
16022
16044
|
SS as c,
|
|
16023
16045
|
bS as d,
|
|
16024
16046
|
CS as e,
|
|
16025
16047
|
kS as f,
|
|
16026
|
-
|
|
16027
|
-
|
|
16048
|
+
AS as g,
|
|
16049
|
+
ES as h,
|
|
16028
16050
|
Qw as i,
|
|
16029
16051
|
M as j,
|
|
16030
|
-
|
|
16031
|
-
|
|
16052
|
+
LS as k,
|
|
16053
|
+
IS as l,
|
|
16032
16054
|
rs as m,
|
|
16033
|
-
|
|
16055
|
+
PS as n,
|
|
16034
16056
|
Jw as o,
|
|
16035
|
-
|
|
16036
|
-
|
|
16057
|
+
TS as p,
|
|
16058
|
+
FS as q,
|
|
16037
16059
|
mS as r,
|
|
16038
16060
|
MS as s,
|
|
16039
16061
|
wS as t,
|
|
16040
|
-
|
|
16041
|
-
|
|
16042
|
-
|
|
16062
|
+
NS as u,
|
|
16063
|
+
_S as v,
|
|
16064
|
+
zS as w,
|
|
16043
16065
|
RS as x,
|
|
16044
|
-
|
|
16045
|
-
|
|
16066
|
+
OS as y,
|
|
16067
|
+
jS as z
|
|
16046
16068
|
};
|
|
16047
|
-
//# sourceMappingURL=component.constants-
|
|
16069
|
+
//# sourceMappingURL=component.constants-NgQHE7x7.js.map
|