@luzmo/analytics-components-kit 1.0.1-alpha.91 → 1.0.1-alpha.94
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/angular/README.md +1 -0
- package/angular/components/widget-menu.component.ts +25 -0
- package/angular/esm/components/widget-menu.component.d.ts +13 -0
- package/angular/esm/components/widget-menu.component.js +49 -0
- package/angular/esm/index.d.ts +3 -1
- package/angular/esm/index.js +4 -1
- package/angular/esm/types.d.ts +4 -0
- package/angular/index.ts +4 -1
- package/angular/types.ts +6 -0
- package/components/ai-chat-message-assistant/index.cjs +1 -1
- package/components/ai-chat-message-assistant/index.js +1 -0
- package/components/ai-chat-messages-container/index.cjs +1 -1
- package/components/ai-chat-messages-container/index.js +2 -2
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +2 -1
- package/components/area-chart-options.config-C7sMAHco.cjs +20 -0
- package/components/{area-chart-options.config-u8itidsi.js → area-chart-options.config-_J0sG4NF.js} +26 -14
- package/components/{bar-chart-options.config-DIirbAJ0.js → bar-chart-options.config-D1mb5TDl.js} +35 -21
- package/components/bar-chart-options.config-DcxEkOT5.cjs +20 -0
- package/components/box-plot-options.config-SrrbDEYW.cjs +20 -0
- package/components/{box-plot-options.config-BWROiguA.js → box-plot-options.config-xu_i6ms7.js} +88 -52
- package/components/{bubble-chart-options.config-4QD8VPhU.js → bubble-chart-options.config-BacgXkJ_.js} +18 -9
- package/components/bubble-chart-options.config-Ihn6eVQI.cjs +20 -0
- package/components/{bullet-chart-options.config-3bH7uekx.js → bullet-chart-options.config-CDPpX1yc.js} +1 -1
- package/components/{bullet-chart-options.config-tWb6Fio-.cjs → bullet-chart-options.config-DfS4Bwds.cjs} +1 -1
- package/components/calculate-data-item-icon-CEa82-5u.cjs +20 -0
- package/components/calculate-data-item-icon-DjlZwMdO.js +147 -0
- package/components/{choropleth-map-options.config-CMxx3ORp.js → choropleth-map-options.config-B_W9-rhe.js} +84 -63
- package/components/choropleth-map-options.config-ZW8yoZH2.cjs +20 -0
- package/components/{circular-gauge-options.config-DhIKn44k.js → circular-gauge-options.config-DAIjz4Rl.js} +36 -23
- package/components/circular-gauge-options.config-msZ4mfpN.cjs +20 -0
- package/components/color-B6LaL8qz.cjs +20 -0
- package/components/{color-B7m0j8lX.js → color-DuJ4-73S.js} +950 -941
- package/components/{color-range-utils-BSfqtB3A.js → color-range-utils-Bvo9sm5A.js} +32 -31
- package/components/color-range-utils-C5yXW7ZC.cjs +20 -0
- package/components/{column-chart-options.config-D5-yR7iq.js → column-chart-options.config-B5SjBVdy.js} +37 -27
- package/components/column-chart-options.config-BjDvA7i9.cjs +20 -0
- package/components/{conditional-number-options.config-DPYsdML5.js → conditional-number-options.config-BCEpSK9J.js} +40 -24
- package/components/conditional-number-options.config-DgzUo0xi.cjs +20 -0
- package/components/dataset-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +2 -1
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +35 -32
- package/components/dataset-selector-row/index.cjs +9 -9
- package/components/dataset-selector-row/index.js +53 -51
- package/components/{date-comparison-filter-options.config-QaoWaFUn.cjs → date-comparison-filter-options.config-DAVncmi0.cjs} +1 -1
- package/components/{date-comparison-filter-options.config-CSwGyuBg.js → date-comparison-filter-options.config-JA_yYpJa.js} +6 -3
- package/components/{date-filter-options.config-n-zhWaYa.cjs → date-filter-options.config-CWPMtA18.cjs} +1 -1
- package/components/{date-filter-options.config-BTVyHRkp.js → date-filter-options.config-DBRxlTWy.js} +6 -3
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/index.cjs +5 -5
- package/components/display-settings-binning/index.js +30 -29
- package/components/display-settings-datetime/index.cjs +29 -29
- package/components/display-settings-datetime/index.js +120 -112
- package/components/display-settings-grand-totals/index.cjs +4 -4
- package/components/display-settings-grand-totals/index.js +24 -23
- package/components/display-settings-numeric/index.cjs +48 -48
- package/components/display-settings-numeric/index.js +211 -194
- package/components/display-settings-period-over-period/index.cjs +16 -16
- package/components/display-settings-period-over-period/index.js +97 -91
- package/components/{donut-chart-options.config-3ZqX8Cbb.js → donut-chart-options.config-BulUEiaH.js} +37 -21
- package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
- package/components/draggable-data-item/index.cjs +5 -5
- package/components/draggable-data-item/index.js +46 -45
- package/components/draggable-data-item-level/index.cjs +11 -11
- package/components/draggable-data-item-level/index.js +73 -70
- package/components/{dropdown-filter-options.config-CGJTtgAX.js → dropdown-filter-options.config-D9dvPypF.js} +10 -7
- package/components/{dropdown-filter-options.config-DJvfCTk7.cjs → dropdown-filter-options.config-DS-MORmq.cjs} +1 -1
- package/components/droppable-slot/index.cjs +16 -16
- package/components/droppable-slot/index.js +223 -208
- package/components/edit-item/index.cjs +9 -9
- package/components/edit-item/index.js +119 -116
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-action-button-group/index.cjs +8 -8
- package/components/edit-option-action-button-group/index.js +53 -52
- package/components/{edit-option-base-Bh29-Cak.js → edit-option-base-DIc7iC-b.js} +1 -1
- package/components/{edit-option-base-tFr8Qg2B.cjs → edit-option-base-VhTih9T1.cjs} +1 -1
- package/components/edit-option-color-palette-picker/index.cjs +1 -1
- package/components/edit-option-color-palette-picker/index.js +1 -1
- package/components/edit-option-color-picker/index.cjs +1 -1
- package/components/edit-option-color-picker/index.js +1 -1
- package/components/edit-option-color-range/index.cjs +19 -19
- package/components/edit-option-color-range/index.js +117 -106
- package/components/edit-option-multi-language-field/index.cjs +3 -3
- package/components/edit-option-multi-language-field/index.js +27 -26
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +1 -1
- package/components/edit-option-picker/index.cjs +5 -5
- package/components/edit-option-picker/index.js +7 -7
- package/components/edit-option-position-picker/index.cjs +4 -4
- package/components/edit-option-position-picker/index.js +25 -21
- package/components/edit-option-positions-number-field/index.cjs +9 -9
- package/components/edit-option-positions-number-field/index.js +81 -76
- package/components/edit-option-radio-button-group/index.cjs +6 -6
- package/components/edit-option-radio-button-group/index.js +22 -21
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +1 -1
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +1 -1
- package/components/edit-option-text-field/index.cjs +2 -2
- package/components/edit-option-text-field/index.js +23 -22
- package/components/en-BKBhKBXY.cjs +20 -0
- package/components/en-BOTjhwEc.js +1488 -0
- package/components/{en-GB-ialeqj_z.js → en-GB-CEHEs8F2.js} +1 -1
- package/components/{en-GB-TqvgIw9B.cjs → en-GB-DG6uS3sM.cjs} +1 -1
- package/components/{evolution-number-options.config-Bc9eKYnn.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
- package/components/{evolution-number-options.config-BIPO_4n3.js → evolution-number-options.config-DzkfeoIN.js} +14 -11
- package/components/{extrapolate-color-C0n1UDs-.cjs → extrapolate-color-0j_AeYkz.cjs} +1 -1
- package/components/{extrapolate-color-v1PimdQr.js → extrapolate-color-CC9CURf6.js} +1 -1
- package/components/filter-data-item-picker/index.cjs +7 -7
- package/components/filter-data-item-picker/index.js +86 -85
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +6 -6
- package/components/filter-item/index.js +119 -109
- package/components/filter-value-picker/index.cjs +2 -2
- package/components/filter-value-picker/index.js +36 -34
- package/components/filter-value-picker-datetime/index.cjs +8 -8
- package/components/filter-value-picker-datetime/index.js +71 -56
- package/components/filter-value-picker-hierarchy/index.cjs +12 -12
- package/components/filter-value-picker-hierarchy/index.js +124 -113
- package/components/filter-value-picker-numeric/index.cjs +8 -8
- package/components/filter-value-picker-numeric/index.js +110 -101
- package/components/focusable-B3E_hQmm.cjs +20 -0
- package/components/{focusable-BS2pbY7w.js → focusable-DCIFkpiW.js} +26 -24
- package/components/{funnel-chart-options.config-CrJy2U7_.js → funnel-chart-options.config-C_VjTOvD.js} +20 -5
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +20 -0
- package/components/get-css-variable-BEYG097C.js +1446 -0
- package/components/get-css-variable-BZxY4IOa.cjs +35 -0
- package/components/get-css-variable-DLiZYZEi.cjs +24 -0
- package/components/{get-css-variable-Bb7TxJdX.js → get-css-variable-YlLiVgo8.js} +37 -37
- package/components/grid/index.cjs +49 -43
- package/components/grid/index.js +1878 -2610
- package/components/{heat-map-options.config-CmL87j1j.js → heat-map-options.config-BnLWe8jS.js} +41 -35
- package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
- package/components/heat-table-options.config-B12JEYnp.cjs +20 -0
- package/components/{heat-table-options.config-BrCYAgYD.js → heat-table-options.config-CUsDdgUr.js} +88 -60
- package/components/helpers-DXQwEH1P.cjs +20 -0
- package/components/helpers-v1bPALRP.js +91 -0
- package/components/hexbin-map-options.config-DZERRhM8.cjs +20 -0
- package/components/{hexbin-map-options.config-BguV1w8q.js → hexbin-map-options.config-F-7uCqxb.js} +38 -20
- package/components/{index-BNAmjOkm.cjs → index-BPNsFiyq.cjs} +4 -4
- package/components/index-CDi4fe3N.js +1716 -0
- package/components/index-CQ9ck-BO.cjs +249 -0
- package/components/index-CXn67vdn.cjs +121 -0
- package/components/{index-haa7WNrl.js → index-CdIUfo-L.js} +481 -453
- package/components/index-Cz9vSXy6.cjs +20 -0
- package/components/{index-DdyZ2g5L.js → index-D0GBF6tg.js} +104 -94
- package/components/index-Dn0j_pcR.cjs +20 -0
- package/components/{index-CqKpf0B8.js → index-Do7O9azB.js} +123 -112
- package/components/index-E239Dotg.js +1735 -0
- package/components/index.cjs +1 -1
- package/components/index.js +20 -18
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +37 -37
- package/components/{line-chart-options.config-BhirTGqD.js → line-chart-options.config-DB3IsXXr.js} +28 -13
- package/components/line-chart-options.config-DSugoe0t.cjs +20 -0
- package/components/{localize-CcDpq940.js → localize-BX7q0S0M.js} +10 -10
- package/components/{localize-C4zNlrwK.cjs → localize-r7ALOUy_.cjs} +1 -1
- package/components/{marker-map-options.config-Bx17jmiq.js → marker-map-options.config-DPJ955tt.js} +1 -1
- package/components/{marker-map-options.config-CvhCylSC.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
- package/components/pivot-table-options.config-BiJXKSFR.cjs +20 -0
- package/components/{pivot-table-options.config-CFc7y0IT.js → pivot-table-options.config-DNK_AIG7.js} +24 -15
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +20 -0
- package/components/{pyramid-chart-options.config-2Waxb11l.js → pyramid-chart-options.config-CcVMatYx.js} +43 -29
- package/components/{radar-chart-options.config-CPN5fOl8.js → radar-chart-options.config-CUZn_3Fd.js} +23 -11
- package/components/radar-chart-options.config-EqQu6PTh.cjs +20 -0
- package/components/{regular-table-options.config-CFKCJQK1.js → regular-table-options.config-BoLZsBry.js} +23 -17
- package/components/{regular-table-options.config-YRuoijIk.cjs → regular-table-options.config-DTx3RTnS.cjs} +1 -1
- package/components/{route-map-options.config-CyolTJfK.js → route-map-options.config-CN86T7c0.js} +109 -87
- package/components/route-map-options.config-D7NJePTu.cjs +20 -0
- package/components/{sankey-diagram-options.config-D7OSvSqm.cjs → sankey-diagram-options.config-RFB83YLZ.cjs} +1 -1
- package/components/{sankey-diagram-options.config-Ldjk84ro.js → sankey-diagram-options.config-tVLKy_Zn.js} +10 -7
- package/components/scatter-plot-options.config-CFfGJXsV.cjs +20 -0
- package/components/{scatter-plot-options.config-CfxEfkQ1.js → scatter-plot-options.config-Corlzno1.js} +86 -56
- package/components/{search-filter-options.config-Oqco9BKj.cjs → search-filter-options.config-BCaDlYqZ.cjs} +1 -1
- package/components/{search-filter-options.config-C0syQmP4.js → search-filter-options.config-BE3JhR-F.js} +6 -3
- package/components/{set-locale-hKTMz37h.js → set-locale-Dp3N_gXN.js} +8 -1
- package/components/{slicer-filter-options.config-DmOe3440.js → slicer-filter-options.config-3JZZcw5C.js} +18 -9
- package/components/slicer-filter-options.config-DNI-XevE.cjs +20 -0
- package/components/{slider-filter-options.config-B1M8RcDs.js → slider-filter-options.config-DH4SS8wH.js} +1 -1
- package/components/{slider-filter-options.config-k45I-t6G.cjs → slider-filter-options.config-_8Z2zKmU.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +33 -33
- package/components/slot-contents-picker/index.js +205 -194
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.js +184 -171
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +103 -97
- package/components/speedometer-chart-options.config-BX9LTQBH.cjs +20 -0
- package/components/{speedometer-chart-options.config-CzOmuEF8.js → speedometer-chart-options.config-SL581yOa.js} +53 -31
- package/components/{spike-map-options.config-Cbt1YUw6.js → spike-map-options.config-C5KewecZ.js} +122 -91
- package/components/spike-map-options.config-DoBFXPmN.cjs +20 -0
- package/components/{sunburst-chart-options.config-Yrxc2i57.cjs → sunburst-chart-options.config-AbNjWS6t.cjs} +1 -1
- package/components/{sunburst-chart-options.config-_dyLQxPJ.js → sunburst-chart-options.config-CNauGQJv.js} +20 -9
- package/components/{symbol-map-options.config-BORL1NSU.js → symbol-map-options.config-DdDA4aa7.js} +20 -11
- package/components/symbol-map-options.config-m-lwLTtu.cjs +20 -0
- package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +20 -0
- package/components/{treemap-chart-options.config-B9i9qIm_.js → treemap-chart-options.config-D5AJaF_u.js} +37 -20
- package/components/utils.cjs +1 -1
- package/components/utils.js +97 -94
- package/components/{video-options.config-B0asgYt8.cjs → video-options.config-CGsDTwHc.cjs} +1 -1
- package/components/{video-options.config-UX-9MDfS.js → video-options.config-Dk36zJ1B.js} +10 -7
- package/components/widget-menu/index.cjs +51 -0
- package/components/widget-menu/index.d.ts +8 -0
- package/components/widget-menu/index.js +211 -0
- package/components/widget-menu/widget-menu.d.ts +77 -0
- package/components/{wordcloud-chart-options.config-BKtJT8Va.cjs → wordcloud-chart-options.config-vGfCW8kE.cjs} +1 -1
- package/components/{wordcloud-chart-options.config-BoB_KuhA.js → wordcloud-chart-options.config-w2NUIWVA.js} +7 -4
- package/custom-elements.json +133 -20
- package/index.d.ts +1 -0
- package/package.json +6 -1
- package/types.d.ts +4 -0
- package/components/area-chart-options.config-Bl8bhhOo.cjs +0 -20
- package/components/bar-chart-options.config-CePAqM83.cjs +0 -20
- package/components/box-plot-options.config-BVNrV2eD.cjs +0 -20
- package/components/bubble-chart-options.config-BDgOe3GQ.cjs +0 -20
- package/components/calculate-data-item-icon-DMDhKq_m.js +0 -147
- package/components/calculate-data-item-icon-DtVGbet3.cjs +0 -20
- package/components/choropleth-map-options.config-CWJACFd0.cjs +0 -20
- package/components/circular-gauge-options.config-BMxgq3zH.cjs +0 -20
- package/components/color-Czp4Im5q.cjs +0 -20
- package/components/color-range-utils-DYYR-iwx.cjs +0 -20
- package/components/column-chart-options.config-BV9R3ssH.cjs +0 -20
- package/components/conditional-number-options.config-Co099Qfm.cjs +0 -20
- package/components/donut-chart-options.config-BQyPgnC9.cjs +0 -20
- package/components/en-D3ihEGXg.js +0 -1483
- package/components/en-DZcn_iz_.cjs +0 -20
- package/components/focusable-QLh-LlNt.cjs +0 -20
- package/components/funnel-chart-options.config-DrP4AFgk.cjs +0 -20
- package/components/get-css-variable-Pzks_rOx.cjs +0 -24
- package/components/heat-map-options.config-CIHnPdYE.cjs +0 -20
- package/components/heat-table-options.config-DTlZRc_i.cjs +0 -20
- package/components/helpers-9I0oLoUB.cjs +0 -20
- package/components/helpers-bR8Ibjqh.js +0 -79
- package/components/hexbin-map-options.config-CKnn3VAB.cjs +0 -20
- package/components/index-BekTY3Em.cjs +0 -121
- package/components/index-CFL6gmIu.cjs +0 -20
- package/components/index-DNPULp4A.js +0 -1755
- package/components/index-DvkzMbLt.cjs +0 -249
- package/components/line-chart-options.config-Cqwou5u6.cjs +0 -20
- package/components/pivot-table-options.config-uZDAertf.cjs +0 -20
- package/components/pyramid-chart-options.config-DoGfEvzU.cjs +0 -20
- package/components/radar-chart-options.config-CtNUMN1l.cjs +0 -20
- package/components/route-map-options.config-CVTk5RVL.cjs +0 -20
- package/components/scatter-plot-options.config-5gN7pMTm.cjs +0 -20
- package/components/slicer-filter-options.config-CrusP6a0.cjs +0 -20
- package/components/speedometer-chart-options.config-B4ceg_qI.cjs +0 -20
- package/components/spike-map-options.config-BkkDqb4g.cjs +0 -20
- package/components/symbol-map-options.config-NpBKm64d.cjs +0 -20
- package/components/treemap-chart-options.config-x4J54WSw.cjs +0 -20
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./helpers-9I0oLoUB.cjs"),o=({slots:e})=>Array.isArray(e)&&e?.length>0?e?.find(t=>t?.name==="color")?.content?.length>0:!1,r=({slots:e})=>Array.isArray(e)&&e?.length>0?!(e?.find(t=>t?.name==="color")?.content?.length>0):!0,a=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0},visibleIf:o},{key:"display.bubbleLabels",control:{type:"switch",label:"Show labels",tooltip:"If enough room available",default:!0}},{key:"display.bubbleValues",control:{type:"picker",label:"Show values",tooltip:"If enough room available",default:"none",enum:["none","percentage","absolute"]}},{key:"categories.colored",control:{type:"switch",label:"Bubble color by category",default:!0},visibleIf:r},{key:"color",control:{type:"color-picker",label:"Bubble color",default:({theme:e})=>l.getThemeMainColor(e),extraLabel:({options:e,theme:t})=>l.getThemeMainColorResetLabel(e,t,"color"),extraLabelHasClickAction:({options:e,theme:t})=>l.getThemeMainColorExtraLabelHasClickAction(e,t,"color"),extraLabelClickAction:({options:e,theme:t})=>l.getThemeMainColorExtraLabelClickAction(e,t,"color")},visibleIf:({options:e,slots:t})=>e?.categories?.colored===!1&&r({slots:t})}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"topRight",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]}}],visibleIf:o}];exports.default=a;
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
import { luzmoTypeArrayHierarchy as m, luzmoTypeArrayHierarchy14 as g, luzmoTypeArrayHierarchy12 as v, luzmoTypeArrayDatetime as i, luzmoTypeArrayDatetime14 as C, luzmoTypeArrayDatetime12 as b, luzmoTypeArrayCurrency as t, luzmoTypeArrayCurrency14 as N, luzmoTypeArrayCurrency12 as w, luzmoTypeArrayDuration as n, luzmoTypeArrayDuration14 as H, luzmoTypeArrayDuration12 as L, luzmoTypeArrayNumeric as p, luzmoTypeArrayNumeric14 as S, luzmoTypeArrayNumeric12 as E, luzmoTypeTopography as y, luzmoTypeCoordinates as s, luzmoTypeCoordinates14 as _, luzmoTypeCoordinates12 as B, luzmoTypeCurrency as a, luzmoTypeCurrency14 as F, luzmoTypeCurrency12 as j, luzmoTypeDuration as c, luzmoTypeDuration14 as k, luzmoTypeDuration12 as q, luzmoTypeNumeric as z, luzmoTypeNumeric14 as G, luzmoTypeNumeric12 as J, luzmoTypeDatetime as T, luzmoTypeDatetime14 as K, luzmoTypeDatetime12 as M, luzmoTypeDate as x, luzmoTypeDate14 as O, luzmoTypeDate12 as P, luzmoTypeIpAddress as h, luzmoTypeIpAddress14 as Q, luzmoTypeIpAddress12 as R, luzmoTypeImage as f, luzmoTypeImage14 as U, luzmoTypeImage12 as V, luzmoTypeHierarchy as D, luzmoTypeHierarchy14 as W, luzmoTypeHierarchy12 as X, luzmoFormula as u, luzmoTypeDerived as d, luzmoTypeDerived14 as Y, luzmoTypeDerived12 as Z } from "@luzmo/icons";
|
|
21
|
-
const l = {
|
|
22
|
-
"array[hierarchy]": {
|
|
23
|
-
s: v,
|
|
24
|
-
m: g,
|
|
25
|
-
l: m,
|
|
26
|
-
xl: m
|
|
27
|
-
},
|
|
28
|
-
"array[datetime]": {
|
|
29
|
-
s: b,
|
|
30
|
-
m: C,
|
|
31
|
-
l: i,
|
|
32
|
-
xl: i
|
|
33
|
-
},
|
|
34
|
-
"array[numeric]": {
|
|
35
|
-
s: E,
|
|
36
|
-
m: S,
|
|
37
|
-
l: p,
|
|
38
|
-
xl: p
|
|
39
|
-
},
|
|
40
|
-
"array[currency]": {
|
|
41
|
-
s: w,
|
|
42
|
-
m: N,
|
|
43
|
-
l: t,
|
|
44
|
-
xl: t
|
|
45
|
-
},
|
|
46
|
-
"array[duration]": {
|
|
47
|
-
s: L,
|
|
48
|
-
m: H,
|
|
49
|
-
l: n,
|
|
50
|
-
xl: n
|
|
51
|
-
},
|
|
52
|
-
coordinates: {
|
|
53
|
-
s: B,
|
|
54
|
-
m: _,
|
|
55
|
-
l: s,
|
|
56
|
-
xl: s
|
|
57
|
-
},
|
|
58
|
-
currency: {
|
|
59
|
-
s: j,
|
|
60
|
-
m: F,
|
|
61
|
-
l: a,
|
|
62
|
-
xl: a
|
|
63
|
-
},
|
|
64
|
-
date: {
|
|
65
|
-
s: P,
|
|
66
|
-
m: O,
|
|
67
|
-
l: x,
|
|
68
|
-
xl: x
|
|
69
|
-
},
|
|
70
|
-
datetime: {
|
|
71
|
-
s: M,
|
|
72
|
-
m: K,
|
|
73
|
-
l: T,
|
|
74
|
-
xl: T
|
|
75
|
-
},
|
|
76
|
-
derived: {
|
|
77
|
-
s: Z,
|
|
78
|
-
m: Y,
|
|
79
|
-
l: d,
|
|
80
|
-
xl: d
|
|
81
|
-
},
|
|
82
|
-
duration: {
|
|
83
|
-
s: q,
|
|
84
|
-
m: k,
|
|
85
|
-
l: c,
|
|
86
|
-
xl: c
|
|
87
|
-
},
|
|
88
|
-
hierarchy: {
|
|
89
|
-
s: X,
|
|
90
|
-
m: W,
|
|
91
|
-
l: D,
|
|
92
|
-
xl: D
|
|
93
|
-
},
|
|
94
|
-
image: {
|
|
95
|
-
s: V,
|
|
96
|
-
m: U,
|
|
97
|
-
l: f,
|
|
98
|
-
xl: f
|
|
99
|
-
},
|
|
100
|
-
numeric: {
|
|
101
|
-
s: J,
|
|
102
|
-
m: G,
|
|
103
|
-
l: z,
|
|
104
|
-
xl: z
|
|
105
|
-
},
|
|
106
|
-
topography: {
|
|
107
|
-
s: y,
|
|
108
|
-
m: y,
|
|
109
|
-
l: y,
|
|
110
|
-
xl: y
|
|
111
|
-
},
|
|
112
|
-
ipaddress: {
|
|
113
|
-
s: R,
|
|
114
|
-
m: Q,
|
|
115
|
-
l: h,
|
|
116
|
-
xl: h
|
|
117
|
-
},
|
|
118
|
-
formula: {
|
|
119
|
-
s: u,
|
|
120
|
-
m: u,
|
|
121
|
-
l: u,
|
|
122
|
-
xl: u
|
|
123
|
-
}
|
|
124
|
-
}, $ = {
|
|
125
|
-
xxs: "s",
|
|
126
|
-
xs: "s",
|
|
127
|
-
s: "s",
|
|
128
|
-
m: "m",
|
|
129
|
-
l: "l",
|
|
130
|
-
xl: "xl",
|
|
131
|
-
xxl: "xl"
|
|
132
|
-
}, A = (e) => e ? $[e] : "m", re = (e, o = "m") => {
|
|
133
|
-
const r = A(o);
|
|
134
|
-
return e?.type === "array[hierarchy]" ? l["array[hierarchy]"][r] : e?.type === "array[datetime]" ? l["array[datetime]"][r] : e?.type === "array[numeric]" ? e?.subtype === "currency" ? l["array[currency]"][r] : e?.subtype === "duration" ? l["array[duration]"][r] : l["array[numeric]"][r] : e?.type === "spatial" ? e?.subtype === "topography" ? l.topography[r] : l.coordinates[r] : e?.type === "numeric" ? e?.subtype === "currency" ? l.currency[r] : e?.subtype === "duration" ? l.duration[r] : l.numeric[r] : e?.type === "datetime" ? e?.lowestLevel && e?.lowestLevel > 5 && e?.lowestLevel <= 9 ? l.datetime[r] : e?.lowestLevel && e?.lowestLevel > 1 && e?.lowestLevel <= 5 ? l.date[r] : l.datetime[r] : e?.type === "hierarchy" && e?.subtype === "ip_address" ? l.ipaddress[r] : e?.type === "hierarchy" && e?.subtype === "hierarchy_element_expression" ? l.image[r] : l.hierarchy[r];
|
|
135
|
-
}, le = (e, o = "m") => {
|
|
136
|
-
if (!e)
|
|
137
|
-
return;
|
|
138
|
-
const r = A(o), I = typeof e.expression == "string" ? e.expression.trim().length > 0 : e.expression != null;
|
|
139
|
-
if (e.formulaId != null)
|
|
140
|
-
return l.formula[r];
|
|
141
|
-
if (e.formulaId == null && e.columnId != null && I)
|
|
142
|
-
return l.derived[r];
|
|
143
|
-
};
|
|
144
|
-
export {
|
|
145
|
-
le as a,
|
|
146
|
-
re as c
|
|
147
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
"use strict";const e=require("@luzmo/icons"),u={"array[hierarchy]":{s:e.luzmoTypeArrayHierarchy12,m:e.luzmoTypeArrayHierarchy14,l:e.luzmoTypeArrayHierarchy,xl:e.luzmoTypeArrayHierarchy},"array[datetime]":{s:e.luzmoTypeArrayDatetime12,m:e.luzmoTypeArrayDatetime14,l:e.luzmoTypeArrayDatetime,xl:e.luzmoTypeArrayDatetime},"array[numeric]":{s:e.luzmoTypeArrayNumeric12,m:e.luzmoTypeArrayNumeric14,l:e.luzmoTypeArrayNumeric,xl:e.luzmoTypeArrayNumeric},"array[currency]":{s:e.luzmoTypeArrayCurrency12,m:e.luzmoTypeArrayCurrency14,l:e.luzmoTypeArrayCurrency,xl:e.luzmoTypeArrayCurrency},"array[duration]":{s:e.luzmoTypeArrayDuration12,m:e.luzmoTypeArrayDuration14,l:e.luzmoTypeArrayDuration,xl:e.luzmoTypeArrayDuration},coordinates:{s:e.luzmoTypeCoordinates12,m:e.luzmoTypeCoordinates14,l:e.luzmoTypeCoordinates,xl:e.luzmoTypeCoordinates},currency:{s:e.luzmoTypeCurrency12,m:e.luzmoTypeCurrency14,l:e.luzmoTypeCurrency,xl:e.luzmoTypeCurrency},date:{s:e.luzmoTypeDate12,m:e.luzmoTypeDate14,l:e.luzmoTypeDate,xl:e.luzmoTypeDate},datetime:{s:e.luzmoTypeDatetime12,m:e.luzmoTypeDatetime14,l:e.luzmoTypeDatetime,xl:e.luzmoTypeDatetime},derived:{s:e.luzmoTypeDerived12,m:e.luzmoTypeDerived14,l:e.luzmoTypeDerived,xl:e.luzmoTypeDerived},duration:{s:e.luzmoTypeDuration12,m:e.luzmoTypeDuration14,l:e.luzmoTypeDuration,xl:e.luzmoTypeDuration},hierarchy:{s:e.luzmoTypeHierarchy12,m:e.luzmoTypeHierarchy14,l:e.luzmoTypeHierarchy,xl:e.luzmoTypeHierarchy},image:{s:e.luzmoTypeImage12,m:e.luzmoTypeImage14,l:e.luzmoTypeImage,xl:e.luzmoTypeImage},numeric:{s:e.luzmoTypeNumeric12,m:e.luzmoTypeNumeric14,l:e.luzmoTypeNumeric,xl:e.luzmoTypeNumeric},topography:{s:e.luzmoTypeTopography,m:e.luzmoTypeTopography,l:e.luzmoTypeTopography,xl:e.luzmoTypeTopography},ipaddress:{s:e.luzmoTypeIpAddress12,m:e.luzmoTypeIpAddress14,l:e.luzmoTypeIpAddress,xl:e.luzmoTypeIpAddress},formula:{s:e.luzmoFormula,m:e.luzmoFormula,l:e.luzmoFormula,xl:e.luzmoFormula}},i={xxs:"s",xs:"s",s:"s",m:"m",l:"l",xl:"xl",xxl:"xl"},o=r=>r?i[r]:"m",p=(r,y="m")=>{const l=o(y);return r?.type==="array[hierarchy]"?u["array[hierarchy]"][l]:r?.type==="array[datetime]"?u["array[datetime]"][l]:r?.type==="array[numeric]"?r?.subtype==="currency"?u["array[currency]"][l]:r?.subtype==="duration"?u["array[duration]"][l]:u["array[numeric]"][l]:r?.type==="spatial"?r?.subtype==="topography"?u.topography[l]:u.coordinates[l]:r?.type==="numeric"?r?.subtype==="currency"?u.currency[l]:r?.subtype==="duration"?u.duration[l]:u.numeric[l]:r?.type==="datetime"?r?.lowestLevel&&r?.lowestLevel>5&&r?.lowestLevel<=9?u.datetime[l]:r?.lowestLevel&&r?.lowestLevel>1&&r?.lowestLevel<=5?u.date[l]:u.datetime[l]:r?.type==="hierarchy"&&r?.subtype==="ip_address"?u.ipaddress[l]:r?.type==="hierarchy"&&r?.subtype==="hierarchy_element_expression"?u.image[l]:u.hierarchy[l]},t=(r,y="m")=>{if(!r)return;const l=o(y),m=typeof r.expression=="string"?r.expression.trim().length>0:r.expression!=null;if(r.formulaId!=null)return u.formula[l];if(r.formulaId==null&&r.columnId!=null&&m)return u.derived[l]};exports.calculateDataItemIcon=p;exports.calculateDataItemSecondaryIcon=t;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./color-palettes-DhNHcib8.cjs"),g=require("./index-DhDgy1sp.cjs"),s=require("./color-range-utils-DYYR-iwx.cjs"),m=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0}}]},{key:"map",type:"group",open:!0,children:[{key:"enabled.zoom",control:{type:"switch",label:"Zoom",default:!0}},{key:"enabled.pan",control:{type:"switch",label:"Pan",default:!0}},{key:"enabled.pitchBearing",control:{type:"switch",label:"Pitch & Rotate",tooltip:"Use ctrl + drag",default:!1}},{type:"divider"},{key:"vectorTileProvider",control:{type:"picker",label:"Map style",default:"Basic",enum:["No Tiles","Basic","Bright","Dark","Fiord","Liberty","Pastel","Positron","Streets","Toner","Topographique","Voyager","3D buildings"],parseValue:e=>e?.name||"Basic",toValue:e=>g.mapVectorTileProviders[e]??{}}}]},{key:"colors",type:"group",open:!0,children:[{key:"opacity",control:{type:"slider",label:"Opacity",default:.85,min:.2,max:1,step:.01}},{key:"colorsClassType",control:{type:"picker",label:"Colors type",default:"sequential",enum:["sequential","divergent","manual"],calculateValue:({options:e})=>e?.colorsClass==="manual"?"manual":t.getColorMaps()?.[e?.colorsClass]?.type??"sequential",toOptions:({options:e,value:a})=>{const l=e?.colorsClass??"PuBu",n=e?.numberClasses??5,o=s.toRangesWithValue(e?.manualValues?.ranges),i=l==="manual"?"manual":l;let r;if(a==="manual")r="manual";else{const p=t.getColorMaps()?.[e?.colorsClass]?.type;a!==p&&(r=t.getColorMapKeys(a??"sequential")[0])}const u={...e,colorsClass:r};if(a==="manual"||e?.classification==="manual"){const c=s.calculateManualRanges(n,a==="manual"?i:r,o);u.manualValues={...u.manualValues,ranges:s.toRangesWithVal(c)}}else delete u?.manualValues?.ranges;return u}}},{key:"colorsClass",control:{type:"color-palette-picker",label:"Color palette",hideLabel:!0,default:({options:e})=>{const l=t.getColorMaps()?.[e?.colorsClass]?.type;return t.getColorMapKeys(l??"sequential")[0]},enum:({options:e})=>{const l=t.getColorMaps()?.[e?.colorsClass]?.type;return t.getColorMapKeys(l??"sequential")},toOptions:({options:e,value:a})=>{const l={...e,colorsClass:a};if(e?.classification==="manual"){const n=t.getColorMaps()[a]?.[`colors${e?.numberClasses??5}`];l.manualValues={...l.manualValues,ranges:e?.manualValues?.ranges.map(o=>({...o,color:n?.[o.val]}))}}return l}},visibleIf:({options:e})=>e?.colorsClass!=="manual"},{key:"manualValues.ranges",control:{type:"color-range",editRangeSize:!1,debounce:500,noValues:!0,noAlphaChannel:!0,label:"Manual range colors",hideLabel:!0},calculateValue:({options:e})=>s.calculateManualRanges(e?.numberClasses,e?.colorsClass,s.toRangesWithValue(e?.manualValues?.ranges)),toOptions:({options:e,value:a})=>({...e,manualValues:{...e.manualValues,ranges:s.toRangesWithVal(a)}}),visibleIf:({options:e})=>e?.colorsClass==="manual"}]},{key:"classification",type:"group",open:!0,children:[{key:"numberClasses",control:{type:"picker",label:"Number of classes",default:"5",enum:["3","4","5","6","7","8","9"],parseValue:e=>e?.toString()??"5",toOptions:({options:e,value:a})=>{a=Number.parseInt(a,10)??5;const l={...e,numberClasses:a};if(e?.classification==="manual"||e?.colorsClass==="manual"){const n=s.calculateManualRanges(a,e?.colorsClass,s.toRangesWithValue(e?.manualValues?.ranges));l.manualValues={...l.manualValues,ranges:s.toRangesWithVal(n)}}return l}}},{key:"classification",control:{type:"picker",label:"Method",default:"interval",enum:["interval","manual","quantile","continuous"],toOptions:({options:e,value:a})=>{const l={...e,classification:a};if(a==="manual"||e?.colorsClass==="manual"){const n=s.calculateManualRanges(e?.numberClasses,e?.colorsClass,s.toRangesWithValue(e?.manualValues?.ranges));l.manualValues={...l.manualValues,ranges:s.toRangesWithVal(n)}}else delete l?.manualValues?.ranges;return l}}},{key:"manualValues.rangesValues",control:{type:"color-range",editRangeSize:!1,debounce:500,noValues:!1,readOnlyColorPicker:!0,label:"Manual range values",hideLabel:!0,calculateValue:({options:e})=>s.calculateManualRanges(e?.numberClasses,e?.colorsClass,s.toRangesWithValue(e?.manualValues?.ranges)),toOptions:({options:e,value:a})=>({...e,manualValues:{...e.manualValues,ranges:s.toRangesWithVal(a)}})},visibleIf:({options:e})=>e?.classification==="manual"}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.type",control:{type:"picker",label:"Type",default:"bar",enum:["bar","list"]}},{key:"legend.size",control:{type:"radio-button-group",label:"Size",default:"M",enum:["S","M","L"]}},{key:"legend.position",control:{type:"position-picker",label:"Position",default:"bottomLeft",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]}}],visibleIf:({options:e})=>e?.display?.legend===!0}];exports.default=m;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./helpers-9I0oLoUB.cjs"),t=()=>[{color:"#ff0000",value:0},{color:"#ffa500",value:33.34},{color:"#ffff00",value:66.67},{color:"#008000",value:100}],o=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!1}},{key:"display.gaugeValue",control:{type:"switch",label:"Value",default:!0}},{key:"mode",control:{type:"picker",label:"Display",default:"normal",enum:["normal","percentage","difference"]}},{key:"display.gaugeLabel",control:{type:"switch",label:"Label",default:!0}},{type:"divider"},{key:"conditionalColor",control:{type:"switch",label:"Conditional color",default:!1,calculateValue:({options:e})=>e?.manualValues?.conditional?.length>0,toOptions:({options:e,value:l})=>{const r={...e},c=e?.manualValues?.conditional?.length>0;return l?c||(r.manualValues={...r?.manualValues,conditional:t()}):delete r?.manualValues?.conditional,r}}},{key:"circle.color",control:{type:"color-picker",label:"Arc color",default:({theme:e})=>a.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>a.getThemeMainColorResetLabel(e,l,"circle.color"),extraLabelHasClickAction:({options:e,theme:l})=>a.getThemeMainColorExtraLabelHasClickAction(e,l,"circle.color"),extraLabelClickAction:({options:e,theme:l})=>a.getThemeMainColorExtraLabelClickAction(e,l,"circle.color")},visibleIf:({options:e})=>!e?.manualValues?.conditional||e?.manualValues?.conditional?.length===0},{key:"manualValues.conditional",control:{type:"color-range",editRangeSize:!0,minimumRangeSize:2,percentage:!0,noAlphaChannel:!0,label:"Color ranges",hideLabel:!0,default:()=>t(),parseValue:e=>e?.map(l=>({color:l?.color,value:l?.value??l?.val})),toValue:e=>e?.map(r=>({color:r?.color,val:r?.value}))},visibleIf:({options:e})=>e?.manualValues?.conditional?.length>0},{key:"circle.width",control:{type:"slider",label:"Arc width",default:10,min:1,max:30,step:1}}]},{key:"layout",type:"group",open:!0,children:[{key:"circle.degrees",control:{type:"picker",label:"Arc size",default:"full circle",enum:["full circle","3/4 circle","2/3 circle","1/2 circle"],parseValue:e=>e===360?"full circle":e===270?"3/4 circle":e===240?"2/3 circle":e===180?"1/2 circle":"full circle",toValue:e=>e==="full circle"?360:e==="3/4 circle"?270:e==="2/3 circle"?240:e==="1/2 circle"?180:360}},{key:"circle.flip",control:{type:"switch",label:"Flip arc",default:!0},visibleIf:({options:e})=>e?.circle?.degrees&&e?.circle?.degrees!==360},{key:"circle.lineCap",control:{type:"switch",label:"Rounded ends",default:!0,parseValue:e=>e!=="butt",toValue:e=>e?"round":"butt"}}]}];exports.default=o;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
"use strict";function C(t,e){let r=t.length;Array.isArray(t[0])||(t=[t]),Array.isArray(e[0])||(e=e.map(o=>[o]));let n=e[0].length,a=e[0].map((o,i)=>e.map(l=>l[i])),s=t.map(o=>a.map(i=>{let l=0;if(!Array.isArray(o)){for(let f of i)l+=o*f;return l}for(let f=0;f<o.length;f++)l+=o[f]*(i[f]||0);return l}));return r===1&&(s=s[0]),n===1?s.map(o=>o[0]):s}function ce(t){return Y(t)==="string"}function Y(t){return(Object.prototype.toString.call(t).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function Se(t,{precision:e,unit:r}){return D(t)?"none":lr(t,e)+(r??"")}function D(t){return Number.isNaN(t)||t instanceof Number&&t?.none}function S(t){return D(t)?0:t}function lr(t,e){if(t===0)return 0;let r=~~t,n=0;r&&e&&(n=~~Math.log10(Math.abs(r))+1);const a=10**(e-n);return Math.floor(t*a+.5)/a}const Qr={deg:1,grad:.9,rad:180/Math.PI,turn:360};function cr(t){if(!t)return;t=t.trim();const e=/^([a-z]+)\((.+?)\)$/i,r=/^-?[\d.]+$/,n=/%|deg|g?rad|turn$/,a=/\/?\s*(none|[-\w.]+(?:%|deg|g?rad|turn)?)/g;let s=t.match(e);if(s){let o=[];return s[2].replace(a,(i,l)=>{let f=l.match(n),u=l;if(f){let c=f[0],h=u.slice(0,-c.length);c==="%"?(u=new Number(h/100),u.type="<percentage>"):(u=new Number(h*Qr[c]),u.type="<angle>",u.unit=c)}else r.test(u)?(u=new Number(u),u.type="<number>"):u==="none"&&(u=new Number(NaN),u.none=!0);i.startsWith("/")&&(u=u instanceof Number?u:new Number(u),u.alpha=!0),typeof u=="object"&&u instanceof Number&&(u.raw=l),o.push(u)}),{name:s[1].toLowerCase(),rawName:s[1],rawArgs:s[2],args:o}}}function ur(t){return t[t.length-1]}function oe(t,e,r){return isNaN(t)?e:isNaN(e)?t:t+(e-t)*r}function fr(t,e,r){return(r-t)/(e-t)}function Ue(t,e,r){return oe(e[0],e[1],fr(t[0],t[1],r))}function hr(t){return t.map(e=>e.split("|").map(r=>{r=r.trim();let n=r.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);if(n){let a=new String(n[1]);return a.range=[+n[2],+n[3]],a}return r}))}function dr(t,e,r){return Math.max(Math.min(r,e),t)}function Be(t,e){return Math.sign(t)===Math.sign(e)?t:-t}function A(t,e){return Be(Math.abs(t)**e,t)}function Ke(t,e){return e===0?0:t/e}function mr(t,e,r=0,n=t.length){for(;r<n;){const a=r+n>>1;t[a]<e?r=a+1:n=a}return r}var Ur=Object.freeze({__proto__:null,bisectLeft:mr,clamp:dr,copySign:Be,interpolate:oe,interpolateInv:fr,isNone:D,isString:ce,last:ur,mapRange:Ue,multiplyMatrices:C,parseCoordGrammar:hr,parseFunction:cr,serializeNumber:Se,skipNone:S,spow:A,toPrecision:lr,type:Y,zdiv:Ke});class Kr{add(e,r,n){if(typeof arguments[0]!="string"){for(var e in arguments[0])this.add(e,arguments[0][e],arguments[1]);return}(Array.isArray(e)?e:[e]).forEach(function(a){this[a]=this[a]||[],r&&this[a][n?"unshift":"push"](r)},this)}run(e,r){this[e]=this[e]||[],this[e].forEach(function(n){n.call(r&&r.context?r.context:r,r)})}}const j=new Kr;var P={gamut_mapping:"css",precision:5,deltaE:"76",verbose:globalThis?.process?.env?.NODE_ENV?.toLowerCase()!=="test",warn:function(e){this.verbose&&globalThis?.console?.warn?.(e)}};const B={D50:[.3457/.3585,1,(1-.3457-.3585)/.3585],D65:[.3127/.329,1,(1-.3127-.329)/.329]};function Xe(t){return Array.isArray(t)?t:B[t]}function Re(t,e,r,n={}){if(t=Xe(t),e=Xe(e),!t||!e)throw new TypeError(`Missing white point to convert ${t?"":"from"}${!t&&!e?"/":""}${e?"":"to"}`);if(t===e)return r;let a={W1:t,W2:e,XYZ:r,options:n};if(j.run("chromatic-adaptation-start",a),a.M||(a.W1===B.D65&&a.W2===B.D50?a.M=[[1.0479297925449969,.022946870601609652,-.05019226628920524],[.02962780877005599,.9904344267538799,-.017073799063418826],[-.009243040646204504,.015055191490298152,.7518742814281371]]:a.W1===B.D50&&a.W2===B.D65&&(a.M=[[.955473421488075,-.02309845494876471,.06325924320057072],[-.0283697093338637,1.0099953980813041,.021041441191917323],[.012314014864481998,-.020507649298898964,1.330365926242124]])),j.run("chromatic-adaptation-end",a),a.M)return C(a.M,a.XYZ);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}const Vr=new Set(["<number>","<percentage>","<angle>"]);function ft(t,e,r,n){return Object.entries(t.coords).map(([s,o],i)=>{let l=e.coordGrammar[i],f=n[i],u=f?.type,c;if(f.none?c=l.find(m=>Vr.has(m)):c=l.find(m=>m==u),!c){let m=o.name||s;throw new TypeError(`${u??f.raw} not allowed for ${m} in ${r}()`)}let h=c.range;u==="<percentage>"&&(h||=[0,1]);let p=o.range||o.refRange;return h&&p&&(n[i]=Ue(h,p,n[i])),c})}function gr(t,{meta:e}={}){let r={str:String(t)?.trim()};if(j.run("parse-start",r),r.color)return r.color;if(r.parsed=cr(r.str),r.parsed){let n=r.parsed.name;if(n==="color"){let a=r.parsed.args.shift(),s=a.startsWith("--")?a.substring(2):`--${a}`,o=[a,s],i=r.parsed.rawArgs.indexOf("/")>0?r.parsed.args.pop():1;for(let u of d.all){let c=u.getFormat("color");if(c&&(o.includes(c.id)||c.ids?.filter(h=>o.includes(h)).length)){const h=Object.keys(u.coords).map((m,b)=>r.parsed.args[b]||0);let p;return c.coordGrammar&&(p=ft(u,c,"color",h)),e&&Object.assign(e,{formatId:"color",types:p}),c.id.startsWith("--")&&!a.startsWith("--")&&P.warn(`${u.name} is a non-standard space and not currently supported in the CSS spec. Use prefixed color(${c.id}) instead of color(${a}).`),a.startsWith("--")&&!c.id.startsWith("--")&&P.warn(`${u.name} is a standard space and supported in the CSS spec. Use color(${c.id}) instead of prefixed color(${a}).`),{spaceId:u.id,coords:h,alpha:i}}}let l="",f=a in d.registry?a:s;if(f in d.registry){let u=d.registry[f].formats?.color?.id;u&&(l=`Did you mean color(${u})?`)}throw new TypeError(`Cannot parse color(${a}). `+(l||"Missing a plugin?"))}else for(let a of d.all){let s=a.getFormat(n);if(s&&s.type==="function"){let o=1;(s.lastAlpha||ur(r.parsed.args).alpha)&&(o=r.parsed.args.pop());let i=r.parsed.args,l;return s.coordGrammar&&(l=ft(a,s,n,i)),e&&Object.assign(e,{formatId:s.name,types:l}),{spaceId:a.id,coords:i,alpha:o}}}}else for(let n of d.all)for(let a in n.formats){let s=n.formats[a];if(s.type!=="custom"||s.test&&!s.test(r.str))continue;let o=s.parse(r.str);if(o)return o.alpha??=1,e&&(e.formatId=a),o}throw new TypeError(`Could not parse ${t} as a color. Missing a plugin?`)}function g(t){if(Array.isArray(t))return t.map(g);if(!t)throw new TypeError("Empty color reference");ce(t)&&(t=gr(t));let e=t.space||t.spaceId;return e instanceof d||(t.space=d.get(e)),t.alpha===void 0&&(t.alpha=1),t}const en=75e-6;class d{constructor(e){this.id=e.id,this.name=e.name,this.base=e.base?d.get(e.base):null,this.aliases=e.aliases,this.base&&(this.fromBase=e.fromBase,this.toBase=e.toBase);let r=e.coords??this.base.coords;for(let a in r)"name"in r[a]||(r[a].name=a);this.coords=r;let n=e.white??this.base.white??"D65";this.white=Xe(n),this.formats=e.formats??{};for(let a in this.formats){let s=this.formats[a];s.type||="function",s.name||=a}this.formats.color?.id||(this.formats.color={...this.formats.color??{},id:e.cssId||this.id}),e.gamutSpace?this.gamutSpace=e.gamutSpace==="self"?this:d.get(e.gamutSpace):this.isPolar?this.gamutSpace=this.base:this.gamutSpace=this,this.gamutSpace.isUnbounded&&(this.inGamut=(a,s)=>!0),this.referred=e.referred,Object.defineProperty(this,"path",{value:tn(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),j.run("colorspace-init-end",this)}inGamut(e,{epsilon:r=en}={}){if(!this.equals(this.gamutSpace))return e=this.to(this.gamutSpace,e),this.gamutSpace.inGamut(e,{epsilon:r});let n=Object.values(this.coords);return e.every((a,s)=>{let o=n[s];if(o.type!=="angle"&&o.range){if(Number.isNaN(a))return!0;let[i,l]=o.range;return(i===void 0||a>=i-r)&&(l===void 0||a<=l+r)}return!0})}get isUnbounded(){return Object.values(this.coords).every(e=>!("range"in e))}get cssId(){return this.formats?.color?.id||this.id}get isPolar(){for(let e in this.coords)if(this.coords[e].type==="angle")return!0;return!1}getFormat(e){if(typeof e=="object")return e=ht(e,this),e;let r;return e==="default"?r=Object.values(this.formats)[0]:r=this.formats[e],r?(r=ht(r,this),r):null}equals(e){return e?this===e||this.id===e||this.id===e.id:!1}to(e,r){if(arguments.length===1){const i=g(e);[e,r]=[i.space,i.coords]}if(e=d.get(e),this.equals(e))return r;r=r.map(i=>Number.isNaN(i)?0:i);let n=this.path,a=e.path,s,o;for(let i=0;i<n.length&&n[i].equals(a[i]);i++)s=n[i],o=i;if(!s)throw new Error(`Cannot convert between color spaces ${this} and ${e}: no connection space was found`);for(let i=n.length-1;i>o;i--)r=n[i].toBase(r);for(let i=o+1;i<a.length;i++)r=a[i].fromBase(r);return r}from(e,r){if(arguments.length===1){const n=g(e);[e,r]=[n.space,n.coords]}return e=d.get(e),e.to(this,r)}toString(){return`${this.name} (${this.id})`}getMinCoords(){let e=[];for(let r in this.coords){let n=this.coords[r],a=n.range||n.refRange;e.push(a?.min??0)}return e}static registry={};static get all(){return[...new Set(Object.values(d.registry))]}static register(e,r){if(arguments.length===1&&(r=arguments[0],e=r.id),r=this.get(r),this.registry[e]&&this.registry[e]!==r)throw new Error(`Duplicate color space registration: '${e}'`);if(this.registry[e]=r,arguments.length===1&&r.aliases)for(let n of r.aliases)this.register(n,r);return r}static get(e,...r){if(!e||e instanceof d)return e;if(Y(e)==="string"){let a=d.registry[e.toLowerCase()];if(!a)throw new TypeError(`No color space found with id = "${e}"`);return a}if(r.length)return d.get(...r);throw new TypeError(`${e} is not a valid color space`)}static resolveCoord(e,r){let n=Y(e),a,s;if(n==="string"?e.includes(".")?[a,s]=e.split("."):[a,s]=[,e]:Array.isArray(e)?[a,s]=e:(a=e.space,s=e.coordId),a=d.get(a),a||(a=r),!a)throw new TypeError(`Cannot resolve coordinate reference ${e}: No color space specified and relative references are not allowed here`);if(n=Y(s),n==="number"||n==="string"&&s>=0){let l=Object.entries(a.coords)[s];if(l)return{space:a,id:l[0],index:s,...l[1]}}a=d.get(a);let o=s.toLowerCase(),i=0;for(let l in a.coords){let f=a.coords[l];if(l.toLowerCase()===o||f.name?.toLowerCase()===o)return{space:a,id:l,index:i,...f};i++}throw new TypeError(`No "${s}" coordinate found in ${a.name}. Its coordinates are: ${Object.keys(a.coords).join(", ")}`)}static DEFAULT_FORMAT={type:"functions",name:"color"}}function tn(t){let e=[t];for(let r=t;r=r.base;)e.push(r);return e}function ht(t,{coords:e}={}){if(t.coords&&!t.coordGrammar){t.type||="function",t.name||="color",t.coordGrammar=hr(t.coords);let r=Object.entries(e).map(([n,a],s)=>{let o=t.coordGrammar[s][0],i=a.range||a.refRange,l=o.range,f="";return o=="<percentage>"?(l=[0,100],f="%"):o=="<angle>"&&(f="deg"),{fromRange:i,toRange:l,suffix:f}});t.serializeCoords=(n,a)=>n.map((s,o)=>{let{fromRange:i,toRange:l,suffix:f}=r[o];return i&&l&&(s=Ue(i,l,s)),s=Se(s,{precision:a,unit:f}),s})}return t}var v=new d({id:"xyz-d65",name:"XYZ D65",coords:{x:{name:"X"},y:{name:"Y"},z:{name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]});class N extends d{constructor(e){e.coords||(e.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),e.base||(e.base=v),e.toXYZ_M&&e.fromXYZ_M&&(e.toBase??=r=>{let n=C(e.toXYZ_M,r);return this.white!==this.base.white&&(n=Re(this.white,this.base.white,n)),n},e.fromBase??=r=>(r=Re(this.base.white,this.white,r),C(e.fromXYZ_M,r))),e.referred??="display",super(e)}}function ue(t,e){return t=g(t),!e||t.space.equals(e)?t.coords.slice():(e=d.get(e),e.from(t))}function $(t,e){t=g(t);let{space:r,index:n}=d.resolveCoord(e,t.space);return ue(t,r)[n]}function Ve(t,e,r){return t=g(t),e=d.get(e),t.coords=e.to(t.space,r),t}Ve.returns="color";function T(t,e,r){if(t=g(t),arguments.length===2&&Y(arguments[1])==="object"){let n=arguments[1];for(let a in n)T(t,a,n[a])}else{typeof r=="function"&&(r=r($(t,e)));let{space:n,index:a}=d.resolveCoord(e,t.space),s=ue(t,n);s[a]=r,Ve(t,n,s)}return t}T.returns="color";var et=new d({id:"xyz-d50",name:"XYZ D50",white:"D50",base:v,fromBase:t=>Re(v.white,"D50",t),toBase:t=>Re("D50",v.white,t)});const rn=216/24389,dt=24/116,ge=24389/27;let Pe=B.D50;var z=new d({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"Lightness"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:Pe,base:et,fromBase(t){let r=t.map((n,a)=>n/Pe[a]).map(n=>n>rn?Math.cbrt(n):(ge*n+16)/116);return[116*r[1]-16,500*(r[0]-r[1]),200*(r[1]-r[2])]},toBase(t){let e=[];return e[1]=(t[0]+16)/116,e[0]=t[1]/500+e[1],e[2]=e[1]-t[2]/200,[e[0]>dt?Math.pow(e[0],3):(116*e[0]-16)/ge,t[0]>8?Math.pow((t[0]+16)/116,3):t[0]/ge,e[2]>dt?Math.pow(e[2],3):(116*e[2]-16)/ge].map((n,a)=>n*Pe[a])},formats:{lab:{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function k(t){return(t%360+360)%360}function nn(t,e){if(t==="raw")return e;let[r,n]=e.map(k),a=n-r;return t==="increasing"?a<0&&(n+=360):t==="decreasing"?a>0&&(r+=360):t==="longer"?-180<a&&a<180&&(a>0?r+=360:n+=360):t==="shorter"&&(a>180?r+=360:a<-180&&(n+=360)),[r,n]}var ie=new d({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:z,fromBase(t){let[e,r,n]=t,a;const s=.02;return Math.abs(r)<s&&Math.abs(n)<s?a=NaN:a=Math.atan2(n,r)*180/Math.PI,[e,Math.sqrt(r**2+n**2),k(a)]},toBase(t){let[e,r,n]=t;return r<0&&(r=0),isNaN(n)&&(n=0),[e,r*Math.cos(n*Math.PI/180),r*Math.sin(n*Math.PI/180)]},formats:{lch:{coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}});const mt=25**7,xe=Math.PI,gt=180/xe,J=xe/180;function pt(t){const e=t*t;return e*e*e*t}function pr(t,e,{kL:r=1,kC:n=1,kH:a=1}={}){[t,e]=g([t,e]);let[s,o,i]=z.from(t),l=ie.from(z,[s,o,i])[1],[f,u,c]=z.from(e),h=ie.from(z,[f,u,c])[1];l<0&&(l=0),h<0&&(h=0);let p=(l+h)/2,m=pt(p),b=.5*(1-Math.sqrt(m/(m+mt))),M=(1+b)*o,R=(1+b)*u,_=Math.sqrt(M**2+i**2),L=Math.sqrt(R**2+c**2),I=M===0&&i===0?0:Math.atan2(i,M),O=R===0&&c===0?0:Math.atan2(c,R);I<0&&(I+=2*xe),O<0&&(O+=2*xe),I*=gt,O*=gt;let he=f-s,de=L-_,E=O-I,te=I+O,st=Math.abs(E),re;_*L===0?re=0:st<=180?re=E:E>180?re=E-360:E<-180?re=E+360:P.warn("the unthinkable has happened");let ot=2*Math.sqrt(L*_)*Math.sin(re*J/2),Zr=(s+f)/2,ze=(_+L)/2,it=pt(ze),H;_*L===0?H=te:st<=180?H=te/2:te<360?H=(te+360)/2:H=(te-360)/2;let lt=(Zr-50)**2,Gr=1+.015*lt/Math.sqrt(20+lt),ct=1+.045*ze,ne=1;ne-=.17*Math.cos((H-30)*J),ne+=.24*Math.cos(2*H*J),ne+=.32*Math.cos((3*H+6)*J),ne-=.2*Math.cos((4*H-63)*J);let ut=1+.015*ze*ne,Jr=30*Math.exp(-1*((H-275)/25)**2),Fr=2*Math.sqrt(it/(it+mt)),Wr=-1*Math.sin(2*Jr*J)*Fr,me=(he/(r*Gr))**2;return me+=(de/(n*ct))**2,me+=(ot/(a*ut))**2,me+=Wr*(de/(n*ct))*(ot/(a*ut)),Math.sqrt(me)}const an=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],sn=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],on=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],ln=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]];var U=new d({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"Lightness"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:v,fromBase(t){let r=C(an,t).map(n=>Math.cbrt(n));return C(on,r)},toBase(t){let r=C(ln,t).map(n=>n**3);return C(sn,r)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function qe(t,e){[t,e]=g([t,e]);let[r,n,a]=U.from(t),[s,o,i]=U.from(e),l=r-s,f=n-o,u=a-i;return Math.sqrt(l**2+f**2+u**2)}const cn=75e-6;function G(t,e,{epsilon:r=cn}={}){t=g(t),e||(e=t.space),e=d.get(e);let n=t.coords;return e!==t.space&&(n=e.from(t)),e.inGamut(n,{epsilon:r})}function K(t){return{space:t.space,coords:t.coords.slice(),alpha:t.alpha}}function br(t,e,r="lab"){r=d.get(r);let n=r.from(t),a=r.from(e);return Math.sqrt(n.reduce((s,o,i)=>{let l=a[i];return isNaN(o)||isNaN(l)?s:s+(l-o)**2},0))}function un(t,e){return br(t,e,"lab")}const fn=Math.PI,bt=fn/180;function hn(t,e,{l:r=2,c:n=1}={}){[t,e]=g([t,e]);let[a,s,o]=z.from(t),[,i,l]=ie.from(z,[a,s,o]),[f,u,c]=z.from(e),h=ie.from(z,[f,u,c])[1];i<0&&(i=0),h<0&&(h=0);let p=a-f,m=i-h,b=s-u,M=o-c,R=b**2+M**2-m**2,_=.511;a>=16&&(_=.040975*a/(1+.01765*a));let L=.0638*i/(1+.0131*i)+.638,I;Number.isNaN(l)&&(l=0),l>=164&&l<=345?I=.56+Math.abs(.2*Math.cos((l+168)*bt)):I=.36+Math.abs(.4*Math.cos((l+35)*bt));let O=Math.pow(i,4),he=Math.sqrt(O/(O+1900)),de=L*(he*I+1-he),E=(p/(r*_))**2;return E+=(m/(n*L))**2,E+=R/de**2,Math.sqrt(E)}const Mt=203;var tt=new d({id:"xyz-abs-d65",cssId:"--xyz-abs-d65",name:"Absolute XYZ D65",coords:{x:{refRange:[0,9504.7],name:"Xa"},y:{refRange:[0,1e4],name:"Ya"},z:{refRange:[0,10888.3],name:"Za"}},base:v,fromBase(t){return t.map(e=>Math.max(e*Mt,0))},toBase(t){return t.map(e=>Math.max(e/Mt,0))}});const pe=1.15,be=.66,wt=2610/2**14,dn=2**14/2610,yt=3424/2**12,Ct=2413/2**7,_t=2392/2**7,mn=1.7*2523/2**5,Lt=2**5/(1.7*2523),Me=-.56,Ee=16295499532821565e-27,gn=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],pn=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],bn=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],Mn=[[1,.1386050432715393,.05804731615611886],[.9999999999999999,-.1386050432715393,-.05804731615611886],[.9999999999999998,-.09601924202631895,-.8118918960560388]];var Mr=new d({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.5,.5]},bz:{refRange:[-.5,.5]}},base:tt,fromBase(t){let[e,r,n]=t,a=pe*e-(pe-1)*n,s=be*r-(be-1)*e,i=C(gn,[a,s,n]).map(function(h){let p=yt+Ct*(h/1e4)**wt,m=1+_t*(h/1e4)**wt;return(p/m)**mn}),[l,f,u]=C(bn,i);return[(1+Me)*l/(1+Me*l)-Ee,f,u]},toBase(t){let[e,r,n]=t,a=(e+Ee)/(1+Me-Me*(e+Ee)),o=C(Mn,[a,r,n]).map(function(h){let p=yt-h**Lt,m=_t*h**Lt-Ct;return 1e4*(p/m)**dn}),[i,l,f]=C(pn,o),u=(i+(pe-1)*f)/pe,c=(l+(be-1)*u)/be;return[u,c,f]},formats:{color:{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}}),Ze=new d({id:"jzczhz",name:"JzCzHz",coords:{jz:{refRange:[0,1],name:"Jz"},cz:{refRange:[0,1],name:"Chroma"},hz:{refRange:[0,360],type:"angle",name:"Hue"}},base:Mr,fromBase(t){let[e,r,n]=t,a;const s=2e-4;return Math.abs(r)<s&&Math.abs(n)<s?a=NaN:a=Math.atan2(n,r)*180/Math.PI,[e,Math.sqrt(r**2+n**2),k(a)]},toBase(t){return[t[0],t[1]*Math.cos(t[2]*Math.PI/180),t[1]*Math.sin(t[2]*Math.PI/180)]}});function wn(t,e){[t,e]=g([t,e]);let[r,n,a]=Ze.from(t),[s,o,i]=Ze.from(e),l=r-s,f=n-o;Number.isNaN(a)&&Number.isNaN(i)?(a=0,i=0):Number.isNaN(a)?a=i:Number.isNaN(i)&&(i=a);let u=a-i,c=2*Math.sqrt(n*o)*Math.sin(u/2*(Math.PI/180));return Math.sqrt(l**2+f**2+c**2)}const wr=3424/4096,yr=2413/128,Cr=2392/128,St=2610/16384,yn=2523/32,Cn=16384/2610,Rt=32/2523,_n=[[.3592832590121217,.6976051147779502,-.035891593232029],[-.1920808463704993,1.100476797037432,.0753748658519118],[.0070797844607479,.0748396662186362,.8433265453898765]],Ln=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],Sn=[[.9999999999999998,.0086090370379328,.111029625003026],[.9999999999999998,-.0086090370379328,-.1110296250030259],[.9999999999999998,.5600313357106791,-.3206271749873188]],Rn=[[2.0701522183894223,-1.3263473389671563,.2066510476294053],[.3647385209748072,.6805660249472273,-.0453045459220347],[-.0497472075358123,-.0492609666966131,1.1880659249923042]];var Ge=new d({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:tt,fromBase(t){let e=C(_n,t);return xn(e)},toBase(t){let e=vn(t);return C(Rn,e)}});function xn(t){let e=t.map(function(r){let n=wr+yr*(r/1e4)**St,a=1+Cr*(r/1e4)**St;return(n/a)**yn});return C(Ln,e)}function vn(t){return C(Sn,t).map(function(n){let a=Math.max(n**Rt-wr,0),s=yr-Cr*n**Rt;return 1e4*(a/s)**Cn})}function Bn(t,e){[t,e]=g([t,e]);let[r,n,a]=Ge.from(t),[s,o,i]=Ge.from(e);return 720*Math.sqrt((r-s)**2+.25*(n-o)**2+(a-i)**2)}const Nn=B.D65,_r=.42,xt=1/_r,Ae=2*Math.PI,Lr=[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],In=[[1.8620678550872327,-1.0112546305316843,.14918677544445175],[.38752654323613717,.6214474419314753,-.008973985167612518],[-.015841498849333856,-.03412293802851557,1.0499644368778496]],$n=[[460,451,288],[460,-891,-261],[460,-220,-6300]],zn={dark:[.8,.525,.8],dim:[.9,.59,.9],average:[1,.69,1]},Z={h:[20.14,90,164.25,237.53,380.14],e:[.8,.7,1,1.2,.8],H:[0,100,200,300,400]},Pn=180/Math.PI,vt=Math.PI/180;function Sr(t,e){return t.map(n=>{const a=A(e*Math.abs(n)*.01,_r);return 400*Be(a,n)/(a+27.13)})}function En(t,e){const r=100/e*27.13**xt;return t.map(n=>{const a=Math.abs(n);return Be(r*A(a/(400-a),xt),n)})}function An(t){let e=k(t);e<=Z.h[0]&&(e+=360);const r=mr(Z.h,e)-1,[n,a]=Z.h.slice(r,r+2),[s,o]=Z.e.slice(r,r+2),i=Z.H[r],l=(e-n)/s;return i+100*l/(l+(a-e)/o)}function kn(t){let e=(t%400+400)%400;const r=Math.floor(.01*e);e=e%100;const[n,a]=Z.h.slice(r,r+2),[s,o]=Z.e.slice(r,r+2);return k((e*(o*n-s*a)-100*n*o)/(e*(o-s)-100*o))}function Rr(t,e,r,n,a){const s={};s.discounting=a,s.refWhite=t,s.surround=n;const o=t.map(b=>b*100);s.la=e,s.yb=r;const i=o[1],l=C(Lr,o);n=zn[s.surround];const f=n[0];s.c=n[1],s.nc=n[2];const c=(1/(5*s.la+1))**4;s.fl=c*s.la+.1*(1-c)*(1-c)*Math.cbrt(5*s.la),s.flRoot=s.fl**.25,s.n=s.yb/i,s.z=1.48+Math.sqrt(s.n),s.nbb=.725*s.n**-.2,s.ncb=s.nbb;const h=Math.max(Math.min(f*(1-1/3.6*Math.exp((-s.la-42)/92)),1),0);s.dRgb=l.map(b=>oe(1,i/b,h)),s.dRgbInv=s.dRgb.map(b=>1/b);const p=l.map((b,M)=>b*s.dRgb[M]),m=Sr(p,s.fl);return s.aW=s.nbb*(2*m[0]+m[1]+.05*m[2]),s}const Bt=Rr(Nn,64/Math.PI*.2,20,"average",!1);function Je(t,e){if(!(t.J!==void 0^t.Q!==void 0))throw new Error("Conversion requires one and only one: 'J' or 'Q'");if(!(t.C!==void 0^t.M!==void 0^t.s!==void 0))throw new Error("Conversion requires one and only one: 'C', 'M' or 's'");if(!(t.h!==void 0^t.H!==void 0))throw new Error("Conversion requires one and only one: 'h' or 'H'");if(t.J===0||t.Q===0)return[0,0,0];let r=0;t.h!==void 0?r=k(t.h)*vt:r=kn(t.H)*vt;const n=Math.cos(r),a=Math.sin(r);let s=0;t.J!==void 0?s=A(t.J,1/2)*.1:t.Q!==void 0&&(s=.25*e.c*t.Q/((e.aW+4)*e.flRoot));let o=0;t.C!==void 0?o=t.C/s:t.M!==void 0?o=t.M/e.flRoot/s:t.s!==void 0&&(o=4e-4*t.s**2*(e.aW+4)/e.c);const i=A(o*Math.pow(1.64-Math.pow(.29,e.n),-.73),10/9),l=.25*(Math.cos(r+2)+3.8),f=e.aW*A(s,2/e.c/e.z),u=5e4/13*e.nc*e.ncb*l,c=f/e.nbb,h=23*(c+.305)*Ke(i,23*u+i*(11*n+108*a)),p=h*n,m=h*a,b=En(C($n,[c,p,m]).map(M=>M*1/1403),e.fl);return C(In,b.map((M,R)=>M*e.dRgbInv[R])).map(M=>M/100)}function xr(t,e){const r=t.map(L=>L*100),n=Sr(C(Lr,r).map((L,I)=>L*e.dRgb[I]),e.fl),a=n[0]+(-12*n[1]+n[2])/11,s=(n[0]+n[1]-2*n[2])/9,o=(Math.atan2(s,a)%Ae+Ae)%Ae,i=.25*(Math.cos(o+2)+3.8),l=5e4/13*e.nc*e.ncb*Ke(i*Math.sqrt(a**2+s**2),n[0]+n[1]+1.05*n[2]+.305),f=A(l,.9)*Math.pow(1.64-Math.pow(.29,e.n),.73),u=e.nbb*(2*n[0]+n[1]+.05*n[2]),c=A(u/e.aW,.5*e.c*e.z),h=100*A(c,2),p=4/e.c*c*(e.aW+4)*e.flRoot,m=f*c,b=m*e.flRoot,M=k(o*Pn),R=An(M),_=50*A(e.c*f/(e.aW+4),1/2);return{J:h,C:m,h:M,s:_,Q:p,M:b,H:R}}var Hn=new d({id:"cam16-jmh",cssId:"--cam16-jmh",name:"CAM16-JMh",coords:{j:{refRange:[0,100],name:"J"},m:{refRange:[0,105],name:"Colorfulness"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:v,fromBase(t){const e=xr(t,Bt);return[e.J,e.M,e.h]},toBase(t){return Je({J:t[0],M:t[1],h:t[2]},Bt)}});const Tn=B.D65,On=216/24389,vr=24389/27;function Yn(t){return 116*(t>On?Math.cbrt(t):(vr*t+16)/116)-16}function Fe(t){return t>8?Math.pow((t+16)/116,3):t/vr}function Dn(t,e){let[r,n,a]=t,s=[],o=0;if(a===0)return[0,0,0];let i=Fe(a);a>0?o=.00379058511492914*a**2+.608983189401032*a+.9155088574762233:o=9514440756550361e-21*a**2+.08693057439788597*a-21.928975842194614;const l=2e-12,f=15;let u=0,c=1/0;for(;u<=f;){s=Je({J:o,C:n,h:r},e);const h=Math.abs(s[1]-i);if(h<c){if(h<=l)return s;c=h}o=o-(s[1]-i)*o/(2*s[1]),u+=1}return Je({J:o,C:n,h:r},e)}function jn(t,e){const r=Yn(t[1]);if(r===0)return[0,0,0];const n=xr(t,rt);return[k(n.h),n.C,r]}const rt=Rr(Tn,200/Math.PI*Fe(50),Fe(50)*100,"average",!1);var le=new d({id:"hct",name:"HCT",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},c:{refRange:[0,145],name:"Colorfulness"},t:{refRange:[0,100],name:"Tone"}},base:v,fromBase(t){return jn(t)},toBase(t){return Dn(t,rt)},formats:{color:{id:"--hct",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}});const Xn=Math.PI/180,Nt=[1,.007,.0228];function It(t){t[1]<0&&(t=le.fromBase(le.toBase(t)));const e=Math.log(Math.max(1+Nt[2]*t[1]*rt.flRoot,1))/Nt[2],r=t[0]*Xn,n=e*Math.cos(r),a=e*Math.sin(r);return[t[2],n,a]}function qn(t,e){[t,e]=g([t,e]);let[r,n,a]=It(le.from(t)),[s,o,i]=It(le.from(e));return Math.sqrt((r-s)**2+(n-o)**2+(a-i)**2)}var V={deltaE76:un,deltaECMC:hn,deltaE2000:pr,deltaEJz:wn,deltaEITP:Bn,deltaEOK:qe,deltaEHCT:qn};function Zn(t){const e=t?Math.floor(Math.log10(Math.abs(t))):0;return Math.max(parseFloat(`1e${e-2}`),1e-6)}const $t={hct:{method:"hct.c",jnd:2,deltaEMethod:"hct",blackWhiteClamp:{}},"hct-tonal":{method:"hct.c",jnd:0,deltaEMethod:"hct",blackWhiteClamp:{channel:"hct.t",min:0,max:100}}};function X(t,{method:e=P.gamut_mapping,space:r=void 0,deltaEMethod:n="",jnd:a=2,blackWhiteClamp:s={}}={}){if(t=g(t),ce(arguments[1])?r=arguments[1]:r||(r=t.space),r=d.get(r),G(t,r,{epsilon:0}))return t;let o;if(e==="css")o=Gn(t,{space:r});else{if(e!=="clip"&&!G(t,r)){Object.prototype.hasOwnProperty.call($t,e)&&({method:e,jnd:a,deltaEMethod:n,blackWhiteClamp:s}=$t[e]);let i=pr;if(n!==""){for(let f in V)if("deltae"+n.toLowerCase()===f.toLowerCase()){i=V[f];break}}let l=X(y(t,r),{method:"clip",space:r});if(i(t,l)>a){if(Object.keys(s).length===3){let _=d.resolveCoord(s.channel),L=$(y(t,_.space),_.id);if(D(L)&&(L=0),L>=s.max)return y({space:"xyz-d65",coords:B.D65},t.space);if(L<=s.min)return y({space:"xyz-d65",coords:[0,0,0]},t.space)}let f=d.resolveCoord(e),u=f.space,c=f.id,h=y(t,u);h.coords.forEach((_,L)=>{D(_)&&(h.coords[L]=0)});let m=(f.range||f.refRange)[0],b=Zn(a),M=m,R=$(h,c);for(;R-M>b;){let _=K(h);_=X(_,{space:r,method:"clip"}),i(h,_)-a<b?M=$(h,c):R=$(h,c),T(h,c,(M+R)/2)}o=y(h,r)}else o=l}else o=y(t,r);if(e==="clip"||!G(o,r,{epsilon:0})){let i=Object.values(r.coords).map(l=>l.range||[]);o.coords=o.coords.map((l,f)=>{let[u,c]=i[f];return u!==void 0&&(l=Math.max(u,l)),c!==void 0&&(l=Math.min(l,c)),l})}}return r!==t.space&&(o=y(o,t.space)),t.coords=o.coords,t}X.returns="color";const zt={WHITE:{space:U,coords:[1,0,0]},BLACK:{space:U,coords:[0,0,0]}};function Gn(t,{space:e}={}){t=g(t),e||(e=t.space),e=d.get(e);const a=d.get("oklch");if(e.isUnbounded)return y(t,e);const s=y(t,a);let o=s.coords[0];if(o>=1){const m=y(zt.WHITE,e);return m.alpha=t.alpha,y(m,e)}if(o<=0){const m=y(zt.BLACK,e);return m.alpha=t.alpha,y(m,e)}if(G(s,e,{epsilon:0}))return y(s,e);function i(m){const b=y(m,e),M=Object.values(e.coords);return b.coords=b.coords.map((R,_)=>{if("range"in M[_]){const[L,I]=M[_].range;return dr(L,R,I)}return R}),b}let l=0,f=s.coords[1],u=!0,c=K(s),h=i(c),p=qe(h,c);if(p<.02)return h;for(;f-l>1e-4;){const m=(l+f)/2;if(c.coords[1]=m,u&&G(c,e,{epsilon:0}))l=m;else if(h=i(c),p=qe(h,c),p<.02){if(.02-p<1e-4)break;u=!1,l=m}else f=m}return h}function y(t,e,{inGamut:r}={}){t=g(t),e=d.get(e);let n=e.from(t),a={space:e,coords:n,alpha:t.alpha};return r&&(a=X(a,r===!0?void 0:r)),a}y.returns="color";function se(t,{precision:e=P.precision,format:r="default",inGamut:n=!0,...a}={}){let s;t=g(t);let o=r;r=t.space.getFormat(r)??t.space.getFormat("default")??d.DEFAULT_FORMAT;let i=t.coords.slice();if(n||=r.toGamut,n&&!G(t)&&(i=X(K(t),n===!0?void 0:n).coords),r.type==="custom")if(a.precision=e,r.serialize)s=r.serialize(i,t.alpha,a);else throw new TypeError(`format ${o} can only be used to parse colors, not for serialization`);else{let l=r.name||"color";r.serializeCoords?i=r.serializeCoords(i,e):e!==null&&(i=i.map(h=>Se(h,{precision:e})));let f=[...i];if(l==="color"){let h=r.id||r.ids?.[0]||t.space.id;f.unshift(h)}let u=t.alpha;e!==null&&(u=Se(u,{precision:e}));let c=t.alpha>=1||r.noAlpha?"":`${r.commas?",":" /"} ${u}`;s=`${l}(${f.join(r.commas?", ":" ")}${c})`}return s}const Jn=[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],Fn=[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]];var Ne=new N({id:"rec2020-linear",cssId:"--rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:Jn,fromXYZ_M:Fn});const we=1.09929682680944,Pt=.018053968510807;var Br=new N({id:"rec2020",name:"REC.2020",base:Ne,toBase(t){return t.map(function(e){return e<Pt*4.5?e/4.5:Math.pow((e+we-1)/we,1/.45)})},fromBase(t){return t.map(function(e){return e>=Pt?we*Math.pow(e,.45)-(we-1):4.5*e})}});const Wn=[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],Qn=[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]];var Nr=new N({id:"p3-linear",cssId:"--display-p3-linear",name:"Linear P3",white:"D65",toXYZ_M:Wn,fromXYZ_M:Qn});const Un=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],x=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]];var Ir=new N({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:Un,fromXYZ_M:x}),Et={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[153/255,50/255,204/255],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,153/255],lightslategrey:[119/255,136/255,153/255],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[102/255,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,204/255],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[102/255,51/255,153/255],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]};let At=Array(3).fill("<percentage> | <number>[0, 255]"),kt=Array(3).fill("<number>[0, 255]");var ee=new N({id:"srgb",name:"sRGB",base:Ir,fromBase:t=>t.map(e=>{let r=e<0?-1:1,n=e*r;return n>.0031308?r*(1.055*n**(1/2.4)-.055):12.92*e}),toBase:t=>t.map(e=>{let r=e<0?-1:1,n=e*r;return n<=.04045?e/12.92:r*((n+.055)/1.055)**2.4}),formats:{rgb:{coords:At},rgb_number:{name:"rgb",commas:!0,coords:kt,noAlpha:!0},color:{},rgba:{coords:At,commas:!0,lastAlpha:!0},rgba_number:{name:"rgba",commas:!0,coords:kt},hex:{type:"custom",toGamut:!0,test:t=>/^#([a-f0-9]{3,4}){1,2}$/i.test(t),parse(t){t.length<=5&&(t=t.replace(/[a-f0-9]/gi,"$&$&"));let e=[];return t.replace(/[a-f0-9]{2}/gi,r=>{e.push(parseInt(r,16)/255)}),{spaceId:"srgb",coords:e.slice(0,3),alpha:e.slice(3)[0]}},serialize:(t,e,{collapse:r=!0}={})=>{e<1&&t.push(e),t=t.map(s=>Math.round(s*255));let n=r&&t.every(s=>s%17===0);return"#"+t.map(s=>n?(s/17).toString(16):s.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:t=>/^[a-z]+$/i.test(t),parse(t){t=t.toLowerCase();let e={spaceId:"srgb",coords:null,alpha:1};if(t==="transparent"?(e.coords=Et.black,e.alpha=0):e.coords=Et[t],e.coords)return e}}}}),$r=new N({id:"p3",cssId:"display-p3",name:"P3",base:Nr,fromBase:ee.fromBase,toBase:ee.toBase});P.display_space=ee;let Kn;if(typeof CSS<"u"&&CSS.supports)for(let t of[z,Br,$r]){let e=t.getMinCoords(),n=se({space:t,coords:e,alpha:1});if(CSS.supports("color",n)){P.display_space=t;break}}function Vn(t,{space:e=P.display_space,...r}={}){let n=se(t,r);if(typeof CSS>"u"||CSS.supports("color",n)||!P.display_space)n=new String(n),n.color=t;else{let a=t;if((t.coords.some(D)||D(t.alpha))&&!(Kn??=CSS.supports("color","hsl(none 50% 50%)"))&&(a=K(t),a.coords=a.coords.map(S),a.alpha=S(a.alpha),n=se(a,r),CSS.supports("color",n)))return n=new String(n),n.color=a,n;a=y(a,e),n=new String(se(a,r)),n.color=a}return n}function e0(t,e){return t=g(t),e=g(e),t.space===e.space&&t.alpha===e.alpha&&t.coords.every((r,n)=>r===e.coords[n])}function q(t){return $(t,[v,"y"])}function zr(t,e){T(t,[v,"y"],e)}function t0(t){Object.defineProperty(t.prototype,"luminance",{get(){return q(this)},set(e){zr(this,e)}})}var r0=Object.freeze({__proto__:null,getLuminance:q,register:t0,setLuminance:zr});function n0(t,e){t=g(t),e=g(e);let r=Math.max(q(t),0),n=Math.max(q(e),0);return n>r&&([r,n]=[n,r]),(r+.05)/(n+.05)}const a0=.56,s0=.57,o0=.62,i0=.65,Ht=.022,l0=1.414,c0=.1,u0=5e-4,f0=1.14,Tt=.027,h0=1.14;function Ot(t){return t>=Ht?t:t+(Ht-t)**l0}function F(t){let e=t<0?-1:1,r=Math.abs(t);return e*Math.pow(r,2.4)}function d0(t,e){e=g(e),t=g(t);let r,n,a,s,o,i;e=y(e,"srgb"),[s,o,i]=e.coords;let l=F(s)*.2126729+F(o)*.7151522+F(i)*.072175;t=y(t,"srgb"),[s,o,i]=t.coords;let f=F(s)*.2126729+F(o)*.7151522+F(i)*.072175,u=Ot(l),c=Ot(f),h=c>u;return Math.abs(c-u)<u0?n=0:h?(r=c**a0-u**s0,n=r*f0):(r=c**i0-u**o0,n=r*h0),Math.abs(n)<c0?a=0:n>0?a=n-Tt:a=n+Tt,a*100}function m0(t,e){t=g(t),e=g(e);let r=Math.max(q(t),0),n=Math.max(q(e),0);n>r&&([r,n]=[n,r]);let a=r+n;return a===0?0:(r-n)/a}const g0=5e4;function p0(t,e){t=g(t),e=g(e);let r=Math.max(q(t),0),n=Math.max(q(e),0);return n>r&&([r,n]=[n,r]),n===0?g0:(r-n)/n}function b0(t,e){t=g(t),e=g(e);let r=$(t,[z,"l"]),n=$(e,[z,"l"]);return Math.abs(r-n)}const M0=216/24389,Yt=24/116,ye=24389/27;let ke=B.D65;var We=new d({id:"lab-d65",name:"Lab D65",coords:{l:{refRange:[0,100],name:"Lightness"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:ke,base:v,fromBase(t){let r=t.map((n,a)=>n/ke[a]).map(n=>n>M0?Math.cbrt(n):(ye*n+16)/116);return[116*r[1]-16,500*(r[0]-r[1]),200*(r[1]-r[2])]},toBase(t){let e=[];return e[1]=(t[0]+16)/116,e[0]=t[1]/500+e[1],e[2]=e[1]-t[2]/200,[e[0]>Yt?Math.pow(e[0],3):(116*e[0]-16)/ye,t[0]>8?Math.pow((t[0]+16)/116,3):t[0]/ye,e[2]>Yt?Math.pow(e[2],3):(116*e[2]-16)/ye].map((n,a)=>n*ke[a])},formats:{"lab-d65":{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});const He=Math.pow(5,.5)*.5+.5;function w0(t,e){t=g(t),e=g(e);let r=$(t,[We,"l"]),n=$(e,[We,"l"]),a=Math.abs(Math.pow(r,He)-Math.pow(n,He)),s=Math.pow(a,1/He)*Math.SQRT2-40;return s<7.5?0:s}var Le=Object.freeze({__proto__:null,contrastAPCA:d0,contrastDeltaPhi:w0,contrastLstar:b0,contrastMichelson:m0,contrastWCAG21:n0,contrastWeber:p0});function y0(t,e,r={}){ce(r)&&(r={algorithm:r});let{algorithm:n,...a}=r;if(!n){let s=Object.keys(Le).map(o=>o.replace(/^contrast/,"")).join(", ");throw new TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${s}`)}t=g(t),e=g(e);for(let s in Le)if("contrast"+n.toLowerCase()===s.toLowerCase())return Le[s](t,e,a);throw new TypeError(`Unknown contrast algorithm: ${n}`)}function Ie(t){let[e,r,n]=ue(t,v),a=e+15*r+3*n;return[4*e/a,9*r/a]}function Pr(t){let[e,r,n]=ue(t,v),a=e+r+n;return[e/a,r/a]}function C0(t){Object.defineProperty(t.prototype,"uv",{get(){return Ie(this)}}),Object.defineProperty(t.prototype,"xy",{get(){return Pr(this)}})}var _0=Object.freeze({__proto__:null,register:C0,uv:Ie,xy:Pr});function ae(t,e,r={}){ce(r)&&(r={method:r});let{method:n=P.deltaE,...a}=r;for(let s in V)if("deltae"+n.toLowerCase()===s.toLowerCase())return V[s](t,e,a);throw new TypeError(`Unknown deltaE method: ${n}`)}function L0(t,e=.25){let n=[d.get("oklch","lch"),"l"];return T(t,n,a=>a*(1+e))}function S0(t,e=.25){let n=[d.get("oklch","lch"),"l"];return T(t,n,a=>a*(1-e))}var R0=Object.freeze({__proto__:null,darken:S0,lighten:L0});function Er(t,e,r=.5,n={}){return[t,e]=[g(t),g(e)],Y(r)==="object"&&([r,n]=[.5,r]),fe(t,e,n)(r)}function Ar(t,e,r={}){let n;nt(t)&&([n,r]=[t,e],[t,e]=n.rangeArgs.colors);let{maxDeltaE:a,deltaEMethod:s,steps:o=2,maxSteps:i=1e3,...l}=r;n||([t,e]=[g(t),g(e)],n=fe(t,e,l));let f=ae(t,e),u=a>0?Math.max(o,Math.ceil(f/a)+1):o,c=[];if(i!==void 0&&(u=Math.min(u,i)),u===1)c=[{p:.5,color:n(.5)}];else{let h=1/(u-1);c=Array.from({length:u},(p,m)=>{let b=m*h;return{p:b,color:n(b)}})}if(a>0){let h=c.reduce((p,m,b)=>{if(b===0)return 0;let M=ae(m.color,c[b-1].color,s);return Math.max(p,M)},0);for(;h>a;){h=0;for(let p=1;p<c.length&&c.length<i;p++){let m=c[p-1],b=c[p],M=(b.p+m.p)/2,R=n(M);h=Math.max(h,ae(R,m.color),ae(R,b.color)),c.splice(p,0,{p:M,color:n(M)}),p++}}}return c=c.map(h=>h.color),c}function fe(t,e,r={}){if(nt(t)){let[l,f]=[t,e];return fe(...l.rangeArgs.colors,{...l.rangeArgs.options,...f})}let{space:n,outputSpace:a,progression:s,premultiplied:o}=r;t=g(t),e=g(e),t=K(t),e=K(e);let i={colors:[t,e],options:r};if(n?n=d.get(n):n=d.registry[P.interpolationSpace]||t.space,a=a?d.get(a):n,t=y(t,n),e=y(e,n),t=X(t),e=X(e),n.coords.h&&n.coords.h.type==="angle"){let l=r.hue=r.hue||"shorter",f=[n,"h"],[u,c]=[$(t,f),$(e,f)];isNaN(u)&&!isNaN(c)?u=c:isNaN(c)&&!isNaN(u)&&(c=u),[u,c]=nn(l,[u,c]),T(t,f,u),T(e,f,c)}return o&&(t.coords=t.coords.map(l=>l*t.alpha),e.coords=e.coords.map(l=>l*e.alpha)),Object.assign(l=>{l=s?s(l):l;let f=t.coords.map((h,p)=>{let m=e.coords[p];return oe(h,m,l)}),u=oe(t.alpha,e.alpha,l),c={space:n,coords:f,alpha:u};return o&&(c.coords=c.coords.map(h=>h/u)),a!==n&&(c=y(c,a)),c},{rangeArgs:i})}function nt(t){return Y(t)==="function"&&!!t.rangeArgs}P.interpolationSpace="lab";function x0(t){t.defineFunction("mix",Er,{returns:"color"}),t.defineFunction("range",fe,{returns:"function<color>"}),t.defineFunction("steps",Ar,{returns:"array<color>"})}var v0=Object.freeze({__proto__:null,isRange:nt,mix:Er,range:fe,register:x0,steps:Ar}),kr=new d({id:"hsl",name:"HSL",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:ee,fromBase:t=>{let e=Math.max(...t),r=Math.min(...t),[n,a,s]=t,[o,i,l]=[NaN,0,(r+e)/2],f=e-r;if(f!==0){switch(i=l===0||l===1?0:(e-l)/Math.min(l,1-l),e){case n:o=(a-s)/f+(a<s?6:0);break;case a:o=(s-n)/f+2;break;case s:o=(n-a)/f+4}o=o*60}return i<0&&(o+=180,i=Math.abs(i)),o>=360&&(o-=360),[o,i*100,l*100]},toBase:t=>{let[e,r,n]=t;e=e%360,e<0&&(e+=360),r/=100,n/=100;function a(s){let o=(s+e/30)%12,i=r*Math.min(n,1-n);return n-i*Math.max(-1,Math.min(o-3,9-o,1))}return[a(0),a(8),a(4)]},formats:{hsl:{coords:["<number> | <angle>","<percentage>","<percentage>"]},hsla:{coords:["<number> | <angle>","<percentage>","<percentage>"],commas:!0,lastAlpha:!0}}}),Hr=new d({id:"hsv",name:"HSV",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},v:{range:[0,100],name:"Value"}},base:kr,fromBase(t){let[e,r,n]=t;r/=100,n/=100;let a=n+r*Math.min(n,1-n);return[e,a===0?0:200*(1-n/a),100*a]},toBase(t){let[e,r,n]=t;r/=100,n/=100;let a=n*(1-r/2);return[e,a===0||a===1?0:(n-a)/Math.min(a,1-a)*100,a*100]},formats:{color:{id:"--hsv",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}}),B0=new d({id:"hwb",name:"HWB",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},w:{range:[0,100],name:"Whiteness"},b:{range:[0,100],name:"Blackness"}},base:Hr,fromBase(t){let[e,r,n]=t;return[e,n*(100-r)/100,100-n]},toBase(t){let[e,r,n]=t;r/=100,n/=100;let a=r+n;if(a>=1){let i=r/a;return[e,0,i*100]}let s=1-n,o=s===0?0:1-r/s;return[e,o*100,s*100]},formats:{hwb:{coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}});const N0=[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],I0=[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]];var Tr=new N({id:"a98rgb-linear",cssId:"--a98-rgb-linear",name:"Linear Adobe® 98 RGB compatible",white:"D65",toXYZ_M:N0,fromXYZ_M:I0}),$0=new N({id:"a98rgb",cssId:"a98-rgb",name:"Adobe® 98 RGB compatible",base:Tr,toBase:t=>t.map(e=>Math.pow(Math.abs(e),563/256)*Math.sign(e)),fromBase:t=>t.map(e=>Math.pow(Math.abs(e),256/563)*Math.sign(e))});const z0=[[.7977666449006423,.13518129740053308,.0313477341283922],[.2880748288194013,.711835234241873,8993693872564e-17],[0,0,.8251046025104602]],P0=[[1.3457868816471583,-.25557208737979464,-.05110186497554526],[-.5446307051249019,1.5082477428451468,.02052744743642139],[0,0,1.2119675456389452]];var Or=new N({id:"prophoto-linear",cssId:"--prophoto-rgb-linear",name:"Linear ProPhoto",white:"D50",base:et,toXYZ_M:z0,fromXYZ_M:P0});const E0=1/512,A0=16/512;var k0=new N({id:"prophoto",cssId:"prophoto-rgb",name:"ProPhoto",base:Or,toBase(t){return t.map(e=>e<A0?e/16:e**1.8)},fromBase(t){return t.map(e=>e>=E0?e**(1/1.8):16*e)}}),H0=new d({id:"oklch",name:"Oklch",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:U,fromBase(t){let[e,r,n]=t,a;const s=2e-4;return Math.abs(r)<s&&Math.abs(n)<s?a=NaN:a=Math.atan2(n,r)*180/Math.PI,[e,Math.sqrt(r**2+n**2),k(a)]},toBase(t){let[e,r,n]=t,a,s;return isNaN(n)?(a=0,s=0):(a=r*Math.cos(n*Math.PI/180),s=r*Math.sin(n*Math.PI/180)),[e,a,s]},formats:{oklch:{coords:["<percentage> | <number>","<number> | <percentage>[0,1]","<number> | <angle>"]}}});let Yr=B.D65;const T0=216/24389,Dt=24389/27,[jt,Xt]=Ie({space:v,coords:Yr});var Dr=new d({id:"luv",name:"Luv",coords:{l:{refRange:[0,100],name:"Lightness"},u:{refRange:[-215,215]},v:{refRange:[-215,215]}},white:Yr,base:v,fromBase(t){let e=[S(t[0]),S(t[1]),S(t[2])],r=e[1],[n,a]=Ie({space:v,coords:e});if(!Number.isFinite(n)||!Number.isFinite(a))return[0,0,0];let s=r<=T0?Dt*r:116*Math.cbrt(r)-16;return[s,13*s*(n-jt),13*s*(a-Xt)]},toBase(t){let[e,r,n]=t;if(e===0||D(e))return[0,0,0];r=S(r),n=S(n);let a=r/(13*e)+jt,s=n/(13*e)+Xt,o=e<=8?e/Dt:Math.pow((e+16)/116,3);return[o*(9*a/(4*s)),o,o*((12-3*a-20*s)/(4*s))]},formats:{color:{id:"--luv",coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}}),at=new d({id:"lchuv",name:"LChuv",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,220],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:Dr,fromBase(t){let[e,r,n]=t,a;const s=.02;return Math.abs(r)<s&&Math.abs(n)<s?a=NaN:a=Math.atan2(n,r)*180/Math.PI,[e,Math.sqrt(r**2+n**2),k(a)]},toBase(t){let[e,r,n]=t;return r<0&&(r=0),isNaN(n)&&(n=0),[e,r*Math.cos(n*Math.PI/180),r*Math.sin(n*Math.PI/180)]},formats:{color:{id:"--lchuv",coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}});const O0=216/24389,Y0=24389/27,qt=x[0][0],Zt=x[0][1],Te=x[0][2],Gt=x[1][0],Jt=x[1][1],Oe=x[1][2],Ft=x[2][0],Wt=x[2][1],Ye=x[2][2];function W(t,e,r){const n=e/(Math.sin(r)-t*Math.cos(r));return n<0?1/0:n}function ve(t){const e=Math.pow(t+16,3)/1560896,r=e>O0?e:t/Y0,n=r*(284517*qt-94839*Te),a=r*(838422*Te+769860*Zt+731718*qt),s=r*(632260*Te-126452*Zt),o=r*(284517*Gt-94839*Oe),i=r*(838422*Oe+769860*Jt+731718*Gt),l=r*(632260*Oe-126452*Jt),f=r*(284517*Ft-94839*Ye),u=r*(838422*Ye+769860*Wt+731718*Ft),c=r*(632260*Ye-126452*Wt);return{r0s:n/s,r0i:a*t/s,r1s:n/(s+126452),r1i:(a-769860)*t/(s+126452),g0s:o/l,g0i:i*t/l,g1s:o/(l+126452),g1i:(i-769860)*t/(l+126452),b0s:f/c,b0i:u*t/c,b1s:f/(c+126452),b1i:(u-769860)*t/(c+126452)}}function Qt(t,e){const r=e/360*Math.PI*2,n=W(t.r0s,t.r0i,r),a=W(t.r1s,t.r1i,r),s=W(t.g0s,t.g0i,r),o=W(t.g1s,t.g1i,r),i=W(t.b0s,t.b0i,r),l=W(t.b1s,t.b1i,r);return Math.min(n,a,s,o,i,l)}var D0=new d({id:"hsluv",name:"HSLuv",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:at,gamutSpace:ee,fromBase(t){let[e,r,n]=[S(t[0]),S(t[1]),S(t[2])],a;if(e>99.9999999)a=0,e=100;else if(e<1e-8)a=0,e=0;else{let s=ve(e),o=Qt(s,n);a=r/o*100}return[n,a,e]},toBase(t){let[e,r,n]=[S(t[0]),S(t[1]),S(t[2])],a;if(n>99.9999999)n=100,a=0;else if(n<1e-8)n=0,a=0;else{let s=ve(n);a=Qt(s,e)/100*r}return[n,a,e]},formats:{color:{id:"--hsluv",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}});x[0][0];x[0][1];x[0][2];x[1][0];x[1][1];x[1][2];x[2][0];x[2][1];x[2][2];function Q(t,e){return Math.abs(e)/Math.sqrt(Math.pow(t,2)+1)}function Ut(t){let e=Q(t.r0s,t.r0i),r=Q(t.r1s,t.r1i),n=Q(t.g0s,t.g0i),a=Q(t.g1s,t.g1i),s=Q(t.b0s,t.b0i),o=Q(t.b1s,t.b1i);return Math.min(e,r,n,a,s,o)}var j0=new d({id:"hpluv",name:"HPLuv",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:at,gamutSpace:"self",fromBase(t){let[e,r,n]=[S(t[0]),S(t[1]),S(t[2])],a;if(e>99.9999999)a=0,e=100;else if(e<1e-8)a=0,e=0;else{let s=ve(e),o=Ut(s);a=r/o*100}return[n,a,e]},toBase(t){let[e,r,n]=[S(t[0]),S(t[1]),S(t[2])],a;if(n>99.9999999)n=100,a=0;else if(n<1e-8)n=0,a=0;else{let s=ve(n);a=Ut(s)/100*r}return[n,a,e]},formats:{color:{id:"--hpluv",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}});const Kt=203,Vt=2610/2**14,X0=2**14/2610,q0=2523/2**5,er=2**5/2523,tr=3424/2**12,rr=2413/2**7,nr=2392/2**7;var Z0=new N({id:"rec2100pq",cssId:"rec2100-pq",name:"REC.2100-PQ",base:Ne,toBase(t){return t.map(function(e){return(Math.max(e**er-tr,0)/(rr-nr*e**er))**X0*1e4/Kt})},fromBase(t){return t.map(function(e){let r=Math.max(e*Kt/1e4,0),n=tr+rr*r**Vt,a=1+nr*r**Vt;return(n/a)**q0})}});const ar=.17883277,sr=.28466892,or=.55991073,De=3.7743;var G0=new N({id:"rec2100hlg",cssId:"rec2100-hlg",name:"REC.2100-HLG",referred:"scene",base:Ne,toBase(t){return t.map(function(e){return e<=.5?e**2/3*De:(Math.exp((e-or)/ar)+sr)/12*De})},fromBase(t){return t.map(function(e){return e/=De,e<=1/12?Math.sqrt(3*e):ar*Math.log(12*e-sr)+or})}});const jr={};j.add("chromatic-adaptation-start",t=>{t.options.method&&(t.M=Xr(t.W1,t.W2,t.options.method))});j.add("chromatic-adaptation-end",t=>{t.M||(t.M=Xr(t.W1,t.W2,t.options.method))});function $e({id:t,toCone_M:e,fromCone_M:r}){jr[t]=arguments[0]}function Xr(t,e,r="Bradford"){let n=jr[r],[a,s,o]=C(n.toCone_M,t),[i,l,f]=C(n.toCone_M,e),u=[[i/a,0,0],[0,l/s,0],[0,0,f/o]],c=C(u,n.toCone_M);return C(n.fromCone_M,c)}$e({id:"von Kries",toCone_M:[[.40024,.7076,-.08081],[-.2263,1.16532,.0457],[0,0,.91822]],fromCone_M:[[1.8599363874558397,-1.1293816185800916,.21989740959619328],[.3611914362417676,.6388124632850422,-6370596838649899e-21],[0,0,1.0890636230968613]]});$e({id:"Bradford",toCone_M:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],fromCone_M:[[.9869929054667121,-.14705425642099013,.15996265166373122],[.4323052697233945,.5183602715367774,.049291228212855594],[-.00852866457517732,.04004282165408486,.96848669578755]]});$e({id:"CAT02",toCone_M:[[.7328,.4296,-.1624],[-.7036,1.6975,.0061],[.003,.0136,.9834]],fromCone_M:[[1.0961238208355142,-.27886900021828726,.18274517938277307],[.4543690419753592,.4735331543074117,.07209780371722911],[-.009627608738429355,-.00569803121611342,1.0153256399545427]]});$e({id:"CAT16",toCone_M:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],fromCone_M:[[1.862067855087233,-1.0112546305316845,.14918677544445172],[.3875265432361372,.6214474419314753,-.008973985167612521],[-.01584149884933386,-.03412293802851557,1.0499644368778496]]});Object.assign(B,{A:[1.0985,1,.35585],C:[.98074,1,1.18232],D55:[.95682,1,.92149],D75:[.94972,1,1.22638],E:[1,1,1],F2:[.99186,1,.67393],F7:[.95041,1,1.08747],F11:[1.00962,1,.6435]});B.ACES=[.32168/.33767,1,(1-.32168-.33767)/.33767];const J0=[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],F0=[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]];var qr=new N({id:"acescg",cssId:"--acescg",name:"ACEScg",coords:{r:{range:[0,65504],name:"Red"},g:{range:[0,65504],name:"Green"},b:{range:[0,65504],name:"Blue"}},referred:"scene",white:B.ACES,toXYZ_M:J0,fromXYZ_M:F0});const Ce=2**-16,je=-.35828683,_e=(Math.log2(65504)+9.72)/17.52;var W0=new N({id:"acescc",cssId:"--acescc",name:"ACEScc",coords:{r:{range:[je,_e],name:"Red"},g:{range:[je,_e],name:"Green"},b:{range:[je,_e],name:"Blue"}},referred:"scene",base:qr,toBase(t){const e=-.3013698630136986;return t.map(function(r){return r<=e?(2**(r*17.52-9.72)-Ce)*2:r<_e?2**(r*17.52-9.72):65504})},fromBase(t){return t.map(function(e){return e<=0?(Math.log2(Ce)+9.72)/17.52:e<Ce?(Math.log2(Ce+e*.5)+9.72)/17.52:(Math.log2(e)+9.72)/17.52})}}),ir=Object.freeze({__proto__:null,A98RGB:$0,A98RGB_Linear:Tr,ACEScc:W0,ACEScg:qr,CAM16_JMh:Hn,HCT:le,HPLuv:j0,HSL:kr,HSLuv:D0,HSV:Hr,HWB:B0,ICTCP:Ge,JzCzHz:Ze,Jzazbz:Mr,LCH:ie,LCHuv:at,Lab:z,Lab_D65:We,Luv:Dr,OKLCH:H0,OKLab:U,P3:$r,P3_Linear:Nr,ProPhoto:k0,ProPhoto_Linear:Or,REC_2020:Br,REC_2020_Linear:Ne,REC_2100_HLG:G0,REC_2100_PQ:Z0,XYZ_ABS_D65:tt,XYZ_D50:et,XYZ_D65:v,sRGB:ee,sRGB_Linear:Ir});class w{constructor(...e){let r;e.length===1&&(r=g(e[0]));let n,a,s;r?(n=r.space||r.spaceId,a=r.coords,s=r.alpha):[n,a,s]=e,Object.defineProperty(this,"space",{value:d.get(n),writable:!1,enumerable:!0,configurable:!0}),this.coords=a?a.slice():[0,0,0],this.alpha=s>1||s===void 0?1:s<0?0:s;for(let o=0;o<this.coords.length;o++)this.coords[o]==="NaN"&&(this.coords[o]=NaN);for(let o in this.space.coords)Object.defineProperty(this,o,{get:()=>this.get(o),set:i=>this.set(o,i)})}get spaceId(){return this.space.id}clone(){return new w(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...e){let r=Vn(this,...e);return r.color=new w(r.color),r}static get(e,...r){return e instanceof w?e:new w(e,...r)}static defineFunction(e,r,n=r){let{instance:a=!0,returns:s}=n,o=function(...i){let l=r(...i);if(s==="color")l=w.get(l);else if(s==="function<color>"){let f=l;l=function(...u){let c=f(...u);return w.get(c)},Object.assign(l,f)}else s==="array<color>"&&(l=l.map(f=>w.get(f)));return l};e in w||(w[e]=o),a&&(w.prototype[e]=function(...i){return o(this,...i)})}static defineFunctions(e){for(let r in e)w.defineFunction(r,e[r],e[r])}static extend(e){if(e.register)e.register(w);else for(let r in e)w.defineFunction(r,e[r])}}w.defineFunctions({get:$,getAll:ue,set:T,setAll:Ve,to:y,equals:e0,inGamut:G,toGamut:X,distance:br,toString:se});Object.assign(w,{util:Ur,hooks:j,WHITES:B,Space:d,spaces:d.registry,parse:gr,defaults:P});for(let t of Object.keys(ir))d.register(ir[t]);for(let t in d.registry)Qe(t,d.registry[t]);j.add("colorspace-init-end",t=>{Qe(t.id,t),t.aliases?.forEach(e=>{Qe(e,t)})});function Qe(t,e){let r=t.replace(/-/g,"_");Object.defineProperty(w.prototype,r,{get(){let n=this.getAll(t);return typeof Proxy>"u"?n:new Proxy(n,{has:(a,s)=>{try{return d.resolveCoord([e,s]),!0}catch{}return Reflect.has(a,s)},get:(a,s,o)=>{if(s&&typeof s!="symbol"&&!(s in a)){let{index:i}=d.resolveCoord([e,s]);if(i>=0)return a[i]}return Reflect.get(a,s,o)},set:(a,s,o,i)=>{if(s&&typeof s!="symbol"&&!(s in a)||s>=0){let{index:l}=d.resolveCoord([e,s]);if(l>=0)return a[l]=o,this.setAll(t,a),!0}return Reflect.set(a,s,o,i)}})},set(n){this.setAll(t,n)},configurable:!0,enumerable:!0})}w.extend(V);w.extend({deltaE:ae});Object.assign(w,{deltaEMethods:V});w.extend(R0);w.extend({contrast:y0});w.extend(_0);w.extend(r0);w.extend(v0);w.extend(Le);exports.Color=w;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
"use strict";const g=require("./color-palettes-DhNHcib8.cjs"),M=require("./extrapolate-color-C0n1UDs-.cjs"),v=t=>t?.map(a=>({color:a.color,value:a.val}))??[],V=t=>t?.map(a=>({color:a.color,val:a.value}))??[],I=(t,a,p)=>{t=typeof t=="string"?Number.parseInt(t,10):t,t=typeof t=="number"?Math.max(Math.min(t,9),3):5;let i=Array.isArray(p)?p:[];const l=Math.min(...i.map(o=>o?.value??1/0)),r=Math.max(...i.map(o=>o?.value??-1/0));let u=!1;const y=typeof l=="number"&&typeof r=="number"&&l!==1/0&&r!==-1/0?r-l:0;if(i.length>t)u=l!==1/0&&r!==-1/0,i=i.slice(0,t);else if(i.length<t)for(;i.length<t;)i.push({});let n=[];const h=g.getColorMaps();if(Object.keys(h).includes(a??""))n=h[a]?.[`colors${t}`];else if(a==="manual"){if(n=i.map(o=>o.color).filter(o=>o!==void 0),n.length<t)for(;n.length<t;)n.push(M.extrapolateNewColor(n))}else n=h.PuBu?.[`colors${t}`];if(n?.forEach((o,c)=>{i[c].color=o}),i.filter(o=>o.value===void 0)?.length>0){const o=l===1/0?0:l,c=y/(t-1)||100;for(let e=0;e<t;e++)i[e].value=Number((o+e*c).toFixed(10))}if(u){const o=l===1/0?0:l,c=y/(t-1)||100;for(let e=0;e<t;e++)i[e].value=Number((o+e*c).toFixed(10))}return i};exports.calculateManualRanges=I;exports.toRangesWithVal=V;exports.toRangesWithValue=v;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./helpers-9I0oLoUB.cjs"),r=({slots:e})=>{if(Array.isArray(e)&&e?.length>0)return e?.find(t=>t?.name==="legend")?.content?.length>0||e?.find(t=>t?.name==="measure")?.content?.length>1},o=({slots:e})=>{if(Array.isArray(e)&&e?.length>0)return e?.find(t=>t?.name==="legend")?.content?.length===0&&e?.find(t=>t?.name==="measure")?.content?.length<=1},i=[{key:"general",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",default:"grouped",enum:["grouped","stacked","100"]},visibleIf:r},{type:"divider",visibleIf:r},{key:"display.title",control:{type:"switch",default:!0}},{key:"display.legend",control:{type:"switch",default:!0},visibleIf:r},{key:"display.modeOption",control:{type:"switch",default:!1},visibleIf:r},{key:"bars.label",control:{type:"picker",default:"none",enum:["none","absolute","percentage","percentageLegend","percentageCategory","percentageMax"]}},{key:"categories.colored",control:{type:"switch",default:!1},visibleIf:o},{key:"bars.roundedCorners",control:{type:"slider",default:({theme:e})=>e?.itemSpecific?.rounding,min:0,max:20,step:1,extraLabel:({options:e,theme:t})=>{if(typeof t?.itemSpecific?.rounding=="number")return typeof e?.bars?.roundedCorners!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:t})=>!(typeof t?.itemSpecific?.rounding!="number"||typeof e?.bars?.roundedCorners!="number"),extraLabelClickAction:({options:e})=>{const t={...e};return delete t?.bars?.roundedCorners,{value:null,options:t}}}},{key:"color",control:{type:"color-picker",default:({theme:e})=>n.getThemeMainColor(e),extraLabel:({options:e,theme:t})=>n.getThemeMainColorResetLabel(e,t,"color"),extraLabelHasClickAction:({options:e,theme:t})=>n.getThemeMainColorExtraLabelHasClickAction(e,t,"color"),extraLabelClickAction:({options:e,theme:t})=>n.getThemeMainColorExtraLabelClickAction(e,t,"color")},visibleIf:o}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"topRight",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]}}],visibleIf:r}];exports.default=i;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./helpers-9I0oLoUB.cjs"),o=()=>[{color:"#b30000",value:-1/0,isNegativeInfinityRange:!0},{color:"#ff0000",value:0},{color:"#ffa500",value:33.34},{color:"#ffff00",value:66.67},{color:"#008000",value:100}],i=[{key:"general",type:"group",open:!0,children:[{key:"display.label",control:{type:"switch",label:"Label",default:!0}},{key:"mode",control:{type:"picker",label:"Display",default:"normal",enum:["normal","percentage","difference"]}},{key:"manualValues.target",control:{type:"number-field",label:"Manual target",default:100,min:0,step:1},visibleIf:({slots:e})=>!Array.isArray(e)||!(e?.find(l=>l?.name==="target")?.content?.length>0)},{key:"manualValues.conditionalSwitch",control:{type:"switch",label:"Conditional color",default:!1,negativeInfinityValue:!0,calculateValue:({options:e})=>e?.manualValues?.conditional?.length>0,toOptions:({options:e,value:l})=>{if(!l){const t={...e};return delete t?.manualValues?.conditional,t}return{...e,manualValues:{...e?.manualValues,conditional:e?.manualValues?.conditional??o()}}}}},{key:"manualValues.conditional",control:{type:"color-range",editRangeSize:!0,minimumRangeSize:2,percentage:!0,negativeInfinityValue:!0,noAlphaChannel:!0,label:"Color ranges",hideLabel:!0,default:()=>o(),parseValue:e=>e?.map(l=>({color:l?.color,value:l?.value??l?.val})),toValue:e=>{const l=e?.map(n=>({color:n?.color,val:n?.value}));return l[0].isNegativeInfinityRange=!0,l}},visibleIf:({options:e})=>e?.manualValues?.conditional?.length>0},{key:"manualValues.asBackgroundColor",control:{type:"switch",label:"Use as background color",default:!0},visibleIf:({options:e})=>e?.manualValues?.conditional?.length>0},{key:"color",control:{type:"color-picker",label:"Text color",default:({theme:e})=>a.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>a.getThemeMainColorResetLabel(e,l,"color"),extraLabelHasClickAction:({options:e,theme:l})=>a.getThemeMainColorExtraLabelHasClickAction(e,l,"color"),extraLabelClickAction:({options:e,theme:l})=>a.getThemeMainColorExtraLabelClickAction(e,l,"color")},visibleIf:({options:e})=>e?.manualValues?.conditional!==!0}]},{key:"alignment",type:"group",open:!0,children:[{key:"alignment.vertical",control:{type:"action-button-group",label:"Vertical",default:["middle"],values:{top:{iconName:"alignTop",label:"align top"},middle:{iconName:"alignMiddle",label:"align middle"},bottom:{iconName:"alignBottom",label:"align bottom"}},selects:"single"}},{key:"alignment.horizontal",control:{type:"action-button-group",label:"Horizontal",default:["center"],values:{left:{iconName:"alignLeft",label:"align left"},center:{iconName:"alignCenter",label:"align center"},right:{iconName:"alignRight",label:"align right"}},selects:"single"}}]}];exports.default=i;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=[{key:"general",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",default:"donut",enum:["donut","pie"]}},{key:"slices.half",control:{type:"picker",default:"full",enum:["full","half"],parseValue:e=>e?"half":"full",toValue:e=>e==="half"}},{type:"divider"},{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0,calculateValue:({options:e})=>e?.display?.legend!==!1||e?.display?.categoryLabels===!0,toOptions:({options:e,value:t})=>({...e,display:{...e.display,legend:t,categoryLabels:!1}})}},{key:"display.categoryLabels",control:{type:"radio-button-group",enum:["list","labels"],parseValue:e=>e?"labels":"list",toOptions:({options:e,value:t})=>({...e,display:{...e.display,categoryLabels:t==="labels",legend:t!=="labels"}})},visibleIf:({options:e})=>e?.display?.legend!==!1||e?.display?.categoryLabels===!0}]},{key:"slices",type:"group",open:!0,children:[{key:"sort.by",control:{type:"picker",default:"measure",enum:["measure","category"]}},{key:"display.values",control:{type:"picker",default:"none",enum:["none","absolute","percentage"]}},{key:"slices.width",control:{type:"slider",default:.35,min:.05,max:.9,step:.01}},{key:"slices.maxNumber",control:{type:"number-field",default:12,min:0,max:50,step:1}},{key:"slices.minPercentage",control:{type:"number-field",default:3,min:0,max:100,step:1}},{key:"slices.roundedCorners",control:{type:"slider",default:8,min:0,max:24,step:1,extraLabel:({options:e,theme:t})=>{if(typeof t?.itemSpecific?.rounding=="number")return typeof e?.slices?.roundedCorners!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:t})=>!(typeof t?.itemSpecific?.rounding!="number"||typeof e?.slices?.roundedCorners!="number"),extraLabelClickAction:({options:e})=>{const t={...e};return t?.slices?.roundedCorners!==void 0&&delete t.slices.roundedCorners,{value:null,options:t}}}},{key:"slices.padding",control:{type:"slider",default:5,min:0,max:20,step:1,extraLabel:({options:e,theme:t})=>{if(typeof t?.itemSpecific?.padding=="number")return typeof e?.slices?.padding!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:t})=>!(typeof t?.itemSpecific?.padding!="number"||typeof e?.slices?.padding!="number"),extraLabelClickAction:({options:e})=>{const t={...e};return t?.slices?.padding!==void 0&&delete t.slices.padding,{value:null,options:t}}}}]}];exports.default=l;
|