@alfadocs/ui-kit-debug 0.98.1 → 0.99.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.
Files changed (47) hide show
  1. package/README.md +11 -4
  2. package/dist/_chunks/{address-fields-7k59FnJ6.js → address-fields-pHsfkXGk.js} +2 -2
  3. package/dist/_chunks/{address-fields-7k59FnJ6.js.map → address-fields-pHsfkXGk.js.map} +1 -1
  4. package/dist/_chunks/{booking-Bhbvef95.js → booking-DSOK-bnR.js} +2 -2
  5. package/dist/_chunks/{booking-Bhbvef95.js.map → booking-DSOK-bnR.js.map} +1 -1
  6. package/dist/_chunks/{country-select-BN9nedAp.js → country-select-UEF9BEeQ.js} +2 -2
  7. package/dist/_chunks/{country-select-BN9nedAp.js.map → country-select-UEF9BEeQ.js.map} +1 -1
  8. package/dist/_chunks/flag-DVBE6DnB.js +576 -0
  9. package/dist/_chunks/flag-DVBE6DnB.js.map +1 -0
  10. package/dist/_chunks/flag-view-udarpAot.js +131 -0
  11. package/dist/_chunks/flag-view-udarpAot.js.map +1 -0
  12. package/dist/_chunks/{header-settings-CLwFqMHI.js → header-settings--pjYOe6g.js} +2 -2
  13. package/dist/_chunks/{header-settings-CLwFqMHI.js.map → header-settings--pjYOe6g.js.map} +1 -1
  14. package/dist/_chunks/{locale-picker-EyvPrwDc.js → locale-picker-BfBUdT1m.js} +310 -239
  15. package/dist/_chunks/locale-picker-BfBUdT1m.js.map +1 -0
  16. package/dist/_chunks/{marketplace-app-shell-Bv1ZO4XO.js → marketplace-app-shell-pCHBp8bo.js} +2 -2
  17. package/dist/_chunks/{marketplace-app-shell-Bv1ZO4XO.js.map → marketplace-app-shell-pCHBp8bo.js.map} +1 -1
  18. package/dist/_chunks/{patient-details-DrhlTrLf.js → patient-details-UmNcxL0c.js} +3 -3
  19. package/dist/_chunks/{patient-details-DrhlTrLf.js.map → patient-details-UmNcxL0c.js.map} +1 -1
  20. package/dist/_chunks/{phone-input-D00ZBAm-.js → phone-input-BsZIoE36.js} +2 -2
  21. package/dist/_chunks/{phone-input-D00ZBAm-.js.map → phone-input-BsZIoE36.js.map} +1 -1
  22. package/dist/_chunks/use-theme-CAuo6EYT.js.map +1 -1
  23. package/dist/_chunks/workflow-map-SIfAhmWz.js.map +1 -1
  24. package/dist/agent-catalog.json +1 -1
  25. package/dist/components/address-fields/index.js +1 -1
  26. package/dist/components/booking/index.js +1 -1
  27. package/dist/components/country-select/index.js +1 -1
  28. package/dist/components/flag/flag-core.d.ts +12 -0
  29. package/dist/components/flag/flag-core.d.ts.map +1 -0
  30. package/dist/components/flag/flag-view.d.ts +38 -0
  31. package/dist/components/flag/flag-view.d.ts.map +1 -0
  32. package/dist/components/flag/flag.d.ts +3 -10
  33. package/dist/components/flag/flag.d.ts.map +1 -1
  34. package/dist/components/flag/index.js +1 -1
  35. package/dist/components/header-settings/index.js +1 -1
  36. package/dist/components/locale-picker/index.js +1 -1
  37. package/dist/components/patient-details/index.js +1 -1
  38. package/dist/components/phone-input/index.js +1 -1
  39. package/dist/components/workflow/workflow-types.d.ts +4 -5
  40. package/dist/components/workflow/workflow-types.d.ts.map +1 -1
  41. package/dist/hooks/use-theme.d.ts.map +1 -1
  42. package/dist/index.js +7 -7
  43. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  44. package/package.json +1 -1
  45. package/dist/_chunks/flag-Cnmivlrl.js +0 -641
  46. package/dist/_chunks/flag-Cnmivlrl.js.map +0 -1
  47. package/dist/_chunks/locale-picker-EyvPrwDc.js.map +0 -1
@@ -0,0 +1,131 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { forwardRef as s } from "react";
3
+ import { c as g } from "./index-D2ZczOXr.js";
4
+ const w = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2090%2060'%3e%3cpath%20fill='%23ED2024'%20d='M0%200h90v60H0z'/%3e%3cpath%20fill='%23212121'%20d='M32.5%2012.2v16l7.1%202.5-5%204.9%202.4%203%205.3-5.5%201.2%202.3-3%204.9%203.6%205.6-1.8%202.6%202.8%203.6%202.7-3.7-1.5-2.6%203-5.8-2.7-4.6%201.2-2.3%205.2%205.5%202.5-2.9-5.2-5.1%207.2-2.6V12.2l-5.2%201.9-.1%203.8-3.3.3v-2.6l1.7-2.3%205.6-2.2-2.3-.4%201.4-1.2.9.4-.8-1.4L54%209l-1-1.1L47.5%209l1.4%201.1-3.8%204.9-3.8-4.8%201.3-1.1-5-1.2L36.2%209l-1.5-.4-.8%201.4.9-.6%201.6%201.1-2.3.5%205.5%202%201.6%202.3v2.9l-3.3-.3v-3.6z'/%3e%3cg%20fill='%23212121'%3e%3cpath%20d='M26.2%2025h6.4v2.5h-6.4zM26.2%2020.9h6.4v2.7h-6.4zM26.2%2016.7h6.4v2.6h-6.4zM26.2%2012.7h6.4v2.5h-6.4z'/%3e%3c/g%3e%3cg%20fill='%23212121'%3e%3cpath%20d='M57.4%2025h6.4v2.5h-6.4zM57.4%2020.9h6.4v2.7h-6.4zM57.4%2016.7h6.4v2.6h-6.4zM57.4%2012.7h6.4v2.5h-6.4z'/%3e%3c/g%3e%3cpath%20fill='%23212121'%20d='M53.4%2036.1h6.4V38h-6.4zM30.2%2036.1h6.4V38h-6.4z'/%3e%3c/svg%3e", q = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23D80027'%20d='M0%200h513v342H0z'/%3e%3cg%20fill='%23FFDA44'%3e%3cpath%20d='m226.8%20239.2-9.7-15.6-17.9%204.4%2011.9-14.1-9.7-15.6%2017.1%206.9%2011.8-14.1-1.3%2018.4%2017.1%206.9-17.9%204.4zM290.6%2082l-10.1%2015.4%2011.6%2014.3-17.7-4.8-10.1%2015.5-1-18.4-17.7-4.8%2017.2-6.6-1-18.4%2011.6%2014.3zM236.2%2025.4l-2%2018.3%2016.8%207.6-18%203.8-2%2018.3-9.2-16-17.9%203.8%2012.3-13.7-9.2-15.9%2016.8%207.5zM292.8%20161.8l-14.9%2010.9%205.8%2017.5-14.9-10.8-14.9%2011%205.6-17.6-14.9-10.7%2018.4-.1%205.6-17.6%205.8%2017.5zM115%2046.3l17.3%2053.5h56.2l-45.4%2032.9%2017.3%2053.5-45.4-33-45.5%2033%2017.4-53.5-45.5-32.9h56.3z'/%3e%3c/g%3e%3c/svg%3e", _ = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23D80027'%20d='M0%200h513v342H0z'/%3e%3cpath%20d='M0%200h513v114H0z'/%3e%3cpath%20fill='%23FFDA44'%20d='M0%20228h513v114H0z'/%3e%3c/svg%3e", p = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2022.5%2015'%3e%3cpath%20fill='%23FFF'%20d='M0%200h22.5v15H0V0z'/%3e%3cpath%20fill='%23D03433'%20d='M0%200h22.5v4H0V0zm0%2011h22.5v4H0v-4z'/%3e%3cpath%20fill='%23FBCA46'%20d='M0%204h22.5v7H0V4z'/%3e%3cpath%20fill='%23FFF'%20d='M7.8%207h1v.5h-1V7z'/%3e%3cpath%20fill='%23A41517'%20d='M7.2%208.5c0%20.3.3.5.6.5s.6-.2.6-.5L8.5%207H7.1l.1%201.5zM6.6%207c0-.3.2-.5.4-.5h1.5c.3%200%20.5.2.5.4V7l-.1%201.5c-.1.6-.5%201-1.1%201-.6%200-1-.4-1.1-1L6.6%207z'/%3e%3cpath%20fill='%23A41517'%20d='M6.8%207.5h2V8h-.5l-.5%201-.5-1h-.5v-.5zM5.3%206h1v3.5h-1V6zm4%200h1v3.5h-1V6zm-2.5-.5c0-.3.2-.5.5-.5h1c.3%200%20.5.2.5.5v.2c0%20.2-.1.3-.3.3H7c-.1%200-.2-.1-.2-.2v-.3z'/%3e%3c/svg%3e", f = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%200h513v342H0z'/%3e%3cpath%20fill='%2300318A'%20d='M0%200h171v342H0z'/%3e%3cpath%20fill='%23D80027'%20d='M342%200h171v342H342z'/%3e%3c/svg%3e", n = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cg%20fill='%23FFF'%3e%3cpath%20d='M0%200h513v341.3H0V0z'/%3e%3cpath%20d='M311.7%20230%20513%20341.3v-31.5L369.3%20230h-57.6zM200.3%20111.3%200%200v31.5l143.7%2079.8h56.6z'/%3e%3c/g%3e%3cg%20fill='%23012169'%3e%3cpath%20d='M393.8%20230%20513%20295.7V230H393.8zm-82.1%200L513%20341.3v-31.5L369.3%20230h-57.6zm146.9%20111.3-147-81.7v81.7h147zM90.3%20230%200%20280.2V230h90.3zm110%2014.2v97.2H25.5l174.8-97.2zM118.2%20111.3%200%2045.6v65.7h118.2zm82.1%200L0%200v31.5l143.7%2079.8h56.6zM53.4%200l147%2081.7V0h-147zM421.7%20111.3%20513%2061.1v50.2h-91.3zm-110-14.2V0h174.9L311.7%2097.1z'/%3e%3c/g%3e%3cg%20fill='%23c8102e'%3e%3cpath%20d='M288%200h-64v138.7H0v64h224v138.7h64V202.7h224v-64H288V0z'/%3e%3cpath%20d='M311.7%20230%20513%20341.3v-31.5L369.3%20230h-57.6zM143.7%20230%200%20309.9v31.5L200.3%20230h-56.6zM200.3%20111.3%200%200v31.5l143.7%2079.8h56.6zM368.3%20111.3%20513%2031.5V0L311.7%20111.3h56.6z'/%3e%3c/g%3e%3c/svg%3e", r = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%200h513v342H0z'/%3e%3cg%20fill='%230d5eaf'%3e%3cpath%20d='M0%200h513v38H0zM0%2076h513v38H0zM0%20152h513v38H0zM0%20228h513v38H0zM0%20304h513v38H0z'/%3e%3cpath%20d='M0%200h190v190H0z'/%3e%3c/g%3e%3cg%20fill='%23FFF'%3e%3cpath%20d='M0%2076h190v38H0z'/%3e%3cpath%20d='M76%200h38v190H76z'/%3e%3c/g%3e%3c/svg%3e", F = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23ff6820'%20d='M0%200h513v114H0V0z'/%3e%3cpath%20fill='%23FFF'%20d='M0%20114h513v114H0V114z'/%3e%3cpath%20fill='%23046a38'%20d='M0%20228h513v114H0V228z'/%3e%3cpath%20fill='none'%20stroke='%2307038d'%20stroke-width='4'%20d='M256.5%20136.8c18.9%200%2034.2%2015.3%2034.2%2034.2s-15.3%2034.2-34.2%2034.2-34.2-15.3-34.2-34.2%2015.3-34.2%2034.2-34.2z'/%3e%3cg%20stroke='%2307038d'%20stroke-width='2'%3e%3cpath%20d='m265.3%20138.2-17.6%2065.7m17.6-65.7-17.6%2065.7M273.5%20141.6l-34%2058.9M280.5%20147l-48%2048M285.9%20154%20227%20188M289.3%20162.2l-65.7%2017.6M290.5%20171h-68M289.3%20179.8l-65.7-17.6M285.9%20188%20227%20154M280.5%20195l-48-48M273.5%20200.4l-34-58.9M265.3%20203.8l-17.6-65.7M256.5%20205v-68M247.7%20203.8l17.6-65.7M239.5%20200.4l34-58.9M232.5%20195l48.1-48.1M227.1%20188l58.9-34M223.7%20179.8l65.7-17.6M222.5%20171h68M223.7%20162.2l65.7%2017.6M227.1%20154l58.9%2034M232.5%20147l48.1%2048.1M239.5%20141.6l34%2058.9M247.7%20138.2l17.6%2065.7'/%3e%3c/g%3e%3c/svg%3e", x = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23F4F5F0'%20d='M342%200H0v341.3h512V0z'/%3e%3cpath%20fill='%23008C45'%20d='M0%200h171v342H0z'/%3e%3cpath%20fill='%23CD212A'%20d='M342%200h171v342H342z'/%3e%3c/svg%3e", H = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%200h512v342H0z'/%3e%3ccircle%20fill='%23D80027'%20cx='256.5'%20cy='171'%20r='96'/%3e%3c/svg%3e", V = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%20114h513v114H0z'/%3e%3cpath%20fill='%23cd1f2a'%20d='M0%200h513v114H0z'/%3e%3cpath%20fill='%231d4185'%20d='M0%20228h513v114H0z'/%3e%3c/svg%3e", B = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%200h513v342H0z'/%3e%3cpath%20fill='%23dc143c'%20d='M0%20171h513v171H0z'/%3e%3c/svg%3e", b = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='red'%20d='M0%200h513v342H0z'/%3e%3cpath%20fill='%23060'%20d='M197%200v342H0V0z'/%3e%3ccircle%20fill='%23FF0'%20cx='197.1'%20cy='171'%20r='64'/%3e%3cpath%20fill='red'%20d='M161.1%20139v40c0%2019.9%2016.1%2036%2036%2036s36-16.1%2036-36v-40h-72z'/%3e%3cpath%20fill='%23FFF'%20d='M197.1%20191c-6.6%200-12-5.4-12-12v-16h24v16c0%206.6-5.3%2012-12%2012z'/%3e%3c/svg%3e", u = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%2085.333%20512%20341.333'%3e%3cpath%20fill='%23FFDA44'%20d='M0%2085.331h512v341.326H0z'/%3e%3cpath%20fill='%230052B4'%20d='M0%2085.331h170.663v341.337H0z'/%3e%3cpath%20fill='%23D80027'%20d='M341.337%2085.331H512v341.337H341.337z'/%3e%3c/svg%3e", D = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%2085.333%20512%20341.333'%3e%3cpath%20fill='%23FFF'%20d='M0%2085.33v341.332h512V85.33z'/%3e%3cpath%20fill='%230052B4'%20d='M0%2085.333h512V426.67H0z'/%3e%3cpath%20fill='%23FFF'%20d='M0%2085.333h512v113.775H0z'/%3e%3cpath%20fill='%23D80027'%20d='M0%20312.884h512v113.775H0z'/%3e%3c/svg%3e", L = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20d='M0%200h513v342H0z'%20fill='%23fff'/%3e%3cg%20fill='%23055e1c'%3e%3cpath%20d='M0%200v342h513V0zm218%2076q1%202-2%205-3%202-1%204%203%204%200%206-2%201-5-1-6-6%200-14%206-4%208%200m-102%202%201%206q0%204-2%204-5%201-5-6l2-4zm39%201%201%202q-1%204-5%204-5%200-6-4c0-4%207-6%2010-2m47%202q3%204%202%209c-1%202-22%2019-24%2019q-3%200-4-4l6-6%206-5v-3c-5-10%207-18%2014-10m35-3q3%201%200%207-2%208-6%206c-3-1-3%2014%200%2019q2%204%207-1c2-3%202-5%202-15%200-12%200-13%202-13q5-2%205%2013%201%2011%203%2013%203%206%206%203%203-2-1-12-3-12%201-16h9q2-2%209%201l6%202%201-2q4-4%206-1l3%2017c3%2016%203%2016%207%2024l15%2030q1%206-4%205l-8-14-6-12%201%2020c1%2021%201%2023-4%2023q-4%202-4-15l-1-27-1-16-9-13c-8-12-8-13-11-13q-6-1-2%206l2%207q0%204%203%202%206-2%206%203-1%204-8%205l-5%202-5%202q-6%200-10-3-2-3-5%201-5%205-12%202-5-1-7-10l-1-3-1%203q-3%207-9%208-7%200-9-11-3-10%202-10%204-1%205%207l2%206q1%200%204-7%206-17%2013-12h1c-1-1%202-10%204-11zm-97%2010%202%2016%201%209h4q5%202%206-1c2-1%202-2-1-11l-3-12%203-1%2011%205V82q4-2%206%201l3%2023%201%2020h2q5%200%205%205%201%206%203%200%203-9%208-2%201%203%202%200%203-7%204-6c5%200%206%207%201%2013q-3%203-7%203l-6%201q-5%204-10%200l-2-2v5c0%2021-16%2042-33%2042q-21-1-23-21%200-5%202-6%204-1%206%206%201%2012%2012%2013%2014%202%2024-15%206-11%201-5-12%2018-28%2011-7-5-9-17-2-6%201-7%205-3%206%206%201%2012%2010%2012%207%200%2013-8%205-8-1-7-11-1-8-12%208-11%2017-5l3%202-1-12-4-22q-3%201%200%207c2%206%202%206%200%2010l-5%205q-3%203-7%201h-5l-1%2016c-1%2019-1%2020-4%2021-4%201-4-2-4-19l1-15-3%201q-3%201-6-2c-2-2-2-2-3-14l-1-12q-2-1-2%2010l-1%2013q-3%206-8%204c-3-2-4-4-7-15q-4-15%202-14%204-1%205%208l1%205%201-6q0-13%209-12l6%202c2%203%202%204%202%2014l1%2011%202-1%201-8-2-16q-3-12%202-11%203-1%205%207m163-3q4%2010%201%2013-4%203-7-7-3-11%202-10zm12-3%203%207q2%206%201%208v16l2%2027c2%2022%202%2021%206%2021h3l-1-5-2-23-3-33c-2-16-1-19%203-19%203%200%208%2014%206%2016v24c5%2047%205%2048%200%2047q-3-2-1%204l2%206q2%201%205-9%207-18%2010-16%203%200%207%205%204%207%207%207%204-1%201-33l-1-21-10-12-9-15q0-5%208-1%205%202%206%206l2%206q3%204%201-4%200-10%203-10c4%200%209%2010%207%2013l-1%208q1%208%204%2012l3%203-2-15c-2-16-2-19%201-20q3%200%205%204l4%205h2q6-4%208%209%200%208-4%208-3%200-4-6%201-8-3-5c-1%202-1%203%201%2019l2%2017%205%207c6%2010%2012%2021%2011%2022q-2%203-5%202l-5-8-5-8%201%208c0%2011%200%2011-3%2011q-5%203-5-7l-1-16c0-8-1-10-4-15l-4-5v19c1%2021%200%2025-5%2028q-6%205-13-3l-4-5-4%209q-6%2014-11%2015-9-1-11-16-1-8-5-1c-3%205-12%2013-19%2017q-8%204-8-2-1-2%206-6c9-5%2017-14%2017-18l-5-78q2-4%205-1m89%205%204%206q1%201-2%203l-2%202%204%2024q4%2025%204%2035c0%2010%200%2011-3%2017q-7%2013-19%2014-8%200-7-2-2-4%207-6%2015-2%2014-23a708%20708%200%200%200-8-75c3-2%203-1%208%205m-211%2019%201%204q0%203%202%202%205%200%205%204c0%204-9%206-13%202-4-5%200-17%205-12m108%201h2l4-1q4%202%200%207-7%206-11-1v-5q3-2%205%200m55%202q3%204-1%206-2%200-1%205t-1%206q-1%202-10-6-8-7-6-9%203-4%207%200l2%202%202-3q5-3%208-1m-131%2013c3%202%206%2014%206%2017q-1%206%206%201l10-4q5-1%207-4%204-9%2010-12%2010%200%2011%209%200%207-16%2013l-2%201%2013%201c16%200%2016%200%2013%209q-2%207-4%207l-10%202q-19%203-17%209%201%202%204%203%206%203%203%207l-7%201q-13-2-21-10l-3-3-2%203q-7%2010-19%2013-10%202-15-10l-5%202q-18%2010-19%208l-2-3c0-2%201-2%2015-11l9-6q1-3%205-4c3%201%2010-5%2012-9q3-6-1-15l-2-8q1-5%206-6c3%200%208%205%208%207q-1%204-4%203v1l1%2010c1%209-1%2013-10%2021l-7%206%202%203q5%209%2015-2%2010-8%2010-23%200-10-6-24v-4q3-4%206%201m17%202q2%203%204%200%2011-3%205%205c-4%205-12%205-15-1v-4zm118%205%201%202q1%202-7%208c-8%206-9%207-11%205q-5-4%206-10c8-6%208-6%2011-5m-229%203q3%202-10%2010-12%208-13%203-5-3%209-10%2013-8%2014-3m229%2010c3%202%204%209%203%2011q-3%203-6%201c-2-2-3-11-1-13q1-2%204%201m-172%207q3%203%202%207%201%205-3%205-3%201-3-3l-2-4q-3-3-1-6%204-2%207%201m-79%209%201%208q0%209%203%206%204-1%204%203-1%207-7%207-7-1-7-14-1-9%202-10zm168%2012q0%204%203%202t4%203q-2%206-8%208l-4-2q-3-3-4-2-4%200-5-4l5-6q7-6%207-4%203%201%202%205m102%203q4%204%201%209-7%207-7-4t6-5m-42%2073c0%202%201%202%2012%202q24-1%2022%2011%200%207-6%2010c-4%201-31%202-34%200q-2-1-2-6v-4h-82l-74-1c-16%200-28-10-28-10h92c91%200%2092-1%2092-2q-1-3%204-5c5-2%204%204%204%205'/%3e%3cpath%20d='m195%2086%201%201%201-1-1-1q-2%200-1%201m84%205q-2%202%201%205l3%203-1-4-1-5zm-125%2045q-3%203-1%204%205-1%206-4zm110-7q-4%205%200%203%206-4%202-4zm-31%2030q0%206%204%208l5%204q3%202%202-3%200-3%204-7%204-3%202-4l-13-3h-5zm104%20101q-1%203%2013%202c11%200%2013%200%2014-2l-13-1z'/%3e%3c/g%3e%3c/svg%3e", A = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%2085.333%20512%20341.333'%3e%3cpath%20fill='%230052B4'%20d='M0%2085.333h512V426.67H0z'/%3e%3cpath%20fill='%23FFDA44'%20d='M192%2085.33h-64v138.666H0v64h128v138.666h64V287.996h320v-64H192z'/%3e%3c/svg%3e", k = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23E30A17'%20d='M0%200h513v342H0z'/%3e%3cpath%20fill='%23FFF'%20d='M259.7%20118.6c-13.1-9.5-29-14.6-45.3-14.5-40.8%200-73.8%2030.8-73.8%2068.9s33.1%2068.9%2073.8%2068.9c17.1%200%2032.9-5.4%2045.3-14.5-30%2038.6-85.7%2045.6-124.3%2015.5s-45.6-85.7-15.5-124.3%2085.7-45.6%20124.3-15.5c5.8%204.5%2011%209.8%2015.5%2015.5zm39.9%2065.8-18.1%2021.9%201.2-28.4-26.4-10.4%2027.3-7.6%201.8-28.3%2015.6%2023.7%2027.5-7.1-17.5%2022%2015.3%2023.9-26.7-9.7z'/%3e%3c/svg%3e", y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='15%200%2060%2060'%3e%3cpath%20fill='%23ED2024'%20d='M0%200h90v60H0z'/%3e%3cpath%20fill='%23212121'%20d='M32.5%2012.2v16l7.1%202.5-5%204.9%202.4%203%205.3-5.5%201.2%202.3-3%204.9%203.6%205.6-1.8%202.6%202.8%203.6%202.7-3.7-1.5-2.6%203-5.8-2.7-4.6%201.2-2.3%205.2%205.5%202.5-2.9-5.2-5.1%207.2-2.6V12.2l-5.2%201.9-.1%203.8-3.3.3v-2.6l1.7-2.3%205.6-2.2-2.3-.4%201.4-1.2.9.4-.8-1.4L54%209l-1-1.1L47.5%209l1.4%201.1-3.8%204.9-3.8-4.8%201.3-1.1-5-1.2L36.2%209l-1.5-.4-.8%201.4.9-.6%201.6%201.1-2.3.5%205.5%202%201.6%202.3v2.9l-3.3-.3v-3.6z'/%3e%3cg%20fill='%23212121'%3e%3cpath%20d='M26.2%2025h6.4v2.5h-6.4zM26.2%2020.9h6.4v2.7h-6.4zM26.2%2016.7h6.4v2.6h-6.4zM26.2%2012.7h6.4v2.5h-6.4z'/%3e%3c/g%3e%3cg%20fill='%23212121'%3e%3cpath%20d='M57.4%2025h6.4v2.5h-6.4zM57.4%2020.9h6.4v2.7h-6.4zM57.4%2016.7h6.4v2.6h-6.4zM57.4%2012.7h6.4v2.5h-6.4z'/%3e%3c/g%3e%3cpath%20fill='%23212121'%20d='M53.4%2036.1h6.4V38h-6.4zM30.2%2036.1h6.4V38h-6.4z'/%3e%3c/svg%3e", C = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='75.24%200%20342%20342'%3e%3cpath%20fill='%23D80027'%20d='M0%200h513v342H0z'/%3e%3cg%20fill='%23FFDA44'%3e%3cpath%20d='m226.8%20239.2-9.7-15.6-17.9%204.4%2011.9-14.1-9.7-15.6%2017.1%206.9%2011.8-14.1-1.3%2018.4%2017.1%206.9-17.9%204.4zM290.6%2082l-10.1%2015.4%2011.6%2014.3-17.7-4.8-10.1%2015.5-1-18.4-17.7-4.8%2017.2-6.6-1-18.4%2011.6%2014.3zM236.2%2025.4l-2%2018.3%2016.8%207.6-18%203.8-2%2018.3-9.2-16-17.9%203.8%2012.3-13.7-9.2-15.9%2016.8%207.5zM292.8%20161.8l-14.9%2010.9%205.8%2017.5-14.9-10.8-14.9%2011%205.6-17.6-14.9-10.7%2018.4-.1%205.6-17.6%205.8%2017.5zM115%2046.3l17.3%2053.5h56.2l-45.4%2032.9%2017.3%2053.5-45.4-33-45.5%2033%2017.4-53.5-45.5-32.9h56.3z'/%3e%3c/g%3e%3c/svg%3e", j = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cpath%20fill='%23D80027'%20d='M0%200h513v342H0z'/%3e%3cpath%20d='M0%200h513v114H0z'/%3e%3cpath%20fill='%23FFDA44'%20d='M0%20228h513v114H0z'/%3e%3c/svg%3e", E = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='3.75%200%2015%2015'%3e%3cpath%20fill='%23FFF'%20d='M0%200h22.5v15H0V0z'/%3e%3cpath%20fill='%23D03433'%20d='M0%200h22.5v4H0V0zm0%2011h22.5v4H0v-4z'/%3e%3cpath%20fill='%23FBCA46'%20d='M0%204h22.5v7H0V4z'/%3e%3cpath%20fill='%23FFF'%20d='M7.8%207h1v.5h-1V7z'/%3e%3cpath%20fill='%23A41517'%20d='M7.2%208.5c0%20.3.3.5.6.5s.6-.2.6-.5L8.5%207H7.1l.1%201.5zM6.6%207c0-.3.2-.5.4-.5h1.5c.3%200%20.5.2.5.4V7l-.1%201.5c-.1.6-.5%201-1.1%201-.6%200-1-.4-1.1-1L6.6%207z'/%3e%3cpath%20fill='%23A41517'%20d='M6.8%207.5h2V8h-.5l-.5%201-.5-1h-.5v-.5zM5.3%206h1v3.5h-1V6zm4%200h1v3.5h-1V6zm-2.5-.5c0-.3.2-.5.5-.5h1c.3%200%20.5.2.5.5v.2c0%20.2-.1.3-.3.3H7c-.1%200-.2-.1-.2-.2v-.3z'/%3e%3c/svg%3e", G = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%200h513v342H0z'/%3e%3cpath%20fill='%2300318A'%20d='M0%200h171v342H0z'/%3e%3cpath%20fill='%23D80027'%20d='M342%200h171v342H342z'/%3e%3c/svg%3e", Z = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cg%20fill='%23FFF'%3e%3cpath%20d='M0%200h513v341.3H0V0z'/%3e%3cpath%20d='M311.7%20230%20513%20341.3v-31.5L369.3%20230h-57.6zM200.3%20111.3%200%200v31.5l143.7%2079.8h56.6z'/%3e%3c/g%3e%3cg%20fill='%23012169'%3e%3cpath%20d='M393.8%20230%20513%20295.7V230H393.8zm-82.1%200L513%20341.3v-31.5L369.3%20230h-57.6zm146.9%20111.3-147-81.7v81.7h147zM90.3%20230%200%20280.2V230h90.3zm110%2014.2v97.2H25.5l174.8-97.2zM118.2%20111.3%200%2045.6v65.7h118.2zm82.1%200L0%200v31.5l143.7%2079.8h56.6zM53.4%200l147%2081.7V0h-147zM421.7%20111.3%20513%2061.1v50.2h-91.3zm-110-14.2V0h174.9L311.7%2097.1z'/%3e%3c/g%3e%3cg%20fill='%23c8102e'%3e%3cpath%20d='M288%200h-64v138.7H0v64h224v138.7h64V202.7h224v-64H288V0z'/%3e%3cpath%20d='M311.7%20230%20513%20341.3v-31.5L369.3%20230h-57.6zM143.7%20230%200%20309.9v31.5L200.3%20230h-56.6zM200.3%20111.3%200%200v31.5l143.7%2079.8h56.6zM368.3%20111.3%20513%2031.5V0L311.7%20111.3h56.6z'/%3e%3c/g%3e%3c/svg%3e", I = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='3.42%200%20342%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%200h513v342H0z'/%3e%3cg%20fill='%230d5eaf'%3e%3cpath%20d='M0%200h513v38H0zM0%2076h513v38H0zM0%20152h513v38H0zM0%20228h513v38H0zM0%20304h513v38H0z'/%3e%3cpath%20d='M0%200h190v190H0z'/%3e%3c/g%3e%3cg%20fill='%23FFF'%3e%3cpath%20d='M0%2076h190v38H0z'/%3e%3cpath%20d='M76%200h38v190H76z'/%3e%3c/g%3e%3c/svg%3e", J = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cpath%20fill='%23ff6820'%20d='M0%200h513v114H0V0z'/%3e%3cpath%20fill='%23FFF'%20d='M0%20114h513v114H0V114z'/%3e%3cpath%20fill='%23046a38'%20d='M0%20228h513v114H0V228z'/%3e%3cpath%20fill='none'%20stroke='%2307038d'%20stroke-width='4'%20d='M256.5%20136.8c18.9%200%2034.2%2015.3%2034.2%2034.2s-15.3%2034.2-34.2%2034.2-34.2-15.3-34.2-34.2%2015.3-34.2%2034.2-34.2z'/%3e%3cg%20stroke='%2307038d'%20stroke-width='2'%3e%3cpath%20d='m265.3%20138.2-17.6%2065.7m17.6-65.7-17.6%2065.7M273.5%20141.6l-34%2058.9M280.5%20147l-48%2048M285.9%20154%20227%20188M289.3%20162.2l-65.7%2017.6M290.5%20171h-68M289.3%20179.8l-65.7-17.6M285.9%20188%20227%20154M280.5%20195l-48-48M273.5%20200.4l-34-58.9M265.3%20203.8l-17.6-65.7M256.5%20205v-68M247.7%20203.8l17.6-65.7M239.5%20200.4l34-58.9M232.5%20195l48.1-48.1M227.1%20188l58.9-34M223.7%20179.8l65.7-17.6M222.5%20171h68M223.7%20162.2l65.7%2017.6M227.1%20154l58.9%2034M232.5%20147l48.1%2048.1M239.5%20141.6l34%2058.9M247.7%20138.2l17.6%2065.7'/%3e%3c/g%3e%3c/svg%3e", K = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cpath%20fill='%23F4F5F0'%20d='M342%200H0v341.3h512V0z'/%3e%3cpath%20fill='%23008C45'%20d='M0%200h171v342H0z'/%3e%3cpath%20fill='%23CD212A'%20d='M342%200h171v342H342z'/%3e%3c/svg%3e", O = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%200h512v342H0z'/%3e%3ccircle%20fill='%23D80027'%20cx='256.5'%20cy='171'%20r='96'/%3e%3c/svg%3e", R = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%20114h513v114H0z'/%3e%3cpath%20fill='%23cd1f2a'%20d='M0%200h513v114H0z'/%3e%3cpath%20fill='%231d4185'%20d='M0%20228h513v114H0z'/%3e%3c/svg%3e", $ = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%200h513v342H0z'/%3e%3cpath%20fill='%23dc143c'%20d='M0%20171h513v171H0z'/%3e%3c/svg%3e", N = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='30.78%200%20342%20342'%3e%3cpath%20fill='red'%20d='M0%200h513v342H0z'/%3e%3cpath%20fill='%23060'%20d='M197%200v342H0V0z'/%3e%3ccircle%20fill='%23FF0'%20cx='197.1'%20cy='171'%20r='64'/%3e%3cpath%20fill='red'%20d='M161.1%20139v40c0%2019.9%2016.1%2036%2036%2036s36-16.1%2036-36v-40h-72z'/%3e%3cpath%20fill='%23FFF'%20d='M197.1%20191c-6.6%200-12-5.4-12-12v-16h24v16c0%206.6-5.3%2012-12%2012z'/%3e%3c/svg%3e", P = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.333%2085.333%20341.333%20341.333'%3e%3cpath%20fill='%23FFDA44'%20d='M0%2085.331h512v341.326H0z'/%3e%3cpath%20fill='%230052B4'%20d='M0%2085.331h170.663v341.337H0z'/%3e%3cpath%20fill='%23D80027'%20d='M341.337%2085.331H512v341.337H341.337z'/%3e%3c/svg%3e", Q = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.333%2085.333%20341.333%20341.333'%3e%3cpath%20fill='%23FFF'%20d='M0%2085.33v341.332h512V85.33z'/%3e%3cpath%20fill='%230052B4'%20d='M0%2085.333h512V426.67H0z'/%3e%3cpath%20fill='%23FFF'%20d='M0%2085.333h512v113.775H0z'/%3e%3cpath%20fill='%23D80027'%20d='M0%20312.884h512v113.775H0z'/%3e%3c/svg%3e", S = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cpath%20d='M0%200h513v342H0z'%20fill='%23fff'/%3e%3cg%20fill='%23055e1c'%3e%3cpath%20d='M0%200v342h513V0zm218%2076q1%202-2%205-3%202-1%204%203%204%200%206-2%201-5-1-6-6%200-14%206-4%208%200m-102%202%201%206q0%204-2%204-5%201-5-6l2-4zm39%201%201%202q-1%204-5%204-5%200-6-4c0-4%207-6%2010-2m47%202q3%204%202%209c-1%202-22%2019-24%2019q-3%200-4-4l6-6%206-5v-3c-5-10%207-18%2014-10m35-3q3%201%200%207-2%208-6%206c-3-1-3%2014%200%2019q2%204%207-1c2-3%202-5%202-15%200-12%200-13%202-13q5-2%205%2013%201%2011%203%2013%203%206%206%203%203-2-1-12-3-12%201-16h9q2-2%209%201l6%202%201-2q4-4%206-1l3%2017c3%2016%203%2016%207%2024l15%2030q1%206-4%205l-8-14-6-12%201%2020c1%2021%201%2023-4%2023q-4%202-4-15l-1-27-1-16-9-13c-8-12-8-13-11-13q-6-1-2%206l2%207q0%204%203%202%206-2%206%203-1%204-8%205l-5%202-5%202q-6%200-10-3-2-3-5%201-5%205-12%202-5-1-7-10l-1-3-1%203q-3%207-9%208-7%200-9-11-3-10%202-10%204-1%205%207l2%206q1%200%204-7%206-17%2013-12h1c-1-1%202-10%204-11zm-97%2010%202%2016%201%209h4q5%202%206-1c2-1%202-2-1-11l-3-12%203-1%2011%205V82q4-2%206%201l3%2023%201%2020h2q5%200%205%205%201%206%203%200%203-9%208-2%201%203%202%200%203-7%204-6c5%200%206%207%201%2013q-3%203-7%203l-6%201q-5%204-10%200l-2-2v5c0%2021-16%2042-33%2042q-21-1-23-21%200-5%202-6%204-1%206%206%201%2012%2012%2013%2014%202%2024-15%206-11%201-5-12%2018-28%2011-7-5-9-17-2-6%201-7%205-3%206%206%201%2012%2010%2012%207%200%2013-8%205-8-1-7-11-1-8-12%208-11%2017-5l3%202-1-12-4-22q-3%201%200%207c2%206%202%206%200%2010l-5%205q-3%203-7%201h-5l-1%2016c-1%2019-1%2020-4%2021-4%201-4-2-4-19l1-15-3%201q-3%201-6-2c-2-2-2-2-3-14l-1-12q-2-1-2%2010l-1%2013q-3%206-8%204c-3-2-4-4-7-15q-4-15%202-14%204-1%205%208l1%205%201-6q0-13%209-12l6%202c2%203%202%204%202%2014l1%2011%202-1%201-8-2-16q-3-12%202-11%203-1%205%207m163-3q4%2010%201%2013-4%203-7-7-3-11%202-10zm12-3%203%207q2%206%201%208v16l2%2027c2%2022%202%2021%206%2021h3l-1-5-2-23-3-33c-2-16-1-19%203-19%203%200%208%2014%206%2016v24c5%2047%205%2048%200%2047q-3-2-1%204l2%206q2%201%205-9%207-18%2010-16%203%200%207%205%204%207%207%207%204-1%201-33l-1-21-10-12-9-15q0-5%208-1%205%202%206%206l2%206q3%204%201-4%200-10%203-10c4%200%209%2010%207%2013l-1%208q1%208%204%2012l3%203-2-15c-2-16-2-19%201-20q3%200%205%204l4%205h2q6-4%208%209%200%208-4%208-3%200-4-6%201-8-3-5c-1%202-1%203%201%2019l2%2017%205%207c6%2010%2012%2021%2011%2022q-2%203-5%202l-5-8-5-8%201%208c0%2011%200%2011-3%2011q-5%203-5-7l-1-16c0-8-1-10-4-15l-4-5v19c1%2021%200%2025-5%2028q-6%205-13-3l-4-5-4%209q-6%2014-11%2015-9-1-11-16-1-8-5-1c-3%205-12%2013-19%2017q-8%204-8-2-1-2%206-6c9-5%2017-14%2017-18l-5-78q2-4%205-1m89%205%204%206q1%201-2%203l-2%202%204%2024q4%2025%204%2035c0%2010%200%2011-3%2017q-7%2013-19%2014-8%200-7-2-2-4%207-6%2015-2%2014-23a708%20708%200%200%200-8-75c3-2%203-1%208%205m-211%2019%201%204q0%203%202%202%205%200%205%204c0%204-9%206-13%202-4-5%200-17%205-12m108%201h2l4-1q4%202%200%207-7%206-11-1v-5q3-2%205%200m55%202q3%204-1%206-2%200-1%205t-1%206q-1%202-10-6-8-7-6-9%203-4%207%200l2%202%202-3q5-3%208-1m-131%2013c3%202%206%2014%206%2017q-1%206%206%201l10-4q5-1%207-4%204-9%2010-12%2010%200%2011%209%200%207-16%2013l-2%201%2013%201c16%200%2016%200%2013%209q-2%207-4%207l-10%202q-19%203-17%209%201%202%204%203%206%203%203%207l-7%201q-13-2-21-10l-3-3-2%203q-7%2010-19%2013-10%202-15-10l-5%202q-18%2010-19%208l-2-3c0-2%201-2%2015-11l9-6q1-3%205-4c3%201%2010-5%2012-9q3-6-1-15l-2-8q1-5%206-6c3%200%208%205%208%207q-1%204-4%203v1l1%2010c1%209-1%2013-10%2021l-7%206%202%203q5%209%2015-2%2010-8%2010-23%200-10-6-24v-4q3-4%206%201m17%202q2%203%204%200%2011-3%205%205c-4%205-12%205-15-1v-4zm118%205%201%202q1%202-7%208c-8%206-9%207-11%205q-5-4%206-10c8-6%208-6%2011-5m-229%203q3%202-10%2010-12%208-13%203-5-3%209-10%2013-8%2014-3m229%2010c3%202%204%209%203%2011q-3%203-6%201c-2-2-3-11-1-13q1-2%204%201m-172%207q3%203%202%207%201%205-3%205-3%201-3-3l-2-4q-3-3-1-6%204-2%207%201m-79%209%201%208q0%209%203%206%204-1%204%203-1%207-7%207-7-1-7-14-1-9%202-10zm168%2012q0%204%203%202t4%203q-2%206-8%208l-4-2q-3-3-4-2-4%200-5-4l5-6q7-6%207-4%203%201%202%205m102%203q4%204%201%209-7%207-7-4t6-5m-42%2073c0%202%201%202%2012%202q24-1%2022%2011%200%207-6%2010c-4%201-31%202-34%200q-2-1-2-6v-4h-82l-74-1c-16%200-28-10-28-10h92c91%200%2092-1%2092-2q-1-3%204-5c5-2%204%204%204%205'/%3e%3cpath%20d='m195%2086%201%201%201-1-1-1q-2%200-1%201m84%205q-2%202%201%205l3%203-1-4-1-5zm-125%2045q-3%203-1%204%205-1%206-4zm110-7q-4%205%200%203%206-4%202-4zm-31%2030q0%206%204%208l5%204q3%202%202-3%200-3%204-7%204-3%202-4l-13-3h-5zm104%20101q-1%203%2013%202c11%200%2013%200%2014-2l-13-1z'/%3e%3c/g%3e%3c/svg%3e", T = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='30.72%2085.333%20341.333%20341.333'%3e%3cpath%20fill='%230052B4'%20d='M0%2085.333h512V426.67H0z'/%3e%3cpath%20fill='%23FFDA44'%20d='M192%2085.33h-64v138.666H0v64h128v138.666h64V287.996h320v-64H192z'/%3e%3c/svg%3e", U = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='76.95%200%20342%20342'%3e%3cpath%20fill='%23E30A17'%20d='M0%200h513v342H0z'/%3e%3cpath%20fill='%23FFF'%20d='M259.7%20118.6c-13.1-9.5-29-14.6-45.3-14.5-40.8%200-73.8%2030.8-73.8%2068.9s33.1%2068.9%2073.8%2068.9c17.1%200%2032.9-5.4%2045.3-14.5-30%2038.6-85.7%2045.6-124.3%2015.5s-45.6-85.7-15.5-124.3%2085.7-45.6%20124.3-15.5c5.8%204.5%2011%209.8%2015.5%2015.5zm39.9%2065.8-18.1%2021.9%201.2-28.4-26.4-10.4%2027.3-7.6%201.8-28.3%2015.6%2023.7%2027.5-7.1-17.5%2022%2015.3%2023.9-26.7-9.7z'/%3e%3c/svg%3e";
5
+ function i(l) {
6
+ const c = {};
7
+ for (const [v, e] of Object.entries(l)) {
8
+ const h = v.match(/\/([A-Z]{2}(?:-[A-Z]+)?)\.svg$/);
9
+ h && (c[h[1]] = e);
10
+ }
11
+ return c;
12
+ }
13
+ function W(l) {
14
+ try {
15
+ return i(l());
16
+ } catch {
17
+ return {};
18
+ }
19
+ }
20
+ const d = g(
21
+ [
22
+ "ds:inline-block ds:shrink-0 ds:overflow-hidden",
23
+ "ds:bg-[color:var(--muted)]",
24
+ // Hairline edge so light flags (JP, PL, NL) stay visible on white.
25
+ "ds:ring-1 ds:ring-inset ds:ring-[color:var(--border)]"
26
+ ].join(" "),
27
+ {
28
+ variants: {
29
+ shape: {
30
+ rectangle: "ds:aspect-[3/2]",
31
+ square: "ds:aspect-square"
32
+ },
33
+ size: {
34
+ sm: "ds:h-3",
35
+ // 12px
36
+ md: "ds:h-4",
37
+ // 16px
38
+ lg: "ds:h-5",
39
+ // 20px
40
+ xl: "ds:h-6"
41
+ // 24px
42
+ },
43
+ rounded: {
44
+ none: "ds:rounded-none",
45
+ sm: "ds:rounded-[var(--radius-sm)]",
46
+ md: "ds:rounded-[var(--radius-md)]",
47
+ full: "ds:rounded-[var(--radius-full)]"
48
+ }
49
+ },
50
+ defaultVariants: {
51
+ shape: "rectangle",
52
+ size: "sm",
53
+ rounded: "sm"
54
+ }
55
+ }
56
+ );
57
+ function X(l, c) {
58
+ return [d(l), c].filter(Boolean).join(" ");
59
+ }
60
+ const m = s(
61
+ ({ code: l, src: c, label: v, className: e, ...h }, t) => c ? /* @__PURE__ */ a(
62
+ "img",
63
+ {
64
+ ref: t,
65
+ src: c,
66
+ alt: v ?? "",
67
+ "data-component": "flag",
68
+ "data-slot": "flag",
69
+ "data-country": l,
70
+ className: e,
71
+ draggable: !1,
72
+ ...h
73
+ }
74
+ ) : /* @__PURE__ */ a(
75
+ "span",
76
+ {
77
+ ref: t,
78
+ "aria-hidden": v ? void 0 : !0,
79
+ "aria-label": v,
80
+ role: v ? "img" : void 0,
81
+ "data-component": "flag",
82
+ "data-slot": "flag",
83
+ "data-country": l,
84
+ "data-missing": "true",
85
+ className: e
86
+ }
87
+ )
88
+ );
89
+ m.displayName = "FlagView";
90
+ export {
91
+ R as A,
92
+ O as B,
93
+ K as C,
94
+ J as D,
95
+ I as E,
96
+ m as F,
97
+ Z as G,
98
+ G as H,
99
+ E as I,
100
+ j as J,
101
+ C as K,
102
+ y as L,
103
+ k as _,
104
+ A as a,
105
+ L as b,
106
+ D as c,
107
+ u as d,
108
+ b as e,
109
+ X as f,
110
+ B as g,
111
+ V as h,
112
+ H as i,
113
+ x as j,
114
+ F as k,
115
+ r as l,
116
+ n as m,
117
+ f as n,
118
+ p as o,
119
+ _ as p,
120
+ q,
121
+ w as r,
122
+ W as s,
123
+ U as t,
124
+ T as u,
125
+ S as v,
126
+ Q as w,
127
+ P as x,
128
+ N as y,
129
+ $ as z
130
+ };
131
+ //# sourceMappingURL=flag-view-udarpAot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flag-view-udarpAot.js","sources":["../../node_modules/country-flag-icons/3x2/AL.svg?url","../../node_modules/country-flag-icons/3x2/CN.svg?url","../../node_modules/country-flag-icons/3x2/DE.svg?url","../../node_modules/country-flag-icons/3x2/ES.svg?url","../../node_modules/country-flag-icons/3x2/FR.svg?url","../../node_modules/country-flag-icons/3x2/GB.svg?url","../../node_modules/country-flag-icons/3x2/GR.svg?url","../../node_modules/country-flag-icons/3x2/IN.svg?url","../../node_modules/country-flag-icons/3x2/IT.svg?url","../../node_modules/country-flag-icons/3x2/JP.svg?url","../../node_modules/country-flag-icons/3x2/NL.svg?url","../../node_modules/country-flag-icons/3x2/PL.svg?url","../../node_modules/country-flag-icons/3x2/PT.svg?url","../../node_modules/country-flag-icons/3x2/RO.svg?url","../../node_modules/country-flag-icons/3x2/RU.svg?url","../../node_modules/country-flag-icons/3x2/SA.svg?url","../../node_modules/country-flag-icons/3x2/SE.svg?url","../../node_modules/country-flag-icons/3x2/TR.svg?url","../../node_modules/country-flag-icons/1x1/AL.svg?url","../../node_modules/country-flag-icons/1x1/CN.svg?url","../../node_modules/country-flag-icons/1x1/DE.svg?url","../../node_modules/country-flag-icons/1x1/ES.svg?url","../../node_modules/country-flag-icons/1x1/FR.svg?url","../../node_modules/country-flag-icons/1x1/GB.svg?url","../../node_modules/country-flag-icons/1x1/GR.svg?url","../../node_modules/country-flag-icons/1x1/IN.svg?url","../../node_modules/country-flag-icons/1x1/IT.svg?url","../../node_modules/country-flag-icons/1x1/JP.svg?url","../../node_modules/country-flag-icons/1x1/NL.svg?url","../../node_modules/country-flag-icons/1x1/PL.svg?url","../../node_modules/country-flag-icons/1x1/PT.svg?url","../../node_modules/country-flag-icons/1x1/RO.svg?url","../../node_modules/country-flag-icons/1x1/RU.svg?url","../../node_modules/country-flag-icons/1x1/SA.svg?url","../../node_modules/country-flag-icons/1x1/SE.svg?url","../../node_modules/country-flag-icons/1x1/TR.svg?url","../../src/components/flag/flag-view.tsx"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2090%2060'%3e%3cpath%20fill='%23ED2024'%20d='M0%200h90v60H0z'/%3e%3cpath%20fill='%23212121'%20d='M32.5%2012.2v16l7.1%202.5-5%204.9%202.4%203%205.3-5.5%201.2%202.3-3%204.9%203.6%205.6-1.8%202.6%202.8%203.6%202.7-3.7-1.5-2.6%203-5.8-2.7-4.6%201.2-2.3%205.2%205.5%202.5-2.9-5.2-5.1%207.2-2.6V12.2l-5.2%201.9-.1%203.8-3.3.3v-2.6l1.7-2.3%205.6-2.2-2.3-.4%201.4-1.2.9.4-.8-1.4L54%209l-1-1.1L47.5%209l1.4%201.1-3.8%204.9-3.8-4.8%201.3-1.1-5-1.2L36.2%209l-1.5-.4-.8%201.4.9-.6%201.6%201.1-2.3.5%205.5%202%201.6%202.3v2.9l-3.3-.3v-3.6z'/%3e%3cg%20fill='%23212121'%3e%3cpath%20d='M26.2%2025h6.4v2.5h-6.4zM26.2%2020.9h6.4v2.7h-6.4zM26.2%2016.7h6.4v2.6h-6.4zM26.2%2012.7h6.4v2.5h-6.4z'/%3e%3c/g%3e%3cg%20fill='%23212121'%3e%3cpath%20d='M57.4%2025h6.4v2.5h-6.4zM57.4%2020.9h6.4v2.7h-6.4zM57.4%2016.7h6.4v2.6h-6.4zM57.4%2012.7h6.4v2.5h-6.4z'/%3e%3c/g%3e%3cpath%20fill='%23212121'%20d='M53.4%2036.1h6.4V38h-6.4zM30.2%2036.1h6.4V38h-6.4z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23D80027'%20d='M0%200h513v342H0z'/%3e%3cg%20fill='%23FFDA44'%3e%3cpath%20d='m226.8%20239.2-9.7-15.6-17.9%204.4%2011.9-14.1-9.7-15.6%2017.1%206.9%2011.8-14.1-1.3%2018.4%2017.1%206.9-17.9%204.4zM290.6%2082l-10.1%2015.4%2011.6%2014.3-17.7-4.8-10.1%2015.5-1-18.4-17.7-4.8%2017.2-6.6-1-18.4%2011.6%2014.3zM236.2%2025.4l-2%2018.3%2016.8%207.6-18%203.8-2%2018.3-9.2-16-17.9%203.8%2012.3-13.7-9.2-15.9%2016.8%207.5zM292.8%20161.8l-14.9%2010.9%205.8%2017.5-14.9-10.8-14.9%2011%205.6-17.6-14.9-10.7%2018.4-.1%205.6-17.6%205.8%2017.5zM115%2046.3l17.3%2053.5h56.2l-45.4%2032.9%2017.3%2053.5-45.4-33-45.5%2033%2017.4-53.5-45.5-32.9h56.3z'/%3e%3c/g%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23D80027'%20d='M0%200h513v342H0z'/%3e%3cpath%20d='M0%200h513v114H0z'/%3e%3cpath%20fill='%23FFDA44'%20d='M0%20228h513v114H0z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2022.5%2015'%3e%3cpath%20fill='%23FFF'%20d='M0%200h22.5v15H0V0z'/%3e%3cpath%20fill='%23D03433'%20d='M0%200h22.5v4H0V0zm0%2011h22.5v4H0v-4z'/%3e%3cpath%20fill='%23FBCA46'%20d='M0%204h22.5v7H0V4z'/%3e%3cpath%20fill='%23FFF'%20d='M7.8%207h1v.5h-1V7z'/%3e%3cpath%20fill='%23A41517'%20d='M7.2%208.5c0%20.3.3.5.6.5s.6-.2.6-.5L8.5%207H7.1l.1%201.5zM6.6%207c0-.3.2-.5.4-.5h1.5c.3%200%20.5.2.5.4V7l-.1%201.5c-.1.6-.5%201-1.1%201-.6%200-1-.4-1.1-1L6.6%207z'/%3e%3cpath%20fill='%23A41517'%20d='M6.8%207.5h2V8h-.5l-.5%201-.5-1h-.5v-.5zM5.3%206h1v3.5h-1V6zm4%200h1v3.5h-1V6zm-2.5-.5c0-.3.2-.5.5-.5h1c.3%200%20.5.2.5.5v.2c0%20.2-.1.3-.3.3H7c-.1%200-.2-.1-.2-.2v-.3z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%200h513v342H0z'/%3e%3cpath%20fill='%2300318A'%20d='M0%200h171v342H0z'/%3e%3cpath%20fill='%23D80027'%20d='M342%200h171v342H342z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cg%20fill='%23FFF'%3e%3cpath%20d='M0%200h513v341.3H0V0z'/%3e%3cpath%20d='M311.7%20230%20513%20341.3v-31.5L369.3%20230h-57.6zM200.3%20111.3%200%200v31.5l143.7%2079.8h56.6z'/%3e%3c/g%3e%3cg%20fill='%23012169'%3e%3cpath%20d='M393.8%20230%20513%20295.7V230H393.8zm-82.1%200L513%20341.3v-31.5L369.3%20230h-57.6zm146.9%20111.3-147-81.7v81.7h147zM90.3%20230%200%20280.2V230h90.3zm110%2014.2v97.2H25.5l174.8-97.2zM118.2%20111.3%200%2045.6v65.7h118.2zm82.1%200L0%200v31.5l143.7%2079.8h56.6zM53.4%200l147%2081.7V0h-147zM421.7%20111.3%20513%2061.1v50.2h-91.3zm-110-14.2V0h174.9L311.7%2097.1z'/%3e%3c/g%3e%3cg%20fill='%23c8102e'%3e%3cpath%20d='M288%200h-64v138.7H0v64h224v138.7h64V202.7h224v-64H288V0z'/%3e%3cpath%20d='M311.7%20230%20513%20341.3v-31.5L369.3%20230h-57.6zM143.7%20230%200%20309.9v31.5L200.3%20230h-56.6zM200.3%20111.3%200%200v31.5l143.7%2079.8h56.6zM368.3%20111.3%20513%2031.5V0L311.7%20111.3h56.6z'/%3e%3c/g%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%200h513v342H0z'/%3e%3cg%20fill='%230d5eaf'%3e%3cpath%20d='M0%200h513v38H0zM0%2076h513v38H0zM0%20152h513v38H0zM0%20228h513v38H0zM0%20304h513v38H0z'/%3e%3cpath%20d='M0%200h190v190H0z'/%3e%3c/g%3e%3cg%20fill='%23FFF'%3e%3cpath%20d='M0%2076h190v38H0z'/%3e%3cpath%20d='M76%200h38v190H76z'/%3e%3c/g%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23ff6820'%20d='M0%200h513v114H0V0z'/%3e%3cpath%20fill='%23FFF'%20d='M0%20114h513v114H0V114z'/%3e%3cpath%20fill='%23046a38'%20d='M0%20228h513v114H0V228z'/%3e%3cpath%20fill='none'%20stroke='%2307038d'%20stroke-width='4'%20d='M256.5%20136.8c18.9%200%2034.2%2015.3%2034.2%2034.2s-15.3%2034.2-34.2%2034.2-34.2-15.3-34.2-34.2%2015.3-34.2%2034.2-34.2z'/%3e%3cg%20stroke='%2307038d'%20stroke-width='2'%3e%3cpath%20d='m265.3%20138.2-17.6%2065.7m17.6-65.7-17.6%2065.7M273.5%20141.6l-34%2058.9M280.5%20147l-48%2048M285.9%20154%20227%20188M289.3%20162.2l-65.7%2017.6M290.5%20171h-68M289.3%20179.8l-65.7-17.6M285.9%20188%20227%20154M280.5%20195l-48-48M273.5%20200.4l-34-58.9M265.3%20203.8l-17.6-65.7M256.5%20205v-68M247.7%20203.8l17.6-65.7M239.5%20200.4l34-58.9M232.5%20195l48.1-48.1M227.1%20188l58.9-34M223.7%20179.8l65.7-17.6M222.5%20171h68M223.7%20162.2l65.7%2017.6M227.1%20154l58.9%2034M232.5%20147l48.1%2048.1M239.5%20141.6l34%2058.9M247.7%20138.2l17.6%2065.7'/%3e%3c/g%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23F4F5F0'%20d='M342%200H0v341.3h512V0z'/%3e%3cpath%20fill='%23008C45'%20d='M0%200h171v342H0z'/%3e%3cpath%20fill='%23CD212A'%20d='M342%200h171v342H342z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%200h512v342H0z'/%3e%3ccircle%20fill='%23D80027'%20cx='256.5'%20cy='171'%20r='96'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%20114h513v114H0z'/%3e%3cpath%20fill='%23cd1f2a'%20d='M0%200h513v114H0z'/%3e%3cpath%20fill='%231d4185'%20d='M0%20228h513v114H0z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%200h513v342H0z'/%3e%3cpath%20fill='%23dc143c'%20d='M0%20171h513v171H0z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='red'%20d='M0%200h513v342H0z'/%3e%3cpath%20fill='%23060'%20d='M197%200v342H0V0z'/%3e%3ccircle%20fill='%23FF0'%20cx='197.1'%20cy='171'%20r='64'/%3e%3cpath%20fill='red'%20d='M161.1%20139v40c0%2019.9%2016.1%2036%2036%2036s36-16.1%2036-36v-40h-72z'/%3e%3cpath%20fill='%23FFF'%20d='M197.1%20191c-6.6%200-12-5.4-12-12v-16h24v16c0%206.6-5.3%2012-12%2012z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%2085.333%20512%20341.333'%3e%3cpath%20fill='%23FFDA44'%20d='M0%2085.331h512v341.326H0z'/%3e%3cpath%20fill='%230052B4'%20d='M0%2085.331h170.663v341.337H0z'/%3e%3cpath%20fill='%23D80027'%20d='M341.337%2085.331H512v341.337H341.337z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%2085.333%20512%20341.333'%3e%3cpath%20fill='%23FFF'%20d='M0%2085.33v341.332h512V85.33z'/%3e%3cpath%20fill='%230052B4'%20d='M0%2085.333h512V426.67H0z'/%3e%3cpath%20fill='%23FFF'%20d='M0%2085.333h512v113.775H0z'/%3e%3cpath%20fill='%23D80027'%20d='M0%20312.884h512v113.775H0z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20d='M0%200h513v342H0z'%20fill='%23fff'/%3e%3cg%20fill='%23055e1c'%3e%3cpath%20d='M0%200v342h513V0zm218%2076q1%202-2%205-3%202-1%204%203%204%200%206-2%201-5-1-6-6%200-14%206-4%208%200m-102%202%201%206q0%204-2%204-5%201-5-6l2-4zm39%201%201%202q-1%204-5%204-5%200-6-4c0-4%207-6%2010-2m47%202q3%204%202%209c-1%202-22%2019-24%2019q-3%200-4-4l6-6%206-5v-3c-5-10%207-18%2014-10m35-3q3%201%200%207-2%208-6%206c-3-1-3%2014%200%2019q2%204%207-1c2-3%202-5%202-15%200-12%200-13%202-13q5-2%205%2013%201%2011%203%2013%203%206%206%203%203-2-1-12-3-12%201-16h9q2-2%209%201l6%202%201-2q4-4%206-1l3%2017c3%2016%203%2016%207%2024l15%2030q1%206-4%205l-8-14-6-12%201%2020c1%2021%201%2023-4%2023q-4%202-4-15l-1-27-1-16-9-13c-8-12-8-13-11-13q-6-1-2%206l2%207q0%204%203%202%206-2%206%203-1%204-8%205l-5%202-5%202q-6%200-10-3-2-3-5%201-5%205-12%202-5-1-7-10l-1-3-1%203q-3%207-9%208-7%200-9-11-3-10%202-10%204-1%205%207l2%206q1%200%204-7%206-17%2013-12h1c-1-1%202-10%204-11zm-97%2010%202%2016%201%209h4q5%202%206-1c2-1%202-2-1-11l-3-12%203-1%2011%205V82q4-2%206%201l3%2023%201%2020h2q5%200%205%205%201%206%203%200%203-9%208-2%201%203%202%200%203-7%204-6c5%200%206%207%201%2013q-3%203-7%203l-6%201q-5%204-10%200l-2-2v5c0%2021-16%2042-33%2042q-21-1-23-21%200-5%202-6%204-1%206%206%201%2012%2012%2013%2014%202%2024-15%206-11%201-5-12%2018-28%2011-7-5-9-17-2-6%201-7%205-3%206%206%201%2012%2010%2012%207%200%2013-8%205-8-1-7-11-1-8-12%208-11%2017-5l3%202-1-12-4-22q-3%201%200%207c2%206%202%206%200%2010l-5%205q-3%203-7%201h-5l-1%2016c-1%2019-1%2020-4%2021-4%201-4-2-4-19l1-15-3%201q-3%201-6-2c-2-2-2-2-3-14l-1-12q-2-1-2%2010l-1%2013q-3%206-8%204c-3-2-4-4-7-15q-4-15%202-14%204-1%205%208l1%205%201-6q0-13%209-12l6%202c2%203%202%204%202%2014l1%2011%202-1%201-8-2-16q-3-12%202-11%203-1%205%207m163-3q4%2010%201%2013-4%203-7-7-3-11%202-10zm12-3%203%207q2%206%201%208v16l2%2027c2%2022%202%2021%206%2021h3l-1-5-2-23-3-33c-2-16-1-19%203-19%203%200%208%2014%206%2016v24c5%2047%205%2048%200%2047q-3-2-1%204l2%206q2%201%205-9%207-18%2010-16%203%200%207%205%204%207%207%207%204-1%201-33l-1-21-10-12-9-15q0-5%208-1%205%202%206%206l2%206q3%204%201-4%200-10%203-10c4%200%209%2010%207%2013l-1%208q1%208%204%2012l3%203-2-15c-2-16-2-19%201-20q3%200%205%204l4%205h2q6-4%208%209%200%208-4%208-3%200-4-6%201-8-3-5c-1%202-1%203%201%2019l2%2017%205%207c6%2010%2012%2021%2011%2022q-2%203-5%202l-5-8-5-8%201%208c0%2011%200%2011-3%2011q-5%203-5-7l-1-16c0-8-1-10-4-15l-4-5v19c1%2021%200%2025-5%2028q-6%205-13-3l-4-5-4%209q-6%2014-11%2015-9-1-11-16-1-8-5-1c-3%205-12%2013-19%2017q-8%204-8-2-1-2%206-6c9-5%2017-14%2017-18l-5-78q2-4%205-1m89%205%204%206q1%201-2%203l-2%202%204%2024q4%2025%204%2035c0%2010%200%2011-3%2017q-7%2013-19%2014-8%200-7-2-2-4%207-6%2015-2%2014-23a708%20708%200%200%200-8-75c3-2%203-1%208%205m-211%2019%201%204q0%203%202%202%205%200%205%204c0%204-9%206-13%202-4-5%200-17%205-12m108%201h2l4-1q4%202%200%207-7%206-11-1v-5q3-2%205%200m55%202q3%204-1%206-2%200-1%205t-1%206q-1%202-10-6-8-7-6-9%203-4%207%200l2%202%202-3q5-3%208-1m-131%2013c3%202%206%2014%206%2017q-1%206%206%201l10-4q5-1%207-4%204-9%2010-12%2010%200%2011%209%200%207-16%2013l-2%201%2013%201c16%200%2016%200%2013%209q-2%207-4%207l-10%202q-19%203-17%209%201%202%204%203%206%203%203%207l-7%201q-13-2-21-10l-3-3-2%203q-7%2010-19%2013-10%202-15-10l-5%202q-18%2010-19%208l-2-3c0-2%201-2%2015-11l9-6q1-3%205-4c3%201%2010-5%2012-9q3-6-1-15l-2-8q1-5%206-6c3%200%208%205%208%207q-1%204-4%203v1l1%2010c1%209-1%2013-10%2021l-7%206%202%203q5%209%2015-2%2010-8%2010-23%200-10-6-24v-4q3-4%206%201m17%202q2%203%204%200%2011-3%205%205c-4%205-12%205-15-1v-4zm118%205%201%202q1%202-7%208c-8%206-9%207-11%205q-5-4%206-10c8-6%208-6%2011-5m-229%203q3%202-10%2010-12%208-13%203-5-3%209-10%2013-8%2014-3m229%2010c3%202%204%209%203%2011q-3%203-6%201c-2-2-3-11-1-13q1-2%204%201m-172%207q3%203%202%207%201%205-3%205-3%201-3-3l-2-4q-3-3-1-6%204-2%207%201m-79%209%201%208q0%209%203%206%204-1%204%203-1%207-7%207-7-1-7-14-1-9%202-10zm168%2012q0%204%203%202t4%203q-2%206-8%208l-4-2q-3-3-4-2-4%200-5-4l5-6q7-6%207-4%203%201%202%205m102%203q4%204%201%209-7%207-7-4t6-5m-42%2073c0%202%201%202%2012%202q24-1%2022%2011%200%207-6%2010c-4%201-31%202-34%200q-2-1-2-6v-4h-82l-74-1c-16%200-28-10-28-10h92c91%200%2092-1%2092-2q-1-3%204-5c5-2%204%204%204%205'/%3e%3cpath%20d='m195%2086%201%201%201-1-1-1q-2%200-1%201m84%205q-2%202%201%205l3%203-1-4-1-5zm-125%2045q-3%203-1%204%205-1%206-4zm110-7q-4%205%200%203%206-4%202-4zm-31%2030q0%206%204%208l5%204q3%202%202-3%200-3%204-7%204-3%202-4l-13-3h-5zm104%20101q-1%203%2013%202c11%200%2013%200%2014-2l-13-1z'/%3e%3c/g%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%2085.333%20512%20341.333'%3e%3cpath%20fill='%230052B4'%20d='M0%2085.333h512V426.67H0z'/%3e%3cpath%20fill='%23FFDA44'%20d='M192%2085.33h-64v138.666H0v64h128v138.666h64V287.996h320v-64H192z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20513%20342'%3e%3cpath%20fill='%23E30A17'%20d='M0%200h513v342H0z'/%3e%3cpath%20fill='%23FFF'%20d='M259.7%20118.6c-13.1-9.5-29-14.6-45.3-14.5-40.8%200-73.8%2030.8-73.8%2068.9s33.1%2068.9%2073.8%2068.9c17.1%200%2032.9-5.4%2045.3-14.5-30%2038.6-85.7%2045.6-124.3%2015.5s-45.6-85.7-15.5-124.3%2085.7-45.6%20124.3-15.5c5.8%204.5%2011%209.8%2015.5%2015.5zm39.9%2065.8-18.1%2021.9%201.2-28.4-26.4-10.4%2027.3-7.6%201.8-28.3%2015.6%2023.7%2027.5-7.1-17.5%2022%2015.3%2023.9-26.7-9.7z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='15%200%2060%2060'%3e%3cpath%20fill='%23ED2024'%20d='M0%200h90v60H0z'/%3e%3cpath%20fill='%23212121'%20d='M32.5%2012.2v16l7.1%202.5-5%204.9%202.4%203%205.3-5.5%201.2%202.3-3%204.9%203.6%205.6-1.8%202.6%202.8%203.6%202.7-3.7-1.5-2.6%203-5.8-2.7-4.6%201.2-2.3%205.2%205.5%202.5-2.9-5.2-5.1%207.2-2.6V12.2l-5.2%201.9-.1%203.8-3.3.3v-2.6l1.7-2.3%205.6-2.2-2.3-.4%201.4-1.2.9.4-.8-1.4L54%209l-1-1.1L47.5%209l1.4%201.1-3.8%204.9-3.8-4.8%201.3-1.1-5-1.2L36.2%209l-1.5-.4-.8%201.4.9-.6%201.6%201.1-2.3.5%205.5%202%201.6%202.3v2.9l-3.3-.3v-3.6z'/%3e%3cg%20fill='%23212121'%3e%3cpath%20d='M26.2%2025h6.4v2.5h-6.4zM26.2%2020.9h6.4v2.7h-6.4zM26.2%2016.7h6.4v2.6h-6.4zM26.2%2012.7h6.4v2.5h-6.4z'/%3e%3c/g%3e%3cg%20fill='%23212121'%3e%3cpath%20d='M57.4%2025h6.4v2.5h-6.4zM57.4%2020.9h6.4v2.7h-6.4zM57.4%2016.7h6.4v2.6h-6.4zM57.4%2012.7h6.4v2.5h-6.4z'/%3e%3c/g%3e%3cpath%20fill='%23212121'%20d='M53.4%2036.1h6.4V38h-6.4zM30.2%2036.1h6.4V38h-6.4z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='75.24%200%20342%20342'%3e%3cpath%20fill='%23D80027'%20d='M0%200h513v342H0z'/%3e%3cg%20fill='%23FFDA44'%3e%3cpath%20d='m226.8%20239.2-9.7-15.6-17.9%204.4%2011.9-14.1-9.7-15.6%2017.1%206.9%2011.8-14.1-1.3%2018.4%2017.1%206.9-17.9%204.4zM290.6%2082l-10.1%2015.4%2011.6%2014.3-17.7-4.8-10.1%2015.5-1-18.4-17.7-4.8%2017.2-6.6-1-18.4%2011.6%2014.3zM236.2%2025.4l-2%2018.3%2016.8%207.6-18%203.8-2%2018.3-9.2-16-17.9%203.8%2012.3-13.7-9.2-15.9%2016.8%207.5zM292.8%20161.8l-14.9%2010.9%205.8%2017.5-14.9-10.8-14.9%2011%205.6-17.6-14.9-10.7%2018.4-.1%205.6-17.6%205.8%2017.5zM115%2046.3l17.3%2053.5h56.2l-45.4%2032.9%2017.3%2053.5-45.4-33-45.5%2033%2017.4-53.5-45.5-32.9h56.3z'/%3e%3c/g%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cpath%20fill='%23D80027'%20d='M0%200h513v342H0z'/%3e%3cpath%20d='M0%200h513v114H0z'/%3e%3cpath%20fill='%23FFDA44'%20d='M0%20228h513v114H0z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='3.75%200%2015%2015'%3e%3cpath%20fill='%23FFF'%20d='M0%200h22.5v15H0V0z'/%3e%3cpath%20fill='%23D03433'%20d='M0%200h22.5v4H0V0zm0%2011h22.5v4H0v-4z'/%3e%3cpath%20fill='%23FBCA46'%20d='M0%204h22.5v7H0V4z'/%3e%3cpath%20fill='%23FFF'%20d='M7.8%207h1v.5h-1V7z'/%3e%3cpath%20fill='%23A41517'%20d='M7.2%208.5c0%20.3.3.5.6.5s.6-.2.6-.5L8.5%207H7.1l.1%201.5zM6.6%207c0-.3.2-.5.4-.5h1.5c.3%200%20.5.2.5.4V7l-.1%201.5c-.1.6-.5%201-1.1%201-.6%200-1-.4-1.1-1L6.6%207z'/%3e%3cpath%20fill='%23A41517'%20d='M6.8%207.5h2V8h-.5l-.5%201-.5-1h-.5v-.5zM5.3%206h1v3.5h-1V6zm4%200h1v3.5h-1V6zm-2.5-.5c0-.3.2-.5.5-.5h1c.3%200%20.5.2.5.5v.2c0%20.2-.1.3-.3.3H7c-.1%200-.2-.1-.2-.2v-.3z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%200h513v342H0z'/%3e%3cpath%20fill='%2300318A'%20d='M0%200h171v342H0z'/%3e%3cpath%20fill='%23D80027'%20d='M342%200h171v342H342z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cg%20fill='%23FFF'%3e%3cpath%20d='M0%200h513v341.3H0V0z'/%3e%3cpath%20d='M311.7%20230%20513%20341.3v-31.5L369.3%20230h-57.6zM200.3%20111.3%200%200v31.5l143.7%2079.8h56.6z'/%3e%3c/g%3e%3cg%20fill='%23012169'%3e%3cpath%20d='M393.8%20230%20513%20295.7V230H393.8zm-82.1%200L513%20341.3v-31.5L369.3%20230h-57.6zm146.9%20111.3-147-81.7v81.7h147zM90.3%20230%200%20280.2V230h90.3zm110%2014.2v97.2H25.5l174.8-97.2zM118.2%20111.3%200%2045.6v65.7h118.2zm82.1%200L0%200v31.5l143.7%2079.8h56.6zM53.4%200l147%2081.7V0h-147zM421.7%20111.3%20513%2061.1v50.2h-91.3zm-110-14.2V0h174.9L311.7%2097.1z'/%3e%3c/g%3e%3cg%20fill='%23c8102e'%3e%3cpath%20d='M288%200h-64v138.7H0v64h224v138.7h64V202.7h224v-64H288V0z'/%3e%3cpath%20d='M311.7%20230%20513%20341.3v-31.5L369.3%20230h-57.6zM143.7%20230%200%20309.9v31.5L200.3%20230h-56.6zM200.3%20111.3%200%200v31.5l143.7%2079.8h56.6zM368.3%20111.3%20513%2031.5V0L311.7%20111.3h56.6z'/%3e%3c/g%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='3.42%200%20342%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%200h513v342H0z'/%3e%3cg%20fill='%230d5eaf'%3e%3cpath%20d='M0%200h513v38H0zM0%2076h513v38H0zM0%20152h513v38H0zM0%20228h513v38H0zM0%20304h513v38H0z'/%3e%3cpath%20d='M0%200h190v190H0z'/%3e%3c/g%3e%3cg%20fill='%23FFF'%3e%3cpath%20d='M0%2076h190v38H0z'/%3e%3cpath%20d='M76%200h38v190H76z'/%3e%3c/g%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cpath%20fill='%23ff6820'%20d='M0%200h513v114H0V0z'/%3e%3cpath%20fill='%23FFF'%20d='M0%20114h513v114H0V114z'/%3e%3cpath%20fill='%23046a38'%20d='M0%20228h513v114H0V228z'/%3e%3cpath%20fill='none'%20stroke='%2307038d'%20stroke-width='4'%20d='M256.5%20136.8c18.9%200%2034.2%2015.3%2034.2%2034.2s-15.3%2034.2-34.2%2034.2-34.2-15.3-34.2-34.2%2015.3-34.2%2034.2-34.2z'/%3e%3cg%20stroke='%2307038d'%20stroke-width='2'%3e%3cpath%20d='m265.3%20138.2-17.6%2065.7m17.6-65.7-17.6%2065.7M273.5%20141.6l-34%2058.9M280.5%20147l-48%2048M285.9%20154%20227%20188M289.3%20162.2l-65.7%2017.6M290.5%20171h-68M289.3%20179.8l-65.7-17.6M285.9%20188%20227%20154M280.5%20195l-48-48M273.5%20200.4l-34-58.9M265.3%20203.8l-17.6-65.7M256.5%20205v-68M247.7%20203.8l17.6-65.7M239.5%20200.4l34-58.9M232.5%20195l48.1-48.1M227.1%20188l58.9-34M223.7%20179.8l65.7-17.6M222.5%20171h68M223.7%20162.2l65.7%2017.6M227.1%20154l58.9%2034M232.5%20147l48.1%2048.1M239.5%20141.6l34%2058.9M247.7%20138.2l17.6%2065.7'/%3e%3c/g%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cpath%20fill='%23F4F5F0'%20d='M342%200H0v341.3h512V0z'/%3e%3cpath%20fill='%23008C45'%20d='M0%200h171v342H0z'/%3e%3cpath%20fill='%23CD212A'%20d='M342%200h171v342H342z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%200h512v342H0z'/%3e%3ccircle%20fill='%23D80027'%20cx='256.5'%20cy='171'%20r='96'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%20114h513v114H0z'/%3e%3cpath%20fill='%23cd1f2a'%20d='M0%200h513v114H0z'/%3e%3cpath%20fill='%231d4185'%20d='M0%20228h513v114H0z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cpath%20fill='%23FFF'%20d='M0%200h513v342H0z'/%3e%3cpath%20fill='%23dc143c'%20d='M0%20171h513v171H0z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='30.78%200%20342%20342'%3e%3cpath%20fill='red'%20d='M0%200h513v342H0z'/%3e%3cpath%20fill='%23060'%20d='M197%200v342H0V0z'/%3e%3ccircle%20fill='%23FF0'%20cx='197.1'%20cy='171'%20r='64'/%3e%3cpath%20fill='red'%20d='M161.1%20139v40c0%2019.9%2016.1%2036%2036%2036s36-16.1%2036-36v-40h-72z'/%3e%3cpath%20fill='%23FFF'%20d='M197.1%20191c-6.6%200-12-5.4-12-12v-16h24v16c0%206.6-5.3%2012-12%2012z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.333%2085.333%20341.333%20341.333'%3e%3cpath%20fill='%23FFDA44'%20d='M0%2085.331h512v341.326H0z'/%3e%3cpath%20fill='%230052B4'%20d='M0%2085.331h170.663v341.337H0z'/%3e%3cpath%20fill='%23D80027'%20d='M341.337%2085.331H512v341.337H341.337z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.333%2085.333%20341.333%20341.333'%3e%3cpath%20fill='%23FFF'%20d='M0%2085.33v341.332h512V85.33z'/%3e%3cpath%20fill='%230052B4'%20d='M0%2085.333h512V426.67H0z'/%3e%3cpath%20fill='%23FFF'%20d='M0%2085.333h512v113.775H0z'/%3e%3cpath%20fill='%23D80027'%20d='M0%20312.884h512v113.775H0z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='85.5%200%20342%20342'%3e%3cpath%20d='M0%200h513v342H0z'%20fill='%23fff'/%3e%3cg%20fill='%23055e1c'%3e%3cpath%20d='M0%200v342h513V0zm218%2076q1%202-2%205-3%202-1%204%203%204%200%206-2%201-5-1-6-6%200-14%206-4%208%200m-102%202%201%206q0%204-2%204-5%201-5-6l2-4zm39%201%201%202q-1%204-5%204-5%200-6-4c0-4%207-6%2010-2m47%202q3%204%202%209c-1%202-22%2019-24%2019q-3%200-4-4l6-6%206-5v-3c-5-10%207-18%2014-10m35-3q3%201%200%207-2%208-6%206c-3-1-3%2014%200%2019q2%204%207-1c2-3%202-5%202-15%200-12%200-13%202-13q5-2%205%2013%201%2011%203%2013%203%206%206%203%203-2-1-12-3-12%201-16h9q2-2%209%201l6%202%201-2q4-4%206-1l3%2017c3%2016%203%2016%207%2024l15%2030q1%206-4%205l-8-14-6-12%201%2020c1%2021%201%2023-4%2023q-4%202-4-15l-1-27-1-16-9-13c-8-12-8-13-11-13q-6-1-2%206l2%207q0%204%203%202%206-2%206%203-1%204-8%205l-5%202-5%202q-6%200-10-3-2-3-5%201-5%205-12%202-5-1-7-10l-1-3-1%203q-3%207-9%208-7%200-9-11-3-10%202-10%204-1%205%207l2%206q1%200%204-7%206-17%2013-12h1c-1-1%202-10%204-11zm-97%2010%202%2016%201%209h4q5%202%206-1c2-1%202-2-1-11l-3-12%203-1%2011%205V82q4-2%206%201l3%2023%201%2020h2q5%200%205%205%201%206%203%200%203-9%208-2%201%203%202%200%203-7%204-6c5%200%206%207%201%2013q-3%203-7%203l-6%201q-5%204-10%200l-2-2v5c0%2021-16%2042-33%2042q-21-1-23-21%200-5%202-6%204-1%206%206%201%2012%2012%2013%2014%202%2024-15%206-11%201-5-12%2018-28%2011-7-5-9-17-2-6%201-7%205-3%206%206%201%2012%2010%2012%207%200%2013-8%205-8-1-7-11-1-8-12%208-11%2017-5l3%202-1-12-4-22q-3%201%200%207c2%206%202%206%200%2010l-5%205q-3%203-7%201h-5l-1%2016c-1%2019-1%2020-4%2021-4%201-4-2-4-19l1-15-3%201q-3%201-6-2c-2-2-2-2-3-14l-1-12q-2-1-2%2010l-1%2013q-3%206-8%204c-3-2-4-4-7-15q-4-15%202-14%204-1%205%208l1%205%201-6q0-13%209-12l6%202c2%203%202%204%202%2014l1%2011%202-1%201-8-2-16q-3-12%202-11%203-1%205%207m163-3q4%2010%201%2013-4%203-7-7-3-11%202-10zm12-3%203%207q2%206%201%208v16l2%2027c2%2022%202%2021%206%2021h3l-1-5-2-23-3-33c-2-16-1-19%203-19%203%200%208%2014%206%2016v24c5%2047%205%2048%200%2047q-3-2-1%204l2%206q2%201%205-9%207-18%2010-16%203%200%207%205%204%207%207%207%204-1%201-33l-1-21-10-12-9-15q0-5%208-1%205%202%206%206l2%206q3%204%201-4%200-10%203-10c4%200%209%2010%207%2013l-1%208q1%208%204%2012l3%203-2-15c-2-16-2-19%201-20q3%200%205%204l4%205h2q6-4%208%209%200%208-4%208-3%200-4-6%201-8-3-5c-1%202-1%203%201%2019l2%2017%205%207c6%2010%2012%2021%2011%2022q-2%203-5%202l-5-8-5-8%201%208c0%2011%200%2011-3%2011q-5%203-5-7l-1-16c0-8-1-10-4-15l-4-5v19c1%2021%200%2025-5%2028q-6%205-13-3l-4-5-4%209q-6%2014-11%2015-9-1-11-16-1-8-5-1c-3%205-12%2013-19%2017q-8%204-8-2-1-2%206-6c9-5%2017-14%2017-18l-5-78q2-4%205-1m89%205%204%206q1%201-2%203l-2%202%204%2024q4%2025%204%2035c0%2010%200%2011-3%2017q-7%2013-19%2014-8%200-7-2-2-4%207-6%2015-2%2014-23a708%20708%200%200%200-8-75c3-2%203-1%208%205m-211%2019%201%204q0%203%202%202%205%200%205%204c0%204-9%206-13%202-4-5%200-17%205-12m108%201h2l4-1q4%202%200%207-7%206-11-1v-5q3-2%205%200m55%202q3%204-1%206-2%200-1%205t-1%206q-1%202-10-6-8-7-6-9%203-4%207%200l2%202%202-3q5-3%208-1m-131%2013c3%202%206%2014%206%2017q-1%206%206%201l10-4q5-1%207-4%204-9%2010-12%2010%200%2011%209%200%207-16%2013l-2%201%2013%201c16%200%2016%200%2013%209q-2%207-4%207l-10%202q-19%203-17%209%201%202%204%203%206%203%203%207l-7%201q-13-2-21-10l-3-3-2%203q-7%2010-19%2013-10%202-15-10l-5%202q-18%2010-19%208l-2-3c0-2%201-2%2015-11l9-6q1-3%205-4c3%201%2010-5%2012-9q3-6-1-15l-2-8q1-5%206-6c3%200%208%205%208%207q-1%204-4%203v1l1%2010c1%209-1%2013-10%2021l-7%206%202%203q5%209%2015-2%2010-8%2010-23%200-10-6-24v-4q3-4%206%201m17%202q2%203%204%200%2011-3%205%205c-4%205-12%205-15-1v-4zm118%205%201%202q1%202-7%208c-8%206-9%207-11%205q-5-4%206-10c8-6%208-6%2011-5m-229%203q3%202-10%2010-12%208-13%203-5-3%209-10%2013-8%2014-3m229%2010c3%202%204%209%203%2011q-3%203-6%201c-2-2-3-11-1-13q1-2%204%201m-172%207q3%203%202%207%201%205-3%205-3%201-3-3l-2-4q-3-3-1-6%204-2%207%201m-79%209%201%208q0%209%203%206%204-1%204%203-1%207-7%207-7-1-7-14-1-9%202-10zm168%2012q0%204%203%202t4%203q-2%206-8%208l-4-2q-3-3-4-2-4%200-5-4l5-6q7-6%207-4%203%201%202%205m102%203q4%204%201%209-7%207-7-4t6-5m-42%2073c0%202%201%202%2012%202q24-1%2022%2011%200%207-6%2010c-4%201-31%202-34%200q-2-1-2-6v-4h-82l-74-1c-16%200-28-10-28-10h92c91%200%2092-1%2092-2q-1-3%204-5c5-2%204%204%204%205'/%3e%3cpath%20d='m195%2086%201%201%201-1-1-1q-2%200-1%201m84%205q-2%202%201%205l3%203-1-4-1-5zm-125%2045q-3%203-1%204%205-1%206-4zm110-7q-4%205%200%203%206-4%202-4zm-31%2030q0%206%204%208l5%204q3%202%202-3%200-3%204-7%204-3%202-4l-13-3h-5zm104%20101q-1%203%2013%202c11%200%2013%200%2014-2l-13-1z'/%3e%3c/g%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='30.72%2085.333%20341.333%20341.333'%3e%3cpath%20fill='%230052B4'%20d='M0%2085.333h512V426.67H0z'/%3e%3cpath%20fill='%23FFDA44'%20d='M192%2085.33h-64v138.666H0v64h128v138.666h64V287.996h320v-64H192z'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='76.95%200%20342%20342'%3e%3cpath%20fill='%23E30A17'%20d='M0%200h513v342H0z'/%3e%3cpath%20fill='%23FFF'%20d='M259.7%20118.6c-13.1-9.5-29-14.6-45.3-14.5-40.8%200-73.8%2030.8-73.8%2068.9s33.1%2068.9%2073.8%2068.9c17.1%200%2032.9-5.4%2045.3-14.5-30%2038.6-85.7%2045.6-124.3%2015.5s-45.6-85.7-15.5-124.3%2085.7-45.6%20124.3-15.5c5.8%204.5%2011%209.8%2015.5%2015.5zm39.9%2065.8-18.1%2021.9%201.2-28.4-26.4-10.4%2027.3-7.6%201.8-28.3%2015.6%2023.7%2027.5-7.1-17.5%2022%2015.3%2023.9-26.7-9.7z'/%3e%3c/svg%3e\"","import { forwardRef, type ForwardedRef, type ImgHTMLAttributes } from 'react';\nimport { cva } from 'class-variance-authority';\n\n/* ------------------------------------------------------------------ */\n/* Internal render surface — shared by every asset-bound Flag binding. */\n/* */\n/* This module is deliberately PAYLOAD-FREE: it holds the CVA, the */\n/* markup and the a11y contract, but never imports an SVG. That is */\n/* what lets `flag.tsx` (all 265 countries) and `flag-core.ts` (the */\n/* 18 locale-chrome countries) share one implementation while landing */\n/* in different Rollup chunks — a consumer that only renders the */\n/* LocalePicker never pulls the full flag payload. See flag.tsx for */\n/* the full rationale. */\n/* ------------------------------------------------------------------ */\n\n/** `CODE → asset URL`, keyed by upper-case ISO code. */\nexport type FlagAssetMap = Record<string, string>;\n\n/**\n * Turns a Vite glob result (`{ '/…/US.svg': url }`) into a code-keyed map.\n * Subdivision codes (`GB-ENG`, `ES-CT`, `BQ-BO`) are preserved verbatim.\n */\nfunction buildFlagMap(raw: Record<string, string>): FlagAssetMap {\n const out: FlagAssetMap = {};\n for (const [path, url] of Object.entries(raw)) {\n const match = path.match(/\\/([A-Z]{2}(?:-[A-Z]+)?)\\.svg$/);\n if (match) out[match[1]] = url;\n }\n return out;\n}\n\n/**\n * `import.meta.glob` is a Vite build macro: Vite rewrites the *call* into a\n * static asset map, so it must stay a reachable call expression (a `typeof`\n * guard on the bare reference is always false at runtime and skips the flags).\n * Under the esbuild sync pass the macro is absent and the untransformed call\n * throws — callers wrap their glob in this helper so Flag degrades to\n * placeholder boxes instead of crashing.\n */\nexport function safeFlagGlob(glob: () => Record<string, string>): FlagAssetMap {\n try {\n return buildFlagMap(glob());\n } catch {\n return {};\n }\n}\n\nexport const flagVariants = cva(\n [\n 'ds:inline-block ds:shrink-0 ds:overflow-hidden',\n 'ds:bg-[color:var(--muted)]',\n // Hairline edge so light flags (JP, PL, NL) stay visible on white.\n 'ds:ring-1 ds:ring-inset ds:ring-[color:var(--border)]',\n ].join(' '),\n {\n variants: {\n shape: {\n rectangle: 'ds:aspect-[3/2]',\n square: 'ds:aspect-square',\n },\n size: {\n sm: 'ds:h-3', // 12px\n md: 'ds:h-4', // 16px\n lg: 'ds:h-5', // 20px\n xl: 'ds:h-6', // 24px\n },\n rounded: {\n none: 'ds:rounded-none',\n sm: 'ds:rounded-[var(--radius-sm)]',\n md: 'ds:rounded-[var(--radius-md)]',\n full: 'ds:rounded-[var(--radius-full)]',\n },\n },\n defaultVariants: {\n shape: 'rectangle',\n size: 'sm',\n rounded: 'sm',\n },\n },\n);\n\n/** Composes the variant classes with a caller-supplied `className`. */\nexport function flagClasses(\n variants: Parameters<typeof flagVariants>[0],\n className?: string,\n): string {\n return [flagVariants(variants), className].filter(Boolean).join(' ');\n}\n\nexport type FlagImgAttrs = Omit<\n ImgHTMLAttributes<HTMLImageElement>,\n 'src' | 'alt' | 'role' | 'width' | 'height' | 'children'\n>;\n\ninterface FlagViewProps extends FlagImgAttrs {\n /** Upper-cased ISO code — stamped as `data-country`. */\n code: string;\n /** Resolved asset URL, or `undefined` when the kit ships no such flag. */\n src?: string;\n /** Accessible name; omit for decorative flags. */\n label?: string;\n /** Fully composed class string (see `flagClasses`). */\n className: string;\n}\n\n/**\n * The one element every Flag binding renders. Kept private to the flag\n * directory — consumers import `Flag` (or the kit's LocalePicker), never\n * this.\n */\nexport const FlagView = forwardRef<HTMLElement, FlagViewProps>(\n ({ code, src, label, className, ...rest }, ref) => {\n // Unknown code → render the chrome with no image, so layout doesn't shift.\n if (!src) {\n return (\n <span\n ref={ref as ForwardedRef<HTMLSpanElement>}\n aria-hidden={label ? undefined : true}\n aria-label={label}\n role={label ? 'img' : undefined}\n data-component=\"flag\"\n data-slot=\"flag\"\n data-country={code}\n data-missing=\"true\"\n className={className}\n />\n );\n }\n\n // An <img> with `alt=\"\"` is already excluded from the accessibility tree;\n // a non-empty `alt` provides the accessible name. No need to layer on\n // aria-hidden / role=\"img\" / aria-label — they'd be redundant (or\n // conflicting) for a native image.\n return (\n <img\n ref={ref as ForwardedRef<HTMLImageElement>}\n src={src}\n alt={label ?? ''}\n data-component=\"flag\"\n data-slot=\"flag\"\n data-country={code}\n className={className}\n draggable={false}\n {...rest}\n />\n );\n },\n);\n\nFlagView.displayName = 'FlagView';\n"],"names":["__vite_glob_0_0","__vite_glob_0_1","__vite_glob_0_2","__vite_glob_0_3","__vite_glob_0_4","__vite_glob_0_5","__vite_glob_0_6","__vite_glob_0_7","__vite_glob_0_8","__vite_glob_0_9","__vite_glob_0_10","__vite_glob_0_11","__vite_glob_0_12","__vite_glob_0_13","__vite_glob_0_14","__vite_glob_0_15","__vite_glob_0_16","__vite_glob_0_17","__vite_glob_1_0","__vite_glob_1_1","__vite_glob_1_2","__vite_glob_1_3","__vite_glob_1_4","__vite_glob_1_5","__vite_glob_1_6","__vite_glob_1_7","__vite_glob_1_8","__vite_glob_1_9","__vite_glob_1_10","__vite_glob_1_11","__vite_glob_1_12","__vite_glob_1_13","__vite_glob_1_14","__vite_glob_1_15","__vite_glob_1_16","__vite_glob_1_17","buildFlagMap","raw","out","path","url","match","safeFlagGlob","glob","flagVariants","cva","flagClasses","variants","className","FlagView","forwardRef","code","src","label","rest","ref","jsx"],"mappings":";;;AAAA,MAAAA,IAAe,4/BCAfC,IAAe,2vBCAfC,IAAe,8PCAfC,IAAe,8uBCAfC,IAAe,gRCAfC,IAAe,igCCAfC,IAAe,obCAfC,IAAe,kkCCAfC,IAAe,yRCAfC,IAAe,iOCAfC,IAAe,gRCAfC,IAAe,wNCAfC,IAAe,4dCAfC,IAAe,mUCAfC,IAAe,+WCAfC,IAAe,8jJCAfC,IAAe,0RCAfC,IAAe,8jBCAfC,IAAe,6/BCAfC,IAAe,+vBCAfC,IAAe,iQCAfC,IAAe,+uBCAfC,IAAe,mRCAfC,IAAe,ogCCAfC,IAAe,ubCAfC,IAAe,qkCCAfC,IAAe,4RCAfC,IAAe,oOCAfC,IAAe,mRCAfC,IAAe,2NCAfC,IAAe,geCAfC,IAAe,4UCAfC,IAAe,wXCAfC,IAAe,ikJCAfC,IAAe,kSCAfC,IAAe;ACsBf,SAASC,EAAaC,GAA2C;AAC/D,QAAMC,IAAoB,CAAA;AAC1B,aAAW,CAACC,GAAMC,CAAG,KAAK,OAAO,QAAQH,CAAG,GAAG;AAC7C,UAAMI,IAAQF,EAAK,MAAM,gCAAgC;AACzD,IAAIE,MAAOH,EAAIG,EAAM,CAAC,CAAC,IAAID;AAAA,EAC7B;AACA,SAAOF;AACT;AAUO,SAASI,EAAaC,GAAkD;AAC7E,MAAI;AACF,WAAOP,EAAaO,GAAM;AAAA,EAC5B,QAAQ;AACN,WAAO,CAAA;AAAA,EACT;AACF;AAEO,MAAMC,IAAeC;AAAA,EAC1B;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA;AAAA,EAAA,EACA,KAAK,GAAG;AAAA,EACV;AAAA,IACE,UAAU;AAAA,MACR,OAAO;AAAA,QACL,WAAW;AAAA,QACX,QAAQ;AAAA,MAAA;AA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on-button-C_kbcd7I.js";
6
6
  import { I as N } from "./icon-button-group-BLHPN6jg.js";
7
7
  import { D as r } from "./dropdown-menu-DU-Hrf33.js";
8
8
  import { S as j } from "./switch-OILsBLWo.js";
9
- import { c as y, a as H, L as R } from "./locale-picker-EyvPrwDc.js";
9
+ import { c as y, a as H, L as R } from "./locale-picker-BfBUdT1m.js";
10
10
  import { u as P } from "./use-locale-BkCIHujH.js";
11
11
  import { u as _ } from "./use-theme-CAuo6EYT.js";
12
12
  import { u as O } from "./registry-DvAUVLHh.js";
@@ -281,4 +281,4 @@ W.displayName = "HeaderSettings";
281
281
  export {
282
282
  W as H
283
283
  };
284
- //# sourceMappingURL=header-settings-CLwFqMHI.js.map
284
+ //# sourceMappingURL=header-settings--pjYOe6g.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"header-settings-CLwFqMHI.js","sources":["../../src/components/header-settings/header-settings.agent.ts","../../src/components/header-settings/header-settings.tsx"],"sourcesContent":["/* -------------------------------------------------------------------- */\n/* Agent adapter — HeaderSettings. */\n/* -------------------------------------------------------------------- */\n\nimport type { AgentAdapter } from '../../agent/types';\nimport type { HeaderSettingsHandle } from './header-settings';\n\nexport const headerSettingsAgent: AgentAdapter<HeaderSettingsHandle> = {\n id: 'header-settings',\n // Each setter persists a single preference value (locale / theme /\n // accessibility) — `set_value` semantics, not an ephemeral view switch.\n capabilities: ['set_value'],\n state: {},\n actions: {\n set_locale: {\n safety: 'write',\n argsType: '{ locale: string }',\n argsSchema: {\n type: 'object',\n properties: {\n locale: {\n type: 'string',\n description:\n 'IETF language tag (e.g. \"en\", \"it\", \"ar\"). Unknown tags are silently dropped.',\n },\n },\n required: ['locale'],\n },\n idempotent: true,\n descriptionKey: 'ui.agent.headerSettings.actions.setLocale',\n description: 'Switch the active locale to the given IETF tag.',\n examples: [{ args: { locale: 'it' }, note: 'Switch to Italian.' }],\n invoke: (handle, args: { locale: string }) => {\n // Validation happens inside the handle so the agent surface\n // accepts arbitrary tags and silently drops unknown ones.\n handle.setLocale(args.locale);\n },\n },\n set_theme: {\n safety: 'write',\n argsType: '{ theme: \"light\" | \"dark\" | \"system\" }',\n argsSchema: {\n type: 'object',\n properties: { theme: { enum: ['light', 'dark', 'system'] } },\n required: ['theme'],\n },\n idempotent: true,\n descriptionKey: 'ui.agent.headerSettings.actions.setTheme',\n description: 'Switch the theme preference.',\n examples: [\n { args: { theme: 'dark' }, note: 'Switch to the dark theme.' },\n ],\n invoke: (handle, args: { theme: 'light' | 'dark' | 'system' }) => {\n handle.setTheme(args.theme);\n },\n },\n set_accessibility: {\n safety: 'write',\n argsType: '{ accessibility: \"default\" | \"accessible\" }',\n argsSchema: {\n type: 'object',\n properties: { accessibility: { enum: ['default', 'accessible'] } },\n required: ['accessibility'],\n },\n idempotent: true,\n descriptionKey: 'ui.agent.headerSettings.actions.setAccessibility',\n description: 'Switch the accessibility preference.',\n examples: [\n {\n args: { accessibility: 'accessible' },\n note: 'Enable the AAA-accessible profile.',\n },\n ],\n invoke: (handle, args: { accessibility: 'default' | 'accessible' }) => {\n handle.setAccessibility(args.accessibility);\n },\n },\n },\n domHooks: {\n root: {\n attr: 'data-component',\n value: 'header-settings',\n description: 'Marks the HeaderSettings wrapper.',\n },\n instanceId: {\n attr: 'data-component-id',\n sourceProp: 'id',\n description: 'Sourced from the id prop (forwarded via HTMLAttributes).',\n },\n },\n};\n","import {\n forwardRef,\n useCallback,\n useImperativeHandle,\n useMemo,\n useRef,\n type HTMLAttributes,\n} from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { useTranslation } from 'react-i18next';\nimport { Monitor, Moon, Settings, Sun } from 'lucide-react';\nimport { IconButton } from '../button/icon-button';\nimport { IconButtonGroup } from '../icon-button-group/icon-button-group';\nimport { DropdownMenu } from '../dropdown-menu/dropdown-menu';\nimport { Switch } from '../switch/switch';\nimport {\n LocalePicker,\n LOCALE_STORAGE_KEY,\n} from '../locale-picker/locale-picker';\nimport {\n useTheme,\n type AccessibilityPreference,\n type ThemePreference,\n} from '../../hooks';\nimport { useLocale } from '../../hooks/use-locale';\nimport { LOCALE_META, type Locale } from '../../i18n/locale-meta';\nimport { useAgentRegistration } from '../../agent/registry';\nimport { headerSettingsAgent } from './header-settings.agent';\n\nfunction safeWriteStorage(key: string, value: string): void {\n if (typeof window === 'undefined') return;\n try {\n window.localStorage.setItem(key, value);\n } catch {\n /* Storage can throw in private mode — silent-fail per use-theme.ts. */\n }\n}\n\nfunction applyDocumentAttrs(locale: Locale): void {\n if (typeof document === 'undefined') return;\n const root = document.documentElement;\n root.lang = locale;\n root.dir = LOCALE_META[locale].dir;\n}\n\n/* ------------------------------------------------------------------ */\n/* CVA */\n/* ------------------------------------------------------------------ */\n\nconst wrapperVariants = cva('ds:inline-flex ds:items-center', {\n variants: {\n align: {\n start: '',\n end: '',\n },\n },\n defaultVariants: { align: 'end' },\n});\n\nconst dropdownContentClasses = [\n 'ds:w-[20rem] ds:p-[var(--spacing-xs)]',\n 'ds:rounded-[var(--radius-md)] ds:border ds:border-border',\n 'ds:bg-background ds:text-foreground ds:shadow-[var(--shadow-lg)]',\n].join(' ');\n\n/* ------------------------------------------------------------------ */\n/* Public types */\n/* ------------------------------------------------------------------ */\n\nexport interface HeaderSettingsProps\n extends\n Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>,\n VariantProps<typeof wrapperVariants> {\n /** Anchor side for the dropdown. Defaults to `end` (matches LTR + RTL). */\n align?: 'start' | 'end';\n /**\n * Size of the cog trigger only. Forwards to the underlying\n * `IconButton`. Defaults to `md` to preserve the existing visual.\n * Use `sm` when composing alongside other `<Button size=\"sm\">`\n * actions in a header row — keeps the visual rhythm consistent.\n *\n * The internal dropdown chrome (Appearance toggle group, locale\n * picker, accessibility switch) stays at kit defaults regardless\n * — this prop only sizes the trigger.\n */\n size?: 'sm' | 'md' | 'lg';\n /** Disable the trigger entirely. */\n disabled?: boolean;\n}\n\nexport interface HeaderSettingsHandle {\n /**\n * Switch the active locale. Widened to `string` (vs. `Locale`) so\n * agent surfaces with untyped inputs can call through without\n * extra casting — invalid tags no-op silently.\n */\n setLocale: (next: string) => void;\n setTheme: (next: ThemePreference) => void;\n setAccessibility: (next: AccessibilityPreference) => void;\n}\n\n/* ------------------------------------------------------------------ */\n/* HeaderSettings */\n/* */\n/* Single button → single DropdownMenu surface. Inside the menu, the */\n/* \"Language\" section embeds `LocalePicker.SearchList` (the kit's */\n/* searchable list without its own trigger / popover) and the */\n/* \"Appearance\" section mirrors `ThemeToggle`'s menu-variant internals */\n/* using `DropdownMenu.RadioGroup` + `CheckboxItem`. Both sections */\n/* read/write the same hooks (`useLocale`, `useTheme`) that the */\n/* standalone components use, so there's no state duplication. */\n/* ------------------------------------------------------------------ */\n\nexport const HeaderSettings = forwardRef<HTMLDivElement, HeaderSettingsProps>(\n (props, ref) => {\n const {\n align = 'end',\n size = 'md',\n disabled = false,\n className,\n id,\n ...rest\n } = props as HeaderSettingsProps & { id?: string };\n\n const { t } = useTranslation();\n const theme = useTheme();\n const { setLocale: setLocaleI18n } = useLocale();\n\n const forwardedRef = useRef<HTMLDivElement | null>(null);\n useImperativeHandle(ref, () => forwardedRef.current as HTMLDivElement, []);\n\n // Same side-effect chain as LocalePicker's internal helper:\n // i18next.changeLanguage → document.dir/lang → persist.\n // Inlined here (rather than exported from locale-picker) because\n // it's three small calls; the LocalePicker.SearchList component\n // continues to own its own copy for inline use, and both apply\n // the same persistence key (`alfadocs-ui.locale`) so a write from\n // either path is visible to the other on next mount.\n const setLocaleWithPersistence = useCallback(\n (next: Locale) => {\n void setLocaleI18n(next);\n applyDocumentAttrs(next);\n safeWriteStorage(LOCALE_STORAGE_KEY, next);\n },\n [setLocaleI18n],\n );\n const setLocaleRef = useRef(setLocaleWithPersistence);\n setLocaleRef.current = setLocaleWithPersistence;\n\n const themeRef = useRef(theme);\n themeRef.current = theme;\n const agentHandle = useMemo<HeaderSettingsHandle>(\n () => ({\n setLocale: (next: string) => {\n // Mirrors LocalePicker's gating — silently drop unknown tags\n // rather than crash mid-cascade. `LOCALES_WITH_BUNDLES` is\n // re-imported via the LOCALE_META keys so this file doesn't\n // need the resources module on the build-agent-catalog path.\n if (Object.prototype.hasOwnProperty.call(LOCALE_META, next)) {\n setLocaleRef.current(next as Locale);\n }\n },\n setTheme: (next) => themeRef.current.setTheme(next),\n setAccessibility: (next) => themeRef.current.setAccessibility(next),\n }),\n [],\n );\n useAgentRegistration(headerSettingsAgent, agentHandle, id);\n\n const accessibleChecked = theme.accessibility === 'accessible';\n\n return (\n <div\n ref={forwardedRef}\n data-component=\"header-settings\"\n data-component-id={id}\n className={wrapperVariants({ align, className })}\n {...rest}\n >\n <DropdownMenu.Root>\n <DropdownMenu.Trigger asChild>\n <IconButton\n size={size}\n disabled={disabled}\n icon={<Settings aria-hidden />}\n aria-label={t('navigation.headerSettings.trigger')}\n />\n </DropdownMenu.Trigger>\n <DropdownMenu.Portal>\n <DropdownMenu.Content\n align={align}\n sideOffset={8}\n className={dropdownContentClasses}\n // Search input inside the menu owns its own keyboard\n // capture (cmdk). Stop Radix Menu's typeahead from\n // intercepting letters typed into the search field —\n // `onKeyDownCapture` runs before the menu's listener.\n onKeyDownCapture={(event) => {\n const target = event.target as HTMLElement | null;\n if (\n target?.tagName === 'INPUT' &&\n // Always allow Escape so the menu can close.\n event.key !== 'Escape'\n ) {\n event.stopPropagation();\n }\n }}\n >\n <DropdownMenu.Label>\n {t('navigation.headerSettings.language.label')}\n </DropdownMenu.Label>\n {/* Render the kit's compact LocalePicker (its own\n Popover trigger + content). Clicking the trigger\n opens a nested popover containing the full\n searchable list — the HeaderSettings menu stays\n open behind it so the user can return to Appearance\n / Accessibility without re-opening.\n\n Wrapped in `role=\"group\"` so the menu's\n `aria-required-children` rule sees a permitted child\n role (the LocalePicker compact button alone would\n appear as a raw button child of `role=\"menu\"`). */}\n <div\n role=\"group\"\n aria-label={t('navigation.headerSettings.language.label')}\n className={[\n 'ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]',\n // Stretch the compact LocalePicker to the full menu\n // width so it reads as a single row affordance (not\n // a centred pill). The picker's root is\n // inline-flex; the `*:` child selector + `flex-1`\n // gives it `flex: 1 1 0%` once it's a child of the\n // flex container we make this div into.\n 'ds:flex ds:[&>*]:flex-1',\n ].join(' ')}\n >\n {/* `popoverSide=\"end\"` opens the nested search popover\n as a side-flyout (inline-end, RTL-aware) rather\n than below the compact row — without this the\n nested popover stacks under the trigger inside the\n outer DropdownMenu and the two surfaces visually\n merge. Radix Popover auto-flips to the opposite\n side if there's no viewport room. */}\n <LocalePicker variant=\"compact\" popoverSide=\"end\" />\n </div>\n\n <DropdownMenu.Separator />\n\n <DropdownMenu.Label>\n {t('navigation.headerSettings.appearance.label')}\n </DropdownMenu.Label>\n {/* Horizontal segmented toggle (mirrors ThemeToggle's\n `split` variant) instead of stacked radio rows — uses\n fewer rows of menu real estate and reads as a single\n control. `role=\"radiogroup\"` keeps the screen-reader\n semantics correct, and the group is wrapped in\n `role=\"group\"` for the same reason the language\n search-list wrapper is — the menu's\n aria-required-children doesn't permit raw IconButtons\n as direct menu descendants. */}\n <div\n role=\"group\"\n aria-label={t('navigation.headerSettings.appearance.label')}\n className=\"ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]\"\n >\n <IconButtonGroup\n role=\"radiogroup\"\n mode=\"toggle-single\"\n size=\"sm\"\n aria-label={t('navigation.headerSettings.appearance.label')}\n value={theme.theme}\n onValueChange={(next) =>\n theme.setTheme(next as ThemePreference)\n }\n >\n <IconButton\n icon={<Sun aria-hidden />}\n aria-label={t('navigation.headerSettings.appearance.light')}\n value=\"light\"\n />\n <IconButton\n icon={<Moon aria-hidden />}\n aria-label={t('navigation.headerSettings.appearance.dark')}\n value=\"dark\"\n />\n <IconButton\n icon={<Monitor aria-hidden />}\n aria-label={t(\n 'navigation.headerSettings.appearance.system',\n )}\n value=\"system\"\n />\n </IconButtonGroup>\n </div>\n\n <DropdownMenu.Separator />\n\n {/* Accessible-mode toggle uses the kit's Switch primitive\n for a clearer visual affordance than a checkbox tick.\n Rendered inside a `presentation` row (not a\n DropdownMenu.CheckboxItem) — the Switch is focusable\n via Tab while the menu is open, so keyboard users\n still reach it; arrow keys keep moving between the\n three theme radios above without falling into the\n switch's roving collection.\n\n When the switch flips, `setAccessibility` writes\n through useTheme (the same store the standalone\n ThemeToggle uses) so document.documentElement gets\n the `theme-accessible` class instantly — including\n swapping `--font-sans` to Lexend for Latin scripts\n (see src/tokens/index.css). */}\n {/* `role=\"group\"` so the menu's `aria-required-children`\n (which only permits menuitem* / group / separator /\n menu inside `role=\"menu\"`) is satisfied — the Switch's\n `role=\"switch\"` would be a forbidden direct child of\n the menu. `aria-label` names the group so SR users\n hear \"Accessibility toggle, group\". */}\n <div\n role=\"group\"\n aria-label={t(\n 'navigation.headerSettings.appearance.accessible',\n )}\n className=\"ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)]\"\n >\n <Switch\n label={t('navigation.headerSettings.appearance.accessible')}\n labelSide=\"start\"\n size=\"sm\"\n checked={accessibleChecked}\n onCheckedChange={(next) =>\n theme.setAccessibility(next ? 'accessible' : 'default')\n }\n />\n </div>\n </DropdownMenu.Content>\n </DropdownMenu.Portal>\n </DropdownMenu.Root>\n </div>\n );\n },\n);\n\nHeaderSettings.displayName = 'HeaderSettings';\n"],"names":["headerSettingsAgent","handle","args","safeWriteStorage","key","value","applyDocumentAttrs","locale","root","LOCALE_META","wrapperVariants","cva","dropdownContentClasses","HeaderSettings","forwardRef","props","ref","align","size","disabled","className","id","rest","t","useTranslation","theme","useTheme","setLocaleI18n","useLocale","forwardedRef","useRef","useImperativeHandle","setLocaleWithPersistence","useCallback","next","LOCALE_STORAGE_KEY","setLocaleRef","themeRef","agentHandle","useMemo","useAgentRegistration","accessibleChecked","jsx","jsxs","DropdownMenu","IconButton","Settings","event","target","LocalePicker","IconButtonGroup","Sun","Moon","Monitor","Switch"],"mappings":";;;;;;;;;;;;;;;AAOO,MAAMA,IAA0D;AAAA,EACrE,IA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F;AAAA,QAAA,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AAEArB,EAAe,cAAc;"}
1
+ {"version":3,"file":"header-settings--pjYOe6g.js","sources":["../../src/components/header-settings/header-settings.agent.ts","../../src/components/header-settings/header-settings.tsx"],"sourcesContent":["/* -------------------------------------------------------------------- */\n/* Agent adapter — HeaderSettings. */\n/* -------------------------------------------------------------------- */\n\nimport type { AgentAdapter } from '../../agent/types';\nimport type { HeaderSettingsHandle } from './header-settings';\n\nexport const headerSettingsAgent: AgentAdapter<HeaderSettingsHandle> = {\n id: 'header-settings',\n // Each setter persists a single preference value (locale / theme /\n // accessibility) — `set_value` semantics, not an ephemeral view switch.\n capabilities: ['set_value'],\n state: {},\n actions: {\n set_locale: {\n safety: 'write',\n argsType: '{ locale: string }',\n argsSchema: {\n type: 'object',\n properties: {\n locale: {\n type: 'string',\n description:\n 'IETF language tag (e.g. \"en\", \"it\", \"ar\"). Unknown tags are silently dropped.',\n },\n },\n required: ['locale'],\n },\n idempotent: true,\n descriptionKey: 'ui.agent.headerSettings.actions.setLocale',\n description: 'Switch the active locale to the given IETF tag.',\n examples: [{ args: { locale: 'it' }, note: 'Switch to Italian.' }],\n invoke: (handle, args: { locale: string }) => {\n // Validation happens inside the handle so the agent surface\n // accepts arbitrary tags and silently drops unknown ones.\n handle.setLocale(args.locale);\n },\n },\n set_theme: {\n safety: 'write',\n argsType: '{ theme: \"light\" | \"dark\" | \"system\" }',\n argsSchema: {\n type: 'object',\n properties: { theme: { enum: ['light', 'dark', 'system'] } },\n required: ['theme'],\n },\n idempotent: true,\n descriptionKey: 'ui.agent.headerSettings.actions.setTheme',\n description: 'Switch the theme preference.',\n examples: [\n { args: { theme: 'dark' }, note: 'Switch to the dark theme.' },\n ],\n invoke: (handle, args: { theme: 'light' | 'dark' | 'system' }) => {\n handle.setTheme(args.theme);\n },\n },\n set_accessibility: {\n safety: 'write',\n argsType: '{ accessibility: \"default\" | \"accessible\" }',\n argsSchema: {\n type: 'object',\n properties: { accessibility: { enum: ['default', 'accessible'] } },\n required: ['accessibility'],\n },\n idempotent: true,\n descriptionKey: 'ui.agent.headerSettings.actions.setAccessibility',\n description: 'Switch the accessibility preference.',\n examples: [\n {\n args: { accessibility: 'accessible' },\n note: 'Enable the AAA-accessible profile.',\n },\n ],\n invoke: (handle, args: { accessibility: 'default' | 'accessible' }) => {\n handle.setAccessibility(args.accessibility);\n },\n },\n },\n domHooks: {\n root: {\n attr: 'data-component',\n value: 'header-settings',\n description: 'Marks the HeaderSettings wrapper.',\n },\n instanceId: {\n attr: 'data-component-id',\n sourceProp: 'id',\n description: 'Sourced from the id prop (forwarded via HTMLAttributes).',\n },\n },\n};\n","import {\n forwardRef,\n useCallback,\n useImperativeHandle,\n useMemo,\n useRef,\n type HTMLAttributes,\n} from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { useTranslation } from 'react-i18next';\nimport { Monitor, Moon, Settings, Sun } from 'lucide-react';\nimport { IconButton } from '../button/icon-button';\nimport { IconButtonGroup } from '../icon-button-group/icon-button-group';\nimport { DropdownMenu } from '../dropdown-menu/dropdown-menu';\nimport { Switch } from '../switch/switch';\nimport {\n LocalePicker,\n LOCALE_STORAGE_KEY,\n} from '../locale-picker/locale-picker';\nimport {\n useTheme,\n type AccessibilityPreference,\n type ThemePreference,\n} from '../../hooks';\nimport { useLocale } from '../../hooks/use-locale';\nimport { LOCALE_META, type Locale } from '../../i18n/locale-meta';\nimport { useAgentRegistration } from '../../agent/registry';\nimport { headerSettingsAgent } from './header-settings.agent';\n\nfunction safeWriteStorage(key: string, value: string): void {\n if (typeof window === 'undefined') return;\n try {\n window.localStorage.setItem(key, value);\n } catch {\n /* Storage can throw in private mode — silent-fail per use-theme.ts. */\n }\n}\n\nfunction applyDocumentAttrs(locale: Locale): void {\n if (typeof document === 'undefined') return;\n const root = document.documentElement;\n root.lang = locale;\n root.dir = LOCALE_META[locale].dir;\n}\n\n/* ------------------------------------------------------------------ */\n/* CVA */\n/* ------------------------------------------------------------------ */\n\nconst wrapperVariants = cva('ds:inline-flex ds:items-center', {\n variants: {\n align: {\n start: '',\n end: '',\n },\n },\n defaultVariants: { align: 'end' },\n});\n\nconst dropdownContentClasses = [\n 'ds:w-[20rem] ds:p-[var(--spacing-xs)]',\n 'ds:rounded-[var(--radius-md)] ds:border ds:border-border',\n 'ds:bg-background ds:text-foreground ds:shadow-[var(--shadow-lg)]',\n].join(' ');\n\n/* ------------------------------------------------------------------ */\n/* Public types */\n/* ------------------------------------------------------------------ */\n\nexport interface HeaderSettingsProps\n extends\n Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>,\n VariantProps<typeof wrapperVariants> {\n /** Anchor side for the dropdown. Defaults to `end` (matches LTR + RTL). */\n align?: 'start' | 'end';\n /**\n * Size of the cog trigger only. Forwards to the underlying\n * `IconButton`. Defaults to `md` to preserve the existing visual.\n * Use `sm` when composing alongside other `<Button size=\"sm\">`\n * actions in a header row — keeps the visual rhythm consistent.\n *\n * The internal dropdown chrome (Appearance toggle group, locale\n * picker, accessibility switch) stays at kit defaults regardless\n * — this prop only sizes the trigger.\n */\n size?: 'sm' | 'md' | 'lg';\n /** Disable the trigger entirely. */\n disabled?: boolean;\n}\n\nexport interface HeaderSettingsHandle {\n /**\n * Switch the active locale. Widened to `string` (vs. `Locale`) so\n * agent surfaces with untyped inputs can call through without\n * extra casting — invalid tags no-op silently.\n */\n setLocale: (next: string) => void;\n setTheme: (next: ThemePreference) => void;\n setAccessibility: (next: AccessibilityPreference) => void;\n}\n\n/* ------------------------------------------------------------------ */\n/* HeaderSettings */\n/* */\n/* Single button → single DropdownMenu surface. Inside the menu, the */\n/* \"Language\" section embeds `LocalePicker.SearchList` (the kit's */\n/* searchable list without its own trigger / popover) and the */\n/* \"Appearance\" section mirrors `ThemeToggle`'s menu-variant internals */\n/* using `DropdownMenu.RadioGroup` + `CheckboxItem`. Both sections */\n/* read/write the same hooks (`useLocale`, `useTheme`) that the */\n/* standalone components use, so there's no state duplication. */\n/* ------------------------------------------------------------------ */\n\nexport const HeaderSettings = forwardRef<HTMLDivElement, HeaderSettingsProps>(\n (props, ref) => {\n const {\n align = 'end',\n size = 'md',\n disabled = false,\n className,\n id,\n ...rest\n } = props as HeaderSettingsProps & { id?: string };\n\n const { t } = useTranslation();\n const theme = useTheme();\n const { setLocale: setLocaleI18n } = useLocale();\n\n const forwardedRef = useRef<HTMLDivElement | null>(null);\n useImperativeHandle(ref, () => forwardedRef.current as HTMLDivElement, []);\n\n // Same side-effect chain as LocalePicker's internal helper:\n // i18next.changeLanguage → document.dir/lang → persist.\n // Inlined here (rather than exported from locale-picker) because\n // it's three small calls; the LocalePicker.SearchList component\n // continues to own its own copy for inline use, and both apply\n // the same persistence key (`alfadocs-ui.locale`) so a write from\n // either path is visible to the other on next mount.\n const setLocaleWithPersistence = useCallback(\n (next: Locale) => {\n void setLocaleI18n(next);\n applyDocumentAttrs(next);\n safeWriteStorage(LOCALE_STORAGE_KEY, next);\n },\n [setLocaleI18n],\n );\n const setLocaleRef = useRef(setLocaleWithPersistence);\n setLocaleRef.current = setLocaleWithPersistence;\n\n const themeRef = useRef(theme);\n themeRef.current = theme;\n const agentHandle = useMemo<HeaderSettingsHandle>(\n () => ({\n setLocale: (next: string) => {\n // Mirrors LocalePicker's gating — silently drop unknown tags\n // rather than crash mid-cascade. `LOCALES_WITH_BUNDLES` is\n // re-imported via the LOCALE_META keys so this file doesn't\n // need the resources module on the build-agent-catalog path.\n if (Object.prototype.hasOwnProperty.call(LOCALE_META, next)) {\n setLocaleRef.current(next as Locale);\n }\n },\n setTheme: (next) => themeRef.current.setTheme(next),\n setAccessibility: (next) => themeRef.current.setAccessibility(next),\n }),\n [],\n );\n useAgentRegistration(headerSettingsAgent, agentHandle, id);\n\n const accessibleChecked = theme.accessibility === 'accessible';\n\n return (\n <div\n ref={forwardedRef}\n data-component=\"header-settings\"\n data-component-id={id}\n className={wrapperVariants({ align, className })}\n {...rest}\n >\n <DropdownMenu.Root>\n <DropdownMenu.Trigger asChild>\n <IconButton\n size={size}\n disabled={disabled}\n icon={<Settings aria-hidden />}\n aria-label={t('navigation.headerSettings.trigger')}\n />\n </DropdownMenu.Trigger>\n <DropdownMenu.Portal>\n <DropdownMenu.Content\n align={align}\n sideOffset={8}\n className={dropdownContentClasses}\n // Search input inside the menu owns its own keyboard\n // capture (cmdk). Stop Radix Menu's typeahead from\n // intercepting letters typed into the search field —\n // `onKeyDownCapture` runs before the menu's listener.\n onKeyDownCapture={(event) => {\n const target = event.target as HTMLElement | null;\n if (\n target?.tagName === 'INPUT' &&\n // Always allow Escape so the menu can close.\n event.key !== 'Escape'\n ) {\n event.stopPropagation();\n }\n }}\n >\n <DropdownMenu.Label>\n {t('navigation.headerSettings.language.label')}\n </DropdownMenu.Label>\n {/* Render the kit's compact LocalePicker (its own\n Popover trigger + content). Clicking the trigger\n opens a nested popover containing the full\n searchable list — the HeaderSettings menu stays\n open behind it so the user can return to Appearance\n / Accessibility without re-opening.\n\n Wrapped in `role=\"group\"` so the menu's\n `aria-required-children` rule sees a permitted child\n role (the LocalePicker compact button alone would\n appear as a raw button child of `role=\"menu\"`). */}\n <div\n role=\"group\"\n aria-label={t('navigation.headerSettings.language.label')}\n className={[\n 'ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]',\n // Stretch the compact LocalePicker to the full menu\n // width so it reads as a single row affordance (not\n // a centred pill). The picker's root is\n // inline-flex; the `*:` child selector + `flex-1`\n // gives it `flex: 1 1 0%` once it's a child of the\n // flex container we make this div into.\n 'ds:flex ds:[&>*]:flex-1',\n ].join(' ')}\n >\n {/* `popoverSide=\"end\"` opens the nested search popover\n as a side-flyout (inline-end, RTL-aware) rather\n than below the compact row — without this the\n nested popover stacks under the trigger inside the\n outer DropdownMenu and the two surfaces visually\n merge. Radix Popover auto-flips to the opposite\n side if there's no viewport room. */}\n <LocalePicker variant=\"compact\" popoverSide=\"end\" />\n </div>\n\n <DropdownMenu.Separator />\n\n <DropdownMenu.Label>\n {t('navigation.headerSettings.appearance.label')}\n </DropdownMenu.Label>\n {/* Horizontal segmented toggle (mirrors ThemeToggle's\n `split` variant) instead of stacked radio rows — uses\n fewer rows of menu real estate and reads as a single\n control. `role=\"radiogroup\"` keeps the screen-reader\n semantics correct, and the group is wrapped in\n `role=\"group\"` for the same reason the language\n search-list wrapper is — the menu's\n aria-required-children doesn't permit raw IconButtons\n as direct menu descendants. */}\n <div\n role=\"group\"\n aria-label={t('navigation.headerSettings.appearance.label')}\n className=\"ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]\"\n >\n <IconButtonGroup\n role=\"radiogroup\"\n mode=\"toggle-single\"\n size=\"sm\"\n aria-label={t('navigation.headerSettings.appearance.label')}\n value={theme.theme}\n onValueChange={(next) =>\n theme.setTheme(next as ThemePreference)\n }\n >\n <IconButton\n icon={<Sun aria-hidden />}\n aria-label={t('navigation.headerSettings.appearance.light')}\n value=\"light\"\n />\n <IconButton\n icon={<Moon aria-hidden />}\n aria-label={t('navigation.headerSettings.appearance.dark')}\n value=\"dark\"\n />\n <IconButton\n icon={<Monitor aria-hidden />}\n aria-label={t(\n 'navigation.headerSettings.appearance.system',\n )}\n value=\"system\"\n />\n </IconButtonGroup>\n </div>\n\n <DropdownMenu.Separator />\n\n {/* Accessible-mode toggle uses the kit's Switch primitive\n for a clearer visual affordance than a checkbox tick.\n Rendered inside a `presentation` row (not a\n DropdownMenu.CheckboxItem) — the Switch is focusable\n via Tab while the menu is open, so keyboard users\n still reach it; arrow keys keep moving between the\n three theme radios above without falling into the\n switch's roving collection.\n\n When the switch flips, `setAccessibility` writes\n through useTheme (the same store the standalone\n ThemeToggle uses) so document.documentElement gets\n the `theme-accessible` class instantly — including\n swapping `--font-sans` to Lexend for Latin scripts\n (see src/tokens/index.css). */}\n {/* `role=\"group\"` so the menu's `aria-required-children`\n (which only permits menuitem* / group / separator /\n menu inside `role=\"menu\"`) is satisfied — the Switch's\n `role=\"switch\"` would be a forbidden direct child of\n the menu. `aria-label` names the group so SR users\n hear \"Accessibility toggle, group\". */}\n <div\n role=\"group\"\n aria-label={t(\n 'navigation.headerSettings.appearance.accessible',\n )}\n className=\"ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)]\"\n >\n <Switch\n label={t('navigation.headerSettings.appearance.accessible')}\n labelSide=\"start\"\n size=\"sm\"\n checked={accessibleChecked}\n onCheckedChange={(next) =>\n theme.setAccessibility(next ? 'accessible' : 'default')\n }\n />\n </div>\n </DropdownMenu.Content>\n </DropdownMenu.Portal>\n </DropdownMenu.Root>\n </div>\n );\n },\n);\n\nHeaderSettings.displayName = 'HeaderSettings';\n"],"names":["headerSettingsAgent","handle","args","safeWriteStorage","key","value","applyDocumentAttrs","locale","root","LOCALE_META","wrapperVariants","cva","dropdownContentClasses","HeaderSettings","forwardRef","props","ref","align","size","disabled","className","id","rest","t","useTranslation","theme","useTheme","setLocaleI18n","useLocale","forwardedRef","useRef","useImperativeHandle","setLocaleWithPersistence","useCallback","next","LOCALE_STORAGE_KEY","setLocaleRef","themeRef","agentHandle","useMemo","useAgentRegistration","accessibleChecked","jsx","jsxs","DropdownMenu","IconButton","Settings","event","target","LocalePicker","IconButtonGroup","Sun","Moon","Monitor","Switch"],"mappings":";;;;;;;;;;;;;;;AAOO,MAAMA,IAA0D;AAAA,EACrE,IAAI;AAAA;AAAA;AAAA,EAGJ,cAAc,CAAC,WAAW;AAAA,EAC1B,OAAO,CAAA;AAAA,EACP,SAAS;AAAA,IACP,YAAY;AAAA,MACV,QAAQ;AAAA,MACR,UAAU;AAAA,MACV,YAAY;AAAA,QACV,MAAM;AAAA,QACN,YAAY;AAAA,UACV,QAAQ;AAAA,YACN,MAAM;AAAA,YACN,aACE;AAAA,UAAA;AAAA,QACJ;AAAA,QAEF,UAAU,CAAC,QAAQ;AAAA,MAAA;AAAA,MAErB,YAAY;AAAA,MACZ,gBAAgB;AAAA,MAChB,aAAa;AAAA,MACb,UAAU,CAAC,EAAE,MAAM,EAAE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