tinker-translate 0.2.0 → 0.2.1
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-600:oklch(57.7% .245 27.325);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-950:oklch(26.2% .051 172.552);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-100:oklch(97% .001 106.424);--color-stone-200:oklch(92.3% .003 48.717);--color-stone-300:oklch(86.9% .005 56.366);--color-stone-400:oklch(70.9% .01 56.259);--color-stone-500:oklch(55.3% .013 58.071);--color-stone-600:oklch(44.4% .011 73.639);--color-stone-700:oklch(37.4% .01 67.558);--color-stone-800:oklch(26.8% .007 34.298);--color-stone-900:oklch(21.6% .006 56.043);--color-stone-950:oklch(14.7% .004 49.25);--color-white:#fff;--spacing:.25rem;--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.end{inset-inline-end:var(--spacing)}.right-4{right:calc(var(--spacing) * 4)}.bottom-4{bottom:calc(var(--spacing) * 4)}.left-2{left:calc(var(--spacing) * 2)}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.ml-auto{margin-left:auto}.flex{display:flex}.grid{display:grid}.inline-flex{display:inline-flex}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-7{height:calc(var(--spacing) * 7)}.h-\[3\.5px\]{height:3.5px}.h-\[26px\]{height:26px}.h-screen{height:100vh}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-11\.5{min-height:calc(var(--spacing) * 11.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-7{width:calc(var(--spacing) * 7)}.w-22{width:calc(var(--spacing) * 22)}.w-72{width:calc(var(--spacing) * 72)}.w-\[3\.5px\]{width:3.5px}.w-full{width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-13{min-width:calc(var(--spacing) * 13)}.min-w-32\.5{min-width:calc(var(--spacing) * 32.5)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-dot-pulse{animation:1.1s ease-in-out infinite dotPulse}.animate-dot-pulse-2{animation:1.1s ease-in-out .18s infinite dotPulse}.animate-dot-pulse-3{animation:1.1s ease-in-out .36s infinite dotPulse}.animate-fade-up{animation:.22s ease-out fadeUp}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-0\.75{gap:calc(var(--spacing) * .75)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-emerald-400{border-color:var(--color-emerald-400)}.border-stone-100{border-color:var(--color-stone-100)}.border-stone-200{border-color:var(--color-stone-200)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-current{background-color:currentColor}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-stone-50{background-color:var(--color-stone-50)}.bg-stone-100{background-color:var(--color-stone-100)}.bg-stone-900{background-color:var(--color-stone-900)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.fill-stone-900{fill:var(--color-stone-900)}.p-1{padding:calc(var(--spacing) * 1)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.25{padding-block:calc(var(--spacing) * 1.25)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.pl-6\.5{padding-left:calc(var(--spacing) * 6.5)}.text-\[11\.5px\]{font-size:11.5px}.text-\[11px\]{font-size:11px}.text-\[12\.5px\]{font-size:12.5px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.leading-\[1\.75\]{--tw-leading:1.75;line-height:1.75}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-blue-500{color:var(--color-blue-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-red-600{color:var(--color-red-600)}.text-stone-300{color:var(--color-stone-300)}.text-stone-400{color:var(--color-stone-400)}.text-stone-500{color:var(--color-stone-500)}.text-stone-700{color:var(--color-stone-700)}.text-stone-900{color:var(--color-stone-900)}.text-white{color:var(--color-white)}.italic{font-style:italic}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-stone-300::placeholder{color:var(--color-stone-300)}.shadow-\[0_8px_24px_rgba\(0\,0\,0\,0\.1\)\,0_2px_6px_rgba\(0\,0\,0\,0\.06\)\]{--tw-shadow:0 8px 24px var(--tw-shadow-color,#0000001a), 0 2px 6px var(--tw-shadow-color,#0000000f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-\[cubic-bezier\(0\.34\,1\.4\,0\.64\,1\)\]{--tw-ease:cubic-bezier(.34,1.4,.64,1);transition-timing-function:cubic-bezier(.34,1.4,.64,1)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}@media (hover:hover){.group-enabled\:group-hover\:rotate-180:is(:where(.group):enabled *):is(:where(.group):hover *){rotate:180deg}.hover\:-translate-y-px:hover{--tw-translate-y:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-stone-100:hover{background-color:var(--color-stone-100)}.hover\:text-stone-600:hover{color:var(--color-stone-600)}.hover\:text-stone-700:hover{color:var(--color-stone-700)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\:translate-y-0:active{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-highlighted\:bg-stone-100[data-highlighted]{background-color:var(--color-stone-100)}.data-\[state\=checked\]\:font-semibold[data-state=checked]{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.data-\[state\=checked\]\:text-blue-600[data-state=checked]{color:var(--color-blue-600)}.data-\[state\=closed\]\:opacity-0[data-state=closed]{opacity:0}.data-\[state\=open\]\:animate-fade-up[data-state=open]{animation:.22s ease-out fadeUp}@media (prefers-color-scheme:dark){.dark\:border-emerald-700{border-color:var(--color-emerald-700)}.dark\:border-stone-700{border-color:var(--color-stone-700)}.dark\:bg-blue-600{background-color:var(--color-blue-600)}.dark\:bg-emerald-950\/30{background-color:#002c224d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-emerald-950\/30{background-color:color-mix(in oklab,var(--color-emerald-950) 30%,transparent)}}.dark\:bg-stone-100{background-color:var(--color-stone-100)}.dark\:bg-stone-800{background-color:var(--color-stone-800)}.dark\:bg-stone-900{background-color:var(--color-stone-900)}.dark\:bg-stone-950{background-color:var(--color-stone-950)}.dark\:fill-stone-100{fill:var(--color-stone-100)}.dark\:text-blue-400{color:var(--color-blue-400)}.dark\:text-emerald-400{color:var(--color-emerald-400)}.dark\:text-red-400{color:var(--color-red-400)}.dark\:text-stone-100{color:var(--color-stone-100)}.dark\:text-stone-300{color:var(--color-stone-300)}.dark\:text-stone-400{color:var(--color-stone-400)}.dark\:text-stone-500{color:var(--color-stone-500)}.dark\:text-stone-600{color:var(--color-stone-600)}.dark\:text-stone-900{color:var(--color-stone-900)}.dark\:placeholder-stone-600::placeholder{color:var(--color-stone-600)}.dark\:shadow-\[0_8px_24px_rgba\(0\,0\,0\,0\.5\)\]{--tw-shadow:0 8px 24px var(--tw-shadow-color,#00000080);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media (hover:hover){.dark\:hover\:bg-blue-500:hover{background-color:var(--color-blue-500)}.dark\:hover\:bg-stone-800:hover{background-color:var(--color-stone-800)}.dark\:hover\:text-stone-200:hover{color:var(--color-stone-200)}.dark\:hover\:text-stone-300:hover{color:var(--color-stone-300)}}.dark\:data-highlighted\:bg-stone-700[data-highlighted]{background-color:var(--color-stone-700)}.dark\:data-\[state\=checked\]\:text-blue-400[data-state=checked]{color:var(--color-blue-400)}}}html.dark{color-scheme:dark}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#d6d3d1;border-radius:2px}@media (prefers-color-scheme:dark){::-webkit-scrollbar-thumb{background:#57534d}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes fadeUp{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes dotPulse{0%,60%,to{opacity:.25;transform:scale(.75)}30%{opacity:1;transform:scale(1)}}
|
|
@@ -166,4 +166,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
166
166
|
`)},Om=function(){var e=parseInt(document.body.getAttribute(qi)||"0",10);return isFinite(e)?e:0},iN=function(){b.useEffect(function(){return document.body.setAttribute(qi,(Om()+1).toString()),function(){var e=Om()-1;e<=0?document.body.removeAttribute(qi):document.body.setAttribute(qi,e.toString())}},[])},rN=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,i=a===void 0?"margin":a;iN();var r=b.useMemo(function(){return tN(i)},[i]);return b.createElement(nN,{styles:aN(r,!t,i,n?"":"!important")})},od=!1;if(typeof window<"u")try{var bo=Object.defineProperty({},"passive",{get:function(){return od=!0,!0}});window.addEventListener("test",bo,bo),window.removeEventListener("test",bo,bo)}catch{od=!1}var hi=od?{passive:!1}:!1,lN=function(e){return e.tagName==="TEXTAREA"},G_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!lN(e)&&n[t]==="visible")},oN=function(e){return G_(e,"overflowY")},sN=function(e){return G_(e,"overflowX")},Am=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var i=q_(e,a);if(i){var r=K_(e,a),l=r[1],o=r[2];if(l>o)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},uN=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},cN=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},q_=function(e,t){return e==="v"?oN(t):sN(t)},K_=function(e,t){return e==="v"?uN(t):cN(t)},fN=function(e,t){return e==="h"&&t==="rtl"?-1:1},dN=function(e,t,n,a,i){var r=fN(e,window.getComputedStyle(t).direction),l=r*a,o=n.target,s=t.contains(o),u=!1,c=l>0,f=0,d=0;do{if(!o)break;var h=K_(e,o),y=h[0],g=h[1],_=h[2],v=g-_-r*y;(y||v)&&q_(e,o)&&(f+=v,d+=y);var p=o.parentNode;o=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!s&&o!==document.body||s&&(t.contains(o)||t===o));return(c&&Math.abs(f)<1||!c&&Math.abs(d)<1)&&(u=!0),u},So=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Tm=function(e){return[e.deltaX,e.deltaY]},wm=function(e){return e&&"current"in e?e.current:e},hN=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pN=function(e){return`
|
|
167
167
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
168
168
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
169
|
-
`)},vN=0,pi=[];function gN(e){var t=b.useRef([]),n=b.useRef([0,0]),a=b.useRef(),i=b.useState(vN++)[0],r=b.useState(P_)[0],l=b.useRef(e);b.useEffect(function(){l.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=BR([e.lockRef.current],(e.shards||[]).map(wm),!0).filter(Boolean);return g.forEach(function(_){return _.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var o=b.useCallback(function(g,_){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!l.current.allowPinchZoom;var v=So(g),p=n.current,m="deltaX"in g?g.deltaX:p[0]-v[0],S="deltaY"in g?g.deltaY:p[1]-v[1],E,A=g.target,O=Math.abs(m)>Math.abs(S)?"h":"v";if("touches"in g&&O==="h"&&A.type==="range")return!1;var N=window.getSelection(),M=N&&N.anchorNode,D=M?M===A||M.contains(A):!1;if(D)return!1;var V=Am(O,A);if(!V)return!0;if(V?E=O:(E=O==="v"?"h":"v",V=Am(O,A)),!V)return!1;if(!a.current&&"changedTouches"in g&&(m||S)&&(a.current=E),!E)return!0;var z=a.current||E;return dN(z,_,g,z==="h"?m:S)},[]),s=b.useCallback(function(g){var _=g;if(!(!pi.length||pi[pi.length-1]!==r)){var v="deltaY"in _?Tm(_):So(_),p=t.current.filter(function(E){return E.name===_.type&&(E.target===_.target||_.target===E.shadowParent)&&hN(E.delta,v)})[0];if(p&&p.should){_.cancelable&&_.preventDefault();return}if(!p){var m=(l.current.shards||[]).map(wm).filter(Boolean).filter(function(E){return E.contains(_.target)}),S=m.length>0?o(_,m[0]):!l.current.noIsolation;S&&_.cancelable&&_.preventDefault()}}},[]),u=b.useCallback(function(g,_,v,p){var m={name:g,delta:_,target:v,should:p,shadowParent:mN(v)};t.current.push(m),setTimeout(function(){t.current=t.current.filter(function(S){return S!==m})},1)},[]),c=b.useCallback(function(g){n.current=So(g),a.current=void 0},[]),f=b.useCallback(function(g){u(g.type,Tm(g),g.target,o(g,e.lockRef.current))},[]),d=b.useCallback(function(g){u(g.type,So(g),g.target,o(g,e.lockRef.current))},[]);b.useEffect(function(){return pi.push(r),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",s,hi),document.addEventListener("touchmove",s,hi),document.addEventListener("touchstart",c,hi),function(){pi=pi.filter(function(g){return g!==r}),document.removeEventListener("wheel",s,hi),document.removeEventListener("touchmove",s,hi),document.removeEventListener("touchstart",c,hi)}},[]);var h=e.removeScrollBar,y=e.inert;return b.createElement(b.Fragment,null,y?b.createElement(r,{styles:pN(i)}):null,h?b.createElement(rN,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function mN(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const yN=kR(Y_,gN);var X_=b.forwardRef(function(e,t){return b.createElement(wu,Jt({},e,{ref:t,sideCar:yN}))});X_.classNames=wu.classNames;var bN=[" ","Enter","ArrowUp","ArrowDown"],SN=[" ","Enter"],Qa="Select",[Cu,Ru,_N]=p_(Qa),[_r]=Pl(Qa,[_N,yu]),Nu=yu(),[xN,_a]=_r(Qa),[EN,ON]=_r(Qa),k_=e=>{const{__scopeSelect:t,children:n,open:a,defaultOpen:i,onOpenChange:r,value:l,defaultValue:o,onValueChange:s,dir:u,name:c,autoComplete:f,disabled:d,required:h,form:y}=e,g=Nu(t),[_,v]=b.useState(null),[p,m]=b.useState(null),[S,E]=b.useState(!1),A=ER(u),[O,N]=Ds({prop:a,defaultProp:i??!1,onChange:r,caller:Qa}),[M,D]=Ds({prop:l,defaultProp:o,onChange:s,caller:Qa}),V=b.useRef(null),z=_?y||!!_.closest("form"):!0,[U,C]=b.useState(new Set),B=Array.from(U).map(T=>T.props.value).join(";");return x.jsx(e_,{...g,children:x.jsxs(xN,{required:h,scope:t,trigger:_,onTriggerChange:v,valueNode:p,onValueNodeChange:m,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:hu(),value:M,onValueChange:D,open:O,onOpenChange:N,dir:A,triggerPointerDownPosRef:V,disabled:d,children:[x.jsx(Cu.Provider,{scope:t,children:x.jsx(EN,{scope:e.__scopeSelect,onNativeOptionAdd:b.useCallback(T=>{C(L=>new Set(L).add(T))},[]),onNativeOptionRemove:b.useCallback(T=>{C(L=>{const R=new Set(L);return R.delete(T),R})},[]),children:n})}),z?x.jsxs(dx,{"aria-hidden":!0,required:h,tabIndex:-1,name:c,autoComplete:f,value:M,onChange:T=>D(T.target.value),disabled:d,form:y,children:[M===void 0?x.jsx("option",{value:""}):null,Array.from(U)]},B):null]})})};k_.displayName=Qa;var $_="SelectTrigger",Q_=b.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:a=!1,...i}=e,r=Nu(n),l=_a($_,n),o=l.disabled||a,s=Te(t,l.onTriggerChange),u=Ru(n),c=b.useRef("touch"),[f,d,h]=px(g=>{const _=u().filter(m=>!m.disabled),v=_.find(m=>m.value===l.value),p=vx(_,g,v);p!==void 0&&l.onValueChange(p.value)}),y=g=>{o||(l.onOpenChange(!0),h()),g&&(l.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return x.jsx(t_,{asChild:!0,...r,children:x.jsx(fe.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:o,"data-disabled":o?"":void 0,"data-placeholder":hx(l.value)?"":void 0,...i,ref:s,onClick:F(i.onClick,g=>{g.currentTarget.focus(),c.current!=="mouse"&&y(g)}),onPointerDown:F(i.onPointerDown,g=>{c.current=g.pointerType;const _=g.target;_.hasPointerCapture(g.pointerId)&&_.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(y(g),g.preventDefault())}),onKeyDown:F(i.onKeyDown,g=>{const _=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&d(g.key),!(_&&g.key===" ")&&bN.includes(g.key)&&(y(),g.preventDefault())})})})});Q_.displayName=$_;var Z_="SelectValue",F_=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:i,children:r,placeholder:l="",...o}=e,s=_a(Z_,n),{onValueNodeHasChildrenChange:u}=s,c=r!==void 0,f=Te(t,s.onValueNodeChange);return ke(()=>{u(c)},[u,c]),x.jsx(fe.span,{...o,ref:f,style:{pointerEvents:"none"},children:hx(s.value)?x.jsx(x.Fragment,{children:l}):r})});F_.displayName=Z_;var AN="SelectIcon",J_=b.forwardRef((e,t)=>{const{__scopeSelect:n,children:a,...i}=e;return x.jsx(fe.span,{"aria-hidden":!0,...i,ref:t,children:a||"▼"})});J_.displayName=AN;var TN="SelectPortal",I_=e=>x.jsx(bu,{asChild:!0,...e});I_.displayName=TN;var Za="SelectContent",W_=b.forwardRef((e,t)=>{const n=_a(Za,e.__scopeSelect),[a,i]=b.useState();if(ke(()=>{i(new DocumentFragment)},[]),!n.open){const r=a;return r?ga.createPortal(x.jsx(ex,{scope:e.__scopeSelect,children:x.jsx(Cu.Slot,{scope:e.__scopeSelect,children:x.jsx("div",{children:e.children})})}),r):null}return x.jsx(tx,{...e,ref:t})});W_.displayName=Za;var Bt=10,[ex,xa]=_r(Za),wN="SelectContentImpl",CN=ws("SelectContent.RemoveScroll"),tx=b.forwardRef((e,t)=>{const{__scopeSelect:n,position:a="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:r,onPointerDownOutside:l,side:o,sideOffset:s,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:y,hideWhenDetached:g,avoidCollisions:_,...v}=e,p=_a(Za,n),[m,S]=b.useState(null),[E,A]=b.useState(null),O=Te(t,K=>S(K)),[N,M]=b.useState(null),[D,V]=b.useState(null),z=Ru(n),[U,C]=b.useState(!1),B=b.useRef(!1);b.useEffect(()=>{if(m)return UR(m)},[m]),OR();const T=b.useCallback(K=>{const[ge,...$e]=z().map(se=>se.ref.current),[he]=$e.slice(-1),oe=document.activeElement;for(const se of K)if(se===oe||(se==null||se.scrollIntoView({block:"nearest"}),se===ge&&E&&(E.scrollTop=0),se===he&&E&&(E.scrollTop=E.scrollHeight),se==null||se.focus(),document.activeElement!==oe))return},[z,E]),L=b.useCallback(()=>T([N,m]),[T,N,m]);b.useEffect(()=>{U&&L()},[U,L]);const{onOpenChange:R,triggerPointerDownPosRef:H}=p;b.useEffect(()=>{if(m){let K={x:0,y:0};const ge=he=>{var oe,se;K={x:Math.abs(Math.round(he.pageX)-(((oe=H.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(he.pageY)-(((se=H.current)==null?void 0:se.y)??0))}},$e=he=>{K.x<=10&&K.y<=10?he.preventDefault():m.contains(he.target)||R(!1),document.removeEventListener("pointermove",ge),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",ge),document.addEventListener("pointerup",$e,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ge),document.removeEventListener("pointerup",$e,{capture:!0})}}},[m,R,H]),b.useEffect(()=>{const K=()=>R(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[R]);const[$,ie]=px(K=>{const ge=z().filter(oe=>!oe.disabled),$e=ge.find(oe=>oe.ref.current===document.activeElement),he=vx(ge,K,$e);he&&setTimeout(()=>he.ref.current.focus())}),xe=b.useCallback((K,ge,$e)=>{const he=!B.current&&!$e;(p.value!==void 0&&p.value===ge||he)&&(M(K),he&&(B.current=!0))},[p.value]),Re=b.useCallback(()=>m==null?void 0:m.focus(),[m]),Ee=b.useCallback((K,ge,$e)=>{const he=!B.current&&!$e;(p.value!==void 0&&p.value===ge||he)&&V(K)},[p.value]),Je=a==="popper"?sd:nx,Ea=Je===sd?{side:o,sideOffset:s,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:y,hideWhenDetached:g,avoidCollisions:_}:{};return x.jsx(ex,{scope:n,content:m,viewport:E,onViewportChange:A,itemRefCallback:xe,selectedItem:N,onItemLeave:Re,itemTextRefCallback:Ee,focusSelectedItem:L,selectedItemText:D,position:a,isPositioned:U,searchRef:$,children:x.jsx(X_,{as:CN,allowPinchZoom:!0,children:x.jsx(z_,{asChild:!0,trapped:p.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:F(i,K=>{var ge;(ge=p.trigger)==null||ge.focus({preventScroll:!0}),K.preventDefault()}),children:x.jsx(du,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:r,onPointerDownOutside:l,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:x.jsx(Je,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:K=>K.preventDefault(),...v,...Ea,onPlaced:()=>C(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:F(v.onKeyDown,K=>{const ge=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!ge&&K.key.length===1&&ie(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let he=z().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(K.key)&&(he=he.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const oe=K.target,se=he.indexOf(oe);he=he.slice(se+1)}setTimeout(()=>T(he)),K.preventDefault()}})})})})})})});tx.displayName=wN;var RN="SelectItemAlignedPosition",nx=b.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:a,...i}=e,r=_a(Za,n),l=xa(Za,n),[o,s]=b.useState(null),[u,c]=b.useState(null),f=Te(t,O=>c(O)),d=Ru(n),h=b.useRef(!1),y=b.useRef(!0),{viewport:g,selectedItem:_,selectedItemText:v,focusSelectedItem:p}=l,m=b.useCallback(()=>{if(r.trigger&&r.valueNode&&o&&u&&g&&_&&v){const O=r.trigger.getBoundingClientRect(),N=u.getBoundingClientRect(),M=r.valueNode.getBoundingClientRect(),D=v.getBoundingClientRect();if(r.dir!=="rtl"){const oe=D.left-N.left,se=M.left-oe,rt=O.left-se,Qt=O.width+rt,Er=Math.max(Qt,N.width),Or=window.innerWidth-Bt,Ar=mm(se,[Bt,Math.max(Bt,Or-Er)]);o.style.minWidth=Qt+"px",o.style.left=Ar+"px"}else{const oe=N.right-D.right,se=window.innerWidth-M.right-oe,rt=window.innerWidth-O.right-se,Qt=O.width+rt,Er=Math.max(Qt,N.width),Or=window.innerWidth-Bt,Ar=mm(se,[Bt,Math.max(Bt,Or-Er)]);o.style.minWidth=Qt+"px",o.style.right=Ar+"px"}const V=d(),z=window.innerHeight-Bt*2,U=g.scrollHeight,C=window.getComputedStyle(u),B=parseInt(C.borderTopWidth,10),T=parseInt(C.paddingTop,10),L=parseInt(C.borderBottomWidth,10),R=parseInt(C.paddingBottom,10),H=B+T+U+R+L,$=Math.min(_.offsetHeight*5,H),ie=window.getComputedStyle(g),xe=parseInt(ie.paddingTop,10),Re=parseInt(ie.paddingBottom,10),Ee=O.top+O.height/2-Bt,Je=z-Ee,Ea=_.offsetHeight/2,K=_.offsetTop+Ea,ge=B+T+K,$e=H-ge;if(ge<=Ee){const oe=V.length>0&&_===V[V.length-1].ref.current;o.style.bottom="0px";const se=u.clientHeight-g.offsetTop-g.offsetHeight,rt=Math.max(Je,Ea+(oe?Re:0)+se+L),Qt=ge+rt;o.style.height=Qt+"px"}else{const oe=V.length>0&&_===V[0].ref.current;o.style.top="0px";const rt=Math.max(Ee,B+g.offsetTop+(oe?xe:0)+Ea)+$e;o.style.height=rt+"px",g.scrollTop=ge-Ee+g.offsetTop}o.style.margin=`${Bt}px 0`,o.style.minHeight=$+"px",o.style.maxHeight=z+"px",a==null||a(),requestAnimationFrame(()=>h.current=!0)}},[d,r.trigger,r.valueNode,o,u,g,_,v,r.dir,a]);ke(()=>m(),[m]);const[S,E]=b.useState();ke(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const A=b.useCallback(O=>{O&&y.current===!0&&(m(),p==null||p(),y.current=!1)},[m,p]);return x.jsx(MN,{scope:n,contentWrapper:o,shouldExpandOnScrollRef:h,onScrollButtonChange:A,children:x.jsx("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:x.jsx(fe.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});nx.displayName=RN;var NN="SelectPopperPosition",sd=b.forwardRef((e,t)=>{const{__scopeSelect:n,align:a="start",collisionPadding:i=Bt,...r}=e,l=Nu(n);return x.jsx(n_,{...l,...r,ref:t,align:a,collisionPadding:i,style:{boxSizing:"border-box",...r.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});sd.displayName=NN;var[MN,Bp]=_r(Za,{}),ud="SelectViewport",ax=b.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:a,...i}=e,r=xa(ud,n),l=Bp(ud,n),o=Te(t,r.onViewportChange),s=b.useRef(0);return x.jsxs(x.Fragment,{children:[x.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),x.jsx(Cu.Slot,{scope:n,children:x.jsx(fe.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:o,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:F(i.onScroll,u=>{const c=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=l;if(d!=null&&d.current&&f){const h=Math.abs(s.current-c.scrollTop);if(h>0){const y=window.innerHeight-Bt*2,g=parseFloat(f.style.minHeight),_=parseFloat(f.style.height),v=Math.max(g,_);if(v<y){const p=v+h,m=Math.min(y,p),S=p-m;f.style.height=m+"px",f.style.bottom==="0px"&&(c.scrollTop=S>0?S:0,f.style.justifyContent="flex-end")}}}s.current=c.scrollTop})})})]})});ax.displayName=ud;var ix="SelectGroup",[DN,LN]=_r(ix),jN=b.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,i=hu();return x.jsx(DN,{scope:n,id:i,children:x.jsx(fe.div,{role:"group","aria-labelledby":i,...a,ref:t})})});jN.displayName=ix;var rx="SelectLabel",zN=b.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,i=LN(rx,n);return x.jsx(fe.div,{id:i.id,...a,ref:t})});zN.displayName=rx;var Us="SelectItem",[UN,lx]=_r(Us),ox=b.forwardRef((e,t)=>{const{__scopeSelect:n,value:a,disabled:i=!1,textValue:r,...l}=e,o=_a(Us,n),s=xa(Us,n),u=o.value===a,[c,f]=b.useState(r??""),[d,h]=b.useState(!1),y=Te(t,p=>{var m;return(m=s.itemRefCallback)==null?void 0:m.call(s,p,a,i)}),g=hu(),_=b.useRef("touch"),v=()=>{i||(o.onValueChange(a),o.onOpenChange(!1))};if(a==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return x.jsx(UN,{scope:n,value:a,disabled:i,textId:g,isSelected:u,onItemTextChange:b.useCallback(p=>{f(m=>m||((p==null?void 0:p.textContent)??"").trim())},[]),children:x.jsx(Cu.ItemSlot,{scope:n,value:a,disabled:i,textValue:c,children:x.jsx(fe.div,{role:"option","aria-labelledby":g,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:y,onFocus:F(l.onFocus,()=>h(!0)),onBlur:F(l.onBlur,()=>h(!1)),onClick:F(l.onClick,()=>{_.current!=="mouse"&&v()}),onPointerUp:F(l.onPointerUp,()=>{_.current==="mouse"&&v()}),onPointerDown:F(l.onPointerDown,p=>{_.current=p.pointerType}),onPointerMove:F(l.onPointerMove,p=>{var m;_.current=p.pointerType,i?(m=s.onItemLeave)==null||m.call(s):_.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:F(l.onPointerLeave,p=>{var m;p.currentTarget===document.activeElement&&((m=s.onItemLeave)==null||m.call(s))}),onKeyDown:F(l.onKeyDown,p=>{var S;((S=s.searchRef)==null?void 0:S.current)!==""&&p.key===" "||(SN.includes(p.key)&&v(),p.key===" "&&p.preventDefault())})})})})});ox.displayName=Us;var Vr="SelectItemText",sx=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:i,...r}=e,l=_a(Vr,n),o=xa(Vr,n),s=lx(Vr,n),u=ON(Vr,n),[c,f]=b.useState(null),d=Te(t,v=>f(v),s.onItemTextChange,v=>{var p;return(p=o.itemTextRefCallback)==null?void 0:p.call(o,v,s.value,s.disabled)}),h=c==null?void 0:c.textContent,y=b.useMemo(()=>x.jsx("option",{value:s.value,disabled:s.disabled,children:h},s.value),[s.disabled,s.value,h]),{onNativeOptionAdd:g,onNativeOptionRemove:_}=u;return ke(()=>(g(y),()=>_(y)),[g,_,y]),x.jsxs(x.Fragment,{children:[x.jsx(fe.span,{id:s.textId,...r,ref:d}),s.isSelected&&l.valueNode&&!l.valueNodeHasChildren?ga.createPortal(r.children,l.valueNode):null]})});sx.displayName=Vr;var ux="SelectItemIndicator",cx=b.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return lx(ux,n).isSelected?x.jsx(fe.span,{"aria-hidden":!0,...a,ref:t}):null});cx.displayName=ux;var cd="SelectScrollUpButton",BN=b.forwardRef((e,t)=>{const n=xa(cd,e.__scopeSelect),a=Bp(cd,e.__scopeSelect),[i,r]=b.useState(!1),l=Te(t,a.onScrollButtonChange);return ke(()=>{if(n.viewport&&n.isPositioned){let o=function(){const u=s.scrollTop>0;r(u)};const s=n.viewport;return o(),s.addEventListener("scroll",o),()=>s.removeEventListener("scroll",o)}},[n.viewport,n.isPositioned]),i?x.jsx(fx,{...e,ref:l,onAutoScroll:()=>{const{viewport:o,selectedItem:s}=n;o&&s&&(o.scrollTop=o.scrollTop-s.offsetHeight)}}):null});BN.displayName=cd;var fd="SelectScrollDownButton",HN=b.forwardRef((e,t)=>{const n=xa(fd,e.__scopeSelect),a=Bp(fd,e.__scopeSelect),[i,r]=b.useState(!1),l=Te(t,a.onScrollButtonChange);return ke(()=>{if(n.viewport&&n.isPositioned){let o=function(){const u=s.scrollHeight-s.clientHeight,c=Math.ceil(s.scrollTop)<u;r(c)};const s=n.viewport;return o(),s.addEventListener("scroll",o),()=>s.removeEventListener("scroll",o)}},[n.viewport,n.isPositioned]),i?x.jsx(fx,{...e,ref:l,onAutoScroll:()=>{const{viewport:o,selectedItem:s}=n;o&&s&&(o.scrollTop=o.scrollTop+s.offsetHeight)}}):null});HN.displayName=fd;var fx=b.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:a,...i}=e,r=xa("SelectScrollButton",n),l=b.useRef(null),o=Ru(n),s=b.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return b.useEffect(()=>()=>s(),[s]),ke(()=>{var c;const u=o().find(f=>f.ref.current===document.activeElement);(c=u==null?void 0:u.ref.current)==null||c.scrollIntoView({block:"nearest"})},[o]),x.jsx(fe.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:F(i.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(a,50))}),onPointerMove:F(i.onPointerMove,()=>{var u;(u=r.onItemLeave)==null||u.call(r),l.current===null&&(l.current=window.setInterval(a,50))}),onPointerLeave:F(i.onPointerLeave,()=>{s()})})}),VN="SelectSeparator",YN=b.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return x.jsx(fe.div,{"aria-hidden":!0,...a,ref:t})});YN.displayName=VN;var dd="SelectArrow",PN=b.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,i=Nu(n),r=_a(dd,n),l=xa(dd,n);return r.open&&l.position==="popper"?x.jsx(a_,{...i,...a,ref:t}):null});PN.displayName=dd;var GN="SelectBubbleInput",dx=b.forwardRef(({__scopeSelect:e,value:t,...n},a)=>{const i=b.useRef(null),r=Te(a,i),l=DR(t);return b.useEffect(()=>{const o=i.current;if(!o)return;const s=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(s,"value").set;if(l!==t&&c){const f=new Event("change",{bubbles:!0});c.call(o,t),o.dispatchEvent(f)}},[l,t]),x.jsx(fe.select,{...n,style:{...i_,...n.style},ref:r,defaultValue:t})});dx.displayName=GN;function hx(e){return e===""||e===void 0}function px(e){const t=qt(e),n=b.useRef(""),a=b.useRef(0),i=b.useCallback(l=>{const o=n.current+l;t(o),function s(u){n.current=u,window.clearTimeout(a.current),u!==""&&(a.current=window.setTimeout(()=>s(""),1e3))}(o)},[t]),r=b.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,i,r]}function vx(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,r=n?e.indexOf(n):-1;let l=qN(e,Math.max(r,0));i.length===1&&(l=l.filter(u=>u!==n));const s=l.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return s!==n?s:void 0}function qN(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var gx=k_,mx=Q_,yx=F_,bx=J_,Sx=I_,_x=W_,xx=ax,Ex=ox,Ox=sx,Ax=cx,hd={exports:{}},pd={exports:{}},vd={exports:{}},gd={exports:{}},md={exports:{}};(function(e,t){var n=Object.prototype.toString;t=function(a){return n.call(a)},e.exports=t})(md,md.exports);var ri=md.exports;(function(e,t){var n=ri;t=function(a){return n(a)==="[object Number]"},e.exports=t})(gd,gd.exports);var Hp=gd.exports,yd={exports:{}};(function(e,t){var n=ri;t=function(a){var i=n(a);return i==="[object Function]"||i==="[object GeneratorFunction]"||i==="[object AsyncFunction]"},e.exports=t})(yd,yd.exports);var xr=yd.exports;(function(e,t){var n=Hp,a=xr,i=Math.pow(2,53)-1;t=function(r){if(!r)return!1;var l=r.length;return n(l)&&l>=0&&l<=i&&!a(r)},e.exports=t})(vd,vd.exports);var Mu=vd.exports,bd={exports:{}},Sd={exports:{}};(function(e,t){var n=Object.prototype.hasOwnProperty;t=function(a,i){return n.call(a,i)},e.exports=t})(Sd,Sd.exports);var Vp=Sd.exports;(function(e,t){var n=Vp;Object.keys?t=Object.keys:t=function(a){var i=[];for(var r in a)n(a,r)&&i.push(r);return i},e.exports=t})(bd,bd.exports);var li=bd.exports,_d={exports:{}},xd={exports:{}};(function(e,t){t=function(n){return n===void 0},e.exports=t})(xd,xd.exports);var Du=xd.exports;(function(e,t){var n=Du;t=function(a,i,r){if(n(i))return a;switch(r??3){case 1:return function(l){return a.call(i,l)};case 3:return function(l,o,s){return a.call(i,l,o,s)};case 4:return function(l,o,s,u){return a.call(i,l,o,s,u)}}return function(){return a.apply(i,arguments)}},e.exports=t})(_d,_d.exports);var Tx=_d.exports;(function(e,t){var n=Mu,a=li,i=Tx;t=function(r,l,o){l=i(l,o);var s,u;if(n(r))for(s=0,u=r.length;s<u;s++)l(r[s],s,r);else{var c=a(r);for(s=0,u=c.length;s<u;s++)l(r[c[s]],c[s],r)}return r},e.exports=t})(pd,pd.exports);var Xl=pd.exports,Ed={exports:{}};(function(e,t){var n=ri;t=function(a){return n(a)==="[object String]"},e.exports=t})(Ed,Ed.exports);var Lu=Ed.exports,Od={exports:{}};(function(e,t){var n=ri;Array.isArray?t=Array.isArray:t=function(a){return n(a)==="[object Array]"},e.exports=t})(Od,Od.exports);var oi=Od.exports,Ad={exports:{}};(function(e,t){t=function(n){var a=typeof n;return!!n&&(a==="function"||a==="object")},e.exports=t})(Ad,Ad.exports);var si=Ad.exports;(function(e,t){var n=Xl,a=Lu,i=Hp,r=oi,l=si;t=function(){var o=[];return n(arguments,function(s){if(s){if(a(s)||i(s))return o.push(s);if(r(s))return o.push(t.apply(null,s));l(s)&&n(s,function(u,c){u&&o.push(c)})}}),o.join(" ")},e.exports=t})(hd,hd.exports);var KN=hd.exports;const _o=Bs(KN),Y={background:{app:"bg-stone-50 dark:bg-stone-950",toolbar:"bg-white dark:bg-stone-900",sourcePanel:"bg-white dark:bg-stone-900",targetPanel:"bg-stone-50 dark:bg-stone-950"},text:{primary:"text-stone-900 dark:text-stone-100",placeholder:"placeholder-stone-300 dark:placeholder-stone-600",muted:"text-stone-300 dark:text-stone-600",translating:"text-stone-400 dark:text-stone-500"},border:{divider:"border-stone-200 dark:border-stone-700"},button:{icon:{default:"text-stone-400 dark:text-stone-400",hover:"hover:text-stone-700 dark:hover:text-stone-200 hover:bg-stone-100 dark:hover:bg-stone-800",disabled:"text-stone-300 dark:text-stone-600"},outlined:{default:"border-stone-200 dark:border-stone-700 text-stone-500 dark:text-stone-400",hover:"hover:bg-stone-100 dark:hover:bg-stone-800 hover:text-stone-700 dark:hover:text-stone-200",disabled:"border-stone-100 dark:border-stone-700 text-stone-300 dark:text-stone-600"},primary:{default:"bg-blue-500 dark:bg-blue-600 text-white",hover:"hover:bg-blue-600 dark:hover:bg-blue-500 hover:-translate-y-px active:translate-y-0",disabled:"bg-stone-100 dark:bg-stone-800 text-stone-400 dark:text-stone-500"},copy:{copied:"border-emerald-400 dark:border-emerald-700 text-emerald-600 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-950/30"}},select:{trigger:"text-stone-700 dark:text-stone-300 hover:bg-stone-100 dark:hover:bg-stone-800",chevron:"text-stone-400 dark:text-stone-500",content:"border-stone-200 dark:border-stone-700 bg-white dark:bg-stone-800",item:"text-stone-700 dark:text-stone-300 data-highlighted:bg-stone-100 dark:data-highlighted:bg-stone-700",itemChecked:"data-[state=checked]:text-blue-600 dark:data-[state=checked]:text-blue-400",itemIndicator:"text-blue-500 dark:text-blue-400"},tooltip:{content:"bg-stone-900 dark:bg-stone-100 text-white dark:text-stone-900",arrow:"fill-stone-900 dark:fill-stone-100"},toast:{root:"bg-white dark:bg-stone-800 border border-stone-200 dark:border-stone-700 rounded-xl shadow-lg px-4 py-3 flex items-start gap-3",title:"text-[12.5px] font-semibold text-red-600 dark:text-red-400",description:"text-[12px] text-stone-500 dark:text-stone-400 mt-0.5",close:"text-stone-400 dark:text-stone-500 hover:text-stone-600 dark:hover:text-stone-300 cursor-pointer",viewport:"fixed bottom-4 right-4 flex flex-col gap-2 w-72 z-50"}};function Cm({value:e,onValueChange:t,langs:n,excludeAuto:a}){const{t:i}=Tu(),r=a?n.filter(l=>l.code!=="auto"):n;return x.jsxs(gx,{value:e,onValueChange:t,children:[x.jsxs(mx,{className:`inline-flex items-center gap-1 px-2 py-1 text-[12px] font-medium rounded-md border-none bg-transparent ${Y.select.trigger} transition-colors duration-150 w-22 cursor-pointer outline-none focus:outline-none overflow-hidden`,children:[x.jsx("span",{className:"truncate whitespace-nowrap min-w-0 flex-1",children:x.jsx(yx,{})}),x.jsx(bx,{className:"shrink-0",children:x.jsx(C_,{className:`w-3 h-3 ${Y.select.chevron}`})})]}),x.jsx(Sx,{children:x.jsx(_x,{className:`overflow-hidden rounded-xl border ${Y.select.content} shadow-[0_8px_24px_rgba(0,0,0,0.1),0_2px_6px_rgba(0,0,0,0.06)] dark:shadow-[0_8px_24px_rgba(0,0,0,0.5)] z-50 min-w-32.5`,position:"popper",sideOffset:4,children:x.jsx(xx,{className:"p-1",children:r.map(l=>x.jsxs(Ex,{value:l.code,className:`relative flex items-center px-2 py-1.25 pl-6.5 text-[12px] rounded-md cursor-pointer outline-none ${Y.select.item} data-[state=checked]:font-semibold ${Y.select.itemChecked} transition-colors duration-75`,children:[x.jsx(Ax,{className:`absolute left-2 flex items-center ${Y.select.itemIndicator}`,children:x.jsx(nd,{className:"w-3 h-3"})}),x.jsx(Ox,{children:i(l.code)})]},l.code))})})})]})}function Cx(){return x.jsxs("span",{className:"flex items-center gap-0.75 h-3",children:[x.jsx("span",{className:"w-[3.5px] h-[3.5px] rounded-full bg-current animate-dot-pulse"}),x.jsx("span",{className:"w-[3.5px] h-[3.5px] rounded-full bg-current animate-dot-pulse-2"}),x.jsx("span",{className:"w-[3.5px] h-[3.5px] rounded-full bg-current animate-dot-pulse-3"})]})}const Ki=[{code:"auto"},{code:"en"},{code:"ja"},{code:"ko"},{code:"fr"},{code:"es"},{code:"ru"},{code:"de"},{code:"it"},{code:"pt"},{code:"ar"},{code:"hi"},{code:"th"},{code:"vi"}],XN=[Ki[0],Ki[1],{code:"zh-CN"},{code:"zh-TW"},...Ki.slice(2)],kN=[Ki[0],Ki[1],{code:"zh-Hans"},{code:"zh-Hant"},...Ki.slice(2)],Rm=[{value:"google",label:"Google"},{value:"bing",label:"Bing"},{value:"deepl",label:"DeepL"}],$N={value:"ai",label:"AI"};var Td={exports:{}},wd={exports:{}},Cd={exports:{}},Rd={exports:{}},Nd={exports:{}},Md={exports:{}};(function(e,t){var n=Du,a=Xl;t=function(i,r){return function(l){return a(arguments,function(o,s){if(s!==0){var u=i(o);a(u,function(c){(!r||n(l[c]))&&(l[c]=o[c])})}}),l}},e.exports=t})(Md,Md.exports);var Yp=Md.exports,Dd={exports:{}},Ld={exports:{}};(function(e,t){var n=si,a=xr,i=Object.getPrototypeOf,r={}.constructor;t=function(l){if(n(l)){if(i)return i(l);var o=l.__proto__;if(o||o===null)return o;if(a(l.constructor))return l.constructor.prototype;if(l instanceof r)return r.prototype}},e.exports=t})(Ld,Ld.exports);var QN=Ld.exports,jd={exports:{}},zd={exports:{}},Ud={exports:{}},Bd={exports:{}},Hd={exports:{}};(function(e,t){var n=li,a=Yp;t=a(n),e.exports=t})(Hd,Hd.exports);var ZN=Hd.exports,Vd={exports:{}};(function(e,t){var n=li;t=function(a,i){var r=n(i),l=r.length;if(a==null)return!l;a=Object(a);for(var o=0;o<l;o++){var s=r[o];if(i[s]!==a[s]||!(s in a))return!1}return!0},e.exports=t})(Vd,Vd.exports);var FN=Vd.exports;(function(e,t){var n=ZN,a=FN;t=function(i){return i=n({},i),function(r){return a(r,i)}},e.exports=t})(Bd,Bd.exports);var JN=Bd.exports,Yd={exports:{}};(function(e,t){t=function(n){return n},e.exports=t})(Yd,Yd.exports);var IN=Yd.exports,Pd={exports:{}},Gd={exports:{}},qd={exports:{}};(function(e,t){var n=Vp,a=oi;t=function(l,o){if(a(l))return l;if(o&&n(o,l))return[l];var s=[];return l.replace(i,function(u,c,f,d){s.push(f?d.replace(r,"$1"):c||u)}),s};var i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g;e.exports=t})(qd,qd.exports);var WN=qd.exports;(function(e,t){var n=Du,a=WN;t=function(i,r){r=a(r,i);var l;for(l=r.shift();!n(l);){if(i=i[l],i==null)return;l=r.shift()}return i},e.exports=t})(Gd,Gd.exports);var Rx=Gd.exports;(function(e,t){var n=oi,a=Rx;t=function(r){return n(r)?function(l){return a(l,r)}:i(r)};function i(r){return function(l){return l==null?void 0:l[r]}}e.exports=t})(Pd,Pd.exports);var eM=Pd.exports;(function(e,t){var n=xr,a=si,i=oi,r=Tx,l=JN,o=IN,s=eM;t=function(u,c,f){return u==null?o:n(u)?r(u,c,f):a(u)&&!i(u)?l(u):s(u)},e.exports=t})(Ud,Ud.exports);var Nx=Ud.exports;(function(e,t){var n=Nx,a=Xl;t=function(i,r,l){var o=[];return r=n(r,l),a(i,function(s,u,c){r(s,u,c)&&o.push(s)}),o},e.exports=t})(zd,zd.exports);var tM=zd.exports;(function(e,t){var n=tM;t=function(i,r){return r=r||a,n(i,function(l,o,s){for(var u=s.length;++o<u;)if(r(l,s[o]))return!1;return!0})};function a(i,r){return i===r}e.exports=t})(jd,jd.exports);var nM=jd.exports;(function(e,t){var n=li,a=QN,i=nM,r=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols;t=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=s.prototype,c=u===void 0?!0:u,f=s.unenumerable,d=f===void 0?!1:f,h=s.symbol,y=h===void 0?!1:h,g=[];if((d||y)&&r){var _=n;d&&r&&(_=r);do g=g.concat(_(o)),y&&l&&(g=g.concat(l(o)));while(c&&(o=a(o))&&o!==Object.prototype);g=i(g)}else if(c)for(var v in o)g.push(v);else g=n(o);return g},e.exports=t})(Dd,Dd.exports);var Mx=Dd.exports;(function(e,t){var n=Yp,a=Mx;t=n(a),e.exports=t})(Nd,Nd.exports);var Dx=Nd.exports,Kd={exports:{}},Xd={exports:{}};(function(e,t){var n=Nx,a=li,i=Mu;t=function(r,l,o){l=n(l,o);for(var s=!i(r)&&a(r),u=(s||r).length,c=Array(u),f=0;f<u;f++){var d=s?s[f]:f;c[f]=l(r[d],d,r)}return c},e.exports=t})(Xd,Xd.exports);var aM=Xd.exports;(function(e,t){var n=Mu,a=aM,i=oi,r=Lu;t=function(l){return l?i(l)?l:n(l)&&!r(l)?a(l):[l]:[]},e.exports=t})(Kd,Kd.exports);var Pp=Kd.exports,kd={exports:{}},$d={exports:{}};(function(e,t){var n=si;t=function(i){if(!n(i))return{};if(a)return a(i);function r(){}return r.prototype=i,new r};var a=Object.create;e.exports=t})($d,$d.exports);var iM=$d.exports;(function(e,t){var n=iM;t=function(a,i){a.prototype=n(i.prototype)},e.exports=t})(kd,kd.exports);var rM=kd.exports,Qd={exports:{}};(function(e,t){var n=xr;t=typeof wx<"u"&&n(wx.openLocation),e.exports=t})(Qd,Qd.exports);var lM=Qd.exports;(function(e,t){var n=Dx,a=Pp,i=rM,r=Rx,l=lM;t=function(u,c){return s.extend(u,c)};function o(u,c,f){f=f||{};var d=c.className||r(c,"initialize.name")||"";delete c.className;var h=function(){var y=a(arguments);return this.initialize?this.initialize.apply(this,y)||this:this};if(!l)try{h=new Function("toArr","return function "+d+"(){var args = toArr(arguments);return this.initialize ? this.initialize.apply(this, args) || this : this;};")(a)}catch{}return i(h,u),h.prototype.constructor=h,h.extend=function(y,g){return o(h,y,g)},h.inherits=function(y){i(h,y)},h.methods=function(y){return n(h.prototype,y),h},h.statics=function(y){return n(h,y),h},h.methods(c).statics(f),h}var s=t.Base=o(Object,{className:"Base",callSuper:function(u,c,f){var d=u.prototype[c];return d.apply(this,f)},toString:function(){return this.constructor.name}});e.exports=t})(Rd,Rd.exports);var oM=Rd.exports,Zd={exports:{}};(function(e,t){t=function(n,a,i){var r=n.length;a==null?a=0:a<0?a=Math.max(r+a,0):a=Math.min(a,r),i==null?i=r:i<0?i=Math.max(r+i,0):i=Math.min(i,r);for(var l=[];a<i;)l.push(n[a++]);return l},e.exports=t})(Zd,Zd.exports);var sM=Zd.exports,Fd={exports:{}},Jd={exports:{}},Id={exports:{}};(function(e,t){t=function(n,a){return a=a==null?n.length-1:+a,function(){var i=Math.max(arguments.length-a,0),r=new Array(i),l;for(l=0;l<i;l++)r[l]=arguments[l+a];switch(a){case 0:return n.call(this,r);case 1:return n.call(this,arguments[0],r);case 2:return n.call(this,arguments[0],arguments[1],r)}var o=new Array(a+1);for(l=0;l<a;l++)o[l]=arguments[l];return o[a]=r,n.apply(this,o)}},e.exports=t})(Id,Id.exports);var uM=Id.exports;(function(e,t){var n=uM,a=Pp;t=n(function(i,r){return function(){var l=[];return l=l.concat(r),l=l.concat(a(arguments)),i.apply(this,l)}}),e.exports=t})(Jd,Jd.exports);var cM=Jd.exports,Wd={exports:{}};(function(e,t){t=function(n,a){var i;return function(){return--n>0&&(i=a.apply(this,arguments)),n<=1&&(a=null),i}},e.exports=t})(Wd,Wd.exports);var fM=Wd.exports;(function(e,t){var n=cM,a=fM;t=n(a,2),e.exports=t})(Fd,Fd.exports);var dM=Fd.exports,eh={exports:{}};(function(e,t){var n=si,a=oi,i=Dx;t=function(r){return n(r)?a(r)?r.slice():i({},r):r},e.exports=t})(eh,eh.exports);var hM=eh.exports;(function(e,t){var n=oM,a=Vp,i=Xl,r=sM,l=dM,o=hM;t=n({initialize:function(){this._events=this._events||{}},on:function(s,u){return this._events[s]=this._events[s]||[],this._events[s].push(u),this},off:function(s,u){var c=this._events;if(a(c,s)){var f=c[s].indexOf(u);return f>-1&&c[s].splice(f,1),this}},once:function(s,u){return this.on(s,l(u)),this},emit:function(s){var u=this;if(a(this._events,s)){var c=r(arguments,1),f=o(this._events[s]);return i(f,function(d){return d.apply(u,c)},this),this}},removeAllListeners:function(s){return s?delete this._events[s]:this._events={},this}},{mixin:function(s){i(["on","off","once","emit","removeAllListeners"],function(u){s[u]=t.prototype[u]}),s._events=s._events||{}}}),e.exports=t})(Cd,Cd.exports);var pM=Cd.exports;(function(e,t){var n=pM,a=Lu,i=si,r=Xl,l=Pp;t=n.extend({initialize:function(s){this.callSuper(n,"initialize",arguments),this._data=s||{},this.save(this._data)},set:function(o,s){var u;a(o)?(u={},u[o]=s):i(o)&&(u=o);var c=this;r(u,function(f,d){var h=c._data[d];c._data[d]=f,c.emit("change",d,f,h)}),this.save(this._data)},get:function(o){var s=this._data;if(a(o))return s[o];var u={};return r(o,function(c){u[c]=s[c]}),u},remove:function(o){o=l(o);var s=this._data;r(o,function(u){delete s[u]}),this.save(s)},clear:function(){this._data={},this.save(this._data)},each:function(o){r(this._data,o)},save:function(o){this._data=o}}),e.exports=t})(wd,wd.exports);var vM=wd.exports,th={exports:{}},nh={exports:{}};(function(e,t){var n=li;t={getItem:function(s){return(i[s]?a[s]:this[s])||null},setItem:function(s,u){i[s]?a[s]=u:this[s]=u},removeItem:function(s){i[s]?delete a[s]:delete this[s]},key:function(s){var u=r();return s>=0&&s<u.length?u[s]:null},clear:function(){for(var s=l(),u=0,c;c=s[u];u++)delete this[c];s=o();for(var f=0,d;d=s[f];f++)delete a[d]}},Object.defineProperty(t,"length",{enumerable:!1,configurable:!0,get:function(){return r().length}});var a={},i={getItem:1,setItem:1,removeItem:1,key:1,clear:1,length:1};function r(){return l().concat(o())}function l(){return n(t).filter(function(s){return!i[s]})}function o(){return n(a)}e.exports=t})(nh,nh.exports);var gM=nh.exports;(function(e,t){var n=gM;t=function(a){a=a||"local";var i;switch(a){case"local":i=window.localStorage;break;case"session":i=window.sessionStorage;break}try{var r="test-localStorage-"+Date.now();i.setItem(r,r);var l=i.getItem(r);if(i.removeItem(r),l!==r)throw new Error}catch{return n}return i},e.exports=t})(th,th.exports);var mM=th.exports,ah={exports:{}},ih={exports:{}};(function(e,t){var n=ri;t=function(a){return n(a)==="[object Arguments]"},e.exports=t})(ih,ih.exports);var yM=ih.exports;(function(e,t){var n=Mu,a=oi,i=Lu,r=yM,l=li;t=function(o){return o==null?!0:n(o)&&(a(o)||i(o)||r(o))?o.length===0:l(o).length===0},e.exports=t})(ah,ah.exports);var bM=ah.exports,rh={exports:{}},lh={exports:{}},oh={exports:{}};(function(e,t){var n=Hp;t=function(a){return n(a)&&a!==+a},e.exports=t})(oh,oh.exports);var SM=oh.exports,sh={exports:{}},uh={exports:{}};(function(e,t){t=function(n){return n==null?"":n.toString()},e.exports=t})(uh,uh.exports);var Lx=uh.exports;(function(e,t){var n=Lx;t=function(a){return n(a).toLocaleLowerCase()},e.exports=t})(sh,sh.exports);var _M=sh.exports,ch={exports:{}};(function(e,t){var n=xr;t=function(a){return a==null?!1:a._isBuffer?!0:a.constructor&&n(a.constructor.isBuffer)&&a.constructor.isBuffer(a)},e.exports=t})(ch,ch.exports);var xM=ch.exports;(function(e,t){var n=ri,a=SM,i=_M,r=xM;t=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u;return o===null&&(u="Null"),o===void 0&&(u="Undefined"),a(o)&&(u="NaN"),r(o)&&(u="Buffer"),u||(u=n(o).match(l),u&&(u=u[1])),u?s?i(u):u:""};var l=/^\[object\s+(.*?)]$/;e.exports=t})(lh,lh.exports);var EM=lh.exports,fh={exports:{}};(function(e,t){t=function(n){return n.length<1?n:n[0].toUpperCase()+n.slice(1)},e.exports=t})(fh,fh.exports);var OM=fh.exports,dh={exports:{}};(function(e,t){var n=ri;t=function(a){return n(a)==="[object RegExp]"},e.exports=t})(dh,dh.exports);var AM=dh.exports;(function(e,t){var n=EM,a=OM,i=Lx,r=Du,l=xr,o=AM;t=function(u,c){return JSON.stringify(u,s(),c)};function s(){var u=[],c=[];return function(f,d){if(u.length>0){var h=u.indexOf(this);h>-1?(u.splice(h+1),c.splice(h,1/0,f)):(u.push(this),c.push(f));var y=u.indexOf(d);y>-1&&(u[0]===d?d="[Circular ~]":d="[Circular ~."+c.slice(0,y).join(".")+"]")}else u.push(d);return o(d)||l(d)?d="["+a(n(d))+" "+i(d)+"]":r(d)&&(d=null),d}}e.exports=t})(rh,rh.exports);var TM=rh.exports,hh={exports:{}};(function(e,t){var n=Yp,a=Mx;t=n(a,!0),e.exports=t})(hh,hh.exports);var wM=hh.exports;(function(e,t){var n=vM,a=mM,i=bM,r=TM,l=wM,o=si,s=a("local");t=n.extend({initialize:function(c,f){this._name=c,f=f||{};var d=s.getItem(c);try{d=JSON.parse(d)}catch{d={}}o(d)||(d={}),f=l(d,f),this.callSuper(n,"initialize",[f])},save:function(u){if(i(u))return s.removeItem(this._name);s.setItem(this._name,r(u))}}),e.exports=t})(Td,Td.exports);var CM=Td.exports;const RM=Bs(CM),NM="Translation Error",MM="Enter text to translate...",DM="Translating",LM="Translation will appear here...",jM="Paste",zM="Swap Languages",UM="Copied",BM="Copy",HM="Clear",VM="Translate",YM="Please enter text to translate",PM="Translation failed, please try again",GM="Auto Detect",qM="English",KM="Japanese",XM="Korean",kM="French",$M="Spanish",QM="Russian",ZM="German",FM="Italian",JM="Portuguese",IM="Arabic",WM="Hindi",eD="Thai",tD="Vietnamese",nD={translateError:NM,sourcePlaceholder:MM,translating:DM,targetPlaceholder:LM,paste:jM,swapLanguages:zM,copied:UM,copy:BM,clear:HM,translate:VM,emptySourceError:YM,translateFailed:PM,auto:GM,en:qM,ja:KM,ko:XM,fr:kM,es:$M,ru:QM,de:ZM,it:FM,pt:JM,ar:IM,hi:WM,th:eD,vi:tD,"zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-Hans":"Simplified Chinese","zh-Hant":"Traditional Chinese"},aD="翻译出错",iD="输入要翻译的文字...",rD="翻译中",lD="翻译结果将显示在这里...",oD="粘贴",sD="交换语言",uD="已复制",cD="复制",fD="清空",dD="翻译",hD="请输入要翻译的文字",pD="翻译失败,请稍后重试",vD="自动检测",gD="英语",mD="日语",yD="韩语",bD="法语",SD="西班牙语",_D="俄语",xD="德语",ED="意大利语",OD="葡萄牙语",AD="阿拉伯语",TD="印地语",wD="泰语",CD="越南语",RD={translateError:aD,sourcePlaceholder:iD,translating:rD,targetPlaceholder:lD,paste:oD,swapLanguages:sD,copied:uD,copy:cD,clear:fD,translate:dD,emptySourceError:hD,translateFailed:pD,auto:vD,en:gD,ja:mD,ko:yD,fr:bD,es:SD,ru:_D,de:xD,it:ED,pt:OD,ar:AD,hi:TD,th:wD,vi:CD,"zh-CN":"简体中文","zh-TW":"繁体中文","zh-Hans":"简体中文","zh-Hant":"繁体中文"};Ve.use(gR).init({resources:{"en-US":{translation:nD},"zh-CN":{translation:RD}},lng:"en-US",fallbackLng:"en-US",interpolation:{escapeValue:!1}});const vi=new RM("tinker-translate");class ND{constructor(){zt(this,"sourceText","");zt(this,"translatedText","");zt(this,"sourceLang",vi.get("sourceLang")??"auto");zt(this,"targetLang",vi.get("targetLang")??"zh-CN");zt(this,"service",vi.get("service")??"google");zt(this,"isTranslating",!1);zt(this,"toastOpen",!1);zt(this,"toastMsg","");zt(this,"copied",!1);zt(this,"hasAI",!1);hT(this)}async init(){const t=await tinker.getAIProviders();this.hasAI=t.length>0,!this.hasAI&&this.service==="ai"&&this.setService("google")}setSourceText(t){this.sourceText=t}setSourceLang(t){this.sourceLang=t,vi.set("sourceLang",t)}setTargetLang(t){this.targetLang=t,vi.set("targetLang",t)}setService(t){this.service=t,vi.set("service",t)}showError(t){this.toastMsg=t,this.toastOpen=!1,requestAnimationFrame(()=>{this.toastOpen=!0})}setToastOpen(t){this.toastOpen=t}handleServiceChange(t){const n=t==="bing",a=this.service==="bing";this.setService(t),n?(this.sourceLang==="zh-CN"&&this.setSourceLang("zh-Hans"),this.sourceLang==="zh-TW"&&this.setSourceLang("zh-Hant"),this.targetLang==="zh-CN"&&this.setTargetLang("zh-Hans"),this.targetLang==="zh-TW"&&this.setTargetLang("zh-Hant")):a&&(this.sourceLang==="zh-Hans"&&this.setSourceLang("zh-CN"),this.sourceLang==="zh-Hant"&&this.setSourceLang("zh-TW"),this.targetLang==="zh-Hans"&&this.setTargetLang("zh-CN"),this.targetLang==="zh-Hant"&&this.setTargetLang("zh-TW"))}handleSwapLanguages(){if(this.sourceLang==="auto")return;const t=this.sourceLang,n=this.targetLang;this.setSourceLang(n),this.setTargetLang(t);const a=this.sourceText;this.sourceText=this.translatedText,this.translatedText=a}async handlePaste(){const t=await navigator.clipboard.readText();t&&(this.sourceText=t)}handleClear(){this.sourceText="",this.translatedText=""}async handleTranslate(){if(!this.sourceText.trim()){this.showError(Ve.t("emptySourceError"));return}this.isTranslating=!0,this.translatedText="";try{const t=await translate.translate(this.sourceText,this.sourceLang,this.targetLang,this.service);this.translatedText=t.text}catch(t){this.showError(Ve.t("translateFailed")),console.error(t)}finally{this.isTranslating=!1}}async handleCopy(){this.translatedText&&(await navigator.clipboard.writeText(this.translatedText),this.copied=!0,setTimeout(()=>{this.copied=!1},1800))}get availableServices(){return this.hasAI?[...Rm,$N]:[...Rm]}get canSwap(){return this.sourceLang!=="auto"}get canClear(){return!!(this.sourceText||this.translatedText)}get canTranslate(){return!this.isTranslating&&!!this.sourceText.trim()}get canCopy(){return!!this.translatedText}}const W=new ND,MD=Ep(()=>{const{t:e}=Tu(),t=W.service==="bing"?kN:XN;return x.jsxs("div",{className:`flex items-center px-2.5 py-2 ${Y.background.toolbar} border-b ${Y.border.divider} shrink-0 min-h-11.5`,children:[x.jsxs("div",{className:"flex-1 flex items-center gap-1.5",children:[x.jsxs(gx,{value:W.service,onValueChange:n=>W.handleServiceChange(n),children:[x.jsxs(mx,{className:`inline-flex items-center gap-1 px-2 py-1 text-[12px] font-medium rounded-md border bg-transparent ${Y.select.trigger} ${Y.border.divider} transition-colors duration-150 cursor-pointer outline-none focus:outline-none`,children:[x.jsx(yx,{}),x.jsx(bx,{className:"ml-auto shrink-0",children:x.jsx(C_,{className:`w-3 h-3 ${Y.select.chevron}`})})]}),x.jsx(Sx,{children:x.jsx(_x,{className:`overflow-hidden rounded-xl border ${Y.select.content} shadow-[0_8px_24px_rgba(0,0,0,0.1),0_2px_6px_rgba(0,0,0,0.06)] dark:shadow-[0_8px_24px_rgba(0,0,0,0.5)] z-50`,position:"popper",sideOffset:4,children:x.jsx(xx,{className:"p-1",children:W.availableServices.map(n=>x.jsxs(Ex,{value:n.value,className:`relative flex items-center px-2 py-1.25 pl-6.5 text-[12px] rounded-md cursor-pointer outline-none ${Y.select.item} data-[state=checked]:font-semibold ${Y.select.itemChecked} transition-colors duration-75`,children:[x.jsx(Ax,{className:`absolute left-2 flex items-center ${Y.select.itemIndicator}`,children:x.jsx(nd,{className:"w-3 h-3"})}),x.jsx(Ox,{children:n.label})]},n.value))})})})]}),x.jsxs(Qg,{children:[x.jsx(Zg,{asChild:!0,children:x.jsx("button",{onClick:()=>W.handlePaste(),className:`flex items-center justify-center w-7 h-7 rounded-md border-none bg-transparent transition-colors duration-150 shrink-0 cursor-pointer ${Y.button.icon.default} ${Y.button.icon.hover}`,children:x.jsx(D2,{className:"w-3.5 h-3.5"})})}),x.jsx(Fg,{children:x.jsxs(Jg,{className:`px-2 py-1 text-[11px] font-medium rounded-md ${Y.tooltip.content} shadow-md`,sideOffset:5,children:[e("paste"),x.jsx(Ig,{className:Y.tooltip.arrow})]})})]})]}),x.jsxs("div",{className:"flex items-center gap-0.5",children:[x.jsx(Cm,{value:W.sourceLang,onValueChange:n=>W.setSourceLang(n),langs:t}),x.jsxs(Qg,{children:[x.jsx(Zg,{asChild:!0,children:x.jsx("button",{onClick:()=>W.handleSwapLanguages(),disabled:!W.canSwap,className:_o("group flex items-center justify-center w-7 h-7 rounded-md border-none bg-transparent transition-colors duration-150 shrink-0 cursor-pointer",W.canSwap?`${Y.button.icon.default} ${Y.button.icon.hover}`:`${Y.button.icon.disabled} cursor-not-allowed`),children:x.jsx(C2,{className:"w-3.5 h-3.5 transition-transform duration-300 ease-[cubic-bezier(0.34,1.4,0.64,1)] group-enabled:group-hover:rotate-180"})})}),x.jsx(Fg,{children:x.jsxs(Jg,{className:`px-2 py-1 text-[11px] font-medium rounded-md ${Y.tooltip.content} shadow-md`,sideOffset:5,children:[e("swapLanguages"),x.jsx(Ig,{className:Y.tooltip.arrow})]})})]}),x.jsx(Cm,{value:W.targetLang,onValueChange:n=>W.setTargetLang(n),langs:t,excludeAuto:!0})]}),x.jsxs("div",{className:"flex-1 flex items-center justify-end gap-1.5",children:[x.jsxs("button",{onClick:()=>W.handleCopy(),disabled:!W.canCopy,className:_o("flex items-center gap-1 px-2.5 py-1 text-[11.5px] font-medium rounded border transition-all duration-150 cursor-pointer bg-transparent",W.canCopy?W.copied?Y.button.copy.copied:`${Y.button.outlined.default} ${Y.button.outlined.hover}`:`${Y.button.outlined.disabled} cursor-not-allowed`),children:[W.copied?x.jsx(nd,{className:"w-3 h-3"}):x.jsx(j2,{className:"w-3 h-3"}),W.copied?e("copied"):e("copy")]}),x.jsx("button",{onClick:()=>W.handleClear(),disabled:!W.canClear,className:_o("px-2.5 py-1 text-[11.5px] font-medium rounded border transition-colors duration-150 cursor-pointer bg-transparent",W.canClear?`${Y.button.outlined.default} ${Y.button.outlined.hover}`:`${Y.button.outlined.disabled} cursor-not-allowed`),children:e("clear")}),x.jsx("button",{onClick:()=>W.handleTranslate(),disabled:!W.canTranslate,className:_o("px-3 h-[26px] text-[11.5px] font-semibold rounded border-none transition-all duration-150 min-w-13 flex items-center justify-center gap-1 cursor-pointer",W.canTranslate?`${Y.button.primary.default} ${Y.button.primary.hover}`:`${Y.button.primary.disabled} cursor-not-allowed`),children:W.isTranslating?x.jsx(Cx,{}):e("translate")})]})]})}),DD=Ep(()=>{const{t:e}=Tu();return x.jsxs("div",{className:"grid grid-cols-2 flex-1 min-h-0",children:[x.jsx("div",{className:`flex flex-col ${Y.background.sourcePanel} border-r ${Y.border.divider}`,children:x.jsx("textarea",{value:W.sourceText,onChange:t=>W.setSourceText(t.target.value),placeholder:e("sourcePlaceholder"),className:`flex-1 w-full px-4 py-3.5 text-[13px] leading-[1.75] resize-none outline-none border-none bg-transparent ${Y.text.primary} ${Y.text.placeholder}`})}),x.jsx("div",{className:`flex flex-col ${Y.background.targetPanel}`,children:x.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto px-4 py-3.5",children:W.isTranslating?x.jsxs("div",{className:`flex items-center gap-2 ${Y.text.translating} text-[12.5px]`,children:[x.jsx(Cx,{}),x.jsx("span",{children:e("translating")})]}):W.translatedText?x.jsx("p",{className:`animate-fade-up text-[13px] leading-[1.75] whitespace-pre-wrap ${Y.text.primary}`,children:W.translatedText}):x.jsx("p",{className:`text-[13px] italic ${Y.text.muted}`,children:e("targetPlaceholder")})})})]})}),LD=Ep(()=>{const{t:e}=Tu();return x.jsx(g2,{duration:4e3,children:x.jsxs(JC,{delayDuration:300,children:[x.jsxs("div",{className:`h-screen flex flex-col ${Y.background.app} overflow-hidden antialiased`,children:[x.jsx(MD,{}),x.jsx(DD,{})]}),x.jsxs(y2,{open:W.toastOpen,onOpenChange:t=>W.setToastOpen(t),className:`${Y.toast.root} data-[state=open]:animate-fade-up data-[state=closed]:opacity-0 transition-opacity`,children:[x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx(b2,{className:Y.toast.title,children:e("translateError")}),x.jsx(S2,{className:Y.toast.description,children:W.toastMsg})]}),x.jsx(_2,{className:Y.toast.close,children:x.jsx(U2,{className:"w-3.5 h-3.5"})})]}),x.jsx(m2,{className:Y.toast.viewport})]})})});function jD(){const e=document.getElementById("app");e&&jO.createRoot(e).render(x.jsx(LD,{}))}(async function(){const[e]=await Promise.all([tinker.getLanguage(),W.init()]);Ve.changeLanguage(e),jD()})();
|
|
169
|
+
`)},vN=0,pi=[];function gN(e){var t=b.useRef([]),n=b.useRef([0,0]),a=b.useRef(),i=b.useState(vN++)[0],r=b.useState(P_)[0],l=b.useRef(e);b.useEffect(function(){l.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=BR([e.lockRef.current],(e.shards||[]).map(wm),!0).filter(Boolean);return g.forEach(function(_){return _.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var o=b.useCallback(function(g,_){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!l.current.allowPinchZoom;var v=So(g),p=n.current,m="deltaX"in g?g.deltaX:p[0]-v[0],S="deltaY"in g?g.deltaY:p[1]-v[1],E,A=g.target,O=Math.abs(m)>Math.abs(S)?"h":"v";if("touches"in g&&O==="h"&&A.type==="range")return!1;var N=window.getSelection(),M=N&&N.anchorNode,D=M?M===A||M.contains(A):!1;if(D)return!1;var V=Am(O,A);if(!V)return!0;if(V?E=O:(E=O==="v"?"h":"v",V=Am(O,A)),!V)return!1;if(!a.current&&"changedTouches"in g&&(m||S)&&(a.current=E),!E)return!0;var z=a.current||E;return dN(z,_,g,z==="h"?m:S)},[]),s=b.useCallback(function(g){var _=g;if(!(!pi.length||pi[pi.length-1]!==r)){var v="deltaY"in _?Tm(_):So(_),p=t.current.filter(function(E){return E.name===_.type&&(E.target===_.target||_.target===E.shadowParent)&&hN(E.delta,v)})[0];if(p&&p.should){_.cancelable&&_.preventDefault();return}if(!p){var m=(l.current.shards||[]).map(wm).filter(Boolean).filter(function(E){return E.contains(_.target)}),S=m.length>0?o(_,m[0]):!l.current.noIsolation;S&&_.cancelable&&_.preventDefault()}}},[]),u=b.useCallback(function(g,_,v,p){var m={name:g,delta:_,target:v,should:p,shadowParent:mN(v)};t.current.push(m),setTimeout(function(){t.current=t.current.filter(function(S){return S!==m})},1)},[]),c=b.useCallback(function(g){n.current=So(g),a.current=void 0},[]),f=b.useCallback(function(g){u(g.type,Tm(g),g.target,o(g,e.lockRef.current))},[]),d=b.useCallback(function(g){u(g.type,So(g),g.target,o(g,e.lockRef.current))},[]);b.useEffect(function(){return pi.push(r),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",s,hi),document.addEventListener("touchmove",s,hi),document.addEventListener("touchstart",c,hi),function(){pi=pi.filter(function(g){return g!==r}),document.removeEventListener("wheel",s,hi),document.removeEventListener("touchmove",s,hi),document.removeEventListener("touchstart",c,hi)}},[]);var h=e.removeScrollBar,y=e.inert;return b.createElement(b.Fragment,null,y?b.createElement(r,{styles:pN(i)}):null,h?b.createElement(rN,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function mN(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const yN=kR(Y_,gN);var X_=b.forwardRef(function(e,t){return b.createElement(wu,Jt({},e,{ref:t,sideCar:yN}))});X_.classNames=wu.classNames;var bN=[" ","Enter","ArrowUp","ArrowDown"],SN=[" ","Enter"],Qa="Select",[Cu,Ru,_N]=p_(Qa),[_r]=Pl(Qa,[_N,yu]),Nu=yu(),[xN,_a]=_r(Qa),[EN,ON]=_r(Qa),k_=e=>{const{__scopeSelect:t,children:n,open:a,defaultOpen:i,onOpenChange:r,value:l,defaultValue:o,onValueChange:s,dir:u,name:c,autoComplete:f,disabled:d,required:h,form:y}=e,g=Nu(t),[_,v]=b.useState(null),[p,m]=b.useState(null),[S,E]=b.useState(!1),A=ER(u),[O,N]=Ds({prop:a,defaultProp:i??!1,onChange:r,caller:Qa}),[M,D]=Ds({prop:l,defaultProp:o,onChange:s,caller:Qa}),V=b.useRef(null),z=_?y||!!_.closest("form"):!0,[U,C]=b.useState(new Set),B=Array.from(U).map(T=>T.props.value).join(";");return x.jsx(e_,{...g,children:x.jsxs(xN,{required:h,scope:t,trigger:_,onTriggerChange:v,valueNode:p,onValueNodeChange:m,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:hu(),value:M,onValueChange:D,open:O,onOpenChange:N,dir:A,triggerPointerDownPosRef:V,disabled:d,children:[x.jsx(Cu.Provider,{scope:t,children:x.jsx(EN,{scope:e.__scopeSelect,onNativeOptionAdd:b.useCallback(T=>{C(L=>new Set(L).add(T))},[]),onNativeOptionRemove:b.useCallback(T=>{C(L=>{const R=new Set(L);return R.delete(T),R})},[]),children:n})}),z?x.jsxs(dx,{"aria-hidden":!0,required:h,tabIndex:-1,name:c,autoComplete:f,value:M,onChange:T=>D(T.target.value),disabled:d,form:y,children:[M===void 0?x.jsx("option",{value:""}):null,Array.from(U)]},B):null]})})};k_.displayName=Qa;var $_="SelectTrigger",Q_=b.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:a=!1,...i}=e,r=Nu(n),l=_a($_,n),o=l.disabled||a,s=Te(t,l.onTriggerChange),u=Ru(n),c=b.useRef("touch"),[f,d,h]=px(g=>{const _=u().filter(m=>!m.disabled),v=_.find(m=>m.value===l.value),p=vx(_,g,v);p!==void 0&&l.onValueChange(p.value)}),y=g=>{o||(l.onOpenChange(!0),h()),g&&(l.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return x.jsx(t_,{asChild:!0,...r,children:x.jsx(fe.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:o,"data-disabled":o?"":void 0,"data-placeholder":hx(l.value)?"":void 0,...i,ref:s,onClick:F(i.onClick,g=>{g.currentTarget.focus(),c.current!=="mouse"&&y(g)}),onPointerDown:F(i.onPointerDown,g=>{c.current=g.pointerType;const _=g.target;_.hasPointerCapture(g.pointerId)&&_.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(y(g),g.preventDefault())}),onKeyDown:F(i.onKeyDown,g=>{const _=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&d(g.key),!(_&&g.key===" ")&&bN.includes(g.key)&&(y(),g.preventDefault())})})})});Q_.displayName=$_;var Z_="SelectValue",F_=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:i,children:r,placeholder:l="",...o}=e,s=_a(Z_,n),{onValueNodeHasChildrenChange:u}=s,c=r!==void 0,f=Te(t,s.onValueNodeChange);return ke(()=>{u(c)},[u,c]),x.jsx(fe.span,{...o,ref:f,style:{pointerEvents:"none"},children:hx(s.value)?x.jsx(x.Fragment,{children:l}):r})});F_.displayName=Z_;var AN="SelectIcon",J_=b.forwardRef((e,t)=>{const{__scopeSelect:n,children:a,...i}=e;return x.jsx(fe.span,{"aria-hidden":!0,...i,ref:t,children:a||"▼"})});J_.displayName=AN;var TN="SelectPortal",I_=e=>x.jsx(bu,{asChild:!0,...e});I_.displayName=TN;var Za="SelectContent",W_=b.forwardRef((e,t)=>{const n=_a(Za,e.__scopeSelect),[a,i]=b.useState();if(ke(()=>{i(new DocumentFragment)},[]),!n.open){const r=a;return r?ga.createPortal(x.jsx(ex,{scope:e.__scopeSelect,children:x.jsx(Cu.Slot,{scope:e.__scopeSelect,children:x.jsx("div",{children:e.children})})}),r):null}return x.jsx(tx,{...e,ref:t})});W_.displayName=Za;var Bt=10,[ex,xa]=_r(Za),wN="SelectContentImpl",CN=ws("SelectContent.RemoveScroll"),tx=b.forwardRef((e,t)=>{const{__scopeSelect:n,position:a="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:r,onPointerDownOutside:l,side:o,sideOffset:s,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:y,hideWhenDetached:g,avoidCollisions:_,...v}=e,p=_a(Za,n),[m,S]=b.useState(null),[E,A]=b.useState(null),O=Te(t,K=>S(K)),[N,M]=b.useState(null),[D,V]=b.useState(null),z=Ru(n),[U,C]=b.useState(!1),B=b.useRef(!1);b.useEffect(()=>{if(m)return UR(m)},[m]),OR();const T=b.useCallback(K=>{const[ge,...$e]=z().map(se=>se.ref.current),[he]=$e.slice(-1),oe=document.activeElement;for(const se of K)if(se===oe||(se==null||se.scrollIntoView({block:"nearest"}),se===ge&&E&&(E.scrollTop=0),se===he&&E&&(E.scrollTop=E.scrollHeight),se==null||se.focus(),document.activeElement!==oe))return},[z,E]),L=b.useCallback(()=>T([N,m]),[T,N,m]);b.useEffect(()=>{U&&L()},[U,L]);const{onOpenChange:R,triggerPointerDownPosRef:H}=p;b.useEffect(()=>{if(m){let K={x:0,y:0};const ge=he=>{var oe,se;K={x:Math.abs(Math.round(he.pageX)-(((oe=H.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(he.pageY)-(((se=H.current)==null?void 0:se.y)??0))}},$e=he=>{K.x<=10&&K.y<=10?he.preventDefault():m.contains(he.target)||R(!1),document.removeEventListener("pointermove",ge),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",ge),document.addEventListener("pointerup",$e,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ge),document.removeEventListener("pointerup",$e,{capture:!0})}}},[m,R,H]),b.useEffect(()=>{const K=()=>R(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[R]);const[$,ie]=px(K=>{const ge=z().filter(oe=>!oe.disabled),$e=ge.find(oe=>oe.ref.current===document.activeElement),he=vx(ge,K,$e);he&&setTimeout(()=>he.ref.current.focus())}),xe=b.useCallback((K,ge,$e)=>{const he=!B.current&&!$e;(p.value!==void 0&&p.value===ge||he)&&(M(K),he&&(B.current=!0))},[p.value]),Re=b.useCallback(()=>m==null?void 0:m.focus(),[m]),Ee=b.useCallback((K,ge,$e)=>{const he=!B.current&&!$e;(p.value!==void 0&&p.value===ge||he)&&V(K)},[p.value]),Je=a==="popper"?sd:nx,Ea=Je===sd?{side:o,sideOffset:s,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:y,hideWhenDetached:g,avoidCollisions:_}:{};return x.jsx(ex,{scope:n,content:m,viewport:E,onViewportChange:A,itemRefCallback:xe,selectedItem:N,onItemLeave:Re,itemTextRefCallback:Ee,focusSelectedItem:L,selectedItemText:D,position:a,isPositioned:U,searchRef:$,children:x.jsx(X_,{as:CN,allowPinchZoom:!0,children:x.jsx(z_,{asChild:!0,trapped:p.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:F(i,K=>{var ge;(ge=p.trigger)==null||ge.focus({preventScroll:!0}),K.preventDefault()}),children:x.jsx(du,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:r,onPointerDownOutside:l,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:x.jsx(Je,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:K=>K.preventDefault(),...v,...Ea,onPlaced:()=>C(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:F(v.onKeyDown,K=>{const ge=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!ge&&K.key.length===1&&ie(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let he=z().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(K.key)&&(he=he.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const oe=K.target,se=he.indexOf(oe);he=he.slice(se+1)}setTimeout(()=>T(he)),K.preventDefault()}})})})})})})});tx.displayName=wN;var RN="SelectItemAlignedPosition",nx=b.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:a,...i}=e,r=_a(Za,n),l=xa(Za,n),[o,s]=b.useState(null),[u,c]=b.useState(null),f=Te(t,O=>c(O)),d=Ru(n),h=b.useRef(!1),y=b.useRef(!0),{viewport:g,selectedItem:_,selectedItemText:v,focusSelectedItem:p}=l,m=b.useCallback(()=>{if(r.trigger&&r.valueNode&&o&&u&&g&&_&&v){const O=r.trigger.getBoundingClientRect(),N=u.getBoundingClientRect(),M=r.valueNode.getBoundingClientRect(),D=v.getBoundingClientRect();if(r.dir!=="rtl"){const oe=D.left-N.left,se=M.left-oe,rt=O.left-se,Qt=O.width+rt,Er=Math.max(Qt,N.width),Or=window.innerWidth-Bt,Ar=mm(se,[Bt,Math.max(Bt,Or-Er)]);o.style.minWidth=Qt+"px",o.style.left=Ar+"px"}else{const oe=N.right-D.right,se=window.innerWidth-M.right-oe,rt=window.innerWidth-O.right-se,Qt=O.width+rt,Er=Math.max(Qt,N.width),Or=window.innerWidth-Bt,Ar=mm(se,[Bt,Math.max(Bt,Or-Er)]);o.style.minWidth=Qt+"px",o.style.right=Ar+"px"}const V=d(),z=window.innerHeight-Bt*2,U=g.scrollHeight,C=window.getComputedStyle(u),B=parseInt(C.borderTopWidth,10),T=parseInt(C.paddingTop,10),L=parseInt(C.borderBottomWidth,10),R=parseInt(C.paddingBottom,10),H=B+T+U+R+L,$=Math.min(_.offsetHeight*5,H),ie=window.getComputedStyle(g),xe=parseInt(ie.paddingTop,10),Re=parseInt(ie.paddingBottom,10),Ee=O.top+O.height/2-Bt,Je=z-Ee,Ea=_.offsetHeight/2,K=_.offsetTop+Ea,ge=B+T+K,$e=H-ge;if(ge<=Ee){const oe=V.length>0&&_===V[V.length-1].ref.current;o.style.bottom="0px";const se=u.clientHeight-g.offsetTop-g.offsetHeight,rt=Math.max(Je,Ea+(oe?Re:0)+se+L),Qt=ge+rt;o.style.height=Qt+"px"}else{const oe=V.length>0&&_===V[0].ref.current;o.style.top="0px";const rt=Math.max(Ee,B+g.offsetTop+(oe?xe:0)+Ea)+$e;o.style.height=rt+"px",g.scrollTop=ge-Ee+g.offsetTop}o.style.margin=`${Bt}px 0`,o.style.minHeight=$+"px",o.style.maxHeight=z+"px",a==null||a(),requestAnimationFrame(()=>h.current=!0)}},[d,r.trigger,r.valueNode,o,u,g,_,v,r.dir,a]);ke(()=>m(),[m]);const[S,E]=b.useState();ke(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const A=b.useCallback(O=>{O&&y.current===!0&&(m(),p==null||p(),y.current=!1)},[m,p]);return x.jsx(MN,{scope:n,contentWrapper:o,shouldExpandOnScrollRef:h,onScrollButtonChange:A,children:x.jsx("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:x.jsx(fe.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});nx.displayName=RN;var NN="SelectPopperPosition",sd=b.forwardRef((e,t)=>{const{__scopeSelect:n,align:a="start",collisionPadding:i=Bt,...r}=e,l=Nu(n);return x.jsx(n_,{...l,...r,ref:t,align:a,collisionPadding:i,style:{boxSizing:"border-box",...r.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});sd.displayName=NN;var[MN,Bp]=_r(Za,{}),ud="SelectViewport",ax=b.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:a,...i}=e,r=xa(ud,n),l=Bp(ud,n),o=Te(t,r.onViewportChange),s=b.useRef(0);return x.jsxs(x.Fragment,{children:[x.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),x.jsx(Cu.Slot,{scope:n,children:x.jsx(fe.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:o,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:F(i.onScroll,u=>{const c=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=l;if(d!=null&&d.current&&f){const h=Math.abs(s.current-c.scrollTop);if(h>0){const y=window.innerHeight-Bt*2,g=parseFloat(f.style.minHeight),_=parseFloat(f.style.height),v=Math.max(g,_);if(v<y){const p=v+h,m=Math.min(y,p),S=p-m;f.style.height=m+"px",f.style.bottom==="0px"&&(c.scrollTop=S>0?S:0,f.style.justifyContent="flex-end")}}}s.current=c.scrollTop})})})]})});ax.displayName=ud;var ix="SelectGroup",[DN,LN]=_r(ix),jN=b.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,i=hu();return x.jsx(DN,{scope:n,id:i,children:x.jsx(fe.div,{role:"group","aria-labelledby":i,...a,ref:t})})});jN.displayName=ix;var rx="SelectLabel",zN=b.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,i=LN(rx,n);return x.jsx(fe.div,{id:i.id,...a,ref:t})});zN.displayName=rx;var Us="SelectItem",[UN,lx]=_r(Us),ox=b.forwardRef((e,t)=>{const{__scopeSelect:n,value:a,disabled:i=!1,textValue:r,...l}=e,o=_a(Us,n),s=xa(Us,n),u=o.value===a,[c,f]=b.useState(r??""),[d,h]=b.useState(!1),y=Te(t,p=>{var m;return(m=s.itemRefCallback)==null?void 0:m.call(s,p,a,i)}),g=hu(),_=b.useRef("touch"),v=()=>{i||(o.onValueChange(a),o.onOpenChange(!1))};if(a==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return x.jsx(UN,{scope:n,value:a,disabled:i,textId:g,isSelected:u,onItemTextChange:b.useCallback(p=>{f(m=>m||((p==null?void 0:p.textContent)??"").trim())},[]),children:x.jsx(Cu.ItemSlot,{scope:n,value:a,disabled:i,textValue:c,children:x.jsx(fe.div,{role:"option","aria-labelledby":g,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:y,onFocus:F(l.onFocus,()=>h(!0)),onBlur:F(l.onBlur,()=>h(!1)),onClick:F(l.onClick,()=>{_.current!=="mouse"&&v()}),onPointerUp:F(l.onPointerUp,()=>{_.current==="mouse"&&v()}),onPointerDown:F(l.onPointerDown,p=>{_.current=p.pointerType}),onPointerMove:F(l.onPointerMove,p=>{var m;_.current=p.pointerType,i?(m=s.onItemLeave)==null||m.call(s):_.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:F(l.onPointerLeave,p=>{var m;p.currentTarget===document.activeElement&&((m=s.onItemLeave)==null||m.call(s))}),onKeyDown:F(l.onKeyDown,p=>{var S;((S=s.searchRef)==null?void 0:S.current)!==""&&p.key===" "||(SN.includes(p.key)&&v(),p.key===" "&&p.preventDefault())})})})})});ox.displayName=Us;var Vr="SelectItemText",sx=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:i,...r}=e,l=_a(Vr,n),o=xa(Vr,n),s=lx(Vr,n),u=ON(Vr,n),[c,f]=b.useState(null),d=Te(t,v=>f(v),s.onItemTextChange,v=>{var p;return(p=o.itemTextRefCallback)==null?void 0:p.call(o,v,s.value,s.disabled)}),h=c==null?void 0:c.textContent,y=b.useMemo(()=>x.jsx("option",{value:s.value,disabled:s.disabled,children:h},s.value),[s.disabled,s.value,h]),{onNativeOptionAdd:g,onNativeOptionRemove:_}=u;return ke(()=>(g(y),()=>_(y)),[g,_,y]),x.jsxs(x.Fragment,{children:[x.jsx(fe.span,{id:s.textId,...r,ref:d}),s.isSelected&&l.valueNode&&!l.valueNodeHasChildren?ga.createPortal(r.children,l.valueNode):null]})});sx.displayName=Vr;var ux="SelectItemIndicator",cx=b.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return lx(ux,n).isSelected?x.jsx(fe.span,{"aria-hidden":!0,...a,ref:t}):null});cx.displayName=ux;var cd="SelectScrollUpButton",BN=b.forwardRef((e,t)=>{const n=xa(cd,e.__scopeSelect),a=Bp(cd,e.__scopeSelect),[i,r]=b.useState(!1),l=Te(t,a.onScrollButtonChange);return ke(()=>{if(n.viewport&&n.isPositioned){let o=function(){const u=s.scrollTop>0;r(u)};const s=n.viewport;return o(),s.addEventListener("scroll",o),()=>s.removeEventListener("scroll",o)}},[n.viewport,n.isPositioned]),i?x.jsx(fx,{...e,ref:l,onAutoScroll:()=>{const{viewport:o,selectedItem:s}=n;o&&s&&(o.scrollTop=o.scrollTop-s.offsetHeight)}}):null});BN.displayName=cd;var fd="SelectScrollDownButton",HN=b.forwardRef((e,t)=>{const n=xa(fd,e.__scopeSelect),a=Bp(fd,e.__scopeSelect),[i,r]=b.useState(!1),l=Te(t,a.onScrollButtonChange);return ke(()=>{if(n.viewport&&n.isPositioned){let o=function(){const u=s.scrollHeight-s.clientHeight,c=Math.ceil(s.scrollTop)<u;r(c)};const s=n.viewport;return o(),s.addEventListener("scroll",o),()=>s.removeEventListener("scroll",o)}},[n.viewport,n.isPositioned]),i?x.jsx(fx,{...e,ref:l,onAutoScroll:()=>{const{viewport:o,selectedItem:s}=n;o&&s&&(o.scrollTop=o.scrollTop+s.offsetHeight)}}):null});HN.displayName=fd;var fx=b.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:a,...i}=e,r=xa("SelectScrollButton",n),l=b.useRef(null),o=Ru(n),s=b.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return b.useEffect(()=>()=>s(),[s]),ke(()=>{var c;const u=o().find(f=>f.ref.current===document.activeElement);(c=u==null?void 0:u.ref.current)==null||c.scrollIntoView({block:"nearest"})},[o]),x.jsx(fe.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:F(i.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(a,50))}),onPointerMove:F(i.onPointerMove,()=>{var u;(u=r.onItemLeave)==null||u.call(r),l.current===null&&(l.current=window.setInterval(a,50))}),onPointerLeave:F(i.onPointerLeave,()=>{s()})})}),VN="SelectSeparator",YN=b.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return x.jsx(fe.div,{"aria-hidden":!0,...a,ref:t})});YN.displayName=VN;var dd="SelectArrow",PN=b.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,i=Nu(n),r=_a(dd,n),l=xa(dd,n);return r.open&&l.position==="popper"?x.jsx(a_,{...i,...a,ref:t}):null});PN.displayName=dd;var GN="SelectBubbleInput",dx=b.forwardRef(({__scopeSelect:e,value:t,...n},a)=>{const i=b.useRef(null),r=Te(a,i),l=DR(t);return b.useEffect(()=>{const o=i.current;if(!o)return;const s=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(s,"value").set;if(l!==t&&c){const f=new Event("change",{bubbles:!0});c.call(o,t),o.dispatchEvent(f)}},[l,t]),x.jsx(fe.select,{...n,style:{...i_,...n.style},ref:r,defaultValue:t})});dx.displayName=GN;function hx(e){return e===""||e===void 0}function px(e){const t=qt(e),n=b.useRef(""),a=b.useRef(0),i=b.useCallback(l=>{const o=n.current+l;t(o),function s(u){n.current=u,window.clearTimeout(a.current),u!==""&&(a.current=window.setTimeout(()=>s(""),1e3))}(o)},[t]),r=b.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,i,r]}function vx(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,r=n?e.indexOf(n):-1;let l=qN(e,Math.max(r,0));i.length===1&&(l=l.filter(u=>u!==n));const s=l.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return s!==n?s:void 0}function qN(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var gx=k_,mx=Q_,yx=F_,bx=J_,Sx=I_,_x=W_,xx=ax,Ex=ox,Ox=sx,Ax=cx,hd={exports:{}},pd={exports:{}},vd={exports:{}},gd={exports:{}},md={exports:{}};(function(e,t){var n=Object.prototype.toString;t=function(a){return n.call(a)},e.exports=t})(md,md.exports);var ri=md.exports;(function(e,t){var n=ri;t=function(a){return n(a)==="[object Number]"},e.exports=t})(gd,gd.exports);var Hp=gd.exports,yd={exports:{}};(function(e,t){var n=ri;t=function(a){var i=n(a);return i==="[object Function]"||i==="[object GeneratorFunction]"||i==="[object AsyncFunction]"},e.exports=t})(yd,yd.exports);var xr=yd.exports;(function(e,t){var n=Hp,a=xr,i=Math.pow(2,53)-1;t=function(r){if(!r)return!1;var l=r.length;return n(l)&&l>=0&&l<=i&&!a(r)},e.exports=t})(vd,vd.exports);var Mu=vd.exports,bd={exports:{}},Sd={exports:{}};(function(e,t){var n=Object.prototype.hasOwnProperty;t=function(a,i){return n.call(a,i)},e.exports=t})(Sd,Sd.exports);var Vp=Sd.exports;(function(e,t){var n=Vp;Object.keys?t=Object.keys:t=function(a){var i=[];for(var r in a)n(a,r)&&i.push(r);return i},e.exports=t})(bd,bd.exports);var li=bd.exports,_d={exports:{}},xd={exports:{}};(function(e,t){t=function(n){return n===void 0},e.exports=t})(xd,xd.exports);var Du=xd.exports;(function(e,t){var n=Du;t=function(a,i,r){if(n(i))return a;switch(r??3){case 1:return function(l){return a.call(i,l)};case 3:return function(l,o,s){return a.call(i,l,o,s)};case 4:return function(l,o,s,u){return a.call(i,l,o,s,u)}}return function(){return a.apply(i,arguments)}},e.exports=t})(_d,_d.exports);var Tx=_d.exports;(function(e,t){var n=Mu,a=li,i=Tx;t=function(r,l,o){l=i(l,o);var s,u;if(n(r))for(s=0,u=r.length;s<u;s++)l(r[s],s,r);else{var c=a(r);for(s=0,u=c.length;s<u;s++)l(r[c[s]],c[s],r)}return r},e.exports=t})(pd,pd.exports);var Xl=pd.exports,Ed={exports:{}};(function(e,t){var n=ri;t=function(a){return n(a)==="[object String]"},e.exports=t})(Ed,Ed.exports);var Lu=Ed.exports,Od={exports:{}};(function(e,t){var n=ri;Array.isArray?t=Array.isArray:t=function(a){return n(a)==="[object Array]"},e.exports=t})(Od,Od.exports);var oi=Od.exports,Ad={exports:{}};(function(e,t){t=function(n){var a=typeof n;return!!n&&(a==="function"||a==="object")},e.exports=t})(Ad,Ad.exports);var si=Ad.exports;(function(e,t){var n=Xl,a=Lu,i=Hp,r=oi,l=si;t=function(){var o=[];return n(arguments,function(s){if(s){if(a(s)||i(s))return o.push(s);if(r(s))return o.push(t.apply(null,s));l(s)&&n(s,function(u,c){u&&o.push(c)})}}),o.join(" ")},e.exports=t})(hd,hd.exports);var KN=hd.exports;const _o=Bs(KN),Y={background:{app:"bg-stone-50 dark:bg-stone-950",toolbar:"bg-white dark:bg-stone-900",sourcePanel:"bg-white dark:bg-stone-900",targetPanel:"bg-stone-50 dark:bg-stone-950"},text:{primary:"text-stone-900 dark:text-stone-100",placeholder:"placeholder-stone-300 dark:placeholder-stone-600",muted:"text-stone-300 dark:text-stone-600",translating:"text-stone-400 dark:text-stone-500"},border:{divider:"border-stone-200 dark:border-stone-700"},button:{icon:{default:"text-stone-400 dark:text-stone-400",hover:"hover:text-stone-700 dark:hover:text-stone-200 hover:bg-stone-100 dark:hover:bg-stone-800",disabled:"text-stone-300 dark:text-stone-600"},outlined:{default:"border-stone-200 dark:border-stone-700 text-stone-500 dark:text-stone-400",hover:"hover:bg-stone-100 dark:hover:bg-stone-800 hover:text-stone-700 dark:hover:text-stone-200",disabled:"border-stone-100 dark:border-stone-700 text-stone-300 dark:text-stone-600"},primary:{default:"bg-blue-500 dark:bg-blue-600 text-white",hover:"hover:bg-blue-600 dark:hover:bg-blue-500 hover:-translate-y-px active:translate-y-0",disabled:"bg-stone-100 dark:bg-stone-800 text-stone-400 dark:text-stone-500"},copy:{copied:"border-emerald-400 dark:border-emerald-700 text-emerald-600 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-950/30"}},select:{trigger:"text-stone-700 dark:text-stone-300 hover:bg-stone-100 dark:hover:bg-stone-800",chevron:"text-stone-400 dark:text-stone-500",content:"border-stone-200 dark:border-stone-700 bg-white dark:bg-stone-800",item:"text-stone-700 dark:text-stone-300 data-highlighted:bg-stone-100 dark:data-highlighted:bg-stone-700",itemChecked:"data-[state=checked]:text-blue-600 dark:data-[state=checked]:text-blue-400",itemIndicator:"text-blue-500 dark:text-blue-400"},tooltip:{content:"bg-stone-900 dark:bg-stone-100 text-white dark:text-stone-900",arrow:"fill-stone-900 dark:fill-stone-100"},toast:{root:"bg-white dark:bg-stone-800 border border-stone-200 dark:border-stone-700 rounded-xl shadow-lg px-4 py-3 flex items-start gap-3",title:"text-[12.5px] font-semibold text-red-600 dark:text-red-400",description:"text-[12px] text-stone-500 dark:text-stone-400 mt-0.5",close:"text-stone-400 dark:text-stone-500 hover:text-stone-600 dark:hover:text-stone-300 cursor-pointer",viewport:"fixed bottom-4 right-4 flex flex-col gap-2 w-72 z-50"}};function Cm({value:e,onValueChange:t,langs:n,excludeAuto:a}){const{t:i}=Tu(),r=a?n.filter(l=>l.code!=="auto"):n;return x.jsxs(gx,{value:e,onValueChange:t,children:[x.jsxs(mx,{className:`inline-flex items-center gap-1 px-2 py-1 text-[12px] font-medium rounded-md border-none bg-transparent ${Y.select.trigger} transition-colors duration-150 w-22 cursor-pointer outline-none focus:outline-none overflow-hidden`,children:[x.jsx("span",{className:"truncate whitespace-nowrap min-w-0 flex-1",children:x.jsx(yx,{})}),x.jsx(bx,{className:"shrink-0",children:x.jsx(C_,{className:`w-3 h-3 ${Y.select.chevron}`})})]}),x.jsx(Sx,{children:x.jsx(_x,{className:`overflow-hidden rounded-xl border ${Y.select.content} shadow-[0_8px_24px_rgba(0,0,0,0.1),0_2px_6px_rgba(0,0,0,0.06)] dark:shadow-[0_8px_24px_rgba(0,0,0,0.5)] z-50 min-w-32.5`,position:"popper",sideOffset:4,children:x.jsx(xx,{className:"p-1",children:r.map(l=>x.jsxs(Ex,{value:l.code,className:`relative flex items-center px-2 py-1.25 pl-6.5 text-[12px] rounded-md cursor-pointer outline-none ${Y.select.item} data-[state=checked]:font-semibold ${Y.select.itemChecked} transition-colors duration-75`,children:[x.jsx(Ax,{className:`absolute left-2 flex items-center ${Y.select.itemIndicator}`,children:x.jsx(nd,{className:"w-3 h-3"})}),x.jsx(Ox,{children:i(l.code)})]},l.code))})})})]})}function Cx(){return x.jsxs("span",{className:"flex items-center gap-0.75 h-3",children:[x.jsx("span",{className:"w-[3.5px] h-[3.5px] rounded-full bg-current animate-dot-pulse"}),x.jsx("span",{className:"w-[3.5px] h-[3.5px] rounded-full bg-current animate-dot-pulse-2"}),x.jsx("span",{className:"w-[3.5px] h-[3.5px] rounded-full bg-current animate-dot-pulse-3"})]})}const Ki=[{code:"auto"},{code:"en"},{code:"ja"},{code:"ko"},{code:"fr"},{code:"es"},{code:"ru"},{code:"de"},{code:"it"},{code:"pt"},{code:"ar"},{code:"hi"},{code:"th"},{code:"vi"}],XN=[Ki[0],Ki[1],{code:"zh-CN"},{code:"zh-TW"},...Ki.slice(2)],kN=[Ki[0],Ki[1],{code:"zh-Hans"},{code:"zh-Hant"},...Ki.slice(2)],Rm=[{value:"google",label:"Google"},{value:"bing",label:"Bing"},{value:"deepl",label:"DeepL"}],$N={value:"ai",label:"AI"};var Td={exports:{}},wd={exports:{}},Cd={exports:{}},Rd={exports:{}},Nd={exports:{}},Md={exports:{}};(function(e,t){var n=Du,a=Xl;t=function(i,r){return function(l){return a(arguments,function(o,s){if(s!==0){var u=i(o);a(u,function(c){(!r||n(l[c]))&&(l[c]=o[c])})}}),l}},e.exports=t})(Md,Md.exports);var Yp=Md.exports,Dd={exports:{}},Ld={exports:{}};(function(e,t){var n=si,a=xr,i=Object.getPrototypeOf,r={}.constructor;t=function(l){if(n(l)){if(i)return i(l);var o=l.__proto__;if(o||o===null)return o;if(a(l.constructor))return l.constructor.prototype;if(l instanceof r)return r.prototype}},e.exports=t})(Ld,Ld.exports);var QN=Ld.exports,jd={exports:{}},zd={exports:{}},Ud={exports:{}},Bd={exports:{}},Hd={exports:{}};(function(e,t){var n=li,a=Yp;t=a(n),e.exports=t})(Hd,Hd.exports);var ZN=Hd.exports,Vd={exports:{}};(function(e,t){var n=li;t=function(a,i){var r=n(i),l=r.length;if(a==null)return!l;a=Object(a);for(var o=0;o<l;o++){var s=r[o];if(i[s]!==a[s]||!(s in a))return!1}return!0},e.exports=t})(Vd,Vd.exports);var FN=Vd.exports;(function(e,t){var n=ZN,a=FN;t=function(i){return i=n({},i),function(r){return a(r,i)}},e.exports=t})(Bd,Bd.exports);var JN=Bd.exports,Yd={exports:{}};(function(e,t){t=function(n){return n},e.exports=t})(Yd,Yd.exports);var IN=Yd.exports,Pd={exports:{}},Gd={exports:{}},qd={exports:{}};(function(e,t){var n=Vp,a=oi;t=function(l,o){if(a(l))return l;if(o&&n(o,l))return[l];var s=[];return l.replace(i,function(u,c,f,d){s.push(f?d.replace(r,"$1"):c||u)}),s};var i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g;e.exports=t})(qd,qd.exports);var WN=qd.exports;(function(e,t){var n=Du,a=WN;t=function(i,r){r=a(r,i);var l;for(l=r.shift();!n(l);){if(i=i[l],i==null)return;l=r.shift()}return i},e.exports=t})(Gd,Gd.exports);var Rx=Gd.exports;(function(e,t){var n=oi,a=Rx;t=function(r){return n(r)?function(l){return a(l,r)}:i(r)};function i(r){return function(l){return l==null?void 0:l[r]}}e.exports=t})(Pd,Pd.exports);var eM=Pd.exports;(function(e,t){var n=xr,a=si,i=oi,r=Tx,l=JN,o=IN,s=eM;t=function(u,c,f){return u==null?o:n(u)?r(u,c,f):a(u)&&!i(u)?l(u):s(u)},e.exports=t})(Ud,Ud.exports);var Nx=Ud.exports;(function(e,t){var n=Nx,a=Xl;t=function(i,r,l){var o=[];return r=n(r,l),a(i,function(s,u,c){r(s,u,c)&&o.push(s)}),o},e.exports=t})(zd,zd.exports);var tM=zd.exports;(function(e,t){var n=tM;t=function(i,r){return r=r||a,n(i,function(l,o,s){for(var u=s.length;++o<u;)if(r(l,s[o]))return!1;return!0})};function a(i,r){return i===r}e.exports=t})(jd,jd.exports);var nM=jd.exports;(function(e,t){var n=li,a=QN,i=nM,r=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols;t=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=s.prototype,c=u===void 0?!0:u,f=s.unenumerable,d=f===void 0?!1:f,h=s.symbol,y=h===void 0?!1:h,g=[];if((d||y)&&r){var _=n;d&&r&&(_=r);do g=g.concat(_(o)),y&&l&&(g=g.concat(l(o)));while(c&&(o=a(o))&&o!==Object.prototype);g=i(g)}else if(c)for(var v in o)g.push(v);else g=n(o);return g},e.exports=t})(Dd,Dd.exports);var Mx=Dd.exports;(function(e,t){var n=Yp,a=Mx;t=n(a),e.exports=t})(Nd,Nd.exports);var Dx=Nd.exports,Kd={exports:{}},Xd={exports:{}};(function(e,t){var n=Nx,a=li,i=Mu;t=function(r,l,o){l=n(l,o);for(var s=!i(r)&&a(r),u=(s||r).length,c=Array(u),f=0;f<u;f++){var d=s?s[f]:f;c[f]=l(r[d],d,r)}return c},e.exports=t})(Xd,Xd.exports);var aM=Xd.exports;(function(e,t){var n=Mu,a=aM,i=oi,r=Lu;t=function(l){return l?i(l)?l:n(l)&&!r(l)?a(l):[l]:[]},e.exports=t})(Kd,Kd.exports);var Pp=Kd.exports,kd={exports:{}},$d={exports:{}};(function(e,t){var n=si;t=function(i){if(!n(i))return{};if(a)return a(i);function r(){}return r.prototype=i,new r};var a=Object.create;e.exports=t})($d,$d.exports);var iM=$d.exports;(function(e,t){var n=iM;t=function(a,i){a.prototype=n(i.prototype)},e.exports=t})(kd,kd.exports);var rM=kd.exports,Qd={exports:{}};(function(e,t){var n=xr;t=typeof wx<"u"&&n(wx.openLocation),e.exports=t})(Qd,Qd.exports);var lM=Qd.exports;(function(e,t){var n=Dx,a=Pp,i=rM,r=Rx,l=lM;t=function(u,c){return s.extend(u,c)};function o(u,c,f){f=f||{};var d=c.className||r(c,"initialize.name")||"";delete c.className;var h=function(){var y=a(arguments);return this.initialize?this.initialize.apply(this,y)||this:this};if(!l)try{h=new Function("toArr","return function "+d+"(){var args = toArr(arguments);return this.initialize ? this.initialize.apply(this, args) || this : this;};")(a)}catch{}return i(h,u),h.prototype.constructor=h,h.extend=function(y,g){return o(h,y,g)},h.inherits=function(y){i(h,y)},h.methods=function(y){return n(h.prototype,y),h},h.statics=function(y){return n(h,y),h},h.methods(c).statics(f),h}var s=t.Base=o(Object,{className:"Base",callSuper:function(u,c,f){var d=u.prototype[c];return d.apply(this,f)},toString:function(){return this.constructor.name}});e.exports=t})(Rd,Rd.exports);var oM=Rd.exports,Zd={exports:{}};(function(e,t){t=function(n,a,i){var r=n.length;a==null?a=0:a<0?a=Math.max(r+a,0):a=Math.min(a,r),i==null?i=r:i<0?i=Math.max(r+i,0):i=Math.min(i,r);for(var l=[];a<i;)l.push(n[a++]);return l},e.exports=t})(Zd,Zd.exports);var sM=Zd.exports,Fd={exports:{}},Jd={exports:{}},Id={exports:{}};(function(e,t){t=function(n,a){return a=a==null?n.length-1:+a,function(){var i=Math.max(arguments.length-a,0),r=new Array(i),l;for(l=0;l<i;l++)r[l]=arguments[l+a];switch(a){case 0:return n.call(this,r);case 1:return n.call(this,arguments[0],r);case 2:return n.call(this,arguments[0],arguments[1],r)}var o=new Array(a+1);for(l=0;l<a;l++)o[l]=arguments[l];return o[a]=r,n.apply(this,o)}},e.exports=t})(Id,Id.exports);var uM=Id.exports;(function(e,t){var n=uM,a=Pp;t=n(function(i,r){return function(){var l=[];return l=l.concat(r),l=l.concat(a(arguments)),i.apply(this,l)}}),e.exports=t})(Jd,Jd.exports);var cM=Jd.exports,Wd={exports:{}};(function(e,t){t=function(n,a){var i;return function(){return--n>0&&(i=a.apply(this,arguments)),n<=1&&(a=null),i}},e.exports=t})(Wd,Wd.exports);var fM=Wd.exports;(function(e,t){var n=cM,a=fM;t=n(a,2),e.exports=t})(Fd,Fd.exports);var dM=Fd.exports,eh={exports:{}};(function(e,t){var n=si,a=oi,i=Dx;t=function(r){return n(r)?a(r)?r.slice():i({},r):r},e.exports=t})(eh,eh.exports);var hM=eh.exports;(function(e,t){var n=oM,a=Vp,i=Xl,r=sM,l=dM,o=hM;t=n({initialize:function(){this._events=this._events||{}},on:function(s,u){return this._events[s]=this._events[s]||[],this._events[s].push(u),this},off:function(s,u){var c=this._events;if(a(c,s)){var f=c[s].indexOf(u);return f>-1&&c[s].splice(f,1),this}},once:function(s,u){return this.on(s,l(u)),this},emit:function(s){var u=this;if(a(this._events,s)){var c=r(arguments,1),f=o(this._events[s]);return i(f,function(d){return d.apply(u,c)},this),this}},removeAllListeners:function(s){return s?delete this._events[s]:this._events={},this}},{mixin:function(s){i(["on","off","once","emit","removeAllListeners"],function(u){s[u]=t.prototype[u]}),s._events=s._events||{}}}),e.exports=t})(Cd,Cd.exports);var pM=Cd.exports;(function(e,t){var n=pM,a=Lu,i=si,r=Xl,l=Pp;t=n.extend({initialize:function(s){this.callSuper(n,"initialize",arguments),this._data=s||{},this.save(this._data)},set:function(o,s){var u;a(o)?(u={},u[o]=s):i(o)&&(u=o);var c=this;r(u,function(f,d){var h=c._data[d];c._data[d]=f,c.emit("change",d,f,h)}),this.save(this._data)},get:function(o){var s=this._data;if(a(o))return s[o];var u={};return r(o,function(c){u[c]=s[c]}),u},remove:function(o){o=l(o);var s=this._data;r(o,function(u){delete s[u]}),this.save(s)},clear:function(){this._data={},this.save(this._data)},each:function(o){r(this._data,o)},save:function(o){this._data=o}}),e.exports=t})(wd,wd.exports);var vM=wd.exports,th={exports:{}},nh={exports:{}};(function(e,t){var n=li;t={getItem:function(s){return(i[s]?a[s]:this[s])||null},setItem:function(s,u){i[s]?a[s]=u:this[s]=u},removeItem:function(s){i[s]?delete a[s]:delete this[s]},key:function(s){var u=r();return s>=0&&s<u.length?u[s]:null},clear:function(){for(var s=l(),u=0,c;c=s[u];u++)delete this[c];s=o();for(var f=0,d;d=s[f];f++)delete a[d]}},Object.defineProperty(t,"length",{enumerable:!1,configurable:!0,get:function(){return r().length}});var a={},i={getItem:1,setItem:1,removeItem:1,key:1,clear:1,length:1};function r(){return l().concat(o())}function l(){return n(t).filter(function(s){return!i[s]})}function o(){return n(a)}e.exports=t})(nh,nh.exports);var gM=nh.exports;(function(e,t){var n=gM;t=function(a){a=a||"local";var i;switch(a){case"local":i=window.localStorage;break;case"session":i=window.sessionStorage;break}try{var r="test-localStorage-"+Date.now();i.setItem(r,r);var l=i.getItem(r);if(i.removeItem(r),l!==r)throw new Error}catch{return n}return i},e.exports=t})(th,th.exports);var mM=th.exports,ah={exports:{}},ih={exports:{}};(function(e,t){var n=ri;t=function(a){return n(a)==="[object Arguments]"},e.exports=t})(ih,ih.exports);var yM=ih.exports;(function(e,t){var n=Mu,a=oi,i=Lu,r=yM,l=li;t=function(o){return o==null?!0:n(o)&&(a(o)||i(o)||r(o))?o.length===0:l(o).length===0},e.exports=t})(ah,ah.exports);var bM=ah.exports,rh={exports:{}},lh={exports:{}},oh={exports:{}};(function(e,t){var n=Hp;t=function(a){return n(a)&&a!==+a},e.exports=t})(oh,oh.exports);var SM=oh.exports,sh={exports:{}},uh={exports:{}};(function(e,t){t=function(n){return n==null?"":n.toString()},e.exports=t})(uh,uh.exports);var Lx=uh.exports;(function(e,t){var n=Lx;t=function(a){return n(a).toLocaleLowerCase()},e.exports=t})(sh,sh.exports);var _M=sh.exports,ch={exports:{}};(function(e,t){var n=xr;t=function(a){return a==null?!1:a._isBuffer?!0:a.constructor&&n(a.constructor.isBuffer)&&a.constructor.isBuffer(a)},e.exports=t})(ch,ch.exports);var xM=ch.exports;(function(e,t){var n=ri,a=SM,i=_M,r=xM;t=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u;return o===null&&(u="Null"),o===void 0&&(u="Undefined"),a(o)&&(u="NaN"),r(o)&&(u="Buffer"),u||(u=n(o).match(l),u&&(u=u[1])),u?s?i(u):u:""};var l=/^\[object\s+(.*?)]$/;e.exports=t})(lh,lh.exports);var EM=lh.exports,fh={exports:{}};(function(e,t){t=function(n){return n.length<1?n:n[0].toUpperCase()+n.slice(1)},e.exports=t})(fh,fh.exports);var OM=fh.exports,dh={exports:{}};(function(e,t){var n=ri;t=function(a){return n(a)==="[object RegExp]"},e.exports=t})(dh,dh.exports);var AM=dh.exports;(function(e,t){var n=EM,a=OM,i=Lx,r=Du,l=xr,o=AM;t=function(u,c){return JSON.stringify(u,s(),c)};function s(){var u=[],c=[];return function(f,d){if(u.length>0){var h=u.indexOf(this);h>-1?(u.splice(h+1),c.splice(h,1/0,f)):(u.push(this),c.push(f));var y=u.indexOf(d);y>-1&&(u[0]===d?d="[Circular ~]":d="[Circular ~."+c.slice(0,y).join(".")+"]")}else u.push(d);return o(d)||l(d)?d="["+a(n(d))+" "+i(d)+"]":r(d)&&(d=null),d}}e.exports=t})(rh,rh.exports);var TM=rh.exports,hh={exports:{}};(function(e,t){var n=Yp,a=Mx;t=n(a,!0),e.exports=t})(hh,hh.exports);var wM=hh.exports;(function(e,t){var n=vM,a=mM,i=bM,r=TM,l=wM,o=si,s=a("local");t=n.extend({initialize:function(c,f){this._name=c,f=f||{};var d=s.getItem(c);try{d=JSON.parse(d)}catch{d={}}o(d)||(d={}),f=l(d,f),this.callSuper(n,"initialize",[f])},save:function(u){if(i(u))return s.removeItem(this._name);s.setItem(this._name,r(u))}}),e.exports=t})(Td,Td.exports);var CM=Td.exports;const RM=Bs(CM),NM="Translation Error",MM="Enter text to translate...",DM="Translating",LM="Translation will appear here...",jM="Paste",zM="Swap Languages",UM="Copied",BM="Copy",HM="Clear",VM="Translate",YM="Please enter text to translate",PM="Translation failed, please try again",GM="Auto Detect",qM="English",KM="Japanese",XM="Korean",kM="French",$M="Spanish",QM="Russian",ZM="German",FM="Italian",JM="Portuguese",IM="Arabic",WM="Hindi",eD="Thai",tD="Vietnamese",nD={translateError:NM,sourcePlaceholder:MM,translating:DM,targetPlaceholder:LM,paste:jM,swapLanguages:zM,copied:UM,copy:BM,clear:HM,translate:VM,emptySourceError:YM,translateFailed:PM,auto:GM,en:qM,ja:KM,ko:XM,fr:kM,es:$M,ru:QM,de:ZM,it:FM,pt:JM,ar:IM,hi:WM,th:eD,vi:tD,"zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-Hans":"Simplified Chinese","zh-Hant":"Traditional Chinese"},aD="翻译出错",iD="输入要翻译的文字...",rD="翻译中",lD="翻译结果将显示在这里...",oD="粘贴",sD="交换语言",uD="已复制",cD="复制",fD="清空",dD="翻译",hD="请输入要翻译的文字",pD="翻译失败,请稍后重试",vD="自动检测",gD="英语",mD="日语",yD="韩语",bD="法语",SD="西班牙语",_D="俄语",xD="德语",ED="意大利语",OD="葡萄牙语",AD="阿拉伯语",TD="印地语",wD="泰语",CD="越南语",RD={translateError:aD,sourcePlaceholder:iD,translating:rD,targetPlaceholder:lD,paste:oD,swapLanguages:sD,copied:uD,copy:cD,clear:fD,translate:dD,emptySourceError:hD,translateFailed:pD,auto:vD,en:gD,ja:mD,ko:yD,fr:bD,es:SD,ru:_D,de:xD,it:ED,pt:OD,ar:AD,hi:TD,th:wD,vi:CD,"zh-CN":"简体中文","zh-TW":"繁体中文","zh-Hans":"简体中文","zh-Hant":"繁体中文"};Ve.use(gR).init({resources:{"en-US":{translation:nD},"zh-CN":{translation:RD}},lng:"en-US",fallbackLng:"en-US",interpolation:{escapeValue:!1}});const vi=new RM("tinker-translate");class ND{constructor(){zt(this,"sourceText","");zt(this,"translatedText","");zt(this,"sourceLang",vi.get("sourceLang")??"auto");zt(this,"targetLang",vi.get("targetLang")??"zh-CN");zt(this,"service",vi.get("service")??"google");zt(this,"isTranslating",!1);zt(this,"toastOpen",!1);zt(this,"toastMsg","");zt(this,"copied",!1);zt(this,"hasAI",!1);hT(this)}async init(){const t=await tinker.getAIProviders();this.hasAI=t.length>0,!this.hasAI&&this.service==="ai"&&this.setService("google")}setSourceText(t){this.sourceText=t}setSourceLang(t){this.sourceLang=t,vi.set("sourceLang",t)}setTargetLang(t){this.targetLang=t,vi.set("targetLang",t)}setService(t){this.service=t,vi.set("service",t)}showError(t){this.toastMsg=t,this.toastOpen=!1,requestAnimationFrame(()=>{this.toastOpen=!0})}setToastOpen(t){this.toastOpen=t}handleServiceChange(t){const n=t==="bing",a=this.service==="bing";this.setService(t),n?(this.sourceLang==="zh-CN"&&this.setSourceLang("zh-Hans"),this.sourceLang==="zh-TW"&&this.setSourceLang("zh-Hant"),this.targetLang==="zh-CN"&&this.setTargetLang("zh-Hans"),this.targetLang==="zh-TW"&&this.setTargetLang("zh-Hant")):a&&(this.sourceLang==="zh-Hans"&&this.setSourceLang("zh-CN"),this.sourceLang==="zh-Hant"&&this.setSourceLang("zh-TW"),this.targetLang==="zh-Hans"&&this.setTargetLang("zh-CN"),this.targetLang==="zh-Hant"&&this.setTargetLang("zh-TW"))}handleSwapLanguages(){if(this.sourceLang==="auto")return;const t=this.sourceLang,n=this.targetLang;this.setSourceLang(n),this.setTargetLang(t);const a=this.sourceText;this.sourceText=this.translatedText,this.translatedText=a}async handlePaste(){const t=await navigator.clipboard.readText();t&&(this.sourceText=t)}handleClear(){this.sourceText="",this.translatedText=""}async handleTranslate(){if(!this.sourceText.trim()){this.showError(Ve.t("emptySourceError"));return}this.isTranslating=!0,this.translatedText="";try{const t=await translate.translate(this.sourceText,this.sourceLang,this.targetLang,this.service);this.translatedText=t.text}catch(t){this.showError(Ve.t("translateFailed")),console.error(t)}finally{this.isTranslating=!1}}async handleCopy(){this.translatedText&&(await navigator.clipboard.writeText(this.translatedText),this.copied=!0,setTimeout(()=>{this.copied=!1},1800))}get availableServices(){return this.hasAI?[...Rm,$N]:[...Rm]}get canSwap(){return this.sourceLang!=="auto"}get canClear(){return!!(this.sourceText||this.translatedText)}get canTranslate(){return!this.isTranslating&&!!this.sourceText.trim()}get canCopy(){return!!this.translatedText}}const W=new ND,MD=Ep(()=>{const{t:e}=Tu(),t=W.service==="bing"?kN:XN;return x.jsxs("div",{className:`flex items-center px-2.5 py-2 ${Y.background.toolbar} border-b ${Y.border.divider} shrink-0 min-h-11.5`,children:[x.jsxs("div",{className:"flex-1 flex items-center gap-1.5",children:[x.jsxs(gx,{value:W.service,onValueChange:n=>W.handleServiceChange(n),children:[x.jsxs(mx,{className:`inline-flex items-center gap-1 px-2 py-1 text-[12px] font-medium rounded-md border bg-transparent ${Y.select.trigger} ${Y.border.divider} transition-colors duration-150 cursor-pointer outline-none focus:outline-none`,children:[x.jsx(yx,{}),x.jsx(bx,{className:"ml-auto shrink-0",children:x.jsx(C_,{className:`w-3 h-3 ${Y.select.chevron}`})})]}),x.jsx(Sx,{children:x.jsx(_x,{className:`overflow-hidden rounded-xl border ${Y.select.content} shadow-[0_8px_24px_rgba(0,0,0,0.1),0_2px_6px_rgba(0,0,0,0.06)] dark:shadow-[0_8px_24px_rgba(0,0,0,0.5)] z-50`,position:"popper",sideOffset:4,children:x.jsx(xx,{className:"p-1",children:W.availableServices.map(n=>x.jsxs(Ex,{value:n.value,className:`relative flex items-center px-2 py-1.25 pl-6.5 text-[12px] rounded-md cursor-pointer outline-none ${Y.select.item} data-[state=checked]:font-semibold ${Y.select.itemChecked} transition-colors duration-75`,children:[x.jsx(Ax,{className:`absolute left-2 flex items-center ${Y.select.itemIndicator}`,children:x.jsx(nd,{className:"w-3 h-3"})}),x.jsx(Ox,{children:n.label})]},n.value))})})})]}),x.jsxs(Qg,{children:[x.jsx(Zg,{asChild:!0,children:x.jsx("button",{onClick:()=>W.handlePaste(),className:`flex items-center justify-center w-7 h-7 rounded-md border-none bg-transparent transition-colors duration-150 shrink-0 cursor-pointer ${Y.button.icon.default} ${Y.button.icon.hover}`,children:x.jsx(D2,{className:"w-3.5 h-3.5"})})}),x.jsx(Fg,{children:x.jsxs(Jg,{className:`px-2 py-1 text-[11px] font-medium rounded-md ${Y.tooltip.content} shadow-md`,sideOffset:5,children:[e("paste"),x.jsx(Ig,{className:Y.tooltip.arrow})]})})]})]}),x.jsxs("div",{className:"flex items-center gap-0.5",children:[x.jsx(Cm,{value:W.sourceLang,onValueChange:n=>W.setSourceLang(n),langs:t}),x.jsxs(Qg,{children:[x.jsx(Zg,{asChild:!0,children:x.jsx("button",{onClick:()=>W.handleSwapLanguages(),disabled:!W.canSwap,className:_o("group flex items-center justify-center w-7 h-7 rounded-md border-none bg-transparent transition-colors duration-150 shrink-0 cursor-pointer",W.canSwap?`${Y.button.icon.default} ${Y.button.icon.hover}`:`${Y.button.icon.disabled} cursor-not-allowed`),children:x.jsx(C2,{className:"w-3.5 h-3.5 transition-transform duration-300 ease-[cubic-bezier(0.34,1.4,0.64,1)] group-enabled:group-hover:rotate-180"})})}),x.jsx(Fg,{children:x.jsxs(Jg,{className:`px-2 py-1 text-[11px] font-medium rounded-md ${Y.tooltip.content} shadow-md`,sideOffset:5,children:[e("swapLanguages"),x.jsx(Ig,{className:Y.tooltip.arrow})]})})]}),x.jsx(Cm,{value:W.targetLang,onValueChange:n=>W.setTargetLang(n),langs:t,excludeAuto:!0})]}),x.jsxs("div",{className:"flex-1 flex items-center justify-end gap-1.5",children:[x.jsxs("button",{onClick:()=>W.handleCopy(),disabled:!W.canCopy,className:_o("flex items-center gap-1 px-2.5 py-1 text-[11.5px] font-medium rounded border transition-all duration-150 cursor-pointer bg-transparent",W.canCopy?W.copied?Y.button.copy.copied:`${Y.button.outlined.default} ${Y.button.outlined.hover}`:`${Y.button.outlined.disabled} cursor-not-allowed`),children:[W.copied?x.jsx(nd,{className:"w-3 h-3"}):x.jsx(j2,{className:"w-3 h-3"}),W.copied?e("copied"):e("copy")]}),x.jsx("button",{onClick:()=>W.handleClear(),disabled:!W.canClear,className:_o("px-2.5 py-1 text-[11.5px] font-medium rounded border transition-colors duration-150 cursor-pointer bg-transparent",W.canClear?`${Y.button.outlined.default} ${Y.button.outlined.hover}`:`${Y.button.outlined.disabled} cursor-not-allowed`),children:e("clear")}),x.jsx("button",{onClick:()=>W.handleTranslate(),disabled:!W.canTranslate,className:_o("px-3 h-[26px] text-[11.5px] font-semibold rounded border-none transition-all duration-150 min-w-13 flex items-center justify-center gap-1 cursor-pointer",W.canTranslate?`${Y.button.primary.default} ${Y.button.primary.hover}`:`${Y.button.primary.disabled} cursor-not-allowed`),children:W.isTranslating?x.jsx(Cx,{}):e("translate")})]})]})}),DD=Ep(()=>{const{t:e}=Tu();return x.jsxs("div",{className:"grid grid-cols-2 grid-rows-1 flex-1 min-h-0",children:[x.jsx("div",{className:`flex flex-col ${Y.background.sourcePanel} border-r ${Y.border.divider}`,children:x.jsx("textarea",{value:W.sourceText,onChange:t=>W.setSourceText(t.target.value),placeholder:e("sourcePlaceholder"),className:`flex-1 w-full px-4 py-3.5 text-[13px] leading-[1.75] resize-none outline-none border-none bg-transparent ${Y.text.primary} ${Y.text.placeholder}`})}),x.jsx("div",{className:`flex flex-col min-h-0 ${Y.background.targetPanel}`,children:x.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto px-4 py-3.5",children:W.isTranslating?x.jsxs("div",{className:`flex items-center gap-2 ${Y.text.translating} text-[12.5px]`,children:[x.jsx(Cx,{}),x.jsx("span",{children:e("translating")})]}):W.translatedText?x.jsx("p",{className:`animate-fade-up text-[13px] leading-[1.75] whitespace-pre-wrap ${Y.text.primary}`,children:W.translatedText}):x.jsx("p",{className:`text-[13px] italic ${Y.text.muted}`,children:e("targetPlaceholder")})})})]})}),LD=Ep(()=>{const{t:e}=Tu();return x.jsx(g2,{duration:4e3,children:x.jsxs(JC,{delayDuration:300,children:[x.jsxs("div",{className:`h-screen flex flex-col ${Y.background.app} overflow-hidden antialiased`,children:[x.jsx(MD,{}),x.jsx(DD,{})]}),x.jsxs(y2,{open:W.toastOpen,onOpenChange:t=>W.setToastOpen(t),className:`${Y.toast.root} data-[state=open]:animate-fade-up data-[state=closed]:opacity-0 transition-opacity`,children:[x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx(b2,{className:Y.toast.title,children:e("translateError")}),x.jsx(S2,{className:Y.toast.description,children:W.toastMsg})]}),x.jsx(_2,{className:Y.toast.close,children:x.jsx(U2,{className:"w-3.5 h-3.5"})})]}),x.jsx(m2,{className:Y.toast.viewport})]})})});function jD(){const e=document.getElementById("app");e&&jO.createRoot(e).render(x.jsx(LD,{}))}(async function(){const[e]=await Promise.all([tinker.getLanguage(),W.init()]);Ve.changeLanguage(e),jD()})();
|
package/dist/renderer/index.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<script type="module" crossorigin src="./assets/app-
|
|
7
|
-
<link rel="stylesheet" crossorigin href="./assets/app-
|
|
6
|
+
<script type="module" crossorigin src="./assets/app-fx9Wr6bU.js"></script>
|
|
7
|
+
<link rel="stylesheet" crossorigin href="./assets/app-CMGm-W3a.css">
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<div id="app"></div>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-600:oklch(57.7% .245 27.325);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-950:oklch(26.2% .051 172.552);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-100:oklch(97% .001 106.424);--color-stone-200:oklch(92.3% .003 48.717);--color-stone-300:oklch(86.9% .005 56.366);--color-stone-400:oklch(70.9% .01 56.259);--color-stone-500:oklch(55.3% .013 58.071);--color-stone-600:oklch(44.4% .011 73.639);--color-stone-700:oklch(37.4% .01 67.558);--color-stone-800:oklch(26.8% .007 34.298);--color-stone-900:oklch(21.6% .006 56.043);--color-stone-950:oklch(14.7% .004 49.25);--color-white:#fff;--spacing:.25rem;--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.end{inset-inline-end:var(--spacing)}.right-4{right:calc(var(--spacing) * 4)}.bottom-4{bottom:calc(var(--spacing) * 4)}.left-2{left:calc(var(--spacing) * 2)}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.ml-auto{margin-left:auto}.flex{display:flex}.grid{display:grid}.inline-flex{display:inline-flex}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-7{height:calc(var(--spacing) * 7)}.h-\[3\.5px\]{height:3.5px}.h-\[26px\]{height:26px}.h-screen{height:100vh}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-11\.5{min-height:calc(var(--spacing) * 11.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-7{width:calc(var(--spacing) * 7)}.w-22{width:calc(var(--spacing) * 22)}.w-72{width:calc(var(--spacing) * 72)}.w-\[3\.5px\]{width:3.5px}.w-full{width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-13{min-width:calc(var(--spacing) * 13)}.min-w-32\.5{min-width:calc(var(--spacing) * 32.5)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-dot-pulse{animation:1.1s ease-in-out infinite dotPulse}.animate-dot-pulse-2{animation:1.1s ease-in-out .18s infinite dotPulse}.animate-dot-pulse-3{animation:1.1s ease-in-out .36s infinite dotPulse}.animate-fade-up{animation:.22s ease-out fadeUp}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-0\.75{gap:calc(var(--spacing) * .75)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-emerald-400{border-color:var(--color-emerald-400)}.border-stone-100{border-color:var(--color-stone-100)}.border-stone-200{border-color:var(--color-stone-200)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-current{background-color:currentColor}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-stone-50{background-color:var(--color-stone-50)}.bg-stone-100{background-color:var(--color-stone-100)}.bg-stone-900{background-color:var(--color-stone-900)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.fill-stone-900{fill:var(--color-stone-900)}.p-1{padding:calc(var(--spacing) * 1)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.25{padding-block:calc(var(--spacing) * 1.25)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.pl-6\.5{padding-left:calc(var(--spacing) * 6.5)}.text-\[11\.5px\]{font-size:11.5px}.text-\[11px\]{font-size:11px}.text-\[12\.5px\]{font-size:12.5px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.leading-\[1\.75\]{--tw-leading:1.75;line-height:1.75}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-blue-500{color:var(--color-blue-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-red-600{color:var(--color-red-600)}.text-stone-300{color:var(--color-stone-300)}.text-stone-400{color:var(--color-stone-400)}.text-stone-500{color:var(--color-stone-500)}.text-stone-700{color:var(--color-stone-700)}.text-stone-900{color:var(--color-stone-900)}.text-white{color:var(--color-white)}.italic{font-style:italic}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-stone-300::placeholder{color:var(--color-stone-300)}.shadow-\[0_8px_24px_rgba\(0\,0\,0\,0\.1\)\,0_2px_6px_rgba\(0\,0\,0\,0\.06\)\]{--tw-shadow:0 8px 24px var(--tw-shadow-color,#0000001a), 0 2px 6px var(--tw-shadow-color,#0000000f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-\[cubic-bezier\(0\.34\,1\.4\,0\.64\,1\)\]{--tw-ease:cubic-bezier(.34,1.4,.64,1);transition-timing-function:cubic-bezier(.34,1.4,.64,1)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}@media (hover:hover){.group-enabled\:group-hover\:rotate-180:is(:where(.group):enabled *):is(:where(.group):hover *){rotate:180deg}.hover\:-translate-y-px:hover{--tw-translate-y:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-stone-100:hover{background-color:var(--color-stone-100)}.hover\:text-stone-600:hover{color:var(--color-stone-600)}.hover\:text-stone-700:hover{color:var(--color-stone-700)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\:translate-y-0:active{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-highlighted\:bg-stone-100[data-highlighted]{background-color:var(--color-stone-100)}.data-\[state\=checked\]\:font-semibold[data-state=checked]{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.data-\[state\=checked\]\:text-blue-600[data-state=checked]{color:var(--color-blue-600)}.data-\[state\=closed\]\:opacity-0[data-state=closed]{opacity:0}.data-\[state\=open\]\:animate-fade-up[data-state=open]{animation:.22s ease-out fadeUp}@media (prefers-color-scheme:dark){.dark\:border-emerald-700{border-color:var(--color-emerald-700)}.dark\:border-stone-700{border-color:var(--color-stone-700)}.dark\:bg-blue-600{background-color:var(--color-blue-600)}.dark\:bg-emerald-950\/30{background-color:#002c224d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-emerald-950\/30{background-color:color-mix(in oklab,var(--color-emerald-950) 30%,transparent)}}.dark\:bg-stone-100{background-color:var(--color-stone-100)}.dark\:bg-stone-800{background-color:var(--color-stone-800)}.dark\:bg-stone-900{background-color:var(--color-stone-900)}.dark\:bg-stone-950{background-color:var(--color-stone-950)}.dark\:fill-stone-100{fill:var(--color-stone-100)}.dark\:text-blue-400{color:var(--color-blue-400)}.dark\:text-emerald-400{color:var(--color-emerald-400)}.dark\:text-red-400{color:var(--color-red-400)}.dark\:text-stone-100{color:var(--color-stone-100)}.dark\:text-stone-300{color:var(--color-stone-300)}.dark\:text-stone-400{color:var(--color-stone-400)}.dark\:text-stone-500{color:var(--color-stone-500)}.dark\:text-stone-600{color:var(--color-stone-600)}.dark\:text-stone-900{color:var(--color-stone-900)}.dark\:placeholder-stone-600::placeholder{color:var(--color-stone-600)}.dark\:shadow-\[0_8px_24px_rgba\(0\,0\,0\,0\.5\)\]{--tw-shadow:0 8px 24px var(--tw-shadow-color,#00000080);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media (hover:hover){.dark\:hover\:bg-blue-500:hover{background-color:var(--color-blue-500)}.dark\:hover\:bg-stone-800:hover{background-color:var(--color-stone-800)}.dark\:hover\:text-stone-200:hover{color:var(--color-stone-200)}.dark\:hover\:text-stone-300:hover{color:var(--color-stone-300)}}.dark\:data-highlighted\:bg-stone-700[data-highlighted]{background-color:var(--color-stone-700)}.dark\:data-\[state\=checked\]\:text-blue-400[data-state=checked]{color:var(--color-blue-400)}}}html.dark{color-scheme:dark}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#d6d3d1;border-radius:2px}@media (prefers-color-scheme:dark){::-webkit-scrollbar-thumb{background:#57534d}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes fadeUp{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes dotPulse{0%,60%,to{opacity:.25;transform:scale(.75)}30%{opacity:1;transform:scale(1)}}
|