efficient-shell 13.22.0 → 13.23.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 (73) hide show
  1. package/README.md +48 -0
  2. package/dist/{Browser-342OHRA2.js → Browser-PVG2TSCY.js} +13 -13
  3. package/dist/{Calculator-HJK5JN54.js → Calculator-PHIOJNTS.js} +12 -12
  4. package/dist/CodeEditor-VN76K3MD.js +1 -0
  5. package/dist/{CurrencyConverter-MPAZ6QJ3.js → CurrencyConverter-WZXN6WTD.js} +5 -5
  6. package/dist/{Files-IPM7TRMJ.js → Files-LL2FH6YM.js} +61 -61
  7. package/dist/{Notepad-R7MUSPRC.js → Notepad-YR4WES76.js} +9 -9
  8. package/dist/{PomodoroTimer-VREYC3ML.js → PomodoroTimer-WVIAWG5E.js} +68 -68
  9. package/dist/{Preview-X64AVAUP.js → Preview-UT46Y6ZG.js} +9 -9
  10. package/dist/{Stock-GQSNYWV2.js → Stock-SHKXRWJQ.js} +3 -3
  11. package/dist/{Weather-XNMLNV7N.js → Weather-WMKWOPBU.js} +15 -15
  12. package/dist/{WorldClock-AZLGM2T5.js → WorldClock-GZYOF4B2.js} +6 -6
  13. package/dist/ai/index.js +33 -33
  14. package/dist/apps/index.js +1 -1
  15. package/dist/bin/browser-check.js +1 -1
  16. package/dist/bin/media-host-check.js +1 -1
  17. package/dist/bin/ui-check.js +1 -1
  18. package/dist/brand.css +1 -1
  19. package/dist/charts/PieChart.js +1 -1
  20. package/dist/charts/RadarChart.js +1 -1
  21. package/dist/charts/RadialBarChart.js +1 -1
  22. package/dist/charts/SpecChart.js +1 -1
  23. package/dist/charts/TimeSeriesChart.js +1 -1
  24. package/dist/{chunk-IM2PF6VQ.js → chunk-2ICYGTHC.js} +1 -1
  25. package/dist/{chunk-7N42VDGT.js → chunk-4L5YRMJ4.js} +12 -12
  26. package/dist/{chunk-FE7H6RXE.js → chunk-65BW43PF.js} +2 -2
  27. package/dist/{chunk-QRPPWLKU.js → chunk-6EGZ4PV4.js} +2 -2
  28. package/dist/{chunk-IM23VMBR.js → chunk-7AHVCO5L.js} +1 -1
  29. package/dist/{chunk-P6H2B635.js → chunk-7N6CVTWO.js} +1 -1
  30. package/dist/chunk-EQLE2X7P.js +1 -0
  31. package/dist/{chunk-VB3UHY2J.js → chunk-GAEQYCLS.js} +1 -1
  32. package/dist/{chunk-BT636U6W.js → chunk-H2Q7G5D6.js} +34 -34
  33. package/dist/{chunk-R7CYBBJY.js → chunk-JIJZBM25.js} +6 -6
  34. package/dist/{chunk-JVENCUUG.js → chunk-LRMDLZMM.js} +4 -4
  35. package/dist/{chunk-TJG76Y7I.js → chunk-LUARJHUK.js} +8 -8
  36. package/dist/chunk-M3HBGN5K.js +1 -0
  37. package/dist/chunk-N4FUMDAI.js +1 -0
  38. package/dist/{chunk-E4GF7M4S.js → chunk-OOND66P2.js} +5 -5
  39. package/dist/{chunk-EJJTDUN3.js → chunk-P5TSGXL4.js} +13 -13
  40. package/dist/{chunk-6UGMQZTF.js → chunk-PI2W6MML.js} +1 -1
  41. package/dist/{chunk-3SKXWFGG.js → chunk-PP3WUT2G.js} +5 -5
  42. package/dist/{chunk-ODOWFVUE.js → chunk-QKVPKLDN.js} +8 -8
  43. package/dist/{chunk-QNQNOTTS.js → chunk-TT7KXS2Q.js} +1 -1
  44. package/dist/{chunk-JZ43635V.js → chunk-TTRLYWP4.js} +1 -1
  45. package/dist/code/index.d.ts +20 -0
  46. package/dist/code/index.js +2 -0
  47. package/dist/data/DataTable.js +1 -1
  48. package/dist/data/EntityList.js +1 -1
  49. package/dist/data/ResizableTable.js +1 -1
  50. package/dist/forms/MediaLibrary.js +1 -1
  51. package/dist/forms/MediaUploadGrid.js +1 -1
  52. package/dist/icons/brands.node.js +1 -1
  53. package/dist/icons/efficient-glyphs.js +1 -1
  54. package/dist/icons/efficient-looks.js +1 -1
  55. package/dist/icons/efficient.js +1 -1
  56. package/dist/icons/index.js +1 -1
  57. package/dist/icons/looks/map.js +1 -1
  58. package/dist/icons/payment.js +1 -1
  59. package/dist/icons/sets.js +1 -1
  60. package/dist/index.js +512 -512
  61. package/dist/shell/EditableGrid.js +1 -1
  62. package/dist/shell/LanguageSelect.js +1 -1
  63. package/dist/shell/SettingRow.js +1 -1
  64. package/dist/telemetry/index.js +1 -1
  65. package/dist/templates/DashboardTemplate.js +1 -1
  66. package/dist/templates/DataTablePage.js +1 -1
  67. package/dist/ui/index.js +1 -1
  68. package/dist/ui.css +44 -0
  69. package/dist/version.js +1 -1
  70. package/package.json +46 -1
  71. package/dist/chunk-KBQXXPFK.js +0 -1
  72. package/dist/chunk-OTEAWX2C.js +0 -1
  73. package/dist/chunk-UUY66GLZ.js +0 -1
package/README.md CHANGED
@@ -2036,6 +2036,54 @@ The alternative this replaces is `<iframe src={objectUrl}>`, which hands the
2036
2036
  document to the browser's own plugin — its toolbar, its thumbnail rail, its
2037
2037
  idea of the zoom, none of it themeable and none of it testable.
2038
2038
 
2039
+ #### The code editor — `efficient-shell/code`
2040
+
2041
+ `CodeEditor` is the kit's one code editor (harness UI-24): line numbers,
2042
+ syntax colours, undo, Tab to indent (Escape, then Tab, leaves the editor). One
2043
+ language today: HTML, with the CSS inside `<style>` coloured as CSS. It is
2044
+ CodeMirror 6, on its own entry, loaded after the editor mounts, so a host that
2045
+ never edits code installs none of it (`scripts/verify-dist.mjs` holds the built
2046
+ graph to React plus, behind a dynamic import, the CodeMirror peers).
2047
+
2048
+ ```bash
2049
+ npm i @codemirror/state @codemirror/view @codemirror/language @codemirror/commands @codemirror/lang-css @lezer/html @lezer/common @lezer/highlight
2050
+ ```
2051
+
2052
+ ```tsx
2053
+ 'use client';
2054
+ import { useRef } from 'react';
2055
+ import { Button } from 'efficient-shell/ui';
2056
+ import { CodeEditor, type CodeEditorHandle } from 'efficient-shell/code';
2057
+
2058
+ function SectionCode({ html, setHtml }: { html: string; setHtml: (next: string) => void }) {
2059
+ const editor = useRef<CodeEditorHandle>(null);
2060
+ return (
2061
+ <>
2062
+ <div className="h-[60vh]">
2063
+ <CodeEditor ref={editor} value={html} onChange={setHtml} label="Section code" />
2064
+ </div>
2065
+ <Button onClick={() => editor.current?.insert('var(--sf-sec-fg)')}>Insert</Button>
2066
+ </>
2067
+ );
2068
+ }
2069
+ ```
2070
+
2071
+ No `<Suspense>` is needed. The entry draws the editor's frame at once, in
2072
+ every render mode (a server render, `renderToString` and hydration alike), and
2073
+ loads CodeMirror in an effect after it mounts. A call to `insert()` or
2074
+ `focus()` made before then waits, and runs the moment CodeMirror has loaded. If
2075
+ the CodeMirror chunk fails to load, the error is thrown from render, so put the
2076
+ editor inside an error boundary (the kit's `ErrorBoundary`, or your own) to
2077
+ show it with a way to retry.
2078
+
2079
+ It is controlled: `onChange` gets the whole text on every edit, and a new
2080
+ `value` replaces the text without calling `onChange` back. `readOnly` blocks
2081
+ typing. It fills the box it is put in (give that box a height) and scrolls
2082
+ inside it. Every colour is a `--code-*` role in `ui.css`, each pointing at a
2083
+ colour the kit already has; `tests/browser/codeEditorInk` measures every one at
2084
+ 4.5:1 or more in every kit theme (the `Theme` type's list, so a new theme is
2085
+ measured with no change to the check).
2086
+
2039
2087
  #### The PDF reader without the window manager — `efficient-shell/pdf`
2040
2088
 
2041
2089
  `efficient-shell/apps` is the bundled window registry: importing it puts every
@@ -1,30 +1,30 @@
1
- import{InputEndActionButton as e}from"./chunk-J5OAQAAD.js";import"./chunk-NWS5G7FE.js";import"./chunk-AYZY3YNC.js";import{peekBrowserStartUrl as t,claimBrowserStartUrl as o}from"./chunk-LWLCNQY7.js";import{AboutApp as r}from"./chunk-IM2PF6VQ.js";import{WindowTitle as n}from"./chunk-BT636U6W.js";import"./chunk-4LXCCZDM.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-YI4T5I5D.js";import"./chunk-PSVGB7KT.js";import"./chunk-FBZUEZK7.js";import"./chunk-5A7MWTXX.js";import"./chunk-TJ5YMXVB.js";import{confirm as s}from"./chunk-XYQFTFI7.js";import"./chunk-MRZLFZNJ.js";import"./chunk-EIFNESXS.js";import"./chunk-LC2UF3AA.js";import"./chunk-CJQPC2P3.js";import"./chunk-UAXL44HH.js";import"./chunk-VWGWZY7A.js";import"./chunk-UVHXVSB2.js";import"./chunk-UVPDEGIA.js";import"./chunk-AW7TOB6N.js";import"./chunk-4PJFL26P.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-DPFEQQQU.js";import"./chunk-UUY66GLZ.js";import"./chunk-EX3DARI3.js";import"./chunk-VQBKRBBR.js";import"./chunk-DWGYC7OD.js";import"./chunk-YDJ5IZOU.js";import"./chunk-THAPVKEJ.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UTISUEO4.js";import"./chunk-BUFAJJDZ.js";import{Icon as a}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-BWJZTHZ6.js";import"./chunk-TD3ZQD5R.js";import"./chunk-F2RAIGCG.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-VY3UA6AR.js";import"./chunk-WCCS4VFE.js";import"./chunk-ZDXRSY2Y.js";import"./chunk-STKJA4PV.js";import"./chunk-M6UKCZHT.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-MAFUXCPZ.js";import"./chunk-NRHG4R2Q.js";import"./chunk-C3QOHMR6.js";import{useRef as i,useEffect as c,useState as l}from"react";import{jsxs as m,jsx as u,Fragment as h}from"react/jsx-runtime";var d="react-os-shell:browser-bookmarks",p="react-os-shell:browser-homepage",k="https://en.wikipedia.org/wiki/Main_Page",b=[{label:"Wikipedia",url:"https://en.wikipedia.org/wiki/Main_Page"},{label:"DevDocs",url:"https://devdocs.io"},{label:"Example",url:"https://example.com"}],g=new Set(["ac ad ae af ag ai al am ao aq ar as at au aw ax az ba bb bd be bf bg bh bi","bj bm bn bo br bs bt bw by bz ca cc cd cf cg ch ci ck cl cm cn co cr cu cv","cw cx cy cz de dj dk dm do dz ec ee eg er es et eu fi fj fk fm fo fr ga gd","ge gf gg gh gi gl gm gn gp gq gr gs gt gu gw gy hk hm hn hr ht hu id ie il","im in io iq ir is it je jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc","li lk lr ls lt lu lv ly ma mc md me mg mh mk ml mm mn mo mp mq mr ms mt mu","mv mw mx my mz na nc ne nf ng ni nl no np nr nu nz om pa pe pf pg ph pk pl","pm pn pr ps pt pw py qa re ro rs ru rw sa sb sc sd se sg sh si sk sl sm sn","so sr ss st su sv sx sy sz tc td tf tg th tj tk tl tm tn to tr tt tv tw tz","ua ug uk us uy uz va vc ve vg vi vn vu wf ws ye yt za zm zw","com net org edu gov mil int info biz name pro app dev xyz online site tech","store shop cloud design digital agency studio media news blog live life","world today email systems solutions services software page link space host","press wiki team group works careers finance capital energy academy"].join(" ").split(" "));function f(e){let t=e.trim();return t?/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:function(e){const t=/^([\w-]+\.)+([a-z]{2,})(\/.*)?$/i.exec(e);return null!==t&&g.has(t[2].toLowerCase())}(t)?"https://"+t:"https://duckduckgo.com/?q="+encodeURIComponent(t):""}var w=["duckduckgo.com","developer.mozilla.org","google.com","gmail.com","youtube.com","facebook.com","instagram.com","whatsapp.com","twitter.com","x.com","github.com","gitlab.com","linkedin.com","reddit.com","pinterest.com","amazon.com","amazon.ca","amazon.co.uk","apple.com","icloud.com","microsoft.com","outlook.com","live.com","office.com","netflix.com","spotify.com","paypal.com","stripe.com","chat.openai.com","chatgpt.com","claude.ai"];function x(){if("undefined"==typeof window)return b;try{const e=localStorage.getItem(d);if(!e)return b;const t=JSON.parse(e);if(Array.isArray(t)&&t.every(e=>"string"==typeof e?.url))return t}catch{}return b}function y(){return"undefined"==typeof window?k:localStorage.getItem(p)||k}function v(){const h=i(void 0);void 0===h.current&&(h.current=t()),c(()=>{null!=h.current&&o(h.current)},[]);const k=h.current?f(h.current.url):"",[b,g]=l(y),[w,v]=l(k||b),[C,R]=l(w),[U,W]=l([w]),[D,S]=l(0),[z,T]=l(0),[A,E]=l(x),[F,L]=l(!1),[H,P]=l(null),Z=i(null),J=i(null);c(()=>{try{localStorage.setItem(d,JSON.stringify(A))}catch{}},[A]);const Q=e=>{const t=f(e);t&&(v(t),R(t),W(e=>{const o=e.slice(0,D+1);return o.push(t),o}),S(e=>e+1),L(!1))},Y=()=>{"undefined"!=typeof window&&window.open(w,"_blank","noopener,noreferrer")},I=()=>{const e=H?.trim();e?(E(t=>[...t,{label:e,url:w}]),P(null)):P(null)};c(()=>{if(null===H)return;Z.current?.focus(),Z.current?.select();const e=e=>{const t=e.target;t?.closest("[data-bookmark-popover]")||P(null)},t=setTimeout(()=>document.addEventListener("mousedown",e),0);return()=>{clearTimeout(t),document.removeEventListener("mousedown",e)}},[null!==H]);const B=e=>{E(t=>t.filter((t,o)=>o!==e))},G=D>0,V=D<U.length-1,M=A.some(e=>e.url===w),O="p-2 rounded hover:bg-gray-200 transition-colors text-gray-600 disabled:opacity-30";/* @__PURE__ */
1
+ import{InputEndActionButton as e}from"./chunk-J5OAQAAD.js";import"./chunk-NWS5G7FE.js";import"./chunk-AYZY3YNC.js";import{peekBrowserStartUrl as t,claimBrowserStartUrl as o}from"./chunk-LWLCNQY7.js";import{AboutApp as r}from"./chunk-2ICYGTHC.js";import{WindowTitle as n}from"./chunk-H2Q7G5D6.js";import"./chunk-4LXCCZDM.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-YI4T5I5D.js";import"./chunk-PSVGB7KT.js";import"./chunk-FBZUEZK7.js";import"./chunk-5A7MWTXX.js";import"./chunk-TJ5YMXVB.js";import{confirm as s}from"./chunk-XYQFTFI7.js";import"./chunk-MRZLFZNJ.js";import"./chunk-EIFNESXS.js";import"./chunk-LC2UF3AA.js";import"./chunk-CJQPC2P3.js";import"./chunk-UAXL44HH.js";import"./chunk-VWGWZY7A.js";import"./chunk-UVHXVSB2.js";import"./chunk-UVPDEGIA.js";import"./chunk-4PJFL26P.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-DPFEQQQU.js";import"./chunk-AW7TOB6N.js";import"./chunk-EQLE2X7P.js";import"./chunk-EX3DARI3.js";import"./chunk-VQBKRBBR.js";import"./chunk-DWGYC7OD.js";import"./chunk-THAPVKEJ.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-YDJ5IZOU.js";import"./chunk-UTISUEO4.js";import"./chunk-BUFAJJDZ.js";import{Icon as a}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-BWJZTHZ6.js";import"./chunk-TD3ZQD5R.js";import"./chunk-F2RAIGCG.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-VY3UA6AR.js";import"./chunk-WCCS4VFE.js";import"./chunk-ZDXRSY2Y.js";import"./chunk-STKJA4PV.js";import"./chunk-M6UKCZHT.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-MAFUXCPZ.js";import"./chunk-NRHG4R2Q.js";import"./chunk-C3QOHMR6.js";import{useRef as i,useEffect as c,useState as l}from"react";import{jsxs as m,jsx as u,Fragment as h}from"react/jsx-runtime";var d="react-os-shell:browser-bookmarks",p="react-os-shell:browser-homepage",k="https://en.wikipedia.org/wiki/Main_Page",b=[{label:"Wikipedia",url:"https://en.wikipedia.org/wiki/Main_Page"},{label:"DevDocs",url:"https://devdocs.io"},{label:"Example",url:"https://example.com"}],g=new Set(["ac ad ae af ag ai al am ao aq ar as at au aw ax az ba bb bd be bf bg bh bi","bj bm bn bo br bs bt bw by bz ca cc cd cf cg ch ci ck cl cm cn co cr cu cv","cw cx cy cz de dj dk dm do dz ec ee eg er es et eu fi fj fk fm fo fr ga gd","ge gf gg gh gi gl gm gn gp gq gr gs gt gu gw gy hk hm hn hr ht hu id ie il","im in io iq ir is it je jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc","li lk lr ls lt lu lv ly ma mc md me mg mh mk ml mm mn mo mp mq mr ms mt mu","mv mw mx my mz na nc ne nf ng ni nl no np nr nu nz om pa pe pf pg ph pk pl","pm pn pr ps pt pw py qa re ro rs ru rw sa sb sc sd se sg sh si sk sl sm sn","so sr ss st su sv sx sy sz tc td tf tg th tj tk tl tm tn to tr tt tv tw tz","ua ug uk us uy uz va vc ve vg vi vn vu wf ws ye yt za zm zw","com net org edu gov mil int info biz name pro app dev xyz online site tech","store shop cloud design digital agency studio media news blog live life","world today email systems solutions services software page link space host","press wiki team group works careers finance capital energy academy"].join(" ").split(" "));function f(e){let t=e.trim();return t?/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:function(e){const t=/^([\w-]+\.)+([a-z]{2,})(\/.*)?$/i.exec(e);return null!==t&&g.has(t[2].toLowerCase())}(t)?"https://"+t:"https://duckduckgo.com/?q="+encodeURIComponent(t):""}var w=["duckduckgo.com","developer.mozilla.org","google.com","gmail.com","youtube.com","facebook.com","instagram.com","whatsapp.com","twitter.com","x.com","github.com","gitlab.com","linkedin.com","reddit.com","pinterest.com","amazon.com","amazon.ca","amazon.co.uk","apple.com","icloud.com","microsoft.com","outlook.com","live.com","office.com","netflix.com","spotify.com","paypal.com","stripe.com","chat.openai.com","chatgpt.com","claude.ai"];function x(){if("undefined"==typeof window)return b;try{const e=localStorage.getItem(d);if(!e)return b;const t=JSON.parse(e);if(Array.isArray(t)&&t.every(e=>"string"==typeof e?.url))return t}catch{}return b}function y(){return"undefined"==typeof window?k:localStorage.getItem(p)||k}function v(){const h=i(void 0);void 0===h.current&&(h.current=t()),c(()=>{null!=h.current&&o(h.current)},[]);const k=h.current?f(h.current.url):"",[b,g]=l(y),[w,v]=l(k||b),[C,R]=l(w),[W,D]=l([w]),[U,S]=l(0),[E,z]=l(0),[T,A]=l(x),[F,H]=l(!1),[L,P]=l(null),Q=i(null),J=i(null);c(()=>{try{localStorage.setItem(d,JSON.stringify(T))}catch{}},[T]);const Y=e=>{const t=f(e);t&&(v(t),R(t),D(e=>{const o=e.slice(0,U+1);return o.push(t),o}),S(e=>e+1),H(!1))},Z=()=>{"undefined"!=typeof window&&window.open(w,"_blank","noopener,noreferrer")},G=()=>{const e=L?.trim();e?(A(t=>[...t,{label:e,url:w}]),P(null)):P(null)};c(()=>{if(null===L)return;Q.current?.focus(),Q.current?.select();const e=e=>{const t=e.target;t?.closest("[data-bookmark-popover]")||P(null)},t=setTimeout(()=>document.addEventListener("mousedown",e),0);return()=>{clearTimeout(t),document.removeEventListener("mousedown",e)}},[null!==L]);const I=e=>{A(t=>t.filter((t,o)=>o!==e))},B=U>0,V=U<W.length-1,X=T.some(e=>e.url===w),M="p-2 rounded hover:bg-gray-200 transition-colors text-gray-600 disabled:opacity-30";/* @__PURE__ */
2
2
  return m("div",{className:"relative flex flex-col h-full bg-white",children:[
3
3
  /* @__PURE__ */u(n,{title:`Browser - ${j(w)}`}),
4
4
  /* @__PURE__ */u(r,{app:"browser"}),
5
5
  /* @__PURE__ */m("div",{className:"flex items-center gap-1 px-2 py-2 border-b border-line bg-surface-sunken shrink-0",children:[
6
- /* @__PURE__ */u("button",{onClick:()=>{if(D>0){const e=D-1;S(e),v(U[e]),R(U[e]),L(!1)}},disabled:!G,className:O,title:"Back",children:/* @__PURE__ */u(a,{name:"chevron-left",className:"h-4 w-4",strokeWidth:2})}),
7
- /* @__PURE__ */u("button",{onClick:()=>{if(D<U.length-1){const e=D+1;S(e),v(U[e]),R(U[e]),L(!1)}},disabled:!V,className:O,title:"Forward",children:/* @__PURE__ */u(a,{name:"chevron-right",className:"h-4 w-4",strokeWidth:2})}),
8
- /* @__PURE__ */u("button",{onClick:()=>T(e=>e+1),className:O,title:"Refresh",children:/* @__PURE__ */u(a,{name:"refresh",className:"h-4 w-4",strokeWidth:1.8})}),
9
- /* @__PURE__ */u("button",{onClick:()=>Q(b),className:O,title:"Home",children:/* @__PURE__ */u(a,{name:"home",className:"h-4 w-4",strokeWidth:1.8})}),
10
- /* @__PURE__ */u("form",{onSubmit:e=>{e.preventDefault(),Q(C)},className:"flex-1 flex items-center mx-1",children:/* @__PURE__ */m("div",{className:"flex items-center w-full bg-white border border-gray-300 rounded focus-within:border-blue-400 focus-within:ring-1 focus-within:ring-blue-200",children:[
6
+ /* @__PURE__ */u("button",{onClick:()=>{if(U>0){const e=U-1;S(e),v(W[e]),R(W[e]),H(!1)}},disabled:!B,className:M,title:"Back",children:/* @__PURE__ */u(a,{name:"chevron-left",className:"h-4 w-4",strokeWidth:2})}),
7
+ /* @__PURE__ */u("button",{onClick:()=>{if(U<W.length-1){const e=U+1;S(e),v(W[e]),R(W[e]),H(!1)}},disabled:!V,className:M,title:"Forward",children:/* @__PURE__ */u(a,{name:"chevron-right",className:"h-4 w-4",strokeWidth:2})}),
8
+ /* @__PURE__ */u("button",{onClick:()=>z(e=>e+1),className:M,title:"Refresh",children:/* @__PURE__ */u(a,{name:"refresh",className:"h-4 w-4",strokeWidth:1.8})}),
9
+ /* @__PURE__ */u("button",{onClick:()=>Y(b),className:M,title:"Home",children:/* @__PURE__ */u(a,{name:"home",className:"h-4 w-4",strokeWidth:1.8})}),
10
+ /* @__PURE__ */u("form",{onSubmit:e=>{e.preventDefault(),Y(C)},className:"flex-1 flex items-center mx-1",children:/* @__PURE__ */m("div",{className:"flex items-center w-full bg-white border border-gray-300 rounded focus-within:border-blue-400 focus-within:ring-1 focus-within:ring-blue-200",children:[
11
11
  /* @__PURE__ */u("span",{className:"px-2 text-gray-400 text-xs",children:w.startsWith("https://")?"🔒":"⚠️"}),
12
12
  /* @__PURE__ */u("input",{type:"text",value:C,onChange:e=>R(e.target.value),onFocus:e=>e.target.select(),className:"flex-1 px-1 py-1 text-sm bg-transparent outline-none font-mono",spellCheck:!1,placeholder:"Enter URL or search…"}),w!==C&&
13
13
  /* @__PURE__ */u("span",{className:"flex pr-1",children:/* @__PURE__ */u(e,{action:{label:"Reset to current URL",icon:/* @__PURE__ */u(a,{name:"close"}),onClick:()=>R(w)}})})]})}),
14
- /* @__PURE__ */u("button",{"data-bookmark-popover":!0,onClick:()=>M?B(A.findIndex(e=>e.url===w)):void P(j(w)),className:O+" "+(M?"text-yellow-500":""),title:M?"Remove bookmark":"Add bookmark",children:/* @__PURE__ */u(a,{name:"star",className:"h-4 w-4",fill:M?"currentColor":"none",strokeWidth:1.5})}),
15
- /* @__PURE__ */u("button",{onClick:Y,className:O,title:"Open in new tab",children:/* @__PURE__ */u(a,{name:"external",className:"h-4 w-4",strokeWidth:1.5})}),
16
- /* @__PURE__ */u("button",{onClick:()=>L(e=>!e),className:O,title:"Embedding help",children:/* @__PURE__ */u(a,{name:"help",className:"h-4 w-4",strokeWidth:1.5})})]}),null!==H&&/* @__PURE__ */m("div",{"data-bookmark-popover":!0,className:"absolute right-3 top-12 z-30 w-72 bg-white border border-gray-200 rounded-md shadow-lg p-3",children:[
14
+ /* @__PURE__ */u("button",{"data-bookmark-popover":!0,onClick:()=>X?I(T.findIndex(e=>e.url===w)):void P(j(w)),className:M+" "+(X?"text-yellow-500":""),title:X?"Remove bookmark":"Add bookmark",children:/* @__PURE__ */u(a,{name:"star",className:"h-4 w-4",fill:X?"currentColor":"none",strokeWidth:1.5})}),
15
+ /* @__PURE__ */u("button",{onClick:Z,className:M,title:"Open in new tab",children:/* @__PURE__ */u(a,{name:"external",className:"h-4 w-4",strokeWidth:1.5})}),
16
+ /* @__PURE__ */u("button",{onClick:()=>H(e=>!e),className:M,title:"Embedding help",children:/* @__PURE__ */u(a,{name:"help",className:"h-4 w-4",strokeWidth:1.5})})]}),null!==L&&/* @__PURE__ */m("div",{"data-bookmark-popover":!0,className:"absolute right-3 top-12 z-30 w-72 bg-white border border-gray-200 rounded-md shadow-lg p-3",children:[
17
17
  /* @__PURE__ */u("div",{className:"text-2xs font-semibold uppercase tracking-wide text-ink-faint mb-1",children:"Bookmark this page"}),
18
18
  /* @__PURE__ */u("div",{className:"text-2xs text-ink-faintest truncate mb-2 font-mono",title:w,children:w}),
19
- /* @__PURE__ */u("input",{ref:Z,type:"text",value:H,onChange:e=>P(e.target.value),onKeyDown:e=>{"Enter"===e.key?I():"Escape"===e.key&&P(null)},placeholder:"Name",className:"w-full text-sm px-2 h-8 border border-line-strong rounded focus:outline-none focus:border-blue-400 focus:ring-1 focus:ring-blue-200"}),
19
+ /* @__PURE__ */u("input",{ref:Q,type:"text",value:L,onChange:e=>P(e.target.value),onKeyDown:e=>{"Enter"===e.key?G():"Escape"===e.key&&P(null)},placeholder:"Name",className:"w-full text-sm px-2 h-8 border border-line-strong rounded focus:outline-none focus:border-blue-400 focus:ring-1 focus:ring-blue-200"}),
20
20
  /* @__PURE__ */m("div",{className:"flex justify-end gap-1 mt-2",children:[
21
21
  /* @__PURE__ */u("button",{onClick:()=>P(null),className:"px-2 py-1 text-xs text-gray-600 hover:bg-gray-100 rounded",children:"Cancel"}),
22
- /* @__PURE__ */u("button",{onClick:I,disabled:!H.trim(),className:"px-2 py-1 text-xs bg-blue-500 text-white rounded hover:bg-blue-600 disabled:opacity-40",children:"Save"})]})]}),
23
- /* @__PURE__ */m("div",{className:"flex items-center gap-0.5 px-2 py-1 border-b border-gray-200 bg-white shrink-0 overflow-x-auto",children:[0===A.length&&/* @__PURE__ */u("span",{className:"text-2xs text-ink-faintest italic px-2",children:"No bookmarks yet — star the address bar to add one."}),A.map((e,t)=>/* @__PURE__ */m("button",{onClick:()=>Q(e.url),onContextMenu:async o=>{o.preventDefault();await s({title:"Remove bookmark",message:`"${e.label}" will be removed from your bookmarks.`,confirmLabel:"Remove",variant:"danger"})&&B(t)},className:"flex items-center gap-2 px-2 py-0.5 rounded text-xs text-ink hover:bg-gray-100 whitespace-nowrap",title:`${e.url}\n(right-click to remove)`,children:[
22
+ /* @__PURE__ */u("button",{onClick:G,disabled:!L.trim(),className:"px-2 py-1 text-xs bg-blue-500 text-white rounded hover:bg-blue-600 disabled:opacity-40",children:"Save"})]})]}),
23
+ /* @__PURE__ */m("div",{className:"flex items-center gap-0.5 px-2 py-1 border-b border-gray-200 bg-white shrink-0 overflow-x-auto",children:[0===T.length&&/* @__PURE__ */u("span",{className:"text-2xs text-ink-faintest italic px-2",children:"No bookmarks yet — star the address bar to add one."}),T.map((e,t)=>/* @__PURE__ */m("button",{onClick:()=>Y(e.url),onContextMenu:async o=>{o.preventDefault();await s({title:"Remove bookmark",message:`"${e.label}" will be removed from your bookmarks.`,confirmLabel:"Remove",variant:"danger"})&&I(t)},className:"flex items-center gap-2 px-2 py-0.5 rounded text-xs text-ink hover:bg-gray-100 whitespace-nowrap",title:`${e.url}\n(right-click to remove)`,children:[
24
24
  /* @__PURE__ */u("img",{src:`https://icons.duckduckgo.com/ip3/${new URL(e.url).hostname}.ico`,alt:"",className:"h-3.5 w-3.5",onError:e=>{e.target.style.visibility="hidden"}}),e.label]},t)),
25
25
  /* @__PURE__ */u("div",{className:"flex-1"}),
26
26
  /* @__PURE__ */u("button",{onClick:()=>{g(w);try{localStorage.setItem(p,w)}catch{}},className:"px-2 py-0.5 text-2xs text-ink-faint hover:text-ink-strong",title:"Set current page as homepage",children:"Set as home"})]}),
27
- /* @__PURE__ */u("div",{className:"flex-1 relative min-h-0 bg-gray-50",children:/* @__PURE__ */u(N,{url:w,iframeKey:z,iframeRef:J,openExternal:Y,showHelp:F,dismissHelp:()=>L(!1)})})]})}function j(e){try{return new URL(e).hostname.replace(/^www\./,"")}catch{return e}}function N({url:e,iframeKey:t,iframeRef:o,openExternal:r,showHelp:n,dismissHelp:s}){const[i,d]=l(!1);c(()=>{d(!1)},[e]);return function(e){try{const t=new URL(e).hostname.toLowerCase();return w.some(e=>t===e||t.endsWith("."+e))}catch{return!1}}(e)&&!i?/* @__PURE__ */u("div",{className:"absolute inset-0 flex items-center justify-center bg-white p-8",children:/* @__PURE__ */m("div",{className:"max-w-md text-center",children:[
27
+ /* @__PURE__ */u("div",{className:"flex-1 relative min-h-0 bg-gray-50",children:/* @__PURE__ */u(N,{url:w,iframeKey:E,iframeRef:J,openExternal:Z,showHelp:F,dismissHelp:()=>H(!1)})})]})}function j(e){try{return new URL(e).hostname.replace(/^www\./,"")}catch{return e}}function N({url:e,iframeKey:t,iframeRef:o,openExternal:r,showHelp:n,dismissHelp:s}){const[i,d]=l(!1);c(()=>{d(!1)},[e]);return function(e){try{const t=new URL(e).hostname.toLowerCase();return w.some(e=>t===e||t.endsWith("."+e))}catch{return!1}}(e)&&!i?/* @__PURE__ */u("div",{className:"absolute inset-0 flex items-center justify-center bg-white p-8",children:/* @__PURE__ */m("div",{className:"max-w-md text-center",children:[
28
28
  /* @__PURE__ */u(a,{name:"no-symbol",className:"h-14 w-14 mx-auto text-gray-300 mb-3",strokeWidth:1.2}),
29
29
  /* @__PURE__ */m("h3",{className:"text-base font-semibold text-gray-800 mb-1",children:[j(e)," can't be embedded"]}),
30
30
  /* @__PURE__ */m("p",{className:"text-sm text-gray-500 mb-4",children:["This site sends an ",
@@ -1,29 +1,29 @@
1
- import{loadAppearance as t,WidgetSettingsModal as e}from"./chunk-VB3UHY2J.js";import{useWidgetSettings as n}from"./chunk-BT636U6W.js";import"./chunk-4LXCCZDM.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-YI4T5I5D.js";import"./chunk-PSVGB7KT.js";import"./chunk-FBZUEZK7.js";import"./chunk-5A7MWTXX.js";import"./chunk-TJ5YMXVB.js";import"./chunk-XYQFTFI7.js";import"./chunk-MRZLFZNJ.js";import"./chunk-EIFNESXS.js";import"./chunk-LC2UF3AA.js";import"./chunk-CJQPC2P3.js";import"./chunk-UAXL44HH.js";import"./chunk-VWGWZY7A.js";import"./chunk-UVHXVSB2.js";import"./chunk-UVPDEGIA.js";import"./chunk-AW7TOB6N.js";import"./chunk-4PJFL26P.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-DPFEQQQU.js";import"./chunk-EX3DARI3.js";import"./chunk-VQBKRBBR.js";import"./chunk-DWGYC7OD.js";import"./chunk-YDJ5IZOU.js";import"./chunk-THAPVKEJ.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UTISUEO4.js";import"./chunk-BUFAJJDZ.js";import{Icon as r}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-BWJZTHZ6.js";import"./chunk-TD3ZQD5R.js";import"./chunk-F2RAIGCG.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-VY3UA6AR.js";import"./chunk-WCCS4VFE.js";import"./chunk-ZDXRSY2Y.js";import"./chunk-STKJA4PV.js";import"./chunk-M6UKCZHT.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-MAFUXCPZ.js";import"./chunk-NRHG4R2Q.js";import"./chunk-C3QOHMR6.js";import{useState as c,useRef as i,useCallback as o,useEffect as s}from"react";import{jsxs as l,Fragment as a,jsx as u}from"react/jsx-runtime";var h="calc_appearance";function m(){const[m,k]=c("0"),[p,d]=c(null),[b,j]=c(null),[g,N]=c(!1),[y,C]=c(""),[x,f]=c([]),[v,$]=c(!1),[T,U]=c(()=>t(h)),[E,F]=c(!1),[A,D]=c(T),R=i(null);n(o(()=>{D({...T}),F(!0)},[T]));const S=o(t=>{C(""),k(e=>g||"0"===e?(N(!1),"."===t?"0.":t):"."===t&&e.includes(".")?e:e+t)},[g]),B=o(()=>{k("0"),d(null),j(null),N(!1)},[]),J=o((t,e,n)=>{switch(n){case"+":return t+e;case"-":return t-e;case"×":return t*e;case"÷":return 0===e?0:t/e;default:return e}},[]),W=o(t=>{const e=parseFloat(m);if(null!==p&&b&&!g){const t=J(p,e,b);k(String(t)),d(t),f(n=>[`${p} ${b} ${e} = ${t}`,...n].slice(0,20))}else d(e);j(t),N(!0)},[m,p,b,g,J]),Z=o(()=>{if(null===p||!b)return;const t=parseFloat(m),e=J(p,t,b),n=`${p} ${b} ${t} =`;f(t=>[`${n} ${e}`,...t].slice(0,20)),C(n),k(String(e)),d(null),j(null),N(!0)},[m,p,b,J]),V=o(()=>{k(t=>String(parseFloat(t)/100))},[]),Q=o(()=>{k(t=>t.startsWith("-")?t.slice(1):"0"===t?t:"-"+t)},[]);s(()=>{const t=t=>{const e=t.target.tagName;"INPUT"!==e&&"TEXTAREA"!==e&&"SELECT"!==e&&(t.key>="0"&&t.key<="9"?S(t.key):"."===t.key?S("."):"+"===t.key?W("+"):"-"===t.key?W("-"):"*"===t.key?W("×"):"/"===t.key?(t.preventDefault(),W("÷")):"Enter"===t.key||"="===t.key?("Enter"===t.key&&t.target instanceof Node&&R.current?.contains(t.target)&&t.preventDefault(),Z()):"Escape"===t.key?B():"Backspace"===t.key?k(t=>t.length>1?t.slice(0,-1):"0"):"%"===t.key&&V())};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[S,W,Z,B,V]);const P="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",Y=`${P} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,w=`${P} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,H=`${P} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,X=`${P} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
1
+ import{loadAppearance as t,WidgetSettingsModal as e}from"./chunk-GAEQYCLS.js";import{useWidgetSettings as n}from"./chunk-H2Q7G5D6.js";import"./chunk-4LXCCZDM.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-YI4T5I5D.js";import"./chunk-PSVGB7KT.js";import"./chunk-FBZUEZK7.js";import"./chunk-5A7MWTXX.js";import"./chunk-TJ5YMXVB.js";import"./chunk-XYQFTFI7.js";import"./chunk-MRZLFZNJ.js";import"./chunk-EIFNESXS.js";import"./chunk-LC2UF3AA.js";import"./chunk-CJQPC2P3.js";import"./chunk-UAXL44HH.js";import"./chunk-VWGWZY7A.js";import"./chunk-UVHXVSB2.js";import"./chunk-UVPDEGIA.js";import"./chunk-4PJFL26P.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-DPFEQQQU.js";import"./chunk-AW7TOB6N.js";import"./chunk-EX3DARI3.js";import"./chunk-VQBKRBBR.js";import"./chunk-DWGYC7OD.js";import"./chunk-THAPVKEJ.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-YDJ5IZOU.js";import"./chunk-UTISUEO4.js";import"./chunk-BUFAJJDZ.js";import{Icon as r}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-BWJZTHZ6.js";import"./chunk-TD3ZQD5R.js";import"./chunk-F2RAIGCG.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-VY3UA6AR.js";import"./chunk-WCCS4VFE.js";import"./chunk-ZDXRSY2Y.js";import"./chunk-STKJA4PV.js";import"./chunk-M6UKCZHT.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-MAFUXCPZ.js";import"./chunk-NRHG4R2Q.js";import"./chunk-C3QOHMR6.js";import{useState as c,useRef as i,useCallback as o,useEffect as s}from"react";import{jsxs as l,Fragment as a,jsx as u}from"react/jsx-runtime";var h="calc_appearance";function m(){const[m,k]=c("0"),[p,d]=c(null),[b,j]=c(null),[g,N]=c(!1),[C,y]=c(""),[x,f]=c([]),[v,$]=c(!1),[E,T]=c(()=>t(h)),[F,U]=c(!1),[A,D]=c(E),R=i(null);n(o(()=>{D({...E}),U(!0)},[E]));const S=o(t=>{y(""),k(e=>g||"0"===e?(N(!1),"."===t?"0.":t):"."===t&&e.includes(".")?e:e+t)},[g]),Q=o(()=>{k("0"),d(null),j(null),N(!1)},[]),Z=o((t,e,n)=>{switch(n){case"+":return t+e;case"-":return t-e;case"×":return t*e;case"÷":return 0===e?0:t/e;default:return e}},[]),J=o(t=>{const e=parseFloat(m);if(null!==p&&b&&!g){const t=Z(p,e,b);k(String(t)),d(t),f(n=>[`${p} ${b} ${e} = ${t}`,...n].slice(0,20))}else d(e);j(t),N(!0)},[m,p,b,g,Z]),W=o(()=>{if(null===p||!b)return;const t=parseFloat(m),e=Z(p,t,b),n=`${p} ${b} ${t} =`;f(t=>[`${n} ${e}`,...t].slice(0,20)),y(n),k(String(e)),d(null),j(null),N(!0)},[m,p,b,Z]),B=o(()=>{k(t=>String(parseFloat(t)/100))},[]),V=o(()=>{k(t=>t.startsWith("-")?t.slice(1):"0"===t?t:"-"+t)},[]);s(()=>{const t=t=>{const e=t.target.tagName;"INPUT"!==e&&"TEXTAREA"!==e&&"SELECT"!==e&&(t.key>="0"&&t.key<="9"?S(t.key):"."===t.key?S("."):"+"===t.key?J("+"):"-"===t.key?J("-"):"*"===t.key?J("×"):"/"===t.key?(t.preventDefault(),J("÷")):"Enter"===t.key||"="===t.key?("Enter"===t.key&&t.target instanceof Node&&R.current?.contains(t.target)&&t.preventDefault(),W()):"Escape"===t.key?Q():"Backspace"===t.key?k(t=>t.length>1?t.slice(0,-1):"0"):"%"===t.key&&B())};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[S,J,W,Q,B]);const P="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",Y=`${P} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,w=`${P} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,G=`${P} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,H=`${P} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
2
2
  return l(a,{children:[
3
- /* @__PURE__ */l("div",{ref:R,className:"flex flex-col h-full",style:{opacity:T.activeOpacity/100,backdropFilter:T.activeBlur>0?`blur(${T.activeBlur}px)`:void 0},children:[
3
+ /* @__PURE__ */l("div",{ref:R,className:"flex flex-col h-full",style:{opacity:E.activeOpacity/100,backdropFilter:E.activeBlur>0?`blur(${E.activeBlur}px)`:void 0},children:[
4
4
  /* @__PURE__ */l("div",{className:"bg-slate-200 rounded-t-lg px-4 py-2 group/display relative flex flex-col justify-end min-h-[120px] border-b border-slate-300",children:[
5
- /* @__PURE__ */u("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:x.slice(0,3).reverse().map((t,e)=>/* @__PURE__ */u("div",{className:"text-2xs text-slate-400 text-right font-mono truncate",children:t},e))}),(y||b&&null!==p)&&/* @__PURE__ */u("div",{className:"text-base text-slate-600 text-right font-mono",children:y||`${p} ${b} ${g?"":m}`}),
5
+ /* @__PURE__ */u("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:x.slice(0,3).reverse().map((t,e)=>/* @__PURE__ */u("div",{className:"text-2xs text-slate-400 text-right font-mono truncate",children:t},e))}),(C||b&&null!==p)&&/* @__PURE__ */u("div",{className:"text-base text-slate-600 text-right font-mono",children:C||`${p} ${b} ${g?"":m}`}),
6
6
  /* @__PURE__ */l("div",{className:"flex items-center gap-2",children:[
7
7
  /* @__PURE__ */u("button",{onClick:()=>{navigator.clipboard.writeText(m),$(!0),setTimeout(()=>$(!1),1200)},title:"Copy result",className:"shrink-0 text-slate-300 hover:text-slate-500 transition-colors opacity-0 group-hover/display:opacity-100",children:/* @__PURE__ */u(r,v?{name:"check",className:"h-5 w-5 text-green-500",strokeWidth:2}:{name:"copy",className:"h-5 w-5",strokeWidth:2})}),
8
8
  /* @__PURE__ */u("div",{className:"text-right text-4xl font-mono font-bold text-slate-800 truncate flex-1",children:(t=>{const e=parseFloat(t);return isNaN(e)||t.endsWith(".")||t.endsWith(".0")||Math.abs(e)<1e15&&t.length<16?t:e.toExponential(6)})(m)})]})]}),
9
9
  /* @__PURE__ */l("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
10
- /* @__PURE__ */u("button",{onClick:B,className:H,children:"AC"}),
11
- /* @__PURE__ */u("button",{onClick:Q,className:H,children:"+/−"}),
12
- /* @__PURE__ */u("button",{onClick:V,className:H,children:"%"}),
13
- /* @__PURE__ */u("button",{onClick:()=>W("÷"),className:`${w} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
10
+ /* @__PURE__ */u("button",{onClick:Q,className:G,children:"AC"}),
11
+ /* @__PURE__ */u("button",{onClick:V,className:G,children:"+/−"}),
12
+ /* @__PURE__ */u("button",{onClick:B,className:G,children:"%"}),
13
+ /* @__PURE__ */u("button",{onClick:()=>J("÷"),className:`${w} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
14
14
  /* @__PURE__ */u("button",{onClick:()=>S("7"),className:Y,children:"7"}),
15
15
  /* @__PURE__ */u("button",{onClick:()=>S("8"),className:Y,children:"8"}),
16
16
  /* @__PURE__ */u("button",{onClick:()=>S("9"),className:Y,children:"9"}),
17
- /* @__PURE__ */u("button",{onClick:()=>W("×"),className:`${w} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
17
+ /* @__PURE__ */u("button",{onClick:()=>J("×"),className:`${w} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
18
18
  /* @__PURE__ */u("button",{onClick:()=>S("4"),className:Y,children:"4"}),
19
19
  /* @__PURE__ */u("button",{onClick:()=>S("5"),className:Y,children:"5"}),
20
20
  /* @__PURE__ */u("button",{onClick:()=>S("6"),className:Y,children:"6"}),
21
- /* @__PURE__ */u("button",{onClick:()=>W("-"),className:`${w} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
21
+ /* @__PURE__ */u("button",{onClick:()=>J("-"),className:`${w} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
22
22
  /* @__PURE__ */u("button",{onClick:()=>S("1"),className:Y,children:"1"}),
23
23
  /* @__PURE__ */u("button",{onClick:()=>S("2"),className:Y,children:"2"}),
24
24
  /* @__PURE__ */u("button",{onClick:()=>S("3"),className:Y,children:"3"}),
25
- /* @__PURE__ */u("button",{onClick:()=>W("+"),className:`${w} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
25
+ /* @__PURE__ */u("button",{onClick:()=>J("+"),className:`${w} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
26
26
  /* @__PURE__ */u("button",{onClick:()=>S("0"),className:`${Y} col-span-2`,children:"0"}),
27
27
  /* @__PURE__ */u("button",{onClick:()=>S("."),className:Y,children:"."}),
28
- /* @__PURE__ */u("button",{onClick:Z,className:X,children:"="})]})]}),
29
- /* @__PURE__ */u(e,{open:E,onClose:()=>F(!1),title:"Calculator Settings",appearance:A,onAppearanceChange:D,onSave:()=>{U(A),localStorage.setItem(h,JSON.stringify(A)),F(!1)}})]})}export{m as default};
28
+ /* @__PURE__ */u("button",{onClick:W,className:H,children:"="})]})]}),
29
+ /* @__PURE__ */u(e,{open:F,onClose:()=>U(!1),title:"Calculator Settings",appearance:A,onAppearanceChange:D,onSave:()=>{T(A),localStorage.setItem(h,JSON.stringify(A)),U(!1)}})]})}export{m as default};
@@ -0,0 +1 @@
1
+ import{forwardRef as e,useRef as r,useEffect as o,useImperativeHandle as t}from"react";import{Annotation as a,Compartment as n,EditorState as c,Transaction as i}from"@codemirror/state";import{EditorView as l,lineNumbers as s,highlightActiveLine as m,drawSelection as d,keymap as u}from"@codemirror/view";import{history as f,defaultKeymap as g,historyKeymap as p,indentWithTab as v}from"@codemirror/commands";import{LanguageSupport as b,LRLanguage as h,HighlightStyle as k,indentOnInput as y,syntaxHighlighting as x}from"@codemirror/language";import{css as N}from"@codemirror/lang-css";import{parser as C}from"@lezer/html";import{parseMixed as w}from"@lezer/common";import{tags as z}from"@lezer/highlight";import{jsx as S}from"react/jsx-runtime";var L=a.define(),B=N().language,O=new b(h.define({name:"html",parser:C.configure({wrap:w(e=>"StyleText"===e.name?{parser:B.parser}:null)}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}}}}),[B.data.of({})]),T=k.define([{tag:[z.tagName,z.angleBracket],color:"var(--code-tag)"},{tag:z.attributeName,color:"var(--code-attribute)"},{tag:[z.string,z.attributeValue],color:"var(--code-string)"},{tag:[z.propertyName,z.definition(z.propertyName)],color:"var(--code-property)"},{tag:[z.number,z.unit,z.color,z.keyword,z.atom],color:"var(--code-value)"},{tag:[z.className,z.labelName,z.variableName,z.special(z.variableName)],color:"var(--code-selector)"},{tag:[z.comment,z.blockComment,z.lineComment],color:"var(--code-comment)",fontStyle:"italic"},{tag:[z.punctuation,z.separator,z.bracket],color:"var(--code-punctuation)"}]),A=l.theme({"&":{height:"100%",color:"var(--code-text)",backgroundColor:"var(--surface)",fontSize:"var(--text-xs, 12px)",isolation:"isolate"},"&.cm-focused":{outline:"0"},"&.cm-focused::after":{content:'""',position:"absolute",inset:"0",border:"var(--border-strong) solid var(--rosh-focus-ring)",borderRadius:"inherit",pointerEvents:"none",zIndex:2},".cm-scroller":{fontFamily:"var(--font-mono)",lineHeight:"var(--code-line-height)"},".cm-content":{padding:"var(--space-8) 0",caretColor:"var(--ink-strongest)"},".cm-line":{padding:"0 var(--space-12)"},".cm-gutters":{zIndex:1,backgroundColor:"var(--surface-sunken)",color:"var(--code-line-number)",borderRight:"var(--border-hairline) solid var(--line)"},".cm-lineNumbers .cm-gutterElement":{padding:"0 var(--space-8) 0 var(--space-12)"},".cm-activeLine":{backgroundColor:"var(--code-active-line)"},".cm-activeLineGutter":{backgroundColor:"var(--code-active-line)",color:"var(--code-text)"},"&.cm-editor.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, &.cm-editor > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{backgroundColor:"var(--code-selection)"}}),E=e(function({value:e,onChange:a,label:b,readOnly:h=!1,className:k},N){const C=r(null),w=r(null),z=r(a);z.current=a;const B=r(new n),E=r(new n);return o(()=>{if(!C.current)return;const r=new l({parent:C.current,state:c.create({doc:e,extensions:[s(),m(),d(),f(),y(),u.of([...g,...p,v]),O,x(T),A,B.current.of(H(h)),E.current.of(l.contentAttributes.of({"aria-label":b})),l.updateListener.of(e=>{e.docChanged&&!e.transactions.some(e=>e.annotation(L))&&z.current(e.state.doc.toString())})]})});return w.current=r,()=>{r.destroy(),w.current=null}},[]),o(()=>{const r=w.current;r&&r.state.doc.toString()!==e&&r.dispatch({changes:{from:0,to:r.state.doc.length,insert:e},annotations:[L.of(!0),i.addToHistory.of(!1)]})},[e]),o(()=>{w.current?.dispatch({effects:B.current.reconfigure(H(h))})},[h]),o(()=>{w.current?.dispatch({effects:E.current.reconfigure(l.contentAttributes.of({"aria-label":b}))})},[b]),t(N,()=>({insert(e){const r=w.current;r&&!r.state.readOnly&&(r.dispatch(r.state.replaceSelection(e)),r.focus())},focus(){w.current?.focus()}}),[]),/* @__PURE__ */S("div",{ref:C,className:k,style:{height:"100%"}})});function H(e){return[c.readOnly.of(e),l.editable.of(!e)]}export{E as default};
@@ -1,6 +1,6 @@
1
- import{loadAppearance as t,WidgetSettingsModal as e}from"./chunk-VB3UHY2J.js";import{useWidgetSettings as r}from"./chunk-BT636U6W.js";import"./chunk-4LXCCZDM.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-YI4T5I5D.js";import"./chunk-PSVGB7KT.js";import"./chunk-FBZUEZK7.js";import"./chunk-5A7MWTXX.js";import"./chunk-TJ5YMXVB.js";import"./chunk-XYQFTFI7.js";import"./chunk-MRZLFZNJ.js";import"./chunk-EIFNESXS.js";import"./chunk-LC2UF3AA.js";import"./chunk-CJQPC2P3.js";import"./chunk-UAXL44HH.js";import"./chunk-VWGWZY7A.js";import"./chunk-UVHXVSB2.js";import"./chunk-UVPDEGIA.js";import"./chunk-AW7TOB6N.js";import"./chunk-4PJFL26P.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-DPFEQQQU.js";import"./chunk-EX3DARI3.js";import"./chunk-VQBKRBBR.js";import"./chunk-DWGYC7OD.js";import"./chunk-YDJ5IZOU.js";import"./chunk-THAPVKEJ.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UTISUEO4.js";import"./chunk-BUFAJJDZ.js";import"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as n}from"./chunk-R2VKEMZH.js";import"./chunk-BWJZTHZ6.js";import"./chunk-TD3ZQD5R.js";import"./chunk-F2RAIGCG.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-VY3UA6AR.js";import"./chunk-WCCS4VFE.js";import"./chunk-ZDXRSY2Y.js";import"./chunk-STKJA4PV.js";import"./chunk-M6UKCZHT.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-MAFUXCPZ.js";import"./chunk-NRHG4R2Q.js";import"./chunk-C3QOHMR6.js";import{useState as s,useCallback as o,useEffect as c}from"react";import{jsxs as i,Fragment as a,jsx as m}from"react/jsx-runtime";var l=["USD","CNY","AUD","GBP","EUR","JPY","CAD","THB","NZD","SGD","HKD","CHF","KRW","INR","MXN","BRL"],u=[["USD","CNY"],["USD","AUD"],["GBP","USD"],["USD","JPY"]],p="currency_pairs",h="currency_appearance",d="currency_rates_cache";function k(t){try{const e=JSON.parse(localStorage.getItem(d)||"{}")[t];if(e&&Date.now()-e.timestamp<36e5)return e.rates}catch{}return null}function j(t,e){try{const r=JSON.parse(localStorage.getItem(d)||"{}");r[t]={rates:e,timestamp:Date.now()},localStorage.setItem(d,JSON.stringify(r))}catch{}}function g(){try{const t=JSON.parse(localStorage.getItem(p)||"");if(Array.isArray(t)&&t.length)return t.slice(0,4)}catch{}return u}var N={USD:"🇺🇸",CNY:"🇨🇳",AUD:"🇦🇺",GBP:"🇬🇧",JPY:"🇯🇵",CAD:"🇨🇦",EUR:"🇪🇺",THB:"🇹🇭",NZD:"🇳🇿",SGD:"🇸🇬",HKD:"🇭🇰",CHF:"🇨🇭",KRW:"🇰🇷",INR:"🇮🇳",MXN:"🇲🇽",BRL:"🇧🇷"};function f(){const[u,d]=s(g),[f,x]=s(()=>t(h)),[y,D]=s({}),[b,S]=s(!1),[U,C]=s(!1),[v,J]=s([]),[R,A]=s(f),[B,F]=s("USD"),[Y,P]=s("CNY");r(o(()=>{J([...u]),A({...f}),C(!0)},[u,f])),c(()=>{const t=[...new Set(u.map(([t])=>t))];let e=!0;return async function(){S(!0);const r={};for(const e of t){const t=k(e);if(t)r[e]=t;else try{const t=await fetch(`https://open.er-api.com/v6/latest/${e}`),n=await t.json();n.rates&&(r[e]=n.rates,j(e,n.rates))}catch{}}e&&(D(r),S(!1))}(),()=>{e=!1}},[u]);/* @__PURE__ */
1
+ import{loadAppearance as t,WidgetSettingsModal as e}from"./chunk-GAEQYCLS.js";import{useWidgetSettings as r}from"./chunk-H2Q7G5D6.js";import"./chunk-4LXCCZDM.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-YI4T5I5D.js";import"./chunk-PSVGB7KT.js";import"./chunk-FBZUEZK7.js";import"./chunk-5A7MWTXX.js";import"./chunk-TJ5YMXVB.js";import"./chunk-XYQFTFI7.js";import"./chunk-MRZLFZNJ.js";import"./chunk-EIFNESXS.js";import"./chunk-LC2UF3AA.js";import"./chunk-CJQPC2P3.js";import"./chunk-UAXL44HH.js";import"./chunk-VWGWZY7A.js";import"./chunk-UVHXVSB2.js";import"./chunk-UVPDEGIA.js";import"./chunk-4PJFL26P.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-DPFEQQQU.js";import"./chunk-AW7TOB6N.js";import"./chunk-EX3DARI3.js";import"./chunk-VQBKRBBR.js";import"./chunk-DWGYC7OD.js";import"./chunk-THAPVKEJ.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-YDJ5IZOU.js";import"./chunk-UTISUEO4.js";import"./chunk-BUFAJJDZ.js";import"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as n}from"./chunk-R2VKEMZH.js";import"./chunk-BWJZTHZ6.js";import"./chunk-TD3ZQD5R.js";import"./chunk-F2RAIGCG.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-VY3UA6AR.js";import"./chunk-WCCS4VFE.js";import"./chunk-ZDXRSY2Y.js";import"./chunk-STKJA4PV.js";import"./chunk-M6UKCZHT.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-MAFUXCPZ.js";import"./chunk-NRHG4R2Q.js";import"./chunk-C3QOHMR6.js";import{useState as s,useCallback as o,useEffect as c}from"react";import{jsxs as i,Fragment as a,jsx as m}from"react/jsx-runtime";var l=["USD","CNY","AUD","GBP","EUR","JPY","CAD","THB","NZD","SGD","HKD","CHF","KRW","INR","MXN","BRL"],u=[["USD","CNY"],["USD","AUD"],["GBP","USD"],["USD","JPY"]],p="currency_pairs",h="currency_appearance",d="currency_rates_cache";function k(t){try{const e=JSON.parse(localStorage.getItem(d)||"{}")[t];if(e&&Date.now()-e.timestamp<36e5)return e.rates}catch{}return null}function j(t,e){try{const r=JSON.parse(localStorage.getItem(d)||"{}");r[t]={rates:e,timestamp:Date.now()},localStorage.setItem(d,JSON.stringify(r))}catch{}}function g(){try{const t=JSON.parse(localStorage.getItem(p)||"");if(Array.isArray(t)&&t.length)return t.slice(0,4)}catch{}return u}var N={USD:"🇺🇸",CNY:"🇨🇳",AUD:"🇦🇺",GBP:"🇬🇧",JPY:"🇯🇵",CAD:"🇨🇦",EUR:"🇪🇺",THB:"🇹🇭",NZD:"🇳🇿",SGD:"🇸🇬",HKD:"🇭🇰",CHF:"🇨🇭",KRW:"🇰🇷",INR:"🇮🇳",MXN:"🇲🇽",BRL:"🇧🇷"};function f(){const[u,d]=s(g),[f,x]=s(()=>t(h)),[D,y]=s({}),[b,S]=s(!1),[C,U]=s(!1),[v,R]=s([]),[A,J]=s(f),[B,F]=s("USD"),[Y,P]=s("CNY");r(o(()=>{R([...u]),J({...f}),U(!0)},[u,f])),c(()=>{const t=[...new Set(u.map(([t])=>t))];let e=!0;return async function(){S(!0);const r={};for(const e of t){const t=k(e);if(t)r[e]=t;else try{const t=await fetch(`https://open.er-api.com/v6/latest/${e}`),n=await t.json();n.rates&&(r[e]=n.rates,j(e,n.rates))}catch{}}e&&(y(r),S(!1))}(),()=>{e=!1}},[u]);/* @__PURE__ */
2
2
  return i(a,{children:[
3
- /* @__PURE__ */m("div",{style:{backgroundColor:`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${f.activeOpacity/100})`,backdropFilter:f.activeBlur>0?`blur(${f.activeBlur}px)`:void 0},children:/* @__PURE__ */i("div",{className:"px-4 py-3 space-y-1",children:[b&&/* @__PURE__ */m(n,{size:"sm",padding:"py-4",label:"Loading rates"}),u.map(([t,e],r)=>{const n=y[t]?.[e];/* @__PURE__ */
3
+ /* @__PURE__ */m("div",{style:{backgroundColor:`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${f.activeOpacity/100})`,backdropFilter:f.activeBlur>0?`blur(${f.activeBlur}px)`:void 0},children:/* @__PURE__ */i("div",{className:"px-4 py-3 space-y-1",children:[b&&/* @__PURE__ */m(n,{size:"sm",padding:"py-4",label:"Loading rates"}),u.map(([t,e],r)=>{const n=D[t]?.[e];/* @__PURE__ */
4
4
  return i("button",{onClick:()=>{const t=u.map((t,e)=>e===r?[t[1],t[0]]:t);d(t),localStorage.setItem(p,JSON.stringify(t))},className:"flex items-center justify-between px-2 py-2 border-b border-gray-200 last:border-0 w-full hover:bg-gray-100 rounded transition-colors cursor-pointer",children:[
5
5
  /* @__PURE__ */i("div",{className:"flex items-center gap-2",children:[
6
6
  /* @__PURE__ */m("span",{className:"text-base",children:N[t]||""}),
@@ -9,13 +9,13 @@ return i("button",{onClick:()=>{const t=u.map((t,e)=>e===r?[t[1],t[0]]:t);d(t),l
9
9
  /* @__PURE__ */m("span",{className:"text-base",children:N[e]||""}),
10
10
  /* @__PURE__ */m("span",{className:"text-sm font-semibold text-gray-700",children:e})]}),
11
11
  /* @__PURE__ */m("div",{className:"text-base font-mono font-semibold text-gray-900 tabular-nums",children:null!=n?n.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:4}):"—"})]},`${t}-${e}-${r}`)})]})}),
12
- /* @__PURE__ */m(e,{open:U,onClose:()=>C(!1),title:"Currency Settings",appearance:R,onAppearanceChange:A,onSave:()=>{if(0===v.length)return;const t=v.slice(0,4);d(t),x(R),localStorage.setItem(p,JSON.stringify(t)),localStorage.setItem(h,JSON.stringify(R)),C(!1)},children:/* @__PURE__ */i("div",{children:[
12
+ /* @__PURE__ */m(e,{open:C,onClose:()=>U(!1),title:"Currency Settings",appearance:A,onAppearanceChange:J,onSave:()=>{if(0===v.length)return;const t=v.slice(0,4);d(t),x(A),localStorage.setItem(p,JSON.stringify(t)),localStorage.setItem(h,JSON.stringify(A)),U(!1)},children:/* @__PURE__ */i("div",{children:[
13
13
  /* @__PURE__ */i("h3",{className:"text-sm font-semibold text-ink mb-2",children:["Currency Pairs ",
14
14
  /* @__PURE__ */i("span",{className:"text-2xs font-normal text-ink-faintest",children:["(",v.length,"/",4,")"]})]}),
15
15
  /* @__PURE__ */m("div",{className:"space-y-1 mb-2",children:v.map(([t,e],r)=>/* @__PURE__ */i("div",{className:"flex items-center justify-between py-1 px-2 bg-gray-50 rounded",children:[
16
16
  /* @__PURE__ */i("span",{className:"text-sm",children:[N[t]||""," ",t," → ",N[e]||""," ",e]}),
17
- /* @__PURE__ */m("button",{onClick:()=>J(t=>t.filter((t,e)=>e!==r)),className:"text-red-400 hover:text-red-600",children:"×"})]},r))}),v.length<4?/* @__PURE__ */i("div",{className:"flex items-center gap-2",children:[
17
+ /* @__PURE__ */m("button",{onClick:()=>R(t=>t.filter((t,e)=>e!==r)),className:"text-red-400 hover:text-red-600",children:"×"})]},r))}),v.length<4?/* @__PURE__ */i("div",{className:"flex items-center gap-2",children:[
18
18
  /* @__PURE__ */m("select",{value:B,onChange:t=>F(t.target.value),className:"bg-gray-50 border border-gray-200 rounded px-2 py-1 text-sm focus:outline-none focus:ring-1 focus:ring-blue-500",children:l.map(t=>/* @__PURE__ */m("option",{children:t},t))}),
19
19
  /* @__PURE__ */m("span",{className:"text-gray-400",children:"→"}),
20
20
  /* @__PURE__ */m("select",{value:Y,onChange:t=>P(t.target.value),className:"bg-gray-50 border border-gray-200 rounded px-2 py-1 text-sm focus:outline-none focus:ring-1 focus:ring-blue-500",children:l.map(t=>/* @__PURE__ */m("option",{children:t},t))}),
21
- /* @__PURE__ */m("button",{onClick:()=>{B!==Y&&v.length<4&&J(t=>[...t,[B,Y]])},className:"text-sm font-medium text-blue-600 hover:text-blue-800 px-2",children:"+ Add"})]}):/* @__PURE__ */i("p",{className:"text-2xs text-ink-faintest italic",children:["Max ",4," pairs — remove one to add another."]})]})})]})}export{f as default};
21
+ /* @__PURE__ */m("button",{onClick:()=>{B!==Y&&v.length<4&&R(t=>[...t,[B,Y]])},className:"text-sm font-medium text-blue-600 hover:text-blue-800 px-2",children:"+ Add"})]}):/* @__PURE__ */i("p",{className:"text-2xs text-ink-faintest italic",children:["Max ",4," pairs — remove one to add another."]})]})})]})}export{f as default};