From 512b8b9dca4b420eb7558b9f6e1638fcbb388cf3 Mon Sep 17 00:00:00 2001 From: ember <1279347317@qq.com> Date: Mon, 5 Jan 2026 20:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/css/114.3182d1e0.css | 1 + dist/css/494.9bc92313.css | 1 - dist/css/app.7726494a.css | 3 + dist/css/app.7ae8d8d9.css | 3 - dist/index.html | 2 +- dist/js/114.1fcce5ed.js | 54 +++++++++++++++ dist/js/{150.134ee868.js => 150.49b65dd0.js} | 2 +- dist/js/{205.b608513d.js => 205.5e1a6eef.js} | 2 +- dist/js/{211.b427f4b2.js => 211.c39f2105.js} | 2 +- dist/js/{387.dd6c4a86.js => 387.2c1359c2.js} | 2 +- dist/js/{410.55f960e5.js => 410.5d08c1a8.js} | 2 +- dist/js/{416.c2b7170c.js => 416.9258341d.js} | 2 +- dist/js/{431.6f57c0d5.js => 431.ce56f232.js} | 2 +- dist/js/{493.5278def3.js => 493.00994683.js} | 2 +- dist/js/494.ac68ad86.js | 54 --------------- dist/js/{536.4906264a.js => 536.2cafa1ee.js} | 2 +- dist/js/{62.5c839540.js => 62.97b91111.js} | 2 +- dist/js/{67.2e38ec60.js => 67.c5181ab8.js} | 2 +- dist/js/{705.23be038b.js => 705.83efab9f.js} | 2 +- dist/js/{765.64a424e3.js => 765.fbd42649.js} | 2 +- dist/js/{774.b8ef2e65.js => 774.80696cdb.js} | 2 +- dist/js/{913.0251f0e5.js => 913.57fbc7fd.js} | 2 +- dist/js/{938.c5d8dd36.js => 938.77996131.js} | 2 +- dist/js/{986.23f62e7e.js => 986.ef9ba720.js} | 2 +- .../{about.204a629c.js => about.e8da17fa.js} | 2 +- dist/js/app.48d7089e.js | 2 + dist/js/app.f8c7294c.js | 2 - ....4c3e3191.js => chunk-vendors.47c2d766.js} | 2 +- src/views/HomeView.vue | 68 ++++++++++++++++--- src/views/WordDetailView.vue | 24 ++++--- 30 files changed, 153 insertions(+), 99 deletions(-) create mode 100644 dist/css/114.3182d1e0.css delete mode 100644 dist/css/494.9bc92313.css create mode 100644 dist/css/app.7726494a.css delete mode 100644 dist/css/app.7ae8d8d9.css create mode 100644 dist/js/114.1fcce5ed.js rename dist/js/{150.134ee868.js => 150.49b65dd0.js} (99%) rename dist/js/{205.b608513d.js => 205.5e1a6eef.js} (99%) rename dist/js/{211.b427f4b2.js => 211.c39f2105.js} (99%) rename dist/js/{387.dd6c4a86.js => 387.2c1359c2.js} (99%) rename dist/js/{410.55f960e5.js => 410.5d08c1a8.js} (99%) rename dist/js/{416.c2b7170c.js => 416.9258341d.js} (99%) rename dist/js/{431.6f57c0d5.js => 431.ce56f232.js} (99%) rename dist/js/{493.5278def3.js => 493.00994683.js} (99%) delete mode 100644 dist/js/494.ac68ad86.js rename dist/js/{536.4906264a.js => 536.2cafa1ee.js} (99%) rename dist/js/{62.5c839540.js => 62.97b91111.js} (99%) rename dist/js/{67.2e38ec60.js => 67.c5181ab8.js} (99%) rename dist/js/{705.23be038b.js => 705.83efab9f.js} (99%) rename dist/js/{765.64a424e3.js => 765.fbd42649.js} (99%) rename dist/js/{774.b8ef2e65.js => 774.80696cdb.js} (99%) rename dist/js/{913.0251f0e5.js => 913.57fbc7fd.js} (99%) rename dist/js/{938.c5d8dd36.js => 938.77996131.js} (99%) rename dist/js/{986.23f62e7e.js => 986.ef9ba720.js} (99%) rename dist/js/{about.204a629c.js => about.e8da17fa.js} (99%) create mode 100644 dist/js/app.48d7089e.js delete mode 100644 dist/js/app.f8c7294c.js rename dist/js/{chunk-vendors.4c3e3191.js => chunk-vendors.47c2d766.js} (99%) diff --git a/dist/css/114.3182d1e0.css b/dist/css/114.3182d1e0.css new file mode 100644 index 0000000..e5ca8e6 --- /dev/null +++ b/dist/css/114.3182d1e0.css @@ -0,0 +1 @@ +.slide-left-enter-active[data-v-442f11bc],.slide-left-leave-active[data-v-442f11bc],.slide-right-enter-active[data-v-442f11bc],.slide-right-leave-active[data-v-442f11bc]{transition:all .3s ease}.slide-left-enter-from[data-v-442f11bc]{opacity:0;transform:translateX(20px)}.slide-left-leave-to[data-v-442f11bc],.slide-right-enter-from[data-v-442f11bc]{opacity:0;transform:translateX(-20px)}.slide-right-leave-to[data-v-442f11bc]{opacity:0;transform:translateX(20px)}.markdown-body strong[data-v-442f11bc]{font-weight:700;color:#4f46e5}.dark .markdown-body strong[data-v-442f11bc]{color:#818cf8} \ No newline at end of file diff --git a/dist/css/494.9bc92313.css b/dist/css/494.9bc92313.css deleted file mode 100644 index e9609a1..0000000 --- a/dist/css/494.9bc92313.css +++ /dev/null @@ -1 +0,0 @@ -.slide-left-enter-active[data-v-7f21c43e],.slide-left-leave-active[data-v-7f21c43e],.slide-right-enter-active[data-v-7f21c43e],.slide-right-leave-active[data-v-7f21c43e]{transition:all .3s ease}.slide-left-enter-from[data-v-7f21c43e]{opacity:0;transform:translateX(20px)}.slide-left-leave-to[data-v-7f21c43e],.slide-right-enter-from[data-v-7f21c43e]{opacity:0;transform:translateX(-20px)}.slide-right-leave-to[data-v-7f21c43e]{opacity:0;transform:translateX(20px)}.markdown-body strong[data-v-7f21c43e]{font-weight:700;color:#4f46e5}.dark .markdown-body strong[data-v-7f21c43e]{color:#818cf8} \ No newline at end of file diff --git a/dist/css/app.7726494a.css b/dist/css/app.7726494a.css new file mode 100644 index 0000000..e511403 --- /dev/null +++ b/dist/css/app.7726494a.css @@ -0,0 +1,3 @@ +@import url(https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap);body{font-family:Inter,Roboto,Helvetica Neue,Arial,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Noto Sans SC,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#app,.n-config-provider{font-family:inherit}.chart[data-v-8ed4da6a]{height:100%;width:100%} + +/*! tailwindcss v4.1.18 | 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)))){*,::backdrop,:after,:before{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking: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-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:host,:root{--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-50:oklch(97.1% .013 17.38);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-900:oklch(39.6% .141 25.723);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-900:oklch(42.1% .095 57.708);--color-green-50:oklch(98.2% .018 155.826);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-900:oklch(39.3% .095 152.535);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-900:oklch(37.8% .077 168.94);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--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-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-900:oklch(35.9% .144 278.697);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-900:oklch(38.1% .176 304.987);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-600:oklch(59.2% .249 .584);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:1.33333;--text-sm:.875rem;--text-sm--line-height:1.42857;--text-base:1rem;--text-base--line-height:1.5;--text-lg:1.125rem;--text-lg--line-height:1.55556;--text-xl:1.25rem;--text-xl--line-height:1.4;--text-2xl:1.5rem;--text-2xl--line-height:1.33333;--text-3xl:1.875rem;--text-3xl--line-height:1.2;--text-4xl:2.25rem;--text-4xl--line-height:1.11111;--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--font-weight-light:300;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wider:.05em;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--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{*,::backdrop,:after,:before{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}:host,html{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-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,pre,samp{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}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,optgroup,select,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}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::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,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-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,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.-bottom-1{bottom:calc(var(--spacing)*-1)}.left-0{left:calc(var(--spacing)*0)}.z-10{z-index:10}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-12{margin-top:calc(var(--spacing)*12)}.mt-20{margin-top:calc(var(--spacing)*20)}.mt-auto{margin-top:auto}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.mb-12{margin-bottom:calc(var(--spacing)*12)}.mb-16{margin-bottom:calc(var(--spacing)*16)}.mb-20{margin-bottom:calc(var(--spacing)*20)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.line-clamp-1{-webkit-line-clamp:1}.line-clamp-1,.line-clamp-2{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.aspect-square{aspect-ratio:1}.h-0\.5{height:calc(var(--spacing)*.5)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-16{height:calc(var(--spacing)*16)}.h-24{height:calc(var(--spacing)*24)}.h-\[60vh\]{height:60vh}.h-\[400px\]{height:400px}.h-full{height:100%}.h-screen{height:100vh}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\[2\.5rem\]{min-height:2.5rem}.min-h-\[34px\]{min-height:34px}.min-h-\[80vh\]{min-height:80vh}.min-h-\[400px\]{min-height:400px}.min-h-screen{min-height:100vh}.w-0{width:calc(var(--spacing)*0)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-24{width:calc(var(--spacing)*24)}.w-48{width:calc(var(--spacing)*48)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\[2rem\]{min-width:2rem}.min-w-\[200px\]{min-width:200px}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.gap-12{gap:calc(var(--spacing)*12)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing)*1*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing)*1*(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing)*2*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing)*2*(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing)*3*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing)*3*(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing)*4*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing)*4*(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing)*6*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing)*6*(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing)*8*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing)*8*(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}:where(.divide-gray-100>:not(:last-child)){border-color:var(--color-gray-100)}.truncate{text-overflow:ellipsis;white-space:nowrap}.overflow-hidden,.truncate{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-full{border-radius:3.40282e+38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-amber-200{border-color:var(--color-amber-200)}.border-blue-100{border-color:var(--color-blue-100)}.border-gray-50{border-color:var(--color-gray-50)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-green-500{border-color:var(--color-green-500)}.border-indigo-600{border-color:var(--color-indigo-600)}.border-yellow-100{border-color:var(--color-yellow-100)}.border-yellow-500{border-color:var(--color-yellow-500)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-500{background-color:var(--color-green-500)}.bg-indigo-50{background-color:var(--color-indigo-50)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-purple-50{background-color:var(--color-purple-50)}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-50\/50{background-color:#fefce880}@supports (color:color-mix(in lab,red,red)){.bg-yellow-50\/50{background-color:color-mix(in oklab,var(--color-yellow-50)50%,transparent)}}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-indigo-600{--tw-gradient-from:var(--color-indigo-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-purple-600{--tw-gradient-via:var(--color-purple-600);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-pink-600{--tw-gradient-to:var(--color-pink-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-8{padding-block:calc(var(--spacing)*8)}.py-12{padding-block:calc(var(--spacing)*12)}.py-16{padding-block:calc(var(--spacing)*16)}.py-20{padding-block:calc(var(--spacing)*20)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pr-3{padding-right:calc(var(--spacing)*3)}.pb-6{padding-bottom:calc(var(--spacing)*6)}.pb-8{padding-bottom:calc(var(--spacing)*8)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-all{word-break:break-all}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-emerald-600{color:var(--color-emerald-600)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-indigo-600{color:var(--color-indigo-600)}.text-purple-500{color:var(--color-purple-500)}.text-purple-600{color:var(--color-purple-600)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.text-yellow-500{color:var(--color-yellow-500)}.text-yellow-600{color:var(--color-yellow-600)}.uppercase{text-transform:uppercase}.decoration-2{text-decoration-thickness:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a)}.shadow-lg,.shadow-sm{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(4px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-purple-100{--tw-ring-color:var(--color-purple-100)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.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-shadow{transition-property:box-shadow;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-300{--tw-duration:.3s;transition-duration:.3s}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}@media (hover:hover){.group-hover\:w-full:is(:where(.group):hover *){width:100%}.group-hover\:translate-x-1:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}.group-hover\/btn\:text-red-500:is(:where(.group\/btn):hover *){color:var(--color-red-500)}}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}.last\:pb-0:last-child{padding-bottom:calc(var(--spacing)*0)}@media (hover:hover){.hover\:-translate-y-1:hover{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:border-blue-200:hover{border-color:var(--color-blue-200)}.hover\:border-indigo-500:hover{border-color:var(--color-indigo-500)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\:text-indigo-700:hover{color:var(--color-indigo-700)}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a)}.hover\:shadow-lg:hover,.hover\:shadow-md:hover{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a)}.hover\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px 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)}}@media (min-width:40rem){.sm\:block{display:block}.sm\:w-auto{width:auto}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:px-6{padding-inline:calc(var(--spacing)*6)}.sm\:opacity-0{opacity:0}}@media (min-width:48rem){.md\:block{display:block}.md\:hidden{display:none}.md\:h-\[500px\]{height:500px}.md\:w-auto{width:auto}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:gap-4{gap:calc(var(--spacing)*4)}.md\:p-6{padding:calc(var(--spacing)*6)}.md\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.md\:text-7xl{font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.md\:opacity-0{opacity:0}@media (hover:hover){.md\:group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}}@media (min-width:64rem){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:px-8{padding-inline:calc(var(--spacing)*8)}}:where(.dark\:divide-gray-800:where(.dark,.dark *)>:not(:last-child)){border-color:var(--color-gray-800)}.dark\:border-amber-800\/50:where(.dark,.dark *){border-color:#953d0080}@supports (color:color-mix(in lab,red,red)){.dark\:border-amber-800\/50:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-amber-800)50%,transparent)}}.dark\:border-blue-900\/30:where(.dark,.dark *){border-color:#1c398e4d}@supports (color:color-mix(in lab,red,red)){.dark\:border-blue-900\/30:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\:border-gray-600:where(.dark,.dark *){border-color:var(--color-gray-600)}.dark\:border-gray-700:where(.dark,.dark *){border-color:var(--color-gray-700)}.dark\:border-gray-700\/50:where(.dark,.dark *){border-color:#36415380}@supports (color:color-mix(in lab,red,red)){.dark\:border-gray-700\/50:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-gray-700)50%,transparent)}}.dark\:border-gray-800:where(.dark,.dark *){border-color:var(--color-gray-800)}.dark\:border-yellow-900\/30:where(.dark,.dark *){border-color:#733e0a4d}@supports (color:color-mix(in lab,red,red)){.dark\:border-yellow-900\/30:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-yellow-900)30%,transparent)}}.dark\:bg-amber-900\/20:where(.dark,.dark *){background-color:#7b330633}@supports (color:color-mix(in lab,red,red)){.dark\:bg-amber-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-amber-900)20%,transparent)}}.dark\:bg-amber-900\/30:where(.dark,.dark *){background-color:#7b33064d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-amber-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-amber-900)30%,transparent)}}.dark\:bg-black\/10:where(.dark,.dark *){background-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.dark\:bg-black\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-black)10%,transparent)}}.dark\:bg-blue-800:where(.dark,.dark *){background-color:var(--color-blue-800)}.dark\:bg-blue-900\/10:where(.dark,.dark *){background-color:#1c398e1a}@supports (color:color-mix(in lab,red,red)){.dark\:bg-blue-900\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-900)10%,transparent)}}.dark\:bg-blue-900\/20:where(.dark,.dark *){background-color:#1c398e33}@supports (color:color-mix(in lab,red,red)){.dark\:bg-blue-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-900)20%,transparent)}}.dark\:bg-blue-900\/30:where(.dark,.dark *){background-color:#1c398e4d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-blue-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\:bg-emerald-900\/30:where(.dark,.dark *){background-color:#004e3b4d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-emerald-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-emerald-900)30%,transparent)}}.dark\:bg-gray-600:where(.dark,.dark *){background-color:var(--color-gray-600)}.dark\:bg-gray-700:where(.dark,.dark *){background-color:var(--color-gray-700)}.dark\:bg-gray-700\/50:where(.dark,.dark *){background-color:#36415380}@supports (color:color-mix(in lab,red,red)){.dark\:bg-gray-700\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-700)50%,transparent)}}.dark\:bg-gray-800:where(.dark,.dark *){background-color:var(--color-gray-800)}.dark\:bg-gray-800\/50:where(.dark,.dark *){background-color:#1e293980}@supports (color:color-mix(in lab,red,red)){.dark\:bg-gray-800\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-800)50%,transparent)}}.dark\:bg-gray-900:where(.dark,.dark *){background-color:var(--color-gray-900)}.dark\:bg-gray-950:where(.dark,.dark *){background-color:var(--color-gray-950)}.dark\:bg-green-900\/20:where(.dark,.dark *){background-color:#0d542b33}@supports (color:color-mix(in lab,red,red)){.dark\:bg-green-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-green-900)20%,transparent)}}.dark\:bg-indigo-400:where(.dark,.dark *){background-color:var(--color-indigo-400)}.dark\:bg-indigo-900\/20:where(.dark,.dark *){background-color:#312c8533}@supports (color:color-mix(in lab,red,red)){.dark\:bg-indigo-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-indigo-900)20%,transparent)}}.dark\:bg-purple-900\/20:where(.dark,.dark *){background-color:#59168b33}@supports (color:color-mix(in lab,red,red)){.dark\:bg-purple-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-purple-900)20%,transparent)}}.dark\:bg-yellow-900\/5:where(.dark,.dark *){background-color:#733e0a0d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-yellow-900\/5:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-yellow-900)5%,transparent)}}.dark\:bg-yellow-900\/10:where(.dark,.dark *){background-color:#733e0a1a}@supports (color:color-mix(in lab,red,red)){.dark\:bg-yellow-900\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-yellow-900)10%,transparent)}}.dark\:bg-yellow-900\/20:where(.dark,.dark *){background-color:#733e0a33}@supports (color:color-mix(in lab,red,red)){.dark\:bg-yellow-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-yellow-900)20%,transparent)}}.dark\:from-indigo-400:where(.dark,.dark *){--tw-gradient-from:var(--color-indigo-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:via-purple-400:where(.dark,.dark *){--tw-gradient-via:var(--color-purple-400);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.dark\:to-pink-400:where(.dark,.dark *){--tw-gradient-to:var(--color-pink-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:text-amber-300:where(.dark,.dark *){color:var(--color-amber-300)}.dark\:text-amber-400:where(.dark,.dark *){color:var(--color-amber-400)}.dark\:text-blue-300:where(.dark,.dark *){color:var(--color-blue-300)}.dark\:text-blue-400:where(.dark,.dark *){color:var(--color-blue-400)}.dark\:text-emerald-400:where(.dark,.dark *){color:var(--color-emerald-400)}.dark\:text-gray-100:where(.dark,.dark *){color:var(--color-gray-100)}.dark\:text-gray-200:where(.dark,.dark *){color:var(--color-gray-200)}.dark\:text-gray-300:where(.dark,.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\:text-gray-500:where(.dark,.dark *){color:var(--color-gray-500)}.dark\:text-gray-600:where(.dark,.dark *){color:var(--color-gray-600)}.dark\:text-green-400:where(.dark,.dark *){color:var(--color-green-400)}.dark\:text-indigo-400:where(.dark,.dark *){color:var(--color-indigo-400)}.dark\:text-purple-400:where(.dark,.dark *){color:var(--color-purple-400)}.dark\:text-white:where(.dark,.dark *){color:var(--color-white)}.dark\:text-yellow-400:where(.dark,.dark *){color:var(--color-yellow-400)}.dark\:ring-purple-900\/20:where(.dark,.dark *){--tw-ring-color:#59168b33}@supports (color:color-mix(in lab,red,red)){.dark\:ring-purple-900\/20:where(.dark,.dark *){--tw-ring-color:color-mix(in oklab,var(--color-purple-900)20%,transparent)}}@media (hover:hover){.dark\:hover\:border-blue-800:where(.dark,.dark *):hover{border-color:var(--color-blue-800)}.dark\:hover\:bg-gray-800:where(.dark,.dark *):hover{background-color:var(--color-gray-800)}.dark\:hover\:bg-red-900\/20:where(.dark,.dark *):hover{background-color:#82181a33}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-red-900\/20:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-red-900)20%,transparent)}}.dark\:hover\:text-indigo-300:where(.dark,.dark *):hover{color:var(--color-indigo-300)}}}@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-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{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:"";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:"";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:"";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-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{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}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes pulse{50%{opacity:.5}} \ No newline at end of file diff --git a/dist/css/app.7ae8d8d9.css b/dist/css/app.7ae8d8d9.css deleted file mode 100644 index 91935f1..0000000 --- a/dist/css/app.7ae8d8d9.css +++ /dev/null @@ -1,3 +0,0 @@ -@import url(https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap);body{font-family:Inter,Roboto,Helvetica Neue,Arial,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Noto Sans SC,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#app,.n-config-provider{font-family:inherit}.chart[data-v-6c4b0b96]{height:100%;width:100%} - -/*! tailwindcss v4.1.18 | 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)))){*,::backdrop,:after,:before{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction: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-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:host,:root{--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-50:oklch(97.1% .013 17.38);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-900:oklch(39.6% .141 25.723);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-900:oklch(42.1% .095 57.708);--color-green-50:oklch(98.2% .018 155.826);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-900:oklch(39.3% .095 152.535);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-900:oklch(37.8% .077 168.94);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--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-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-900:oklch(35.9% .144 278.697);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-900:oklch(38.1% .176 304.987);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-600:oklch(59.2% .249 .584);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:1.33333;--text-sm:.875rem;--text-sm--line-height:1.42857;--text-base:1rem;--text-base--line-height:1.5;--text-lg:1.125rem;--text-lg--line-height:1.55556;--text-xl:1.25rem;--text-xl--line-height:1.4;--text-2xl:1.5rem;--text-2xl--line-height:1.33333;--text-3xl:1.875rem;--text-3xl--line-height:1.2;--text-4xl:2.25rem;--text-4xl--line-height:1.11111;--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--font-weight-light:300;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wider:.05em;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--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{*,::backdrop,:after,:before{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}:host,html{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-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,pre,samp{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}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,optgroup,select,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}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::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,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-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,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.-bottom-1{bottom:calc(var(--spacing)*-1)}.left-0{left:calc(var(--spacing)*0)}.isolate{isolation:isolate}.z-10{z-index:10}.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}}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-12{margin-top:calc(var(--spacing)*12)}.mt-20{margin-top:calc(var(--spacing)*20)}.mt-auto{margin-top:auto}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.mb-12{margin-bottom:calc(var(--spacing)*12)}.mb-16{margin-bottom:calc(var(--spacing)*16)}.mb-20{margin-bottom:calc(var(--spacing)*20)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.line-clamp-1{-webkit-line-clamp:1}.line-clamp-1,.line-clamp-2{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.table-cell{display:table-cell}.aspect-square{aspect-ratio:1}.h-0\.5{height:calc(var(--spacing)*.5)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-16{height:calc(var(--spacing)*16)}.h-24{height:calc(var(--spacing)*24)}.h-\[60vh\]{height:60vh}.h-\[400px\]{height:400px}.h-full{height:100%}.h-screen{height:100vh}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\[2\.5rem\]{min-height:2.5rem}.min-h-\[34px\]{min-height:34px}.min-h-\[80vh\]{min-height:80vh}.min-h-\[400px\]{min-height:400px}.min-h-screen{min-height:100vh}.w-0{width:calc(var(--spacing)*0)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-24{width:calc(var(--spacing)*24)}.w-48{width:calc(var(--spacing)*48)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\[2rem\]{min-width:2rem}.min-w-\[200px\]{min-width:200px}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.flex-grow{flex-grow:1}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.gap-12{gap:calc(var(--spacing)*12)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing)*1*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing)*1*(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing)*2*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing)*2*(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing)*3*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing)*3*(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing)*4*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing)*4*(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing)*6*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing)*6*(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing)*8*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing)*8*(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}:where(.divide-gray-100>:not(:last-child)){border-color:var(--color-gray-100)}.truncate{text-overflow:ellipsis;white-space:nowrap}.overflow-hidden,.truncate{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-full{border-radius:3.40282e+38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-amber-200{border-color:var(--color-amber-200)}.border-blue-100{border-color:var(--color-blue-100)}.border-gray-50{border-color:var(--color-gray-50)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-green-500{border-color:var(--color-green-500)}.border-indigo-600{border-color:var(--color-indigo-600)}.border-yellow-100{border-color:var(--color-yellow-100)}.border-yellow-500{border-color:var(--color-yellow-500)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-500{background-color:var(--color-green-500)}.bg-indigo-50{background-color:var(--color-indigo-50)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-purple-50{background-color:var(--color-purple-50)}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-50\/50{background-color:#fefce880}@supports (color:color-mix(in lab,red,red)){.bg-yellow-50\/50{background-color:color-mix(in oklab,var(--color-yellow-50)50%,transparent)}}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-indigo-600{--tw-gradient-from:var(--color-indigo-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-purple-600{--tw-gradient-via:var(--color-purple-600);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-pink-600{--tw-gradient-to:var(--color-pink-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-8{padding-block:calc(var(--spacing)*8)}.py-12{padding-block:calc(var(--spacing)*12)}.py-16{padding-block:calc(var(--spacing)*16)}.py-20{padding-block:calc(var(--spacing)*20)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pr-3{padding-right:calc(var(--spacing)*3)}.pb-6{padding-bottom:calc(var(--spacing)*6)}.pb-8{padding-bottom:calc(var(--spacing)*8)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-emerald-600{color:var(--color-emerald-600)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-indigo-600{color:var(--color-indigo-600)}.text-purple-500{color:var(--color-purple-500)}.text-purple-600{color:var(--color-purple-600)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.text-yellow-500{color:var(--color-yellow-500)}.text-yellow-600{color:var(--color-yellow-600)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.italic{font-style:italic}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.decoration-2{text-decoration-thickness:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)}.shadow,.shadow-lg{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)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)}.ring,.shadow-sm{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(4px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-purple-100{--tw-ring-color:var(--color-purple-100)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px)}.blur,.grayscale{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%)}.invert{--tw-invert:invert(100%)}.filter,.invert{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm))}.backdrop-blur-sm,.backdrop-filter{backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.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-shadow{transition-property:box-shadow;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-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}@media (hover:hover){.group-hover\:w-full:is(:where(.group):hover *){width:100%}.group-hover\:translate-x-1:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}.group-hover\/btn\:text-red-500:is(:where(.group\/btn):hover *){color:var(--color-red-500)}}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}.last\:pb-0:last-child{padding-bottom:calc(var(--spacing)*0)}@media (hover:hover){.hover\:-translate-y-1:hover{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:border-blue-200:hover{border-color:var(--color-blue-200)}.hover\:border-indigo-500:hover{border-color:var(--color-indigo-500)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\:text-indigo-700:hover{color:var(--color-indigo-700)}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a)}.hover\:shadow-lg:hover,.hover\:shadow-md:hover{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a)}.hover\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px 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)}}@media (min-width:40rem){.sm\:block{display:block}.sm\:w-auto{width:auto}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:px-6{padding-inline:calc(var(--spacing)*6)}.sm\:opacity-0{opacity:0}}@media (min-width:48rem){.md\:block{display:block}.md\:hidden{display:none}.md\:h-\[500px\]{height:500px}.md\:w-auto{width:auto}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:p-6{padding:calc(var(--spacing)*6)}.md\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.md\:text-7xl{font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.md\:opacity-0{opacity:0}@media (hover:hover){.md\:group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}}@media (min-width:64rem){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:px-8{padding-inline:calc(var(--spacing)*8)}}:where(.dark\:divide-gray-800:where(.dark,.dark *)>:not(:last-child)){border-color:var(--color-gray-800)}.dark\:border-amber-800\/50:where(.dark,.dark *){border-color:#953d0080}@supports (color:color-mix(in lab,red,red)){.dark\:border-amber-800\/50:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-amber-800)50%,transparent)}}.dark\:border-blue-900\/30:where(.dark,.dark *){border-color:#1c398e4d}@supports (color:color-mix(in lab,red,red)){.dark\:border-blue-900\/30:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\:border-gray-600:where(.dark,.dark *){border-color:var(--color-gray-600)}.dark\:border-gray-700:where(.dark,.dark *){border-color:var(--color-gray-700)}.dark\:border-gray-700\/50:where(.dark,.dark *){border-color:#36415380}@supports (color:color-mix(in lab,red,red)){.dark\:border-gray-700\/50:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-gray-700)50%,transparent)}}.dark\:border-gray-800:where(.dark,.dark *){border-color:var(--color-gray-800)}.dark\:border-yellow-900\/30:where(.dark,.dark *){border-color:#733e0a4d}@supports (color:color-mix(in lab,red,red)){.dark\:border-yellow-900\/30:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-yellow-900)30%,transparent)}}.dark\:bg-amber-900\/20:where(.dark,.dark *){background-color:#7b330633}@supports (color:color-mix(in lab,red,red)){.dark\:bg-amber-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-amber-900)20%,transparent)}}.dark\:bg-amber-900\/30:where(.dark,.dark *){background-color:#7b33064d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-amber-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-amber-900)30%,transparent)}}.dark\:bg-black\/10:where(.dark,.dark *){background-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.dark\:bg-black\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-black)10%,transparent)}}.dark\:bg-blue-800:where(.dark,.dark *){background-color:var(--color-blue-800)}.dark\:bg-blue-900\/10:where(.dark,.dark *){background-color:#1c398e1a}@supports (color:color-mix(in lab,red,red)){.dark\:bg-blue-900\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-900)10%,transparent)}}.dark\:bg-blue-900\/20:where(.dark,.dark *){background-color:#1c398e33}@supports (color:color-mix(in lab,red,red)){.dark\:bg-blue-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-900)20%,transparent)}}.dark\:bg-blue-900\/30:where(.dark,.dark *){background-color:#1c398e4d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-blue-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\:bg-emerald-900\/30:where(.dark,.dark *){background-color:#004e3b4d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-emerald-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-emerald-900)30%,transparent)}}.dark\:bg-gray-600:where(.dark,.dark *){background-color:var(--color-gray-600)}.dark\:bg-gray-700:where(.dark,.dark *){background-color:var(--color-gray-700)}.dark\:bg-gray-700\/50:where(.dark,.dark *){background-color:#36415380}@supports (color:color-mix(in lab,red,red)){.dark\:bg-gray-700\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-700)50%,transparent)}}.dark\:bg-gray-800:where(.dark,.dark *){background-color:var(--color-gray-800)}.dark\:bg-gray-800\/50:where(.dark,.dark *){background-color:#1e293980}@supports (color:color-mix(in lab,red,red)){.dark\:bg-gray-800\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-800)50%,transparent)}}.dark\:bg-gray-900:where(.dark,.dark *){background-color:var(--color-gray-900)}.dark\:bg-gray-950:where(.dark,.dark *){background-color:var(--color-gray-950)}.dark\:bg-green-900\/20:where(.dark,.dark *){background-color:#0d542b33}@supports (color:color-mix(in lab,red,red)){.dark\:bg-green-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-green-900)20%,transparent)}}.dark\:bg-indigo-400:where(.dark,.dark *){background-color:var(--color-indigo-400)}.dark\:bg-indigo-900\/20:where(.dark,.dark *){background-color:#312c8533}@supports (color:color-mix(in lab,red,red)){.dark\:bg-indigo-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-indigo-900)20%,transparent)}}.dark\:bg-purple-900\/20:where(.dark,.dark *){background-color:#59168b33}@supports (color:color-mix(in lab,red,red)){.dark\:bg-purple-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-purple-900)20%,transparent)}}.dark\:bg-yellow-900\/5:where(.dark,.dark *){background-color:#733e0a0d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-yellow-900\/5:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-yellow-900)5%,transparent)}}.dark\:bg-yellow-900\/10:where(.dark,.dark *){background-color:#733e0a1a}@supports (color:color-mix(in lab,red,red)){.dark\:bg-yellow-900\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-yellow-900)10%,transparent)}}.dark\:bg-yellow-900\/20:where(.dark,.dark *){background-color:#733e0a33}@supports (color:color-mix(in lab,red,red)){.dark\:bg-yellow-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-yellow-900)20%,transparent)}}.dark\:from-indigo-400:where(.dark,.dark *){--tw-gradient-from:var(--color-indigo-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:via-purple-400:where(.dark,.dark *){--tw-gradient-via:var(--color-purple-400);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.dark\:to-pink-400:where(.dark,.dark *){--tw-gradient-to:var(--color-pink-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:text-amber-300:where(.dark,.dark *){color:var(--color-amber-300)}.dark\:text-amber-400:where(.dark,.dark *){color:var(--color-amber-400)}.dark\:text-blue-300:where(.dark,.dark *){color:var(--color-blue-300)}.dark\:text-blue-400:where(.dark,.dark *){color:var(--color-blue-400)}.dark\:text-emerald-400:where(.dark,.dark *){color:var(--color-emerald-400)}.dark\:text-gray-100:where(.dark,.dark *){color:var(--color-gray-100)}.dark\:text-gray-200:where(.dark,.dark *){color:var(--color-gray-200)}.dark\:text-gray-300:where(.dark,.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\:text-gray-500:where(.dark,.dark *){color:var(--color-gray-500)}.dark\:text-gray-600:where(.dark,.dark *){color:var(--color-gray-600)}.dark\:text-green-400:where(.dark,.dark *){color:var(--color-green-400)}.dark\:text-indigo-400:where(.dark,.dark *){color:var(--color-indigo-400)}.dark\:text-purple-400:where(.dark,.dark *){color:var(--color-purple-400)}.dark\:text-white:where(.dark,.dark *){color:var(--color-white)}.dark\:text-yellow-400:where(.dark,.dark *){color:var(--color-yellow-400)}.dark\:ring-purple-900\/20:where(.dark,.dark *){--tw-ring-color:#59168b33}@supports (color:color-mix(in lab,red,red)){.dark\:ring-purple-900\/20:where(.dark,.dark *){--tw-ring-color:color-mix(in oklab,var(--color-purple-900)20%,transparent)}}@media (hover:hover){.dark\:hover\:border-blue-800:where(.dark,.dark *):hover{border-color:var(--color-blue-800)}.dark\:hover\:bg-gray-800:where(.dark,.dark *):hover{background-color:var(--color-gray-800)}.dark\:hover\:bg-red-900\/20:where(.dark,.dark *):hover{background-color:#82181a33}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-red-900\/20:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-red-900)20%,transparent)}}.dark\:hover\:text-indigo-300:where(.dark,.dark *):hover{color:var(--color-indigo-300)}}}@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-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{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:"";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:"";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:"";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-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@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}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes pulse{50%{opacity:.5}} \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index c5c7d1f..824ce30 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -Word Helper
\ No newline at end of file +Word Helper
\ No newline at end of file diff --git a/dist/js/114.1fcce5ed.js b/dist/js/114.1fcce5ed.js new file mode 100644 index 0000000..c9d67f7 --- /dev/null +++ b/dist/js/114.1fcce5ed.js @@ -0,0 +1,54 @@ +"use strict";(self["webpackChunkwordhelper"]=self["webpackChunkwordhelper"]||[]).push([[114],{9845:function(e,t,n){n.d(t,{A:function(){return h}});var i=n(56768),r=n(84279),a=(0,i.pM)({name:"Empty",render(){return(0,i.h)("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,i.h)("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),(0,i.h)("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),o=n(79882),l=n(88733),s=n(82813),d=n(25216),c=n(34350),v=n(52945),u=(0,c.cB)("empty","\n display: flex;\n flex-direction: column;\n align-items: center;\n font-size: var(--n-font-size);\n",[(0,c.cE)("icon","\n width: var(--n-icon-size);\n height: var(--n-icon-size);\n font-size: var(--n-icon-size);\n line-height: var(--n-icon-size);\n color: var(--n-icon-color);\n transition:\n color .3s var(--n-bezier);\n ",[(0,c.c)("+",[(0,c.cE)("description","\n margin-top: 8px;\n ")])]),(0,c.cE)("description","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n "),(0,c.cE)("extra","\n text-align: center;\n transition: color .3s var(--n-bezier);\n margin-top: 12px;\n color: var(--n-extra-text-color);\n ")]);const p=Object.assign(Object.assign({},o.A.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function});var h=(0,i.pM)({name:"Empty",props:p,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:r}=(0,l.Ay)(e),p=(0,o.A)("Empty","-empty",u,v.A,e,t),{localeRef:h}=(0,s.A)("Empty"),g=(0,i.EW)(()=>{var t,n,i;return null!==(t=e.description)&&void 0!==t?t:null===(i=null===(n=null===r||void 0===r?void 0:r.value)||void 0===n?void 0:n.Empty)||void 0===i?void 0:i.description}),f=(0,i.EW)(()=>{var e,t;return(null===(t=null===(e=null===r||void 0===r?void 0:r.value)||void 0===e?void 0:e.Empty)||void 0===t?void 0:t.renderIcon)||(()=>(0,i.h)(a,null))}),y=(0,i.EW)(()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:n},self:{[(0,c.cF)("iconSize",t)]:i,[(0,c.cF)("fontSize",t)]:r,textColor:a,iconColor:o,extraTextColor:l}}=p.value;return{"--n-icon-size":i,"--n-font-size":r,"--n-bezier":n,"--n-text-color":a,"--n-icon-color":o,"--n-extra-text-color":l}}),m=n?(0,d.R)("empty",(0,i.EW)(()=>{let t="";const{size:n}=e;return t+=n[0],t}),y,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:f,localizedDescription:(0,i.EW)(()=>g.value||h.value.description),cssVars:n?void 0:y,themeClass:null===m||void 0===m?void 0:m.themeClass,onRender:null===m||void 0===m?void 0:m.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return null===n||void 0===n||n(),(0,i.h)("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?(0,i.h)("div",{class:`${t}-empty__icon`},e.icon?e.icon():(0,i.h)(r.A,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?(0,i.h)("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?(0,i.h)("div",{class:`${t}-empty__extra`},e.extra()):null)}})},18495:function(e,t,n){n.d(t,{A:function(){return r}});var i=n(45525); +/** + * @license lucide-vue-next v0.562.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r=(0,i.A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},19629:function(e,t,n){n.d(t,{A:function(){return r}});var i=n(45525); +/** + * @license lucide-vue-next v0.562.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r=(0,i.A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},38307:function(e,t,n){n.d(t,{A:function(){return r}});var i=n(45525); +/** + * @license lucide-vue-next v0.562.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r=(0,i.A)("sticky-note",[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]])},55114:function(e,t,n){n.r(t),n.d(t,{default:function(){return pt}});n(44114),n(18111),n(61701);var i=n(56768),r=n(90144),a=n(24232),o=n(45130),l=n(98728),s=n(97387),d=n(45525); +/** + * @license lucide-vue-next v0.562.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */ +const c=(0,d.A)("book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);var v=n(35161); +/** + * @license lucide-vue-next v0.562.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */ +const u=(0,d.A)("list-plus",[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]]),p=(0,d.A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);var h=n(18495); +/** + * @license lucide-vue-next v0.562.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */ +const g=(0,d.A)("bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);var f=n(55200),y=n(7023),m=n(91733),x=n(29554); +/** + * @license lucide-vue-next v0.562.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */ +const b=(0,d.A)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);var k=n(38307),w=n(19629),_=n(54880),C=n(92720),R=n(59856),z=n(42517),A=n(68042),E=n(64498),L=n(71168),F=n(8508),P=n(93913),$=n(9845),j=n(79882),B=n(88733),W=n(38741),S=n(25216),M=n(77727),X=n(27355),T=n(34350),O=(0,T.c)([(0,T.cB)("list","\n --n-merged-border-color: var(--n-border-color);\n --n-merged-color: var(--n-color);\n --n-merged-color-hover: var(--n-color-hover);\n margin: 0;\n font-size: var(--n-font-size);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n padding: 0;\n list-style-type: none;\n color: var(--n-text-color);\n background-color: var(--n-merged-color);\n ",[(0,T.cM)("show-divider",[(0,T.cB)("list-item",[(0,T.c)("&:not(:last-child)",[(0,T.cE)("divider","\n background-color: var(--n-merged-border-color);\n ")])])]),(0,T.cM)("clickable",[(0,T.cB)("list-item","\n cursor: pointer;\n ")]),(0,T.cM)("bordered","\n border: 1px solid var(--n-merged-border-color);\n border-radius: var(--n-border-radius);\n "),(0,T.cM)("hoverable",[(0,T.cB)("list-item","\n border-radius: var(--n-border-radius);\n ",[(0,T.c)("&:hover","\n background-color: var(--n-merged-color-hover);\n ",[(0,T.cE)("divider","\n background-color: transparent;\n ")])])]),(0,T.cM)("bordered, hoverable",[(0,T.cB)("list-item","\n padding: 12px 20px;\n "),(0,T.cE)("header, footer","\n padding: 12px 20px;\n ")]),(0,T.cE)("header, footer","\n padding: 12px 0;\n box-sizing: border-box;\n transition: border-color .3s var(--n-bezier);\n ",[(0,T.c)("&:not(:last-child)","\n border-bottom: 1px solid var(--n-merged-border-color);\n ")]),(0,T.cB)("list-item","\n position: relative;\n padding: 12px 0; \n box-sizing: border-box;\n display: flex;\n flex-wrap: nowrap;\n align-items: center;\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ",[(0,T.cE)("prefix","\n margin-right: 20px;\n flex: 0;\n "),(0,T.cE)("suffix","\n margin-left: 20px;\n flex: 0;\n "),(0,T.cE)("main","\n flex: 1;\n "),(0,T.cE)("divider","\n height: 1px;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: transparent;\n transition: background-color .3s var(--n-bezier);\n pointer-events: none;\n ")])]),(0,T.EM)((0,T.cB)("list","\n --n-merged-color-hover: var(--n-color-hover-modal);\n --n-merged-color: var(--n-color-modal);\n --n-merged-border-color: var(--n-border-color-modal);\n ")),(0,T.ES)((0,T.cB)("list","\n --n-merged-color-hover: var(--n-color-hover-popover);\n --n-merged-color: var(--n-color-popover);\n --n-merged-border-color: var(--n-border-color-popover);\n "))]);const I=Object.assign(Object.assign({},j.A.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),K=(0,M.D)("n-list");var H=(0,i.pM)({name:"List",props:I,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:a}=(0,B.Ay)(e),o=(0,W.I)("List",a,t),l=(0,j.A)("List","-list",O,X.A,e,t);(0,i.Gt)(K,{showDividerRef:(0,r.lW)(e,"showDivider"),mergedClsPrefixRef:t});const s=(0,i.EW)(()=>{const{common:{cubicBezierEaseInOut:e},self:{fontSize:t,textColor:n,color:i,colorModal:r,colorPopover:a,borderColor:o,borderColorModal:s,borderColorPopover:d,borderRadius:c,colorHover:v,colorHoverModal:u,colorHoverPopover:p}}=l.value;return{"--n-font-size":t,"--n-bezier":e,"--n-text-color":n,"--n-color":i,"--n-border-radius":c,"--n-border-color":o,"--n-border-color-modal":s,"--n-border-color-popover":d,"--n-color-modal":r,"--n-color-popover":a,"--n-color-hover":v,"--n-color-hover-modal":u,"--n-color-hover-popover":p}}),d=n?(0,S.R)("list",void 0,s,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:n?void 0:s,themeClass:null===d||void 0===d?void 0:d.themeClass,onRender:null===d||void 0===d?void 0:d.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:r}=this;return null===r||void 0===r||r(),(0,i.h)("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?(0,i.h)("div",{class:`${n}-list__header`},t.header()):null,null===(e=t.default)||void 0===e?void 0:e.call(t),t.footer?(0,i.h)("div",{class:`${n}-list__footer`},t.footer()):null)}}),D=n(35268),q=(0,i.pM)({name:"ListItem",slots:Object,setup(){const e=(0,i.WQ)(K,null);return e||(0,D.$8)("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return(0,i.h)("li",{class:`${t}-list-item`},e.prefix?(0,i.h)("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?(0,i.h)("div",{class:`${t}-list-item__main`},e):null,e.suffix?(0,i.h)("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&(0,i.h)("div",{class:`${t}-list-item__divider`}))}}),N=n(43585),V=n(69313),Q=(0,T.cB)("thing","\n display: flex;\n transition: color .3s var(--n-bezier);\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n",[(0,T.cB)("thing-avatar","\n margin-right: 12px;\n margin-top: 2px;\n "),(0,T.cB)("thing-avatar-header-wrapper","\n display: flex;\n flex-wrap: nowrap;\n ",[(0,T.cB)("thing-header-wrapper","\n flex: 1;\n ")]),(0,T.cB)("thing-main","\n flex-grow: 1;\n ",[(0,T.cB)("thing-header","\n display: flex;\n margin-bottom: 4px;\n justify-content: space-between;\n align-items: center;\n ",[(0,T.cE)("title","\n font-size: 16px;\n font-weight: var(--n-title-font-weight);\n transition: color .3s var(--n-bezier);\n color: var(--n-title-text-color);\n ")]),(0,T.cE)("description",[(0,T.c)("&:not(:last-child)","\n margin-bottom: 4px;\n ")]),(0,T.cE)("content",[(0,T.c)("&:not(:first-child)","\n margin-top: 12px;\n ")]),(0,T.cE)("footer",[(0,T.c)("&:not(:first-child)","\n margin-top: 12px;\n ")]),(0,T.cE)("action",[(0,T.c)("&:not(:first-child)","\n margin-top: 12px;\n ")])])]);const U=Object.assign(Object.assign({},j.A.props),{title:String,titleExtra:String,description:String,descriptionClass:String,descriptionStyle:[String,Object],content:String,contentClass:String,contentStyle:[String,Object],contentIndented:Boolean});var Z=(0,i.pM)({name:"Thing",props:U,slots:Object,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:a}=(0,B.Ay)(e),o=(0,j.A)("Thing","-thing",Q,V.A,e,n),l=(0,W.I)("Thing",a,n),s=(0,i.EW)(()=>{const{self:{titleTextColor:e,textColor:t,titleFontWeight:n,fontSize:i},common:{cubicBezierEaseInOut:r}}=o.value;return{"--n-bezier":r,"--n-font-size":i,"--n-text-color":t,"--n-title-font-weight":n,"--n-title-text-color":e}}),d=r?(0,S.R)("thing",void 0,s,e):void 0;return()=>{var a;const{value:o}=n,c=!!l&&l.value;return null===(a=null===d||void 0===d?void 0:d.onRender)||void 0===a||a.call(d),(0,i.h)("div",{class:[`${o}-thing`,null===d||void 0===d?void 0:d.themeClass,c&&`${o}-thing--rtl`],style:r?void 0:s.value},t.avatar&&e.contentIndented?(0,i.h)("div",{class:`${o}-thing-avatar`},t.avatar()):null,(0,i.h)("div",{class:`${o}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?(0,i.h)("div",{class:`${o}-thing-avatar-header-wrapper`},t.avatar?(0,i.h)("div",{class:`${o}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?(0,i.h)("div",{class:`${o}-thing-header-wrapper`},(0,i.h)("div",{class:`${o}-thing-header`},t.header||e.title?(0,i.h)("div",{class:`${o}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?(0,i.h)("div",{class:`${o}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?(0,i.h)("div",{class:[`${o}-thing-main__description`,e.descriptionClass],style:e.descriptionStyle},t.description?t.description():e.description):null):null):(0,i.h)(i.FK,null,t.header||e.title||t["header-extra"]||e.titleExtra?(0,i.h)("div",{class:`${o}-thing-header`},t.header||e.title?(0,i.h)("div",{class:`${o}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?(0,i.h)("div",{class:`${o}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?(0,i.h)("div",{class:[`${o}-thing-main__description`,e.descriptionClass],style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?(0,i.h)("div",{class:[`${o}-thing-main__content`,e.contentClass],style:e.contentStyle},t.default?t.default():e.content):null,t.footer?(0,i.h)("div",{class:`${o}-thing-main__footer`},t.footer()):null,t.action?(0,i.h)("div",{class:`${o}-thing-main__action`},t.action()):null))}}}),Y=n(35720),G=n(74911);const J={class:"word-detail-view max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},ee={key:0,class:"mb-6 flex items-center justify-between bg-primary/10 dark:bg-primary/20 rounded-lg px-4 py-3 border border-primary/20",initial:{opacity:0,y:-20},enter:{opacity:1,y:0,transition:{duration:500}}},te={class:"flex items-center gap-2"},ne={class:"font-medium text-primary"},ie={class:"text-sm font-mono text-primary"},re={class:"font-bold"},ae={class:"opacity-80"},oe={class:"mb-8 flex flex-col md:flex-row md:items-center justify-between gap-4",initial:{opacity:0,y:-20},enter:{opacity:1,y:0,transition:{duration:500}}},le={class:"flex flex-col md:flex-row md:items-center gap-3 md:gap-4 min-w-0"},se={class:"flex items-start md:items-center gap-4 min-w-0"},de={class:"text-4xl font-bold text-gray-900 dark:text-white break-all min-w-0"},ce={class:"flex flex-col gap-1 shrink-0"},ve={key:0,class:"text-sm text-gray-500 dark:text-gray-400"},ue={key:1,class:"text-sm text-gray-500 dark:text-gray-400"},pe={class:"flex items-center gap-2 shrink-0"},he={key:0,class:"flex items-center gap-3"},ge={class:"grid grid-cols-1 lg:grid-cols-3 gap-8"},fe={class:"lg:col-span-2 space-y-8"},ye={key:0,class:"flex flex-wrap gap-2",initial:{opacity:0,x:-20},enter:{opacity:1,x:0,transition:{delay:200}}},me={key:1,class:"flex flex-col gap-3",initial:{opacity:0,x:-20},enter:{opacity:1,x:0,transition:{delay:250}}},xe=["onClick"],be={class:"p-2 bg-blue-100 dark:bg-blue-800 rounded-full text-blue-600 dark:text-blue-300"},ke={class:"flex-1 flex items-center flex-wrap gap-2"},we={class:"text-gray-700 dark:text-gray-200"},_e={class:"font-bold text-blue-700 dark:text-blue-400"},Ce={class:"flex items-center gap-2"},Re={key:0,class:"space-y-6"},ze={class:"flex items-baseline gap-2 mb-3"},Ae={class:"px-2 py-0.5 rounded bg-gray-100 dark:bg-gray-700 text-gray-600 dark:text-gray-300 font-mono text-sm font-bold"},Ee={class:"text-lg text-gray-800 dark:text-gray-200"},Le={key:0,class:"pl-4 border-l-2 border-gray-200 dark:border-gray-700 space-y-3"},Fe={class:"text-gray-700 dark:text-gray-300"},Pe={class:"text-gray-500 dark:text-gray-500 text-sm mt-0.5"},$e={key:1,class:"text-gray-400 text-center py-4"},je={class:"flex items-center gap-2"},Be={class:"relative overflow-hidden"},We=["innerHTML"],Se=["innerHTML"],Me={class:"mt-2 text-xs text-gray-400 text-right"},Xe={key:1,class:"absolute inset-0 flex items-center justify-center"},Te={key:2,class:"text-gray-400 text-center py-4"},Oe={key:0,class:"flex justify-between items-center mt-4 border-t border-gray-100 dark:border-gray-700 pt-3"},Ie={class:"text-xs text-gray-400"},Ke={class:"space-y-8"},He={class:"flex items-center gap-2"},De={class:"grid grid-cols-2 gap-4 text-center"},qe={class:"p-3 bg-gray-50 dark:bg-gray-700/50 rounded-lg"},Ne={class:"text-xl font-bold text-gray-900 dark:text-white mt-1"},Ve={class:"p-3 bg-green-50 dark:bg-green-900/20 rounded-lg"},Qe={class:"text-xl font-bold text-green-600 dark:text-green-400 mt-1"},Ue={class:"flex items-center justify-between"},Ze={class:"flex items-center gap-2"},Ye={key:0,class:"space-y-4"},Ge={class:"text-gray-700 dark:text-gray-300 whitespace-pre-wrap text-sm"},Je={class:"flex justify-end mt-2"},et={class:"text-xs text-gray-400"},tt={key:0,class:"mt-2 flex items-center justify-end gap-2"},nt={key:0,class:"text-center pt-2"},it={key:1,class:"flex justify-center py-4"},rt={key:2,class:"text-gray-400 text-center py-4 text-sm"},at={class:"flex justify-end gap-2"},ot={key:0,class:"py-8 flex justify-center"},lt={key:1,class:"py-8"},st={class:"p-2 bg-blue-100 dark:bg-blue-900/30 rounded-lg text-blue-600 dark:text-blue-400"},dt={class:"text-xs text-gray-400"};var ct={__name:"WordDetailView",setup(e){const t=new G.A({html:!0,breaks:!0}),n=(0,l.lq)(),d=(0,l.rd)(),j=(0,s.J)(),B=(0,r.KR)(!1),W=(0,r.KR)(null),S=(0,r.KR)({last:null,next:null}),M=(0,r.KR)(!1),X=(0,r.KR)(!1),T=(0,r.KR)({}),O=(0,r.KR)({content:""}),I=(0,r.KR)([]),K=(0,r.KR)(1),D=(0,r.KR)(0),V=(0,r.KR)(!1),Q=(0,r.KR)([]),U=(0,r.KR)(1),ct=(0,r.KR)(0),vt=(0,r.KR)(!1),ut=(0,r.KR)("slide-left"),pt=(0,r.KR)(!1),ht=(0,r.KR)([]),gt=(0,r.KR)(!1),ft=(0,i.EW)(()=>"true"===n.query.learn),yt=(0,i.EW)(()=>Number(n.query.word_id)),mt=(0,i.EW)(()=>Number(n.query.dict_id)),xt=(0,i.EW)(()=>Q.value[0]||null),bt=async(e=1,t=!1)=>{if(yt.value){V.value=!0;try{const n=await Y.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/detail/note",{params:{word_id:yt.value,page:e,limit:5}});I.value=t?[...I.value,...n.data.list]:n.data.list,D.value=n.data.pagination.total_items,K.value=e}catch(n){console.error("Fetch notes failed:",n),j.error("获取笔记失败")}finally{V.value=!1}}},kt=()=>{bt(K.value+1,!0)},wt=async(e=1)=>{if(yt.value){vt.value=!0;try{const t=await Y.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/detail/ai_passage",{params:{word_id:yt.value,page:e,limit:1}});Q.value=t.data.list,ct.value=t.data.pagination.total_items,U.value=e}catch(t){console.error("Fetch ai passages failed:",t)}finally{vt.value=!1}}},_t=()=>{U.value>1&&(ut.value="slide-right",wt(U.value-1))},Ct=()=>{U.value{if(yt.value){B.value=!0,bt(1),wt(1);try{const e={word_id:yt.value,learn:ft.value};ft.value&&mt.value&&(e.dict_id=mt.value);const t=await Y.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/detail/word",e);S.value={last:t.data.last,next:t.data.next};const n={...t.data};delete n.last,delete n.next,W.value=n}catch(e){console.error("Fetch word detail failed:",e),j.error("获取单词详情失败")}finally{B.value=!1}}},zt=e=>{e&&d.push({name:"word-detail",query:{...n.query,word_id:e}})},At=async()=>{if(W.value)try{const e=await Y.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/detail/favorite",{word_id:W.value.id});W.value.is_favorite=e.data.is_favorite,j.success(e.data.message)}catch(e){j.error("操作失败")}},Et=(e=null)=>{e&&e.id?(T.value=e,O.value.content=e.content):(T.value={},O.value.content=""),M.value=!0},Lt=async()=>{if(O.value.content.trim()){X.value=!0;try{const e={word_id:W.value.id,content:O.value.content};T.value.id&&(e.note_id=T.value.id);const t=await Y.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/detail/note",e);j.success(t.data.message),M.value=!1,bt(1)}catch(e){j.error("保存笔记失败")}finally{X.value=!1}}else j.warning("笔记内容不能为空")},Ft=async e=>{try{const t=await Y.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/detail/del_note",{note_id:e});j.success(t.data.message),bt(1)}catch(t){j.error("删除笔记失败")}},Pt=async()=>{W.value?.id&&(pt.value=!0,await $t())},$t=async()=>{gt.value=!0;try{const e=await Y.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/word_list/contain_status",{params:{word_id:W.value.id}});ht.value=e.data.list.map(e=>({...e,loading:!1}))}catch(e){j.error("获取词单列表失败")}finally{gt.value=!1}},jt=async(e,t)=>{if(!e.loading){e.loading=!0;try{const n=t?"https://newfront.xn--xhq44jb2fzpc.com/word_helper/word_list/add_word":"https://newfront.xn--xhq44jb2fzpc.com/word_helper/word_list/rmv_word",i=await Y.A.post(n,{list_id:e.id,word_id:[W.value.id]});e.has_word=t,e.word_count=i.data.current_count,j.success(t?"已加入词单":"已移出词单")}catch(n){j.error("操作失败")}finally{e.loading=!1}}},Bt=e=>{const t=d.resolve({path:"/list_detail",query:{list_id:e}});window.open(t.href,"_blank")};return(0,i.wB)(()=>n.query.word_id,e=>{e&&Rt()},{immediate:!0}),(0,i.sV)(()=>{document.title="单词详情 - Word Helper"}),(e,n)=>{const l=(0,i.gN)("motion");return(0,i.uX)(),(0,i.CE)("div",J,[ft.value&&W.value?.dict?(0,i.bo)(((0,i.uX)(),(0,i.CE)("div",ee,[(0,i.Lk)("div",te,[(0,i.bF)((0,r.R1)(c),{class:"w-4 h-4 text-primary"}),(0,i.Lk)("span",ne,(0,a.v_)(W.value.dict.name),1)]),(0,i.Lk)("div",ie,[(0,i.Lk)("span",re,(0,a.v_)(W.value.dict.current_order),1),n[6]||(n[6]=(0,i.Lk)("span",{class:"mx-1 opacity-60"},"/",-1)),(0,i.Lk)("span",ae,(0,a.v_)(W.value.dict.total_words),1)])])),[[l]]):(0,i.Q3)("",!0),(0,i.bo)(((0,i.uX)(),(0,i.CE)("div",oe,[(0,i.Lk)("div",le,[(0,i.Lk)("div",se,[(0,i.Lk)("h1",de,(0,a.v_)(W.value?.word),1),(0,i.Lk)("div",ce,[W.value?.uk_accent?((0,i.uX)(),(0,i.CE)("div",ve," 英 ["+(0,a.v_)(W.value.uk_accent)+"] ",1)):(0,i.Q3)("",!0),W.value?.us_accent?((0,i.uX)(),(0,i.CE)("div",ue," 美 ["+(0,a.v_)(W.value.us_accent)+"] ",1)):(0,i.Q3)("",!0)])]),(0,i.Lk)("div",pe,[(0,i.Lk)("button",{onClick:At,class:(0,a.C4)(["p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors",W.value?.is_favorite?"text-yellow-500":"text-gray-400"]),title:"加入/移出生词本"},[(0,i.bF)((0,r.R1)(v.A),{class:(0,a.C4)({"fill-current":W.value?.is_favorite})},null,8,["class"])],2),(0,i.Lk)("button",{onClick:Pt,class:"p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors text-gray-400 hover:text-primary",title:"词单快速管理"},[(0,i.bF)((0,r.R1)(u))])])]),ft.value?((0,i.uX)(),(0,i.CE)("div",he,[(0,i.bF)((0,r.R1)(_.Ay),{secondary:"",disabled:!S.value.last,onClick:n[0]||(n[0]=e=>zt(S.value.last))},{icon:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(p))]),default:(0,i.k6)(()=>[n[7]||(n[7]=(0,i.eW)(" 上一个 ",-1))]),_:1},8,["disabled"]),(0,i.bF)((0,r.R1)(_.Ay),{type:"primary",disabled:!S.value.next,onClick:n[1]||(n[1]=e=>zt(S.value.next))},{icon:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(h.A))]),default:(0,i.k6)(()=>[n[8]||(n[8]=(0,i.eW)(" 下一个 ",-1))]),_:1},8,["disabled"])])):(0,i.Q3)("",!0)])),[[l]]),(0,i.Lk)("div",ge,[(0,i.Lk)("div",fe,[W.value?.dictionaries?.length?(0,i.bo)(((0,i.uX)(),(0,i.CE)("div",ye,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(W.value.dictionaries,e=>((0,i.uX)(),(0,i.Wv)((0,r.R1)(C.Ay),{key:e.id,type:"info",size:"small",round:""},{default:(0,i.k6)(()=>[(0,i.eW)((0,a.v_)(e.tag||e.name),1)]),_:2},1024))),128))])),[[l]]):(0,i.Q3)("",!0),W.value?.official_lists?.length?(0,i.bo)(((0,i.uX)(),(0,i.CE)("div",me,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(W.value.official_lists,e=>((0,i.uX)(),(0,i.CE)("div",{key:e.id,class:"cursor-pointer group flex items-center gap-3 p-3 rounded-lg bg-blue-50 dark:bg-blue-900/10 border border-blue-100 dark:border-blue-900/30 hover:shadow-md hover:border-blue-200 dark:hover:border-blue-800 transition-all",onClick:t=>Bt(e.id)},[(0,i.Lk)("div",be,[(0,i.bF)((0,r.R1)(g),{class:"w-4 h-4"})]),(0,i.Lk)("div",ke,[(0,i.Lk)("span",we,[n[9]||(n[9]=(0,i.eW)("收录于 ",-1)),(0,i.Lk)("span",_e,(0,a.v_)(e.name),1)]),(0,i.bF)((0,r.R1)(C.Ay),{type:"success",round:"",size:"small"},{icon:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(R._),{component:(0,r.R1)(f.A)},null,8,["component"])]),default:(0,i.k6)(()=>[n[10]||(n[10]=(0,i.eW)(" 官方词单 ",-1))]),_:1})]),(0,i.bF)((0,r.R1)(y.A),{class:"w-4 h-4 text-gray-400 opacity-0 group-hover:opacity-100 transition-opacity transform group-hover:translate-x-1"})],8,xe))),128))])),[[l]]):(0,i.Q3)("",!0),(0,i.bo)(((0,i.uX)(),(0,i.Wv)((0,r.R1)(z.Ay),{class:"rounded-xl shadow-sm dark:bg-gray-800",bordered:!1,initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:300}}},{header:(0,i.k6)(()=>[(0,i.Lk)("div",Ce,[(0,i.bF)((0,r.R1)(m.A),{class:"w-5 h-5 text-primary"}),n[11]||(n[11]=(0,i.Lk)("span",{class:"font-bold"},"释义与例句",-1))])]),default:(0,i.k6)(()=>[W.value?.translations?.length?((0,i.uX)(),(0,i.CE)("div",Re,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(W.value.translations,e=>((0,i.uX)(),(0,i.CE)("div",{key:e.id,class:"border-b border-gray-100 dark:border-gray-700 last:border-0 pb-6 last:pb-0"},[(0,i.Lk)("div",ze,[(0,i.Lk)("span",Ae,(0,a.v_)(e.pos),1),(0,i.Lk)("span",Ee,(0,a.v_)(e.meaning),1)]),e.examples?.length?((0,i.uX)(),(0,i.CE)("div",Le,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.examples,e=>((0,i.uX)(),(0,i.CE)("div",{key:e.id},[(0,i.Lk)("p",Fe,(0,a.v_)(e.sentence_en),1),(0,i.Lk)("p",Pe,(0,a.v_)(e.sentence_cn),1)]))),128))])):(0,i.Q3)("",!0)]))),128))])):((0,i.uX)(),(0,i.CE)("div",$e,"暂无释义"))]),_:1})),[[l]]),(0,i.bo)(((0,i.uX)(),(0,i.Wv)((0,r.R1)(z.Ay),{class:"rounded-xl shadow-sm dark:bg-gray-800",bordered:!1,initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:500}}},{header:(0,i.k6)(()=>[(0,i.Lk)("div",je,[(0,i.bF)((0,r.R1)(x.A),{class:"w-5 h-5 text-purple-500"}),n[12]||(n[12]=(0,i.Lk)("span",{class:"font-bold"},"AI 助记短文",-1))])]),default:(0,i.k6)(()=>[(0,i.Lk)("div",Be,[(0,i.bF)(o.eB,{name:ut.value,mode:"out-in"},{default:(0,i.k6)(()=>[xt.value?((0,i.uX)(),(0,i.CE)("div",{key:xt.value.id,class:"w-full"},[(0,i.Lk)("div",{class:"text-gray-700 dark:text-gray-300 leading-relaxed mb-2 markdown-body",innerHTML:(0,r.R1)(t).render(xt.value.content)},null,8,We),(0,i.Lk)("div",{class:"text-gray-500 dark:text-gray-400 text-sm border-t border-gray-100 dark:border-gray-700 pt-2",innerHTML:(0,r.R1)(t).render(xt.value.translation)},null,8,Se),(0,i.Lk)("div",Me,(0,a.v_)(new Date(xt.value.created_at).toLocaleDateString()),1)])):vt.value?((0,i.uX)(),(0,i.CE)("div",Xe,[(0,i.bF)((0,r.R1)(A.A),{size:"small"})])):((0,i.uX)(),(0,i.CE)("div",Te,"暂无我生成过的助记短文"))]),_:1},8,["name"])]),ct.value>0?((0,i.uX)(),(0,i.CE)("div",Oe,[(0,i.bF)((0,r.R1)(_.Ay),{size:"small",secondary:"",disabled:U.value<=1||vt.value,onClick:_t},{icon:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(p),{class:"w-3 h-3"})]),default:(0,i.k6)(()=>[n[13]||(n[13]=(0,i.eW)(" 上一篇 ",-1))]),_:1},8,["disabled"]),(0,i.Lk)("span",Ie,(0,a.v_)(U.value)+" / "+(0,a.v_)(ct.value),1),(0,i.bF)((0,r.R1)(_.Ay),{size:"small",secondary:"",disabled:U.value>=ct.value||vt.value,onClick:Ct},{icon:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(h.A),{class:"w-3 h-3"})]),default:(0,i.k6)(()=>[n[14]||(n[14]=(0,i.eW)(" 下一篇 ",-1))]),_:1},8,["disabled"])])):(0,i.Q3)("",!0)]),_:1})),[[l]])]),(0,i.Lk)("div",Ke,[(0,i.bo)(((0,i.uX)(),(0,i.Wv)((0,r.R1)(z.Ay),{class:"rounded-xl shadow-sm dark:bg-gray-800",bordered:!1,initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:400}}},{header:(0,i.k6)(()=>[(0,i.Lk)("div",He,[(0,i.bF)((0,r.R1)(b),{class:"w-5 h-5 text-blue-500"}),n[15]||(n[15]=(0,i.Lk)("span",{class:"font-bold"},"抽查历史",-1))])]),default:(0,i.k6)(()=>[(0,i.Lk)("div",De,[(0,i.Lk)("div",qe,[n[16]||(n[16]=(0,i.Lk)("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"抽查次数",-1)),(0,i.Lk)("div",Ne,(0,a.v_)(W.value?.stats?.total_tests||0),1)]),(0,i.Lk)("div",Ve,[n[17]||(n[17]=(0,i.Lk)("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"正确率",-1)),(0,i.Lk)("div",Qe,(0,a.v_)(W.value?.stats?.accuracy||0)+"%",1)])])]),_:1})),[[l]]),(0,i.bo)(((0,i.uX)(),(0,i.Wv)((0,r.R1)(z.Ay),{class:"rounded-xl shadow-sm dark:bg-gray-800",bordered:!1,initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:600}}},{header:(0,i.k6)(()=>[(0,i.Lk)("div",Ue,[(0,i.Lk)("div",Ze,[(0,i.bF)((0,r.R1)(k.A),{class:"w-5 h-5 text-amber-500"}),n[18]||(n[18]=(0,i.Lk)("span",{class:"font-bold"},"用户笔记",-1))]),(0,i.bF)((0,r.R1)(_.Ay),{size:"tiny",secondary:"",circle:"",onClick:Et},{icon:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(w.A),{class:"w-4 h-4"})]),_:1})])]),default:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(E.A),{type:"warning","show-icon":"",class:"mb-4 text-xs"},{default:(0,i.k6)(()=>[...n[19]||(n[19]=[(0,i.eW)(" 每个用户对同一单词只能有一条笔记,如重复新建笔记,新笔记内容会替换旧内容,旧笔记不会保存! ",-1)])]),_:1}),I.value.length?((0,i.uX)(),(0,i.CE)("div",Ye,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(I.value,e=>((0,i.uX)(),(0,i.CE)("div",{key:e.id,class:"p-3 bg-yellow-50 dark:bg-yellow-900/10 rounded-lg border border-yellow-100 dark:border-yellow-900/30"},[(0,i.Lk)("div",Ge,(0,a.v_)(e.content),1),(0,i.Lk)("div",Je,[(0,i.Lk)("span",et,(0,a.v_)(new Date(e.updated_at).toLocaleDateString()),1)]),e.owner?((0,i.uX)(),(0,i.CE)("div",tt,[(0,i.bF)((0,r.R1)(C.Ay),{type:"success",size:"tiny",bordered:!1},{default:(0,i.k6)(()=>[...n[20]||(n[20]=[(0,i.eW)("我的笔记",-1)])]),_:1}),(0,i.bF)((0,r.R1)(_.Ay),{size:"tiny",text:"",type:"primary",onClick:t=>Et(e)},{default:(0,i.k6)(()=>[...n[21]||(n[21]=[(0,i.eW)("编辑",-1)])]),_:1},8,["onClick"]),(0,i.bF)((0,r.R1)(L.A),{onPositiveClick:t=>Ft(e.id)},{trigger:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(_.Ay),{size:"tiny",text:"",type:"error"},{default:(0,i.k6)(()=>[...n[22]||(n[22]=[(0,i.eW)("删除",-1)])]),_:1})]),default:(0,i.k6)(()=>[n[23]||(n[23]=(0,i.eW)(" 确定要删除这条笔记吗? ",-1))]),_:1},8,["onPositiveClick"])])):(0,i.Q3)("",!0)]))),128)),I.value.length[...n[24]||(n[24]=[(0,i.eW)(" 加载更多笔记 ",-1)])]),_:1},8,["loading"])])):(0,i.Q3)("",!0)])):V.value?((0,i.uX)(),(0,i.CE)("div",it,[(0,i.bF)((0,r.R1)(A.A),{size:"small"})])):((0,i.uX)(),(0,i.CE)("div",rt," 暂无笔记,点击右上角添加 "))]),_:1})),[[l]])])]),(0,i.bF)((0,r.R1)(F.A),{show:M.value,"onUpdate:show":n[4]||(n[4]=e=>M.value=e),preset:"card",title:T.value.id?"编辑笔记":"添加笔记",class:"w-full max-w-lg"},{footer:(0,i.k6)(()=>[(0,i.Lk)("div",at,[(0,i.bF)((0,r.R1)(_.Ay),{onClick:n[3]||(n[3]=e=>M.value=!1)},{default:(0,i.k6)(()=>[...n[25]||(n[25]=[(0,i.eW)("取消",-1)])]),_:1}),(0,i.bF)((0,r.R1)(_.Ay),{type:"primary",loading:X.value,onClick:Lt},{default:(0,i.k6)(()=>[...n[26]||(n[26]=[(0,i.eW)("保存",-1)])]),_:1},8,["loading"])])]),default:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(P.A),{value:O.value.content,"onUpdate:value":n[2]||(n[2]=e=>O.value.content=e),type:"textarea",placeholder:"记录你的学习心得...",autosize:{minRows:4,maxRows:8}},null,8,["value"])]),_:1},8,["show","title"]),(0,i.bF)((0,r.R1)(F.A),{show:pt.value,"onUpdate:show":n[5]||(n[5]=e=>pt.value=e),preset:"card",title:"词单快速管理",class:"w-full max-w-md"},{default:(0,i.k6)(()=>[gt.value?((0,i.uX)(),(0,i.CE)("div",ot,[(0,i.bF)((0,r.R1)(A.A),{size:"medium"})])):0===ht.value.length?((0,i.uX)(),(0,i.CE)("div",lt,[(0,i.bF)((0,r.R1)($.A),{description:"暂无自建词单"})])):((0,i.uX)(),(0,i.Wv)((0,r.R1)(H),{key:2,hoverable:"",clickable:""},{default:(0,i.k6)(()=>[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(ht.value,e=>((0,i.uX)(),(0,i.Wv)((0,r.R1)(q),{key:e.id},{prefix:(0,i.k6)(()=>[(0,i.Lk)("div",st,[(0,i.bF)((0,r.R1)(c),{class:"w-5 h-5"})])]),suffix:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(N.A),{value:e.has_word,loading:e.loading,"onUpdate:value":t=>jt(e,t)},null,8,["value","loading","onUpdate:value"])]),default:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(Z),{title:e.name},{description:(0,i.k6)(()=>[(0,i.Lk)("span",dt,"共 "+(0,a.v_)(e.word_count)+" 词",1)]),_:2},1032,["title"])]),_:2},1024))),128))]),_:1})),n[27]||(n[27]=(0,i.Lk)("div",{class:"mt-4 text-xs text-gray-400 text-center"}," 点击开关一键将当前单词添加/移除词单 ",-1))]),_:1},8,["show"])])}}},vt=n(71241);const ut=(0,vt.A)(ct,[["__scopeId","data-v-442f11bc"]]);var pt=ut},55200:function(e,t,n){n.d(t,{A:function(){return r}});var i=n(45525); +/** + * @license lucide-vue-next v0.562.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r=(0,i.A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},68042:function(e,t,n){n.d(t,{A:function(){return m}});var i=n(55472),r=n(37485),a=n(56768),o=n(90144),l=n(45130),s=n(21905),d=n(79882),c=n(88733),v=n(25216),u=n(34350),p=n(54507),h=n(29895),g=(0,u.c)([(0,u.c)("@keyframes spin-rotate","\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n "),(0,u.cB)("spin-container","\n position: relative;\n ",[(0,u.cB)("spin-body","\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[(0,h.v)()])]),(0,u.cB)("spin-body","\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n "),(0,u.cB)("spin","\n display: inline-flex;\n height: var(--n-size);\n width: var(--n-size);\n font-size: var(--n-size);\n color: var(--n-color);\n ",[(0,u.cM)("rotate","\n animation: spin-rotate 2s linear infinite;\n ")]),(0,u.cB)("spin-description","\n display: inline-block;\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n margin-top: 8px;\n "),(0,u.cB)("spin-content","\n opacity: 1;\n transition: opacity .3s var(--n-bezier);\n pointer-events: all;\n ",[(0,u.cM)("spinning","\n user-select: none;\n -webkit-user-select: none;\n pointer-events: none;\n opacity: var(--n-opacity-spinning);\n ")])]);const f={small:20,medium:18,large:16},y=Object.assign(Object.assign({},d.A.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number});var m=(0,a.pM)({name:"Spin",props:y,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=(0,c.Ay)(e),l=(0,d.A)("Spin","-spin",g,p.A,e,t),s=(0,a.EW)(()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:n},self:r}=l.value,{opacitySpinning:a,color:o,textColor:s}=r,d="number"===typeof t?(0,i.Cw)(t):r[(0,u.cF)("size",t)];return{"--n-bezier":n,"--n-opacity-spinning":a,"--n-size":d,"--n-color":o,"--n-text-color":s}}),h=n?(0,v.R)("spin",(0,a.EW)(()=>{const{size:t}=e;return"number"===typeof t?String(t):t[0]}),s,e):void 0,y=(0,r.A)(e,["spinning","show"]),m=(0,o.KR)(!1);return(0,a.nT)(t=>{let n;if(y.value){const{delay:i}=e;if(i)return n=window.setTimeout(()=>{m.value=!0},i),void t(()=>{clearTimeout(n)})}m.value=y.value}),{mergedClsPrefix:t,active:m,mergedStrokeWidth:(0,a.EW)(()=>{const{strokeWidth:t}=e;if(void 0!==t)return t;const{size:n}=e;return f["number"===typeof n?"medium":n]}),cssVars:n?void 0:s,themeClass:null===h||void 0===h?void 0:h.themeClass,onRender:null===h||void 0===h?void 0:h.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:i,description:r}=this,o=n.icon&&this.rotate,d=(r||n.description)&&(0,a.h)("div",{class:`${i}-spin-description`},r||(null===(e=n.description)||void 0===e?void 0:e.call(n))),c=n.icon?(0,a.h)("div",{class:[`${i}-spin-body`,this.themeClass]},(0,a.h)("div",{class:[`${i}-spin`,o&&`${i}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),d):(0,a.h)("div",{class:[`${i}-spin-body`,this.themeClass]},(0,a.h)(s.A,{clsPrefix:i,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${i}-spin`}),d);return null===(t=this.onRender)||void 0===t||t.call(this),n.default?(0,a.h)("div",{class:[`${i}-spin-container`,this.themeClass],style:this.cssVars},(0,a.h)("div",{class:[`${i}-spin-content`,this.active&&`${i}-spin-content--spinning`,this.contentClass],style:this.contentStyle},n),(0,a.h)(l.eB,{name:"fade-in-transition"},{default:()=>this.active?c:null})):c}})},71168:function(e,t,n){n.d(t,{A:function(){return A}});var i=n(56768),r=n(90144),a=n(79882),o=n(88733),l=n(37901),s=n(86866),d=n(91462),c=n(36921),v=n(29767),u=n(77727);const p=(0,u.D)("n-popconfirm");var h=n(84279),g=n(73921),f=n(82813),y=n(25216),m=n(52126),x=n(25972),b=n(54880);const k={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},w=(0,m.Y)(k);var _=(0,i.pM)({name:"NPopconfirmPanel",props:k,setup(e){const{localeRef:t}=(0,f.A)("Popconfirm"),{inlineThemeDisabled:n}=(0,o.Ay)(),{mergedClsPrefixRef:a,mergedThemeRef:l,props:s}=(0,i.WQ)(p),d=(0,i.EW)(()=>{const{common:{cubicBezierEaseInOut:e},self:{fontSize:t,iconSize:n,iconColor:i}}=l.value;return{"--n-bezier":e,"--n-font-size":t,"--n-icon-size":n,"--n-icon-color":i}}),c=n?(0,y.R)("popconfirm-panel",void 0,d,s):void 0;return Object.assign(Object.assign({},(0,f.A)("Popconfirm")),{mergedClsPrefix:a,cssVars:n?void 0:d,localizedPositiveText:(0,i.EW)(()=>e.positiveText||t.value.positiveText),localizedNegativeText:(0,i.EW)(()=>e.negativeText||t.value.negativeText),positiveButtonProps:(0,r.lW)(s,"positiveButtonProps"),negativeButtonProps:(0,r.lW)(s,"negativeButtonProps"),handlePositiveClick(t){e.onPositiveClick(t)},handleNegativeClick(t){e.onNegativeClick(t)},themeClass:null===c||void 0===c?void 0:c.themeClass,onRender:null===c||void 0===c?void 0:c.onRender})},render(){var e;const{mergedClsPrefix:t,showIcon:n,$slots:r}=this,a=(0,x.Nj)(r.action,()=>null===this.negativeText&&null===this.positiveText?[]:[null!==this.negativeText&&(0,i.h)(b.Ay,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),null!==this.positiveText&&(0,i.h)(b.Ay,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return null===(e=this.onRender)||void 0===e||e.call(this),(0,i.h)("div",{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},(0,x.iQ)(r.default,e=>n||e?(0,i.h)("div",{class:`${t}-popconfirm__body`},n?(0,i.h)("div",{class:`${t}-popconfirm__icon`},(0,x.Nj)(r.icon,()=>[(0,i.h)(h.A,{clsPrefix:t},{default:()=>(0,i.h)(g.A,null)})])):null,e):null),a?(0,i.h)("div",{class:[`${t}-popconfirm__action`]},a):null)}}),C=n(34350),R=(0,C.cB)("popconfirm",[(0,C.cE)("body","\n font-size: var(--n-font-size);\n display: flex;\n align-items: center;\n flex-wrap: nowrap;\n position: relative;\n ",[(0,C.cE)("icon","\n display: flex;\n font-size: var(--n-icon-size);\n color: var(--n-icon-color);\n transition: color .3s var(--n-bezier);\n margin: 0 8px 0 0;\n ")]),(0,C.cE)("action","\n display: flex;\n justify-content: flex-end;\n ",[(0,C.c)("&:not(:first-child)","margin-top: 8px"),(0,C.cB)("button",[(0,C.c)("&:not(:last-child)","margin-right: 8px;")])])]);const z=Object.assign(Object.assign(Object.assign({},a.A.props),c.vY),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function});var A=(0,i.pM)({name:"Popconfirm",props:z,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=(0,o.Ay)(),n=(0,a.A)("Popconfirm","-popconfirm",R,v.A,e,t),s=(0,r.KR)(null);function d(t){var n;if(!(null===(n=s.value)||void 0===n?void 0:n.getMergedShow()))return;const{onPositiveClick:i,"onUpdate:show":r}=e;Promise.resolve(!i||i(t)).then(e=>{var t;!1!==e&&(null===(t=s.value)||void 0===t||t.setShow(!1),r&&(0,l.T)(r,!1))})}function c(t){var n;if(!(null===(n=s.value)||void 0===n?void 0:n.getMergedShow()))return;const{onNegativeClick:i,"onUpdate:show":r}=e;Promise.resolve(!i||i(t)).then(e=>{var t;!1!==e&&(null===(t=s.value)||void 0===t||t.setShow(!1),r&&(0,l.T)(r,!1))})}(0,i.Gt)(p,{mergedThemeRef:n,mergedClsPrefixRef:t,props:e});const u={setShow(e){var t;null===(t=s.value)||void 0===t||t.setShow(e)},syncPosition(){var e;null===(e=s.value)||void 0===e||e.syncPosition()},mergedTheme:n,popoverInstRef:s,handlePositiveClick:d,handleNegativeClick:c};return u},render(){const{$slots:e,$props:t,mergedTheme:n}=this;return(0,i.h)(c.Ay,Object.assign({},(0,s.c)(t,w),{theme:n.peers.Popover,themeOverrides:n.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.trigger,default:()=>{const n=(0,d.a)(t,w);return(0,i.h)(_,Object.assign({},n,{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}})}}]); +//# sourceMappingURL=114.1fcce5ed.js.map \ No newline at end of file diff --git a/dist/js/150.134ee868.js b/dist/js/150.49b65dd0.js similarity index 99% rename from dist/js/150.134ee868.js rename to dist/js/150.49b65dd0.js index cea3f02..8c7f77a 100644 --- a/dist/js/150.134ee868.js +++ b/dist/js/150.49b65dd0.js @@ -1,2 +1,2 @@ "use strict";(self["webpackChunkwordhelper"]=self["webpackChunkwordhelper"]||[]).push([[150],{9845:function(e,n,t){t.d(n,{A:function(){return v}});var o=t(56768),l=t(84279),i=(0,o.pM)({name:"Empty",render(){return(0,o.h)("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),(0,o.h)("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),r=t(79882),a=t(88733),s=t(82813),d=t(25216),c=t(34350),u=t(52945),h=(0,c.cB)("empty","\n display: flex;\n flex-direction: column;\n align-items: center;\n font-size: var(--n-font-size);\n",[(0,c.cE)("icon","\n width: var(--n-icon-size);\n height: var(--n-icon-size);\n font-size: var(--n-icon-size);\n line-height: var(--n-icon-size);\n color: var(--n-icon-color);\n transition:\n color .3s var(--n-bezier);\n ",[(0,c.c)("+",[(0,c.cE)("description","\n margin-top: 8px;\n ")])]),(0,c.cE)("description","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n "),(0,c.cE)("extra","\n text-align: center;\n transition: color .3s var(--n-bezier);\n margin-top: 12px;\n color: var(--n-extra-text-color);\n ")]);const p=Object.assign(Object.assign({},r.A.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function});var v=(0,o.pM)({name:"Empty",props:p,slots:Object,setup(e){const{mergedClsPrefixRef:n,inlineThemeDisabled:t,mergedComponentPropsRef:l}=(0,a.Ay)(e),p=(0,r.A)("Empty","-empty",h,u.A,e,n),{localeRef:v}=(0,s.A)("Empty"),f=(0,o.EW)(()=>{var n,t,o;return null!==(n=e.description)&&void 0!==n?n:null===(o=null===(t=null===l||void 0===l?void 0:l.value)||void 0===t?void 0:t.Empty)||void 0===o?void 0:o.description}),g=(0,o.EW)(()=>{var e,n;return(null===(n=null===(e=null===l||void 0===l?void 0:l.value)||void 0===e?void 0:e.Empty)||void 0===n?void 0:n.renderIcon)||(()=>(0,o.h)(i,null))}),b=(0,o.EW)(()=>{const{size:n}=e,{common:{cubicBezierEaseInOut:t},self:{[(0,c.cF)("iconSize",n)]:o,[(0,c.cF)("fontSize",n)]:l,textColor:i,iconColor:r,extraTextColor:a}}=p.value;return{"--n-icon-size":o,"--n-font-size":l,"--n-bezier":t,"--n-text-color":i,"--n-icon-color":r,"--n-extra-text-color":a}}),m=t?(0,d.R)("empty",(0,o.EW)(()=>{let n="";const{size:t}=e;return n+=t[0],n}),b,e):void 0;return{mergedClsPrefix:n,mergedRenderIcon:g,localizedDescription:(0,o.EW)(()=>f.value||v.value.description),cssVars:t?void 0:b,themeClass:null===m||void 0===m?void 0:m.themeClass,onRender:null===m||void 0===m?void 0:m.onRender}},render(){const{$slots:e,mergedClsPrefix:n,onRender:t}=this;return null===t||void 0===t||t(),(0,o.h)("div",{class:[`${n}-empty`,this.themeClass],style:this.cssVars},this.showIcon?(0,o.h)("div",{class:`${n}-empty__icon`},e.icon?e.icon():(0,o.h)(l.A,{clsPrefix:n},{default:this.mergedRenderIcon})):null,this.showDescription?(0,o.h)("div",{class:`${n}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?(0,o.h)("div",{class:`${n}-empty__extra`},e.extra()):null)}})},19605:function(e,n,t){t.d(n,{A:function(){return V}});t(44114),t(18111),t(22489),t(7588),t(13579);var o=t(35862),l=t(11336),i=t(47794),r=t(76730),a=t(34707),s=t(37485),d=t(14072),c=t(56768),u=t(90144),h=t(45130),p=t(25293),v=t(97568),f=t(44124),g=(t(61701),t(55472)),b=t(39055),m=t(79882),w=t(88733),y=t(38741),x=t(25216),C=t(24006),R=t(96206),S=t(34350),F=t(3482);function z(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}var B=t(36921),T=t(92720),M=t(51825),k=t(69272),O=(0,S.c)([(0,S.cB)("base-selection","\n --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left);\n --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left);\n position: relative;\n z-index: auto;\n box-shadow: none;\n width: 100%;\n max-width: 100%;\n display: inline-block;\n vertical-align: bottom;\n border-radius: var(--n-border-radius);\n min-height: var(--n-height);\n line-height: 1.5;\n font-size: var(--n-font-size);\n ",[(0,S.cB)("base-loading","\n color: var(--n-loading-color);\n "),(0,S.cB)("base-selection-tags","min-height: var(--n-height);"),(0,S.cE)("border, state-border","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n border: var(--n-border);\n border-radius: inherit;\n transition:\n box-shadow .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n "),(0,S.cE)("state-border","\n z-index: 1;\n border-color: #0000;\n "),(0,S.cB)("base-suffix","\n cursor: pointer;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 10px;\n ",[(0,S.cE)("arrow","\n font-size: var(--n-arrow-size);\n color: var(--n-arrow-color);\n transition: color .3s var(--n-bezier);\n ")]),(0,S.cB)("base-selection-overlay","\n display: flex;\n align-items: center;\n white-space: nowrap;\n pointer-events: none;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: var(--n-padding-single);\n transition: color .3s var(--n-bezier);\n ",[(0,S.cE)("wrapper","\n flex-basis: 0;\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n ")]),(0,S.cB)("base-selection-placeholder","\n color: var(--n-placeholder-color);\n ",[(0,S.cE)("inner","\n max-width: 100%;\n overflow: hidden;\n ")]),(0,S.cB)("base-selection-tags","\n cursor: pointer;\n outline: none;\n box-sizing: border-box;\n position: relative;\n z-index: auto;\n display: flex;\n padding: var(--n-padding-multiple);\n flex-wrap: wrap;\n align-items: center;\n width: 100%;\n vertical-align: bottom;\n background-color: var(--n-color);\n border-radius: inherit;\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n "),(0,S.cB)("base-selection-label","\n height: var(--n-height);\n display: inline-flex;\n width: 100%;\n vertical-align: bottom;\n cursor: pointer;\n outline: none;\n z-index: auto;\n box-sizing: border-box;\n position: relative;\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n border-radius: inherit;\n background-color: var(--n-color);\n align-items: center;\n ",[(0,S.cB)("base-selection-input","\n font-size: inherit;\n line-height: inherit;\n outline: none;\n cursor: pointer;\n box-sizing: border-box;\n border:none;\n width: 100%;\n padding: var(--n-padding-single);\n background-color: #0000;\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n caret-color: var(--n-caret-color);\n ",[(0,S.cE)("content","\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap; \n ")]),(0,S.cE)("render-label","\n color: var(--n-text-color);\n ")]),(0,S.C5)("disabled",[(0,S.c)("&:hover",[(0,S.cE)("state-border","\n box-shadow: var(--n-box-shadow-hover);\n border: var(--n-border-hover);\n ")]),(0,S.cM)("focus",[(0,S.cE)("state-border","\n box-shadow: var(--n-box-shadow-focus);\n border: var(--n-border-focus);\n ")]),(0,S.cM)("active",[(0,S.cE)("state-border","\n box-shadow: var(--n-box-shadow-active);\n border: var(--n-border-active);\n "),(0,S.cB)("base-selection-label","background-color: var(--n-color-active);"),(0,S.cB)("base-selection-tags","background-color: var(--n-color-active);")])]),(0,S.cM)("disabled","cursor: not-allowed;",[(0,S.cE)("arrow","\n color: var(--n-arrow-color-disabled);\n "),(0,S.cB)("base-selection-label","\n cursor: not-allowed;\n background-color: var(--n-color-disabled);\n ",[(0,S.cB)("base-selection-input","\n cursor: not-allowed;\n color: var(--n-text-color-disabled);\n "),(0,S.cE)("render-label","\n color: var(--n-text-color-disabled);\n ")]),(0,S.cB)("base-selection-tags","\n cursor: not-allowed;\n background-color: var(--n-color-disabled);\n "),(0,S.cB)("base-selection-placeholder","\n cursor: not-allowed;\n color: var(--n-placeholder-color-disabled);\n ")]),(0,S.cB)("base-selection-input-tag","\n height: calc(var(--n-height) - 6px);\n line-height: calc(var(--n-height) - 6px);\n outline: none;\n display: none;\n position: relative;\n margin-bottom: 3px;\n max-width: 100%;\n vertical-align: bottom;\n ",[(0,S.cE)("input","\n font-size: inherit;\n font-family: inherit;\n min-width: 1px;\n padding: 0;\n background-color: #0000;\n outline: none;\n border: none;\n max-width: 100%;\n overflow: hidden;\n width: 1em;\n line-height: inherit;\n cursor: pointer;\n color: var(--n-text-color);\n caret-color: var(--n-caret-color);\n "),(0,S.cE)("mirror","\n position: absolute;\n left: 0;\n top: 0;\n white-space: pre;\n visibility: hidden;\n user-select: none;\n -webkit-user-select: none;\n opacity: 0;\n ")]),["warning","error"].map(e=>(0,S.cM)(`${e}-status`,[(0,S.cE)("state-border",`border: var(--n-border-${e});`),(0,S.C5)("disabled",[(0,S.c)("&:hover",[(0,S.cE)("state-border",`\n box-shadow: var(--n-box-shadow-hover-${e});\n border: var(--n-border-hover-${e});\n `)]),(0,S.cM)("active",[(0,S.cE)("state-border",`\n box-shadow: var(--n-box-shadow-active-${e});\n border: var(--n-border-active-${e});\n `),(0,S.cB)("base-selection-label",`background-color: var(--n-color-active-${e});`),(0,S.cB)("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),(0,S.cM)("focus",[(0,S.cE)("state-border",`\n box-shadow: var(--n-box-shadow-focus-${e});\n border: var(--n-border-focus-${e});\n `)])])]))]),(0,S.cB)("base-selection-popover","\n margin-bottom: -3px;\n display: flex;\n flex-wrap: wrap;\n margin-right: -8px;\n "),(0,S.cB)("base-selection-tag-wrapper","\n max-width: 100%;\n display: inline-flex;\n padding: 0 7px 3px 0;\n ",[(0,S.c)("&:last-child","padding-right: 0;"),(0,S.cB)("tag","\n font-size: 14px;\n max-width: 100%;\n ",[(0,S.cE)("content","\n line-height: 1.25;\n text-overflow: ellipsis;\n overflow: hidden;\n ")])])]),E=(0,c.pM)({name:"InternalSelection",props:Object.assign(Object.assign({},m.A.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:n,mergedRtlRef:t}=(0,w.Ay)(e),o=(0,y.I)("InternalSelection",t,n),l=(0,u.KR)(null),i=(0,u.KR)(null),r=(0,u.KR)(null),a=(0,u.KR)(null),s=(0,u.KR)(null),d=(0,u.KR)(null),h=(0,u.KR)(null),p=(0,u.KR)(null),v=(0,u.KR)(null),f=(0,u.KR)(null),b=(0,u.KR)(!1),F=(0,u.KR)(!1),z=(0,u.KR)(!1),B=(0,m.A)("InternalSelection","-internal-selection",O,k.A,e,(0,u.lW)(e,"clsPrefix")),T=(0,c.EW)(()=>e.clearable&&!e.disabled&&(z.value||e.active)),M=(0,c.EW)(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):(0,C.X)(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),E=(0,c.EW)(()=>{const n=e.selectedOption;if(n)return n[e.labelField]}),A=(0,c.EW)(()=>e.multiple?!(!Array.isArray(e.selectedOptions)||!e.selectedOptions.length):null!==e.selectedOption);function P(){var n;const{value:t}=l;if(t){const{value:o}=i;o&&(o.style.width=`${t.offsetWidth}px`,"responsive"!==e.maxTagCount&&(null===(n=v.value)||void 0===n||n.sync({showAllItemsBeforeCalculate:!1})))}}function I(){const{value:e}=f;e&&(e.style.display="none")}function W(){const{value:e}=f;e&&(e.style.display="inline-block")}function $(n){const{onFocus:t}=e;t&&t(n)}function L(n){const{onBlur:t}=e;t&&t(n)}function K(n){const{onDeleteOption:t}=e;t&&t(n)}function D(n){const{onClear:t}=e;t&&t(n)}function N(n){const{onPatternInput:t}=e;t&&t(n)}function _(e){var n;e.relatedTarget&&(null===(n=r.value)||void 0===n?void 0:n.contains(e.relatedTarget))||$(e)}function j(e){var n;(null===(n=r.value)||void 0===n?void 0:n.contains(e.relatedTarget))||L(e)}function V(e){D(e)}function H(){z.value=!0}function q(){z.value=!1}function U(n){e.active&&e.filterable&&n.target!==i.value&&n.preventDefault()}function G(e){K(e)}(0,c.wB)((0,u.lW)(e,"active"),e=>{e||I()}),(0,c.wB)((0,u.lW)(e,"pattern"),()=>{e.multiple&&(0,c.dY)(P)});const X=(0,u.KR)(!1);function Y(n){if("Backspace"===n.key&&!X.value&&!e.pattern.length){const{selectedOptions:n}=e;(null===n||void 0===n?void 0:n.length)&&G(n[n.length-1])}}let Q=null;function Z(n){const{value:t}=l;if(t){const e=n.target.value;t.textContent=e,P()}e.ignoreComposition&&X.value?Q=n:N(n)}function J(){X.value=!0}function ee(){X.value=!1,e.ignoreComposition&&N(Q),Q=null}function ne(n){var t;F.value=!0,null===(t=e.onPatternFocus)||void 0===t||t.call(e,n)}function te(n){var t;F.value=!1,null===(t=e.onPatternBlur)||void 0===t||t.call(e,n)}function oe(){var n,t;if(e.filterable)F.value=!1,null===(n=d.value)||void 0===n||n.blur(),null===(t=i.value)||void 0===t||t.blur();else if(e.multiple){const{value:e}=a;null===e||void 0===e||e.blur()}else{const{value:e}=s;null===e||void 0===e||e.blur()}}function le(){var n,t,o;e.filterable?(F.value=!1,null===(n=d.value)||void 0===n||n.focus()):e.multiple?null===(t=a.value)||void 0===t||t.focus():null===(o=s.value)||void 0===o||o.focus()}function ie(){const{value:e}=i;e&&(W(),e.focus())}function re(){const{value:e}=i;e&&e.blur()}function ae(e){const{value:n}=h;n&&n.setTextContent(`+${e}`)}function se(){const{value:e}=p;return e}function de(){return i.value}let ce=null;function ue(){null!==ce&&window.clearTimeout(ce)}function he(){e.active||(ue(),ce=window.setTimeout(()=>{A.value&&(b.value=!0)},100))}function pe(){ue()}function ve(e){e||(ue(),b.value=!1)}(0,c.wB)(A,e=>{e||(b.value=!1)}),(0,c.sV)(()=>{(0,c.nT)(()=>{const n=d.value;n&&(e.disabled?n.removeAttribute("tabindex"):n.tabIndex=F.value?-1:0)})}),(0,R.P)(r,e.onResize);const{inlineThemeDisabled:fe}=e,ge=(0,c.EW)(()=>{const{size:n}=e,{common:{cubicBezierEaseInOut:t},self:{fontWeight:o,borderRadius:l,color:i,placeholderColor:r,textColor:a,paddingSingle:s,paddingMultiple:d,caretColor:c,colorDisabled:u,textColorDisabled:h,placeholderColorDisabled:p,colorActive:v,boxShadowFocus:f,boxShadowActive:b,boxShadowHover:m,border:w,borderFocus:y,borderHover:x,borderActive:C,arrowColor:R,arrowColorDisabled:F,loadingColor:z,colorActiveWarning:T,boxShadowFocusWarning:M,boxShadowActiveWarning:k,boxShadowHoverWarning:O,borderWarning:E,borderFocusWarning:A,borderHoverWarning:P,borderActiveWarning:I,colorActiveError:W,boxShadowFocusError:$,boxShadowActiveError:L,boxShadowHoverError:K,borderError:D,borderFocusError:N,borderHoverError:_,borderActiveError:j,clearColor:V,clearColorHover:H,clearColorPressed:q,clearSize:U,arrowSize:G,[(0,S.cF)("height",n)]:X,[(0,S.cF)("fontSize",n)]:Y}}=B.value,Q=(0,g.Cq)(s),Z=(0,g.Cq)(d);return{"--n-bezier":t,"--n-border":w,"--n-border-active":C,"--n-border-focus":y,"--n-border-hover":x,"--n-border-radius":l,"--n-box-shadow-active":b,"--n-box-shadow-focus":f,"--n-box-shadow-hover":m,"--n-caret-color":c,"--n-color":i,"--n-color-active":v,"--n-color-disabled":u,"--n-font-size":Y,"--n-height":X,"--n-padding-single-top":Q.top,"--n-padding-multiple-top":Z.top,"--n-padding-single-right":Q.right,"--n-padding-multiple-right":Z.right,"--n-padding-single-left":Q.left,"--n-padding-multiple-left":Z.left,"--n-padding-single-bottom":Q.bottom,"--n-padding-multiple-bottom":Z.bottom,"--n-placeholder-color":r,"--n-placeholder-color-disabled":p,"--n-text-color":a,"--n-text-color-disabled":h,"--n-arrow-color":R,"--n-arrow-color-disabled":F,"--n-loading-color":z,"--n-color-active-warning":T,"--n-box-shadow-focus-warning":M,"--n-box-shadow-active-warning":k,"--n-box-shadow-hover-warning":O,"--n-border-warning":E,"--n-border-focus-warning":A,"--n-border-hover-warning":P,"--n-border-active-warning":I,"--n-color-active-error":W,"--n-box-shadow-focus-error":$,"--n-box-shadow-active-error":L,"--n-box-shadow-hover-error":K,"--n-border-error":D,"--n-border-focus-error":N,"--n-border-hover-error":_,"--n-border-active-error":j,"--n-clear-size":U,"--n-clear-color":V,"--n-clear-color-hover":H,"--n-clear-color-pressed":q,"--n-arrow-size":G,"--n-font-weight":o}}),be=fe?(0,x.R)("internal-selection",(0,c.EW)(()=>e.size[0]),ge,e):void 0;return{mergedTheme:B,mergedClearable:T,mergedClsPrefix:n,rtlEnabled:o,patternInputFocused:F,filterablePlaceholder:M,label:E,selected:A,showTagsPanel:b,isComposing:X,counterRef:h,counterWrapperRef:p,patternInputMirrorRef:l,patternInputRef:i,selfRef:r,multipleElRef:a,singleElRef:s,patternInputWrapperRef:d,overflowRef:v,inputTagElRef:f,handleMouseDown:U,handleFocusin:_,handleClear:V,handleMouseEnter:H,handleMouseLeave:q,handleDeleteOption:G,handlePatternKeyDown:Y,handlePatternInputInput:Z,handlePatternInputBlur:te,handlePatternInputFocus:ne,handleMouseEnterCounter:he,handleMouseLeaveCounter:pe,handleFocusout:j,handleCompositionEnd:ee,handleCompositionStart:J,onPopoverUpdateShow:ve,focus:le,focusInput:ie,blur:oe,blurInput:re,updateCounter:ae,getCounter:se,getTail:de,renderLabel:e.renderLabel,cssVars:fe?void 0:ge,themeClass:null===be||void 0===be?void 0:be.themeClass,onRender:null===be||void 0===be?void 0:be.onRender}},render(){const{status:e,multiple:n,size:t,disabled:o,filterable:l,maxTagCount:i,bordered:r,clsPrefix:a,ellipsisTagPopoverProps:s,onRender:d,renderTag:u,renderLabel:h}=this;null===d||void 0===d||d();const p="responsive"===i,v="number"===typeof i,f=p||v,g=(0,c.h)(F.m,null,{default:()=>(0,c.h)(M.A,{clsPrefix:a,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var e,n;return null===(n=(e=this.$slots).arrow)||void 0===n?void 0:n.call(e)}})});let m;if(n){const{labelField:e}=this,n=n=>(0,c.h)("div",{class:`${a}-base-selection-tag-wrapper`,key:n.value},u?u({option:n,handleClose:()=>{this.handleDeleteOption(n)}}):(0,c.h)(T.Ay,{size:t,closable:!n.disabled,disabled:o,onClose:()=>{this.handleDeleteOption(n)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>h?h(n,!0):(0,C.X)(n[e],n,!0)})),r=()=>(v?this.selectedOptions.slice(0,i):this.selectedOptions).map(n),d=l?(0,c.h)("div",{class:`${a}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},(0,c.h)("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:o,value:this.pattern,autofocus:this.autofocus,class:`${a}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),(0,c.h)("span",{ref:"patternInputMirrorRef",class:`${a}-base-selection-input-tag__mirror`},this.pattern)):null,w=p?()=>(0,c.h)("div",{class:`${a}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},(0,c.h)(T.Ay,{size:t,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:o})):void 0;let y;if(v){const e=this.selectedOptions.length-i;e>0&&(y=(0,c.h)("div",{class:`${a}-base-selection-tag-wrapper`,key:"__counter__"},(0,c.h)(T.Ay,{size:t,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:o},{default:()=>`+${e}`})))}const x=p?l?(0,c.h)(b.A,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:r,counter:w,tail:()=>d}):(0,c.h)(b.A,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:r,counter:w}):v&&y?r().concat(y):r(),R=f?()=>(0,c.h)("div",{class:`${a}-base-selection-popover`},p?r():this.selectedOptions.map(n)):void 0,S=f?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},s):null,F=!this.selected&&(!this.active||!this.pattern&&!this.isComposing),z=F?(0,c.h)("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`},(0,c.h)("div",{class:`${a}-base-selection-placeholder__inner`},this.placeholder)):null,M=l?(0,c.h)("div",{ref:"patternInputWrapperRef",class:`${a}-base-selection-tags`},x,p?null:d,g):(0,c.h)("div",{ref:"multipleElRef",class:`${a}-base-selection-tags`,tabindex:o?void 0:0},x,g);m=(0,c.h)(c.FK,null,f?(0,c.h)(B.Ay,Object.assign({},S,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>M,default:R}):M,z)}else if(l){const e=this.pattern||this.isComposing,n=this.active?!e:!this.selected,t=!this.active&&this.selected;m=(0,c.h)("div",{ref:"patternInputWrapperRef",class:`${a}-base-selection-label`,title:this.patternInputFocused?void 0:z(this.label)},(0,c.h)("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${a}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:o,disabled:o,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),t?(0,c.h)("div",{class:`${a}-base-selection-label__render-label ${a}-base-selection-overlay`,key:"input"},(0,c.h)("div",{class:`${a}-base-selection-overlay__wrapper`},u?u({option:this.selectedOption,handleClose:()=>{}}):h?h(this.selectedOption,!0):(0,C.X)(this.label,this.selectedOption,!0))):null,n?(0,c.h)("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`,key:"placeholder"},(0,c.h)("div",{class:`${a}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else m=(0,c.h)("div",{ref:"singleElRef",class:`${a}-base-selection-label`,tabindex:this.disabled?void 0:0},void 0!==this.label?(0,c.h)("div",{class:`${a}-base-selection-input`,title:z(this.label),key:"input"},(0,c.h)("div",{class:`${a}-base-selection-input__content`},u?u({option:this.selectedOption,handleClose:()=>{}}):h?h(this.selectedOption,!0):(0,C.X)(this.label,this.selectedOption,!0))):(0,c.h)("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`,key:"placeholder"},(0,c.h)("div",{class:`${a}-base-selection-placeholder__inner`},this.placeholder)),g);return(0,c.h)("div",{ref:"selfRef",class:[`${a}-base-selection`,this.rtlEnabled&&`${a}-base-selection--rtl`,this.themeClass,e&&`${a}-base-selection--${e}-status`,{[`${a}-base-selection--active`]:this.active,[`${a}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${a}-base-selection--disabled`]:this.disabled,[`${a}-base-selection--multiple`]:this.multiple,[`${a}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},m,r?(0,c.h)("div",{class:`${a}-base-selection__border`}):null,r?(0,c.h)("div",{class:`${a}-base-selection__state-border`}):null)}}),A=t(44650),P=t(82813),I=t(70151),W=t(62334),$=t(37901),L=t(98087),K=t(97031),D=t(33492),N=(0,S.c)([(0,S.cB)("select","\n z-index: auto;\n outline: none;\n width: 100%;\n position: relative;\n font-weight: var(--n-font-weight);\n "),(0,S.cB)("select-menu","\n margin: 4px 0;\n box-shadow: var(--n-menu-box-shadow);\n ",[(0,D.S)({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),_=t(28828);const j=Object.assign(Object.assign({},m.A.props),{to:W.$.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array});var V=(0,c.pM)({name:"Select",props:j,slots:Object,setup(e){const{mergedClsPrefixRef:n,mergedBorderedRef:t,namespaceRef:r,inlineThemeDisabled:h}=(0,w.Ay)(e),p=(0,m.A)("Select","-select",N,K.A,e,n),v=(0,u.KR)(e.defaultValue),f=(0,u.lW)(e,"value"),g=(0,a.A)(f,v),b=(0,u.KR)(!1),y=(0,u.KR)(""),C=(0,s.A)(e,["items","options"]),R=(0,u.KR)([]),S=(0,u.KR)([]),F=(0,c.EW)(()=>S.value.concat(R.value).concat(C.value)),z=(0,c.EW)(()=>{const{filter:n}=e;if(n)return n;const{labelField:t,valueField:o}=e;return(e,n)=>{if(!n)return!1;const l=n[t];if("string"===typeof l)return(0,_.lT)(e,l);const i=n[o];return"string"===typeof i?(0,_.lT)(e,i):"number"===typeof i&&(0,_.lT)(e,String(i))}}),B=(0,c.EW)(()=>{if(e.remote)return C.value;{const{value:n}=F,{value:t}=y;return t.length&&e.filterable?(0,_.f2)(n,z.value,t,e.childrenField):n}}),T=(0,c.EW)(()=>{const{valueField:n,childrenField:t}=e,o=(0,_.ag)(n,t);return(0,i.G)(B.value,o)}),M=(0,c.EW)(()=>(0,_.Tr)(F.value,e.valueField,e.childrenField)),k=(0,u.KR)(!1),O=(0,a.A)((0,u.lW)(e,"show"),k),E=(0,u.KR)(null),A=(0,u.KR)(null),D=(0,u.KR)(null),{localeRef:j}=(0,P.A)("Select"),V=(0,c.EW)(()=>{var n;return null!==(n=e.placeholder)&&void 0!==n?n:j.value.placeholder}),H=[],q=(0,u.KR)(new Map),U=(0,c.EW)(()=>{const{fallbackOption:n}=e;if(void 0===n){const{labelField:n,valueField:t}=e;return e=>({[n]:String(e),[t]:e})}return!1!==n&&(e=>Object.assign(n(e),{value:e}))});function G(n){const t=e.remote,{value:o}=q,{value:l}=M,{value:i}=U,r=[];return n.forEach(e=>{if(l.has(e))r.push(l.get(e));else if(t&&o.has(e))r.push(o.get(e));else if(i){const n=i(e);n&&r.push(n)}}),r}const X=(0,c.EW)(()=>{if(e.multiple){const{value:e}=g;return Array.isArray(e)?G(e):[]}return null}),Y=(0,c.EW)(()=>{const{value:n}=g;return e.multiple||Array.isArray(n)||null===n?null:G([n])[0]||null}),Q=(0,I.A)(e),{mergedSizeRef:Z,mergedDisabledRef:J,mergedStatusRef:ee}=Q;function ne(n,t){const{onChange:o,"onUpdate:value":l,onUpdateValue:i}=e,{nTriggerFormChange:r,nTriggerFormInput:a}=Q;o&&(0,$.T)(o,n,t),i&&(0,$.T)(i,n,t),l&&(0,$.T)(l,n,t),v.value=n,r(),a()}function te(n){const{onBlur:t}=e,{nTriggerFormBlur:o}=Q;t&&(0,$.T)(t,n),o()}function oe(){const{onClear:n}=e;n&&(0,$.T)(n)}function le(n){const{onFocus:t,showOnFocus:o}=e,{nTriggerFormFocus:l}=Q;t&&(0,$.T)(t,n),l(),o&&de()}function ie(n){const{onSearch:t}=e;t&&(0,$.T)(t,n)}function re(n){const{onScroll:t}=e;t&&(0,$.T)(t,n)}function ae(){var n;const{remote:t,multiple:o}=e;if(t){const{value:t}=q;if(o){const{valueField:o}=e;null===(n=X.value)||void 0===n||n.forEach(e=>{t.set(e[o],e)})}else{const n=Y.value;n&&t.set(n[e.valueField],n)}}}function se(n){const{onUpdateShow:t,"onUpdate:show":o}=e;t&&(0,$.T)(t,n),o&&(0,$.T)(o,n),k.value=n}function de(){J.value||(se(!0),k.value=!0,e.filterable&&Ee())}function ce(){se(!1)}function ue(){y.value="",S.value=H}const he=(0,u.KR)(!1);function pe(){e.filterable&&(he.value=!0)}function ve(){e.filterable&&(he.value=!1,O.value||ue())}function fe(){J.value||(O.value?e.filterable?Ee():ce():de())}function ge(e){var n,t;(null===(t=null===(n=D.value)||void 0===n?void 0:n.selfRef)||void 0===t?void 0:t.contains(e.relatedTarget))||(b.value=!1,te(e),ce())}function be(e){le(e),b.value=!0}function me(){b.value=!0}function we(e){var n;(null===(n=E.value)||void 0===n?void 0:n.$el.contains(e.relatedTarget))||(b.value=!1,te(e),ce())}function ye(){var e;null===(e=E.value)||void 0===e||e.focus(),ce()}function xe(e){var n;O.value&&((null===(n=E.value)||void 0===n?void 0:n.$el.contains((0,o.b)(e)))||ce())}function Ce(n){if(!Array.isArray(n))return[];if(U.value)return Array.from(n);{const{remote:t}=e,{value:o}=M;if(t){const{value:e}=q;return n.filter(n=>o.has(n)||e.has(n))}return n.filter(e=>o.has(e))}}function Re(e){Se(e.rawNode)}function Se(n){if(J.value)return;const{tag:t,remote:o,clearFilterAfterSelect:l,valueField:i}=e;if(t&&!o){const{value:e}=S,n=e[0]||null;if(n){const e=R.value;e.length?e.push(n):R.value=[n],S.value=H}}if(o&&q.value.set(n[i],n),e.multiple){const e=Ce(g.value),r=e.findIndex(e=>e===n[i]);if(~r){if(e.splice(r,1),t&&!o){const e=Fe(n[i]);~e&&(R.value.splice(e,1),l&&(y.value=""))}}else e.push(n[i]),l&&(y.value="");ne(e,G(e))}else{if(t&&!o){const e=Fe(n[i]);R.value=~e?[R.value[e]]:H}Oe(),ce(),ne(n[i],n)}}function Fe(n){const t=R.value;return t.findIndex(t=>t[e.valueField]===n)}function ze(n){O.value||de();const{value:t}=n.target;y.value=t;const{tag:o,remote:l}=e;if(ie(t),o&&!l){if(!t)return void(S.value=H);const{onCreate:n}=e,o=n?n(t):{[e.labelField]:t,[e.valueField]:t},{valueField:l,labelField:i}=e;C.value.some(e=>e[l]===o[l]||e[i]===o[i])||R.value.some(e=>e[l]===o[l]||e[i]===o[i])?S.value=H:S.value=[o]}}function Be(n){n.stopPropagation();const{multiple:t}=e;!t&&e.filterable&&ce(),oe(),t?ne([],[]):ne(null,null)}function Te(e){(0,l.d)(e,"action")||(0,l.d)(e,"empty")||(0,l.d)(e,"header")||e.preventDefault()}function Me(e){re(e)}function ke(n){var t,o,l,i,r;if(e.keyboard)switch(n.key){case" ":if(e.filterable)break;n.preventDefault();case"Enter":if(!(null===(t=E.value)||void 0===t?void 0:t.isComposing))if(O.value){const n=null===(o=D.value)||void 0===o?void 0:o.getPendingTmNode();n?Re(n):e.filterable||(ce(),Oe())}else if(de(),e.tag&&he.value){const n=S.value[0];if(n){const t=n[e.valueField],{value:o}=g;e.multiple&&Array.isArray(o)&&o.includes(t)||Se(n)}}n.preventDefault();break;case"ArrowUp":if(n.preventDefault(),e.loading)return;O.value&&(null===(l=D.value)||void 0===l||l.prev());break;case"ArrowDown":if(n.preventDefault(),e.loading)return;O.value?null===(i=D.value)||void 0===i||i.next():de();break;case"Escape":O.value&&((0,L.z)(n),ce()),null===(r=E.value)||void 0===r||r.focus();break}else n.preventDefault()}function Oe(){var e;null===(e=E.value)||void 0===e||e.focus()}function Ee(){var e;null===(e=E.value)||void 0===e||e.focusInput()}function Ae(){var e;O.value&&(null===(e=A.value)||void 0===e||e.syncPosition())}ae(),(0,c.wB)((0,u.lW)(e,"options"),ae);const Pe={focus:()=>{var e;null===(e=E.value)||void 0===e||e.focus()},focusInput:()=>{var e;null===(e=E.value)||void 0===e||e.focusInput()},blur:()=>{var e;null===(e=E.value)||void 0===e||e.blur()},blurInput:()=>{var e;null===(e=E.value)||void 0===e||e.blurInput()}},Ie=(0,c.EW)(()=>{const{self:{menuBoxShadow:e}}=p.value;return{"--n-menu-box-shadow":e}}),We=h?(0,x.R)("select",void 0,Ie,e):void 0;return Object.assign(Object.assign({},Pe),{mergedStatus:ee,mergedClsPrefix:n,mergedBordered:t,namespace:r,treeMate:T,isMounted:(0,d.A)(),triggerRef:E,menuRef:D,pattern:y,uncontrolledShow:k,mergedShow:O,adjustedTo:(0,W.$)(e),uncontrolledValue:v,mergedValue:g,followerRef:A,localizedPlaceholder:V,selectedOption:Y,selectedOptions:X,mergedSize:Z,mergedDisabled:J,focused:b,activeWithoutMenuOpen:he,inlineThemeDisabled:h,onTriggerInputFocus:pe,onTriggerInputBlur:ve,handleTriggerOrMenuResize:Ae,handleMenuFocus:me,handleMenuBlur:we,handleMenuTabOut:ye,handleTriggerClick:fe,handleToggle:Re,handleDeleteOption:Se,handlePatternInput:ze,handleClear:Be,handleTriggerBlur:ge,handleTriggerFocus:be,handleKeydown:ke,handleMenuAfterLeave:ue,handleMenuClickOutside:xe,handleMenuScroll:Me,handleMenuKeydown:ke,handleMenuMousedown:Te,mergedTheme:p,cssVars:h?void 0:Ie,themeClass:null===We||void 0===We?void 0:We.themeClass,onRender:null===We||void 0===We?void 0:We.onRender})},render(){return(0,c.h)("div",{class:`${this.mergedClsPrefix}-select`},(0,c.h)(p.A,null,{default:()=>[(0,c.h)(v.A,null,{default:()=>(0,c.h)(E,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,n;return[null===(n=(e=this.$slots).arrow)||void 0===n?void 0:n.call(e)]}})}),(0,c.h)(f.A,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===W.$.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>(0,c.h)(h.eB,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,n,t;return this.mergedShow||"show"===this.displayDirective?(null===(e=this.onRender)||void 0===e||e.call(this),(0,c.bo)((0,c.h)(A.A,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,null===(n=this.menuProps)||void 0===n?void 0:n.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[null===(t=this.menuProps)||void 0===t?void 0:t.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var e,n;return[null===(n=(e=this.$slots).empty)||void 0===n?void 0:n.call(e)]},header:()=>{var e,n;return[null===(n=(e=this.$slots).header)||void 0===n?void 0:n.call(e)]},action:()=>{var e,n;return[null===(n=(e=this.$slots).action)||void 0===n?void 0:n.call(e)]}}),"show"===this.displayDirective?[[h.aG,this.mergedShow],[r.A,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[r.A,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}})},28828:function(e,n,t){t.d(n,{Tr:function(){return s},ag:function(){return r},f2:function(){return a},lT:function(){return i}});t(44114),t(18111),t(7588);function o(e){return"group"===e.type}function l(e){return"ignored"===e.type}function i(e,n){try{return!!(1+n.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch(t){return!1}}function r(e,n){const t={getIsGroup:o,getIgnored:l,getKey(n){return o(n)?n.name||n.key||"key-required":n[e]},getChildren(e){return e[n]}};return t}function a(e,n,t,i){if(!n)return e;function r(e){if(!Array.isArray(e))return[];const a=[];for(const s of e)if(o(s)){const e=r(s[i]);e.length&&a.push(Object.assign({},s,{[i]:e}))}else{if(l(s))continue;n(t,s)&&a.push(s)}return a}return r(e)}function s(e,n,t){const l=new Map;return e.forEach(e=>{o(e)?e[t].forEach(e=>{l.set(e[n],e)}):l.set(e[n],e)}),l}},44650:function(e,n,t){t.d(n,{A:function(){return G}});t(18111),t(61701),t(17642),t(58004),t(33853),t(45876),t(32475),t(15024),t(31698);var o=t(55472),l=t(11336),i=t(44317),r=t(56768),a=t(90144),s=(t(44114),t(7588),t(58172)),d=t(24305),c=t(51565),u=t(73578),h=t(36874);function p(e){return e&-e}class v{constructor(e,n){this.l=e,this.min=n;const t=new Array(e+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let l=e*t;while(e>0)l+=n[e],e-=p(e);return l}getBound(e){let n=0,t=this.l;while(t>n){const o=Math.floor((n+t)/2),l=this.sum(o);if(l>e)t=o;else{if(!(l{const n=e.value;if(0===n.length)return null;const t=new v(n.length,0);return n.forEach((e,n)=>{t.add(n,e.width)}),t}),s=(0,d.A)(()=>{const e=i.value;return null!==e?Math.max(e.getBound(l.value)-1,0):0}),c=e=>{const n=i.value;return null!==n?n.sum(e):0},u=(0,d.A)(()=>{const n=i.value;return null!==n?Math.min(n.getBound(l.value+o.value)+1,e.value.length-1):0});return(0,r.Gt)(w,{startIndexRef:s,endIndexRef:u,columnsRef:e,renderColRef:n,renderItemWithColsRef:t,getLeft:c}),{listWidthRef:o,scrollLeftRef:l}}const x=(0,r.pM)({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:n,columnsRef:t,getLeft:o,renderColRef:l,renderItemWithColsRef:i}=(0,r.WQ)(w);return{startIndex:e,endIndex:n,columns:t,renderCol:l,renderItemWithCols:i,getLeft:o}},render(){const{startIndex:e,endIndex:n,columns:t,renderCol:o,renderItemWithCols:l,getLeft:i,item:r}=this;if(null!=l)return l({itemIndex:this.index,startColIndex:e,endColIndex:n,allColumns:t,item:r,getLeft:i});if(null!=o){const l=[];for(let a=e;a<=n;++a){const e=t[a];l.push(o({column:e,left:i(a),item:r}))}return l}return null}}),C=(0,h.c)(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[(0,h.c)("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[(0,h.c)("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]);var R=(0,r.pM)({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const n=(0,c.h)();C.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:h.r,ssr:n}),(0,r.sV)(()=>{const{defaultScrollIndex:n,defaultScrollKey:t}=e;void 0!==n&&null!==n?T({index:n}):void 0!==t&&null!==t&&T({key:t})});let t=!1,l=!1;(0,r.n)(()=>{t=!1,l?T({top:F.value,left:p.value}):l=!0}),(0,r.Y4)(()=>{t=!0,l||(l=!0)});const i=(0,d.A)(()=>{if(null==e.renderCol&&null==e.renderItemWithCols)return;if(0===e.columns.length)return;let n=0;return e.columns.forEach(e=>{n+=e.width}),n}),u=(0,r.EW)(()=>{const n=new Map,{keyField:t}=e;return e.items.forEach((e,o)=>{n.set(e[t],o)}),n}),{scrollLeftRef:p,listWidthRef:f}=y({columnsRef:(0,a.lW)(e,"columns"),renderColRef:(0,a.lW)(e,"renderCol"),renderItemWithColsRef:(0,a.lW)(e,"renderItemWithCols")}),g=(0,a.KR)(null),w=(0,a.KR)(void 0),x=new Map,R=(0,r.EW)(()=>{const{items:n,itemSize:t,keyField:o}=e,l=new v(n.length,t);return n.forEach((e,n)=>{const t=e[o],i=x.get(t);void 0!==i&&l.add(n,i)}),l}),S=(0,a.KR)(0),F=(0,a.KR)(0),z=(0,d.A)(()=>Math.max(R.value.getBound(F.value-(0,o.eV)(e.paddingTop))-1,0)),B=(0,r.EW)(()=>{const{value:n}=w;if(void 0===n)return[];const{items:t,itemSize:o}=e,l=z.value,i=Math.min(l+Math.ceil(n/o+1),t.length-1),r=[];for(let e=l;e<=i;++e)r.push(t[e]);return r}),T=(e,n)=>{if("number"===typeof e)return void E(e,n,"auto");const{left:t,top:o,index:l,key:i,position:r,behavior:a,debounce:s=!0}=e;if(void 0!==t||void 0!==o)E(t,o,a);else if(void 0!==l)O(l,a,s);else if(void 0!==i){const e=u.value.get(i);void 0!==e&&O(e,a,s)}else"bottom"===r?E(0,Number.MAX_SAFE_INTEGER,a):"top"===r&&E(0,0,a)};let M,k=null;function O(n,t,l){const{value:i}=R,r=i.sum(n)+(0,o.eV)(e.paddingTop);if(l){M=n,null!==k&&window.clearTimeout(k),k=window.setTimeout(()=>{M=void 0,k=null},16);const{scrollTop:e,offsetHeight:o}=g.value;if(r>e){const l=i.get(n);r+l<=e+o||g.value.scrollTo({left:0,top:r+l-o,behavior:t})}else g.value.scrollTo({left:0,top:r,behavior:t})}else g.value.scrollTo({left:0,top:r,behavior:t})}function E(e,n,t){g.value.scrollTo({left:e,top:n,behavior:t})}function A(n,o){var l,i,r;if(t)return;if(e.ignoreItemResize)return;if(D(o.target))return;const{value:a}=R,s=u.value.get(n),d=a.get(s),c=null!==(r=null===(i=null===(l=o.borderBoxSize)||void 0===l?void 0:l[0])||void 0===i?void 0:i.blockSize)&&void 0!==r?r:o.contentRect.height;if(c===d)return;const h=c-e.itemSize;0===h?x.delete(n):x.set(n,c-e.itemSize);const p=c-d;if(0===p)return;a.add(s,p);const v=g.value;if(null!=v){if(void 0===M){const e=a.sum(s);v.scrollTop>e&&v.scrollBy(0,p)}else if(sv.scrollTop+v.offsetHeight&&v.scrollBy(0,p)}K()}S.value++}const P=!b();let I=!1;function W(n){var t;null===(t=e.onScroll)||void 0===t||t.call(e,n),P&&I||K()}function $(n){var t;if(null===(t=e.onWheel)||void 0===t||t.call(e,n),P){const e=g.value;if(null!=e){if(0===n.deltaX){if(0===e.scrollTop&&n.deltaY<=0)return;if(e.scrollTop+e.offsetHeight>=e.scrollHeight&&n.deltaY>=0)return}n.preventDefault(),e.scrollTop+=n.deltaY/m(),e.scrollLeft+=n.deltaX/m(),K(),I=!0,(0,s.B)(()=>{I=!1})}}}function L(n){if(t)return;if(D(n.target))return;if(null==e.renderCol&&null==e.renderItemWithCols){if(n.contentRect.height===w.value)return}else if(n.contentRect.height===w.value&&n.contentRect.width===f.value)return;w.value=n.contentRect.height,f.value=n.contentRect.width;const{onResize:o}=e;void 0!==o&&o(n)}function K(){const{value:e}=g;null!=e&&(F.value=e.scrollTop,p.value=e.scrollLeft)}function D(e){let n=e;while(null!==n){if("none"===n.style.display)return!0;n=n.parentElement}return!1}return{listHeight:w,listStyle:{overflow:"auto"},keyToIndex:u,itemsStyle:(0,r.EW)(()=>{const{itemResizable:n}=e,t=(0,o.Cw)(R.value.sum());return S.value,[e.itemsStyle,{boxSizing:"content-box",width:(0,o.Cw)(i.value),height:n?"":t,minHeight:n?t:"",paddingTop:(0,o.Cw)(e.paddingTop),paddingBottom:(0,o.Cw)(e.paddingBottom)}]}),visibleItemsStyle:(0,r.EW)(()=>(S.value,{transform:`translateY(${(0,o.Cw)(R.value.sum(z.value))})`})),viewportItems:B,listElRef:g,itemsElRef:(0,a.KR)(null),scrollTo:T,handleListResize:L,handleListScroll:W,handleListWheel:$,handleItemResize:A}},render(){const{itemResizable:e,keyField:n,keyToIndex:t,visibleItemsTag:o}=this;return(0,r.h)(u.A,{onResize:this.handleListResize},{default:()=>{var l,i;return(0,r.h)("div",(0,r.v6)(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[0!==this.items.length?(0,r.h)("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[(0,r.h)(o,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:o,renderItemWithCols:l}=this;return this.viewportItems.map(i=>{const a=i[n],s=t.get(a),d=null!=o?(0,r.h)(x,{index:s,item:i}):void 0,c=null!=l?(0,r.h)(x,{index:s,item:i}):void 0,h=this.$slots.default({item:i,renderedCols:d,renderedItemWithCols:c,index:s})[0];return e?(0,r.h)(u.A,{key:a,onResize:e=>this.handleItemResize(a,e)},{default:()=>h}):(h.key=a,h)})}})]):null===(i=(l=this.$slots).empty)||void 0===i?void 0:i.call(l)])}})}}),S=t(79882),F=t(88733),z=t(38741),B=t(25216),T=t(96206),M=t(25972),k=t(34350),O=t(9845),E=(0,r.pM)({props:{onFocus:Function,onBlur:Function},setup(e){return()=>(0,r.h)("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),A=E,P=t(21905),I=t(16787),W=t(58032),$=t(47101),L=t(24006),K=(0,r.pM)({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:n,labelFieldRef:t,nodePropsRef:o}=(0,r.WQ)($.H);return{labelField:t,nodeProps:o,renderLabel:e,renderOption:n}},render(){const{clsPrefix:e,renderLabel:n,renderOption:t,nodeProps:o,tmNode:{rawNode:l}}=this,i=null===o||void 0===o?void 0:o(l),a=n?n(l,!1):(0,L.X)(l[this.labelField],l,!1),s=(0,r.h)("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,null===i||void 0===i?void 0:i.class]}),a);return l.render?l.render({node:s,option:l}):t?t({node:s,option:l,selected:!1}):s}}),D=t(45130),N=t(94035),_=t(84279),j=(0,r.pM)({name:"Checkmark",render(){return(0,r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},(0,r.h)("g",{fill:"none"},(0,r.h)("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}});function V(e,n){return(0,r.h)(D.eB,{name:"fade-in-scale-up-transition"},{default:()=>e?(0,r.h)(_.A,{clsPrefix:n,class:`${n}-base-select-option__check`},{default:()=>(0,r.h)(j)}):null})}var H=(0,r.pM)({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:n,pendingTmNodeRef:t,multipleRef:o,valueSetRef:l,renderLabelRef:i,renderOptionRef:a,labelFieldRef:s,valueFieldRef:c,showCheckmarkRef:u,nodePropsRef:h,handleOptionClick:p,handleOptionMouseEnter:v}=(0,r.WQ)($.H),f=(0,d.A)(()=>{const{value:n}=t;return!!n&&e.tmNode.key===n.key});function g(n){const{tmNode:t}=e;t.disabled||p(n,t)}function b(n){const{tmNode:t}=e;t.disabled||v(n,t)}function m(n){const{tmNode:t}=e,{value:o}=f;t.disabled||o||v(n,t)}return{multiple:o,isGrouped:(0,d.A)(()=>{const{tmNode:n}=e,{parent:t}=n;return t&&"group"===t.rawNode.type}),showCheckmark:u,nodeProps:h,isPending:f,isSelected:(0,d.A)(()=>{const{value:t}=n,{value:i}=o;if(null===t)return!1;const r=e.tmNode.rawNode[c.value];if(i){const{value:e}=l;return e.has(r)}return t===r}),labelField:s,renderLabel:i,renderOption:a,handleMouseMove:m,handleMouseEnter:b,handleClick:g}},render(){const{clsPrefix:e,tmNode:{rawNode:n},isSelected:t,isPending:o,isGrouped:l,showCheckmark:i,nodeProps:a,renderOption:s,renderLabel:d,handleClick:c,handleMouseEnter:u,handleMouseMove:h}=this,p=V(t,e),v=d?[d(n,t),i&&p]:[(0,L.X)(n[this.labelField],n,t),i&&p],f=null===a||void 0===a?void 0:a(n),g=(0,r.h)("div",Object.assign({},f,{class:[`${e}-base-select-option`,n.class,null===f||void 0===f?void 0:f.class,{[`${e}-base-select-option--disabled`]:n.disabled,[`${e}-base-select-option--selected`]:t,[`${e}-base-select-option--grouped`]:l,[`${e}-base-select-option--pending`]:o,[`${e}-base-select-option--show-checkmark`]:i}],style:[(null===f||void 0===f?void 0:f.style)||"",n.style||""],onClick:(0,N.u)([c,null===f||void 0===f?void 0:f.onClick]),onMouseenter:(0,N.u)([u,null===f||void 0===f?void 0:f.onMouseenter]),onMousemove:(0,N.u)([h,null===f||void 0===f?void 0:f.onMousemove])}),(0,r.h)("div",{class:`${e}-base-select-option__content`},v));return n.render?n.render({node:g,option:n,selected:t}):s?s({node:g,option:n,selected:t}):g}}),q=t(33492),U=(0,k.cB)("base-select-menu","\n line-height: 1.5;\n outline: none;\n z-index: 0;\n position: relative;\n border-radius: var(--n-border-radius);\n transition:\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n background-color: var(--n-color);\n",[(0,k.cB)("scrollbar","\n max-height: var(--n-height);\n "),(0,k.cB)("virtual-list","\n max-height: var(--n-height);\n "),(0,k.cB)("base-select-option","\n min-height: var(--n-option-height);\n font-size: var(--n-option-font-size);\n display: flex;\n align-items: center;\n ",[(0,k.cE)("content","\n z-index: 1;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n ")]),(0,k.cB)("base-select-group-header","\n min-height: var(--n-option-height);\n font-size: .93em;\n display: flex;\n align-items: center;\n "),(0,k.cB)("base-select-menu-option-wrapper","\n position: relative;\n width: 100%;\n "),(0,k.cE)("loading, empty","\n display: flex;\n padding: 12px 32px;\n flex: 1;\n justify-content: center;\n "),(0,k.cE)("loading","\n color: var(--n-loading-color);\n font-size: var(--n-loading-size);\n "),(0,k.cE)("header","\n padding: 8px var(--n-option-padding-left);\n font-size: var(--n-option-font-size);\n transition: \n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-action-divider-color);\n color: var(--n-action-text-color);\n "),(0,k.cE)("action","\n padding: 8px var(--n-option-padding-left);\n font-size: var(--n-option-font-size);\n transition: \n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n border-top: 1px solid var(--n-action-divider-color);\n color: var(--n-action-text-color);\n "),(0,k.cB)("base-select-group-header","\n position: relative;\n cursor: default;\n padding: var(--n-option-padding);\n color: var(--n-group-header-text-color);\n "),(0,k.cB)("base-select-option","\n cursor: pointer;\n position: relative;\n padding: var(--n-option-padding);\n transition:\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n box-sizing: border-box;\n color: var(--n-option-text-color);\n opacity: 1;\n ",[(0,k.cM)("show-checkmark","\n padding-right: calc(var(--n-option-padding-right) + 20px);\n "),(0,k.c)("&::before",'\n content: "";\n position: absolute;\n left: 4px;\n right: 4px;\n top: 0;\n bottom: 0;\n border-radius: var(--n-border-radius);\n transition: background-color .3s var(--n-bezier);\n '),(0,k.c)("&:active","\n color: var(--n-option-text-color-pressed);\n "),(0,k.cM)("grouped","\n padding-left: calc(var(--n-option-padding-left) * 1.5);\n "),(0,k.cM)("pending",[(0,k.c)("&::before","\n background-color: var(--n-option-color-pending);\n ")]),(0,k.cM)("selected","\n color: var(--n-option-text-color-active);\n ",[(0,k.c)("&::before","\n background-color: var(--n-option-color-active);\n "),(0,k.cM)("pending",[(0,k.c)("&::before","\n background-color: var(--n-option-color-active-pending);\n ")])]),(0,k.cM)("disabled","\n cursor: not-allowed;\n ",[(0,k.C5)("selected","\n color: var(--n-option-text-color-disabled);\n "),(0,k.cM)("selected","\n opacity: var(--n-option-opacity-disabled);\n ")]),(0,k.cE)("check","\n font-size: 16px;\n position: absolute;\n right: calc(var(--n-option-padding-right) - 4px);\n top: calc(50% - 7px);\n color: var(--n-option-check-color);\n transition: color .3s var(--n-bezier);\n ",[(0,q.S)({enterScale:"0.5"})])])]),G=(0,r.pM)({name:"InternalSelectMenu",props:Object.assign(Object.assign({},S.A.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:n,mergedRtlRef:t}=(0,F.Ay)(e),s=(0,z.I)("InternalSelectMenu",t,n),d=(0,S.A)("InternalSelectMenu","-internal-select-menu",U,W.A,e,(0,a.lW)(e,"clsPrefix")),c=(0,a.KR)(null),u=(0,a.KR)(null),h=(0,a.KR)(null),p=(0,r.EW)(()=>e.treeMate.getFlattenedNodes()),v=(0,r.EW)(()=>(0,i.KU)(p.value)),f=(0,a.KR)(null);function g(){const{treeMate:n}=e;let t=null;const{value:o}=e;null===o?t=n.getFirstAvailableNode():(t=e.multiple?n.getNode((o||[])[(o||[]).length-1]):n.getNode(o),t&&!t.disabled||(t=n.getFirstAvailableNode())),j(t||null)}function b(){const{value:n}=f;n&&!e.treeMate.getNode(n.key)&&(f.value=null)}let m;(0,r.wB)(()=>e.show,n=>{n?m=(0,r.wB)(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?g():b(),(0,r.dY)(V)):b()},{immediate:!0}):null===m||void 0===m||m()},{immediate:!0}),(0,r.xo)(()=>{null===m||void 0===m||m()});const w=(0,r.EW)(()=>(0,o.eV)(d.value.self[(0,k.cF)("optionHeight",e.size)])),y=(0,r.EW)(()=>(0,o.Cq)(d.value.self[(0,k.cF)("padding",e.size)])),x=(0,r.EW)(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),C=(0,r.EW)(()=>{const e=p.value;return e&&0===e.length});function R(n){const{onToggle:t}=e;t&&t(n)}function M(n){const{onScroll:t}=e;t&&t(n)}function O(e){var n;null===(n=h.value)||void 0===n||n.sync(),M(e)}function E(){var e;null===(e=h.value)||void 0===e||e.sync()}function A(){const{value:e}=f;return e||null}function P(e,n){n.disabled||j(n,!1)}function I(e,n){n.disabled||R(n)}function L(n){var t;(0,l.d)(n,"action")||null===(t=e.onKeyup)||void 0===t||t.call(e,n)}function K(n){var t;(0,l.d)(n,"action")||null===(t=e.onKeydown)||void 0===t||t.call(e,n)}function D(n){var t;null===(t=e.onMousedown)||void 0===t||t.call(e,n),e.focusable||n.preventDefault()}function N(){const{value:e}=f;e&&j(e.getNext({loop:!0}),!0)}function _(){const{value:e}=f;e&&j(e.getPrev({loop:!0}),!0)}function j(e,n=!1){f.value=e,n&&V()}function V(){var n,t;const o=f.value;if(!o)return;const l=v.value(o.key);null!==l&&(e.virtualScroll?null===(n=u.value)||void 0===n||n.scrollTo({index:l}):null===(t=h.value)||void 0===t||t.scrollTo({index:l,elSize:w.value}))}function H(n){var t,o;(null===(t=c.value)||void 0===t?void 0:t.contains(n.target))&&(null===(o=e.onFocus)||void 0===o||o.call(e,n))}function q(n){var t,o;(null===(t=c.value)||void 0===t?void 0:t.contains(n.relatedTarget))||null===(o=e.onBlur)||void 0===o||o.call(e,n)}(0,r.Gt)($.H,{handleOptionMouseEnter:P,handleOptionClick:I,valueSetRef:x,pendingTmNodeRef:f,nodePropsRef:(0,a.lW)(e,"nodeProps"),showCheckmarkRef:(0,a.lW)(e,"showCheckmark"),multipleRef:(0,a.lW)(e,"multiple"),valueRef:(0,a.lW)(e,"value"),renderLabelRef:(0,a.lW)(e,"renderLabel"),renderOptionRef:(0,a.lW)(e,"renderOption"),labelFieldRef:(0,a.lW)(e,"labelField"),valueFieldRef:(0,a.lW)(e,"valueField")}),(0,r.Gt)($.v,c),(0,r.sV)(()=>{const{value:e}=h;e&&e.sync()});const G=(0,r.EW)(()=>{const{size:n}=e,{common:{cubicBezierEaseInOut:t},self:{height:l,borderRadius:i,color:r,groupHeaderTextColor:a,actionDividerColor:s,optionTextColorPressed:c,optionTextColor:u,optionTextColorDisabled:h,optionTextColorActive:p,optionOpacityDisabled:v,optionCheckColor:f,actionTextColor:g,optionColorPending:b,optionColorActive:m,loadingColor:w,loadingSize:y,optionColorActivePending:x,[(0,k.cF)("optionFontSize",n)]:C,[(0,k.cF)("optionHeight",n)]:R,[(0,k.cF)("optionPadding",n)]:S}}=d.value;return{"--n-height":l,"--n-action-divider-color":s,"--n-action-text-color":g,"--n-bezier":t,"--n-border-radius":i,"--n-color":r,"--n-option-font-size":C,"--n-group-header-text-color":a,"--n-option-check-color":f,"--n-option-color-pending":b,"--n-option-color-active":m,"--n-option-color-active-pending":x,"--n-option-height":R,"--n-option-opacity-disabled":v,"--n-option-text-color":u,"--n-option-text-color-active":p,"--n-option-text-color-disabled":h,"--n-option-text-color-pressed":c,"--n-option-padding":S,"--n-option-padding-left":(0,o.Cq)(S,"left"),"--n-option-padding-right":(0,o.Cq)(S,"right"),"--n-loading-color":w,"--n-loading-size":y}}),{inlineThemeDisabled:X}=e,Y=X?(0,B.R)("internal-select-menu",(0,r.EW)(()=>e.size[0]),G,e):void 0,Q={selfRef:c,next:N,prev:_,getPendingTmNode:A};return(0,T.P)(c,e.onResize),Object.assign({mergedTheme:d,mergedClsPrefix:n,rtlEnabled:s,virtualListRef:u,scrollbarRef:h,itemSize:w,padding:y,flattenedNodes:p,empty:C,virtualListContainer(){const{value:e}=u;return null===e||void 0===e?void 0:e.listElRef},virtualListContent(){const{value:e}=u;return null===e||void 0===e?void 0:e.itemsElRef},doScroll:M,handleFocusin:H,handleFocusout:q,handleKeyUp:L,handleKeyDown:K,handleMouseDown:D,handleVirtualListResize:E,handleVirtualListScroll:O,cssVars:X?void 0:G,themeClass:null===Y||void 0===Y?void 0:Y.themeClass,onRender:null===Y||void 0===Y?void 0:Y.onRender},Q)},render(){const{$slots:e,virtualScroll:n,clsPrefix:t,mergedTheme:o,themeClass:l,onRender:i}=this;return null===i||void 0===i||i(),(0,r.h)("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${t}-base-select-menu`,this.rtlEnabled&&`${t}-base-select-menu--rtl`,l,this.multiple&&`${t}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},(0,M.iQ)(e.header,e=>e&&(0,r.h)("div",{class:`${t}-base-select-menu__header`,"data-header":!0,key:"header"},e)),this.loading?(0,r.h)("div",{class:`${t}-base-select-menu__loading`},(0,r.h)(P.A,{clsPrefix:t,strokeWidth:20})):this.empty?(0,r.h)("div",{class:`${t}-base-select-menu__empty`,"data-empty":!0},(0,M.Nj)(e.empty,()=>[(0,r.h)(O.A,{theme:o.peers.Empty,themeOverrides:o.peerOverrides.Empty,size:this.size})])):(0,r.h)(I.A,{ref:"scrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,scrollable:this.scrollable,container:n?this.virtualListContainer:void 0,content:n?this.virtualListContent:void 0,onScroll:n?void 0:this.doScroll},{default:()=>n?(0,r.h)(R,{ref:"virtualListRef",class:`${t}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:e})=>e.isGroup?(0,r.h)(K,{key:e.key,clsPrefix:t,tmNode:e}):e.ignored?null:(0,r.h)(H,{clsPrefix:t,key:e.key,tmNode:e})}):(0,r.h)("div",{class:`${t}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(e=>e.isGroup?(0,r.h)(K,{key:e.key,clsPrefix:t,tmNode:e}):(0,r.h)(H,{clsPrefix:t,key:e.key,tmNode:e})))}),(0,M.iQ)(e.action,e=>e&&[(0,r.h)("div",{class:`${t}-base-select-menu__action`,"data-action":!0,key:"action"},e),(0,r.h)(A,{onFocus:this.onTabOut,key:"focus-detector"})]))}})},68042:function(e,n,t){t.d(n,{A:function(){return m}});var o=t(55472),l=t(37485),i=t(56768),r=t(90144),a=t(45130),s=t(21905),d=t(79882),c=t(88733),u=t(25216),h=t(34350),p=t(54507),v=t(29895),f=(0,h.c)([(0,h.c)("@keyframes spin-rotate","\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n "),(0,h.cB)("spin-container","\n position: relative;\n ",[(0,h.cB)("spin-body","\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[(0,v.v)()])]),(0,h.cB)("spin-body","\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n "),(0,h.cB)("spin","\n display: inline-flex;\n height: var(--n-size);\n width: var(--n-size);\n font-size: var(--n-size);\n color: var(--n-color);\n ",[(0,h.cM)("rotate","\n animation: spin-rotate 2s linear infinite;\n ")]),(0,h.cB)("spin-description","\n display: inline-block;\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n margin-top: 8px;\n "),(0,h.cB)("spin-content","\n opacity: 1;\n transition: opacity .3s var(--n-bezier);\n pointer-events: all;\n ",[(0,h.cM)("spinning","\n user-select: none;\n -webkit-user-select: none;\n pointer-events: none;\n opacity: var(--n-opacity-spinning);\n ")])]);const g={small:20,medium:18,large:16},b=Object.assign(Object.assign({},d.A.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number});var m=(0,i.pM)({name:"Spin",props:b,slots:Object,setup(e){const{mergedClsPrefixRef:n,inlineThemeDisabled:t}=(0,c.Ay)(e),a=(0,d.A)("Spin","-spin",f,p.A,e,n),s=(0,i.EW)(()=>{const{size:n}=e,{common:{cubicBezierEaseInOut:t},self:l}=a.value,{opacitySpinning:i,color:r,textColor:s}=l,d="number"===typeof n?(0,o.Cw)(n):l[(0,h.cF)("size",n)];return{"--n-bezier":t,"--n-opacity-spinning":i,"--n-size":d,"--n-color":r,"--n-text-color":s}}),v=t?(0,u.R)("spin",(0,i.EW)(()=>{const{size:n}=e;return"number"===typeof n?String(n):n[0]}),s,e):void 0,b=(0,l.A)(e,["spinning","show"]),m=(0,r.KR)(!1);return(0,i.nT)(n=>{let t;if(b.value){const{delay:o}=e;if(o)return t=window.setTimeout(()=>{m.value=!0},o),void n(()=>{clearTimeout(t)})}m.value=b.value}),{mergedClsPrefix:n,active:m,mergedStrokeWidth:(0,i.EW)(()=>{const{strokeWidth:n}=e;if(void 0!==n)return n;const{size:t}=e;return g["number"===typeof t?"medium":t]}),cssVars:t?void 0:s,themeClass:null===v||void 0===v?void 0:v.themeClass,onRender:null===v||void 0===v?void 0:v.onRender}},render(){var e,n;const{$slots:t,mergedClsPrefix:o,description:l}=this,r=t.icon&&this.rotate,d=(l||t.description)&&(0,i.h)("div",{class:`${o}-spin-description`},l||(null===(e=t.description)||void 0===e?void 0:e.call(t))),c=t.icon?(0,i.h)("div",{class:[`${o}-spin-body`,this.themeClass]},(0,i.h)("div",{class:[`${o}-spin`,r&&`${o}-spin--rotate`],style:t.default?"":this.cssVars},t.icon()),d):(0,i.h)("div",{class:[`${o}-spin-body`,this.themeClass]},(0,i.h)(s.A,{clsPrefix:o,style:t.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${o}-spin`}),d);return null===(n=this.onRender)||void 0===n||n.call(this),t.default?(0,i.h)("div",{class:[`${o}-spin-container`,this.themeClass],style:this.cssVars},(0,i.h)("div",{class:[`${o}-spin-content`,this.active&&`${o}-spin-content--spinning`,this.contentClass],style:this.contentStyle},t),(0,i.h)(a.eB,{name:"fade-in-transition"},{default:()=>this.active?c:null})):c}})},94035:function(e,n,t){t.d(n,{u:function(){return o}});t(18111),t(22489),t(7588);function o(e){const n=e.filter(e=>void 0!==e);if(0!==n.length)return 1===n.length?n[0]:n=>{e.forEach(e=>{e&&e(n)})}}},96206:function(e,n,t){t.d(n,{P:function(){return i}});var o=t(56768),l=t(78335);function i(e,n){n&&((0,o.sV)(()=>{const{value:t}=e;t&&l.A.registerHandler(t,n)}),(0,o.wB)(e,(e,n)=>{n&&l.A.unregisterHandler(n)},{deep:!1}),(0,o.xo)(()=>{const{value:n}=e;n&&l.A.unregisterHandler(n)}))}}}]); -//# sourceMappingURL=150.134ee868.js.map \ No newline at end of file +//# sourceMappingURL=150.49b65dd0.js.map \ No newline at end of file diff --git a/dist/js/205.b608513d.js b/dist/js/205.5e1a6eef.js similarity index 99% rename from dist/js/205.b608513d.js rename to dist/js/205.5e1a6eef.js index 5905a95..dfa2556 100644 --- a/dist/js/205.b608513d.js +++ b/dist/js/205.5e1a6eef.js @@ -1,2 +1,2 @@ "use strict";(self["webpackChunkwordhelper"]=self["webpackChunkwordhelper"]||[]).push([[205],{78205:function(e,r,i){i.d(r,{A:function(){return B}});var n=i(56768),t=i(79882),o=i(88733),l=i(25216),s=i(34350),a=i(26812),c=(i(33110),i(2702)),p=i(84279),d=i(4660),g=i(98351),h=i(73921),u=i(31603);const f={success:(0,n.h)(d.A,null),error:(0,n.h)(g.A,null),warning:(0,n.h)(h.A,null),info:(0,n.h)(u.A,null)};var v=(0,n.pM)({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:r}){const i=(0,n.EW)(()=>{const r="gradient",{fillColor:i}=e;return"object"===typeof i?`${r}-${(0,c.A)(JSON.stringify(i))}`:r});function t(r,n,t,o){const{gapDegree:l,viewBoxWidth:s,strokeWidth:a}=e,c=50,p=0,d=c,g=0,h=2*c,u=50+a/2,f=`M ${u},${u} m ${p},${d}\n a ${c},${c} 0 1 1 ${g},${-h}\n a ${c},${c} 0 1 1 ${-g},${h}`,v=2*Math.PI*c,y={stroke:"rail"===o?t:"object"===typeof e.fillColor?`url(#${i.value})`:t,strokeDasharray:`${Math.min(r,100)/100*(v-l)}px ${8*s}px`,strokeDashoffset:`-${l/2}px`,transformOrigin:n?"center":void 0,transform:n?`rotate(${n}deg)`:void 0};return{pathString:f,pathStyle:y}}const o=()=>{const r="object"===typeof e.fillColor,t=r?e.fillColor.stops[0]:"",o=r?e.fillColor.stops[1]:"";return r&&(0,n.h)("defs",null,(0,n.h)("linearGradient",{id:i.value,x1:"0%",y1:"100%",x2:"100%",y2:"0%"},(0,n.h)("stop",{offset:"0%","stop-color":t}),(0,n.h)("stop",{offset:"100%","stop-color":o})))};return()=>{const{fillColor:i,railColor:l,strokeWidth:s,offsetDegree:a,status:c,percentage:d,showIndicator:g,indicatorTextColor:h,unit:u,gapOffsetDegree:v,clsPrefix:y}=e,{pathString:b,pathStyle:x}=t(100,0,l,"rail"),{pathString:m,pathStyle:$}=t(d,a,i,"fill"),C=100+s;return(0,n.h)("div",{class:`${y}-progress-content`,role:"none"},(0,n.h)("div",{class:`${y}-progress-graph`,"aria-hidden":!0},(0,n.h)("div",{class:`${y}-progress-graph-circle`,style:{transform:v?`rotate(${v}deg)`:void 0}},(0,n.h)("svg",{viewBox:`0 0 ${C} ${C}`},o(),(0,n.h)("g",null,(0,n.h)("path",{class:`${y}-progress-graph-circle-rail`,d:b,"stroke-width":s,"stroke-linecap":"round",fill:"none",style:x})),(0,n.h)("g",null,(0,n.h)("path",{class:[`${y}-progress-graph-circle-fill`,0===d&&`${y}-progress-graph-circle-fill--empty`],d:m,"stroke-width":s,"stroke-linecap":"round",fill:"none",style:$}))))),g?(0,n.h)("div",null,r.default?(0,n.h)("div",{class:`${y}-progress-custom-content`,role:"none"},r.default()):"default"!==c?(0,n.h)("div",{class:`${y}-progress-icon`,"aria-hidden":!0},(0,n.h)(p.A,{clsPrefix:y},{default:()=>f[c]})):(0,n.h)("div",{class:`${y}-progress-text`,style:{color:h},role:"none"},(0,n.h)("span",{class:`${y}-progress-text__percentage`},d),(0,n.h)("span",{class:`${y}-progress-text__unit`},u))):null)}}}),y=i(35444);const b={success:(0,n.h)(d.A,null),error:(0,n.h)(g.A,null),warning:(0,n.h)(h.A,null),info:(0,n.h)(u.A,null)};var x=(0,n.pM)({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:[String,Object],status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:r}){const i=(0,n.EW)(()=>(0,y.i)(e.height)),t=(0,n.EW)(()=>{var r,i;return"object"===typeof e.fillColor?`linear-gradient(to right, ${null===(r=e.fillColor)||void 0===r?void 0:r.stops[0]} , ${null===(i=e.fillColor)||void 0===i?void 0:i.stops[1]})`:e.fillColor}),o=(0,n.EW)(()=>void 0!==e.railBorderRadius?(0,y.i)(e.railBorderRadius):void 0!==e.height?(0,y.i)(e.height,{c:.5}):""),l=(0,n.EW)(()=>void 0!==e.fillBorderRadius?(0,y.i)(e.fillBorderRadius):void 0!==e.railBorderRadius?(0,y.i)(e.railBorderRadius):void 0!==e.height?(0,y.i)(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:s,railColor:a,railStyle:c,percentage:d,unit:g,indicatorTextColor:h,status:u,showIndicator:f,processing:v,clsPrefix:y}=e;return(0,n.h)("div",{class:`${y}-progress-content`,role:"none"},(0,n.h)("div",{class:`${y}-progress-graph`,"aria-hidden":!0},(0,n.h)("div",{class:[`${y}-progress-graph-line`,{[`${y}-progress-graph-line--indicator-${s}`]:!0}]},(0,n.h)("div",{class:`${y}-progress-graph-line-rail`,style:[{backgroundColor:a,height:i.value,borderRadius:o.value},c]},(0,n.h)("div",{class:[`${y}-progress-graph-line-fill`,v&&`${y}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,background:t.value,height:i.value,lineHeight:i.value,borderRadius:l.value}},"inside"===s?(0,n.h)("div",{class:`${y}-progress-graph-line-indicator`,style:{color:h}},r.default?r.default():`${d}${g}`):null)))),f&&"outside"===s?(0,n.h)("div",null,r.default?(0,n.h)("div",{class:`${y}-progress-custom-content`,style:{color:h},role:"none"},r.default()):"default"===u?(0,n.h)("div",{role:"none",class:`${y}-progress-icon ${y}-progress-icon--as-text`,style:{color:h}},d,g):(0,n.h)("div",{class:`${y}-progress-icon`,"aria-hidden":!0},(0,n.h)(p.A,{clsPrefix:y},{default:()=>b[u]}))):null)}}});i(18111),i(61701);function m(e,r,i=100){return`m ${i/2} ${i/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}var $=(0,n.pM)({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:r}){const i=(0,n.EW)(()=>{const r=e.percentage.map((r,i)=>`${Math.PI*r/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${8*e.viewBoxWidth}`);return r}),t=(r,i)=>{const t=e.fillColor[i],o="object"===typeof t?t.stops[0]:"",l="object"===typeof t?t.stops[1]:"";return"object"===typeof e.fillColor[i]&&(0,n.h)("linearGradient",{id:`gradient-${i}`,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},(0,n.h)("stop",{offset:"0%","stop-color":o}),(0,n.h)("stop",{offset:"100%","stop-color":l}))};return()=>{const{viewBoxWidth:o,strokeWidth:l,circleGap:s,showIndicator:a,fillColor:c,railColor:p,railStyle:d,percentage:g,clsPrefix:h}=e;return(0,n.h)("div",{class:`${h}-progress-content`,role:"none"},(0,n.h)("div",{class:`${h}-progress-graph`,"aria-hidden":!0},(0,n.h)("div",{class:`${h}-progress-graph-circle`},(0,n.h)("svg",{viewBox:`0 0 ${o} ${o}`},(0,n.h)("defs",null,g.map((e,r)=>t(e,r))),g.map((e,r)=>(0,n.h)("g",{key:r},(0,n.h)("path",{class:`${h}-progress-graph-circle-rail`,d:m(o/2-l/2*(1+2*r)-s*r,l,o),"stroke-width":l,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:p[r]},d[r]]}),(0,n.h)("path",{class:[`${h}-progress-graph-circle-fill`,0===e&&`${h}-progress-graph-circle-fill--empty`],d:m(o/2-l/2*(1+2*r)-s*r,l,o),"stroke-width":l,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:i.value[r],strokeDashoffset:0,stroke:"object"===typeof c[r]?`url(#gradient-${r})`:c[r]}})))))),a&&r.default?(0,n.h)("div",null,(0,n.h)("div",{class:`${h}-progress-text`},r.default())):null)}}}),C=(0,s.c)([(0,s.cB)("progress",{display:"inline-block"},[(0,s.cB)("progress-icon","\n color: var(--n-icon-color);\n transition: color .3s var(--n-bezier);\n "),(0,s.cM)("line","\n width: 100%;\n display: block;\n ",[(0,s.cB)("progress-content","\n display: flex;\n align-items: center;\n ",[(0,s.cB)("progress-graph",{flex:1})]),(0,s.cB)("progress-custom-content",{marginLeft:"14px"}),(0,s.cB)("progress-icon","\n width: 30px;\n padding-left: 14px;\n height: var(--n-icon-size-line);\n line-height: var(--n-icon-size-line);\n font-size: var(--n-icon-size-line);\n ",[(0,s.cM)("as-text","\n color: var(--n-text-color-line-outer);\n text-align: center;\n width: 40px;\n font-size: var(--n-font-size);\n padding-left: 4px;\n transition: color .3s var(--n-bezier);\n ")])]),(0,s.cM)("circle, dashboard",{width:"120px"},[(0,s.cB)("progress-custom-content","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n "),(0,s.cB)("progress-text","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n display: flex;\n align-items: center;\n color: inherit;\n font-size: var(--n-font-size-circle);\n color: var(--n-text-color-circle);\n font-weight: var(--n-font-weight-circle);\n transition: color .3s var(--n-bezier);\n white-space: nowrap;\n "),(0,s.cB)("progress-icon","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n display: flex;\n align-items: center;\n color: var(--n-icon-color);\n font-size: var(--n-icon-size-circle);\n ")]),(0,s.cM)("multiple-circle","\n width: 200px;\n color: inherit;\n ",[(0,s.cB)("progress-text","\n font-weight: var(--n-font-weight-circle);\n color: var(--n-text-color-circle);\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n transition: color .3s var(--n-bezier);\n ")]),(0,s.cB)("progress-content",{position:"relative"}),(0,s.cB)("progress-graph",{position:"relative"},[(0,s.cB)("progress-graph-circle",[(0,s.c)("svg",{verticalAlign:"bottom"}),(0,s.cB)("progress-graph-circle-fill","\n stroke: var(--n-fill-color);\n transition:\n opacity .3s var(--n-bezier),\n stroke .3s var(--n-bezier),\n stroke-dasharray .3s var(--n-bezier);\n ",[(0,s.cM)("empty",{opacity:0})]),(0,s.cB)("progress-graph-circle-rail","\n transition: stroke .3s var(--n-bezier);\n overflow: hidden;\n stroke: var(--n-rail-color);\n ")]),(0,s.cB)("progress-graph-line",[(0,s.cM)("indicator-inside",[(0,s.cB)("progress-graph-line-rail","\n height: 16px;\n line-height: 16px;\n border-radius: 10px;\n ",[(0,s.cB)("progress-graph-line-fill","\n height: inherit;\n border-radius: 10px;\n "),(0,s.cB)("progress-graph-line-indicator","\n background: #0000;\n white-space: nowrap;\n text-align: right;\n margin-left: 14px;\n margin-right: 14px;\n height: inherit;\n font-size: 12px;\n color: var(--n-text-color-line-inner);\n transition: color .3s var(--n-bezier);\n ")])]),(0,s.cM)("indicator-inside-label","\n height: 16px;\n display: flex;\n align-items: center;\n ",[(0,s.cB)("progress-graph-line-rail","\n flex: 1;\n transition: background-color .3s var(--n-bezier);\n "),(0,s.cB)("progress-graph-line-indicator","\n background: var(--n-fill-color);\n font-size: 12px;\n transform: translateZ(0);\n display: flex;\n vertical-align: middle;\n height: 16px;\n line-height: 16px;\n padding: 0 10px;\n border-radius: 10px;\n position: absolute;\n white-space: nowrap;\n color: var(--n-text-color-line-inner);\n transition:\n right .2s var(--n-bezier),\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n ")]),(0,s.cB)("progress-graph-line-rail","\n position: relative;\n overflow: hidden;\n height: var(--n-rail-height);\n border-radius: 5px;\n background-color: var(--n-rail-color);\n transition: background-color .3s var(--n-bezier);\n ",[(0,s.cB)("progress-graph-line-fill","\n background: var(--n-fill-color);\n position: relative;\n border-radius: 5px;\n height: inherit;\n width: 100%;\n max-width: 0%;\n transition:\n background-color .3s var(--n-bezier),\n max-width .2s var(--n-bezier);\n ",[(0,s.cM)("processing",[(0,s.c)("&::after",'\n content: "";\n background-image: var(--n-line-bg-processing);\n animation: progress-processing-animation 2s var(--n-bezier) infinite;\n ')])])])])])]),(0,s.c)("@keyframes progress-processing-animation","\n 0% {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 100%;\n opacity: 1;\n }\n 66% {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n }\n 100% {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n }\n ")]);const w=Object.assign(Object.assign({},t.A.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array,Object],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number});var B=(0,n.pM)({name:"Progress",props:w,setup(e){const r=(0,n.EW)(()=>e.indicatorPlacement||e.indicatorPosition),i=(0,n.EW)(()=>e.gapDegree||0===e.gapDegree?e.gapDegree:"dashboard"===e.type?75:void 0),{mergedClsPrefixRef:c,inlineThemeDisabled:p}=(0,o.Ay)(e),d=(0,t.A)("Progress","-progress",C,a.A,e,c),g=(0,n.EW)(()=>{const{status:r}=e,{common:{cubicBezierEaseInOut:i},self:{fontSize:n,fontSizeCircle:t,railColor:o,railHeight:l,iconSizeCircle:a,iconSizeLine:c,textColorCircle:p,textColorLineInner:g,textColorLineOuter:h,lineBgProcessing:u,fontWeightCircle:f,[(0,s.cF)("iconColor",r)]:v,[(0,s.cF)("fillColor",r)]:y}}=d.value;return{"--n-bezier":i,"--n-fill-color":y,"--n-font-size":n,"--n-font-size-circle":t,"--n-font-weight-circle":f,"--n-icon-color":v,"--n-icon-size-circle":a,"--n-icon-size-line":c,"--n-line-bg-processing":u,"--n-rail-color":o,"--n-rail-height":l,"--n-text-color-circle":p,"--n-text-color-line-inner":g,"--n-text-color-line-outer":h}}),h=p?(0,l.R)("progress",(0,n.EW)(()=>e.status[0]),g,e):void 0;return{mergedClsPrefix:c,mergedIndicatorPlacement:r,gapDeg:i,cssVars:p?void 0:g,themeClass:null===h||void 0===h?void 0:h.themeClass,onRender:null===h||void 0===h?void 0:h.onRender}},render(){const{type:e,cssVars:r,indicatorTextColor:i,showIndicator:t,status:o,railColor:l,railStyle:s,color:a,percentage:c,viewBoxWidth:p,strokeWidth:d,mergedIndicatorPlacement:g,unit:h,borderRadius:u,fillBorderRadius:f,height:y,processing:b,circleGap:m,mergedClsPrefix:C,gapDeg:w,gapOffsetDegree:B,themeClass:S,$slots:k,onRender:z}=this;return null===z||void 0===z||z(),(0,n.h)("div",{class:[S,`${C}-progress`,`${C}-progress--${e}`,`${C}-progress--${o}`],style:r,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":c,role:"circle"===e||"line"===e||"dashboard"===e?"progressbar":"none"},"circle"===e||"dashboard"===e?(0,n.h)(v,{clsPrefix:C,status:o,showIndicator:t,indicatorTextColor:i,railColor:l,fillColor:a,railStyle:s,offsetDegree:this.offsetDegree,percentage:c,viewBoxWidth:p,strokeWidth:d,gapDegree:void 0===w?"dashboard"===e?75:0:w,gapOffsetDegree:B,unit:h},k):"line"===e?(0,n.h)(x,{clsPrefix:C,status:o,showIndicator:t,indicatorTextColor:i,railColor:l,fillColor:a,railStyle:s,percentage:c,processing:b,indicatorPlacement:g,unit:h,fillBorderRadius:f,railBorderRadius:u,height:y},k):"multiple-circle"===e?(0,n.h)($,{clsPrefix:C,strokeWidth:d,railColor:l,fillColor:a,railStyle:s,viewBoxWidth:p,percentage:c,showIndicator:t,circleGap:m},k):null)}})}}]); -//# sourceMappingURL=205.b608513d.js.map \ No newline at end of file +//# sourceMappingURL=205.5e1a6eef.js.map \ No newline at end of file diff --git a/dist/js/211.b427f4b2.js b/dist/js/211.c39f2105.js similarity index 99% rename from dist/js/211.b427f4b2.js rename to dist/js/211.c39f2105.js index ee2741d..e06a1a9 100644 --- a/dist/js/211.b427f4b2.js +++ b/dist/js/211.c39f2105.js @@ -36,4 +36,4 @@ const F=(0,S.A)("import",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m8 11 * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const r=(0,a.A)("pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]])}}]); -//# sourceMappingURL=211.b427f4b2.js.map \ No newline at end of file +//# sourceMappingURL=211.c39f2105.js.map \ No newline at end of file diff --git a/dist/js/387.dd6c4a86.js b/dist/js/387.2c1359c2.js similarity index 99% rename from dist/js/387.dd6c4a86.js rename to dist/js/387.2c1359c2.js index b3c8967..8d1b272 100644 --- a/dist/js/387.dd6c4a86.js +++ b/dist/js/387.2c1359c2.js @@ -6,4 +6,4 @@ * See the LICENSE file in the root directory of this source tree. */ const c=(0,d.A)("book-text",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]]);var u=r(42517),p=(r(18111),r(61701),r(55472)),m=r(65049),v=r(79882),h=r(88733),g=r(87996),x=r(34350),y=r(64075);function b(e){const{heightSmall:t,heightMedium:r,heightLarge:n,borderRadius:o}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:o,heightSmall:t,heightMedium:r,heightLarge:n}}const f={name:"Skeleton",common:y.A,self:b};var w=(0,x.c)([(0,x.cB)("skeleton","\n height: 1em;\n width: 100%;\n transition:\n --n-color-start .3s var(--n-bezier),\n --n-color-end .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1);\n background-color: var(--n-color-start);\n "),(0,x.c)("@keyframes skeleton-loading","\n 0% {\n background: var(--n-color-start);\n }\n 40% {\n background: var(--n-color-end);\n }\n 80% {\n background: var(--n-color-start);\n }\n 100% {\n background: var(--n-color-start);\n }\n ")]);const C=Object.assign(Object.assign({},v.A.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}});var k=(0,n.pM)({name:"Skeleton",inheritAttrs:!1,props:C,setup(e){(0,g.w)();const{mergedClsPrefixRef:t}=(0,h.Ay)(e),r=(0,v.A)("Skeleton","-skeleton",w,f,e,t);return{mergedClsPrefix:t,style:(0,n.EW)(()=>{var t,n;const o=r.value,{common:{cubicBezierEaseInOut:i}}=o,a=o.self,{color:l,colorEnd:s,borderRadius:d}=a;let c;const{circle:u,sharp:m,round:v,width:h,height:g,size:y,text:b,animated:f}=e;void 0!==y&&(c=a[(0,x.cF)("height",y)]);const w=u?null!==(t=null!==h&&void 0!==h?h:g)&&void 0!==t?t:c:h,C=null!==(n=u&&null!==h&&void 0!==h?h:g)&&void 0!==n?n:c;return{display:b?"inline-block":"",verticalAlign:b?"-0.125em":"",borderRadius:u?"50%":v?"4096px":m?"":d,width:"number"===typeof w?(0,p.Cw)(w):w,height:"number"===typeof C?(0,p.Cw)(C):C,animation:f?"":"none","--n-bezier":i,"--n-color-start":l,"--n-color-end":s}})}},render(){const{repeat:e,style:t,mergedClsPrefix:r,$attrs:o}=this,i=(0,n.h)("div",(0,n.v6)({class:`${r}-skeleton`,style:t},o));return e>1?(0,n.h)(n.FK,null,(0,m.ux)(e,null).map(e=>[i,"\n"])):i}}),_=r(92720),z=r(78205),E=r(9845),S=r(35720);const R={class:"dict-view max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},L={class:"flex items-center gap-2 mb-8"},A={key:0,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"},D={key:1,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"},F=["enter"],B={class:"flex justify-between items-start mb-4"},M={class:"text-xl font-bold text-gray-900 dark:text-white mb-1"},H={key:0,class:"flex flex-wrap gap-2"},V={class:"p-2 bg-primary/10 rounded-full"},W={class:"text-gray-500 dark:text-gray-400 text-sm mb-6 line-clamp-2 min-h-[2.5rem]"},I={class:"mt-auto"},P={class:"flex justify-between items-end mb-2 text-sm"},X={class:"text-gray-600 dark:text-gray-300 font-medium"},$={class:"text-gray-400 text-xs"},j={key:0,class:"mt-2 text-xs text-gray-400 text-right"};var O={__name:"DictView",setup(e){const t=(0,a.rd)(),r=(0,l.J)(),{isDark:d}=(0,n.WQ)("themeContext"),p=(0,o.KR)(!1),m=(0,o.KR)([]),v=async()=>{p.value=!0;try{const e=await S.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/dict/list");0===e.data.code?m.value=e.data.data:r.error(e.data.msg||"获取词书列表失败")}catch(e){console.error("Fetch dicts failed:",e),r.error("获取词书列表失败")}finally{p.value=!1}},h=e=>{if(!e.total_words||0===e.total_words)return 0;const t=e.last_dict_order||0,r=t/e.total_words*100;return Math.min(Math.round(r),100)},g=e=>e.last_dict_order?e.last_dict_order>=e.total_words&&e.total_words>0?"已学完":`已学 ${e.last_dict_order} 词`:"未学习",x=e=>{if(!e)return"";const t=new Date(e),r=new Date;if(t.toDateString()===r.toDateString())return`今天 ${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}`;const n=new Date(r);return n.setDate(n.getDate()-1),t.toDateString()===n.toDateString()?"昨天":t.toLocaleDateString()},y=e=>{const n=e.last_word_id||e.first_word_id;n?t.push({path:"/word",query:{word_id:n,learn:"true",dict_id:e.id}}):r.warning("该词书暂无单词")};return(0,n.sV)(()=>{v(),document.title="词书 - Word Helper"}),(e,t)=>{const r=(0,n.gN)("motion-slide-visible-once-left"),a=(0,n.gN)("motion");return(0,n.uX)(),(0,n.CE)("div",R,[(0,n.bo)(((0,n.uX)(),(0,n.CE)("div",L,[(0,n.bF)((0,o.R1)(s.A),{class:"w-8 h-8 text-primary"}),t[0]||(t[0]=(0,n.Lk)("h1",{class:"text-3xl font-bold text-gray-900 dark:text-white"},"选择词书",-1))])),[[r]]),p.value?((0,n.uX)(),(0,n.CE)("div",A,[((0,n.uX)(),(0,n.CE)(n.FK,null,(0,n.pI)(3,e=>(0,n.bF)((0,o.R1)(u.Ay),{key:e,class:"rounded-xl shadow-sm",bordered:!1},{default:(0,n.k6)(()=>[(0,n.bF)((0,o.R1)(k),{text:"",style:{width:"60%"},class:"mb-2"}),(0,n.bF)((0,o.R1)(k),{text:"",repeat:2})]),_:1})),64))])):((0,n.uX)(),(0,n.CE)("div",D,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(m.value,(e,r)=>(0,n.bo)(((0,n.uX)(),(0,n.CE)("div",{key:e.id,initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:100*r}}},[(0,n.bF)((0,o.R1)(u.Ay),{class:"h-full rounded-xl shadow-sm hover:shadow-md transition-shadow cursor-pointer dark:bg-gray-800",bordered:!1,onClick:t=>y(e)},{default:(0,n.k6)(()=>[(0,n.Lk)("div",B,[(0,n.Lk)("div",null,[(0,n.Lk)("h3",M,(0,i.v_)(e.name),1),e.tag?((0,n.uX)(),(0,n.CE)("div",H,[(0,n.bF)((0,o.R1)(_.Ay),{type:"info",size:"small",round:"",bordered:!1,class:"bg-blue-50 text-blue-600 dark:bg-blue-900/30 dark:text-blue-300"},{default:(0,n.k6)(()=>[(0,n.eW)((0,i.v_)(e.tag),1)]),_:2},1024),e.owner_id?((0,n.uX)(),(0,n.Wv)((0,o.R1)(_.Ay),{key:0,type:"warning",size:"small",round:"",bordered:!1,class:"bg-amber-50 text-amber-600 dark:bg-amber-900/30 dark:text-amber-300"},{default:(0,n.k6)(()=>[...t[1]||(t[1]=[(0,n.eW)(" 自定义 ",-1)])]),_:1})):(0,n.Q3)("",!0)])):(0,n.Q3)("",!0)]),(0,n.Lk)("div",V,[(0,n.bF)((0,o.R1)(c),{class:"w-6 h-6 text-primary"})])]),(0,n.Lk)("p",W,(0,i.v_)(e.description||"暂无简介"),1),(0,n.Lk)("div",I,[(0,n.Lk)("div",P,[(0,n.Lk)("span",X,(0,i.v_)(g(e)),1),(0,n.Lk)("span",$," 总计 "+(0,i.v_)(e.total_words)+" 词 ",1)]),(0,n.bF)((0,o.R1)(z.A),{type:"line",percentage:h(e),color:h(e)>=100?"#10B981":"#3B82F6","rail-color":(0,o.R1)(d)?"#374151":"#E5E7EB",height:8,"border-radius":"4px","show-indicator":!1},null,8,["percentage","color","rail-color"]),e.last_learn_time?((0,n.uX)(),(0,n.CE)("div",j," 上次学习: "+(0,i.v_)(x(e.last_learn_time)),1)):(0,n.Q3)("",!0)])]),_:2},1032,["onClick"])],8,F)),[[a]])),128))])),p.value||0!==m.value.length?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.Wv)((0,o.R1)(E.A),{key:2,description:"暂无可用词书",class:"mt-20"}))])}}},K=r(71241);const N=(0,K.A)(O,[["__scopeId","data-v-482a2809"]]);var Q=N},87996:function(e,t,r){r.d(t,{w:function(){return i}});var n=r(62889);let o=!1;function i(){if(n.B&&window.CSS&&!o&&(o=!0,"registerProperty"in(null===window||void 0===window?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch(e){}}}}]); -//# sourceMappingURL=387.dd6c4a86.js.map \ No newline at end of file +//# sourceMappingURL=387.2c1359c2.js.map \ No newline at end of file diff --git a/dist/js/410.55f960e5.js b/dist/js/410.5d08c1a8.js similarity index 99% rename from dist/js/410.55f960e5.js rename to dist/js/410.5d08c1a8.js index db23703..a8e36e6 100644 --- a/dist/js/410.55f960e5.js +++ b/dist/js/410.5d08c1a8.js @@ -1,2 +1,2 @@ "use strict";(self["webpackChunkwordhelper"]=self["webpackChunkwordhelper"]||[]).push([[410],{43585:function(e,o,n){n.d(o,{A:function(){return $}});var r=n(55472),t=n(34707),i=n(56768),l=n(90144),c=n(85142),a=n(21905),s=n(79882),d=n(88733),h=n(70151),u=n(25216),b=n(37901),v=n(34350),g=n(25972),f=n(13707),p=n(64075),C=n(68411);function m(e){const{primaryColor:o,opacityDisabled:n,borderRadius:r,textColor3:t}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},C.A),{iconColor:t,textColor:"white",loadingColor:o,opacityDisabled:n,railColor:i,railColorActive:o,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${(0,f.QX)(o,{alpha:.2})}`})}const w={name:"Switch",common:p.A,self:m};var x=w,y=n(3533),k=(0,v.cB)("switch","\n height: var(--n-height);\n min-width: var(--n-width);\n vertical-align: middle;\n user-select: none;\n -webkit-user-select: none;\n display: inline-flex;\n outline: none;\n justify-content: center;\n align-items: center;\n",[(0,v.cE)("children-placeholder","\n height: var(--n-rail-height);\n display: flex;\n flex-direction: column;\n overflow: hidden;\n pointer-events: none;\n visibility: hidden;\n "),(0,v.cE)("rail-placeholder","\n display: flex;\n flex-wrap: none;\n "),(0,v.cE)("button-placeholder","\n width: calc(1.75 * var(--n-rail-height));\n height: var(--n-rail-height);\n "),(0,v.cB)("base-loading","\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n font-size: calc(var(--n-button-width) - 4px);\n color: var(--n-loading-color);\n transition: color .3s var(--n-bezier);\n ",[(0,y.N)({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),(0,v.cE)("checked, unchecked","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n box-sizing: border-box;\n position: absolute;\n white-space: nowrap;\n top: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n line-height: 1;\n "),(0,v.cE)("checked","\n right: 0;\n padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));\n "),(0,v.cE)("unchecked","\n left: 0;\n justify-content: flex-end;\n padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));\n "),(0,v.c)("&:focus",[(0,v.cE)("rail","\n box-shadow: var(--n-box-shadow-focus);\n ")]),(0,v.cM)("round",[(0,v.cE)("rail","border-radius: calc(var(--n-rail-height) / 2);",[(0,v.cE)("button","border-radius: calc(var(--n-button-height) / 2);")])]),(0,v.C5)("disabled",[(0,v.C5)("icon",[(0,v.cM)("rubber-band",[(0,v.cM)("pressed",[(0,v.cE)("rail",[(0,v.cE)("button","max-width: var(--n-button-width-pressed);")])]),(0,v.cE)("rail",[(0,v.c)("&:active",[(0,v.cE)("button","max-width: var(--n-button-width-pressed);")])]),(0,v.cM)("active",[(0,v.cM)("pressed",[(0,v.cE)("rail",[(0,v.cE)("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),(0,v.cE)("rail",[(0,v.c)("&:active",[(0,v.cE)("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),(0,v.cM)("active",[(0,v.cE)("rail",[(0,v.cE)("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),(0,v.cE)("rail","\n overflow: hidden;\n height: var(--n-rail-height);\n min-width: var(--n-rail-width);\n border-radius: var(--n-rail-border-radius);\n cursor: pointer;\n position: relative;\n transition:\n opacity .3s var(--n-bezier),\n background .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n background-color: var(--n-rail-color);\n ",[(0,v.cE)("button-icon","\n color: var(--n-icon-color);\n transition: color .3s var(--n-bezier);\n font-size: calc(var(--n-button-height) - 4px);\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n line-height: 1;\n ",[(0,y.N)()]),(0,v.cE)("button",'\n align-items: center; \n top: var(--n-offset);\n left: var(--n-offset);\n height: var(--n-button-height);\n width: var(--n-button-width-pressed);\n max-width: var(--n-button-width);\n border-radius: var(--n-button-border-radius);\n background-color: var(--n-button-color);\n box-shadow: var(--n-button-box-shadow);\n box-sizing: border-box;\n cursor: inherit;\n content: "";\n position: absolute;\n transition:\n background-color .3s var(--n-bezier),\n left .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n max-width .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n ')]),(0,v.cM)("active",[(0,v.cE)("rail","background-color: var(--n-rail-color-active);")]),(0,v.cM)("loading",[(0,v.cE)("rail","\n cursor: wait;\n ")]),(0,v.cM)("disabled",[(0,v.cE)("rail","\n cursor: not-allowed;\n opacity: .5;\n ")])]);const E=Object.assign(Object.assign({},s.A.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let z;var $=(0,i.pM)({name:"Switch",props:E,slots:Object,setup(e){void 0===z&&(z="undefined"===typeof CSS||"undefined"!==typeof CSS.supports&&CSS.supports("width","max(1px)"));const{mergedClsPrefixRef:o,inlineThemeDisabled:n}=(0,d.Ay)(e),c=(0,s.A)("Switch","-switch",k,x,e,o),a=(0,h.A)(e),{mergedSizeRef:g,mergedDisabledRef:f}=a,p=(0,l.KR)(e.defaultValue),C=(0,l.lW)(e,"value"),m=(0,t.A)(C,p),w=(0,i.EW)(()=>m.value===e.checkedValue),y=(0,l.KR)(!1),E=(0,l.KR)(!1),$=(0,i.EW)(()=>{const{railStyle:o}=e;if(o)return o({focused:E.value,checked:w.value})});function S(o){const{"onUpdate:value":n,onChange:r,onUpdateValue:t}=e,{nTriggerFormInput:i,nTriggerFormChange:l}=a;n&&(0,b.T)(n,o),t&&(0,b.T)(t,o),r&&(0,b.T)(r,o),p.value=o,i(),l()}function B(){const{nTriggerFormFocus:e}=a;e()}function A(){const{nTriggerFormBlur:e}=a;e()}function F(){e.loading||f.value||(m.value!==e.checkedValue?S(e.checkedValue):S(e.uncheckedValue))}function I(){E.value=!0,B()}function R(){E.value=!1,A(),y.value=!1}function _(o){e.loading||f.value||" "===o.key&&(m.value!==e.checkedValue?S(e.checkedValue):S(e.uncheckedValue),y.value=!1)}function T(o){e.loading||f.value||" "===o.key&&(o.preventDefault(),y.value=!0)}const P=(0,i.EW)(()=>{const{value:e}=g,{self:{opacityDisabled:o,railColor:n,railColorActive:t,buttonBoxShadow:i,buttonColor:l,boxShadowFocus:a,loadingColor:s,textColor:d,iconColor:h,[(0,v.cF)("buttonHeight",e)]:u,[(0,v.cF)("buttonWidth",e)]:b,[(0,v.cF)("buttonWidthPressed",e)]:f,[(0,v.cF)("railHeight",e)]:p,[(0,v.cF)("railWidth",e)]:C,[(0,v.cF)("railBorderRadius",e)]:m,[(0,v.cF)("buttonBorderRadius",e)]:w},common:{cubicBezierEaseInOut:x}}=c.value;let y,k,E;return z?(y=`calc((${p} - ${u}) / 2)`,k=`max(${p}, ${u})`,E=`max(${C}, calc(${C} + ${u} - ${p}))`):(y=(0,r.Cw)(((0,r.eV)(p)-(0,r.eV)(u))/2),k=(0,r.Cw)(Math.max((0,r.eV)(p),(0,r.eV)(u))),E=(0,r.eV)(p)>(0,r.eV)(u)?C:(0,r.Cw)((0,r.eV)(C)+(0,r.eV)(u)-(0,r.eV)(p))),{"--n-bezier":x,"--n-button-border-radius":w,"--n-button-box-shadow":i,"--n-button-color":l,"--n-button-width":b,"--n-button-width-pressed":f,"--n-button-height":u,"--n-height":k,"--n-offset":y,"--n-opacity-disabled":o,"--n-rail-border-radius":m,"--n-rail-color":n,"--n-rail-color-active":t,"--n-rail-height":p,"--n-rail-width":C,"--n-width":E,"--n-box-shadow-focus":a,"--n-loading-color":s,"--n-text-color":d,"--n-icon-color":h}}),V=n?(0,u.R)("switch",(0,i.EW)(()=>g.value[0]),P,e):void 0;return{handleClick:F,handleBlur:R,handleFocus:I,handleKeyup:_,handleKeydown:T,mergedRailStyle:$,pressed:y,mergedClsPrefix:o,mergedValue:m,checked:w,mergedDisabled:f,cssVars:n?void 0:P,themeClass:null===V||void 0===V?void 0:V.themeClass,onRender:null===V||void 0===V?void 0:V.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:o,checked:n,mergedRailStyle:r,onRender:t,$slots:l}=this;null===t||void 0===t||t();const{checked:s,unchecked:d,icon:h,"checked-icon":u,"unchecked-icon":b}=l,v=!((0,g.yr)(h)&&(0,g.yr)(u)&&(0,g.yr)(b));return(0,i.h)("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,v&&`${e}-switch--icon`,n&&`${e}-switch--active`,o&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},(0,i.h)("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},(0,g.iQ)(s,o=>(0,g.iQ)(d,n=>o||n?(0,i.h)("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},(0,i.h)("div",{class:`${e}-switch__rail-placeholder`},(0,i.h)("div",{class:`${e}-switch__button-placeholder`}),o),(0,i.h)("div",{class:`${e}-switch__rail-placeholder`},(0,i.h)("div",{class:`${e}-switch__button-placeholder`}),n)):null)),(0,i.h)("div",{class:`${e}-switch__button`},(0,g.iQ)(h,o=>(0,g.iQ)(u,n=>(0,g.iQ)(b,r=>(0,i.h)(c.A,null,{default:()=>this.loading?(0,i.h)(a.A,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(n||o)?(0,i.h)("div",{class:`${e}-switch__button-icon`,key:n?"checked-icon":"icon"},n||o):this.checked||!r&&!o?null:(0,i.h)("div",{class:`${e}-switch__button-icon`,key:r?"unchecked-icon":"icon"},r||o)})))),(0,g.iQ)(s,o=>o&&(0,i.h)("div",{key:"checked",class:`${e}-switch__checked`},o)),(0,g.iQ)(d,o=>o&&(0,i.h)("div",{key:"unchecked",class:`${e}-switch__unchecked`},o)))))}})},64498:function(e,o,n){n.d(o,{A:function(){return B}});var r=n(55472),t=n(56768),i=n(90144),l=n(55405),c=n(81260),a=n(84279),s=n(4660),d=n(31603),h=n(73921),u=n(98351),b=n(79882),v=n(88733),g=n(25216),f=n(38741),p=n(34350),C=n(25972),m=n(13707),w=n(64075),x=n(98659);function y(e){const{lineHeight:o,borderRadius:n,fontWeightStrong:r,baseColor:t,dividerColor:i,actionColor:l,textColor1:c,textColor2:a,closeColorHover:s,closeColorPressed:d,closeIconColor:h,closeIconColorHover:u,closeIconColorPressed:b,infoColor:v,successColor:g,warningColor:f,errorColor:p,fontSize:C}=e;return Object.assign(Object.assign({},x.A),{fontSize:C,lineHeight:o,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:l,titleTextColor:c,iconColor:a,contentTextColor:a,closeBorderRadius:n,closeColorHover:s,closeColorPressed:d,closeIconColor:h,closeIconColorHover:u,closeIconColorPressed:b,borderInfo:`1px solid ${(0,m.sN)(t,(0,m.QX)(v,{alpha:.25}))}`,colorInfo:(0,m.sN)(t,(0,m.QX)(v,{alpha:.08})),titleTextColorInfo:c,iconColorInfo:v,contentTextColorInfo:a,closeColorHoverInfo:s,closeColorPressedInfo:d,closeIconColorInfo:h,closeIconColorHoverInfo:u,closeIconColorPressedInfo:b,borderSuccess:`1px solid ${(0,m.sN)(t,(0,m.QX)(g,{alpha:.25}))}`,colorSuccess:(0,m.sN)(t,(0,m.QX)(g,{alpha:.08})),titleTextColorSuccess:c,iconColorSuccess:g,contentTextColorSuccess:a,closeColorHoverSuccess:s,closeColorPressedSuccess:d,closeIconColorSuccess:h,closeIconColorHoverSuccess:u,closeIconColorPressedSuccess:b,borderWarning:`1px solid ${(0,m.sN)(t,(0,m.QX)(f,{alpha:.33}))}`,colorWarning:(0,m.sN)(t,(0,m.QX)(f,{alpha:.08})),titleTextColorWarning:c,iconColorWarning:f,contentTextColorWarning:a,closeColorHoverWarning:s,closeColorPressedWarning:d,closeIconColorWarning:h,closeIconColorHoverWarning:u,closeIconColorPressedWarning:b,borderError:`1px solid ${(0,m.sN)(t,(0,m.QX)(p,{alpha:.25}))}`,colorError:(0,m.sN)(t,(0,m.QX)(p,{alpha:.08})),titleTextColorError:c,iconColorError:p,contentTextColorError:a,closeColorHoverError:s,closeColorPressedError:d,closeIconColorError:h,closeIconColorHoverError:u,closeIconColorPressedError:b})}const k={name:"Alert",common:w.A,self:y};var E=k,z=n(92548),$=(0,p.cB)("alert","\n line-height: var(--n-line-height);\n border-radius: var(--n-border-radius);\n position: relative;\n transition: background-color .3s var(--n-bezier);\n background-color: var(--n-color);\n text-align: start;\n word-break: break-word;\n",[(0,p.cE)("border","\n border-radius: inherit;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n transition: border-color .3s var(--n-bezier);\n border: var(--n-border);\n pointer-events: none;\n "),(0,p.cM)("closable",[(0,p.cB)("alert-body",[(0,p.cE)("title","\n padding-right: 24px;\n ")])]),(0,p.cE)("icon",{color:"var(--n-icon-color)"}),(0,p.cB)("alert-body",{padding:"var(--n-padding)"},[(0,p.cE)("title",{color:"var(--n-title-text-color)"}),(0,p.cE)("content",{color:"var(--n-content-text-color)"})]),(0,z._)({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),(0,p.cE)("icon","\n position: absolute;\n left: 0;\n top: 0;\n align-items: center;\n justify-content: center;\n display: flex;\n width: var(--n-icon-size);\n height: var(--n-icon-size);\n font-size: var(--n-icon-size);\n margin: var(--n-icon-margin);\n "),(0,p.cE)("close","\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n position: absolute;\n right: 0;\n top: 0;\n margin: var(--n-close-margin);\n "),(0,p.cM)("show-icon",[(0,p.cB)("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),(0,p.cM)("right-adjust",[(0,p.cB)("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),(0,p.cB)("alert-body","\n border-radius: var(--n-border-radius);\n transition: border-color .3s var(--n-bezier);\n ",[(0,p.cE)("title","\n transition: color .3s var(--n-bezier);\n font-size: 16px;\n line-height: 19px;\n font-weight: var(--n-title-font-weight);\n ",[(0,p.c)("& +",[(0,p.cE)("content",{marginTop:"9px"})])]),(0,p.cE)("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),(0,p.cE)("icon",{transition:"color .3s var(--n-bezier)"})]);const S=Object.assign(Object.assign({},b.A.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function});var B=(0,t.pM)({name:"Alert",inheritAttrs:!1,props:S,slots:Object,setup(e){const{mergedClsPrefixRef:o,mergedBorderedRef:n,inlineThemeDisabled:l,mergedRtlRef:c}=(0,v.Ay)(e),a=(0,b.A)("Alert","-alert",$,E,e,o),s=(0,f.I)("Alert",c,o),d=(0,t.EW)(()=>{const{common:{cubicBezierEaseInOut:o},self:n}=a.value,{fontSize:t,borderRadius:i,titleFontWeight:l,lineHeight:c,iconSize:s,iconMargin:d,iconMarginRtl:h,closeIconSize:u,closeBorderRadius:b,closeSize:v,closeMargin:g,closeMarginRtl:f,padding:C}=n,{type:m}=e,{left:w,right:x}=(0,r.Tj)(d);return{"--n-bezier":o,"--n-color":n[(0,p.cF)("color",m)],"--n-close-icon-size":u,"--n-close-border-radius":b,"--n-close-color-hover":n[(0,p.cF)("closeColorHover",m)],"--n-close-color-pressed":n[(0,p.cF)("closeColorPressed",m)],"--n-close-icon-color":n[(0,p.cF)("closeIconColor",m)],"--n-close-icon-color-hover":n[(0,p.cF)("closeIconColorHover",m)],"--n-close-icon-color-pressed":n[(0,p.cF)("closeIconColorPressed",m)],"--n-icon-color":n[(0,p.cF)("iconColor",m)],"--n-border":n[(0,p.cF)("border",m)],"--n-title-text-color":n[(0,p.cF)("titleTextColor",m)],"--n-content-text-color":n[(0,p.cF)("contentTextColor",m)],"--n-line-height":c,"--n-border-radius":i,"--n-font-size":t,"--n-title-font-weight":l,"--n-icon-size":s,"--n-icon-margin":d,"--n-icon-margin-rtl":h,"--n-close-size":v,"--n-close-margin":g,"--n-close-margin-rtl":f,"--n-padding":C,"--n-icon-margin-left":w,"--n-icon-margin-right":x}}),h=l?(0,g.R)("alert",(0,t.EW)(()=>e.type[0]),d,e):void 0,u=(0,i.KR)(!0),C=()=>{const{onAfterLeave:o,onAfterHide:n}=e;o&&o(),n&&n()},m=()=>{var o;Promise.resolve(null===(o=e.onClose)||void 0===o?void 0:o.call(e)).then(e=>{!1!==e&&(u.value=!1)})},w=()=>{C()};return{rtlEnabled:s,mergedClsPrefix:o,mergedBordered:n,visible:u,handleCloseClick:m,handleAfterLeave:w,mergedTheme:a,cssVars:l?void 0:d,themeClass:null===h||void 0===h?void 0:h.themeClass,onRender:null===h||void 0===h?void 0:h.onRender}},render(){var e;return null===(e=this.onRender)||void 0===e||e.call(this),(0,t.h)(l.A,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:e,$slots:o}=this,n={class:[`${e}-alert`,this.themeClass,this.closable&&`${e}-alert--closable`,this.showIcon&&`${e}-alert--show-icon`,!this.title&&this.closable&&`${e}-alert--right-adjust`,this.rtlEnabled&&`${e}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?(0,t.h)("div",Object.assign({},(0,t.v6)(this.$attrs,n)),this.closable&&(0,t.h)(c.A,{clsPrefix:e,class:`${e}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&(0,t.h)("div",{class:`${e}-alert__border`}),this.showIcon&&(0,t.h)("div",{class:`${e}-alert__icon`,"aria-hidden":"true"},(0,C.Nj)(o.icon,()=>[(0,t.h)(a.A,{clsPrefix:e},{default:()=>{switch(this.type){case"success":return(0,t.h)(s.A,null);case"info":return(0,t.h)(d.A,null);case"warning":return(0,t.h)(h.A,null);case"error":return(0,t.h)(u.A,null);default:return null}}})])),(0,t.h)("div",{class:[`${e}-alert-body`,this.mergedBordered&&`${e}-alert-body--bordered`]},(0,C.iQ)(o.header,o=>{const n=o||this.title;return n?(0,t.h)("div",{class:`${e}-alert-body__title`},n):null}),o.default&&(0,t.h)("div",{class:`${e}-alert-body__content`},o))):null}})}})}}]); -//# sourceMappingURL=410.55f960e5.js.map \ No newline at end of file +//# sourceMappingURL=410.5d08c1a8.js.map \ No newline at end of file diff --git a/dist/js/416.c2b7170c.js b/dist/js/416.9258341d.js similarity index 99% rename from dist/js/416.c2b7170c.js rename to dist/js/416.9258341d.js index 0442b37..4629c36 100644 --- a/dist/js/416.c2b7170c.js +++ b/dist/js/416.9258341d.js @@ -18,4 +18,4 @@ const V=(0,T.A)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838 * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const o=(0,i.A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])}}]); -//# sourceMappingURL=416.c2b7170c.js.map \ No newline at end of file +//# sourceMappingURL=416.9258341d.js.map \ No newline at end of file diff --git a/dist/js/431.6f57c0d5.js b/dist/js/431.ce56f232.js similarity index 99% rename from dist/js/431.6f57c0d5.js rename to dist/js/431.ce56f232.js index 15aec90..7826dfe 100644 --- a/dist/js/431.6f57c0d5.js +++ b/dist/js/431.ce56f232.js @@ -18,4 +18,4 @@ * See the LICENSE file in the root directory of this source tree. */ const x=(0,k.A)("trash",[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);var f=a(35720);const w={class:"favorite-view max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},m={class:"flex items-center gap-2 mb-8",initial:{opacity:0,x:-20},enter:{opacity:1,x:0,transition:{duration:500}}},b={key:0,class:"flex flex-col items-center justify-center py-20"},C={class:"w-24 h-24 bg-gray-100 dark:bg-gray-800 rounded-full flex items-center justify-center mb-4"},_={key:1,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"},A=["enter"],L={class:"flex justify-between items-start"},R={class:"text-2xl font-bold text-gray-900 dark:text-white group-hover:text-primary transition-colors"},F={class:"flex items-center gap-1 mt-2 text-sm text-gray-500 dark:text-gray-400"},j={class:"flex items-center gap-2"},E={class:"p-2 bg-yellow-50 dark:bg-yellow-900/20 rounded-lg"},X=["onClick"],M={key:2,class:"flex justify-center mt-8"},W={key:3,class:"text-center mt-8 text-gray-400 text-sm"};var D={__name:"FavoriteView",setup(e){const t=(0,n.rd)(),a=(0,s.J)(),d=u(),{isDark:c}=(0,r.WQ)("themeContext"),k=(0,l.KR)(!1),D=(0,l.KR)([]),K=(0,l.KR)(1),V=(0,l.KR)(0),z=(0,r.EW)(()=>D.value.lengthe?new Date(e).toLocaleDateString():"",$=async(e=1)=>{k.value=!0;try{const t=await f.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/favorite/list",{params:{page:e}});if(t.data&&0===t.data.code&&t.data.data){const a=t.data.data;D.value=1===e?a.list:[...D.value,...a.list],V.value=a.total,K.value=e}}catch(t){a.error("获取生词本失败")}finally{k.value=!1}},q=()=>{!k.value&&z.value&&$(K.value+1)},H=async e=>{d.warning({title:"确认移除",content:`确定要将单词 "${e.word}" 移出生词本吗?`,positiveText:"确定",negativeText:"取消",onPositiveClick:async()=>{try{const t=await f.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/detail/favorite",{word_id:e.id});t.data&&!1===t.data.is_favorite&&(a.success("已将单词移出生词本"),D.value=D.value.filter(t=>t.id!==e.id),V.value=Math.max(0,V.value-1))}catch(t){console.error("Delete favorite failed:",t),a.error("删除失败")}}})},I=e=>{const a=t.resolve({name:"word-detail",query:{word_id:e}});window.open(a.href,"_blank")};return(0,r.sV)(()=>{$(),document.title="我的生词本 - Word Helper"}),(e,t)=>{const a=(0,r.gN)("motion");return(0,r.uX)(),(0,r.CE)("div",w,[(0,r.bo)(((0,r.uX)(),(0,r.CE)("div",m,[(0,r.bF)((0,l.R1)(p.A),{class:"w-8 h-8 text-yellow-500 fill-current"}),t[1]||(t[1]=(0,r.Lk)("h1",{class:"text-3xl font-bold text-gray-900 dark:text-white"},"我的生词本",-1))])),[[a]]),k.value||0!==D.value.length?((0,r.uX)(),(0,r.CE)("div",_,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(D.value,(e,t)=>(0,r.bo)(((0,r.uX)(),(0,r.CE)("div",{key:e.favorite_id,initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:50*t}}},[(0,r.bF)((0,l.R1)(y.Ay),{class:"h-full rounded-xl shadow-sm hover:shadow-md transition-all cursor-pointer dark:bg-gray-800 group",bordered:!1,onClick:t=>I(e.id)},{default:(0,r.k6)(()=>[(0,r.Lk)("div",L,[(0,r.Lk)("div",null,[(0,r.Lk)("h3",R,(0,o.v_)(e.word),1),(0,r.Lk)("div",F,[(0,r.bF)((0,l.R1)(h.A),{class:"w-4 h-4"}),(0,r.Lk)("span",null,"收藏于 "+(0,o.v_)(Q(e.created_at)),1)])]),(0,r.Lk)("div",j,[(0,r.Lk)("div",E,[(0,r.bF)((0,l.R1)(p.A),{class:"w-5 h-5 text-yellow-500 fill-current"})]),(0,r.Lk)("div",{class:"p-2 hover:bg-red-50 dark:hover:bg-red-900/20 rounded-lg transition-colors cursor-pointer group/btn",onClick:(0,i.D$)(t=>H(e),["stop"]),title:"移除生词"},[(0,r.bF)((0,l.R1)(x),{class:"w-5 h-5 text-gray-400 group-hover/btn:text-red-500 transition-colors"})],8,X)])])]),_:2},1032,["onClick"])],8,A)),[[a]])),128))])):((0,r.uX)(),(0,r.CE)("div",b,[(0,r.Lk)("div",C,[(0,r.bF)((0,l.R1)(g.A),{class:"w-12 h-12 text-gray-400"})]),t[3]||(t[3]=(0,r.Lk)("p",{class:"text-gray-500 mb-3 dark:text-gray-400 text-lg"},"还没有添加任何单词哦",-1)),(0,r.bF)((0,l.R1)(v.Ay),{class:"mt-8",type:"primary",onClick:t[0]||(t[0]=t=>e.$router.push("/dict"))},{default:(0,r.k6)(()=>[...t[2]||(t[2]=[(0,r.eW)(" 去背单词 ",-1)])]),_:1})])),z.value?((0,r.uX)(),(0,r.CE)("div",M,[(0,r.bF)((0,l.R1)(v.Ay),{loading:k.value,size:"large",secondary:"",round:"",onClick:q},{default:(0,r.k6)(()=>[...t[4]||(t[4]=[(0,r.eW)(" 加载更多 ",-1)])]),_:1},8,["loading"])])):(0,r.Q3)("",!0),!z.value&&D.value.length>0?((0,r.uX)(),(0,r.CE)("div",W," 没有更多了 ")):(0,r.Q3)("",!0)])}}},K=a(71241);const V=(0,K.A)(D,[["__scopeId","data-v-7e7e4605"]]);var z=V}}]); -//# sourceMappingURL=431.6f57c0d5.js.map \ No newline at end of file +//# sourceMappingURL=431.ce56f232.js.map \ No newline at end of file diff --git a/dist/js/493.5278def3.js b/dist/js/493.00994683.js similarity index 99% rename from dist/js/493.5278def3.js rename to dist/js/493.00994683.js index fc5db83..0553e9e 100644 --- a/dist/js/493.5278def3.js +++ b/dist/js/493.00994683.js @@ -5,4 +5,4 @@ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const o=(0,a.A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},99758:function(e,t,n){n.d(t,{v:function(){return o}});var a=n(77727);const o=(0,a.D)("n-tabs")}}]); -//# sourceMappingURL=493.5278def3.js.map \ No newline at end of file +//# sourceMappingURL=493.00994683.js.map \ No newline at end of file diff --git a/dist/js/494.ac68ad86.js b/dist/js/494.ac68ad86.js deleted file mode 100644 index f259d44..0000000 --- a/dist/js/494.ac68ad86.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict";(self["webpackChunkwordhelper"]=self["webpackChunkwordhelper"]||[]).push([[494],{4494:function(e,t,n){n.r(t),n.d(t,{default:function(){return ut}});n(44114),n(18111),n(61701);var i=n(56768),r=n(90144),a=n(24232),o=n(45130),l=n(98728),s=n(97387),d=n(45525); -/** - * @license lucide-vue-next v0.562.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ -const c=(0,d.A)("book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);var v=n(35161); -/** - * @license lucide-vue-next v0.562.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ -const u=(0,d.A)("list-plus",[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]]),p=(0,d.A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);var h=n(18495); -/** - * @license lucide-vue-next v0.562.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ -const g=(0,d.A)("bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);var y=n(55200),f=n(7023),m=n(91733),x=n(29554); -/** - * @license lucide-vue-next v0.562.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ -const b=(0,d.A)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);var k=n(38307),w=n(19629),_=n(54880),C=n(92720),R=n(59856),z=n(42517),A=n(68042),E=n(64498),L=n(71168),F=n(8508),P=n(93913),$=n(9845),j=n(79882),B=n(88733),W=n(38741),S=n(25216),M=n(77727),X=n(27355),T=n(34350),O=(0,T.c)([(0,T.cB)("list","\n --n-merged-border-color: var(--n-border-color);\n --n-merged-color: var(--n-color);\n --n-merged-color-hover: var(--n-color-hover);\n margin: 0;\n font-size: var(--n-font-size);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n padding: 0;\n list-style-type: none;\n color: var(--n-text-color);\n background-color: var(--n-merged-color);\n ",[(0,T.cM)("show-divider",[(0,T.cB)("list-item",[(0,T.c)("&:not(:last-child)",[(0,T.cE)("divider","\n background-color: var(--n-merged-border-color);\n ")])])]),(0,T.cM)("clickable",[(0,T.cB)("list-item","\n cursor: pointer;\n ")]),(0,T.cM)("bordered","\n border: 1px solid var(--n-merged-border-color);\n border-radius: var(--n-border-radius);\n "),(0,T.cM)("hoverable",[(0,T.cB)("list-item","\n border-radius: var(--n-border-radius);\n ",[(0,T.c)("&:hover","\n background-color: var(--n-merged-color-hover);\n ",[(0,T.cE)("divider","\n background-color: transparent;\n ")])])]),(0,T.cM)("bordered, hoverable",[(0,T.cB)("list-item","\n padding: 12px 20px;\n "),(0,T.cE)("header, footer","\n padding: 12px 20px;\n ")]),(0,T.cE)("header, footer","\n padding: 12px 0;\n box-sizing: border-box;\n transition: border-color .3s var(--n-bezier);\n ",[(0,T.c)("&:not(:last-child)","\n border-bottom: 1px solid var(--n-merged-border-color);\n ")]),(0,T.cB)("list-item","\n position: relative;\n padding: 12px 0; \n box-sizing: border-box;\n display: flex;\n flex-wrap: nowrap;\n align-items: center;\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ",[(0,T.cE)("prefix","\n margin-right: 20px;\n flex: 0;\n "),(0,T.cE)("suffix","\n margin-left: 20px;\n flex: 0;\n "),(0,T.cE)("main","\n flex: 1;\n "),(0,T.cE)("divider","\n height: 1px;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: transparent;\n transition: background-color .3s var(--n-bezier);\n pointer-events: none;\n ")])]),(0,T.EM)((0,T.cB)("list","\n --n-merged-color-hover: var(--n-color-hover-modal);\n --n-merged-color: var(--n-color-modal);\n --n-merged-border-color: var(--n-border-color-modal);\n ")),(0,T.ES)((0,T.cB)("list","\n --n-merged-color-hover: var(--n-color-hover-popover);\n --n-merged-color: var(--n-color-popover);\n --n-merged-border-color: var(--n-border-color-popover);\n "))]);const I=Object.assign(Object.assign({},j.A.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),K=(0,M.D)("n-list");var H=(0,i.pM)({name:"List",props:I,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:a}=(0,B.Ay)(e),o=(0,W.I)("List",a,t),l=(0,j.A)("List","-list",O,X.A,e,t);(0,i.Gt)(K,{showDividerRef:(0,r.lW)(e,"showDivider"),mergedClsPrefixRef:t});const s=(0,i.EW)(()=>{const{common:{cubicBezierEaseInOut:e},self:{fontSize:t,textColor:n,color:i,colorModal:r,colorPopover:a,borderColor:o,borderColorModal:s,borderColorPopover:d,borderRadius:c,colorHover:v,colorHoverModal:u,colorHoverPopover:p}}=l.value;return{"--n-font-size":t,"--n-bezier":e,"--n-text-color":n,"--n-color":i,"--n-border-radius":c,"--n-border-color":o,"--n-border-color-modal":s,"--n-border-color-popover":d,"--n-color-modal":r,"--n-color-popover":a,"--n-color-hover":v,"--n-color-hover-modal":u,"--n-color-hover-popover":p}}),d=n?(0,S.R)("list",void 0,s,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:n?void 0:s,themeClass:null===d||void 0===d?void 0:d.themeClass,onRender:null===d||void 0===d?void 0:d.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:r}=this;return null===r||void 0===r||r(),(0,i.h)("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?(0,i.h)("div",{class:`${n}-list__header`},t.header()):null,null===(e=t.default)||void 0===e?void 0:e.call(t),t.footer?(0,i.h)("div",{class:`${n}-list__footer`},t.footer()):null)}}),D=n(35268),q=(0,i.pM)({name:"ListItem",slots:Object,setup(){const e=(0,i.WQ)(K,null);return e||(0,D.$8)("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return(0,i.h)("li",{class:`${t}-list-item`},e.prefix?(0,i.h)("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?(0,i.h)("div",{class:`${t}-list-item__main`},e):null,e.suffix?(0,i.h)("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&(0,i.h)("div",{class:`${t}-list-item__divider`}))}}),N=n(43585),V=n(69313),Q=(0,T.cB)("thing","\n display: flex;\n transition: color .3s var(--n-bezier);\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n",[(0,T.cB)("thing-avatar","\n margin-right: 12px;\n margin-top: 2px;\n "),(0,T.cB)("thing-avatar-header-wrapper","\n display: flex;\n flex-wrap: nowrap;\n ",[(0,T.cB)("thing-header-wrapper","\n flex: 1;\n ")]),(0,T.cB)("thing-main","\n flex-grow: 1;\n ",[(0,T.cB)("thing-header","\n display: flex;\n margin-bottom: 4px;\n justify-content: space-between;\n align-items: center;\n ",[(0,T.cE)("title","\n font-size: 16px;\n font-weight: var(--n-title-font-weight);\n transition: color .3s var(--n-bezier);\n color: var(--n-title-text-color);\n ")]),(0,T.cE)("description",[(0,T.c)("&:not(:last-child)","\n margin-bottom: 4px;\n ")]),(0,T.cE)("content",[(0,T.c)("&:not(:first-child)","\n margin-top: 12px;\n ")]),(0,T.cE)("footer",[(0,T.c)("&:not(:first-child)","\n margin-top: 12px;\n ")]),(0,T.cE)("action",[(0,T.c)("&:not(:first-child)","\n margin-top: 12px;\n ")])])]);const U=Object.assign(Object.assign({},j.A.props),{title:String,titleExtra:String,description:String,descriptionClass:String,descriptionStyle:[String,Object],content:String,contentClass:String,contentStyle:[String,Object],contentIndented:Boolean});var Z=(0,i.pM)({name:"Thing",props:U,slots:Object,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:a}=(0,B.Ay)(e),o=(0,j.A)("Thing","-thing",Q,V.A,e,n),l=(0,W.I)("Thing",a,n),s=(0,i.EW)(()=>{const{self:{titleTextColor:e,textColor:t,titleFontWeight:n,fontSize:i},common:{cubicBezierEaseInOut:r}}=o.value;return{"--n-bezier":r,"--n-font-size":i,"--n-text-color":t,"--n-title-font-weight":n,"--n-title-text-color":e}}),d=r?(0,S.R)("thing",void 0,s,e):void 0;return()=>{var a;const{value:o}=n,c=!!l&&l.value;return null===(a=null===d||void 0===d?void 0:d.onRender)||void 0===a||a.call(d),(0,i.h)("div",{class:[`${o}-thing`,null===d||void 0===d?void 0:d.themeClass,c&&`${o}-thing--rtl`],style:r?void 0:s.value},t.avatar&&e.contentIndented?(0,i.h)("div",{class:`${o}-thing-avatar`},t.avatar()):null,(0,i.h)("div",{class:`${o}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?(0,i.h)("div",{class:`${o}-thing-avatar-header-wrapper`},t.avatar?(0,i.h)("div",{class:`${o}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?(0,i.h)("div",{class:`${o}-thing-header-wrapper`},(0,i.h)("div",{class:`${o}-thing-header`},t.header||e.title?(0,i.h)("div",{class:`${o}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?(0,i.h)("div",{class:`${o}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?(0,i.h)("div",{class:[`${o}-thing-main__description`,e.descriptionClass],style:e.descriptionStyle},t.description?t.description():e.description):null):null):(0,i.h)(i.FK,null,t.header||e.title||t["header-extra"]||e.titleExtra?(0,i.h)("div",{class:`${o}-thing-header`},t.header||e.title?(0,i.h)("div",{class:`${o}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?(0,i.h)("div",{class:`${o}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?(0,i.h)("div",{class:[`${o}-thing-main__description`,e.descriptionClass],style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?(0,i.h)("div",{class:[`${o}-thing-main__content`,e.contentClass],style:e.contentStyle},t.default?t.default():e.content):null,t.footer?(0,i.h)("div",{class:`${o}-thing-main__footer`},t.footer()):null,t.action?(0,i.h)("div",{class:`${o}-thing-main__action`},t.action()):null))}}}),Y=n(35720),G=n(74911);const J={class:"word-detail-view max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},ee={key:0,class:"mb-6 flex items-center justify-between bg-primary/10 dark:bg-primary/20 rounded-lg px-4 py-3 border border-primary/20",initial:{opacity:0,y:-20},enter:{opacity:1,y:0,transition:{duration:500}}},te={class:"flex items-center gap-2"},ne={class:"font-medium text-primary"},ie={class:"text-sm font-mono text-primary"},re={class:"font-bold"},ae={class:"opacity-80"},oe={class:"mb-8 flex flex-col md:flex-row md:items-center justify-between gap-4",initial:{opacity:0,y:-20},enter:{opacity:1,y:0,transition:{duration:500}}},le={class:"flex items-center gap-4"},se={class:"text-4xl font-bold text-gray-900 dark:text-white"},de={class:"flex flex-col gap-1"},ce={key:0,class:"text-sm text-gray-500 dark:text-gray-400"},ve={key:1,class:"text-sm text-gray-500 dark:text-gray-400"},ue={class:"flex items-center gap-2"},pe={key:0,class:"flex items-center gap-3"},he={class:"grid grid-cols-1 lg:grid-cols-3 gap-8"},ge={class:"lg:col-span-2 space-y-8"},ye={key:0,class:"flex flex-wrap gap-2",initial:{opacity:0,x:-20},enter:{opacity:1,x:0,transition:{delay:200}}},fe={key:1,class:"flex flex-col gap-3",initial:{opacity:0,x:-20},enter:{opacity:1,x:0,transition:{delay:250}}},me=["onClick"],xe={class:"p-2 bg-blue-100 dark:bg-blue-800 rounded-full text-blue-600 dark:text-blue-300"},be={class:"flex-1 flex items-center flex-wrap gap-2"},ke={class:"text-gray-700 dark:text-gray-200"},we={class:"font-bold text-blue-700 dark:text-blue-400"},_e={class:"flex items-center gap-2"},Ce={key:0,class:"space-y-6"},Re={class:"flex items-baseline gap-2 mb-3"},ze={class:"px-2 py-0.5 rounded bg-gray-100 dark:bg-gray-700 text-gray-600 dark:text-gray-300 font-mono text-sm font-bold"},Ae={class:"text-lg text-gray-800 dark:text-gray-200"},Ee={key:0,class:"pl-4 border-l-2 border-gray-200 dark:border-gray-700 space-y-3"},Le={class:"text-gray-700 dark:text-gray-300"},Fe={class:"text-gray-500 dark:text-gray-500 text-sm mt-0.5"},Pe={key:1,class:"text-gray-400 text-center py-4"},$e={class:"flex items-center gap-2"},je={class:"relative overflow-hidden"},Be=["innerHTML"],We=["innerHTML"],Se={class:"mt-2 text-xs text-gray-400 text-right"},Me={key:1,class:"absolute inset-0 flex items-center justify-center"},Xe={key:2,class:"text-gray-400 text-center py-4"},Te={key:0,class:"flex justify-between items-center mt-4 border-t border-gray-100 dark:border-gray-700 pt-3"},Oe={class:"text-xs text-gray-400"},Ie={class:"space-y-8"},Ke={class:"flex items-center gap-2"},He={class:"grid grid-cols-2 gap-4 text-center"},De={class:"p-3 bg-gray-50 dark:bg-gray-700/50 rounded-lg"},qe={class:"text-xl font-bold text-gray-900 dark:text-white mt-1"},Ne={class:"p-3 bg-green-50 dark:bg-green-900/20 rounded-lg"},Ve={class:"text-xl font-bold text-green-600 dark:text-green-400 mt-1"},Qe={class:"flex items-center justify-between"},Ue={class:"flex items-center gap-2"},Ze={key:0,class:"space-y-4"},Ye={class:"text-gray-700 dark:text-gray-300 whitespace-pre-wrap text-sm"},Ge={class:"flex justify-end mt-2"},Je={class:"text-xs text-gray-400"},et={key:0,class:"mt-2 flex items-center justify-end gap-2"},tt={key:0,class:"text-center pt-2"},nt={key:1,class:"flex justify-center py-4"},it={key:2,class:"text-gray-400 text-center py-4 text-sm"},rt={class:"flex justify-end gap-2"},at={key:0,class:"py-8 flex justify-center"},ot={key:1,class:"py-8"},lt={class:"p-2 bg-blue-100 dark:bg-blue-900/30 rounded-lg text-blue-600 dark:text-blue-400"},st={class:"text-xs text-gray-400"};var dt={__name:"WordDetailView",setup(e){const t=new G.A({html:!0,breaks:!0}),n=(0,l.lq)(),d=(0,l.rd)(),j=(0,s.J)(),B=(0,r.KR)(!1),W=(0,r.KR)(null),S=(0,r.KR)({last:null,next:null}),M=(0,r.KR)(!1),X=(0,r.KR)(!1),T=(0,r.KR)({}),O=(0,r.KR)({content:""}),I=(0,r.KR)([]),K=(0,r.KR)(1),D=(0,r.KR)(0),V=(0,r.KR)(!1),Q=(0,r.KR)([]),U=(0,r.KR)(1),dt=(0,r.KR)(0),ct=(0,r.KR)(!1),vt=(0,r.KR)("slide-left"),ut=(0,r.KR)(!1),pt=(0,r.KR)([]),ht=(0,r.KR)(!1),gt=(0,i.EW)(()=>"true"===n.query.learn),yt=(0,i.EW)(()=>Number(n.query.word_id)),ft=(0,i.EW)(()=>Number(n.query.dict_id)),mt=(0,i.EW)(()=>Q.value[0]||null),xt=async(e=1,t=!1)=>{if(yt.value){V.value=!0;try{const n=await Y.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/detail/note",{params:{word_id:yt.value,page:e,limit:5}});I.value=t?[...I.value,...n.data.list]:n.data.list,D.value=n.data.pagination.total_items,K.value=e}catch(n){console.error("Fetch notes failed:",n),j.error("获取笔记失败")}finally{V.value=!1}}},bt=()=>{xt(K.value+1,!0)},kt=async(e=1)=>{if(yt.value){ct.value=!0;try{const t=await Y.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/detail/ai_passage",{params:{word_id:yt.value,page:e,limit:1}});Q.value=t.data.list,dt.value=t.data.pagination.total_items,U.value=e}catch(t){console.error("Fetch ai passages failed:",t)}finally{ct.value=!1}}},wt=()=>{U.value>1&&(vt.value="slide-right",kt(U.value-1))},_t=()=>{U.value{if(yt.value){B.value=!0,xt(1),kt(1);try{const e={word_id:yt.value,learn:gt.value};gt.value&&ft.value&&(e.dict_id=ft.value);const t=await Y.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/detail/word",e);S.value={last:t.data.last,next:t.data.next};const n={...t.data};delete n.last,delete n.next,W.value=n}catch(e){console.error("Fetch word detail failed:",e),j.error("获取单词详情失败")}finally{B.value=!1}}},Rt=e=>{e&&d.push({name:"word-detail",query:{...n.query,word_id:e}})},zt=async()=>{if(W.value)try{const e=await Y.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/detail/favorite",{word_id:W.value.id});W.value.is_favorite=e.data.is_favorite,j.success(e.data.message)}catch(e){j.error("操作失败")}},At=(e=null)=>{e&&e.id?(T.value=e,O.value.content=e.content):(T.value={},O.value.content=""),M.value=!0},Et=async()=>{if(O.value.content.trim()){X.value=!0;try{const e={word_id:W.value.id,content:O.value.content};T.value.id&&(e.note_id=T.value.id);const t=await Y.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/detail/note",e);j.success(t.data.message),M.value=!1,xt(1)}catch(e){j.error("保存笔记失败")}finally{X.value=!1}}else j.warning("笔记内容不能为空")},Lt=async e=>{try{const t=await Y.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/detail/del_note",{note_id:e});j.success(t.data.message),xt(1)}catch(t){j.error("删除笔记失败")}},Ft=async()=>{W.value?.id&&(ut.value=!0,await Pt())},Pt=async()=>{ht.value=!0;try{const e=await Y.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/word_list/contain_status",{params:{word_id:W.value.id}});pt.value=e.data.list.map(e=>({...e,loading:!1}))}catch(e){j.error("获取词单列表失败")}finally{ht.value=!1}},$t=async(e,t)=>{if(!e.loading){e.loading=!0;try{const n=t?"https://newfront.xn--xhq44jb2fzpc.com/word_helper/word_list/add_word":"https://newfront.xn--xhq44jb2fzpc.com/word_helper/word_list/rmv_word",i=await Y.A.post(n,{list_id:e.id,word_id:[W.value.id]});e.has_word=t,e.word_count=i.data.current_count,j.success(t?"已加入词单":"已移出词单")}catch(n){j.error("操作失败")}finally{e.loading=!1}}},jt=e=>{const t=d.resolve({path:"/list_detail",query:{list_id:e}});window.open(t.href,"_blank")};return(0,i.wB)(()=>n.query.word_id,e=>{e&&Ct()},{immediate:!0}),(0,i.sV)(()=>{document.title="单词详情 - Word Helper"}),(e,n)=>{const l=(0,i.gN)("motion");return(0,i.uX)(),(0,i.CE)("div",J,[gt.value&&W.value?.dict?(0,i.bo)(((0,i.uX)(),(0,i.CE)("div",ee,[(0,i.Lk)("div",te,[(0,i.bF)((0,r.R1)(c),{class:"w-4 h-4 text-primary"}),(0,i.Lk)("span",ne,(0,a.v_)(W.value.dict.name),1)]),(0,i.Lk)("div",ie,[(0,i.Lk)("span",re,(0,a.v_)(W.value.dict.current_order),1),n[6]||(n[6]=(0,i.Lk)("span",{class:"mx-1 opacity-60"},"/",-1)),(0,i.Lk)("span",ae,(0,a.v_)(W.value.dict.total_words),1)])])),[[l]]):(0,i.Q3)("",!0),(0,i.bo)(((0,i.uX)(),(0,i.CE)("div",oe,[(0,i.Lk)("div",le,[(0,i.Lk)("h1",se,(0,a.v_)(W.value?.word),1),(0,i.Lk)("div",de,[W.value?.uk_accent?((0,i.uX)(),(0,i.CE)("div",ce," 英 ["+(0,a.v_)(W.value.uk_accent)+"] ",1)):(0,i.Q3)("",!0),W.value?.us_accent?((0,i.uX)(),(0,i.CE)("div",ve," 美 ["+(0,a.v_)(W.value.us_accent)+"] ",1)):(0,i.Q3)("",!0)]),(0,i.Lk)("div",ue,[(0,i.Lk)("button",{onClick:zt,class:(0,a.C4)(["p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors",W.value?.is_favorite?"text-yellow-500":"text-gray-400"]),title:"加入/移出生词本"},[(0,i.bF)((0,r.R1)(v.A),{class:(0,a.C4)({"fill-current":W.value?.is_favorite})},null,8,["class"])],2),(0,i.Lk)("button",{onClick:Ft,class:"p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors text-gray-400 hover:text-primary",title:"词单快速管理"},[(0,i.bF)((0,r.R1)(u))])])]),gt.value?((0,i.uX)(),(0,i.CE)("div",pe,[(0,i.bF)((0,r.R1)(_.Ay),{secondary:"",disabled:!S.value.last,onClick:n[0]||(n[0]=e=>Rt(S.value.last))},{icon:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(p))]),default:(0,i.k6)(()=>[n[7]||(n[7]=(0,i.eW)(" 上一个 ",-1))]),_:1},8,["disabled"]),(0,i.bF)((0,r.R1)(_.Ay),{type:"primary",disabled:!S.value.next,onClick:n[1]||(n[1]=e=>Rt(S.value.next))},{icon:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(h.A))]),default:(0,i.k6)(()=>[n[8]||(n[8]=(0,i.eW)(" 下一个 ",-1))]),_:1},8,["disabled"])])):(0,i.Q3)("",!0)])),[[l]]),(0,i.Lk)("div",he,[(0,i.Lk)("div",ge,[W.value?.dictionaries?.length?(0,i.bo)(((0,i.uX)(),(0,i.CE)("div",ye,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(W.value.dictionaries,e=>((0,i.uX)(),(0,i.Wv)((0,r.R1)(C.Ay),{key:e.id,type:"info",size:"small",round:""},{default:(0,i.k6)(()=>[(0,i.eW)((0,a.v_)(e.tag||e.name),1)]),_:2},1024))),128))])),[[l]]):(0,i.Q3)("",!0),W.value?.official_lists?.length?(0,i.bo)(((0,i.uX)(),(0,i.CE)("div",fe,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(W.value.official_lists,e=>((0,i.uX)(),(0,i.CE)("div",{key:e.id,class:"cursor-pointer group flex items-center gap-3 p-3 rounded-lg bg-blue-50 dark:bg-blue-900/10 border border-blue-100 dark:border-blue-900/30 hover:shadow-md hover:border-blue-200 dark:hover:border-blue-800 transition-all",onClick:t=>jt(e.id)},[(0,i.Lk)("div",xe,[(0,i.bF)((0,r.R1)(g),{class:"w-4 h-4"})]),(0,i.Lk)("div",be,[(0,i.Lk)("span",ke,[n[9]||(n[9]=(0,i.eW)("收录于 ",-1)),(0,i.Lk)("span",we,(0,a.v_)(e.name),1)]),(0,i.bF)((0,r.R1)(C.Ay),{type:"success",round:"",size:"small"},{icon:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(R._),{component:(0,r.R1)(y.A)},null,8,["component"])]),default:(0,i.k6)(()=>[n[10]||(n[10]=(0,i.eW)(" 官方词单 ",-1))]),_:1})]),(0,i.bF)((0,r.R1)(f.A),{class:"w-4 h-4 text-gray-400 opacity-0 group-hover:opacity-100 transition-opacity transform group-hover:translate-x-1"})],8,me))),128))])),[[l]]):(0,i.Q3)("",!0),(0,i.bo)(((0,i.uX)(),(0,i.Wv)((0,r.R1)(z.Ay),{class:"rounded-xl shadow-sm dark:bg-gray-800",bordered:!1,initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:300}}},{header:(0,i.k6)(()=>[(0,i.Lk)("div",_e,[(0,i.bF)((0,r.R1)(m.A),{class:"w-5 h-5 text-primary"}),n[11]||(n[11]=(0,i.Lk)("span",{class:"font-bold"},"释义与例句",-1))])]),default:(0,i.k6)(()=>[W.value?.translations?.length?((0,i.uX)(),(0,i.CE)("div",Ce,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(W.value.translations,e=>((0,i.uX)(),(0,i.CE)("div",{key:e.id,class:"border-b border-gray-100 dark:border-gray-700 last:border-0 pb-6 last:pb-0"},[(0,i.Lk)("div",Re,[(0,i.Lk)("span",ze,(0,a.v_)(e.pos),1),(0,i.Lk)("span",Ae,(0,a.v_)(e.meaning),1)]),e.examples?.length?((0,i.uX)(),(0,i.CE)("div",Ee,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.examples,e=>((0,i.uX)(),(0,i.CE)("div",{key:e.id},[(0,i.Lk)("p",Le,(0,a.v_)(e.sentence_en),1),(0,i.Lk)("p",Fe,(0,a.v_)(e.sentence_cn),1)]))),128))])):(0,i.Q3)("",!0)]))),128))])):((0,i.uX)(),(0,i.CE)("div",Pe,"暂无释义"))]),_:1})),[[l]]),(0,i.bo)(((0,i.uX)(),(0,i.Wv)((0,r.R1)(z.Ay),{class:"rounded-xl shadow-sm dark:bg-gray-800",bordered:!1,initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:500}}},{header:(0,i.k6)(()=>[(0,i.Lk)("div",$e,[(0,i.bF)((0,r.R1)(x.A),{class:"w-5 h-5 text-purple-500"}),n[12]||(n[12]=(0,i.Lk)("span",{class:"font-bold"},"AI 助记短文",-1))])]),default:(0,i.k6)(()=>[(0,i.Lk)("div",je,[(0,i.bF)(o.eB,{name:vt.value,mode:"out-in"},{default:(0,i.k6)(()=>[mt.value?((0,i.uX)(),(0,i.CE)("div",{key:mt.value.id,class:"w-full"},[(0,i.Lk)("div",{class:"text-gray-700 dark:text-gray-300 leading-relaxed mb-2 markdown-body",innerHTML:(0,r.R1)(t).render(mt.value.content)},null,8,Be),(0,i.Lk)("div",{class:"text-gray-500 dark:text-gray-400 text-sm border-t border-gray-100 dark:border-gray-700 pt-2",innerHTML:(0,r.R1)(t).render(mt.value.translation)},null,8,We),(0,i.Lk)("div",Se,(0,a.v_)(new Date(mt.value.created_at).toLocaleDateString()),1)])):ct.value?((0,i.uX)(),(0,i.CE)("div",Me,[(0,i.bF)((0,r.R1)(A.A),{size:"small"})])):((0,i.uX)(),(0,i.CE)("div",Xe,"暂无我生成过的助记短文"))]),_:1},8,["name"])]),dt.value>0?((0,i.uX)(),(0,i.CE)("div",Te,[(0,i.bF)((0,r.R1)(_.Ay),{size:"small",secondary:"",disabled:U.value<=1||ct.value,onClick:wt},{icon:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(p),{class:"w-3 h-3"})]),default:(0,i.k6)(()=>[n[13]||(n[13]=(0,i.eW)(" 上一篇 ",-1))]),_:1},8,["disabled"]),(0,i.Lk)("span",Oe,(0,a.v_)(U.value)+" / "+(0,a.v_)(dt.value),1),(0,i.bF)((0,r.R1)(_.Ay),{size:"small",secondary:"",disabled:U.value>=dt.value||ct.value,onClick:_t},{icon:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(h.A),{class:"w-3 h-3"})]),default:(0,i.k6)(()=>[n[14]||(n[14]=(0,i.eW)(" 下一篇 ",-1))]),_:1},8,["disabled"])])):(0,i.Q3)("",!0)]),_:1})),[[l]])]),(0,i.Lk)("div",Ie,[(0,i.bo)(((0,i.uX)(),(0,i.Wv)((0,r.R1)(z.Ay),{class:"rounded-xl shadow-sm dark:bg-gray-800",bordered:!1,initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:400}}},{header:(0,i.k6)(()=>[(0,i.Lk)("div",Ke,[(0,i.bF)((0,r.R1)(b),{class:"w-5 h-5 text-blue-500"}),n[15]||(n[15]=(0,i.Lk)("span",{class:"font-bold"},"抽查历史",-1))])]),default:(0,i.k6)(()=>[(0,i.Lk)("div",He,[(0,i.Lk)("div",De,[n[16]||(n[16]=(0,i.Lk)("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"抽查次数",-1)),(0,i.Lk)("div",qe,(0,a.v_)(W.value?.stats?.total_tests||0),1)]),(0,i.Lk)("div",Ne,[n[17]||(n[17]=(0,i.Lk)("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"正确率",-1)),(0,i.Lk)("div",Ve,(0,a.v_)(W.value?.stats?.accuracy||0)+"%",1)])])]),_:1})),[[l]]),(0,i.bo)(((0,i.uX)(),(0,i.Wv)((0,r.R1)(z.Ay),{class:"rounded-xl shadow-sm dark:bg-gray-800",bordered:!1,initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:600}}},{header:(0,i.k6)(()=>[(0,i.Lk)("div",Qe,[(0,i.Lk)("div",Ue,[(0,i.bF)((0,r.R1)(k.A),{class:"w-5 h-5 text-amber-500"}),n[18]||(n[18]=(0,i.Lk)("span",{class:"font-bold"},"用户笔记",-1))]),(0,i.bF)((0,r.R1)(_.Ay),{size:"tiny",secondary:"",circle:"",onClick:At},{icon:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(w.A),{class:"w-4 h-4"})]),_:1})])]),default:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(E.A),{type:"warning","show-icon":"",class:"mb-4 text-xs"},{default:(0,i.k6)(()=>[...n[19]||(n[19]=[(0,i.eW)(" 每个用户对同一单词只能有一条笔记,如重复新建笔记,新笔记内容会替换旧内容,旧笔记不会保存! ",-1)])]),_:1}),I.value.length?((0,i.uX)(),(0,i.CE)("div",Ze,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(I.value,e=>((0,i.uX)(),(0,i.CE)("div",{key:e.id,class:"p-3 bg-yellow-50 dark:bg-yellow-900/10 rounded-lg border border-yellow-100 dark:border-yellow-900/30"},[(0,i.Lk)("div",Ye,(0,a.v_)(e.content),1),(0,i.Lk)("div",Ge,[(0,i.Lk)("span",Je,(0,a.v_)(new Date(e.updated_at).toLocaleDateString()),1)]),e.owner?((0,i.uX)(),(0,i.CE)("div",et,[(0,i.bF)((0,r.R1)(C.Ay),{type:"success",size:"tiny",bordered:!1},{default:(0,i.k6)(()=>[...n[20]||(n[20]=[(0,i.eW)("我的笔记",-1)])]),_:1}),(0,i.bF)((0,r.R1)(_.Ay),{size:"tiny",text:"",type:"primary",onClick:t=>At(e)},{default:(0,i.k6)(()=>[...n[21]||(n[21]=[(0,i.eW)("编辑",-1)])]),_:1},8,["onClick"]),(0,i.bF)((0,r.R1)(L.A),{onPositiveClick:t=>Lt(e.id)},{trigger:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(_.Ay),{size:"tiny",text:"",type:"error"},{default:(0,i.k6)(()=>[...n[22]||(n[22]=[(0,i.eW)("删除",-1)])]),_:1})]),default:(0,i.k6)(()=>[n[23]||(n[23]=(0,i.eW)(" 确定要删除这条笔记吗? ",-1))]),_:1},8,["onPositiveClick"])])):(0,i.Q3)("",!0)]))),128)),I.value.length[...n[24]||(n[24]=[(0,i.eW)(" 加载更多笔记 ",-1)])]),_:1},8,["loading"])])):(0,i.Q3)("",!0)])):V.value?((0,i.uX)(),(0,i.CE)("div",nt,[(0,i.bF)((0,r.R1)(A.A),{size:"small"})])):((0,i.uX)(),(0,i.CE)("div",it," 暂无笔记,点击右上角添加 "))]),_:1})),[[l]])])]),(0,i.bF)((0,r.R1)(F.A),{show:M.value,"onUpdate:show":n[4]||(n[4]=e=>M.value=e),preset:"card",title:T.value.id?"编辑笔记":"添加笔记",class:"w-full max-w-lg"},{footer:(0,i.k6)(()=>[(0,i.Lk)("div",rt,[(0,i.bF)((0,r.R1)(_.Ay),{onClick:n[3]||(n[3]=e=>M.value=!1)},{default:(0,i.k6)(()=>[...n[25]||(n[25]=[(0,i.eW)("取消",-1)])]),_:1}),(0,i.bF)((0,r.R1)(_.Ay),{type:"primary",loading:X.value,onClick:Et},{default:(0,i.k6)(()=>[...n[26]||(n[26]=[(0,i.eW)("保存",-1)])]),_:1},8,["loading"])])]),default:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(P.A),{value:O.value.content,"onUpdate:value":n[2]||(n[2]=e=>O.value.content=e),type:"textarea",placeholder:"记录你的学习心得...",autosize:{minRows:4,maxRows:8}},null,8,["value"])]),_:1},8,["show","title"]),(0,i.bF)((0,r.R1)(F.A),{show:ut.value,"onUpdate:show":n[5]||(n[5]=e=>ut.value=e),preset:"card",title:"词单快速管理",class:"w-full max-w-md"},{default:(0,i.k6)(()=>[ht.value?((0,i.uX)(),(0,i.CE)("div",at,[(0,i.bF)((0,r.R1)(A.A),{size:"medium"})])):0===pt.value.length?((0,i.uX)(),(0,i.CE)("div",ot,[(0,i.bF)((0,r.R1)($.A),{description:"暂无自建词单"})])):((0,i.uX)(),(0,i.Wv)((0,r.R1)(H),{key:2,hoverable:"",clickable:""},{default:(0,i.k6)(()=>[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(pt.value,e=>((0,i.uX)(),(0,i.Wv)((0,r.R1)(q),{key:e.id},{prefix:(0,i.k6)(()=>[(0,i.Lk)("div",lt,[(0,i.bF)((0,r.R1)(c),{class:"w-5 h-5"})])]),suffix:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(N.A),{value:e.has_word,loading:e.loading,"onUpdate:value":t=>$t(e,t)},null,8,["value","loading","onUpdate:value"])]),default:(0,i.k6)(()=>[(0,i.bF)((0,r.R1)(Z),{title:e.name},{description:(0,i.k6)(()=>[(0,i.Lk)("span",st,"共 "+(0,a.v_)(e.word_count)+" 词",1)]),_:2},1032,["title"])]),_:2},1024))),128))]),_:1})),n[27]||(n[27]=(0,i.Lk)("div",{class:"mt-4 text-xs text-gray-400 text-center"}," 点击开关一键将当前单词添加/移除词单 ",-1))]),_:1},8,["show"])])}}},ct=n(71241);const vt=(0,ct.A)(dt,[["__scopeId","data-v-7f21c43e"]]);var ut=vt},9845:function(e,t,n){n.d(t,{A:function(){return h}});var i=n(56768),r=n(84279),a=(0,i.pM)({name:"Empty",render(){return(0,i.h)("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,i.h)("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),(0,i.h)("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),o=n(79882),l=n(88733),s=n(82813),d=n(25216),c=n(34350),v=n(52945),u=(0,c.cB)("empty","\n display: flex;\n flex-direction: column;\n align-items: center;\n font-size: var(--n-font-size);\n",[(0,c.cE)("icon","\n width: var(--n-icon-size);\n height: var(--n-icon-size);\n font-size: var(--n-icon-size);\n line-height: var(--n-icon-size);\n color: var(--n-icon-color);\n transition:\n color .3s var(--n-bezier);\n ",[(0,c.c)("+",[(0,c.cE)("description","\n margin-top: 8px;\n ")])]),(0,c.cE)("description","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n "),(0,c.cE)("extra","\n text-align: center;\n transition: color .3s var(--n-bezier);\n margin-top: 12px;\n color: var(--n-extra-text-color);\n ")]);const p=Object.assign(Object.assign({},o.A.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function});var h=(0,i.pM)({name:"Empty",props:p,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:r}=(0,l.Ay)(e),p=(0,o.A)("Empty","-empty",u,v.A,e,t),{localeRef:h}=(0,s.A)("Empty"),g=(0,i.EW)(()=>{var t,n,i;return null!==(t=e.description)&&void 0!==t?t:null===(i=null===(n=null===r||void 0===r?void 0:r.value)||void 0===n?void 0:n.Empty)||void 0===i?void 0:i.description}),y=(0,i.EW)(()=>{var e,t;return(null===(t=null===(e=null===r||void 0===r?void 0:r.value)||void 0===e?void 0:e.Empty)||void 0===t?void 0:t.renderIcon)||(()=>(0,i.h)(a,null))}),f=(0,i.EW)(()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:n},self:{[(0,c.cF)("iconSize",t)]:i,[(0,c.cF)("fontSize",t)]:r,textColor:a,iconColor:o,extraTextColor:l}}=p.value;return{"--n-icon-size":i,"--n-font-size":r,"--n-bezier":n,"--n-text-color":a,"--n-icon-color":o,"--n-extra-text-color":l}}),m=n?(0,d.R)("empty",(0,i.EW)(()=>{let t="";const{size:n}=e;return t+=n[0],t}),f,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:y,localizedDescription:(0,i.EW)(()=>g.value||h.value.description),cssVars:n?void 0:f,themeClass:null===m||void 0===m?void 0:m.themeClass,onRender:null===m||void 0===m?void 0:m.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return null===n||void 0===n||n(),(0,i.h)("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?(0,i.h)("div",{class:`${t}-empty__icon`},e.icon?e.icon():(0,i.h)(r.A,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?(0,i.h)("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?(0,i.h)("div",{class:`${t}-empty__extra`},e.extra()):null)}})},18495:function(e,t,n){n.d(t,{A:function(){return r}});var i=n(45525); -/** - * @license lucide-vue-next v0.562.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const r=(0,i.A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},19629:function(e,t,n){n.d(t,{A:function(){return r}});var i=n(45525); -/** - * @license lucide-vue-next v0.562.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const r=(0,i.A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},38307:function(e,t,n){n.d(t,{A:function(){return r}});var i=n(45525); -/** - * @license lucide-vue-next v0.562.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const r=(0,i.A)("sticky-note",[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]])},55200:function(e,t,n){n.d(t,{A:function(){return r}});var i=n(45525); -/** - * @license lucide-vue-next v0.562.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const r=(0,i.A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},68042:function(e,t,n){n.d(t,{A:function(){return m}});var i=n(55472),r=n(37485),a=n(56768),o=n(90144),l=n(45130),s=n(21905),d=n(79882),c=n(88733),v=n(25216),u=n(34350),p=n(54507),h=n(29895),g=(0,u.c)([(0,u.c)("@keyframes spin-rotate","\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n "),(0,u.cB)("spin-container","\n position: relative;\n ",[(0,u.cB)("spin-body","\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[(0,h.v)()])]),(0,u.cB)("spin-body","\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n "),(0,u.cB)("spin","\n display: inline-flex;\n height: var(--n-size);\n width: var(--n-size);\n font-size: var(--n-size);\n color: var(--n-color);\n ",[(0,u.cM)("rotate","\n animation: spin-rotate 2s linear infinite;\n ")]),(0,u.cB)("spin-description","\n display: inline-block;\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n margin-top: 8px;\n "),(0,u.cB)("spin-content","\n opacity: 1;\n transition: opacity .3s var(--n-bezier);\n pointer-events: all;\n ",[(0,u.cM)("spinning","\n user-select: none;\n -webkit-user-select: none;\n pointer-events: none;\n opacity: var(--n-opacity-spinning);\n ")])]);const y={small:20,medium:18,large:16},f=Object.assign(Object.assign({},d.A.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number});var m=(0,a.pM)({name:"Spin",props:f,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=(0,c.Ay)(e),l=(0,d.A)("Spin","-spin",g,p.A,e,t),s=(0,a.EW)(()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:n},self:r}=l.value,{opacitySpinning:a,color:o,textColor:s}=r,d="number"===typeof t?(0,i.Cw)(t):r[(0,u.cF)("size",t)];return{"--n-bezier":n,"--n-opacity-spinning":a,"--n-size":d,"--n-color":o,"--n-text-color":s}}),h=n?(0,v.R)("spin",(0,a.EW)(()=>{const{size:t}=e;return"number"===typeof t?String(t):t[0]}),s,e):void 0,f=(0,r.A)(e,["spinning","show"]),m=(0,o.KR)(!1);return(0,a.nT)(t=>{let n;if(f.value){const{delay:i}=e;if(i)return n=window.setTimeout(()=>{m.value=!0},i),void t(()=>{clearTimeout(n)})}m.value=f.value}),{mergedClsPrefix:t,active:m,mergedStrokeWidth:(0,a.EW)(()=>{const{strokeWidth:t}=e;if(void 0!==t)return t;const{size:n}=e;return y["number"===typeof n?"medium":n]}),cssVars:n?void 0:s,themeClass:null===h||void 0===h?void 0:h.themeClass,onRender:null===h||void 0===h?void 0:h.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:i,description:r}=this,o=n.icon&&this.rotate,d=(r||n.description)&&(0,a.h)("div",{class:`${i}-spin-description`},r||(null===(e=n.description)||void 0===e?void 0:e.call(n))),c=n.icon?(0,a.h)("div",{class:[`${i}-spin-body`,this.themeClass]},(0,a.h)("div",{class:[`${i}-spin`,o&&`${i}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),d):(0,a.h)("div",{class:[`${i}-spin-body`,this.themeClass]},(0,a.h)(s.A,{clsPrefix:i,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${i}-spin`}),d);return null===(t=this.onRender)||void 0===t||t.call(this),n.default?(0,a.h)("div",{class:[`${i}-spin-container`,this.themeClass],style:this.cssVars},(0,a.h)("div",{class:[`${i}-spin-content`,this.active&&`${i}-spin-content--spinning`,this.contentClass],style:this.contentStyle},n),(0,a.h)(l.eB,{name:"fade-in-transition"},{default:()=>this.active?c:null})):c}})},71168:function(e,t,n){n.d(t,{A:function(){return A}});var i=n(56768),r=n(90144),a=n(79882),o=n(88733),l=n(37901),s=n(86866),d=n(91462),c=n(36921),v=n(29767),u=n(77727);const p=(0,u.D)("n-popconfirm");var h=n(84279),g=n(73921),y=n(82813),f=n(25216),m=n(52126),x=n(25972),b=n(54880);const k={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},w=(0,m.Y)(k);var _=(0,i.pM)({name:"NPopconfirmPanel",props:k,setup(e){const{localeRef:t}=(0,y.A)("Popconfirm"),{inlineThemeDisabled:n}=(0,o.Ay)(),{mergedClsPrefixRef:a,mergedThemeRef:l,props:s}=(0,i.WQ)(p),d=(0,i.EW)(()=>{const{common:{cubicBezierEaseInOut:e},self:{fontSize:t,iconSize:n,iconColor:i}}=l.value;return{"--n-bezier":e,"--n-font-size":t,"--n-icon-size":n,"--n-icon-color":i}}),c=n?(0,f.R)("popconfirm-panel",void 0,d,s):void 0;return Object.assign(Object.assign({},(0,y.A)("Popconfirm")),{mergedClsPrefix:a,cssVars:n?void 0:d,localizedPositiveText:(0,i.EW)(()=>e.positiveText||t.value.positiveText),localizedNegativeText:(0,i.EW)(()=>e.negativeText||t.value.negativeText),positiveButtonProps:(0,r.lW)(s,"positiveButtonProps"),negativeButtonProps:(0,r.lW)(s,"negativeButtonProps"),handlePositiveClick(t){e.onPositiveClick(t)},handleNegativeClick(t){e.onNegativeClick(t)},themeClass:null===c||void 0===c?void 0:c.themeClass,onRender:null===c||void 0===c?void 0:c.onRender})},render(){var e;const{mergedClsPrefix:t,showIcon:n,$slots:r}=this,a=(0,x.Nj)(r.action,()=>null===this.negativeText&&null===this.positiveText?[]:[null!==this.negativeText&&(0,i.h)(b.Ay,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),null!==this.positiveText&&(0,i.h)(b.Ay,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return null===(e=this.onRender)||void 0===e||e.call(this),(0,i.h)("div",{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},(0,x.iQ)(r.default,e=>n||e?(0,i.h)("div",{class:`${t}-popconfirm__body`},n?(0,i.h)("div",{class:`${t}-popconfirm__icon`},(0,x.Nj)(r.icon,()=>[(0,i.h)(h.A,{clsPrefix:t},{default:()=>(0,i.h)(g.A,null)})])):null,e):null),a?(0,i.h)("div",{class:[`${t}-popconfirm__action`]},a):null)}}),C=n(34350),R=(0,C.cB)("popconfirm",[(0,C.cE)("body","\n font-size: var(--n-font-size);\n display: flex;\n align-items: center;\n flex-wrap: nowrap;\n position: relative;\n ",[(0,C.cE)("icon","\n display: flex;\n font-size: var(--n-icon-size);\n color: var(--n-icon-color);\n transition: color .3s var(--n-bezier);\n margin: 0 8px 0 0;\n ")]),(0,C.cE)("action","\n display: flex;\n justify-content: flex-end;\n ",[(0,C.c)("&:not(:first-child)","margin-top: 8px"),(0,C.cB)("button",[(0,C.c)("&:not(:last-child)","margin-right: 8px;")])])]);const z=Object.assign(Object.assign(Object.assign({},a.A.props),c.vY),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function});var A=(0,i.pM)({name:"Popconfirm",props:z,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=(0,o.Ay)(),n=(0,a.A)("Popconfirm","-popconfirm",R,v.A,e,t),s=(0,r.KR)(null);function d(t){var n;if(!(null===(n=s.value)||void 0===n?void 0:n.getMergedShow()))return;const{onPositiveClick:i,"onUpdate:show":r}=e;Promise.resolve(!i||i(t)).then(e=>{var t;!1!==e&&(null===(t=s.value)||void 0===t||t.setShow(!1),r&&(0,l.T)(r,!1))})}function c(t){var n;if(!(null===(n=s.value)||void 0===n?void 0:n.getMergedShow()))return;const{onNegativeClick:i,"onUpdate:show":r}=e;Promise.resolve(!i||i(t)).then(e=>{var t;!1!==e&&(null===(t=s.value)||void 0===t||t.setShow(!1),r&&(0,l.T)(r,!1))})}(0,i.Gt)(p,{mergedThemeRef:n,mergedClsPrefixRef:t,props:e});const u={setShow(e){var t;null===(t=s.value)||void 0===t||t.setShow(e)},syncPosition(){var e;null===(e=s.value)||void 0===e||e.syncPosition()},mergedTheme:n,popoverInstRef:s,handlePositiveClick:d,handleNegativeClick:c};return u},render(){const{$slots:e,$props:t,mergedTheme:n}=this;return(0,i.h)(c.Ay,Object.assign({},(0,s.c)(t,w),{theme:n.peers.Popover,themeOverrides:n.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.trigger,default:()=>{const n=(0,d.a)(t,w);return(0,i.h)(_,Object.assign({},n,{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}})}}]); -//# sourceMappingURL=494.ac68ad86.js.map \ No newline at end of file diff --git a/dist/js/536.4906264a.js b/dist/js/536.2cafa1ee.js similarity index 99% rename from dist/js/536.4906264a.js rename to dist/js/536.2cafa1ee.js index 8906ec2..2babf97 100644 --- a/dist/js/536.4906264a.js +++ b/dist/js/536.2cafa1ee.js @@ -24,4 +24,4 @@ const g=(0,y.A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",k * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const o=(0,i.A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])}}]); -//# sourceMappingURL=536.4906264a.js.map \ No newline at end of file +//# sourceMappingURL=536.2cafa1ee.js.map \ No newline at end of file diff --git a/dist/js/62.5c839540.js b/dist/js/62.97b91111.js similarity index 99% rename from dist/js/62.5c839540.js rename to dist/js/62.97b91111.js index 5f5047f..e65dfec 100644 --- a/dist/js/62.5c839540.js +++ b/dist/js/62.97b91111.js @@ -1,2 +1,2 @@ "use strict";(self["webpackChunkwordhelper"]=self["webpackChunkwordhelper"]||[]).push([[62],{52384:function(e,r,n){n.d(r,{Ay:function(){return Re}});n(18111),n(22489),n(7588),n(61701),n(44114),n(81148),n(33110),n(58335);function t(){return t=Object.assign?Object.assign.bind():function(e){for(var r=1;r1?r-1:0),t=1;t=a)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(r){return"[Circular]"}default:return e}});return o}return e}function g(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}function m(e,r){return void 0===e||null===e||(!("array"!==r||!Array.isArray(e)||e.length)||!(!g(r)||"string"!==typeof e||e))}function v(e,r,n){var t=[],i=0,a=e.length;function o(e){t.push.apply(t,e||[]),i++,i===a&&n(t)}e.forEach(function(e){r(e,o)})}function b(e,r,n){var t=0,i=e.length;function a(o){if(o&&o.length)n(o);else{var l=t;t+=1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},R={integer:function(e){return R.number(e)&&parseInt(e,10)===e},float:function(e){return R.number(e)&&!R.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(r){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!R.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match($.email)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(A())},hex:function(e){return"string"===typeof e&&!!e.match($.hex)}},j=function(e,r,n,t,i){if(e.required&&void 0===r)P(e,r,n,t,i);else{var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;a.indexOf(o)>-1?R[o](r)||t.push(h(i.messages.types[o],e.fullField,e.type)):o&&typeof r!==e.type&&t.push(h(i.messages.types[o],e.fullField,e.type))}},W=function(e,r,n,t,i){var a="number"===typeof e.len,o="number"===typeof e.min,l="number"===typeof e.max,s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,d=null,c="number"===typeof r,f="string"===typeof r,p=Array.isArray(r);if(c?d="number":f?d="string":p&&(d="array"),!d)return!1;p&&(u=r.length),f&&(u=r.replace(s,"_").length),a?u!==e.len&&t.push(h(i.messages[d].len,e.fullField,e.len)):o&&!l&&ue.max?t.push(h(i.messages[d].max,e.fullField,e.max)):o&&l&&(ue.max)&&t.push(h(i.messages[d].range,e.fullField,e.min,e.max))},_="enum",z=function(e,r,n,t,i){e[_]=Array.isArray(e[_])?e[_]:[],-1===e[_].indexOf(r)&&t.push(h(i.messages[_],e.fullField,e[_].join(", ")))},C=function(e,r,n,t,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(r)||t.push(h(i.messages.pattern.mismatch,e.fullField,r,e.pattern));else if("string"===typeof e.pattern){var a=new RegExp(e.pattern);a.test(r)||t.push(h(i.messages.pattern.mismatch,e.fullField,r,e.pattern))}},M={required:P,whitespace:S,type:j,range:W,enum:z,pattern:C},B=function(e,r,n,t,i){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(m(r,"string")&&!e.required)return n();M.required(e,r,t,a,i,"string"),m(r,"string")||(M.type(e,r,t,a,i),M.range(e,r,t,a,i),M.pattern(e,r,t,a,i),!0===e.whitespace&&M.whitespace(e,r,t,a,i))}n(a)},V=function(e,r,n,t,i){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(m(r)&&!e.required)return n();M.required(e,r,t,a,i),void 0!==r&&M.type(e,r,t,a,i)}n(a)},D=function(e,r,n,t,i){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(""===r&&(r=void 0),m(r)&&!e.required)return n();M.required(e,r,t,a,i),void 0!==r&&(M.type(e,r,t,a,i),M.range(e,r,t,a,i))}n(a)},L=function(e,r,n,t,i){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(m(r)&&!e.required)return n();M.required(e,r,t,a,i),void 0!==r&&M.type(e,r,t,a,i)}n(a)},T=function(e,r,n,t,i){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(m(r)&&!e.required)return n();M.required(e,r,t,a,i),m(r)||M.type(e,r,t,a,i)}n(a)},I=function(e,r,n,t,i){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(m(r)&&!e.required)return n();M.required(e,r,t,a,i),void 0!==r&&(M.type(e,r,t,a,i),M.range(e,r,t,a,i))}n(a)},N=function(e,r,n,t,i){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(m(r)&&!e.required)return n();M.required(e,r,t,a,i),void 0!==r&&(M.type(e,r,t,a,i),M.range(e,r,t,a,i))}n(a)},Y=function(e,r,n,t,i){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if((void 0===r||null===r)&&!e.required)return n();M.required(e,r,t,a,i,"array"),void 0!==r&&null!==r&&(M.type(e,r,t,a,i),M.range(e,r,t,a,i))}n(a)},K=function(e,r,n,t,i){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(m(r)&&!e.required)return n();M.required(e,r,t,a,i),void 0!==r&&M.type(e,r,t,a,i)}n(a)},Q="enum",H=function(e,r,n,t,i){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(m(r)&&!e.required)return n();M.required(e,r,t,a,i),void 0!==r&&M[Q](e,r,t,a,i)}n(a)},G=function(e,r,n,t,i){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(m(r,"string")&&!e.required)return n();M.required(e,r,t,a,i),m(r,"string")||M.pattern(e,r,t,a,i)}n(a)},J=function(e,r,n,t,i){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(m(r,"date")&&!e.required)return n();var l;if(M.required(e,r,t,a,i),!m(r,"date"))l=r instanceof Date?r:new Date(r),M.type(e,l,t,a,i),l&&M.range(e,l.getTime(),t,a,i)}n(a)},Z=function(e,r,n,t,i){var a=[],o=Array.isArray(r)?"array":typeof r;M.required(e,r,t,a,i,o),n(a)},X=function(e,r,n,t,i){var a=e.type,o=[],l=e.required||!e.required&&t.hasOwnProperty(e.field);if(l){if(m(r,a)&&!e.required)return n();M.required(e,r,t,o,i,a),m(r,a)||M.type(e,r,t,o,i)}n(o)},U=function(e,r,n,t,i){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(m(r)&&!e.required)return n();M.required(e,r,t,a,i)}n(a)},ee={string:B,method:V,number:D,boolean:L,regexp:T,integer:I,float:N,array:Y,object:K,enum:H,pattern:G,date:J,url:X,hex:X,email:X,required:Z,any:U};function re(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var ne=re(),te=function(){function e(e){this.rules=null,this._messages=ne,this.define(e)}var r=e.prototype;return r.define=function(e){var r=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var t=e[n];r.rules[n]=Array.isArray(t)?t:[t]})},r.messages=function(e){return e&&(this._messages=O(re(),e)),this._messages},r.validate=function(r,n,i){var a=this;void 0===n&&(n={}),void 0===i&&(i=function(){});var o=r,l=n,s=i;if("function"===typeof l&&(s=l,l={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,o),Promise.resolve(o);function u(e){var r=[],n={};function t(e){var n;Array.isArray(e)?r=(n=r).concat.apply(n,e):r.push(e)}for(var i=0;ie===a),1)}function s(e,r){e[r]||(e[r]=[]),~e[r].findIndex(e=>e===a)||e[r].push(a)}(0,oe.wB)(n,o),o(n.value),(0,oe.xo)(()=>{o(void 0,n.value)})}var me=n(34350),ve=n(25972),be=n(30146),ye=n(83628),we=n(58475);const{cubicBezierEaseInOut:ke}=we.A;function xe({name:e="fade-down",fromOffset:r="-4px",enterDuration:n=".3s",leaveDuration:t=".3s",enterCubicBezier:i=ke,leaveCubicBezier:a=ke}={}){return[(0,me.c)(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${r})`}),(0,me.c)(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),(0,me.c)(`&.${e}-transition-leave-active`,{transition:`opacity ${t} ${a}, transform ${t} ${a}`}),(0,me.c)(`&.${e}-transition-enter-active`,{transition:`opacity ${n} ${i}, transform ${n} ${i}`})]}var qe=(0,me.cB)("form-item","\n display: grid;\n line-height: var(--n-line-height);\n",[(0,me.cB)("form-item-label","\n grid-area: label;\n align-items: center;\n line-height: 1.25;\n text-align: var(--n-label-text-align);\n font-size: var(--n-label-font-size);\n min-height: var(--n-label-height);\n padding: var(--n-label-padding);\n color: var(--n-label-text-color);\n transition: color .3s var(--n-bezier);\n box-sizing: border-box;\n font-weight: var(--n-label-font-weight);\n ",[(0,me.cE)("asterisk","\n white-space: nowrap;\n user-select: none;\n -webkit-user-select: none;\n color: var(--n-asterisk-color);\n transition: color .3s var(--n-bezier);\n "),(0,me.cE)("asterisk-placeholder","\n grid-area: mark;\n user-select: none;\n -webkit-user-select: none;\n visibility: hidden; \n ")]),(0,me.cB)("form-item-blank","\n grid-area: blank;\n min-height: var(--n-blank-height);\n "),(0,me.cM)("auto-label-width",[(0,me.cB)("form-item-label","white-space: nowrap;")]),(0,me.cM)("left-labelled",'\n grid-template-areas:\n "label blank"\n "label feedback";\n grid-template-columns: auto minmax(0, 1fr);\n grid-template-rows: auto 1fr;\n align-items: flex-start;\n ',[(0,me.cB)("form-item-label","\n display: grid;\n grid-template-columns: 1fr auto;\n min-height: var(--n-blank-height);\n height: auto;\n box-sizing: border-box;\n flex-shrink: 0;\n flex-grow: 0;\n ",[(0,me.cM)("reverse-columns-space","\n grid-template-columns: auto 1fr;\n "),(0,me.cM)("left-mark",'\n grid-template-areas:\n "mark text"\n ". text";\n '),(0,me.cM)("right-mark",'\n grid-template-areas: \n "text mark"\n "text .";\n '),(0,me.cM)("right-hanging-mark",'\n grid-template-areas: \n "text mark"\n "text .";\n '),(0,me.cE)("text","\n grid-area: text; \n "),(0,me.cE)("asterisk","\n grid-area: mark; \n align-self: end;\n ")])]),(0,me.cM)("top-labelled",'\n grid-template-areas:\n "label"\n "blank"\n "feedback";\n grid-template-rows: minmax(var(--n-label-height), auto) 1fr;\n grid-template-columns: minmax(0, 100%);\n ',[(0,me.cM)("no-label",'\n grid-template-areas:\n "blank"\n "feedback";\n grid-template-rows: 1fr;\n '),(0,me.cB)("form-item-label","\n display: flex;\n align-items: flex-start;\n justify-content: var(--n-label-text-align);\n ")]),(0,me.cB)("form-item-blank","\n box-sizing: border-box;\n display: flex;\n align-items: center;\n position: relative;\n "),(0,me.cB)("form-item-feedback-wrapper","\n grid-area: feedback;\n box-sizing: border-box;\n min-height: var(--n-feedback-height);\n font-size: var(--n-feedback-font-size);\n line-height: 1.25;\n transform-origin: top left;\n ",[(0,me.c)("&:not(:empty)","\n padding: var(--n-feedback-padding);\n "),(0,me.cB)("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[(0,me.cM)("warning",{color:"var(--n-feedback-text-color-warning)"}),(0,me.cM)("error",{color:"var(--n-feedback-text-color-error)"}),xe({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]),Fe=(n(13579),n(35444));function Oe(e){const r=(0,oe.WQ)(ye.D,null);return{mergedSize:(0,oe.EW)(()=>void 0!==e.size?e.size:void 0!==(null===r||void 0===r?void 0:r.props.size)?r.props.size:"medium")}}function Ee(e){const r=(0,oe.WQ)(ye.D,null),n=(0,oe.EW)(()=>{const{labelPlacement:n}=e;return void 0!==n?n:(null===r||void 0===r?void 0:r.props.labelPlacement)?r.props.labelPlacement:"top"}),t=(0,oe.EW)(()=>"left"===n.value&&("auto"===e.labelWidth||"auto"===(null===r||void 0===r?void 0:r.props.labelWidth))),i=(0,oe.EW)(()=>{if("top"===n.value)return;const{labelWidth:i}=e;if(void 0!==i&&"auto"!==i)return(0,Fe.i)(i);if(t.value){const e=null===r||void 0===r?void 0:r.maxChildLabelWidthRef.value;return void 0!==e?(0,Fe.i)(e):void 0}return void 0!==(null===r||void 0===r?void 0:r.props.labelWidth)?(0,Fe.i)(r.props.labelWidth):void 0}),a=(0,oe.EW)(()=>{const{labelAlign:n}=e;return n||((null===r||void 0===r?void 0:r.props.labelAlign)?r.props.labelAlign:void 0)}),o=(0,oe.EW)(()=>{var r;return[null===(r=e.labelProps)||void 0===r?void 0:r.style,e.labelStyle,{width:i.value}]}),l=(0,oe.EW)(()=>{const{showRequireMark:n}=e;return void 0!==n?n:null===r||void 0===r?void 0:r.props.showRequireMark}),s=(0,oe.EW)(()=>{const{requireMarkPlacement:n}=e;return void 0!==n?n:(null===r||void 0===r?void 0:r.props.requireMarkPlacement)||"right"}),u=(0,le.KR)(!1),d=(0,le.KR)(!1),c=(0,oe.EW)(()=>{const{validationStatus:r}=e;return void 0!==r?r:u.value?"error":d.value?"warning":void 0}),f=(0,oe.EW)(()=>{const{showFeedback:n}=e;return void 0!==n?n:void 0===(null===r||void 0===r?void 0:r.props.showFeedback)||r.props.showFeedback}),p=(0,oe.EW)(()=>{const{showLabel:n}=e;return void 0!==n?n:void 0===(null===r||void 0===r?void 0:r.props.showLabel)||r.props.showLabel});return{validationErrored:u,validationWarned:d,mergedLabelStyle:o,mergedLabelPlacement:n,mergedLabelAlign:a,mergedShowRequireMark:l,mergedRequireMarkPlacement:s,mergedValidationStatus:c,mergedShowFeedback:f,mergedShowLabel:p,isAutoLabelWidth:t}}function Pe(e){const r=(0,oe.WQ)(ye.D,null),n=(0,oe.EW)(()=>{const{rulePath:r}=e;if(void 0!==r)return r;const{path:n}=e;return void 0!==n?n:void 0}),t=(0,oe.EW)(()=>{const t=[],{rule:i}=e;if(void 0!==i&&(Array.isArray(i)?t.push(...i):t.push(i)),r){const{rules:e}=r.props,{value:i}=n;if(void 0!==e&&void 0!==i){const r=(0,ie.A)(e,i);void 0!==r&&(Array.isArray(r)?t.push(...r):t.push(r))}}return t}),i=(0,oe.EW)(()=>t.value.some(e=>e.required)),a=(0,oe.EW)(()=>i.value||e.required);return{mergedRules:t,mergedRequired:a}}var Se=function(e,r,n,t){function i(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,a){function o(e){try{s(t.next(e))}catch(r){a(r)}}function l(e){try{s(t["throw"](e))}catch(r){a(r)}}function s(e){e.done?n(e.value):i(e.value).then(o,l)}s((t=t.apply(e,r||[])).next())})};const Ae=Object.assign(Object.assign({},ue.A.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,feedbackClass:String,feedbackStyle:[String,Object],showLabel:{type:Boolean,default:void 0},labelProps:Object,contentClass:String,contentStyle:[String,Object]});(0,pe.Y)(Ae);function $e(e,r){return(...n)=>{try{const t=e(...n);return!r&&("boolean"===typeof t||t instanceof Error||Array.isArray(t))||(null===t||void 0===t?void 0:t.then)?t:(void 0===t||(0,he.R8)("form-item/validate",`You return a ${typeof t} typed value in the validator method, which is not recommended. Please use ${r?"`Promise`":"`boolean`, `Error` or `Promise`"} typed value instead.`),!0)}catch(t){return(0,he.R8)("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),void console.error(t)}}}var Re=(0,oe.pM)({name:"FormItem",props:Ae,setup(e){ge(ye.R,"formItems",(0,le.lW)(e,"path"));const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=(0,de.Ay)(e),t=(0,oe.WQ)(ye.D,null),i=Oe(e),a=Ee(e),{validationErrored:o,validationWarned:l}=a,{mergedRequired:s,mergedRules:u}=Pe(e),{mergedSize:d}=i,{mergedLabelPlacement:c,mergedLabelAlign:f,mergedRequireMarkPlacement:p}=a,h=(0,le.KR)([]),g=(0,le.KR)((0,ae.sX)()),m=t?(0,le.lW)(t.props,"disabled"):(0,le.KR)(!1),v=(0,ue.A)("Form","-form-item",qe,be.A,e,r);function b(){h.value=[],o.value=!1,l.value=!1,e.feedback&&(g.value=(0,ae.sX)())}(0,oe.wB)((0,le.lW)(e,"path"),()=>{e.ignorePathChange||b()});const y=(...r)=>Se(this,[...r],void 0,function*(r=null,n=()=>!0,i={suppressWarning:!0}){const{path:a}=e;i?i.first||(i.first=e.first):i={};const{value:s}=u,d=t?(0,ie.A)(t.props.model,a||""):void 0,c={},f={},p=(r?s.filter(e=>Array.isArray(e.trigger)?e.trigger.includes(r):e.trigger===r):s).filter(n).map((e,r)=>{const n=Object.assign({},e);if(n.validator&&(n.validator=$e(n.validator,!1)),n.asyncValidator&&(n.asyncValidator=$e(n.asyncValidator,!0)),n.renderMessage){const e=`__renderMessage__${r}`;f[e]=n.message,n.message=e,c[e]=n.renderMessage}return n}),g=p.filter(e=>"warning"!==e.level),m=p.filter(e=>"warning"===e.level),v={valid:!0,errors:void 0,warnings:void 0};if(!p.length)return v;const y=null!==a&&void 0!==a?a:"__n_no_path__",w=new te({[y]:g}),k=new te({[y]:m}),{validateMessages:x}=(null===t||void 0===t?void 0:t.props)||{};x&&(w.messages(x),k.messages(x));const q=e=>{h.value=e.map(e=>{const r=(null===e||void 0===e?void 0:e.message)||"";return{key:r,render:()=>r.startsWith("__renderMessage__")?c[r]():r}}),e.forEach(e=>{var r;(null===(r=e.message)||void 0===r?void 0:r.startsWith("__renderMessage__"))&&(e.message=f[e.message])})};if(g.length){const e=yield new Promise(e=>{w.validate({[y]:d},i,e)});(null===e||void 0===e?void 0:e.length)&&(v.valid=!1,v.errors=e,q(e))}if(m.length&&!v.errors){const e=yield new Promise(e=>{k.validate({[y]:d},i,e)});(null===e||void 0===e?void 0:e.length)&&(q(e),v.warnings=e)}return v.errors||v.warnings?(o.value=!!v.errors,l.value=!!v.warnings):b(),v});function w(){y("blur")}function k(){y("change")}function x(){y("focus")}function q(){y("input")}function F(e,r){return Se(this,void 0,void 0,function*(){let n,t,i,a;return"string"===typeof e?(n=e,t=r):null!==e&&"object"===typeof e&&(n=e.trigger,t=e.callback,i=e.shouldRuleBeApplied,a=e.options),yield new Promise((e,r)=>{y(n,i,a).then(({valid:n,errors:i,warnings:a})=>{n?(t&&t(void 0,{warnings:a}),e({warnings:a})):(t&&t(i,{warnings:a}),r(i))})})})}(0,oe.Gt)(fe.w,{path:(0,le.lW)(e,"path"),disabled:m,mergedSize:i.mergedSize,mergedValidationStatus:a.mergedValidationStatus,restoreValidation:b,handleContentBlur:w,handleContentChange:k,handleContentFocus:x,handleContentInput:q});const O={validate:F,restoreValidation:b,internalValidate:y},E=(0,le.KR)(null);(0,oe.sV)(()=>{if(!a.isAutoLabelWidth.value)return;const e=E.value;if(null!==e){const r=e.style.whiteSpace;e.style.whiteSpace="nowrap",e.style.width="",null===t||void 0===t||t.deriveMaxChildLabelWidth(Number(getComputedStyle(e).width.slice(0,-2))),e.style.whiteSpace=r}});const P=(0,oe.EW)(()=>{var e;const{value:r}=d,{value:n}=c,t="top"===n?"vertical":"horizontal",{common:{cubicBezierEaseInOut:i},self:{labelTextColor:a,asteriskColor:o,lineHeight:l,feedbackTextColor:s,feedbackTextColorWarning:u,feedbackTextColorError:p,feedbackPadding:h,labelFontWeight:g,[(0,me.cF)("labelHeight",r)]:m,[(0,me.cF)("blankHeight",r)]:b,[(0,me.cF)("feedbackFontSize",r)]:y,[(0,me.cF)("feedbackHeight",r)]:w,[(0,me.cF)("labelPadding",t)]:k,[(0,me.cF)("labelTextAlign",t)]:x,[(0,me.cF)((0,me.cF)("labelFontSize",n),r)]:q}}=v.value;let F=null!==(e=f.value)&&void 0!==e?e:x;"top"===n&&(F="right"===F?"flex-end":"flex-start");const O={"--n-bezier":i,"--n-line-height":l,"--n-blank-height":b,"--n-label-font-size":q,"--n-label-text-align":F,"--n-label-height":m,"--n-label-padding":k,"--n-label-font-weight":g,"--n-asterisk-color":o,"--n-label-text-color":a,"--n-feedback-padding":h,"--n-feedback-font-size":y,"--n-feedback-height":w,"--n-feedback-text-color":s,"--n-feedback-text-color-warning":u,"--n-feedback-text-color-error":p};return O}),S=n?(0,ce.R)("form-item",(0,oe.EW)(()=>{var e;return`${d.value[0]}${c.value[0]}${(null===(e=f.value)||void 0===e?void 0:e[0])||""}`}),P,e):void 0,A=(0,oe.EW)(()=>"left"===c.value&&"left"===p.value&&"left"===f.value);return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:E,mergedClsPrefix:r,mergedRequired:s,feedbackId:g,renderExplains:h,reverseColSpace:A},a),i),O),{cssVars:n?void 0:P,themeClass:null===S||void 0===S?void 0:S.themeClass,onRender:null===S||void 0===S?void 0:S.onRender})},render(){const{$slots:e,mergedClsPrefix:r,mergedShowLabel:n,mergedShowRequireMark:t,mergedRequireMarkPlacement:i,onRender:a}=this,o=void 0!==t?t:this.mergedRequired;null===a||void 0===a||a();const l=()=>{const e=this.$slots.label?this.$slots.label():this.label;if(!e)return null;const n=(0,oe.h)("span",{class:`${r}-form-item-label__text`},e),t=o?(0,oe.h)("span",{class:`${r}-form-item-label__asterisk`},"left"!==i?" *":"* "):"right-hanging"===i&&(0,oe.h)("span",{class:`${r}-form-item-label__asterisk-placeholder`}," *"),{labelProps:a}=this;return(0,oe.h)("label",Object.assign({},a,{class:[null===a||void 0===a?void 0:a.class,`${r}-form-item-label`,`${r}-form-item-label--${i}-mark`,this.reverseColSpace&&`${r}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),"left"===i?[t,n]:[n,t])};return(0,oe.h)("div",{class:[`${r}-form-item`,this.themeClass,`${r}-form-item--${this.mergedSize}-size`,`${r}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${r}-form-item--auto-label-width`,!n&&`${r}-form-item--no-label`],style:this.cssVars},n&&l(),(0,oe.h)("div",{class:[`${r}-form-item-blank`,this.contentClass,this.mergedValidationStatus&&`${r}-form-item-blank--${this.mergedValidationStatus}`],style:this.contentStyle},e),this.mergedShowFeedback?(0,oe.h)("div",{key:this.feedbackId,style:this.feedbackStyle,class:[`${r}-form-item-feedback-wrapper`,this.feedbackClass]},(0,oe.h)(se.eB,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:n}=this;return(0,ve.iQ)(e.feedback,e=>{var t;const{feedback:i}=this,a=e||i?(0,oe.h)("div",{key:"__feedback__",class:`${r}-form-item-feedback__line`},e||i):this.renderExplains.length?null===(t=this.renderExplains)||void 0===t?void 0:t.map(({key:e,render:n})=>(0,oe.h)("div",{key:e,class:`${r}-form-item-feedback__line`},n())):null;return a?"warning"===n?(0,oe.h)("div",{key:"controlled-warning",class:`${r}-form-item-feedback ${r}-form-item-feedback--warning`},a):"error"===n?(0,oe.h)("div",{key:"controlled-error",class:`${r}-form-item-feedback ${r}-form-item-feedback--error`},a):"success"===n?(0,oe.h)("div",{key:"controlled-success",class:`${r}-form-item-feedback ${r}-form-item-feedback--success`},a):(0,oe.h)("div",{key:"controlled-default",class:`${r}-form-item-feedback`},a):null})}})):null)}})},58911:function(e,r,n){n.d(r,{A:function(){return h}});n(44114),n(18111),n(7588),n(13579);var t=n(56768),i=n(90144),a=n(79882),o=n(88733),l=n(52126),s=n(30146),u=n(83628),d=n(34350),c=(0,d.cB)("form",[(0,d.cM)("inline","\n width: 100%;\n display: inline-flex;\n align-items: flex-start;\n align-content: space-around;\n ",[(0,d.cB)("form-item",{width:"auto",marginRight:"18px"},[(0,d.c)("&:last-child",{marginRight:0})])])]),f=function(e,r,n,t){function i(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,a){function o(e){try{s(t.next(e))}catch(r){a(r)}}function l(e){try{s(t["throw"](e))}catch(r){a(r)}}function s(e){e.done?n(e.value):i(e.value).then(o,l)}s((t=t.apply(e,r||[])).next())})};const p=Object.assign(Object.assign({},a.A.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>{e.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object});var h=(0,t.pM)({name:"Form",props:p,setup(e){const{mergedClsPrefixRef:r}=(0,o.Ay)(e);(0,a.A)("Form","-form",c,s.A,e,r);const n={},d=(0,i.KR)(void 0),p=e=>{const r=d.value;(void 0===r||e>=r)&&(d.value=e)};function h(e){return f(this,arguments,void 0,function*(e,r=()=>!0){return yield new Promise((t,i)=>{const a=[];for(const e of(0,l.Y)(n)){const t=n[e];for(const e of t)e.path&&a.push(e.internalValidate(null,r))}Promise.all(a).then(r=>{const n=r.some(e=>!e.valid),a=[],o=[];r.forEach(e=>{var r,n;(null===(r=e.errors)||void 0===r?void 0:r.length)&&a.push(e.errors),(null===(n=e.warnings)||void 0===n?void 0:n.length)&&o.push(e.warnings)}),e&&e(a.length?a:void 0,{warnings:o.length?o:void 0}),n?i(a.length?a:void 0):t({warnings:o.length?o:void 0})})})})}function g(){for(const e of(0,l.Y)(n)){const r=n[e];for(const e of r)e.restoreValidation()}}(0,t.Gt)(u.D,{props:e,maxChildLabelWidthRef:d,deriveMaxChildLabelWidth:p}),(0,t.Gt)(u.R,{formItems:n});const m={validate:h,restoreValidation:g};return Object.assign(m,{mergedClsPrefix:r})},render(){const{mergedClsPrefix:e}=this;return(0,t.h)("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}})},83628:function(e,r,n){n.d(r,{D:function(){return i},R:function(){return a}});var t=n(77727);const i=(0,t.D)("n-form"),a=(0,t.D)("n-form-item-insts")}}]); -//# sourceMappingURL=62.5c839540.js.map \ No newline at end of file +//# sourceMappingURL=62.97b91111.js.map \ No newline at end of file diff --git a/dist/js/67.2e38ec60.js b/dist/js/67.c5181ab8.js similarity index 99% rename from dist/js/67.2e38ec60.js rename to dist/js/67.c5181ab8.js index 0a3ae6f..a347a71 100644 --- a/dist/js/67.2e38ec60.js +++ b/dist/js/67.c5181ab8.js @@ -12,4 +12,4 @@ * See the LICENSE file in the root directory of this source tree. */ const k=(0,x.A)("search-x",[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var p=t(35720);const h={class:"search-view max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},g={class:"max-w-3xl mx-auto"},m={class:"text-center mb-10",initial:{opacity:0,y:-20},enter:{opacity:1,y:0,transition:{duration:500}}},w={class:"flex gap-2"},f={class:"text-left mt-2 h-5"},b={key:0,class:"text-red-500 text-sm"},C={key:0},R={class:"flex items-center justify-between mb-4"},_={class:"text-lg font-medium text-gray-700 dark:text-gray-300"},A={key:0,class:"space-y-4"},L={class:"flex items-center justify-between"},E={class:"text-lg font-bold text-gray-900 dark:text-white"},X={key:0,class:"text-center mt-8"},K={key:1,class:"text-center py-12 bg-gray-50 dark:bg-gray-800/50 rounded-xl"},F={class:"text-gray-400 mb-2"},j={key:1,class:"text-center py-20 opacity-50"};var W={__name:"SearchView",setup(e){const a=(0,c.rd)(),t=(0,i.J)(),{isDark:x}=(0,l.WQ)("themeContext"),W=(0,r.KR)(""),q=(0,r.KR)(!1),z=(0,r.KR)([]),Q=(0,r.KR)(1),I=(0,r.KR)(0),S=(0,r.KR)(!1),V=(0,r.KR)(""),D=(0,l.EW)(()=>z.value.length{const e=W.value.trim();e?e.length>20?V.value="搜索内容不能超过20个字符":(V.value="",Q.value=1,S.value=!0,await M(!0)):V.value="请输入搜索内容"},J=async()=>{Q.value++,await M(!1)},M=async e=>{q.value=!0;try{const a=await p.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/search",{keyword:W.value,page:Q.value,limit:10}),t=a.data;z.value=e?t.list:[...z.value,...t.list],I.value=t.total}catch(a){console.error("Search failed:",a),t.error("搜索失败,请稍后重试")}finally{q.value=!1}},N=e=>{const t=a.resolve({name:"word-detail",query:{word_id:e}});window.open(t.href,"_blank")};return(0,l.sV)(()=>{document.title="单词搜索 - Word Helper"}),(e,a)=>{const t=(0,l.gN)("motion");return(0,l.uX)(),(0,l.CE)("div",h,[(0,l.Lk)("div",g,[(0,l.bo)(((0,l.uX)(),(0,l.CE)("div",m,[a[2]||(a[2]=(0,l.Lk)("h1",{class:"text-3xl font-bold text-gray-900 dark:text-white mb-4"},"单词搜索",-1)),(0,l.Lk)("div",w,[(0,l.bF)((0,r.R1)(o.A),{value:W.value,"onUpdate:value":a[0]||(a[0]=e=>W.value=e),size:"large",placeholder:"输入单词进行搜索(支持部分匹配)",maxlength:20,onKeydown:(0,s.jR)(H,["enter"]),class:"flex-1 text-left"},{prefix:(0,l.k6)(()=>[(0,l.bF)((0,r.R1)(y.A),{class:"w-5 h-5 text-gray-400"})]),_:1},8,["value"]),(0,l.bF)((0,r.R1)(u.Ay),{type:"primary",size:"large",loading:q.value&&1===Q.value,onClick:H,class:"px-8"},{default:(0,l.k6)(()=>[...a[1]||(a[1]=[(0,l.eW)(" 搜索 ",-1)])]),_:1},8,["loading"])]),(0,l.Lk)("div",f,[V.value?((0,l.uX)(),(0,l.CE)("span",b,(0,n.v_)(V.value),1)):(0,l.Q3)("",!0)])])),[[t]]),S.value?((0,l.uX)(),(0,l.CE)("div",C,[(0,l.Lk)("div",R,[(0,l.Lk)("h2",_,"搜索结果 ("+(0,n.v_)(I.value)+")",1)]),z.value.length>0?((0,l.uX)(),(0,l.CE)("div",A,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(z.value,(e,a)=>(0,l.bo)(((0,l.uX)(),(0,l.Wv)((0,r.R1)(d.Ay),{key:e.id,class:"hover:shadow-md transition-shadow cursor-pointer dark:bg-gray-800",size:"small",onClick:a=>N(e.id),initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:50*a}}},{default:(0,l.k6)(()=>[(0,l.Lk)("div",L,[(0,l.Lk)("span",E,(0,n.v_)(e.word),1),(0,l.bF)((0,r.R1)(v.A),{class:"w-4 h-4 text-gray-400"})])]),_:2},1032,["onClick","enter"])),[[t]])),128)),D.value?((0,l.uX)(),(0,l.CE)("div",X,[(0,l.bF)((0,r.R1)(u.Ay),{loading:q.value,secondary:"",round:"",onClick:J},{default:(0,l.k6)(()=>[...a[3]||(a[3]=[(0,l.eW)(" 加载更多 ",-1)])]),_:1},8,["loading"])])):(0,l.Q3)("",!0)])):((0,l.uX)(),(0,l.CE)("div",K,[(0,l.Lk)("div",F,[(0,l.bF)((0,r.R1)(k),{class:"w-12 h-12 mx-auto opacity-50"})]),a[4]||(a[4]=(0,l.Lk)("p",{class:"text-gray-500 dark:text-gray-400"},"未找到相关单词",-1))]))])):((0,l.uX)(),(0,l.CE)("div",j,[(0,l.bF)((0,r.R1)(y.A),{class:"w-16 h-16 mx-auto text-gray-300 dark:text-gray-600 mb-4"}),a[5]||(a[5]=(0,l.Lk)("p",{class:"text-gray-400 dark:text-gray-500"},"输入关键词开始探索...",-1))]))])])}}},q=t(71241);const z=(0,q.A)(W,[["__scopeId","data-v-75475b89"]]);var Q=z}}]); -//# sourceMappingURL=67.2e38ec60.js.map \ No newline at end of file +//# sourceMappingURL=67.c5181ab8.js.map \ No newline at end of file diff --git a/dist/js/705.23be038b.js b/dist/js/705.83efab9f.js similarity index 99% rename from dist/js/705.23be038b.js rename to dist/js/705.83efab9f.js index 602205a..5266b17 100644 --- a/dist/js/705.23be038b.js +++ b/dist/js/705.83efab9f.js @@ -11,4 +11,4 @@ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const s=(0,n.A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])}}]); -//# sourceMappingURL=705.23be038b.js.map \ No newline at end of file +//# sourceMappingURL=705.83efab9f.js.map \ No newline at end of file diff --git a/dist/js/765.64a424e3.js b/dist/js/765.fbd42649.js similarity index 99% rename from dist/js/765.64a424e3.js rename to dist/js/765.fbd42649.js index 76075bf..842fd6f 100644 --- a/dist/js/765.64a424e3.js +++ b/dist/js/765.fbd42649.js @@ -24,4 +24,4 @@ * See the LICENSE file in the root directory of this source tree. */ const R=(0,_.A)("trophy",[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]]),A=(0,_.A)("frown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);var L=l(65163),C=l(15520),F=l(2231),W=l(18495),K=l(35720),X=l(15227),E=l(91737);const z={class:"wordle-view max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},j={class:"flex flex-col gap-4 mb-8"},q={class:"flex items-center gap-2"},M={class:"bg-green-50 dark:bg-green-900/20 p-4 rounded-lg flex items-start gap-3"},U={key:0,class:"max-w-2xl mx-auto"},I={class:"w-full"},V={key:1,class:"text-gray-400 text-sm py-0.5 px-1"},H={class:"flex justify-end mt-6"},$={key:1,class:"max-w-md mx-auto"},Q={class:"flex justify-center mb-6"},N={class:"text-xl font-bold text-gray-700 dark:text-gray-200"},B={key:0,class:"space-y-4"},D={class:"text-gray-400 text-xs"},O={key:1,class:"text-center space-y-6 bg-white dark:bg-gray-800 p-6 rounded-xl shadow-lg"},S={key:0},T={class:"text-gray-600 dark:text-gray-400"},J={key:1},G={class:"text-gray-600 dark:text-gray-400"},P={class:"flex justify-center gap-4"},Y={class:"max-w-4xl mx-auto"},Z={class:"grid grid-cols-2 gap-4 mb-6"},ee={class:"text-center"},ae={class:"text-2xl font-bold text-primary"},le={class:"text-center"},te={class:"text-2xl font-bold text-green-500"},re={key:0,class:"space-y-3"},se={class:"flex justify-between items-center"},oe={class:"flex items-center gap-4"},de={class:"text-lg font-bold text-gray-900 dark:text-white uppercase"},ne={class:"flex items-center text-xs text-gray-400 mt-1"},ue={class:"flex justify-center mt-6 pb-8"},ie={key:1,class:"text-gray-400 text-sm py-4"};var ce={__name:"WordleView",setup(e){const a=(0,d.rd)(),l=(0,n.J)(),{width:_}=(0,E.lWr)(),ce=(0,t.EW)(()=>_.value<768),ve=(0,r.KR)("start"),ye=(0,r.KR)("config"),pe=(0,r.KR)(!1),ge=(0,r.KR)([]),ke=(0,r.KR)(!1),xe=(0,r.KR)([]),be=(0,r.KR)(!1),me=(0,r.KR)({mode:0,dict_ids:[],list_ids:[]}),he=(0,r.KR)(null),fe=(0,r.KR)(""),we=(0,t.EW)(()=>fe.value.length),_e=(0,t.EW)(()=>we.value+1),Re=(0,r.KR)(0),Ae=(0,r.KR)(""),Le=(0,r.KR)([]),Ce=(0,r.KR)("playing"),Fe=(0,r.KR)([]),We=(0,r.KR)([]),Ke=(0,r.KR)(1),Xe=(0,r.KR)({total_games:0,accuracy:0}),Ee=(0,r.KR)(!1),ze=(0,r.KR)(!1),je=()=>{Le.value=Array(_e.value).fill(null).map(()=>Array(we.value).fill(null).map(()=>({char:"",status:"empty"})))},qe=async()=>{be.value=!0;try{const e=await K.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/dict/list");0===e.data.code&&(ge.value=e.data.data.map(e=>({label:e.name,value:e.id})))}catch(e){console.error("Fetch dicts error:",e)}finally{be.value=!1}},Me=e=>{const a=me.value.list_ids.indexOf(e);a>-1&&me.value.list_ids.splice(a,1);const l=xe.value.findIndex(a=>a.id===e);l>-1&&xe.value.splice(l,1)},Ue=async(e=1)=>{Ee.value=!0;try{const a=await K.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/wordle/history",{params:{page:e}}),l=a.data;Xe.value=l.stats,We.value=1===e?l.list:[...We.value,...l.list],Ke.value=l.pagination.page,ze.value=l.pagination.has_more}catch(a){console.error("Fetch history error:",a),l.error("获取历史记录失败")}finally{Ee.value=!1}},Ie=()=>{!Ee.value&&ze.value&&Ue(Ke.value+1)},Ve=async()=>{if(1===me.value.mode&&me.value.dict_ids.length,3===me.value.mode){if(0===me.value.list_ids.length)return void l.warning("请至少选择一个词单");if(me.value.list_ids.length>10)return void l.warning("最多只能选择10个词单")}pe.value=!0;try{const e={mode:me.value.mode,dict_ids:3===me.value.mode?me.value.list_ids:me.value.dict_ids},a=await K.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/wordle/get_word",e),t=a.data;t.id&&t.word?(he.value=t.id,fe.value=t.word.toLowerCase(),Re.value=0,Ae.value="",Fe.value=[],Ce.value="playing",je(),ye.value="game"):t.error?l.error(t.error):l.error("获取单词失败")}catch(e){console.error("Start game error:",e),e.response&&e.response.data&&e.response.data.error?l.error(e.response.data.error):l.error("启动失败,请稍后重试")}finally{pe.value=!1}},He=()=>{ye.value="config",fe.value=""},$e=async()=>{if("playing"!==Ce.value)return;const e=Ae.value.toLowerCase().trim();if(e.length!==we.value)return void l.warning(`请输入 ${we.value} 个字母的单词`);if(!/^[a-z]+$/.test(e))return void l.warning("只能包含字母");const a=Le.value[Re.value],t=fe.value.split(""),r=e.split("");r.forEach((e,l)=>{a[l].char=e,e===t[l]&&(a[l].status="correct",t[l]=null)}),r.forEach((e,l)=>{if("correct"!==a[l].status){const r=t.indexOf(e);-1!==r?(a[l].status="present",t[r]=null):a[l].status="absent"}}),Fe.value.push(e),Re.value++,Ae.value="",e===fe.value?(Ce.value="won",await Qe(!0)):Re.value>=_e.value&&(Ce.value="lost",await Qe(!1))},Qe=async e=>{try{await K.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/wordle/record",{word_id:he.value,success:e,record:Fe.value})}catch(a){console.error("Record result error:",a)}},Ne=(e,a)=>{if(a>=Re.value)return"bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-white";switch(e.status){case"correct":return"bg-green-500 border-green-500 text-white";case"present":return"bg-yellow-500 border-yellow-500 text-white";case"absent":return"bg-gray-400 dark:bg-gray-600 border-gray-400 dark:border-gray-600 text-white";default:return"bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600"}},Be=e=>{const l=a.resolve({path:"/word",query:{word_id:e}});window.open(l.href,"_blank")};return(0,t.sV)(()=>{document.title="猜单词 - Word Helper",qe()}),(0,t.wB)(()=>me.value.mode,e=>{1===e&&0===ge.value.length&&qe()}),(0,t.wB)(ve,e=>{"history"===e&&Ue(1)}),(e,a)=>{const l=(0,t.gN)("motion-slide-visible-once-left"),d=(0,t.gN)("motion-fade"),n=(0,t.gN)("motion-pop");return(0,t.uX)(),(0,t.CE)("div",z,[(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",j,[(0,t.Lk)("div",q,[(0,t.bF)((0,r.R1)(f.A),{class:"w-8 h-8 text-primary"}),a[11]||(a[11]=(0,t.Lk)("h1",{class:"text-3xl font-bold text-gray-900 dark:text-white"},"单词猜猜乐",-1)),(0,t.bF)((0,r.R1)(u.Ay),{type:"error",size:"small",round:""},{default:(0,t.k6)(()=>[...a[10]||(a[10]=[(0,t.eW)("困难",-1)])]),_:1})]),(0,t.Lk)("div",M,[(0,t.bF)((0,r.R1)(w.A),{class:"w-5 h-5 text-green-500 mt-0.5 flex-shrink-0"}),a[12]||(a[12]=(0,t.Lk)("p",{class:"text-sm text-gray-600 dark:text-gray-300 leading-relaxed"},[(0,t.eW)(" 猜词游戏规则:您需要猜测一个由 5-9 个字母组成的单词。一个长度为 n 的单词有 n+1 次猜测机会。每次猜测后,方格颜色会提示您的猜测是否正确。"),(0,t.Lk)("br"),(0,t.Lk)("span",{class:"inline-block w-3 h-3 bg-green-500 mr-1 rounded-sm align-middle"}),(0,t.eW)("绿色:字母位置正确"),(0,t.Lk)("br"),(0,t.Lk)("span",{class:"inline-block w-3 h-3 bg-yellow-500 mr-1 rounded-sm align-middle"}),(0,t.eW)("黄色:字母存在但位置错误"),(0,t.Lk)("br"),(0,t.Lk)("span",{class:"inline-block w-3 h-3 bg-gray-400 mr-1 rounded-sm align-middle"}),(0,t.eW)("灰色:字母不存在,或目标词中该字母已全部匹配完毕 ")],-1))])])),[[l]]),(0,t.bF)((0,r.R1)(i.A),{type:"segment",animated:"",value:ve.value,"onUpdate:value":a[9]||(a[9]=e=>ve.value=e)},{default:(0,t.k6)(()=>[(0,t.bF)((0,r.R1)(c.A),{name:"start",tab:"开始游戏"},{default:(0,t.k6)(()=>["config"===ye.value?(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",U,[(0,t.bF)((0,r.R1)(v.Ay),{class:"rounded-xl shadow-sm",title:"游戏配置"},{default:(0,t.k6)(()=>[(0,t.bF)((0,r.R1)(y.A),{ref:"formRef",model:me.value,"label-placement":ce.value?"top":"left","label-width":ce.value?"auto":100,"require-mark-placement":"right-hanging"},{default:(0,t.k6)(()=>[(0,t.bF)((0,r.R1)(p.Ay),{label:"单词来源"},{default:(0,t.k6)(()=>[(0,t.bF)((0,r.R1)(g.A),{value:me.value.mode,"onUpdate:value":a[0]||(a[0]=e=>me.value.mode=e),name:"mode"},{default:(0,t.k6)(()=>[(0,t.bF)((0,r.R1)(k.A),{value:0,label:"学习记录"}),(0,t.bF)((0,r.R1)(k.A),{value:1,label:"词书挑战"}),(0,t.bF)((0,r.R1)(k.A),{value:2,label:"生词本"}),(0,t.bF)((0,r.R1)(k.A),{value:3,label:"词单抽词"})]),_:1},8,["value"])]),_:1}),1===me.value.mode?((0,t.uX)(),(0,t.Wv)((0,r.R1)(p.Ay),{key:0,label:"选择词书"},{default:(0,t.k6)(()=>[(0,t.bF)((0,r.R1)(x.A),{value:me.value.dict_ids,"onUpdate:value":a[1]||(a[1]=e=>me.value.dict_ids=e),multiple:"",filterable:"",placeholder:"请选择词书(不选代表全部)",options:ge.value,loading:be.value,clearable:""},null,8,["value","options","loading"])]),_:1})):(0,t.Q3)("",!0),3===me.value.mode?((0,t.uX)(),(0,t.Wv)((0,r.R1)(p.Ay),{key:1,label:"选择词单"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",I,[(0,t.Lk)("div",{class:"border border-gray-300 dark:border-gray-600 rounded-md p-2 min-h-[34px] cursor-pointer hover:border-indigo-500 transition-colors bg-white dark:bg-black/10 flex flex-wrap gap-2",onClick:a[2]||(a[2]=e=>ke.value=!0)},[xe.value.length>0?((0,t.uX)(!0),(0,t.CE)(t.FK,{key:0},(0,t.pI)(xe.value,e=>((0,t.uX)(),(0,t.Wv)((0,r.R1)(u.Ay),{key:e.id,closable:"",onClose:(0,s.D$)(a=>Me(e.id),["stop"]),size:"small"},{default:(0,t.k6)(()=>[(0,t.eW)((0,o.v_)(e.name),1)]),_:2},1032,["onClose"]))),128)):((0,t.uX)(),(0,t.CE)("div",V," 点击选择词单... "))])])]),_:1})):(0,t.Q3)("",!0),(0,t.bF)(X.A,{show:ke.value,"onUpdate:show":a[3]||(a[3]=e=>ke.value=e),modelValue:me.value.list_ids,"onUpdate:modelValue":a[4]||(a[4]=e=>me.value.list_ids=e),selectedList:xe.value,"onUpdate:selectedList":a[5]||(a[5]=e=>xe.value=e),"max-count":10},null,8,["show","modelValue","selectedList"]),(0,t.Lk)("div",H,[(0,t.bF)((0,r.R1)(b.Ay),{type:"primary",size:"large",onClick:Ve,loading:pe.value},{default:(0,t.k6)(()=>[...a[13]||(a[13]=[(0,t.eW)(" 开始游戏 ",-1)])]),_:1},8,["loading"])])]),_:1},8,["model","label-placement","label-width"])]),_:1})])),[[d]]):"game"===ye.value?(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",$,[(0,t.Lk)("div",Q,[(0,t.Lk)("h2",N," 猜一个 "+(0,o.v_)(we.value)+" 个字母的单词 ",1)]),(0,t.Lk)("div",{class:"grid gap-2 mb-8 select-none",style:(0,o.Tr)({gridTemplateColumns:`repeat(${we.value}, minmax(0, 1fr))`})},[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(Le.value,(e,a)=>((0,t.uX)(),(0,t.CE)(t.FK,{key:a},[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(e,(e,l)=>((0,t.uX)(),(0,t.CE)("div",{key:l,class:(0,o.C4)(["aspect-square flex items-center justify-center text-2xl font-bold uppercase border-2 rounded transition-all duration-300",Ne(e,a)])},(0,o.v_)(e.char),3))),128))],64))),128))],4),"playing"===Ce.value?((0,t.uX)(),(0,t.CE)("div",B,[(0,t.bF)((0,r.R1)(m.A),{ref:"inputRef",value:Ae.value,"onUpdate:value":a[6]||(a[6]=e=>Ae.value=e),placeholder:"输入单词后回车",maxlength:we.value,onKeydown:(0,s.jR)($e,["enter"]),class:"text-center text-lg uppercase",autofocus:""},{suffix:(0,t.k6)(()=>[(0,t.Lk)("span",D,(0,o.v_)(Ae.value.length)+"/"+(0,o.v_)(we.value),1)]),_:1},8,["value","maxlength"]),(0,t.bF)((0,r.R1)(b.Ay),{block:"",type:"primary",onClick:$e,disabled:Ae.value.length!==we.value},{default:(0,t.k6)(()=>[...a[14]||(a[14]=[(0,t.eW)(" 提交猜测 ",-1)])]),_:1},8,["disabled"])])):(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",O,["won"===Ce.value?((0,t.uX)(),(0,t.CE)("div",S,[(0,t.bF)((0,r.R1)(R),{class:"w-16 h-16 text-yellow-500 mx-auto mb-4"}),a[16]||(a[16]=(0,t.Lk)("h3",{class:"text-2xl font-bold text-green-600 mb-2"},"恭喜胜利!",-1)),(0,t.Lk)("p",T,[a[15]||(a[15]=(0,t.eW)("单词是: ",-1)),(0,t.Lk)("span",{class:"font-bold text-lg text-primary cursor-pointer hover:underline decoration-primary decoration-2 underline-offset-4",onClick:a[7]||(a[7]=e=>Be(he.value)),title:"点击查看单词详情"},(0,o.v_)(fe.value),1)])])):((0,t.uX)(),(0,t.CE)("div",J,[(0,t.bF)((0,r.R1)(A),{class:"w-16 h-16 text-gray-400 mx-auto mb-4"}),a[18]||(a[18]=(0,t.Lk)("h3",{class:"text-2xl font-bold text-red-500 mb-2"},"游戏结束",-1)),(0,t.Lk)("p",G,[a[17]||(a[17]=(0,t.eW)("正确单词是: ",-1)),(0,t.Lk)("span",{class:"font-bold text-lg text-primary cursor-pointer hover:underline decoration-primary decoration-2 underline-offset-4",onClick:a[8]||(a[8]=e=>Be(he.value)),title:"点击查看单词详情"},(0,o.v_)(fe.value),1)])])),(0,t.Lk)("div",P,[(0,t.bF)((0,r.R1)(b.Ay),{secondary:"",onClick:He},{default:(0,t.k6)(()=>[...a[19]||(a[19]=[(0,t.eW)("返回配置",-1)])]),_:1}),(0,t.bF)((0,r.R1)(b.Ay),{type:"primary",onClick:Ve},{default:(0,t.k6)(()=>[...a[20]||(a[20]=[(0,t.eW)("再来一局",-1)])]),_:1})])])),[[n]])])),[[d]]):(0,t.Q3)("",!0)]),_:1}),(0,t.bF)((0,r.R1)(c.A),{name:"history",tab:"历史记录"},{default:(0,t.k6)(()=>[(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",Y,[(0,t.Lk)("div",Z,[(0,t.bF)((0,r.R1)(v.Ay),{class:"bg-blue-50 dark:bg-blue-900/20 border-0 rounded-xl"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",ee,[a[21]||(a[21]=(0,t.Lk)("div",{class:"text-gray-500 dark:text-gray-400 text-sm mb-1"},"累计场次",-1)),(0,t.Lk)("div",ae,(0,o.v_)(Xe.value.total_games),1)])]),_:1}),(0,t.bF)((0,r.R1)(v.Ay),{class:"bg-green-50 dark:bg-green-900/20 border-0 rounded-xl"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",le,[a[22]||(a[22]=(0,t.Lk)("div",{class:"text-gray-500 dark:text-gray-400 text-sm mb-1"},"胜率",-1)),(0,t.Lk)("div",te,(0,o.v_)(Xe.value.accuracy)+"%",1)])]),_:1})]),We.value.length>0?((0,t.uX)(),(0,t.CE)("div",re,[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(We.value,e=>((0,t.uX)(),(0,t.Wv)((0,r.R1)(v.Ay),{key:e.id,size:"small",class:"hover:shadow-md transition-shadow cursor-pointer rounded-lg",onClick:a=>Be(e.word_id)},{default:(0,t.k6)(()=>[(0,t.Lk)("div",se,[(0,t.Lk)("div",oe,[((0,t.uX)(),(0,t.Wv)((0,t.$y)(e.success?(0,r.R1)(L.A):(0,r.R1)(C.A)),{class:(0,o.C4)(["w-8 h-8",e.success?"text-green-500":"text-red-500"])},null,8,["class"])),(0,t.Lk)("div",null,[(0,t.Lk)("h4",de,(0,o.v_)(e.word),1),(0,t.Lk)("div",ne,[(0,t.bF)((0,r.R1)(F.A),{class:"w-3 h-3 mr-1"}),(0,t.eW)(" "+(0,o.v_)(new Date(e.created_at).toLocaleString()),1)])])]),(0,t.bF)((0,r.R1)(W.A),{class:"w-4 h-4 text-gray-400"})])]),_:2},1032,["onClick"]))),128)),(0,t.Lk)("div",ue,[ze.value?((0,t.uX)(),(0,t.Wv)((0,r.R1)(b.Ay),{key:0,loading:Ee.value,onClick:Ie,secondary:"",round:""},{default:(0,t.k6)(()=>[...a[23]||(a[23]=[(0,t.eW)(" 查看更多 ",-1)])]),_:1},8,["loading"])):((0,t.uX)(),(0,t.CE)("div",ie,"没有更多了"))])])):Ee.value?(0,t.Q3)("",!0):((0,t.uX)(),(0,t.Wv)((0,r.R1)(h.A),{key:1,description:"暂无游戏记录",class:"mt-20"}))])),[[d]])]),_:1})]),_:1},8,["value"])])}}},ve=l(71241);const ye=(0,ve.A)(ce,[["__scopeId","data-v-5d345b7b"]]);var pe=ye}}]); -//# sourceMappingURL=765.64a424e3.js.map \ No newline at end of file +//# sourceMappingURL=765.fbd42649.js.map \ No newline at end of file diff --git a/dist/js/774.b8ef2e65.js b/dist/js/774.80696cdb.js similarity index 99% rename from dist/js/774.b8ef2e65.js rename to dist/js/774.80696cdb.js index d653494..2901f59 100644 --- a/dist/js/774.b8ef2e65.js +++ b/dist/js/774.80696cdb.js @@ -35,4 +35,4 @@ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const r=(0,n.A)("pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]])}}]); -//# sourceMappingURL=774.b8ef2e65.js.map \ No newline at end of file +//# sourceMappingURL=774.80696cdb.js.map \ No newline at end of file diff --git a/dist/js/913.0251f0e5.js b/dist/js/913.57fbc7fd.js similarity index 99% rename from dist/js/913.0251f0e5.js rename to dist/js/913.57fbc7fd.js index 0dc3c9f..17d592e 100644 --- a/dist/js/913.0251f0e5.js +++ b/dist/js/913.57fbc7fd.js @@ -1,2 +1,2 @@ "use strict";(self["webpackChunkwordhelper"]=self["webpackChunkwordhelper"]||[]).push([[913],{20550:function(e,n,o){o.d(n,{A:function(){return v}});var r=o(56768),t=o(90144),l=o(81122),a=o(25972),i=o(84279),s=o(85142),c=o(34309),u=(0,c.l)("clear",()=>(0,r.h)("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("g",{fill:"currentColor","fill-rule":"nonzero"},(0,r.h)("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),d=o(3533),h=o(34350),p=(0,h.cB)("base-clear","\n flex-shrink: 0;\n height: 1em;\n width: 1em;\n position: relative;\n",[(0,h.c)(">",[(0,h.cE)("clear","\n font-size: var(--n-clear-size);\n height: 1em;\n width: 1em;\n cursor: pointer;\n color: var(--n-clear-color);\n transition: color .3s var(--n-bezier);\n display: flex;\n ",[(0,h.c)("&:hover","\n color: var(--n-clear-color-hover)!important;\n "),(0,h.c)("&:active","\n color: var(--n-clear-color-pressed)!important;\n ")]),(0,h.cE)("placeholder","\n display: flex;\n "),(0,h.cE)("clear, placeholder","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[(0,d.N)({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),v=(0,r.pM)({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return(0,l.A)("-base-clear",p,(0,t.lW)(e,"clsPrefix")),{handleMouseDown(e){e.preventDefault()}}},render(){const{clsPrefix:e}=this;return(0,r.h)("div",{class:`${e}-base-clear`},(0,r.h)(s.A,null,{default:()=>{var n,o;return this.show?(0,r.h)("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},(0,a.Nj)(this.$slots.icon,()=>[(0,r.h)(i.A,{clsPrefix:e},{default:()=>(0,r.h)(u,null)})])):(0,r.h)("div",{key:"icon",class:`${e}-base-clear__placeholder`},null===(o=(n=this.$slots).placeholder)||void 0===o?void 0:o.call(n))}}))}})},51825:function(e,n,o){o.d(n,{A:function(){return c}});var r=o(56768),t=o(25972),l=o(20550),a=o(84279),i=(0,r.pM)({name:"ChevronDown",render(){return(0,r.h)("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),s=o(21905),c=(0,r.pM)({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:n}){return()=>{const{clsPrefix:o}=e;return(0,r.h)(s.A,{clsPrefix:o,class:`${o}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?(0,r.h)(l.A,{clsPrefix:o,show:e.showClear,onClear:e.onClear},{placeholder:()=>(0,r.h)(a.A,{clsPrefix:o,class:`${o}-base-suffix__arrow`},{default:()=>(0,t.Nj)(n.default,()=>[(0,r.h)(i,null)])})}):null})}}})},93913:function(e,n,o){o.d(n,{A:function(){return D}});o(18111),o(61701);var r=o(76459),t=o(55472),l=o(34707),a=o(24305),i=o(56768),s=o(90144),c=o(73578),u=o(16787),d=o(20550),h=o(51825),p=o(84279),v=(0,i.pM)({name:"Eye",render(){return(0,i.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,i.h)("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),(0,i.h)("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),f=(0,i.pM)({name:"EyeOff",render(){return(0,i.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,i.h)("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),(0,i.h)("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),(0,i.h)("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),(0,i.h)("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),(0,i.h)("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),g=o(79882),b=o(88733),x=o(81122),w=o(82813),m=o(70151),y=o(25216),C=o(38741),A=o(37901),E=o(34350),z=o(25972),B=o(3054),R=o(32797),T=o(77727);const F=(0,T.D)("n-input");var $=(0,E.cB)("input","\n max-width: 100%;\n cursor: text;\n line-height: 1.5;\n z-index: auto;\n outline: none;\n box-sizing: border-box;\n position: relative;\n display: inline-flex;\n border-radius: var(--n-border-radius);\n background-color: var(--n-color);\n transition: background-color .3s var(--n-bezier);\n font-size: var(--n-font-size);\n font-weight: var(--n-font-weight);\n --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);\n",[(0,E.cE)("input, textarea","\n overflow: hidden;\n flex-grow: 1;\n position: relative;\n "),(0,E.cE)("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder","\n box-sizing: border-box;\n font-size: inherit;\n line-height: 1.5;\n font-family: inherit;\n border: none;\n outline: none;\n background-color: #0000;\n text-align: inherit;\n transition:\n -webkit-text-fill-color .3s var(--n-bezier),\n caret-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n text-decoration-color .3s var(--n-bezier);\n "),(0,E.cE)("input-el, textarea-el","\n -webkit-appearance: none;\n scrollbar-width: none;\n width: 100%;\n min-width: 0;\n text-decoration-color: var(--n-text-decoration-color);\n color: var(--n-text-color);\n caret-color: var(--n-caret-color);\n background-color: transparent;\n ",[(0,E.c)("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb","\n width: 0;\n height: 0;\n display: none;\n "),(0,E.c)("&::placeholder","\n color: #0000;\n -webkit-text-fill-color: transparent !important;\n "),(0,E.c)("&:-webkit-autofill ~",[(0,E.cE)("placeholder","display: none;")])]),(0,E.cM)("round",[(0,E.C5)("textarea","border-radius: calc(var(--n-height) / 2);")]),(0,E.cE)("placeholder","\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n overflow: hidden;\n color: var(--n-placeholder-color);\n ",[(0,E.c)("span","\n width: 100%;\n display: inline-block;\n ")]),(0,E.cM)("textarea",[(0,E.cE)("placeholder","overflow: visible;")]),(0,E.C5)("autosize","width: 100%;"),(0,E.cM)("autosize",[(0,E.cE)("textarea-el, input-el","\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n ")]),(0,E.cB)("input-wrapper","\n overflow: hidden;\n display: inline-flex;\n flex-grow: 1;\n position: relative;\n padding-left: var(--n-padding-left);\n padding-right: var(--n-padding-right);\n "),(0,E.cE)("input-mirror","\n padding: 0;\n height: var(--n-height);\n line-height: var(--n-height);\n overflow: hidden;\n visibility: hidden;\n position: static;\n white-space: pre;\n pointer-events: none;\n "),(0,E.cE)("input-el","\n padding: 0;\n height: var(--n-height);\n line-height: var(--n-height);\n ",[(0,E.c)("&[type=password]::-ms-reveal","display: none;"),(0,E.c)("+",[(0,E.cE)("placeholder","\n display: flex;\n align-items: center; \n ")])]),(0,E.C5)("textarea",[(0,E.cE)("placeholder","white-space: nowrap;")]),(0,E.cE)("eye","\n display: flex;\n align-items: center;\n justify-content: center;\n transition: color .3s var(--n-bezier);\n "),(0,E.cM)("textarea","width: 100%;",[(0,E.cB)("input-word-count","\n position: absolute;\n right: var(--n-padding-right);\n bottom: var(--n-padding-vertical);\n "),(0,E.cM)("resizable",[(0,E.cB)("input-wrapper","\n resize: vertical;\n min-height: var(--n-height);\n ")]),(0,E.cE)("textarea-el, textarea-mirror, placeholder","\n height: 100%;\n padding-left: 0;\n padding-right: 0;\n padding-top: var(--n-padding-vertical);\n padding-bottom: var(--n-padding-vertical);\n word-break: break-word;\n display: inline-block;\n vertical-align: bottom;\n box-sizing: border-box;\n line-height: var(--n-line-height-textarea);\n margin: 0;\n resize: none;\n white-space: pre-wrap;\n scroll-padding-block-end: var(--n-padding-vertical);\n "),(0,E.cE)("textarea-mirror","\n width: 100%;\n pointer-events: none;\n overflow: hidden;\n visibility: hidden;\n position: static;\n white-space: pre-wrap;\n overflow-wrap: break-word;\n ")]),(0,E.cM)("pair",[(0,E.cE)("input-el, placeholder","text-align: center;"),(0,E.cE)("separator","\n display: flex;\n align-items: center;\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n white-space: nowrap;\n ",[(0,E.cB)("icon","\n color: var(--n-icon-color);\n "),(0,E.cB)("base-icon","\n color: var(--n-icon-color);\n ")])]),(0,E.cM)("disabled","\n cursor: not-allowed;\n background-color: var(--n-color-disabled);\n ",[(0,E.cE)("border","border: var(--n-border-disabled);"),(0,E.cE)("input-el, textarea-el","\n cursor: not-allowed;\n color: var(--n-text-color-disabled);\n text-decoration-color: var(--n-text-color-disabled);\n "),(0,E.cE)("placeholder","color: var(--n-placeholder-color-disabled);"),(0,E.cE)("separator","color: var(--n-text-color-disabled);",[(0,E.cB)("icon","\n color: var(--n-icon-color-disabled);\n "),(0,E.cB)("base-icon","\n color: var(--n-icon-color-disabled);\n ")]),(0,E.cB)("input-word-count","\n color: var(--n-count-text-color-disabled);\n "),(0,E.cE)("suffix, prefix","color: var(--n-text-color-disabled);",[(0,E.cB)("icon","\n color: var(--n-icon-color-disabled);\n "),(0,E.cB)("internal-icon","\n color: var(--n-icon-color-disabled);\n ")])]),(0,E.C5)("disabled",[(0,E.cE)("eye","\n color: var(--n-icon-color);\n cursor: pointer;\n ",[(0,E.c)("&:hover","\n color: var(--n-icon-color-hover);\n "),(0,E.c)("&:active","\n color: var(--n-icon-color-pressed);\n ")]),(0,E.c)("&:hover",[(0,E.cE)("state-border","border: var(--n-border-hover);")]),(0,E.cM)("focus","background-color: var(--n-color-focus);",[(0,E.cE)("state-border","\n border: var(--n-border-focus);\n box-shadow: var(--n-box-shadow-focus);\n ")])]),(0,E.cE)("border, state-border","\n box-sizing: border-box;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n border-radius: inherit;\n border: var(--n-border);\n transition:\n box-shadow .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n "),(0,E.cE)("state-border","\n border-color: #0000;\n z-index: 1;\n "),(0,E.cE)("prefix","margin-right: 4px;"),(0,E.cE)("suffix","\n margin-left: 4px;\n "),(0,E.cE)("suffix, prefix","\n transition: color .3s var(--n-bezier);\n flex-wrap: nowrap;\n flex-shrink: 0;\n line-height: var(--n-height);\n white-space: nowrap;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: var(--n-suffix-text-color);\n ",[(0,E.cB)("base-loading","\n font-size: var(--n-icon-size);\n margin: 0 2px;\n color: var(--n-loading-color);\n "),(0,E.cB)("base-clear","\n font-size: var(--n-icon-size);\n ",[(0,E.cE)("placeholder",[(0,E.cB)("base-icon","\n transition: color .3s var(--n-bezier);\n color: var(--n-icon-color);\n font-size: var(--n-icon-size);\n ")])]),(0,E.c)(">",[(0,E.cB)("icon","\n transition: color .3s var(--n-bezier);\n color: var(--n-icon-color);\n font-size: var(--n-icon-size);\n ")]),(0,E.cB)("base-icon","\n font-size: var(--n-icon-size);\n ")]),(0,E.cB)("input-word-count","\n pointer-events: none;\n line-height: 1.5;\n font-size: .85em;\n color: var(--n-count-text-color);\n transition: color .3s var(--n-bezier);\n margin-left: 4px;\n font-variant: tabular-nums;\n "),["warning","error"].map(e=>(0,E.cM)(`${e}-status`,[(0,E.C5)("disabled",[(0,E.cB)("base-loading",`\n color: var(--n-loading-color-${e})\n `),(0,E.cE)("input-el, textarea-el",`\n caret-color: var(--n-caret-color-${e});\n `),(0,E.cE)("state-border",`\n border: var(--n-border-${e});\n `),(0,E.c)("&:hover",[(0,E.cE)("state-border",`\n border: var(--n-border-hover-${e});\n `)]),(0,E.c)("&:focus",`\n background-color: var(--n-color-focus-${e});\n `,[(0,E.cE)("state-border",`\n box-shadow: var(--n-box-shadow-focus-${e});\n border: var(--n-border-focus-${e});\n `)]),(0,E.cM)("focus",`\n background-color: var(--n-color-focus-${e});\n `,[(0,E.cE)("state-border",`\n box-shadow: var(--n-box-shadow-focus-${e});\n border: var(--n-border-focus-${e});\n `)])])]))]);const S=(0,E.cB)("input",[(0,E.cM)("disabled",[(0,E.cE)("input-el, textarea-el","\n -webkit-text-fill-color: var(--n-text-color-disabled);\n ")])]);function k(e){let n=0;for(const o of e)n++;return n}function M(e){return""===e||null==e}function P(e){const n=(0,s.KR)(null);function o(){const{value:o}=e;if(!(null===o||void 0===o?void 0:o.focus))return void t();const{selectionStart:r,selectionEnd:l,value:a}=o;null!=r&&null!=l?n.value={start:r,end:l,beforeText:a.slice(0,r),afterText:a.slice(l)}:t()}function r(){var o;const{value:r}=n,{value:t}=e;if(!r||!t)return;const{value:l}=t,{start:a,beforeText:i,afterText:s}=r;let c=l.length;if(l.endsWith(s))c=l.length-s.length;else if(l.startsWith(i))c=i.length;else{const e=i[a-1],n=l.indexOf(e,a-1);-1!==n&&(c=n+1)}null===(o=t.setSelectionRange)||void 0===o||o.call(t,c,c)}function t(){n.value=null}return(0,i.wB)(e,t),{recordCursor:o,restoreCursor:r}}var W=(0,i.pM)({name:"InputWordCount",setup(e,{slots:n}){const{mergedValueRef:o,maxlengthRef:r,mergedClsPrefixRef:t,countGraphemesRef:l}=(0,i.WQ)(F),a=(0,i.EW)(()=>{const{value:e}=o;return null===e||Array.isArray(e)?0:(l.value||k)(e)});return()=>{const{value:e}=r,{value:l}=o;return(0,i.h)("span",{class:`${t.value}-input-word-count`},(0,z.Vu)(n.default,{value:null===l||Array.isArray(l)?"":l},()=>[void 0===e?a.value:`${a.value} / ${e}`]))}}});const _=Object.assign(Object.assign({},g.A.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean});var D=(0,i.pM)({name:"Input",props:_,slots:Object,setup(e){const{mergedClsPrefixRef:n,mergedBorderedRef:o,inlineThemeDisabled:c,mergedRtlRef:u}=(0,b.Ay)(e),d=(0,g.A)("Input","-input",$,R.A,e,n);B.nr&&(0,x.A)("-input-safari",S,n);const h=(0,s.KR)(null),p=(0,s.KR)(null),v=(0,s.KR)(null),f=(0,s.KR)(null),z=(0,s.KR)(null),T=(0,s.KR)(null),k=(0,s.KR)(null),W=P(k),_=(0,s.KR)(null),{localeRef:D}=(0,w.A)("Input"),I=(0,s.KR)(e.defaultValue),L=(0,s.lW)(e,"value"),K=(0,l.A)(L,I),O=(0,m.A)(e),{mergedSizeRef:V,mergedDisabledRef:N,mergedStatusRef:j}=O,H=(0,s.KR)(!1),U=(0,s.KR)(!1),G=(0,s.KR)(!1),Y=(0,s.KR)(!1);let Q=null;const X=(0,i.EW)(()=>{const{placeholder:n,pair:o}=e;return o?Array.isArray(n)?n:void 0===n?["",""]:[n,n]:void 0===n?[D.value.placeholder]:[n]}),q=(0,i.EW)(()=>{const{value:e}=G,{value:n}=K,{value:o}=X;return!e&&(M(n)||Array.isArray(n)&&M(n[0]))&&o[0]}),Z=(0,i.EW)(()=>{const{value:e}=G,{value:n}=K,{value:o}=X;return!e&&o[1]&&(M(n)||Array.isArray(n)&&M(n[1]))}),J=(0,a.A)(()=>e.internalForceFocus||H.value),ee=(0,a.A)(()=>{if(N.value||e.readonly||!e.clearable||!J.value&&!U.value)return!1;const{value:n}=K,{value:o}=J;return e.pair?!(!Array.isArray(n)||!n[0]&&!n[1])&&(U.value||o):!!n&&(U.value||o)}),ne=(0,i.EW)(()=>{const{showPasswordOn:n}=e;return n||(e.showPasswordToggle?"click":void 0)}),oe=(0,s.KR)(!1),re=(0,i.EW)(()=>{const{textDecoration:n}=e;return n?Array.isArray(n)?n.map(e=>({textDecoration:e})):[{textDecoration:n}]:["",""]}),te=(0,s.KR)(void 0),le=()=>{var n,o;if("textarea"===e.type){const{autosize:r}=e;if(r&&(te.value=null===(o=null===(n=_.value)||void 0===n?void 0:n.$el)||void 0===o?void 0:o.offsetWidth),!p.value)return;if("boolean"===typeof r)return;const{paddingTop:t,paddingBottom:l,lineHeight:a}=window.getComputedStyle(p.value),i=Number(t.slice(0,-2)),s=Number(l.slice(0,-2)),c=Number(a.slice(0,-2)),{value:u}=v;if(!u)return;if(r.minRows){const e=Math.max(r.minRows,1),n=`${i+s+c*e}px`;u.style.minHeight=n}if(r.maxRows){const e=`${i+s+c*r.maxRows}px`;u.style.maxHeight=e}}},ae=(0,i.EW)(()=>{const{maxlength:n}=e;return void 0===n?void 0:Number(n)});(0,i.sV)(()=>{const{value:e}=K;Array.isArray(e)||Ye(e)});const ie=(0,i.nI)().proxy;function se(n,o){const{onUpdateValue:r,"onUpdate:value":t,onInput:l}=e,{nTriggerFormInput:a}=O;r&&(0,A.T)(r,n,o),t&&(0,A.T)(t,n,o),l&&(0,A.T)(l,n,o),I.value=n,a()}function ce(n,o){const{onChange:r}=e,{nTriggerFormChange:t}=O;r&&(0,A.T)(r,n,o),I.value=n,t()}function ue(n){const{onBlur:o}=e,{nTriggerFormBlur:r}=O;o&&(0,A.T)(o,n),r()}function de(n){const{onFocus:o}=e,{nTriggerFormFocus:r}=O;o&&(0,A.T)(o,n),r()}function he(n){const{onClear:o}=e;o&&(0,A.T)(o,n)}function pe(n){const{onInputBlur:o}=e;o&&(0,A.T)(o,n)}function ve(n){const{onInputFocus:o}=e;o&&(0,A.T)(o,n)}function fe(){const{onDeactivate:n}=e;n&&(0,A.T)(n)}function ge(){const{onActivate:n}=e;n&&(0,A.T)(n)}function be(n){const{onClick:o}=e;o&&(0,A.T)(o,n)}function xe(n){const{onWrapperFocus:o}=e;o&&(0,A.T)(o,n)}function we(n){const{onWrapperBlur:o}=e;o&&(0,A.T)(o,n)}function me(){G.value=!0}function ye(e){G.value=!1,e.target===T.value?Ce(e,1):Ce(e,0)}function Ce(n,o=0,r="input"){const t=n.target.value;if(Ye(t),n instanceof InputEvent&&!n.isComposing&&(G.value=!1),"textarea"===e.type){const{value:e}=_;e&&e.syncUnifiedContainer()}if(Q=t,G.value)return;W.recordCursor();const l=Ae(t);if(l)if(e.pair){let{value:e}=K;e=Array.isArray(e)?[e[0],e[1]]:["",""],e[o]=t,"input"===r?se(e,{source:o}):ce(e,{source:o})}else"input"===r?se(t,{source:o}):ce(t,{source:o});ie.$forceUpdate(),l||(0,i.dY)(W.restoreCursor)}function Ae(n){const{countGraphemes:o,maxlength:r,minlength:t}=e;if(o){let e;if(void 0!==r&&(void 0===e&&(e=o(n)),e>Number(r)))return!1;if(void 0!==t&&(void 0===e&&(e=o(n)),e{e.preventDefault(),(0,r.A)("mouseup",document,n)};if((0,r.on)("mouseup",document,n),"mousedown"!==ne.value)return;oe.value=!0;const o=()=>{oe.value=!1,(0,r.A)("mouseup",document,o)};(0,r.on)("mouseup",document,o)}function Ie(n){e.onKeyup&&(0,A.T)(e.onKeyup,n)}function Le(n){switch(e.onKeydown&&(0,A.T)(e.onKeydown,n),n.key){case"Escape":Oe();break;case"Enter":Ke(n);break}}function Ke(n){var o,r;if(e.passivelyActivated){const{value:t}=Y;if(t)return void(e.internalDeactivateOnEnter&&Oe());n.preventDefault(),"textarea"===e.type?null===(o=p.value)||void 0===o||o.focus():null===(r=z.value)||void 0===r||r.focus()}}function Oe(){e.passivelyActivated&&(Y.value=!1,(0,i.dY)(()=>{var e;null===(e=h.value)||void 0===e||e.focus()}))}function Ve(){var n,o,r;N.value||(e.passivelyActivated?null===(n=h.value)||void 0===n||n.focus():(null===(o=p.value)||void 0===o||o.focus(),null===(r=z.value)||void 0===r||r.focus()))}function Ne(){var e;(null===(e=h.value)||void 0===e?void 0:e.contains(document.activeElement))&&document.activeElement.blur()}function je(){var e,n;null===(e=p.value)||void 0===e||e.select(),null===(n=z.value)||void 0===n||n.select()}function He(){N.value||(p.value?p.value.focus():z.value&&z.value.focus())}function Ue(){const{value:e}=h;(null===e||void 0===e?void 0:e.contains(document.activeElement))&&e!==document.activeElement&&Oe()}function Ge(n){if("textarea"===e.type){const{value:e}=p;null===e||void 0===e||e.scrollTo(n)}else{const{value:e}=z;null===e||void 0===e||e.scrollTo(n)}}function Ye(n){const{type:o,pair:r,autosize:t}=e;if(!r&&t)if("textarea"===o){const{value:e}=v;e&&(e.textContent=`${null!==n&&void 0!==n?n:""}\r\n`)}else{const{value:e}=f;e&&(n?e.textContent=n:e.innerHTML=" ")}}function Qe(){le()}const Xe=(0,s.KR)({top:"0"});function qe(e){var n;const{scrollTop:o}=e.target;Xe.value.top=-o+"px",null===(n=_.value)||void 0===n||n.syncUnifiedContainer()}let Ze=null;(0,i.nT)(()=>{const{autosize:n,type:o}=e;n&&"textarea"===o?Ze=(0,i.wB)(K,e=>{Array.isArray(e)||e===Q||Ye(e)}):null===Ze||void 0===Ze||Ze()});let Je=null;(0,i.nT)(()=>{"textarea"===e.type?Je=(0,i.wB)(K,e=>{var n;Array.isArray(e)||e===Q||null===(n=_.value)||void 0===n||n.syncUnifiedContainer()}):null===Je||void 0===Je||Je()}),(0,i.Gt)(F,{mergedValueRef:K,maxlengthRef:ae,mergedClsPrefixRef:n,countGraphemesRef:(0,s.lW)(e,"countGraphemes")});const en={wrapperElRef:h,inputElRef:z,textareaElRef:p,isCompositing:G,clear:ke,focus:Ve,blur:Ne,select:je,deactivate:Ue,activate:He,scrollTo:Ge},nn=(0,C.I)("Input",u,n),on=(0,i.EW)(()=>{const{value:e}=V,{common:{cubicBezierEaseInOut:n},self:{color:o,borderRadius:r,textColor:l,caretColor:a,caretColorError:i,caretColorWarning:s,textDecorationColor:c,border:u,borderDisabled:h,borderHover:p,borderFocus:v,placeholderColor:f,placeholderColorDisabled:g,lineHeightTextarea:b,colorDisabled:x,colorFocus:w,textColorDisabled:m,boxShadowFocus:y,iconSize:C,colorFocusWarning:A,boxShadowFocusWarning:z,borderWarning:B,borderFocusWarning:R,borderHoverWarning:T,colorFocusError:F,boxShadowFocusError:$,borderError:S,borderFocusError:k,borderHoverError:M,clearSize:P,clearColor:W,clearColorHover:_,clearColorPressed:D,iconColor:I,iconColorDisabled:L,suffixTextColor:K,countTextColor:O,countTextColorDisabled:N,iconColorHover:j,iconColorPressed:H,loadingColor:U,loadingColorError:G,loadingColorWarning:Y,fontWeight:Q,[(0,E.cF)("padding",e)]:X,[(0,E.cF)("fontSize",e)]:q,[(0,E.cF)("height",e)]:Z}}=d.value,{left:J,right:ee}=(0,t.Cq)(X);return{"--n-bezier":n,"--n-count-text-color":O,"--n-count-text-color-disabled":N,"--n-color":o,"--n-font-size":q,"--n-font-weight":Q,"--n-border-radius":r,"--n-height":Z,"--n-padding-left":J,"--n-padding-right":ee,"--n-text-color":l,"--n-caret-color":a,"--n-text-decoration-color":c,"--n-border":u,"--n-border-disabled":h,"--n-border-hover":p,"--n-border-focus":v,"--n-placeholder-color":f,"--n-placeholder-color-disabled":g,"--n-icon-size":C,"--n-line-height-textarea":b,"--n-color-disabled":x,"--n-color-focus":w,"--n-text-color-disabled":m,"--n-box-shadow-focus":y,"--n-loading-color":U,"--n-caret-color-warning":s,"--n-color-focus-warning":A,"--n-box-shadow-focus-warning":z,"--n-border-warning":B,"--n-border-focus-warning":R,"--n-border-hover-warning":T,"--n-loading-color-warning":Y,"--n-caret-color-error":i,"--n-color-focus-error":F,"--n-box-shadow-focus-error":$,"--n-border-error":S,"--n-border-focus-error":k,"--n-border-hover-error":M,"--n-loading-color-error":G,"--n-clear-color":W,"--n-clear-size":P,"--n-clear-color-hover":_,"--n-clear-color-pressed":D,"--n-icon-color":I,"--n-icon-color-hover":j,"--n-icon-color-pressed":H,"--n-icon-color-disabled":L,"--n-suffix-text-color":K}}),rn=c?(0,y.R)("input",(0,i.EW)(()=>{const{value:e}=V;return e[0]}),on,e):void 0;return Object.assign(Object.assign({},en),{wrapperElRef:h,inputElRef:z,inputMirrorElRef:f,inputEl2Ref:T,textareaElRef:p,textareaMirrorElRef:v,textareaScrollbarInstRef:_,rtlEnabled:nn,uncontrolledValue:I,mergedValue:K,passwordVisible:oe,mergedPlaceholder:X,showPlaceholder1:q,showPlaceholder2:Z,mergedFocus:J,isComposing:G,activated:Y,showClearButton:ee,mergedSize:V,mergedDisabled:N,textDecorationStyle:re,mergedClsPrefix:n,mergedBordered:o,mergedShowPasswordOn:ne,placeholderStyle:Xe,mergedStatus:j,textAreaScrollContainerWidth:te,handleTextAreaScroll:qe,handleCompositionStart:me,handleCompositionEnd:ye,handleInput:Ce,handleInputBlur:Ee,handleInputFocus:ze,handleWrapperBlur:Be,handleWrapperFocus:Re,handleMouseEnter:Pe,handleMouseLeave:We,handleMouseDown:Me,handleChange:Fe,handleClick:$e,handleClear:Se,handlePasswordToggleClick:_e,handlePasswordToggleMousedown:De,handleWrapperKeydown:Le,handleWrapperKeyup:Ie,handleTextAreaMirrorResize:Qe,getTextareaScrollContainer:()=>p.value,mergedTheme:d,cssVars:c?void 0:on,themeClass:null===rn||void 0===rn?void 0:rn.themeClass,onRender:null===rn||void 0===rn?void 0:rn.onRender})},render(){var e,n,o,r,t,l,a;const{mergedClsPrefix:s,mergedStatus:g,themeClass:b,type:x,countGraphemes:w,onRender:m}=this,y=this.$slots;return null===m||void 0===m||m(),(0,i.h)("div",{ref:"wrapperElRef",class:[`${s}-input`,b,g&&`${s}-input--${g}-status`,{[`${s}-input--rtl`]:this.rtlEnabled,[`${s}-input--disabled`]:this.mergedDisabled,[`${s}-input--textarea`]:"textarea"===x,[`${s}-input--resizable`]:this.resizable&&!this.autosize,[`${s}-input--autosize`]:this.autosize,[`${s}-input--round`]:this.round&&!("textarea"===x),[`${s}-input--pair`]:this.pair,[`${s}-input--focus`]:this.mergedFocus,[`${s}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:this.mergedDisabled||!this.passivelyActivated||this.activated?void 0:0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},(0,i.h)("div",{class:`${s}-input-wrapper`},(0,z.iQ)(y.prefix,e=>e&&(0,i.h)("div",{class:`${s}-input__prefix`},e)),"textarea"===x?(0,i.h)(u.A,{ref:"textareaScrollbarInstRef",class:`${s}-input__textarea`,container:this.getTextareaScrollContainer,theme:null===(n=null===(e=this.theme)||void 0===e?void 0:e.peers)||void 0===n?void 0:n.Scrollbar,themeOverrides:null===(r=null===(o=this.themeOverrides)||void 0===o?void 0:o.peers)||void 0===r?void 0:r.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var e,n;const{textAreaScrollContainerWidth:o}=this,r={width:this.autosize&&o&&`${o}px`};return(0,i.h)(i.FK,null,(0,i.h)("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${s}-input__textarea-el`,null===(e=this.inputProps)||void 0===e?void 0:e.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:w?void 0:this.maxlength,minlength:w?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],null===(n=this.inputProps)||void 0===n?void 0:n.style,r],onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?(0,i.h)("div",{class:`${s}-input__placeholder`,style:[this.placeholderStyle,r],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?(0,i.h)(c.A,{onResize:this.handleTextAreaMirrorResize},{default:()=>(0,i.h)("div",{ref:"textareaMirrorElRef",class:`${s}-input__textarea-mirror`,key:"mirror"})}):null)}}):(0,i.h)("div",{class:`${s}-input__input`},(0,i.h)("input",Object.assign({type:"password"===x&&this.mergedShowPasswordOn&&this.passwordVisible?"text":x},this.inputProps,{ref:"inputElRef",class:[`${s}-input__input-el`,null===(t=this.inputProps)||void 0===t?void 0:t.class],style:[this.textDecorationStyle[0],null===(l=this.inputProps)||void 0===l?void 0:l.style],tabindex:this.passivelyActivated&&!this.activated?-1:null===(a=this.inputProps)||void 0===a?void 0:a.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:w?void 0:this.maxlength,minlength:w?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,0)},onInput:e=>{this.handleInput(e,0)},onChange:e=>{this.handleChange(e,0)}})),this.showPlaceholder1?(0,i.h)("div",{class:`${s}-input__placeholder`},(0,i.h)("span",null,this.mergedPlaceholder[0])):null,this.autosize?(0,i.h)("div",{class:`${s}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&(0,z.iQ)(y.suffix,e=>e||this.clearable||this.showCount||this.mergedShowPasswordOn||void 0!==this.loading?(0,i.h)("div",{class:`${s}-input__suffix`},[(0,z.iQ)(y["clear-icon-placeholder"],e=>(this.clearable||e)&&(0,i.h)(d.A,{clsPrefix:s,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>e,icon:()=>{var e,n;return null===(n=(e=this.$slots)["clear-icon"])||void 0===n?void 0:n.call(e)}})),this.internalLoadingBeforeSuffix?null:e,void 0!==this.loading?(0,i.h)(h.A,{clsPrefix:s,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?e:null,this.showCount&&"textarea"!==this.type?(0,i.h)(W,null,{default:e=>{var n;const{renderCount:o}=this;return o?o(e):null===(n=y.count)||void 0===n?void 0:n.call(y,e)}}):null,this.mergedShowPasswordOn&&"password"===this.type?(0,i.h)("div",{class:`${s}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?(0,z.Nj)(y["password-visible-icon"],()=>[(0,i.h)(p.A,{clsPrefix:s},{default:()=>(0,i.h)(v,null)})]):(0,z.Nj)(y["password-invisible-icon"],()=>[(0,i.h)(p.A,{clsPrefix:s},{default:()=>(0,i.h)(f,null)})])):null]):null)),this.pair?(0,i.h)("span",{class:`${s}-input__separator`},(0,z.Nj)(y.separator,()=>[this.separator])):null,this.pair?(0,i.h)("div",{class:`${s}-input-wrapper`},(0,i.h)("div",{class:`${s}-input__input`},(0,i.h)("input",{ref:"inputEl2Ref",type:this.type,class:`${s}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:w?void 0:this.maxlength,minlength:w?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,1)},onInput:e=>{this.handleInput(e,1)},onChange:e=>{this.handleChange(e,1)}}),this.showPlaceholder2?(0,i.h)("div",{class:`${s}-input__placeholder`},(0,i.h)("span",null,this.mergedPlaceholder[1])):null),(0,z.iQ)(y.suffix,e=>(this.clearable||e)&&(0,i.h)("div",{class:`${s}-input__suffix`},[this.clearable&&(0,i.h)(d.A,{clsPrefix:s,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var e;return null===(e=y["clear-icon"])||void 0===e?void 0:e.call(y)},placeholder:()=>{var e;return null===(e=y["clear-icon-placeholder"])||void 0===e?void 0:e.call(y)}}),e]))):null,this.mergedBordered?(0,i.h)("div",{class:`${s}-input__border`}):null,this.mergedBordered?(0,i.h)("div",{class:`${s}-input__state-border`}):null,this.showCount&&"textarea"===x?(0,i.h)(W,null,{default:e=>{var n;const{renderCount:o}=this;return o?o(e):null===(n=y.count)||void 0===n?void 0:n.call(y,e)}}):null)}})}}]); -//# sourceMappingURL=913.0251f0e5.js.map \ No newline at end of file +//# sourceMappingURL=913.57fbc7fd.js.map \ No newline at end of file diff --git a/dist/js/938.c5d8dd36.js b/dist/js/938.77996131.js similarity index 99% rename from dist/js/938.c5d8dd36.js rename to dist/js/938.77996131.js index 0e41ef8..6e19555 100644 --- a/dist/js/938.c5d8dd36.js +++ b/dist/js/938.77996131.js @@ -31,4 +31,4 @@ const E=(0,W.A)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1 * See the LICENSE file in the root directory of this source tree. */ const j=(0,W.A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);var q=l(18495),I=l(35720),$=l(15227);const Q={class:"check-view max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},U={class:"flex flex-col gap-4 mb-8"},M={class:"flex items-center gap-2"},B={class:"bg-blue-50 dark:bg-blue-900/20 p-4 rounded-lg flex items-start gap-3"},D={key:0,class:"max-w-2xl mx-auto"},V={class:"w-full"},S={key:1,class:"text-gray-400 text-sm py-0.5 px-1"},N={class:"flex justify-end mt-6"},G={key:1,class:"max-w-3xl mx-auto"},H={class:"mb-6 flex items-center justify-between"},J={class:"text-sm text-gray-500"},O={class:"text-4xl font-bold text-gray-900 dark:text-white mb-8"},P={key:0,class:"w-full max-w-md mx-auto space-y-4"},T={class:"flex justify-between items-center"},Y={class:"flex justify-center mt-4"},Z={key:0,class:"mt-4 text-left bg-gray-50 dark:bg-gray-800 p-4 rounded-lg"},ee={class:"list-disc list-inside space-y-1"},ae={key:1,class:"w-full max-w-md mx-auto space-y-6"},le={class:"flex flex-col items-center"},te={class:"bg-gray-50 dark:bg-gray-800 p-4 rounded-lg text-left"},se={class:"text-gray-700 dark:text-gray-200"},re={class:"flex justify-center gap-4"},de={key:2,class:"max-w-4xl mx-auto"},oe={class:"flex justify-center items-center gap-12"},ne={class:"text-center"},ue={class:"text-5xl font-bold text-primary mb-2"},ie={class:"text-center"},ce={class:"text-3xl font-bold text-green-500 mb-2"},ve={class:"mt-8 flex justify-center gap-4"},ye={key:0},ke={class:"text-xl font-bold mb-4 flex items-center"},xe={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},me={class:"flex justify-between items-start"},be={class:"text-lg font-bold text-gray-900 dark:text-white"},pe={class:"mt-2 space-y-1"},fe={class:"text-gray-400 mr-1"},he={class:"text-gray-600 dark:text-gray-300"},ge={class:"max-w-4xl mx-auto"},we={class:"grid grid-cols-2 gap-4 mb-6"},_e={class:"text-center"},Re={class:"text-2xl font-bold text-primary"},Ae={class:"text-center"},Fe={class:"text-2xl font-bold text-green-500"},Le={key:0,class:"space-y-3"},Ce={class:"font-bold text-lg mb-4 flex items-center"},We={class:"flex justify-between items-start"},Ee={class:"flex-1"},Ke={class:"flex items-center gap-2 mb-2"},Xe={class:"text-lg font-bold text-gray-900 dark:text-white"},ze={class:"text-sm text-gray-600 dark:text-gray-300"},je={class:"bg-gray-100 dark:bg-gray-700 px-1.5 py-0.5 rounded text-xs mr-2"},qe={class:"flex justify-center mt-6 pb-8"},Ie={key:1,class:"text-gray-400 text-sm py-4"};var $e={__name:"CheckView",setup(e){const a=(0,o.rd)(),l=(0,n.J)(),{isDark:m}=(0,t.WQ)("themeContext"),b=(0,s.KR)("config"),W=(0,s.KR)(!1),$e=(0,s.KR)(!1),Qe=(0,s.KR)(!1),Ue=(0,s.KR)(!1),Me=(0,s.KR)(!1),Be=(0,s.KR)("start"),De=(0,s.KR)([]),Ve=(0,s.KR)(1),Se=(0,s.KR)(0),Ne=(0,s.KR)({total_answers:0,accuracy:0}),Ge=(0,s.KR)(!1),He=(0,t.EW)(()=>De.value.lengthYe.value[Ze.value]||null),da=(0,t.EW)(()=>Ze.value===Ye.value.length-1),oa=(0,t.EW)(()=>sa.value.filter(e=>e.correct).length),na=(0,t.EW)(()=>Math.round(oa.value/Ye.value.length*100)),ua=(0,t.EW)(()=>sa.value.filter(e=>!e.correct)),ia=async()=>{Ue.value=!0;try{const e=await I.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/dict/list");0===e.data.code&&(Oe.value=e.data.data.map(e=>({label:e.name,value:e.id})))}catch(e){console.error("Fetch dicts error:",e)}finally{Ue.value=!1}},ca=e=>{const a=Je.value.list_ids.indexOf(e);a>-1&&Je.value.list_ids.splice(a,1);const l=Te.value.findIndex(a=>a.id===e);l>-1&&Te.value.splice(l,1)},va=async()=>{if(1===Je.value.mode&&Je.value.dict_ids.length,3===Je.value.mode){if(0===Je.value.list_ids.length)return void l.warning("请至少选择一个词单");if(Je.value.list_ids.length>10)return void l.warning("最多只能选择10个词单")}W.value=!0;try{const e={word_count:Je.value.word_count,mode:Je.value.mode,reinforce:Je.value.reinforce,dict_id:3===Je.value.mode?Je.value.list_ids:Je.value.dict_ids},a=await I.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/check/getlist",e),t=a.data;t&&t.words&&t.words.length>0?(Ye.value=t.words,Ze.value=0,sa.value=[],ya(),b.value="quiz"):l.warning(a.data.msg||"未获取到单词,请尝试调整条件")}catch(e){if(console.error("Start check error:",e),e.response&&e.response.data&&e.response.data.error){const a=e.response.data.error;a.includes("不足")?l.error("记录不足,无法抽查"):l.error(a)}else l.error("启动失败,请稍后重试")}finally{W.value=!1}},ya=()=>{ea.value="",aa.value=!1,la.value=[],ta.value={correct:!1,translations:[]}},ka=async()=>{if(ea.value.trim()){$e.value=!0;try{const e=await I.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/check/reply",{word_id:ra.value.id,reply:ea.value});if(e.data){const a=e.data;ta.value={correct:a.correct,translations:a.translations||[]},sa.value.push({word:ra.value,correct:a.correct,translations:a.translations||[]}),aa.value=!0}}catch(e){console.error("Submit answer error:",e),l.error("提交失败")}finally{$e.value=!1}}},xa=async()=>{sa.value.push({word:ra.value,correct:!0,translations:[]}),da.value?b.value="summary":(Ze.value++,ya())},ma=async()=>{Qe.value=!0;try{const e=await I.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/check/sign",{word_id:ra.value.id});e.data&&e.data.examples&&(la.value=e.data.examples,0===la.value.length&&l.info("该单词暂无例句提示"))}catch(e){console.error("Get hint error:",e),l.error("获取提示失败")}finally{Qe.value=!1}},ba=()=>{da.value?b.value="summary":(Ze.value++,ya())},pa=e=>{const l=a.resolve({path:"/word",query:{word_id:e}});window.open(l.href,"_blank")},fa=()=>{b.value="config",Ye.value=[],sa.value=[],Ze.value=0,ya()},ha=async(e=!1)=>{if(!Ge.value){Ge.value=!0;try{const a=await I.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/check/history",{params:{page:e?Ve.value+1:1}}),l=a.data;if(l){const{list:a,total:t,stats:s,page:r}=l;De.value=e?[...De.value,...a]:a,Se.value=t,Ve.value=parseInt(r),s&&(Ne.value=s)}}catch(a){console.error("Fetch history error:",a),l.error("获取历史记录失败")}finally{Ge.value=!1}}},ga=()=>{ha(!0)};(0,t.wB)(Be,e=>{"history"===e&&0===De.value.length&&ha()}),(0,t.wB)(()=>Je.value.mode,e=>{1===e&&0===Oe.value.length&&ia()}),(0,t.sV)(()=>{ia(),document.title="智能抽查 - Word Helper",wa(),window.addEventListener("resize",wa)}),(0,t.hi)(()=>{window.removeEventListener("resize",wa)});const wa=()=>{Me.value=window.innerWidth<640};return(e,a)=>{const l=(0,t.gN)("motion-slide-visible-once-left"),o=(0,t.gN)("motion-fade");return(0,t.uX)(),(0,t.CE)("div",Q,[(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",U,[(0,t.Lk)("div",M,[(0,t.bF)((0,s.R1)(L.A),{class:"w-8 h-8 text-primary"}),a[12]||(a[12]=(0,t.Lk)("h1",{class:"text-3xl font-bold text-gray-900 dark:text-white"},"智能抽查",-1)),(0,t.bF)((0,s.R1)(u.Ay),{type:"info",size:"small",round:""},{default:(0,t.k6)(()=>[...a[11]||(a[11]=[(0,t.eW)("限时免费",-1)])]),_:1})]),(0,t.Lk)("div",B,[(0,t.bF)((0,s.R1)(C.A),{class:"w-5 h-5 text-blue-500 mt-0.5 flex-shrink-0"}),a[13]||(a[13]=(0,t.Lk)("p",{class:"text-sm text-gray-600 dark:text-gray-300 leading-relaxed"}," 欢迎体验智能抽查功能!我们基于超过 50,000 条真实用户答题数据训练的智能模型,为您提供高效、可靠的单词抽查与判题,帮助您快速发现薄弱词汇,针对性巩固学习效果。 ",-1))])])),[[l]]),(0,t.bF)((0,s.R1)(i.A),{type:"segment",animated:"",value:Be.value,"onUpdate:value":a[10]||(a[10]=e=>Be.value=e)},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(c.A),{name:"start",tab:"开始抽查"},{default:(0,t.k6)(()=>["config"===b.value?(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",D,[(0,t.bF)((0,s.R1)(v.Ay),{class:"rounded-xl shadow-sm",title:"抽查配置"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(y.A),{ref:"formRef",model:Je.value,"label-placement":Me.value?"top":"left","label-width":Me.value?"auto":100,"require-mark-placement":"right-hanging"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(k.Ay),{label:"单词数量"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(x.A),{value:Je.value.word_count,"onUpdate:value":a[0]||(a[0]=e=>Je.value.word_count=e),name:"word_count",class:"overflow-x-auto overflow-y-hidden max-w-full no-scrollbar"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(p),{value:10,label:"10"}),(0,t.bF)((0,s.R1)(p),{value:20,label:"20"}),(0,t.bF)((0,s.R1)(p),{value:30,label:"30"}),(0,t.bF)((0,s.R1)(p),{value:40,label:"40"})]),_:1},8,["value"])]),_:1}),(0,t.bF)((0,s.R1)(k.Ay),{label:"单词来源"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(x.A),{value:Je.value.mode,"onUpdate:value":a[1]||(a[1]=e=>Je.value.mode=e),name:"mode"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(f.A),{value:0,label:"学习记录"}),(0,t.bF)((0,s.R1)(f.A),{value:1,label:"词书挑战"}),(0,t.bF)((0,s.R1)(f.A),{value:2,label:"生词本"}),(0,t.bF)((0,s.R1)(f.A),{value:3,label:"词单抽词"})]),_:1},8,["value"])]),_:1}),(0,t.bF)((0,s.R1)(k.Ay),{label:"易错巩固"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(h.A),{value:Je.value.reinforce,"onUpdate:value":a[2]||(a[2]=e=>Je.value.reinforce=e)},{checked:(0,t.k6)(()=>[...a[14]||(a[14]=[(0,t.eW)("开启",-1)])]),unchecked:(0,t.k6)(()=>[...a[15]||(a[15]=[(0,t.eW)("关闭",-1)])]),_:1},8,["value"]),a[16]||(a[16]=(0,t.Lk)("span",{class:"ml-2 text-xs text-gray-500"},"优先抽取历史错题",-1))]),_:1}),1===Je.value.mode?((0,t.uX)(),(0,t.Wv)((0,s.R1)(k.Ay),{key:0,label:"选择词书"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(g.A),{value:Je.value.dict_ids,"onUpdate:value":a[3]||(a[3]=e=>Je.value.dict_ids=e),multiple:"",filterable:"",placeholder:"请选择词书(不选代表全部)",options:Oe.value,loading:Ue.value,clearable:""},null,8,["value","options","loading"])]),_:1})):(0,t.Q3)("",!0),3===Je.value.mode?((0,t.uX)(),(0,t.Wv)((0,s.R1)(k.Ay),{key:1,label:"选择词单"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",V,[(0,t.Lk)("div",{class:"border border-gray-300 dark:border-gray-600 rounded-md p-2 min-h-[34px] cursor-pointer hover:border-indigo-500 transition-colors bg-white dark:bg-black/10 flex flex-wrap gap-2",onClick:a[4]||(a[4]=e=>Pe.value=!0)},[Te.value.length>0?((0,t.uX)(!0),(0,t.CE)(t.FK,{key:0},(0,t.pI)(Te.value,e=>((0,t.uX)(),(0,t.Wv)((0,s.R1)(u.Ay),{key:e.id,closable:"",onClose:(0,r.D$)(a=>ca(e.id),["stop"]),size:"small"},{default:(0,t.k6)(()=>[(0,t.eW)((0,d.v_)(e.name),1)]),_:2},1032,["onClose"]))),128)):((0,t.uX)(),(0,t.CE)("div",S," 点击选择词单... "))])])]),_:1})):(0,t.Q3)("",!0),(0,t.bF)($.A,{show:Pe.value,"onUpdate:show":a[5]||(a[5]=e=>Pe.value=e),modelValue:Je.value.list_ids,"onUpdate:modelValue":a[6]||(a[6]=e=>Je.value.list_ids=e),selectedList:Te.value,"onUpdate:selectedList":a[7]||(a[7]=e=>Te.value=e),"max-count":10},null,8,["show","modelValue","selectedList"]),(0,t.Lk)("div",N,[(0,t.bF)((0,s.R1)(w.Ay),{type:"primary",size:"large",onClick:va,loading:W.value},{default:(0,t.k6)(()=>[...a[17]||(a[17]=[(0,t.eW)(" 开始挑战 ",-1)])]),_:1},8,["loading"])])]),_:1},8,["model","label-placement","label-width"])]),_:1})])),[[o]]):"quiz"===b.value?(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",G,[(0,t.Lk)("div",H,[(0,t.Lk)("span",J,"进度: "+(0,d.v_)(Ze.value+1)+" / "+(0,d.v_)(Ye.value.length),1),(0,t.bF)((0,s.R1)(_.A),{type:"line",percentage:(Ze.value+1)/Ye.value.length*100,"show-indicator":!1,class:"w-48",status:"success"},null,8,["percentage"])]),(0,t.bF)((0,s.R1)(v.Ay),{class:"rounded-xl shadow-lg min-h-[400px] flex flex-col justify-center items-center text-center p-8"},{default:(0,t.k6)(()=>[ra.value?((0,t.uX)(),(0,t.CE)(t.FK,{key:0},[(0,t.Lk)("h2",O,(0,d.v_)(ra.value.word),1),aa.value?((0,t.uX)(),(0,t.CE)("div",ae,[(0,t.Lk)("div",le,[((0,t.uX)(),(0,t.Wv)((0,t.$y)(ta.value.correct?(0,s.R1)(X.A):(0,s.R1)(z.A)),{class:(0,d.C4)(["w-16 h-16 mb-2",ta.value.correct?"text-green-500":"text-red-500"])},null,8,["class"])),(0,t.Lk)("span",{class:(0,d.C4)(["text-xl font-bold",ta.value.correct?"text-green-600":"text-red-600"])},(0,d.v_)(ta.value.correct?"回答正确":"回答错误"),3)]),(0,t.Lk)("div",te,[a[22]||(a[22]=(0,t.Lk)("div",{class:"text-xs text-gray-400 mb-2"},"正确释义:",-1)),((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(ta.value.translations,(e,a)=>((0,t.uX)(),(0,t.CE)("div",{key:a,class:"mb-1"},[(0,t.bF)((0,s.R1)(u.Ay),{size:"small",bordered:!1,type:"info",class:"mr-2"},{default:(0,t.k6)(()=>[(0,t.eW)((0,d.v_)(e.pos),1)]),_:2},1024),(0,t.Lk)("span",se,(0,d.v_)(e.meaning),1)]))),128))]),(0,t.Lk)("div",re,[(0,t.bF)((0,s.R1)(w.Ay),{secondary:"",type:"info",onClick:a[9]||(a[9]=e=>pa(ra.value.id))},{default:(0,t.k6)(()=>[...a[23]||(a[23]=[(0,t.eW)(" 查看详细释义 ",-1)])]),_:1}),(0,t.bF)((0,s.R1)(w.Ay),{type:"primary",onClick:ba},{default:(0,t.k6)(()=>[(0,t.eW)((0,d.v_)(da.value?"查看成绩":"下一题"),1)]),_:1})])])):((0,t.uX)(),(0,t.CE)("div",P,[(0,t.bF)((0,s.R1)(R.A),{value:ea.value,"onUpdate:value":a[8]||(a[8]=e=>ea.value=e),type:"textarea",placeholder:"请输入中文释义...",autosize:{minRows:3,maxRows:5},maxlength:20,"show-count":"",onKeydown:(0,r.jR)((0,r.D$)(ka,["prevent"]),["enter"])},null,8,["value","onKeydown"]),(0,t.Lk)("div",T,[(0,t.bF)((0,s.R1)(w.Ay),{quaternary:"",type:"info",size:"small",onClick:ma,loading:Qe.value},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(E),{class:"w-4 h-4 mr-1"}),a[18]||(a[18]=(0,t.eW)(" 查看例句提示 ",-1))]),_:1},8,["loading"]),(0,t.bF)((0,s.R1)(w.Ay),{type:"primary",onClick:ka,disabled:!ea.value.trim(),loading:$e.value},{default:(0,t.k6)(()=>[...a[19]||(a[19]=[(0,t.eW)(" 提交答案 ",-1)])]),_:1},8,["disabled","loading"])]),(0,t.Lk)("div",Y,[(0,t.bF)((0,s.R1)(w.Ay),{text:"",type:"success",onClick:xa},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(K.A),{class:"w-4 h-4 mr-1"}),a[20]||(a[20]=(0,t.eW)(" 我已掌握 (跳过) ",-1))]),_:1})]),la.value.length>0?((0,t.uX)(),(0,t.CE)("div",Z,[a[21]||(a[21]=(0,t.Lk)("div",{class:"text-xs text-gray-400 mb-2"},"例句提示:",-1)),(0,t.Lk)("ul",ee,[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(la.value,(e,a)=>((0,t.uX)(),(0,t.CE)("li",{key:a,class:"text-sm text-gray-600 dark:text-gray-300"},(0,d.v_)(e),1))),128))])])):(0,t.Q3)("",!0)]))],64)):(0,t.Q3)("",!0)]),_:1})])),[[o]]):"summary"===b.value?(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",de,[(0,t.bF)((0,s.R1)(v.Ay),{class:"rounded-xl shadow-lg text-center p-8 mb-8"},{default:(0,t.k6)(()=>[a[27]||(a[27]=(0,t.Lk)("h2",{class:"text-2xl font-bold mb-6"},"本次挑战完成!",-1)),(0,t.Lk)("div",oe,[(0,t.Lk)("div",ne,[(0,t.Lk)("div",ue,(0,d.v_)(na.value),1),a[24]||(a[24]=(0,t.Lk)("div",{class:"text-gray-500"},"总分",-1))]),(0,t.Lk)("div",ie,[(0,t.Lk)("div",ce,(0,d.v_)(oa.value)+" / "+(0,d.v_)(Ye.value.length),1),a[25]||(a[25]=(0,t.Lk)("div",{class:"text-gray-500"},"正确率",-1))])]),(0,t.Lk)("div",ve,[(0,t.bF)((0,s.R1)(w.Ay),{type:"primary",onClick:fa},{default:(0,t.k6)(()=>[...a[26]||(a[26]=[(0,t.eW)("再来一轮",-1)])]),_:1})])]),_:1}),ua.value.length>0?((0,t.uX)(),(0,t.CE)("div",ye,[(0,t.Lk)("h3",ke,[(0,t.bF)((0,s.R1)(j),{class:"w-5 h-5 mr-2 text-red-500"}),a[28]||(a[28]=(0,t.eW)(" 错题回顾 ",-1))]),(0,t.Lk)("div",xe,[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(ua.value,e=>((0,t.uX)(),(0,t.Wv)((0,s.R1)(v.Ay),{key:e.word.id,class:"rounded-lg shadow-sm hover:shadow-md transition-shadow",size:"small"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",me,[(0,t.Lk)("div",null,[(0,t.Lk)("h4",be,(0,d.v_)(e.word.word),1),(0,t.Lk)("div",pe,[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(e.translations,(e,a)=>((0,t.uX)(),(0,t.CE)("div",{key:a,class:"text-sm"},[(0,t.Lk)("span",fe,(0,d.v_)(e.pos),1),(0,t.Lk)("span",he,(0,d.v_)(e.meaning),1)]))),128))])]),(0,t.bF)((0,s.R1)(w.Ay),{size:"tiny",secondary:"",circle:"",onClick:a=>pa(e.word.id)},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(q.A),{class:"w-4 h-4"})]),_:1},8,["onClick"])])]),_:2},1024))),128))])])):(0,t.Q3)("",!0)])),[[o]]):(0,t.Q3)("",!0)]),_:1}),(0,t.bF)((0,s.R1)(c.A),{name:"history",tab:"历史记录"},{default:(0,t.k6)(()=>[(0,t.bF)((0,s.R1)(A.A),{type:"warning",class:"mb-4",bordered:!1,"show-icon":""},{default:(0,t.k6)(()=>[...a[29]||(a[29]=[(0,t.eW)(" 跳过回答的单词不会被此处统计 ",-1)])]),_:1}),(0,t.bo)(((0,t.uX)(),(0,t.CE)("div",ge,[(0,t.Lk)("div",we,[(0,t.bF)((0,s.R1)(v.Ay),{class:"bg-blue-50 dark:bg-blue-900/20 border-0 rounded-xl"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",_e,[a[30]||(a[30]=(0,t.Lk)("div",{class:"text-gray-500 dark:text-gray-400 text-sm mb-1"},"累计答题",-1)),(0,t.Lk)("div",Re,(0,d.v_)(Ne.value.total_answers),1)])]),_:1}),(0,t.bF)((0,s.R1)(v.Ay),{class:"bg-green-50 dark:bg-green-900/20 border-0 rounded-xl"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",Ae,[a[31]||(a[31]=(0,t.Lk)("div",{class:"text-gray-500 dark:text-gray-400 text-sm mb-1"},"正确率",-1)),(0,t.Lk)("div",Fe,(0,d.v_)(Ne.value.accuracy)+"%",1)])]),_:1})]),De.value.length>0?((0,t.uX)(),(0,t.CE)("div",Le,[(0,t.Lk)("h3",Ce,[(0,t.bF)((0,s.R1)(j),{class:"w-5 h-5 mr-2 text-red-500"}),a[32]||(a[32]=(0,t.eW)(" 错题本 ",-1))]),((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(De.value,e=>((0,t.uX)(),(0,t.Wv)((0,s.R1)(v.Ay),{key:e.id,size:"small",class:"hover:shadow-md transition-shadow cursor-pointer rounded-lg",onClick:a=>pa(e.id)},{default:(0,t.k6)(()=>[(0,t.Lk)("div",We,[(0,t.Lk)("div",Ee,[(0,t.Lk)("div",Ke,[(0,t.Lk)("h4",Xe,(0,d.v_)(e.word),1),(0,t.bF)((0,s.R1)(u.Ay),{type:"error",size:"small",round:"",bordered:!1},{default:(0,t.k6)(()=>[(0,t.eW)(" 错误 "+(0,d.v_)(e.error_count)+" 次 ",1)]),_:2},1024)]),(0,t.Lk)("div",ze,[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(e.translations,(e,a)=>((0,t.uX)(),(0,t.CE)("div",{key:a,class:"line-clamp-1 mb-1"},[(0,t.Lk)("span",je,(0,d.v_)(e.pos),1),(0,t.Lk)("span",null,(0,d.v_)(e.meaning),1)]))),128))])]),(0,t.bF)((0,s.R1)(q.A),{class:"w-4 h-4 text-gray-400 mt-1 flex-shrink-0"})])]),_:2},1032,["onClick"]))),128)),(0,t.Lk)("div",qe,[He.value?((0,t.uX)(),(0,t.Wv)((0,s.R1)(w.Ay),{key:0,loading:Ge.value,onClick:ga,secondary:"",round:""},{default:(0,t.k6)(()=>[...a[33]||(a[33]=[(0,t.eW)(" 查看更多 ",-1)])]),_:1},8,["loading"])):((0,t.uX)(),(0,t.CE)("div",Ie,"没有更多了"))])])):Ge.value?(0,t.Q3)("",!0):((0,t.uX)(),(0,t.Wv)((0,s.R1)(F.A),{key:1,description:"暂无错题记录",class:"mt-20"}))])),[[o]])]),_:1})]),_:1},8,["value"])])}}},Qe=l(71241);const Ue=(0,Qe.A)($e,[["__scopeId","data-v-6ef8afc2"]]);var Me=Ue}}]); -//# sourceMappingURL=938.c5d8dd36.js.map \ No newline at end of file +//# sourceMappingURL=938.77996131.js.map \ No newline at end of file diff --git a/dist/js/986.23f62e7e.js b/dist/js/986.ef9ba720.js similarity index 99% rename from dist/js/986.23f62e7e.js rename to dist/js/986.ef9ba720.js index f3495a2..aba7566 100644 --- a/dist/js/986.23f62e7e.js +++ b/dist/js/986.ef9ba720.js @@ -13,4 +13,4 @@ const xe=(0,ye.A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l * See the LICENSE file in the root directory of this source tree. */ const ke=(0,ye.A)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);var Ae=n(7023),$e=n(1576),_e=n.n($e),Ce=n(74911),Me=n(35720),Re=n(98728),De=n(15227);const Ie={class:"passage-view max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},Fe={class:"flex flex-col gap-4 mb-8"},Se={class:"flex items-center gap-2"},Ee={key:0},Te={key:0,class:"bg-blue-50 dark:bg-blue-900/20 p-4 rounded-lg flex items-start gap-3 mt-2"},Be={key:1,class:"bg-yellow-50 dark:bg-yellow-900/20 p-4 rounded-lg flex items-start gap-3 mt-2"},Oe={class:"max-w-2xl mx-auto"},ze={key:1,class:"text-gray-400 text-sm"},Pe={class:"max-w-4xl mx-auto space-y-6"},Le={key:0,class:"flex justify-center py-12"},Ne={key:1,class:"flex flex-col items-center justify-center py-16 text-center"},Ve={key:2,class:"space-y-6"},Ue={class:"flex items-center gap-1"},We=["innerHTML"],je=["innerHTML"],Ke=["innerHTML"],He={class:"mt-6 pt-4 border-t border-gray-100 dark:border-gray-800"},Xe={class:"flex items-center gap-2 mb-3"},Ye={class:"flex flex-wrap gap-2"},qe=["onClick"],Qe={key:0,class:"flex justify-center mt-8"},Ge={key:1,class:"text-center text-gray-400 text-sm mt-8"},Ze='Google Gemini',Je='OpenAI';var et={__name:"PassageView",setup(e){const t=(0,s.J)(),n=(0,Re.rd)(),g=(0,o.Pj)(),b=new Ce.A({html:!0,breaks:!0,linkify:!0}),y=(0,a.KR)("generate"),x=(0,a.KR)(!1),w=(0,a.KR)(!1),k=(0,a.KR)(!1),A=(0,a.KR)(!1),$=(0,a.KR)(!1),_=(0,a.KR)("unlimited"),C=(0,a.KR)(1),M=(0,a.KR)(!0),R=(0,a.KR)([]),D=(0,a.KR)([]),I=(0,a.KR)([]),S=(0,a.KR)([]),E=(0,r.EW)(()=>g.getters.userInfo),T=(0,r.EW)(()=>E.value?.is_vip),B=(0,a.Kh)({mode:0,count:5,dict_ids:[],list_ids:[],word_ids:[],model:"gemini-3-pro"}),O=[{label:"Gemini 3 Pro (推荐)",value:"gemini-3-pro"}],z=e=>_e()(e).format("YYYY年MM月DD日 HH:mm"),P=e=>b.render(e||""),L=e=>{const t=n.resolve({path:"/word",query:{word_id:e}});window.open(t.href,"_blank")},N=async()=>{k.value=!0;try{const e=await Me.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/dict/list");0===e.data.code&&(D.value=e.data.data.map(e=>({label:e.name,value:e.id})))}catch(e){console.error("Fetch dicts error:",e)}finally{k.value=!1}},V=async e=>{if(e){A.value=!0;try{const t=await Me.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/search",{keyword:e,page:1,limit:5}),n=t.data.data||t.data,r=new Set(B.word_ids),a=I.value.filter(e=>r.has(e.value)),l=(n.list||[]).map(e=>({label:e.word+(e.translations&&e.translations[0]?` (${e.translations[0].meaning})`:""),value:e.id})),i=[...a,...l],o=new Map;i.forEach(e=>o.set(e.value,e)),I.value=Array.from(o.values())}catch(t){console.error("Search words error:",t)}finally{A.value=!1}}},U=e=>{B.list_ids=B.list_ids.filter(t=>t!==e),S.value=S.value.filter(t=>t.id!==e)},W=async(e=!1)=>{if(!w.value){w.value=!0;try{const t=await Me.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/ai_passage/list",{params:{page:C.value}}),n=t.data,r=n.list||[],a=n.pagination||{};R.value=e?[...R.value,...r]:r,M.value=C.value<(a.total_pages||0)}catch(n){console.error("Fetch history error:",n),t.error("获取历史记录失败")}finally{w.value=!1}}},j=()=>{M.value&&(C.value++,W(!0))},K=async()=>{if(1===B.mode&&B.dict_ids.length,3!==B.mode||0!==B.list_ids.length)if(4!==B.mode||0!==B.word_ids.length){x.value=!0;try{const e={mode:B.mode,model:B.model,count:B.count};1===B.mode&&(e.dict_ids=B.dict_ids),3===B.mode&&(e.dict_ids=B.list_ids),4===B.mode&&(e.word_ids=B.word_ids);const n=await Me.A.post("https://newfront.xn--xhq44jb2fzpc.com/word_helper/ai_passage/generate",e);void 0!==n.data.remaining_usage&&(_.value=n.data.remaining_usage),t.success(`生成成功!剩余试用次数:${n.data.remaining_usage}`),y.value="history",C.value=1,W()}catch(e){console.error("Generate error:",e),e.response?.data?.message?t.error(e.response.data.message):t.error("生成失败,请稍后重试")}finally{x.value=!1}}else t.warning("请至少选择一个单词");else t.warning("请至少选择一个词单")};return(0,r.wB)(()=>B.mode,e=>{1===e&&0===D.value.length&&N()}),(0,r.wB)(y,e=>{"history"===e&&0===R.value.length&&W()}),(0,r.sV)(()=>{document.title="AI 助记短文 - Word Helper"}),(e,t)=>{const n=(0,r.gN)("motion-fade"),o=(0,r.gN)("motion-slide-visible-once-left");return(0,r.uX)(),(0,r.CE)("div",Ie,[(0,r.bo)(((0,r.uX)(),(0,r.CE)("div",Fe,[(0,r.Lk)("div",Se,[(0,r.bF)((0,a.R1)(u._),{size:"32",class:"text-primary"},{default:(0,r.k6)(()=>[(0,r.bF)((0,a.R1)(ge.A))]),_:1}),t[10]||(t[10]=(0,r.Lk)("h1",{class:"text-3xl font-bold text-gray-900 dark:text-white"},"AI 助记短文",-1))]),t[13]||(t[13]=(0,r.Lk)("p",{class:"text-gray-500 dark:text-gray-400"}," 利用 AI 生成包含目标单词的趣味短文,帮助您在语境中记忆单词。 ",-1)),E.value?(0,r.bo)(((0,r.uX)(),(0,r.CE)("div",Ee,[T.value?((0,r.uX)(),(0,r.CE)("div",Te,[(0,r.bF)((0,a.R1)(be.A),{class:"w-5 h-5 text-blue-500 mt-0.5 flex-shrink-0"}),t[11]||(t[11]=(0,r.Lk)("p",{class:"text-sm text-gray-600 dark:text-gray-300 leading-relaxed"}," 您是VIP用户,可无限量畅享AI助记短文功能。 ",-1))])):((0,r.uX)(),(0,r.CE)("div",Be,[(0,r.bF)((0,a.R1)(xe),{class:"w-5 h-5 text-yellow-500 mt-0.5 flex-shrink-0"}),t[12]||(t[12]=(0,r.Lk)("p",{class:"text-sm text-gray-600 dark:text-gray-300 leading-relaxed"},[(0,r.eW)(" 非VIP用户可试用3次AI助记短文功能,"),(0,r.Lk)("a",{href:"https://www.xn--xhq44jb2fzpc.com/subscribe",target:"_blank",class:"text-yellow-600 dark:text-yellow-400 font-bold hover:underline"},"赞助"),(0,r.eW)("可获得会员权限。 ")],-1))]))])),[[n]]):(0,r.Q3)("",!0)])),[[o]]),(0,r.bF)((0,a.R1)(d.A),{type:"segment",animated:"",value:y.value,"onUpdate:value":t[6]||(t[6]=e=>y.value=e),class:"mb-8"},{default:(0,r.k6)(()=>[(0,r.bF)((0,a.R1)(c.A),{name:"generate",tab:"生成短文"},{default:(0,r.k6)(()=>[(0,r.bo)(((0,r.uX)(),(0,r.CE)("div",Oe,[(0,r.bF)((0,a.R1)(f.Ay),{title:"生成配置",class:"rounded-xl shadow-sm"},{default:(0,r.k6)(()=>[(0,r.bF)((0,a.R1)(p.A),{ref:"formRef",model:B,"label-placement":"top"},{default:(0,r.k6)(()=>[(0,r.bF)((0,a.R1)(m.Ay),{label:"单词来源"},{default:(0,r.k6)(()=>[(0,r.bF)((0,a.R1)(h.A),{value:B.mode,"onUpdate:value":t[0]||(t[0]=e=>B.mode=e),name:"mode",class:"grid grid-cols-2 gap-2 w-full"},{default:(0,r.k6)(()=>[(0,r.bF)((0,a.R1)(v.A),{value:0,label:"最近学习"}),(0,r.bF)((0,a.R1)(v.A),{value:1,label:"词书"}),(0,r.bF)((0,a.R1)(v.A),{value:2,label:"生词本"}),(0,r.bF)((0,a.R1)(v.A),{value:3,label:"词单"}),(0,r.bF)((0,a.R1)(v.A),{value:4,label:"自定义"})]),_:1},8,["value"])]),_:1}),4!==B.mode?((0,r.uX)(),(0,r.Wv)((0,a.R1)(m.Ay),{key:0,label:"单词数量"},{default:(0,r.k6)(()=>[(0,r.bF)((0,a.R1)(q),{value:B.count,"onUpdate:value":t[1]||(t[1]=e=>B.count=e),min:1,max:20,class:"w-full"},null,8,["value"])]),_:1})):(0,r.Q3)("",!0),1===B.mode?((0,r.uX)(),(0,r.Wv)((0,a.R1)(m.Ay),{key:1,label:"选择词书"},{default:(0,r.k6)(()=>[(0,r.bF)((0,a.R1)(Q.A),{value:B.dict_ids,"onUpdate:value":t[2]||(t[2]=e=>B.dict_ids=e),multiple:"",filterable:"",placeholder:"请选择词书(不选代表全部)",options:D.value,loading:k.value,clearable:""},null,8,["value","options","loading"])]),_:1})):(0,r.Q3)("",!0),3===B.mode?((0,r.uX)(),(0,r.Wv)((0,a.R1)(m.Ay),{key:2,label:"选择词单"},{default:(0,r.k6)(()=>[(0,r.Lk)("div",{class:"w-full border border-gray-300 dark:border-gray-700 rounded p-2 cursor-pointer hover:border-primary transition-colors min-h-[34px] flex flex-wrap gap-2",onClick:t[3]||(t[3]=e=>$.value=!0)},[S.value.length>0?((0,r.uX)(!0),(0,r.CE)(r.FK,{key:0},(0,r.pI)(S.value,e=>((0,r.uX)(),(0,r.Wv)((0,a.R1)(G.Ay),{key:e.id,closable:"",onClose:(0,l.D$)(t=>U(e.id),["stop"]),size:"small"},{default:(0,r.k6)(()=>[(0,r.eW)((0,i.v_)(e.name),1)]),_:2},1032,["onClose"]))),128)):((0,r.uX)(),(0,r.CE)("span",ze,"点击选择词单..."))])]),_:1})):(0,r.Q3)("",!0),4===B.mode?((0,r.uX)(),(0,r.Wv)((0,a.R1)(m.Ay),{key:3,label:"选择单词 (最多20个)"},{default:(0,r.k6)(()=>[(0,r.bF)((0,a.R1)(Q.A),{value:B.word_ids,"onUpdate:value":t[4]||(t[4]=e=>B.word_ids=e),multiple:"",filterable:"",remote:"",placeholder:"输入单词搜索...",options:I.value,loading:A.value,onSearch:V,"max-tag-count":5,clearable:""},null,8,["value","options","loading"])]),_:1})):(0,r.Q3)("",!0),(0,r.bF)((0,a.R1)(m.Ay),{label:"AI 模型"},{default:(0,r.k6)(()=>[(0,r.bF)((0,a.R1)(Q.A),{value:B.model,"onUpdate:value":t[5]||(t[5]=e=>B.model=e),options:O},null,8,["value"])]),_:1}),(0,r.bF)((0,a.R1)(F.Ay),{type:"primary",block:"",size:"large",loading:x.value,onClick:K},{default:(0,r.k6)(()=>[...t[14]||(t[14]=[(0,r.eW)(" 生成短文 ",-1)])]),_:1},8,["loading"])]),_:1},8,["model"])]),_:1})])),[[n]])]),_:1}),(0,r.bF)((0,a.R1)(c.A),{name:"history",tab:"历史记录"},{default:(0,r.k6)(()=>[(0,r.bo)(((0,r.uX)(),(0,r.CE)("div",Pe,[w.value&&1===C.value?((0,r.uX)(),(0,r.CE)("div",Le,[(0,r.bF)((0,a.R1)(Z.A),{size:"large"})])):0===R.value.length?((0,r.uX)(),(0,r.CE)("div",Ne,[(0,r.bF)((0,a.R1)(u._),{size:"64",class:"text-gray-300 dark:text-gray-600 mb-4"},{default:(0,r.k6)(()=>[(0,r.bF)((0,a.R1)(we.A))]),_:1}),t[15]||(t[15]=(0,r.Lk)("p",{class:"text-gray-500 dark:text-gray-400"},"暂无生成记录,快去生成第一篇吧!",-1))])):((0,r.uX)(),(0,r.CE)("div",Ve,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(R.value,e=>((0,r.uX)(),(0,r.Wv)((0,a.R1)(f.Ay),{key:e.id,class:"rounded-xl shadow-sm hover:shadow-md transition-shadow",title:z(e.created_at),size:"medium"},{"header-extra":(0,r.k6)(()=>[(0,r.bF)((0,a.R1)(G.Ay),{size:"small",type:"gpt-5"===e.model?"success":"info",bordered:!1},{default:(0,r.k6)(()=>[(0,r.Lk)("div",Ue,[(0,r.Lk)("span",{class:"w-4 h-4 flex items-center justify-center",innerHTML:"gpt-5"===e.model?Je:Ze},null,8,We),(0,r.Lk)("span",null,(0,i.v_)("gpt-5"===e.model?"GPT-5":"Gemini 3 Pro"),1)])]),_:2},1032,["type"])]),default:(0,r.k6)(()=>[(0,r.Lk)("div",{class:"prose dark:prose-invert max-w-none mb-6 text-base leading-relaxed",innerHTML:P(e.content)},null,8,je),(0,r.bF)((0,a.R1)(ie),null,{default:(0,r.k6)(()=>[(0,r.bF)((0,a.R1)(ve),{title:"查看中文翻译",name:"1"},{default:(0,r.k6)(()=>[(0,r.Lk)("div",{class:"prose dark:prose-invert max-w-none text-gray-600 dark:text-gray-300 p-4 bg-gray-50 dark:bg-gray-800/50 rounded-lg",innerHTML:P(e.translation)},null,8,Ke)]),_:2},1024)]),_:2},1024),(0,r.Lk)("div",He,[(0,r.Lk)("div",Xe,[(0,r.bF)((0,a.R1)(u._),{size:"16",class:"text-gray-400"},{default:(0,r.k6)(()=>[(0,r.bF)((0,a.R1)(ke))]),_:1}),t[16]||(t[16]=(0,r.Lk)("span",{class:"text-xs text-gray-500 font-medium"},"关联单词",-1))]),(0,r.Lk)("div",Ye,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.words,e=>((0,r.uX)(),(0,r.CE)("div",{key:e.id,class:"group cursor-pointer px-3 py-1.5 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg text-sm hover:border-primary hover:text-primary transition-all flex items-center gap-1 shadow-sm",onClick:t=>L(e.id)},[(0,r.Lk)("span",null,(0,i.v_)(e.word),1),(0,r.bF)((0,a.R1)(u._),{size:"12",class:"opacity-0 group-hover:opacity-100 transition-opacity"},{default:(0,r.k6)(()=>[(0,r.bF)((0,a.R1)(Ae.A))]),_:1})],8,qe))),128))])])]),_:2},1032,["title"]))),128)),M.value?((0,r.uX)(),(0,r.CE)("div",Qe,[(0,r.bF)((0,a.R1)(F.Ay),{loading:w.value,onClick:j,secondary:""},{default:(0,r.k6)(()=>[...t[17]||(t[17]=[(0,r.eW)(" 加载更多历史记录 ",-1)])]),_:1},8,["loading"])])):R.value.length>0?((0,r.uX)(),(0,r.CE)("div",Ge," 没有更多记录了 ")):(0,r.Q3)("",!0)]))])),[[n]])]),_:1})]),_:1},8,["value"]),(0,r.bF)(De.A,{show:$.value,"onUpdate:show":t[7]||(t[7]=e=>$.value=e),modelValue:B.list_ids,"onUpdate:modelValue":t[8]||(t[8]=e=>B.list_ids=e),selectedList:S.value,"onUpdate:selectedList":t[9]||(t[9]=e=>S.value=e),"max-count":10},null,8,["show","modelValue","selectedList"])])}}},tt=n(71241);const nt=(0,tt.A)(et,[["__scopeId","data-v-27b499a4"]]);var rt=nt}}]); -//# sourceMappingURL=986.23f62e7e.js.map \ No newline at end of file +//# sourceMappingURL=986.ef9ba720.js.map \ No newline at end of file diff --git a/dist/js/about.204a629c.js b/dist/js/about.e8da17fa.js similarity index 99% rename from dist/js/about.204a629c.js rename to dist/js/about.e8da17fa.js index af3fba9..e60ed82 100644 --- a/dist/js/about.204a629c.js +++ b/dist/js/about.e8da17fa.js @@ -6,4 +6,4 @@ * See the LICENSE file in the root directory of this source tree. */ const i=(0,s.A)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]),o=(0,s.A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),n=(0,s.A)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),c=(0,s.A)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);var p=e(59856);const g={class:"page-container max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12 flex flex-col items-center justify-center min-h-[80vh]"},b={initial:{opacity:0,y:50},enter:{opacity:1,y:0,transition:{duration:800,type:"spring"}},class:"text-center mb-16"},x={class:"grid grid-cols-1 md:grid-cols-3 gap-6 w-full max-w-5xl mb-20"},k=["enter"],u={class:"flex items-center gap-4 mb-4"},h={class:"text-xl font-bold text-gray-800 dark:text-gray-100"},y={class:"text-gray-600 dark:text-gray-400 leading-relaxed"},m={initial:{opacity:0},enter:{opacity:1,transition:{delay:1e3,duration:800}},class:"text-center mt-auto space-y-4"},v={class:"inline-flex items-center justify-center px-6 py-2 rounded-full bg-gray-50 dark:bg-gray-800/50 border border-gray-200 dark:border-gray-700/50 backdrop-blur-sm"},f={class:"text-gray-600 dark:text-gray-300 text-lg flex items-center gap-2 font-medium"};var w={__name:"AboutView",setup(t){const{isDark:a}=(0,r.WQ)("themeContext"),e=[{title:"高效词单",desc:"轻松创建和管理您的专属单词本,支持批量导入,让学习更有条理。",icon:i,bgClass:"bg-blue-100 dark:bg-blue-900/30",textClass:"text-blue-600 dark:text-blue-400"},{title:"智能复习",desc:"科学记忆算法,搭配经过专项训练的智能抽查模型,确保您的单词记忆效果最大化。",icon:o,bgClass:"bg-amber-100 dark:bg-amber-900/30",textClass:"text-amber-600 dark:text-amber-400"},{title:"数据统计",desc:"多维度的学习数据分析与可视化图表,直观展示您的进步轨迹,激发学习动力。",icon:n,bgClass:"bg-emerald-100 dark:bg-emerald-900/30",textClass:"text-emerald-600 dark:text-emerald-400"}];return(t,a)=>{const s=(0,r.gN)("motion");return(0,r.uX)(),(0,r.CE)("div",g,[(0,r.bo)(((0,r.uX)(),(0,r.CE)("div",b,[...a[0]||(a[0]=[(0,r.Fv)('
Word Helper Logo

Word Helper

您的智能单词记忆助手
让背单词变得简单、高效、有趣

',3)])])),[[s]]),(0,r.Lk)("div",x,[((0,r.uX)(),(0,r.CE)(r.FK,null,(0,r.pI)(e,(t,a)=>(0,r.bo)((0,r.Lk)("div",{key:a,initial:{opacity:0,y:30},enter:{opacity:1,y:0,transition:{delay:100*a+100}},class:"group bg-white dark:bg-gray-800 rounded-2xl p-8 shadow-sm hover:shadow-xl hover:-translate-y-1 transition-all duration-300 border border-gray-100 dark:border-gray-700"},[(0,r.Lk)("div",u,[(0,r.Lk)("div",{class:(0,l.C4)(`p-3 rounded-xl ${t.bgClass} group-hover:scale-110 transition-transform duration-300`)},[(0,r.bF)((0,d.R1)(p._),{size:28,class:(0,l.C4)(t.textClass)},{default:(0,r.k6)(()=>[((0,r.uX)(),(0,r.Wv)((0,r.$y)(t.icon)))]),_:2},1032,["class"])],2),(0,r.Lk)("h3",h,(0,l.v_)(t.title),1)]),(0,r.Lk)("p",y,(0,l.v_)(t.desc),1)],8,k),[[s]])),64))]),(0,r.bo)(((0,r.uX)(),(0,r.CE)("div",m,[(0,r.Lk)("div",v,[(0,r.Lk)("p",f,[a[1]||(a[1]=(0,r.Lk)("span",null,"Developed with",-1)),(0,r.bF)((0,d.R1)(p._),{size:"20",class:"text-red-500 animate-pulse"},{default:(0,r.k6)(()=>[(0,r.bF)((0,d.R1)(c))]),_:1}),a[2]||(a[2]=(0,r.Lk)("span",null,"by",-1)),a[3]||(a[3]=(0,r.Lk)("a",{href:"https://www.ember.ac.cn",target:"_blank",class:"font-bold text-indigo-600 dark:text-indigo-400 hover:text-indigo-700 dark:hover:text-indigo-300 transition-colors relative group ml-1"},[(0,r.eW)(" Ember "),(0,r.Lk)("span",{class:"absolute -bottom-1 left-0 w-0 h-0.5 bg-indigo-600 dark:bg-indigo-400 transition-all duration-300 group-hover:w-full"})],-1))])]),a[4]||(a[4]=(0,r.Lk)("p",{class:"text-xs text-gray-400 font-mono tracking-wider opacity-70"},"v1.0.2",-1))])),[[s]])])}}},C=e(71241);const L=(0,C.A)(w,[["__scopeId","data-v-ba81c606"]]);var M=L}}]); -//# sourceMappingURL=about.204a629c.js.map \ No newline at end of file +//# sourceMappingURL=about.e8da17fa.js.map \ No newline at end of file diff --git a/dist/js/app.48d7089e.js b/dist/js/app.48d7089e.js new file mode 100644 index 0000000..20a2990 --- /dev/null +++ b/dist/js/app.48d7089e.js @@ -0,0 +1,2 @@ +(function(){"use strict";var e={35720:function(e,t,a){var n=a(94373),r=a(55129);const o=n.A.create({timeout:5e3});o.interceptors.request.use(e=>{const t=r.A.getters.token;return t&&(e.headers["Authorization"]=t),e.url&&e.url.includes("/ai_passage/generate")&&(e.timeout=24e4),e},e=>(console.log(e),Promise.reject(e))),t.A=o},55129:function(e,t,a){var n=a(60782),r=a(35720);t.A=(0,n.y$)({state:{token:"",userInfo:null},getters:{token:e=>e.token,userInfo:e=>e.userInfo},mutations:{setToken(e,t){e.token=t},setUserInfo(e,t){e.userInfo=t}},actions:{fetchUserInfo({commit:e}){return new Promise((t,a)=>{r.A.get("https://newfront.xn--xhq44jb2fzpc.com/user/info").then(n=>{const r=n.data;r?(e("setUserInfo",r),t(r)):a(new Error("No user info"))}).catch(e=>{a(e)})})}},modules:{}})},78174:function(e,t,a){var n=a(45130),r=a(56768),o=a(90144),l=a(73725),s=a(22646),i=a(28686),d=a(78597),c=a(3575),u={__name:"App",setup(e){const t=(0,o.KR)(null),a=(0,o.KR)(!1),n={Menu:{borderRadius:"50px",itemHeight:"42px",itemMargin:"4px 8px"}},u=e=>{a.value=e,t.value=e?l.a:null,e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",e?"dark":"light")},m=()=>{u(!a.value)};return(0,r.sV)(()=>{const e=localStorage.getItem("theme");if(e)u("dark"===e);else{const e=window.matchMedia("(prefers-color-scheme: dark)").matches;u(e)}}),(0,r.Gt)("themeContext",{isDark:a,toggleTheme:m}),(e,a)=>{const l=(0,r.g2)("router-view");return(0,r.uX)(),(0,r.Wv)((0,o.R1)(s.A),{theme:t.value,"theme-overrides":n},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(i.A)),(0,r.bF)((0,o.R1)(d.A),null,{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(c.K),null,{default:(0,r.k6)(()=>[(0,r.bF)(l)]),_:1})]),_:1})]),_:1},8,["theme"])}}};const m=u;var f=m,p=a(98728),g=(a(44114),a(24232)),b=a(60782),h=a(59856),v=a(33889),y=a(13230),k=a(99310),x=a(58421),w=a(86727),_=a(30284),A=a(36921),L=a(28451),R=a(58096),E=a(56714),C=a(93812),F=a(35161),j=a(18169),z=a(95802),I=a(57273),P=a(26961),W=a(29554),q=a(41829),S=a(22695),X=a(82089),O=a(94578),T=a(51415),N=a(55704);const K={class:"h-16 flex items-center justify-center border-b border-gray-200 dark:border-gray-800"},V={key:0,class:"flex items-center gap-3 px-4 truncate"},U={key:1,class:"flex justify-center w-full"},B={class:"flex items-center gap-4"},H={class:"flex items-center gap-4"},M={class:"flex items-center gap-3 pl-4 border-l border-gray-200 dark:border-gray-700"},D={class:"text-right hidden sm:block"},G={class:"text-sm font-medium text-gray-900 dark:text-gray-100"},Q={key:0,class:"inline-flex items-center gap-1 px-2 py-0.5 mt-0.5 rounded-full text-xs font-medium bg-amber-50 text-amber-600 border border-amber-200 dark:bg-amber-900/20 dark:text-amber-400 dark:border-amber-800/50"},Y={key:1,class:"inline-flex items-center px-2 py-0.5 mt-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-500 border border-gray-200 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700"},$={class:"p-4 min-w-[200px] bg-white dark:bg-gray-900 rounded-lg"},J={class:"flex flex-col items-center"},Z={class:"text-base font-medium text-gray-900 dark:text-gray-100 mb-2"},ee={key:0,class:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-amber-50 text-amber-600 border border-amber-200 dark:bg-amber-900/20 dark:text-amber-400 dark:border-amber-800/50"},te={key:1,class:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-500 border border-gray-200 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700"};var ae={__name:"MainLayout",setup(e){const t=(0,b.Pj)(),a=(0,p.rd)(),l=(0,p.lq)(),{isDark:s,toggleTheme:i}=(0,r.WQ)("themeContext"),d=(0,o.KR)(!1),c=(0,o.KR)(!1),u=(0,o.KR)(!1),m=()=>{u.value=window.innerWidth<768};(0,r.sV)(()=>{m(),window.addEventListener("resize",m)}),(0,r.hi)(()=>{window.removeEventListener("resize",m)});const f=(0,r.EW)(()=>t.getters.userInfo);function ae(e){return()=>(0,r.h)(h._,null,{default:()=>(0,r.h)(e)})}const ne=[{label:"我的数据",key:"home",icon:ae(E.A)},{label:"词书",key:"dict",icon:ae(C.A)},{label:"生词本",key:"favorite",icon:ae(F.A)},{label:"单词搜索",key:"search",icon:ae(j.A)},{label:"我的笔记",key:"note",icon:ae(z.A)},{label:"我的词单",key:"lists",icon:ae(I.A)},{label:"学习记录",key:"learn",icon:ae(P.A)},{label:"智能抽查",key:"check",icon:ae(W.A)},{label:"猜单词",key:"guess",icon:ae(q.A)},{label:"AI 助记短文",key:"passage",icon:ae(S.A)},{label:"关于",key:"about",icon:ae(X.A)}],re=(0,r.EW)(()=>l.name),oe=e=>{a.push({name:e}),c.value=!1};return(e,t)=>{const a=(0,r.g2)("router-view");return(0,r.uX)(),(0,r.Wv)((0,o.R1)(v.Ay),{class:"h-screen","has-sider":""},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(y.A),{show:c.value,"onUpdate:show":t[0]||(t[0]=e=>c.value=e),placement:"left",width:240,class:"md:hidden"},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(k.A),{"body-content-style":"padding: 0;"},{header:(0,r.k6)(()=>[...t[5]||(t[5]=[(0,r.Lk)("div",{class:"flex items-center gap-2"},[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/wh_logo.png",class:"w-8 h-8",alt:"Logo"}),(0,r.Lk)("span",{class:"text-lg font-bold text-gray-900 dark:text-white"},"Word Helper")],-1)])]),default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(x.A),{options:ne,value:re.value,"onUpdate:value":oe,class:"custom-menu"},null,8,["value"])]),_:1})]),_:1},8,["show"]),u.value?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.Wv)((0,o.R1)(w.A),{key:0,bordered:"","collapse-mode":"width","collapsed-width":64,width:240,collapsed:d.value,"show-trigger":"",onCollapse:t[1]||(t[1]=e=>d.value=!0),onExpand:t[2]||(t[2]=e=>d.value=!1),class:"hidden md:block bg-white dark:bg-gray-900 h-screen shadow-sm z-10"},{default:(0,r.k6)(()=>[(0,r.Lk)("div",K,[d.value?((0,r.uX)(),(0,r.CE)("div",U,[...t[7]||(t[7]=[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/wh_logo.png",class:"w-8 h-8",alt:"Logo"},null,-1)])])):((0,r.uX)(),(0,r.CE)("div",V,[...t[6]||(t[6]=[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/wh_logo.png",class:"w-8 h-8",alt:"Logo"},null,-1),(0,r.Lk)("h1",{class:"text-xl font-bold text-primary"},"Word Helper",-1)])]))]),(0,r.bF)((0,o.R1)(x.A),{class:"mt-2",collapsed:d.value,"collapsed-width":64,"collapsed-icon-size":22,options:ne,value:re.value,"onUpdate:value":oe},null,8,["collapsed","value"])]),_:1},8,["collapsed"])),(0,r.bF)((0,o.R1)(v.Ay),{class:"h-screen bg-gray-50 dark:bg-gray-950","native-scrollbar":!1},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(_.A),{bordered:"",class:"h-16 px-4 flex items-center justify-between bg-white dark:bg-gray-900 border-b border-gray-200 dark:border-gray-800 shadow-sm z-10 sticky top-0"},{default:(0,r.k6)(()=>[(0,r.Lk)("div",B,[(0,r.Lk)("button",{onClick:t[3]||(t[3]=e=>c.value=!0),class:"md:hidden p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"},[(0,r.bF)((0,o.R1)(O.A),{class:"w-6 h-6 text-gray-600 dark:text-gray-300"})]),t[8]||(t[8]=(0,r.Lk)("div",{class:"flex items-center gap-2 md:hidden"},[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/wh_logo.png",class:"w-8 h-8",alt:"Logo"}),(0,r.Lk)("span",{class:"text-lg font-bold text-gray-800 dark:text-white"},"Word Helper")],-1))]),(0,r.Lk)("div",H,[(0,r.Lk)("button",{onClick:t[4]||(t[4]=(...e)=>(0,o.R1)(i)&&(0,o.R1)(i)(...e)),class:"p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"},[(0,o.R1)(s)?((0,r.uX)(),(0,r.Wv)((0,o.R1)(T.A),{key:0,class:"w-5 h-5 text-yellow-500"})):((0,r.uX)(),(0,r.Wv)((0,o.R1)(N.A),{key:1,class:"w-5 h-5 text-gray-600"}))]),(0,r.Lk)("div",M,[(0,r.Lk)("div",D,[(0,r.Lk)("div",G,(0,g.v_)(f.value?.nickname||"Guest"),1),f.value?.is_vip?((0,r.uX)(),(0,r.CE)("div",Q,[...t[9]||(t[9]=[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/vip_g3.svg",class:"w-3 h-3",alt:"VIP"},null,-1),(0,r.Lk)("span",null,"VIP用户",-1)])])):((0,r.uX)(),(0,r.CE)("div",Y," 普通用户 "))]),u.value?((0,r.uX)(),(0,r.Wv)((0,o.R1)(A.Ay),{key:0,trigger:"click",placement:"bottom-end",style:{padding:"0"}},{trigger:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(L.A),{round:"",size:"medium",src:f.value?.avatar_path,"fallback-src":"https://download.xn--xhq44jb2fzpc.com/avatar/default.png",class:"cursor-pointer"},null,8,["src"])]),default:(0,r.k6)(()=>[(0,r.Lk)("div",$,[(0,r.Lk)("div",J,[(0,r.Lk)("div",Z,(0,g.v_)(f.value?.nickname||"Guest"),1),f.value?.is_vip?((0,r.uX)(),(0,r.CE)("div",ee,[...t[10]||(t[10]=[(0,r.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/vip_g3.svg",class:"w-3 h-3",alt:"VIP"},null,-1),(0,r.Lk)("span",null,"VIP用户",-1)])])):((0,r.uX)(),(0,r.CE)("div",te," 普通用户 "))])])]),_:1})):((0,r.uX)(),(0,r.Wv)((0,o.R1)(L.A),{key:1,round:"",size:"medium",src:f.value?.avatar_path,"fallback-src":"https://download.xn--xhq44jb2fzpc.com/avatar/default.png"},null,8,["src"]))])])]),_:1}),(0,r.bF)((0,o.R1)(R.A),{class:"p-4 md:p-6 bg-gray-50 dark:bg-gray-950","content-style":"min-height: calc(100vh - 64px)"},{default:(0,r.k6)(()=>[(0,r.bF)(a,null,{default:(0,r.k6)(({Component:e})=>[(0,r.bF)(n.eB,{"enter-active-class":"animate__animated animate__fadeIn animate__faster","leave-active-class":"animate__animated animate__fadeOut animate__faster",mode:"out-in"},{default:(0,r.k6)(()=>[((0,r.uX)(),(0,r.Wv)((0,r.$y)(e)))]),_:2},1024)]),_:1})]),_:1})]),_:1})]),_:1})}}},ne=a(71241);const re=(0,ne.A)(ae,[["__scopeId","data-v-1f30e042"]]);var oe=re,le=(a(18111),a(61701),a(97387)),se=a(91332),ie=a(2231),de=a(49912),ce=a(42517),ue=a(37006),me=a(35720),fe=a(60501),pe=a(2043),ge=a(75095),be=a(32685),he=a(53708),ve=a(89536),ye=a(5143),ke=a(40623),xe=a(92080),we=a(56677);const _e={class:"home-view max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},Ae={initial:{opacity:0,y:20},enter:{opacity:1,y:0},class:"mb-8"},Le={class:"text-3xl font-bold text-gray-900 dark:text-white mb-2"},Re={class:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8"},Ee={class:"flex items-center justify-between"},Ce={class:"text-3xl font-bold text-primary mt-1"},Fe={class:"p-3 bg-blue-50 dark:bg-blue-900/20 rounded-lg"},je={class:"flex items-center justify-between"},ze={class:"text-3xl font-bold text-green-600 dark:text-green-400 mt-1"},Ie={class:"p-3 bg-green-50 dark:bg-green-900/20 rounded-lg"},Pe={class:"flex items-center justify-between"},We={class:"text-3xl font-bold text-purple-600 dark:text-purple-400 mt-1"},qe={class:"p-3 bg-purple-50 dark:bg-purple-900/20 rounded-lg"},Se={class:"h-[400px] w-full relative",ref:"chartContainer"};var Xe={__name:"HomeView",setup(e){(0,pe.Y)([ge.a,be.a,he.a,ve.a,ye.a,ke.a,xe.i]);const t=(0,b.Pj)(),a=(0,le.J)(),{isDark:n}=(0,r.WQ)("themeContext"),l=(0,r.EW)(()=>t.getters.userInfo||t.state.userInfo),s=(0,o.KR)(!1),i=(0,o.KR)(null),d=(0,o.KR)({today_count:0,week_count:0,month_count:0,last_7_days:[]}),c=()=>{const e=i.value?.getEChartsInstance?.();e&&e.resize()},u=async()=>{await(0,r.dY)(),requestAnimationFrame(()=>{c(),requestAnimationFrame(c)})},m=(0,r.EW)(()=>{const e=n.value,t=e?"#e5e7eb":"#374151",a=e?"rgba(255, 255, 255, 0.05)":"rgba(0, 0, 0, 0.05)",r=e?"rgba(31, 41, 55, 0.9)":"rgba(255, 255, 255, 0.9)",o=e?"#374151":"#e5e7eb";return{backgroundColor:"transparent",grid:{left:48,right:20,bottom:28,top:40},tooltip:{trigger:"axis",backgroundColor:r,borderColor:o,textStyle:{color:t},axisPointer:{type:"line",lineStyle:{color:"#6366f1",type:"dashed"}}},xAxis:{type:"category",boundaryGap:!1,data:d.value.last_7_days.map(e=>e.date.slice(5)),axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:t,margin:15},splitLine:{show:!0,lineStyle:{color:a}}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:t},splitLine:{show:!0,lineStyle:{color:a,type:"dashed"}}},series:[{name:"学习次数",type:"line",smooth:!0,showSymbol:!1,symbolSize:8,itemStyle:{color:"#6366f1",borderWidth:2,borderColor:"#fff"},lineStyle:{width:3,color:new we.A(0,0,1,0,[{offset:0,color:"#6366f1"},{offset:1,color:"#818cf8"}])},areaStyle:{color:new we.A(0,0,0,1,[{offset:0,color:"rgba(99, 102, 241, 0.2)"},{offset:1,color:"rgba(99, 102, 241, 0)"}])},data:d.value.last_7_days.map(e=>e.count)}]}}),f=async()=>{s.value=!0;try{const e=await me.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/home/stats");e.data&&(d.value=e.data,await u())}catch(e){console.error("Failed to fetch stats:",e),a.error("获取学习数据失败,请稍后重试")}finally{s.value=!1}},p=()=>{u()},v=()=>{u()},y=()=>{u()};return(0,r.sV)(async()=>{window.addEventListener("pageshow",p),window.addEventListener("orientationchange",v),window.visualViewport?.addEventListener("resize",y),await u(),await f(),document.title="我的数据 - Word Helper"}),(0,r.hi)(()=>{window.removeEventListener("pageshow",p),window.removeEventListener("orientationchange",v),window.visualViewport?.removeEventListener("resize",y)}),(0,r.wB)(()=>d.value.last_7_days.length,()=>{u()}),(0,r.wB)(n,()=>{u()}),(e,t)=>{const a=(0,r.gN)("motion");return(0,r.uX)(),(0,r.CE)("div",_e,[(0,r.bo)(((0,r.uX)(),(0,r.CE)("div",Ae,[(0,r.Lk)("h1",Le," 欢迎回来,"+(0,g.v_)(l.value?.nickname||"学习者")+" 👋 ",1),t[0]||(t[0]=(0,r.Lk)("p",{class:"text-gray-600 dark:text-gray-400"}," 保持学习节奏,今天也要加油哦! ",-1))])),[[a]]),(0,r.Lk)("div",Re,[(0,r.bo)(((0,r.uX)(),(0,r.Wv)((0,o.R1)(ce.Ay),{initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:100}},class:"rounded-xl shadow-sm hover:shadow-md transition-shadow dark:bg-gray-800",bordered:!1},{default:(0,r.k6)(()=>[(0,r.Lk)("div",Ee,[(0,r.Lk)("div",null,[t[1]||(t[1]=(0,r.Lk)("p",{class:"text-sm font-medium text-gray-500 dark:text-gray-400"},"今日学习次数",-1)),(0,r.Lk)("h3",Ce,[(0,r.bF)((0,o.R1)(ue.A),{from:0,to:d.value.today_count},null,8,["to"])])]),(0,r.Lk)("div",Fe,[(0,r.bF)((0,o.R1)(h._),{size:"24",class:"text-blue-600 dark:text-blue-400"},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(se.A))]),_:1})])])]),_:1})),[[a]]),(0,r.bo)(((0,r.uX)(),(0,r.Wv)((0,o.R1)(ce.Ay),{initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:200}},class:"rounded-xl shadow-sm hover:shadow-md transition-shadow dark:bg-gray-800",bordered:!1},{default:(0,r.k6)(()=>[(0,r.Lk)("div",je,[(0,r.Lk)("div",null,[t[2]||(t[2]=(0,r.Lk)("p",{class:"text-sm font-medium text-gray-500 dark:text-gray-400"},"本周学习次数",-1)),(0,r.Lk)("h3",ze,[(0,r.bF)((0,o.R1)(ue.A),{from:0,to:d.value.week_count},null,8,["to"])])]),(0,r.Lk)("div",Ie,[(0,r.bF)((0,o.R1)(h._),{size:"24",class:"text-green-600 dark:text-green-400"},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(ie.A))]),_:1})])])]),_:1})),[[a]]),(0,r.bo)(((0,r.uX)(),(0,r.Wv)((0,o.R1)(ce.Ay),{initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:300}},class:"rounded-xl shadow-sm hover:shadow-md transition-shadow dark:bg-gray-800",bordered:!1},{default:(0,r.k6)(()=>[(0,r.Lk)("div",Pe,[(0,r.Lk)("div",null,[t[3]||(t[3]=(0,r.Lk)("p",{class:"text-sm font-medium text-gray-500 dark:text-gray-400"},"本月学习次数",-1)),(0,r.Lk)("h3",We,[(0,r.bF)((0,o.R1)(ue.A),{from:0,to:d.value.month_count},null,8,["to"])])]),(0,r.Lk)("div",qe,[(0,r.bF)((0,o.R1)(h._),{size:"24",class:"text-purple-600 dark:text-purple-400"},{default:(0,r.k6)(()=>[(0,r.bF)((0,o.R1)(de.A))]),_:1})])])]),_:1})),[[a]])]),(0,r.bo)(((0,r.uX)(),(0,r.Wv)((0,o.R1)(ce.Ay),{initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:400}},title:"近7天学习趋势",class:"rounded-xl shadow-sm dark:bg-gray-800",bordered:!1},{"header-extra":(0,r.k6)(()=>[...t[4]||(t[4]=[(0,r.Lk)("div",{class:"flex items-center gap-2"},[(0,r.Lk)("span",{class:"w-3 h-3 rounded-full bg-primary"}),(0,r.Lk)("span",{class:"text-xs text-gray-500"},"本数据实时更新")],-1)])]),default:(0,r.k6)(()=>[(0,r.Lk)("div",Se,[(0,r.bF)((0,o.R1)(fe.Ay),{ref_key:"chartRef",ref:i,class:"chart",option:m.value,autoresize:"",loading:s.value},null,8,["option","loading"])],512)]),_:1})),[[a]])])}}};const Oe=(0,ne.A)(Xe,[["__scopeId","data-v-8ed4da6a"]]);var Te=Oe,Ne=a(78704),Ke=a(55129);const Ve=[{path:"/login-required",name:"login-required",component:()=>a.e(117).then(a.bind(a,95117))},{path:"/",component:oe,children:[{path:"",name:"home",component:Te},{path:"about",name:"about",component:()=>a.e(594).then(a.bind(a,51144))},{path:"/word",name:"word-detail",component:()=>Promise.all([a.e(913),a.e(410),a.e(705),a.e(114)]).then(a.bind(a,55114))},{path:"/dict",name:"dict",component:()=>Promise.all([a.e(205),a.e(387)]).then(a.bind(a,71387))},{path:"/favorite",name:"favorite",component:()=>a.e(431).then(a.bind(a,96431))},{path:"/search",name:"search",component:()=>Promise.all([a.e(913),a.e(67)]).then(a.bind(a,46067))},{path:"/check",name:"check",component:()=>Promise.all([a.e(913),a.e(150),a.e(62),a.e(493),a.e(410),a.e(205),a.e(938)]).then(a.bind(a,67686))},{path:"/guess",name:"guess",component:()=>Promise.all([a.e(913),a.e(150),a.e(62),a.e(493),a.e(765)]).then(a.bind(a,75765))},{path:"/note",name:"note",component:()=>Promise.all([a.e(913),a.e(150),a.e(774)]).then(a.bind(a,58774))},{path:"/learn",name:"learn",component:()=>a.e(416).then(a.bind(a,27416))},{path:"/list_detail",name:"list_detail",component:()=>a.e(536).then(a.bind(a,19536))},{path:"/lists",name:"lists",component:()=>Promise.all([a.e(913),a.e(150),a.e(62),a.e(410),a.e(211)]).then(a.bind(a,92211))},{path:"/passage",name:"passage",component:()=>Promise.all([a.e(913),a.e(150),a.e(62),a.e(493),a.e(705),a.e(986)]).then(a.bind(a,16638))}]}],Ue=(0,p.aE)({history:(0,p.LA)("/"),routes:Ve});Ue.beforeEach(async(e,t,a)=>{if("login-required"===e.name)return void a();const n=Ne.A.get("cb_token");if(n)if(Ke.A.getters.token||Ke.A.commit("setToken",n),Ke.A.getters.userInfo)a();else try{await Ke.A.dispatch("fetchUserInfo"),a()}catch(r){Ne.A.remove("cb_token"),a({name:"login-required"})}else a({name:"login-required"})});var Be=Ue,He=a(12424);(0,n.Ef)(f).use(Ke.A).use(Be).use(He.uy).mount("#app")}},t={};function a(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,a),o.exports}a.m=e,function(){var e=[];a.O=function(t,n,r,o){if(!n){var l=1/0;for(c=0;c=o)&&Object.keys(a.O).every(function(e){return a.O[e](n[i])})?n.splice(i--,1):(s=!1,o0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[n,r,o]}}(),function(){a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,{a:t}),t}}(),function(){a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce(function(t,n){return a.f[n](e,t),t},[]))}}(),function(){a.u=function(e){return"js/"+(594===e?"about":e)+"."+{62:"97b91111",67:"c5181ab8",114:"1fcce5ed",117:"f0b3f650",150:"49b65dd0",205:"5e1a6eef",211:"c39f2105",387:"2c1359c2",410:"5d08c1a8",416:"9258341d",431:"ce56f232",493:"00994683",536:"2cafa1ee",594:"e8da17fa",705:"83efab9f",765:"fbd42649",774:"80696cdb",913:"57fbc7fd",938:"77996131",986:"ef9ba720"}[e]+".js"}}(),function(){a.miniCssF=function(e){return"css/"+(594===e?"about":e)+"."+{67:"91d1e5b7",114:"3182d1e0",211:"d6859932",387:"c1c3debd",416:"94c42108",431:"86dfd5fb",536:"c9740878",594:"29136f20",765:"3e3d4a68",774:"1b803950",938:"ea8ed904",986:"bb14e4c4"}[e]+".css"}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="wordhelper:";a.l=function(n,r,o,l){if(e[n])e[n].push(r);else{var s,i;if(void 0!==o)for(var d=document.getElementsByTagName("script"),c=0;c{a.value=e,t.value=e?l.a:null,e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",e?"dark":"light")},m=()=>{u(!a.value)};return(0,n.sV)(()=>{const e=localStorage.getItem("theme");if(e)u("dark"===e);else{const e=window.matchMedia("(prefers-color-scheme: dark)").matches;u(e)}}),(0,n.Gt)("themeContext",{isDark:a,toggleTheme:m}),(e,a)=>{const l=(0,n.g2)("router-view");return(0,n.uX)(),(0,n.Wv)((0,o.R1)(s.A),{theme:t.value,"theme-overrides":r},{default:(0,n.k6)(()=>[(0,n.bF)((0,o.R1)(i.A)),(0,n.bF)((0,o.R1)(d.A),null,{default:(0,n.k6)(()=>[(0,n.bF)((0,o.R1)(c.K),null,{default:(0,n.k6)(()=>[(0,n.bF)(l)]),_:1})]),_:1})]),_:1},8,["theme"])}}};const m=u;var f=m,p=a(98728),b=(a(44114),a(24232)),g=a(60782),h=a(59856),k=a(33889),y=a(13230),v=a(99310),x=a(58421),w=a(86727),_=a(30284),A=a(36921),L=a(28451),R=a(58096),C=a(56714),E=a(93812),j=a(35161),F=a(18169),P=a(95802),W=a(57273),z=a(26961),I=a(29554),S=a(41829),X=a(22695),q=a(82089),O=a(94578),T=a(51415),N=a(55704);const K={class:"h-16 flex items-center justify-center border-b border-gray-200 dark:border-gray-800"},U={key:0,class:"flex items-center gap-3 px-4 truncate"},V={key:1,class:"flex justify-center w-full"},H={class:"flex items-center gap-4"},M={class:"flex items-center gap-4"},B={class:"flex items-center gap-3 pl-4 border-l border-gray-200 dark:border-gray-700"},D={class:"text-right hidden sm:block"},G={class:"text-sm font-medium text-gray-900 dark:text-gray-100"},Q={key:0,class:"inline-flex items-center gap-1 px-2 py-0.5 mt-0.5 rounded-full text-xs font-medium bg-amber-50 text-amber-600 border border-amber-200 dark:bg-amber-900/20 dark:text-amber-400 dark:border-amber-800/50"},$={key:1,class:"inline-flex items-center px-2 py-0.5 mt-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-500 border border-gray-200 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700"},J={class:"p-4 min-w-[200px] bg-white dark:bg-gray-900 rounded-lg"},Y={class:"flex flex-col items-center"},Z={class:"text-base font-medium text-gray-900 dark:text-gray-100 mb-2"},ee={key:0,class:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-amber-50 text-amber-600 border border-amber-200 dark:bg-amber-900/20 dark:text-amber-400 dark:border-amber-800/50"},te={key:1,class:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-500 border border-gray-200 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700"};var ae={__name:"MainLayout",setup(e){const t=(0,g.Pj)(),a=(0,p.rd)(),l=(0,p.lq)(),{isDark:s,toggleTheme:i}=(0,n.WQ)("themeContext"),d=(0,o.KR)(!1),c=(0,o.KR)(!1),u=(0,o.KR)(!1),m=()=>{u.value=window.innerWidth<768};(0,n.sV)(()=>{m(),window.addEventListener("resize",m)}),(0,n.hi)(()=>{window.removeEventListener("resize",m)});const f=(0,n.EW)(()=>t.getters.userInfo);function ae(e){return()=>(0,n.h)(h._,null,{default:()=>(0,n.h)(e)})}const re=[{label:"我的数据",key:"home",icon:ae(C.A)},{label:"词书",key:"dict",icon:ae(E.A)},{label:"生词本",key:"favorite",icon:ae(j.A)},{label:"单词搜索",key:"search",icon:ae(F.A)},{label:"我的笔记",key:"note",icon:ae(P.A)},{label:"我的词单",key:"lists",icon:ae(W.A)},{label:"学习记录",key:"learn",icon:ae(z.A)},{label:"智能抽查",key:"check",icon:ae(I.A)},{label:"猜单词",key:"guess",icon:ae(S.A)},{label:"AI 助记短文",key:"passage",icon:ae(X.A)},{label:"关于",key:"about",icon:ae(q.A)}],ne=(0,n.EW)(()=>l.name),oe=e=>{a.push({name:e}),c.value=!1};return(e,t)=>{const a=(0,n.g2)("router-view");return(0,n.uX)(),(0,n.Wv)((0,o.R1)(k.Ay),{class:"h-screen","has-sider":""},{default:(0,n.k6)(()=>[(0,n.bF)((0,o.R1)(y.A),{show:c.value,"onUpdate:show":t[0]||(t[0]=e=>c.value=e),placement:"left",width:240,class:"md:hidden"},{default:(0,n.k6)(()=>[(0,n.bF)((0,o.R1)(v.A),{"body-content-style":"padding: 0;"},{header:(0,n.k6)(()=>[...t[5]||(t[5]=[(0,n.Lk)("div",{class:"flex items-center gap-2"},[(0,n.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/wh_logo.png",class:"w-8 h-8",alt:"Logo"}),(0,n.Lk)("span",{class:"text-lg font-bold text-gray-900 dark:text-white"},"Word Helper")],-1)])]),default:(0,n.k6)(()=>[(0,n.bF)((0,o.R1)(x.A),{options:re,value:ne.value,"onUpdate:value":oe,class:"custom-menu"},null,8,["value"])]),_:1})]),_:1},8,["show"]),u.value?(0,n.Q3)("",!0):((0,n.uX)(),(0,n.Wv)((0,o.R1)(w.A),{key:0,bordered:"","collapse-mode":"width","collapsed-width":64,width:240,collapsed:d.value,"show-trigger":"",onCollapse:t[1]||(t[1]=e=>d.value=!0),onExpand:t[2]||(t[2]=e=>d.value=!1),class:"hidden md:block bg-white dark:bg-gray-900 h-screen shadow-sm z-10"},{default:(0,n.k6)(()=>[(0,n.Lk)("div",K,[d.value?((0,n.uX)(),(0,n.CE)("div",V,[...t[7]||(t[7]=[(0,n.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/wh_logo.png",class:"w-8 h-8",alt:"Logo"},null,-1)])])):((0,n.uX)(),(0,n.CE)("div",U,[...t[6]||(t[6]=[(0,n.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/wh_logo.png",class:"w-8 h-8",alt:"Logo"},null,-1),(0,n.Lk)("h1",{class:"text-xl font-bold text-primary"},"Word Helper",-1)])]))]),(0,n.bF)((0,o.R1)(x.A),{class:"mt-2",collapsed:d.value,"collapsed-width":64,"collapsed-icon-size":22,options:re,value:ne.value,"onUpdate:value":oe},null,8,["collapsed","value"])]),_:1},8,["collapsed"])),(0,n.bF)((0,o.R1)(k.Ay),{class:"h-screen bg-gray-50 dark:bg-gray-950","native-scrollbar":!1},{default:(0,n.k6)(()=>[(0,n.bF)((0,o.R1)(_.A),{bordered:"",class:"h-16 px-4 flex items-center justify-between bg-white dark:bg-gray-900 border-b border-gray-200 dark:border-gray-800 shadow-sm z-10 sticky top-0"},{default:(0,n.k6)(()=>[(0,n.Lk)("div",H,[(0,n.Lk)("button",{onClick:t[3]||(t[3]=e=>c.value=!0),class:"md:hidden p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"},[(0,n.bF)((0,o.R1)(O.A),{class:"w-6 h-6 text-gray-600 dark:text-gray-300"})]),t[8]||(t[8]=(0,n.Lk)("div",{class:"flex items-center gap-2 md:hidden"},[(0,n.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/wh_logo.png",class:"w-8 h-8",alt:"Logo"}),(0,n.Lk)("span",{class:"text-lg font-bold text-gray-800 dark:text-white"},"Word Helper")],-1))]),(0,n.Lk)("div",M,[(0,n.Lk)("button",{onClick:t[4]||(t[4]=(...e)=>(0,o.R1)(i)&&(0,o.R1)(i)(...e)),class:"p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"},[(0,o.R1)(s)?((0,n.uX)(),(0,n.Wv)((0,o.R1)(T.A),{key:0,class:"w-5 h-5 text-yellow-500"})):((0,n.uX)(),(0,n.Wv)((0,o.R1)(N.A),{key:1,class:"w-5 h-5 text-gray-600"}))]),(0,n.Lk)("div",B,[(0,n.Lk)("div",D,[(0,n.Lk)("div",G,(0,b.v_)(f.value?.nickname||"Guest"),1),f.value?.is_vip?((0,n.uX)(),(0,n.CE)("div",Q,[...t[9]||(t[9]=[(0,n.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/vip_g3.svg",class:"w-3 h-3",alt:"VIP"},null,-1),(0,n.Lk)("span",null,"VIP用户",-1)])])):((0,n.uX)(),(0,n.CE)("div",$," 普通用户 "))]),u.value?((0,n.uX)(),(0,n.Wv)((0,o.R1)(A.Ay),{key:0,trigger:"click",placement:"bottom-end",style:{padding:"0"}},{trigger:(0,n.k6)(()=>[(0,n.bF)((0,o.R1)(L.A),{round:"",size:"medium",src:f.value?.avatar_path,"fallback-src":"https://download.xn--xhq44jb2fzpc.com/avatar/default.png",class:"cursor-pointer"},null,8,["src"])]),default:(0,n.k6)(()=>[(0,n.Lk)("div",J,[(0,n.Lk)("div",Y,[(0,n.Lk)("div",Z,(0,b.v_)(f.value?.nickname||"Guest"),1),f.value?.is_vip?((0,n.uX)(),(0,n.CE)("div",ee,[...t[10]||(t[10]=[(0,n.Lk)("img",{src:"https://download.xn--xhq44jb2fzpc.com/images/vip_g3.svg",class:"w-3 h-3",alt:"VIP"},null,-1),(0,n.Lk)("span",null,"VIP用户",-1)])])):((0,n.uX)(),(0,n.CE)("div",te," 普通用户 "))])])]),_:1})):((0,n.uX)(),(0,n.Wv)((0,o.R1)(L.A),{key:1,round:"",size:"medium",src:f.value?.avatar_path,"fallback-src":"https://download.xn--xhq44jb2fzpc.com/avatar/default.png"},null,8,["src"]))])])]),_:1}),(0,n.bF)((0,o.R1)(R.A),{class:"p-4 md:p-6 bg-gray-50 dark:bg-gray-950","content-style":"min-height: calc(100vh - 64px)"},{default:(0,n.k6)(()=>[(0,n.bF)(a,null,{default:(0,n.k6)(({Component:e})=>[(0,n.bF)(r.eB,{"enter-active-class":"animate__animated animate__fadeIn animate__faster","leave-active-class":"animate__animated animate__fadeOut animate__faster",mode:"out-in"},{default:(0,n.k6)(()=>[((0,n.uX)(),(0,n.Wv)((0,n.$y)(e)))]),_:2},1024)]),_:1})]),_:1})]),_:1})]),_:1})}}},re=a(71241);const ne=(0,re.A)(ae,[["__scopeId","data-v-1f30e042"]]);var oe=ne,le=(a(18111),a(61701),a(97387)),se=a(91332),ie=a(2231),de=a(49912),ce=a(42517),ue=a(37006),me=a(35720),fe=a(60501),pe=a(2043),be=a(75095),ge=a(32685),he=a(53708),ke=a(89536),ye=a(5143),ve=a(40623),xe=a(92080),we=a(56677);const _e={class:"home-view max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},Ae={initial:{opacity:0,y:20},enter:{opacity:1,y:0},class:"mb-8"},Le={class:"text-3xl font-bold text-gray-900 dark:text-white mb-2"},Re={class:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8"},Ce={class:"flex items-center justify-between"},Ee={class:"text-3xl font-bold text-primary mt-1"},je={class:"p-3 bg-blue-50 dark:bg-blue-900/20 rounded-lg"},Fe={class:"flex items-center justify-between"},Pe={class:"text-3xl font-bold text-green-600 dark:text-green-400 mt-1"},We={class:"p-3 bg-green-50 dark:bg-green-900/20 rounded-lg"},ze={class:"flex items-center justify-between"},Ie={class:"text-3xl font-bold text-purple-600 dark:text-purple-400 mt-1"},Se={class:"p-3 bg-purple-50 dark:bg-purple-900/20 rounded-lg"},Xe={class:"h-[400px] w-full relative",ref:"chartContainer"};var qe={__name:"HomeView",setup(e){(0,pe.Y)([be.a,ge.a,he.a,ke.a,ye.a,ve.a,xe.i]);const t=(0,g.Pj)(),a=(0,le.J)(),{isDark:r}=(0,n.WQ)("themeContext"),l=(0,n.EW)(()=>t.getters.userInfo||t.state.userInfo),s=(0,o.KR)(!1),i=(0,o.KR)({today_count:0,week_count:0,month_count:0,last_7_days:[]}),d=(0,n.EW)(()=>{const e=r.value,t=e?"#e5e7eb":"#374151",a=e?"rgba(255, 255, 255, 0.05)":"rgba(0, 0, 0, 0.05)",n=e?"rgba(31, 41, 55, 0.9)":"rgba(255, 255, 255, 0.9)",o=e?"#374151":"#e5e7eb";return{backgroundColor:"transparent",grid:{left:"3%",right:"4%",bottom:"3%",top:"10%",containLabel:!0},tooltip:{trigger:"axis",backgroundColor:n,borderColor:o,textStyle:{color:t},axisPointer:{type:"line",lineStyle:{color:"#6366f1",type:"dashed"}}},xAxis:{type:"category",boundaryGap:!1,data:i.value.last_7_days.map(e=>e.date.slice(5)),axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:t,margin:15},splitLine:{show:!0,lineStyle:{color:a}}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:t},splitLine:{show:!0,lineStyle:{color:a,type:"dashed"}}},series:[{name:"学习次数",type:"line",smooth:!0,showSymbol:!1,symbolSize:8,itemStyle:{color:"#6366f1",borderWidth:2,borderColor:"#fff"},lineStyle:{width:3,color:new we.A(0,0,1,0,[{offset:0,color:"#6366f1"},{offset:1,color:"#818cf8"}])},areaStyle:{color:new we.A(0,0,0,1,[{offset:0,color:"rgba(99, 102, 241, 0.2)"},{offset:1,color:"rgba(99, 102, 241, 0)"}])},data:i.value.last_7_days.map(e=>e.count)}]}}),c=async()=>{s.value=!0;try{const e=await me.A.get("https://newfront.xn--xhq44jb2fzpc.com/word_helper/home/stats");e.data&&(i.value=e.data)}catch(e){console.error("Failed to fetch stats:",e),a.error("获取学习数据失败,请稍后重试")}finally{s.value=!1}};return(0,n.sV)(()=>{c(),document.title="我的数据 - Word Helper"}),(e,t)=>{const a=(0,n.gN)("motion");return(0,n.uX)(),(0,n.CE)("div",_e,[(0,n.bo)(((0,n.uX)(),(0,n.CE)("div",Ae,[(0,n.Lk)("h1",Le," 欢迎回来,"+(0,b.v_)(l.value?.nickname||"学习者")+" 👋 ",1),t[0]||(t[0]=(0,n.Lk)("p",{class:"text-gray-600 dark:text-gray-400"}," 保持学习节奏,今天也要加油哦! ",-1))])),[[a]]),(0,n.Lk)("div",Re,[(0,n.bo)(((0,n.uX)(),(0,n.Wv)((0,o.R1)(ce.Ay),{initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:100}},class:"rounded-xl shadow-sm hover:shadow-md transition-shadow dark:bg-gray-800",bordered:!1},{default:(0,n.k6)(()=>[(0,n.Lk)("div",Ce,[(0,n.Lk)("div",null,[t[1]||(t[1]=(0,n.Lk)("p",{class:"text-sm font-medium text-gray-500 dark:text-gray-400"},"今日学习次数",-1)),(0,n.Lk)("h3",Ee,[(0,n.bF)((0,o.R1)(ue.A),{from:0,to:i.value.today_count},null,8,["to"])])]),(0,n.Lk)("div",je,[(0,n.bF)((0,o.R1)(h._),{size:"24",class:"text-blue-600 dark:text-blue-400"},{default:(0,n.k6)(()=>[(0,n.bF)((0,o.R1)(se.A))]),_:1})])])]),_:1})),[[a]]),(0,n.bo)(((0,n.uX)(),(0,n.Wv)((0,o.R1)(ce.Ay),{initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:200}},class:"rounded-xl shadow-sm hover:shadow-md transition-shadow dark:bg-gray-800",bordered:!1},{default:(0,n.k6)(()=>[(0,n.Lk)("div",Fe,[(0,n.Lk)("div",null,[t[2]||(t[2]=(0,n.Lk)("p",{class:"text-sm font-medium text-gray-500 dark:text-gray-400"},"本周学习次数",-1)),(0,n.Lk)("h3",Pe,[(0,n.bF)((0,o.R1)(ue.A),{from:0,to:i.value.week_count},null,8,["to"])])]),(0,n.Lk)("div",We,[(0,n.bF)((0,o.R1)(h._),{size:"24",class:"text-green-600 dark:text-green-400"},{default:(0,n.k6)(()=>[(0,n.bF)((0,o.R1)(ie.A))]),_:1})])])]),_:1})),[[a]]),(0,n.bo)(((0,n.uX)(),(0,n.Wv)((0,o.R1)(ce.Ay),{initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:300}},class:"rounded-xl shadow-sm hover:shadow-md transition-shadow dark:bg-gray-800",bordered:!1},{default:(0,n.k6)(()=>[(0,n.Lk)("div",ze,[(0,n.Lk)("div",null,[t[3]||(t[3]=(0,n.Lk)("p",{class:"text-sm font-medium text-gray-500 dark:text-gray-400"},"本月学习次数",-1)),(0,n.Lk)("h3",Ie,[(0,n.bF)((0,o.R1)(ue.A),{from:0,to:i.value.month_count},null,8,["to"])])]),(0,n.Lk)("div",Se,[(0,n.bF)((0,o.R1)(h._),{size:"24",class:"text-purple-600 dark:text-purple-400"},{default:(0,n.k6)(()=>[(0,n.bF)((0,o.R1)(de.A))]),_:1})])])]),_:1})),[[a]])]),(0,n.bo)(((0,n.uX)(),(0,n.Wv)((0,o.R1)(ce.Ay),{initial:{opacity:0,y:20},enter:{opacity:1,y:0,transition:{delay:400}},title:"近7天学习趋势",class:"rounded-xl shadow-sm dark:bg-gray-800",bordered:!1},{"header-extra":(0,n.k6)(()=>[...t[4]||(t[4]=[(0,n.Lk)("div",{class:"flex items-center gap-2"},[(0,n.Lk)("span",{class:"w-3 h-3 rounded-full bg-primary"}),(0,n.Lk)("span",{class:"text-xs text-gray-500"},"本数据实时更新")],-1)])]),default:(0,n.k6)(()=>[(0,n.Lk)("div",Xe,[(0,n.bF)((0,o.R1)(fe.Ay),{class:"chart",option:d.value,autoresize:"",loading:s.value},null,8,["option","loading"])],512)]),_:1})),[[a]])])}}};const Oe=(0,re.A)(qe,[["__scopeId","data-v-6c4b0b96"]]);var Te=Oe,Ne=a(78704),Ke=a(55129);const Ue=[{path:"/login-required",name:"login-required",component:()=>a.e(117).then(a.bind(a,95117))},{path:"/",component:oe,children:[{path:"",name:"home",component:Te},{path:"about",name:"about",component:()=>a.e(594).then(a.bind(a,51144))},{path:"/word",name:"word-detail",component:()=>Promise.all([a.e(913),a.e(410),a.e(705),a.e(494)]).then(a.bind(a,4494))},{path:"/dict",name:"dict",component:()=>Promise.all([a.e(205),a.e(387)]).then(a.bind(a,71387))},{path:"/favorite",name:"favorite",component:()=>a.e(431).then(a.bind(a,96431))},{path:"/search",name:"search",component:()=>Promise.all([a.e(913),a.e(67)]).then(a.bind(a,46067))},{path:"/check",name:"check",component:()=>Promise.all([a.e(913),a.e(150),a.e(62),a.e(493),a.e(410),a.e(205),a.e(938)]).then(a.bind(a,67686))},{path:"/guess",name:"guess",component:()=>Promise.all([a.e(913),a.e(150),a.e(62),a.e(493),a.e(765)]).then(a.bind(a,75765))},{path:"/note",name:"note",component:()=>Promise.all([a.e(913),a.e(150),a.e(774)]).then(a.bind(a,58774))},{path:"/learn",name:"learn",component:()=>a.e(416).then(a.bind(a,27416))},{path:"/list_detail",name:"list_detail",component:()=>a.e(536).then(a.bind(a,19536))},{path:"/lists",name:"lists",component:()=>Promise.all([a.e(913),a.e(150),a.e(62),a.e(410),a.e(211)]).then(a.bind(a,92211))},{path:"/passage",name:"passage",component:()=>Promise.all([a.e(913),a.e(150),a.e(62),a.e(493),a.e(705),a.e(986)]).then(a.bind(a,16638))}]}],Ve=(0,p.aE)({history:(0,p.LA)("/"),routes:Ue});Ve.beforeEach(async(e,t,a)=>{if("login-required"===e.name)return void a();const r=Ne.A.get("cb_token");if(r)if(Ke.A.getters.token||Ke.A.commit("setToken",r),Ke.A.getters.userInfo)a();else try{await Ke.A.dispatch("fetchUserInfo"),a()}catch(n){Ne.A.remove("cb_token"),a({name:"login-required"})}else a({name:"login-required"})});var He=Ve,Me=a(12424);(0,r.Ef)(f).use(Ke.A).use(He).use(Me.uy).mount("#app")},35720:function(e,t,a){var r=a(94373),n=a(55129);const o=r.A.create({timeout:5e3});o.interceptors.request.use(e=>{const t=n.A.getters.token;return t&&(e.headers["Authorization"]=t),e.url&&e.url.includes("/ai_passage/generate")&&(e.timeout=24e4),e},e=>(console.log(e),Promise.reject(e))),t.A=o},55129:function(e,t,a){var r=a(60782),n=a(35720);t.A=(0,r.y$)({state:{token:"",userInfo:null},getters:{token:e=>e.token,userInfo:e=>e.userInfo},mutations:{setToken(e,t){e.token=t},setUserInfo(e,t){e.userInfo=t}},actions:{fetchUserInfo({commit:e}){return new Promise((t,a)=>{n.A.get("https://newfront.xn--xhq44jb2fzpc.com/user/info").then(r=>{const n=r.data;n?(e("setUserInfo",n),t(n)):a(new Error("No user info"))}).catch(e=>{a(e)})})}},modules:{}})}},t={};function a(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,a),o.exports}a.m=e,function(){var e=[];a.O=function(t,r,n,o){if(!r){var l=1/0;for(c=0;c=o)&&Object.keys(a.O).every(function(e){return a.O[e](r[i])})?r.splice(i--,1):(s=!1,o0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[r,n,o]}}(),function(){a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,{a:t}),t}}(),function(){a.d=function(e,t){for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce(function(t,r){return a.f[r](e,t),t},[]))}}(),function(){a.u=function(e){return"js/"+(594===e?"about":e)+"."+{62:"5c839540",67:"2e38ec60",117:"f0b3f650",150:"134ee868",205:"b608513d",211:"b427f4b2",387:"dd6c4a86",410:"55f960e5",416:"c2b7170c",431:"6f57c0d5",493:"5278def3",494:"ac68ad86",536:"4906264a",594:"204a629c",705:"23be038b",765:"64a424e3",774:"b8ef2e65",913:"0251f0e5",938:"c5d8dd36",986:"23f62e7e"}[e]+".js"}}(),function(){a.miniCssF=function(e){return"css/"+(594===e?"about":e)+"."+{67:"91d1e5b7",211:"d6859932",387:"c1c3debd",416:"94c42108",431:"86dfd5fb",494:"9bc92313",536:"c9740878",594:"29136f20",765:"3e3d4a68",774:"1b803950",938:"ea8ed904",986:"bb14e4c4"}[e]+".css"}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="wordhelper:";a.l=function(r,n,o,l){if(e[r])e[r].push(n);else{var s,i;if(void 0!==o)for(var d=document.getElementsByTagName("script"),c=0;clocation.protocol+"//"+location.host;function Ae(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let t=o.includes(e.slice(i))?e.slice(i).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),B(n,"")}return B(n,e)+r+o}function Te(e,t,n,r){let o=[],i=[],s=null;const l=({state:i})=>{const a=Ae(e,location),l=n.value,c=t.value;let u=0;if(i){if(n.value=a,t.value=i,s&&s===l)return void(s=null);u=c?i.position-c.position:0}else r(a);o.forEach(e=>{e(n.value,l,{delta:u,type:V.pop,direction:u?u>0?G.forward:G.back:G.unknown})})};function c(){s=n.value}function u(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return i.push(t),t}function d(){if("hidden"===document.visibilityState){const{history:e}=window;if(!e.state)return;e.replaceState(a({},e.state,{scroll:Y()}),"")}}function h(){for(const e of i)e();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:c,listen:u,destroy:h}}function Me(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Y():null}}function ke(e){const{history:t,location:n}=window,r={value:Ae(e,n)},o={value:t.state};function i(r,i,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+r:Se()+e+r;try{t[a?"replaceState":"pushState"](i,"",l),o.value=i}catch(c){console.error(c),n[a?"replace":"assign"](l)}}function s(e,n){i(e,a({},t.state,Me(o.value.back,e,o.value.forward,!0),n,{position:o.value.position}),!0),r.value=e}function l(e,n){const s=a({},o.value,t.state,{forward:e,scroll:Y()});i(s.current,s,!0),i(e,a({},Me(r.value,e,null),{position:s.position+1},n),!1),r.value=e}return o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:l,replace:s}}function Ie(e){e=U(e);const t=ke(e),n=Te(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}const o=a({location:"",base:e,go:r,createHref:K.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let Ee=function(e){return e[e["Static"]=0]="Static",e[e["Param"]=1]="Param",e[e["Group"]=2]="Group",e}({});var Oe=function(e){return e[e["Static"]=0]="Static",e[e["Param"]=1]="Param",e[e["ParamRegExp"]=2]="ParamRegExp",e[e["ParamRegExpEnd"]=3]="ParamRegExpEnd",e[e["EscapeNext"]=4]="EscapeNext",e}(Oe||{});const Pe={type:Ee.Static,value:""},De=/[a-zA-Z0-9_]/;function Re(e){if(!e)return[[]];if("/"===e)return[[Pe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=Oe.Static,r=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let s,l=0,c="",u="";function d(){c&&(n===Oe.Static?i.push({type:Ee.Static,value:c}):n===Oe.Param||n===Oe.ParamRegExp||n===Oe.ParamRegExpEnd?(i.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Ee.Param,value:c,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),c="")}function h(){c+=s}while(lt.length?1===t.length&&t[0]===Le.Static+Le.Segment?1:-1:0}function He(e,t){let n=0;const r=e.score,o=t.score;while(n0&&t[t.length-1]<0}const je={strict:!1,end:!0,sensitive:!1};function Ve(e,t,n){const r=Ne(Re(e.path),n);const o=a(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf===!t.record.aliasOf&&t.children.push(o),o}function Ge(e,t){const n=[],r=new Map;function o(e){return r.get(e)}function i(e,n,r){const o=!r,c=Xe(e);c.aliasOf=r&&r.record;const h=u(t,e),f=[c];if("alias"in e){const t="string"===typeof e.alias?[e.alias]:e.alias;for(const e of t)f.push(Xe(a({},c,{components:r?r.record.components:c.components,path:e,aliasOf:r?r.record:c})))}let p,v;for(const t of f){const{path:a}=t;if(n&&"/"!==a[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(a&&r+a)}if(p=Ve(t,n,h),r?r.alias.push(p):(v=v||p,v!==p&&v.alias.push(p),o&&e.name&&!qe(p)&&s(e.name)),Je(p)&&d(p),c.children){const e=c.children;for(let t=0;t{s(v)}:l}function s(e){if(re(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(s),t.alias.forEach(s))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(s),e.alias.forEach(s))}}function c(){return n}function d(e){const t=Qe(e,n);n.splice(t,0,e),e.record.name&&!qe(e)&&r.set(e.record.name,e)}function h(e,t){let o,i,s,l={};if("name"in e&&e.name){if(o=r.get(e.name),!o)throw ae(oe.MATCHER_NOT_FOUND,{location:e});0,s=o.record.name,l=a(Ue(t.params,o.keys.filter(e=>!e.optional).concat(o.parent?o.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Ue(e.params,o.keys.map(e=>e.name))),i=o.stringify(l)}else if(null!=e.path)i=e.path,o=n.find(e=>e.re.test(i)),o&&(l=o.parse(i),s=o.record.name);else{if(o=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!o)throw ae(oe.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=o.record.name,l=a({},t.params,e.params),i=o.stringify(l)}const c=[];let u=o;while(u)c.unshift(u.record),u=u.parent;return{name:s,path:i,params:l,matched:c,meta:Ye(c)}}function f(){n.length=0,r.clear()}return t=u(je,t),e.forEach(e=>i(e)),{addRoute:i,resolve:h,removeRoute:s,clearRoutes:f,getRoutes:c,getRecordMatcher:o}}function Ue(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Xe(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ke(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ke(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"===typeof n?n[r]:n;return t}function qe(e){while(e){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ye(e){return e.reduce((e,t)=>a(e,t.meta),{})}function Qe(e,t){let n=0,r=t.length;while(n!==r){const o=n+r>>1;He(e,t[o])<0?r=o:n=o+1}const o=Ze(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function Ze(e){let t=e;while(t=t.parent)if(Je(t)&&0===He(e,t))return t}function Je({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function et(e){const t=(0,Ce.WQ)(ve),n=(0,Ce.WQ)(ge);const r=(0,Ce.EW)(()=>{const n=(0,we.R1)(e.to);return t.resolve(n)}),o=(0,Ce.EW)(()=>{const{matched:e}=r.value,{length:t}=e,o=e[t-1],i=n.matched;if(!o||!i.length)return-1;const a=i.findIndex(F.bind(null,o));if(a>-1)return a;const s=at(e[t-2]);return t>1&&at(o)===s&&i[i.length-1].path!==s?i.findIndex(F.bind(null,e[t-2])):a}),i=(0,Ce.EW)(()=>o.value>-1&&it(n.params,r.value.params)),a=(0,Ce.EW)(()=>o.value>-1&&o.value===n.matched.length-1&&N(n.params,r.value.params));function s(n={}){if(ot(n)){const n=t[(0,we.R1)(e.replace)?"replace":"push"]((0,we.R1)(e.to)).catch(l);return e.viewTransition&&"undefined"!==typeof document&&"startViewTransition"in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:(0,Ce.EW)(()=>r.value.href),isActive:i,isExactActive:a,navigate:s}}function tt(e){return 1===e.length?e[0]:e}const nt=(0,Ce.pM)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:et,setup(e,{slots:t}){const n=(0,we.Kh)(et(e)),{options:r}=(0,Ce.WQ)(ve),o=(0,Ce.EW)(()=>({[st(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[st(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&tt(t.default(n));return e.custom?r:(0,Ce.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),rt=nt;function ot(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function it(e,t){for(const n in t){const r=t[n],o=e[n];if("string"===typeof r){if(r!==o)return!1}else if(!c(o)||o.length!==r.length||r.some((e,t)=>e.valueOf()!==o[t].valueOf()))return!1}return!0}function at(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const st=(e,t,n)=>null!=e?e:null!=t?t:n,lt=(0,Ce.pM)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=(0,Ce.WQ)(me),o=(0,Ce.EW)(()=>e.route||r.value),i=(0,Ce.WQ)(pe,0),s=(0,Ce.EW)(()=>{let e=(0,we.R1)(i);const{matched:t}=o.value;let n;while((n=t[e])&&!n.components)e++;return e}),l=(0,Ce.EW)(()=>o.value.matched[s.value]);(0,Ce.Gt)(pe,(0,Ce.EW)(()=>s.value+1)),(0,Ce.Gt)(fe,l),(0,Ce.Gt)(me,o);const c=(0,we.KR)();return(0,Ce.wB)(()=>[c.value,l.value,e.name],([e,t,n],[r,o,i])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&F(t,o)&&r||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const r=o.value,i=e.name,s=l.value,u=s&&s.components[i];if(!u)return ct(n.default,{Component:u,route:r});const d=s.props[i],h=d?!0===d?r.params:"function"===typeof d?d(r):d:null,f=e=>{e.component.isUnmounted&&(s.instances[i]=null)},p=(0,Ce.h)(u,a({},h,t,{onVnodeUnmounted:f,ref:c}));return ct(n.default,{Component:p,route:r})||p}}});function ct(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const ut=lt;function dt(e){const t=Ge(e.routes,e),n=e.parseQuery||ue,o=e.stringifyQuery||de,i=e.history;const u=ye(),d=ye(),h=ye(),f=(0,we.IJ)(j);let p=j;r&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=s.bind(null,e=>""+e),g=s.bind(null,E),m=s.bind(null,O);function y(e,n){let r,o;return re(e)?(r=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,r)}function b(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function x(){return t.getRoutes().map(e=>e.record)}function _(e){return!!t.getRecordMatcher(e)}function C(e,r){if(r=a({},r||f.value),"string"===typeof e){const o=R(n,e,r.path),s=t.resolve({path:o.path},r),l=i.createHref(o.fullPath);return a(o,s,{params:m(s.params),hash:O(o.hash),redirectedFrom:void 0,href:l})}let s;if(null!=e.path)s=a({},e,{path:R(n,e.path,r.path).path});else{const t=a({},e.params);for(const e in t)null==t[e]&&delete t[e];s=a({},e,{params:g(t)}),r.params=g(r.params)}const l=t.resolve(s,r),c=e.hash||"";l.params=v(m(l.params));const u=z(o,a({},e,{hash:T(c),path:l.path})),d=i.createHref(u);return a({fullPath:u,hash:c,query:o===de?he(e.query):e.query||{}},l,{redirectedFrom:void 0,href:d})}function w(e){return"string"===typeof e?R(n,e,f.value.path):a({},e)}function S(e,t){if(p!==e)return ae(oe.NAVIGATION_CANCELLED,{from:t,to:e})}function A(e){return I(e)}function M(e){return A(a(w(e),{replace:!0}))}function k(e,t){const n=e.matched[e.matched.length-1];if(n&&n.redirect){const{redirect:r}=n;let o="function"===typeof r?r(e,t):r;return"string"===typeof o&&(o=o.includes("?")||o.includes("#")?o=w(o):{path:o},o.params={}),a({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function I(e,t){const n=p=C(e),r=f.value,i=e.state,s=e.force,l=!0===e.replace,c=k(n,r);if(c)return I(a(w(c),{state:"object"===typeof c?a({},i,c.state):i,force:s,replace:l}),t||n);const u=n;let d;return u.redirectedFrom=t,!s&&L(o,r,n)&&(d=ae(oe.NAVIGATION_DUPLICATED,{to:u,from:r}),J(r,r,!0,!1)),(d?Promise.resolve(d):B(u,r)).catch(e=>se(e)?se(e,oe.NAVIGATION_GUARD_REDIRECT)?e:q(e):X(e,u,r)).then(e=>{if(e){if(se(e,oe.NAVIGATION_GUARD_REDIRECT))return I(a({replace:l},w(e.to),{state:"object"===typeof e.to?a({},i,e.to.state):i,force:s}),t||u)}else e=N(u,r,!0,l,i);return F(u,r,e),e})}function P(e,t){const n=S(e,t);return n?Promise.reject(n):Promise.resolve()}function D(e){const t=le.values().next().value;return t&&"function"===typeof t.runWithContext?t.runWithContext(e):e()}function B(e,t){let n;const[r,o,i]=_e(e,t);n=xe(r.reverse(),"beforeRouteLeave",e,t);for(const s of r)s.leaveGuards.forEach(r=>{n.push(be(r,e,t))});const a=P.bind(null,e,t);return n.push(a),fe(n).then(()=>{n=[];for(const r of u.list())n.push(be(r,e,t));return n.push(a),fe(n)}).then(()=>{n=xe(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach(r=>{n.push(be(r,e,t))});return n.push(a),fe(n)}).then(()=>{n=[];for(const r of i)if(r.beforeEnter)if(c(r.beforeEnter))for(const o of r.beforeEnter)n.push(be(o,e,t));else n.push(be(r.beforeEnter,e,t));return n.push(a),fe(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=xe(i,"beforeRouteEnter",e,t,D),n.push(a),fe(n))).then(()=>{n=[];for(const r of d.list())n.push(be(r,e,t));return n.push(a),fe(n)}).catch(e=>se(e,oe.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function F(e,t,n){h.list().forEach(r=>D(()=>r(e,t,n)))}function N(e,t,n,o,s){const l=S(e,t);if(l)return l;const c=t===j,u=r?history.state:{};n&&(o||c?i.replace(e.fullPath,a({scroll:c&&u&&u.scroll},s)):i.push(e.fullPath,s)),f.value=e,J(e,t,n,c),q()}let $;function H(){$||($=i.listen((e,t,n)=>{if(!ce.listening)return;const o=C(e),s=k(o,ce.currentRoute.value);if(s)return void I(a(s,{replace:!0,force:!0}),o).catch(l);p=o;const c=f.value;r&&ee(Z(c.fullPath,n.delta),Y()),B(o,c).catch(e=>se(e,oe.NAVIGATION_ABORTED|oe.NAVIGATION_CANCELLED)?e:se(e,oe.NAVIGATION_GUARD_REDIRECT)?(I(a(w(e.to),{force:!0}),o).then(e=>{se(e,oe.NAVIGATION_ABORTED|oe.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===V.pop&&i.go(-1,!1)}).catch(l),Promise.reject()):(n.delta&&i.go(-n.delta,!1),X(e,o,c))).then(e=>{e=e||N(o,c,!1),e&&(n.delta&&!se(e,oe.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===V.pop&&se(e,oe.NAVIGATION_ABORTED|oe.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),F(o,c,e)}).catch(l)}))}let W,G=ye(),U=ye();function X(e,t,n){q(e);const r=U.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function K(){return W&&f.value!==j?Promise.resolve():new Promise((e,t)=>{G.add([e,t])})}function q(e){return W||(W=!e,H(),G.list().forEach(([t,n])=>e?n(e):t()),G.reset()),e}function J(t,n,o,i){const{scrollBehavior:a}=e;if(!r||!a)return Promise.resolve();const s=!o&&te(Z(t.fullPath,0))||(i||!o)&&history.state&&history.state.scroll||null;return(0,Ce.dY)().then(()=>a(t,n,s)).then(e=>e&&Q(e)).catch(e=>X(e,t,n))}const ne=e=>i.go(e);let ie;const le=new Set,ce={currentRoute:f,listening:!0,addRoute:y,removeRoute:b,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:x,resolve:C,options:e,push:A,replace:M,go:ne,back:()=>ne(-1),forward:()=>ne(1),beforeEach:u.add,beforeResolve:d.add,afterEach:h.add,onError:U.add,isReady:K,install(e){e.component("RouterLink",rt),e.component("RouterView",ut),e.config.globalProperties.$router=ce,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,we.R1)(f)}),r&&!ie&&f.value===j&&(ie=!0,A(i.location).catch(e=>{0}));const t={};for(const r in j)Object.defineProperty(t,r,{get:()=>f.value[r],enumerable:!0});e.provide(ve,ce),e.provide(ge,(0,we.Gc)(t)),e.provide(me,f);const n=e.unmount;le.add(e),e.unmount=function(){le.delete(e),le.size<1&&(p=j,$&&$(),$=null,f.value=j,ie=!1,W=!1),n()}}};function fe(e){return e.reduce((e,t)=>e.then(()=>D(t)),Promise.resolve())}return ce}function ht(){return(0,Ce.WQ)(ve)}function ft(e){return(0,Ce.WQ)(ge)}},98811:function(e,t,n){n.d(t,{A:function(){return h}});var r=32,o=7;function i(e){var t=0;while(e>=r)t|=1&e,e>>=1;return e+t}function a(e,t,n,r){var o=t+1;if(o===n)return 1;if(r(e[o++],e[t])<0){while(o=0)o++;return o-t}function s(e,t,n){n--;while(t>>1,o(a,e[i])<0?l=i:s=i+1;var c=r-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(c>0)e[s+c]=e[s+c-1],c--}e[s]=a}}function c(e,t,n,r,o,i){var a=0,s=0,l=1;if(i(e,t[n+o])>0){s=r-o;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}else{s=o+1;while(ls&&(l=s);var c=a;a=o-l,l=o-c}a++;while(a>>1);i(e,t[n+u])>0?a=u+1:l=u}return l}function u(e,t,n,r,o,i){var a=0,s=0,l=1;if(i(e,t[n+o])<0){s=o+1;while(ls&&(l=s);var c=a;a=o-l,l=o-c}else{s=r-o;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}a++;while(a>>1);i(e,t[n+u])<0?l=u:a=u+1}return l}function d(e,t){var n,r,i=o,a=0,s=[];function l(e,t){n[a]=e,r[a]=t,a+=1}function d(){while(a>1){var e=a-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]r[e+1])break;f(e)}}function h(){while(a>1){var e=a-2;e>0&&r[e-1]=o||g>=o);if(m)break;y<0&&(y=0),y+=2}if(i=y,i<1&&(i=1),1===r){for(d=0;d=0;d--)e[g+d]=e[v+d];if(0===r){x=!0;break}}if(e[p--]=s[f--],1===--l){x=!0;break}if(b=l-c(e[h],s,0,l,l-1,t),0!==b){for(p-=b,f-=b,l-=b,g=p+1,v=f+1,d=0;d=o||b>=o);if(x)break;m<0&&(m=0),m+=2}if(i=m,i<1&&(i=1),1===l){for(p-=r,h-=r,g=p+1,v=h+1,d=r-1;d>=0;d--)e[g+d]=e[v+d];e[p]=s[f]}else{if(0===l)throw new Error;for(v=p-(l-1),d=0;d=0;d--)e[g+d]=e[v+d];e[p]=s[f]}else for(v=p-(l-1),d=0;dh&&(f=h),l(e,n,n+f,n+c,t),c=f}u.pushRun(n,c),u.mergeRuns(),s-=c,n+=c}while(0!==s);u.forceMergeRuns()}}},99076:function(e,t,n){n.d(t,{IU:function(){return l},N:function(){return s},nF:function(){return a}});var r="\0__throttleOriginMethod",o="\0__throttleRate",i="\0__throttleType";function a(e,t,n){var r,o,i,a,s,l=0,c=0,u=null;function d(){c=(new Date).getTime(),u=null,e.apply(i,a||[])}t=t||0;var h=function(){for(var e=[],h=0;h=0?d():u=setTimeout(d,-o),l=r};return h.clear=function(){u&&(clearTimeout(u),u=null)},h.debounceNextCall=function(e){s=e},h}function s(e,t,n,s){var l=e[t];if(l){var c=l[r]||l,u=l[i],d=l[o];if(d!==n||u!==s){if(null==n||!s)return e[t]=c;l=e[t]=a(c,n,"debounce"===s),l[r]=c,l[i]=s,l[o]=n}return l}}function l(e,t){var n=e[t];n&&n[r]&&(n.clear&&n.clear(),e[t]=n[r])}},99310:function(e,t,n){var r=n(56768),o=n(81260),i=n(16787),a=n(35268),s=n(72217);const l={title:String,headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],bodyClass:String,bodyStyle:[Object,String],bodyContentClass:String,bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean};t.A=(0,r.pM)({name:"DrawerContent",props:l,slots:Object,setup(){const e=(0,r.WQ)(s.O,null);e||(0,a.$8)("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:a,bodyClass:s,bodyStyle:l,bodyContentClass:c,bodyContentStyle:u,headerClass:d,headerStyle:h,footerClass:f,footerStyle:p,scrollbarProps:v,closable:g,$slots:m}=this;return(0,r.h)("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},m.header||e||g?(0,r.h)("div",{class:[`${t}-drawer-header`,d],style:h,role:"none"},(0,r.h)("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},void 0!==m.header?m.header():e),g&&(0,r.h)(o.A,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?(0,r.h)("div",{class:[`${t}-drawer-body`,s],style:l,role:"none"},(0,r.h)("div",{class:[`${t}-drawer-body-content-wrapper`,c],style:u,role:"none"},m)):(0,r.h)(i.A,Object.assign({themeOverrides:a.peerOverrides.Scrollbar,theme:a.peers.Scrollbar},v,{class:`${t}-drawer-body`,contentClass:[`${t}-drawer-body-content-wrapper`,c],contentStyle:u}),m),m.footer?(0,r.h)("div",{class:[`${t}-drawer-footer`,f],style:p,role:"none"},m.footer()):null)}})},99713:function(e,t,n){n.d(t,{A:function(){return x}});var r=n(45378),o=n(48096),i=n(57587),a=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],s=(0,i.A)(a),l=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return s(this,e,t)},e}(),c=n(53269),u=n(5995),d=["textStyle","color"],h=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],f=new u.Ay,p=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(d):null)},e.prototype.getFont=function(){return(0,c.c8)({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n