libre-webui 0.3.0 → 0.3.2
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.
- package/README.md +53 -21
- package/backend/dist/services/pluginService.d.ts.map +1 -1
- package/backend/dist/services/pluginService.js +9 -2
- package/backend/dist/services/pluginService.js.map +1 -1
- package/frontend/dist/assets/{index-BAlYrgVl.js → index-BbJ5OmoO.js} +4 -4
- package/frontend/dist/index.html +5 -5
- package/frontend/dist/js/{ArtifactContainer-DOyRNr2K.js → ArtifactContainer-BeIYvOxW.js} +1 -1
- package/frontend/dist/js/{ArtifactDemoPage-DuHnKjTy.js → ArtifactDemoPage-DLNsXpdK.js} +1 -1
- package/frontend/dist/js/{ChatPage-D4AGvUr9.js → ChatPage-B1ySV3lW.js} +2 -2
- package/frontend/dist/js/{GalleryPage-DPxs-JHF.js → GalleryPage-BRYMP7Q3.js} +1 -1
- package/frontend/dist/js/{ModelsPage-CDx8DvZ8.js → ModelsPage-7lF58OTC.js} +1 -1
- package/frontend/dist/js/{PersonasPage-CHDGv_Lh.js → PersonasPage-Cc_gMLv0.js} +1 -1
- package/frontend/dist/js/{UserManagementPage-COb0e5_w.js → UserManagementPage-DqV3zxVm.js} +1 -1
- package/frontend/dist/js/{markdown-vendor-DRtqGHm3.js → markdown-vendor-YWiGftdn.js} +1 -1
- package/frontend/dist/js/router-vendor-CnU0qKrY.js +3 -0
- package/frontend/dist/js/{ui-vendor-DA07XX1l.js → ui-vendor-CdKqcMKK.js} +1 -1
- package/frontend/dist/js/{utils-vendor-DNzxLBGx.js → utils-vendor-DEeF42mN.js} +1 -1
- package/package.json +1 -2
- package/frontend/dist/js/router-vendor-B-t91v39.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as Se}from"./router-vendor-B-t91v39.js";function Et(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Et(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function $o(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Et(e))&&(n&&(n+=" "),n+=t);return n}const ir=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},ar=(e,t)=>({classGroupId:e,validator:t}),Rt=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),ve="-",et=[],lr="arbitrary..",cr=e=>{const t=dr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return ur(s);const a=s.split(ve),u=a[0]===""&&a.length>1?1:0;return At(a,u,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const u=n[s],c=r[s];return u?c?ir(c,u):u:c||et}return r[s]||et}}},At=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],i=r.nextPart.get(o);if(i){const c=At(e,t+1,i);if(c)return c}const s=r.validators;if(s===null)return;const a=t===0?e.join(ve):e.slice(t).join(ve),u=s.length;for(let c=0;c<u;c++){const d=s[c];if(d.validator(a))return d.classGroupId}},ur=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?lr+n:void 0})(),dr=e=>{const{theme:t,classGroups:r}=e;return fr(r,t)},fr=(e,t)=>{const r=Rt();for(const n in e){const o=e[n];We(o,r,n,t)}return r},We=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];pr(s,t,r,n)}},pr=(e,t,r,n)=>{if(typeof e=="string"){mr(e,t,r);return}if(typeof e=="function"){hr(e,t,r,n);return}br(e,t,r,n)},mr=(e,t,r)=>{const n=e===""?t:Ot(t,e);n.classGroupId=r},hr=(e,t,r,n)=>{if(gr(e)){We(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(ar(r,e))},br=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[a,u]=o[s];We(u,Ot(t,a),r,n)}},Ot=(e,t)=>{let r=e;const n=t.split(ve),o=n.length;for(let i=0;i<o;i++){const s=n[i];let a=r.nextPart.get(s);a||(a=Rt(),r.nextPart.set(s,a)),r=a}return r},gr=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,yr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(i,s)=>{r[i]=s,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let s=r[i];if(s!==void 0)return s;if((s=n[i])!==void 0)return o(i,s),s},set(i,s){i in r?r[i]=s:o(i,s)}}},qe="!",tt=":",wr=[],rt=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),xr=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let s=0,a=0,u=0,c;const d=o.length;for(let g=0;g<d;g++){const p=o[g];if(s===0&&a===0){if(p===tt){i.push(o.slice(u,g)),u=g+1;continue}if(p==="/"){c=g;continue}}p==="["?s++:p==="]"?s--:p==="("?a++:p===")"&&a--}const m=i.length===0?o:o.slice(u);let k=m,R=!1;m.endsWith(qe)?(k=m.slice(0,-1),R=!0):m.startsWith(qe)&&(k=m.slice(1),R=!0);const f=c&&c>u?c-u:void 0;return rt(i,R,k,f)};if(t){const o=t+tt,i=n;n=s=>s.startsWith(o)?i(s.slice(o.length)):rt(wr,!1,s,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},kr=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const s=r[i],a=s[0]==="[",u=t.has(s);a||u?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(s)):o.push(s)}return o.length>0&&(o.sort(),n.push(...o)),n}},Sr=e=>({cache:yr(e.cacheSize),parseClassName:xr(e),sortModifiers:kr(e),...cr(e)}),Er=/\s+/,Rr=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Er);let u="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{isExternal:m,modifiers:k,hasImportantModifier:R,baseClassName:f,maybePostfixModifierPosition:g}=r(d);if(m){u=d+(u.length>0?" "+u:u);continue}let p=!!g,E=n(p?f.substring(0,g):f);if(!E){if(!p){u=d+(u.length>0?" "+u:u);continue}if(E=n(f),!E){u=d+(u.length>0?" "+u:u);continue}p=!1}const U=k.length===0?"":k.length===1?k[0]:i(k).join(":"),A=R?U+qe:U,O=A+E;if(s.indexOf(O)>-1)continue;s.push(O);const N=o(E,p);for(let j=0;j<N.length;++j){const F=N[j];s.push(A+F)}u=d+(u.length>0?" "+u:u)}return u},Ar=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=Tt(r))&&(o&&(o+=" "),o+=n);return o},Tt=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Tt(e[n]))&&(r&&(r+=" "),r+=t);return r},Or=(e,...t)=>{let r,n,o,i;const s=u=>{const c=t.reduce((d,m)=>m(d),e());return r=Sr(c),n=r.cache.get,o=r.cache.set,i=a,a(u)},a=u=>{const c=n(u);if(c)return c;const d=Rr(u,r);return o(u,d),d};return i=s,(...u)=>i(Ar(...u))},Tr=[],P=e=>{const t=r=>r[e]||Tr;return t.isThemeGetter=!0,t},Ct=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,vt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Cr=/^\d+\/\d+$/,vr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Fr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_r=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ne=e=>Cr.test(e),S=e=>!!e&&!Number.isNaN(Number(e)),Y=e=>!!e&&Number.isInteger(Number(e)),je=e=>e.endsWith("%")&&S(e.slice(0,-1)),K=e=>vr.test(e),Lr=()=>!0,Ur=e=>Pr.test(e)&&!Nr.test(e),Pt=()=>!1,zr=e=>Fr.test(e),jr=e=>_r.test(e),Br=e=>!h(e)&&!b(e),Ir=e=>se(e,_t,Pt),h=e=>Ct.test(e),Z=e=>se(e,Lt,Ur),Be=e=>se(e,$r,S),nt=e=>se(e,Nt,Pt),Dr=e=>se(e,Ft,jr),Ee=e=>se(e,Ut,zr),b=e=>vt.test(e),fe=e=>ie(e,Lt),Mr=e=>ie(e,Vr),ot=e=>ie(e,Nt),qr=e=>ie(e,_t),Hr=e=>ie(e,Ft),Re=e=>ie(e,Ut,!0),se=(e,t,r)=>{const n=Ct.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},ie=(e,t,r=!1)=>{const n=vt.exec(e);return n?n[1]?t(n[1]):r:!1},Nt=e=>e==="position"||e==="percentage",Ft=e=>e==="image"||e==="url",_t=e=>e==="length"||e==="size"||e==="bg-size",Lt=e=>e==="length",$r=e=>e==="number",Vr=e=>e==="family-name",Ut=e=>e==="shadow",Gr=()=>{const e=P("color"),t=P("font"),r=P("text"),n=P("font-weight"),o=P("tracking"),i=P("leading"),s=P("breakpoint"),a=P("container"),u=P("spacing"),c=P("radius"),d=P("shadow"),m=P("inset-shadow"),k=P("text-shadow"),R=P("drop-shadow"),f=P("blur"),g=P("perspective"),p=P("aspect"),E=P("ease"),U=P("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...O(),b,h],j=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],w=()=>[b,h,u],B=()=>[ne,"full","auto",...w()],ce=()=>[Y,"none","subgrid",b,h],ue=()=>["auto",{span:["full",Y,b,h]},Y,b,h],W=()=>[Y,"auto",b,h],X=()=>["auto","min","max","fr",b,h],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...w()],$=()=>[ne,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],y=()=>[e,b,h],de=()=>[...O(),ot,nt,{position:[b,h]}],ye=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",qr,Ir,{size:[b,h]}],V=()=>[je,fe,Z],v=()=>["","none","full",c,b,h],_=()=>["",S,fe,Z],Q=()=>["solid","dashed","dotted","double"],Qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>[S,je,ot,nt],Ze=()=>["","none",f,b,h],we=()=>["none",S,b,h],xe=()=>["none",S,b,h],ze=()=>[S,b,h],ke=()=>[ne,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[K],breakpoint:[K],color:[Lr],container:[K],"drop-shadow":[K],ease:["in","out","in-out"],font:[Br],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[K],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[K],shadow:[K],spacing:["px",S],text:[K],"text-shadow":[K],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ne,h,b,p]}],container:["container"],columns:[{columns:[S,h,b,a]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[Y,"auto",b,h]}],basis:[{basis:[ne,"full","auto",a,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[S,ne,"auto","initial","none",h]}],grow:[{grow:["",S,b,h]}],shrink:[{shrink:["",S,b,h]}],order:[{order:[Y,"first","last","none",b,h]}],"grid-cols":[{"grid-cols":ce()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[a,"screen",...$()]}],"min-w":[{"min-w":[a,"screen","none",...$()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",r,fe,Z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,b,Be]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",je,h]}],"font-family":[{font:[Mr,h,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,b,h]}],"line-clamp":[{"line-clamp":[S,"none",b,Be]}],leading:[{leading:[i,...w()]}],"list-image":[{"list-image":["none",b,h]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",b,h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[S,"from-font","auto",b,Z]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[S,"auto",b,h]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b,h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",b,h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:ye()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Y,b,h],radial:["",b,h],conic:[Y,b,h]},Hr,Dr]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:v()}],"rounded-s":[{"rounded-s":v()}],"rounded-e":[{"rounded-e":v()}],"rounded-t":[{"rounded-t":v()}],"rounded-r":[{"rounded-r":v()}],"rounded-b":[{"rounded-b":v()}],"rounded-l":[{"rounded-l":v()}],"rounded-ss":[{"rounded-ss":v()}],"rounded-se":[{"rounded-se":v()}],"rounded-ee":[{"rounded-ee":v()}],"rounded-es":[{"rounded-es":v()}],"rounded-tl":[{"rounded-tl":v()}],"rounded-tr":[{"rounded-tr":v()}],"rounded-br":[{"rounded-br":v()}],"rounded-bl":[{"rounded-bl":v()}],"border-w":[{border:_()}],"border-w-x":[{"border-x":_()}],"border-w-y":[{"border-y":_()}],"border-w-s":[{"border-s":_()}],"border-w-e":[{"border-e":_()}],"border-w-t":[{"border-t":_()}],"border-w-r":[{"border-r":_()}],"border-w-b":[{"border-b":_()}],"border-w-l":[{"border-l":_()}],"divide-x":[{"divide-x":_()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":_()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[S,b,h]}],"outline-w":[{outline:["",S,fe,Z]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",d,Re,Ee]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",m,Re,Ee]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[S,Z]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":_()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",k,Re,Ee]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[S,b,h]}],"mix-blend":[{"mix-blend":[...Qe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Qe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[S]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[b,h]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[S]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:ye()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",b,h]}],filter:[{filter:["","none",b,h]}],blur:[{blur:Ze()}],brightness:[{brightness:[S,b,h]}],contrast:[{contrast:[S,b,h]}],"drop-shadow":[{"drop-shadow":["","none",R,Re,Ee]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",S,b,h]}],"hue-rotate":[{"hue-rotate":[S,b,h]}],invert:[{invert:["",S,b,h]}],saturate:[{saturate:[S,b,h]}],sepia:[{sepia:["",S,b,h]}],"backdrop-filter":[{"backdrop-filter":["","none",b,h]}],"backdrop-blur":[{"backdrop-blur":Ze()}],"backdrop-brightness":[{"backdrop-brightness":[S,b,h]}],"backdrop-contrast":[{"backdrop-contrast":[S,b,h]}],"backdrop-grayscale":[{"backdrop-grayscale":["",S,b,h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S,b,h]}],"backdrop-invert":[{"backdrop-invert":["",S,b,h]}],"backdrop-opacity":[{"backdrop-opacity":[S,b,h]}],"backdrop-saturate":[{"backdrop-saturate":[S,b,h]}],"backdrop-sepia":[{"backdrop-sepia":["",S,b,h]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",b,h]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[S,"initial",b,h]}],ease:[{ease:["linear","initial",E,b,h]}],delay:[{delay:[S,b,h]}],animate:[{animate:["none",U,b,h]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,b,h]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:we()}],"rotate-x":[{"rotate-x":we()}],"rotate-y":[{"rotate-y":we()}],"rotate-z":[{"rotate-z":we()}],scale:[{scale:xe()}],"scale-x":[{"scale-x":xe()}],"scale-y":[{"scale-y":xe()}],"scale-z":[{"scale-z":xe()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[b,h,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ke()}],"translate-x":[{"translate-x":ke()}],"translate-y":[{"translate-y":ke()}],"translate-z":[{"translate-z":ke()}],"translate-none":["translate-none"],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",b,h]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b,h]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[S,fe,Z,Be]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Vo=Or(Gr),st=e=>{let t;const r=new Set,n=(c,d)=>{const m=typeof c=="function"?c(t):c;if(!Object.is(m,t)){const k=t;t=d??(typeof m!="object"||m===null)?m:Object.assign({},t,m),r.forEach(R=>R(t,k))}},o=()=>t,a={setState:n,getState:o,getInitialState:()=>u,subscribe:c=>(r.add(c),()=>r.delete(c))},u=t=e(n,o,a);return a},Wr=(e=>e?st(e):st),Jr=e=>e;function Kr(e,t=Jr){const r=Se.useSyncExternalStore(e.subscribe,Se.useCallback(()=>t(e.getState()),[e,t]),Se.useCallback(()=>t(e.getInitialState()),[e,t]));return Se.useDebugValue(r),r}const it=e=>{const t=Wr(e),r=n=>Kr(t,n);return Object.assign(r,t),r},Go=(e=>e?it(e):it);function zt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Xr}=Object.prototype,{getPrototypeOf:Je}=Object,{iterator:Ne,toStringTag:jt}=Symbol,Fe=(e=>t=>{const r=Xr.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),H=e=>(e=e.toLowerCase(),t=>Fe(t)===e),_e=e=>t=>typeof t===e,{isArray:ae}=Array,oe=_e("undefined");function me(e){return e!==null&&!oe(e)&&e.constructor!==null&&!oe(e.constructor)&&I(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Bt=H("ArrayBuffer");function Yr(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Bt(e.buffer),t}const Qr=_e("string"),I=_e("function"),It=_e("number"),he=e=>e!==null&&typeof e=="object",Zr=e=>e===!0||e===!1,Oe=e=>{if(Fe(e)!=="object")return!1;const t=Je(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(jt in e)&&!(Ne in e)},en=e=>{if(!he(e)||me(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},tn=H("Date"),rn=H("File"),nn=H("Blob"),on=H("FileList"),sn=e=>he(e)&&I(e.pipe),an=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||I(e.append)&&((t=Fe(e))==="formdata"||t==="object"&&I(e.toString)&&e.toString()==="[object FormData]"))},ln=H("URLSearchParams"),[cn,un,dn,fn]=["ReadableStream","Request","Response","Headers"].map(H),pn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function be(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),ae(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(me(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(n=0;n<s;n++)a=i[n],t.call(null,e[a],a,e)}}function Dt(e,t){if(me(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const ee=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mt=e=>!oe(e)&&e!==ee;function He(){const{caseless:e,skipUndefined:t}=Mt(this)&&this||{},r={},n=(o,i)=>{const s=e&&Dt(r,i)||i;Oe(r[s])&&Oe(o)?r[s]=He(r[s],o):Oe(o)?r[s]=He({},o):ae(o)?r[s]=o.slice():(!t||!oe(o))&&(r[s]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&be(arguments[o],n);return r}const mn=(e,t,r,{allOwnKeys:n}={})=>(be(t,(o,i)=>{r&&I(o)?e[i]=zt(o,r):e[i]=o},{allOwnKeys:n}),e),hn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bn=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},gn=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&Je(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},yn=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},wn=e=>{if(!e)return null;if(ae(e))return e;let t=e.length;if(!It(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},xn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Je(Uint8Array)),kn=(e,t)=>{const n=(e&&e[Ne]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Sn=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},En=H("HTMLFormElement"),Rn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),at=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),An=H("RegExp"),qt=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};be(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},On=e=>{qt(e,(t,r)=>{if(I(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(I(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Tn=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return ae(e)?n(e):n(String(e).split(t)),r},Cn=()=>{},vn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Pn(e){return!!(e&&I(e.append)&&e[jt]==="FormData"&&e[Ne])}const Nn=e=>{const t=new Array(10),r=(n,o)=>{if(he(n)){if(t.indexOf(n)>=0)return;if(me(n))return n;if(!("toJSON"in n)){t[o]=n;const i=ae(n)?[]:{};return be(n,(s,a)=>{const u=r(s,o+1);!oe(u)&&(i[a]=u)}),t[o]=void 0,i}}return n};return r(e,0)},Fn=H("AsyncFunction"),_n=e=>e&&(he(e)||I(e))&&I(e.then)&&I(e.catch),Ht=((e,t)=>e?setImmediate:t?((r,n)=>(ee.addEventListener("message",({source:o,data:i})=>{o===ee&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),ee.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",I(ee.postMessage)),Ln=typeof queueMicrotask<"u"?queueMicrotask.bind(ee):typeof process<"u"&&process.nextTick||Ht,Un=e=>e!=null&&I(e[Ne]),l={isArray:ae,isArrayBuffer:Bt,isBuffer:me,isFormData:an,isArrayBufferView:Yr,isString:Qr,isNumber:It,isBoolean:Zr,isObject:he,isPlainObject:Oe,isEmptyObject:en,isReadableStream:cn,isRequest:un,isResponse:dn,isHeaders:fn,isUndefined:oe,isDate:tn,isFile:rn,isBlob:nn,isRegExp:An,isFunction:I,isStream:sn,isURLSearchParams:ln,isTypedArray:xn,isFileList:on,forEach:be,merge:He,extend:mn,trim:pn,stripBOM:hn,inherits:bn,toFlatObject:gn,kindOf:Fe,kindOfTest:H,endsWith:yn,toArray:wn,forEachEntry:kn,matchAll:Sn,isHTMLForm:En,hasOwnProperty:at,hasOwnProp:at,reduceDescriptors:qt,freezeMethods:On,toObjectSet:Tn,toCamelCase:Rn,noop:Cn,toFiniteNumber:vn,findKey:Dt,global:ee,isContextDefined:Mt,isSpecCompliantForm:Pn,toJSONObject:Nn,isAsyncFn:Fn,isThenable:_n,setImmediate:Ht,asap:Ln,isIterable:Un};function x(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}l.inherits(x,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:l.toJSONObject(this.config),code:this.code,status:this.status}}});const $t=x.prototype,Vt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Vt[e]={value:e}});Object.defineProperties(x,Vt);Object.defineProperty($t,"isAxiosError",{value:!0});x.from=(e,t,r,n,o,i)=>{const s=Object.create($t);l.toFlatObject(e,s,function(d){return d!==Error.prototype},c=>c!=="isAxiosError");const a=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return x.call(s,a,u,r,n,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const zn=null;function $e(e){return l.isPlainObject(e)||l.isArray(e)}function Gt(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function lt(e,t,r){return e?e.concat(t).map(function(o,i){return o=Gt(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function jn(e){return l.isArray(e)&&!e.some($e)}const Bn=l.toFlatObject(l,{},null,function(t){return/^is[A-Z]/.test(t)});function Le(e,t,r){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=l.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!l.isUndefined(p[g])});const n=r.metaTokens,o=r.visitor||d,i=r.dots,s=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(t);if(!l.isFunction(o))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(l.isDate(f))return f.toISOString();if(l.isBoolean(f))return f.toString();if(!u&&l.isBlob(f))throw new x("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(f)||l.isTypedArray(f)?u&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function d(f,g,p){let E=f;if(f&&!p&&typeof f=="object"){if(l.endsWith(g,"{}"))g=n?g:g.slice(0,-2),f=JSON.stringify(f);else if(l.isArray(f)&&jn(f)||(l.isFileList(f)||l.endsWith(g,"[]"))&&(E=l.toArray(f)))return g=Gt(g),E.forEach(function(A,O){!(l.isUndefined(A)||A===null)&&t.append(s===!0?lt([g],O,i):s===null?g:g+"[]",c(A))}),!1}return $e(f)?!0:(t.append(lt(p,g,i),c(f)),!1)}const m=[],k=Object.assign(Bn,{defaultVisitor:d,convertValue:c,isVisitable:$e});function R(f,g){if(!l.isUndefined(f)){if(m.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));m.push(f),l.forEach(f,function(E,U){(!(l.isUndefined(E)||E===null)&&o.call(t,E,l.isString(U)?U.trim():U,g,k))===!0&&R(E,g?g.concat(U):[U])}),m.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return R(e),t}function ct(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ke(e,t){this._pairs=[],e&&Le(e,this,t)}const Wt=Ke.prototype;Wt.append=function(t,r){this._pairs.push([t,r])};Wt.toString=function(t){const r=t?function(n){return t.call(this,n,ct)}:ct;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function In(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jt(e,t,r){if(!t)return e;const n=r&&r.encode||In;l.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=l.isURLSearchParams(t)?t.toString():new Ke(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ut{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){l.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Kt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dn=typeof URLSearchParams<"u"?URLSearchParams:Ke,Mn=typeof FormData<"u"?FormData:null,qn=typeof Blob<"u"?Blob:null,Hn={isBrowser:!0,classes:{URLSearchParams:Dn,FormData:Mn,Blob:qn},protocols:["http","https","file","blob","url","data"]},Xe=typeof window<"u"&&typeof document<"u",Ve=typeof navigator=="object"&&navigator||void 0,$n=Xe&&(!Ve||["ReactNative","NativeScript","NS"].indexOf(Ve.product)<0),Vn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Gn=Xe&&window.location.href||"http://localhost",Wn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xe,hasStandardBrowserEnv:$n,hasStandardBrowserWebWorkerEnv:Vn,navigator:Ve,origin:Gn},Symbol.toStringTag,{value:"Module"})),z={...Wn,...Hn};function Jn(e,t){return Le(e,new z.classes.URLSearchParams,{visitor:function(r,n,o,i){return z.isNode&&l.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Kn(e){return l.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Xn(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Xt(e){function t(r,n,o,i){let s=r[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),u=i>=r.length;return s=!s&&l.isArray(o)?o.length:s,u?(l.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!l.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&l.isArray(o[s])&&(o[s]=Xn(o[s])),!a)}if(l.isFormData(e)&&l.isFunction(e.entries)){const r={};return l.forEachEntry(e,(n,o)=>{t(Kn(n),o,r,0)}),r}return null}function Yn(e,t,r){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ge={transitional:Kt,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=l.isObject(t);if(i&&l.isHTMLForm(t)&&(t=new FormData(t)),l.isFormData(t))return o?JSON.stringify(Xt(t)):t;if(l.isArrayBuffer(t)||l.isBuffer(t)||l.isStream(t)||l.isFile(t)||l.isBlob(t)||l.isReadableStream(t))return t;if(l.isArrayBufferView(t))return t.buffer;if(l.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Jn(t,this.formSerializer).toString();if((a=l.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Le(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Yn(t)):t}],transformResponse:[function(t){const r=this.transitional||ge.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(l.isResponse(t)||l.isReadableStream(t))return t;if(t&&l.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?x.from(a,x.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:z.classes.FormData,Blob:z.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch"],e=>{ge.headers[e]={}});const Qn=l.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Zn=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
1
|
+
import{R as Se}from"./router-vendor-CnU0qKrY.js";function Et(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Et(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function $o(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Et(e))&&(n&&(n+=" "),n+=t);return n}const ir=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},ar=(e,t)=>({classGroupId:e,validator:t}),Rt=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),ve="-",et=[],lr="arbitrary..",cr=e=>{const t=dr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return ur(s);const a=s.split(ve),u=a[0]===""&&a.length>1?1:0;return At(a,u,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const u=n[s],c=r[s];return u?c?ir(c,u):u:c||et}return r[s]||et}}},At=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],i=r.nextPart.get(o);if(i){const c=At(e,t+1,i);if(c)return c}const s=r.validators;if(s===null)return;const a=t===0?e.join(ve):e.slice(t).join(ve),u=s.length;for(let c=0;c<u;c++){const d=s[c];if(d.validator(a))return d.classGroupId}},ur=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?lr+n:void 0})(),dr=e=>{const{theme:t,classGroups:r}=e;return fr(r,t)},fr=(e,t)=>{const r=Rt();for(const n in e){const o=e[n];We(o,r,n,t)}return r},We=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];pr(s,t,r,n)}},pr=(e,t,r,n)=>{if(typeof e=="string"){mr(e,t,r);return}if(typeof e=="function"){hr(e,t,r,n);return}br(e,t,r,n)},mr=(e,t,r)=>{const n=e===""?t:Ot(t,e);n.classGroupId=r},hr=(e,t,r,n)=>{if(gr(e)){We(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(ar(r,e))},br=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[a,u]=o[s];We(u,Ot(t,a),r,n)}},Ot=(e,t)=>{let r=e;const n=t.split(ve),o=n.length;for(let i=0;i<o;i++){const s=n[i];let a=r.nextPart.get(s);a||(a=Rt(),r.nextPart.set(s,a)),r=a}return r},gr=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,yr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(i,s)=>{r[i]=s,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let s=r[i];if(s!==void 0)return s;if((s=n[i])!==void 0)return o(i,s),s},set(i,s){i in r?r[i]=s:o(i,s)}}},qe="!",tt=":",wr=[],rt=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),xr=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let s=0,a=0,u=0,c;const d=o.length;for(let g=0;g<d;g++){const p=o[g];if(s===0&&a===0){if(p===tt){i.push(o.slice(u,g)),u=g+1;continue}if(p==="/"){c=g;continue}}p==="["?s++:p==="]"?s--:p==="("?a++:p===")"&&a--}const m=i.length===0?o:o.slice(u);let k=m,R=!1;m.endsWith(qe)?(k=m.slice(0,-1),R=!0):m.startsWith(qe)&&(k=m.slice(1),R=!0);const f=c&&c>u?c-u:void 0;return rt(i,R,k,f)};if(t){const o=t+tt,i=n;n=s=>s.startsWith(o)?i(s.slice(o.length)):rt(wr,!1,s,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},kr=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const s=r[i],a=s[0]==="[",u=t.has(s);a||u?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(s)):o.push(s)}return o.length>0&&(o.sort(),n.push(...o)),n}},Sr=e=>({cache:yr(e.cacheSize),parseClassName:xr(e),sortModifiers:kr(e),...cr(e)}),Er=/\s+/,Rr=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Er);let u="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{isExternal:m,modifiers:k,hasImportantModifier:R,baseClassName:f,maybePostfixModifierPosition:g}=r(d);if(m){u=d+(u.length>0?" "+u:u);continue}let p=!!g,E=n(p?f.substring(0,g):f);if(!E){if(!p){u=d+(u.length>0?" "+u:u);continue}if(E=n(f),!E){u=d+(u.length>0?" "+u:u);continue}p=!1}const U=k.length===0?"":k.length===1?k[0]:i(k).join(":"),A=R?U+qe:U,O=A+E;if(s.indexOf(O)>-1)continue;s.push(O);const N=o(E,p);for(let j=0;j<N.length;++j){const F=N[j];s.push(A+F)}u=d+(u.length>0?" "+u:u)}return u},Ar=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=Tt(r))&&(o&&(o+=" "),o+=n);return o},Tt=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Tt(e[n]))&&(r&&(r+=" "),r+=t);return r},Or=(e,...t)=>{let r,n,o,i;const s=u=>{const c=t.reduce((d,m)=>m(d),e());return r=Sr(c),n=r.cache.get,o=r.cache.set,i=a,a(u)},a=u=>{const c=n(u);if(c)return c;const d=Rr(u,r);return o(u,d),d};return i=s,(...u)=>i(Ar(...u))},Tr=[],P=e=>{const t=r=>r[e]||Tr;return t.isThemeGetter=!0,t},Ct=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,vt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Cr=/^\d+\/\d+$/,vr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Fr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_r=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ne=e=>Cr.test(e),S=e=>!!e&&!Number.isNaN(Number(e)),Y=e=>!!e&&Number.isInteger(Number(e)),je=e=>e.endsWith("%")&&S(e.slice(0,-1)),K=e=>vr.test(e),Lr=()=>!0,Ur=e=>Pr.test(e)&&!Nr.test(e),Pt=()=>!1,zr=e=>Fr.test(e),jr=e=>_r.test(e),Br=e=>!h(e)&&!b(e),Ir=e=>se(e,_t,Pt),h=e=>Ct.test(e),Z=e=>se(e,Lt,Ur),Be=e=>se(e,$r,S),nt=e=>se(e,Nt,Pt),Dr=e=>se(e,Ft,jr),Ee=e=>se(e,Ut,zr),b=e=>vt.test(e),fe=e=>ie(e,Lt),Mr=e=>ie(e,Vr),ot=e=>ie(e,Nt),qr=e=>ie(e,_t),Hr=e=>ie(e,Ft),Re=e=>ie(e,Ut,!0),se=(e,t,r)=>{const n=Ct.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},ie=(e,t,r=!1)=>{const n=vt.exec(e);return n?n[1]?t(n[1]):r:!1},Nt=e=>e==="position"||e==="percentage",Ft=e=>e==="image"||e==="url",_t=e=>e==="length"||e==="size"||e==="bg-size",Lt=e=>e==="length",$r=e=>e==="number",Vr=e=>e==="family-name",Ut=e=>e==="shadow",Gr=()=>{const e=P("color"),t=P("font"),r=P("text"),n=P("font-weight"),o=P("tracking"),i=P("leading"),s=P("breakpoint"),a=P("container"),u=P("spacing"),c=P("radius"),d=P("shadow"),m=P("inset-shadow"),k=P("text-shadow"),R=P("drop-shadow"),f=P("blur"),g=P("perspective"),p=P("aspect"),E=P("ease"),U=P("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...O(),b,h],j=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],w=()=>[b,h,u],B=()=>[ne,"full","auto",...w()],ce=()=>[Y,"none","subgrid",b,h],ue=()=>["auto",{span:["full",Y,b,h]},Y,b,h],W=()=>[Y,"auto",b,h],X=()=>["auto","min","max","fr",b,h],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...w()],$=()=>[ne,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],y=()=>[e,b,h],de=()=>[...O(),ot,nt,{position:[b,h]}],ye=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",qr,Ir,{size:[b,h]}],V=()=>[je,fe,Z],v=()=>["","none","full",c,b,h],_=()=>["",S,fe,Z],Q=()=>["solid","dashed","dotted","double"],Qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>[S,je,ot,nt],Ze=()=>["","none",f,b,h],we=()=>["none",S,b,h],xe=()=>["none",S,b,h],ze=()=>[S,b,h],ke=()=>[ne,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[K],breakpoint:[K],color:[Lr],container:[K],"drop-shadow":[K],ease:["in","out","in-out"],font:[Br],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[K],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[K],shadow:[K],spacing:["px",S],text:[K],"text-shadow":[K],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ne,h,b,p]}],container:["container"],columns:[{columns:[S,h,b,a]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[Y,"auto",b,h]}],basis:[{basis:[ne,"full","auto",a,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[S,ne,"auto","initial","none",h]}],grow:[{grow:["",S,b,h]}],shrink:[{shrink:["",S,b,h]}],order:[{order:[Y,"first","last","none",b,h]}],"grid-cols":[{"grid-cols":ce()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[a,"screen",...$()]}],"min-w":[{"min-w":[a,"screen","none",...$()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",r,fe,Z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,b,Be]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",je,h]}],"font-family":[{font:[Mr,h,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,b,h]}],"line-clamp":[{"line-clamp":[S,"none",b,Be]}],leading:[{leading:[i,...w()]}],"list-image":[{"list-image":["none",b,h]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",b,h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[S,"from-font","auto",b,Z]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[S,"auto",b,h]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b,h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",b,h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:ye()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Y,b,h],radial:["",b,h],conic:[Y,b,h]},Hr,Dr]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:v()}],"rounded-s":[{"rounded-s":v()}],"rounded-e":[{"rounded-e":v()}],"rounded-t":[{"rounded-t":v()}],"rounded-r":[{"rounded-r":v()}],"rounded-b":[{"rounded-b":v()}],"rounded-l":[{"rounded-l":v()}],"rounded-ss":[{"rounded-ss":v()}],"rounded-se":[{"rounded-se":v()}],"rounded-ee":[{"rounded-ee":v()}],"rounded-es":[{"rounded-es":v()}],"rounded-tl":[{"rounded-tl":v()}],"rounded-tr":[{"rounded-tr":v()}],"rounded-br":[{"rounded-br":v()}],"rounded-bl":[{"rounded-bl":v()}],"border-w":[{border:_()}],"border-w-x":[{"border-x":_()}],"border-w-y":[{"border-y":_()}],"border-w-s":[{"border-s":_()}],"border-w-e":[{"border-e":_()}],"border-w-t":[{"border-t":_()}],"border-w-r":[{"border-r":_()}],"border-w-b":[{"border-b":_()}],"border-w-l":[{"border-l":_()}],"divide-x":[{"divide-x":_()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":_()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[S,b,h]}],"outline-w":[{outline:["",S,fe,Z]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",d,Re,Ee]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",m,Re,Ee]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[S,Z]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":_()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",k,Re,Ee]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[S,b,h]}],"mix-blend":[{"mix-blend":[...Qe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Qe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[S]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[b,h]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[S]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:ye()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",b,h]}],filter:[{filter:["","none",b,h]}],blur:[{blur:Ze()}],brightness:[{brightness:[S,b,h]}],contrast:[{contrast:[S,b,h]}],"drop-shadow":[{"drop-shadow":["","none",R,Re,Ee]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",S,b,h]}],"hue-rotate":[{"hue-rotate":[S,b,h]}],invert:[{invert:["",S,b,h]}],saturate:[{saturate:[S,b,h]}],sepia:[{sepia:["",S,b,h]}],"backdrop-filter":[{"backdrop-filter":["","none",b,h]}],"backdrop-blur":[{"backdrop-blur":Ze()}],"backdrop-brightness":[{"backdrop-brightness":[S,b,h]}],"backdrop-contrast":[{"backdrop-contrast":[S,b,h]}],"backdrop-grayscale":[{"backdrop-grayscale":["",S,b,h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S,b,h]}],"backdrop-invert":[{"backdrop-invert":["",S,b,h]}],"backdrop-opacity":[{"backdrop-opacity":[S,b,h]}],"backdrop-saturate":[{"backdrop-saturate":[S,b,h]}],"backdrop-sepia":[{"backdrop-sepia":["",S,b,h]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",b,h]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[S,"initial",b,h]}],ease:[{ease:["linear","initial",E,b,h]}],delay:[{delay:[S,b,h]}],animate:[{animate:["none",U,b,h]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,b,h]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:we()}],"rotate-x":[{"rotate-x":we()}],"rotate-y":[{"rotate-y":we()}],"rotate-z":[{"rotate-z":we()}],scale:[{scale:xe()}],"scale-x":[{"scale-x":xe()}],"scale-y":[{"scale-y":xe()}],"scale-z":[{"scale-z":xe()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[b,h,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ke()}],"translate-x":[{"translate-x":ke()}],"translate-y":[{"translate-y":ke()}],"translate-z":[{"translate-z":ke()}],"translate-none":["translate-none"],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",b,h]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b,h]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[S,fe,Z,Be]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Vo=Or(Gr),st=e=>{let t;const r=new Set,n=(c,d)=>{const m=typeof c=="function"?c(t):c;if(!Object.is(m,t)){const k=t;t=d??(typeof m!="object"||m===null)?m:Object.assign({},t,m),r.forEach(R=>R(t,k))}},o=()=>t,a={setState:n,getState:o,getInitialState:()=>u,subscribe:c=>(r.add(c),()=>r.delete(c))},u=t=e(n,o,a);return a},Wr=(e=>e?st(e):st),Jr=e=>e;function Kr(e,t=Jr){const r=Se.useSyncExternalStore(e.subscribe,Se.useCallback(()=>t(e.getState()),[e,t]),Se.useCallback(()=>t(e.getInitialState()),[e,t]));return Se.useDebugValue(r),r}const it=e=>{const t=Wr(e),r=n=>Kr(t,n);return Object.assign(r,t),r},Go=(e=>e?it(e):it);function zt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Xr}=Object.prototype,{getPrototypeOf:Je}=Object,{iterator:Ne,toStringTag:jt}=Symbol,Fe=(e=>t=>{const r=Xr.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),H=e=>(e=e.toLowerCase(),t=>Fe(t)===e),_e=e=>t=>typeof t===e,{isArray:ae}=Array,oe=_e("undefined");function me(e){return e!==null&&!oe(e)&&e.constructor!==null&&!oe(e.constructor)&&I(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Bt=H("ArrayBuffer");function Yr(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Bt(e.buffer),t}const Qr=_e("string"),I=_e("function"),It=_e("number"),he=e=>e!==null&&typeof e=="object",Zr=e=>e===!0||e===!1,Oe=e=>{if(Fe(e)!=="object")return!1;const t=Je(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(jt in e)&&!(Ne in e)},en=e=>{if(!he(e)||me(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},tn=H("Date"),rn=H("File"),nn=H("Blob"),on=H("FileList"),sn=e=>he(e)&&I(e.pipe),an=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||I(e.append)&&((t=Fe(e))==="formdata"||t==="object"&&I(e.toString)&&e.toString()==="[object FormData]"))},ln=H("URLSearchParams"),[cn,un,dn,fn]=["ReadableStream","Request","Response","Headers"].map(H),pn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function be(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),ae(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(me(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(n=0;n<s;n++)a=i[n],t.call(null,e[a],a,e)}}function Dt(e,t){if(me(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const ee=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mt=e=>!oe(e)&&e!==ee;function He(){const{caseless:e,skipUndefined:t}=Mt(this)&&this||{},r={},n=(o,i)=>{const s=e&&Dt(r,i)||i;Oe(r[s])&&Oe(o)?r[s]=He(r[s],o):Oe(o)?r[s]=He({},o):ae(o)?r[s]=o.slice():(!t||!oe(o))&&(r[s]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&be(arguments[o],n);return r}const mn=(e,t,r,{allOwnKeys:n}={})=>(be(t,(o,i)=>{r&&I(o)?e[i]=zt(o,r):e[i]=o},{allOwnKeys:n}),e),hn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bn=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},gn=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&Je(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},yn=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},wn=e=>{if(!e)return null;if(ae(e))return e;let t=e.length;if(!It(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},xn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Je(Uint8Array)),kn=(e,t)=>{const n=(e&&e[Ne]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Sn=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},En=H("HTMLFormElement"),Rn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),at=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),An=H("RegExp"),qt=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};be(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},On=e=>{qt(e,(t,r)=>{if(I(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(I(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Tn=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return ae(e)?n(e):n(String(e).split(t)),r},Cn=()=>{},vn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Pn(e){return!!(e&&I(e.append)&&e[jt]==="FormData"&&e[Ne])}const Nn=e=>{const t=new Array(10),r=(n,o)=>{if(he(n)){if(t.indexOf(n)>=0)return;if(me(n))return n;if(!("toJSON"in n)){t[o]=n;const i=ae(n)?[]:{};return be(n,(s,a)=>{const u=r(s,o+1);!oe(u)&&(i[a]=u)}),t[o]=void 0,i}}return n};return r(e,0)},Fn=H("AsyncFunction"),_n=e=>e&&(he(e)||I(e))&&I(e.then)&&I(e.catch),Ht=((e,t)=>e?setImmediate:t?((r,n)=>(ee.addEventListener("message",({source:o,data:i})=>{o===ee&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),ee.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",I(ee.postMessage)),Ln=typeof queueMicrotask<"u"?queueMicrotask.bind(ee):typeof process<"u"&&process.nextTick||Ht,Un=e=>e!=null&&I(e[Ne]),l={isArray:ae,isArrayBuffer:Bt,isBuffer:me,isFormData:an,isArrayBufferView:Yr,isString:Qr,isNumber:It,isBoolean:Zr,isObject:he,isPlainObject:Oe,isEmptyObject:en,isReadableStream:cn,isRequest:un,isResponse:dn,isHeaders:fn,isUndefined:oe,isDate:tn,isFile:rn,isBlob:nn,isRegExp:An,isFunction:I,isStream:sn,isURLSearchParams:ln,isTypedArray:xn,isFileList:on,forEach:be,merge:He,extend:mn,trim:pn,stripBOM:hn,inherits:bn,toFlatObject:gn,kindOf:Fe,kindOfTest:H,endsWith:yn,toArray:wn,forEachEntry:kn,matchAll:Sn,isHTMLForm:En,hasOwnProperty:at,hasOwnProp:at,reduceDescriptors:qt,freezeMethods:On,toObjectSet:Tn,toCamelCase:Rn,noop:Cn,toFiniteNumber:vn,findKey:Dt,global:ee,isContextDefined:Mt,isSpecCompliantForm:Pn,toJSONObject:Nn,isAsyncFn:Fn,isThenable:_n,setImmediate:Ht,asap:Ln,isIterable:Un};function x(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}l.inherits(x,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:l.toJSONObject(this.config),code:this.code,status:this.status}}});const $t=x.prototype,Vt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Vt[e]={value:e}});Object.defineProperties(x,Vt);Object.defineProperty($t,"isAxiosError",{value:!0});x.from=(e,t,r,n,o,i)=>{const s=Object.create($t);l.toFlatObject(e,s,function(d){return d!==Error.prototype},c=>c!=="isAxiosError");const a=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return x.call(s,a,u,r,n,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const zn=null;function $e(e){return l.isPlainObject(e)||l.isArray(e)}function Gt(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function lt(e,t,r){return e?e.concat(t).map(function(o,i){return o=Gt(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function jn(e){return l.isArray(e)&&!e.some($e)}const Bn=l.toFlatObject(l,{},null,function(t){return/^is[A-Z]/.test(t)});function Le(e,t,r){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=l.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!l.isUndefined(p[g])});const n=r.metaTokens,o=r.visitor||d,i=r.dots,s=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(t);if(!l.isFunction(o))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(l.isDate(f))return f.toISOString();if(l.isBoolean(f))return f.toString();if(!u&&l.isBlob(f))throw new x("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(f)||l.isTypedArray(f)?u&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function d(f,g,p){let E=f;if(f&&!p&&typeof f=="object"){if(l.endsWith(g,"{}"))g=n?g:g.slice(0,-2),f=JSON.stringify(f);else if(l.isArray(f)&&jn(f)||(l.isFileList(f)||l.endsWith(g,"[]"))&&(E=l.toArray(f)))return g=Gt(g),E.forEach(function(A,O){!(l.isUndefined(A)||A===null)&&t.append(s===!0?lt([g],O,i):s===null?g:g+"[]",c(A))}),!1}return $e(f)?!0:(t.append(lt(p,g,i),c(f)),!1)}const m=[],k=Object.assign(Bn,{defaultVisitor:d,convertValue:c,isVisitable:$e});function R(f,g){if(!l.isUndefined(f)){if(m.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));m.push(f),l.forEach(f,function(E,U){(!(l.isUndefined(E)||E===null)&&o.call(t,E,l.isString(U)?U.trim():U,g,k))===!0&&R(E,g?g.concat(U):[U])}),m.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return R(e),t}function ct(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ke(e,t){this._pairs=[],e&&Le(e,this,t)}const Wt=Ke.prototype;Wt.append=function(t,r){this._pairs.push([t,r])};Wt.toString=function(t){const r=t?function(n){return t.call(this,n,ct)}:ct;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function In(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jt(e,t,r){if(!t)return e;const n=r&&r.encode||In;l.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=l.isURLSearchParams(t)?t.toString():new Ke(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ut{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){l.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Kt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dn=typeof URLSearchParams<"u"?URLSearchParams:Ke,Mn=typeof FormData<"u"?FormData:null,qn=typeof Blob<"u"?Blob:null,Hn={isBrowser:!0,classes:{URLSearchParams:Dn,FormData:Mn,Blob:qn},protocols:["http","https","file","blob","url","data"]},Xe=typeof window<"u"&&typeof document<"u",Ve=typeof navigator=="object"&&navigator||void 0,$n=Xe&&(!Ve||["ReactNative","NativeScript","NS"].indexOf(Ve.product)<0),Vn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Gn=Xe&&window.location.href||"http://localhost",Wn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xe,hasStandardBrowserEnv:$n,hasStandardBrowserWebWorkerEnv:Vn,navigator:Ve,origin:Gn},Symbol.toStringTag,{value:"Module"})),z={...Wn,...Hn};function Jn(e,t){return Le(e,new z.classes.URLSearchParams,{visitor:function(r,n,o,i){return z.isNode&&l.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Kn(e){return l.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Xn(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Xt(e){function t(r,n,o,i){let s=r[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),u=i>=r.length;return s=!s&&l.isArray(o)?o.length:s,u?(l.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!l.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&l.isArray(o[s])&&(o[s]=Xn(o[s])),!a)}if(l.isFormData(e)&&l.isFunction(e.entries)){const r={};return l.forEachEntry(e,(n,o)=>{t(Kn(n),o,r,0)}),r}return null}function Yn(e,t,r){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ge={transitional:Kt,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=l.isObject(t);if(i&&l.isHTMLForm(t)&&(t=new FormData(t)),l.isFormData(t))return o?JSON.stringify(Xt(t)):t;if(l.isArrayBuffer(t)||l.isBuffer(t)||l.isStream(t)||l.isFile(t)||l.isBlob(t)||l.isReadableStream(t))return t;if(l.isArrayBufferView(t))return t.buffer;if(l.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Jn(t,this.formSerializer).toString();if((a=l.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Le(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Yn(t)):t}],transformResponse:[function(t){const r=this.transitional||ge.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(l.isResponse(t)||l.isReadableStream(t))return t;if(t&&l.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?x.from(a,x.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:z.classes.FormData,Blob:z.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch"],e=>{ge.headers[e]={}});const Qn=l.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Zn=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
2
2
|
`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&Qn[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},dt=Symbol("internals");function pe(e){return e&&String(e).trim().toLowerCase()}function Te(e){return e===!1||e==null?e:l.isArray(e)?e.map(Te):String(e)}function eo(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const to=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ie(e,t,r,n,o){if(l.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!l.isString(t)){if(l.isString(n))return t.indexOf(n)!==-1;if(l.isRegExp(n))return n.test(t)}}function ro(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function no(e,t){const r=l.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}let D=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(a,u,c){const d=pe(u);if(!d)throw new Error("header name must be a non-empty string");const m=l.findKey(o,d);(!m||o[m]===void 0||c===!0||c===void 0&&o[m]!==!1)&&(o[m||u]=Te(a))}const s=(a,u)=>l.forEach(a,(c,d)=>i(c,d,u));if(l.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(l.isString(t)&&(t=t.trim())&&!to(t))s(Zn(t),r);else if(l.isObject(t)&&l.isIterable(t)){let a={},u,c;for(const d of t){if(!l.isArray(d))throw TypeError("Object iterator must return a key-value pair");a[c=d[0]]=(u=a[c])?l.isArray(u)?[...u,d[1]]:[u,d[1]]:d[1]}s(a,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=pe(t),t){const n=l.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return eo(o);if(l.isFunction(r))return r.call(this,o,n);if(l.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=pe(t),t){const n=l.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Ie(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=pe(s),s){const a=l.findKey(n,s);a&&(!r||Ie(n,n[a],a,r))&&(delete n[a],o=!0)}}return l.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||Ie(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return l.forEach(this,(o,i)=>{const s=l.findKey(n,i);if(s){r[s]=Te(o),delete r[i];return}const a=t?ro(i):String(i).trim();a!==i&&delete r[i],r[a]=Te(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return l.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&l.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
3
3
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[dt]=this[dt]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=pe(s);n[a]||(no(o,s),n[a]=!0)}return l.isArray(t)?t.forEach(i):i(t),this}};D.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);l.reduceDescriptors(D.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});l.freezeMethods(D);function De(e,t){const r=this||ge,n=t||r,o=D.from(n.headers);let i=n.data;return l.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Yt(e){return!!(e&&e.__CANCEL__)}function le(e,t,r){x.call(this,e??"canceled",x.ERR_CANCELED,t,r),this.name="CanceledError"}l.inherits(le,x,{__CANCEL__:!0});function Qt(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new x("Request failed with status code "+r.status,[x.ERR_BAD_REQUEST,x.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function oo(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function so(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=n[i];s||(s=c),r[o]=u,n[o]=c;let m=i,k=0;for(;m!==o;)k+=r[m++],m=m%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const R=d&&c-d;return R?Math.round(k*1e3/R):void 0}}function io(e,t){let r=0,n=1e3/t,o,i;const s=(c,d=Date.now())=>{r=d,o=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const d=Date.now(),m=d-r;m>=n?s(c,d):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},n-m)))},()=>o&&s(o)]}const Pe=(e,t,r=3)=>{let n=0;const o=so(50,250);return io(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,u=s-n,c=o(u),d=s<=a;n=s;const m={loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&d?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(m)},r)},ft=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},pt=e=>(...t)=>l.asap(()=>e(...t)),ao=z.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,z.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(z.origin),z.navigator&&/(msie|trident)/i.test(z.navigator.userAgent)):()=>!0,lo=z.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];l.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),l.isString(n)&&a.push(`path=${n}`),l.isString(o)&&a.push(`domain=${o}`),i===!0&&a.push("secure"),l.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function co(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uo(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Zt(e,t,r){let n=!co(t);return e&&(n||r==!1)?uo(e,t):t}const mt=e=>e instanceof D?{...e}:e;function re(e,t){t=t||{};const r={};function n(c,d,m,k){return l.isPlainObject(c)&&l.isPlainObject(d)?l.merge.call({caseless:k},c,d):l.isPlainObject(d)?l.merge({},d):l.isArray(d)?d.slice():d}function o(c,d,m,k){if(l.isUndefined(d)){if(!l.isUndefined(c))return n(void 0,c,m,k)}else return n(c,d,m,k)}function i(c,d){if(!l.isUndefined(d))return n(void 0,d)}function s(c,d){if(l.isUndefined(d)){if(!l.isUndefined(c))return n(void 0,c)}else return n(void 0,d)}function a(c,d,m){if(m in t)return n(c,d);if(m in e)return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,d,m)=>o(mt(c),mt(d),m,!0)};return l.forEach(Object.keys({...e,...t}),function(d){const m=u[d]||o,k=m(e[d],t[d],d);l.isUndefined(k)&&m!==a||(r[d]=k)}),r}const er=e=>{const t=re({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=D.from(s),t.url=Jt(Zt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),l.isFormData(r)){if(z.hasStandardBrowserEnv||z.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(l.isFunction(r.getHeaders)){const u=r.getHeaders(),c=["content-type","content-length"];Object.entries(u).forEach(([d,m])=>{c.includes(d.toLowerCase())&&s.set(d,m)})}}if(z.hasStandardBrowserEnv&&(n&&l.isFunction(n)&&(n=n(t)),n||n!==!1&&ao(t.url))){const u=o&&i&&lo.read(i);u&&s.set(o,u)}return t},fo=typeof XMLHttpRequest<"u",po=fo&&function(e){return new Promise(function(r,n){const o=er(e);let i=o.data;const s=D.from(o.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=o,d,m,k,R,f;function g(){R&&R(),f&&f(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function E(){if(!p)return;const A=D.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),N={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:A,config:e,request:p};Qt(function(F){r(F),g()},function(F){n(F),g()},N),p=null}"onloadend"in p?p.onloadend=E:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(E)},p.onabort=function(){p&&(n(new x("Request aborted",x.ECONNABORTED,e,p)),p=null)},p.onerror=function(O){const N=O&&O.message?O.message:"Network Error",j=new x(N,x.ERR_NETWORK,e,p);j.event=O||null,n(j),p=null},p.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const N=o.transitional||Kt;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),n(new x(O,N.clarifyTimeoutError?x.ETIMEDOUT:x.ECONNABORTED,e,p)),p=null},i===void 0&&s.setContentType(null),"setRequestHeader"in p&&l.forEach(s.toJSON(),function(O,N){p.setRequestHeader(N,O)}),l.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),a&&a!=="json"&&(p.responseType=o.responseType),c&&([k,f]=Pe(c,!0),p.addEventListener("progress",k)),u&&p.upload&&([m,R]=Pe(u),p.upload.addEventListener("progress",m),p.upload.addEventListener("loadend",R)),(o.cancelToken||o.signal)&&(d=A=>{p&&(n(!A||A.type?new le(null,e,p):A),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const U=oo(o.url);if(U&&z.protocols.indexOf(U)===-1){n(new x("Unsupported protocol "+U+":",x.ERR_BAD_REQUEST,e));return}p.send(i||null)})},mo=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(c){if(!o){o=!0,a();const d=c instanceof Error?c:this.reason;n.abort(d instanceof x?d:new le(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,i(new x(`timeout ${t} of ms exceeded`,x.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:u}=n;return u.unsubscribe=()=>l.asap(a),u}},ho=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},bo=async function*(e,t){for await(const r of go(e))yield*ho(r,t)},go=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},ht=(e,t,r,n)=>{const o=bo(e,t);let i=0,s,a=u=>{s||(s=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await o.next();if(c){a(),u.close();return}let m=d.byteLength;if(r){let k=i+=m;r(k)}u.enqueue(new Uint8Array(d))}catch(c){throw a(c),c}},cancel(u){return a(u),o.return()}},{highWaterMark:2})},bt=64*1024,{isFunction:Ae}=l,yo=(({Request:e,Response:t})=>({Request:e,Response:t}))(l.global),{ReadableStream:gt,TextEncoder:yt}=l.global,wt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},wo=e=>{e=l.merge.call({skipUndefined:!0},yo,e);const{fetch:t,Request:r,Response:n}=e,o=t?Ae(t):typeof fetch=="function",i=Ae(r),s=Ae(n);if(!o)return!1;const a=o&&Ae(gt),u=o&&(typeof yt=="function"?(f=>g=>f.encode(g))(new yt):async f=>new Uint8Array(await new r(f).arrayBuffer())),c=i&&a&&wt(()=>{let f=!1;const g=new r(z.origin,{body:new gt,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!g}),d=s&&a&&wt(()=>l.isReadableStream(new n("").body)),m={stream:d&&(f=>f.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!m[f]&&(m[f]=(g,p)=>{let E=g&&g[f];if(E)return E.call(g);throw new x(`Response type '${f}' is not supported`,x.ERR_NOT_SUPPORT,p)})});const k=async f=>{if(f==null)return 0;if(l.isBlob(f))return f.size;if(l.isSpecCompliantForm(f))return(await new r(z.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(l.isArrayBufferView(f)||l.isArrayBuffer(f))return f.byteLength;if(l.isURLSearchParams(f)&&(f=f+""),l.isString(f))return(await u(f)).byteLength},R=async(f,g)=>{const p=l.toFiniteNumber(f.getContentLength());return p??k(g)};return async f=>{let{url:g,method:p,data:E,signal:U,cancelToken:A,timeout:O,onDownloadProgress:N,onUploadProgress:j,responseType:F,headers:w,withCredentials:B="same-origin",fetchOptions:ce}=er(f),ue=t||fetch;F=F?(F+"").toLowerCase():"text";let W=mo([U,A&&A.toAbortSignal()],O),X=null;const M=W&&W.unsubscribe&&(()=>{W.unsubscribe()});let J;try{if(j&&c&&p!=="get"&&p!=="head"&&(J=await R(w,E))!==0){let q=new r(g,{method:"POST",body:E,duplex:"half"}),V;if(l.isFormData(E)&&(V=q.headers.get("content-type"))&&w.setContentType(V),q.body){const[v,_]=ft(J,Pe(pt(j)));E=ht(q.body,bt,v,_)}}l.isString(B)||(B=B?"include":"omit");const C=i&&"credentials"in r.prototype,$={...ce,signal:W,method:p.toUpperCase(),headers:w.normalize().toJSON(),body:E,duplex:"half",credentials:C?B:void 0};X=i&&new r(g,$);let y=await(i?ue(X,ce):ue(g,$));const de=d&&(F==="stream"||F==="response");if(d&&(N||de&&M)){const q={};["status","statusText","headers"].forEach(Q=>{q[Q]=y[Q]});const V=l.toFiniteNumber(y.headers.get("content-length")),[v,_]=N&&ft(V,Pe(pt(N),!0))||[];y=new n(ht(y.body,bt,v,()=>{_&&_(),M&&M()}),q)}F=F||"text";let ye=await m[l.findKey(m,F)||"text"](y,f);return!de&&M&&M(),await new Promise((q,V)=>{Qt(q,V,{data:ye,headers:D.from(y.headers),status:y.status,statusText:y.statusText,config:f,request:X})})}catch(C){throw M&&M(),C&&C.name==="TypeError"&&/Load failed|fetch/i.test(C.message)?Object.assign(new x("Network Error",x.ERR_NETWORK,f,X),{cause:C.cause||C}):x.from(C,C&&C.code,f,X)}}},xo=new Map,tr=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s=i.length,a=s,u,c,d=xo;for(;a--;)u=i[a],c=d.get(u),c===void 0&&d.set(u,c=a?new Map:wo(t)),d=c;return c};tr();const Ye={http:zn,xhr:po,fetch:{get:tr}};l.forEach(Ye,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const xt=e=>`- ${e}`,ko=e=>l.isFunction(e)||e===null||e===!1;function So(e,t){e=l.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s<r;s++){n=e[s];let a;if(o=n,!ko(n)&&(o=Ye[(a=String(n)).toLowerCase()],o===void 0))throw new x(`Unknown adapter '${a}'`);if(o&&(l.isFunction(o)||(o=o.get(t))))break;i[a||"#"+s]=o}if(!o){const s=Object.entries(i).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?s.length>1?`since :
|
|
4
4
|
`+s.map(xt).join(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "libre-webui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Privacy-first AI chat interface. Self-hosted, open source, extensible.",
|
|
5
5
|
"main": "electron/main.js",
|
|
6
6
|
"bin": {
|
|
@@ -108,7 +108,6 @@
|
|
|
108
108
|
"license": "Apache-2.0",
|
|
109
109
|
"dependencies": {
|
|
110
110
|
"sonner": "^2.0.7",
|
|
111
|
-
"@journeyapps/sqlcipher": "^5.3.1",
|
|
112
111
|
"axios": "^1.13.2",
|
|
113
112
|
"bcrypt": "^6.0.0",
|
|
114
113
|
"better-sqlite3": "^12.5.0",
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{r as Oe,g as Ie,a as Be}from"./react-vendor-N--QU9DW.js";var i=Oe();const dr=Ie(i);var le="popstate";function Me(e={}){function t(n,o){let{pathname:a,search:l,hash:s}=n.location;return J("",{pathname:a,search:l,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:I(o)}return de(t,r,null,e)}function Ue(e={}){function t(o,a){let{pathname:l="/",search:s="",hash:u=""}=N(o.location.hash.substring(1));return!l.startsWith("/")&&!l.startsWith(".")&&(l="/"+l),J("",{pathname:l,search:s,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(o,a){let l=o.document.querySelector("base"),s="";if(l&&l.getAttribute("href")){let u=o.location.href,c=u.indexOf("#");s=c===-1?u:u.slice(0,c)}return s+"#"+(typeof a=="string"?a:I(a))}function n(o,a){C(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(a)})`)}return de(t,r,n,e)}function E(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function C(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ae(){return Math.random().toString(36).substring(2,10)}function ie(e,t){return{usr:e.state,key:e.key,idx:t}}function J(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?N(t):t,state:r,key:t&&t.key||n||Ae()}}function I({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function N(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function de(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:a=!1}=n,l=o.history,s="POP",u=null,c=d();c==null&&(c=0,l.replaceState({...l.state,idx:c},""));function d(){return(l.state||{idx:null}).idx}function f(){s="POP";let h=d(),y=h==null?null:h-c;c=h,u&&u({action:s,location:R.location,delta:y})}function m(h,y){s="PUSH";let p=J(R.location,h,y);r&&r(p,h),c=d()+1;let w=ie(p,c),P=R.createHref(p);try{l.pushState(w,"",P)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;o.location.assign(P)}a&&u&&u({action:s,location:R.location,delta:1})}function g(h,y){s="REPLACE";let p=J(R.location,h,y);r&&r(p,h),c=d();let w=ie(p,c),P=R.createHref(p);l.replaceState(w,"",P),a&&u&&u({action:s,location:R.location,delta:0})}function v(h){return We(h)}let R={get action(){return s},get location(){return e(o,l)},listen(h){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(le,f),u=h,()=>{o.removeEventListener(le,f),u=null}},createHref(h){return t(o,h)},createURL:v,encodeLocation(h){let y=v(h);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:g,go(h){return l.go(h)}};return R}function We(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),E(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:I(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function he(e,t,r="/"){return _e(e,t,r,!1)}function _e(e,t,r,n){let o=typeof t=="string"?N(t):t,a=k(o.pathname||"/",r);if(a==null)return null;let l=pe(e);He(l);let s=null;for(let u=0;s==null&&u<l.length;++u){let c=Ze(a);s=Xe(l[u],c,n)}return s}function pe(e,t=[],r=[],n="",o=!1){let a=(l,s,u=o,c)=>{let d={relativePath:c===void 0?l.path||"":c,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(n)&&u)return;E(d.relativePath.startsWith(n),`Absolute route path "${d.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(n.length)}let f=L([n,d.relativePath]),m=r.concat(d);l.children&&l.children.length>0&&(E(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),pe(l.children,t,m,f,u)),!(l.path==null&&!l.index)&&t.push({path:f,score:qe(f,l.index),routesMeta:m})};return e.forEach((l,s)=>{if(l.path===""||!l.path?.includes("?"))a(l,s);else for(let u of me(l.path))a(l,s,!0,u)}),t}function me(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let l=me(n.join("/")),s=[];return s.push(...l.map(u=>u===""?a:[a,u].join("/"))),o&&s.push(...l),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function He(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Ge(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var je=/^:[\w-]+$/,ze=3,Je=2,Ve=1,Ke=10,Ye=-2,se=e=>e==="*";function qe(e,t){let r=e.split("/"),n=r.length;return r.some(se)&&(n+=Ye),t&&(n+=Je),r.filter(o=>!se(o)).reduce((o,a)=>o+(je.test(a)?ze:a===""?Ve:Ke),n)}function Ge(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function Xe(e,t,r=!1){let{routesMeta:n}=e,o={},a="/",l=[];for(let s=0;s<n.length;++s){let u=n[s],c=s===n.length-1,d=a==="/"?t:t.slice(a.length)||"/",f=V({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},d),m=u.route;if(!f&&c&&r&&!n[n.length-1].route.index&&(f=V({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},d)),!f)return null;Object.assign(o,f.params),l.push({params:o,pathname:L([a,f.pathname]),pathnameBase:nt(L([a,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(a=L([a,f.pathnameBase]))}return l}function V(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Qe(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],l=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((c,{paramName:d,isOptional:f},m)=>{if(d==="*"){let v=s[m]||"";l=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const g=s[m];return f&&!g?c[d]=void 0:c[d]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:l,pattern:e}}function Qe(e,t=!1,r=!0){C(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function Ze(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return C(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function k(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var ye=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,et=e=>ye.test(e);function tt(e,t="/"){let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?N(e):e,a;if(r)if(et(r))a=r;else{if(r.includes("//")){let l=r;r=r.replace(/\/\/+/g,"/"),C(!1,`Pathnames cannot have embedded double slashes - normalizing ${l} -> ${r}`)}r.startsWith("/")?a=ue(r.substring(1),"/"):a=ue(r,t)}else a=t;return{pathname:a,search:at(n),hash:ot(o)}}function ue(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function q(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function rt(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Z(e){let t=rt(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function ee(e,t,r,n=!1){let o;typeof e=="string"?o=N(e):(o={...e},E(!o.pathname||!o.pathname.includes("?"),q("?","pathname","search",o)),E(!o.pathname||!o.pathname.includes("#"),q("#","pathname","hash",o)),E(!o.search||!o.search.includes("#"),q("#","search","hash",o)));let a=e===""||o.pathname==="",l=a?"/":o.pathname,s;if(l==null)s=r;else{let f=t.length-1;if(!n&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),f-=1;o.pathname=m.join("/")}s=f>=0?t[f]:"/"}let u=tt(o,s),c=l&&l!=="/"&&l.endsWith("/"),d=(a||l===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}var L=e=>e.join("/").replace(/\/\/+/g,"/"),nt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),at=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ot=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,lt=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function it(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function st(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ge=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ve(e,t){let r=e;if(typeof r!="string"||!ye.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,o=!1;if(ge)try{let a=new URL(window.location.href),l=r.startsWith("//")?new URL(a.protocol+r):new URL(r),s=k(l.pathname,t);l.origin===a.origin&&s!=null?r=s+l.search+l.hash:o=!0}catch{C(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:o,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Re=["POST","PUT","PATCH","DELETE"];new Set(Re);var ut=["GET",...Re];new Set(ut);var B=i.createContext(null);B.displayName="DataRouter";var K=i.createContext(null);K.displayName="DataRouterState";var ct=i.createContext(!1),we=i.createContext({isTransitioning:!1});we.displayName="ViewTransition";var ft=i.createContext(new Map);ft.displayName="Fetchers";var dt=i.createContext(null);dt.displayName="Await";var b=i.createContext(null);b.displayName="Navigation";var W=i.createContext(null);W.displayName="Location";var S=i.createContext({outlet:null,matches:[],isDataRoute:!1});S.displayName="Route";var te=i.createContext(null);te.displayName="RouteError";var Ee="REACT_ROUTER_ERROR",ht="REDIRECT",pt="ROUTE_ERROR_RESPONSE";function mt(e){if(e.startsWith(`${Ee}:${ht}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function yt(e){if(e.startsWith(`${Ee}:${pt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new lt(t.status,t.statusText,t.data)}catch{}}function gt(e,{relative:t}={}){E(M(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=i.useContext(b),{hash:o,pathname:a,search:l}=_(e,{relative:t}),s=a;return r!=="/"&&(s=a==="/"?r:L([r,a])),n.createHref({pathname:s,search:l,hash:o})}function M(){return i.useContext(W)!=null}function $(){return E(M(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(W).location}var xe="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ce(e){i.useContext(b).static||i.useLayoutEffect(e)}function be(){let{isDataRoute:e}=i.useContext(S);return e?Tt():vt()}function vt(){E(M(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(B),{basename:t,navigator:r}=i.useContext(b),{matches:n}=i.useContext(S),{pathname:o}=$(),a=JSON.stringify(Z(n)),l=i.useRef(!1);return Ce(()=>{l.current=!0}),i.useCallback((u,c={})=>{if(C(l.current,xe),!l.current)return;if(typeof u=="number"){r.go(u);return}let d=ee(u,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:L([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,o,e])}i.createContext(null);function hr(){let{matches:e}=i.useContext(S),t=e[e.length-1];return t?t.params:{}}function _(e,{relative:t}={}){let{matches:r}=i.useContext(S),{pathname:n}=$(),o=JSON.stringify(Z(r));return i.useMemo(()=>ee(e,JSON.parse(o),n,t==="path"),[e,o,n,t])}function Rt(e,t){return Se(e,t)}function Se(e,t,r,n,o){E(M(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=i.useContext(b),{matches:l}=i.useContext(S),s=l[l.length-1],u=s?s.params:{},c=s?s.pathname:"/",d=s?s.pathnameBase:"/",f=s&&s.route;{let p=f&&f.path||"";Le(c,!f||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${p}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
2
|
-
|
|
3
|
-
Please change the parent <Route path="${p}"> to <Route path="${p==="/"?"*":`${p}/*`}">.`)}let m=$(),g;if(t){let p=typeof t=="string"?N(t):t;E(d==="/"||p.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${p.pathname}" was given in the \`location\` prop.`),g=p}else g=m;let v=g.pathname||"/",R=v;if(d!=="/"){let p=d.replace(/^\//,"").split("/");R="/"+v.replace(/^\//,"").split("/").slice(p.length).join("/")}let h=he(e,{pathname:R});C(f||h!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),C(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=bt(h&&h.map(p=>Object.assign({},p,{params:Object.assign({},u,p.params),pathname:L([d,a.encodeLocation?a.encodeLocation(p.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?d:L([d,a.encodeLocation?a.encodeLocation(p.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathnameBase])})),l,r,n,o);return t&&y?i.createElement(W.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},y):y}function wt(){let e=$t(),t=it(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:a},"ErrorBoundary")," or"," ",i.createElement("code",{style:a},"errorElement")," prop on your route.")),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:o},r):null,l)}var Et=i.createElement(wt,null),Pe=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=yt(e.digest);r&&(e=r)}let t=e!==void 0?i.createElement(S.Provider,{value:this.props.routeContext},i.createElement(te.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?i.createElement(xt,{error:e},t):t}};Pe.contextType=ct;var G=new WeakMap;function xt({children:e,error:t}){let{basename:r}=i.useContext(b);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=mt(t.digest);if(n){let o=G.get(t);if(o)throw o;let a=ve(n.location,r);if(ge&&!G.get(t))if(a.isExternal||n.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:n.replace}));throw G.set(t,l),l}return i.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function Ct({routeContext:e,match:t,children:r}){let n=i.useContext(B);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement(S.Provider,{value:e},r)}function bt(e,t=[],r=null,n=null,o=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,l=r?.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&l?.[f.route.id]!==void 0);E(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let s=!1,u=-1;if(r)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:m,errors:g}=r,v=f.route.loader&&!m.hasOwnProperty(f.route.id)&&(!g||g[f.route.id]===void 0);if(f.route.lazy||v){s=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}let c=r&&n?(d,f)=>{n(d,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:st(r.matches),errorInfo:f})}:void 0;return a.reduceRight((d,f,m)=>{let g,v=!1,R=null,h=null;r&&(g=l&&f.route.id?l[f.route.id]:void 0,R=f.route.errorElement||Et,s&&(u<0&&m===0?(Le("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,h=null):u===m&&(v=!0,h=f.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,m+1)),p=()=>{let w;return g?w=R:v?w=h:f.route.Component?w=i.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,i.createElement(Ct,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:r!=null},children:w})};return r&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?i.createElement(Pe,{location:r.location,revalidation:r.revalidation,component:R,error:g,children:p(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:c}):p()},null)}function re(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function St(e){let t=i.useContext(B);return E(t,re(e)),t}function Pt(e){let t=i.useContext(K);return E(t,re(e)),t}function Lt(e){let t=i.useContext(S);return E(t,re(e)),t}function ne(e){let t=Lt(e),r=t.matches[t.matches.length-1];return E(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function kt(){return ne("useRouteId")}function $t(){let e=i.useContext(te),t=Pt("useRouteError"),r=ne("useRouteError");return e!==void 0?e:t.errors?.[r]}function Tt(){let{router:e}=St("useNavigate"),t=ne("useNavigate"),r=i.useRef(!1);return Ce(()=>{r.current=!0}),i.useCallback(async(o,a={})=>{C(r.current,xe),r.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var ce={};function Le(e,t,r){!t&&!ce[e]&&(ce[e]=!0,C(!1,r))}i.memo(Ft);function Ft({routes:e,future:t,state:r,onError:n}){return Se(e,void 0,r,n,t)}function pr({to:e,replace:t,state:r,relative:n}){E(M(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=i.useContext(b);C(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=i.useContext(S),{pathname:l}=$(),s=be(),u=ee(e,Z(a),l,n==="path"),c=JSON.stringify(u);return i.useEffect(()=>{s(JSON.parse(c),{replace:t,state:r,relative:n})},[s,c,n,t,r]),null}function Nt(e){E(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ke({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:o,static:a=!1,unstable_useTransitions:l}){E(!M(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),u=i.useMemo(()=>({basename:s,navigator:o,static:a,unstable_useTransitions:l,future:{}}),[s,o,a,l]);typeof r=="string"&&(r=N(r));let{pathname:c="/",search:d="",hash:f="",state:m=null,key:g="default"}=r,v=i.useMemo(()=>{let R=k(c,s);return R==null?null:{location:{pathname:R,search:d,hash:f,state:m,key:g},navigationType:n}},[s,c,d,f,m,g,n]);return C(v!=null,`<Router basename="${s}"> is not able to match the URL "${c}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:i.createElement(b.Provider,{value:u},i.createElement(W.Provider,{children:t,value:v}))}function mr({children:e,location:t}){return Rt(Q(e),t)}function Q(e,t=[]){let r=[];return i.Children.forEach(e,(n,o)=>{if(!i.isValidElement(n))return;let a=[...t,o];if(n.type===i.Fragment){r.push.apply(r,Q(n.props.children,a));return}E(n.type===Nt,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),E(!n.props.index||!n.props.children,"An index route cannot have child routes.");let l={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=Q(n.props.children,a)),r.push(l)}),r}var j="get",z="application/x-www-form-urlencoded";function Y(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Dt(e){return Y(e)&&e.tagName.toLowerCase()==="button"}function Ot(e){return Y(e)&&e.tagName.toLowerCase()==="form"}function It(e){return Y(e)&&e.tagName.toLowerCase()==="input"}function Bt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Mt(e,t){return e.button===0&&(!t||t==="_self")&&!Bt(e)}var H=null;function Ut(){if(H===null)try{new FormData(document.createElement("form"),0),H=!1}catch{H=!0}return H}var At=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function X(e){return e!=null&&!At.has(e)?(C(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${z}"`),null):e}function Wt(e,t){let r,n,o,a,l;if(Ot(e)){let s=e.getAttribute("action");n=s?k(s,t):null,r=e.getAttribute("method")||j,o=X(e.getAttribute("enctype"))||z,a=new FormData(e)}else if(Dt(e)||It(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||s.getAttribute("action");if(n=u?k(u,t):null,r=e.getAttribute("formmethod")||s.getAttribute("method")||j,o=X(e.getAttribute("formenctype"))||X(s.getAttribute("enctype"))||z,a=new FormData(s,e),!Ut()){let{name:c,type:d,value:f}=e;if(d==="image"){let m=c?`${c}.`:"";a.append(`${m}x`,"0"),a.append(`${m}y`,"0")}else c&&a.append(c,f)}}else{if(Y(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=j,n=null,o=z,l=e}return a&&o==="text/plain"&&(l=a,a=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:a,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function _t(e,t,r){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname=`_root.${r}`:t&&k(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}async function Ht(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function jt(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function zt(e,t,r){let n=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let l=await Ht(a,r);return l.links?l.links():[]}return[]}));return Yt(n.flat(1).filter(jt).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function fe(e,t,r,n,o,a){let l=(u,c)=>r[c]?u.route.id!==r[c].route.id:!0,s=(u,c)=>r[c].pathname!==u.pathname||r[c].route.path?.endsWith("*")&&r[c].params["*"]!==u.params["*"];return a==="assets"?t.filter((u,c)=>l(u,c)||s(u,c)):a==="data"?t.filter((u,c)=>{let d=n.routes[u.route.id];if(!d||!d.hasLoader)return!1;if(l(u,c)||s(u,c))return!0;if(u.route.shouldRevalidate){let f=u.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function Jt(e,t,{includeHydrateFallback:r}={}){return Vt(e.map(n=>{let o=t.routes[n.route.id];if(!o)return[];let a=[o.module];return o.clientActionModule&&(a=a.concat(o.clientActionModule)),o.clientLoaderModule&&(a=a.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(a=a.concat(o.hydrateFallbackModule)),o.imports&&(a=a.concat(o.imports)),a}).flat(1))}function Vt(e){return[...new Set(e)]}function Kt(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function Yt(e,t){let r=new Set;return new Set(t),e.reduce((n,o)=>{let a=JSON.stringify(Kt(o));return r.has(a)||(r.add(a),n.push({key:a,link:o})),n},[])}function $e(){let e=i.useContext(B);return ae(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function qt(){let e=i.useContext(K);return ae(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var oe=i.createContext(void 0);oe.displayName="FrameworkContext";function Te(){let e=i.useContext(oe);return ae(e,"You must render this element inside a <HydratedRouter> element"),e}function Gt(e,t){let r=i.useContext(oe),[n,o]=i.useState(!1),[a,l]=i.useState(!1),{onFocus:s,onBlur:u,onMouseEnter:c,onMouseLeave:d,onTouchStart:f}=t,m=i.useRef(null);i.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let R=y=>{y.forEach(p=>{l(p.isIntersecting)})},h=new IntersectionObserver(R,{threshold:.5});return m.current&&h.observe(m.current),()=>{h.disconnect()}}},[e]),i.useEffect(()=>{if(n){let R=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(R)}}},[n]);let g=()=>{o(!0)},v=()=>{o(!1),l(!1)};return r?e!=="intent"?[a,m,{}]:[a,m,{onFocus:A(s,g),onBlur:A(u,v),onMouseEnter:A(c,g),onMouseLeave:A(d,v),onTouchStart:A(f,g)}]:[!1,m,{}]}function A(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Xt({page:e,...t}){let{router:r}=$e(),n=i.useMemo(()=>he(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?i.createElement(Zt,{page:e,matches:n,...t}):null}function Qt(e){let{manifest:t,routeModules:r}=Te(),[n,o]=i.useState([]);return i.useEffect(()=>{let a=!1;return zt(e,t,r).then(l=>{a||o(l)}),()=>{a=!0}},[e,t,r]),n}function Zt({page:e,matches:t,...r}){let n=$(),{manifest:o,routeModules:a}=Te(),{basename:l}=$e(),{loaderData:s,matches:u}=qt(),c=i.useMemo(()=>fe(e,t,u,o,n,"data"),[e,t,u,o,n]),d=i.useMemo(()=>fe(e,t,u,o,n,"assets"),[e,t,u,o,n]),f=i.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let v=new Set,R=!1;if(t.forEach(y=>{let p=o.routes[y.route.id];!p||!p.hasLoader||(!c.some(w=>w.route.id===y.route.id)&&y.route.id in s&&a[y.route.id]?.shouldRevalidate||p.hasClientLoader?R=!0:v.add(y.route.id))}),v.size===0)return[];let h=_t(e,l,"data");return R&&v.size>0&&h.searchParams.set("_routes",t.filter(y=>v.has(y.route.id)).map(y=>y.route.id).join(",")),[h.pathname+h.search]},[l,s,n,o,c,t,e,a]),m=i.useMemo(()=>Jt(d,o),[d,o]),g=Qt(d);return i.createElement(i.Fragment,null,f.map(v=>i.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...r})),m.map(v=>i.createElement("link",{key:v,rel:"modulepreload",href:v,...r})),g.map(({key:v,link:R})=>i.createElement("link",{key:v,nonce:r.nonce,...R})))}function er(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var tr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{tr&&(window.__reactRouterVersion="7.11.0")}catch{}function yr({basename:e,children:t,unstable_useTransitions:r,window:n}){let o=i.useRef();o.current==null&&(o.current=Me({window:n,v5Compat:!0}));let a=o.current,[l,s]=i.useState({action:a.action,location:a.location}),u=i.useCallback(c=>{r===!1?s(c):i.startTransition(()=>s(c))},[r]);return i.useLayoutEffect(()=>a.listen(u),[a,u]),i.createElement(ke,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:a,unstable_useTransitions:r})}function gr({basename:e,children:t,unstable_useTransitions:r,window:n}){let o=i.useRef();o.current==null&&(o.current=Ue({window:n,v5Compat:!0}));let a=o.current,[l,s]=i.useState({action:a.action,location:a.location}),u=i.useCallback(c=>{r===!1?s(c):i.startTransition(()=>s(c))},[r]);return i.useLayoutEffect(()=>a.listen(u),[a,u]),i.createElement(ke,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:a,unstable_useTransitions:r})}var Fe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ne=i.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:o,reloadDocument:a,replace:l,state:s,target:u,to:c,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:m,...g},v){let{basename:R,unstable_useTransitions:h}=i.useContext(b),y=typeof c=="string"&&Fe.test(c),p=ve(c,R);c=p.to;let w=gt(c,{relative:o}),[P,x,T]=Gt(n,g),F=or(c,{replace:l,state:s,target:u,preventScrollReset:d,relative:o,viewTransition:f,unstable_defaultShouldRevalidate:m,unstable_useTransitions:h});function D(U){t&&t(U),U.defaultPrevented||F(U)}let O=i.createElement("a",{...g,...T,href:p.absoluteURL||w,onClick:p.isExternal||a?t:D,ref:er(v,x),target:u,"data-discover":!y&&r==="render"?"true":void 0});return P&&!y?i.createElement(i.Fragment,null,O,i.createElement(Xt,{page:w})):O});Ne.displayName="Link";var rr=i.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:o=!1,style:a,to:l,viewTransition:s,children:u,...c},d){let f=_(l,{relative:c.relative}),m=$(),g=i.useContext(K),{navigator:v,basename:R}=i.useContext(b),h=g!=null&&cr(f)&&s===!0,y=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,p=m.pathname,w=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||(p=p.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&R&&(w=k(w,R)||w);const P=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let x=p===y||!o&&p.startsWith(y)&&p.charAt(P)==="/",T=w!=null&&(w===y||!o&&w.startsWith(y)&&w.charAt(y.length)==="/"),F={isActive:x,isPending:T,isTransitioning:h},D=x?t:void 0,O;typeof n=="function"?O=n(F):O=[n,x?"active":null,T?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let U=typeof a=="function"?a(F):a;return i.createElement(Ne,{...c,"aria-current":D,className:O,ref:d,style:U,to:l,viewTransition:s},typeof u=="function"?u(F):u)});rr.displayName="NavLink";var nr=i.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:o,state:a,method:l=j,action:s,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:m,...g},v)=>{let{unstable_useTransitions:R}=i.useContext(b),h=sr(),y=ur(s,{relative:c}),p=l.toLowerCase()==="get"?"get":"post",w=typeof s=="string"&&Fe.test(s),P=x=>{if(u&&u(x),x.defaultPrevented)return;x.preventDefault();let T=x.nativeEvent.submitter,F=T?.getAttribute("formmethod")||l,D=()=>h(T||x.currentTarget,{fetcherKey:t,method:F,navigate:r,replace:o,state:a,relative:c,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:m});R&&r!==!1?i.startTransition(()=>D()):D()};return i.createElement("form",{ref:v,method:p,action:y,onSubmit:n?u:P,...g,"data-discover":!w&&e==="render"?"true":void 0})});nr.displayName="Form";function ar(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function De(e){let t=i.useContext(B);return E(t,ar(e)),t}function or(e,{target:t,replace:r,state:n,preventScrollReset:o,relative:a,viewTransition:l,unstable_defaultShouldRevalidate:s,unstable_useTransitions:u}={}){let c=be(),d=$(),f=_(e,{relative:a});return i.useCallback(m=>{if(Mt(m,t)){m.preventDefault();let g=r!==void 0?r:I(d)===I(f),v=()=>c(e,{replace:g,state:n,preventScrollReset:o,relative:a,viewTransition:l,unstable_defaultShouldRevalidate:s});u?i.startTransition(()=>v()):v()}},[d,c,f,r,n,t,e,o,a,l,s,u])}var lr=0,ir=()=>`__${String(++lr)}__`;function sr(){let{router:e}=De("useSubmit"),{basename:t}=i.useContext(b),r=kt(),n=e.fetch,o=e.navigate;return i.useCallback(async(a,l={})=>{let{action:s,method:u,encType:c,formData:d,body:f}=Wt(a,t);if(l.navigate===!1){let m=l.fetcherKey||ir();await n(m,r,l.action||s,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:d,body:f,formMethod:l.method||u,formEncType:l.encType||c,flushSync:l.flushSync})}else await o(l.action||s,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:d,body:f,formMethod:l.method||u,formEncType:l.encType||c,replace:l.replace,state:l.state,fromRouteId:r,flushSync:l.flushSync,viewTransition:l.viewTransition})},[n,o,t,r])}function ur(e,{relative:t}={}){let{basename:r}=i.useContext(b),n=i.useContext(S);E(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),a={..._(e||".",{relative:t})},l=$();if(e==null){a.search=l.search;let s=new URLSearchParams(a.search),u=s.getAll("index");if(u.some(d=>d==="")){s.delete("index"),u.filter(f=>f).forEach(f=>s.append("index",f));let d=s.toString();a.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:L([r,a.pathname])),I(a)}function cr(e,{relative:t}={}){let r=i.useContext(we);E(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=De("useViewTransitionState"),o=_(e,{relative:t});if(!r.isTransitioning)return!1;let a=k(r.currentLocation.pathname,n)||r.currentLocation.pathname,l=k(r.nextLocation.pathname,n)||r.nextLocation.pathname;return V(o.pathname,l)!=null||V(o.pathname,a)!=null}var vr=Be();export{yr as B,gr as H,Ne as L,pr as N,dr as R,be as a,hr as b,vr as c,mr as d,Nt as e,i as r,$ as u};
|