@iamfiro/design 0.3.4 → 0.3.5

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 (158) hide show
  1. package/agents/app-shell/AGENTS.md +99 -1
  2. package/lib/components/Accordion/Accordion2.js +93 -93
  3. package/lib/components/ActionBar/ActionBar2.js +44 -40
  4. package/lib/components/Alert/Alert2.js +64 -64
  5. package/lib/components/AppShell/AppShell2.js +73 -66
  6. package/lib/components/AreaChart/AreaChart.js +49 -47
  7. package/lib/components/BarChart/BarChart2.js +107 -107
  8. package/lib/components/BarList/BarList2.js +99 -99
  9. package/lib/components/Breadcrumb/Breadcrumb2.js +53 -56
  10. package/lib/components/Calendar/Calendar2.js +164 -164
  11. package/lib/components/Calendar/DatePicker2.js +76 -77
  12. package/lib/components/Calendar/date.js +49 -70
  13. package/lib/components/Card/Card2.js +104 -77
  14. package/lib/components/CardFrame/CardFrame2.js +46 -42
  15. package/lib/components/Chart/ChartParts.js +73 -73
  16. package/lib/components/Chart/chart2.js +53 -53
  17. package/lib/components/Chart/useChartInteraction.js +49 -49
  18. package/lib/components/ChatBubble/ChatBubble2.js +118 -118
  19. package/lib/components/ChatBubble/formatChatTime.js +42 -41
  20. package/lib/components/ChatComposer/ChatComposer2.js +102 -102
  21. package/lib/components/CodeBlock/CodeBlock2.js +51 -51
  22. package/lib/components/CodeBlock/highlight.js +85 -85
  23. package/lib/components/ColorPicker/ColorPicker2.js +373 -374
  24. package/lib/components/ColorPicker/color.js +94 -94
  25. package/lib/components/ColorPicker/presets.js +47 -46
  26. package/lib/components/Combobox/Combobox2.js +118 -117
  27. package/lib/components/CommandMenu/CommandMenu.js +121 -122
  28. package/lib/components/Comment/Comment2.js +56 -81
  29. package/lib/components/ContextMenu/ContextMenu2.js +91 -93
  30. package/lib/components/DataGrid/DataGrid2.js +845 -845
  31. package/lib/components/DataGrid/GridPopover.js +97 -97
  32. package/lib/components/DataGrid/anchor.js +34 -36
  33. package/lib/components/DataGrid/model.js +299 -299
  34. package/lib/components/DataGrid/panels.js +393 -393
  35. package/lib/components/DataGrid/typeMeta.js +53 -53
  36. package/lib/components/DataGrid/types.js +22 -22
  37. package/lib/components/DescriptionList/DescriptionList2.js +57 -57
  38. package/lib/components/Dialog/AlertDialog.js +56 -56
  39. package/lib/components/Dialog/Dialog2.js +68 -69
  40. package/lib/components/Dialog/modal.js +61 -57
  41. package/lib/components/Drawer/Drawer2.js +161 -161
  42. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -267
  43. package/lib/components/DropdownMenu/menuCore.js +42 -68
  44. package/lib/components/Dropzone/Dropzone2.js +81 -81
  45. package/lib/components/EmptyState/EmptyState2.js +55 -54
  46. package/lib/components/FileChip/FileChip2.js +39 -63
  47. package/lib/components/FileUpload/FileUpload.js +157 -156
  48. package/lib/components/FilterChips/FilterChips2.js +51 -51
  49. package/lib/components/FunnelChart/FunnelChart2.js +171 -171
  50. package/lib/components/FunnelChart/funnel.js +55 -57
  51. package/lib/components/Highlight/Highlight2.js +48 -48
  52. package/lib/components/HoverCard/HoverCard.js +59 -59
  53. package/lib/components/InlineDiff/InlineDiff2.js +110 -111
  54. package/lib/components/InlineDiff/diff.js +89 -89
  55. package/lib/components/InlineDiff/useDiffReview.js +63 -65
  56. package/lib/components/Kanban/Kanban2.js +424 -425
  57. package/lib/components/Kanban/KanbanCard.js +98 -73
  58. package/lib/components/Kanban/move.js +52 -49
  59. package/lib/components/LineChart/LineChart2.js +222 -222
  60. package/lib/components/List/List2.js +60 -59
  61. package/lib/components/Listbox/Listbox2.js +117 -117
  62. package/lib/components/Marker/Marker2.js +58 -59
  63. package/lib/components/Menubar/Menubar2.js +121 -123
  64. package/lib/components/MultiSelect/MultiSelect2.js +115 -115
  65. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -276
  66. package/lib/components/NoticeStack/NoticeStack2.js +98 -98
  67. package/lib/components/NumberStepper/NumberStepper2.js +67 -66
  68. package/lib/components/OtpInput/OtpInput2.js +93 -93
  69. package/lib/components/Pagination/Pagination2.js +87 -87
  70. package/lib/components/Pagination/paginationRange.js +39 -37
  71. package/lib/components/PhoneInput/PhoneInput.js +78 -78
  72. package/lib/components/PieChart/PieChart2.js +117 -117
  73. package/lib/components/PieChart/arc.js +57 -58
  74. package/lib/components/PieChart/useArcTween.js +45 -40
  75. package/lib/components/Popover/Popover2.js +73 -74
  76. package/lib/components/ProgressTracker/ProgressTracker2.js +128 -128
  77. package/lib/components/Rating/Rating2.js +95 -95
  78. package/lib/components/Resizable/Resizable2.js +86 -86
  79. package/lib/components/Resizable/layout.js +73 -73
  80. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -68
  81. package/lib/components/ScatterChart/ScatterChart2.js +172 -172
  82. package/lib/components/ScatterChart/scatter.js +55 -56
  83. package/lib/components/ScrollArea/ScrollArea2.js +130 -131
  84. package/lib/components/Select/Select2.js +86 -85
  85. package/lib/components/Sidebar/Sidebar2.js +92 -86
  86. package/lib/components/Sidebar/rail.js +43 -0
  87. package/lib/components/Skeleton/Skeleton2.js +60 -61
  88. package/lib/components/Slider/Slider2.js +73 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -55
  90. package/lib/components/SparkChart/SparkChart2.js +140 -141
  91. package/lib/components/SparkChart/spark.js +50 -48
  92. package/lib/components/Sparkbar/Sparkbar2.js +56 -56
  93. package/lib/components/SplitView/SplitView2.js +47 -46
  94. package/lib/components/Stat/Stat2.js +61 -61
  95. package/lib/components/StepList/StepList2.js +76 -76
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +85 -85
  98. package/lib/components/TagInput/TagInput2.js +217 -218
  99. package/lib/components/TimePicker/TimePicker2.js +217 -216
  100. package/lib/components/TimePicker/time.js +60 -58
  101. package/lib/components/Timeline/Timeline2.js +181 -181
  102. package/lib/components/Timeline/scale.js +60 -65
  103. package/lib/components/Toast/Toaster.js +146 -148
  104. package/lib/components/Toast/store.js +85 -85
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  106. package/lib/components/Toolbar/Toolbar2.js +120 -121
  107. package/lib/components/Tracker/Tracker2.js +79 -79
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +116 -116
  109. package/lib/components/TreeView/TreeView2.js +162 -163
  110. package/lib/hooks/timing.js +32 -35
  111. package/lib/hooks/useControllableState.js +35 -35
  112. package/lib/hooks/useCountdown.js +53 -52
  113. package/lib/hooks/useDigitInput.js +82 -81
  114. package/lib/hooks/useDismiss.js +48 -48
  115. package/lib/hooks/useElapsed.js +40 -43
  116. package/lib/hooks/useFloating.js +47 -47
  117. package/lib/hooks/useFocusTrap.js +45 -69
  118. package/lib/hooks/usePresence.js +49 -50
  119. package/lib/hooks/usePressToOpen.js +43 -43
  120. package/lib/hooks/useScrollLock.js +45 -43
  121. package/lib/hooks/useSelection.js +44 -46
  122. package/lib/index.js +105 -106
  123. package/lib/primitives/AspectRatio2.js +57 -56
  124. package/lib/primitives/BrandIcon.js +177 -177
  125. package/lib/primitives/ColorDot2.js +44 -48
  126. package/lib/primitives/CopyButton2.js +54 -55
  127. package/lib/primitives/CountBadge2.js +45 -48
  128. package/lib/primitives/Countdown2.js +35 -37
  129. package/lib/primitives/Delta2.js +41 -41
  130. package/lib/primitives/Elapsed.js +43 -41
  131. package/lib/primitives/FileIcon2.js +94 -94
  132. package/lib/primitives/Flag2.js +97 -97
  133. package/lib/primitives/IconStack2.js +53 -55
  134. package/lib/primitives/IconTile2.js +45 -41
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +66 -66
  137. package/lib/primitives/Link2.js +42 -47
  138. package/lib/primitives/MaskedText2.js +47 -69
  139. package/lib/primitives/Progress2.js +71 -71
  140. package/lib/primitives/RelativeTime.js +47 -43
  141. package/lib/primitives/SearchInput2.js +70 -66
  142. package/lib/primitives/SelectorButton2.js +70 -67
  143. package/lib/primitives/Spinner2.js +58 -59
  144. package/lib/primitives/StatusIcon2.js +70 -70
  145. package/lib/primitives/Swatch2.js +57 -55
  146. package/lib/primitives/Tooltip2.js +78 -78
  147. package/lib/primitives/Typography2.js +54 -54
  148. package/lib/primitives/formatCountdown.js +37 -38
  149. package/lib/primitives/formatElapsed.js +46 -45
  150. package/lib/primitives/formatRelativeTime.js +43 -69
  151. package/lib/primitives/hotkey.js +66 -66
  152. package/lib/primitives/index.js +152 -152
  153. package/lib/primitives/maskValue.js +30 -32
  154. package/lib/style.css +1 -1
  155. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  156. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  157. package/lib/types/components/index.d.ts +1 -0
  158. package/package.json +1 -1
@@ -1,125 +1,125 @@
1
1
  "use client";
2
- function e(t, r) {
3
- t -= 269;
4
- let i = n(), a = i[t];
5
- e.SrFphI === void 0 && (e.PUDDJN = function(e) {
6
- let t = "", n = "";
7
- for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
8
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
- return decodeURIComponent(n);
10
- }, e.xUtBNr = {}, e.SrFphI = !0);
11
- let o = i[0];
12
- e.VpqFQW !== o && (e.xUtBNr = {}, e.VpqFQW = o);
13
- let s = e.xUtBNr[t];
14
- return s === void 0 ? (a = e.PUDDJN(a), e.xUtBNr[t] = a) : a = s, a;
15
- }
16
- const t = e;
17
- (function(t, n) {
18
- let r = e, i = t();
2
+ const e = s;
3
+ (function(e, t) {
4
+ let n = s, r = e();
19
5
  for (;;) try {
20
- if (-parseInt(r(278)) / 1 + -parseInt(r(298)) / 2 * (-parseInt(r(306)) / 3) + parseInt(r(303)) / 4 + parseInt(r(305)) / 5 + -parseInt(r(302)) / 6 + parseInt(r(291)) / 7 * (parseInt(r(279)) / 8) + parseInt(r(294)) / 9 == n) break;
21
- i.push(i.shift());
6
+ if (parseInt(n(215)) / 1 + -parseInt(n(218)) / 2 + -parseInt(n(232)) / 3 * (parseInt(n(213)) / 4) + -parseInt(n(217)) / 5 + parseInt(n(199)) / 6 * (parseInt(n(208)) / 7) + parseInt(n(219)) / 8 + parseInt(n(201)) / 9 * (parseInt(n(204)) / 10) == t) break;
7
+ r.push(r.shift());
22
8
  } catch {
23
- i.push(i.shift());
9
+ r.push(r.shift());
24
10
  }
25
- })(n, 455205);
26
- /* empty css */
27
- function n() {
28
- let e = /* @__PURE__ */ "BgfZDeLUzgv4t2y.C3zN.zhmTzMLSzs1Py29Ux19MB2XK.mcaWidi0idi0.ttyUnsaYlJC1AdCUmJvSnc41idqUnxyXmI41yteUnsaXlJuGmcaWideTms41ideUnuG2lJvbms41ideUnsaWidaGmsa1ide5lJC1DI0Xns41yteUnsaXlJuGmcaWideGms41lteUnvO.Aw1Hz2u.zMLSDgvY.Aw5JBhvKzxm.ns41.mtu4mMzHEMTTvq.zhmTzMLSzs1Py29Ux19WywDL.CMvJDa.nJyZnJiWnffmrNrTCG.C2HLzxq.C2XPzgu.C2XPy2u.ntH6ufbutgy.yxjJAgL2zq.DMLKzw8.mtmUmJu.mtK2nJu5mg5NBKDTCq.nda2oteYB3f0BunU.BM9Uzq.mJq0nJmWnw5Iy1v3tW.nZG4n2ntBKXIsq.y29Kzq.Dg9mB3DLCKnHC2u.tteZlJuGmI43nxyZlJvHmsaXidaGmcaWideGmwGZlJC1.Cgf0Aa.B3rOzxi.CgrM.AM9PBG.ChjLC2vUDgf0Aw9U.zhmTzMLSzs1Py29Ux190ywi.yxvKAw8.nJy3nZiWuejdA3HK.mtyZmMj2Du9Awa.zhmTzMLSzs1Py29U.zg9J".split(".");
29
- return n = function() {
11
+ })(t, 463309);
12
+ function t() {
13
+ let e = /* @__PURE__ */ "C2XPzgu.mcaWidi0idi0.mZCXEuX1sKf1.DMLKzw8.mtmUmJu.ttyUnsaYlJC1AdCUmJvSnc41idqUnxyXmI41yteUnsaXlJuGmcaWideTms41ideUnuG2lJvbms41ideUnsaWidaGmsa1ide5lJC1DI0Xns41yteUnsaXlJuGmcaWideGms41lteUnvO.Cgf0Aa.nJi0ngrPAvDKBW.zg9J.ndmYmZL0rvfnq2m.yxjJAgL2zq.ndmXoti4nxHZDuHnrW.mte5mJu5ofrWruH0AW.mJm0ntiYnfnzwfL1uW.ChjLC2vUDgf0Aw9U.C2XPy2u.CMvJDa.tteZlJuGmI43nxyZlJvHmsaXidaGmcaWideGmwGZlJC1.BgfZDeLUzgv4t2y.zhmTzMLSzs1Py29Ux19MB2XK.ns41.y29Kzq.AM9PBG.C3zN.Aw1Hz2u.C2HLzxq.mtiZAur4wxLx.Aw5JBhvKzxm.CgrM.zhmTzMLSzs1Py29Ux190ywi.yxvKAw8.ntG0nZb0DKjiAhq.zhmTzMLSzs1Py29Ux19WywDL.nZi5owDLwNvtAG.ms41.B3rOzxi.mtm5otb4shbnrKO.BM9Uzq".split(".");
14
+ return t = function() {
30
15
  return e;
31
- }, n();
16
+ }, t();
32
17
  }
33
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
34
- var a = {
35
- pdf: t(273),
36
- png: "image",
37
- jpg: t(287),
38
- jpeg: t(287),
39
- gif: t(287),
40
- webp: t(287),
41
- svg: "image",
42
- heic: "image",
43
- avif: t(287),
44
- xls: t(295),
18
+ /* empty css */
19
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
20
+ var i = {
21
+ pdf: e(234),
22
+ png: e(230),
23
+ jpg: "image",
24
+ jpeg: "image",
25
+ gif: e(230),
26
+ webp: e(230),
27
+ svg: e(230),
28
+ heic: e(230),
29
+ avif: e(230),
30
+ xls: e(231),
45
31
  xlsx: "sheet",
46
- csv: t(295),
47
- tsv: t(295),
48
- numbers: t(295),
49
- doc: t(281),
50
- docx: t(281),
51
- txt: "doc",
52
- md: "doc",
53
- rtf: t(281),
54
- hwp: t(281),
55
- hwpx: t(281),
56
- pages: t(281),
57
- ppt: "slide",
58
- pptx: "slide",
59
- key: "slide",
60
- mp4: t(300),
61
- mov: t(300),
62
- webm: t(300),
63
- avi: t(300),
64
- mkv: t(300),
65
- mp3: "audio",
66
- wav: "audio",
67
- m4a: t(277),
32
+ csv: e(231),
33
+ tsv: e(231),
34
+ numbers: e(231),
35
+ doc: e(214),
36
+ docx: e(214),
37
+ txt: e(214),
38
+ md: e(214),
39
+ rtf: "doc",
40
+ hwp: e(214),
41
+ hwpx: "doc",
42
+ pages: "doc",
43
+ ppt: e(206),
44
+ pptx: e(206),
45
+ key: e(206),
46
+ mp4: "video",
47
+ mov: e(209),
48
+ webm: "video",
49
+ avi: e(209),
50
+ mkv: e(209),
51
+ mp3: e(236),
52
+ wav: e(236),
53
+ m4a: e(236),
68
54
  aac: "audio",
69
55
  flac: "audio",
70
56
  zip: "archive",
71
- rar: t(299),
72
- "7z": t(299),
57
+ rar: e(216),
58
+ "7z": e(216),
73
59
  tar: "archive",
74
- gz: t(299),
75
- js: t(307),
76
- ts: t(307),
77
- tsx: t(307),
78
- json: t(307),
79
- html: t(307),
80
- css: t(307),
60
+ gz: e(216),
61
+ js: "code",
62
+ ts: e(227),
63
+ tsx: e(227),
64
+ json: e(227),
65
+ html: "code",
66
+ css: e(227),
81
67
  py: "code"
82
68
  };
83
- function o(e) {
84
- let n = t, r = e[n(269)]();
85
- if (r[n(289)]("/")) {
69
+ function a(t) {
70
+ let n = e, r = t.toLowerCase();
71
+ if (r[n(233)]("/")) {
86
72
  let [e, t] = r.split("/");
87
- return e === n(287) || e === n(300) || e === "audio" ? e : a[t] ?? (t[n(289)](n(295)) ? n(295) : t[n(289)](n(275)) ? n(296) : n(272));
73
+ return e === "image" || e === n(209) || e === n(236) ? e : i[t] ?? (t.includes(n(231)) ? "sheet" : t[n(233)](n(220)) ? n(206) : n(203));
88
74
  }
89
- return a[r[n(297)](r[n(282)](".") + 1)] ?? n(272);
75
+ return i[r[n(221)](r[n(224)](".") + 1)] ?? n(203);
90
76
  }
91
- function s({ name: e = "", kind: n, size: a = 20, className: s, style: c }) {
92
- let l = t, u = n ?? o(e);
93
- return i(l(283), {
94
- className: [l(280), s][l(288)](Boolean)[l(274)](" "),
77
+ function o({ name: t = "", kind: i, size: o = 20, className: s, style: c }) {
78
+ let l = e, u = i ?? a(t);
79
+ return r(l(229), {
80
+ className: ["ds-file-icon", s].filter(Boolean)[l(228)](" "),
95
81
  style: {
96
82
  "--_c": "var(--file-" + u + ")",
97
83
  ...c
98
84
  },
99
85
  "data-kind": u,
100
- width: a,
101
- height: a,
102
- viewBox: l(285),
103
- fill: l(304),
86
+ width: o,
87
+ height: o,
88
+ viewBox: l(207),
89
+ fill: l(205),
104
90
  "aria-hidden": !0,
105
91
  children: [
106
- r(l(271), {
107
- className: l(292),
108
- d: l(286)
92
+ n(l(212), {
93
+ className: l(200),
94
+ d: l(211)
109
95
  }),
110
- r("path", {
111
- className: l(284),
112
- d: l(270)
96
+ n(l(212), {
97
+ className: l(225),
98
+ d: l(223)
113
99
  }),
114
- r(l(293), {
115
- className: l(276),
100
+ n(l(222), {
101
+ className: l(235),
116
102
  x: "3",
117
- y: l(301),
103
+ y: l(210),
118
104
  width: "11",
119
- height: l(290),
120
- rx: "1.5"
105
+ height: l(226),
106
+ rx: l(202)
121
107
  })
122
108
  ]
123
109
  });
124
110
  }
125
- export { s as FileIcon, o as fileKind };
111
+ function s(e, n) {
112
+ e -= 199;
113
+ let r = t(), i = r[e];
114
+ s.aIWWJy === void 0 && (s.CYTpkD = function(e) {
115
+ let t = "", n = "";
116
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
117
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
118
+ return decodeURIComponent(n);
119
+ }, s.pRbuZz = {}, s.aIWWJy = !0);
120
+ let a = r[0];
121
+ s.XVdnXt !== a && (s.pRbuZz = {}, s.XVdnXt = a);
122
+ let o = s.pRbuZz[e];
123
+ return o === void 0 ? (i = s.CYTpkD(i), s.pRbuZz[e] = i) : i = o, i;
124
+ }
125
+ export { o as FileIcon, a as fileKind };
@@ -1,62 +1,62 @@
1
1
  "use client";
2
- function e() {
3
- let t = /* @__PURE__ */ "i2iYmJiZna.i2rHmJuXza.Cgf0Aa.iZaXmJe2oq.i2zMzG.i2m4mtaYzq.tte4idbwmJrnmcaXmKGZnG.mtK0mJaZmM1qvMrhwG.BwfW.mK5OtNLhrW.zNjVBq.mZq0odi4mJHqDNnJz2W.nMjjsM5zsW.zhmTzMXHzW.i2rKmdaWma.mZzjtfjJz2y.yxrHBJi.CM90yxrLka.i2zMzguWma.mtaZnZC3nMrStun2BG.iZaWma.iZaWndDHma.nZy4yMnJzxDY.Aw1N.Dg9gAxHLza.tteYideYytyGnIaWidaGmsaXmIaWEG.i2zMy2uWma.DhjHBNnSyxrLka.ttaGmeWZnIaYne0ZnIaWtdaGmJq.CMvJDa.nJG1nZG1ohbgBhveyG.ndrPug1MzKW.iZnJm2i2zq.mtKYmteZu01VALvZ.C2LU.y2LYy2XL.AM9PBG.tteYideYytyGnIaWidaGmcaXmIaWEG.C3zN.zMXVB3i.i2zMy2qWma.BM9Uzq.i2nKmMuZyq.mte5mZbKwM5cuwm.zMLSDgvY.mJa3nJCZmg9Pq1vfDG.C3bHBG.iZaWmJy1na.ksbYB3rHDguO.ide4ideYkq".split(".");
4
- return e = function() {
5
- return t;
6
- }, e();
2
+ function e(t, r) {
3
+ t -= 407;
4
+ let i = n(), a = i[t];
5
+ e.lnHJab === void 0 && (e.BOgTzY = function(e) {
6
+ let t = "", n = "";
7
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
8
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
+ return decodeURIComponent(n);
10
+ }, e.KFcEqs = {}, e.lnHJab = !0);
11
+ let o = i[0];
12
+ e.ChTgOj !== o && (e.KFcEqs = {}, e.ChTgOj = o);
13
+ let s = e.KFcEqs[t];
14
+ return s === void 0 ? (a = e.BOgTzY(a), e.KFcEqs[t] = a) : a = s, a;
7
15
  }
8
- const t = n;
9
- (function(e, t) {
10
- let r = n, i = e();
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
11
19
  for (;;) try {
12
- if (-parseInt(r(474)) / 1 * (-parseInt(r(500)) / 2) + parseInt(r(503)) / 3 * (parseInt(r(510)) / 4) + parseInt(r(484)) / 5 * (-parseInt(r(513)) / 6) + -parseInt(r(471)) / 7 + parseInt(r(498)) / 8 * (-parseInt(r(506)) / 9) + parseInt(r(486)) / 10 * (-parseInt(r(472)) / 11) + parseInt(r(502)) / 12 == t) break;
20
+ if (-parseInt(r(424)) / 1 + parseInt(r(422)) / 2 * (-parseInt(r(430)) / 3) + parseInt(r(448)) / 4 * (-parseInt(r(443)) / 5) + parseInt(r(435)) / 6 * (parseInt(r(432)) / 7) + -parseInt(r(425)) / 8 * (-parseInt(r(441)) / 9) + parseInt(r(415)) / 10 + parseInt(r(439)) / 11 == n) break;
13
21
  i.push(i.shift());
14
22
  } catch {
15
23
  i.push(i.shift());
16
24
  }
17
- })(e, 497760);
25
+ })(n, 808483);
18
26
  /* empty css */
19
- function n(t, r) {
20
- t -= 465;
21
- let i = e(), a = i[t];
22
- n.fVopqW === void 0 && (n.TFxzZY = function(e) {
23
- let t = "", n = "";
24
- for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
25
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
26
- return decodeURIComponent(n);
27
- }, n.JOPknf = {}, n.fVopqW = !0);
28
- let o = i[0];
29
- n.cYiLGD !== o && (n.JOPknf = {}, n.cYiLGD = o);
30
- let s = n.JOPknf[t];
31
- return s === void 0 ? (a = n.TFxzZY(a), n.JOPknf[t] = a) : a = s, a;
27
+ function n() {
28
+ let e = /* @__PURE__ */ "iZaWmJy1na.i2nLmteYnG.i2iYmJiZna.iZaXmJe2oq.Cgf0Aa.nZq0mJzlswPru0O.CMvJDa.ntiWmda5A3v5C0vm.mtC2ohrbuxzWzG.i2rLmJKXma.AM9PBG.tteYideYytyGnIaWidaGmsaXmIaWEG.y29Z.mZLIvu1kDNO.tte4idbwmJrnmcaXmKGZnG.nJu2nNrHuKXlAW.ide4ideYkq.C3zN.nZq5ne5NqxL5ua.i2jJmdaYza.tteYideYytyGnIaWidaGmcaXmIaWEG.Aw1N.mJqXnJq5mxfjCMv4uW.i2rKmdaWma.mJG0nJDYzuXuteG.C2LU.mZeZntvqCgDeuxm.ttaGmeWZnIaYne0ZnIaWtdaGmJq.i2zMzG.yxrHBJi.i2m4mtaYzq.mtK2swnjAwH3.y2LYy2XL.iZaWndDHma.iZnJm2i2zq.ksbYB3rHDguO.i2nKmMuZyq.BwfW.Dg9gAxHLza.i2rHmJuXza.iZaWma.mcaWia.zNjVBq.mJKYnZqWyLLIDNzP.i2zMzguWma".split(".");
29
+ return n = function() {
30
+ return e;
31
+ }, n();
32
32
  }
33
33
  import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
34
34
  var o = 36, s = 24;
35
- function c(e, t, r, a = 0) {
36
- let o = n, s = Array[o(501)]({ length: 10 }, (n, i) => {
35
+ function c(t, n, r, a = 0) {
36
+ let o = e, s = Array[o(414)]({ length: 10 }, (e, i) => {
37
37
  let s = o, c = (a + i * 36) * Math.PI / 180, l = i % 2 ? r * .382 : r;
38
- return (e + l * Math[s(475)](c)).toFixed(2) + "," + (t - l * Math.cos(c))[s(465)](2);
38
+ return (t + l * Math[s(442)](c))[s(410)](2) + "," + (n - l * Math[s(429)](c))[s(410)](2);
39
39
  });
40
- return i("polygon", { points: s[o(477)](" ") });
40
+ return i("polygon", { points: s.join(" ") });
41
41
  }
42
- function l(e, t, r, o) {
43
- let s = n;
42
+ function l(t, n, r, o) {
43
+ let s = e;
44
44
  return i("g", {
45
- transform: s(468) + e + " " + t + s(489) + r + ")",
46
- fill: "#000",
47
- children: o[s(499)]((e, t) => {
45
+ transform: "translate(" + t + " " + n + s(407) + r + ")",
46
+ fill: s(412),
47
+ children: o[s(409)]((e, t) => {
48
48
  let n = s, r = -2.4 + t * 1.8;
49
- return e ? a("g", { children: [i(n(470), {
49
+ return e ? a("g", { children: [i(n(423), {
50
50
  x: r,
51
51
  y: -3.4,
52
52
  width: 1.2,
53
53
  height: 3
54
- }), i(n(470), {
54
+ }), i("rect", {
55
55
  x: r,
56
56
  y: .4,
57
57
  width: 1.2,
58
58
  height: 3
59
- })] }, t) : i(n(470), {
59
+ })] }, t) : i(n(423), {
60
60
  x: r,
61
61
  y: -3.4,
62
62
  width: 1.2,
@@ -65,35 +65,35 @@ function l(e, t, r, o) {
65
65
  })
66
66
  });
67
67
  }
68
- var u = Math[t(507)](s, o) * 180 / Math.PI, d = {
68
+ var u = Math[t(446)](s, o) * 180 / Math.PI, d = {
69
69
  KR: a(r, { children: [
70
- i(t(470), {
70
+ i(t(423), {
71
71
  width: o,
72
72
  height: s,
73
73
  fill: "#fff"
74
74
  }),
75
75
  a("g", {
76
- transform: t(508) + u + t(490),
76
+ transform: "rotate(" + u + t(433),
77
77
  children: [
78
- i(t(493), {
79
- d: t(466),
80
- fill: t(483)
78
+ i(t(421), {
79
+ d: t(428),
80
+ fill: "#cd2e3a"
81
81
  }),
82
- i(t(493), {
83
- d: t(478),
82
+ i(t(421), {
83
+ d: t(437),
84
84
  fill: "#0047a0"
85
85
  }),
86
- i(t(476), {
86
+ i(t(449), {
87
87
  cx: 15,
88
88
  cy: 12,
89
89
  r: 3,
90
- fill: t(483)
90
+ fill: t(408)
91
91
  }),
92
- i("circle", {
92
+ i(t(449), {
93
93
  cx: 21,
94
94
  cy: 12,
95
95
  r: 3,
96
- fill: t(512)
96
+ fill: t(450)
97
97
  })
98
98
  ]
99
99
  }),
@@ -119,47 +119,47 @@ var u = Math[t(507)](s, o) * 180 / Math.PI, d = {
119
119
  ])
120
120
  ] }),
121
121
  US: a(r, { children: [
122
- i(t(470), {
122
+ i(t(423), {
123
123
  width: o,
124
124
  height: s,
125
- fill: t(495)
125
+ fill: t(445)
126
126
  }),
127
- Array.from({ length: 7 }, (e, n) => i(t(470), {
127
+ Array[t(414)]({ length: 7 }, (e, n) => i(t(423), {
128
128
  y: n * 2 * s / 13,
129
129
  width: o,
130
130
  height: s / 13,
131
- fill: t(491)
131
+ fill: t(419)
132
132
  }, n)),
133
- i(t(470), {
133
+ i(t(423), {
134
134
  width: 14.4,
135
135
  height: 168 / 13,
136
- fill: t(473)
136
+ fill: t(451)
137
137
  }),
138
138
  i("g", {
139
- fill: t(495),
140
- children: Array[t(501)]({ length: 12 }, (e, n) => i(t(476), {
139
+ fill: "#fff",
140
+ children: Array[t(414)]({ length: 12 }, (e, n) => i(t(449), {
141
141
  cx: 2 + n % 4 * 3.4,
142
- cy: 1.9 + Math[t(480)](n / 4) * 3.4,
142
+ cy: 1.9 + Math.floor(n / 4) * 3.4,
143
143
  r: .6
144
144
  }, n))
145
145
  })
146
146
  ] }),
147
- JP: a(r, { children: [i(t(470), {
147
+ JP: a(r, { children: [i(t(423), {
148
148
  width: o,
149
149
  height: s,
150
- fill: t(495)
151
- }), i(t(476), {
150
+ fill: t(445)
151
+ }), i(t(449), {
152
152
  cx: 18,
153
153
  cy: 12,
154
154
  r: 7.2,
155
- fill: "#bc002d"
155
+ fill: t(436)
156
156
  })] }),
157
- CN: a(r, { children: [i(t(470), {
157
+ CN: a(r, { children: [i(t(423), {
158
158
  width: o,
159
159
  height: s,
160
- fill: "#de2910"
160
+ fill: t(426)
161
161
  }), a("g", {
162
- fill: t(509),
162
+ fill: t(416),
163
163
  children: [
164
164
  c(6, 6, 3.6),
165
165
  c(12, 2.4, 1.2, 23),
@@ -168,38 +168,38 @@ var u = Math[t(507)](s, o) * 180 / Math.PI, d = {
168
168
  c(12, 10.8, 1.2, 21)
169
169
  ]
170
170
  })] }),
171
- VN: a(r, { children: [i(t(470), {
171
+ VN: a(r, { children: [i(t(423), {
172
172
  width: o,
173
173
  height: s,
174
- fill: t(492)
174
+ fill: t(411)
175
175
  }), i("g", {
176
- fill: t(481),
176
+ fill: "#ffcd00",
177
177
  children: c(18, 12.6, 7.2)
178
178
  })] }),
179
179
  GB: a(r, { children: [
180
- i(t(470), {
180
+ i(t(423), {
181
181
  width: o,
182
182
  height: s,
183
- fill: t(494)
183
+ fill: t(420)
184
184
  }),
185
- i(t(493), {
186
- d: t(469),
187
- stroke: t(495),
185
+ i(t(421), {
186
+ d: t(444),
187
+ stroke: "#fff",
188
188
  strokeWidth: 4.8
189
189
  }),
190
- i(t(493), {
191
- d: "M0 0L36 24M36 0L0 24",
192
- stroke: t(496),
190
+ i("path", {
191
+ d: t(444),
192
+ stroke: t(447),
193
193
  strokeWidth: 1.6
194
194
  }),
195
- i("path", {
196
- d: t(497),
197
- stroke: t(495),
195
+ i(t(421), {
196
+ d: "M18 0V24M0 12H36",
197
+ stroke: t(445),
198
198
  strokeWidth: 8
199
199
  }),
200
- i(t(493), {
201
- d: t(497),
202
- stroke: t(496),
200
+ i(t(421), {
201
+ d: t(431),
202
+ stroke: t(447),
203
203
  strokeWidth: 4.8
204
204
  })
205
205
  ] }),
@@ -207,55 +207,55 @@ var u = Math[t(507)](s, o) * 180 / Math.PI, d = {
207
207
  i("rect", {
208
208
  width: o,
209
209
  height: 8,
210
- fill: t(511)
210
+ fill: "#000"
211
211
  }),
212
- i(t(470), {
212
+ i(t(423), {
213
213
  y: 8,
214
214
  width: o,
215
215
  height: 8,
216
- fill: t(505)
216
+ fill: t(440)
217
217
  }),
218
- i(t(470), {
218
+ i("rect", {
219
219
  y: 16,
220
220
  width: o,
221
221
  height: 8,
222
- fill: t(467)
222
+ fill: "#ffce00"
223
223
  })
224
224
  ] }),
225
225
  FR: a(r, { children: [
226
- i(t(470), {
226
+ i(t(423), {
227
227
  width: 12,
228
228
  height: s,
229
- fill: t(488)
229
+ fill: t(417)
230
230
  }),
231
- i("rect", {
231
+ i(t(423), {
232
232
  x: 12,
233
233
  width: 12,
234
234
  height: s,
235
- fill: t(495)
235
+ fill: t(445)
236
236
  }),
237
- i(t(470), {
237
+ i("rect", {
238
238
  x: 24,
239
239
  width: 12,
240
240
  height: s,
241
- fill: "#ce1126"
241
+ fill: t(418)
242
242
  })
243
243
  ] })
244
244
  };
245
245
  function f({ code: e, size: n = 20, label: r, className: a, style: c }) {
246
246
  let l = t;
247
- return i(l(487), {
248
- className: [l(504), a][l(485)](Boolean)[l(477)](" "),
247
+ return i("span", {
248
+ className: ["ds-flag", a].filter(Boolean)[l(427)](" "),
249
249
  style: {
250
250
  "--_w": n + "px",
251
251
  ...c
252
252
  },
253
- role: r ? l(514) : void 0,
253
+ role: r ? l(438) : void 0,
254
254
  "aria-label": r,
255
255
  "aria-hidden": !r || void 0,
256
- children: i(l(479), {
257
- viewBox: "0 0 " + o + " " + s,
258
- preserveAspectRatio: l(482),
256
+ children: i(l(434), {
257
+ viewBox: l(413) + o + " " + s,
258
+ preserveAspectRatio: "none",
259
259
  children: d[e]
260
260
  })
261
261
  });