@esri/calcite-components 3.0.0-next.21 → 3.0.0-next.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/{BMSID4CH.js → 24UHJGQY.js} +2 -2
- package/dist/calcite/{GEAJYYF5.js → 266CSZYJ.js} +2 -2
- package/dist/calcite/{DVFDTXWY.js → 2C3TFTOL.js} +8 -8
- package/dist/calcite/{GTKJFRYE.js → 2LDYXRQY.js} +1 -1
- package/dist/calcite/{VHD26DUJ.js → 2MBQ2YKO.js} +2 -2
- package/dist/calcite/{E3YLNMLV.js → 2NNA6YUP.js} +2 -2
- package/dist/calcite/{GOOI5T5E.js → 2ONKE32A.js} +2 -2
- package/dist/calcite/{NS4OOZNZ.js → 2RABALBG.js} +8 -8
- package/dist/calcite/{XJ5VFDAX.js → 2U6GYQP3.js} +1 -1
- package/dist/calcite/{YCX5S2BH.js → 366D77BP.js} +11 -11
- package/dist/calcite/{QBYQSY6D.js → 3QEWF6Z6.js} +9 -9
- package/dist/calcite/{QWI7TXTM.js → 3RBPGCVX.js} +2 -2
- package/dist/calcite/{ZWXXB5UP.js → 3W7XTPBR.js} +2 -2
- package/dist/calcite/{6NYCRFR3.js → 3WA6GQ4O.js} +2 -2
- package/dist/calcite/{PQE6VSH4.js → 3WFERHTQ.js} +8 -8
- package/dist/calcite/{QSHXWZGM.js → 4CBQYMY5.js} +8 -8
- package/dist/calcite/{64DK2BGV.js → 4GIYCOSQ.js} +2 -2
- package/dist/calcite/{O3JUF57A.js → 4HHIOETO.js} +2 -2
- package/dist/calcite/{3QWWUMGL.js → 4T3IGX4J.js} +9 -9
- package/dist/calcite/{VRHZ7HD5.js → 4W65ZUSP.js} +2 -2
- package/dist/calcite/{VFVMMHKA.js → 56KHTJS7.js} +2 -2
- package/dist/calcite/{6ZBYJJJC.js → 5L7RR475.js} +7 -7
- package/dist/calcite/{LERKT2LE.js → 5N4TBNMO.js} +2 -2
- package/dist/calcite/{IPU5ZU5L.js → 5P2LZ6GN.js} +7 -7
- package/dist/calcite/{V3AJQ36A.js → 5P6NLT52.js} +2 -2
- package/dist/calcite/{V4RHCMLP.js → 5PEDX5AY.js} +2 -2
- package/dist/calcite/{S2NFEAI2.js → 5PPS6LWR.js} +10 -10
- package/dist/calcite/{H7XXUZA2.js → 5RFJ6L6D.js} +10 -10
- package/dist/calcite/{2AOZZPWZ.js → 5UJE7TFX.js} +7 -7
- package/dist/calcite/{SMXUB24Y.js → 5VDTBEDM.js} +9 -9
- package/dist/calcite/{Y7Q2ZIKY.js → 66Q7MZ2Z.js} +10 -10
- package/dist/calcite/{57MM6QXN.js → 6DKDQGVF.js} +7 -7
- package/dist/calcite/{HPLOPRIA.js → 6GY3QHZU.js} +10 -10
- package/dist/calcite/{QKQMO2RP.js → 6HAOWBHC.js} +2 -2
- package/dist/calcite/{WRSV4HC4.js → 6LZ2UIWE.js} +12 -12
- package/dist/calcite/{J637JK4P.js → 6QF3MFWR.js} +10 -10
- package/dist/calcite/{2ODPQCOZ.js → 6U5ISBAI.js} +1 -1
- package/dist/calcite/{277ULXFC.js → 76HT6UAG.js} +8 -8
- package/dist/calcite/{MYAS72BO.js → 76WI7PIO.js} +8 -8
- package/dist/calcite/{GPDVRGZE.js → 7BHGTJGD.js} +7 -7
- package/dist/calcite/{2QNKKKYS.js → 7MLCQPEK.js} +2 -2
- package/dist/calcite/{B3E3EGRZ.js → 7QJYM3Y3.js} +2 -2
- package/dist/calcite/{Y4GVPC65.js → AC6N6LIO.js} +2 -2
- package/dist/calcite/{SBT6BKDC.js → AMANJSYP.js} +2 -2
- package/dist/calcite/{K5IXP7XO.js → BBPZYGUE.js} +2 -2
- package/dist/calcite/{DNXDVBL6.js → BGJW7KU3.js} +2 -2
- package/dist/calcite/{QJSYLVO6.js → BIFFSQRP.js} +2 -2
- package/dist/calcite/{XBUF6KQ4.js → BJ3LKVTY.js} +8 -8
- package/dist/calcite/{BYFU6J7Y.js → BJXGXMRI.js} +2 -2
- package/dist/calcite/{M73GRECF.js → BK7OIDDK.js} +8 -8
- package/dist/calcite/{FNFWNKPY.js → BMEAOPKE.js} +2 -2
- package/dist/calcite/{5M74BHO6.js → BMUTLTZO.js} +9 -9
- package/dist/calcite/{SGBXNXJT.js → BNUD3HPX.js} +2 -2
- package/dist/calcite/{6SVIFRZN.js → BQEGCEK5.js} +7 -7
- package/dist/calcite/{3U4XL2C4.js → BQMIGQSV.js} +21 -21
- package/dist/calcite/{WPZCZYE4.js → C5YAAJW6.js} +1 -1
- package/dist/calcite/{ZB6BFOK7.js → CJZSVOSR.js} +2 -2
- package/dist/calcite/{5ZBQ7GDS.js → CKAWSY2K.js} +2 -2
- package/dist/calcite/{FOXYV4AH.js → CMJYSQBY.js} +8 -8
- package/dist/calcite/{5OZRVUED.js → CQLGMVT6.js} +16 -16
- package/dist/calcite/{OJ3LSWH4.js → CQYE2KJX.js} +7 -7
- package/dist/calcite/{CHZGLVQA.js → CUP2AVPS.js} +2 -2
- package/dist/calcite/{4TO7XBO6.js → D7OUAG3W.js} +11 -11
- package/dist/calcite/{VT7PQVBM.js → DEURKSJT.js} +2 -2
- package/dist/calcite/{J4QLI5FE.js → DLRTJGHA.js} +2 -2
- package/dist/calcite/{DCTP5KNQ.js → DLVDPI6C.js} +10 -10
- package/dist/calcite/{O2CWCBU2.js → DVR62K77.js} +2 -2
- package/dist/calcite/{S5LVAJ45.js → E3TRBIQN.js} +7 -7
- package/dist/calcite/{DNIAJJSF.js → EISQGSOR.js} +2 -2
- package/dist/calcite/{ZMAFXZ2S.js → EKT7D764.js} +2 -2
- package/dist/calcite/{JDIXK7FL.js → EKVZQILU.js} +2 -2
- package/dist/calcite/{5X5L3UJJ.js → EMQYBB52.js} +2 -2
- package/dist/calcite/{76Y6M63P.js → EVAKUM5A.js} +1 -1
- package/dist/calcite/{FDBTMOJ7.js → F52WZZLB.js} +60 -48
- package/dist/calcite/{VW6HK2JZ.js → FFA3O6OV.js} +10 -10
- package/dist/calcite/{AUIO3SKT.js → FIMKO63F.js} +2 -2
- package/dist/calcite/{MU3QJI4G.js → FJCKAC7Y.js} +1 -1
- package/dist/calcite/{TC7BEYNW.js → FJRNODZM.js} +12 -12
- package/dist/calcite/{P4LI7MYL.js → FQBXOIG5.js} +2 -2
- package/dist/calcite/{JA2LSPNQ.js → FYQYJXUR.js} +12 -12
- package/dist/calcite/{PRDGGOPF.js → G72CWGFW.js} +2 -2
- package/dist/calcite/{TI7RXUEF.js → GHSADE7A.js} +2 -2
- package/dist/calcite/{6TG724PB.js → GJO6SYGH.js} +7 -7
- package/dist/calcite/{HT4P6FZL.js → GPHQYRPH.js} +10 -10
- package/dist/calcite/{TNYCLTZF.js → GPIJ4QO2.js} +1 -1
- package/dist/calcite/{2WHXMO6D.js → GSTEHFWM.js} +8 -8
- package/dist/calcite/{MMUIAERF.js → GTNNXUV3.js} +8 -8
- package/dist/calcite/{OET42IOF.js → GVA55PFG.js} +1 -1
- package/dist/calcite/{HLHW22S6.js → GWNWG7SD.js} +2 -2
- package/dist/calcite/{ASTW7DLC.js → GYBLPRM2.js} +29 -29
- package/dist/calcite/{2SRYVZ4T.js → H5EAIYUA.js} +14 -14
- package/dist/calcite/{WX5OUX2F.js → HFL5QFJH.js} +11 -11
- package/dist/calcite/{VYRF75V5.js → HMVHOA6B.js} +2 -2
- package/dist/calcite/{GJYDDB7O.js → HNW3OLD5.js} +18 -18
- package/dist/calcite/{4EGNLD7U.js → HSFKI5J6.js} +7 -7
- package/dist/calcite/{NFKRRKOY.js → I276HATE.js} +2 -2
- package/dist/calcite/{AE7G7FES.js → I4IHFVAI.js} +2 -2
- package/dist/calcite/{OFBDFCVM.js → I4XY6K3H.js} +7 -7
- package/dist/calcite/{YE3HP36O.js → IAZTTYMN.js} +8 -8
- package/dist/calcite/{JQ63WOJ7.js → IH62GKXK.js} +10 -10
- package/dist/calcite/{6GBJ4ARU.js → INTTBI2G.js} +8 -8
- package/dist/calcite/{N32E3UHH.js → ISMZR7LE.js} +2 -2
- package/dist/calcite/{OECVQHQR.js → IW5U7CDR.js} +9 -9
- package/dist/calcite/{3IL5ODH3.js → J7ES76D4.js} +1 -1
- package/dist/calcite/{QYTHPPVW.js → JAFT5Z6H.js} +9 -9
- package/dist/calcite/{PJMDOCL3.js → JCRIPN3I.js} +13 -13
- package/dist/calcite/{6M2MX27J.js → JHADTO7B.js} +13 -13
- package/dist/calcite/{V3DHR4H5.js → JLHPXX3F.js} +15 -15
- package/dist/calcite/{V7GUM56U.js → JM5AZIVZ.js} +13 -13
- package/dist/calcite/{Q7S7GJ7I.js → JNHF2EVV.js} +2 -2
- package/dist/calcite/{MNSPJTI6.js → JX6A7O6P.js} +10 -10
- package/dist/calcite/{7BB2RNB7.js → JZ2LJ5UR.js} +2 -2
- package/dist/calcite/{455DDR6Q.js → K5QQB6EB.js} +11 -11
- package/dist/calcite/{SFHVY3FG.js → KAP77V2S.js} +2 -2
- package/dist/calcite/{IINB6LOE.js → KCKOVEVB.js} +12 -12
- package/dist/calcite/{OMCQIHCZ.js → KF26WBTL.js} +2 -2
- package/dist/calcite/{LKCFCHDW.js → KIUN7ELA.js} +2 -2
- package/dist/calcite/{AXLR6GXC.js → KQRASMIK.js} +2 -2
- package/dist/calcite/{AD4LMMBD.js → L4ZHOUZW.js} +17 -17
- package/dist/calcite/{FJ6XC6FM.js → L6EEXXVB.js} +8 -8
- package/dist/calcite/{MSJOBGYB.js → LCH7DRUY.js} +2 -2
- package/dist/calcite/{PJ2WXXXB.js → LDAOTI73.js} +9 -9
- package/dist/calcite/{FIF2DKMK.js → LFHOUTTE.js} +2 -2
- package/dist/calcite/{T4XGB6WE.js → LHVPKWAU.js} +7 -7
- package/dist/calcite/{D3GMHPB4.js → LIJF2GH5.js} +10 -10
- package/dist/calcite/{UUFVOYFU.js → LMTKF4TF.js} +10 -10
- package/dist/calcite/{22EXZIPI.js → LS4KGNLS.js} +2 -2
- package/dist/calcite/{FQ55CXG4.js → LWPIWJ2O.js} +2 -2
- package/dist/calcite/{HHP6WFN4.js → LWWZXM6F.js} +8 -8
- package/dist/calcite/{FIS2NQW5.js → MAJMOFVC.js} +13 -13
- package/dist/calcite/{QNECKG7O.js → MMNTKXIL.js} +2 -2
- package/dist/calcite/{5NJIC7SE.js → MUYBP2YM.js} +2 -2
- package/dist/calcite/{Z3WBGSDJ.js → MWHEIU2A.js} +10 -10
- package/dist/calcite/{5PQM6QSU.js → MWRIGXE7.js} +1 -1
- package/dist/calcite/{4H5PD2T7.js → MXJ3PE5E.js} +15 -15
- package/dist/calcite/{MJFKJ6CY.js → MZCZ6U6W.js} +12 -12
- package/dist/calcite/{AVRU25LR.js → N6HIXVKF.js} +1 -1
- package/dist/calcite/{3S37ZXVX.js → NHB5TZX2.js} +15 -15
- package/dist/calcite/{4ROAOFHC.js → NKRPQYCQ.js} +2 -2
- package/dist/calcite/{WP2LL5SD.js → NPV6XGSE.js} +2 -2
- package/dist/calcite/{R3UHX6BJ.js → NQP2WNH6.js} +2 -2
- package/dist/calcite/{HHMCS63R.js → NZCF5UIC.js} +2 -2
- package/dist/calcite/{D4V7CSBI.js → OA55T7QR.js} +2 -2
- package/dist/calcite/{43CPEYQK.js → ODO4C3HF.js} +9 -9
- package/dist/calcite/{PHVHU3CX.js → OER7HWKE.js} +8 -8
- package/dist/calcite/{JINPJQ35.js → OH5VT63O.js} +2 -2
- package/dist/calcite/{DVN5CFHJ.js → OHAXHGZE.js} +7 -7
- package/dist/calcite/{ZSRRC5GT.js → OIE622QI.js} +1 -1
- package/dist/calcite/{7OUAOLNT.js → OKWOZJLB.js} +9 -9
- package/dist/calcite/{PP6EGX5M.js → ONRUNLOE.js} +2 -2
- package/dist/calcite/{RUIATQPJ.js → OSD4GTZY.js} +13 -13
- package/dist/calcite/{QJ5FDSYF.js → P4M45WEE.js} +1 -1
- package/dist/calcite/{4L6MDDWP.js → PJYRTQBN.js} +11 -11
- package/dist/calcite/{BIC3NBSP.js → PKXLFEU6.js} +2 -2
- package/dist/calcite/{ND4PQ27A.js → PLM3XFQZ.js} +7 -7
- package/dist/calcite/{CHOZ4QD7.js → PQUTU6E5.js} +7 -7
- package/dist/calcite/{MVOJXWOC.js → PT64LBPF.js} +2 -2
- package/dist/calcite/{B36YEJWR.js → PW374HVU.js} +2 -2
- package/dist/calcite/{I4J3M36L.js → PYPVPZXK.js} +10 -10
- package/dist/calcite/{ZFXLUZ74.js → Q2PCN6VR.js} +9 -9
- package/dist/calcite/{SI3ETC3D.js → Q3XOQCCH.js} +16 -16
- package/dist/calcite/{OF3L2U5X.js → QDTYI3ND.js} +7 -7
- package/dist/calcite/{CEGH6UIB.js → QJOP6RBO.js} +14 -14
- package/dist/calcite/{ORLXA6XZ.js → QP6OOHX3.js} +2 -2
- package/dist/calcite/{IDL4AA5V.js → QPERLN4Q.js} +10 -10
- package/dist/calcite/{ABQLYIFQ.js → QQ5KBFIW.js} +2 -2
- package/dist/calcite/{5H5I5VMF.js → QWDIFV5E.js} +2 -2
- package/dist/calcite/{4LZZ4BCC.js → R6FT4SEV.js} +2 -2
- package/dist/calcite/{I4DPD252.js → REFQN3B6.js} +10 -10
- package/dist/calcite/{52RJTOPX.js → RI3P6LDT.js} +1 -1
- package/dist/calcite/{PIZTDIGU.js → RIND63EQ.js} +2 -2
- package/dist/calcite/{TMKHJKXR.js → RKFKPUWH.js} +7 -7
- package/dist/calcite/{DYTTQ5X6.js → RPQCEHXL.js} +7 -7
- package/dist/calcite/{IN47GQOM.js → RUFASLHW.js} +9 -9
- package/dist/calcite/{CJSLTEBN.js → S7OJP54N.js} +2 -2
- package/dist/calcite/{XOU2CM7X.js → SCG2MB2V.js} +2 -2
- package/dist/calcite/{N37L34I4.js → SIMMN2NT.js} +7 -7
- package/dist/calcite/{YIPHYEKS.js → SXXLNHST.js} +8 -8
- package/dist/calcite/{R2V3BXPO.js → T22OMOYL.js} +8 -8
- package/dist/calcite/{5IRT4FGE.js → T2J2VFXM.js} +2 -2
- package/dist/calcite/{OVCNP5SQ.js → TIWIA3MH.js} +2 -2
- package/dist/calcite/{AGHLHOG6.js → U6AA7YA7.js} +8 -8
- package/dist/calcite/{XNHN4VCK.js → UKNRAEU5.js} +2 -2
- package/dist/calcite/{GFQ3BMJS.js → UM3JX247.js} +11 -11
- package/dist/calcite/{ABFUFIMB.js → VGGT3YKZ.js} +2 -2
- package/dist/calcite/{XMI65KU3.js → VJGIXCF5.js} +8 -8
- package/dist/calcite/{BXKB4ENX.js → VPNZGJNJ.js} +1 -1
- package/dist/calcite/{GMN3RSFV.js → VRHLKQZM.js} +9 -9
- package/dist/calcite/{75LH4454.js → VVUWOU7B.js} +2 -2
- package/dist/calcite/{ERO6LLWU.js → VWNQS2RS.js} +9 -9
- package/dist/calcite/{SACLZBJ3.js → VYA5IJGU.js} +7 -7
- package/dist/calcite/{LN3PWVZO.js → VZQ5MJZP.js} +2 -2
- package/dist/calcite/{335AW3HO.js → W6YVXZ7Z.js} +2 -2
- package/dist/calcite/{7ZJMB5PL.js → WEEZTEFE.js} +2 -2
- package/dist/calcite/{5TBRATUT.js → WK7P3UIZ.js} +2 -2
- package/dist/calcite/{YUAPZOE5.js → WOAUIDVY.js} +10 -10
- package/dist/calcite/{Z25QLLZH.js → WR3U6ABB.js} +10 -10
- package/dist/calcite/{XQDTJQA2.js → WV4GMTUT.js} +11 -11
- package/dist/calcite/{CYCWS2QS.js → X7FNK4SA.js} +1 -1
- package/dist/calcite/{EOFETL7T.js → XG6JHCSZ.js} +7 -7
- package/dist/calcite/XGH4UL7F.js +454 -0
- package/dist/calcite/{FSSFTA2A.js → XJHV3JRB.js} +2 -2
- package/dist/calcite/{HMO6BPQH.js → XM2VN6WF.js} +1 -1
- package/dist/calcite/{AZBWEQGL.js → XNXK7XT3.js} +1 -1
- package/dist/calcite/{67IL2ZZB.js → XPVFLMX3.js} +9 -9
- package/dist/calcite/{BB3IT5BG.js → XY5C6CRP.js} +2 -2
- package/dist/calcite/{J5IRSEXQ.js → XZMHPM4R.js} +7 -7
- package/dist/calcite/{IECZA2XT.js → YC5YA4NI.js} +1 -1
- package/dist/calcite/{ZG6CQJWF.js → YT4W5SKN.js} +1 -1
- package/dist/calcite/{BAVUSYRU.js → YTLTKTXK.js} +9 -9
- package/dist/calcite/{PEIJ6742.js → YWGWIRQY.js} +2 -2
- package/dist/calcite/{JVARADD7.js → Z2FRF4R3.js} +2 -2
- package/dist/calcite/{2QT7J7GM.js → Z3VH4VF4.js} +9 -9
- package/dist/calcite/{5L2SIX5C.js → ZBFN6DFV.js} +8 -8
- package/dist/calcite/{QKD3HZJH.js → ZNZC5KUO.js} +2 -2
- package/dist/calcite/{SHPU4IYL.js → ZZFJUMMN.js} +2 -2
- package/dist/calcite/calcite.css +14 -14
- package/dist/calcite/calcite.esm.js +17 -17
- package/dist/chunks/ExpandToggle.js +1 -1
- package/dist/chunks/FloatingArrow.js +1 -1
- package/dist/chunks/Heading.js +1 -1
- package/dist/chunks/Validation.js +1 -1
- package/dist/chunks/array.js +1 -1
- package/dist/chunks/component.js +1 -1
- package/dist/chunks/core.js +1 -1
- package/dist/chunks/date.js +1 -1
- package/dist/chunks/dom.js +1 -1
- package/dist/chunks/filter.js +1 -1
- package/dist/chunks/floating-ui.js +1 -1
- package/dist/chunks/focusTrapComponent.js +1 -1
- package/dist/chunks/form.js +1 -1
- package/dist/chunks/global.js +1 -1
- package/dist/chunks/guid.js +1 -1
- package/dist/chunks/input.js +1 -1
- package/dist/chunks/interactive.js +1 -1
- package/dist/chunks/key.js +1 -1
- package/dist/chunks/label.js +1 -1
- package/dist/chunks/loadable.js +1 -1
- package/dist/chunks/locale.js +1 -1
- package/dist/chunks/logger.js +1 -1
- package/dist/chunks/math.js +1 -1
- package/dist/chunks/observers.js +1 -1
- package/dist/chunks/openCloseComponent.js +1 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/resources2.js +1 -1
- package/dist/chunks/resources3.js +3 -2
- package/dist/chunks/resources4.js +1 -1
- package/dist/chunks/resources5.js +1 -1
- package/dist/chunks/resources6.js +1 -1
- package/dist/chunks/resources7.js +1 -1
- package/dist/chunks/responsive.js +1 -1
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/sortableComponent.js +1 -1
- package/dist/chunks/time.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/utils3.js +1 -1
- package/dist/chunks/utils4.js +1 -1
- package/dist/components/calcite-accordion/customElement.js +6 -6
- package/dist/components/calcite-accordion-item/customElement.js +6 -6
- package/dist/components/calcite-action/customElement.js +6 -6
- package/dist/components/calcite-action-bar/customElement.js +6 -6
- package/dist/components/calcite-action-group/customElement.js +6 -6
- package/dist/components/calcite-action-menu/customElement.js +6 -6
- package/dist/components/calcite-action-pad/customElement.js +6 -6
- package/dist/components/calcite-alert/customElement.js +6 -6
- package/dist/components/calcite-avatar/customElement.js +6 -6
- package/dist/components/calcite-block/customElement.d.ts +0 -2
- package/dist/components/calcite-block/customElement.js +6 -6
- package/dist/components/calcite-block-section/customElement.js +6 -6
- package/dist/components/calcite-button/customElement.js +6 -6
- package/dist/components/calcite-card/customElement.js +6 -6
- package/dist/components/calcite-card-group/customElement.js +6 -6
- package/dist/components/calcite-carousel/customElement.js +6 -6
- package/dist/components/calcite-carousel-item/customElement.js +6 -6
- package/dist/components/calcite-checkbox/customElement.js +6 -6
- package/dist/components/calcite-chip/customElement.js +6 -6
- package/dist/components/calcite-chip-group/customElement.js +6 -6
- package/dist/components/calcite-color-picker/customElement.js +6 -6
- package/dist/components/calcite-color-picker-hex-input/customElement.js +6 -6
- package/dist/components/calcite-color-picker-swatch/customElement.js +6 -6
- package/dist/components/calcite-combobox/customElement.js +6 -6
- package/dist/components/calcite-combobox-item/customElement.js +6 -6
- package/dist/components/calcite-combobox-item-group/customElement.js +6 -6
- package/dist/components/calcite-date-picker/customElement.js +6 -6
- package/dist/components/calcite-date-picker-day/customElement.js +6 -6
- package/dist/components/calcite-date-picker-month/customElement.js +6 -6
- package/dist/components/calcite-date-picker-month-header/customElement.js +6 -6
- package/dist/components/calcite-dialog/customElement.js +8 -8
- package/dist/components/calcite-dropdown/customElement.js +6 -6
- package/dist/components/calcite-dropdown-group/customElement.js +6 -6
- package/dist/components/calcite-dropdown-item/customElement.js +6 -6
- package/dist/components/calcite-fab/customElement.js +6 -6
- package/dist/components/calcite-filter/customElement.js +6 -6
- package/dist/components/calcite-flow/customElement.js +6 -6
- package/dist/components/calcite-flow-item/customElement.js +6 -6
- package/dist/components/calcite-graph/customElement.js +6 -6
- package/dist/components/calcite-handle/customElement.js +6 -6
- package/dist/components/calcite-icon/customElement.js +6 -6
- package/dist/components/calcite-inline-editable/customElement.js +6 -6
- package/dist/components/calcite-input/customElement.js +6 -6
- package/dist/components/calcite-input-date-picker/customElement.js +6 -6
- package/dist/components/calcite-input-message/customElement.js +6 -6
- package/dist/components/calcite-input-number/customElement.js +6 -6
- package/dist/components/calcite-input-text/customElement.js +6 -6
- package/dist/components/calcite-input-time-picker/customElement.js +6 -6
- package/dist/components/calcite-input-time-zone/customElement.js +6 -6
- package/dist/components/calcite-label/customElement.js +6 -6
- package/dist/components/calcite-link/customElement.js +6 -6
- package/dist/components/calcite-list/customElement.js +6 -6
- package/dist/components/calcite-list-item/customElement.js +6 -6
- package/dist/components/calcite-list-item-group/customElement.js +6 -6
- package/dist/components/calcite-loader/customElement.js +6 -6
- package/dist/components/calcite-menu/customElement.js +6 -6
- package/dist/components/calcite-menu-item/customElement.js +6 -6
- package/dist/components/calcite-meter/customElement.js +6 -6
- package/dist/components/calcite-modal/customElement.js +6 -6
- package/dist/components/calcite-navigation/customElement.js +6 -6
- package/dist/components/calcite-navigation-logo/customElement.js +6 -6
- package/dist/components/calcite-navigation-user/customElement.js +54 -42
- package/dist/components/calcite-notice/customElement.js +6 -6
- package/dist/components/calcite-option/customElement.js +6 -6
- package/dist/components/calcite-option-group/customElement.js +6 -6
- package/dist/components/calcite-pagination/customElement.js +6 -6
- package/dist/components/calcite-panel/customElement.js +76 -44
- package/dist/components/calcite-panel/resources.d.ts +1 -0
- package/dist/components/calcite-popover/customElement.js +6 -6
- package/dist/components/calcite-progress/customElement.js +6 -6
- package/dist/components/calcite-radio-button/customElement.d.ts +0 -6
- package/dist/components/calcite-radio-button/customElement.js +9 -11
- package/dist/components/calcite-radio-button-group/customElement.js +6 -6
- package/dist/components/calcite-rating/customElement.js +6 -6
- package/dist/components/calcite-scrim/customElement.js +6 -6
- package/dist/components/calcite-segmented-control/customElement.js +6 -6
- package/dist/components/calcite-segmented-control-item/customElement.js +6 -6
- package/dist/components/calcite-select/customElement.js +6 -6
- package/dist/components/calcite-sheet/customElement.js +6 -6
- package/dist/components/calcite-shell/customElement.js +6 -6
- package/dist/components/calcite-shell-center-row/customElement.js +6 -6
- package/dist/components/calcite-shell-panel/customElement.js +6 -6
- package/dist/components/calcite-slider/customElement.js +6 -6
- package/dist/components/calcite-sort-handle/customElement.js +6 -6
- package/dist/components/calcite-sortable-list/customElement.js +6 -6
- package/dist/components/calcite-split-button/customElement.js +6 -6
- package/dist/components/calcite-stack/customElement.js +6 -6
- package/dist/components/calcite-stepper/customElement.js +6 -6
- package/dist/components/calcite-stepper-item/customElement.js +6 -6
- package/dist/components/calcite-switch/customElement.js +6 -6
- package/dist/components/calcite-tab/customElement.js +6 -6
- package/dist/components/calcite-tab-nav/customElement.js +6 -6
- package/dist/components/calcite-tab-title/customElement.js +6 -6
- package/dist/components/calcite-table/customElement.js +6 -6
- package/dist/components/calcite-table-cell/customElement.js +6 -6
- package/dist/components/calcite-table-header/customElement.js +6 -6
- package/dist/components/calcite-table-row/customElement.js +6 -6
- package/dist/components/calcite-tabs/customElement.js +6 -6
- package/dist/components/calcite-text-area/customElement.js +6 -6
- package/dist/components/calcite-tile/customElement.js +6 -6
- package/dist/components/calcite-tile-group/customElement.js +6 -6
- package/dist/components/calcite-tile-select/customElement.js +6 -6
- package/dist/components/calcite-tile-select-group/customElement.js +6 -6
- package/dist/components/calcite-time-picker/customElement.js +6 -6
- package/dist/components/calcite-tip/customElement.js +6 -6
- package/dist/components/calcite-tip-group/customElement.js +6 -6
- package/dist/components/calcite-tip-manager/customElement.js +6 -6
- package/dist/components/calcite-tooltip/customElement.js +6 -6
- package/dist/components/calcite-tree/customElement.js +6 -6
- package/dist/components/calcite-tree-item/customElement.js +6 -6
- package/dist/custom-theme/navigation-user.d.ts +9 -0
- package/dist/docs/api.json +94 -43
- package/dist/docs/docs.json +117 -37
- package/dist/docs/vscode.css-custom-data.json +90 -6
- package/dist/docs/vscode.html-custom-data.json +2 -7
- package/dist/docs/web-types.json +93 -21
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +3 -3
- package/dist/calcite/T6VH6X3V.js +0 -422
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.23
|
|
5
5
|
*/
|
|
6
|
-
import{a as w,b as ut}from"./3IL5ODH3.js";var I=w((Rt,B)=>{"use strict";B.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var P=w((_t,N)=>{N.exports=function(n){return!n||typeof n=="string"?!1:n instanceof Array||Array.isArray(n)||n.length>=0&&(n.splice instanceof Function||Object.getOwnPropertyDescriptor(n,n.length-1)&&n.constructor.name!=="String")}});var U=w(($t,D)=>{"use strict";var ft=P(),dt=Array.prototype.concat,gt=Array.prototype.slice,T=D.exports=function(n){for(var e=[],r=0,s=n.length;r<s;r++){var a=n[r];ft(a)?e=dt.call(e,gt.call(a)):e.push(a)}return e};T.wrap=function(t){return function(){return t(T(arguments))}}});var J=w((qt,K)=>{var A=I(),F=U(),W=Object.hasOwnProperty,X=Object.create(null);for(H in A)W.call(A,H)&&(X[A[H]]=H);var H,v=K.exports={to:{},get:{}};v.get=function(t){var n=t.substring(0,3).toLowerCase(),e,r;switch(n){case"hsl":e=v.get.hsl(t),r="hsl";break;case"hwb":e=v.get.hwb(t),r="hwb";break;default:e=v.get.rgb(t),r="rgb";break}return e?{model:r,value:e}:null};v.get.rgb=function(t){if(!t)return null;var n=/^#([a-f0-9]{3,4})$/i,e=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^(\w+)$/,o=[0,0,0,1],i,l,h;if(i=t.match(e)){for(h=i[2],i=i[1],l=0;l<3;l++){var b=l*2;o[l]=parseInt(i.slice(b,b+2),16)}h&&(o[3]=parseInt(h,16)/255)}else if(i=t.match(n)){for(i=i[1],h=i[3],l=0;l<3;l++)o[l]=parseInt(i[l]+i[l],16);h&&(o[3]=parseInt(h+h,16)/255)}else if(i=t.match(r)){for(l=0;l<3;l++)o[l]=parseInt(i[l+1],0);i[4]&&(i[5]?o[3]=parseFloat(i[4])*.01:o[3]=parseFloat(i[4]))}else if(i=t.match(s)){for(l=0;l<3;l++)o[l]=Math.round(parseFloat(i[l+1])*2.55);i[4]&&(i[5]?o[3]=parseFloat(i[4])*.01:o[3]=parseFloat(i[4]))}else return(i=t.match(a))?i[1]==="transparent"?[0,0,0,0]:W.call(A,i[1])?(o=A[i[1]],o[3]=1,o):null:null;for(l=0;l<3;l++)o[l]=S(o[l],0,255);return o[3]=S(o[3],0,1),o};v.get.hsl=function(t){if(!t)return null;var n=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,e=t.match(n);if(e){var r=parseFloat(e[4]),s=(parseFloat(e[1])%360+360)%360,a=S(parseFloat(e[2]),0,100),o=S(parseFloat(e[3]),0,100),i=S(isNaN(r)?1:r,0,1);return[s,a,o,i]}return null};v.get.hwb=function(t){if(!t)return null;var n=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,e=t.match(n);if(e){var r=parseFloat(e[4]),s=(parseFloat(e[1])%360+360)%360,a=S(parseFloat(e[2]),0,100),o=S(parseFloat(e[3]),0,100),i=S(isNaN(r)?1:r,0,1);return[s,a,o,i]}return null};v.to.hex=function(){var t=F(arguments);return"#"+O(t[0])+O(t[1])+O(t[2])+(t[3]<1?O(Math.round(t[3]*255)):"")};v.to.rgb=function(){var t=F(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};v.to.rgb.percent=function(){var t=F(arguments),n=Math.round(t[0]/255*100),e=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+n+"%, "+e+"%, "+r+"%)":"rgba("+n+"%, "+e+"%, "+r+"%, "+t[3]+")"};v.to.hsl=function(){var t=F(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};v.to.hwb=function(){var t=F(arguments),n="";return t.length>=4&&t[3]!==1&&(n=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+n+")"};v.to.keyword=function(t){return X[t.slice(0,3)]};function S(t,n,e){return Math.min(Math.max(n,t),e)}function O(t){var n=Math.round(t).toString(16).toUpperCase();return n.length<2?"0"+n:n}});var R=w((Gt,j)=>{var C=I(),Y={};for(let t of Object.keys(C))Y[C[t]]=t;var c={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};j.exports=c;for(let t of Object.keys(c)){if(!("channels"in c[t]))throw new Error("missing channels property: "+t);if(!("labels"in c[t]))throw new Error("missing channel labels property: "+t);if(c[t].labels.length!==c[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:n,labels:e}=c[t];delete c[t].channels,delete c[t].labels,Object.defineProperty(c[t],"channels",{value:n}),Object.defineProperty(c[t],"labels",{value:e})}c.rgb.hsl=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,s=Math.min(n,e,r),a=Math.max(n,e,r),o=a-s,i,l;a===s?i=0:n===a?i=(e-r)/o:e===a?i=2+(r-n)/o:r===a&&(i=4+(n-e)/o),i=Math.min(i*60,360),i<0&&(i+=360);let h=(s+a)/2;return a===s?l=0:h<=.5?l=o/(a+s):l=o/(2-a-s),[i,l*100,h*100]};c.rgb.hsv=function(t){let n,e,r,s,a,o=t[0]/255,i=t[1]/255,l=t[2]/255,h=Math.max(o,i,l),b=h-Math.min(o,i,l),m=function(ht){return(h-ht)/6/b+1/2};return b===0?(s=0,a=0):(a=b/h,n=m(o),e=m(i),r=m(l),o===h?s=r-e:i===h?s=1/3+n-r:l===h&&(s=2/3+e-n),s<0?s+=1:s>1&&(s-=1)),[s*360,a*100,h*100]};c.rgb.hwb=function(t){let n=t[0],e=t[1],r=t[2],s=c.rgb.hsl(t)[0],a=1/255*Math.min(n,Math.min(e,r));return r=1-1/255*Math.max(n,Math.max(e,r)),[s,a*100,r*100]};c.rgb.cmyk=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,s=Math.min(1-n,1-e,1-r),a=(1-n-s)/(1-s)||0,o=(1-e-s)/(1-s)||0,i=(1-r-s)/(1-s)||0;return[a*100,o*100,i*100,s*100]};function pt(t,n){return(t[0]-n[0])**2+(t[1]-n[1])**2+(t[2]-n[2])**2}c.rgb.keyword=function(t){let n=Y[t];if(n)return n;let e=1/0,r;for(let s of Object.keys(C)){let a=C[s],o=pt(t,a);o<e&&(e=o,r=s)}return r};c.keyword.rgb=function(t){return C[t]};c.rgb.xyz=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let s=n*.4124+e*.3576+r*.1805,a=n*.2126+e*.7152+r*.0722,o=n*.0193+e*.1192+r*.9505;return[s*100,a*100,o*100]};c.rgb.lab=function(t){let n=c.rgb.xyz(t),e=n[0],r=n[1],s=n[2];e/=95.047,r/=100,s/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let a=116*r-16,o=500*(e-r),i=200*(r-s);return[a,o,i]};c.hsl.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100,s,a,o;if(e===0)return o=r*255,[o,o,o];r<.5?s=r*(1+e):s=r+e-r*e;let i=2*r-s,l=[0,0,0];for(let h=0;h<3;h++)a=n+1/3*-(h-1),a<0&&a++,a>1&&a--,6*a<1?o=i+(s-i)*6*a:2*a<1?o=s:3*a<2?o=i+(s-i)*(2/3-a)*6:o=i,l[h]=o*255;return l};c.hsl.hsv=function(t){let n=t[0],e=t[1]/100,r=t[2]/100,s=e,a=Math.max(r,.01);r*=2,e*=r<=1?r:2-r,s*=a<=1?a:2-a;let o=(r+e)/2,i=r===0?2*s/(a+s):2*e/(r+e);return[n,i*100,o*100]};c.hsv.rgb=function(t){let n=t[0]/60,e=t[1]/100,r=t[2]/100,s=Math.floor(n)%6,a=n-Math.floor(n),o=255*r*(1-e),i=255*r*(1-e*a),l=255*r*(1-e*(1-a));switch(r*=255,s){case 0:return[r,l,o];case 1:return[i,r,o];case 2:return[o,r,l];case 3:return[o,i,r];case 4:return[l,o,r];case 5:return[r,o,i]}};c.hsv.hsl=function(t){let n=t[0],e=t[1]/100,r=t[2]/100,s=Math.max(r,.01),a,o;o=(2-e)*r;let i=(2-e)*s;return a=e*s,a/=i<=1?i:2-i,a=a||0,o/=2,[n,a*100,o*100]};c.hwb.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100,s=e+r,a;s>1&&(e/=s,r/=s);let o=Math.floor(6*n),i=1-r;a=6*n-o,o&1&&(a=1-a);let l=e+a*(i-e),h,b,m;switch(o){default:case 6:case 0:h=i,b=l,m=e;break;case 1:h=l,b=i,m=e;break;case 2:h=e,b=i,m=l;break;case 3:h=e,b=l,m=i;break;case 4:h=l,b=e,m=i;break;case 5:h=i,b=e,m=l;break}return[h*255,b*255,m*255]};c.cmyk.rgb=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,s=t[3]/100,a=1-Math.min(1,n*(1-s)+s),o=1-Math.min(1,e*(1-s)+s),i=1-Math.min(1,r*(1-s)+s);return[a*255,o*255,i*255]};c.xyz.rgb=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,s,a,o;return s=n*3.2406+e*-1.5372+r*-.4986,a=n*-.9689+e*1.8758+r*.0415,o=n*.0557+e*-.204+r*1.057,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=Math.min(Math.max(0,s),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[s*255,a*255,o*255]};c.xyz.lab=function(t){let n=t[0],e=t[1],r=t[2];n/=95.047,e/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;let s=116*e-16,a=500*(n-e),o=200*(e-r);return[s,a,o]};c.lab.xyz=function(t){let n=t[0],e=t[1],r=t[2],s,a,o;a=(n+16)/116,s=e/500+a,o=a-r/200;let i=a**3,l=s**3,h=o**3;return a=i>.008856?i:(a-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,s*=95.047,a*=100,o*=108.883,[s,a,o]};c.lab.lch=function(t){let n=t[0],e=t[1],r=t[2],s;s=Math.atan2(r,e)*360/2/Math.PI,s<0&&(s+=360);let o=Math.sqrt(e*e+r*r);return[n,o,s]};c.lch.lab=function(t){let n=t[0],e=t[1],s=t[2]/360*2*Math.PI,a=e*Math.cos(s),o=e*Math.sin(s);return[n,a,o]};c.rgb.ansi16=function(t,n=null){let[e,r,s]=t,a=n===null?c.rgb.hsv(t)[2]:n;if(a=Math.round(a/50),a===0)return 30;let o=30+(Math.round(s/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return a===2&&(o+=60),o};c.hsv.ansi16=function(t){return c.rgb.ansi16(c.hsv.rgb(t),t[2])};c.rgb.ansi256=function(t){let n=t[0],e=t[1],r=t[2];return n===e&&e===r?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5)};c.ansi16.rgb=function(t){let n=t%10;if(n===0||n===7)return t>50&&(n+=3.5),n=n/10.5*255,[n,n,n];let e=(~~(t>50)+1)*.5,r=(n&1)*e*255,s=(n>>1&1)*e*255,a=(n>>2&1)*e*255;return[r,s,a]};c.ansi256.rgb=function(t){if(t>=232){let a=(t-232)*10+8;return[a,a,a]}t-=16;let n,e=Math.floor(t/36)/5*255,r=Math.floor((n=t%36)/6)/5*255,s=n%6/5*255;return[e,r,s]};c.rgb.hex=function(t){let e=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(e.length)+e};c.hex.rgb=function(t){let n=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];let e=n[0];n[0].length===3&&(e=e.split("").map(i=>i+i).join(""));let r=parseInt(e,16),s=r>>16&255,a=r>>8&255,o=r&255;return[s,a,o]};c.rgb.hcg=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,s=Math.max(Math.max(n,e),r),a=Math.min(Math.min(n,e),r),o=s-a,i,l;return o<1?i=a/(1-o):i=0,o<=0?l=0:s===n?l=(e-r)/o%6:s===e?l=2+(r-n)/o:l=4+(n-e)/o,l/=6,l%=1,[l*360,o*100,i*100]};c.hsl.hcg=function(t){let n=t[1]/100,e=t[2]/100,r=e<.5?2*n*e:2*n*(1-e),s=0;return r<1&&(s=(e-.5*r)/(1-r)),[t[0],r*100,s*100]};c.hsv.hcg=function(t){let n=t[1]/100,e=t[2]/100,r=n*e,s=0;return r<1&&(s=(e-r)/(1-r)),[t[0],r*100,s*100]};c.hcg.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100;if(e===0)return[r*255,r*255,r*255];let s=[0,0,0],a=n%1*6,o=a%1,i=1-o,l=0;switch(Math.floor(a)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=i,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=i,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=i}return l=(1-e)*r,[(e*s[0]+l)*255,(e*s[1]+l)*255,(e*s[2]+l)*255]};c.hcg.hsv=function(t){let n=t[1]/100,e=t[2]/100,r=n+e*(1-n),s=0;return r>0&&(s=n/r),[t[0],s*100,r*100]};c.hcg.hsl=function(t){let n=t[1]/100,r=t[2]/100*(1-n)+.5*n,s=0;return r>0&&r<.5?s=n/(2*r):r>=.5&&r<1&&(s=n/(2*(1-r))),[t[0],s*100,r*100]};c.hcg.hwb=function(t){let n=t[1]/100,e=t[2]/100,r=n+e*(1-n);return[t[0],(r-n)*100,(1-r)*100]};c.hwb.hcg=function(t){let n=t[1]/100,r=1-t[2]/100,s=r-n,a=0;return s<1&&(a=(r-s)/(1-s)),[t[0],s*100,a*100]};c.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};c.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};c.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};c.gray.hsl=function(t){return[0,0,t[0]]};c.gray.hsv=c.gray.hsl;c.gray.hwb=function(t){return[0,100,t[0]]};c.gray.cmyk=function(t){return[0,0,0,t[0]]};c.gray.lab=function(t){return[t[0],0,0]};c.gray.hex=function(t){let n=Math.round(t[0]/100*255)&255,r=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(r.length)+r};c.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var Q=w((Bt,Z)=>{var z=R();function bt(){let t={},n=Object.keys(z);for(let e=n.length,r=0;r<e;r++)t[n[r]]={distance:-1,parent:null};return t}function vt(t){let n=bt(),e=[t];for(n[t].distance=0;e.length;){let r=e.pop(),s=Object.keys(z[r]);for(let a=s.length,o=0;o<a;o++){let i=s[o],l=n[i];l.distance===-1&&(l.distance=n[r].distance+1,l.parent=r,e.unshift(i))}}return n}function yt(t,n){return function(e){return n(t(e))}}function mt(t,n){let e=[n[t].parent,t],r=z[n[t].parent][t],s=n[t].parent;for(;n[s].parent;)e.unshift(n[s].parent),r=yt(z[n[s].parent][s],r),s=n[s].parent;return r.conversion=e,r}Z.exports=function(t){let n=vt(t),e={},r=Object.keys(n);for(let s=r.length,a=0;a<s;a++){let o=r[a];n[o].parent!==null&&(e[o]=mt(o,n))}return e}});var tt=w((Nt,V)=>{var _=R(),wt=Q(),k={},St=Object.keys(_);function kt(t){let n=function(...e){let r=e[0];return r==null?r:(r.length>1&&(e=r),t(e))};return"conversion"in t&&(n.conversion=t.conversion),n}function xt(t){let n=function(...e){let r=e[0];if(r==null)return r;r.length>1&&(e=r);let s=t(e);if(typeof s=="object")for(let a=s.length,o=0;o<a;o++)s[o]=Math.round(s[o]);return s};return"conversion"in t&&(n.conversion=t.conversion),n}St.forEach(t=>{k[t]={},Object.defineProperty(k[t],"channels",{value:_[t].channels}),Object.defineProperty(k[t],"labels",{value:_[t].labels});let n=wt(t);Object.keys(n).forEach(r=>{let s=n[r];k[t][r]=xt(s),k[t][r].raw=kt(s)})});V.exports=k});var rt=w((Pt,et)=>{var x=J(),y=tt(),nt=["keyword","gray","hex"],$={};for(let t of Object.keys(y))$[[...y[t].labels].sort().join("")]=t;var L={};function p(t,n){if(!(this instanceof p))return new p(t,n);if(n&&n in nt&&(n=null),n&&!(n in y))throw new Error("Unknown model: "+n);let e,r;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof p)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){let s=x.get(t);if(s===null)throw new Error("Unable to parse color from string: "+t);this.model=s.model,r=y[this.model].channels,this.color=s.value.slice(0,r),this.valpha=typeof s.value[r]=="number"?s.value[r]:1}else if(t.length>0){this.model=n||"rgb",r=y[this.model].channels;let s=Array.prototype.slice.call(t,0,r);this.color=q(s,r),this.valpha=typeof t[r]=="number"?t[r]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;let s=Object.keys(t);"alpha"in t&&(s.splice(s.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);let a=s.sort().join("");if(!(a in $))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=$[a];let{labels:o}=y[this.model],i=[];for(e=0;e<o.length;e++)i.push(t[o[e]]);this.color=q(i)}if(L[this.model])for(r=y[this.model].channels,e=0;e<r;e++){let s=L[this.model][e];s&&(this.color[e]=s(this.color[e]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}p.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let n=this.model in x.to?this:this.rgb();n=n.round(typeof t=="number"?t:1);let e=n.valpha===1?n.color:[...n.color,this.valpha];return x.to[n.model](e)},percentString(t){let n=this.rgb().round(typeof t=="number"?t:1),e=n.valpha===1?n.color:[...n.color,this.valpha];return x.to.rgb.percent(e)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let t={},{channels:n}=y[this.model],{labels:e}=y[this.model];for(let r=0;r<n;r++)t[e[r]]=this.color[r];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){let t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){let t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new p([...this.color.map(At(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new p([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:u("rgb",0,g(255)),green:u("rgb",1,g(255)),blue:u("rgb",2,g(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:u("hsl",1,g(100)),lightness:u("hsl",2,g(100)),saturationv:u("hsv",1,g(100)),value:u("hsv",2,g(100)),chroma:u("hcg",1,g(100)),gray:u("hcg",2,g(100)),white:u("hwb",1,g(100)),wblack:u("hwb",2,g(100)),cyan:u("cmyk",0,g(100)),magenta:u("cmyk",1,g(100)),yellow:u("cmyk",2,g(100)),black:u("cmyk",3,g(100)),x:u("xyz",0,g(95.047)),y:u("xyz",1,g(100)),z:u("xyz",2,g(108.833)),l:u("lab",0,g(100)),a:u("lab",1),b:u("lab",2),keyword(t){return t!==void 0?new p(t):y[this.model].keyword(this.color)},hex(t){return t!==void 0?new p(t):x.to.hex(this.rgb().round().color)},hexa(t){if(t!==void 0)return new p(t);let n=this.rgb().round().color,e=Math.round(this.valpha*255).toString(16).toUpperCase();return e.length===1&&(e="0"+e),x.to.hex(n)+e},rgbNumber(){let t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){let t=this.rgb().color,n=[];for(let[e,r]of t.entries()){let s=r/255;n[e]=s<=.04045?s/12.92:((s+.055)/1.055)**2.4}return .2126*n[0]+.7152*n[1]+.0722*n[2]},contrast(t){let n=this.luminosity(),e=t.luminosity();return n>e?(n+.05)/(e+.05):(e+.05)/(n+.05)},level(t){let n=this.contrast(t);return n>=7?"AAA":n>=4.5?"AA":""},isDark(){let t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let t=this.rgb();for(let n=0;n<3;n++)t.color[n]=255-t.color[n];return t},lighten(t){let n=this.hsl();return n.color[2]+=n.color[2]*t,n},darken(t){let n=this.hsl();return n.color[2]-=n.color[2]*t,n},saturate(t){let n=this.hsl();return n.color[1]+=n.color[1]*t,n},desaturate(t){let n=this.hsl();return n.color[1]-=n.color[1]*t,n},whiten(t){let n=this.hwb();return n.color[1]+=n.color[1]*t,n},blacken(t){let n=this.hwb();return n.color[2]+=n.color[2]*t,n},grayscale(){let t=this.rgb().color,n=t[0]*.3+t[1]*.59+t[2]*.11;return p.rgb(n,n,n)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){let n=this.hsl(),e=n.color[0];return e=(e+t)%360,e=e<0?360+e:e,n.color[0]=e,n},mix(t,n){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);let e=t.rgb(),r=this.rgb(),s=n===void 0?.5:n,a=2*s-1,o=e.alpha()-r.alpha(),i=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,l=1-i;return p.rgb(i*e.red()+l*r.red(),i*e.green()+l*r.green(),i*e.blue()+l*r.blue(),e.alpha()*s+r.alpha()*(1-s))}};for(let t of Object.keys(y)){if(nt.includes(t))continue;let{channels:n}=y[t];p.prototype[t]=function(...e){return this.model===t?new p(this):e.length>0?new p(e,t):new p([...Ft(y[this.model][t].raw(this.color)),this.valpha],t)},p[t]=function(...e){let r=e[0];return typeof r=="number"&&(r=q(e,n)),new p(r,t)}}function Mt(t,n){return Number(t.toFixed(n))}function At(t){return function(n){return Mt(n,t)}}function u(t,n,e){t=Array.isArray(t)?t:[t];for(let r of t)(L[r]||(L[r]=[]))[n]=e;return t=t[0],function(r){let s;return r!==void 0?(e&&(r=e(r)),s=this[t](),s.color[n]=r,s):(s=this[t]().color[n],e&&(s=e(s)),s)}}function g(t){return function(n){return Math.max(0,Math.min(t,n))}}function Ft(t){return Array.isArray(t)?t:[t]}function q(t,n){for(let e=0;e<n;e++)typeof t[e]!="number"&&(t[e]=0);return t}et.exports=p});var at=ut(rt(),1);var Tt={channel:"channel",channels:"channels",colorField:"color-field",colorFieldScope:"scope--color-field",colorMode:"color-mode",colorModeContainer:"color-mode-container",container:"container",control:"control",controlAndScope:"control-and-scope",controlSection:"control-section",deleteColor:"delete-color",header:"header",hexAndChannelsGroup:"hex-and-channels-group",hexOptions:"color-hex-options",hueScope:"scope--hue",hueSlider:"hue-slider",opacityScope:"scope--opacity",opacitySlider:"opacity-slider",preview:"preview",previewAndSliders:"preview-and-sliders",saveColor:"save-color",savedColor:"saved-color",savedColors:"saved-colors",savedColorsButtons:"saved-colors-buttons",savedColorsSection:"saved-colors-section",scope:"scope",section:"section",slider:"slider",sliders:"sliders",splitSection:"section--split"},Dt=(0,at.default)("#007AC2"),Ut="calcite-color-",Wt={r:255,g:255,b:255},Ct={h:360,s:100,v:100},Xt=Ct.h-1,Kt={min:0,max:100},Ht={s:{slider:{height:12,width:104},colorField:{height:80,width:160},thumb:{radius:7},preview:{size:20}},m:{slider:{height:12,width:204},colorField:{height:150,width:272},thumb:{radius:7},preview:{size:24}},l:{slider:{height:12,width:384},colorField:{height:200,width:464},thumb:{radius:7},preview:{size:32}}},Jt=1,Yt=/^[0-9A-F]$/i,Ot=/^#[0-9A-F]{3}$/i,zt=/^#[0-9A-F]{6}$/i,Lt=/^#[0-9A-F]{4}$/i,Et=/^#[0-9A-F]{8}$/i,jt=t=>Number((t*100).toFixed()),Zt=t=>Number((t/100).toFixed(2));function it(t,n=!1){return G(t,n)||It(t,n)}function lt(t,n,e){return t?t.length===n&&e.test(t):!1}function G(t,n=!1){return lt(t,n?5:4,n?Lt:Ot)}function It(t,n=!1){return lt(t,n?9:7,n?Et:zt)}function Qt(t,n=!1,e=!1){if(t=t.toLowerCase(),t.startsWith("#")||(t=`#${t}`),G(t,n))return st(ot(t,n));if(n&&e&&it(t,!1)){let r=G(t,!1);return st(ot(`${t}${r?"f":"ff"}`,!0))}return t}function Vt(t,n=!1){return n?t.hexa():t.hex()}function st(t){let{r:n,g:e,b:r}=t,s=E(n),a=E(e),o=E(r),i="a"in t?E(t.a*255):"";return`#${s}${a}${o}${i}`.toLowerCase()}function E(t){return t.toString(16).padStart(2,"0")}function tn(t){let n={...t,a:t.alpha??1};return delete n.alpha,n}function nn(t){let n={...t,alpha:t.a??1};return delete n.a,n}function ot(t,n=!1){if(!it(t,n))return null;t=t.replace("#","");let e,r,s,a;if(t.length===3||t.length===4){let[i,l,h,b]=t.split("");e=parseInt(`${i}${i}`,16),r=parseInt(`${l}${l}`,16),s=parseInt(`${h}${h}`,16),a=parseInt(`${b}${b}`,16)/255}else e=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),s=parseInt(t.slice(4,6),16),a=parseInt(t.slice(6,8),16)/255;return isNaN(a)?{r:e,g:r,b:s}:{r:e,g:r,b:s,a}}var ct=t=>t,f=ct({HEX:"hex",HEXA:"hexa",RGB_CSS:"rgb-css",RGBA_CSS:"rgba-css",HSL_CSS:"hsl-css",HSLA_CSS:"hsla-css"}),d=ct({RGB:"rgb",RGBA:"rgba",HSL:"hsl",HSLA:"hsla",HSV:"hsv",HSVA:"hsva"});function en(t){if(typeof t=="string"){if(t.startsWith("#")){let{length:n}=t;if(n===4||n===7)return f.HEX;if(n===5||n===9)return f.HEXA}if(t.startsWith("rgba("))return f.RGBA_CSS;if(t.startsWith("rgb("))return f.RGB_CSS;if(t.startsWith("hsl("))return f.HSL_CSS;if(t.startsWith("hsla("))return f.HSLA_CSS}if(typeof t=="object"){if(M(t,"r","g","b"))return M(t,"a")?d.RGBA:d.RGB;if(M(t,"h","s","l"))return M(t,"a")?d.HSLA:d.HSL;if(M(t,"h","s","v"))return M(t,"a")?d.HSVA:d.HSV}return null}function M(t,...n){return n.every(e=>e&&t&&`${e}`in t)}function rn(t,n){return t?.rgb().array().toString()===n?.rgb().array().toString()}function sn(t){return t===f.HEXA||t===f.RGBA_CSS||t===f.HSLA_CSS||t===d.RGBA||t===d.HSLA||t===d.HSVA}function on(t){return t===f.HEX?f.HEXA:t===f.RGB_CSS?f.RGBA_CSS:t===f.HSL_CSS?f.HSLA_CSS:t===d.RGB?d.RGBA:t===d.HSL?d.HSLA:t===d.HSV?d.HSVA:t}function an(t){return t===f.HEXA?f.HEX:t===f.RGBA_CSS?f.RGB_CSS:t===f.HSLA_CSS?f.HSL_CSS:t===d.RGBA?d.RGB:t===d.HSLA?d.HSL:t===d.HSVA?d.HSV:t}function ln(t,n){let{slider:{width:e},preview:r}=t;if(n)return e;let s=Ht.l.preview.size-r.size;return e+s}export{rt as a,Tt as b,Dt as c,Ut as d,Wt as e,Ct as f,Xt as g,Kt as h,Ht as i,Jt as j,Yt as k,jt as l,Zt as m,it as n,G as o,It as p,Qt as q,Vt as r,st as s,tn as t,nn as u,ot as v,f as w,en as x,rn as y,sn as z,on as A,an as B,ln as C};
|
|
6
|
+
import{a as w,b as ut}from"./J7ES76D4.js";var I=w((Rt,B)=>{"use strict";B.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var P=w((_t,N)=>{N.exports=function(n){return!n||typeof n=="string"?!1:n instanceof Array||Array.isArray(n)||n.length>=0&&(n.splice instanceof Function||Object.getOwnPropertyDescriptor(n,n.length-1)&&n.constructor.name!=="String")}});var U=w(($t,D)=>{"use strict";var ft=P(),dt=Array.prototype.concat,gt=Array.prototype.slice,T=D.exports=function(n){for(var e=[],r=0,s=n.length;r<s;r++){var a=n[r];ft(a)?e=dt.call(e,gt.call(a)):e.push(a)}return e};T.wrap=function(t){return function(){return t(T(arguments))}}});var J=w((qt,K)=>{var A=I(),F=U(),W=Object.hasOwnProperty,X=Object.create(null);for(H in A)W.call(A,H)&&(X[A[H]]=H);var H,v=K.exports={to:{},get:{}};v.get=function(t){var n=t.substring(0,3).toLowerCase(),e,r;switch(n){case"hsl":e=v.get.hsl(t),r="hsl";break;case"hwb":e=v.get.hwb(t),r="hwb";break;default:e=v.get.rgb(t),r="rgb";break}return e?{model:r,value:e}:null};v.get.rgb=function(t){if(!t)return null;var n=/^#([a-f0-9]{3,4})$/i,e=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^(\w+)$/,o=[0,0,0,1],i,l,h;if(i=t.match(e)){for(h=i[2],i=i[1],l=0;l<3;l++){var b=l*2;o[l]=parseInt(i.slice(b,b+2),16)}h&&(o[3]=parseInt(h,16)/255)}else if(i=t.match(n)){for(i=i[1],h=i[3],l=0;l<3;l++)o[l]=parseInt(i[l]+i[l],16);h&&(o[3]=parseInt(h+h,16)/255)}else if(i=t.match(r)){for(l=0;l<3;l++)o[l]=parseInt(i[l+1],0);i[4]&&(i[5]?o[3]=parseFloat(i[4])*.01:o[3]=parseFloat(i[4]))}else if(i=t.match(s)){for(l=0;l<3;l++)o[l]=Math.round(parseFloat(i[l+1])*2.55);i[4]&&(i[5]?o[3]=parseFloat(i[4])*.01:o[3]=parseFloat(i[4]))}else return(i=t.match(a))?i[1]==="transparent"?[0,0,0,0]:W.call(A,i[1])?(o=A[i[1]],o[3]=1,o):null:null;for(l=0;l<3;l++)o[l]=S(o[l],0,255);return o[3]=S(o[3],0,1),o};v.get.hsl=function(t){if(!t)return null;var n=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,e=t.match(n);if(e){var r=parseFloat(e[4]),s=(parseFloat(e[1])%360+360)%360,a=S(parseFloat(e[2]),0,100),o=S(parseFloat(e[3]),0,100),i=S(isNaN(r)?1:r,0,1);return[s,a,o,i]}return null};v.get.hwb=function(t){if(!t)return null;var n=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,e=t.match(n);if(e){var r=parseFloat(e[4]),s=(parseFloat(e[1])%360+360)%360,a=S(parseFloat(e[2]),0,100),o=S(parseFloat(e[3]),0,100),i=S(isNaN(r)?1:r,0,1);return[s,a,o,i]}return null};v.to.hex=function(){var t=F(arguments);return"#"+O(t[0])+O(t[1])+O(t[2])+(t[3]<1?O(Math.round(t[3]*255)):"")};v.to.rgb=function(){var t=F(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};v.to.rgb.percent=function(){var t=F(arguments),n=Math.round(t[0]/255*100),e=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+n+"%, "+e+"%, "+r+"%)":"rgba("+n+"%, "+e+"%, "+r+"%, "+t[3]+")"};v.to.hsl=function(){var t=F(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};v.to.hwb=function(){var t=F(arguments),n="";return t.length>=4&&t[3]!==1&&(n=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+n+")"};v.to.keyword=function(t){return X[t.slice(0,3)]};function S(t,n,e){return Math.min(Math.max(n,t),e)}function O(t){var n=Math.round(t).toString(16).toUpperCase();return n.length<2?"0"+n:n}});var R=w((Gt,j)=>{var C=I(),Y={};for(let t of Object.keys(C))Y[C[t]]=t;var c={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};j.exports=c;for(let t of Object.keys(c)){if(!("channels"in c[t]))throw new Error("missing channels property: "+t);if(!("labels"in c[t]))throw new Error("missing channel labels property: "+t);if(c[t].labels.length!==c[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:n,labels:e}=c[t];delete c[t].channels,delete c[t].labels,Object.defineProperty(c[t],"channels",{value:n}),Object.defineProperty(c[t],"labels",{value:e})}c.rgb.hsl=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,s=Math.min(n,e,r),a=Math.max(n,e,r),o=a-s,i,l;a===s?i=0:n===a?i=(e-r)/o:e===a?i=2+(r-n)/o:r===a&&(i=4+(n-e)/o),i=Math.min(i*60,360),i<0&&(i+=360);let h=(s+a)/2;return a===s?l=0:h<=.5?l=o/(a+s):l=o/(2-a-s),[i,l*100,h*100]};c.rgb.hsv=function(t){let n,e,r,s,a,o=t[0]/255,i=t[1]/255,l=t[2]/255,h=Math.max(o,i,l),b=h-Math.min(o,i,l),m=function(ht){return(h-ht)/6/b+1/2};return b===0?(s=0,a=0):(a=b/h,n=m(o),e=m(i),r=m(l),o===h?s=r-e:i===h?s=1/3+n-r:l===h&&(s=2/3+e-n),s<0?s+=1:s>1&&(s-=1)),[s*360,a*100,h*100]};c.rgb.hwb=function(t){let n=t[0],e=t[1],r=t[2],s=c.rgb.hsl(t)[0],a=1/255*Math.min(n,Math.min(e,r));return r=1-1/255*Math.max(n,Math.max(e,r)),[s,a*100,r*100]};c.rgb.cmyk=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,s=Math.min(1-n,1-e,1-r),a=(1-n-s)/(1-s)||0,o=(1-e-s)/(1-s)||0,i=(1-r-s)/(1-s)||0;return[a*100,o*100,i*100,s*100]};function pt(t,n){return(t[0]-n[0])**2+(t[1]-n[1])**2+(t[2]-n[2])**2}c.rgb.keyword=function(t){let n=Y[t];if(n)return n;let e=1/0,r;for(let s of Object.keys(C)){let a=C[s],o=pt(t,a);o<e&&(e=o,r=s)}return r};c.keyword.rgb=function(t){return C[t]};c.rgb.xyz=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let s=n*.4124+e*.3576+r*.1805,a=n*.2126+e*.7152+r*.0722,o=n*.0193+e*.1192+r*.9505;return[s*100,a*100,o*100]};c.rgb.lab=function(t){let n=c.rgb.xyz(t),e=n[0],r=n[1],s=n[2];e/=95.047,r/=100,s/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let a=116*r-16,o=500*(e-r),i=200*(r-s);return[a,o,i]};c.hsl.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100,s,a,o;if(e===0)return o=r*255,[o,o,o];r<.5?s=r*(1+e):s=r+e-r*e;let i=2*r-s,l=[0,0,0];for(let h=0;h<3;h++)a=n+1/3*-(h-1),a<0&&a++,a>1&&a--,6*a<1?o=i+(s-i)*6*a:2*a<1?o=s:3*a<2?o=i+(s-i)*(2/3-a)*6:o=i,l[h]=o*255;return l};c.hsl.hsv=function(t){let n=t[0],e=t[1]/100,r=t[2]/100,s=e,a=Math.max(r,.01);r*=2,e*=r<=1?r:2-r,s*=a<=1?a:2-a;let o=(r+e)/2,i=r===0?2*s/(a+s):2*e/(r+e);return[n,i*100,o*100]};c.hsv.rgb=function(t){let n=t[0]/60,e=t[1]/100,r=t[2]/100,s=Math.floor(n)%6,a=n-Math.floor(n),o=255*r*(1-e),i=255*r*(1-e*a),l=255*r*(1-e*(1-a));switch(r*=255,s){case 0:return[r,l,o];case 1:return[i,r,o];case 2:return[o,r,l];case 3:return[o,i,r];case 4:return[l,o,r];case 5:return[r,o,i]}};c.hsv.hsl=function(t){let n=t[0],e=t[1]/100,r=t[2]/100,s=Math.max(r,.01),a,o;o=(2-e)*r;let i=(2-e)*s;return a=e*s,a/=i<=1?i:2-i,a=a||0,o/=2,[n,a*100,o*100]};c.hwb.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100,s=e+r,a;s>1&&(e/=s,r/=s);let o=Math.floor(6*n),i=1-r;a=6*n-o,o&1&&(a=1-a);let l=e+a*(i-e),h,b,m;switch(o){default:case 6:case 0:h=i,b=l,m=e;break;case 1:h=l,b=i,m=e;break;case 2:h=e,b=i,m=l;break;case 3:h=e,b=l,m=i;break;case 4:h=l,b=e,m=i;break;case 5:h=i,b=e,m=l;break}return[h*255,b*255,m*255]};c.cmyk.rgb=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,s=t[3]/100,a=1-Math.min(1,n*(1-s)+s),o=1-Math.min(1,e*(1-s)+s),i=1-Math.min(1,r*(1-s)+s);return[a*255,o*255,i*255]};c.xyz.rgb=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,s,a,o;return s=n*3.2406+e*-1.5372+r*-.4986,a=n*-.9689+e*1.8758+r*.0415,o=n*.0557+e*-.204+r*1.057,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=Math.min(Math.max(0,s),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[s*255,a*255,o*255]};c.xyz.lab=function(t){let n=t[0],e=t[1],r=t[2];n/=95.047,e/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;let s=116*e-16,a=500*(n-e),o=200*(e-r);return[s,a,o]};c.lab.xyz=function(t){let n=t[0],e=t[1],r=t[2],s,a,o;a=(n+16)/116,s=e/500+a,o=a-r/200;let i=a**3,l=s**3,h=o**3;return a=i>.008856?i:(a-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,s*=95.047,a*=100,o*=108.883,[s,a,o]};c.lab.lch=function(t){let n=t[0],e=t[1],r=t[2],s;s=Math.atan2(r,e)*360/2/Math.PI,s<0&&(s+=360);let o=Math.sqrt(e*e+r*r);return[n,o,s]};c.lch.lab=function(t){let n=t[0],e=t[1],s=t[2]/360*2*Math.PI,a=e*Math.cos(s),o=e*Math.sin(s);return[n,a,o]};c.rgb.ansi16=function(t,n=null){let[e,r,s]=t,a=n===null?c.rgb.hsv(t)[2]:n;if(a=Math.round(a/50),a===0)return 30;let o=30+(Math.round(s/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return a===2&&(o+=60),o};c.hsv.ansi16=function(t){return c.rgb.ansi16(c.hsv.rgb(t),t[2])};c.rgb.ansi256=function(t){let n=t[0],e=t[1],r=t[2];return n===e&&e===r?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5)};c.ansi16.rgb=function(t){let n=t%10;if(n===0||n===7)return t>50&&(n+=3.5),n=n/10.5*255,[n,n,n];let e=(~~(t>50)+1)*.5,r=(n&1)*e*255,s=(n>>1&1)*e*255,a=(n>>2&1)*e*255;return[r,s,a]};c.ansi256.rgb=function(t){if(t>=232){let a=(t-232)*10+8;return[a,a,a]}t-=16;let n,e=Math.floor(t/36)/5*255,r=Math.floor((n=t%36)/6)/5*255,s=n%6/5*255;return[e,r,s]};c.rgb.hex=function(t){let e=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(e.length)+e};c.hex.rgb=function(t){let n=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];let e=n[0];n[0].length===3&&(e=e.split("").map(i=>i+i).join(""));let r=parseInt(e,16),s=r>>16&255,a=r>>8&255,o=r&255;return[s,a,o]};c.rgb.hcg=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,s=Math.max(Math.max(n,e),r),a=Math.min(Math.min(n,e),r),o=s-a,i,l;return o<1?i=a/(1-o):i=0,o<=0?l=0:s===n?l=(e-r)/o%6:s===e?l=2+(r-n)/o:l=4+(n-e)/o,l/=6,l%=1,[l*360,o*100,i*100]};c.hsl.hcg=function(t){let n=t[1]/100,e=t[2]/100,r=e<.5?2*n*e:2*n*(1-e),s=0;return r<1&&(s=(e-.5*r)/(1-r)),[t[0],r*100,s*100]};c.hsv.hcg=function(t){let n=t[1]/100,e=t[2]/100,r=n*e,s=0;return r<1&&(s=(e-r)/(1-r)),[t[0],r*100,s*100]};c.hcg.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100;if(e===0)return[r*255,r*255,r*255];let s=[0,0,0],a=n%1*6,o=a%1,i=1-o,l=0;switch(Math.floor(a)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=i,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=i,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=i}return l=(1-e)*r,[(e*s[0]+l)*255,(e*s[1]+l)*255,(e*s[2]+l)*255]};c.hcg.hsv=function(t){let n=t[1]/100,e=t[2]/100,r=n+e*(1-n),s=0;return r>0&&(s=n/r),[t[0],s*100,r*100]};c.hcg.hsl=function(t){let n=t[1]/100,r=t[2]/100*(1-n)+.5*n,s=0;return r>0&&r<.5?s=n/(2*r):r>=.5&&r<1&&(s=n/(2*(1-r))),[t[0],s*100,r*100]};c.hcg.hwb=function(t){let n=t[1]/100,e=t[2]/100,r=n+e*(1-n);return[t[0],(r-n)*100,(1-r)*100]};c.hwb.hcg=function(t){let n=t[1]/100,r=1-t[2]/100,s=r-n,a=0;return s<1&&(a=(r-s)/(1-s)),[t[0],s*100,a*100]};c.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};c.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};c.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};c.gray.hsl=function(t){return[0,0,t[0]]};c.gray.hsv=c.gray.hsl;c.gray.hwb=function(t){return[0,100,t[0]]};c.gray.cmyk=function(t){return[0,0,0,t[0]]};c.gray.lab=function(t){return[t[0],0,0]};c.gray.hex=function(t){let n=Math.round(t[0]/100*255)&255,r=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(r.length)+r};c.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var Q=w((Bt,Z)=>{var z=R();function bt(){let t={},n=Object.keys(z);for(let e=n.length,r=0;r<e;r++)t[n[r]]={distance:-1,parent:null};return t}function vt(t){let n=bt(),e=[t];for(n[t].distance=0;e.length;){let r=e.pop(),s=Object.keys(z[r]);for(let a=s.length,o=0;o<a;o++){let i=s[o],l=n[i];l.distance===-1&&(l.distance=n[r].distance+1,l.parent=r,e.unshift(i))}}return n}function yt(t,n){return function(e){return n(t(e))}}function mt(t,n){let e=[n[t].parent,t],r=z[n[t].parent][t],s=n[t].parent;for(;n[s].parent;)e.unshift(n[s].parent),r=yt(z[n[s].parent][s],r),s=n[s].parent;return r.conversion=e,r}Z.exports=function(t){let n=vt(t),e={},r=Object.keys(n);for(let s=r.length,a=0;a<s;a++){let o=r[a];n[o].parent!==null&&(e[o]=mt(o,n))}return e}});var tt=w((Nt,V)=>{var _=R(),wt=Q(),k={},St=Object.keys(_);function kt(t){let n=function(...e){let r=e[0];return r==null?r:(r.length>1&&(e=r),t(e))};return"conversion"in t&&(n.conversion=t.conversion),n}function xt(t){let n=function(...e){let r=e[0];if(r==null)return r;r.length>1&&(e=r);let s=t(e);if(typeof s=="object")for(let a=s.length,o=0;o<a;o++)s[o]=Math.round(s[o]);return s};return"conversion"in t&&(n.conversion=t.conversion),n}St.forEach(t=>{k[t]={},Object.defineProperty(k[t],"channels",{value:_[t].channels}),Object.defineProperty(k[t],"labels",{value:_[t].labels});let n=wt(t);Object.keys(n).forEach(r=>{let s=n[r];k[t][r]=xt(s),k[t][r].raw=kt(s)})});V.exports=k});var rt=w((Pt,et)=>{var x=J(),y=tt(),nt=["keyword","gray","hex"],$={};for(let t of Object.keys(y))$[[...y[t].labels].sort().join("")]=t;var L={};function p(t,n){if(!(this instanceof p))return new p(t,n);if(n&&n in nt&&(n=null),n&&!(n in y))throw new Error("Unknown model: "+n);let e,r;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof p)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){let s=x.get(t);if(s===null)throw new Error("Unable to parse color from string: "+t);this.model=s.model,r=y[this.model].channels,this.color=s.value.slice(0,r),this.valpha=typeof s.value[r]=="number"?s.value[r]:1}else if(t.length>0){this.model=n||"rgb",r=y[this.model].channels;let s=Array.prototype.slice.call(t,0,r);this.color=q(s,r),this.valpha=typeof t[r]=="number"?t[r]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;let s=Object.keys(t);"alpha"in t&&(s.splice(s.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);let a=s.sort().join("");if(!(a in $))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=$[a];let{labels:o}=y[this.model],i=[];for(e=0;e<o.length;e++)i.push(t[o[e]]);this.color=q(i)}if(L[this.model])for(r=y[this.model].channels,e=0;e<r;e++){let s=L[this.model][e];s&&(this.color[e]=s(this.color[e]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}p.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let n=this.model in x.to?this:this.rgb();n=n.round(typeof t=="number"?t:1);let e=n.valpha===1?n.color:[...n.color,this.valpha];return x.to[n.model](e)},percentString(t){let n=this.rgb().round(typeof t=="number"?t:1),e=n.valpha===1?n.color:[...n.color,this.valpha];return x.to.rgb.percent(e)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let t={},{channels:n}=y[this.model],{labels:e}=y[this.model];for(let r=0;r<n;r++)t[e[r]]=this.color[r];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){let t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){let t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new p([...this.color.map(At(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new p([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:u("rgb",0,g(255)),green:u("rgb",1,g(255)),blue:u("rgb",2,g(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:u("hsl",1,g(100)),lightness:u("hsl",2,g(100)),saturationv:u("hsv",1,g(100)),value:u("hsv",2,g(100)),chroma:u("hcg",1,g(100)),gray:u("hcg",2,g(100)),white:u("hwb",1,g(100)),wblack:u("hwb",2,g(100)),cyan:u("cmyk",0,g(100)),magenta:u("cmyk",1,g(100)),yellow:u("cmyk",2,g(100)),black:u("cmyk",3,g(100)),x:u("xyz",0,g(95.047)),y:u("xyz",1,g(100)),z:u("xyz",2,g(108.833)),l:u("lab",0,g(100)),a:u("lab",1),b:u("lab",2),keyword(t){return t!==void 0?new p(t):y[this.model].keyword(this.color)},hex(t){return t!==void 0?new p(t):x.to.hex(this.rgb().round().color)},hexa(t){if(t!==void 0)return new p(t);let n=this.rgb().round().color,e=Math.round(this.valpha*255).toString(16).toUpperCase();return e.length===1&&(e="0"+e),x.to.hex(n)+e},rgbNumber(){let t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){let t=this.rgb().color,n=[];for(let[e,r]of t.entries()){let s=r/255;n[e]=s<=.04045?s/12.92:((s+.055)/1.055)**2.4}return .2126*n[0]+.7152*n[1]+.0722*n[2]},contrast(t){let n=this.luminosity(),e=t.luminosity();return n>e?(n+.05)/(e+.05):(e+.05)/(n+.05)},level(t){let n=this.contrast(t);return n>=7?"AAA":n>=4.5?"AA":""},isDark(){let t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let t=this.rgb();for(let n=0;n<3;n++)t.color[n]=255-t.color[n];return t},lighten(t){let n=this.hsl();return n.color[2]+=n.color[2]*t,n},darken(t){let n=this.hsl();return n.color[2]-=n.color[2]*t,n},saturate(t){let n=this.hsl();return n.color[1]+=n.color[1]*t,n},desaturate(t){let n=this.hsl();return n.color[1]-=n.color[1]*t,n},whiten(t){let n=this.hwb();return n.color[1]+=n.color[1]*t,n},blacken(t){let n=this.hwb();return n.color[2]+=n.color[2]*t,n},grayscale(){let t=this.rgb().color,n=t[0]*.3+t[1]*.59+t[2]*.11;return p.rgb(n,n,n)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){let n=this.hsl(),e=n.color[0];return e=(e+t)%360,e=e<0?360+e:e,n.color[0]=e,n},mix(t,n){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);let e=t.rgb(),r=this.rgb(),s=n===void 0?.5:n,a=2*s-1,o=e.alpha()-r.alpha(),i=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,l=1-i;return p.rgb(i*e.red()+l*r.red(),i*e.green()+l*r.green(),i*e.blue()+l*r.blue(),e.alpha()*s+r.alpha()*(1-s))}};for(let t of Object.keys(y)){if(nt.includes(t))continue;let{channels:n}=y[t];p.prototype[t]=function(...e){return this.model===t?new p(this):e.length>0?new p(e,t):new p([...Ft(y[this.model][t].raw(this.color)),this.valpha],t)},p[t]=function(...e){let r=e[0];return typeof r=="number"&&(r=q(e,n)),new p(r,t)}}function Mt(t,n){return Number(t.toFixed(n))}function At(t){return function(n){return Mt(n,t)}}function u(t,n,e){t=Array.isArray(t)?t:[t];for(let r of t)(L[r]||(L[r]=[]))[n]=e;return t=t[0],function(r){let s;return r!==void 0?(e&&(r=e(r)),s=this[t](),s.color[n]=r,s):(s=this[t]().color[n],e&&(s=e(s)),s)}}function g(t){return function(n){return Math.max(0,Math.min(t,n))}}function Ft(t){return Array.isArray(t)?t:[t]}function q(t,n){for(let e=0;e<n;e++)typeof t[e]!="number"&&(t[e]=0);return t}et.exports=p});var at=ut(rt(),1);var Tt={channel:"channel",channels:"channels",colorField:"color-field",colorFieldScope:"scope--color-field",colorMode:"color-mode",colorModeContainer:"color-mode-container",container:"container",control:"control",controlAndScope:"control-and-scope",controlSection:"control-section",deleteColor:"delete-color",header:"header",hexAndChannelsGroup:"hex-and-channels-group",hexOptions:"color-hex-options",hueScope:"scope--hue",hueSlider:"hue-slider",opacityScope:"scope--opacity",opacitySlider:"opacity-slider",preview:"preview",previewAndSliders:"preview-and-sliders",saveColor:"save-color",savedColor:"saved-color",savedColors:"saved-colors",savedColorsButtons:"saved-colors-buttons",savedColorsSection:"saved-colors-section",scope:"scope",section:"section",slider:"slider",sliders:"sliders",splitSection:"section--split"},Dt=(0,at.default)("#007AC2"),Ut="calcite-color-",Wt={r:255,g:255,b:255},Ct={h:360,s:100,v:100},Xt=Ct.h-1,Kt={min:0,max:100},Ht={s:{slider:{height:12,width:104},colorField:{height:80,width:160},thumb:{radius:7},preview:{size:20}},m:{slider:{height:12,width:204},colorField:{height:150,width:272},thumb:{radius:7},preview:{size:24}},l:{slider:{height:12,width:384},colorField:{height:200,width:464},thumb:{radius:7},preview:{size:32}}},Jt=1,Yt=/^[0-9A-F]$/i,Ot=/^#[0-9A-F]{3}$/i,zt=/^#[0-9A-F]{6}$/i,Lt=/^#[0-9A-F]{4}$/i,Et=/^#[0-9A-F]{8}$/i,jt=t=>Number((t*100).toFixed()),Zt=t=>Number((t/100).toFixed(2));function it(t,n=!1){return G(t,n)||It(t,n)}function lt(t,n,e){return t?t.length===n&&e.test(t):!1}function G(t,n=!1){return lt(t,n?5:4,n?Lt:Ot)}function It(t,n=!1){return lt(t,n?9:7,n?Et:zt)}function Qt(t,n=!1,e=!1){if(t=t.toLowerCase(),t.startsWith("#")||(t=`#${t}`),G(t,n))return st(ot(t,n));if(n&&e&&it(t,!1)){let r=G(t,!1);return st(ot(`${t}${r?"f":"ff"}`,!0))}return t}function Vt(t,n=!1){return n?t.hexa():t.hex()}function st(t){let{r:n,g:e,b:r}=t,s=E(n),a=E(e),o=E(r),i="a"in t?E(t.a*255):"";return`#${s}${a}${o}${i}`.toLowerCase()}function E(t){return t.toString(16).padStart(2,"0")}function tn(t){let n={...t,a:t.alpha??1};return delete n.alpha,n}function nn(t){let n={...t,alpha:t.a??1};return delete n.a,n}function ot(t,n=!1){if(!it(t,n))return null;t=t.replace("#","");let e,r,s,a;if(t.length===3||t.length===4){let[i,l,h,b]=t.split("");e=parseInt(`${i}${i}`,16),r=parseInt(`${l}${l}`,16),s=parseInt(`${h}${h}`,16),a=parseInt(`${b}${b}`,16)/255}else e=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),s=parseInt(t.slice(4,6),16),a=parseInt(t.slice(6,8),16)/255;return isNaN(a)?{r:e,g:r,b:s}:{r:e,g:r,b:s,a}}var ct=t=>t,f=ct({HEX:"hex",HEXA:"hexa",RGB_CSS:"rgb-css",RGBA_CSS:"rgba-css",HSL_CSS:"hsl-css",HSLA_CSS:"hsla-css"}),d=ct({RGB:"rgb",RGBA:"rgba",HSL:"hsl",HSLA:"hsla",HSV:"hsv",HSVA:"hsva"});function en(t){if(typeof t=="string"){if(t.startsWith("#")){let{length:n}=t;if(n===4||n===7)return f.HEX;if(n===5||n===9)return f.HEXA}if(t.startsWith("rgba("))return f.RGBA_CSS;if(t.startsWith("rgb("))return f.RGB_CSS;if(t.startsWith("hsl("))return f.HSL_CSS;if(t.startsWith("hsla("))return f.HSLA_CSS}if(typeof t=="object"){if(M(t,"r","g","b"))return M(t,"a")?d.RGBA:d.RGB;if(M(t,"h","s","l"))return M(t,"a")?d.HSLA:d.HSL;if(M(t,"h","s","v"))return M(t,"a")?d.HSVA:d.HSV}return null}function M(t,...n){return n.every(e=>e&&t&&`${e}`in t)}function rn(t,n){return t?.rgb().array().toString()===n?.rgb().array().toString()}function sn(t){return t===f.HEXA||t===f.RGBA_CSS||t===f.HSLA_CSS||t===d.RGBA||t===d.HSLA||t===d.HSVA}function on(t){return t===f.HEX?f.HEXA:t===f.RGB_CSS?f.RGBA_CSS:t===f.HSL_CSS?f.HSLA_CSS:t===d.RGB?d.RGBA:t===d.HSL?d.HSLA:t===d.HSV?d.HSVA:t}function an(t){return t===f.HEXA?f.HEX:t===f.RGBA_CSS?f.RGB_CSS:t===f.HSLA_CSS?f.HSL_CSS:t===d.RGBA?d.RGB:t===d.HSLA?d.HSL:t===d.HSVA?d.HSV:t}function ln(t,n){let{slider:{width:e},preview:r}=t;if(n)return e;let s=Ht.l.preview.size-r.size;return e+s}export{rt as a,Tt as b,Dt as c,Ut as d,Wt as e,Ct as f,Xt as g,Kt as h,Ht as i,Jt as j,Yt as k,jt as l,Zt as m,it as n,G as o,It as p,Qt as q,Vt as r,st as s,tn as t,nn as u,ot as v,f as w,en as x,rn as y,sn as z,on as A,an as B,ln as C};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.23
|
|
5
5
|
*/
|
|
6
|
-
import{a as ct,b as V,c as D,d as F,e as W,f as lt,g as Ft,h as at,i as Z,j as Mt,k as wt,l as tt,m as M,n as et,o as K,q as ft,r as yt}from"./ZG6CQJWF.js";import{a as Dt}from"./ZSRRC5GT.js";import{j as Lt}from"./JDIXK7FL.js";import{G as pt,J as xt}from"./DNIAJJSF.js";var vt=["top","right","bottom","left"],kt=["start","end"],bt=vt.reduce((t,e)=>t.concat(e,e+"-"+kt[0],e+"-"+kt[1]),[]),_=Math.min,N=Math.max,ot=Math.round,st=Math.floor,E=t=>({x:t,y:t}),he={left:"right",right:"left",bottom:"top",top:"bottom"},pe={start:"end",end:"start"};function ut(t,e,n){return N(t,_(e,n))}function U(t,e){return typeof t=="function"?t(e):t}function k(t){return t.split("-")[0]}function T(t){return t.split("-")[1]}function At(t){return t==="x"?"y":"x"}function dt(t){return t==="y"?"height":"width"}function Y(t){return["top","bottom"].includes(k(t))?"y":"x"}function mt(t){return At(Y(t))}function Ot(t,e,n){n===void 0&&(n=!1);let i=T(t),o=mt(t),r=dt(o),s=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=it(s)),[s,it(s)]}function Bt(t){let e=it(t);return[nt(t),e,nt(e)]}function nt(t){return t.replace(/start|end/g,e=>pe[e])}function xe(t,e,n){let i=["left","right"],o=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?r:s;default:return[]}}function $t(t,e,n,i){let o=T(t),r=xe(k(t),n==="start",i);return o&&(r=r.map(s=>s+"-"+o),e&&(r=r.concat(r.map(nt)))),r}function it(t){return t.replace(/left|right|bottom|top/g,e=>he[e])}function we(t){return{top:0,right:0,bottom:0,left:0,...t}}function Rt(t){return typeof t!="number"?we(t):{top:t,right:t,bottom:t,left:t}}function X(t){let{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function Wt(t,e,n){let{reference:i,floating:o}=t,r=Y(e),s=mt(e),c=dt(s),l=k(e),a=r==="y",d=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,m=i[c]/2-o[c]/2,f;switch(l){case"top":f={x:d,y:i.y-o.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:u};break;case"left":f={x:i.x-o.width,y:u};break;default:f={x:i.x,y:i.y}}switch(T(e)){case"start":f[s]-=m*(n&&a?-1:1);break;case"end":f[s]+=m*(n&&a?-1:1);break}return f}var zt=async(t,e,n)=>{let{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e)),a=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:u}=Wt(a,i,l),m=i,f={},g=0;for(let h=0;h<c.length;h++){let{name:x,fn:p}=c[h],{x:w,y,data:b,reset:v}=await p({x:d,y:u,initialPlacement:i,placement:m,strategy:o,middlewareData:f,rects:a,platform:s,elements:{reference:t,floating:e}});d=w??d,u=y??u,f={...f,[x]:{...f[x],...b}},v&&g<=50&&(g++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):v.rects),{x:d,y:u}=Wt(a,m,l)),h=-1)}return{x:d,y:u,placement:m,strategy:o,middlewareData:f}};async function J(t,e){var n;e===void 0&&(e={});let{x:i,y:o,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:f=0}=U(e,t),g=Rt(f),x=c[m?u==="floating"?"reference":"floating":u],p=X(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(x)))==null||n?x:x.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:d,strategy:l})),w=u==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),b=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},v=X(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:y,strategy:l}):w);return{top:(p.top-v.top+g.top)/b.y,bottom:(v.bottom-p.bottom+g.bottom)/b.y,left:(p.left-v.left+g.left)/b.x,right:(v.right-p.right+g.right)/b.x}}var It=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:o,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:d=0}=U(t,e)||{};if(a==null)return{};let u=Rt(d),m={x:n,y:i},f=mt(o),g=dt(f),h=await s.getDimensions(a),x=f==="y",p=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",b=r.reference[g]+r.reference[f]-m[f]-r.floating[g],v=m[f]-r.reference[f],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a)),P=O?O[y]:0;(!P||!await(s.isElement==null?void 0:s.isElement(O)))&&(P=c.floating[y]||r.floating[g]);let H=b/2-v/2,C=P/2-h[g]/2-1,A=_(u[p],C),S=_(u[w],C),B=A,j=P-h[g]-S,R=P/2-h[g]/2+H,G=ut(B,R,j),$=!l.arrow&&T(o)!=null&&R!==G&&r.reference[g]/2-(R<B?A:S)-h[g]/2<0,L=$?R<B?R-B:R-j:0;return{[f]:m[f]+L,data:{[f]:G,centerOffset:R-G-L,...$&&{alignmentOffset:L}},reset:$}}});function ye(t,e,n){return(t?[...n.filter(o=>T(o)===t),...n.filter(o=>T(o)!==t)]:n.filter(o=>k(o)===o)).filter(o=>t?T(o)===t||(e?nt(o)!==o:!1):!0)}var Vt=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,o;let{rects:r,middlewareData:s,placement:c,platform:l,elements:a}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:m=bt,autoAlignment:f=!0,...g}=U(t,e),h=u!==void 0||m===bt?ye(u||null,f,m):m,x=await J(e,g),p=((n=s.autoPlacement)==null?void 0:n.index)||0,w=h[p];if(w==null)return{};let y=Ot(w,r,await(l.isRTL==null?void 0:l.isRTL(a.floating)));if(c!==w)return{reset:{placement:h[0]}};let b=[x[k(w)],x[y[0]],x[y[1]]],v=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:w,overflows:b}],O=h[p+1];if(O)return{data:{index:p+1,overflows:v},reset:{placement:O}};let P=v.map(A=>{let S=T(A.placement);return[A.placement,S&&d?A.overflows.slice(0,2).reduce((B,j)=>B+j,0):A.overflows[0],A.overflows]}).sort((A,S)=>A[1]-S[1]),C=((o=P.filter(A=>A[2].slice(0,T(A[0])?2:3).every(S=>S<=0))[0])==null?void 0:o[0])||P[0][0];return C!==c?{data:{index:p+1,overflows:v},reset:{placement:C}}:{}}}},_t=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;let{placement:o,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...x}=U(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};let p=k(o),w=Y(c),y=k(c)===c,b=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(y||!h?[it(c)]:Bt(c)),O=g!=="none";!m&&O&&v.push(...$t(c,h,g,b));let P=[c,...v],H=await J(e,x),C=[],A=((i=r.flip)==null?void 0:i.overflows)||[];if(d&&C.push(H[p]),u){let R=Ot(o,s,b);C.push(H[R[0]],H[R[1]])}if(A=[...A,{placement:o,overflows:C}],!C.every(R=>R<=0)){var S,B;let R=(((S=r.flip)==null?void 0:S.index)||0)+1,G=P[R];if(G)return{data:{index:R,overflows:A},reset:{placement:G}};let $=(B=A.filter(L=>L.overflows[0]<=0).sort((L,z)=>L.overflows[1]-z.overflows[1])[0])==null?void 0:B.placement;if(!$)switch(f){case"bestFit":{var j;let L=(j=A.filter(z=>{if(O){let I=Y(z.placement);return I===w||I==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(I=>I>0).reduce((I,ge)=>I+ge,0)]).sort((z,I)=>z[1]-I[1])[0])==null?void 0:j[0];L&&($=L);break}case"initialPlacement":$=c;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Nt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ht(t){return vt.some(e=>t[e]>=0)}var Ut=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:i="referenceHidden",...o}=U(t,e);switch(i){case"referenceHidden":{let r=await J(e,{...o,elementContext:"reference"}),s=Nt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ht(s)}}}case"escaped":{let r=await J(e,{...o,altBoundary:!0}),s=Nt(r,n.floating);return{data:{escapedOffsets:s,escaped:Ht(s)}}}default:return{}}}}};async function ve(t,e){let{placement:n,platform:i,elements:o}=t,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),s=k(n),c=T(n),l=Y(n)==="y",a=["left","top"].includes(s)?-1:1,d=r&&l?-1:1,u=U(e,t),{mainAxis:m,crossAxis:f,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof g=="number"&&(f=c==="end"?g*-1:g),l?{x:f*d,y:m*a}:{x:m*a,y:f*d}}var jt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:o,y:r,placement:s,middlewareData:c}=e,l=await ve(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:s}}}}},Yt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:o}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:x=>{let{x:p,y:w}=x;return{x:p,y:w}}},...l}=U(t,e),a={x:n,y:i},d=await J(e,l),u=Y(k(o)),m=At(u),f=a[m],g=a[u];if(r){let x=m==="y"?"top":"left",p=m==="y"?"bottom":"right",w=f+d[x],y=f-d[p];f=ut(w,f,y)}if(s){let x=u==="y"?"top":"left",p=u==="y"?"bottom":"right",w=g+d[x],y=g-d[p];g=ut(w,g,y)}let h=c.fn({...e,[m]:f,[u]:g});return{...h,data:{x:h.x-n,y:h.y-i,enabled:{[m]:r,[u]:s}}}}}};function Gt(t){let e=M(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=W(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,c=ot(n)!==r||ot(i)!==s;return c&&(n=r,i=s),{width:n,height:i,$:c}}function Ct(t){return F(t)?t:t.contextElement}function Q(t){let e=Ct(t);if(!W(e))return E(1);let n=e.getBoundingClientRect(),{width:i,height:o,$:r}=Gt(e),s=(r?ot(n.width):n.width)/i,c=(r?ot(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var be=E(0);function Kt(t){let e=V(t);return!wt()||!e.visualViewport?be:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ae(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==V(t)?!1:e}function q(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);let o=t.getBoundingClientRect(),r=Ct(t),s=E(1);e&&(i?F(i)&&(s=Q(i)):s=Q(t));let c=Ae(r,n,i)?Kt(r):E(0),l=(o.left+c.x)/s.x,a=(o.top+c.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(r){let m=V(r),f=i&&F(i)?V(i):i,g=m,h=yt(g);for(;h&&i&&f!==g;){let x=Q(h),p=h.getBoundingClientRect(),w=M(h),y=p.left+(h.clientLeft+parseFloat(w.paddingLeft))*x.x,b=p.top+(h.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,a*=x.y,d*=x.x,u*=x.y,l+=y,a+=b,g=V(h),h=yt(g)}}return X({width:d,height:u,x:l,y:a})}function St(t,e){let n=et(t).scrollLeft;return e?e.left+n:q(D(t)).left+n}function Jt(t,e,n){n===void 0&&(n=!1);let i=t.getBoundingClientRect(),o=i.left+e.scrollLeft-(n?0:St(t,i)),r=i.top+e.scrollTop;return{x:o,y:r}}function Oe(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t,r=o==="fixed",s=D(i),c=e?at(e.floating):!1;if(i===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},a=E(1),d=E(0),u=W(i);if((u||!u&&!r)&&((ct(i)!=="body"||lt(s))&&(l=et(i)),W(i))){let f=q(i);a=Q(i),d.x=f.x+i.clientLeft,d.y=f.y+i.clientTop}let m=s&&!u&&!r?Jt(s,l,!0):E(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+d.x+m.x,y:n.y*a.y-l.scrollTop*a.y+d.y+m.y}}function Re(t){return Array.from(t.getClientRects())}function Pe(t){let e=D(t),n=et(t),i=t.ownerDocument.body,o=N(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=N(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+St(t),c=-n.scrollTop;return M(i).direction==="rtl"&&(s+=N(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:c}}function Ce(t,e){let n=V(t),i=D(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,c=0,l=0;if(o){r=o.width,s=o.height;let a=wt();(!a||a&&e==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:c,y:l}}function Se(t,e){let n=q(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=W(t)?Q(t):E(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=o*r.x,a=i*r.y;return{width:s,height:c,x:l,y:a}}function Xt(t,e,n){let i;if(e==="viewport")i=Ce(t,n);else if(e==="document")i=Pe(D(t));else if(F(e))i=Se(e,n);else{let o=Kt(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return X(i)}function Qt(t,e){let n=K(t);return n===e||!F(n)||tt(n)?!1:M(n).position==="fixed"||Qt(n,e)}function Ee(t,e){let n=e.get(t);if(n)return n;let i=ft(t,[],!1).filter(c=>F(c)&&ct(c)!=="body"),o=null,r=M(t).position==="fixed",s=r?K(t):t;for(;F(s)&&!tt(s);){let c=M(s),l=Z(s);!l&&c.position==="fixed"&&(o=null),(r?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||lt(s)&&!l&&Qt(t,s))?i=i.filter(d=>d!==s):o=c,s=K(s)}return e.set(t,i),i}function Te(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t,s=[...n==="clippingAncestors"?at(e)?[]:Ee(e,this._c):[].concat(n),i],c=s[0],l=s.reduce((a,d)=>{let u=Xt(e,d,o);return a.top=N(u.top,a.top),a.right=_(u.right,a.right),a.bottom=_(u.bottom,a.bottom),a.left=N(u.left,a.left),a},Xt(e,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Le(t){let{width:e,height:n}=Gt(t);return{width:e,height:n}}function De(t,e,n){let i=W(e),o=D(e),r=n==="fixed",s=q(t,!0,r,e),c={scrollLeft:0,scrollTop:0},l=E(0);if(i||!i&&!r)if((ct(e)!=="body"||lt(o))&&(c=et(e)),i){let m=q(e,!0,r,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else o&&(l.x=St(o));let a=o&&!i&&!r?Jt(o,c):E(0),d=s.left+c.scrollLeft-l.x-a.x,u=s.top+c.scrollTop-l.y-a.y;return{x:d,y:u,width:s.width,height:s.height}}function Pt(t){return M(t).position==="static"}function qt(t,e){if(!W(t)||M(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return D(t)===n&&(n=n.ownerDocument.body),n}function Zt(t,e){let n=V(t);if(at(t))return n;if(!W(t)){let o=K(t);for(;o&&!tt(o);){if(F(o)&&!Pt(o))return o;o=K(o)}return n}let i=qt(t,e);for(;i&&Ft(i)&&Pt(i);)i=qt(i,e);return i&&tt(i)&&Pt(i)&&!Z(i)?n:i||Mt(t)||n}var Fe=async function(t){let e=this.getOffsetParent||Zt,n=this.getDimensions,i=await n(t.floating);return{reference:De(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Me(t){return M(t).direction==="rtl"}var gt={convertOffsetParentRelativeRectToViewportRelativeRect:Oe,getDocumentElement:D,getClippingRect:Te,getOffsetParent:Zt,getElementRects:Fe,getClientRects:Re,getDimensions:Le,getScale:Q,isElement:F,isRTL:Me};function ke(t,e){let n=null,i,o=D(t);function r(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();let{left:a,top:d,width:u,height:m}=t.getBoundingClientRect();if(c||e(),!u||!m)return;let f=st(d),g=st(o.clientWidth-(a+u)),h=st(o.clientHeight-(d+m)),x=st(a),w={rootMargin:-f+"px "+-g+"px "+-h+"px "+-x+"px",threshold:N(0,_(1,l))||1},y=!0;function b(v){let O=v[0].intersectionRatio;if(O!==l){if(!y)return s();O?s(!1,O):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(b,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,w)}n.observe(t)}return s(!0),r}function te(t,e,n,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,a=Ct(t),d=o||r?[...a?ft(a):[],...ft(e)]:[];d.forEach(p=>{o&&p.addEventListener("scroll",n,{passive:!0}),r&&p.addEventListener("resize",n)});let u=a&&c?ke(a,n):null,m=-1,f=null;s&&(f=new ResizeObserver(p=>{let[w]=p;w&&w.target===a&&f&&(f.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(e)})),n()}),a&&!l&&f.observe(a),f.observe(e));let g,h=l?q(t):null;l&&x();function x(){let p=q(t);h&&(p.x!==h.x||p.y!==h.y||p.width!==h.width||p.height!==h.height)&&n(),h=p,g=requestAnimationFrame(x)}return n(),()=>{var p;d.forEach(w=>{o&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),u?.(),(p=f)==null||p.disconnect(),f=null,l&&cancelAnimationFrame(g)}}var ee=jt,ne=Vt,ie=Yt,Et=_t;var oe=Ut,se=It;var re=(t,e,n)=>{let i=new Map,o={platform:gt,...n},r={...o.platform,_c:i};return zt(t,e,{...o,platform:r})};function ce(t){return Be(t)}function Tt(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Be(t){for(let e=t;e;e=Tt(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Tt(t);e;e=Tt(e)){if(!(e instanceof Element))continue;let n=getComputedStyle(e);if(n.display!=="contents"&&(n.position!=="static"||Z(n)||e.tagName==="BODY"))return e}return null}(function(){if(xt()){let e=gt.getOffsetParent;gt.getOffsetParent=n=>e(n,ce)}})();function le(t){let e=window.devicePixelRatio||1;return Math.round(t*e)/e}var de=async(t,{referenceEl:e,floatingEl:n,overlayPositioning:i="absolute",placement:o,flipDisabled:r,flipPlacements:s,offsetDistance:c,offsetSkidding:l,arrowEl:a,type:d})=>{if(!e||!n)return;let u=Lt(n)==="rtl",{x:m,y:f,placement:g,strategy:h,middlewareData:x}=await re(e,n,{strategy:i,placement:o==="auto"||o==="auto-start"||o==="auto-end"?void 0:fe(o,u),middleware:We({placement:o,flipDisabled:r,flipPlacements:s?.map(b=>fe(b,u)),offsetDistance:c,offsetSkidding:l,arrowEl:a,type:d})});if(a&&x.arrow){let{x:b,y:v}=x.arrow,O=g.split("-")[0],P=b!=null?"left":"top",H=He[O],C={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout=O==="left"||O==="right"?"horizontal":"vertical"),Object.assign(a.style,{...C,[P]:`${P=="left"?b:v}px`,[O]:"100%",transform:H})}let w=x.hide?.referenceHidden?"hidden":null,y=w?"none":null;n.setAttribute($e,g),Object.assign(n.style,{pointerEvents:y,position:h,transform:`translate(${le(m)}px,${le(f)}px)`,visibility:w})},$e="data-placement",ae=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end","leading","trailing","leading-start","leading-end","trailing-start","trailing-end"],cn="bottom-start",ln="bottom-end",an={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active",arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"};function We({placement:t,flipDisabled:e,flipPlacements:n,offsetDistance:i,offsetSkidding:o,arrowEl:r,type:s}){let c=[ie(),oe()];if(s==="menu")return[...c,Et({fallbackPlacements:n||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){let l=[...c,ee({mainAxis:typeof i=="number"?i:0,crossAxis:typeof o=="number"?o:0})];return t==="auto"||t==="auto-start"||t==="auto-end"?l.push(ne({alignment:t==="auto-start"?"start":t==="auto-end"?"end":null})):e||l.push(Et(n?{fallbackPlacements:n}:{})),r&&l.push(se({element:r})),l}return[]}function fn(t,e){let n=t.filter(i=>ae.includes(i));return n.length!==t.length&&console.warn(`${e.tagName}: Invalid value found in: flipPlacements. Try any of these: ${ae.map(i=>`"${i}"`).join(", ").trim()}`,{el:e}),n}function fe(t,e=!1){let n=["left","right"];return e&&n.reverse(),t.replace(/leading/gi,n[0]).replace(/trailing/gi,n[1])}async function un(t,e,n=!1){if(!t.open||!e.floatingEl||!e.referenceEl)return;if(Object.assign(e.floatingEl.style,{display:"block",position:e.overlayPositioning??"absolute"}),!rt.get(t))return me(t);await(n?Ne(t):de)(t,e)}function Ne(t){let e=ht.get(t);return e||(e=Dt(de,pt.reposition,{leading:!0,maxWait:pt.reposition}),ht.set(t,e),e)}var He={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},rt=new WeakMap,ht=new WeakMap;async function me(t){let{referenceEl:e,floatingEl:n}=t;if(!n.isConnected)return;let i=xt()?te:(s,c,l)=>(l(),()=>{});rt.set(t,{state:"pending"});let o,r=i(e,n,()=>{let s=t.reposition();o||(o=s)});return rt.set(t,{state:"active",cleanUp:r}),o}function ze(t){let{floatingEl:e}=t;e&&Object.assign(e.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function dn(t){let{floatingEl:e,referenceEl:n}=t;if(ze(t),!(!e||!n)&&(Ie(t),!!t.open))return me(t)}function Ie(t){let{floatingEl:e,referenceEl:n}=t;if(!e||!n)return;let i=rt.get(t);i?.state==="active"&&i.cleanUp(),rt.delete(t),ht.get(t)?.cancel(),ht.delete(t)}var ue=4,mn=Math.ceil(Math.hypot(ue,ue));export{cn as a,ln as b,an as c,fn as d,un as e,ze as f,dn as g,Ie as h,mn as i};
|
|
6
|
+
import{a as ct,b as V,c as D,d as F,e as W,f as lt,g as Ft,h as at,i as Z,j as Mt,k as wt,l as tt,m as M,n as et,o as K,q as ft,r as yt}from"./YT4W5SKN.js";import{a as Dt}from"./OIE622QI.js";import{j as Lt}from"./EKVZQILU.js";import{G as pt,J as xt}from"./EISQGSOR.js";var vt=["top","right","bottom","left"],kt=["start","end"],bt=vt.reduce((t,e)=>t.concat(e,e+"-"+kt[0],e+"-"+kt[1]),[]),_=Math.min,N=Math.max,ot=Math.round,st=Math.floor,E=t=>({x:t,y:t}),he={left:"right",right:"left",bottom:"top",top:"bottom"},pe={start:"end",end:"start"};function ut(t,e,n){return N(t,_(e,n))}function U(t,e){return typeof t=="function"?t(e):t}function k(t){return t.split("-")[0]}function T(t){return t.split("-")[1]}function At(t){return t==="x"?"y":"x"}function dt(t){return t==="y"?"height":"width"}function Y(t){return["top","bottom"].includes(k(t))?"y":"x"}function mt(t){return At(Y(t))}function Ot(t,e,n){n===void 0&&(n=!1);let i=T(t),o=mt(t),r=dt(o),s=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=it(s)),[s,it(s)]}function Bt(t){let e=it(t);return[nt(t),e,nt(e)]}function nt(t){return t.replace(/start|end/g,e=>pe[e])}function xe(t,e,n){let i=["left","right"],o=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?r:s;default:return[]}}function $t(t,e,n,i){let o=T(t),r=xe(k(t),n==="start",i);return o&&(r=r.map(s=>s+"-"+o),e&&(r=r.concat(r.map(nt)))),r}function it(t){return t.replace(/left|right|bottom|top/g,e=>he[e])}function we(t){return{top:0,right:0,bottom:0,left:0,...t}}function Rt(t){return typeof t!="number"?we(t):{top:t,right:t,bottom:t,left:t}}function X(t){let{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function Wt(t,e,n){let{reference:i,floating:o}=t,r=Y(e),s=mt(e),c=dt(s),l=k(e),a=r==="y",d=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,m=i[c]/2-o[c]/2,f;switch(l){case"top":f={x:d,y:i.y-o.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:u};break;case"left":f={x:i.x-o.width,y:u};break;default:f={x:i.x,y:i.y}}switch(T(e)){case"start":f[s]-=m*(n&&a?-1:1);break;case"end":f[s]+=m*(n&&a?-1:1);break}return f}var zt=async(t,e,n)=>{let{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e)),a=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:u}=Wt(a,i,l),m=i,f={},g=0;for(let h=0;h<c.length;h++){let{name:x,fn:p}=c[h],{x:w,y,data:b,reset:v}=await p({x:d,y:u,initialPlacement:i,placement:m,strategy:o,middlewareData:f,rects:a,platform:s,elements:{reference:t,floating:e}});d=w??d,u=y??u,f={...f,[x]:{...f[x],...b}},v&&g<=50&&(g++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):v.rects),{x:d,y:u}=Wt(a,m,l)),h=-1)}return{x:d,y:u,placement:m,strategy:o,middlewareData:f}};async function J(t,e){var n;e===void 0&&(e={});let{x:i,y:o,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:f=0}=U(e,t),g=Rt(f),x=c[m?u==="floating"?"reference":"floating":u],p=X(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(x)))==null||n?x:x.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:d,strategy:l})),w=u==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),b=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},v=X(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:y,strategy:l}):w);return{top:(p.top-v.top+g.top)/b.y,bottom:(v.bottom-p.bottom+g.bottom)/b.y,left:(p.left-v.left+g.left)/b.x,right:(v.right-p.right+g.right)/b.x}}var It=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:o,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:d=0}=U(t,e)||{};if(a==null)return{};let u=Rt(d),m={x:n,y:i},f=mt(o),g=dt(f),h=await s.getDimensions(a),x=f==="y",p=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",b=r.reference[g]+r.reference[f]-m[f]-r.floating[g],v=m[f]-r.reference[f],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a)),P=O?O[y]:0;(!P||!await(s.isElement==null?void 0:s.isElement(O)))&&(P=c.floating[y]||r.floating[g]);let H=b/2-v/2,C=P/2-h[g]/2-1,A=_(u[p],C),S=_(u[w],C),B=A,j=P-h[g]-S,R=P/2-h[g]/2+H,G=ut(B,R,j),$=!l.arrow&&T(o)!=null&&R!==G&&r.reference[g]/2-(R<B?A:S)-h[g]/2<0,L=$?R<B?R-B:R-j:0;return{[f]:m[f]+L,data:{[f]:G,centerOffset:R-G-L,...$&&{alignmentOffset:L}},reset:$}}});function ye(t,e,n){return(t?[...n.filter(o=>T(o)===t),...n.filter(o=>T(o)!==t)]:n.filter(o=>k(o)===o)).filter(o=>t?T(o)===t||(e?nt(o)!==o:!1):!0)}var Vt=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,o;let{rects:r,middlewareData:s,placement:c,platform:l,elements:a}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:m=bt,autoAlignment:f=!0,...g}=U(t,e),h=u!==void 0||m===bt?ye(u||null,f,m):m,x=await J(e,g),p=((n=s.autoPlacement)==null?void 0:n.index)||0,w=h[p];if(w==null)return{};let y=Ot(w,r,await(l.isRTL==null?void 0:l.isRTL(a.floating)));if(c!==w)return{reset:{placement:h[0]}};let b=[x[k(w)],x[y[0]],x[y[1]]],v=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:w,overflows:b}],O=h[p+1];if(O)return{data:{index:p+1,overflows:v},reset:{placement:O}};let P=v.map(A=>{let S=T(A.placement);return[A.placement,S&&d?A.overflows.slice(0,2).reduce((B,j)=>B+j,0):A.overflows[0],A.overflows]}).sort((A,S)=>A[1]-S[1]),C=((o=P.filter(A=>A[2].slice(0,T(A[0])?2:3).every(S=>S<=0))[0])==null?void 0:o[0])||P[0][0];return C!==c?{data:{index:p+1,overflows:v},reset:{placement:C}}:{}}}},_t=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;let{placement:o,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...x}=U(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};let p=k(o),w=Y(c),y=k(c)===c,b=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(y||!h?[it(c)]:Bt(c)),O=g!=="none";!m&&O&&v.push(...$t(c,h,g,b));let P=[c,...v],H=await J(e,x),C=[],A=((i=r.flip)==null?void 0:i.overflows)||[];if(d&&C.push(H[p]),u){let R=Ot(o,s,b);C.push(H[R[0]],H[R[1]])}if(A=[...A,{placement:o,overflows:C}],!C.every(R=>R<=0)){var S,B;let R=(((S=r.flip)==null?void 0:S.index)||0)+1,G=P[R];if(G)return{data:{index:R,overflows:A},reset:{placement:G}};let $=(B=A.filter(L=>L.overflows[0]<=0).sort((L,z)=>L.overflows[1]-z.overflows[1])[0])==null?void 0:B.placement;if(!$)switch(f){case"bestFit":{var j;let L=(j=A.filter(z=>{if(O){let I=Y(z.placement);return I===w||I==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(I=>I>0).reduce((I,ge)=>I+ge,0)]).sort((z,I)=>z[1]-I[1])[0])==null?void 0:j[0];L&&($=L);break}case"initialPlacement":$=c;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Nt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ht(t){return vt.some(e=>t[e]>=0)}var Ut=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:i="referenceHidden",...o}=U(t,e);switch(i){case"referenceHidden":{let r=await J(e,{...o,elementContext:"reference"}),s=Nt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ht(s)}}}case"escaped":{let r=await J(e,{...o,altBoundary:!0}),s=Nt(r,n.floating);return{data:{escapedOffsets:s,escaped:Ht(s)}}}default:return{}}}}};async function ve(t,e){let{placement:n,platform:i,elements:o}=t,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),s=k(n),c=T(n),l=Y(n)==="y",a=["left","top"].includes(s)?-1:1,d=r&&l?-1:1,u=U(e,t),{mainAxis:m,crossAxis:f,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof g=="number"&&(f=c==="end"?g*-1:g),l?{x:f*d,y:m*a}:{x:m*a,y:f*d}}var jt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:o,y:r,placement:s,middlewareData:c}=e,l=await ve(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:s}}}}},Yt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:o}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:x=>{let{x:p,y:w}=x;return{x:p,y:w}}},...l}=U(t,e),a={x:n,y:i},d=await J(e,l),u=Y(k(o)),m=At(u),f=a[m],g=a[u];if(r){let x=m==="y"?"top":"left",p=m==="y"?"bottom":"right",w=f+d[x],y=f-d[p];f=ut(w,f,y)}if(s){let x=u==="y"?"top":"left",p=u==="y"?"bottom":"right",w=g+d[x],y=g-d[p];g=ut(w,g,y)}let h=c.fn({...e,[m]:f,[u]:g});return{...h,data:{x:h.x-n,y:h.y-i,enabled:{[m]:r,[u]:s}}}}}};function Gt(t){let e=M(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=W(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,c=ot(n)!==r||ot(i)!==s;return c&&(n=r,i=s),{width:n,height:i,$:c}}function Ct(t){return F(t)?t:t.contextElement}function Q(t){let e=Ct(t);if(!W(e))return E(1);let n=e.getBoundingClientRect(),{width:i,height:o,$:r}=Gt(e),s=(r?ot(n.width):n.width)/i,c=(r?ot(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var be=E(0);function Kt(t){let e=V(t);return!wt()||!e.visualViewport?be:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ae(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==V(t)?!1:e}function q(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);let o=t.getBoundingClientRect(),r=Ct(t),s=E(1);e&&(i?F(i)&&(s=Q(i)):s=Q(t));let c=Ae(r,n,i)?Kt(r):E(0),l=(o.left+c.x)/s.x,a=(o.top+c.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(r){let m=V(r),f=i&&F(i)?V(i):i,g=m,h=yt(g);for(;h&&i&&f!==g;){let x=Q(h),p=h.getBoundingClientRect(),w=M(h),y=p.left+(h.clientLeft+parseFloat(w.paddingLeft))*x.x,b=p.top+(h.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,a*=x.y,d*=x.x,u*=x.y,l+=y,a+=b,g=V(h),h=yt(g)}}return X({width:d,height:u,x:l,y:a})}function St(t,e){let n=et(t).scrollLeft;return e?e.left+n:q(D(t)).left+n}function Jt(t,e,n){n===void 0&&(n=!1);let i=t.getBoundingClientRect(),o=i.left+e.scrollLeft-(n?0:St(t,i)),r=i.top+e.scrollTop;return{x:o,y:r}}function Oe(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t,r=o==="fixed",s=D(i),c=e?at(e.floating):!1;if(i===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},a=E(1),d=E(0),u=W(i);if((u||!u&&!r)&&((ct(i)!=="body"||lt(s))&&(l=et(i)),W(i))){let f=q(i);a=Q(i),d.x=f.x+i.clientLeft,d.y=f.y+i.clientTop}let m=s&&!u&&!r?Jt(s,l,!0):E(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+d.x+m.x,y:n.y*a.y-l.scrollTop*a.y+d.y+m.y}}function Re(t){return Array.from(t.getClientRects())}function Pe(t){let e=D(t),n=et(t),i=t.ownerDocument.body,o=N(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=N(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+St(t),c=-n.scrollTop;return M(i).direction==="rtl"&&(s+=N(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:c}}function Ce(t,e){let n=V(t),i=D(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,c=0,l=0;if(o){r=o.width,s=o.height;let a=wt();(!a||a&&e==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:c,y:l}}function Se(t,e){let n=q(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=W(t)?Q(t):E(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=o*r.x,a=i*r.y;return{width:s,height:c,x:l,y:a}}function Xt(t,e,n){let i;if(e==="viewport")i=Ce(t,n);else if(e==="document")i=Pe(D(t));else if(F(e))i=Se(e,n);else{let o=Kt(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return X(i)}function Qt(t,e){let n=K(t);return n===e||!F(n)||tt(n)?!1:M(n).position==="fixed"||Qt(n,e)}function Ee(t,e){let n=e.get(t);if(n)return n;let i=ft(t,[],!1).filter(c=>F(c)&&ct(c)!=="body"),o=null,r=M(t).position==="fixed",s=r?K(t):t;for(;F(s)&&!tt(s);){let c=M(s),l=Z(s);!l&&c.position==="fixed"&&(o=null),(r?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||lt(s)&&!l&&Qt(t,s))?i=i.filter(d=>d!==s):o=c,s=K(s)}return e.set(t,i),i}function Te(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t,s=[...n==="clippingAncestors"?at(e)?[]:Ee(e,this._c):[].concat(n),i],c=s[0],l=s.reduce((a,d)=>{let u=Xt(e,d,o);return a.top=N(u.top,a.top),a.right=_(u.right,a.right),a.bottom=_(u.bottom,a.bottom),a.left=N(u.left,a.left),a},Xt(e,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Le(t){let{width:e,height:n}=Gt(t);return{width:e,height:n}}function De(t,e,n){let i=W(e),o=D(e),r=n==="fixed",s=q(t,!0,r,e),c={scrollLeft:0,scrollTop:0},l=E(0);if(i||!i&&!r)if((ct(e)!=="body"||lt(o))&&(c=et(e)),i){let m=q(e,!0,r,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else o&&(l.x=St(o));let a=o&&!i&&!r?Jt(o,c):E(0),d=s.left+c.scrollLeft-l.x-a.x,u=s.top+c.scrollTop-l.y-a.y;return{x:d,y:u,width:s.width,height:s.height}}function Pt(t){return M(t).position==="static"}function qt(t,e){if(!W(t)||M(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return D(t)===n&&(n=n.ownerDocument.body),n}function Zt(t,e){let n=V(t);if(at(t))return n;if(!W(t)){let o=K(t);for(;o&&!tt(o);){if(F(o)&&!Pt(o))return o;o=K(o)}return n}let i=qt(t,e);for(;i&&Ft(i)&&Pt(i);)i=qt(i,e);return i&&tt(i)&&Pt(i)&&!Z(i)?n:i||Mt(t)||n}var Fe=async function(t){let e=this.getOffsetParent||Zt,n=this.getDimensions,i=await n(t.floating);return{reference:De(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Me(t){return M(t).direction==="rtl"}var gt={convertOffsetParentRelativeRectToViewportRelativeRect:Oe,getDocumentElement:D,getClippingRect:Te,getOffsetParent:Zt,getElementRects:Fe,getClientRects:Re,getDimensions:Le,getScale:Q,isElement:F,isRTL:Me};function ke(t,e){let n=null,i,o=D(t);function r(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();let{left:a,top:d,width:u,height:m}=t.getBoundingClientRect();if(c||e(),!u||!m)return;let f=st(d),g=st(o.clientWidth-(a+u)),h=st(o.clientHeight-(d+m)),x=st(a),w={rootMargin:-f+"px "+-g+"px "+-h+"px "+-x+"px",threshold:N(0,_(1,l))||1},y=!0;function b(v){let O=v[0].intersectionRatio;if(O!==l){if(!y)return s();O?s(!1,O):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(b,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,w)}n.observe(t)}return s(!0),r}function te(t,e,n,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,a=Ct(t),d=o||r?[...a?ft(a):[],...ft(e)]:[];d.forEach(p=>{o&&p.addEventListener("scroll",n,{passive:!0}),r&&p.addEventListener("resize",n)});let u=a&&c?ke(a,n):null,m=-1,f=null;s&&(f=new ResizeObserver(p=>{let[w]=p;w&&w.target===a&&f&&(f.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(e)})),n()}),a&&!l&&f.observe(a),f.observe(e));let g,h=l?q(t):null;l&&x();function x(){let p=q(t);h&&(p.x!==h.x||p.y!==h.y||p.width!==h.width||p.height!==h.height)&&n(),h=p,g=requestAnimationFrame(x)}return n(),()=>{var p;d.forEach(w=>{o&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),u?.(),(p=f)==null||p.disconnect(),f=null,l&&cancelAnimationFrame(g)}}var ee=jt,ne=Vt,ie=Yt,Et=_t;var oe=Ut,se=It;var re=(t,e,n)=>{let i=new Map,o={platform:gt,...n},r={...o.platform,_c:i};return zt(t,e,{...o,platform:r})};function ce(t){return Be(t)}function Tt(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Be(t){for(let e=t;e;e=Tt(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Tt(t);e;e=Tt(e)){if(!(e instanceof Element))continue;let n=getComputedStyle(e);if(n.display!=="contents"&&(n.position!=="static"||Z(n)||e.tagName==="BODY"))return e}return null}(function(){if(xt()){let e=gt.getOffsetParent;gt.getOffsetParent=n=>e(n,ce)}})();function le(t){let e=window.devicePixelRatio||1;return Math.round(t*e)/e}var de=async(t,{referenceEl:e,floatingEl:n,overlayPositioning:i="absolute",placement:o,flipDisabled:r,flipPlacements:s,offsetDistance:c,offsetSkidding:l,arrowEl:a,type:d})=>{if(!e||!n)return;let u=Lt(n)==="rtl",{x:m,y:f,placement:g,strategy:h,middlewareData:x}=await re(e,n,{strategy:i,placement:o==="auto"||o==="auto-start"||o==="auto-end"?void 0:fe(o,u),middleware:We({placement:o,flipDisabled:r,flipPlacements:s?.map(b=>fe(b,u)),offsetDistance:c,offsetSkidding:l,arrowEl:a,type:d})});if(a&&x.arrow){let{x:b,y:v}=x.arrow,O=g.split("-")[0],P=b!=null?"left":"top",H=He[O],C={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout=O==="left"||O==="right"?"horizontal":"vertical"),Object.assign(a.style,{...C,[P]:`${P=="left"?b:v}px`,[O]:"100%",transform:H})}let w=x.hide?.referenceHidden?"hidden":null,y=w?"none":null;n.setAttribute($e,g),Object.assign(n.style,{pointerEvents:y,position:h,transform:`translate(${le(m)}px,${le(f)}px)`,visibility:w})},$e="data-placement",ae=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end","leading","trailing","leading-start","leading-end","trailing-start","trailing-end"],cn="bottom-start",ln="bottom-end",an={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active",arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"};function We({placement:t,flipDisabled:e,flipPlacements:n,offsetDistance:i,offsetSkidding:o,arrowEl:r,type:s}){let c=[ie(),oe()];if(s==="menu")return[...c,Et({fallbackPlacements:n||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){let l=[...c,ee({mainAxis:typeof i=="number"?i:0,crossAxis:typeof o=="number"?o:0})];return t==="auto"||t==="auto-start"||t==="auto-end"?l.push(ne({alignment:t==="auto-start"?"start":t==="auto-end"?"end":null})):e||l.push(Et(n?{fallbackPlacements:n}:{})),r&&l.push(se({element:r})),l}return[]}function fn(t,e){let n=t.filter(i=>ae.includes(i));return n.length!==t.length&&console.warn(`${e.tagName}: Invalid value found in: flipPlacements. Try any of these: ${ae.map(i=>`"${i}"`).join(", ").trim()}`,{el:e}),n}function fe(t,e=!1){let n=["left","right"];return e&&n.reverse(),t.replace(/leading/gi,n[0]).replace(/trailing/gi,n[1])}async function un(t,e,n=!1){if(!t.open||!e.floatingEl||!e.referenceEl)return;if(Object.assign(e.floatingEl.style,{display:"block",position:e.overlayPositioning??"absolute"}),!rt.get(t))return me(t);await(n?Ne(t):de)(t,e)}function Ne(t){let e=ht.get(t);return e||(e=Dt(de,pt.reposition,{leading:!0,maxWait:pt.reposition}),ht.set(t,e),e)}var He={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},rt=new WeakMap,ht=new WeakMap;async function me(t){let{referenceEl:e,floatingEl:n}=t;if(!n.isConnected)return;let i=xt()?te:(s,c,l)=>(l(),()=>{});rt.set(t,{state:"pending"});let o,r=i(e,n,()=>{let s=t.reposition();o||(o=s)});return rt.set(t,{state:"active",cleanUp:r}),o}function ze(t){let{floatingEl:e}=t;e&&Object.assign(e.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function dn(t){let{floatingEl:e,referenceEl:n}=t;if(ze(t),!(!e||!n)&&(Ie(t),!!t.open))return me(t)}function Ie(t){let{floatingEl:e,referenceEl:n}=t;if(!e||!n)return;let i=rt.get(t);i?.state==="active"&&i.cleanUp(),rt.delete(t),ht.get(t)?.cancel(),ht.delete(t)}var ue=4,mn=Math.ceil(Math.hypot(ue,ue));export{cn as a,ln as b,an as c,fn as d,un as e,ze as f,dn as g,Ie as h,mn as i};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.23
|
|
5
5
|
*/
|
|
6
|
-
import{a as T,b as S,d as
|
|
6
|
+
import{a as T,b as S,d as F}from"./W6YVXZ7Z.js";import{c as O,d as G,e as L}from"./I4IHFVAI.js";import{b as l,c as C}from"./XJHV3JRB.js";import{a as z,b as $}from"./VGGT3YKZ.js";import{a as c}from"./MWRIGXE7.js";import{a as r}from"./NPV6XGSE.js";import{a as E}from"./BBPZYGUE.js";import{a as k,b as i}from"./CKAWSY2K.js";import{y as m}from"./EKVZQILU.js";import{a as x,b as w,d as y}from"./NKRPQYCQ.js";import"./XM2VN6WF.js";import{A as a,C as n,E as v,J as g,M as f,a as o,u as p,w as h,z as b}from"./EISQGSOR.js";import"./J7ES76D4.js";var e={buttonLoader:"calcite-button--loader",content:"content",contentSlotted:"content--slotted",icon:"icon",iconStart:"icon--start",iconEnd:"icon--end",loadingIn:"loading-in",loadingOut:"loading-out",iconStartEmpty:"icon-start-empty",iconEndEmpty:"icon-end-empty",buttonPadding:"button-padding",buttonPaddingShrunk:"button-padding--shrunk"},N=h`/**
|
|
7
7
|
* Do not edit directly
|
|
8
|
-
* Generated on
|
|
8
|
+
* Generated on Fri, 22 Nov 2024 00:15:10 GMT
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
11
|
* Do not edit directly
|
|
12
|
-
* Generated on
|
|
12
|
+
* Generated on Fri, 22 Nov 2024 00:15:10 GMT
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
15
|
* Do not edit directly
|
|
16
|
-
* Generated on
|
|
16
|
+
* Generated on Fri, 22 Nov 2024 00:15:10 GMT
|
|
17
17
|
*/
|
|
18
18
|
/**
|
|
19
19
|
* Do not edit directly
|
|
20
|
-
* Generated on
|
|
20
|
+
* Generated on Fri, 22 Nov 2024 00:15:10 GMT
|
|
21
21
|
*/
|
|
22
22
|
/**
|
|
23
23
|
* Do not edit directly
|
|
24
|
-
* Generated on
|
|
24
|
+
* Generated on Fri, 22 Nov 2024 00:15:07 GMT
|
|
25
25
|
*/
|
|
26
26
|
/* mixins & extensions */
|
|
27
27
|
/* helper to properly scale internal durations */
|
|
@@ -800,7 +800,7 @@ import{a as T,b as S,d as O}from"./335AW3HO.js";import{c as G,d as F,e as L}from
|
|
|
800
800
|
|
|
801
801
|
[hidden] {
|
|
802
802
|
display: none;
|
|
803
|
-
}`,s=class extends b{constructor(){super(...arguments),this.attributeWatch=p(["aria-expanded"],this.handleGlobalAttributesChanged),this.contentEl=k(),this.mutationObserver=r("mutation",()=>this.updateHasContent()),this.resizeObserver=r("resize",()=>this.setTooltipText()),this.hasContent=!1,this.alignment="center",this.appearance="solid",this.disabled=!1,this.download=!1,this.kind="brand",this.loading=!1,this.messages=E(),this.round=!1,this.scale="m",this.splitChild=!1,this.type="button",this.width="auto"}static{this.properties={hasContent:[16,{state:!0}],tooltipText:[16,{state:!0}],alignment:[3,{reflect:!0}],appearance:[3,{reflect:!0}],disabled:[7,{reflect:!0,type:Boolean}],download:[3,{reflect:!0,converter:v}],form:[3,{reflect:!0}],href:[3,{reflect:!0}],iconEnd:[3,{reflect:!0}],iconFlipRtl:[3,{reflect:!0}],iconStart:[3,{reflect:!0}],kind:[3,{reflect:!0}],label:1,loading:[7,{reflect:!0,type:Boolean}],messageOverrides:[0,{attribute:!1}],name:[3,{reflect:!0}],rel:[3,{reflect:!0}],round:[7,{reflect:!0,type:Boolean}],scale:[3,{reflect:!0}],splitChild:[3,{reflect:!0}],target:[3,{reflect:!0}],type:[3,{reflect:!0}],width:[3,{reflect:!0}]}}static{this.styles=N}async setFocus(){await y(this),this.childEl?.focus()}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),
|
|
803
|
+
}`,s=class extends b{constructor(){super(...arguments),this.attributeWatch=p(["aria-expanded"],this.handleGlobalAttributesChanged),this.contentEl=k(),this.mutationObserver=r("mutation",()=>this.updateHasContent()),this.resizeObserver=r("resize",()=>this.setTooltipText()),this.hasContent=!1,this.alignment="center",this.appearance="solid",this.disabled=!1,this.download=!1,this.kind="brand",this.loading=!1,this.messages=E(),this.round=!1,this.scale="m",this.splitChild=!1,this.type="button",this.width="auto"}static{this.properties={hasContent:[16,{state:!0}],tooltipText:[16,{state:!0}],alignment:[3,{reflect:!0}],appearance:[3,{reflect:!0}],disabled:[7,{reflect:!0,type:Boolean}],download:[3,{reflect:!0,converter:v}],form:[3,{reflect:!0}],href:[3,{reflect:!0}],iconEnd:[3,{reflect:!0}],iconFlipRtl:[3,{reflect:!0}],iconStart:[3,{reflect:!0}],kind:[3,{reflect:!0}],label:1,loading:[7,{reflect:!0,type:Boolean}],messageOverrides:[0,{attribute:!1}],name:[3,{reflect:!0}],rel:[3,{reflect:!0}],round:[7,{reflect:!0,type:Boolean}],scale:[3,{reflect:!0}],splitChild:[3,{reflect:!0}],target:[3,{reflect:!0}],type:[3,{reflect:!0}],width:[3,{reflect:!0}]}}static{this.styles=N}async setFocus(){await y(this),this.childEl?.focus()}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),O(this),this.formEl=F(this)}async load(){x(this),g()&&this.updateHasContent()}updated(){z(this)}loaded(){w(this),this.setTooltipText()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),G(this),this.resizeObserver?.disconnect(),this.formEl=null}handleGlobalAttributesChanged(){this.requestUpdate()}updateHasContent(){this.hasContent=m(this.el)}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}onLabelClick(){this.handleClick(),this.setFocus()}handleClick(){let{type:t}=this;this.href||(t==="submit"?T(this):t==="reset"&&S(this))}setTooltipText(){let{contentEl:{value:t}}=this;t&&(this.tooltipText=t.offsetWidth<t.scrollWidth&&this.el.innerText||null)}setChildEl(t){this.childEl=t,t&&this.resizeObserver?.observe(t)}render(){let t=this.href?"a":"button",d=this.href?l`a`:l`button`,R=this.loading?o`<div class=${a(e.buttonLoader)}>
|
|
804
804
|
<calcite-loader
|
|
805
805
|
class=${a(this.loading?e.loadingIn:e.loadingOut)}
|
|
806
806
|
inline
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.23
|
|
5
5
|
*/
|
|
6
6
|
var r=["date","datetime-local","month","number","range","time","week"],x=["email","password","search","tel","text","url"],u=["email","password","search","tel","text","textarea","url"];function a(e,n,t,c){let s=t.toLowerCase(),i=e[t];c&&i!=null?n.setAttribute(s,`${i}`):n.removeAttribute(s)}function m(e,n,t){t.type=e==="textarea"?"text":e;let c=r.includes(e),s=n;a(s,t,"min",c),a(s,t,"max",c),a(s,t,"step",c);let i=u.includes(e),o=n;a(o,t,"minLength",i),a(o,t,"maxLength",i);let l=x.includes(e);a(o,t,"pattern",l)}export{m as a};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.23
|
|
5
5
|
*/
|
|
6
|
-
import{b as e}from"./
|
|
6
|
+
import{b as e}from"./BIFFSQRP.js";import"./EVAKUM5A.js";import"./J7ES76D4.js";var _={name:"pt-br",weekdays:"domingo_segunda-feira_ter\xE7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xE1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xE1b".split("_"),weekdaysMin:"Do_2\xAA_3\xAA_4\xAA_5\xAA_6\xAA_S\xE1".split("_"),months:"janeiro_fevereiro_mar\xE7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(a){return a+"\xBA"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xE0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xE0s] HH:mm"},relativeTime:{future:"em %s",past:"h\xE1 %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xEAs",MM:"%d meses",y:"um ano",yy:"%d anos"}};e.locale(_,null,!0);var m=_;export{m as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.23
|
|
5
5
|
*/
|
|
6
|
-
import{b as t}from"./
|
|
6
|
+
import{b as t}from"./BIFFSQRP.js";import"./EVAKUM5A.js";import"./J7ES76D4.js";var Y={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,r){switch(r){case"W":return e+"\u5468";default:return e+"\u65E5"}},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(e,r){var _=e*100+r;return _<600?"\u51CC\u6668":_<900?"\u65E9\u4E0A":_<1100?"\u4E0A\u5348":_<1300?"\u4E2D\u5348":_<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};t.locale(Y,null,!0);var m=Y;export{m as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.23
|
|
5
5
|
*/
|
|
6
|
-
import{b as _}from"./
|
|
6
|
+
import{b as _}from"./BIFFSQRP.js";import"./EVAKUM5A.js";import"./J7ES76D4.js";var t={name:"el",weekdays:"\u039A\u03C5\u03C1\u03B9\u03B1\u03BA\u03AE_\u0394\u03B5\u03C5\u03C4\u03AD\u03C1\u03B1_\u03A4\u03C1\u03AF\u03C4\u03B7_\u03A4\u03B5\u03C4\u03AC\u03C1\u03C4\u03B7_\u03A0\u03AD\u03BC\u03C0\u03C4\u03B7_\u03A0\u03B1\u03C1\u03B1\u03C3\u03BA\u03B5\u03C5\u03AE_\u03A3\u03AC\u03B2\u03B2\u03B1\u03C4\u03BF".split("_"),weekdaysShort:"\u039A\u03C5\u03C1_\u0394\u03B5\u03C5_\u03A4\u03C1\u03B9_\u03A4\u03B5\u03C4_\u03A0\u03B5\u03BC_\u03A0\u03B1\u03C1_\u03A3\u03B1\u03B2".split("_"),weekdaysMin:"\u039A\u03C5_\u0394\u03B5_\u03A4\u03C1_\u03A4\u03B5_\u03A0\u03B5_\u03A0\u03B1_\u03A3\u03B1".split("_"),months:"\u0399\u03B1\u03BD\u03BF\u03C5\u03AC\u03C1\u03B9\u03BF\u03C2_\u03A6\u03B5\u03B2\u03C1\u03BF\u03C5\u03AC\u03C1\u03B9\u03BF\u03C2_\u039C\u03AC\u03C1\u03C4\u03B9\u03BF\u03C2_\u0391\u03C0\u03C1\u03AF\u03BB\u03B9\u03BF\u03C2_\u039C\u03AC\u03B9\u03BF\u03C2_\u0399\u03BF\u03CD\u03BD\u03B9\u03BF\u03C2_\u0399\u03BF\u03CD\u03BB\u03B9\u03BF\u03C2_\u0391\u03CD\u03B3\u03BF\u03C5\u03C3\u03C4\u03BF\u03C2_\u03A3\u03B5\u03C0\u03C4\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2_\u039F\u03BA\u03C4\u03CE\u03B2\u03C1\u03B9\u03BF\u03C2_\u039D\u03BF\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2_\u0394\u03B5\u03BA\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2".split("_"),monthsShort:"\u0399\u03B1\u03BD_\u03A6\u03B5\u03B2_\u039C\u03B1\u03C1_\u0391\u03C0\u03C1_\u039C\u03B1\u03B9_\u0399\u03BF\u03C5\u03BD_\u0399\u03BF\u03C5\u03BB_\u0391\u03C5\u03B3_\u03A3\u03B5\u03C0\u03C4_\u039F\u03BA\u03C4_\u039D\u03BF\u03B5_\u0394\u03B5\u03BA".split("_"),ordinal:function(e){return e},weekStart:1,relativeTime:{future:"\u03C3\u03B5 %s",past:"\u03C0\u03C1\u03B9\u03BD %s",s:"\u03BC\u03B5\u03C1\u03B9\u03BA\u03AC \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03B1",m:"\u03AD\u03BD\u03B1 \u03BB\u03B5\u03C0\u03C4\u03CC",mm:"%d \u03BB\u03B5\u03C0\u03C4\u03AC",h:"\u03BC\u03AF\u03B1 \u03CE\u03C1\u03B1",hh:"%d \u03CE\u03C1\u03B5\u03C2",d:"\u03BC\u03AF\u03B1 \u03BC\u03AD\u03C1\u03B1",dd:"%d \u03BC\u03AD\u03C1\u03B5\u03C2",M:"\u03AD\u03BD\u03B1 \u03BC\u03AE\u03BD\u03B1",MM:"%d \u03BC\u03AE\u03BD\u03B5\u03C2",y:"\u03AD\u03BD\u03B1 \u03C7\u03C1\u03CC\u03BD\u03BF",yy:"%d \u03C7\u03C1\u03CC\u03BD\u03B9\u03B1"},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"}};_.locale(t,null,!0);var s=t;export{s as default};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.23
|
|
5
5
|
*/
|
|
6
|
-
import{b as O,c as ve,i as E,k as
|
|
6
|
+
import{b as O,c as ve,i as E,k as M,n as W}from"./6HAOWBHC.js";import{a as ge,b as S}from"./BIFFSQRP.js";import{a as fe}from"./2LDYXRQY.js";import"./EVAKUM5A.js";import{b as g}from"./FJCKAC7Y.js";import{a as pe}from"./T2J2VFXM.js";import{g as _,j as H}from"./DEURKSJT.js";import{a as ne,c as le,e as ce,h as ue}from"./W6YVXZ7Z.js";import{c as me,d as de,e as he}from"./I4IHFVAI.js";import{a as ae,b as se}from"./VGGT3YKZ.js";import{a as j}from"./MWRIGXE7.js";import{b as oe}from"./RI3P6LDT.js";import{a as re}from"./BBPZYGUE.js";import{b as C}from"./CKAWSY2K.js";import{s as J}from"./EKVZQILU.js";import{a as ee,b as te,d as ie}from"./NKRPQYCQ.js";import"./XM2VN6WF.js";import{A as K,E as Q,M as X,a as B,e as $,w as R,y as w,z as q}from"./EISQGSOR.js";import"./J7ES76D4.js";var U=function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,i,o){return i||o.slice(1)})},G={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},V=function(e,t){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(i,o,a){var s=a&&a.toUpperCase();return o||t[a]||G[a]||U(t[s])})};var Pe=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,Se=/\d/,Y=/\d\d/,$e=/\d{3}/,Ye=/\d{4}/,y=/\d\d?/,Fe=/[+-]?\d+/,xe=/[+-]\d\d:?(\d\d)?|Z/,F=/\d*[^-_:/,()\s\d]+/,D={},Me=function(e){return e=+e,e+(e>68?1900:2e3)};function Ce(r){if(!r||r==="Z")return 0;var e=r.match(/([+-]|\d\d)/g),t=+(e[1]*60)+(+e[2]||0);return t===0?0:e[0]==="+"?-t:t}var h=function(e){return function(t){this[e]=+t}},ye=[xe,function(r){var e=this.zone||(this.zone={});e.offset=Ce(r)}],N=function(e){var t=D[e];return t&&(t.indexOf?t:t.s.concat(t.f))},be=function(e,t){var i,o=D,a=o.meridiem;if(!a)i=e===(t?"pm":"PM");else for(var s=1;s<=24;s+=1)if(e.indexOf(a(s,0,t))>-1){i=s>12;break}return i},He={A:[F,function(r){this.afternoon=be(r,!1)}],a:[F,function(r){this.afternoon=be(r,!0)}],Q:[Se,function(r){this.month=(r-1)*3+1}],S:[Se,function(r){this.milliseconds=+r*100}],SS:[Y,function(r){this.milliseconds=+r*10}],SSS:[$e,function(r){this.milliseconds=+r}],s:[y,h("seconds")],ss:[y,h("seconds")],m:[y,h("minutes")],mm:[y,h("minutes")],H:[y,h("hours")],h:[y,h("hours")],HH:[y,h("hours")],hh:[y,h("hours")],D:[y,h("day")],DD:[Y,h("day")],Do:[F,function(r){var e=D,t=e.ordinal,i=r.match(/\d+/);if(this.day=i[0],!!t)for(var o=1;o<=31;o+=1)t(o).replace(/\[|\]/g,"")===r&&(this.day=o)}],w:[y,h("week")],ww:[Y,h("week")],M:[y,h("month")],MM:[Y,h("month")],MMM:[F,function(r){var e=N("months"),t=N("monthsShort"),i=(t||e.map(function(o){return o.slice(0,3)})).indexOf(r)+1;if(i<1)throw new Error;this.month=i%12||i}],MMMM:[F,function(r){var e=N("months"),t=e.indexOf(r)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[Fe,h("year")],YY:[Y,function(r){this.year=Me(r)}],YYYY:[Ye,h("year")],Z:ye,ZZ:ye};function Oe(r){var e=r.afternoon;if(e!==void 0){var t=r.hours;e?t<12&&(r.hours+=12):t===12&&(r.hours=0),delete r.afternoon}}function Ee(r){r=V(r,D&&D.formats);for(var e=r.match(Pe),t=e.length,i=0;i<t;i+=1){var o=e[i],a=He[o],s=a&&a[0],c=a&&a[1];c?e[i]={regex:s,parser:c}:e[i]=o.replace(/^\[|\]$/g,"")}return function(u){for(var n={},l=0,d=0;l<t;l+=1){var m=e[l];if(typeof m=="string")d+=m.length;else{var f=m.regex,b=m.parser,p=u.slice(d),v=f.exec(p),T=v[0];b.call(n,T),u=u.replace(T,"")}}return Oe(n),n}}var Ve=function(e,t,i,o){try{if(["x","X"].indexOf(t)>-1)return new Date((t==="X"?1e3:1)*e);var a=Ee(t),s=a(e),c=s.year,u=s.month,n=s.day,l=s.hours,d=s.minutes,m=s.seconds,f=s.milliseconds,b=s.zone,p=s.week,v=new Date,T=n||(!c&&!u?v.getDate():1),L=c||v.getFullYear(),k=0;c&&!u||(k=u>0?u-1:v.getMonth());var I=l||0,P=d||0,z=m||0,A=f||0;if(b)return new Date(Date.UTC(L,k,T,I,P,z,A+b.offset*60*1e3));if(i)return new Date(Date.UTC(L,k,T,I,P,z,A));var x;return x=new Date(L,k,T,I,P,z,A),p&&(x=o(x).week(p).toDate()),x}catch{return new Date("")}},Te=function(r,e,t){t.p.customParseFormat=!0,r&&r.parseTwoDigitYear&&(Me=r.parseTwoDigitYear);var i=e.prototype,o=i.parse;i.parse=function(a){var s=a.date,c=a.utc,u=a.args;this.$u=c;var n=u[1];if(typeof n=="string"){var l=u[2]===!0,d=u[3]===!0,m=l||d,f=u[2];d&&(f=u[2]),D=this.$locale(),!l&&f&&(D=t.Ls[f]),this.$d=Ve(s,n,c,t),this.init(),f&&f!==!0&&(this.$L=this.locale(f).$L),m&&s!=this.format(n)&&(this.$d=new Date("")),D={}}else if(n instanceof Array)for(var b=n.length,p=1;p<=b;p+=1){u[1]=n[p-1];var v=t.apply(this,u);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}p===b&&(this.$d=new Date(""))}else o.call(this,a)}};var De=function(r,e,t){var i=e.prototype,o=function(l){return l&&(l.indexOf?l:l.s)},a=function(l,d,m,f,b){var p=l.name?l:l.$locale(),v=o(p[d]),T=o(p[m]),L=v||T.map(function(I){return I.slice(0,f)});if(!b)return L;var k=p.weekStart;return L.map(function(I,P){return L[(P+(k||0))%7]})},s=function(){return t.Ls[t.locale()]},c=function(l,d){return l.formats[d]||U(l.formats[d.toUpperCase()])},u=function(){var l=this;return{months:function(m){return m?m.format("MMMM"):a(l,"months")},monthsShort:function(m){return m?m.format("MMM"):a(l,"monthsShort","months",3)},firstDayOfWeek:function(){return l.$locale().weekStart||0},weekdays:function(m){return m?m.format("dddd"):a(l,"weekdays")},weekdaysMin:function(m){return m?m.format("dd"):a(l,"weekdaysMin","weekdays",2)},weekdaysShort:function(m){return m?m.format("ddd"):a(l,"weekdaysShort","weekdays",3)},longDateFormat:function(m){return c(l.$locale(),m)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return u.bind(this)()},t.localeData=function(){var n=s();return{firstDayOfWeek:function(){return n.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(d){return c(n,d)},meridiem:n.meridiem,ordinal:n.ordinal}},t.months=function(){return a(s(),"months")},t.monthsShort=function(){return a(s(),"monthsShort","months",3)},t.weekdays=function(n){return a(s(),"weekdays",null,null,n)},t.weekdaysShort=function(n){return a(s(),"weekdaysShort","weekdays",3,n)},t.weekdaysMin=function(n){return a(s(),"weekdaysMin","weekdays",2,n)}};var Le=function(r,e,t){var i=e.prototype,o=i.format;t.en.formats=G,i.format=function(a){a===void 0&&(a=ge);var s=this.$locale(),c=s.formats,u=c===void 0?{}:c,n=V(a,u);return o.call(this,n)}};var ke=function(r,e){var t=e.prototype.parse;e.prototype.parse=function(a){if(typeof a.date=="string"){var s=this.$locale();a.date=s&&s.preparse?s.preparse(a.date):a.date}return t.bind(this)(a)};var i=e.prototype.format;e.prototype.format=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var u=i.call.apply(i,[this].concat(s)),n=this.$locale();return n&&n.postformat?n.postformat(u):u};var o=e.prototype.fromToBase;o&&(e.prototype.fromToBase=function(a,s,c,u){var n=this.$locale()||c.$locale();return o.call(this,a,s,c,u,n&&n.postformat)})};var Ie=function(r,e,t){t.updateLocale=function(i,o){var a=t.Ls,s=a[i];if(s){var c=o?Object.keys(o):[];return c.forEach(function(u){s[u]=o[u]}),s}}};var ze=R`/**
|
|
7
7
|
* Do not edit directly
|
|
8
|
-
* Generated on
|
|
8
|
+
* Generated on Fri, 22 Nov 2024 00:15:10 GMT
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
11
|
* Do not edit directly
|
|
12
|
-
* Generated on
|
|
12
|
+
* Generated on Fri, 22 Nov 2024 00:15:10 GMT
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
15
|
* Do not edit directly
|
|
16
|
-
* Generated on
|
|
16
|
+
* Generated on Fri, 22 Nov 2024 00:15:10 GMT
|
|
17
17
|
*/
|
|
18
18
|
/**
|
|
19
19
|
* Do not edit directly
|
|
20
|
-
* Generated on
|
|
20
|
+
* Generated on Fri, 22 Nov 2024 00:15:10 GMT
|
|
21
21
|
*/
|
|
22
22
|
/**
|
|
23
23
|
* Do not edit directly
|
|
24
|
-
* Generated on
|
|
24
|
+
* Generated on Fri, 22 Nov 2024 00:15:07 GMT
|
|
25
25
|
*/
|
|
26
26
|
/* mixins & extensions */
|
|
27
27
|
/* helper to properly scale internal durations */
|
|
@@ -125,7 +125,7 @@ calcite-input-text:focus + .toggle-icon {
|
|
|
125
125
|
|
|
126
126
|
[hidden] {
|
|
127
127
|
display: none;
|
|
128
|
-
}`,Ae={toggleIcon:"toggle-icon"},we={validationMessage:"inputTimePickerValidationMessage"},Be=new Map([["ar",()=>import("./ZB6BFOK7.js")],["bg",()=>import("./LN3PWVZO.js")],["bs",()=>import("./ORLXA6XZ.js")],["ca",()=>import("./AXLR6GXC.js")],["cs",()=>import("./2QNKKKYS.js")],["da",()=>import("./B36YEJWR.js")],["de",()=>import("./PEIJ6742.js")],["de-at",()=>import("./V3AJQ36A.js")],["de-ch",()=>import("./6NYCRFR3.js")],["el",()=>import("./GOOI5T5E.js")],["en",()=>import("./HHMCS63R.js")],["en-au",()=>import("./V4RHCMLP.js")],["en-ca",()=>import("./64DK2BGV.js")],["en-gb",()=>import("./QKD3HZJH.js")],["es",()=>import("./O2CWCBU2.js")],["es-mx",()=>import("./CJSLTEBN.js")],["et",()=>import("./VYRF75V5.js")],["fi",()=>import("./R3UHX6BJ.js")],["fr",()=>import("./XOU2CM7X.js")],["fr-ch",()=>import("./JVARADD7.js")],["he",()=>import("./FQ55CXG4.js")],["hi",()=>import("./VRHZ7HD5.js")],["hr",()=>import("./LKCFCHDW.js")],["hu",()=>import("./PRDGGOPF.js")],["id",()=>import("./FIF2DKMK.js")],["it",()=>import("./CHZGLVQA.js")],["it-ch",()=>import("./5H5I5VMF.js")],["ja",()=>import("./SHPU4IYL.js")],["ko",()=>import("./LERKT2LE.js")],["lt",()=>import("./FNFWNKPY.js")],["lv",()=>import("./BYFU6J7Y.js")],["mk",()=>import("./Y4GVPC65.js")],["nl",()=>import("./SFHVY3FG.js")],["nb",()=>import("./BIC3NBSP.js")],["pl",()=>import("./DNXDVBL6.js")],["pt",()=>import("./O3JUF57A.js")],["pt-br",()=>import("./VHD26DUJ.js")],["ro",()=>import("./N32E3UHH.js")],["ru",()=>import("./B3E3EGRZ.js")],["sk",()=>import("./5X5L3UJJ.js")],["sl",()=>import("./75LH4454.js")],["sr",()=>import("./JINPJQ35.js")],["sv",()=>import("./ABQLYIFQ.js")],["th",()=>import("./OMCQIHCZ.js")],["tr",()=>import("./Q7S7GJ7I.js")],["uk",()=>import("./BB3IT5BG.js")],["vi",()=>import("./OVCNP5SQ.js")],["zh-cn",()=>import("./E3YLNMLV.js")],["zh-hk",()=>import("./VFVMMHKA.js")],["zh-tw",()=>import("./P4LI7MYL.js")]]);S.extend(Me);S.extend(De);S.extend(Le);S.extend(ke);S.extend(Ie);var Z=class extends q{constructor(){super(),this.userChangedValue=!1,this._value=null,this.disabled=!1,this.focusTrapDisabled=!1,this.messages=oe(),this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.step=60,this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputTimePickerBeforeClose=w({cancelable:!1}),this.calciteInputTimePickerBeforeOpen=w({cancelable:!1}),this.calciteInputTimePickerChange=w(),this.calciteInputTimePickerClose=w({cancelable:!1}),this.calciteInputTimePickerOpen=w({cancelable:!1}),this.listen("blur",this.hostBlurHandler),this.listen("keydown",this.keyDownHandler)}static{this.properties={calciteInputEl:[16,{state:!0}],disabled:[7,{reflect:!0,type:Boolean}],focusTrapDisabled:[7,{reflect:!0,type:Boolean}],form:[3,{reflect:!0}],max:[3,{reflect:!0}],messageOverrides:[0,{attribute:!1}],min:[3,{reflect:!0}],name:1,numberingSystem:1,open:[7,{reflect:!0,type:Boolean}],overlayPositioning:1,placement:[3,{reflect:!0}],readOnly:[7,{reflect:!0,type:Boolean}],required:[7,{reflect:!0,type:Boolean}],scale:[3,{reflect:!0}],status:[3,{reflect:!0}],step:[9,{type:Number}],validationIcon:[3,{reflect:!0,converter:Q}],validationMessage:1,validity:[0,{attribute:!1}],value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=ze}get value(){return this._value}set value(e){let t=this._value;e!==t&&(this._value=e,this.valueWatcher(e))}async reposition(e=!1){this.popoverEl?.reposition(e)}async setFocus(){await ie(this),J(this.el)}connectedCallback(){super.connectedCallback(),E(this.value)?this.setValueDirectly(this.value):this.value=void 0,me(this),le(this)}async load(){ee(this),await this.loadDateTimeLocaleData()}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&(this.disabled||(this.open=!1)),e.has("readOnly")&&(this.hasUpdated||this.readOnly!==!1)&&(this.readOnly||(this.open=!1)),e.has("numberingSystem")&&this.numberingSystemWatcher(this.numberingSystem),e.has("step")&&(this.hasUpdated||this.step!==60)&&this.stepWatcher(this.step,e.get("step")),e.has("messages")&&this.effectiveLocaleWatcher(this.messages._lang)}updated(){ae(this)}loaded(){te(this),E(this.value)&&this.setInputValue(T({value:this.value,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)}))}disconnectedCallback(){super.disconnectedCallback(),de(this),ce(this)}openHandler(){this.disabled||this.readOnly||this.popoverEl&&(this.popoverEl.open=this.open)}numberingSystemWatcher(e){this.setInputValue(T({value:this.value,locale:this.messages._lang,numberingSystem:e,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)}))}stepWatcher(e,t){(t>=60&&e>0&&e<60||e>=60&&t>0&&t<60)&&this.setValueDirectly(this.value)}valueWatcher(e){this.userChangedValue||this.setValueDirectly(e),this.userChangedValue=!1}async effectiveLocaleWatcher(e){await this.loadDateTimeLocaleData(),this.setInputValue(T({value:this.value,locale:e,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)}))}hostBlurHandler(){let e=this.calciteInputEl.value,t=this.delocalizeTimeString(e);if(!t){this.setValue("");return}t!==this.value&&this.setValue(t);let i=T({value:this.value,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)});i!==e&&this.setInputValue(i),this.deactivate()}calciteInternalInputFocusHandler(e){this.readOnly||e.stopPropagation()}calciteInternalInputInputHandler(e){let{messages:{_lang:t},numberingSystem:i}=this;if(i&&i!=="latn"){let r=e.target;H.numberFormatOptions={locale:t,numberingSystem:i,useGrouping:!1};let a=H.delocalize(r.value).split("").map(s=>re.includes(s)?H.numberFormatter.format(Number(s)):s).join("");this.setInputValue(a)}}timePickerChangeHandler(e){e.stopPropagation();let i=e.target.value,r=this.shouldIncludeSeconds();this.setValue(W(i,r)),this.setInputValue(T({value:i,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:r,fractionalSecondDigits:g(this.step)}))}popoverBeforeOpenHandler(e){e.stopPropagation(),this.calciteInputTimePickerBeforeOpen.emit()}popoverOpenHandler(e){e.stopPropagation(),this.calciteInputTimePickerOpen.emit()}popoverBeforeCloseHandler(e){e.stopPropagation(),this.calciteInputTimePickerBeforeClose.emit()}popoverCloseHandler(e){e.stopPropagation(),this.calciteInputTimePickerClose.emit(),this.open=!1}syncHiddenFormInput(e){fe("time",this,e)}delocalizeTimeString(e){S.locale(this.messages._lang.toLowerCase());let t=this.delocalizeTimeStringToParts(e),i;if(this.shouldIncludeFractionalSeconds()){let r=g(this.step),a=this.delocalizeTimeStringToParts(e,"S");if(r===1)i=a.millisecond!==0?this.getTimeStringFromParts(a):this.getTimeStringFromParts(t);else{let s=this.delocalizeTimeStringToParts(e,"SS");if(r===2)s.millisecond!==0?i=this.getTimeStringFromParts(s):a.millisecond!==0?i=this.getTimeStringFromParts(a):i=this.getTimeStringFromParts(t);else if(r>=3){let c=this.delocalizeTimeStringToParts(e,"SSS");c.millisecond!==0?i=this.getTimeStringFromParts(c):s.millisecond!==0?i=this.getTimeStringFromParts(s):a.millisecond!==0?i=this.getTimeStringFromParts(a):i=this.getTimeStringFromParts(t)}}}else i=this.getTimeStringFromParts(t);return i}delocalizeTimeStringToParts(e,t){let i=this.localeConfig?.formats?.LTS,r=i.match(/ss\.*(S+)/g);if(t&&this.shouldIncludeFractionalSeconds()){let s=`ss.${t}`;this.localeConfig.formats.LTS=r?i.replace(r[0],s):i.replace("ss",s)}else r&&(this.localeConfig.formats.LTS=i.replace(r[0],"ss"));S.updateLocale(this.getSupportedDayjsLocale(_(this.messages._lang)),this.localeConfig);let a=S(e,["LTS","LT"]);return a.isValid()?{hour:a.get("hour"),minute:a.get("minute"),second:a.get("second"),millisecond:a.get("millisecond")}:{hour:null,minute:null,second:null,millisecond:null}}getTimeStringFromParts(e){let t="";if(!e)return t;if(e.hour!==null&&e.minute!==null&&(t=`${O(e.hour)}:${O(e.minute)}`,this.shouldIncludeSeconds()&&e.second!==null&&(t+=`:${O(e.second)}`,this.shouldIncludeFractionalSeconds()&&e.millisecond!==null))){let i=(e.millisecond*.001).toFixed(g(this.step));t+=`.${i.toString().replace("0.","")}`}return t}keyDownHandler(e){let{defaultPrevented:t,key:i}=e;if(!t)if(i==="Enter"){if(ne(this)&&(e.preventDefault(),this.calciteInputEl.setFocus()),e.composedPath().includes(this.calciteTimePickerEl))return;let r=this.delocalizeTimeString(this.calciteInputEl.value);if(E(r)){this.setValue(r);let a=T({value:this.value,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)});r&&this.calciteInputEl.value!==a&&this.setInputValue(a)}}else i==="ArrowDown"&&(this.open=!0,e.preventDefault())}getSupportedDayjsLocale(e){let t=e.toLowerCase();return t==="no"?"nb":t==="pt-pt"?"pt":t}async loadDateTimeLocaleData(){let e=_(this.messages._lang).toLowerCase();e=this.getSupportedDayjsLocale(e);let{default:t}=await Be.get(e)();this.localeConfig=t,S.locale(this.localeConfig,null,!0),S.updateLocale(e,this.getExtendedLocaleConfig(e))}getExtendedLocaleConfig(e){if(e==="ar")return{meridiem:t=>t>12?"\u0645":"\u0635",formats:{LT:"HH:mm A",LTS:"HH:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm A",LLLL:"dddd D MMMM YYYY HH:mm A"}};if(e==="en-au")return{meridiem:t=>t>12?"pm":"am"};if(e==="en-ca")return{meridiem:t=>t>12?"p.m.":"a.m."};if(e==="el")return{meridiem:t=>t>12?"\u03BC.\u03BC.":"\u03C0.\u03BC."};if(e==="hi")return{formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, h:mm A",LLLL:"dddd, D MMMM YYYY, h:mm A"},meridiem:t=>t>12?"pm":"am"};if(e==="ko")return{meridiem:t=>t>12?"\uC624\uD6C4":"\uC624\uC804"};if(e==="zh-tw")return{formats:{LT:"AHH:mm",LTS:"AHH:mm:ss"}};if(e==="zh-hk")return{formats:{LT:"AHH:mm",LTS:"AHH:mm:ss"},meridiem:t=>t>12?"\u4E0B\u5348":"\u4E0A\u5348"}}onLabelClick(){this.setFocus()}shouldIncludeSeconds(){return this.step<60}shouldIncludeFractionalSeconds(){return g(this.step)>0}setCalcitePopoverEl(e){this.popoverEl=e,this.openHandler()}setInputEl(e){e&&(this.calciteInputEl=e)}setCalciteTimePickerEl(e){e&&(this.calciteTimePickerEl=e)}setInputValue(e){this.calciteInputEl&&(this.calciteInputEl.value=e)}setValue(e){let t=this.value,i=ve(e)||"";if(i===t)return;this.userChangedValue=!0,this.value=i||"",this.calciteInputTimePickerChange.emit().defaultPrevented&&(this.userChangedValue=!1,this.value=t,this.setInputValue(T({value:t,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)})))}setValueDirectly(e){let t=this.shouldIncludeSeconds();this.value=W(e,t),this.setInputValue(this.value?T({value:this.value,includeSeconds:t,locale:this.messages._lang,numberingSystem:this.numberingSystem,fractionalSecondDigits:g(this.step)}):"")}onInputWrapperClick(){this.open=!this.open}deactivate(){this.open=!1}render(){let{disabled:e,messages:t,readOnly:i}=this;return se({disabled:this.disabled,children:B`
|
|
128
|
+
}`,Ae={toggleIcon:"toggle-icon"},we={validationMessage:"inputTimePickerValidationMessage"},Be=new Map([["ar",()=>import("./CJZSVOSR.js")],["bg",()=>import("./VZQ5MJZP.js")],["bs",()=>import("./QP6OOHX3.js")],["ca",()=>import("./KQRASMIK.js")],["cs",()=>import("./7MLCQPEK.js")],["da",()=>import("./PW374HVU.js")],["de",()=>import("./YWGWIRQY.js")],["de-at",()=>import("./5P6NLT52.js")],["de-ch",()=>import("./3WA6GQ4O.js")],["el",()=>import("./2ONKE32A.js")],["en",()=>import("./NZCF5UIC.js")],["en-au",()=>import("./5PEDX5AY.js")],["en-ca",()=>import("./4GIYCOSQ.js")],["en-gb",()=>import("./ZNZC5KUO.js")],["es",()=>import("./DVR62K77.js")],["es-mx",()=>import("./S7OJP54N.js")],["et",()=>import("./HMVHOA6B.js")],["fi",()=>import("./NQP2WNH6.js")],["fr",()=>import("./SCG2MB2V.js")],["fr-ch",()=>import("./Z2FRF4R3.js")],["he",()=>import("./LWPIWJ2O.js")],["hi",()=>import("./4W65ZUSP.js")],["hr",()=>import("./KIUN7ELA.js")],["hu",()=>import("./G72CWGFW.js")],["id",()=>import("./LFHOUTTE.js")],["it",()=>import("./CUP2AVPS.js")],["it-ch",()=>import("./QWDIFV5E.js")],["ja",()=>import("./ZZFJUMMN.js")],["ko",()=>import("./5N4TBNMO.js")],["lt",()=>import("./BMEAOPKE.js")],["lv",()=>import("./BJXGXMRI.js")],["mk",()=>import("./AC6N6LIO.js")],["nl",()=>import("./KAP77V2S.js")],["nb",()=>import("./PKXLFEU6.js")],["pl",()=>import("./BGJW7KU3.js")],["pt",()=>import("./4HHIOETO.js")],["pt-br",()=>import("./2MBQ2YKO.js")],["ro",()=>import("./ISMZR7LE.js")],["ru",()=>import("./7QJYM3Y3.js")],["sk",()=>import("./EMQYBB52.js")],["sl",()=>import("./VVUWOU7B.js")],["sr",()=>import("./OH5VT63O.js")],["sv",()=>import("./QQ5KBFIW.js")],["th",()=>import("./KF26WBTL.js")],["tr",()=>import("./JNHF2EVV.js")],["uk",()=>import("./XY5C6CRP.js")],["vi",()=>import("./TIWIA3MH.js")],["zh-cn",()=>import("./2NNA6YUP.js")],["zh-hk",()=>import("./56KHTJS7.js")],["zh-tw",()=>import("./FQBXOIG5.js")]]);S.extend(Te);S.extend(De);S.extend(Le);S.extend(ke);S.extend(Ie);var Z=class extends q{constructor(){super(),this.userChangedValue=!1,this._value=null,this.disabled=!1,this.focusTrapDisabled=!1,this.messages=re(),this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.step=60,this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputTimePickerBeforeClose=w({cancelable:!1}),this.calciteInputTimePickerBeforeOpen=w({cancelable:!1}),this.calciteInputTimePickerChange=w(),this.calciteInputTimePickerClose=w({cancelable:!1}),this.calciteInputTimePickerOpen=w({cancelable:!1}),this.listen("blur",this.hostBlurHandler),this.listen("keydown",this.keyDownHandler)}static{this.properties={calciteInputEl:[16,{state:!0}],disabled:[7,{reflect:!0,type:Boolean}],focusTrapDisabled:[7,{reflect:!0,type:Boolean}],form:[3,{reflect:!0}],max:[3,{reflect:!0}],messageOverrides:[0,{attribute:!1}],min:[3,{reflect:!0}],name:1,numberingSystem:1,open:[7,{reflect:!0,type:Boolean}],overlayPositioning:1,placement:[3,{reflect:!0}],readOnly:[7,{reflect:!0,type:Boolean}],required:[7,{reflect:!0,type:Boolean}],scale:[3,{reflect:!0}],status:[3,{reflect:!0}],step:[9,{type:Number}],validationIcon:[3,{reflect:!0,converter:Q}],validationMessage:1,validity:[0,{attribute:!1}],value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=ze}get value(){return this._value}set value(e){let t=this._value;e!==t&&(this._value=e,this.valueWatcher(e))}async reposition(e=!1){this.popoverEl?.reposition(e)}async setFocus(){await ie(this),J(this.el)}connectedCallback(){super.connectedCallback(),E(this.value)?this.setValueDirectly(this.value):this.value=void 0,me(this),le(this)}async load(){ee(this),await this.loadDateTimeLocaleData()}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&(this.disabled||(this.open=!1)),e.has("readOnly")&&(this.hasUpdated||this.readOnly!==!1)&&(this.readOnly||(this.open=!1)),e.has("numberingSystem")&&this.numberingSystemWatcher(this.numberingSystem),e.has("step")&&(this.hasUpdated||this.step!==60)&&this.stepWatcher(this.step,e.get("step")),e.has("messages")&&this.effectiveLocaleWatcher(this.messages._lang)}updated(){ae(this)}loaded(){te(this),E(this.value)&&this.setInputValue(M({value:this.value,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)}))}disconnectedCallback(){super.disconnectedCallback(),de(this),ce(this)}openHandler(){this.disabled||this.readOnly||this.popoverEl&&(this.popoverEl.open=this.open)}numberingSystemWatcher(e){this.setInputValue(M({value:this.value,locale:this.messages._lang,numberingSystem:e,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)}))}stepWatcher(e,t){(t>=60&&e>0&&e<60||e>=60&&t>0&&t<60)&&this.setValueDirectly(this.value)}valueWatcher(e){this.userChangedValue||this.setValueDirectly(e),this.userChangedValue=!1}async effectiveLocaleWatcher(e){await this.loadDateTimeLocaleData(),this.setInputValue(M({value:this.value,locale:e,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)}))}hostBlurHandler(){let e=this.calciteInputEl.value,t=this.delocalizeTimeString(e);if(!t){this.setValue("");return}t!==this.value&&this.setValue(t);let i=M({value:this.value,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)});i!==e&&this.setInputValue(i),this.deactivate()}calciteInternalInputFocusHandler(e){this.readOnly||e.stopPropagation()}calciteInternalInputInputHandler(e){let{messages:{_lang:t},numberingSystem:i}=this;if(i&&i!=="latn"){let o=e.target;H.numberFormatOptions={locale:t,numberingSystem:i,useGrouping:!1};let a=H.delocalize(o.value).split("").map(s=>oe.includes(s)?H.numberFormatter.format(Number(s)):s).join("");this.setInputValue(a)}}timePickerChangeHandler(e){e.stopPropagation();let i=e.target.value,o=this.shouldIncludeSeconds();this.setValue(W(i,o)),this.setInputValue(M({value:i,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:o,fractionalSecondDigits:g(this.step)}))}popoverBeforeOpenHandler(e){e.stopPropagation(),this.calciteInputTimePickerBeforeOpen.emit()}popoverOpenHandler(e){e.stopPropagation(),this.calciteInputTimePickerOpen.emit()}popoverBeforeCloseHandler(e){e.stopPropagation(),this.calciteInputTimePickerBeforeClose.emit()}popoverCloseHandler(e){e.stopPropagation(),this.calciteInputTimePickerClose.emit(),this.open=!1}syncHiddenFormInput(e){fe("time",this,e)}delocalizeTimeString(e){S.locale(this.messages._lang.toLowerCase());let t=this.delocalizeTimeStringToParts(e),i;if(this.shouldIncludeFractionalSeconds()){let o=g(this.step),a=this.delocalizeTimeStringToParts(e,"S");if(o===1)i=a.millisecond!==0?this.getTimeStringFromParts(a):this.getTimeStringFromParts(t);else{let s=this.delocalizeTimeStringToParts(e,"SS");if(o===2)s.millisecond!==0?i=this.getTimeStringFromParts(s):a.millisecond!==0?i=this.getTimeStringFromParts(a):i=this.getTimeStringFromParts(t);else if(o>=3){let c=this.delocalizeTimeStringToParts(e,"SSS");c.millisecond!==0?i=this.getTimeStringFromParts(c):s.millisecond!==0?i=this.getTimeStringFromParts(s):a.millisecond!==0?i=this.getTimeStringFromParts(a):i=this.getTimeStringFromParts(t)}}}else i=this.getTimeStringFromParts(t);return i}delocalizeTimeStringToParts(e,t){let i=this.localeConfig?.formats?.LTS,o=i.match(/ss\.*(S+)/g);if(t&&this.shouldIncludeFractionalSeconds()){let s=`ss.${t}`;this.localeConfig.formats.LTS=o?i.replace(o[0],s):i.replace("ss",s)}else o&&(this.localeConfig.formats.LTS=i.replace(o[0],"ss"));S.updateLocale(this.getSupportedDayjsLocale(_(this.messages._lang)),this.localeConfig);let a=S(e,["LTS","LT"]);return a.isValid()?{hour:a.get("hour"),minute:a.get("minute"),second:a.get("second"),millisecond:a.get("millisecond")}:{hour:null,minute:null,second:null,millisecond:null}}getTimeStringFromParts(e){let t="";if(!e)return t;if(e.hour!==null&&e.minute!==null&&(t=`${O(e.hour)}:${O(e.minute)}`,this.shouldIncludeSeconds()&&e.second!==null&&(t+=`:${O(e.second)}`,this.shouldIncludeFractionalSeconds()&&e.millisecond!==null))){let i=(e.millisecond*.001).toFixed(g(this.step));t+=`.${i.toString().replace("0.","")}`}return t}keyDownHandler(e){let{defaultPrevented:t,key:i}=e;if(!t)if(i==="Enter"){if(ne(this)&&(e.preventDefault(),this.calciteInputEl.setFocus()),e.composedPath().includes(this.calciteTimePickerEl))return;let o=this.delocalizeTimeString(this.calciteInputEl.value);if(E(o)){this.setValue(o);let a=M({value:this.value,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)});o&&this.calciteInputEl.value!==a&&this.setInputValue(a)}}else i==="ArrowDown"&&(this.open=!0,e.preventDefault())}getSupportedDayjsLocale(e){let t=e.toLowerCase();return t==="no"?"nb":t==="pt-pt"?"pt":t}async loadDateTimeLocaleData(){let e=_(this.messages._lang).toLowerCase();e=this.getSupportedDayjsLocale(e);let{default:t}=await Be.get(e)();this.localeConfig=t,S.locale(this.localeConfig,null,!0),S.updateLocale(e,this.getExtendedLocaleConfig(e))}getExtendedLocaleConfig(e){if(e==="ar")return{meridiem:t=>t>12?"\u0645":"\u0635",formats:{LT:"HH:mm A",LTS:"HH:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm A",LLLL:"dddd D MMMM YYYY HH:mm A"}};if(e==="en-au")return{meridiem:t=>t>12?"pm":"am"};if(e==="en-ca")return{meridiem:t=>t>12?"p.m.":"a.m."};if(e==="el")return{meridiem:t=>t>12?"\u03BC.\u03BC.":"\u03C0.\u03BC."};if(e==="hi")return{formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, h:mm A",LLLL:"dddd, D MMMM YYYY, h:mm A"},meridiem:t=>t>12?"pm":"am"};if(e==="ko")return{meridiem:t=>t>12?"\uC624\uD6C4":"\uC624\uC804"};if(e==="zh-tw")return{formats:{LT:"AHH:mm",LTS:"AHH:mm:ss"}};if(e==="zh-hk")return{formats:{LT:"AHH:mm",LTS:"AHH:mm:ss"},meridiem:t=>t>12?"\u4E0B\u5348":"\u4E0A\u5348"}}onLabelClick(){this.setFocus()}shouldIncludeSeconds(){return this.step<60}shouldIncludeFractionalSeconds(){return g(this.step)>0}setCalcitePopoverEl(e){this.popoverEl=e,this.openHandler()}setInputEl(e){e&&(this.calciteInputEl=e)}setCalciteTimePickerEl(e){e&&(this.calciteTimePickerEl=e)}setInputValue(e){this.calciteInputEl&&(this.calciteInputEl.value=e)}setValue(e){let t=this.value,i=ve(e)||"";if(i===t)return;this.userChangedValue=!0,this.value=i||"",this.calciteInputTimePickerChange.emit().defaultPrevented&&(this.userChangedValue=!1,this.value=t,this.setInputValue(M({value:t,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)})))}setValueDirectly(e){let t=this.shouldIncludeSeconds();this.value=W(e,t),this.setInputValue(this.value?M({value:this.value,includeSeconds:t,locale:this.messages._lang,numberingSystem:this.numberingSystem,fractionalSecondDigits:g(this.step)}):"")}onInputWrapperClick(){this.open=!this.open}deactivate(){this.open=!1}render(){let{disabled:e,messages:t,readOnly:i}=this;return se({disabled:this.disabled,children:B`
|
|
129
129
|
<div class="input-wrapper" @click=${this.onInputWrapperClick}>
|
|
130
130
|
<calcite-input-text
|
|
131
131
|
aria-errormessage=${we.validationMessage}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.23
|
|
5
5
|
*/
|
|
6
6
|
var n={menuActions:"menu-actions",menuTooltip:"menu-tooltip"},o={menu:"ellipsis"},t={container:"container"};export{n as a,o as b,t as c};
|