karin-plugin-kkk 2.35.0 → 2.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ import{$ as e,A as t,At as n,B as r,Ct as i,D as a,Dt as o,E as s,Et as c,F as l,Ft as u,G as d,H as f,I as p,J as m,K as h,L as g,M as _,Mt as v,Nt as y,O as b,Ot as x,Pt as S,Q as C,R as w,S as T,St as E,T as D,Tt as O,U as k,V as A,W as ee,X as j,Y as M,Z as N,_ as te,_t as P,at as F,b as I,bt as ne,c as L,ct as R,d as re,dt as ie,et as ae,ft as oe,g as z,gt as se,ht as B,it as ce,j as le,jt as ue,k as de,kt as fe,l as V,lt as pe,m as H,mt as me,nt as he,ot as U,p as W,pt as ge,q as _e,r as ve,rt as ye,st as be,tt as xe,u as Se,v as Ce,vt as G,w as we,wt as Te,xt as K,y as Ee,yt as De,z as Oe}from"./index-zS6iiHmV.js";var q=ie({defaultVariants:{fullWidth:!1,variant:`primary`},slots:{base:`number-field`,decrementButton:`number-field__decrement-button`,group:`number-field__group`,incrementButton:`number-field__increment-button`,input:`number-field__input`},variants:{fullWidth:{false:{},true:{base:`number-field--full-width`,group:`number-field__group--full-width`}},variant:{primary:{base:`number-field--primary`},secondary:{base:`number-field--secondary`}}}}),ke=ie({slots:{base:`radio`,content:`radio__content`,control:`radio__control`,indicator:`radio__indicator`}}),Ae=ie({base:`radio-group`,defaultVariants:{variant:`primary`},variants:{variant:{primary:`radio-group--primary`,secondary:`radio-group--secondary`}}}),je=new Map,Me=!1;try{Me=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}var Ne=!1;try{Ne=new Intl.NumberFormat(`de-DE`,{style:`unit`,unit:`degree`}).resolvedOptions().style===`unit`}catch{}var Pe={degree:{narrow:{default:`°`,"ja-JP":` 度`,"zh-TW":`度`,"sl-SI":` °`}}},Fe=class{constructor(e,t={}){this.numberFormatter=Ie(e,t),this.options=t}format(e){let t=``;if(t=!Me&&this.options.signDisplay!=null?Le(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),this.options.style===`unit`&&!Ne){let{unit:e,unitDisplay:n=`short`,locale:r}=this.resolvedOptions();if(!e)return t;let i=Pe[e]?.[n];t+=i[r]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange==`function`)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!Me&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!Ne&&this.options.style===`unit`&&(e={...e,style:`unit`,unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}};function Ie(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes(`-nu-`)&&(e.includes(`-u-`)||(e+=`-u-`),e+=`-nu-${n}`),t.style===`unit`&&!Ne){let{unit:e,unitDisplay:n=`short`}=t;if(!e)throw Error(`unit option must be provided with style: "unit"`);if(!Pe[e]?.[n])throw Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:`decimal`}}let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(je.has(r))return je.get(r);let i=new Intl.NumberFormat(e,t);return je.set(r,i),i}function Le(e,t,n){if(t===`auto`)return e.format(n);if(t===`never`)return e.format(Math.abs(n));{let r=!1;if(t===`always`?r=n>0||Object.is(n,0):t===`exceptZero`&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,``).replace(/\u200e|\u061C/,``);return[...i].length!==1&&console.warn(`@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case`),t.replace(r,`!!!`).replace(i,`+`).replace(`!!!`,r)}else return e.format(n)}}var Re=RegExp(`^.*\\(.*\\).*$`),ze=[`latn`,`arab`,`hanidec`,`deva`,`beng`,`fullwide`],Be=class{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return He(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return He(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return He(this.locale,this.options,e).options.numberingSystem}},Ve=new Map;function He(e,t,n){let r=Ue(e,t);if(!e.includes(`-nu-`)&&!r.isValidPartialNumber(n)){for(let i of ze)if(i!==r.options.numberingSystem){let r=Ue(e+(e.includes(`-u-`)?`-nu-`:`-u-nu-`)+i,t);if(r.isValidPartialNumber(n))return r}}return r}function Ue(e,t){let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``),r=Ve.get(n);return r||(r=new We(e,t),Ve.set(n,r)),r}var We=class{constructor(e,t={}){this.locale=e,t.roundingIncrement!==1&&t.roundingIncrement!=null&&(t.maximumFractionDigits==null&&t.minimumFractionDigits==null?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):t.maximumFractionDigits==null?t.maximumFractionDigits=t.minimumFractionDigits:t.minimumFractionDigits??=t.maximumFractionDigits),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=qe(e,this.formatter,this.options,t),this.options.style===`percent`&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn(`NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.`)}parse(e){let t=this.formatter.resolvedOptions().useGrouping,n=this.sanitize(e);if(!t&&this.symbols.group&&n.includes(this.symbols.group))return NaN;if(this.symbols.group&&(n=n.replaceAll(this.symbols.group,``)),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,`.`)),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,`-`)),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style===`percent`){let e=n.indexOf(`-`);n=n.replace(`-`,``),n=n.replace(`+`,``);let t=n.indexOf(`.`);t===-1&&(t=n.length),n=n.replace(`.`,``),n=t-2==0?`0.${n}`:t-2==-1?`0.0${n}`:t-2==-2?`0.00`:`${n.slice(0,t-2)}.${n.slice(t-2)}`,e>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style===`percent`){let e={...this.options,style:`decimal`,minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new Be(this.locale,e).parse(new Fe(this.locale,e).format(r))}return this.options.currencySign===`accounting`&&Re.test(e)&&(r=-1*r),r}sanitize(e){let t=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(t=>t.unit===e)?this.symbols.noNumeralUnits.find(t=>t.unit===e).value.toString():(e=e.replace(this.symbols.literals,``),this.symbols.minusSign&&(e=e.replace(`-`,this.symbols.minusSign)),this.options.numberingSystem===`arab`&&(this.symbols.decimal&&(e=J(e,`,`,this.symbols.decimal),e=J(e,`،`,this.symbols.decimal)),this.symbols.group&&t&&(e=J(e,`.`,this.symbols.group))),this.symbols.group===`’`&&e.includes(`'`)&&t&&(e=J(e,`'`,this.symbols.group)),this.symbols.group===`'`&&e.includes(`’`)&&t&&(e=J(e,`’`,this.symbols.group)),this.options.locale===`fr-FR`&&this.symbols.group&&t&&(e=J(e,` `,this.symbols.group),e=J(e,/\u00A0/g,this.symbols.group)),e)}isValidPartialNumber(e,t=-1/0,n=1/0){let r=this.formatter.resolvedOptions().useGrouping;return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&r&&(e=J(e,this.symbols.group,``)),e=e.replace(this.symbols.numeral,``),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,``)),e.length===0)}},Ge=new Set([`decimal`,`fraction`,`integer`,`minusSign`,`plusSign`,`group`]),Ke=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function qe(e,t,n,r){let i=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:`auto`,roundingMode:`halfExpand`,useGrouping:!0}),a=i.formatToParts(-10000.111),o=i.formatToParts(10000.111),s=Ke.map(e=>i.formatToParts(e)),c=s.map((e,t)=>{let n=e.find(e=>e.type===`unit`);return n&&!e.some(e=>e.type===`integer`||e.type===`fraction`)?{unit:n.value,value:Ke[t]}:null}).filter(e=>!!e),l=a.find(e=>e.type===`minusSign`)?.value??`-`,u=o.find(e=>e.type===`plusSign`)?.value;!u&&(r?.signDisplay===`exceptZero`||r?.signDisplay===`always`)&&(u=`+`);let d=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(e=>e.type===`decimal`)?.value,f=a.find(e=>e.type===`group`)?.value,p=a.filter(e=>!Ge.has(e.type)).map(e=>Je(e.value)),m=s.flatMap(e=>e.filter(e=>!Ge.has(e.type)).map(e=>Je(e.value))),h=[...new Set([...p,...m])].sort((e,t)=>t.length-e.length),g=h.length===0?RegExp(`\\p{White_Space}|\\p{Cf}`,`gu`):RegExp(`${h.join(`|`)}|\\p{White_Space}|\\p{Cf}`,`gu`),_=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),v=new Map(_.map((e,t)=>[e,t])),y=RegExp(`[${_.join(``)}]`,`g`);return{minusSign:l,plusSign:u,decimal:d,group:f,literals:g,numeral:y,numerals:_,index:e=>String(v.get(e)),noNumeralUnits:c}}function J(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Je(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}var Y=u(S(),1);function Ye(e={}){let{locale:t}=xe();return(0,Y.useMemo)(()=>new Fe(t,e),[t,e])}function Xe(){return typeof window<`u`&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges==`function`}function Ze(e,t,n){let r=G(e=>{let r=n.current;if(!r)return;let i=null;switch(e.inputType){case`historyUndo`:case`historyRedo`:return;case`insertLineBreak`:return;case`deleteContent`:case`deleteByCut`:case`deleteByDrag`:i=r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case`deleteContentForward`:i=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd+1):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case`deleteContentBackward`:i=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart-1)+r.value.slice(r.selectionStart):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case`deleteSoftLineBackward`:case`deleteHardLineBackward`:i=r.value.slice(r.selectionStart);break;default:e.data!=null&&(i=r.value.slice(0,r.selectionStart)+e.data+r.value.slice(r.selectionEnd));break}(i==null||!t.validate(i))&&e.preventDefault()});(0,Y.useEffect)(()=>{if(!Xe()||!n.current)return;let e=n.current;return e.addEventListener(`beforeinput`,r,!1),()=>{e.removeEventListener(`beforeinput`,r,!1)}},[n]);let i=Xe()?null:e=>{let n=O(e).value.slice(0,O(e).selectionStart)+e.data+O(e).value.slice(O(e).selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:a,inputProps:o,descriptionProps:s,errorMessageProps:c,...l}=te(e,n),u=(0,Y.useRef)(null);return{inputProps:E(o,{onBeforeInput:i,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;u.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(n.current&&!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:i}=u.current;n.current.value=e,n.current.setSelectionRange(r,i),t.setInputValue(e)}}}),labelProps:a,descriptionProps:s,errorMessageProps:c,...l}}function Qe(e,t){let{onScroll:n,isDisabled:r}=e,i=(0,Y.useCallback)(e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))},[n]);P(t,`wheel`,r?void 0:i)}var $e={};$e={Empty:`فارغ`};var et={};et={Empty:`Изпразни`};var tt={};tt={Empty:`Prázdné`};var nt={};nt={Empty:`Tom`};var rt={};rt={Empty:`Leer`};var it={};it={Empty:`Άδειο`};var at={};at={Empty:`Empty`};var ot={};ot={Empty:`Vacío`};var st={};st={Empty:`Tühjenda`};var ct={};ct={Empty:`Tyhjä`};var lt={};lt={Empty:`Vide`};var ut={};ut={Empty:`ריק`};var dt={};dt={Empty:`Prazno`};var ft={};ft={Empty:`Üres`};var pt={};pt={Empty:`Vuoto`};var mt={};mt={Empty:`空`};var ht={};ht={Empty:`비어 있음`};var gt={};gt={Empty:`Tuščias`};var _t={};_t={Empty:`Tukšs`};var vt={};vt={Empty:`Tom`};var yt={};yt={Empty:`Leeg`};var bt={};bt={Empty:`Pusty`};var xt={};xt={Empty:`Vazio`};var St={};St={Empty:`Vazio`};var Ct={};Ct={Empty:`Gol`};var wt={};wt={Empty:`Не заполнено`};var Tt={};Tt={Empty:`Prázdne`};var Et={};Et={Empty:`Prazen`};var Dt={};Dt={Empty:`Prazno`};var Ot={};Ot={Empty:`Tomt`};var kt={};kt={Empty:`Boş`};var At={};At={Empty:`Пусто`};var jt={};jt={Empty:`空`};var Mt={};Mt={Empty:`空白`};var Nt={};Nt={"ar-AE":$e,"bg-BG":et,"cs-CZ":tt,"da-DK":nt,"de-DE":rt,"el-GR":it,"en-US":at,"es-ES":ot,"et-EE":st,"fi-FI":ct,"fr-FR":lt,"he-IL":ut,"hr-HR":dt,"hu-HU":ft,"it-IT":pt,"ja-JP":mt,"ko-KR":ht,"lt-LT":gt,"lv-LV":_t,"nb-NO":vt,"nl-NL":yt,"pl-PL":bt,"pt-BR":xt,"pt-PT":St,"ro-RO":Ct,"ru-RU":wt,"sk-SK":Tt,"sl-SI":Et,"sr-SP":Dt,"sv-SE":Ot,"tr-TR":kt,"uk-UA":At,"zh-CN":jt,"zh-TW":Mt};function Pt(e){return e&&e.__esModule?e.default:e}var Ft=()=>{};function It(t){let n=(0,Y.useRef)(void 0),{value:r,textValue:i,minValue:a,maxValue:o,isDisabled:s,isReadOnly:c,isRequired:l,onIncrement:u,onIncrementPage:d,onDecrement:f,onDecrementPage:p,onDecrementToMin:m,onIncrementToMax:h}=t,g=w(Pt(Nt),`@react-aria/spinbutton`),_=(0,Y.useRef)(!1),v=(0,Y.useCallback)(()=>{clearTimeout(n.current),_.current=!1},[]),y=G(()=>{v()});(0,Y.useEffect)(()=>()=>y(),[]);let b=e=>{if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||c||e.nativeEvent.isComposing))switch(e.key){case`PageUp`:if(d){e.preventDefault(),d?.();break}case`ArrowUp`:case`Up`:u&&(e.preventDefault(),u?.());break;case`PageDown`:if(p){e.preventDefault(),p?.();break}case`ArrowDown`:case`Down`:f&&(e.preventDefault(),f?.());break;case`Home`:m&&(e.preventDefault(),m?.());break;case`End`:h&&(e.preventDefault(),h?.());break}},x=(0,Y.useRef)(!1),S=()=>{x.current=!0},C=()=>{x.current=!1},T=i===``?g.format(`Empty`):(i||`${r}`).replace(`-`,`−`);(0,Y.useEffect)(()=>{x.current&&(ae(`assertive`),e(T,`assertive`))},[T]);let E=(0,Y.useCallback)(()=>{v()},[v]),D=G(u??Ft),O=G(f??Ft),k=G(()=>{(o===void 0||isNaN(o)||r===void 0||isNaN(r)||r<o)&&(D(),A(60))}),A=G(e=>{y(),_.current=!0,n.current=window.setTimeout(k,e)}),ee=G(()=>{(a===void 0||isNaN(a)||r===void 0||isNaN(r)||r>a)&&(O(),j(60))}),j=G(e=>{y(),_.current=!0,n.current=window.setTimeout(ee,e)}),M=e=>{e.preventDefault()},{addGlobalListener:N,removeAllGlobalListeners:te}=ne(),P=(0,Y.useRef)(!1),[F,I]=(0,Y.useState)(null);(0,Y.useEffect)(()=>{F===`touch`?A(600):F?A(400):F||y()},[F]);let[L,R]=(0,Y.useState)(null);return(0,Y.useEffect)(()=>{L===`touch`?j(600):L?j(400):L||y()},[L]),{spinButtonProps:{role:`spinbutton`,"aria-valuenow":r!==void 0&&!isNaN(r)?r:void 0,"aria-valuetext":T,"aria-valuemin":a,"aria-valuemax":o,"aria-disabled":s||void 0,"aria-readonly":c||void 0,"aria-required":l||void 0,onKeyDown:b,onFocus:S,onBlur:C},incrementButtonProps:{onPressStart:e=>{v(),e.pointerType===`touch`?(N(window,`pointercancel`,E,{capture:!0}),P.current=!1,I(`touch`)):(u?.(),I(`mouse`)),N(window,`contextmenu`,M)},onPressUp:e=>{v(),e.pointerType===`touch`&&(P.current=!0),te(),I(null)},onPressEnd:e=>{v(),e.pointerType===`touch`&&!_.current&&P.current&&u?.(),P.current=!1,I(null)},onFocus:S,onBlur:C},decrementButtonProps:{onPressStart:e=>{v(),e.pointerType===`touch`?(N(window,`pointercancel`,E,{capture:!0}),P.current=!1,R(`touch`)):(f?.(),R(`mouse`))},onPressUp:e=>{v(),e.pointerType===`touch`&&(P.current=!0),te(),R(null)},onPressEnd:e=>{v(),e.pointerType===`touch`&&!_.current&&P.current&&f?.(),P.current=!1,R(null)},onFocus:S,onBlur:C}}}var Lt={};Lt={decrease:e=>`\u{62E}\u{641}\u{636} ${e.fieldLabel}`,increase:e=>`\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,numberField:`حقل رقمي`};var Rt={};Rt={decrease:e=>`\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,numberField:`Номер на полето`};var zt={};zt={decrease:e=>`Sn\xed\u{17E}it ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}it ${e.fieldLabel}`,numberField:`Číselné pole`};var Bt={};Bt={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xd8g ${e.fieldLabel}`,numberField:`Talfelt`};var Vt={};Vt={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xf6hen`,numberField:`Nummernfeld`};var Ht={};Ht={decrease:e=>`\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,increase:e=>`\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,numberField:`Πεδίο αριθμού`};var Ut={};Ut={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:`Number field`};var Wt={};Wt={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo de número`};var Gt={};Gt={decrease:e=>`V\xe4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:`Numbri väli`};var Kt={};Kt={decrease:e=>`V\xe4henn\xe4 ${e.fieldLabel}`,increase:e=>`Lis\xe4\xe4 ${e.fieldLabel}`,numberField:`Numerokenttä`};var qt={};qt={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:`Champ de nombre`};var Jt={};Jt={decrease:e=>`\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,increase:e=>`\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,numberField:`שדה מספר`};var Yt={};Yt={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:`Polje broja`};var Xt={};Xt={decrease:e=>`${e.fieldLabel} cs\xf6kkent\xe9se`,increase:e=>`${e.fieldLabel} n\xf6vel\xe9se`,numberField:`Számmező`};var Zt={};Zt={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:`Campo numero`};var Qt={};Qt={decrease:e=>`${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,increase:e=>`${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,numberField:`数値フィールド`};var $t={};$t={decrease:e=>`${e.fieldLabel} \u{AC10}\u{C18C}`,increase:e=>`${e.fieldLabel} \u{C99D}\u{AC00}`,numberField:`번호 필드`};var en={};en={decrease:e=>`Suma\u{17E}inti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:`Numerio laukas`};var tn={};tn={decrease:e=>`Samazin\u{101}\u{161}ana ${e.fieldLabel}`,increase:e=>`Palielin\u{101}\u{161}ana ${e.fieldLabel}`,numberField:`Skaitļu lauks`};var nn={};nn={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xd8k ${e.fieldLabel}`,numberField:`Tallfelt`};var rn={};rn={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:`Getalveld`};var an={};an={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u{119}ksz ${e.fieldLabel}`,numberField:`Pole numeru`};var on={};on={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo de número`};var sn={};sn={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo numérico`};var cn={};cn={decrease:e=>`Sc\u{103}dere ${e.fieldLabel}`,increase:e=>`Cre\u{219}tere ${e.fieldLabel}`,numberField:`Câmp numeric`};var ln={};ln={decrease:e=>`\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,numberField:`Числовое поле`};var un={};un={decrease:e=>`Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,numberField:`Číselné pole`};var dn={};dn={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u{10D}ajte ${e.fieldLabel}`,numberField:`Številčno polje`};var fn={};fn={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:`Polje broja`};var pn={};pn={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:`Nummerfält`};var mn={};mn={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u{131}r`,numberField:`Sayı alanı`};var hn={};hn={decrease:e=>`\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,increase:e=>`\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,numberField:`Поле номера`};var gn={};gn={decrease:e=>`\u{964D}\u{4F4E} ${e.fieldLabel}`,increase:e=>`\u{63D0}\u{9AD8} ${e.fieldLabel}`,numberField:`数字字段`};var _n={};_n={decrease:e=>`\u{7E2E}\u{5C0F} ${e.fieldLabel}`,increase:e=>`\u{653E}\u{5927} ${e.fieldLabel}`,numberField:`數字欄位`};var vn={};vn={"ar-AE":Lt,"bg-BG":Rt,"cs-CZ":zt,"da-DK":Bt,"de-DE":Vt,"el-GR":Ht,"en-US":Ut,"es-ES":Wt,"et-EE":Gt,"fi-FI":Kt,"fr-FR":qt,"he-IL":Jt,"hr-HR":Yt,"hu-HU":Xt,"it-IT":Zt,"ja-JP":Qt,"ko-KR":$t,"lt-LT":en,"lv-LV":tn,"nb-NO":nn,"nl-NL":rn,"pl-PL":an,"pt-BR":on,"pt-PT":sn,"ro-RO":cn,"ru-RU":ln,"sk-SK":un,"sl-SI":dn,"sr-SP":fn,"sv-SE":pn,"tr-TR":mn,"uk-UA":hn,"zh-CN":gn,"zh-TW":_n};var yn=u(y(),1);function bn(e){return e&&e.__esModule?e.default:e}function xn(t,r,i){let{id:s,decrementAriaLabel:c,incrementAriaLabel:l,isDisabled:u,isReadOnly:d,isRequired:f,minValue:p,maxValue:m,autoFocus:h,label:g,formatOptions:_,onBlur:y=()=>{},onFocus:b,onFocusChange:S,onKeyDown:T,onKeyUp:D,description:k,errorMessage:A,isWheelDisabled:ee,...j}=t,{increment:N,incrementToMax:te,decrement:P,decrementToMin:F,numberValue:I,inputValue:ne,commit:L,commitValidation:R}=r,re=w(bn(vn),`@react-aria/numberfield`),ie=(0,Y.useCallback)(()=>{let t=i.current?.value??``;(0,yn.flushSync)(()=>{L()}),i.current?.value!==t&&e(i.current?.value??``,`assertive`)},[L,i]),ae=x(s),{focusProps:oe}=C({onBlur(){ie()}}),z=Ye(_),B=(0,Y.useMemo)(()=>z.resolvedOptions(),[z]),ce=Ye({..._,currencySign:void 0}),{spinButtonProps:le,incrementButtonProps:de,decrementButtonProps:fe}=It({isDisabled:u,isReadOnly:d,isRequired:f,maxValue:m,minValue:p,onIncrement:N,onIncrementToMax:te,onDecrement:P,onDecrementToMin:F,value:I,textValue:(0,Y.useMemo)(()=>isNaN(I)?``:ce.format(I),[ce,I])}),[V,pe]=(0,Y.useState)(!1),{focusWithinProps:H}=M({isDisabled:u,onFocusWithinChange:pe});Qe({onScroll:(0,Y.useCallback)(e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?N():e.deltaY<0&&P())},[P,N]),isDisabled:ee||u||d||!V},i);let me=(B.maximumFractionDigits??0)>0,he=r.minValue===void 0||isNaN(r.minValue)||r.minValue<0,U=`numeric`;n()?he?U=`text`:me&&(U=`decimal`):ue()&&(he?U=`numeric`:me&&(U=`decimal`));let W=e=>{r.validate(e)&&r.setInputValue(e)},ge=e=>{t.onPaste?.(e);let n=O(e);n&&(n.selectionEnd??-1)-(n.selectionStart??0)===n.value.length&&(e.preventDefault(),L(e.clipboardData?.getData?.(`text/plain`)?.trim()??``))},_e=K(t),ve=(0,Y.useCallback)(e=>{e.nativeEvent.isComposing||(e.key===`Enter`?((0,yn.flushSync)(()=>{L()}),R()):e.continuePropagation())},[L,R]),{isInvalid:ye,validationErrors:be,validationDetails:xe}=r.displayValidation,{labelProps:Se,inputProps:Ce,descriptionProps:G,errorMessageProps:we}=Ze({...j,..._e,name:void 0,form:void 0,label:g,autoFocus:h,isDisabled:u,isReadOnly:d,isRequired:f,validate:void 0,[a]:r,value:ne,defaultValue:`!`,autoComplete:`off`,"aria-label":t[`aria-label`]||void 0,"aria-labelledby":t[`aria-labelledby`]||void 0,id:ae,type:`text`,inputMode:U,onChange:W,onBlur:y,onFocus:b,onFocusChange:S,onKeyDown:(0,Y.useMemo)(()=>o(ve,T),[ve,T]),onKeyUp:D,onPaste:ge,description:k,errorMessage:A},r,i);se(i,r.defaultNumberValue,r.setNumberValue),Sn(r,t.validationBehavior,t.commitBehavior,i,r.minValue,r.maxValue,t.step,r.numberValue);let Ee=E(le,oe,Ce,{role:null,"aria-roledescription":v()?null:re.format(`numberField`),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:`off`,spellCheck:`false`});t.validationBehavior===`native`&&(Ee[`aria-required`]=void 0);let De=e=>{Te()!==i.current&&(e.pointerType===`mouse`?i.current?.focus():e.target.focus())},Oe=t[`aria-label`]||(typeof t.label==`string`?t.label:``),q;Oe||(q=t.label==null?t[`aria-labelledby`]:Se.id);let ke=x(),Ae=x(),je=E(de,{"aria-label":l||re.format(`increase`,{fieldLabel:Oe}).trim(),id:q&&!l?ke:null,"aria-labelledby":q&&!l?`${ke} ${q}`:null,"aria-controls":ae,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!r.canIncrement,onPressStart:De}),Me=E(fe,{"aria-label":c||re.format(`decrease`,{fieldLabel:Oe}).trim(),id:q&&!c?Ae:null,"aria-labelledby":q&&!c?`${Ae} ${q}`:null,"aria-controls":ae,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!r.canDecrement,onPressStart:De});return{groupProps:{...H,role:`group`,"aria-disabled":u,"aria-invalid":ye?`true`:void 0},labelProps:Se,inputProps:Ee,incrementButtonProps:je,decrementButtonProps:Me,errorMessageProps:we,descriptionProps:G,isInvalid:ye,validationErrors:be,validationDetails:xe}}var X=null;function Sn(e,t,n,r,i,a,o,s){fe(()=>{let c=r.current;if(n!==`validate`||e.realtimeValidation.isInvalid||!c||c.disabled||(!X&&typeof document<`u`&&(X=document.createElement(`input`),X.type=`number`),!X))return;X.min=i!=null&&!isNaN(i)?String(i):``,X.max=a!=null&&!isNaN(a)?String(a):``,X.step=o!=null&&!isNaN(o)?String(o):``,X.value=s!=null&&!isNaN(s)?String(s):``;let l=c.validity.valid&&X.validity.valid,u=c.validationMessage||X.validationMessage,d={isInvalid:!l,validationErrors:u?[u]:[],validationDetails:{badInput:c.validity.badInput,customError:c.validity.customError,patternMismatch:c.validity.patternMismatch,rangeOverflow:X.validity.rangeOverflow,rangeUnderflow:X.validity.rangeUnderflow,stepMismatch:X.validity.stepMismatch,tooLong:c.validity.tooLong,tooShort:c.validity.tooShort,typeMismatch:c.validity.typeMismatch,valueMissing:c.validity.valueMissing,valid:l}};e.updateValidation(d),t===`native`&&!X.validity.valid&&c.setCustomValidity(X.validationMessage)})}function Cn(e){let{minValue:t,maxValue:n,step:r,formatOptions:i,value:a,defaultValue:o=NaN,onChange:s,locale:c,isDisabled:l,isReadOnly:u,commitBehavior:d=`snap`}=e;a===null&&(a=NaN);let f=(0,Y.useCallback)(e=>r===void 0||isNaN(r)?me(e,t,n):B(e,t,n,r),[r,t,n]);a!==void 0&&!isNaN(a)&&d===`snap`&&(a=f(a)),!isNaN(o)&&d===`snap`&&(o=f(o));let[p,m]=ee(a,isNaN(o)?NaN:o,s),[h]=(0,Y.useState)(p),[g,_]=(0,Y.useState)(()=>isNaN(p)?``:new Fe(c,i).format(p)),v=(0,Y.useMemo)(()=>new Be(c,i),[c,i]),y=(0,Y.useMemo)(()=>v.getNumberingSystem(g),[v,g]),x=(0,Y.useMemo)(()=>new Fe(c,{...i,numberingSystem:y}),[c,i,y]),S=(0,Y.useMemo)(()=>x.resolvedOptions(),[x]),C=(0,Y.useCallback)(e=>isNaN(e)||e===null?``:x.format(e),[x]),w=b({...e,value:p}),T=r!==void 0&&!isNaN(r)?r:1;S.style===`percent`&&(r===void 0||isNaN(r))&&(T=.01);let[E,D]=(0,Y.useState)(p),[O,k]=(0,Y.useState)(c),[A,j]=(0,Y.useState)(i);(!Object.is(p,E)||c!==O||!wn(i,A))&&(_(C(p)),D(p),k(c),j(i));let M=(0,Y.useMemo)(()=>v.parse(g),[v,g]),N=e=>{let t=e===void 0?g:e,n=M;if(e!==void 0&&(n=v.parse(t)),!t.length){m(NaN),_(a===void 0?``:C(p));return}if(isNaN(n)){_(C(p));return}let r=d===`snap`?f(n):n;r=v.parse(C(r));let i=r!==p;m(r),_(C(a===void 0?r:p)),i&&w.commitValidation()},te=(e,r=0)=>{let i=M;if(isNaN(i))return B(isNaN(r)?0:r,t,n,T);{let r=B(i,t,n,T);return e===`+`&&r>i||e===`-`&&r<i?r:B(Tn(e,i,T),t,n,T)}},P=()=>{let e=te(`+`,t);e===p&&_(C(e)),m(e),w.commitValidation()},F=()=>{let e=te(`-`,n);e===p&&_(C(e)),m(e),w.commitValidation()},I=()=>{n!=null&&(m(B(n,t,n,T)),w.commitValidation())},ne=()=>{t!=null&&(m(t),w.commitValidation())},L=(0,Y.useMemo)(()=>!l&&!u&&(isNaN(M)||n===void 0||isNaN(n)||B(M,t,n,T)>M||Tn(`+`,M,T)<=n),[l,u,t,n,T,M]),R=(0,Y.useMemo)(()=>!l&&!u&&(isNaN(M)||t===void 0||isNaN(t)||B(M,t,n,T)<M||Tn(`-`,M,T)>=t),[l,u,t,n,T,M]),re=e=>v.isValidPartialNumber(e,t,n);return{...w,validate:re,increment:P,incrementToMax:I,decrement:F,decrementToMin:ne,canIncrement:L,canDecrement:R,minValue:t,maxValue:n,numberValue:M,defaultNumberValue:isNaN(o)?h:o,setNumberValue:m,setInputValue:_,inputValue:g,commit:N}}function wn(e,t){if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}function Tn(e,t,n){let r=e===`+`?t+n:t-n;if(t%1!=0||n%1!=0){let i=t.toString().split(`.`),a=n.toString().split(`.`),o=i[1]&&i[1].length||0,s=a[1]&&a[1].length||0,c=10**Math.max(o,s);t=Math.round(t*c),n=Math.round(n*c),r=e===`+`?t+n:t-n,r/=c}return r}var En=(0,Y.createContext)(null),Dn=(0,Y.createContext)(null),On=(0,Y.forwardRef)(function(e,t){[e,t]=ce(e,t,En);let{validationBehavior:n}=pe(s)||{},r=e.validationBehavior??n??`native`,{locale:i}=xe(),a=Cn({...e,locale:i,validationBehavior:r}),o=(0,Y.useRef)(null),[c,l]=U(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:u,groupProps:f,inputProps:p,incrementButtonProps:m,decrementButtonProps:h,descriptionProps:g,errorMessageProps:v,...y}=xn({...R(e),label:l,validationBehavior:r},a,o),b=F({...e,values:{state:a,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1},defaultClassName:`react-aria-NumberField`}),x=K(e,{global:!0});return delete x.id,Y.createElement(ye,{values:[[Dn,a],[le,f],[Ce,{...p,ref:o}],[he,{...u,ref:c}],[d,{slots:{increment:m,decrement:h}}],[_,{slots:{description:g,errorMessage:v}}],[de,y]]},Y.createElement(be.div,{...x,...b,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-invalid":y.isInvalid||void 0}),e.name&&Y.createElement(`input`,{type:`hidden`,name:e.name,form:e.form,value:isNaN(a.numberValue)?``:a.numberValue,disabled:e.isDisabled||void 0}))}),kn=new WeakMap;function An(e,t,n){let{value:r,children:i,"aria-label":a,"aria-labelledby":o,onPressStart:s,onPressEnd:c,onPressChange:l,onPress:u,onPressUp:d,onClick:f}=e,p=e.isDisabled||t.isDisabled,m=t.selectedValue===r,h=e=>{e.stopPropagation(),t.setSelectedValue(r)},{pressProps:g,isPressed:_}=j({onPressStart:s,onPressEnd:c,onPressChange:l,onPress:u,onPressUp:d,onClick:f,isDisabled:p}),{pressProps:v,isPressed:y}=j({onPressStart:s,onPressEnd:c,onPressChange:l,onPressUp:d,onClick:f,isDisabled:p,onPress(e){u?.(e),t.setSelectedValue(r),n.current?.focus()}}),{focusableProps:b}=N(E(e,{onFocus:()=>t.setLastFocusedValue(r)}),n),x=E(g,b),S=K(e,{labelable:!0}),C=-1;t.selectedValue==null?(t.lastFocusedValue===r||t.lastFocusedValue==null)&&(C=0):t.selectedValue===r&&(C=0),p&&(C=void 0);let{name:w,form:T,descriptionId:D,errorMessageId:O,validationBehavior:k}=kn.get(t);se(n,t.defaultSelectedValue,t.setSelectedValue),we({validationBehavior:k},t,n);let A=I();return{labelProps:E(v,(0,Y.useMemo)(()=>({onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault()}),[])),inputProps:E(S,{...x,type:`radio`,name:w,form:T,tabIndex:C,disabled:p,required:t.isRequired&&k===`native`,checked:m,value:r,onChange:h,"aria-describedby":[e[`aria-describedby`],A.id,t.isInvalid?O:null,D].filter(Boolean).join(` `)||void 0}),descriptionProps:A,isDisabled:p,isSelected:m,isPressed:_||y}}function jn(e,t){let{name:n,form:r,isReadOnly:i,isRequired:a,isDisabled:o,orientation:s=`vertical`,validationBehavior:l=`aria`}=e,{direction:u}=xe(),{isInvalid:d,validationErrors:f,validationDetails:p}=t.displayValidation,{labelProps:m,fieldProps:h,descriptionProps:g,errorMessageProps:_}=D({...e,labelElementType:`span`,isInvalid:t.isInvalid,errorMessage:e.errorMessage||f}),v=K(e,{labelable:!0}),{focusWithinProps:y}=M({onBlurWithin(n){e.onBlur?.(n),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),b=e=>{let n;switch(e.key){case`ArrowRight`:n=u===`rtl`&&s!==`vertical`?`prev`:`next`;break;case`ArrowLeft`:n=u===`rtl`&&s!==`vertical`?`next`:`prev`;break;case`ArrowDown`:n=`next`;break;case`ArrowUp`:n=`prev`;break;default:return}e.preventDefault();let r=Oe(e.currentTarget,{from:O(e),accept:e=>e instanceof c(e).HTMLInputElement&&e.type===`radio`}),i;n===`next`?(i=r.nextNode(),i||=(r.currentNode=e.currentTarget,r.firstChild())):(i=r.previousNode(),i||=(r.currentNode=e.currentTarget,r.lastChild())),i&&(i.focus(),t.setSelectedValue(i.value))},S=x(n);return kn.set(t,{name:S,form:r,descriptionId:g.id,errorMessageId:_.id,validationBehavior:l}),{radioGroupProps:E(v,{role:`radiogroup`,onKeyDown:b,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-readonly":i||void 0,"aria-required":a||void 0,"aria-disabled":o||void 0,"aria-orientation":s,...h,...y}),labelProps:m,descriptionProps:g,errorMessageProps:_,isInvalid:d,validationErrors:f,validationDetails:p}}var Mn=Math.round(Math.random()*1e10),Nn=0;function Pn(e){let t=(0,Y.useMemo)(()=>e.name||`radio-group-${Mn}-${++Nn}`,[e.name]),[n,r]=ee(e.value,e.defaultValue??null,e.onChange),[i]=(0,Y.useState)(n),[a,o]=(0,Y.useState)(null),s=b({...e,value:n}),c=t=>{!e.isReadOnly&&!e.isDisabled&&(r(t),s.commitValidation())},l=s.displayValidation.isInvalid;return{...s,name:t,selectedValue:n,defaultSelectedValue:e.value===void 0?e.defaultValue??null:i,setSelectedValue:c,lastFocusedValue:a,setLastFocusedValue:o,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(l?`invalid`:null),isInvalid:l}}var Fn=(0,Y.createContext)(null),In=(0,Y.createContext)(null),Ln=(0,Y.createContext)(null),Rn=(0,Y.forwardRef)(function(e,t){[e,t]=ce(e,t,Fn);let{validationBehavior:n}=pe(s)||{},r=e.validationBehavior??n??`native`,i=Pn({...e,validationBehavior:r}),[a,o]=U(!e[`aria-label`]&&!e[`aria-labelledby`]),{radioGroupProps:c,labelProps:l,descriptionProps:u,errorMessageProps:d,...f}=jn({...e,label:o,validationBehavior:r},i),m=F({...e,values:{orientation:e.orientation||`vertical`,isDisabled:i.isDisabled,isReadOnly:i.isReadOnly,isRequired:i.isRequired,isInvalid:i.isInvalid,state:i},defaultClassName:`react-aria-RadioGroup`}),h=K(e,{global:!0});return Y.createElement(be.div,{...E(h,m,c),ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||`vertical`,"data-invalid":i.isInvalid||void 0,"data-disabled":i.isDisabled||void 0,"data-readonly":i.isReadOnly||void 0,"data-required":i.isRequired||void 0},Y.createElement(ye,{values:[[Ln,i],[he,{...l,ref:a,elementType:`span`}],[_,{slots:{description:u,errorMessage:d}}],[de,f]]},Y.createElement(p,null,m.children)))}),zn=(0,Y.createContext)(null),Bn=(0,Y.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=ce(r,t,In);let a=Y.useContext(Ln),o=De((0,Y.useMemo)(()=>i(n,e.inputRef===void 0?null:e.inputRef),[n,e.inputRef])),s=An({...R(e),children:typeof e.children==`function`?!0:e.children},a,o),{descriptionProps:c,isSelected:u,isDisabled:d}=s,f=F({...e,defaultClassName:`react-aria-RadioField`,values:{isSelected:u,isDisabled:d,isReadOnly:a.isReadOnly,isInvalid:a.isInvalid,isRequired:a.isRequired}}),p=K(e,{global:!0});return delete p.id,delete p.onClick,Y.createElement(be.div,{...E(p,f),ref:t,"data-selected":u||void 0,"data-disabled":d||void 0,"data-readonly":a.isReadOnly||void 0,"data-invalid":a.isInvalid||void 0,"data-required":a.isRequired||void 0},Y.createElement(ye,{values:[[l,{isSelected:u}],[zn,{...s,inputRef:o,defaultClassName:`react-aria-RadioButton`}],[_,{slots:{description:c}}]]},f.children))}),Vn=(0,Y.forwardRef)(function(e,t){let{labelProps:n,inputProps:r,isSelected:i,isDisabled:a,isPressed:o,defaultClassName:s,inputRef:c}=(0,Y.useContext)(zn),l=Y.useContext(Ln),{isFocused:u,isFocusVisible:d,focusProps:f}=m(),p=a||l.isReadOnly,{hoverProps:h,isHovered:_}=_e({...e,isDisabled:p}),v=F({...e,defaultClassName:s,values:{isSelected:i,isPressed:o,isHovered:_,isFocused:u,isFocusVisible:d,isDisabled:a,isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isRequired:l.isRequired}}),y=K(e,{global:!0});return delete y.id,delete y.onClick,Y.createElement(be.label,{...E(y,n,h,v),ref:t,"data-selected":i||void 0,"data-pressed":o||void 0,"data-hovered":_||void 0,"data-focused":u||void 0,"data-focus-visible":d||void 0,"data-disabled":a||void 0,"data-readonly":l.isReadOnly||void 0,"data-invalid":l.isInvalid||void 0,"data-required":l.isRequired||void 0},Y.createElement(g,{elementType:`span`},Y.createElement(`input`,{...E(r,f),ref:c})),v.children)}),Z=ge(),Hn=(0,Y.createContext)({}),Un=({children:e,className:t,...n})=>{let r=Y.useMemo(()=>ke(),[]);return(0,Z.jsx)(Bn,{"data-slot":`radio`,...n,className:k(t,r.base()),children:t=>(0,Z.jsx)(Hn,{value:{slots:r,state:t},children:typeof e==`function`?e(t):e})})};Un.displayName=`HeroUI.Radio`;var Wn=({children:e,className:t,...n})=>{let{slots:r}=(0,Y.useContext)(Hn);return(0,Z.jsx)(Vn,{"data-slot":`radio-content`,...n,className:k(t,r?.content()),children:e})};Wn.displayName=`HeroUI.Radio.Content`;var Gn=({children:e,className:t,...n})=>{let{slots:r}=(0,Y.useContext)(Hn);return(0,Z.jsx)(oe.span,{className:f(r?.control,t),"data-slot":`radio-control`,...n,children:e})};Gn.displayName=`HeroUI.Radio.Control`;var Kn=({children:e,className:t,...n})=>{let{slots:r,state:i}=(0,Y.useContext)(Hn),a=typeof e==`function`?e(i??{}):e;return(0,Z.jsx)(oe.span,{"aria-hidden":`true`,className:f(r?.indicator,t),"data-slot":`radio-indicator`,...n,children:a})};Kn.displayName=`HeroUI.Radio.Indicator`;var Q=Object.assign(Un,{Root:Un,Content:Wn,Control:Gn,Indicator:Kn}),qn=({children:e,className:t,variant:n,...r})=>{let i=Y.useMemo(()=>Ae({variant:n}),[n]);return(0,Z.jsx)(Rn,{"data-slot":`radio-group`,...r,className:k(t,i),children:t=>(0,Z.jsx)(Z.Fragment,{children:typeof e==`function`?e(t):e})})},Jn=Object.assign(qn,{Root:qn}),Yn=(0,Y.createContext)({}),Xn=({children:e,className:t,fullWidth:n,variant:r,...i})=>{let a=Y.useMemo(()=>q({fullWidth:n,variant:r}),[n,r]);return(0,Z.jsx)(Yn,{value:{slots:a},children:(0,Z.jsx)(On,{"data-slot":`number-field`,...i,className:k(t,a?.base()),children:t=>(0,Z.jsx)(Z.Fragment,{children:typeof e==`function`?e(t):e})})})},$=Object.assign(Xn,{Root:Xn,Group:({children:e,className:n,...r})=>{let{slots:i}=(0,Y.useContext)(Yn);return(0,Z.jsx)(t,{className:k(n,i?.group()),"data-slot":`number-field-group`,...r,children:t=>(0,Z.jsx)(Z.Fragment,{children:typeof e==`function`?e(t):e})})},Input:({className:e,...t})=>{let{slots:n}=(0,Y.useContext)(Yn);return(0,Z.jsx)(Ee,{className:k(e,n?.input()),"data-slot":`number-field-input`,...t})},IncrementButton:({children:e,className:t,...n})=>{let{slots:r}=(0,Y.useContext)(Yn);return(0,Z.jsx)(h,{className:k(t,r?.incrementButton()),"data-slot":`number-field-increment-button`,slot:`increment`,...n,children:e&&Y.isValidElement(e)?e:(0,Z.jsx)(A,{"data-slot":`number-field-increment-button-icon`})})},DecrementButton:({children:e,className:t,...n})=>{let{slots:i}=(0,Y.useContext)(Yn);return(0,Z.jsx)(h,{className:k(t,i?.decrementButton()),"data-slot":`number-field-decrement-button`,slot:`decrement`,...n,children:e&&Y.isValidElement(e)?e:(0,Z.jsx)(r,{"data-slot":`number-field-decrement-button-icon`})})}}),Zn=ve(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),Qn=({value:e,onChange:t,disabled:n=!1,device:r=`desktop`})=>{let[i,a]=(0,Y.useState)(!1),[o,s]=(0,Y.useState)(`minute`),[c,l]=(0,Y.useState)(`interval`),[u,d]=(0,Y.useState)(10),[f,p]=(0,Y.useState)([]),[m,h]=(0,Y.useState)(`every`),[g,_]=(0,Y.useState)(1),[v,y]=(0,Y.useState)([]),[b,x]=(0,Y.useState)(`every`),[S,C]=(0,Y.useState)(1),[w,E]=(0,Y.useState)([]),[D,O]=(0,Y.useState)(`every`),[k,A]=(0,Y.useState)([]);(0,Y.useEffect)(()=>{if(!e||!i)return;let t=e.split(` `);if(t.length!==5)return;let[n,r]=t;n===`*`?l(`every`):n.startsWith(`*/`)?(l(`interval`),d(parseInt(n.slice(2))||10)):n.includes(`,`)&&(l(`specific`),p(n.split(`,`).map(Number).filter(e=>!isNaN(e)))),r===`*`?h(`every`):r.startsWith(`*/`)?(h(`interval`),_(parseInt(r.slice(2))||1)):r.includes(`,`)&&(h(`specific`),y(r.split(`,`).map(Number).filter(e=>!isNaN(e))))},[e,i]);let ee=()=>{let e=`*`,t=`*`,n=`*`,r=`*`;switch(c){case`every`:e=`*`;break;case`interval`:e=`*/${u}`;break;case`specific`:e=f.length>0?f.sort((e,t)=>e-t).join(`,`):`0`;break}switch(m){case`every`:t=`*`;break;case`interval`:t=`*/${g}`;break;case`specific`:t=v.length>0?v.sort((e,t)=>e-t).join(`,`):`0`;break}switch(b){case`every`:n=`*`;break;case`interval`:n=`*/${S}`;break;case`specific`:n=w.length>0?w.sort((e,t)=>e-t).join(`,`):`1`;break}switch(D){case`every`:r=`*`;break;case`specific`:r=k.length>0?k.sort((e,t)=>e-t).join(`,`):`*`;break}return`${e} ${t} ${n} * ${r}`},j=()=>{let e=``,t=``;c===`every`?t=`每分钟`:c===`interval`?t=`每 ${u} 分钟`:c===`specific`&&f.length>0&&(e=f.length<=5?`${f.join(`, `)} 分`:`每小时的 ${f.length} 个指定分钟`),m===`every`?t||=`每小时`:m===`interval`?t=t?`${t},每 ${g} 小时`:`每 ${g} 小时`:m===`specific`&&v.length>0&&(e=v.length<=6?`${v.join(`, `)} 点${e?` `+e:``}`:`每天的 ${v.length} 个指定时段${e?`的指定分钟`:``}`);let n=``;if(b===`interval`?n=`每 ${S} 天`:b===`specific`&&w.length>0&&(n=w.length<=5?`每月 ${w.join(`, `)} 号`:`每月的 ${w.length} 个指定日期`),D===`specific`&&k.length>0){let e=[`周日`,`周一`,`周二`,`周三`,`周四`,`周五`,`周六`],t=k.map(t=>e[t]);n=k.length===5&&k.every(e=>[1,2,3,4,5].includes(e))?n?`${n},工作日`:`工作日`:k.length===2&&k.every(e=>[0,6].includes(e))?n?`${n},周末`:`周末`:n?`${n},${t.join(`、`)}`:t.join(`、`)}let r=[n,e,t].filter(Boolean);return r.length===0?`每分钟执行一次`:r.join(`,`)+` 执行`},M=()=>{t(ee()),a(!1)},N=()=>(0,Z.jsxs)(`div`,{className:`space-y-4`,children:[(0,Z.jsx)(H,{className:`p-4`,children:(0,Z.jsxs)(Jn,{"aria-label":`分钟类型`,value:c,onChange:e=>l(e),children:[(0,Z.jsx)(V,{className:`text-base font-semibold`,children:`执行频率`}),(0,Z.jsx)(L,{className:`mb-3`,children:`选择任务在每小时内的执行方式`}),(0,Z.jsxs)(`div`,{className:`space-y-3`,children:[(0,Z.jsxs)(Q,{value:`every`,children:[(0,Z.jsxs)(Q.Content,{children:[(0,Z.jsx)(Q.Control,{children:(0,Z.jsx)(Q.Indicator,{})}),`每分钟`]}),(0,Z.jsx)(L,{children:`每分钟执行一次(共 60 次/小时)`})]}),(0,Z.jsxs)(Q,{value:`interval`,children:[(0,Z.jsxs)(Q.Content,{children:[(0,Z.jsx)(Q.Control,{children:(0,Z.jsx)(Q.Indicator,{})}),`间隔执行`]}),(0,Z.jsx)(L,{children:`按固定间隔分钟数执行`})]}),(0,Z.jsxs)(Q,{value:`specific`,children:[(0,Z.jsxs)(Q.Content,{children:[(0,Z.jsx)(Q.Control,{children:(0,Z.jsx)(Q.Indicator,{})}),`指定分钟`]}),(0,Z.jsx)(L,{children:`选择特定的分钟数执行`})]})]})]})}),c===`interval`&&(0,Z.jsxs)(H,{className:`p-4`,children:[(0,Z.jsx)(V,{className:`mb-2 text-base font-semibold`,children:`间隔设置`}),(0,Z.jsxs)($,{minValue:1,maxValue:59,value:u,onChange:d,children:[(0,Z.jsx)(V,{children:`间隔(分钟)`}),(0,Z.jsxs)($.Group,{children:[(0,Z.jsx)($.DecrementButton,{}),(0,Z.jsx)($.Input,{className:`w-24`}),(0,Z.jsx)($.IncrementButton,{})]}),(0,Z.jsxs)(L,{children:[`每 `,u,` 分钟执行一次`]})]})]}),c===`specific`&&(0,Z.jsxs)(H,{className:`p-4`,children:[(0,Z.jsx)(V,{className:`mb-2 text-base font-semibold`,children:`选择分钟`}),(0,Z.jsx)(L,{className:`mb-3`,children:`点击选择要执行的分钟数,可多选`}),(0,Z.jsx)(`div`,{className:`grid max-h-80 grid-cols-5 gap-2 overflow-y-auto p-1 md:grid-cols-10`,children:Array.from({length:60},(e,t)=>t).map(e=>(0,Z.jsx)(T,{className:`aspect-square min-w-0 shrink-0 p-0`,size:`sm`,variant:f.includes(e)?`primary`:`secondary`,onPress:()=>{p(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e].sort((e,t)=>e-t))},children:e},e))}),f.length>0&&(0,Z.jsxs)(L,{className:`mt-2`,children:[`已选择 `,f.length,` 个:`,f.join(`, `)]})]})]}),te=()=>(0,Z.jsxs)(`div`,{className:`space-y-4`,children:[(0,Z.jsx)(H,{className:`p-4`,children:(0,Z.jsxs)(Jn,{"aria-label":`小时类型`,value:m,onChange:e=>h(e),children:[(0,Z.jsx)(V,{className:`text-base font-semibold`,children:`执行频率`}),(0,Z.jsx)(L,{className:`mb-3`,children:`选择任务在每天内的执行方式`}),(0,Z.jsxs)(`div`,{className:`space-y-3`,children:[(0,Z.jsxs)(Q,{value:`every`,children:[(0,Z.jsxs)(Q.Content,{children:[(0,Z.jsx)(Q.Control,{children:(0,Z.jsx)(Q.Indicator,{})}),`每小时`]}),(0,Z.jsx)(L,{children:`每小时执行一次(共 24 次/天)`})]}),(0,Z.jsxs)(Q,{value:`interval`,children:[(0,Z.jsxs)(Q.Content,{children:[(0,Z.jsx)(Q.Control,{children:(0,Z.jsx)(Q.Indicator,{})}),`间隔执行`]}),(0,Z.jsx)(L,{children:`按固定间隔小时数执行`})]}),(0,Z.jsxs)(Q,{value:`specific`,children:[(0,Z.jsxs)(Q.Content,{children:[(0,Z.jsx)(Q.Control,{children:(0,Z.jsx)(Q.Indicator,{})}),`指定小时`]}),(0,Z.jsx)(L,{children:`选择特定的小时执行`})]})]})]})}),m===`interval`&&(0,Z.jsxs)(H,{className:`p-4`,children:[(0,Z.jsx)(V,{className:`mb-2 text-base font-semibold`,children:`间隔设置`}),(0,Z.jsxs)($,{minValue:1,maxValue:23,value:g,onChange:_,children:[(0,Z.jsx)(V,{children:`间隔(小时)`}),(0,Z.jsxs)($.Group,{children:[(0,Z.jsx)($.DecrementButton,{}),(0,Z.jsx)($.Input,{className:`w-24`}),(0,Z.jsx)($.IncrementButton,{})]}),(0,Z.jsxs)(L,{children:[`每 `,g,` 小时执行一次`]})]})]}),m===`specific`&&(0,Z.jsxs)(H,{className:`p-4`,children:[(0,Z.jsx)(V,{className:`mb-2 text-base font-semibold`,children:`选择小时`}),(0,Z.jsx)(L,{className:`mb-3`,children:`点击选择要执行的小时,可多选`}),(0,Z.jsx)(`div`,{className:`grid max-h-80 grid-cols-4 gap-2 overflow-y-auto p-1 md:grid-cols-6`,children:Array.from({length:24},(e,t)=>t).map(e=>(0,Z.jsx)(T,{className:`aspect-square min-w-0 shrink-0 p-0`,size:`sm`,variant:v.includes(e)?`primary`:`secondary`,onPress:()=>{y(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e].sort((e,t)=>e-t))},children:e},e))}),v.length>0&&(0,Z.jsxs)(L,{className:`mt-2`,children:[`已选择 `,v.length,` 个:`,v.map(e=>`${e}点`).join(`, `)]})]})]}),P=()=>(0,Z.jsxs)(`div`,{className:`space-y-4`,children:[(0,Z.jsx)(H,{className:`p-4`,children:(0,Z.jsxs)(Jn,{"aria-label":`日期类型`,value:b,onChange:e=>x(e),children:[(0,Z.jsx)(V,{className:`text-base font-semibold`,children:`执行频率`}),(0,Z.jsx)(L,{className:`mb-3`,children:`选择任务在每月内的执行方式`}),(0,Z.jsxs)(`div`,{className:`space-y-3`,children:[(0,Z.jsxs)(Q,{value:`every`,children:[(0,Z.jsxs)(Q.Content,{children:[(0,Z.jsx)(Q.Control,{children:(0,Z.jsx)(Q.Indicator,{})}),`每天`]}),(0,Z.jsx)(L,{children:`每天执行一次`})]}),(0,Z.jsxs)(Q,{value:`interval`,children:[(0,Z.jsxs)(Q.Content,{children:[(0,Z.jsx)(Q.Control,{children:(0,Z.jsx)(Q.Indicator,{})}),`间隔执行`]}),(0,Z.jsx)(L,{children:`按固定间隔天数执行`})]}),(0,Z.jsxs)(Q,{value:`specific`,children:[(0,Z.jsxs)(Q.Content,{children:[(0,Z.jsx)(Q.Control,{children:(0,Z.jsx)(Q.Indicator,{})}),`指定日期`]}),(0,Z.jsx)(L,{children:`选择特定的日期执行`})]})]})]})}),b===`interval`&&(0,Z.jsxs)(H,{className:`p-4`,children:[(0,Z.jsx)(V,{className:`mb-2 text-base font-semibold`,children:`间隔设置`}),(0,Z.jsxs)($,{minValue:1,maxValue:31,value:S,onChange:C,children:[(0,Z.jsx)(V,{children:`间隔(天)`}),(0,Z.jsxs)($.Group,{children:[(0,Z.jsx)($.DecrementButton,{}),(0,Z.jsx)($.Input,{className:`w-24`}),(0,Z.jsx)($.IncrementButton,{})]}),(0,Z.jsxs)(L,{children:[`每 `,S,` 天执行一次`]})]})]}),b===`specific`&&(0,Z.jsxs)(H,{className:`p-4`,children:[(0,Z.jsx)(V,{className:`mb-2 text-base font-semibold`,children:`选择日期`}),(0,Z.jsx)(L,{className:`mb-3`,children:`点击选择要执行的日期,可多选`}),(0,Z.jsx)(`div`,{className:`grid max-h-80 grid-cols-5 gap-2 overflow-y-auto p-1 md:grid-cols-7`,children:Array.from({length:31},(e,t)=>t+1).map(e=>(0,Z.jsx)(T,{className:`aspect-square min-w-0 shrink-0 p-0`,size:`sm`,variant:w.includes(e)?`primary`:`secondary`,onPress:()=>{E(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e].sort((e,t)=>e-t))},children:e},e))}),w.length>0&&(0,Z.jsxs)(L,{className:`mt-2`,children:[`已选择 `,w.length,` 个:`,w.map(e=>`${e}号`).join(`, `)]})]})]}),F=()=>(0,Z.jsxs)(`div`,{className:`space-y-4`,children:[(0,Z.jsx)(H,{className:`p-4`,children:(0,Z.jsxs)(Jn,{"aria-label":`星期类型`,value:D,onChange:e=>O(e),children:[(0,Z.jsx)(V,{className:`text-base font-semibold`,children:`执行频率`}),(0,Z.jsx)(L,{className:`mb-3`,children:`选择任务在每周内的执行方式`}),(0,Z.jsxs)(`div`,{className:`space-y-3`,children:[(0,Z.jsxs)(Q,{value:`every`,children:[(0,Z.jsxs)(Q.Content,{children:[(0,Z.jsx)(Q.Control,{children:(0,Z.jsx)(Q.Indicator,{})}),`每周`]}),(0,Z.jsx)(L,{children:`每天都执行`})]}),(0,Z.jsxs)(Q,{value:`specific`,children:[(0,Z.jsxs)(Q.Content,{children:[(0,Z.jsx)(Q.Control,{children:(0,Z.jsx)(Q.Indicator,{})}),`指定星期`]}),(0,Z.jsx)(L,{children:`选择特定的星期执行`})]})]})]})}),D===`specific`&&(0,Z.jsxs)(H,{className:`p-4`,children:[(0,Z.jsx)(V,{className:`mb-2 text-base font-semibold`,children:`选择星期`}),(0,Z.jsx)(L,{className:`mb-3`,children:`点击选择要执行的星期,可多选`}),(0,Z.jsx)(`div`,{className:`grid grid-cols-7 gap-2 p-1`,children:[`日`,`一`,`二`,`三`,`四`,`五`,`六`].map((e,t)=>(0,Z.jsx)(T,{className:`aspect-square min-w-0 shrink-0 p-0`,size:`sm`,variant:k.includes(t)?`primary`:`secondary`,onPress:()=>{A(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t].sort((e,t)=>e-t))},children:e},t))}),k.length>0&&(0,Z.jsxs)(L,{className:`mt-2`,children:[`已选择 `,k.length,` 天:`,k.map(e=>`周${`日一二三四五六`[e]}`).join(`, `)]})]})]}),I=r===`desktop`?`right`:`bottom`;return(0,Z.jsxs)(`div`,{className:`space-y-2`,children:[(0,Z.jsxs)(`div`,{className:`flex gap-2 flex-col`,children:[(0,Z.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Z.jsxs)(Se,{fullWidth:!0,isDisabled:!0,value:e,children:[(0,Z.jsx)(V,{className:`sr-only`,children:`定时任务表达式`}),(0,Z.jsx)(re,{placeholder:`*/10 * * * *`,"aria-label":`定时任务表达式`})]}),(0,Z.jsxs)(T,{isDisabled:n,variant:`secondary`,onPress:()=>a(!0),children:[(0,Z.jsx)(Zn,{className:`size-4`}),(0,Z.jsx)(`span`,{children:`编辑`})]})]}),(0,Z.jsxs)(L,{children:[`当前:`,e||`未设置`]})]}),(0,Z.jsx)(z.Backdrop,{isOpen:i,variant:`blur`,onOpenChange:a,children:(0,Z.jsx)(z.Content,{placement:I,children:(0,Z.jsxs)(z.Dialog,{className:r===`desktop`?`h-full w-120 max-w-[90vw]`:`max-h-[85dvh]`,children:[(0,Z.jsx)(z.Handle,{}),(0,Z.jsx)(z.CloseTrigger,{}),(0,Z.jsxs)(z.Header,{children:[(0,Z.jsx)(z.Heading,{children:`Cron 表达式编辑器`}),(0,Z.jsx)(L,{children:`可视化配置定时任务执行规则`})]}),(0,Z.jsxs)(z.Body,{className:`space-y-4`,children:[(0,Z.jsxs)(W,{selectedKey:o,onSelectionChange:e=>s(e),children:[(0,Z.jsx)(W.ListContainer,{children:(0,Z.jsxs)(W.List,{children:[(0,Z.jsxs)(W.Tab,{id:`minute`,children:[(0,Z.jsx)(`span`,{children:`分钟`}),(0,Z.jsx)(W.Indicator,{})]}),(0,Z.jsxs)(W.Tab,{id:`hour`,children:[(0,Z.jsx)(`span`,{children:`小时`}),(0,Z.jsx)(W.Indicator,{})]}),(0,Z.jsxs)(W.Tab,{id:`day`,children:[(0,Z.jsx)(`span`,{children:`日期`}),(0,Z.jsx)(W.Indicator,{})]}),(0,Z.jsxs)(W.Tab,{id:`week`,children:[(0,Z.jsx)(`span`,{children:`星期`}),(0,Z.jsx)(W.Indicator,{})]})]})}),(0,Z.jsx)(W.Panel,{id:`minute`,children:N()}),(0,Z.jsx)(W.Panel,{id:`hour`,children:te()}),(0,Z.jsx)(W.Panel,{id:`day`,children:P()}),(0,Z.jsx)(W.Panel,{id:`week`,children:F()})]}),(0,Z.jsx)(H,{className:`p-4`,children:(0,Z.jsxs)(`div`,{className:`space-y-3`,children:[(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(V,{className:`text-sm font-medium text-muted`,children:`Cron 表达式`}),(0,Z.jsx)(`code`,{className:`mt-1 block font-mono text-base font-semibold`,children:ee()})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(V,{className:`text-sm font-medium text-muted`,children:`执行规则`}),(0,Z.jsx)(`p`,{className:`mt-1 text-sm leading-relaxed`,children:j()})]})]})})]}),(0,Z.jsxs)(z.Footer,{children:[(0,Z.jsx)(T,{className:`flex-1`,slot:`close`,variant:`tertiary`,children:`取消`}),(0,Z.jsx)(T,{className:`flex-1`,variant:`primary`,onPress:M,children:`确定`})]})]})})})]})};export{Qn as default};
@@ -0,0 +1 @@
1
+ import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./ThemeSwitch-DcAlzu8R.js";import{C as l,Ft as u,N as d,P as f,Pt as p,S as m,a as h,dt as g,h as _,i as v,lt as y,n as b,o as x,pt as S,r as C,s as w,ut as T}from"./index-zS6iiHmV.js";var E=g({base:`separator`,defaultVariants:{orientation:`horizontal`,variant:`default`},variants:{orientation:{horizontal:`separator--horizontal`,vertical:`separator--vertical`},variant:{default:`separator--default`,secondary:`separator--secondary`,tertiary:`separator--tertiary`}}}),D=S(),O=({className:e,orientation:t,variant:n,...r})=>{let i=y(f),a=t??i?.orientation??`horizontal`;return(0,D.jsx)(d,{"data-orientation":a,"data-slot":`separator`,orientation:a,className:E({orientation:a,variant:n,className:e}),...r})},k=Object.assign(O,{Root:O}),A=C(`panel-left-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),j=u(p(),1),M=({activeMenu:e})=>(0,D.jsx)(`div`,{className:`mx-auto w-full max-w-7xl px-4`,children:(()=>{switch(e){case`config`:return(0,D.jsx)(b,{device:`desktop`});case`about`:return(0,D.jsx)(o,{});default:return(0,D.jsx)(b,{device:`desktop`})}})()}),N=[{id:`config`,label:`配置管理`,icon:n},{id:`about`,label:`关于插件`,icon:t}],P=({collapsed:e,activeMenu:t,onMenuChange:n})=>{let a=w(()=>{window.open(`https://kkk.karinjs.com`,`_blank`,`noopener,noreferrer`)}),o=w(()=>{h(),window.location.reload()});return e?null:(0,D.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,D.jsx)(`div`,{className:`shrink-0 px-4 pt-3 pb-2`,children:(0,D.jsxs)(_,{children:[(0,D.jsx)(_.Trigger,{"aria-label":`用户信息`,children:(0,D.jsxs)(`div`,{className:`flex w-full items-center gap-3 rounded-lg p-2 transition-colors hover:bg-default-100 cursor-pointer`,tabIndex:0,children:[(0,D.jsxs)(l,{size:`lg`,children:[(0,D.jsx)(l.Image,{src:i}),(0,D.jsx)(l.Fallback,{children:`ikenxuan`})]}),(0,D.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col items-start`,children:[(0,D.jsx)(`p`,{className:`truncate text-lg font-semibold`,children:`炫炫`}),(0,D.jsx)(`p`,{className:`truncate text-md text-muted`,children:`Super Admin`})]})]})}),(0,D.jsx)(_.Content,{className:`w-60`,children:(0,D.jsxs)(_.Dialog,{children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-3 pb-3`,children:[(0,D.jsxs)(l,{size:`md`,children:[(0,D.jsx)(l.Image,{src:i}),(0,D.jsx)(l.Fallback,{children:`U`})]}),(0,D.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,D.jsx)(`p`,{className:`truncate font-medium`,children:`用户`}),(0,D.jsx)(`p`,{className:`truncate text-md text-muted`,children:`Super Admin`})]})]}),(0,D.jsx)(k,{className:`my-2`}),(0,D.jsx)(`p`,{className:`text-xs text-muted`,children:`当前身份:管理员`})]})})]})}),(0,D.jsx)(`nav`,{className:`flex flex-1 flex-col gap-1 overflow-y-auto px-3 py-3`,"aria-label":`主导航`,children:N.map(e=>{let r=e.icon,i=t===e.id;return(0,D.jsxs)(m,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:i?`tertiary`:`ghost`,"aria-label":e.label,"aria-current":i?`page`:void 0,onPress:()=>n(e.id),children:[(0,D.jsx)(r,{size:20,className:T(`shrink-0 mr-3`,!i&&`text-muted`),"aria-hidden":`true`}),(0,D.jsx)(`span`,{className:T(`truncate`,i&&`font-medium`),children:e.label})]},e.id)})}),(0,D.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-1 px-3 py-3`,children:[(0,D.jsxs)(m,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`查看帮助文档`,onPress:a,children:[(0,D.jsx)(r,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,D.jsx)(`span`,{className:`truncate`,children:`帮助文档`})]}),(0,D.jsxs)(m,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`登出`,onPress:o,children:[(0,D.jsx)(s,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,D.jsx)(`span`,{className:`truncate`,children:`登出`})]})]})]})},F=({onToggleSidebar:t,sidebarCollapsed:n,currentMenuLabel:r})=>(0,D.jsxs)(`div`,{className:`flex w-full items-center justify-between`,children:[(0,D.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,D.jsx)(m,{isIconOnly:!0,variant:`ghost`,onPress:t,"aria-label":n?`展开侧边栏`:`折叠侧边栏`,"aria-expanded":!n,children:n?(0,D.jsx)(a,{size:20,"aria-hidden":`true`}):(0,D.jsx)(A,{size:20,"aria-hidden":`true`})}),n&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(e,{size:24,"aria-hidden":`true`}),(0,D.jsx)(`h1`,{className:`truncate text-lg font-semibold`,children:`KKK Config`})]}),!n&&(0,D.jsx)(`h1`,{className:`truncate text-lg font-semibold`,children:r||`配置管理面板`})]}),(0,D.jsx)(c,{})]}),I=[{id:`config`,label:`配置管理`,icon:n},{id:`about`,label:`关于插件`,icon:t}],L=({activeMenu:e,onMenuChange:t})=>{let[n,{toggle:r}]=x(!1),i=(0,j.useRef)(null);return(0,j.useEffect)(()=>{i.current&&(n?v.to(i.current,{width:0,opacity:0,borderRightWidth:0,duration:.3,ease:`power2.inOut`,onComplete:()=>{i.current&&(i.current.style.display=`none`)}}):(i.current.style.display=`flex`,v.fromTo(i.current,{width:0,opacity:0,borderRightWidth:0},{width:260,opacity:1,borderRightWidth:1,duration:.3,ease:`power2.inOut`})))},[n]),(0,D.jsxs)(`div`,{className:`flex h-screen overflow-hidden`,children:[(0,D.jsx)(`aside`,{ref:i,className:`flex h-full w-65 shrink-0 flex-col border-r border-default-100`,"aria-label":`侧边栏导航`,children:(0,D.jsx)(P,{collapsed:n,activeMenu:e,onMenuChange:t,onToggleCollapse:r})}),(0,D.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col overflow-hidden`,children:[(0,D.jsx)(`header`,{className:`flex h-16 shrink-0 items-center px-6`,children:(0,D.jsx)(F,{onToggleSidebar:r,sidebarCollapsed:n,currentMenuLabel:I.find(t=>t.id===e)?.label})}),(0,D.jsx)(`main`,{className:`scrollbar flex-1 overflow-y-auto p-6`,id:`main-content`,children:(0,D.jsx)(`div`,{"data-scrollbar":`thin`,children:(0,D.jsx)(M,{activeMenu:e})})})]})]})};export{L as default};
@@ -0,0 +1 @@
1
+ import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./ThemeSwitch-DcAlzu8R.js";import{C as l,Ft as u,Pt as d,S as f,a as p,g as m,m as h,n as g,o as _,pt as v,r as y,s as b,ut as x}from"./index-zS6iiHmV.js";var S=y(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),C=v(),w=({activeMenu:e})=>(0,C.jsx)(`div`,{className:`w-full max-w-2xl mx-auto`,children:(()=>{switch(e){case`config`:return(0,C.jsx)(g,{device:`mobile`});case`about`:return(0,C.jsx)(o,{});default:return(0,C.jsx)(g,{device:`mobile`})}})()}),T=u(d(),1),E=[{id:`config`,label:`配置管理`,icon:n},{id:`about`,label:`关于插件`,icon:t}],D=({open:e,onClose:t,activeMenu:n,onMenuChange:a})=>{let o=b(()=>{window.open(`https://kkk.karinjs.com`,`_blank`,`noopener,noreferrer`)}),c=b(()=>{p(),window.location.reload()});return(0,T.useEffect)(()=>{let n=n=>{n.key===`Escape`&&e&&t()};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,t]),(0,T.useEffect)(()=>(e?document.body.style.overflow=`hidden`:document.body.style.overflow=``,()=>{document.body.style.overflow=``}),[e]),(0,C.jsx)(m.Backdrop,{isOpen:e,isDismissable:!0,className:`backdrop-blur-sm`,onOpenChange:e=>{e||t()},children:(0,C.jsx)(m.Content,{placement:`right`,children:(0,C.jsxs)(m.Dialog,{className:`px-4`,children:[(0,C.jsxs)(m.Header,{className:`flex items-center justify-between pb-4`,children:[(0,C.jsx)(m.Heading,{className:`text-lg font-semibold`,children:`菜单`}),(0,C.jsx)(m.CloseTrigger,{"aria-label":`关闭菜单`,className:`mr-2`,children:(0,C.jsx)(S,{size:24,"aria-hidden":`true`})})]}),(0,C.jsxs)(m.Body,{className:`flex flex-col`,children:[(0,C.jsx)(`div`,{className:`shrink-0 pb-5`,children:(0,C.jsxs)(`div`,{className:`flex items-center gap-3 px-1`,children:[(0,C.jsxs)(l,{size:`md`,children:[(0,C.jsx)(l.Image,{src:i}),(0,C.jsx)(l.Fallback,{children:`ikenxuan`})]}),(0,C.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,C.jsx)(`p`,{className:`truncate text-sm font-medium`,children:`炫炫`}),(0,C.jsx)(`p`,{className:`truncate text-xs text-muted`,children:`Super Admin`})]})]})}),(0,C.jsx)(`nav`,{className:`flex flex-1 flex-col gap-2 overflow-y-auto`,"aria-label":`主导航`,children:E.map(e=>{let t=e.icon,r=n===e.id;return(0,C.jsxs)(f,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:r?`tertiary`:`ghost`,"aria-label":e.label,"aria-current":r?`page`:void 0,onPress:()=>a(e.id),children:[(0,C.jsx)(t,{size:20,className:x(`shrink-0 mr-3`,!r&&`text-muted`),"aria-hidden":`true`}),(0,C.jsx)(`span`,{className:x(`truncate`,r&&`font-semibold`),children:e.label})]},e.id)})}),(0,C.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-2`,children:[(0,C.jsxs)(f,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`查看帮助文档`,onPress:o,children:[(0,C.jsx)(r,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,C.jsx)(`span`,{className:`truncate`,children:`帮助文档`})]}),(0,C.jsxs)(f,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`登出`,onPress:c,children:[(0,C.jsx)(s,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,C.jsx)(`span`,{className:`truncate`,children:`登出`})]})]})]})]})})})},O=({onOpenDrawer:t})=>(0,C.jsxs)(`div`,{className:`flex h-full items-center justify-between px-4`,children:[(0,C.jsx)(c,{className:`shrink-0`}),(0,C.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center justify-center gap-2 px-2`,children:[(0,C.jsx)(e,{size:22,"aria-hidden":`true`}),(0,C.jsx)(`h1`,{className:`truncate text-base font-semibold`,children:`KKK Config`})]}),(0,C.jsx)(f,{isIconOnly:!0,className:`shrink-0`,variant:`ghost`,onPress:t,"aria-label":`打开菜单`,"aria-expanded":!1,children:(0,C.jsx)(a,{size:24,"aria-hidden":`true`})})]}),k=({activeMenu:e,onMenuChange:t})=>{let[n,{setTrue:r,setFalse:i}]=_(!1),a=b(e=>{t(e),i()});return(0,C.jsxs)(h,{"data-scrollbar":`thin`,className:`flex min-h-screen flex-col`,children:[(0,C.jsx)(`header`,{className:`sticky top-0 z-50 h-14 shrink-0 backdrop-blur-xs mask-[linear-gradient(to_bottom,black_40%,transparent_100%)]`,children:(0,C.jsx)(O,{onOpenDrawer:r})}),(0,C.jsx)(D,{open:n,onClose:i,activeMenu:e,onMenuChange:a}),(0,C.jsx)(`main`,{className:`scrollbar flex-1 overflow-y-auto p-4`,id:`main-content`,children:(0,C.jsx)(w,{activeMenu:e})})]})};export{k as default};
@@ -1 +1 @@
1
- import{b as e,c as t,f as n,ft as r,r as i,t as a,x as o}from"./index-Bz9RVG7l.js";var s=i(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),c=i(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),l=i(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),u=i(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),d=i(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),f=i(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),p=i(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),m=i(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),h=i(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),g=r(),_=()=>{let n=e=>{window.open(e,`_blank`)};return(0,g.jsxs)(e,{className:`mx-auto max-w-3xl`,children:[(0,g.jsxs)(e.Header,{className:`items-center text-center gap-4 pt-8 pb-6`,children:[(0,g.jsx)(p,{size:64,"aria-hidden":`true`}),(0,g.jsx)(e.Title,{children:`karin-plugin-kkk`}),(0,g.jsx)(e.Description,{children:`版本 2.33.0`})]}),(0,g.jsxs)(e.Content,{className:`flex flex-col gap-6 pb-8`,children:[(0,g.jsxs)(`section`,{children:[(0,g.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`插件简介`}),(0,g.jsx)(t,{children:`Karin 的「抖音」「B站」视频解析/动态推送插件。 支持视频解析、动态推送、扫码登录等功能。`})]}),(0,g.jsxs)(`section`,{children:[(0,g.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`开发者`}),(0,g.jsx)(t,{children:`ikenxuan, sj817`})]}),(0,g.jsxs)(`section`,{children:[(0,g.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`相关链接`}),(0,g.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-3`,children:[(0,g.jsxs)(o,{variant:`outline`,onPress:()=>n(`https://github.com/ikenxuan/karin-plugin-kkk`),children:[(0,g.jsx)(c,{size:18,"aria-hidden":`true`}),(0,g.jsx)(`span`,{children:`GitHub 仓库`})]}),(0,g.jsxs)(o,{variant:`outline`,onPress:()=>n(`https://github.com/ikenxuan/karin-plugin-kkk/issues`),children:[(0,g.jsx)(c,{size:18,"aria-hidden":`true`}),(0,g.jsx)(`span`,{children:`反馈问题`})]})]})]})]})]})},v=`https://github.com/ikenxuan.png`,y=({className:e})=>{let{isDark:t,toggleTheme:r}=a();return(0,g.jsxs)(n,{delay:1,closeDelay:1,children:[(0,g.jsx)(o,{isIconOnly:!0,"aria-label":t?`切换到浅色模式`:`切换到深色模式`,className:e,variant:`ghost`,onPress:r,children:t?(0,g.jsx)(h,{size:20,"aria-hidden":`true`}):(0,g.jsx)(f,{size:20,"aria-hidden":`true`})}),(0,g.jsx)(n.Content,{children:t?`浅色模式`:`深色模式`})]})};export{p as a,l as c,m as i,s as l,v as n,d as o,_ as r,u as s,y as t};
1
+ import{S as e,c as t,f as n,pt as r,r as i,t as a,x as o}from"./index-zS6iiHmV.js";var s=i(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),c=i(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),l=i(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),u=i(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),d=i(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),f=i(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),p=i(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),m=i(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),h=i(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),g=r(),_=()=>{let n=e=>{window.open(e,`_blank`)};return(0,g.jsxs)(o,{className:`mx-auto max-w-3xl`,children:[(0,g.jsxs)(o.Header,{className:`items-center text-center gap-4 pt-8 pb-6`,children:[(0,g.jsx)(p,{size:64,"aria-hidden":`true`}),(0,g.jsx)(o.Title,{children:`karin-plugin-kkk`}),(0,g.jsx)(o.Description,{children:`版本 2.33.0`})]}),(0,g.jsxs)(o.Content,{className:`flex flex-col gap-6 pb-8`,children:[(0,g.jsxs)(`section`,{children:[(0,g.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`插件简介`}),(0,g.jsx)(t,{children:`Karin 的「抖音」「B站」视频解析/动态推送插件。 支持视频解析、动态推送、扫码登录等功能。`})]}),(0,g.jsxs)(`section`,{children:[(0,g.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`开发者`}),(0,g.jsx)(t,{children:`ikenxuan, sj817`})]}),(0,g.jsxs)(`section`,{children:[(0,g.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`相关链接`}),(0,g.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-3`,children:[(0,g.jsxs)(e,{variant:`outline`,onPress:()=>n(`https://github.com/ikenxuan/karin-plugin-kkk`),children:[(0,g.jsx)(c,{size:18,"aria-hidden":`true`}),(0,g.jsx)(`span`,{children:`GitHub 仓库`})]}),(0,g.jsxs)(e,{variant:`outline`,onPress:()=>n(`https://github.com/ikenxuan/karin-plugin-kkk/issues`),children:[(0,g.jsx)(c,{size:18,"aria-hidden":`true`}),(0,g.jsx)(`span`,{children:`反馈问题`})]})]})]})]})]})},v=`https://github.com/ikenxuan.png`,y=({className:t})=>{let{isDark:r,toggleTheme:i}=a();return(0,g.jsxs)(n,{delay:1,closeDelay:1,children:[(0,g.jsx)(e,{isIconOnly:!0,"aria-label":r?`切换到浅色模式`:`切换到深色模式`,className:t,variant:`ghost`,onPress:i,children:r?(0,g.jsx)(h,{size:20,"aria-hidden":`true`}):(0,g.jsx)(f,{size:20,"aria-hidden":`true`})}),(0,g.jsx)(n.Content,{children:r?`浅色模式`:`深色模式`})]})};export{p as a,l as c,m as i,s as l,v as n,d as o,_ as r,u as s,y as t};