PageSourceSearch

https://yiwen.ai/_app/immutable/nodes/0.AQNIGxAC.js

js yiwen.ai collected 2026-10-05 15:12:58 UTC 8,385 bytes, 1 lines download raw bytes

1import{A as e,D as t,F as n,J as r,L as i,M as a,N as o,O as s,P as c,S as l,U as u,X as d,Y as f,a as p,at as m,f as h,ft as g,g as _,h as v,i as y,it as b,j as x,k as S,m as C,p as w,q as T,tt as E,u as D,ut as O,v as k,w as A,x as j}from"../chunks/u58MMZBq.js";import"../chunks/xihTtKlq.js";import{i as M,o as N,r as ee,t as te}from"../chunks/Jj9oUcVg.js";var P=g({prerender:()=>F,ssr:()=>!0,trailingSlash:()=>I}),F=`auto`,I=`never`,L=a(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor" aria-hidden="true"><path d="M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"></path></svg>`);function ne(e,t){let n=y(t,`class`,3,``);var r=L();u(()=>w(r,0,C(n()))),S(e,r)}var R=a(`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>`);function z(e,t){var n=R();u(()=>w(n,0,t.class+` animate-spin`)),S(e,n)}var B=x(`<button type="button" class="absolute top-2 right-2 inline-flex size-9 items-center justify-center rounded-full border border-transparent text-slate-400 transition hover:bg-slate-100 hover:text-slate-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-slate-200 md:top-5 md:right-5 dark:text-slate-400 dark:hover:bg-slate-800 dark:hover:text-slate-200" aria-label="关闭弹窗"><!></button>`),V=x(`<h2 class="text-xl leading-7 font-semibold text-slate-900 dark:text-slate-100"> </h2>`),H=x(`<p class="text-sm leading-6 text-slate-600 dark:text-slate-300"> </p>`),U=x(`<p class="text-base leading-6 whitespace-pre-wrap text-slate-700 dark:text-slate-200"> </p>`),W=x(`<div class="text-sm leading-6 text-slate-700 dark:text-slate-200"><!></div>`),G=x(`<!> <span class="opacity-0"> </span>`,1),K=x(`<button type="button"><!></button>`),q=x(`<div class="mt-2 flex flex-wrap items-center justify-end gap-3"></div>`),J=x(`<div class="pointer-events-auto col-start-1 row-start-1 flex h-full w-full items-start justify-center p-2 pt-8 sm:p-8"><div class="absolute inset-0 z-0 h-full w-full bg-slate-900/5 backdrop-blur-[2px] dark:bg-black/60" aria-hidden="true"></div> <div role="dialog" aria-modal="true" tabindex="-1"><!> <div class="flex flex-col gap-3 pr-10"><!> <!> <!></div> <!> <!></div></div>`),Y=x(`<div popover="manual"></div>`);function X(a,c){m(c,!0);let g={sm:`sm:max-w-sm`,md:`sm:max-w-lg`,lg:`sm:max-w-2xl`,xl:`sm:max-w-4xl`,full:`h-full sm:max-w-5xl lg:max-w-6xl xl:max-w-7xl`},y={primary:`inline-flex h-10 items-center justify-center rounded-full bg-sky-500 px-5 text-sm font-semibold text-white shadow-sm transition hover:bg-sky-400 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-sky-400 disabled:cursor-not-allowed disabled:bg-sky-300`,secondary:`inline-flex h-10 items-center justify-center rounded-full border border-slate-200 bg-white px-5 text-sm font-semibold text-slate-700 shadow-sm transition hover:border-slate-300 hover:bg-slate-50 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-slate-300 disabled:cursor-not-allowed disabled:opacity-60 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-100 dark:hover:bg-slate-800`,ghost:`inline-flex h-10 items-center justify-center rounded-full px-5 text-sm font-semibold text-slate-600 transition hover:bg-slate-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-slate-300 disabled:cursor-not-allowed disabled:opacity-60 dark:text-slate-200 dark:hover:bg-slate-800`,danger:`inline-flex h-10 items-center justify-center rounded-full bg-rose-500 px-5 text-sm font-semibold text-white shadow-sm transition hover:bg-rose-400 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-rose-400 disabled:cursor-not-allowed disabled:bg-rose-300`},x=(e,t)=>{let n=document.activeElement,r=()=>Array.from(e.querySelectorAll(`a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not
1([tabindex="-1"])`)).filter(e=>!e.hasAttribute(`disabled`)&&e.getAttribute(`aria-hidden`)!==`true`),a=()=>{let t=e.querySelector(`[data-autofocus]`),n=e.querySelector(`[autofocus]`);(t??n??r()[0]??e).focus({preventScroll:!0})},o=t=>{if(t.key!==`Tab`)return;let n=r();if(!n.length){t.preventDefault(),e.focus({preventScroll:!0});return}let i=document.activeElement,a=n.indexOf(i),o=n[((a>=0?a:0)+(t.shiftKey?-1:1)+n.length)%n.length]??n[0]??e;t.preventDefault(),o.focus({preventScroll:!0})},s=e=>{if(t.id===i(P)){if(e.key===`Escape`&&t.closeOnEscape){e.preventDefault(),t.close(`escape`);return}e.key===`Tab`&&o(e)}},c=n=>{t.id===i(P)&&(e.contains(n.target)||a())},l=requestAnimationFrame(a);return document.addEventListener(`keydown`,s,!0),document.addEventListener(`focusin`,c),{destroy(){cancelAnimationFrame(l),document.removeEventListener(`keydown`,s,!0),document.removeEventListener(`focusin`,c),n?.focus({preventScroll:!0})}}};function C(e){let t=()=>{if(e.childElementCount>0){try{e.hidePopover()}catch{}try{e.showPopover()}catch{}}else try{e.hidePopover()}catch{}};t();let n=new MutationObserver(t);return n.observe(e,{childList:!0}),()=>n.disconnect()}let P=E(()=>N.at(-1)?.id||0),F=d({});function I(e){e.id===i(P)&&(Object.values(F).some(Boolean)||e.closeOnBackdrop&&e.close(`backdrop`))}function L(e){Object.values(F).some(Boolean)||e.dismissable&&e.close(`close-button`)}async function R(e,t){if(!(t.disabled||F[t.label])){try{let n=t.handler?.(t=>{e.close(t??`action`)});if(n instanceof Promise){F[t.label]=!0;try{if(await n===!1)return}finally{F[t.label]=!1}}else if(n===!1)return}catch(e){console.error(e);return}(t.closeOnClick??!0)&&e.close(`action`)}}var X=Y();let Z;A(X,23,()=>N,e=>e.id,(a,c,d)=>{var m=J(),v=T(m),b=f(v,2),C=T(b),N=e=>{var t=B();ne(T(t),{}),O(t),n(`click`,t,()=>L(i(c))),S(e,t)};t(C,e=>{i(c).dismissable&&e(N)});var P=f(C,2),Y=T(P),X=e=>{var t=V(),n=T(t,!0);O(t),u(()=>{D(t,`id`,`modal-title-${i(c).id}`),s(n,i(c).title)}),S(e,t)};t(Y,e=>{i(c).title&&e(X)});var Z=f(Y,2),Q=e=>{var t=H(),n=T(t,!0);O(t),u(()=>{D(t,`id`,`modal-description-${i(c).id}`),s(n,i(c).description)}),S(e,t)};t(Z,e=>{i(c).description&&e(Q)});var re=f(Z,2),ie=e=>{var t=U(),n=T(t,!0);O(t),u(()=>s(n,i(c).message)),S(e,t)};t(re,e=>{i(c).message&&e(ie)}),O(P);var $=f(P,2),ae=e=>{var t=W();l(T(t),()=>i(c).content),O(t),S(e,t)},oe=t=>{let n=E(()=>i(c).component);var a=e();j(r(a),()=>i(n),(e,t)=>{t(e,p({closeModal:()=>i(c).close()},()=>i(c).componentProps??{}))}),S(t,a)};t($,e=>{i(c).content?e(ae):i(c).component&&e(oe,1)});var se=f($,2),ce=e=>{var a=q();A(a,21,()=>i(c).actions,e=>e.id??e.label,(e,a)=>{let l=E(()=>F[i(a).label]);var d=K(),p=T(d),m=e=>{var t=G(),n=r(t);z(n,{class:`absolute size-4`});var o=f(n,2),c=T(o,!0);O(o),u(()=>s(c,i(a).label)),S(e,t)},h=e=>{var t=o();u(()=>s(t,i(a).label)),S(e,t)};t(p,e=>{i(l)?e(m):e(h,-1)}),O(d),u(()=>{w(d,1,`relative ${y[i(a).variant??`secondary`]??``}`),d.disabled=i(a).disabled||i(l),D(d,`data-autofocus`,i(a).autofocus?`true`:void 0)}),n(`click`,d,()=>R(i(c),i(a))),S(e,d)}),O(a),S(e,a)};t(se,e=>{i(c).actions.length&&e(ce)}),O(b),_(b,(e,t)=>x?.(e,t),()=>i(c)),O(m),u(()=>{h(m,`z-index: ${i(d)+1}`),w(b,1,`relative z-10 flex w-full flex-col gap-6 rounded-lg border border-slate-200 bg-white/90 p-2 text-slate-900 shadow-2xl ring-1 ring-black/5 backdrop-blur-2xl focus:outline-none md:rounded-3xl md:p-8 dark:border-white/10 dark:bg-black/70 dark:text-slate-100 ${g[i(c).size??`md`]}`),D(b,`aria-labelledby`,i(c).title?`modal-title-${i(c).id}`:void 0),D(b,`aria-describedby`,i(c).description?`modal-description-${i(c).id}`:void 0)}),n(`click`,v,()=>I(i(c))),k(3,v,()=>te,()=>({duration:150})),k(3,b,()=>ee,()=>({duration:180,easing:M})),S(a,m)}),O(X),v(X,()=>C),u(()=>Z=w(X,1,`pointer-events-auto fixed inset-0 z-9998 grid h-full w-full grid-cols-1 grid-rows-1 bg-transparent`,null,Z,{"pointer-events-none":!N.length})),S(a,X),b()}c([`click`]);var Z=x(`<!> <!>`,1);function Q(e,t){var n=Z(),i=r(n);l(i,()=>t.children),X(f(i,2),{}),S(e,n)}export{Q as component,P as universal};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.