@coffer-org/web 7.4.2 → 8.0.0
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/assets/ChatWidget-CLPg1SxK.js +90 -0
- package/dist/assets/DiagnosticsPage-DHIekD7O.js +1 -0
- package/dist/assets/GeoMap-D1ITCEvC.js +4 -0
- package/dist/assets/GeoMap-DvTUgzRd.css +661 -0
- package/dist/assets/NewRecordView-ypC2MiHy.js +1 -0
- package/dist/assets/PluginSettingsPage-CgEPe_jp.js +1 -0
- package/dist/assets/ScanSummary-BRELNnQZ.js +1 -0
- package/dist/assets/SettingsPage-CBdCKDm9.js +3 -0
- package/dist/assets/ThemeSwitcher-DoDwMSvt.js +21 -0
- package/dist/assets/api-CtTqq37J.js +1 -0
- package/dist/assets/auth-context-B7spbfSH.js +1 -0
- package/dist/assets/check-DSh5VTB0.js +6 -0
- package/dist/assets/compat-nvzWPAqF.js +1 -0
- package/dist/assets/createLucideIcon-0HK7VRhx.js +46 -0
- package/dist/assets/data-size-B_xeY3eQ.js +1 -0
- package/dist/assets/ical-BRrjpmRX.js +8 -0
- package/dist/assets/ilamy-view-CF9TS3xK.js +97 -0
- package/dist/assets/index-CBgj-dC3.css +10528 -0
- package/dist/assets/index-wtYuweqc.js +33 -0
- package/dist/assets/instance-CqF1ziBF.js +1 -0
- package/dist/assets/list-cache-DR8308dv.js +1 -0
- package/dist/assets/plugin-label-4X6iMcoh.js +1 -0
- package/dist/assets/preload-helper-DxWiKyOd.js +1 -0
- package/dist/assets/rolldown-runtime-B-1-B7_t.js +1 -0
- package/dist/assets/rotate-ccw-Cbig43Yp.js +21 -0
- package/dist/assets/rule-form-DY07mdut.js +1 -0
- package/dist/assets/schemas-Ddd48n1f.js +64 -0
- package/dist/assets/search-C7459FQa.js +6 -0
- package/dist/assets/src--TsXaQH2.js +1 -0
- package/dist/assets/src-B1GPEuhd.js +1 -0
- package/dist/assets/src-B2K2G_F62.js +1 -0
- package/dist/assets/src-BPc81uCu2.js +1 -0
- package/dist/assets/src-BXuWmEvN.js +1 -0
- package/dist/assets/src-BtrXVtpQ2.js +1 -0
- package/dist/assets/src-C12PVUBK.js +1 -0
- package/dist/assets/src-C1J8QrZx2.js +1 -0
- package/dist/assets/src-CLxiQy4N.js +1 -0
- package/dist/assets/src-CZlLKZuO.js +1 -0
- package/dist/assets/src-CgOvTEkQ.js +8 -0
- package/dist/assets/src-Chqh1dE0.js +1 -0
- package/dist/assets/src-Cma6wMwh2.js +1 -0
- package/dist/assets/src-CsBQ3OG5.js +1 -0
- package/dist/assets/src-CtRwEwa_2.js +1 -0
- package/dist/assets/src-CxZwGvOe.js +1 -0
- package/dist/assets/src-Cy8ITNFQ.js +1 -0
- package/dist/assets/src-CzL8eh1F.js +6 -0
- package/dist/assets/src-DHGaQhKT.js +1 -0
- package/dist/assets/src-DkeTKoaX.js +1 -0
- package/dist/assets/src-DotMprHS.js +6 -0
- package/dist/assets/src-DsJtEHxm.js +2 -0
- package/dist/assets/src-DvgJTIq7.js +1 -0
- package/dist/assets/src-KzYtcixM.js +1 -0
- package/dist/assets/src-YvA87f32.js +1 -0
- package/dist/assets/src-bO9mBc4E.js +1 -0
- package/dist/assets/src-nwl88J0b.js +4 -0
- package/dist/assets/task_details-3QyVdhd4.js +1 -0
- package/dist/assets/ui-BFQOH3UM.js +66 -0
- package/dist/assets/ui-C0deEcCk2.js +1 -0
- package/dist/assets/ui-C3DdDmuH.js +11 -0
- package/dist/assets/ui-CdfnLrpu.js +1 -0
- package/dist/assets/ui-vendor-Dz7FZUpP.js +41 -0
- package/dist/assets/x-Tw9OswUb.js +6 -0
- package/dist/index.html +101 -30
- package/dist-vendor/assets/MarkdownEditor-DEp3OKtv.js +191 -0
- package/dist-vendor/assets/Separator-BMm-ftCU.js +1 -0
- package/dist-vendor/assets/ae-CZRtWSox.svg +6 -0
- package/dist-vendor/assets/ae-CnWpkG7H.svg +6 -0
- package/dist-vendor/assets/ag-B50eCdjH.svg +14 -0
- package/dist-vendor/assets/ag-C8MykuG2.svg +14 -0
- package/dist-vendor/assets/ai-BhrGqTjA.svg +29 -0
- package/dist-vendor/assets/ai-Dmedkf4v.svg +29 -0
- package/dist-vendor/assets/al-10QRkakw.svg +5 -0
- package/dist-vendor/assets/al-CxA7yomf.svg +5 -0
- package/dist-vendor/assets/am-Brwuaa2u.svg +5 -0
- package/dist-vendor/assets/am-DMt4_dd4.svg +5 -0
- package/dist-vendor/assets/ao-CAGuVnyg.svg +13 -0
- package/dist-vendor/assets/ao-tXuRa6vm.svg +13 -0
- package/dist-vendor/assets/aq-CF5jO-0h.svg +5 -0
- package/dist-vendor/assets/aq-UDjN-zV6.svg +5 -0
- package/dist-vendor/assets/ar-Be8Ju1cG.svg +32 -0
- package/dist-vendor/assets/ar-NyCpd6W6.svg +32 -0
- package/dist-vendor/assets/asean-CmuWHvfA.svg +13 -0
- package/dist-vendor/assets/asean-WMtZ-US_.svg +13 -0
- package/dist-vendor/assets/at-D-LsLSdx.svg +4 -0
- package/dist-vendor/assets/at-DGA_6m5E.svg +4 -0
- package/dist-vendor/assets/au-DAHDIuPI.svg +8 -0
- package/dist-vendor/assets/au-kL8f0uMB.svg +8 -0
- package/dist-vendor/assets/ax-DvLIy84U.svg +18 -0
- package/dist-vendor/assets/ax-wECm_RRW.svg +18 -0
- package/dist-vendor/assets/az-Bk-bYNxy.svg +8 -0
- package/dist-vendor/assets/az-z2IthT8Q.svg +8 -0
- package/dist-vendor/assets/ba-CiiOt6u0.svg +12 -0
- package/dist-vendor/assets/ba-WdDiSMvP.svg +12 -0
- package/dist-vendor/assets/bb-DC5IaaX4.svg +6 -0
- package/dist-vendor/assets/bb-DJxbaxmT.svg +6 -0
- package/dist-vendor/assets/bd-BF9t1-60.svg +4 -0
- package/dist-vendor/assets/bd-DvPoLH3C.svg +4 -0
- package/dist-vendor/assets/be-CLLkK3PN.svg +7 -0
- package/dist-vendor/assets/be-Dtq4MkQz.svg +7 -0
- package/dist-vendor/assets/bf-DCbfaYlw.svg +7 -0
- package/dist-vendor/assets/bf-YclsoDuF.svg +7 -0
- package/dist-vendor/assets/bg-GUQenraa.svg +5 -0
- package/dist-vendor/assets/bg-cWragUdK.svg +5 -0
- package/dist-vendor/assets/bh-BQqEGq6F.svg +4 -0
- package/dist-vendor/assets/bh-DgfmyT2n.svg +4 -0
- package/dist-vendor/assets/bi-C8Dazs_i.svg +15 -0
- package/dist-vendor/assets/bi-CRmKY6RQ.svg +15 -0
- package/dist-vendor/assets/bj-14PhO9bM.svg +14 -0
- package/dist-vendor/assets/bj-BOF1aYv0.svg +14 -0
- package/dist-vendor/assets/bl-4CI2YcwX.svg +5 -0
- package/dist-vendor/assets/bl-Ci30-2xD.svg +7 -0
- package/dist-vendor/assets/bq-BYpdxEeT.svg +5 -0
- package/dist-vendor/assets/bq-SWpsjb2t.svg +5 -0
- package/dist-vendor/assets/bs-7Gd_oriM.svg +13 -0
- package/dist-vendor/assets/bs-CcXnDJaD.svg +13 -0
- package/dist-vendor/assets/bv-Jqog7euh.svg +13 -0
- package/dist-vendor/assets/bv-wM9JLv4R.svg +13 -0
- package/dist-vendor/assets/bw-DOFTOZyN.svg +7 -0
- package/dist-vendor/assets/bw-n5ZaAnGL.svg +7 -0
- package/dist-vendor/assets/by-C621sBpd.svg +18 -0
- package/dist-vendor/assets/by-u4o0VQKP.svg +18 -0
- package/dist-vendor/assets/ca-B8J8Wc6a.svg +4 -0
- package/dist-vendor/assets/ca-PYUrLVUV.svg +4 -0
- package/dist-vendor/assets/cc-BNT6Xjzk.svg +19 -0
- package/dist-vendor/assets/cc-Bl3UDHUt.svg +19 -0
- package/dist-vendor/assets/cd-BGclsrP6.svg +5 -0
- package/dist-vendor/assets/cd-CwCQH0-t.svg +12 -0
- package/dist-vendor/assets/cefta-2dDBYygd.svg +13 -0
- package/dist-vendor/assets/cefta-CdOByeeI.svg +13 -0
- package/dist-vendor/assets/cf-CvgcTRoz.svg +15 -0
- package/dist-vendor/assets/cf-DRetLmp-.svg +15 -0
- package/dist-vendor/assets/cg-CwIyG6SE.svg +12 -0
- package/dist-vendor/assets/cg-DxMYgdKd.svg +12 -0
- package/dist-vendor/assets/ch-Do8WoVrp.svg +9 -0
- package/dist-vendor/assets/ch-sfriZoF1.svg +9 -0
- package/dist-vendor/assets/chunk-KS7C4IRE-CUOVp-bd.js +34 -0
- package/dist-vendor/assets/ci-C8Q8IYTn.svg +7 -0
- package/dist-vendor/assets/ci-Cn5asHD7.svg +7 -0
- package/dist-vendor/assets/ck-DfXMUOTo.svg +9 -0
- package/dist-vendor/assets/ck-VjQ-vT4C.svg +9 -0
- package/dist-vendor/assets/cl-B2rf9gTF.svg +13 -0
- package/dist-vendor/assets/cl-BgYYb4qP.svg +13 -0
- package/dist-vendor/assets/cm-B0XEK3Gu.svg +15 -0
- package/dist-vendor/assets/cm-D4yjdmKT.svg +15 -0
- package/dist-vendor/assets/cn-DifnnI3t.svg +11 -0
- package/dist-vendor/assets/cn-sZmOitVP.svg +11 -0
- package/dist-vendor/assets/co-BRjxMuCM.svg +7 -0
- package/dist-vendor/assets/co-DV591zMm.svg +7 -0
- package/dist-vendor/assets/collection-diff-DfAYCE5v.js +64 -0
- package/dist-vendor/assets/cp-K_ay05Q_.svg +7 -0
- package/dist-vendor/assets/cp-k6oDAflT.svg +7 -0
- package/dist-vendor/assets/cr-BlYVN-_Q.svg +7 -0
- package/dist-vendor/assets/cr-CcuKkUIo.svg +7 -0
- package/dist-vendor/assets/cu-Bd4PmZCn.svg +13 -0
- package/dist-vendor/assets/cu-L6XVZNgo.svg +13 -0
- package/dist-vendor/assets/currencies-DKBTq4hu.js +1 -0
- package/dist-vendor/assets/cv-BYvkBxIi.svg +13 -0
- package/dist-vendor/assets/cv-CPsfcOfk.svg +13 -0
- package/dist-vendor/assets/cw-BbrnximR.svg +14 -0
- package/dist-vendor/assets/cw-DDrVSims.svg +14 -0
- package/dist-vendor/assets/cx-DpYD6n6U.svg +15 -0
- package/dist-vendor/assets/cx-zaaWd3zl.svg +15 -0
- package/dist-vendor/assets/cz-CgTuLLXv.svg +5 -0
- package/dist-vendor/assets/cz-WWBC5Aeb.svg +5 -0
- package/dist-vendor/assets/de-B-2o-4Z9.svg +5 -0
- package/dist-vendor/assets/de-D365bacb.svg +5 -0
- package/dist-vendor/assets/dist-BKeCzqrc.js +1 -0
- package/dist-vendor/assets/dj-C7tvpAUy.svg +13 -0
- package/dist-vendor/assets/dj-hp_BwbmO.svg +13 -0
- package/dist-vendor/assets/dk-2cglAULc.svg +5 -0
- package/dist-vendor/assets/dk-DmS9BCZB.svg +5 -0
- package/dist-vendor/assets/dz-Dytc1TFu.svg +5 -0
- package/dist-vendor/assets/dz-EwXBYPv9.svg +5 -0
- package/dist-vendor/assets/ee-B0tgUOEC.svg +5 -0
- package/dist-vendor/assets/ee-DufrxGIR.svg +5 -0
- package/dist-vendor/assets/eh-0awM4TVj.svg +16 -0
- package/dist-vendor/assets/eh-CsiwG8bE.svg +11 -0
- package/dist-vendor/assets/er-Cn365Y3V.svg +13 -0
- package/dist-vendor/assets/er-X83uml6t.svg +8 -0
- package/dist-vendor/assets/es-ct-CVyhLp7O.svg +4 -0
- package/dist-vendor/assets/es-ct-DdzobtBd.svg +4 -0
- package/dist-vendor/assets/es-pv-CO3NM2SE.svg +5 -0
- package/dist-vendor/assets/es-pv-DMotQiZd.svg +5 -0
- package/dist-vendor/assets/esm-DcxdDKtK.js +1 -0
- package/dist-vendor/assets/esm-DjwVeARy.js +23 -0
- package/dist-vendor/assets/esm-YFvMvTG9.css +1 -0
- package/dist-vendor/assets/et-DwdlzOIx.svg +14 -0
- package/dist-vendor/assets/et-cfPInayI.svg +14 -0
- package/dist-vendor/assets/eu-BE2G-Ars.svg +28 -0
- package/dist-vendor/assets/eu-Brdgz8ab.svg +28 -0
- package/dist-vendor/assets/fi-Brjq_KK6.svg +5 -0
- package/dist-vendor/assets/fi-DWUIkfjL.svg +5 -0
- package/dist-vendor/assets/flag-icons-CjdqQPWt.css +1 -0
- package/dist-vendor/assets/fm-B4Z83GL0.svg +11 -0
- package/dist-vendor/assets/fm-DwHuWFwM.svg +11 -0
- package/dist-vendor/assets/fo-ClIne8bc.svg +12 -0
- package/dist-vendor/assets/fo-DFjwyWur.svg +12 -0
- package/dist-vendor/assets/fr-C1eGzDWr.svg +5 -0
- package/dist-vendor/assets/fr-DVvUyOqI.svg +5 -0
- package/dist-vendor/assets/ga-BklUhLH_.svg +7 -0
- package/dist-vendor/assets/ga-CgNkrnfv.svg +7 -0
- package/dist-vendor/assets/gb-DSer7Jgn.svg +7 -0
- package/dist-vendor/assets/gb-DTXiLQoe.svg +7 -0
- package/dist-vendor/assets/gb-eng-C8iDhGHN.svg +5 -0
- package/dist-vendor/assets/gb-eng-DTHmDHq3.svg +5 -0
- package/dist-vendor/assets/gb-sct-D5L2FKKv.svg +4 -0
- package/dist-vendor/assets/gb-sct-fW5q01ek.svg +4 -0
- package/dist-vendor/assets/gd-CO-whzUe.svg +27 -0
- package/dist-vendor/assets/gd-m2vU81NR.svg +27 -0
- package/dist-vendor/assets/ge-B2RiL-Ih.svg +6 -0
- package/dist-vendor/assets/ge-DFOl98HB.svg +6 -0
- package/dist-vendor/assets/gf-DFQqfs-j.svg +5 -0
- package/dist-vendor/assets/gf-DWl5zcw0.svg +5 -0
- package/dist-vendor/assets/gg-jdOQS2nU.svg +9 -0
- package/dist-vendor/assets/gg-vhR8-Yxm.svg +9 -0
- package/dist-vendor/assets/gh-6yUjim7M.svg +6 -0
- package/dist-vendor/assets/gh-r3LP_X7q.svg +6 -0
- package/dist-vendor/assets/gi-BJKE9SzW.svg +32 -0
- package/dist-vendor/assets/gi-ZBwZ45zU.svg +32 -0
- package/dist-vendor/assets/gl-CHaBnMib.svg +4 -0
- package/dist-vendor/assets/gl-D6qP-fnE.svg +4 -0
- package/dist-vendor/assets/gm-Bu99atwn.svg +14 -0
- package/dist-vendor/assets/gm-DI7EpeCC.svg +9 -0
- package/dist-vendor/assets/gn-1dJNy9oQ.svg +7 -0
- package/dist-vendor/assets/gn-kt7YA1XT.svg +7 -0
- package/dist-vendor/assets/gp-BqGRs8a4.svg +5 -0
- package/dist-vendor/assets/gp-DNyt_wTA.svg +5 -0
- package/dist-vendor/assets/gr-C5PU0p9p.svg +16 -0
- package/dist-vendor/assets/gr-COThnT__.svg +16 -0
- package/dist-vendor/assets/group-field-DVQnXOEH.js +4 -0
- package/dist-vendor/assets/gw-BTWe96TV.svg +15 -0
- package/dist-vendor/assets/gw-D249VY33.svg +13 -0
- package/dist-vendor/assets/gy-CcVYUM2E.svg +9 -0
- package/dist-vendor/assets/gy-Dl6DrQIH.svg +9 -0
- package/dist-vendor/assets/hk-CUNIaSX0.svg +8 -0
- package/dist-vendor/assets/hk-omO_-Nil.svg +8 -0
- package/dist-vendor/assets/hm-Dh6t_Tj3.svg +8 -0
- package/dist-vendor/assets/hm-fgV6xItx.svg +8 -0
- package/dist-vendor/assets/hn-CRjyS_bm.svg +18 -0
- package/dist-vendor/assets/hn-GhlpqqjC.svg +18 -0
- package/dist-vendor/assets/hu-7Q5wwIIi.svg +7 -0
- package/dist-vendor/assets/hu-Bm8S5mAU.svg +7 -0
- package/dist-vendor/assets/i18next-HF060SlA.js +1 -0
- package/dist-vendor/assets/ic-CSo4d8tH.svg +7 -0
- package/dist-vendor/assets/ic-tiZZSA7Y.svg +7 -0
- package/dist-vendor/assets/id-CJiY5UnY.svg +4 -0
- package/dist-vendor/assets/id-DiSP6Fmm.svg +4 -0
- package/dist-vendor/assets/ie-ChAXClx3.svg +7 -0
- package/dist-vendor/assets/ie-DhxI4aJv.svg +7 -0
- package/dist-vendor/assets/il-CeFQotKl.svg +14 -0
- package/dist-vendor/assets/il-_56OEGLa.svg +14 -0
- package/dist-vendor/assets/in-BrINBvML.svg +25 -0
- package/dist-vendor/assets/in-Cdwu6Bq7.svg +25 -0
- package/dist-vendor/assets/index.dom-CA5INa_J.js +1 -0
- package/dist-vendor/assets/input-CbheVI3-.js +1 -0
- package/dist-vendor/assets/iq-CZIXYTmc.svg +10 -0
- package/dist-vendor/assets/iq-Dp8HDzo2.svg +10 -0
- package/dist-vendor/assets/is-CZjefTNV.svg +12 -0
- package/dist-vendor/assets/is-Cdq2ElPF.svg +12 -0
- package/dist-vendor/assets/it-Br7q0Zh6.svg +7 -0
- package/dist-vendor/assets/it-lvp2tGC_.svg +7 -0
- package/dist-vendor/assets/jm-CItSr3iX.svg +8 -0
- package/dist-vendor/assets/jm-CLL-w5oS.svg +8 -0
- package/dist-vendor/assets/jo-BAF1FGbm.svg +16 -0
- package/dist-vendor/assets/jo-CiGTAWEd.svg +16 -0
- package/dist-vendor/assets/jp-B5RfAVGb.svg +11 -0
- package/dist-vendor/assets/jp-BIMmfxpO.svg +11 -0
- package/dist-vendor/assets/jsx-runtime-By8HlURe.js +1 -0
- package/dist-vendor/assets/ke-C8foqndp.svg +23 -0
- package/dist-vendor/assets/ke-b02kYgZN.svg +23 -0
- package/dist-vendor/assets/km-B5tqtGG7.svg +16 -0
- package/dist-vendor/assets/km-D0jmlyBf.svg +16 -0
- package/dist-vendor/assets/kn-CHJJOZkG.svg +14 -0
- package/dist-vendor/assets/kn-DVPxDkNY.svg +14 -0
- package/dist-vendor/assets/kp-BsOq20Ii.svg +15 -0
- package/dist-vendor/assets/kp-CrDKzoxe.svg +15 -0
- package/dist-vendor/assets/kr-BCXH1Hao.svg +24 -0
- package/dist-vendor/assets/kr-KUIaWHQD.svg +17 -0
- package/dist-vendor/assets/kw-CIaYkhdM.svg +13 -0
- package/dist-vendor/assets/kw-fSBzmd30.svg +13 -0
- package/dist-vendor/assets/la-CuJflhIW.svg +12 -0
- package/dist-vendor/assets/la-cXlqIhGg.svg +12 -0
- package/dist-vendor/assets/lb-BSjpYEoo.svg +15 -0
- package/dist-vendor/assets/lb-DqFaKN7K.svg +15 -0
- package/dist-vendor/assets/lc-CNvab8Ae.svg +8 -0
- package/dist-vendor/assets/lc-DoQpaup4.svg +8 -0
- package/dist-vendor/assets/lr-B84vu3Ds.svg +14 -0
- package/dist-vendor/assets/lr-Zj2ZOITC.svg +14 -0
- package/dist-vendor/assets/ls-5Xk3Mxq5.svg +8 -0
- package/dist-vendor/assets/ls-B-MSA_Nj.svg +8 -0
- package/dist-vendor/assets/lt-CU4QmtZ-.svg +7 -0
- package/dist-vendor/assets/lt-DoukV-Sm.svg +7 -0
- package/dist-vendor/assets/lu-CCDqjGZj.svg +5 -0
- package/dist-vendor/assets/lu-DOI02Msy.svg +5 -0
- package/dist-vendor/assets/lv-C-KfY8Yc.svg +6 -0
- package/dist-vendor/assets/lv-DjyqV19Q.svg +6 -0
- package/dist-vendor/assets/ly-B0G7qBy-.svg +13 -0
- package/dist-vendor/assets/ly-BWpTK3ux.svg +13 -0
- package/dist-vendor/assets/ma-BNn_BSaU.svg +4 -0
- package/dist-vendor/assets/ma-BTRNTRUj.svg +4 -0
- package/dist-vendor/assets/mc-JhJMKfOk.svg +6 -0
- package/dist-vendor/assets/mc-PK078JHl.svg +6 -0
- package/dist-vendor/assets/mf-BaAGWwAq.svg +5 -0
- package/dist-vendor/assets/mf-DC-GBYih.svg +5 -0
- package/dist-vendor/assets/mg-C168LHXW.svg +7 -0
- package/dist-vendor/assets/mg-DDrNyYWg.svg +7 -0
- package/dist-vendor/assets/mh--hJdVdXy.svg +8 -0
- package/dist-vendor/assets/mh-gxuIp6Wk.svg +7 -0
- package/dist-vendor/assets/mk-Cx9Yf_ZD.svg +5 -0
- package/dist-vendor/assets/mk-D9SIMr-a.svg +5 -0
- package/dist-vendor/assets/ml-BBMGMlrT.svg +7 -0
- package/dist-vendor/assets/ml-DVf6ujpi.svg +7 -0
- package/dist-vendor/assets/mm-DB0gzm_2.svg +10 -0
- package/dist-vendor/assets/mm-lwT09MQ0.svg +12 -0
- package/dist-vendor/assets/mn-CNIDYiAG.svg +14 -0
- package/dist-vendor/assets/mn-CgXyw0O9.svg +14 -0
- package/dist-vendor/assets/mo-BAtCjuYA.svg +9 -0
- package/dist-vendor/assets/mo-CZPe8QjC.svg +9 -0
- package/dist-vendor/assets/mq-BFnJ22KI.svg +5 -0
- package/dist-vendor/assets/mq-Dt7FKNYb.svg +5 -0
- package/dist-vendor/assets/mr-Cqt475iO.svg +6 -0
- package/dist-vendor/assets/mr-D6G1wpeZ.svg +6 -0
- package/dist-vendor/assets/mu-B2mIIRce.svg +8 -0
- package/dist-vendor/assets/mu-mcq7cUFl.svg +8 -0
- package/dist-vendor/assets/mv-BXI4x8em.svg +6 -0
- package/dist-vendor/assets/mv-BynAllfM.svg +6 -0
- package/dist-vendor/assets/mw-C15nc1xZ.svg +10 -0
- package/dist-vendor/assets/mw-DkelfrL9.svg +15 -0
- package/dist-vendor/assets/my-BR3vHt6_.svg +18 -0
- package/dist-vendor/assets/my-Co4JeeyE.svg +26 -0
- package/dist-vendor/assets/mz-Bo6u1S_s.svg +21 -0
- package/dist-vendor/assets/mz-Drlr_USV.svg +21 -0
- package/dist-vendor/assets/na-0wFvily3.svg +16 -0
- package/dist-vendor/assets/na-D79ffb4Z.svg +16 -0
- package/dist-vendor/assets/nc-5j7wEmDR.svg +13 -0
- package/dist-vendor/assets/nc-Bw50_tBz.svg +12 -0
- package/dist-vendor/assets/ne-B1jPOYkl.svg +6 -0
- package/dist-vendor/assets/ne-Cium2f5G.svg +6 -0
- package/dist-vendor/assets/ng-CLL1nzMk.svg +6 -0
- package/dist-vendor/assets/ng-su4NM9If.svg +6 -0
- package/dist-vendor/assets/nl-BnOa6UiA.svg +5 -0
- package/dist-vendor/assets/nl-DKN85plC.svg +5 -0
- package/dist-vendor/assets/no-67wnnm5y.svg +7 -0
- package/dist-vendor/assets/no-qf2JPO73.svg +7 -0
- package/dist-vendor/assets/np-B4k6qJKf.svg +18 -0
- package/dist-vendor/assets/np-CIuq5GKd.svg +13 -0
- package/dist-vendor/assets/nr-DERIdzkN.svg +12 -0
- package/dist-vendor/assets/nr-SnI60Bgd.svg +12 -0
- package/dist-vendor/assets/nu-BfgWvGcd.svg +10 -0
- package/dist-vendor/assets/nu-Dm-LLXct.svg +10 -0
- package/dist-vendor/assets/nz-5vODdBjz.svg +36 -0
- package/dist-vendor/assets/nz-CaLnugvK.svg +36 -0
- package/dist-vendor/assets/pa-BLNN9G2-.svg +14 -0
- package/dist-vendor/assets/pa-BzRYvRsl.svg +13 -0
- package/dist-vendor/assets/pc-BJpYiA9b.svg +33 -0
- package/dist-vendor/assets/pc-D9OuqgOn.svg +33 -0
- package/dist-vendor/assets/pe--eye3JWr.svg +4 -0
- package/dist-vendor/assets/pe-BLqhuu1C.svg +4 -0
- package/dist-vendor/assets/pf-C8ahG68q.svg +19 -0
- package/dist-vendor/assets/pf-e6q_5ubr.svg +18 -0
- package/dist-vendor/assets/pg-BAYpbp9Z.svg +9 -0
- package/dist-vendor/assets/pg-nBvUkq7v.svg +16 -0
- package/dist-vendor/assets/ph-B10ogxgQ.svg +6 -0
- package/dist-vendor/assets/ph-BEzTn62K.svg +6 -0
- package/dist-vendor/assets/phone-input-impl-tGfTKVIJ.js +19 -0
- package/dist-vendor/assets/pk-BnahYzav.svg +15 -0
- package/dist-vendor/assets/pk-CWMEc3ad.svg +15 -0
- package/dist-vendor/assets/pl-jl6riBSr.svg +6 -0
- package/dist-vendor/assets/pl-o38JROoc.svg +6 -0
- package/dist-vendor/assets/pm-CHiP5UmZ.svg +5 -0
- package/dist-vendor/assets/pm-CatGySkp.svg +5 -0
- package/dist-vendor/assets/popover-Cg1zTBmw.js +1 -0
- package/dist-vendor/assets/pr-B4tMV0xm.svg +13 -0
- package/dist-vendor/assets/pr-DjaQzs0K.svg +13 -0
- package/dist-vendor/assets/ps-CEUcLi5W.svg +6 -0
- package/dist-vendor/assets/ps-DO8YKYeS.svg +6 -0
- package/dist-vendor/assets/pw-CQP52WMX.svg +11 -0
- package/dist-vendor/assets/pw-DOQyn2PV.svg +11 -0
- package/dist-vendor/assets/qa-CekFoc-3.svg +4 -0
- package/dist-vendor/assets/qa-Dkmpc78M.svg +4 -0
- package/dist-vendor/assets/re-Bg1MZWMt.svg +7 -0
- package/dist-vendor/assets/re-Bk4ipYK1.svg +5 -0
- package/dist-vendor/assets/react-CZI7_Jkm.js +1 -0
- package/dist-vendor/assets/react-dom-cJyBB_A4.js +1 -0
- package/dist-vendor/assets/registry-DBG9QhcD.js +66 -0
- package/dist-vendor/assets/ro-C2av9jVe.svg +7 -0
- package/dist-vendor/assets/ro-CoSeqKY1.svg +7 -0
- package/dist-vendor/assets/rolldown-runtime-QTnfLwEv.js +1 -0
- package/dist-vendor/assets/ru-D-4tNwXt.svg +5 -0
- package/dist-vendor/assets/ru-DbUtf_DX.svg +5 -0
- package/dist-vendor/assets/rw-CcIfVufE.svg +13 -0
- package/dist-vendor/assets/rw-D7nbSYKI.svg +13 -0
- package/dist-vendor/assets/sb-BDTYjcbk.svg +13 -0
- package/dist-vendor/assets/sb-Dv-Gc94i.svg +13 -0
- package/dist-vendor/assets/sc-CRNsSLg9.svg +7 -0
- package/dist-vendor/assets/sc-DFTNEfqs.svg +7 -0
- package/dist-vendor/assets/scroll-area-KiRIggDo.js +1 -0
- package/dist-vendor/assets/sd-BwHx54f9.svg +13 -0
- package/dist-vendor/assets/sd-ClziNjGr.svg +13 -0
- package/dist-vendor/assets/se-8C923vhy.svg +4 -0
- package/dist-vendor/assets/se-DHad7SFX.svg +4 -0
- package/dist-vendor/assets/sg-DGYIMG0G.svg +13 -0
- package/dist-vendor/assets/sg-DisnRdSe.svg +13 -0
- package/dist-vendor/assets/sh-DBww0RCW.svg +7 -0
- package/dist-vendor/assets/sh-DNImvbrE.svg +7 -0
- package/dist-vendor/assets/si-BDW--7ta.svg +18 -0
- package/dist-vendor/assets/si-BMKT-Tec.svg +18 -0
- package/dist-vendor/assets/sj-AM0BJ0qg.svg +7 -0
- package/dist-vendor/assets/sj-BFFEGknm.svg +7 -0
- package/dist-vendor/assets/sk-8lQCLAqV.svg +9 -0
- package/dist-vendor/assets/sk-K9BNIYAO.svg +9 -0
- package/dist-vendor/assets/sl-C0dI8IsG.svg +12 -0
- package/dist-vendor/assets/sl-DxLJY5vJ.svg +7 -0
- package/dist-vendor/assets/sn-C4abx9Xn.svg +8 -0
- package/dist-vendor/assets/sn-S8ipNF1U.svg +8 -0
- package/dist-vendor/assets/so-BpxKZJzu.svg +11 -0
- package/dist-vendor/assets/so-DlzA2Fco.svg +11 -0
- package/dist-vendor/assets/sort-rows-FW_ghcyz.js +1 -0
- package/dist-vendor/assets/sr-CfMKAfua.svg +6 -0
- package/dist-vendor/assets/sr-Co7OKBh3.svg +6 -0
- package/dist-vendor/assets/ss-C_PPJ8V2.svg +8 -0
- package/dist-vendor/assets/ss-CxVEpdPD.svg +8 -0
- package/dist-vendor/assets/st-AMcb9FhJ.svg +16 -0
- package/dist-vendor/assets/st-C1Nd1c3V.svg +16 -0
- package/dist-vendor/assets/sy-Dpn5i9ke.svg +6 -0
- package/dist-vendor/assets/sy-DwSud114.svg +6 -0
- package/dist-vendor/assets/td-BsuVhZpT.svg +7 -0
- package/dist-vendor/assets/td-Ddv_29rE.svg +7 -0
- package/dist-vendor/assets/tf-Co33RhQH.svg +15 -0
- package/dist-vendor/assets/tf-DSn8VxE3.svg +15 -0
- package/dist-vendor/assets/tg-BpRxi4F-.svg +14 -0
- package/dist-vendor/assets/tg-CP1-sc35.svg +14 -0
- package/dist-vendor/assets/th-DK2zZyMY.svg +7 -0
- package/dist-vendor/assets/th-tzq84hgd.svg +7 -0
- package/dist-vendor/assets/tj-BWWBVTk9.svg +26 -0
- package/dist-vendor/assets/tj-b-aWfOTb.svg +22 -0
- package/dist-vendor/assets/tk-CDucsEss.svg +5 -0
- package/dist-vendor/assets/tk-CZEI6mqd.svg +5 -0
- package/dist-vendor/assets/tl-wpo93AGk.svg +13 -0
- package/dist-vendor/assets/tl-zghdr7_K.svg +13 -0
- package/dist-vendor/assets/tn-BcKCZULf.svg +4 -0
- package/dist-vendor/assets/tn-DcO8DL80.svg +4 -0
- package/dist-vendor/assets/to-6m55WaQo.svg +10 -0
- package/dist-vendor/assets/to-D8uVsoxb.svg +10 -0
- package/dist-vendor/assets/tr-Cd6FO9Bg.svg +8 -0
- package/dist-vendor/assets/tr-Dgwi_nfe.svg +8 -0
- package/dist-vendor/assets/tt-CTnr7aY5.svg +5 -0
- package/dist-vendor/assets/tt-f6m2xq_2.svg +7 -0
- package/dist-vendor/assets/tv-DDqkVT-n.svg +9 -0
- package/dist-vendor/assets/tv-MqebyrVm.svg +9 -0
- package/dist-vendor/assets/tw-BGxVDCOL.svg +32 -0
- package/dist-vendor/assets/tw-d-Mf-0VT.svg +34 -0
- package/dist-vendor/assets/tz-BUVjlfC1.svg +15 -0
- package/dist-vendor/assets/tz-BjLtHeil.svg +13 -0
- package/dist-vendor/assets/ua-Bq0XgQqK.svg +6 -0
- package/dist-vendor/assets/ua-BquxXKta.svg +6 -0
- package/dist-vendor/assets/ug-ByL2ejGl.svg +30 -0
- package/dist-vendor/assets/ug-CQ8d5RQC.svg +30 -0
- package/dist-vendor/assets/um-Bhke9Eic.svg +9 -0
- package/dist-vendor/assets/um-DreQrsBl.svg +9 -0
- package/dist-vendor/assets/us-C73uVeEr.svg +9 -0
- package/dist-vendor/assets/us-DAM9Utrf.svg +9 -0
- package/dist-vendor/assets/useTranslation-RqY_bF-3.js +1 -0
- package/dist-vendor/assets/uy-B2Qs7aGx.svg +28 -0
- package/dist-vendor/assets/uy-DD6peej-.svg +28 -0
- package/dist-vendor/assets/uz-C2f-Cubn.svg +30 -0
- package/dist-vendor/assets/uz-rmSB_IKB.svg +30 -0
- package/dist-vendor/assets/vc-COpmFovN.svg +8 -0
- package/dist-vendor/assets/vc-DaYqUZD4.svg +8 -0
- package/dist-vendor/assets/ve-BSqnIB9l.svg +26 -0
- package/dist-vendor/assets/ve-L4X6NQ3q.svg +26 -0
- package/dist-vendor/assets/vn-BEAEijd0.svg +11 -0
- package/dist-vendor/assets/vn-CsUBJx2L.svg +11 -0
- package/dist-vendor/assets/vu-BIFa5Beu.svg +21 -0
- package/dist-vendor/assets/vu-D6k0NQlg.svg +21 -0
- package/dist-vendor/assets/wf-BC64oop4.svg +5 -0
- package/dist-vendor/assets/wf-DrxpOO_G.svg +5 -0
- package/dist-vendor/assets/ws-IVFNwTc1.svg +7 -0
- package/dist-vendor/assets/ws-vzJNwdVm.svg +7 -0
- package/dist-vendor/assets/xx-DHLZWhOc.svg +4 -0
- package/dist-vendor/assets/xx-zm_JmrXl.svg +4 -0
- package/dist-vendor/assets/ye-BwST9gXC.svg +7 -0
- package/dist-vendor/assets/ye-Ir8OtngQ.svg +7 -0
- package/dist-vendor/assets/yt-BGlbbiEn.svg +5 -0
- package/dist-vendor/assets/yt-DIfEG0ex.svg +5 -0
- package/dist-vendor/assets/za-BUKoH9qm.svg +17 -0
- package/dist-vendor/assets/za-Jz40JTrv.svg +17 -0
- package/dist-vendor/i18next.js +1 -1208
- package/dist-vendor/jsx-runtime.js +1 -6
- package/dist-vendor/react-dom-client.js +9 -0
- package/dist-vendor/react-dom.js +1 -6
- package/dist-vendor/react-i18next.js +1 -0
- package/dist-vendor/react-router-dom.js +6 -1705
- package/dist-vendor/react.js +1 -6
- package/dist-vendor/sdk.js +1 -0
- package/dist-vendor/web-ui/lib/oklch.js +1 -0
- package/dist-vendor/web-ui/render/blocks.js +1 -0
- package/dist-vendor/web-ui/render/core.js +11 -0
- package/dist-vendor/web-ui.js +1 -67946
- package/package.json +1 -1
- package/dist/assets/ChatWidget-CZFJNVBt.js +0 -5
- package/dist/assets/DiagnosticsPage-BRGLbMCb.js +0 -1
- package/dist/assets/GeoMap-B1DFGu6_.js +0 -1
- package/dist/assets/GeoMap-vh-t_kPv.css +0 -1
- package/dist/assets/MarkdownEditor-DsKPqeIt.js +0 -189
- package/dist/assets/NewRecordView-B1jdKkrr.js +0 -1
- package/dist/assets/PluginSettingsPage-Dasrpx47.js +0 -1
- package/dist/assets/ScanSummary-xxY2oZVM.js +0 -1
- package/dist/assets/SettingsForm-C-xB5cdD.js +0 -1
- package/dist/assets/SettingsPage-DjRQ1bY5.js +0 -3
- package/dist/assets/ThemeSwitcher-BJRcZMR7.js +0 -1
- package/dist/assets/api-QNHQU9to.js +0 -1
- package/dist/assets/auth-context-CoCE5oPD.js +0 -1
- package/dist/assets/condition-B5taAXkb.js +0 -1
- package/dist/assets/countries-CoGvAZ5u.js +0 -1
- package/dist/assets/data-size-CO-LGHbN.js +0 -1
- package/dist/assets/development-ChLInqDF.js +0 -1
- package/dist/assets/dist-COeDLrWj.js +0 -1
- package/dist/assets/esm-CX8ST5Fv.js +0 -1
- package/dist/assets/esm-YFvMvTG9.css +0 -1
- package/dist/assets/esm-oGoWacTd.js +0 -24
- package/dist/assets/extend-CHOe1AVl.js +0 -1
- package/dist/assets/fields-Ce51pRua.js +0 -64
- package/dist/assets/file-text-BdYRF4MO.js +0 -1
- package/dist/assets/flag-icons-CTDpPZQq.css +0 -1
- package/dist/assets/i18n-vendor-T6EnJ_TL.js +0 -13
- package/dist/assets/ical-FRtCagm-.js +0 -8
- package/dist/assets/icons-0CjpO0K1.js +0 -6
- package/dist/assets/ilamy-view-D7DQZ577.js +0 -7
- package/dist/assets/index-CpRTFlxk.js +0 -22
- package/dist/assets/index-Le8YFirR.css +0 -2
- package/dist/assets/input-BFMNMo6y.js +0 -1
- package/dist/assets/list-cache-wPeWyKg1.js +0 -1
- package/dist/assets/markdown-vendor-WSL3P01P.js +0 -56
- package/dist/assets/phone-input-3xV95mM6.js +0 -1
- package/dist/assets/phone-input-8QtHMHO_.js +0 -21
- package/dist/assets/plugin-Cjr7lgQH.js +0 -1
- package/dist/assets/plugin-label-CfdhA4_L.js +0 -1
- package/dist/assets/popover-UkAmHo3Y.js +0 -1
- package/dist/assets/react-vendor-CzSUaSLk.js +0 -229
- package/dist/assets/registration-43gjHJ3X.js +0 -1
- package/dist/assets/rolldown-runtime-QTnfLwEv.js +0 -1
- package/dist/assets/settings-BEzSaRjz.js +0 -1
- package/dist/assets/shelf-DjiUBfgQ.js +0 -1
- package/dist/assets/showcase-BeBnutzT.js +0 -1
- package/dist/assets/src-B-FFwJ-G.js +0 -1
- package/dist/assets/src-B1LWYTOR.js +0 -2
- package/dist/assets/src-B7dY0wwO.js +0 -4
- package/dist/assets/src-BDP8FIN_.js +0 -1
- package/dist/assets/src-BPuTgDYD.js +0 -1
- package/dist/assets/src-BRP-DLVM2.js +0 -1
- package/dist/assets/src-BU56fYCH2.js +0 -1
- package/dist/assets/src-BmgYgIDb.js +0 -1
- package/dist/assets/src-Bzgh6Ge5.js +0 -1
- package/dist/assets/src-C06O0ceD.js +0 -1
- package/dist/assets/src-CCeQIMl_.js +0 -1
- package/dist/assets/src-CgXkpslu.js +0 -1
- package/dist/assets/src-CheiTWox.js +0 -7
- package/dist/assets/src-CjPxrk6V.js +0 -1
- package/dist/assets/src-Co7xh07B.js +0 -1
- package/dist/assets/src-CtQWxdaS.js +0 -8
- package/dist/assets/src-CwyJPFKQ.js +0 -1
- package/dist/assets/src-Cz38tTr3.js +0 -1
- package/dist/assets/src-DDtMlZ03.js +0 -1
- package/dist/assets/src-DNx0vmvI.js +0 -1
- package/dist/assets/src-DjrjxzQu.js +0 -1
- package/dist/assets/src-Dsh4Yd_x.js +0 -6
- package/dist/assets/src-Du26RLvk.js +0 -1
- package/dist/assets/src-G94LYhEo.js +0 -1
- package/dist/assets/src-aPsTM6Fr.js +0 -1
- package/dist/assets/src-iJXhTwKd.js +0 -1
- package/dist/assets/src-rXsbV4Ce.js +0 -6
- package/dist/assets/ui-BLiPhfyz.js +0 -2
- package/dist/assets/ui-DL6R5B56.js +0 -2
- package/dist/assets/ui-jz6tZ6GD.js +0 -2
- package/dist/assets/ui-mefYc6et.js +0 -2
- package/dist/assets/ui-vendor-ByG3otld.js +0 -44
- package/dist-vendor/chunk-KS7C4IRE-CACNl8KN.js +0 -6349
- package/dist-vendor/jsx-runtime-BiMSyZU3.js +0 -22
- package/dist-vendor/react-Be14ySWY.js +0 -293
- package/dist-vendor/react-dom-Dvp3Hdeu.js +0 -131
- package/dist-vendor/rolldown-runtime-Dqa2HsxW.js +0 -20
- package/dist-vendor/web.css +0 -2
- /package/{dist → dist-vendor}/assets/ad-B18i8NGa.svg +0 -0
- /package/{dist → dist-vendor}/assets/ad-Blhdm5jl.svg +0 -0
- /package/{dist → dist-vendor}/assets/af-Bc2fqp73.svg +0 -0
- /package/{dist → dist-vendor}/assets/af-C77Rf6cE.svg +0 -0
- /package/{dist → dist-vendor}/assets/arab-C-KgnQEz.svg +0 -0
- /package/{dist → dist-vendor}/assets/arab-C4CYPgyC.svg +0 -0
- /package/{dist → dist-vendor}/assets/as-BTEVCXG-.svg +0 -0
- /package/{dist → dist-vendor}/assets/as-Dekqy8Of.svg +0 -0
- /package/{dist → dist-vendor}/assets/aw-CLCX8uk5.svg +0 -0
- /package/{dist → dist-vendor}/assets/aw-W0PWLK5p.svg +0 -0
- /package/{dist → dist-vendor}/assets/bm-BeYgB2z9.svg +0 -0
- /package/{dist → dist-vendor}/assets/bm-DvNWWcPM.svg +0 -0
- /package/{dist → dist-vendor}/assets/bn-B6T3O78g.svg +0 -0
- /package/{dist → dist-vendor}/assets/bn-CPQcA8Ol.svg +0 -0
- /package/{dist → dist-vendor}/assets/bo-CcUiMqkJ.svg +0 -0
- /package/{dist → dist-vendor}/assets/bo-Dry0C6UA.svg +0 -0
- /package/{dist → dist-vendor}/assets/br-Cu5YU29T.svg +0 -0
- /package/{dist → dist-vendor}/assets/br-Dr5rMAMb.svg +0 -0
- /package/{dist → dist-vendor}/assets/bt-BTo4qm10.svg +0 -0
- /package/{dist → dist-vendor}/assets/bt-SxWnbWW0.svg +0 -0
- /package/{dist → dist-vendor}/assets/bz-BCKHR4_q.svg +0 -0
- /package/{dist → dist-vendor}/assets/bz-CoBdB-p8.svg +0 -0
- /package/{dist → dist-vendor}/assets/cy-DJKnEFYW.svg +0 -0
- /package/{dist → dist-vendor}/assets/cy-bZuP8hmf.svg +0 -0
- /package/{dist → dist-vendor}/assets/dg-CJPJrjiZ.svg +0 -0
- /package/{dist → dist-vendor}/assets/dg-DqkWLbnk.svg +0 -0
- /package/{dist → dist-vendor}/assets/dm-Cbhezfe1.svg +0 -0
- /package/{dist → dist-vendor}/assets/dm-DPPHwW2M.svg +0 -0
- /package/{dist → dist-vendor}/assets/do-B86d445t.svg +0 -0
- /package/{dist → dist-vendor}/assets/do-DeRnbj4d.svg +0 -0
- /package/{dist → dist-vendor}/assets/eac-CwGQsyAM.svg +0 -0
- /package/{dist → dist-vendor}/assets/eac-h4QKADRE.svg +0 -0
- /package/{dist → dist-vendor}/assets/ec-CaVOFQ3t.svg +0 -0
- /package/{dist → dist-vendor}/assets/ec-cwfBJlvF.svg +0 -0
- /package/{dist → dist-vendor}/assets/eg-DwOkwyQ0.svg +0 -0
- /package/{dist → dist-vendor}/assets/eg-YC70hswZ.svg +0 -0
- /package/{dist → dist-vendor}/assets/es-BuSGTZm_.svg +0 -0
- /package/{dist → dist-vendor}/assets/es-d5m8M5h8.svg +0 -0
- /package/{dist → dist-vendor}/assets/es-ga-D9xG2hYr.svg +0 -0
- /package/{dist → dist-vendor}/assets/es-ga-DXhVZ333.svg +0 -0
- /package/{dist → dist-vendor}/assets/fj-DEAVMg38.svg +0 -0
- /package/{dist → dist-vendor}/assets/fj-u3dAPoew.svg +0 -0
- /package/{dist → dist-vendor}/assets/fk-B-RvQ4Hz.svg +0 -0
- /package/{dist → dist-vendor}/assets/fk-nuUF_Ak3.svg +0 -0
- /package/{dist → dist-vendor}/assets/gb-nir-D4gikpNq.svg +0 -0
- /package/{dist → dist-vendor}/assets/gb-nir-vEp1ZXy6.svg +0 -0
- /package/{dist → dist-vendor}/assets/gb-wls-Bxz9hxvX.svg +0 -0
- /package/{dist → dist-vendor}/assets/gb-wls-CK0XlKT-.svg +0 -0
- /package/{dist → dist-vendor}/assets/gq-CPnMO1hT.svg +0 -0
- /package/{dist → dist-vendor}/assets/gq-Cag8QTk2.svg +0 -0
- /package/{dist → dist-vendor}/assets/gs-DOgYbHsY.svg +0 -0
- /package/{dist → dist-vendor}/assets/gs-DiiNa0F5.svg +0 -0
- /package/{dist → dist-vendor}/assets/gt-BLpn5qMn.svg +0 -0
- /package/{dist → dist-vendor}/assets/gt-CJo5DI-7.svg +0 -0
- /package/{dist → dist-vendor}/assets/gu-Di1JYREk.svg +0 -0
- /package/{dist → dist-vendor}/assets/gu-SbvrH0uZ.svg +0 -0
- /package/{dist → dist-vendor}/assets/hr-BpiVVBoV.svg +0 -0
- /package/{dist → dist-vendor}/assets/hr-fzLfaANM.svg +0 -0
- /package/{dist → dist-vendor}/assets/ht-DIMg4gti.svg +0 -0
- /package/{dist → dist-vendor}/assets/ht-pweRl6ZP.svg +0 -0
- /package/{dist → dist-vendor}/assets/im--VPIqfkF.svg +0 -0
- /package/{dist → dist-vendor}/assets/im-Dd9p-0-T.svg +0 -0
- /package/{dist → dist-vendor}/assets/io-13HOfeJD.svg +0 -0
- /package/{dist → dist-vendor}/assets/io-BImhNBcd.svg +0 -0
- /package/{dist → dist-vendor}/assets/ir-Q03Mij62.svg +0 -0
- /package/{dist → dist-vendor}/assets/ir-cCIgaNf6.svg +0 -0
- /package/{dist → dist-vendor}/assets/je-DyWbhIiC.svg +0 -0
- /package/{dist → dist-vendor}/assets/je-vXe0Dr49.svg +0 -0
- /package/{dist → dist-vendor}/assets/kg-B0FsxZiL.svg +0 -0
- /package/{dist → dist-vendor}/assets/kg-CjfitMyT.svg +0 -0
- /package/{dist → dist-vendor}/assets/kh-BBvObpUS.svg +0 -0
- /package/{dist → dist-vendor}/assets/kh-BeWfuE30.svg +0 -0
- /package/{dist → dist-vendor}/assets/ki-fuIMkEYQ.svg +0 -0
- /package/{dist → dist-vendor}/assets/ki-p_fAQGbS.svg +0 -0
- /package/{dist → dist-vendor}/assets/ky-BqaZHuhf.svg +0 -0
- /package/{dist → dist-vendor}/assets/ky-Dpsu1myA.svg +0 -0
- /package/{dist → dist-vendor}/assets/kz-CwKXYZ8s.svg +0 -0
- /package/{dist → dist-vendor}/assets/kz-Dkyx6q-p.svg +0 -0
- /package/{dist → dist-vendor}/assets/li-CHdhvNcr.svg +0 -0
- /package/{dist → dist-vendor}/assets/li-CMlf0YU8.svg +0 -0
- /package/{dist → dist-vendor}/assets/lk-DSQoDxn_.svg +0 -0
- /package/{dist → dist-vendor}/assets/lk-DUkgV9Tq.svg +0 -0
- /package/{dist → dist-vendor}/assets/md-DRlxvNwm.svg +0 -0
- /package/{dist → dist-vendor}/assets/md-DTi94M3M.svg +0 -0
- /package/{dist → dist-vendor}/assets/me-CfGorN3b.svg +0 -0
- /package/{dist → dist-vendor}/assets/me-Cv4Gwqah.svg +0 -0
- /package/{dist → dist-vendor}/assets/mp-CrOApEqW.svg +0 -0
- /package/{dist → dist-vendor}/assets/mp-CuaQmCLf.svg +0 -0
- /package/{dist → dist-vendor}/assets/ms-B-w7hFKu.svg +0 -0
- /package/{dist → dist-vendor}/assets/ms-DxciGbUu.svg +0 -0
- /package/{dist → dist-vendor}/assets/mt-YDa8zgzO.svg +0 -0
- /package/{dist → dist-vendor}/assets/mt-YqzKx9xl.svg +0 -0
- /package/{dist → dist-vendor}/assets/mx-Cc8Ccfe8.svg +0 -0
- /package/{dist → dist-vendor}/assets/mx-CvCwYHGF.svg +0 -0
- /package/{dist → dist-vendor}/assets/nf-DGrQb42O.svg +0 -0
- /package/{dist → dist-vendor}/assets/nf-Dl00mlk2.svg +0 -0
- /package/{dist → dist-vendor}/assets/ni-BX2WCaNt.svg +0 -0
- /package/{dist → dist-vendor}/assets/ni-CcFCSQxm.svg +0 -0
- /package/{dist → dist-vendor}/assets/om-DcqxRdQL.svg +0 -0
- /package/{dist → dist-vendor}/assets/om-nN8zP2Bu.svg +0 -0
- /package/{dist → dist-vendor}/assets/pn-BPAlH32D.svg +0 -0
- /package/{dist → dist-vendor}/assets/pn-DgxdtieE.svg +0 -0
- /package/{dist → dist-vendor}/assets/pt-BTevY6N2.svg +0 -0
- /package/{dist → dist-vendor}/assets/pt-DZ2ADgIR.svg +0 -0
- /package/{dist → dist-vendor}/assets/py-BKi5dxWt.svg +0 -0
- /package/{dist → dist-vendor}/assets/py-mNzh0mZC.svg +0 -0
- /package/{dist → dist-vendor}/assets/rs-BfwKwXtn.svg +0 -0
- /package/{dist → dist-vendor}/assets/rs-CnTO3ehk.svg +0 -0
- /package/{dist → dist-vendor}/assets/sa-Dh79zbT9.svg +0 -0
- /package/{dist → dist-vendor}/assets/sa-DnlyVVKx.svg +0 -0
- /package/{dist → dist-vendor}/assets/sh-ac-D-aE2xRW.svg +0 -0
- /package/{dist → dist-vendor}/assets/sh-ac-FjwY7RYr.svg +0 -0
- /package/{dist → dist-vendor}/assets/sh-hl-CgxUDvtv.svg +0 -0
- /package/{dist → dist-vendor}/assets/sh-hl-CqtQPzWZ.svg +0 -0
- /package/{dist → dist-vendor}/assets/sh-ta-BFo5zkKU.svg +0 -0
- /package/{dist → dist-vendor}/assets/sh-ta-CPJublpi.svg +0 -0
- /package/{dist → dist-vendor}/assets/sm-BKrUHzrq.svg +0 -0
- /package/{dist → dist-vendor}/assets/sm-DGBIRFB_.svg +0 -0
- /package/{dist → dist-vendor}/assets/sv-CJIHhYwF.svg +0 -0
- /package/{dist → dist-vendor}/assets/sv-RZ39q5hO.svg +0 -0
- /package/{dist → dist-vendor}/assets/sx-RKKs0ph6.svg +0 -0
- /package/{dist → dist-vendor}/assets/sx-nDhIaDNb.svg +0 -0
- /package/{dist → dist-vendor}/assets/sz-D39eIL5d.svg +0 -0
- /package/{dist → dist-vendor}/assets/sz-qxMwa2gs.svg +0 -0
- /package/{dist → dist-vendor}/assets/tc-CJHJmJj1.svg +0 -0
- /package/{dist → dist-vendor}/assets/tc-dtelpZmc.svg +0 -0
- /package/{dist → dist-vendor}/assets/tm-C_WSgUcv.svg +0 -0
- /package/{dist → dist-vendor}/assets/tm-DGBJvQay.svg +0 -0
- /package/{dist → dist-vendor}/assets/un-Bqg4Cbbh.svg +0 -0
- /package/{dist → dist-vendor}/assets/un-DabL4p35.svg +0 -0
- /package/{dist → dist-vendor}/assets/va-B9-hqIE-.svg +0 -0
- /package/{dist → dist-vendor}/assets/va-s7kyhqIM.svg +0 -0
- /package/{dist → dist-vendor}/assets/vg-C7xY6pic.svg +0 -0
- /package/{dist → dist-vendor}/assets/vg-ClZ-0KpG.svg +0 -0
- /package/{dist → dist-vendor}/assets/vi-BC_zcciE.svg +0 -0
- /package/{dist → dist-vendor}/assets/vi-BSdsyIxY.svg +0 -0
- /package/{dist → dist-vendor}/assets/xk-Bj15g7cp.svg +0 -0
- /package/{dist → dist-vendor}/assets/xk-Cdz2uTvR.svg +0 -0
- /package/{dist → dist-vendor}/assets/zm-BmsW91ne.svg +0 -0
- /package/{dist → dist-vendor}/assets/zm-D8B-0kdx.svg +0 -0
- /package/{dist → dist-vendor}/assets/zw-CSuuaw9K.svg +0 -0
- /package/{dist → dist-vendor}/assets/zw-U0m7oJ5e.svg +0 -0
package/dist-vendor/react.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { t } from "./react-Be14ySWY.js";
|
|
3
|
-
//#region vendor/react.ts
|
|
4
|
-
var n = /* @__PURE__ */ e(t(), 1), r = n, { Activity: i, Children: a, Component: o, Fragment: s, Profiler: c, PureComponent: l, StrictMode: u, Suspense: d, act: f, cache: p, cacheSignal: m, captureOwnerStack: h, cloneElement: g, createContext: _, createElement: v, createRef: y, forwardRef: b, isValidElement: x, lazy: S, memo: C, startTransition: w, use: T, useActionState: E, useCallback: D, useContext: O, useDebugValue: k, useDeferredValue: A, useEffect: j, useEffectEvent: M, useId: N, useImperativeHandle: P, useInsertionEffect: F, useLayoutEffect: I, useMemo: L, useOptimistic: R, useReducer: z, useRef: B, useState: V, useSyncExternalStore: H, useTransition: U, version: W } = n, G = n.unstable_useCacheRefresh;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { i as Activity, a as Children, o as Component, s as Fragment, c as Profiler, l as PureComponent, u as StrictMode, d as Suspense, f as act, p as cache, m as cacheSignal, h as captureOwnerStack, g as cloneElement, _ as createContext, v as createElement, y as createRef, r as default, b as forwardRef, x as isValidElement, S as lazy, C as memo, w as startTransition, G as unstable_useCacheRefresh, T as use, E as useActionState, D as useCallback, O as useContext, k as useDebugValue, A as useDeferredValue, j as useEffect, M as useEffectEvent, N as useId, P as useImperativeHandle, F as useInsertionEffect, I as useLayoutEffect, L as useMemo, R as useOptimistic, z as useReducer, B as useRef, V as useState, H as useSyncExternalStore, U as useTransition, W as version };
|
|
1
|
+
import{r as s}from"./assets/rolldown-runtime-QTnfLwEv.js";import{t as a}from"./assets/react-CZI7_Jkm.js";var e=s(a(),1),t=e,{Activity:u,Children:r,Component:n,Fragment:c,Profiler:o,PureComponent:i,StrictMode:f,Suspense:l,act:m,cache:E,cacheSignal:d,captureOwnerStack:S,cloneElement:p,createContext:C,createElement:h,createRef:R,forwardRef:v,isValidElement:y,lazy:x,memo:b,startTransition:g,use:I,useActionState:V,useCallback:k,useContext:w,useDebugValue:A,useDeferredValue:D,useEffect:M,useEffectEvent:O,useId:P,useImperativeHandle:T,useInsertionEffect:z,useLayoutEffect:F,useMemo:H,useOptimistic:L,useReducer:_,useRef:j,useState:B,useSyncExternalStore:G,useTransition:N,version:U}=e,W=e.unstable_useCacheRefresh;export{u as Activity,r as Children,n as Component,c as Fragment,o as Profiler,i as PureComponent,f as StrictMode,l as Suspense,m as act,E as cache,d as cacheSignal,S as captureOwnerStack,p as cloneElement,C as createContext,h as createElement,R as createRef,t as default,v as forwardRef,y as isValidElement,x as lazy,b as memo,g as startTransition,W as unstable_useCacheRefresh,I as use,V as useActionState,k as useCallback,w as useContext,A as useDebugValue,D as useDeferredValue,M as useEffect,O as useEffectEvent,P as useId,T as useImperativeHandle,z as useInsertionEffect,F as useLayoutEffect,H as useMemo,L as useOptimistic,_ as useReducer,j as useRef,B as useState,G as useSyncExternalStore,N as useTransition,U as version};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as He,$n as Qe,$r as es,$t as ss,A as Q,Ai as as,An as ts,Ar as rs,At as is,B as os,Bi as ns,Bn as ls,Br as fs,Bt as ds,C as z,Ci as us,Cn as ps,Cr as cs,Ct as hs,D as w,Di as ms,Dn as gs,Dr as ys,Dt as $s,E as ee,Ei as ws,En as bs,Er as Ss,Et as vs,F as se,Fi as Es,Fn as _s,Fr as Os,Ft as ks,G as Ts,Gi as Ns,Gn as xs,Gr as As,Gt as Cs,H as Ms,Hi as Ls,Hn as Is,Hr as Rs,Ht as Us,I as ae,Ii as Ps,In as js,Ir as Gs,It as O,J as Bs,Ji as Ds,Jn as Fs,Jr as zs,Jt as Ks,K as Vs,Ki as Ws,Kn as Js,Kr as Ys,Kt as Zs,L as qs,Li as Xs,Ln as Hs,Lr as Qs,Lt as U,M as ea,Mi as sa,Mn as aa,Mr as ta,Mt as te,N as ra,Ni as ia,Nn as oa,Nr as na,Nt as k,O as la,Oi as fa,On as da,Or as ua,Ot as pa,P as ca,Pi as ha,Pn as ma,Pr as ga,Pt as ya,Q as $a,Qn as wa,Qr as ba,Qt as Sa,R as va,Ri as Ea,Rn as _a,Rr as Oa,Rt as ka,S as re,Si as Ta,Sn as Na,Sr as xa,St as Aa,T as Ca,Ti as Ma,Tn as La,Tr as Ia,Tt as Ra,U as ie,Ui as Ua,Un as Pa,Ur as ja,Ut as Ga,V as Ba,Vi as Da,Vn as Fa,Vr as za,Vt as Ka,W as Va,Wi as Wa,Wn as Ja,Wr as Ya,Wt as Za,X as qa,Xn as Xa,Xr as Ha,Xt as Qa,Y as et,Yi as st,Yn as at,Yr as tt,Yt as rt,Z as it,Zn as ot,Zr as nt,Zt as lt,_ as ft,_i as dt,_n as oe,_r as ut,_t as pt,a as ne,ai as ct,an as ht,ar as mt,at as gt,b as yt,bi as $t,bn as wt,br as bt,bt as _,c as le,ci as St,cn as vt,cr as Et,ct as _t,d as K,di as Ot,dn as kt,dr as Tt,dt as Nt,ei as xt,en as At,er as Ct,et as Mt,f as fe,fi as Lt,fn as de,fr as It,ft as Rt,g as Ut,gi as Pt,gn as ue,gr as jt,gt as Gt,h as Bt,hi as P,hn as pe,hr as Dt,ht as C,i as Ft,ii as zt,in as Kt,ir as Vt,it as Wt,j as Jt,ji as Yt,jn as Zt,jr as qt,jt as Xt,k as Ht,ki as Qt,kn as er,kr as sr,kt as ar,l as j,li as tr,ln as rr,lr as ir,lt as or,m as nr,mi as lr,mn as ce,mr as fr,mt as dr,n as ur,ni as T,nn as pr,nr as cr,nt as hr,o as mr,oi as gr,on as yr,or as $r,ot as wr,p as br,pi as Sr,pn as vr,pr as Er,pt as _r,q as Or,qi as kr,qn as Tr,qr as Nr,qt as xr,r as he,ri as Ar,rn as Cr,rr as Mr,rt as Lr,s as Ir,si as Rr,sn as Ur,sr as Pr,st as jr,t as Gr,ti as me,tn as Br,tr as Dr,tt as Fr,u as ge,ui as zr,un as Kr,ur as Vr,ut as Wr,v as ye,vi as Jr,vn as Yr,vr as Zr,vt as qr,w as Xr,wi as Hr,wn as Qr,wr as ei,wt as si,x as ai,xi as ti,xn as ri,xr as ii,xt as oi,y as ni,yi as li,yn as fi,yr as di,yt as ui,z as pi,zi as ci,zn as hi,zr as mi,zt as gi}from"./assets/collection-diff-DfAYCE5v.js";import{i as yi,n as $e,r as we,t as be}from"./assets/currencies-DKBTq4hu.js";function $i(e){if(typeof e!="string"||!e)return[];try{let s=JSON.parse(e);return Array.isArray(s)?s:[]}catch{return[]}}function wi(e){return e.length?JSON.stringify(e):""}var M=["scheme","username","password","host","port","path","query","hash"],bi=e=>M.map(s=>({name:`${e}__${s}`,type:s==="port"?"integer":"text"}));function Si(e,s){let a={};for(let t of M){let r=s[`${e}__${t}`];if(!(r==null||r===""))if(t==="port"){let i=Number(r);Number.isFinite(i)&&(a.port=i)}else a[t]=String(r)}return a}function vi(e){return{from:M.map(s=>`${e}__${s}`),to:[{name:e,type:"text"}],map:s=>({[e]:de(Si(e,s))||null})}}function Ei(e){return{from:[e],to:bi(e),map:s=>{let a=s[e],t=a==null?null:ce(String(a)),r={};for(let i of M)r[`${e}__${i}`]=t?.[i]??null;return r}}}function _i(e){return{from:[e],to:[{name:e,type:"text"}],map:s=>{let a=s[e];return a==null||a===""?{[e]:null}:Se(a)?{[e]:a}:{[e]:JSON.stringify([a])}}}}function Oi(e){return{from:[e],to:[{name:e,type:"text"}],map:s=>{let a=s[e];if(a==null||a==="")return{[e]:null};if(!Se(a))return{[e]:a};try{let t=JSON.parse(String(a))[0];return{[e]:t==null?null:typeof t=="object"?JSON.stringify(t):t}}catch{return{[e]:a}}}}}function Se(e){return typeof e=="string"&&e.trimStart().startsWith("[")}function ki(e){if(e)return typeof e=="string"?{description:e}:e}function Ti(e){return e}var ve="lucide:folder";function Ee(e){return{id:e,label:e,icon:ve}}function Ni(e){let s=T(e),a=w(s.fields).map(([r])=>r),t=a.find((r,i)=>a.indexOf(r)!==i);if(t)throw Error(`[extend] ${s.id}: duplicate key '${t}'`);return re(s.fields,`[extend] ${s.id}`),s}function _e(e,s,a){return e.attachTo.some(t=>!(t.library!==s||t.shelf&&t.shelf!==a))}function xi(e){return st(ye(e.fields,!0))}function Ai(e){return{id:e.id,label:e.label,icon:e.icon,attachTo:e.attachTo,showWhen:e.showWhen,agent:e.agent,fields:se(e.fields)}}function Oe(e){let s=new Map;for(let t of e)for(let r of t.libraries??[])s.has(r.meta.id)||s.set(r.meta.id,{...r.meta});let a=[];for(let t of e){for(let r of t.libraries??[])a.push(...r.shelves);a.push(...t.libraryShelves??[])}return{libraries:[...new Set([...s.keys(),...a.map(t=>t.library)])].map(t=>({meta:s.get(t)??Ee(t),shelves:a.filter(r=>r.library===t)})),shelves:a,extends_:e.flatMap(t=>t.extends_??[])}}function Ci(e){if(!e.id)throw Error("[plugin] missing id");if(!e.label)throw Error(`[plugin] ${e.id}: missing label`);if(!e.description)throw Error(`[plugin] ${e.id}: missing description`);return e.version||console.warn(`[plugin] ${e.id}: missing version`),e}function ke(e){let s=new Map(e.map(i=>[i.id,i]));for(let i of e)for(let n of i.dependsOn)if(!s.has(n))throw Error(`[plugin] ${i.id}: dependency '${n}' is not registered`);let a=[],t=new Map,r=(i,n)=>{let u=t.get(i.id);if(u!=="done"){if(u==="visiting")throw Error(`[plugin] dependency cycle: ${[...n,i.id].join(" \u2192 ")}`);t.set(i.id,"visiting");for(let h of i.dependsOn)r(s.get(h),[...n,i.id]);t.set(i.id,"done"),a.push(i)}};for(let i of e)r(i,[]);return a}function Te(e){let s=ke(e),{libraries:a,shelves:t,extends_:r}=Oe(s);return{order:s,libraries:a,shelves:t,extends_:r}}function Mi(e){return T(e)}var Li=e=>typeof e=="object"&&!!e&&!Array.isArray(e),E=class extends Error{code;path;params;constructor(e,s,a){super(e),this.code=e,this.path=s,this.params=a,this.name="RowWriteError"}};function Ii(e,s){let a={};for(let[t,r]of w(e))(r.compute||r.derived)&&t in s&&(a[t]=s[t]);return a}function G(e,s,a,t){let r={...a};for(let i of z(e)){if(a[i.key]===void 0){s[i.key]!==void 0&&(r[i.key]=s[i.key]);continue}let n=Array.isArray(s[i.key])?s[i.key]:[];r[i.key]=Ne(i.group.fields,n,a[i.key],[...t,i.key])}return r}function Ne(e,s,a,t=[]){let r=new Map(s.map(f=>[f.id,f]));if(Array.isArray(a)){let f=new Set;return a.map((c,g)=>{if(c.id===void 0)return G(e,{},c,[...t,g]);if(f.has(c.id))throw new E("duplicate_id",[...t,g,"id"],{id:c.id});f.add(c.id);let b=r.get(c.id);if(!b)throw new E("row_not_found",[...t,g,"id"],{id:c.id});return{...Ii(e,b),...G(e,b,c,[...t,g])}})}let i=new Set;(a.delete??[]).forEach((f,c)=>{if(!r.has(f))throw new E("row_not_found",[...t,"delete",c],{id:f});i.add(f)});let n=s.filter(f=>!i.has(f.id)),u=new Set;if((a.update??[]).forEach((f,c)=>{if(u.has(f.id))throw new E("duplicate_id",[...t,"update",c,"id"],{id:f.id});u.add(f.id);let g=n.findIndex(b=>b.id===f.id);if(g<0)throw new E("row_not_found",[...t,"update",c,"id"],{id:f.id});n[g]={...n[g],...G(e,n[g],f,[...t,"update",c])}}),a.order){let f=a.order,c=new Set(n.map(g=>g.id));if(new Set(f).size!==f.length||f.length!==c.size||!f.every(g=>c.has(g)))throw new E("order_mismatch",[...t,"order"]);n=f.map(g=>n.find(b=>b.id===g))}let h=(a.insert??[]).map((f,c)=>({ins:f,i:c})).sort((f,c)=>(f.ins.at??1/0)-(c.ins.at??1/0));for(let{ins:f,i:c}of h)if(f.row.id!==void 0)throw new E("insert_has_id",[...t,"insert",c,"row","id"],{id:f.row.id});for(let{ins:f,i:c}of h){let g=G(e,{},f.row,[...t,"insert",c,"row"]);f.at===void 0||f.at>=n.length?n.push(g):n.splice(f.at,0,g)}return n}var xe=[{name:"countries",options:ne.map(e=>({value:e.code,title:`core.countries.${e.code}`,icon:{kind:"icon",value:`flag:${e.code}`},subtitle:e.code.toUpperCase()}))},{name:"colors",options:he.map(e=>({value:e.name,title:`core.colors.${e.name}`,icon:{kind:"swatch",value:e.hex},subtitle:e.hex}))},{name:"sex",options:[...ue]},{name:"weekdays",options:[...oe]},{name:"languages",options:pe.map(e=>({value:e.code,title:e.name}))},{name:"currencies",options:be.map(e=>({value:e,title:$e(e),subtitle:we(e)}))}],L=class extends Error{};function Ae(e,s){let a=e.split(".");for(let t of a)if(t==="")throw new L(`[mutate-path] '${s}': empty segment \u2014 a path may not contain '..', a leading '.' beyond the first character, or a trailing '.'`);return a}function Ce(e){if(typeof e!="string"||e.trim()==="")throw new L("[mutate-path] a target path must be a non-empty string");let s=e.startsWith("."),a=s?e.slice(1):e;if(a==="")throw new L(`[mutate-path] '${e}': nothing after the leading '.'`);let t=a.split("/");if(t.some(i=>i===""))throw new L(`[mutate-path] '${e}': empty side of a '/' \u2014 both a relation path and a target path are required`);let r=Ae(t[t.length-1],e);return{hops:t.slice(0,-1).map(i=>Ae(i,e)),path:r,relative:s}}function Me(e,s){if(!e.relative)return e;let a=[...s];return e.hops.length>0?{hops:[[...a,...e.hops[0]],...e.hops.slice(1)],path:e.path,relative:!1}:{hops:[],path:[...a,...e.path],relative:!1}}function Ri(e){let s=[...e.hops.map(a=>a.join(".")),e.path.join(".")].join("/");return e.relative?`.${s}`:s}var N=class extends Error{};function I(e,s){return`${e}#${s.join(".")}`}function Le(e,s){return V(e,s,0)}function Ie(e,s,a,t){let r=a[t],i=t===a.length-1,n=e.parts?.find(u=>u.key===r)??e.parts?.find(u=>u.role===r);return n?i?{relation:n.meta.relation,desc:`part '${r}' of composite '${s}' (kind '${n.meta.kind}')`}:n.meta.parts?Ie(n.meta,`${s}.${r}`,a,t+1):null:e.columns&&r in e.columns&&i?{desc:`sub-column '${r}' of composite '${s}'`}:null}function V(e,s,a){let t=s[a],r=a===s.length-1;for(let i of e){if(k(i)){if(i.key!==t)continue;return r?{relation:i.type.relation,desc:`field '${t}' (kind '${i.type.kind}')`}:Ie(i.type,t,s,a+1)}if(_(i)){if(!O(i)){let n=V(i.fields,s,a);if(n)return n;continue}if(i.key===t){if(r)return i.compute===void 0?null:{desc:`group '${t}' (a container)`};let n=V(i.fields,s,a+1);if(n)return n;continue}}}return null}function Re(e,s){if(s.startsWith("extend:")){let t=s.slice(7);return e.extends_.find(r=>r.id===t).fields}let a=s.indexOf("/");return e.getShelf(s.slice(0,a),s.slice(a+1)).fields}function Ui(e,s,a,t,r){let i=`[mutate] ${s}.${a.join(".")}: target '${t}'`,n=s,u=Re(e,n);for(let h of r.hops){let f=Le(u,h);if(!f)throw new N(`${i} \u2014 unknown segment in relation hop '${h.join(".")}'`);if(!f.relation)throw new N(`${i} \u2014 '${h.join(".")}' is not a relation \u2014 it is ${f.desc}`);n=`${f.relation.library}/${f.relation.shelf}`,u=Re(e,n)}if(!Le(u,r.path))throw new N(`${i} \u2014 unknown segment in path '${r.path.join(".")}' (looked up in ${n})`);return n}function Ue(e,s,a){for(let t of e)if(k(t)){let r=[...s,t.key];t.type.mutate?.length&&a.push({path:r,scope:s,meta:t.type});for(let i of t.type.parts??[])i.meta.mutate?.length&&a.push({path:[...r,i.key],scope:s,meta:i.meta})}else _(t)&&Ue(t.fields,O(t)?[...s,t.key]:s,a)}function Pe(e){for(let s of e)if(_(s)){if(O(s)&&s.compute!==void 0){for(let a of s.fields)if(k(a)&&a.type.compute!==void 0)throw new N(`[mutate] group '${s.key}': child '${a.key}' carries its own value while the group already carries value \u2014 two writers for one column, drop one of the two computations.`)}Pe(s.fields)}}function Pi(e){let s=new Map;for(let[i,n]of e)for(let u of n){let h=I(i,u.from),f=I(u.toShelf,u.to.path),c=s.get(h);c?c.push(f):s.set(h,[f])}let a=new Map,t=[],r=i=>{a.set(i,1),t.push(i);for(let n of s.get(i)??[]){let u=a.get(n)??0;if(u===0){let h=r(n);if(h)return h}else if(u===1){let h=t.indexOf(n);return[...t.slice(h),n]}}return t.pop(),a.set(i,2),null};for(let i of s.keys())if((a.get(i)??0)===0){let n=r(i);if(n)return n}return null}function je(e,s,a,t){for(let r of e)if(k(r)){let i=[...a,r.key],n=r.type;n.compute!==void 0&&t.push({scope:s,path:i,cache:n.cache});for(let u of n.parts??[])u.mode==="computedStored"&&t.push({scope:s,path:[...i,u.key],cache:u.meta?.cache})}else if(_(r)){let i=O(r)?[...a,r.key]:a;O(r)&&r.compute!==void 0&&t.push({scope:s,path:i,cache:void 0}),je(r.fields,s,i,t)}}function ji(e,s){let a=new Set;for(let r of s.values())for(let i of r)a.add(I(i.toShelf,i.to.path));let t=[...(e.shelves??[]).map(r=>({scope:`${r.library}/${r.shelf}`,fields:r.fields})),...(e.extends_??[]).map(r=>({scope:`extend:${r.id}`,fields:r.fields}))];for(let{scope:r,fields:i}of t){let n=[];je(i,r,[],n);for(let u of n)u.cache===void 0&&(a.has(I(u.scope,u.path))||console.warn(`[mutate-graph] ${r}: '${u.path.join(".")}' is a computed-and-stored unit with no incoming mutate edge and no cache \u2014 nothing will ever trigger its recompute after it is first written.`))}}function Ge(e){let s=new Map,a=[...(e.shelves??[]).map(r=>({scope:`${r.library}/${r.shelf}`,fields:r.fields})),...(e.extends_??[]).map(r=>({scope:`extend:${r.id}`,fields:r.fields}))];for(let{fields:r}of a)Pe(r);for(let{scope:r,fields:i}of a){let n=[];if(Ue(i,[],n),!n.length)continue;let u=[];for(let h of n)for(let f of h.meta.mutate??[]){let c=Me(Ce(f),h.scope),g=Ui(e,r,h.path,f,c);u.push({from:h.path,to:c,toShelf:g})}s.set(r,u)}let t=Pi(s);if(t)throw new N(`[mutate] cycle: ${t.join(" -> ")}`);return ji(e,s),s}var B=63,Gi="__cachedAt",Bi=B-10,Di="_parent_id_index",Fi=B-16;function Be(e,s){for(let a of s){let t="key"in a?a.key:void 0;if(t?.includes("__"))throw Error(`[storage] ${e}: key '${t}' contains '__', the storage path separator \u2014 two different paths would spell one column name. Rename the key; an enclosing group's prefix supplies the '__'.`);_(a)&&Be(e,a.fields)}}var zi=new Set(["id","parent_id","position"]);function De(e,s,a){if(s.length>47)throw Error(`[storage] ${e}: table name '${s}' is ${s.length} characters, over the 47-character budget (${B} minus '${Di}', the identifier the ORM derives from it). PostgreSQL truncates a longer one silently. Shorten the library, the shelf, or a collection key along the path.`);let t=new Map;for(let[r,i]of w(a)){if(i.columns){if(!i.parts)throw Error(`[storage] ${e}.${r}: sets \`columns\` without \`parts\` \u2014 build a composite's columns from roles via resolveParts (see f.measured), or store the value whole with \`json: true\``);if(i.json)throw Error(`[storage] ${e}.${r}: is both a composite (\`columns\`) and JSON-stored (\`json\`) \u2014 a field persists one way or the other`)}for(let[n]of ie(r,i)){let u=t.get(n);if(u!==void 0&&u!==r)throw Error(`[storage] ${e}: fields '${u}' and '${r}' both generate the column '${n}' \u2014 one value would overwrite the other and the second field would vanish from every response. Rename one.`);if(t.set(n,r),n.length>53)throw Error(`[storage] ${e}.${r}: generated column '${n}' is ${n.length} characters, over the 53-character budget (${B} minus '${Gi}'). PostgreSQL truncates a longer one silently. Shorten a key along the path.`)}}Be(e,a);for(let r of z(a)){for(let[i]of w(r.group.fields))if(zi.has(i))throw Error(`[storage] ${e}/${r.key}: child field '${i}' is a system column of every collection row (id, parent_id, position) \u2014 rename it.`);De(`${e}/${r.key}`,`${s}__${r.key}`,r.group.fields)}}function Ki(e,s={}){let a=s.disabled??new Set,t=e.filter(l=>!a.has(l.id)),r=new Map;for(let l of t){for(let o of l.libraries??[])for(let d of o.shelves)r.set(`${d.library}/${d.shelf}`,l.id);for(let o of l.libraryShelves??[])r.set(`${o.library}/${o.shelf}`,l.id)}let i=(l,o)=>r.get(`${l}/${o}`);for(let l of t)for(let o of l.dependsOn)if(a.has(o))throw Error(`[plugin] '${l.id}' is enabled, but its dependency '${o}' is disabled`);let n=Te(t),{order:u,libraries:h}=n,f=n.shelves.map(T),c=n.extends_.map(T),g=new Map(t.filter(l=>l.settings).map(l=>[l.id,T(l.settings).fields]));for(let l of s.settingsGroups??[])if(g.has(l.id))throw Error(`[settings] group '${l.id}' is declared by a plugin and passed in by the caller \u2014 pick one owner`);let b=[...[...g].map(([l,o])=>({id:l,fields:o})),...s.settingsGroups??[]],R=new Map;for(let l of t)for(let o of l.fieldContribs??[]){let d=`${o.library}/${o.shelf}/${o.field}`,p=R.get(d)??{options:[],suggestions:[]};o.options&&p.options.push(...o.options),o.suggestions&&p.suggestions.push(...o.suggestions),R.set(d,p)}let Z=(l,o)=>{if(o.options.length){let d=new Set((l.options??[]).map(p=>p.value));l.options=[...l.options??[],...o.options.filter(p=>!d.has(p.value))]}if(o.suggestions.length){let d=l.hints.suggestions??[],p=new Set(d);l.hints.suggestions=[...d,...o.suggestions.filter(y=>!p.has(y))]}},x=new Map;for(let l of xe)x.set(l.name,l.options);for(let l of t)for(let o of l.optionLists??[])x.set(o.name,o.options);let Ze=l=>x.get(l)??[];for(let[l,o,d]of[...f.map(p=>[`${p.library}/${p.shelf}`,`${p.library}__${p.shelf}`,p.fields]),...b.map(p=>[`_settings/${p.id}`,`_settings__${p.id}`,p.fields]),...c.map(p=>[`extend/${p.id}`,`extend__${p.id}`,p.fields])])De(l,o,d);for(let l of f)for(let[o,d]of w(l.fields)){let p=R.get(`${l.library}/${l.shelf}/${o}`);p&&Z(d,p)}for(let l of b)for(let[o,d]of w(l.fields)){let p=R.get(`_settings/${l.id}/${o}`);p&&(Z(d,p),U(d)&&d.options?.length&&P(d,d.options.map(y=>y.value)))}let q=new Map;for(let l of f)for(let[o,d]of w(l.fields)){let p=d.hints.source,y=d.options??[],m=p?x.get(p)??[]:[],S=new Set(y.map(v=>v.value)),$=[...y,...m.filter(v=>!S.has(v.value))];U(d)&&$.length&&P(d,$.map(v=>v.value)),$.length&&(d.options=$,q.set(`${l.library}/${l.shelf}/${o}`,$))}let X=l=>{let o=[];for(let d of l)k(d)?o.push(d.type):_(d)&&o.push(...X(d.fields));return o};for(let l of c)for(let o of X(l.fields)){if(!U(o))continue;let d=o.hints.source;if(!d)continue;let p=x.get(d)??[],y=o.options??[],m=new Set(y.map($=>$.value)),S=[...y,...p.filter($=>!m.has($.value))];S.length&&P(o,S.map($=>$.value))}let H=(l,o,d)=>{let p=l[o];if(!p)throw Error(d);return p},A=[];for(let l of t)for(let o of l.showcases??[]){let d=f.find(m=>m.library===o.source.library&&m.shelf===o.source.shelf);if(!d)throw Error(`[showcase] ${o.library}/${o.id}: unknown source shelf ${o.source.library}/${o.source.shelf}`);let p=Object.fromEntries(w(d.fields));for(let m of K(o.filter)){let S=H(p,m,`[showcase] ${o.library}/${o.id}: filter field '${m}' is not in ${o.source.library}/${o.source.shelf}`),$=fe(o.filter,m),v=$.filter(Xe=>j.has(Xe));if(v.length&&!S.hints.multiple)throw Error(`[showcase] ${o.library}/${o.id}: operator '${v[0]}' on '${m}' needs a multiple field, but ${o.source.library}/${o.source.shelf}.${m} stores a single value`);if(te(S)&&v.length!==$.length)throw Error(`[showcase] ${o.library}/${o.id}: filter field '${m}' is stored as JSON \u2014 only ${[...j].join("/")} applies`);if(S.columns)throw Error(`[showcase] ${o.library}/${o.id}: filter field '${m}' is a composite scalar stored across sub-columns`)}let y=ae(d);for(let m of o.columns){if(!p[m])throw Error(`[showcase] ${o.library}/${o.id}: column '${m}' is not in ${o.source.library}/${o.source.shelf}`);if(!y.includes(m))throw Error(`[showcase] ${o.library}/${o.id}: column '${m}' is outside ${o.source.library}/${o.source.shelf}'s list projection (views.list/groupBy/inline) and would render blank`)}if(o.defaultGroupBy!==void 0){if(!p[o.defaultGroupBy])throw Error(`[showcase] ${o.library}/${o.id}: defaultGroupBy '${o.defaultGroupBy}' is not in ${o.source.library}/${o.source.shelf}`);if(!Q(d).includes(o.defaultGroupBy))throw Error(`[showcase] ${o.library}/${o.id}: defaultGroupBy '${o.defaultGroupBy}' is not a grouping candidate of ${o.source.library}/${o.source.shelf} (views.groupBy)`)}if(A.some(m=>m.library===o.library&&m.id===o.id))throw Error(`[showcase] duplicate ${o.library}/${o.id}`);A.push(o)}let qe=[...f.map(l=>({label:`${l.library}/${l.shelf}`,fields:l.fields})),...c.map(l=>({label:`extend '${l.id}'`,fields:l.fields}))];for(let{label:l,fields:o}of qe)for(let[d,p]of w(o)){let y=p.relation;if(!y)continue;let m=f.find($=>$.library===y.library&&$.shelf===y.shelf);if(!m)throw Error(`[relation] ${l}.${d}: unknown target shelf ${y.library}/${y.shelf}`);if(!y.filter)continue;let S=Object.fromEntries(w(m.fields));for(let $ of K(y.filter))H(S,$,`[relation] ${l}.${d}: filter key '${$}' is not in ${y.library}/${y.shelf}`)}let F={order:u,libraries:h,shelves:f,extends_:c,showcases:A,getShowcase:(l,o)=>A.find(d=>d.library===l&&d.id===o),getShowcasesFor:l=>A.filter(o=>o.library===l),getShelf:(l,o)=>f.find(d=>d.library===l&&d.shelf===o),getLibrary:l=>h.find(o=>o.meta.id===l),getExtendsFor:(l,o)=>c.filter(d=>_e(d,l,o)),getFieldOptions:(l,o,d)=>q.get(`${l}/${o}/${d}`)??[],getOptionList:Ze,getShelfOwner:i,mutateGraph:new Map};return F.mutateGraph=Ge(F),F}var W={trace:10,debug:20,info:30,warn:40,error:50};function Fe(){return{}}var ze=Fe().LOG_LEVEL??"info";function Ke(e){return new Set((e??"").split(",").map(s=>s.trim()).filter(Boolean))}function Ve(e,s){return s.size===0||s.has(e)}var Vi=Ke(Fe().LOG_TAGS),Wi=W[ze]??W.info,J=null,Y=new Map;function Ji(e){J=e,Y.clear()}function Yi(e){let s=(a,t,r)=>{if(!Ve(e,Vi))return;if(J){let u=Y.get(e);u||(u=J.child({tag:e}),Y.set(e,u)),r===void 0?u[a](t):r instanceof Error?u[a]({err:r},t):typeof r=="object"?u[a](r,t):u[a]({err:r},t);return}if(W[a]<Wi)return;let i=`[${e}] ${t}`,n=r===void 0?[]:[r];a==="error"?console.error(i,...n):a==="warn"?console.warn(i,...n):console.log(i,...n)};return{debug:(a,t)=>s("debug",a,t),info:(a,t)=>s("info",a,t),warn:(a,t)=>s("warn",a,t),error:(a,t)=>s("error",a,t)}}var Zi=/[̀-ͯ]/g;function D(e){return e.toLowerCase().normalize("NFD").replace(Zi,"")}function qi(e){return D(e).split(/\s+/).filter(s=>s.length>0)}function Xi(e,s,a){return We(D(e),s.map(D),a)}function We(e,s,a){if(a.length===0)return null;let t=0;for(let r of a){let i=0,n=e.indexOf(r);n===0?i=4:n>0&&(i=3);for(let u of s){let h=u.indexOf(r);h===0?i=Math.max(i,2):h>0&&(i=Math.max(i,1))}if(i===0)return null;t+=i}return t}var Hi=new Set([...ge,...le,...j]);function Je(e,s){for(let[a,t]of Object.entries(e))if(t!==void 0){if(a==="$and"||a==="$or"){for(let r of t)Je(r,s);continue}if(typeof t=="object"&&t){for(let r of Object.keys(t))if(!Hi.has(r))throw Error(`[showcase] ${s}: operator '${r}' on '${a}' does not compile to SQL`)}}}function Qi(e){if(!e.id)throw Error("[showcase] missing id");if(!e.library)throw Error(`[showcase] ${e.id}: missing library`);if(!e.source?.library||!e.source?.shelf)throw Error(`[showcase] ${e.id}: missing source library/shelf`);if(!e.columns?.length)throw Error(`[showcase] ${e.id}: columns must not be empty`);if(!e.filter||Object.keys(e.filter).length===0)throw Error(`[showcase] ${e.id}: filter must not be empty \u2014 an unfiltered showcase is the shelf itself`);return Je(e.filter,e.id),e}var eo=ee({shelf:"users",library:"",label:"auth.usersTitle",icon:"lucide:users",views:{title:"login",list:["displayName","role","disabled"]},fields:{login:C.string({label:"auth.fieldLogin"}),displayName:C.string({label:"auth.fieldDisplayName"}),role:C.string({label:"auth.fieldRole",strict:!0,noSearch:!0,options:[{value:"admin",title:"auth.roleAdmin"},{value:"member",title:"auth.roleMember"}]}),disabled:C.boolean({label:"auth.fieldDisabled"})}}),so=/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/;function Ye(e){let s=so.exec(e.trim());if(!s)return null;let a=s[4]?.split(".")??[];return a.some(t=>/^\d+$/.test(t)&&t.length>1&&t.startsWith("0"))?null:{major:Number(s[1]),minor:Number(s[2]),patch:Number(s[3]),prerelease:a}}function ao(e,s){let a=/^\d+$/.test(e),t=/^\d+$/.test(s);return a&&t?e.length===s.length?e===s?0:e>s?1:-1:e.length>s.length?1:-1:a===t?e===s?0:e>s?1:-1:a?-1:1}function to(e,s){let a=Ye(e),t=Ye(s);if(!a||!t)return!1;for(let i of["major","minor","patch"])if(a[i]!==t[i])return a[i]>t[i];if(a.prerelease.length===0||t.prerelease.length===0)return a.prerelease.length===0&&t.prerelease.length>0;let r=Math.max(a.prerelease.length,t.prerelease.length);for(let i=0;i<r;i++){let n=a.prerelease[i],u=t.prerelease[i];if(n===void 0)return!1;if(u===void 0)return!0;let h=ao(n,u);if(h!==0)return h>0}return!1}export{he as BASIC_COLORS,xe as BUILTIN_OPTION_LISTS,Ft as COLOR_LABELS,le as COMPILABLE_ARRAY_OPS,j as COMPILABLE_MEMBER_OPS,ge as COMPILABLE_SCALAR_OPS,ne as COUNTRIES,mr as COUNTRIES_BY_CODE,be as CURRENCY_CODES,ve as DEFAULT_LIBRARY_ICON,pe as LANGUAGES,ze as LOG_LEVEL,Bi as MAX_COLUMN_NAME,Fi as MAX_TABLE_NAME,N as MutateGraphError,L as MutatePathError,it as PRIMITIVES,E as RowWriteError,ue as SEX_OPTIONS,ir as SOURCE_DEFAULT_MAX_BYTES,ft as SYSTEM_FIELDS,$a as TONE_MEANINGS,He as TONE_NAMES,sa as UNITS_AREA,ia as UNITS_COOKING,ha as UNITS_CURRENCY,Es as UNITS_DATA,Ps as UNITS_DISTANCE,Xs as UNITS_DURATION,Ea as UNITS_ENERGY,ci as UNITS_MAP,ns as UNITS_PERCENTAGE,Da as UNITS_PIECES,Ls as UNITS_POWER,Ua as UNITS_SPEED,Wa as UNITS_TEMPERATURE,Ns as UNITS_VOLTAGE,Ws as UNITS_VOLUME,kr as UNITS_WEIGHT,M as URL_PARTS,eo as USERS_SHELF,oe as WEEKDAY_OPTIONS,ja as accepts,Yr as accordion,fa as addDays,Vr as age,Mt as amount,Sr as applyMultiple,lr as applyOptions,Ne as applyWrite,Oi as arrayToScalar,fi as aside,wt as assay,Oe as assemblePackages,Te as assemblePlugins,Fr as attachment,hr as audio,Lr as avatar,Wt as backrefs,ri as balance,Na as bento,P as bindOptionsZod,ps as blocks,gt as boolean,zt as buildComposite,xi as buildExtendZodPartial,Ge as buildMutateGraph,ye as buildShape,de as buildUrl,ni as buildZodObject,yt as buildZodObjectPartial,wr as button,Qr as calendar,La as callout,ai as cellValue,bs as chart,jr as check,re as checkFieldDeclaration,_t as clientToMeta,gs as collectionBlock,xt as collectionGroup,z as collectionGroups,Tt as color,It as colorname,da as compare,Ki as composeRegistry,K as conditionKeys,fe as conditionOps,er as countdown,Er as country,or as cover,Xr as coverKey,fr as currency,$e as currencyName,we as currencySymbol,Wr as date,Nt as datetime,Qt as daysBetween,ts as deck,zr as declare,Jr as decodeVmsg,Ca as defaultGroupField,Ni as defineExtend,Ti as defineLibrary,Ci as definePlugin,Mi as defineSettings,ee as defineShelf,Qi as defineShowcase,br as describeCondition,Gr as diffCollection,Dt as dimensions,Rt as divider,_r as document,jt as duration,ut as email,dr as embed,Zt as epigraph,nr as evalCondition,Me as expandRelative,_e as extendMatches,Ai as extendToClient,aa as facet,Ee as fallbackLibrary,C as field,w as fieldEntries,la as fieldMap,oa as figure,Gt as file,Ht as flattenComposite,ma as flow,D as foldText,Ri as formatMutatePath,pt as fromShelf,qr as geo,Yi as getLogger,_s as grid,ui as group,Q as groupableFields,_ as hasChildren,oi as hasOptions,Aa as hasValue,js as heatmap,vr as hrefOf,hs as i18n,Hs as idcard,Zr as identifier,_a as identity,si as illustrated,Ra as image,vs as info,Jt as inlineImageKey,ea as inlineKeys,ra as inlineText,$s as int,di as internalApiToken,bt as internalIdentityLinks,ii as internalOauthGrants,xa as isBinaryText,pa as isCheckSlot,ar as isCollectionGroup,Li as isCollectionOps,ct as isComposite,yi as isCurrencyCode,as as isDay,Ot as isDecl,is as isEmbeddedGroup,ca as isImageKind,Xt as isJsonArrayStored,te as isJsonStored,k as isNamedField,to as isNewerVersion,ya as isPseudo,ks as isShelfSource,O as isStorageGroup,U as isStrict,hi as journal,ka as json,li as jsonRefined,$t as jsonValue,gi as keyValue,ds as keyed,se as layoutToClient,ls as ledger,cs as link,Ei as linkToUrl,ae as listKeys,qs as listKind,Yt as localDay,Ka as localDir,Us as localFile,va as magnitudeSub,Fa as manifest,ei as markdown,Is as masthead,Xi as matchScore,We as matchScoreFolded,me as materialize,T as materializeDef,me as materializeField,Ar as materializeTree,Ga as measured,Za as media,Pa as mediaRating,Ja as meter,Ya as mixedOwnedStoredParts,Ia as money,Ss as mrz,pi as nestComposite,I as nodeKey,ki as normalizeAgentMeta,Lt as normalizeOpts,Cs as numberRange,xs as nutrition,ti as optionalize,$i as parseMultiple,Ce as parseMutatePath,Ke as parseTags,ce as parseUrl,As as partColumns,Ys as partValueKey,Nr as partValueKeys,zs as partsRowShape,ys as password,ua as path,Js as people,Zs as perWeekday,sr as percent,xr as period,Tr as plaque,Ks as poster,rs as presets,Fs as properties,at as prose,qt as rating,rt as real,Qa as realRange,Xa as receipt,os as recordTitle,gr as registerPreset,Rr as registerType,St as registeredTypes,lt as relation,ta as reminder,Ta as reqErr,us as reqTypeErr,Ba as resolveColumnKey,Ir as resolveCountryCode,Sa as resolveDate,Bt as resolveFlag,tt as resolveParts,Ds as resolveUnits,Ha as retypeTo,nt as role,ot as route,ss as row,ur as rowFilled,Pt as safeJsonParse,_i as scalarToArray,wa as score,wi as serializeMultiple,Ji as setRootLogger,At as sheet,Ms as shelfToClient,na as slug,Br as smallText,ga as snippet,Os as source,Qe as specimen,Ct as split,Dr as spread,cr as stack,Mr as stats,Vt as status,pr as step,Cr as stepper,ie as storageColumns,Va as storageColumnsFor,Kt as string,Hr as stringContent,Ts as stripComputed,ba as stripServerOwnedParts,Vs as subValue,mt as table,$r as tabs,Gs as tag,Ve as tagEnabled,Qs as tags,Oa as tel,Pr as terminal,ht as text,Or as textSearchKeys,yr as time,Et as timeline,mi as timetable,fs as title,Bs as titleKey,Ur as toClient,qi as tokenize,ke as topoSortPlugins,vt as triState,Ma as typeErr,tr as typeOf,es as uiOf,rr as unit,Kr as url,vi as urlToLink,ws as validateField,kt as video,et as viewKeys,Ut as visibleOptions,ms as vmsg,za as weight,qa as withSubValue,dt as wrapKey,Rs as year};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function g(r,a,t){let n=t*Math.PI/180,i=a*Math.cos(n),e=a*Math.sin(n),o=r+.3963377774*i+.2158037573*e,u=r-.1055613458*i-.0638541728*e,c=r-.0894841775*i-1.291485548*e,l=o*o*o,s=u*u*u,f=c*c*c;return{r:4.0767416621*l-3.3077115913*s+.2309699292*f,g:-1.2684380046*l+2.6097574011*s-.3413193965*f,b:-.0041960863*l-.7034186147*s+1.707614701*f}}function h(r){let a=r<0?-1:1,t=Math.abs(r);return a*(t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055)}function M(r,a,t){let n=g(r,a,t);return{r:h(n.r),g:h(n.g),b:h(n.b)}}function m(r,a,t){let{r:n,g:i,b:e}=M(r,a,t);return[n,i,e].every(o=>o>=-.002&&o<=1.002)}function v(r,a){let t=0,n=.4;for(let i=0;i<40;i++){let e=(t+n)/2;m(r,e,a)?t=e:n=e}return t}function b(r,a,t){let n=g(r,a,t),i=e=>Math.min(1,Math.max(0,e));return .2126*i(n.r)+.7152*i(n.g)+.0722*i(n.b)}function x(r,a){let t=b(...r),n=b(...a),[i,e]=t>n?[t,n]:[n,t];return(i+.05)/(e+.05)}export{v as chromaCeiling,x as contrastRatio,m as inGamut,M as oklchToSrgb,b as relativeLuminance};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as Ee}from"../../assets/rolldown-runtime-QTnfLwEv.js";import{t as Pt}from"../../assets/react-CZI7_Jkm.js";import{t as Rt}from"../../assets/jsx-runtime-By8HlURe.js";import{g as We}from"../../assets/chunk-KS7C4IRE-CUOVp-bd.js";import{t as z}from"../../assets/useTranslation-RqY_bF-3.js";import{It as xe,K as _t,Nt as H,R as Ue,X as At,x as ke}from"../../assets/collection-diff-DfAYCE5v.js";import{$ as f,Ar as $e,Dr as Ft,Er as Lt,I as he,J as Be,Jn as Ce,Kn as zt,Lt as Tt,M as It,Mt as Se,Nr as Ve,Nt as qt,Or as Je,Q as Dt,Qt as Me,Sn as oe,Tr as Kt,Vt as te,W as fe,Xn as Ot,Zt as Pe,_r as Qe,an as Et,bn as Re,bt as Wt,c as Ut,di as C,dr as Bt,en as ae,f as Xe,fr as Vt,h as Y,hr as Ge,i as pe,ii as Ze,in as ee,it as se,j as Jt,l as He,lr as Qt,n as de,ni as _e,nr as Xt,nt as Ye,pt as be,qn as et,qt as ie,r as ve,s as J,st as T,t as ne,tn as le,ui as tt,ur as Gt}from"../../assets/group-field-DVQnXOEH.js";import{$n as Zt,er as Ht}from"../../assets/input-CbheVI3-.js";import{D as at}from"../../assets/popover-Cg1zTBmw.js";import{t as Yt}from"../../assets/sort-rows-FW_ghcyz.js";var ea=Ht("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]),X=Ee(Pt(),1),e=Ee(Rt(),1);function I(t,a){return a===void 0?void 0:t.find(i=>i.name===a)}function V(t,a){return a.map(i=>I(t,i)).filter(i=>i!==void 0)}function q({label:t,icon:a,ownSurface:i,children:n}){let{t:l}=z();return t?(0,e.jsx)(Y,{label:l(t),icon:a,rail:!i,children:n}):(0,e.jsx)(e.Fragment,{children:n})}function G(t,a){let i=t.field.label??(H(t.field)?t.field.type.label:void 0);return i?a(i):void 0}function Z(t){return H(t.field)?ee(t.field.type):""}var it=(0,X.createContext)(!1);function nt({children:t}){return(0,e.jsx)(it.Provider,{value:!0,children:t})}function Ae(){return(0,X.useContext)(it)}function Fe({handle:t}){let{t:a}=z(),i=G(t,a);return i?(0,e.jsx)("span",{className:te,children:i}):null}function ta(t){return H(t.field)&&Et(t.field.type)==="data"}var lt={2:"grid-cols-1 @sm:grid-cols-2",3:"grid-cols-1 @sm:grid-cols-2 @3xl:grid-cols-3",4:"grid-cols-1 @sm:grid-cols-2 @3xl:grid-cols-4"};function aa({el:t}){let a=t,i=a.view?.columns??3,n=T(),l=(0,e.jsx)("div",{className:`grid gap-3 ${lt[i]??lt[3]}`,children:n.map((r,c)=>r.handle.hidden?null:(0,e.jsx)("div",{className:"min-w-0","data-testid":`grid-item-${c}`,children:(0,e.jsx)(f,{name:r.name})},r.name))});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:l})}C({kinds:["grid"],layout:"block",editor:"own",Page:aa});var ia="rounded-lg border border-border bg-card p-3 min-w-0",na={"2x1":"@sm:col-span-2","1x2":"@sm:row-span-2","2x2":"@sm:col-span-2 @sm:row-span-2",wide:"col-span-full"};function la({el:t}){let a=t,i=a.view?.spans??{},n=(0,e.jsx)("div",{className:"grid grid-cols-1 @sm:grid-cols-3 auto-rows-auto gap-3",children:T().map((l,r)=>{if(l.handle.hidden)return null;let c=i[l.name];return(0,e.jsx)("div",{className:`${ia} ${c?na[c]??"":""}`,"data-testid":`bento-tile-${r}`,children:(0,e.jsx)(f,{name:l.name})},l.name)})});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:n})}C({kinds:["bento"],layout:"block",editor:"own",Page:la}),C({kinds:["split"],layout:"block",editor:"own",Page:({el:t})=>{let a=t,[i,n]=a.view?.ratio??[1,1],l=a.view?.first??[],r=a.view?.second??[];return(0,e.jsxs)("div",{className:"grid grid-cols-1 gap-4 @sm:[grid-template-columns:var(--split)]",style:{"--split":`${i}fr ${n}fr`},children:[(0,e.jsx)("div",{className:"min-w-0 space-y-3",children:l.map(c=>(0,e.jsx)(f,{name:c},c))}),(0,e.jsx)("div",{className:"min-w-0 space-y-3",children:r.map(c=>(0,e.jsx)(f,{name:c},c))})]})}}),C({kinds:["aside"],layout:"block",editor:"own",Page:({el:t})=>{let a=t,i=a.view?.main??[],n=a.view?.aside??[];return(0,e.jsxs)("div",{className:"grid grid-cols-1 gap-4 @sm:grid-cols-[minmax(0,1fr)_14rem]",children:[(0,e.jsx)("div",{className:"min-w-0 space-y-3",children:i.map(l=>(0,e.jsx)(f,{name:l},l))}),(0,e.jsx)("aside",{className:"min-w-0 space-y-2 text-sm text-muted-foreground @sm:border-l @sm:border-border @sm:pl-4",children:n.map(l=>(0,e.jsx)(f,{name:l},l))})]})}});function ra({el:t}){let a=t,i=a.view?.visual,n=a.view?.quote,l=a.view?.facts??[],r=T(),c=I(r,n),o=V(r,l);return(0,e.jsxs)("div",{className:"grid grid-cols-1 gap-4 @sm:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)]",children:[(0,e.jsx)("div",{className:"min-w-0",children:(0,e.jsx)(f,{name:i})}),(0,e.jsxs)("div",{className:"flex min-w-0 flex-col gap-3",children:[c&&!c.handle.hidden&&(0,e.jsx)("blockquote",{className:"border-l-2 border-ring pl-3 italic text-muted-foreground",children:(0,e.jsx)(f,{name:n})}),o.map(s=>(0,e.jsx)(f,{name:s.name},s.name))]})]})}C({kinds:["spread"],layout:"block",editor:"own",Page:ra});function sa(){return(0,e.jsx)(e.Fragment,{children:T().map(t=>(0,e.jsx)(f,{name:t.name},t.name))})}function da({el:t}){let a=t,{t:i}=z(),n=a.view?.tabs??[],[l,r]=(0,X.useState)(0);return(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsx)("div",{role:"tablist",className:"flex flex-nowrap gap-1 overflow-x-auto border-b border-border",children:n.map((c,o)=>(0,e.jsxs)("button",{type:"button",role:"tab","aria-selected":o===l,onClick:()=>r(o),className:`flex shrink-0 items-center gap-1.5 whitespace-nowrap border-b-2 px-3 py-2 text-sm font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${o===l?"border-ring text-primary":"border-transparent text-muted-foreground"}`,children:[c.icon&&(0,e.jsx)(Ce,{name:c.icon,size:14,className:"shrink-0"}),i(c.label)]},c.name))}),n.map((c,o)=>(0,e.jsx)("div",{role:"tabpanel",hidden:o!==l,className:"min-w-0 space-y-3 pt-3",children:(0,e.jsx)(Ye,{name:c.name,children:(0,e.jsx)(sa,{})})},c.name))]})}C({kinds:["tabs"],layout:"block",editor:"own",Page:da});function oa(){return(0,e.jsx)(e.Fragment,{children:T().map(t=>(0,e.jsx)(f,{name:t.name},t.name))})}function ca({el:t}){let a=t,{t:i}=z();return(0,e.jsx)("div",{className:"flex min-w-0 flex-col gap-2",children:(a.view?.sections??[]).map(n=>(0,e.jsxs)("details",{className:"rounded-lg border border-border",open:n.open,children:[(0,e.jsxs)("summary",{className:"flex cursor-pointer items-center gap-1.5 px-3 py-2 font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[n.icon&&(0,e.jsx)(Ce,{name:n.icon,size:14,className:"shrink-0"}),i(n.label)]}),(0,e.jsx)("div",{className:"space-y-3 px-3 pb-3",children:(0,e.jsx)(Ye,{name:n.name,children:(0,e.jsx)(oa,{})})})]},n.name))})}C({kinds:["accordion"],layout:"block",editor:"own",Page:ca});function ma({el:t}){let a=t,{t:i}=z(),n=(0,e.jsx)("div",{className:"flex flex-col","data-testid":"ledger",children:T().map((l,r)=>l.handle.hidden?null:l.handle.mode==="view"?(0,e.jsxs)("div",{className:"flex w-full min-w-0 items-baseline gap-2 py-0.5","data-testid":`ledger-row-${r}`,children:[(0,e.jsx)("span",{className:"shrink-0",children:G(l.handle,i)}),(0,e.jsx)("span",{className:"min-w-0 flex-1 border-b-2 border-dotted border-muted-foreground/40 -translate-y-[0.35em]","data-testid":"ledger-dots"}),(0,e.jsx)("span",{className:`shrink-0 text-right font-medium [&_.group\\/field]:!w-auto ${Z(l.handle)}`.trim(),children:(0,e.jsx)(f,{name:l.name,ownLabel:!0})})]},l.name):(0,e.jsx)("div",{className:"min-w-0 py-0.5","data-testid":`ledger-row-${r}`,children:(0,e.jsx)(f,{name:l.name})},l.name))});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:n})}C({kinds:["ledger"],layout:"block",editor:"own",Page:ma,childWidth:"w-full"});function ua({el:t}){let a=t,{t:i}=z(),n=(0,e.jsx)("div",{className:"grid gap-x-8 gap-y-5 py-1 [grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))]","data-testid":"stats",children:T().map((l,r)=>l.handle.hidden?null:l.handle.mode==="view"?(0,e.jsx)("div",{className:"min-w-0","data-testid":`stats-item-${r}`,children:(0,e.jsx)(nt,{children:(0,e.jsxs)("div",{className:"flex min-w-0 flex-col items-start gap-0.5 py-1","data-testid":"stats-figure",children:[(0,e.jsx)("span",{className:ta(l.handle)?`min-w-0 text-2xl font-semibold text-foreground [&_.group\\/field]:!w-auto ${Z(l.handle)}`.trim():"min-w-0 text-base font-medium text-foreground break-words [&_.group\\/field]:!w-auto",children:(0,e.jsx)(f,{name:l.name,ownLabel:!0})}),(0,e.jsx)("span",{className:te,children:G(l.handle,i)})]})})},l.name):(0,e.jsx)("div",{className:"min-w-0","data-testid":`stats-item-${r}`,children:(0,e.jsx)(nt,{children:(0,e.jsx)(f,{name:l.name})})},l.name))});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:n})}C({kinds:["stats"],layout:"block",editor:"own",Page:ua,childWidth:"w-full"});var rt="inline-flex min-w-0 min-h-9 items-center gap-2 rounded-md border border-border bg-card px-3 text-sm";function st({name:t,handle:a,testId:i}){let{t:n}=z();return a.mode==="view"?(0,e.jsxs)("div",{className:rt,"data-testid":i,children:[(0,e.jsx)("span",{className:`shrink-0 ${te}`,children:G(a,n)}),(0,e.jsx)("span",{className:`min-w-0 font-medium text-foreground ${Z(a)}`.trim(),children:(0,e.jsx)(f,{name:t,ownLabel:!0,box:"none"})})]}):(0,e.jsx)("div",{className:rt,"data-testid":i,children:(0,e.jsx)(f,{name:t})})}function xa({el:t}){let a=t,i=T().filter(l=>!l.handle.hidden),n=a.multiple===!0?(0,e.jsx)("div",{className:"flex flex-wrap gap-3","data-testid":"facet-cluster",children:i.map((l,r)=>(0,e.jsx)(st,{name:l.name,handle:l.handle,testId:`facet-${r}`},l.name))}):i.length>0?(0,e.jsx)(st,{name:i[0].name,handle:i[0].handle,testId:"facet-0"}):null;return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:n})}C({kinds:["facet"],layout:"block",editor:"own",Page:xa,childWidth:"w-fit"});var ha="first-letter:float-left first-letter:mr-2 first-letter:text-5xl first-letter:font-bold first-letter:leading-[0.8]";function fa({el:t}){let a=t,i=a.view?.dropCap,n=(0,e.jsx)("div",{className:"max-w-[65ch] space-y-3 font-serif text-base leading-relaxed","data-testid":"prose",children:T().map((l,r)=>l.handle.hidden?null:(0,e.jsx)("div",{className:`min-w-0 ${l.name===i?ha:""}`,"data-testid":`prose-item-${r}`,children:(0,e.jsx)(f,{name:l.name})},l.name))});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:n})}C({kinds:["prose"],layout:"block",editor:"own",Page:fa});function pa({el:t}){let a=t,i=a.view?.source,n=a.view?.attribution,l=I(T(),n);return(0,e.jsxs)("blockquote",{className:"border-l-2 border-ring pl-4","data-testid":"epigraph",children:[(0,e.jsx)("div",{className:"min-w-0 text-lg leading-snug italic","data-testid":"epigraph-source",children:(0,e.jsx)(f,{name:i})}),l&&!l.handle.hidden&&(0,e.jsx)("div",{className:"mt-2 min-w-0 text-sm text-muted-foreground before:mr-1 before:content-['\u2014']","data-testid":"epigraph-attribution",children:(0,e.jsx)(f,{name:n})})]})}C({kinds:["epigraph"],layout:"block",editor:"own",Page:pa});function ba({el:t}){let a=t,{t:i}=z(),n=a.view?.caption,l=T(),r=(0,e.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card","data-testid":"terminal",children:[n&&(0,e.jsx)("div",{className:"border-b border-border bg-muted px-3 py-1.5 text-xs font-medium text-muted-foreground","data-testid":"terminal-caption",children:i(n)}),(0,e.jsx)("div",{className:"overflow-x-auto p-3 font-mono text-sm","data-testid":"terminal-body",children:l.map((c,o)=>c.handle.hidden?null:(0,e.jsx)("div",{className:"min-w-0","data-testid":`terminal-item-${o}`,children:(0,e.jsx)(f,{name:c.name})},c.name))})]});return(0,e.jsx)(q,{label:a.label,icon:a.icon,ownSurface:!0,children:r})}C({kinds:["terminal"],layout:"block",editor:"own",Page:ba});function va({el:t}){let a=t,i=a.view?.title,n=a.view?.subtitle??[],l=T(),r=I(l,i),c=V(l,n),o=(0,e.jsxs)("div",{className:"flex flex-col items-center gap-3 py-4 text-center","data-testid":"plaque",children:[r&&!r.handle.hidden&&(0,e.jsx)("div",{className:"min-w-0 w-full border-b border-border pb-3","data-testid":"plaque-item-0",children:(0,e.jsx)(f,{name:i,render:(s,d)=>(0,e.jsx)("div",{className:"text-base font-semibold text-foreground","data-testid":"plaque-title",children:d})})}),c.map((s,d)=>s.handle.hidden?null:(0,e.jsx)("div",{className:"min-w-0","data-testid":`plaque-item-${d+1}`,children:(0,e.jsx)(f,{name:s.name,render:(m,u)=>(0,e.jsx)("div",{className:te,"data-testid":"plaque-subtitle",children:u})})},s.name))]});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:o})}C({kinds:["plaque"],layout:"block",editor:"own",Page:va});function ga({el:t}){let a=t,i=a.view?.image,n=a.view?.caption,l=I(T(),n);return(0,e.jsxs)("figure",{className:"min-w-0","data-testid":"figure",children:[(0,e.jsx)("div",{className:"min-w-0","data-testid":"figure-image",children:(0,e.jsx)(f,{name:i})}),l&&!l.handle.hidden&&(0,e.jsx)("figcaption",{className:"mt-2 min-w-0 text-sm text-muted-foreground italic","data-testid":"figure-caption",children:(0,e.jsx)(f,{name:n})})]})}C({kinds:["figure"],layout:"block",editor:"own",Page:ga});function wa({el:t}){let a=t,{t:i}=z(),n=a.view?.left??[],l=a.view?.right??[],r=a.view?.leftLabel,c=a.view?.rightLabel,o=(0,e.jsxs)("div",{className:"grid grid-cols-1 gap-4 @sm:grid-cols-2","data-testid":"compare",children:[(0,e.jsxs)("div",{className:"min-w-0 space-y-3","data-testid":"compare-left",children:[r&&(0,e.jsx)("div",{className:"min-w-0 font-sans text-[11px] font-medium tracking-wide text-muted-foreground",children:i(r)}),n.map(s=>(0,e.jsx)(f,{name:s},s))]}),(0,e.jsxs)("div",{className:"min-w-0 space-y-3 @sm:border-l @sm:border-border @sm:pl-4","data-testid":"compare-right",children:[c&&(0,e.jsx)("div",{className:"min-w-0 font-sans text-[11px] font-medium tracking-wide text-muted-foreground",children:i(c)}),l.map(s=>(0,e.jsx)(f,{name:s},s))]})]});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:o})}C({kinds:["compare"],layout:"block",editor:"own",Page:wa});var dt={note:"border-l-4 border-ring bg-muted",warn:"border-l-4 border-warning bg-muted font-medium",danger:"border-l-[6px] border-destructive bg-muted font-semibold"};function ja({el:t}){let a=t,i=a.view?.tone??"note",n=T(),l=(0,e.jsx)("div",{className:`space-y-2 rounded-lg px-4 py-3 ${dt[i]??dt.note}`,"data-testid":"callout","data-tone":i,children:n.map((r,c)=>r.handle.hidden?null:(0,e.jsx)("div",{className:"min-w-0","data-testid":`callout-item-${c}`,children:(0,e.jsx)(f,{name:r.name})},r.name))});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:l})}C({kinds:["callout"],layout:"block",editor:"own",Page:ja});function ya({el:t}){let a=t,i=a.view?.title,n=a.view?.overline,l=a.view?.meta??[],r=T(),c=I(r,n),o=V(r,l).filter(s=>!s.handle.hidden);return(0,e.jsxs)("div",{className:"space-y-1","data-testid":"masthead",children:[c&&!c.handle.hidden&&(0,e.jsx)("div",{className:"min-w-0 font-sans text-[11px] font-medium tracking-wide text-muted-foreground","data-testid":"masthead-overline",children:(0,e.jsx)(f,{name:n})}),(0,e.jsx)("div",{className:"min-w-0 text-2xl leading-tight font-bold","data-testid":"masthead-title",children:(0,e.jsx)(f,{name:i})}),o.length>0&&(0,e.jsx)("div",{className:"flex flex-wrap items-center gap-x-1 border-t border-b border-border py-1.5 text-sm text-muted-foreground","data-testid":"masthead-meta",children:o.map((s,d)=>(0,e.jsx)("span",{className:`inline-flex min-w-0 items-center ${d>0?"before:mr-2 before:text-muted-foreground before:content-['\xB7']":""}`,"data-testid":`masthead-meta-${d}`,children:(0,e.jsx)(f,{name:s.name})},s.name))})]})}C({kinds:["masthead"],layout:"block",editor:"own",Page:ya});function Na({el:t}){let{t:a}=z(),i=t,n=i.view?.source,l=Array.isArray(n)?n:n===void 0?[]:[n],r=i.view?.verdict,c=i.view?.max,o=T(),s=I(o,r),d=V(o,l).filter(x=>!x.handle.hidden),m=d.length>1,u=(0,e.jsxs)("div",{className:"flex flex-wrap items-baseline gap-3","data-testid":"score",children:[d.map(x=>(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsx)(f,{name:x.name,ownLabel:m,render:(h,w)=>fe(h.value)?(0,e.jsxs)("span",{className:`inline-flex items-baseline gap-0.5 text-3xl font-bold ${Z(h)}`.trim(),"data-testid":"score-figure",children:[w,c!=null&&(0,e.jsxs)("span",{className:"text-lg font-normal text-muted-foreground",children:["/",c]})]}):w}),m&&(0,e.jsx)("div",{className:"min-w-0 font-sans text-[11px] font-medium tracking-wide text-muted-foreground","data-testid":"score-source-label",children:G(x.handle,a)})]},x.name)),s&&!s.handle.hidden&&(0,e.jsx)("div",{className:"min-w-0 text-muted-foreground","data-testid":"score-verdict",children:(0,e.jsx)(f,{name:r})})]});return(0,e.jsx)(q,{label:i.label,icon:i.icon,children:u})}C({kinds:["score"],layout:"block",editor:"own",Page:Na});function ka({el:t}){let a=t,i=a.view?.source,n=a.view?.since,l=T(),r=Ae(),c=I(l,n),o=(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-3","data-testid":"status",children:[(0,e.jsx)("div",{className:"min-w-0",children:(0,e.jsx)(f,{name:i,ownLabel:r,render:(s,d)=>{if(!fe(s.value))return d;let m=s.field.type,{chipClassName:u,chipStyle:x}=It(m),h=(0,e.jsx)("span",{className:`inline-flex min-w-0 items-center gap-2 rounded-full border px-3 py-1.5 font-medium ${u?u(s.value):""}`,style:x?x(s.value):void 0,"data-testid":"status-banner",children:(0,e.jsx)(Jt,{field:m,value:s.value})});return r?(0,e.jsxs)("span",{className:"inline-flex min-w-0 flex-col items-start gap-0.5",children:[h,(0,e.jsx)(Fe,{handle:s})]}):h}})}),c&&!c.handle.hidden&&(0,e.jsx)("div",{className:"min-w-0 text-sm text-muted-foreground","data-testid":"status-since",children:(0,e.jsx)(f,{name:n})})]});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:o})}C({kinds:["status"],layout:"block",editor:"own",Page:ka});function $a(t,a,i){return!a||i===void 0||!Number.isFinite(t)?"neutral":a==="ceiling"?t>i?"danger":"success":t<i?"danger":"success"}var Ca={danger:"bg-destructive",success:"bg-success",neutral:"bg-primary"},ot={danger:"text-destructive",success:"text-success",neutral:""};function Sa(t,a,i,n){if(!i)return;if(i==="ceiling"){let c=t?.max==null?n:Number(t.max);return Number.isFinite(c)?c:void 0}let l=t?.min==null?a.hints.min:t.min,r=l==null?n:Number(l);return Number.isFinite(r)?r:void 0}function Ma(t,a,i){let n=Number(t?.min??a.hints.min??0),l=t?.max??a.hints.max??(Number.isFinite(i)?i:void 0),r=l==null?n+1:Number(l);return{min:Number.isFinite(n)?n:0,max:Number.isFinite(r)&&r>n?r:n+1}}function Le(t){if(t==null||t==="")return NaN;if(typeof t=="object"&&"value"in t){let a=t.value;return a==null||a===""?NaN:Number(a)}return Number(t)}function Pa({el:t}){let a=t,i=a.view?.source,n=a.view?.of,l=a.view,r=l?.direction,c=T(),o=Ae(),s=I(c,n),d=I(c,i),m=s?Le(s.handle.value):void 0,u=r==="ceiling"?m:void 0,{min:x,max:h}=d?Ma(l,d.handle.field.type,u):{min:0,max:1},w=d?Sa(l,d.handle.field.type,r,m):void 0,$=d?$a(Le(d.handle.value),r,w):"neutral",k=$==="danger"?Ot:$==="success"?Zt:null,j=(0,e.jsxs)("div",{className:"flex flex-wrap items-end gap-3","data-testid":"meter",children:[(0,e.jsx)("div",{className:"flex-1",children:(0,e.jsx)(f,{name:i,ownLabel:o,render:(v,S)=>{let A=Le(v.value);if(!Number.isFinite(A))return S;let M=Math.max(0,Math.min(1,(A-x)/(h-x)));return(0,e.jsxs)("span",{className:"flex min-w-0 flex-col gap-1","data-testid":"meter-figure","data-tone":$,children:[(0,e.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-2xl font-semibold ${ot[$]} ${Z(v)}`.trim(),children:[k&&(0,e.jsx)(k,{size:18,className:"shrink-0","aria-hidden":"true"}),S]}),(0,e.jsx)("span",{role:"progressbar","aria-valuemin":x,"aria-valuemax":h,"aria-valuenow":Number.isFinite(A)?Math.max(x,Math.min(h,A)):x,className:"h-2 w-full overflow-hidden rounded-full bg-border","data-testid":"meter-bar",children:(0,e.jsx)("span",{className:`block h-full rounded-full transition-[width] ${Ca[$]}`,style:{width:`${M*100}%`},"data-testid":"meter-fill"})}),o&&(0,e.jsx)(Fe,{handle:v})]})}})}),s&&!s.handle.hidden&&(0,e.jsx)("div",{className:`text-sm text-muted-foreground ${ot[$]}`.trim(),"data-testid":"meter-of",children:(0,e.jsx)(f,{name:n})})]});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:j})}C({kinds:["meter"],layout:"block",editor:"own",Page:Pa});function Ra({el:t}){let a=t,i=a.view?.source,{t:n}=z(),l=a.view?.caption,r=(0,e.jsxs)("div",{className:"flex flex-col gap-1","data-testid":"balance",children:[(0,e.jsx)(f,{name:i,render:(c,o)=>(0,e.jsx)("span",{className:`text-3xl font-semibold ${Z(c)}`.trim(),"data-testid":"balance-figure",children:o})}),l&&(0,e.jsx)("div",{className:"min-w-0 font-sans text-[11px] font-medium tracking-wide text-muted-foreground","data-testid":"balance-caption",children:n(l)})]});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:r})}C({kinds:["balance"],layout:"block",editor:"own",Page:Ra});function _a(t,a){return typeof t=="string"?Ge(t,a):null}function Aa({el:t}){let a=t,i=a.view?.source,{t:n}=z(),l=a.view?.caption,r=Ae(),c=(0,e.jsx)("div",{"data-testid":"countdown",children:(0,e.jsx)(f,{name:i,ownLabel:r,render:(o,s)=>{let d=_a(o.value,$e());if(d===null)return s;let m=d>0?"remaining":d<0?"elapsed":"today",u=d>0?Bt:d<0?Vt:null;return(0,e.jsxs)("span",{className:"inline-flex items-baseline gap-3","data-testid":"countdown-figure","data-direction":m,children:[(0,e.jsxs)("span",{className:"inline-flex flex-col items-start gap-0.5",children:[(0,e.jsxs)("span",{className:"inline-flex items-baseline gap-1.5",children:[u&&(0,e.jsx)(u,{size:16,className:"shrink-0 self-center text-muted-foreground","aria-hidden":"true"}),(0,e.jsx)("span",{className:"text-3xl font-bold tabular-nums",children:Math.abs(d)})]}),l&&(0,e.jsx)("span",{className:"min-w-0 font-sans text-[11px] font-medium tracking-wide text-muted-foreground","data-testid":"countdown-caption",children:n(l)})]}),(0,e.jsxs)("span",{className:"inline-flex flex-col items-start gap-0.5",children:[(0,e.jsx)("span",{className:"text-sm text-muted-foreground","data-testid":"countdown-date",children:s}),r&&(0,e.jsx)(Fe,{handle:o})]})]})}})});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:c})}C({kinds:["countdown"],layout:"block",editor:"own",Page:Aa});function ct(t,a){return t.hints.multi?qt(a,[]).map(String):fe(a)?[String(a)]:[]}function Fa({field:t,value:a}){let i=t.relation?.library??"",n=t.relation?.shelf??"",l=ct(t,a),r=Xe(i,n,l),c=Ze(i,n);return l.length?(0,e.jsx)("div",{className:"overflow-x-auto","data-testid":"deck",children:(0,e.jsx)("div",{className:"flex gap-3 pb-1",children:l.map(o=>{let s=r.get(o);return(0,e.jsx)("div",{className:"flex w-40 shrink-0 flex-col gap-2 rounded-lg border border-border p-3","data-testid":"deck-card",children:(0,e.jsx)(We,{to:`/${i}/${n}/${o}`,className:"min-w-0 hover:text-primary",children:c&&s?(0,e.jsx)(zt,{shelf:c,row:s}):Be(o)})},o)})})}):(0,e.jsx)(Re,{})}function La({el:t}){let a=t,i=a.view?.source;return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:(0,e.jsx)(f,{name:i,render:n=>(0,e.jsx)(Fa,{field:n.field.type,value:n.value})})})}C({kinds:["deck"],layout:"block",editor:"own",Page:La});function za({field:t,value:a}){let i=t.relation?.library??"",n=t.relation?.shelf??"",l=ct(t,a),r=Xe(i,n,l),c=Ze(i,n);return l.length?(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1","data-testid":"people",children:[(0,e.jsx)("div",{className:"flex items-center","data-testid":"people-avatars",children:l.map((o,s)=>{let d=r.get(o),{icon:m}=c&&d?He(c,d):{icon:void 0};return(0,e.jsx)("span",{className:`rounded-full ring-2 ring-surface ${s>0?"-ml-2.5":""}`,style:{zIndex:l.length-s},"data-testid":`people-avatar-${s}`,children:m?(0,e.jsx)(et,{icon:m,framed:!0,size:"md"}):(0,e.jsx)(et,{icon:{kind:"icon",value:c?.icon??"lucide:user"},framed:!0,size:"md"})},o)})}),(0,e.jsx)("div",{className:"flex flex-wrap items-center gap-x-1.5 text-sm","data-testid":"people-names",children:l.map(o=>{let s=r.get(o),{title:d}=c&&s?He(c,s):{title:Be(o)};return(0,e.jsx)(We,{to:`/${i}/${n}/${o}`,className:"hover:text-primary hover:underline",children:d},o)})})]}):(0,e.jsx)(Re,{})}function Ta({el:t}){let a=t,i=a.view?.source;return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:(0,e.jsx)(f,{name:i,render:n=>(0,e.jsx)(za,{field:n.field.type,value:n.value})})})}C({kinds:["people"],layout:"block",editor:"own",Page:Ta});var Ia=t=>/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:`https://${t}`;function qa(t,a){if(t.kind==="tel"){let i=String(a??"").trim();return i?`tel:${i}`:void 0}if(t.kind==="email"){let i=String(a??"").trim();return i?`mailto:${i}`:void 0}if(t.kind==="link"){let i=String(a??"").trim();return i?Ia(i):void 0}}var Da={tel:ea,email:Xt,link:at};function Ka({el:t}){let a=t,{t:i}=z(),n=a.view?.avatar,l=a.view?.name,r=a.view?.role,c=a.view?.channels??[],o=T(),s=I(o,n),d=I(o,r),m=V(o,c),u=m.filter(h=>!h.handle.hidden),x=(0,e.jsxs)("div",{className:"flex items-center gap-3","data-testid":"identity",children:[s&&!s.handle.hidden&&(0,e.jsx)("div",{className:"shrink-0","data-testid":"identity-avatar",children:(0,e.jsx)(f,{name:n})}),(0,e.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,e.jsx)("div",{className:"min-w-0 text-lg font-semibold","data-testid":"identity-name",children:(0,e.jsx)(f,{name:l})}),d&&!d.handle.hidden&&(0,e.jsx)("div",{className:"min-w-0 text-sm text-muted-foreground","data-testid":"identity-role",children:(0,e.jsx)(f,{name:r})})]}),u.length>0&&(0,e.jsx)("div",{className:"flex shrink-0 items-center gap-1.5","data-testid":"identity-channels",children:m.map(h=>h.handle.hidden?null:(0,e.jsx)("span",{children:(0,e.jsx)(f,{name:h.name,ownLabel:!0,render:(w,$)=>{let k=w.field.type,j=qa(k,w.value);if(!j)return $;let v=Da[k.kind]??at;return(0,e.jsx)("a",{href:j,"aria-label":G(w,i),className:"inline-flex h-9 w-9 items-center justify-center rounded-lg border border-border text-muted-foreground transition-colors hover:border-ring hover:text-primary",children:(0,e.jsx)(v,{size:16})})}})},h.name))})]});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:x})}C({kinds:["identity"],layout:"block",editor:"own",Page:Ka});function Oa(t,a){let i=typeof t=="string"?Ge(t,a):null;return i===null?null:i<0}function Ea({el:t}){let a=t,i=T(),n=(0,e.jsxs)("div",{className:"relative flex flex-col gap-2","data-testid":"timeline",children:[(0,e.jsx)("div",{className:"absolute top-2 bottom-2 left-[5px] w-px bg-border","aria-hidden":!0}),i.map((l,r)=>l.handle.hidden?null:(0,e.jsx)("div",{className:"relative min-w-0","data-testid":`timeline-item-${r}`,children:(0,e.jsx)(f,{name:l.name,render:(c,o)=>{let s=Oa(c.value,$e());return(0,e.jsxs)("span",{className:"flex min-w-0 items-start gap-3","data-testid":"timeline-entry",children:[(0,e.jsx)("span",{className:`relative z-10 mt-1 h-2.5 w-2.5 shrink-0 rounded-full border-2 border-ring ${s?"bg-primary":"bg-card"}`,"data-testid":"timeline-dot","data-past":s===null?void 0:s,"aria-hidden":!0}),(0,e.jsx)("span",{className:"min-w-0 flex-1 pb-1",children:o})]})}})},l.name))]});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:n})}C({kinds:["timeline"],layout:"block",editor:"own",Page:Ea});function Wa({el:t}){let a=t,{t:i}=z(),n=a.view?.lines??[],l=a.view?.total,r=T(),c=V(r,n),o=I(r,l),s=(0,e.jsxs)("div",{className:"flex flex-col","data-testid":"receipt",children:[(0,e.jsx)("div",{className:"flex flex-col divide-y divide-dashed divide-border",children:c.map((d,m)=>d.handle.hidden?null:d.handle.mode==="view"?(0,e.jsxs)("div",{className:"flex w-full min-w-0 items-baseline justify-between gap-3 py-1.5","data-testid":`receipt-line-${m}`,children:[(0,e.jsx)("span",{className:"min-w-0 text-muted-foreground",children:G(d.handle,i)}),(0,e.jsx)("span",{className:`shrink-0 text-right [&_.group\\/field]:!w-auto ${Z(d.handle)}`.trim(),children:(0,e.jsx)(f,{name:d.name,ownLabel:!0})})]},d.name):(0,e.jsx)("div",{className:"min-w-0 py-1.5","data-testid":`receipt-line-${m}`,children:(0,e.jsx)(f,{name:d.name})},d.name))}),o&&!o.handle.hidden&&(0,e.jsx)("div",{className:"mt-2 min-w-0 border-t-2 border-border pt-2","data-testid":"receipt-total-row",children:o.handle.mode==="view"?(0,e.jsxs)("div",{className:"flex w-full min-w-0 items-baseline justify-between gap-3 text-lg font-bold","data-testid":"receipt-total",children:[(0,e.jsx)("span",{className:"min-w-0",children:G(o.handle,i)}),(0,e.jsx)("span",{className:`shrink-0 text-right [&_.group\\/field]:!w-auto ${Z(o.handle)}`.trim(),children:(0,e.jsx)(f,{name:l,ownLabel:!0})})]}):(0,e.jsx)(f,{name:l})})]});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:s})}C({kinds:["receipt"],layout:"block",editor:"own",Page:Wa,childWidth:"w-full"});function Ua(t){let a=t.replace(/\s+/g,"");if(!a)return"";let i=[];for(let n=0;n<a.length;n+=4)i.push(a.slice(n,n+4));return i.join(" ")}function Ba({slots:t,t:a}){return t.length?(0,e.jsx)("div",{className:"mt-3","data-testid":"idcard-blank",children:(0,e.jsx)(Se,{items:t.map(i=>({key:i.name,span:3,node:(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsx)("div",{className:te,children:a(i.handle.field.type?.label??i.handle.field.label??i.name)}),(0,e.jsx)(Re,{})]})}))})}):null}function mt({slots:t,testid:a}){return t.length?(0,e.jsx)("div",{"data-testid":a,children:(0,e.jsx)(Se,{items:t.map(i=>({key:i.name,span:tt(i.handle.field),node:(0,e.jsx)(f,{name:i.name})}))})}):null}var Va={passport:new Set(["photo","mrz"]),biometric:new Set(["photo","mrz"]),idcard:new Set(["photo"]),licence:new Set(["photo"]),residence:new Set(["photo"]),protection:new Set(["photo"]),military:new Set(["photo"]),tax:new Set([]),social:new Set([]),visa:new Set(["photo"]),workpermit:new Set([]),medical:new Set([]),insurance:new Set([]),birth:new Set([]),marriage:new Set([]),divorce:new Set([]),death:new Set([]),diploma:new Set([]),vaccination:new Set([])},Ja={passport:"page",biometric:"page",idcard:"plastic",licence:"plastic",residence:"plastic",protection:"plastic",military:"plastic",tax:"plastic",social:"plastic",visa:"sticker",workpermit:"sticker",medical:"form",insurance:"form",birth:"paper",marriage:"paper",divorce:"paper",death:"paper",diploma:"paper",vaccination:"paper"};function Qa({el:t}){let{t:a}=z(),i=t,n=i.view?.number,l=i.view?.overline,r=i.view?.photo,c=i.view?.mrz,o=i.view?.meta??[],s=i.view?.footer??[],d=T(),m=I(d,l),u=I(d,r),x=I(d,c),h=(m?Tt(m.handle.field.type??{}).find(N=>N.value===String(m.handle.value??""))?.face:void 0)??"plain",w=Ja[h]??"plain",$=Va[h],k=N=>$===void 0||$.has(N),j=N=>N!==void 0&&!N.handle.hidden&&fe(N.handle.value),v=k("photo")&&j(u),S=k("mrz")&&j(x),A=[...k("photo")&&!v&&u?[u]:[],...k("mrz")&&!S&&x?[x]:[]],M=N=>{let p=N.handle.field.type?.hints?.faces;return p===void 0||p.includes(h)},L=V(d,o).filter(N=>!N.handle.hidden&&M(N)),y=V(d,s).filter(N=>!N.handle.hidden&&M(N));return(0,e.jsxs)("div",{className:"idcard-paper overflow-hidden rounded-xl border border-border bg-card","data-face":h,"data-form":w,"data-testid":"idcard",children:[(0,e.jsxs)("div",{className:"flex flex-col gap-4 px-5 py-4",children:[(0,e.jsxs)("div",{className:"flex min-w-0 items-baseline justify-between gap-4 border-b border-border pb-3","data-testid":"idcard-head",children:[m&&!m.handle.hidden?(0,e.jsx)("div",{className:te,"data-testid":"idcard-overline",children:(0,e.jsx)(f,{name:l,ownLabel:!0})}):(0,e.jsx)("span",{"aria-hidden":!0}),(0,e.jsx)("div",{className:"min-w-0 shrink-0",children:(0,e.jsx)(f,{name:n,ownLabel:!0,render:(N,p)=>{let b=Ua(typeof N.value=="string"||typeof N.value=="number"?String(N.value):"");return b?(0,e.jsx)("span",{className:"text-lg font-semibold tracking-widest text-primary","data-testid":"idcard-number",children:b}):p}})})]}),(u||L.length>0)&&(0,e.jsxs)("div",{className:"flex min-w-0 items-start gap-5",children:[v&&(0,e.jsx)("div",{className:"aspect-[3/4] w-28 shrink-0 overflow-hidden rounded-md border border-border bg-muted","data-testid":"idcard-photo",children:(0,e.jsx)(f,{name:r,ownLabel:!0})}),(0,e.jsx)("div",{className:"min-w-0 flex-1",children:(0,e.jsx)(mt,{slots:L,testid:"idcard-meta"})})]}),(y.length>0||A.length>0)&&(0,e.jsxs)("div",{className:"border-t border-border pt-3",children:[(0,e.jsx)(mt,{slots:y,testid:"idcard-footer"}),(0,e.jsx)(Ba,{slots:A,t:a})]})]}),S&&(0,e.jsx)("div",{className:"border-t border-dashed border-border px-5 py-3","data-testid":"idcard-mrz",children:(0,e.jsx)(f,{name:c,ownLabel:!0})})]})}C({kinds:["idcard"],layout:"block",editor:"own",Page:Qa});function Xa({el:t}){let a=t,i=a.view?.from,n=a.view?.to,l=a.view?.depart,r=a.view?.arrive,c=a.view?.duration,o=T(),s=I(o,i),d=I(o,n),m=I(o,l),u=I(o,r),x=V(o,a.view?.stub??[]).filter(j=>!j.handle.hidden),h=I(o,c),w=s!==void 0&&!s.handle.hidden,$=d!==void 0&&!d.handle.hidden,k=h!==void 0&&!h.handle.hidden;return(0,e.jsxs)("div",{className:"flex items-start gap-3","data-testid":"route",children:[w&&(0,e.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-start gap-1","data-testid":"route-from",children:[(0,e.jsx)(f,{name:i,render:(j,v)=>(0,e.jsx)("span",{className:"text-xl font-bold","data-testid":"route-endpoint-0",children:v})}),m&&!m.handle.hidden&&(0,e.jsx)("span",{className:"min-w-0 text-xs text-muted-foreground","data-testid":"route-depart",children:(0,e.jsx)(f,{name:l})})]}),(w||$||k)&&(0,e.jsxs)("div",{className:"relative flex min-w-[3rem] flex-1 shrink-0 flex-col items-center justify-center self-stretch","data-testid":"route-axis",children:[(0,e.jsx)("span",{className:"absolute inset-x-0 top-1/2 border-t border-dashed border-border","aria-hidden":!0}),k&&(0,e.jsx)("span",{className:"relative z-10 bg-card px-1.5 text-xs font-medium text-muted-foreground","data-testid":"route-duration",children:(0,e.jsx)(f,{name:c})})]}),$&&(0,e.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-end gap-1 text-right","data-testid":"route-to",children:[(0,e.jsx)(f,{name:n,render:(j,v)=>(0,e.jsx)("span",{className:"text-xl font-bold","data-testid":"route-endpoint-1",children:v})}),u&&!u.handle.hidden&&(0,e.jsx)("span",{className:"min-w-0 text-xs text-muted-foreground","data-testid":"route-arrive",children:(0,e.jsx)(f,{name:r})})]}),x.length>0&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"route-perf","aria-hidden":!0}),(0,e.jsx)("div",{className:"flex flex-wrap items-baseline gap-x-6 gap-y-2 pt-3","data-testid":"route-stub",children:x.map(j=>(0,e.jsx)("div",{className:"min-w-0",children:(0,e.jsx)(f,{name:j.name})},j.name))})]})]})}C({kinds:["route"],layout:"block",editor:"own",Page:Xa});function Ga({el:t}){let a=t,{t:i}=z(),n=a.view?.title,l=a.view?.subtitle,r=a.view?.conditions??[],c=T(),o=I(c,l),s=V(c,r),d=s.filter(m=>!m.handle.hidden);return(0,e.jsxs)("div",{className:"rounded-xl border border-border bg-card px-4 py-3","data-testid":"specimen",children:[(0,e.jsx)("div",{className:"min-w-0 text-xl font-medium italic [&_.group\\/field]:!w-auto","data-testid":"specimen-title",children:(0,e.jsx)(f,{name:n,ownLabel:!0})}),o&&!o.handle.hidden&&(0,e.jsx)("div",{className:"mt-1 min-w-0 text-sm text-muted-foreground [&_.group\\/field]:!w-auto","data-testid":"specimen-subtitle",children:(0,e.jsx)(f,{name:l,ownLabel:!0})}),d.length>0&&(0,e.jsx)("div",{className:"mt-3 grid gap-x-8 gap-y-3 border-t border-border pt-3 [grid-template-columns:repeat(auto-fit,minmax(9rem,1fr))]","data-testid":"specimen-conditions",children:s.map((m,u)=>m.handle.hidden?null:m.handle.mode==="view"?(0,e.jsxs)("div",{className:"flex min-w-0 flex-col items-start gap-1","data-testid":`specimen-condition-${u}`,children:[(0,e.jsx)("span",{className:"min-w-0 font-sans text-[11px] font-medium tracking-wide text-muted-foreground",children:G(m.handle,i)}),(0,e.jsx)("span",{className:"min-w-0 font-medium text-foreground [&_.group\\/field]:!w-auto",children:(0,e.jsx)(f,{name:m.name,ownLabel:!0})})]},m.name):(0,e.jsx)("div",{className:"min-w-0","data-testid":`specimen-condition-${u}`,children:(0,e.jsx)(f,{name:m.name})},m.name))})]})}C({kinds:["specimen"],layout:"block",editor:"own",Page:Ga});function Za({el:t}){let a=t,{t:i}=z(),n=a.view?.energy,l=a.view?.fields??[],r=T(),c=I(r,n),o=V(r,l),s=c!==void 0&&!c.handle.hidden,d=o.filter(u=>!u.handle.hidden);if(!s&&d.length===0)return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:null});let m=(0,e.jsxs)("div",{className:"w-full max-w-xs border-2 border-text p-3","data-testid":"nutrition",children:[s&&(0,e.jsx)("div",{className:"mb-2 border-b-4 border-text pb-2","data-testid":"nutrition-energy-row",children:c.handle.mode==="view"?(0,e.jsxs)("div",{className:"flex w-full min-w-0 items-baseline justify-between gap-3","data-testid":"nutrition-energy",children:[(0,e.jsx)("span",{className:"min-w-0 text-base font-bold tracking-wide",children:G(c.handle,i)}),(0,e.jsx)("span",{className:`shrink-0 text-right text-2xl font-black [&_.group\\/field]:!w-auto ${Z(c.handle)}`.trim(),children:(0,e.jsx)(f,{name:n,ownLabel:!0})})]}):(0,e.jsx)(f,{name:n})}),(0,e.jsx)("div",{className:"flex flex-col divide-y divide-border",children:o.map((u,x)=>u.handle.hidden?null:u.handle.mode==="view"?(0,e.jsxs)("div",{className:"flex w-full min-w-0 items-baseline justify-between gap-3 py-1 text-sm","data-testid":`nutrition-row-${x}`,children:[(0,e.jsx)("span",{className:"min-w-0",children:G(u.handle,i)}),(0,e.jsx)("span",{className:`shrink-0 text-right font-medium [&_.group\\/field]:!w-auto ${Z(u.handle)}`.trim(),children:(0,e.jsx)(f,{name:u.name,ownLabel:!0})})]},u.name):(0,e.jsx)("div",{className:"min-w-0 py-1","data-testid":`nutrition-row-${x}`,children:(0,e.jsx)(f,{name:u.name})},u.name))})]});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:m})}C({kinds:["nutrition"],layout:"block",editor:"own",Page:Za,childWidth:"w-full"});function Q(t,a){return t.fields.find(i=>H(i)&&i.key===a)}function we(t,a){let{rowId:i,updateRow:n,removeRow:l}=Dt(t,a);return{rowId:i,updateRow:(r,c,o)=>n(r,{...t[r],[c]:o}),removeRow:l,addRow:()=>a([...t,{}])}}function ut(t){if(typeof t!="string"&&typeof t!="number")return;let a=String(t).slice(0,10);return Ft(a,"day")?a:void 0}function xt(t){return`${t.slice(0,7)}-01`}function Ha({day:t,matchingRows:a,dateKey:i,restFields:n,recordCtx:l,errorFor:r,onUpdateRow:c,onRemoveRow:o,onAddRow:s,rowTools:d,editing:m}){let{t:u,i18n:x}=z(),[h,w]=(0,X.useState)(!1),$=(0,X.useRef)(null);if(t==null)return(0,e.jsx)("div",{className:"aspect-square"});let k=a[0],j=k!==void 0,v=t,S=Number(t.slice(8,10)),A=Qe(t,x.language,{day:"numeric",month:"long",year:"numeric"}),M=a.map(({idx:y})=>r(y,i)||n.map(N=>r(y,N.key)).find(Boolean)).find(Boolean),L=(0,e.jsxs)("button",{ref:$,type:"button",role:"button",onClick:d?()=>w(y=>!y):void 0,"aria-haspopup":d?"dialog":void 0,"aria-expanded":d?h:void 0,className:`relative flex aspect-square w-full items-center justify-center rounded-md text-xs font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${M?"border border-destructive text-destructive font-semibold":j?"border border-ring bg-background font-semibold text-primary shadow-xs":"text-foreground hover:bg-muted"}`,"data-testid":k?`calendar-date-${k.idx}`:void 0,"aria-label":A,children:[S,j&&(0,e.jsx)("span",{"data-testid":`calendar-marked-${t}`,className:`absolute bottom-1 h-1 w-1 rounded-full ${M?"bg-destructive":"bg-primary"}`}),M&&(0,e.jsx)("span",{className:"sr-only text-destructive",children:M})]});return d?(0,e.jsx)("div",{"data-testid":k?`calendar-entry-${k.idx}`:void 0,className:"relative w-full",children:(0,e.jsx)(Wt,{open:h,onOpenChange:w,triggerRef:$,trigger:y=>(0,e.jsxs)(e.Fragment,{children:[L,y]}),children:(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between border-b border-border pb-2",children:[(0,e.jsx)("span",{className:"text-xs font-semibold text-foreground",children:A}),(0,e.jsx)("span",{className:"text-[11px] font-mono text-muted-foreground",children:v})]}),j?(0,e.jsx)("div",{className:"space-y-3",children:a.map(({row:y,idx:N})=>{let p=r(N,i);return(0,e.jsxs)("div",{className:"space-y-2 border-b border-border pb-2 last:border-b-0 last:pb-0",children:[p&&(0,e.jsx)("div",{className:"text-xs text-destructive font-medium",children:p}),n.length>0&&(0,e.jsxs)("div",{className:"space-y-1",children:[(0,e.jsx)(pe,{fields:n,row:y,editing:m,onChange:(b,_)=>c(N,b,_),recordCtx:l,error:b=>r(N,b)}),n.map(b=>{let _=r(N,b.key);return _?(0,e.jsx)("div",{className:"text-xs text-destructive font-medium",children:_},b.key):null})]}),(0,e.jsx)("div",{className:"flex items-center justify-end pt-1",children:(0,e.jsx)(oe,{onClick:()=>{o(N),w(!1)}})})]},N)})}):(0,e.jsx)("div",{className:"space-y-2 pt-1",children:(0,e.jsx)(he,{onClick:()=>{s(v),w(!1)},children:u("form.addRow")})})]})})}):(0,e.jsx)("div",{"data-testid":k?`calendar-entry-${k.idx}`:void 0,className:"w-full",children:L})}function Ya({rows:t,dateKey:a,restFields:i,recordCtx:n,errorFor:l,onUpdateRow:r,onRemoveRow:c,onAddRow:o,rowTools:s,editing:d}){let{t:m,i18n:u}=z(),[x,h]=(0,X.useState)(()=>{for(let y of t){let N=ut(y[a]);if(N)return xt(N)}return xt($e())}),w=Number(x.slice(0,4)),$=Number(x.slice(5,7))-1,k=()=>h(Je(x,-1,"month")),j=()=>h(Je(x,1,"month")),v=Kt(w,$,_e()),S=Ve(u.language,"short",_e()),A=Qe(x,u.language,{month:"long",year:"numeric"}),M=new Map,L=[];return t.forEach((y,N)=>{let p=ut(y[a]);if(p&&p.slice(0,7)===x.slice(0,7)){let b=M.get(p)??[];b.push({row:y,idx:N}),M.set(p,b)}else p||L.push({row:y,idx:N})}),(0,e.jsxs)("div",{className:"w-full max-w-[280px] rounded-lg border border-border bg-card p-3","data-testid":"calendar-grid",children:[(0,e.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,e.jsx)("span",{className:"text-xs font-semibold text-foreground capitalize",children:A}),(0,e.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,e.jsx)("button",{type:"button",onClick:k,"aria-label":m("blocks.prevMonth"),className:"rounded p-1 text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",children:(0,e.jsx)(Gt,{size:13})}),(0,e.jsx)("button",{type:"button",onClick:j,"aria-label":m("blocks.nextMonth"),className:"rounded p-1 text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",children:(0,e.jsx)(Qt,{size:13})})]})]}),(0,e.jsx)("div",{className:"mb-1 grid grid-cols-7 gap-1 text-center text-[10px] font-medium text-muted-foreground",children:S.map((y,N)=>(0,e.jsx)("div",{className:"py-0.5",children:y},N))}),(0,e.jsx)("div",{className:"grid grid-cols-7 gap-1",children:v.map((y,N)=>(0,e.jsx)(Ha,{day:y,matchingRows:y==null?[]:M.get(y)??[],dateKey:a,restFields:i,recordCtx:n,errorFor:l,onUpdateRow:r,onRemoveRow:c,onAddRow:o,rowTools:s,editing:d},N))}),L.length>0&&(0,e.jsx)("div",{className:"mt-3 space-y-1.5 border-t border-border pt-2",children:L.map(({idx:y})=>{let N=l(y,a);return(0,e.jsxs)("div",{"data-testid":`calendar-entry-${y}`,className:"flex items-center justify-between text-xs",children:[(0,e.jsx)("div",{"data-testid":`calendar-date-${y}`,className:"text-destructive font-medium",children:N||m("validation.required")}),s&&(0,e.jsx)(oe,{onClick:()=>c(y)})]},y)})})]})}function ei({el:t,value:a,recordCtx:i,mode:n}){let{t:l}=z(),r=le(),c=be(),{write:o}=se(),s=t,d=s.view?.date,m=Q(s,d),u=de(n,a,v=>o(v)),x=Array.isArray(u.value)?u.value:[],{editing:h,live:w,rowTools:$}=ve(u.mode,n);if(!m||!d)return(0,e.jsx)(ne,{group:{...s,kind:void 0},value:a,onChange:v=>{o(v)},recordCtx:i,mode:n});let k=s.fields.filter(v=>H(v)&&v.key!==d).map(v=>({key:v.key,type:v.type})),j=(0,e.jsx)(Ya,{rows:x,dateKey:d,restFields:k,recordCtx:i,errorFor:(v,S)=>xe(s)?c([s.key,v,S]):void 0,onUpdateRow:(v,S,A)=>{let M={...x[v],[S]:A};u.onChange(x.map((L,y)=>y===v?M:L))},onRemoveRow:v=>{u.onChange(x.filter((S,A)=>A!==v))},onAddRow:v=>{u.onChange([...x,{[d]:v}])},rowTools:$,editing:h});return n==="view"?(0,e.jsx)(Y,{label:s.label?l(s.label):void 0,count:x.length,labelAfter:!w&&u.actions,rail:!1,className:ae(r),testId:"calendar",children:(0,e.jsx)(ie,{depth:r+1,children:j})}):j}C({kinds:["calendar"],layout:"block",Page:ei,editor:"own"});function ht(t,a,i,n,l,r,c,o){return n?(0,e.jsx)(J,{el:t,field:t.type,fieldKey:i,value:a[i]??"",onChange:r,mode:"edit",bare:!0,recordCtx:c,error:o}):(0,e.jsx)(J,{el:t,field:t.type,fieldKey:l?i:void 0,value:a[i]??"",mode:"view",bare:!l,recordCtx:c,onChange:l?r:void 0,error:o})}function ti({el:t,value:a,recordCtx:i,mode:n}){let{t:l}=z(),r=le(),c=be(),{write:o}=se(),s=t,d=s.view?.date,m=s.view?.text,u=Q(s,d),x=Q(s,m),h=de(n,a,p=>o(p)),w=Array.isArray(h.value)?h.value:[],{editing:$,live:k,rowTools:j}=ve(h.mode,n),{rowId:v,updateRow:S,removeRow:A,addRow:M}=we(w,p=>h.onChange(p));if(!u||!x||!d||!m)return(0,e.jsx)(ne,{group:{...s,kind:void 0},value:a,onChange:p=>{o(p)},recordCtx:i,mode:n});let L=s.fields.filter(p=>H(p)&&p.key!==d&&p.key!==m).map(p=>({key:p.key,type:p.type})),y=(p,b)=>xe(s)?c([s.key,p,b]):void 0,N=(0,e.jsxs)("div",{className:`flex flex-col ${Me}`,children:[w.map((p,b)=>(0,e.jsx)(Pe,{children:(0,e.jsxs)("div",{className:"flex items-start gap-3","data-testid":`journal-entry-${b}`,children:[(0,e.jsx)("div",{className:`w-20 shrink-0 text-xs text-muted-foreground ${ee(u.type)}`.trim(),"data-testid":`journal-date-${b}`,children:ht(u,p,d,$,k,_=>S(b,d,_),i,y(b,d))}),(0,e.jsx)("div",{className:"min-w-0 flex-1 text-sm","data-testid":`journal-text-${b}`,children:ht(x,p,m,$,k,_=>S(b,m,_),i,y(b,m))}),L.length>0&&(0,e.jsx)(pe,{fields:L,row:p,editing:$,onChange:(_,P)=>S(b,_,P),recordCtx:i,error:_=>y(b,_)}),j&&(0,e.jsx)(oe,{className:"mt-0.5",onClick:()=>A(b)})]})},v(p))),j&&(0,e.jsx)(he,{onClick:M,children:l("form.addRow")})]});return n==="view"?(0,e.jsx)(Y,{label:s.label?l(s.label):void 0,count:w.length,labelAfter:!k&&h.actions,rail:!1,className:ae(r),testId:"journal",children:(0,e.jsx)(ie,{depth:r+1,children:N})}):N}C({kinds:["journal"],layout:"block",Page:ti,editor:"own"});function ft(t,a,i,n,l,r,c,o){return n?(0,e.jsx)(J,{el:t,field:t.type,fieldKey:i,value:a[i]??"",onChange:r,mode:"edit",bare:!0,recordCtx:c,error:o}):(0,e.jsx)(J,{el:t,field:t.type,fieldKey:l?i:void 0,value:a[i]??"",mode:"view",bare:!l,recordCtx:c,onChange:l?r:void 0,error:o})}function ai({el:t,value:a,recordCtx:i,mode:n}){let{t:l}=z(),r=le(),c=be(),{write:o}=se(),s=t,d=s.view?.quantity,m=s.view?.item,u=Q(s,d),x=Q(s,m),h=de(n,a,p=>o(p)),w=Array.isArray(h.value)?h.value:[],{editing:$,live:k,rowTools:j}=ve(h.mode,n),{rowId:v,updateRow:S,removeRow:A,addRow:M}=we(w,p=>h.onChange(p));if(!u||!x||!d||!m)return(0,e.jsx)(ne,{group:{...s,kind:void 0},value:a,onChange:p=>{o(p)},recordCtx:i,mode:n});let L=s.fields.filter(p=>H(p)&&p.key!==d&&p.key!==m).map(p=>({key:p.key,type:p.type})),y=(p,b)=>xe(s)?c([s.key,p,b]):void 0,N=(0,e.jsxs)("div",{className:`flex flex-col ${Me}`,children:[w.map((p,b)=>(0,e.jsx)(Pe,{children:(0,e.jsxs)("div",{className:"flex items-center gap-3","data-testid":`manifest-row-${b}`,children:[(0,e.jsx)("div",{className:`w-12 shrink-0 text-right text-sm ${ee(u.type)}`.trim(),"data-testid":`manifest-quantity-${b}`,children:ft(u,p,d,$,k,_=>S(b,d,_),i,y(b,d))}),(0,e.jsx)("div",{className:"min-w-0 flex-1 text-sm","data-testid":`manifest-item-${b}`,children:ft(x,p,m,$,k,_=>S(b,m,_),i,y(b,m))}),L.length>0&&(0,e.jsx)(pe,{fields:L,row:p,editing:$,onChange:(_,P)=>S(b,_,P),recordCtx:i,error:_=>y(b,_)}),j&&(0,e.jsx)(oe,{onClick:()=>A(b)})]})},v(p))),j&&(0,e.jsx)(he,{onClick:M,children:l("form.addRow")})]});return n==="view"?(0,e.jsx)(Y,{label:s.label?l(s.label):void 0,count:w.length,labelAfter:!k&&h.actions,rail:!1,className:ae(r),testId:"manifest",children:(0,e.jsx)(ie,{depth:r+1,children:N})}):N}C({kinds:["manifest"],layout:"block",Page:ai,editor:"own"});function ze(t){if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()!==""){let a=Number(t);return Number.isFinite(a)?a:null}return null}function ii({value:t,low:a,high:i}){return t===null?!1:a!==null&&t<a||i!==null&&t>i}function ni(t){let{value:a,low:i,high:n}=t;if(i===null||n===null||!(n>i))return null;let l=n-i,r=i-l*.6,c=n+l*.6,o=s=>(s-r)/(c-r)*100;return{refLeft:o(i),refWidth:o(n)-o(i),tick:a===null?null:Math.min(100,Math.max(0,o(a)))}}function Te(t,a,i,n,l,r,c,o){return n?(0,e.jsx)(J,{el:t,field:t.type,fieldKey:i,value:a[i]??"",onChange:r,mode:"edit",bare:!0,recordCtx:c,error:o}):(0,e.jsx)(J,{el:t,field:t.type,fieldKey:l?i:void 0,value:a[i]??"",mode:"view",bare:!l,recordCtx:c,onChange:l?r:void 0,error:o})}function li({reading:t,out:a,idx:i}){let n=ni(t);return n?(0,e.jsxs)("div",{className:"relative h-2.5 min-w-0","data-testid":`assay-band-${i}`,"data-out":a||void 0,children:[(0,e.jsx)("span",{className:"absolute inset-x-0 top-1 block h-0.5 rounded-full bg-border"}),(0,e.jsx)("span",{className:"absolute top-[3px] block h-0.5 rounded-full bg-success",style:{left:`${n.refLeft}%`,width:`${n.refWidth}%`}}),n.tick!==null&&(0,e.jsx)("span",{className:`absolute -top-px block h-3 w-0.5 -translate-x-1/2 rounded-full ${a?"w-1 bg-destructive":"bg-text"}`,style:{left:`${n.tick}%`},"data-testid":`assay-tick-${i}`})]}):(0,e.jsx)("div",{"data-testid":`assay-band-${i}`})}function ri({el:t,value:a,recordCtx:i,mode:n}){let{t:l}=z(),r=le(),c=be(),{write:o}=se(),s=t,d=s.view?.analyte,m=s.view?.value,u=s.view?.unit,x=s.view?.low,h=s.view?.high,w=Q(s,d),$=Q(s,m),k=Q(s,u),j=de(n,a,R=>o(R)),v=Array.isArray(j.value)?j.value:[],{editing:S,live:A,rowTools:M}=ve(j.mode,n),{rowId:L,updateRow:y,removeRow:N,addRow:p}=we(v,R=>j.onChange(R));if(!w||!$||!d||!m)return(0,e.jsx)(ne,{group:{...s,kind:void 0},value:a,onChange:R=>{o(R)},recordCtx:i,mode:n});let b=new Set([d,m,u,x,h].filter(Boolean)),_=s.fields.filter(R=>H(R)&&!b.has(R.key)).map(R=>({key:R.key,type:R.type})),P=(R,K)=>xe(s)?c([s.key,R,K]):void 0,D=R=>({value:ze(R[m]),low:x?ze(R[x]):null,high:h?ze(R[h]):null}),B=(0,e.jsxs)("div",{className:`flex flex-col ${Me}`,children:[v.map((R,K)=>{let ge=D(R),ce=ii(ge);return(0,e.jsx)(Pe,{children:(0,e.jsxs)("div",{className:`grid items-center gap-x-3 gap-y-1 ${M?"grid-cols-[minmax(0,1fr)_auto_auto] @sm:grid-cols-[minmax(0,1.4fr)_auto_minmax(90px,1.1fr)_auto]":"grid-cols-[minmax(0,1fr)_auto] @sm:grid-cols-[minmax(0,1.4fr)_auto_minmax(90px,1.1fr)]"}`,"data-testid":`assay-row-${K}`,"data-out":ce||void 0,children:[(0,e.jsx)("div",{className:"min-w-0 text-sm","data-testid":`assay-analyte-${K}`,children:Te(w,R,d,S,A,E=>y(K,d,E),i,P(K,d))}),(0,e.jsxs)("div",{className:"flex items-baseline justify-end gap-1 text-sm",children:[(0,e.jsx)("span",{className:`font-semibold ${ce?"text-destructive":""} ${ee($.type)}`.trim(),"data-testid":`assay-value-${K}`,children:Te($,R,m,S,A,E=>y(K,m,E),i,P(K,m))}),k&&u&&(0,e.jsx)("span",{className:"shrink-0 text-xs text-muted-foreground","data-testid":`assay-unit-${K}`,children:Te(k,R,u,S,A,E=>y(K,u,E),i,P(K,u))})]}),(0,e.jsx)("div",{className:`${M?"col-span-3":"col-span-2"} min-w-0 @sm:col-span-1`,children:S?(0,e.jsx)(pe,{fields:[x,h].filter(E=>!!E).map(E=>({key:E,type:Q(s,E).type})),row:R,editing:!0,onChange:(E,me)=>y(K,E,me),recordCtx:i,error:E=>P(K,E)}):(0,e.jsx)(li,{reading:ge,out:ce,idx:K})}),_.length>0&&(0,e.jsx)("div",{className:`${M?"col-span-3 @sm:col-span-4":"col-span-2 @sm:col-span-3"} min-w-0`,children:(0,e.jsx)(pe,{fields:_,row:R,editing:S,onChange:(E,me)=>y(K,E,me),recordCtx:i,error:E=>P(K,E)})}),M&&(0,e.jsx)(oe,{className:"col-start-3 row-start-1 @sm:col-start-4",onClick:()=>N(K)})]})},L(R))}),M&&(0,e.jsx)(he,{onClick:p,children:l("form.addRow")})]});return n==="view"?(0,e.jsx)(Y,{label:s.label?l(s.label):void 0,count:v.length,labelAfter:!A&&j.actions,rail:!1,className:ae(r),testId:"assay",children:(0,e.jsx)(ie,{depth:r+1,children:B})}):B}C({kinds:["assay"],layout:"block",Page:ri,editor:"own"});function pt({slot:t,testid:a}){let{t:i}=z();return(0,e.jsxs)("div",{className:"min-w-0 flex-1","data-testid":a,children:[t.handle.field.label&&(0,e.jsx)("div",{className:"min-w-0 font-sans text-[11px] font-medium tracking-wide text-muted-foreground",children:i(t.handle.field.label)}),(0,e.jsx)("div",{className:"mt-0.5 min-w-0 text-sm",children:(0,e.jsx)(f,{name:t.name})})]})}function si({el:t}){let{t:a}=z(),i=le(),n=t,l=n.view?.amount,r=n.view?.from,c=n.view?.to,o=n.view?.meta??[],s=T(),d=I(s,l),m=I(s,r),u=I(s,c),x=V(s,o).filter(w=>!w.handle.hidden),h=[m,u].filter(w=>!!w&&!w.handle.hidden);return(0,e.jsx)(Y,{label:n.label?a(n.label):void 0,rail:!1,className:ae(i),testId:"flow",children:(0,e.jsx)(ie,{depth:i+1,children:(0,e.jsxs)("div",{className:"rounded-xl border border-border border-l-4 bg-card px-4 py-3","data-ends":h.length,children:[d&&(0,e.jsx)("div",{className:"text-2xl font-semibold","data-testid":"flow-amount",children:(0,e.jsx)(f,{name:d.name})}),h.length>0&&(0,e.jsxs)("div",{className:"mt-3 flex flex-wrap items-end gap-3","data-testid":"flow-path",children:[m&&!m.handle.hidden&&(0,e.jsx)(pt,{slot:m,testid:"flow-from"}),h.length===2&&(0,e.jsx)("span",{"aria-hidden":!0,className:"shrink-0 pb-0.5 text-lg text-faint",children:"\u2192"}),u&&!u.handle.hidden&&(0,e.jsx)(pt,{slot:u,testid:"flow-to"})]}),x.length>0&&(0,e.jsx)("div",{className:"mt-4 border-t border-border pt-3","data-testid":"flow-meta",children:(0,e.jsx)(Se,{items:x.map(w=>({key:w.name,span:tt(w.handle.field),node:(0,e.jsx)(f,{name:w.name})}))})})]})})})}C({kinds:["flow"],layout:"block",Page:si,editor:"own"});var Ie=" __table_none__";function di(t){return t.fields.filter(a=>H(a))}var bt=new Set;function qe(t,a,i){let n=`${t.key}:${a}:${i}`;bt.has(n)||(bt.add(n),console.warn(`[table] '${t.key}': ${a} names '${i}', which is not a column of the row; ignored.`))}function vt(t,a){let i=ke(t.type,t.key,a),n=Ue(t.type),l=n?_t(i,n):i,r=l==null||l===""?NaN:Number(l);return Number.isFinite(r)?r:void 0}function gt(t,a,i){if(t==="count")return i.length;let n=i.map(l=>vt(a,l)).filter(l=>l!==void 0);if(n.length){if(t==="sum")return n.reduce((l,r)=>l+r,0);if(t==="avg")return n.reduce((l,r)=>l+r,0)/n.length;if(t==="min")return Math.min(...n);if(t!=="range")return Math.max(...n)}}function oi(t,a){let i=a.map(n=>vt(t,n)).filter(n=>n!==void 0);if(i.length)return[Math.min(...i),Math.max(...i)]}function wt(t,a,i){let n=Ue(t.type);return n?At(a.map(l=>ke(t.type,t.key,l)).find(l=>l&&typeof l=="object"),n,i):i}function ci(t,a,i,n,l,r,c,o){let s={...t.type,hints:{...t.type.hints??{},noLabel:!0}};return i?(0,e.jsx)(J,{el:t,field:s,fieldKey:t.key,label:o,value:a[t.key]??"",onChange:l,mode:"edit",bare:!0,recordCtx:r,error:c}):(0,e.jsx)(J,{el:t,field:s,fieldKey:n?t.key:void 0,label:o,value:a[t.key]??"",mode:"view",bare:!n,recordCtx:r,onChange:n?l:void 0,error:c})}function mi({el:t,value:a,recordCtx:i,mode:n}){let{t:l,i18n:r}=z(),c=le(),o=be(),{write:s}=se(),d=t,m=di(d),u=d.view?.sort,x=d.view?.dir??"asc",h=g=>m.find(F=>F.key===g);u&&!h(u)&&qe(d,"sort",u);let[w,$]=(0,X.useState)(u&&h(u)?{key:u,dir:x}:null),k=g=>$(F=>F?.key===g?F.dir==="asc"?{key:g,dir:"desc"}:null:{key:g,dir:"asc"}),j=de(n,a,g=>s(g)),v=Array.isArray(j.value)?j.value:[],{editing:S,live:A,rowTools:M}=ve(j.mode,n),L=(0,X.useMemo)(()=>({t:l,locale:r.language}),[l,r.language]),y=(0,X.useMemo)(()=>{if(S||!w)return v;let g=h(w.key);return g?Yt(v,w.key,w.dir,g.type,L):v},[v,w,S,L]),N=(0,X.useMemo)(()=>new Map(v.map((g,F)=>[g,F])),[v]),p=d.view?.groupBy,b=h(p);p&&!b&&qe(d,"groupBy",p);let _=(0,X.useMemo)(()=>{if(S||!p||!b)return[{key:null,sort:"",label:"",rows:y}];let g=new Map,F=[];for(let W of y){let U=Ut(b.type,ke(b.type,p,W),L)[0];if(!U){F.push(W);continue}let ue=g.get(U.value)??{key:U.value,sort:U.sort??U.value,label:U.label,rows:[]};ue.rows.push(W),g.set(U.value,ue)}let O=[...g.values()].sort((W,U)=>W.sort.localeCompare(U.sort,void 0,{numeric:!0,sensitivity:"base"}));return F.length&&O.push({key:Ie,sort:Ie,label:l("table.noValue"),rows:F}),O},[y,S,p,b,L,l]),P=d.view?.numbered===!0,D=d.view?.totals;for(let g of Object.keys(D??{}))h(g)||qe(d,"totals",g);let B=!!(D&&Object.keys(D).some(g=>h(g))),R=(g,F)=>(0,e.jsxs)("tr",{"data-testid":F,className:"text-xs text-muted-foreground",children:[P&&(0,e.jsx)("td",{className:"border-b border-border py-1.5 pr-3"}),m.map((O,W)=>{let U=D?.[O.key],ue=U&&h(O.key)?gt(U,O,g):void 0;return(0,e.jsxs)("td",{className:`border-b border-border py-1.5 pr-4 ${ee(O.type)}`.trim(),children:[W===0&&!D?.[O.key]?l("table.total"):null,ue===void 0?null:(0,e.jsx)(J,{el:O,field:O.type,value:wt(O,g,ue),mode:"view",bare:!0,recordCtx:i})]},O.key)}),M&&(0,e.jsx)("td",{className:"border-b border-border"})]}),{rowId:K,updateRow:ge,removeRow:ce,addRow:E}=we(v,g=>j.onChange(g)),me=(g,F)=>xe(d)?o([d.key,g,F]):void 0,St=(g,F,O)=>(0,e.jsxs)("tr",{"data-testid":`table-row-${F}`,children:[P&&(0,e.jsx)("td",{className:"border-b border-border py-2 pr-3 text-xs text-muted-foreground",children:O}),m.map(W=>(0,e.jsxs)("td",{className:`border-b border-border py-2 pr-4 align-top ${ee(W.type)}`.trim(),children:[(0,e.jsx)("span",{className:`table-cell-label ${te}`,children:l(W.type.label)}),ci(W,g,S,A,U=>ge(F,W.key,U),i,me(F,W.key),W.type.label?l(W.type.label):void 0)]},W.key)),M&&(0,e.jsx)("td",{className:"border-b border-border py-2 align-middle",children:(0,e.jsx)(oe,{onClick:()=>ce(F)})})]},K(g)),Mt=d.view?.summary,Ne=(g,F)=>(0,e.jsx)(J,{el:g,field:g.type,value:wt(g,v,F),mode:"view",recordCtx:i}),Ke=Object.entries(Mt??{}).flatMap(([g,F])=>{let O=m.find(U=>U.key===g);if(!O)return[];if(F==="range"){let U=oi(O,v);return U?[{key:g,node:(0,e.jsxs)(e.Fragment,{children:[Ne(O,U[0])," ",(0,e.jsx)("span",{className:"text-muted-foreground",children:"\u2013"})," ",Ne(O,U[1])]})}]:[]}let W=gt(F,O,v);return W===void 0?[]:[{key:g,node:F==="count"?(0,e.jsx)(e.Fragment,{children:W}):Ne(O,W)}]}),Oe=(0,e.jsxs)("div",{className:"flex flex-col gap-2 min-w-0",children:[Ke.length>0&&(0,e.jsx)("div",{className:"flex flex-wrap items-baseline gap-x-3 gap-y-1 text-sm text-muted-foreground","data-testid":"table-summary",children:Ke.map((g,F)=>(0,e.jsx)("span",{className:`inline-flex items-baseline gap-1 text-foreground ${F>0?"before:mr-2 before:text-muted-foreground before:content-['\xB7']":""}`,children:g.node},g.key))}),(0,e.jsx)("div",{className:"table-fold overflow-auto max-h-[60vh]",children:(0,e.jsxs)("table",{className:"w-full border-separate border-spacing-0 text-sm","data-testid":"table-block",children:[(0,e.jsx)("thead",{className:"eink-solid sticky top-0 z-10 bg-background/95 backdrop-blur",children:(0,e.jsxs)("tr",{children:[P&&(0,e.jsx)("th",{className:"border-b border-border py-1.5 pr-3"}),m.map(g=>(0,e.jsx)("th",{className:`border-b border-border py-1.5 pr-4 text-left ${te}`,children:(0,e.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1 focus-visible:outline-2 focus-visible:outline-ring",onClick:()=>k(g.key),children:[l(g.type.label),!S&&w?.key===g.key&&(0,e.jsx)(Ce,{name:w.dir==="asc"?"lucide:arrow-up":"lucide:arrow-down",className:"size-3"})]})},g.key)),M&&(0,e.jsx)("th",{className:"border-b border-border"})]})}),_.map(g=>(0,e.jsxs)("tbody",{children:[g.key!==null&&(0,e.jsx)("tr",{"data-testid":`table-group-${g.key}`,children:(0,e.jsxs)("th",{colSpan:m.length+ +!!P+ +!!M,className:`border-b border-border pt-4 pb-1 text-left min-w-0 font-sans text-[11px] font-medium tracking-wide text-muted-foreground ${b?ee(b.type):""}`.trim(),children:[g.key===Ie||!b?g.label:(0,e.jsx)(J,{el:b,field:b.type,value:g.rows[0]?.[p??""],mode:"view",bare:!0,recordCtx:i})," ",(0,e.jsx)("span",{className:"text-faint",children:g.rows.length})]})}),g.rows.map((F,O)=>St(F,N.get(F)??-1,O+1)),B&&g.key!==null&&R(g.rows,`table-subtotal-${g.key}`)]},g.key??"all")),B&&(0,e.jsx)("tfoot",{children:R(v,"table-total")})]})}),M&&(0,e.jsx)(he,{onClick:E,children:l("form.addRow")})]});return n==="view"?(0,e.jsx)(Y,{label:d.label?l(d.label):void 0,count:v.length,labelAfter:!A&&j.actions,rail:!1,className:ae(c),testId:"table",children:(0,e.jsx)(ie,{depth:c+1,children:Oe})}):Oe}C({kinds:["table"],layout:"block",Page:mi,editor:"own"});var jt={2:"grid-cols-1 @sm:grid-cols-2",3:"grid-cols-1 @sm:grid-cols-2 @md:grid-cols-3",4:"grid-cols-1 @sm:grid-cols-2 @md:grid-cols-4"};function ui({el:t}){let a=t,i=jt[a.view?.columns??2]??jt[2],n=T(),l=(0,e.jsx)("div",{className:`@container grid gap-x-4 gap-y-3.5 p-4 rounded-xl border border-border bg-card ${i}`,children:n.map((r,c)=>r.handle.hidden?null:(0,e.jsx)("div",{className:"min-w-0","data-testid":`properties-item-${c}`,children:(0,e.jsx)(f,{name:r.name})},r.name))});return(0,e.jsx)(q,{label:a.label,icon:a.icon,ownSurface:!0,children:l})}C({kinds:["properties"],layout:"block",editor:"own",Page:ui});function xi({el:t}){let a=t,i=(0,e.jsx)("div",{className:"flex flex-col gap-3 w-full",children:T().map((n,l)=>n.handle.hidden?null:(0,e.jsx)("div",{className:"w-full min-w-0","data-testid":`stack-item-${l}`,children:(0,e.jsx)(f,{name:n.name})},n.name))});return(0,e.jsx)(q,{label:a.label,icon:a.icon,children:i})}C({kinds:["stack"],layout:"block",editor:"own",Page:xi});function yt(t){let a=typeof t=="string"?t:typeof t=="number"?String(t):"",i=/^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2}))?)?/.exec(a);if(i)return Date.UTC(Number(i[1]),Number(i[2])-1,Number(i[3]),Number(i[4]??0),Number(i[5]??0),Number(i[6]??0))}function hi(t){if(typeof t=="number")return Number.isFinite(t)?t:void 0;if(typeof t=="string"&&t.trim()!==""){let a=Number(t);return Number.isFinite(a)?a:void 0}}function fi(t,a,i){let n=[];for(let l of t){let r=hi(l[a]);r!==void 0&&n.push({value:r,t:yt(l[i]),row:l})}return n.length>1&&n.every(l=>l.t!==void 0)&&n.sort((l,r)=>l.t-r.t),n}function Nt(t){return Math.round(t*100)/100}function pi(t,a){let i=a.pad??0,n=Math.max(0,a.width-i*2),l=Math.max(0,a.height-i*2),r=t.filter(x=>Number.isFinite(x.value));if(r.length===0)return{path:"",coords:[],min:void 0,max:void 0};let c=r.map(x=>x.value),o=Math.min(...c),s=Math.max(...c),d=s-o,m=r.map((x,h)=>{let w=r.length>1?h/(r.length-1):0,$=d>0?(x.value-o)/d:.5;return{x:Nt(i+w*n),y:Nt(i+(1-$)*l)}}),u=m.map((x,h)=>`${h===0?"M":"L"} ${x.x} ${x.y}`).join(" ");return{path:m.length===1?`${u} L ${m[0].x} ${m[0].y}`:u,coords:m,min:o,max:s}}function bi(t){if(!(t.length<2))return t[t.length-1].value-t[t.length-2].value}var De={width:100,height:28,pad:2};function vi(t){let a=Math.round(t*100)/100;return`${a>0?"+":""}${a}`}function gi({el:t,value:a,recordCtx:i,mode:n}){let{t:l}=z(),r=le(),{write:c}=se(),o=t,s=o.view?.value,d=o.view?.date,m=!!o.view?.delta,u=Q(o,s),x=Q(o,d),h=de(n,a,b=>c(b)),w=Array.isArray(h.value)?h.value:[],$=h.mode!=="view";if(!s||!d||!u||!x)return(0,e.jsx)(ne,{group:{...o,kind:void 0},value:a,onChange:b=>{c(b)},recordCtx:i,mode:n});let k=fi(w,s,d),j=pi(k,De),v=k[k.length-1],S=m?bi(k):void 0,A=(0,e.jsx)(ne,{group:{...o,kind:void 0},value:h.value,onChange:b=>h.onChange(b),recordCtx:i,mode:"edit"}),M=b=>(0,e.jsx)(J,{el:u,field:u.type,value:b.row?.[s]??b.value,mode:"view",bare:!0,recordCtx:i}),L=k.length?k.reduce((b,_)=>_.value<b.value?_:b):void 0,y=k.length?k.reduce((b,_)=>_.value>b.value?_:b):void 0,N=v===void 0?(0,e.jsx)("p",{className:"py-1 text-sm text-muted-foreground","data-testid":"chart-empty",children:l("form.noSeries","No readings yet")}):(0,e.jsxs)("div",{className:"flex flex-col gap-1.5","data-testid":"chart-body",children:[(0,e.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,e.jsx)("div",{className:`min-w-0 text-2xl font-semibold text-foreground ${ee(u.type)}`.trim(),"data-testid":"chart-last",children:M(v)}),S!==void 0&&(0,e.jsx)("span",{className:`text-sm font-medium tabular-nums ${S>0?"text-success":S<0?"text-destructive":"text-muted-foreground"}`,"data-testid":"chart-delta",children:vi(S)})]}),(0,e.jsx)("svg",{className:"h-12 w-full text-primary",viewBox:`0 0 ${De.width} ${De.height}`,preserveAspectRatio:"none","aria-hidden":"true","data-testid":"chart-spark",children:(0,e.jsx)("path",{d:j.path,"data-testid":"chart-path",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})}),(0,e.jsxs)("div",{className:`flex items-baseline gap-1 text-[10px] text-muted-foreground ${ee(u.type)}`.trim(),"data-testid":"chart-range",children:[L&&M(L),(0,e.jsx)("span",{"aria-hidden":"true",children:"\u2013"}),y&&M(y)]})]}),p=$?A:N;return n==="view"?(0,e.jsx)(Y,{label:o.label?l(o.label):void 0,count:w.length,labelAfter:h.actions,rail:!1,className:ae(r),testId:"chart",children:(0,e.jsx)(ie,{depth:r+1,children:p})}):p}C({kinds:["chart"],layout:"block",Page:gi,editor:"own"});var re=864e5,je=4,kt=260;function wi(t,a,i){return!Number.isFinite(t)||t<=0?0:i===a?Math.ceil(je/2):Math.min(je,Math.max(1,Math.ceil(t/i*je)))}function ji(t){return Math.floor(t/re)*re}function yi(t){return new Date(t).toISOString().slice(0,10)}function $t(t,a){return(new Date(t).getUTCDay()-a+7)%7}function ye(t,a){return t-$t(t,a)*re}function Ct(t,a){return t+(6-$t(t,a))*re}function Ni(t,a){if(t.size===0)return;let i=[...t.keys()].sort((d,m)=>d-m),n=i[0],l=i[i.length-1];if(Math.round((Ct(l,a)-ye(n,a)+re)/(re*7))>kt){let d=ki(i,t,a);n=d.from,l=d.to}let r=0;for(let[d,m]of t)(d<n||d>l)&&(r+=m);let c=ye(n,a),o=Ct(l,a),s=[];for(let d=c;d<=o;d+=re)s.push(d);return{days:s,from:n,to:l,clipped:r}}function ki(t,a,i){let n=(kt*7-1)*re,l=0,r=0,c=0,o=-1,s=ye(t[0],i);for(let m of t){let u=ye(m,i),x=u+n;for(;r<t.length&&t[r]<=x;)c+=a.get(t[r++]);for(;l<t.length&&t[l]<u;)c-=a.get(t[l++]);c>=o&&(o=c,s=u)}let d=t.filter(m=>m>=s&&m<=s+n);return{from:d[0],to:d[d.length-1]}}function $i({el:t,value:a,recordCtx:i,mode:n}){let{t:l,i18n:r}=z(),c=le(),{write:o}=se(),s=_e(),d=t,m=d.view?.date,u=Q(d,m),x=de(n,a,P=>o(P)),h=Array.isArray(x.value)?x.value:[],w=x.mode!=="view";if(!m||!u)return(0,e.jsx)(ne,{group:{...d,kind:void 0},value:a,onChange:P=>{o(P)},recordCtx:i,mode:n});let $=new Map,k=0;for(let P of h){let D=yt(P[m]);if(D===void 0){k+=1;continue}let B=ji(D);$.set(B,($.get(B)??0)+1)}let j=Ni($,s),v=j?[...$.entries()].filter(([P])=>P>=j.from&&P<=j.to).map(([,P])=>P):[],S=v.length?Math.max(...v):0,A=v.length?Math.min(...v):0,M=k+(j?.clipped??0),L=(0,e.jsx)(ne,{group:{...d,kind:void 0},value:x.value,onChange:P=>x.onChange(P),recordCtx:i,mode:"edit"}),y=Lt(r.language,"short"),N=j?Array.from({length:j.days.length/7},(P,D)=>{let B=j.days[D*7],R=D>0?j.days[(D-1)*7]:void 0,K=new Date(B).getUTCMonth();return(0,e.jsx)("div",{className:"h-3 whitespace-nowrap",children:R===void 0||new Date(R).getUTCMonth()!==K?y[K]:""},D)}):[],p=(j?.days??[]).map(P=>{if(P<j.from||P>j.to)return(0,e.jsx)("div",{className:"h-4 w-4","data-testid":"heatmap-pad"},P);let D=$.get(P)??0,B=wi(D,A,S),R=yi(P);return(0,e.jsxs)("div",{"data-testid":`heatmap-day-${R}`,"data-count":D,"data-level":B,title:`${R} \xB7 ${D}`,className:"relative h-4 w-4 overflow-hidden rounded-[3px] border border-border",children:[B>0&&(0,e.jsx)("span",{"aria-hidden":!0,className:"absolute inset-x-0 bottom-0 bg-accent",style:{height:`${Math.round(B/je*100)}%`}}),D>0&&(0,e.jsx)("span",{className:"sr-only",children:`${R} \xB7 ${D}`})]},P)}),b=j===void 0?(0,e.jsx)("p",{className:"py-1 text-sm text-muted-foreground","data-testid":"heatmap-empty",children:l("form.noDates","No dated entries yet")}):(0,e.jsx)("div",{className:"max-w-full overflow-x-auto","data-testid":"heatmap-body",children:(0,e.jsxs)("div",{className:"inline-flex flex-col gap-1",children:[(0,e.jsxs)("div",{className:"flex gap-1",children:[(0,e.jsx)("div",{className:"w-5 shrink-0"}),(0,e.jsx)("div",{className:"grid grid-flow-col auto-cols-[1rem] gap-1 text-[9px] leading-3 text-muted-foreground",children:N})]}),(0,e.jsxs)("div",{className:"flex gap-1",children:[(0,e.jsx)("div",{className:"grid w-5 shrink-0 grid-rows-7 gap-1 text-[9px] leading-4 text-muted-foreground","data-testid":"heatmap-weekdays",children:Ve(r.language,"short",s).map((P,D)=>(0,e.jsx)("div",{children:D%2==0?P:""},D))}),(0,e.jsx)("div",{className:"grid grid-rows-7 grid-flow-col auto-cols-[1rem] gap-1","data-testid":"heatmap-grid",children:p})]})]})}),_=w?L:(0,e.jsxs)("div",{className:"flex flex-col gap-1.5",children:[b,M>0&&(0,e.jsx)("p",{className:"text-[11px] text-muted-foreground","data-testid":"heatmap-offgrid",children:l("form.offGrid",{n:M,defaultValue:"{{n}} not on the grid"})})]});return n==="view"?(0,e.jsx)(Y,{label:d.label?l(d.label):void 0,count:h.length,labelAfter:x.actions,rail:!1,className:ae(c),testId:"heatmap",children:(0,e.jsx)(ie,{depth:c+1,children:_})}):_}C({kinds:["heatmap"],layout:"block",Page:$i,editor:"own"});function Ci({el:t}){let{t:a}=z(),i=t,n=i.view?.source,l=Array.isArray(n)?n:n===void 0?[]:[n],r=i.view?.max??10,c=(0,e.jsx)("div",{className:"flex flex-col gap-3","data-testid":"media-rating",children:V(T(),l).filter(o=>!o.handle.hidden).map(o=>(0,e.jsxs)("div",{className:"flex items-center gap-4",children:[(0,e.jsx)("div",{className:"w-14 shrink-0 text-[11px] font-medium tracking-wider text-muted-foreground uppercase",children:o.name.split("_")[0]}),(0,e.jsx)(f,{name:o.name,ownLabel:!0,render:(s,d)=>{let m=s.value,u=fe(m),x=u?Number(m):0,h=u?Math.max(0,Math.min(1,x/r)):0;return(0,e.jsxs)("div",{className:"flex flex-1 items-center gap-4 min-w-0",children:[(0,e.jsx)("span",{className:`w-8 shrink-0 text-sm font-bold tracking-tight ${u?Z(s):"text-muted-foreground"}`,children:u?d:"\u2014"}),(0,e.jsx)("span",{role:"progressbar","aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":u?x:0,className:"w-40 shrink-0 h-1.5 overflow-hidden rounded-[2px] border border-border/70 bg-border/30 block",children:u&&(0,e.jsx)("span",{className:"block h-full transition-[width]",style:{width:`${h*100}%`,backgroundColor:"#2f6f4f"}})})]})}})]},o.name))});return(0,e.jsx)(q,{label:i.label,icon:i.icon,ownSurface:!0,children:c})}C({kinds:["mediaRating"],layout:"block",editor:"own",Page:Ci});
|